@angular/material 17.1.0-next.0 → 17.1.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/autocomplete/_autocomplete-theme.scss +47 -14
- package/autocomplete/index.d.ts +14 -10
- package/badge/_badge-theme.scss +67 -35
- package/badge/index.d.ts +5 -5
- package/bottom-sheet/_bottom-sheet-theme.scss +51 -18
- package/bottom-sheet/index.d.ts +6 -6
- package/button/_button-theme.scss +4 -1
- package/button/_fab-theme.scss +65 -32
- package/button/_icon-button-theme.scss +89 -56
- package/button/index.d.ts +13 -13
- package/button-toggle/_button-toggle-theme.scss +66 -32
- package/button-toggle/index.d.ts +5 -5
- package/card/index.d.ts +18 -18
- package/checkbox/index.d.ts +6 -6
- package/chips/_chips-theme.scss +64 -32
- package/chips/index.d.ts +46 -73
- package/core/_core-theme.scss +1 -3
- package/core/index.d.ts +50 -31
- package/core/option/_optgroup-theme.scss +47 -16
- package/core/option/_option-theme.scss +54 -23
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +18 -58
- package/core/tokens/m2/_index.scss +38 -0
- package/core/tokens/m2/mat/_full-pseudo-checkbox.scss +49 -0
- package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +43 -0
- package/datepicker/_datepicker-theme.scss +70 -38
- package/datepicker/index.d.ts +88 -86
- package/dialog/_dialog-theme.scss +48 -17
- package/divider/_divider-theme.scss +49 -16
- package/divider/index.d.ts +4 -4
- package/esm2022/autocomplete/autocomplete-origin.mjs +5 -4
- package/esm2022/autocomplete/autocomplete-trigger.mjs +27 -11
- package/esm2022/autocomplete/autocomplete.mjs +6 -6
- package/esm2022/autocomplete/module.mjs +23 -7
- package/esm2022/autocomplete/public-api.mjs +3 -1
- package/esm2022/badge/badge-module.mjs +6 -7
- package/esm2022/badge/badge.mjs +5 -4
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -6
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +8 -7
- package/esm2022/bottom-sheet/bottom-sheet.mjs +5 -6
- package/esm2022/button/button-base.mjs +6 -6
- package/esm2022/button/button.mjs +9 -9
- package/esm2022/button/fab.mjs +17 -17
- package/esm2022/button/icon-button.mjs +9 -9
- package/esm2022/button/module.mjs +16 -12
- package/esm2022/button-toggle/button-toggle-module.mjs +6 -7
- package/esm2022/button-toggle/button-toggle.mjs +10 -9
- package/esm2022/card/card.mjs +57 -46
- package/esm2022/card/module.mjs +7 -8
- package/esm2022/checkbox/checkbox-required-validator.mjs +6 -4
- package/esm2022/checkbox/checkbox.mjs +5 -6
- package/esm2022/checkbox/module.mjs +11 -12
- package/esm2022/chips/chip-action.mjs +5 -4
- package/esm2022/chips/chip-edit-input.mjs +5 -4
- package/esm2022/chips/chip-grid.mjs +39 -51
- package/esm2022/chips/chip-icons.mjs +13 -10
- package/esm2022/chips/chip-input.mjs +5 -4
- package/esm2022/chips/chip-listbox.mjs +5 -5
- package/esm2022/chips/chip-option.mjs +7 -7
- package/esm2022/chips/chip-row.mjs +7 -8
- package/esm2022/chips/chip-set.mjs +5 -5
- package/esm2022/chips/chip.mjs +5 -6
- package/esm2022/chips/module.mjs +7 -8
- package/esm2022/chips/tokens.mjs +8 -2
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/common-behaviors/error-state.mjs +50 -11
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/datetime/index.mjs +8 -8
- package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2022/core/error/error-options.mjs +6 -6
- package/esm2022/core/line/line.mjs +10 -10
- package/esm2022/core/option/index.mjs +6 -7
- package/esm2022/core/option/optgroup.mjs +5 -5
- package/esm2022/core/option/option.mjs +9 -9
- package/esm2022/core/private/ripple-loader.mjs +3 -3
- package/esm2022/core/ripple/index.mjs +6 -7
- package/esm2022/core/ripple/ripple.mjs +5 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +6 -7
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +6 -6
- package/esm2022/datepicker/calendar.mjs +12 -16
- package/esm2022/datepicker/date-range-input-parts.mjs +41 -20
- package/esm2022/datepicker/date-range-input.mjs +7 -7
- package/esm2022/datepicker/date-range-picker.mjs +5 -4
- package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
- package/esm2022/datepicker/date-selection-model.mjs +9 -9
- package/esm2022/datepicker/datepicker-actions.mjs +13 -11
- package/esm2022/datepicker/datepicker-base.mjs +23 -20
- package/esm2022/datepicker/datepicker-input-base.mjs +6 -5
- package/esm2022/datepicker/datepicker-input.mjs +5 -4
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +18 -16
- package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
- package/esm2022/datepicker/datepicker.mjs +5 -4
- package/esm2022/datepicker/month-view.mjs +5 -6
- package/esm2022/datepicker/multi-year-view.mjs +5 -6
- package/esm2022/datepicker/year-view.mjs +5 -6
- package/esm2022/dialog/dialog-container.mjs +7 -8
- package/esm2022/dialog/dialog-content-directives.mjs +12 -12
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/dialog/module.mjs +5 -5
- package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
- package/esm2022/divider/divider-module.mjs +6 -7
- package/esm2022/divider/divider.mjs +5 -5
- package/esm2022/expansion/accordion.mjs +5 -4
- package/esm2022/expansion/expansion-module.mjs +16 -9
- package/esm2022/expansion/expansion-panel-content.mjs +5 -4
- package/esm2022/expansion/expansion-panel-header.mjs +13 -11
- package/esm2022/expansion/expansion-panel.mjs +11 -11
- package/esm2022/form-field/directives/error.mjs +5 -4
- package/esm2022/form-field/directives/floating-label.mjs +5 -4
- package/esm2022/form-field/directives/hint.mjs +5 -4
- package/esm2022/form-field/directives/label.mjs +5 -4
- package/esm2022/form-field/directives/line-ripple.mjs +5 -4
- package/esm2022/form-field/directives/notched-outline.mjs +5 -5
- package/esm2022/form-field/directives/prefix.mjs +5 -4
- package/esm2022/form-field/directives/suffix.mjs +5 -4
- package/esm2022/form-field/form-field-control.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +14 -13
- package/esm2022/form-field/module.mjs +16 -18
- package/esm2022/grid-list/grid-list-module.mjs +15 -11
- package/esm2022/grid-list/grid-list.mjs +5 -5
- package/esm2022/grid-list/grid-tile.mjs +21 -18
- package/esm2022/grid-list/tile-coordinator.mjs +1 -1
- package/esm2022/icon/icon-module.mjs +6 -7
- package/esm2022/icon/icon-registry.mjs +3 -3
- package/esm2022/icon/icon.mjs +5 -5
- package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
- package/esm2022/input/input.mjs +28 -30
- package/esm2022/input/module.mjs +6 -7
- package/esm2022/input/public-api.mjs +3 -1
- package/esm2022/list/action-list.mjs +5 -5
- package/esm2022/list/list-base.mjs +9 -7
- package/esm2022/list/list-item-sections.mjs +25 -19
- package/esm2022/list/list-module.mjs +15 -16
- package/esm2022/list/list-option.mjs +8 -8
- package/esm2022/list/list.mjs +10 -10
- package/esm2022/list/nav-list.mjs +5 -5
- package/esm2022/list/selection-list.mjs +5 -5
- package/esm2022/list/subheader.mjs +5 -4
- package/esm2022/menu/menu-content.mjs +5 -4
- package/esm2022/menu/menu-item.mjs +6 -6
- package/esm2022/menu/menu-trigger.mjs +12 -5
- package/esm2022/menu/menu.mjs +6 -6
- package/esm2022/menu/module.mjs +25 -7
- package/esm2022/paginator/module.mjs +6 -7
- package/esm2022/paginator/paginator-intl.mjs +3 -3
- package/esm2022/paginator/paginator.mjs +10 -11
- package/esm2022/progress-bar/module.mjs +6 -6
- package/esm2022/progress-bar/progress-bar.mjs +5 -5
- package/esm2022/progress-spinner/module.mjs +6 -7
- package/esm2022/progress-spinner/progress-spinner.mjs +6 -6
- package/esm2022/radio/module.mjs +6 -7
- package/esm2022/radio/radio.mjs +10 -9
- package/esm2022/select/module.mjs +21 -7
- package/esm2022/select/public-api.mjs +5 -1
- package/esm2022/select/select.mjs +51 -42
- package/esm2022/sidenav/drawer.mjs +13 -12
- package/esm2022/sidenav/sidenav-module.mjs +14 -10
- package/esm2022/sidenav/sidenav.mjs +13 -12
- package/esm2022/slide-toggle/module.mjs +20 -12
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +5 -4
- package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
- package/esm2022/slider/module.mjs +19 -7
- package/esm2022/slider/slider-input.mjs +9 -7
- package/esm2022/slider/slider-thumb.mjs +5 -6
- package/esm2022/slider/slider.mjs +6 -6
- package/esm2022/snack-bar/module.mjs +6 -6
- package/esm2022/snack-bar/simple-snack-bar.mjs +6 -8
- package/esm2022/snack-bar/snack-bar-container.mjs +7 -8
- package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
- package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
- package/esm2022/snack-bar/snack-bar.mjs +3 -3
- package/esm2022/sort/sort-header-intl.mjs +3 -3
- package/esm2022/sort/sort-header.mjs +5 -5
- package/esm2022/sort/sort-module.mjs +6 -7
- package/esm2022/sort/sort.mjs +5 -4
- package/esm2022/stepper/step-content.mjs +5 -4
- package/esm2022/stepper/step-header.mjs +8 -8
- package/esm2022/stepper/step-label.mjs +5 -4
- package/esm2022/stepper/stepper-button.mjs +9 -7
- package/esm2022/stepper/stepper-icon.mjs +5 -4
- package/esm2022/stepper/stepper-intl.mjs +3 -3
- package/esm2022/stepper/stepper-module.mjs +17 -16
- package/esm2022/stepper/stepper.mjs +14 -16
- package/esm2022/table/cell.mjs +29 -22
- package/esm2022/table/module.mjs +7 -8
- package/esm2022/table/row.mjs +33 -24
- package/esm2022/table/table.mjs +11 -11
- package/esm2022/table/text-column.mjs +8 -6
- package/esm2022/tabs/module.mjs +10 -43
- package/esm2022/tabs/paginated-tab-header.mjs +3 -3
- package/esm2022/tabs/tab-body.mjs +10 -8
- package/esm2022/tabs/tab-content.mjs +5 -4
- package/esm2022/tabs/tab-group.mjs +20 -13
- package/esm2022/tabs/tab-header.mjs +7 -7
- package/esm2022/tabs/tab-label-wrapper.mjs +5 -4
- package/esm2022/tabs/tab-label.mjs +5 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
- package/esm2022/tabs/tab.mjs +5 -5
- package/esm2022/toolbar/toolbar-module.mjs +6 -7
- package/esm2022/toolbar/toolbar.mjs +9 -8
- package/esm2022/tooltip/module.mjs +6 -7
- package/esm2022/tooltip/tooltip.mjs +18 -12
- package/esm2022/tree/node.mjs +13 -10
- package/esm2022/tree/outlet.mjs +5 -4
- package/esm2022/tree/padding.mjs +5 -4
- package/esm2022/tree/toggle.mjs +5 -4
- package/esm2022/tree/tree-module.mjs +7 -8
- package/esm2022/tree/tree.mjs +5 -6
- package/expansion/_expansion-theme.scss +56 -22
- package/expansion/index.d.ts +15 -15
- package/fesm2022/autocomplete.mjs +60 -27
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +9 -9
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +25 -26
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +14 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +53 -49
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +62 -52
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -19
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +94 -96
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +115 -78
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +178 -146
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +2 -2
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +9 -10
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +47 -36
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +61 -48
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +38 -31
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon.mjs +12 -13
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +33 -35
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +77 -71
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +51 -27
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +17 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +9 -9
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +10 -12
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +14 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +72 -48
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +37 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +28 -20
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +36 -23
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +32 -34
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +16 -16
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +58 -55
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +81 -63
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +408 -424
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -13
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +22 -17
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +34 -29
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +33 -45
- package/grid-list/index.d.ts +10 -10
- package/icon/_icon-theme.scss +55 -23
- package/icon/index.d.ts +4 -4
- package/input/index.d.ts +33 -32
- package/list/index.d.ts +36 -36
- package/menu/_menu-theme.scss +50 -18
- package/menu/index.d.ts +12 -12
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +62 -29
- package/paginator/index.d.ts +6 -6
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +2 -2
- package/progress-spinner/index.d.ts +4 -4
- package/radio/index.d.ts +6 -6
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +427 -201
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
- package/schematics/ng-update/index_bundled.js +41 -37
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/select/_select-theme.scss +71 -38
- package/select/index.d.ts +47 -35
- package/sidenav/_sidenav-theme.scss +49 -16
- package/sidenav/index.d.ts +11 -11
- package/slide-toggle/index.d.ts +6 -6
- package/slider/index.d.ts +9 -9
- package/sort/index.d.ts +6 -6
- package/stepper/index.d.ts +29 -29
- package/table/index.d.ts +24 -24
- package/tabs/index.d.ts +18 -43
- package/toolbar/index.d.ts +5 -5
- package/tooltip/index.d.ts +8 -8
- package/tree/index.d.ts +15 -15
package/checkbox/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ElementRef } from '@angular/core';
|
|
|
6
6
|
import { EventEmitter } from '@angular/core';
|
|
7
7
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i2 from '@angular/material/core';
|
|
10
10
|
import { InjectionToken } from '@angular/core';
|
|
11
11
|
import { MatRipple } from '@angular/material/core';
|
|
12
12
|
import { NgZone } from '@angular/core';
|
|
@@ -20,7 +20,7 @@ declare namespace i1 {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare namespace
|
|
23
|
+
declare namespace i3 {
|
|
24
24
|
export {
|
|
25
25
|
TransitionCheckState,
|
|
26
26
|
MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR,
|
|
@@ -166,7 +166,7 @@ export declare class MatCheckbox implements AfterViewInit, ControlValueAccessor,
|
|
|
166
166
|
*/
|
|
167
167
|
_preventBubblingFromLabel(event: MouseEvent): void;
|
|
168
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckbox, [null, null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*"],
|
|
169
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*"], true, never>;
|
|
170
170
|
static ngAcceptInputType_required: unknown;
|
|
171
171
|
static ngAcceptInputType_disableRipple: unknown;
|
|
172
172
|
static ngAcceptInputType_tabIndex: unknown;
|
|
@@ -202,7 +202,7 @@ export declare interface MatCheckboxDefaultOptions {
|
|
|
202
202
|
|
|
203
203
|
export declare class MatCheckboxModule {
|
|
204
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxModule, never>;
|
|
205
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, [typeof i2.
|
|
205
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, never, [typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof _MatCheckboxRequiredValidatorModule, typeof i3.MatCheckbox], [typeof i3.MatCheckbox, typeof i2.MatCommonModule, typeof _MatCheckboxRequiredValidatorModule]>;
|
|
206
206
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -213,13 +213,13 @@ export declare class MatCheckboxModule {
|
|
|
213
213
|
*/
|
|
214
214
|
export declare class MatCheckboxRequiredValidator extends CheckboxRequiredValidator {
|
|
215
215
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxRequiredValidator, never>;
|
|
216
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never,
|
|
216
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never, true, never>;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/** This module is used by both original and MDC-based checkbox implementations. */
|
|
220
220
|
export declare class _MatCheckboxRequiredValidatorModule {
|
|
221
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatCheckboxRequiredValidatorModule, never>;
|
|
222
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, [typeof i1.MatCheckboxRequiredValidator],
|
|
222
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, never, [typeof i1.MatCheckboxRequiredValidator], [typeof i1.MatCheckboxRequiredValidator]>;
|
|
223
223
|
static ɵinj: i0.ɵɵInjectorDeclaration<_MatCheckboxRequiredValidatorModule>;
|
|
224
224
|
}
|
|
225
225
|
|
package/chips/_chips-theme.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use 'sass:color';
|
|
2
3
|
@use '@material/chips/chip-theme' as mdc-chip-theme;
|
|
3
4
|
@use '../core/tokens/m2/mdc/chip' as tokens-mdc-chip;
|
|
@@ -6,63 +7,94 @@
|
|
|
6
7
|
@use '../core/typography/typography';
|
|
7
8
|
|
|
8
9
|
@mixin base($theme) {
|
|
9
|
-
.
|
|
10
|
-
@include
|
|
10
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
|
+
}
|
|
13
|
+
@else {
|
|
14
|
+
.mat-mdc-standard-chip {
|
|
15
|
+
@include mdc-chip-theme.theme(tokens-mdc-chip.get-unthemable-tokens());
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
@mixin color($theme) {
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
22
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
23
|
+
}
|
|
24
|
+
@else {
|
|
25
|
+
.mat-mdc-standard-chip {
|
|
26
|
+
$default-color-tokens: tokens-mdc-chip.get-color-tokens($theme);
|
|
27
|
+
@include mdc-chip-theme.theme($default-color-tokens);
|
|
18
28
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
&.mat-mdc-chip-selected,
|
|
30
|
+
&.mat-mdc-chip-highlighted {
|
|
31
|
+
&.mat-primary {
|
|
32
|
+
$primary-color-tokens: tokens-mdc-chip.get-color-tokens($theme, primary);
|
|
33
|
+
@include mdc-chip-theme.theme($primary-color-tokens);
|
|
34
|
+
}
|
|
25
35
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
&.mat-accent {
|
|
37
|
+
$accent-color-tokens: tokens-mdc-chip.get-color-tokens($theme, accent);
|
|
38
|
+
@include mdc-chip-theme.theme($accent-color-tokens);
|
|
39
|
+
}
|
|
30
40
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
&.mat-warn {
|
|
42
|
+
$warn-color-tokens: tokens-mdc-chip.get-color-tokens($theme, warn);
|
|
43
|
+
@include mdc-chip-theme.theme($warn-color-tokens);
|
|
44
|
+
}
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
}
|
|
38
49
|
|
|
39
50
|
@mixin typography($theme) {
|
|
40
|
-
|
|
51
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
52
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
53
|
+
}
|
|
54
|
+
@else {
|
|
55
|
+
$typography-tokens: tokens-mdc-chip.get-typography-tokens($theme);
|
|
41
56
|
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
.mat-mdc-standard-chip {
|
|
58
|
+
@include mdc-chip-theme.theme($typography-tokens);
|
|
59
|
+
}
|
|
44
60
|
}
|
|
45
61
|
}
|
|
46
62
|
|
|
47
63
|
@mixin density($theme) {
|
|
48
|
-
|
|
64
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
65
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
66
|
+
}
|
|
67
|
+
@else {
|
|
68
|
+
$density-tokens: tokens-mdc-chip.get-density-tokens($theme);
|
|
49
69
|
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
.mat-mdc-chip.mat-mdc-standard-chip {
|
|
71
|
+
@include mdc-chip-theme.theme($density-tokens);
|
|
72
|
+
}
|
|
52
73
|
}
|
|
53
74
|
}
|
|
54
75
|
|
|
55
76
|
@mixin theme($theme) {
|
|
56
77
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-chips') {
|
|
57
|
-
@
|
|
58
|
-
|
|
59
|
-
@include color($theme);
|
|
60
|
-
}
|
|
61
|
-
@if inspection.theme-has($theme, density) {
|
|
62
|
-
@include density($theme);
|
|
78
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
79
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
63
80
|
}
|
|
64
|
-
@
|
|
65
|
-
@include
|
|
81
|
+
@else {
|
|
82
|
+
@include base($theme);
|
|
83
|
+
@if inspection.theme-has($theme, color) {
|
|
84
|
+
@include color($theme);
|
|
85
|
+
}
|
|
86
|
+
@if inspection.theme-has($theme, density) {
|
|
87
|
+
@include density($theme);
|
|
88
|
+
}
|
|
89
|
+
@if inspection.theme-has($theme, typography) {
|
|
90
|
+
@include typography($theme);
|
|
91
|
+
}
|
|
66
92
|
}
|
|
67
93
|
}
|
|
68
94
|
}
|
|
95
|
+
|
|
96
|
+
@mixin _theme-from-tokens($tokens) {
|
|
97
|
+
@if ($tokens != ()) {
|
|
98
|
+
@include mdc-chip-theme.theme(map.get($tokens, tokens-mdc-chip.$prefix));
|
|
99
|
+
}
|
|
100
|
+
}
|
package/chips/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { _AbstractConstructor } from '@angular/material/core';
|
|
2
1
|
import { AfterContentInit } from '@angular/core';
|
|
3
2
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { CanUpdateErrorState } from '@angular/material/core';
|
|
5
3
|
import { ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { _Constructor } from '@angular/material/core';
|
|
7
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
8
5
|
import { Directionality } from '@angular/cdk/bidi';
|
|
9
6
|
import { DoCheck } from '@angular/core';
|
|
@@ -14,7 +11,7 @@ import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
|
14
11
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
15
12
|
import { FormGroupDirective } from '@angular/forms';
|
|
16
13
|
import * as i0 from '@angular/core';
|
|
17
|
-
import * as
|
|
14
|
+
import * as i1 from '@angular/material/core';
|
|
18
15
|
import { InjectionToken } from '@angular/core';
|
|
19
16
|
import { MatFormField } from '@angular/material/form-field';
|
|
20
17
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
@@ -31,26 +28,33 @@ import { QueryList } from '@angular/core';
|
|
|
31
28
|
import { RippleGlobalOptions } from '@angular/material/core';
|
|
32
29
|
import { Subject } from 'rxjs';
|
|
33
30
|
|
|
34
|
-
declare namespace
|
|
31
|
+
declare namespace i10 {
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
MatChipEditedEvent,
|
|
34
|
+
MatChipRow
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
declare namespace
|
|
38
|
+
declare namespace i11 {
|
|
41
39
|
export {
|
|
42
40
|
MatChipSet
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
declare namespace i2 {
|
|
45
|
+
export {
|
|
46
|
+
MatChipAction
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare namespace i3 {
|
|
47
51
|
export {
|
|
48
52
|
MatChipEvent,
|
|
49
53
|
MatChip
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
|
|
53
|
-
declare namespace
|
|
57
|
+
declare namespace i4 {
|
|
54
58
|
export {
|
|
55
59
|
MatChipAvatar,
|
|
56
60
|
MatChipTrailingIcon,
|
|
@@ -58,27 +62,27 @@ declare namespace i3 {
|
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
declare namespace
|
|
65
|
+
declare namespace i5 {
|
|
62
66
|
export {
|
|
63
67
|
MatChipEditInput
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
declare namespace
|
|
71
|
+
declare namespace i6 {
|
|
68
72
|
export {
|
|
69
73
|
MatChipGridChange,
|
|
70
74
|
MatChipGrid
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
declare namespace
|
|
78
|
+
declare namespace i7 {
|
|
75
79
|
export {
|
|
76
80
|
MatChipInputEvent,
|
|
77
81
|
MatChipInput
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
|
|
81
|
-
declare namespace
|
|
85
|
+
declare namespace i8 {
|
|
82
86
|
export {
|
|
83
87
|
MatChipListboxChange,
|
|
84
88
|
MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR,
|
|
@@ -86,20 +90,13 @@ declare namespace i7 {
|
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
declare namespace
|
|
93
|
+
declare namespace i9 {
|
|
90
94
|
export {
|
|
91
95
|
MatChipSelectionChange,
|
|
92
96
|
MatChipOption
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
99
|
|
|
96
|
-
declare namespace i9 {
|
|
97
|
-
export {
|
|
98
|
-
MatChipEditedEvent,
|
|
99
|
-
MatChipRow
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
100
|
/**
|
|
104
101
|
* Injection token used to avoid a circular dependency between the `MatChip` and `MatChipAction`.
|
|
105
102
|
*/
|
|
@@ -260,7 +257,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
260
257
|
/** Starts the focus monitoring process on the chip. */
|
|
261
258
|
private _monitorFocus;
|
|
262
259
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
263
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "role": { "alias": "role"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescription": { "alias": "aria-description"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon", "_allLeadingIcons", "_allTrailingIcons", "_allRemoveIcons"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],
|
|
260
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "role": { "alias": "role"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescription": { "alias": "aria-description"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon", "_allLeadingIcons", "_allTrailingIcons", "_allRemoveIcons"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
|
|
264
261
|
static ngAcceptInputType_removable: unknown;
|
|
265
262
|
static ngAcceptInputType_highlighted: unknown;
|
|
266
263
|
static ngAcceptInputType_disableRipple: unknown;
|
|
@@ -312,7 +309,7 @@ declare class MatChipAction {
|
|
|
312
309
|
_handleClick(event: MouseEvent): void;
|
|
313
310
|
_handleKeydown(event: KeyboardEvent): void;
|
|
314
311
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAction, never>;
|
|
315
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "isInteractive": { "alias": "isInteractive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_allowFocusWhenDisabled": { "alias": "_allowFocusWhenDisabled"; "required": false; }; }, {}, never, never,
|
|
312
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "isInteractive": { "alias": "isInteractive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_allowFocusWhenDisabled": { "alias": "_allowFocusWhenDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
316
313
|
static ngAcceptInputType_disabled: unknown;
|
|
317
314
|
static ngAcceptInputType_tabIndex: unknown;
|
|
318
315
|
}
|
|
@@ -320,7 +317,7 @@ declare class MatChipAction {
|
|
|
320
317
|
/** Avatar image within a chip. */
|
|
321
318
|
export declare class MatChipAvatar {
|
|
322
319
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAvatar, never>;
|
|
323
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAvatar, "mat-chip-avatar, [matChipAvatar]", never, {}, {}, never, never,
|
|
320
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAvatar, "mat-chip-avatar, [matChipAvatar]", never, {}, {}, never, never, true, never>;
|
|
324
321
|
}
|
|
325
322
|
|
|
326
323
|
/** Represents an event fired on an individual `mat-chip` when it is edited. */
|
|
@@ -343,7 +340,7 @@ export declare class MatChipEditInput {
|
|
|
343
340
|
getValue(): string;
|
|
344
341
|
private _moveCursorToEndOfInput;
|
|
345
342
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipEditInput, never>;
|
|
346
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipEditInput, "span[matChipEditInput]", never, {}, {}, never, never,
|
|
343
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipEditInput, "span[matChipEditInput]", never, {}, {}, never, never, true, never>;
|
|
347
344
|
}
|
|
348
345
|
|
|
349
346
|
/** Represents an event fired on an individual `mat-chip`. */
|
|
@@ -356,7 +353,8 @@ export declare interface MatChipEvent {
|
|
|
356
353
|
* An extension of the MatChipSet component used with MatChipRow chips and
|
|
357
354
|
* the matChipInputFor directive.
|
|
358
355
|
*/
|
|
359
|
-
export declare class MatChipGrid extends
|
|
356
|
+
export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy {
|
|
357
|
+
ngControl: NgControl;
|
|
360
358
|
/**
|
|
361
359
|
* Implemented as part of MatFormFieldControl.
|
|
362
360
|
* @docs-private
|
|
@@ -365,6 +363,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
365
363
|
/** The chip input to add more chips */
|
|
366
364
|
protected _chipInput: MatChipTextControl;
|
|
367
365
|
protected _defaultRole: string;
|
|
366
|
+
private _errorStateTracker;
|
|
368
367
|
/**
|
|
369
368
|
* List of element ids to propagate to the chipInput's aria-describedby attribute.
|
|
370
369
|
*/
|
|
@@ -424,7 +423,8 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
424
423
|
set value(value: any);
|
|
425
424
|
protected _value: any[];
|
|
426
425
|
/** An object used to control when error messages are shown. */
|
|
427
|
-
errorStateMatcher: ErrorStateMatcher;
|
|
426
|
+
get errorStateMatcher(): ErrorStateMatcher;
|
|
427
|
+
set errorStateMatcher(value: ErrorStateMatcher);
|
|
428
428
|
/** Combined stream of all of the child chips' blur events. */
|
|
429
429
|
get chipBlurChanges(): Observable<MatChipEvent>;
|
|
430
430
|
/** Emits when the chip grid value has been changed by the user. */
|
|
@@ -436,6 +436,15 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
436
436
|
*/
|
|
437
437
|
readonly valueChange: EventEmitter<any>;
|
|
438
438
|
_chips: QueryList<MatChipRow>;
|
|
439
|
+
/**
|
|
440
|
+
* Emits whenever the component state changes and should cause the parent
|
|
441
|
+
* form-field to update. Implemented as part of `MatFormFieldControl`.
|
|
442
|
+
* @docs-private
|
|
443
|
+
*/
|
|
444
|
+
readonly stateChanges: Subject<void>;
|
|
445
|
+
/** Whether the chip grid is in an error state. */
|
|
446
|
+
get errorState(): boolean;
|
|
447
|
+
set errorState(value: boolean);
|
|
439
448
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngControl: NgControl);
|
|
440
449
|
ngAfterContentInit(): void;
|
|
441
450
|
ngAfterViewInit(): void;
|
|
@@ -478,6 +487,8 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
478
487
|
* @docs-private
|
|
479
488
|
*/
|
|
480
489
|
setDisabledState(isDisabled: boolean): void;
|
|
490
|
+
/** Refreshes the error state of the chip grid. */
|
|
491
|
+
updateErrorState(): void;
|
|
481
492
|
/** When blurred, mark the field as touched when focus moved outside the chip grid. */
|
|
482
493
|
_blur(): void;
|
|
483
494
|
/**
|
|
@@ -494,47 +505,11 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
494
505
|
/** Mark the field as touched */
|
|
495
506
|
private _markAsTouched;
|
|
496
507
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
497
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"],
|
|
508
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"], true, never>;
|
|
498
509
|
static ngAcceptInputType_disabled: unknown;
|
|
499
510
|
static ngAcceptInputType_required: unknown;
|
|
500
511
|
}
|
|
501
512
|
|
|
502
|
-
/**
|
|
503
|
-
* Boilerplate for applying mixins to MatChipGrid.
|
|
504
|
-
* Important! this class needs to be marked as a component or a directive, because
|
|
505
|
-
* leaving it without metadata cuases the framework to execute the host bindings multiple
|
|
506
|
-
* times which breaks the keyboard navigation. We can't use `@Directive()` here, because
|
|
507
|
-
* `MatChipSet` is a component. We should able to remove this class altogether once
|
|
508
|
-
* the error state is moved away from using mixins.
|
|
509
|
-
* @docs-private
|
|
510
|
-
*/
|
|
511
|
-
declare class MatChipGridBase extends MatChipSet {
|
|
512
|
-
_defaultErrorStateMatcher: ErrorStateMatcher;
|
|
513
|
-
_parentForm: NgForm;
|
|
514
|
-
_parentFormGroup: FormGroupDirective;
|
|
515
|
-
/**
|
|
516
|
-
* Form control bound to the component.
|
|
517
|
-
* Implemented as part of `MatFormFieldControl`.
|
|
518
|
-
* @docs-private
|
|
519
|
-
*/
|
|
520
|
-
ngControl: NgControl;
|
|
521
|
-
/**
|
|
522
|
-
* Emits whenever the component state changes and should cause the parent
|
|
523
|
-
* form-field to update. Implemented as part of `MatFormFieldControl`.
|
|
524
|
-
* @docs-private
|
|
525
|
-
*/
|
|
526
|
-
readonly stateChanges: Subject<void>;
|
|
527
|
-
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, _defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective,
|
|
528
|
-
/**
|
|
529
|
-
* Form control bound to the component.
|
|
530
|
-
* Implemented as part of `MatFormFieldControl`.
|
|
531
|
-
* @docs-private
|
|
532
|
-
*/
|
|
533
|
-
ngControl: NgControl);
|
|
534
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGridBase, never>;
|
|
535
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGridBase, "ng-component", never, {}, {}, never, never, false, never>;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
513
|
/** Change event object that is emitted when the chip grid value has changed. */
|
|
539
514
|
export declare class MatChipGridChange {
|
|
540
515
|
/** Chip grid that emitted the event. */
|
|
@@ -548,8 +523,6 @@ export declare class MatChipGridChange {
|
|
|
548
523
|
value: any);
|
|
549
524
|
}
|
|
550
525
|
|
|
551
|
-
declare const _MatChipGridMixinBase: _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & typeof MatChipGridBase;
|
|
552
|
-
|
|
553
526
|
/**
|
|
554
527
|
* Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.
|
|
555
528
|
* May be placed inside or outside of a `<mat-chip-grid>`.
|
|
@@ -612,7 +585,7 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
612
585
|
/** Checks whether a keycode is one of the configured separators. */
|
|
613
586
|
private _isSeparatorKey;
|
|
614
587
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipInput, [null, null, { optional: true; }]>;
|
|
615
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipInput, "input[matChipInputFor]", ["matChipInput", "matChipInputFor"], { "chipGrid": { "alias": "matChipInputFor"; "required": false; }; "addOnBlur": { "alias": "matChipInputAddOnBlur"; "required": false; }; "separatorKeyCodes": { "alias": "matChipInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipEnd": "matChipInputTokenEnd"; }, never, never,
|
|
588
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipInput, "input[matChipInputFor]", ["matChipInput", "matChipInputFor"], { "chipGrid": { "alias": "matChipInputFor"; "required": false; }; "addOnBlur": { "alias": "matChipInputAddOnBlur"; "required": false; }; "separatorKeyCodes": { "alias": "matChipInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipEnd": "matChipInputTokenEnd"; }, never, never, true, never>;
|
|
616
589
|
static ngAcceptInputType_addOnBlur: unknown;
|
|
617
590
|
static ngAcceptInputType_disabled: unknown;
|
|
618
591
|
}
|
|
@@ -746,7 +719,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
746
719
|
*/
|
|
747
720
|
protected _skipPredicate(action: MatChipAction): boolean;
|
|
748
721
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipListbox, never>;
|
|
749
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "multiple": { "alias": "multiple"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["_chips"], ["*"],
|
|
722
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "multiple": { "alias": "multiple"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["_chips"], ["*"], true, never>;
|
|
750
723
|
static ngAcceptInputType_multiple: unknown;
|
|
751
724
|
static ngAcceptInputType_selectable: unknown;
|
|
752
725
|
static ngAcceptInputType_required: unknown;
|
|
@@ -826,7 +799,7 @@ export declare class MatChipOption extends MatChip implements OnInit {
|
|
|
826
799
|
_hasLeadingGraphic(): boolean;
|
|
827
800
|
_setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean): void;
|
|
828
801
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipOption, never>;
|
|
829
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],
|
|
802
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
|
|
830
803
|
static ngAcceptInputType_selectable: unknown;
|
|
831
804
|
static ngAcceptInputType_selected: unknown;
|
|
832
805
|
}
|
|
@@ -851,7 +824,7 @@ export declare class MatChipRemove extends MatChipAction {
|
|
|
851
824
|
_handleClick(event: MouseEvent): void;
|
|
852
825
|
_handleKeydown(event: KeyboardEvent): void;
|
|
853
826
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRemove, never>;
|
|
854
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipRemove, "[matChipRemove]", never, {}, {}, never, never,
|
|
827
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipRemove, "[matChipRemove]", never, {}, {}, never, never, true, never>;
|
|
855
828
|
}
|
|
856
829
|
|
|
857
830
|
/**
|
|
@@ -889,7 +862,7 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
|
|
|
889
862
|
*/
|
|
890
863
|
private _getEditInput;
|
|
891
864
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
892
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "editable": { "alias": "editable"; "required": false; }; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "[matChipEditInput]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],
|
|
865
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "editable": { "alias": "editable"; "required": false; }; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "[matChipEditInput]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
|
|
893
866
|
}
|
|
894
867
|
|
|
895
868
|
/** Default options, for the chips module, that can be overridden. */
|
|
@@ -1006,14 +979,14 @@ export declare class MatChipSet implements AfterViewInit, OnDestroy {
|
|
|
1006
979
|
*/
|
|
1007
980
|
private _redirectDestroyedChipFocus;
|
|
1008
981
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
|
|
1009
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["_chips"], ["*"],
|
|
982
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["_chips"], ["*"], true, never>;
|
|
1010
983
|
static ngAcceptInputType_disabled: unknown;
|
|
1011
984
|
static ngAcceptInputType_tabIndex: unknown;
|
|
1012
985
|
}
|
|
1013
986
|
|
|
1014
987
|
export declare class MatChipsModule {
|
|
1015
988
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
|
|
1016
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.
|
|
989
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatChipAction, typeof i3.MatChip, typeof i4.MatChipAvatar, typeof i5.MatChipEditInput, typeof i6.MatChipGrid, typeof i7.MatChipInput, typeof i8.MatChipListbox, typeof i9.MatChipOption, typeof i4.MatChipRemove, typeof i10.MatChipRow, typeof i11.MatChipSet, typeof i4.MatChipTrailingIcon], [typeof i1.MatCommonModule, typeof i3.MatChip, typeof i4.MatChipAvatar, typeof i5.MatChipEditInput, typeof i6.MatChipGrid, typeof i7.MatChipInput, typeof i8.MatChipListbox, typeof i9.MatChipOption, typeof i4.MatChipRemove, typeof i10.MatChipRow, typeof i11.MatChipSet, typeof i4.MatChipTrailingIcon]>;
|
|
1017
990
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatChipsModule>;
|
|
1018
991
|
}
|
|
1019
992
|
|
|
@@ -1043,7 +1016,7 @@ export declare class MatChipTrailingIcon extends MatChipAction {
|
|
|
1043
1016
|
isInteractive: boolean;
|
|
1044
1017
|
_isPrimary: boolean;
|
|
1045
1018
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipTrailingIcon, never>;
|
|
1046
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipTrailingIcon, "mat-chip-trailing-icon, [matChipTrailingIcon]", never, {}, {}, never, never,
|
|
1019
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipTrailingIcon, "mat-chip-trailing-icon, [matChipTrailingIcon]", never, {}, {}, never, never, true, never>;
|
|
1047
1020
|
}
|
|
1048
1021
|
|
|
1049
1022
|
export { }
|
package/core/_core-theme.scss
CHANGED
|
@@ -60,10 +60,8 @@
|
|
|
60
60
|
@mixin density($theme) {
|
|
61
61
|
@include option-theme.density($theme);
|
|
62
62
|
@include optgroup-theme.density($theme);
|
|
63
|
+
@include pseudo-checkbox-theme.density($theme);
|
|
63
64
|
@include ripple-theme.density($theme);
|
|
64
|
-
|
|
65
|
-
// TODO(mmalerba): add density mixins for these.
|
|
66
|
-
// @include pseudo-checkbox-theme.density($theme);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
// Mixin that renders all of the core styles that depend on the theme.
|