@angular/material 17.0.0 → 17.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +0 -2
- package/button/_button-theme.scss +4 -0
- package/button/_icon-button-theme.scss +5 -1
- package/card/testing/index.d.ts +1 -1
- package/checkbox/index.d.ts +1 -1
- package/chips/index.d.ts +71 -67
- package/core/index.d.ts +1 -1
- package/core/ripple/_ripple-theme.scss +51 -19
- package/core/tokens/m2/_index.scss +29 -8
- package/datepicker/index.d.ts +21 -23
- package/datepicker/testing/index.d.ts +1 -1
- package/dialog/index.d.ts +1 -1
- package/dialog/testing/index.d.ts +1 -1
- package/esm2022/autocomplete/autocomplete-trigger.mjs +7 -7
- package/esm2022/button/icon-button.mjs +4 -4
- package/esm2022/card/testing/card-harness.mjs +9 -1
- package/esm2022/checkbox/checkbox.mjs +29 -14
- package/esm2022/chips/chip-action.mjs +14 -13
- package/esm2022/chips/chip-grid.mjs +29 -16
- package/esm2022/chips/chip-input.mjs +14 -17
- package/esm2022/chips/chip-listbox.mjs +19 -22
- package/esm2022/chips/chip-option.mjs +11 -10
- package/esm2022/chips/chip-row.mjs +4 -4
- package/esm2022/chips/chip-set.mjs +19 -18
- package/esm2022/chips/chip.mjs +49 -42
- package/esm2022/core/ripple/ripple-ref.mjs +10 -2
- package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +2 -2
- package/esm2022/datepicker/date-range-input.mjs +10 -10
- package/esm2022/datepicker/datepicker-base.mjs +41 -49
- package/esm2022/datepicker/datepicker-input-base.mjs +6 -6
- package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
- package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
- package/esm2022/dialog/dialog-ref.mjs +10 -4
- package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
- package/esm2022/dialog/testing/public-api.mjs +2 -2
- package/esm2022/expansion/accordion.mjs +7 -13
- package/esm2022/expansion/expansion-panel-header.mjs +13 -13
- package/esm2022/expansion/expansion-panel.mjs +6 -6
- package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
- package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
- package/esm2022/icon/icon.mjs +24 -28
- package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
- package/esm2022/icon/testing/icon-harness.mjs +4 -3
- package/esm2022/list/list-base.mjs +6 -6
- package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
- package/esm2022/list/testing/public-api.mjs +2 -2
- package/esm2022/paginator/paginator.mjs +32 -35
- package/esm2022/progress-bar/progress-bar.mjs +25 -20
- package/esm2022/progress-spinner/progress-spinner.mjs +34 -33
- package/esm2022/radio/radio.mjs +40 -34
- package/esm2022/select/select.mjs +45 -37
- package/esm2022/slider/slider-input.mjs +23 -22
- package/esm2022/slider/slider-interface.mjs +16 -1
- package/esm2022/slider/slider-thumb.mjs +6 -6
- package/esm2022/slider/slider.mjs +73 -72
- package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
- package/esm2022/slider/testing/slider-harness.mjs +4 -3
- package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
- package/esm2022/sort/sort-header.mjs +16 -24
- package/esm2022/sort/sort.mjs +12 -19
- package/esm2022/stepper/step-header.mjs +7 -12
- package/esm2022/stepper/stepper.mjs +1 -1
- package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
- package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
- package/esm2022/tabs/paginated-tab-header.mjs +12 -18
- package/esm2022/tabs/tab-group.mjs +54 -70
- package/esm2022/tabs/tab-header.mjs +7 -13
- package/esm2022/tabs/tab-label-wrapper.mjs +12 -8
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +43 -37
- package/esm2022/tabs/tab.mjs +12 -12
- package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
- package/esm2022/toolbar/toolbar.mjs +11 -16
- package/esm2022/tree/node.mjs +20 -20
- package/esm2022/tree/padding.mjs +11 -4
- package/expansion/index.d.ts +11 -19
- package/expansion/testing/index.d.ts +1 -1
- package/fesm2022/autocomplete.mjs +6 -6
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/button.mjs +4 -4
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs +9 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +29 -14
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +144 -119
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +20 -12
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs +11 -4
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +57 -62
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +11 -4
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +10 -4
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs +14 -6
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +22 -26
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +9 -3
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +10 -3
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +24 -27
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +18 -6
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +5 -5
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/paginator.mjs +31 -34
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +25 -19
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +34 -32
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +41 -34
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +44 -36
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs +11 -4
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +109 -91
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/sort.mjs +25 -38
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs +10 -3
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +8 -12
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/tabs.mjs +130 -141
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs +7 -2
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +11 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tree.mjs +22 -21
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +85 -49
- package/grid-list/_grid-list-theme.scss +47 -14
- package/grid-list/testing/index.d.ts +1 -1
- package/icon/index.d.ts +10 -16
- package/icon/testing/index.d.ts +1 -1
- package/input/_input-theme.scss +39 -12
- package/list/_list-theme.scss +115 -83
- package/list/testing/index.d.ts +2 -2
- package/package.json +7 -7
- package/paginator/index.d.ts +16 -17
- 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 +12 -15
- package/progress-spinner/index.d.ts +14 -15
- package/radio/index.d.ts +20 -22
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +28 -29
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +21 -19
- package/schematics/ng-generate/mdc-migration/index_bundled.js +55 -48
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +9 -8
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +1 -2
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/index.d.ts +22 -17
- package/slide-toggle/_slide-toggle-theme.scss +78 -44
- package/slider/index.d.ts +30 -30
- package/slider/testing/index.d.ts +1 -1
- package/sort/_sort-theme.scss +51 -20
- package/sort/index.d.ts +15 -20
- package/stepper/_stepper-theme.scss +58 -25
- package/stepper/index.d.ts +5 -15
- package/stepper/testing/index.d.ts +1 -1
- package/table/_table-theme.scss +53 -20
- package/tabs/_tabs-theme.scss +87 -51
- package/tabs/index.d.ts +61 -64
- package/toolbar/index.d.ts +5 -12
- package/toolbar/testing/index.d.ts +1 -1
- package/tree/_tree-theme.scss +53 -21
- package/tree/index.d.ts +13 -15
package/autocomplete/index.d.ts
CHANGED
|
@@ -400,8 +400,6 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
400
400
|
* the state of the trigger right before the opening sequence was finished.
|
|
401
401
|
*/
|
|
402
402
|
private _emitOpened;
|
|
403
|
-
/** Intended to be called when the panel is attached. Captures the current value of the input. */
|
|
404
|
-
private _captureValueOnAttach;
|
|
405
403
|
/** Destroys the autocomplete suggestion panel. */
|
|
406
404
|
private _destroyPanel;
|
|
407
405
|
private _assignOptionValue;
|
|
@@ -168,6 +168,10 @@
|
|
|
168
168
|
@include mdc-helpers.using-mdc-typography($theme) {
|
|
169
169
|
@include mdc-button.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
.mat-mdc-raised-button {
|
|
173
|
+
line-height: inherit;
|
|
174
|
+
}
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
@mixin density($theme) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button;
|
|
5
5
|
@use '../core/tokens/m2/mat/icon-button' as tokens-mat-icon-button;
|
|
6
6
|
|
|
7
|
+
@use '../core/style/sass-utils';
|
|
7
8
|
@use './button-base';
|
|
8
9
|
@use '../core/tokens/token-utils';
|
|
9
10
|
@use '../core/theming/theming';
|
|
@@ -11,7 +12,10 @@
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@mixin base($theme) {
|
|
14
|
-
//
|
|
15
|
+
// Add default values for tokens not related to color, typography, or density.
|
|
16
|
+
@include sass-utils.current-selector-or-root() {
|
|
17
|
+
@include mdc-icon-button-theme.theme(tokens-mdc-icon-button.get-unthemable-tokens());
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
@mixin _icon-button-variant($theme, $palette) {
|
package/card/testing/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class MatCardHarness extends ContentContainerComponentHarness<Mat
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/** Selectors for different sections of the mat-card that can container user content. */
|
|
37
|
-
export declare
|
|
37
|
+
export declare enum MatCardSection {
|
|
38
38
|
HEADER = ".mat-mdc-card-header",
|
|
39
39
|
CONTENT = ".mat-mdc-card-content",
|
|
40
40
|
ACTIONS = ".mat-mdc-card-actions",
|
package/checkbox/index.d.ts
CHANGED
|
@@ -227,7 +227,7 @@ export declare class _MatCheckboxRequiredValidatorModule {
|
|
|
227
227
|
* Represents the different states that require custom transitions between them.
|
|
228
228
|
* @docs-private
|
|
229
229
|
*/
|
|
230
|
-
export declare
|
|
230
|
+
export declare enum TransitionCheckState {
|
|
231
231
|
/** The initial state of the component before any user interaction. */
|
|
232
232
|
Init = 0,
|
|
233
233
|
/** The state representing the component when it's becoming checked. */
|
package/chips/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { _AbstractConstructor } from '@angular/material/core';
|
|
2
2
|
import { AfterContentInit } from '@angular/core';
|
|
3
3
|
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
-
import { CanColor } from '@angular/material/core';
|
|
6
|
-
import { CanDisable } from '@angular/material/core';
|
|
7
|
-
import { CanDisableRipple } from '@angular/material/core';
|
|
8
4
|
import { CanUpdateErrorState } from '@angular/material/core';
|
|
9
5
|
import { ChangeDetectorRef } from '@angular/core';
|
|
10
6
|
import { _Constructor } from '@angular/material/core';
|
|
@@ -17,7 +13,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
17
13
|
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
18
14
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
19
15
|
import { FormGroupDirective } from '@angular/forms';
|
|
20
|
-
import { HasTabIndex } from '@angular/material/core';
|
|
21
16
|
import * as i0 from '@angular/core';
|
|
22
17
|
import * as i11 from '@angular/material/core';
|
|
23
18
|
import { InjectionToken } from '@angular/core';
|
|
@@ -146,8 +141,9 @@ export declare const MAT_CHIPS_DEFAULT_OPTIONS: InjectionToken<MatChipsDefaultOp
|
|
|
146
141
|
*
|
|
147
142
|
* Extended by MatChipOption and MatChipRow for different interaction patterns.
|
|
148
143
|
*/
|
|
149
|
-
export declare class MatChip
|
|
144
|
+
export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck, OnDestroy {
|
|
150
145
|
_changeDetectorRef: ChangeDetectorRef;
|
|
146
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
151
147
|
protected _ngZone: NgZone;
|
|
152
148
|
private _focusMonitor;
|
|
153
149
|
private _globalRippleOptions?;
|
|
@@ -191,18 +187,22 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
191
187
|
get value(): any;
|
|
192
188
|
set value(value: any);
|
|
193
189
|
protected _value: any;
|
|
190
|
+
/** Theme color palette of the chip. */
|
|
191
|
+
color?: string | null;
|
|
194
192
|
/**
|
|
195
193
|
* Determines whether or not the chip displays the remove styling and emits (removed) events.
|
|
196
194
|
*/
|
|
197
|
-
|
|
198
|
-
set removable(value: BooleanInput);
|
|
199
|
-
protected _removable: boolean;
|
|
195
|
+
removable: boolean;
|
|
200
196
|
/**
|
|
201
197
|
* Colors the chip for emphasis as if it were selected.
|
|
202
198
|
*/
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
highlighted: boolean;
|
|
200
|
+
/** Whether the ripple effect is disabled or not. */
|
|
201
|
+
disableRipple: boolean;
|
|
202
|
+
/** Whether the chip is disabled. */
|
|
203
|
+
disabled: boolean;
|
|
204
|
+
/** Tab index of the chip. */
|
|
205
|
+
tabIndex: number;
|
|
206
206
|
/** Emitted when a chip is to be removed. */
|
|
207
207
|
readonly removed: EventEmitter<MatChipEvent>;
|
|
208
208
|
/** Emitted when the chip is destroyed. */
|
|
@@ -229,7 +229,7 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
229
229
|
* Used to improve initial load time of large applications.
|
|
230
230
|
*/
|
|
231
231
|
_rippleLoader: MatRippleLoader;
|
|
232
|
-
constructor(_changeDetectorRef: ChangeDetectorRef,
|
|
232
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
233
233
|
ngOnInit(): void;
|
|
234
234
|
ngAfterViewInit(): void;
|
|
235
235
|
ngAfterContentInit(): void;
|
|
@@ -255,17 +255,24 @@ export declare class MatChip extends _MatChipMixinBase implements OnInit, AfterV
|
|
|
255
255
|
_getActions(): MatChipAction[];
|
|
256
256
|
/** Handles interactions with the primary action of the chip. */
|
|
257
257
|
_handlePrimaryActionInteraction(): void;
|
|
258
|
+
/** Gets the tabindex of the chip. */
|
|
259
|
+
_getTabIndex(): number | null;
|
|
258
260
|
/** Starts the focus monitoring process on the chip. */
|
|
259
261
|
private _monitorFocus;
|
|
260
262
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
261
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "
|
|
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]"], false, never>;
|
|
264
|
+
static ngAcceptInputType_removable: unknown;
|
|
265
|
+
static ngAcceptInputType_highlighted: unknown;
|
|
266
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
267
|
+
static ngAcceptInputType_disabled: unknown;
|
|
268
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
/**
|
|
265
272
|
* Section within a chip.
|
|
266
273
|
* @docs-private
|
|
267
274
|
*/
|
|
268
|
-
declare class MatChipAction
|
|
275
|
+
declare class MatChipAction {
|
|
269
276
|
_elementRef: ElementRef<HTMLElement>;
|
|
270
277
|
protected _parentChip: {
|
|
271
278
|
_handlePrimaryActionInteraction(): void;
|
|
@@ -279,8 +286,10 @@ declare class MatChipAction extends _MatChipActionMixinBase implements HasTabInd
|
|
|
279
286
|
_isPrimary: boolean;
|
|
280
287
|
/** Whether the action is disabled. */
|
|
281
288
|
get disabled(): boolean;
|
|
282
|
-
set disabled(value:
|
|
289
|
+
set disabled(value: boolean);
|
|
283
290
|
private _disabled;
|
|
291
|
+
/** Tab index of the action. */
|
|
292
|
+
tabIndex: number;
|
|
284
293
|
/**
|
|
285
294
|
* Private API to allow focusing this chip when it is disabled.
|
|
286
295
|
*/
|
|
@@ -303,15 +312,11 @@ declare class MatChipAction extends _MatChipActionMixinBase implements HasTabInd
|
|
|
303
312
|
_handleClick(event: MouseEvent): void;
|
|
304
313
|
_handleKeydown(event: KeyboardEvent): void;
|
|
305
314
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAction, never>;
|
|
306
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
declare abstract class _MatChipActionBase {
|
|
310
|
-
abstract disabled: boolean;
|
|
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, false, never>;
|
|
316
|
+
static ngAcceptInputType_disabled: unknown;
|
|
317
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
311
318
|
}
|
|
312
319
|
|
|
313
|
-
declare const _MatChipActionMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof _MatChipActionBase;
|
|
314
|
-
|
|
315
320
|
/** Avatar image within a chip. */
|
|
316
321
|
export declare class MatChipAvatar {
|
|
317
322
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAvatar, never>;
|
|
@@ -379,7 +384,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
379
384
|
* @docs-private
|
|
380
385
|
*/
|
|
381
386
|
get disabled(): boolean;
|
|
382
|
-
set disabled(value:
|
|
387
|
+
set disabled(value: boolean);
|
|
383
388
|
/**
|
|
384
389
|
* Implemented as part of MatFormFieldControl.
|
|
385
390
|
* @docs-private
|
|
@@ -404,7 +409,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
404
409
|
* @docs-private
|
|
405
410
|
*/
|
|
406
411
|
get required(): boolean;
|
|
407
|
-
set required(value:
|
|
412
|
+
set required(value: boolean);
|
|
408
413
|
protected _required: boolean | undefined;
|
|
409
414
|
/**
|
|
410
415
|
* Implemented as part of MatFormFieldControl.
|
|
@@ -489,11 +494,18 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
489
494
|
/** Mark the field as touched */
|
|
490
495
|
private _markAsTouched;
|
|
491
496
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
492
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "
|
|
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"], ["*"], false, never>;
|
|
498
|
+
static ngAcceptInputType_disabled: unknown;
|
|
499
|
+
static ngAcceptInputType_required: unknown;
|
|
493
500
|
}
|
|
494
501
|
|
|
495
502
|
/**
|
|
496
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.
|
|
497
509
|
* @docs-private
|
|
498
510
|
*/
|
|
499
511
|
declare class MatChipGridBase extends MatChipSet {
|
|
@@ -519,6 +531,8 @@ declare class MatChipGridBase extends MatChipSet {
|
|
|
519
531
|
* @docs-private
|
|
520
532
|
*/
|
|
521
533
|
ngControl: NgControl);
|
|
534
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGridBase, never>;
|
|
535
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGridBase, "ng-component", never, {}, {}, never, never, false, never>;
|
|
522
536
|
}
|
|
523
537
|
|
|
524
538
|
/** Change event object that is emitted when the chip grid value has changed. */
|
|
@@ -546,15 +560,14 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
546
560
|
private _focusLastChipOnBackspace;
|
|
547
561
|
/** Whether the control is focused. */
|
|
548
562
|
focused: boolean;
|
|
549
|
-
_chipGrid: MatChipGrid;
|
|
550
563
|
/** Register input for chip list */
|
|
564
|
+
get chipGrid(): MatChipGrid;
|
|
551
565
|
set chipGrid(value: MatChipGrid);
|
|
566
|
+
private _chipGrid;
|
|
552
567
|
/**
|
|
553
568
|
* Whether or not the chipEnd event will be emitted when the input is blurred.
|
|
554
569
|
*/
|
|
555
|
-
|
|
556
|
-
set addOnBlur(value: BooleanInput);
|
|
557
|
-
_addOnBlur: boolean;
|
|
570
|
+
addOnBlur: boolean;
|
|
558
571
|
/**
|
|
559
572
|
* The list of key codes that will trigger a chipEnd event.
|
|
560
573
|
*
|
|
@@ -569,7 +582,7 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
569
582
|
id: string;
|
|
570
583
|
/** Whether the input is disabled. */
|
|
571
584
|
get disabled(): boolean;
|
|
572
|
-
set disabled(value:
|
|
585
|
+
set disabled(value: boolean);
|
|
573
586
|
private _disabled;
|
|
574
587
|
/** Whether the input is empty. */
|
|
575
588
|
get empty(): boolean;
|
|
@@ -600,6 +613,8 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
600
613
|
private _isSeparatorKey;
|
|
601
614
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipInput, [null, null, { optional: true; }]>;
|
|
602
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, false, never>;
|
|
616
|
+
static ngAcceptInputType_addOnBlur: unknown;
|
|
617
|
+
static ngAcceptInputType_disabled: unknown;
|
|
603
618
|
}
|
|
604
619
|
|
|
605
620
|
/** Represents an input event on a `matChipInput`. */
|
|
@@ -638,7 +653,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
638
653
|
private _defaultOptions;
|
|
639
654
|
/** Whether the user should be allowed to select multiple chips. */
|
|
640
655
|
get multiple(): boolean;
|
|
641
|
-
set multiple(value:
|
|
656
|
+
set multiple(value: boolean);
|
|
642
657
|
private _multiple;
|
|
643
658
|
/** The array of selected chips inside the chip listbox. */
|
|
644
659
|
get selected(): MatChipOption[] | MatChipOption;
|
|
@@ -651,7 +666,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
651
666
|
* the chips inside the chip listbox are always ignored.
|
|
652
667
|
*/
|
|
653
668
|
get selectable(): boolean;
|
|
654
|
-
set selectable(value:
|
|
669
|
+
set selectable(value: boolean);
|
|
655
670
|
protected _selectable: boolean;
|
|
656
671
|
/**
|
|
657
672
|
* A function to compare the option values with the selected values. The first argument
|
|
@@ -660,12 +675,10 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
660
675
|
*/
|
|
661
676
|
compareWith: (o1: any, o2: any) => boolean;
|
|
662
677
|
/** Whether this chip listbox is required. */
|
|
663
|
-
|
|
664
|
-
set required(value: BooleanInput);
|
|
665
|
-
protected _required: boolean;
|
|
678
|
+
required: boolean;
|
|
666
679
|
/** Whether checkmark indicator for single-selection options is hidden. */
|
|
667
680
|
get hideSingleSelectionIndicator(): boolean;
|
|
668
|
-
set hideSingleSelectionIndicator(value:
|
|
681
|
+
set hideSingleSelectionIndicator(value: boolean);
|
|
669
682
|
private _hideSingleSelectionIndicator;
|
|
670
683
|
/** Combined stream of all of the child chips' selection change events. */
|
|
671
684
|
get chipSelectionChanges(): Observable<MatChipSelectionChange>;
|
|
@@ -733,7 +746,11 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
733
746
|
*/
|
|
734
747
|
protected _skipPredicate(action: MatChipAction): boolean;
|
|
735
748
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipListbox, never>;
|
|
736
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", 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"], ["*"], false, never>;
|
|
750
|
+
static ngAcceptInputType_multiple: unknown;
|
|
751
|
+
static ngAcceptInputType_selectable: unknown;
|
|
752
|
+
static ngAcceptInputType_required: unknown;
|
|
753
|
+
static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
|
|
737
754
|
}
|
|
738
755
|
|
|
739
756
|
/** Change event object that is emitted when the chip listbox value has changed. */
|
|
@@ -749,16 +766,6 @@ export declare class MatChipListboxChange {
|
|
|
749
766
|
value: any);
|
|
750
767
|
}
|
|
751
768
|
|
|
752
|
-
/**
|
|
753
|
-
* Boilerplate for applying mixins to MatChip.
|
|
754
|
-
* @docs-private
|
|
755
|
-
*/
|
|
756
|
-
declare const _MatChipMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & {
|
|
757
|
-
new (_elementRef: ElementRef<HTMLElement>): {
|
|
758
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
|
|
762
769
|
/**
|
|
763
770
|
* An extension of the MatChip component that supports chip selection. Used with MatChipListbox.
|
|
764
771
|
*
|
|
@@ -782,11 +789,11 @@ export declare class MatChipOption extends MatChip implements OnInit {
|
|
|
782
789
|
* non-selectable if its parent chip list is not selectable.
|
|
783
790
|
*/
|
|
784
791
|
get selectable(): boolean;
|
|
785
|
-
set selectable(value:
|
|
792
|
+
set selectable(value: boolean);
|
|
786
793
|
protected _selectable: boolean;
|
|
787
794
|
/** Whether the chip is selected. */
|
|
788
795
|
get selected(): boolean;
|
|
789
|
-
set selected(value:
|
|
796
|
+
set selected(value: boolean);
|
|
790
797
|
private _selected;
|
|
791
798
|
/**
|
|
792
799
|
* The ARIA selected applied to the chip. Conforms to WAI ARIA best practices for listbox
|
|
@@ -819,7 +826,9 @@ export declare class MatChipOption extends MatChip implements OnInit {
|
|
|
819
826
|
_hasLeadingGraphic(): boolean;
|
|
820
827
|
_setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean): void;
|
|
821
828
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipOption, never>;
|
|
822
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", 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]"], false, never>;
|
|
830
|
+
static ngAcceptInputType_selectable: unknown;
|
|
831
|
+
static ngAcceptInputType_selected: unknown;
|
|
823
832
|
}
|
|
824
833
|
|
|
825
834
|
/**
|
|
@@ -880,7 +889,7 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
|
|
|
880
889
|
*/
|
|
881
890
|
private _getEditInput;
|
|
882
891
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
883
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "
|
|
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]"], false, never>;
|
|
884
893
|
}
|
|
885
894
|
|
|
886
895
|
/** Default options, for the chips module, that can be overridden. */
|
|
@@ -913,7 +922,7 @@ export declare class MatChipSelectionChange {
|
|
|
913
922
|
*
|
|
914
923
|
* Extended by MatChipListbox and MatChipGrid for different interaction patterns.
|
|
915
924
|
*/
|
|
916
|
-
export declare class MatChipSet
|
|
925
|
+
export declare class MatChipSet implements AfterViewInit, OnDestroy {
|
|
917
926
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
918
927
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
919
928
|
private _dir;
|
|
@@ -927,16 +936,20 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterVie
|
|
|
927
936
|
protected _defaultRole: string;
|
|
928
937
|
/** Combined stream of all of the child chips' focus events. */
|
|
929
938
|
get chipFocusChanges(): Observable<MatChipEvent>;
|
|
930
|
-
/** Combined stream of all of the child chips'
|
|
939
|
+
/** Combined stream of all of the child chips' destroy events. */
|
|
931
940
|
get chipDestroyedChanges(): Observable<MatChipEvent>;
|
|
941
|
+
/** Combined stream of all of the child chips' remove events. */
|
|
942
|
+
get chipRemovedChanges(): Observable<MatChipEvent>;
|
|
932
943
|
/** Whether the chip set is disabled. */
|
|
933
944
|
get disabled(): boolean;
|
|
934
|
-
set disabled(value:
|
|
945
|
+
set disabled(value: boolean);
|
|
935
946
|
protected _disabled: boolean;
|
|
936
947
|
/** Whether the chip list contains chips or not. */
|
|
937
948
|
get empty(): boolean;
|
|
938
949
|
/** The ARIA role applied to the chip set. */
|
|
939
950
|
get role(): string | null;
|
|
951
|
+
/** Tabindex of the chip set. */
|
|
952
|
+
tabIndex: number;
|
|
940
953
|
set role(value: string | null);
|
|
941
954
|
private _explicitRole;
|
|
942
955
|
/** Whether any of the chips inside of this chip-set has focus. */
|
|
@@ -993,20 +1006,11 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterVie
|
|
|
993
1006
|
*/
|
|
994
1007
|
private _redirectDestroyedChipFocus;
|
|
995
1008
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
|
|
996
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, ["_chips"], ["*"], false, never>;
|
|
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"], ["*"], false, never>;
|
|
1010
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1011
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
997
1012
|
}
|
|
998
1013
|
|
|
999
|
-
/**
|
|
1000
|
-
* Boilerplate for applying mixins to MatChipSet.
|
|
1001
|
-
* @docs-private
|
|
1002
|
-
*/
|
|
1003
|
-
declare abstract class MatChipSetBase {
|
|
1004
|
-
abstract disabled: boolean;
|
|
1005
|
-
constructor(_elementRef: ElementRef);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
declare const _MatChipSetMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof MatChipSetBase;
|
|
1009
|
-
|
|
1010
1014
|
export declare class MatChipsModule {
|
|
1011
1015
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
|
|
1012
1016
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.MatChipAction, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon], [typeof i11.MatCommonModule, typeof i11.MatRippleModule], [typeof i11.MatCommonModule, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon]>;
|
package/core/index.d.ts
CHANGED
|
@@ -1059,7 +1059,7 @@ export declare class RippleRenderer implements EventListenerObject {
|
|
|
1059
1059
|
|
|
1060
1060
|
|
|
1061
1061
|
/** Possible states for a ripple element. */
|
|
1062
|
-
export declare
|
|
1062
|
+
export declare enum RippleState {
|
|
1063
1063
|
FADING_IN = 0,
|
|
1064
1064
|
VISIBLE = 1,
|
|
1065
1065
|
FADING_OUT = 2,
|
|
@@ -1,44 +1,76 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '../tokens/m2/mat/ripple' as tokens-mat-ripple;
|
|
2
3
|
@use '../tokens/token-utils';
|
|
3
4
|
@use '../style/sass-utils';
|
|
4
|
-
|
|
5
5
|
@use '../theming/theming';
|
|
6
6
|
@use '../theming/inspection';
|
|
7
7
|
|
|
8
|
-
@mixin base($theme) {
|
|
8
|
+
@mixin base($theme) {
|
|
9
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
10
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
11
|
+
}
|
|
12
|
+
@else {}
|
|
13
|
+
}
|
|
9
14
|
|
|
10
15
|
@mixin color($theme) {
|
|
11
|
-
@
|
|
12
|
-
@include
|
|
13
|
-
|
|
16
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
17
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
18
|
+
}
|
|
19
|
+
@else {
|
|
20
|
+
@include sass-utils.current-selector-or-root() {
|
|
21
|
+
@include token-utils.create-token-values(tokens-mat-ripple.$prefix,
|
|
22
|
+
tokens-mat-ripple.get-color-tokens($theme));
|
|
23
|
+
}
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
@mixin typography($theme) {
|
|
18
|
-
@
|
|
19
|
-
@include
|
|
20
|
-
|
|
28
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
29
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
30
|
+
}
|
|
31
|
+
@else {
|
|
32
|
+
@include sass-utils.current-selector-or-root() {
|
|
33
|
+
@include token-utils.create-token-values(tokens-mat-ripple.$prefix,
|
|
34
|
+
tokens-mat-ripple.get-typography-tokens($theme));
|
|
35
|
+
}
|
|
21
36
|
}
|
|
22
37
|
}
|
|
23
38
|
|
|
24
39
|
@mixin density($theme) {
|
|
25
|
-
@
|
|
26
|
-
@include
|
|
27
|
-
|
|
40
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
41
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
42
|
+
}
|
|
43
|
+
@else {
|
|
44
|
+
@include sass-utils.current-selector-or-root() {
|
|
45
|
+
@include token-utils.create-token-values(tokens-mat-ripple.$prefix,
|
|
46
|
+
tokens-mat-ripple.get-density-tokens($theme));
|
|
47
|
+
}
|
|
28
48
|
}
|
|
29
49
|
}
|
|
30
50
|
|
|
31
51
|
@mixin theme($theme) {
|
|
32
52
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-ripple') {
|
|
33
|
-
@
|
|
34
|
-
|
|
35
|
-
@include color($theme);
|
|
36
|
-
}
|
|
37
|
-
@if inspection.theme-has($theme, density) {
|
|
38
|
-
@include density($theme);
|
|
53
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
54
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
39
55
|
}
|
|
40
|
-
@
|
|
41
|
-
@include
|
|
56
|
+
@else {
|
|
57
|
+
@include base($theme);
|
|
58
|
+
@if inspection.theme-has($theme, color) {
|
|
59
|
+
@include color($theme);
|
|
60
|
+
}
|
|
61
|
+
@if inspection.theme-has($theme, density) {
|
|
62
|
+
@include density($theme);
|
|
63
|
+
}
|
|
64
|
+
@if inspection.theme-has($theme, typography) {
|
|
65
|
+
@include typography($theme);
|
|
66
|
+
}
|
|
42
67
|
}
|
|
43
68
|
}
|
|
44
69
|
}
|
|
70
|
+
|
|
71
|
+
@mixin _theme-from-tokens($tokens) {
|
|
72
|
+
@if ($tokens != ()) {
|
|
73
|
+
@include token-utils.create-token-values(
|
|
74
|
+
tokens-mat-ripple.$prefix, map.get($tokens, tokens-mat-ripple.$prefix));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
3
|
@use '../../style/sass-utils';
|
|
4
|
-
|
|
5
4
|
@use './mat/card' as tokens-mat-card;
|
|
6
|
-
@use './mat/
|
|
5
|
+
@use './mat/form-field' as tokens-mat-form-field;
|
|
6
|
+
@use './mat/grid-list' as tokens-mat-grid-list;
|
|
7
7
|
@use './mat/radio' as tokens-mat-radio;
|
|
8
|
+
@use './mat/ripple' as tokens-mat-ripple;
|
|
9
|
+
@use './mat/slide-toggle' as tokens-mat-slide-toggle;
|
|
10
|
+
@use './mat/slider' as tokens-mat-slider;
|
|
8
11
|
@use './mat/snack-bar' as tokens-mat-snack-bar;
|
|
12
|
+
@use './mat/sort' as tokens-mat-sort;
|
|
13
|
+
@use './mat/stepper' as tokens-mat-stepper;
|
|
9
14
|
@use './mat/tab-header' as tokens-mat-tab-header;
|
|
10
15
|
@use './mat/tab-header-with-background' as tokens-mat-tab-header-with-background;
|
|
11
|
-
@use './mat/
|
|
16
|
+
@use './mat/table' as tokens-mat-table;
|
|
17
|
+
@use './mat/toolbar' as tokens-mat-toolbar;
|
|
18
|
+
@use './mat/tree' as tokens-mat-tree;
|
|
12
19
|
@use './mdc/checkbox' as tokens-mdc-checkbox;
|
|
13
20
|
@use './mdc/circular-progress' as tokens-mdc-circular-progress;
|
|
14
21
|
@use './mdc/dialog' as tokens-mdc-dialog;
|
|
15
22
|
@use './mdc/elevated-card' as tokens-mdc-elevated-card;
|
|
23
|
+
@use './mdc/filled-text-field' as tokens-mdc-filled-text-field;
|
|
16
24
|
@use './mdc/icon-button' as tokens-mdc-icon-button;
|
|
17
25
|
@use './mdc/linear-progress' as tokens-mdc-linear-progress;
|
|
18
26
|
@use './mdc/list' as tokens-mdc-list;
|
|
19
27
|
@use './mdc/outlined-card' as tokens-mdc-outlined-card;
|
|
28
|
+
@use './mdc/outlined-text-field' as tokens-mdc-outlined-text-field;
|
|
29
|
+
@use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
20
30
|
@use './mdc/radio' as tokens-mdc-radio;
|
|
31
|
+
@use './mdc/slider' as tokens-mdc-slider;
|
|
21
32
|
@use './mdc/snack-bar' as tokens-mdc-snack-bar;
|
|
33
|
+
@use './mdc/switch' as tokens-mdc-switch;
|
|
22
34
|
@use './mdc/tab' as tokens-mdc-tab;
|
|
23
35
|
@use './mdc/tab-indicator' as tokens-mdc-tab-indicator;
|
|
24
|
-
@use './mdc/slider' as tokens-mdc-slider;
|
|
25
|
-
@use './mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
26
36
|
|
|
27
37
|
/// Gets the tokens for the given theme, m2 tokens module, and theming system.
|
|
28
38
|
/// @param {Map} $theme The Angular Material theme object to generate token values from.
|
|
@@ -68,25 +78,36 @@
|
|
|
68
78
|
@function m2-tokens-from-theme($theme) {
|
|
69
79
|
@return sass-utils.deep-merge-all(
|
|
70
80
|
_get-tokens-for-module($theme, tokens-mat-card),
|
|
81
|
+
_get-tokens-for-module($theme, tokens-mat-form-field),
|
|
82
|
+
_get-tokens-for-module($theme, tokens-mat-grid-list),
|
|
71
83
|
_get-tokens-for-module($theme, tokens-mat-radio),
|
|
84
|
+
_get-tokens-for-module($theme, tokens-mat-ripple),
|
|
85
|
+
_get-tokens-for-module($theme, tokens-mat-slide-toggle),
|
|
86
|
+
_get-tokens-for-module($theme, tokens-mat-slider),
|
|
72
87
|
_get-tokens-for-module($theme, tokens-mat-snack-bar),
|
|
88
|
+
_get-tokens-for-module($theme, tokens-mat-sort),
|
|
89
|
+
_get-tokens-for-module($theme, tokens-mat-stepper),
|
|
73
90
|
_get-tokens-for-module($theme, tokens-mat-tab-header),
|
|
74
91
|
_get-tokens-for-module($theme, tokens-mat-tab-header-with-background),
|
|
92
|
+
_get-tokens-for-module($theme, tokens-mat-table),
|
|
75
93
|
_get-tokens-for-module($theme, tokens-mat-toolbar),
|
|
76
|
-
_get-tokens-for-module($theme, tokens-mat-
|
|
94
|
+
_get-tokens-for-module($theme, tokens-mat-tree),
|
|
77
95
|
_get-tokens-for-module($theme, tokens-mdc-checkbox),
|
|
78
96
|
_get-tokens-for-module($theme, tokens-mdc-circular-progress),
|
|
79
97
|
_get-tokens-for-module($theme, tokens-mdc-dialog),
|
|
80
98
|
_get-tokens-for-module($theme, tokens-mdc-elevated-card),
|
|
99
|
+
_get-tokens-for-module($theme, tokens-mdc-filled-text-field),
|
|
81
100
|
_get-tokens-for-module($theme, tokens-mdc-icon-button),
|
|
82
101
|
_get-tokens-for-module($theme, tokens-mdc-linear-progress),
|
|
83
102
|
_get-tokens-for-module($theme, tokens-mdc-list),
|
|
84
103
|
_get-tokens-for-module($theme, tokens-mdc-outlined-card),
|
|
104
|
+
_get-tokens-for-module($theme, tokens-mdc-outlined-text-field),
|
|
105
|
+
_get-tokens-for-module($theme, tokens-mdc-plain-tooltip),
|
|
85
106
|
_get-tokens-for-module($theme, tokens-mdc-radio),
|
|
107
|
+
_get-tokens-for-module($theme, tokens-mdc-slider),
|
|
86
108
|
_get-tokens-for-module($theme, tokens-mdc-snack-bar),
|
|
109
|
+
_get-tokens-for-module($theme, tokens-mdc-switch),
|
|
87
110
|
_get-tokens-for-module($theme, tokens-mdc-tab),
|
|
88
111
|
_get-tokens-for-module($theme, tokens-mdc-tab-indicator),
|
|
89
|
-
_get-tokens-for-module($theme, tokens-mdc-slider),
|
|
90
|
-
_get-tokens-for-module($theme, tokens-mdc-plain-tooltip),
|
|
91
112
|
);
|
|
92
113
|
}
|