@angular/material 19.0.0-next.6 → 19.0.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +2 -0
- package/chips/index.d.ts +5 -1
- package/core/_core-theme.scss +11 -3
- package/core/_core.scss +16 -10
- package/core/index.d.ts +78 -1
- package/core/theming/_all-theme.scss +3 -0
- package/core/tokens/_density.scss +1 -0
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_timepicker.scss +44 -0
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/mat/_timepicker.scss +22 -0
- package/core/typography/_all-typography.scss +2 -0
- package/dialog/index.d.ts +6 -3
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/button-toggle.mjs +13 -11
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +37 -35
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/checkbox.mjs +17 -15
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +73 -59
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +273 -66
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +85 -83
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/expansion.mjs +28 -26
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +34 -34
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon.mjs +11 -11
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +38 -14
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +52 -50
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +21 -20
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +2 -2
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/radio.mjs +13 -11
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +10 -10
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/slide-toggle.mjs +17 -15
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +19 -17
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/sort.mjs +16 -14
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +34 -32
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/tabs.mjs +57 -50
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +196 -0
- package/fesm2022/timepicker/testing.mjs.map +1 -0
- package/fesm2022/timepicker.mjs +843 -0
- package/fesm2022/timepicker.mjs.map +1 -0
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tree.mjs +25 -25
- package/icon/index.d.ts +1 -1
- package/input/index.d.ts +3 -1
- package/menu/index.d.ts +0 -1
- package/package.json +10 -2
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/tabs/index.d.ts +5 -1
- package/timepicker/_timepicker-theme.scss +111 -0
- package/timepicker/index.d.ts +297 -0
- package/timepicker/testing/index.d.ts +113 -0
package/_index.scss
CHANGED
|
@@ -143,3 +143,5 @@
|
|
|
143
143
|
tooltip-typography, tooltip-density, tooltip-base, tooltip-overrides;
|
|
144
144
|
@forward './tree/tree-theme' as tree-* show tree-theme, tree-color, tree-typography, tree-density,
|
|
145
145
|
tree-base, tree-overrides;
|
|
146
|
+
@forward './timepicker/timepicker-theme' as timepicker-* show timepicker-theme, timepicker-color,
|
|
147
|
+
timepicker-typography, timepicker-density, timepicker-base, timepicker-overrides;
|
package/chips/index.d.ts
CHANGED
|
@@ -169,6 +169,8 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
169
169
|
ariaDescription: string | null;
|
|
170
170
|
/** Id of a span that contains this chip's aria description. */
|
|
171
171
|
_ariaDescriptionId: string;
|
|
172
|
+
/** Whether the chip list is disabled. */
|
|
173
|
+
_chipListDisabled: boolean;
|
|
172
174
|
private _textElement;
|
|
173
175
|
/**
|
|
174
176
|
* The value of the chip. Defaults to the content inside
|
|
@@ -196,7 +198,9 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
196
198
|
/** Whether the ripple effect is disabled or not. */
|
|
197
199
|
disableRipple: boolean;
|
|
198
200
|
/** Whether the chip is disabled. */
|
|
199
|
-
disabled: boolean;
|
|
201
|
+
get disabled(): boolean;
|
|
202
|
+
set disabled(value: boolean);
|
|
203
|
+
private _disabled;
|
|
200
204
|
/** Emitted when a chip is to be removed. */
|
|
201
205
|
readonly removed: EventEmitter<MatChipEvent>;
|
|
202
206
|
/** Emitted when the chip is destroyed. */
|
package/core/_core-theme.scss
CHANGED
|
@@ -71,15 +71,19 @@
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
// This theme is a special case where not all of the imported tokens are supported in `overrides`.
|
|
75
|
+
// To aid the docs token extraction, we have to pull the `overrides` token config out into a
|
|
76
|
+
// separate function.
|
|
77
|
+
// !!!Important!!! renaming or removal of this function requires the `extract-tokens.ts` script to
|
|
78
|
+
// be updated as well.
|
|
79
|
+
@function _get-supported-overrides-tokens() {
|
|
75
80
|
$app-tokens: tokens-mat-app.get-token-slots();
|
|
76
81
|
$ripple-tokens: tokens-mat-ripple.get-token-slots();
|
|
77
82
|
$option-tokens: tokens-mat-option.get-token-slots();
|
|
78
83
|
$full-pseudo-checkbox-tokens: tokens-mat-full-pseudo-checkbox.get-token-slots();
|
|
79
84
|
$minimal-pseudo-checkbox-tokens: tokens-mat-minimal-pseudo-checkbox.get-token-slots();
|
|
80
85
|
|
|
81
|
-
@
|
|
82
|
-
$tokens,
|
|
86
|
+
@return (
|
|
83
87
|
(prefix: tokens-mat-app.$prefix, tokens: $app-tokens),
|
|
84
88
|
(prefix: tokens-mat-ripple.$prefix, tokens: $ripple-tokens),
|
|
85
89
|
(prefix: tokens-mat-option.$prefix, tokens: $option-tokens),
|
|
@@ -88,6 +92,10 @@
|
|
|
88
92
|
);
|
|
89
93
|
}
|
|
90
94
|
|
|
95
|
+
@mixin overrides($tokens: ()) {
|
|
96
|
+
@include token-utils.batch-create-token-values($tokens, _get-supported-overrides-tokens()...);
|
|
97
|
+
}
|
|
98
|
+
|
|
91
99
|
// Mixin that renders all of the core styles that depend on the theme.
|
|
92
100
|
@mixin theme($theme, $options...) {
|
|
93
101
|
// Wrap the sub-theme includes in the duplicate theme styles mixin. This ensures that
|
package/core/_core.scss
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
@use './tokens/m2/mat/app' as tokens-mat-app;
|
|
3
3
|
@use './tokens/token-utils';
|
|
4
4
|
@use './style/elevation';
|
|
5
|
-
@use './focus-indicators/private';
|
|
6
5
|
|
|
7
6
|
// Mixin that renders all of the core styles that are not theme-dependent.
|
|
8
7
|
@mixin core() {
|
|
8
|
+
@include cdk.a11y-visually-hidden();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Emits the mat-app-background CSS class. This predefined class sets the
|
|
12
|
+
// background color and text color of an element.
|
|
13
|
+
@mixin app-background() {
|
|
9
14
|
// TODO: Move ripple styles to be dynamically loaded instead of in core.
|
|
10
15
|
// This variable is used as a fallback for the ripple element's
|
|
11
16
|
// background color. However, if it isn't defined anywhere, then MSS
|
|
@@ -14,9 +19,6 @@
|
|
|
14
19
|
--mat-app-on-surface: initial;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
|
-
@include cdk.a11y-visually-hidden();
|
|
18
|
-
@include private.structural-styling();
|
|
19
|
-
|
|
20
22
|
// Wrapper element that provides the theme background when the
|
|
21
23
|
// user's content isn't inside of a `mat-sidenav-container`.
|
|
22
24
|
@at-root {
|
|
@@ -26,7 +28,17 @@
|
|
|
26
28
|
@include token-utils.create-token-slot(background-color, background-color, transparent);
|
|
27
29
|
@include token-utils.create-token-slot(color, text-color, inherit);
|
|
28
30
|
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
29
34
|
|
|
35
|
+
// Emits CSS classes for applying elevation. These classes follow the pattern
|
|
36
|
+
// mat-elevation-z#, where # is the elevation number you want, from 0 to 24.
|
|
37
|
+
// These predefined classes use the CSS box-shadow settings defined by the
|
|
38
|
+
// Material Design specification.
|
|
39
|
+
@mixin elevation-classes() {
|
|
40
|
+
@at-root {
|
|
41
|
+
@include token-utils.use-tokens(tokens-mat-app.$prefix, tokens-mat-app.get-token-slots()) {
|
|
30
42
|
// Provides external CSS classes for each elevation value. Each CSS class is formatted as
|
|
31
43
|
// `mat-elevation-z$z-value` where `$z-value` corresponds to the z-space to which the element
|
|
32
44
|
// is elevated.
|
|
@@ -42,9 +54,3 @@
|
|
|
42
54
|
}
|
|
43
55
|
}
|
|
44
56
|
}
|
|
45
|
-
|
|
46
|
-
// Mixin that provides the .mat-app-background class.
|
|
47
|
-
@mixin app-background() {}
|
|
48
|
-
|
|
49
|
-
// Mixin that provides the .mat-elevation-* classes.
|
|
50
|
-
@mixin elevation-classes() {}
|
package/core/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { OnInit } from '@angular/core';
|
|
|
19
19
|
import { Platform } from '@angular/cdk/platform';
|
|
20
20
|
import { Provider } from '@angular/core';
|
|
21
21
|
import { QueryList } from '@angular/core';
|
|
22
|
+
import { Signal } from '@angular/core';
|
|
22
23
|
import { Subject } from 'rxjs';
|
|
23
24
|
import { Version } from '@angular/core';
|
|
24
25
|
|
|
@@ -198,6 +199,42 @@ export declare abstract class DateAdapter<D, L = any> {
|
|
|
198
199
|
* @returns An invalid date.
|
|
199
200
|
*/
|
|
200
201
|
abstract invalid(): D;
|
|
202
|
+
/**
|
|
203
|
+
* Sets the time of one date to the time of another.
|
|
204
|
+
* @param target Date whose time will be set.
|
|
205
|
+
* @param hours New hours to set on the date object.
|
|
206
|
+
* @param minutes New minutes to set on the date object.
|
|
207
|
+
* @param seconds New seconds to set on the date object.
|
|
208
|
+
*/
|
|
209
|
+
setTime(target: D, hours: number, minutes: number, seconds: number): D;
|
|
210
|
+
/**
|
|
211
|
+
* Gets the hours component of the given date.
|
|
212
|
+
* @param date The date to extract the hours from.
|
|
213
|
+
*/
|
|
214
|
+
getHours(date: D): number;
|
|
215
|
+
/**
|
|
216
|
+
* Gets the minutes component of the given date.
|
|
217
|
+
* @param date The date to extract the minutes from.
|
|
218
|
+
*/
|
|
219
|
+
getMinutes(date: D): number;
|
|
220
|
+
/**
|
|
221
|
+
* Gets the seconds component of the given date.
|
|
222
|
+
* @param date The date to extract the seconds from.
|
|
223
|
+
*/
|
|
224
|
+
getSeconds(date: D): number;
|
|
225
|
+
/**
|
|
226
|
+
* Parses a date with a specific time from a user-provided value.
|
|
227
|
+
* @param value The value to parse.
|
|
228
|
+
* @param parseFormat The expected format of the value being parsed
|
|
229
|
+
* (type is implementation-dependent).
|
|
230
|
+
*/
|
|
231
|
+
parseTime(value: any, parseFormat: any): D | null;
|
|
232
|
+
/**
|
|
233
|
+
* Adds an amount of seconds to the specified date.
|
|
234
|
+
* @param date Date to which to add the seconds.
|
|
235
|
+
* @param amount Amount of seconds to add to the date.
|
|
236
|
+
*/
|
|
237
|
+
addSeconds(date: D, amount: number): D;
|
|
201
238
|
/**
|
|
202
239
|
* Given a potential date object, returns that same date object if it is
|
|
203
240
|
* a valid date, or `null` if it's not a valid date.
|
|
@@ -231,6 +268,14 @@ export declare abstract class DateAdapter<D, L = any> {
|
|
|
231
268
|
* a number greater than 0 if the first date is later.
|
|
232
269
|
*/
|
|
233
270
|
compareDate(first: D, second: D): number;
|
|
271
|
+
/**
|
|
272
|
+
* Compares the time values of two dates.
|
|
273
|
+
* @param first First date to compare.
|
|
274
|
+
* @param second Second date to compare.
|
|
275
|
+
* @returns 0 if the times are equal, a number less than 0 if the first time is earlier,
|
|
276
|
+
* a number greater than 0 if the first time is later.
|
|
277
|
+
*/
|
|
278
|
+
compareTime(first: D, second: D): number;
|
|
234
279
|
/**
|
|
235
280
|
* Checks if two dates are equal.
|
|
236
281
|
* @param first The first date to check.
|
|
@@ -239,6 +284,14 @@ export declare abstract class DateAdapter<D, L = any> {
|
|
|
239
284
|
* Null dates are considered equal to other null dates.
|
|
240
285
|
*/
|
|
241
286
|
sameDate(first: D | null, second: D | null): boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Checks if the times of two dates are equal.
|
|
289
|
+
* @param first The first date to check.
|
|
290
|
+
* @param second The second date to check.
|
|
291
|
+
* @returns Whether the times of the two dates are equal.
|
|
292
|
+
* Null dates are considered equal to other null dates.
|
|
293
|
+
*/
|
|
294
|
+
sameTime(first: D | null, second: D | null): boolean;
|
|
242
295
|
/**
|
|
243
296
|
* Clamp the given date between min and max dates.
|
|
244
297
|
* @param date The date to clamp.
|
|
@@ -414,6 +467,7 @@ export declare class MatCommonModule {
|
|
|
414
467
|
export declare type MatDateFormats = {
|
|
415
468
|
parse: {
|
|
416
469
|
dateInput: any;
|
|
470
|
+
timeInput?: any;
|
|
417
471
|
};
|
|
418
472
|
display: {
|
|
419
473
|
dateInput: any;
|
|
@@ -421,6 +475,8 @@ export declare type MatDateFormats = {
|
|
|
421
475
|
monthYearLabel: any;
|
|
422
476
|
dateA11yLabel: any;
|
|
423
477
|
monthYearA11yLabel: any;
|
|
478
|
+
timeInput?: any;
|
|
479
|
+
timeOptionLabel?: any;
|
|
424
480
|
};
|
|
425
481
|
};
|
|
426
482
|
|
|
@@ -491,6 +547,7 @@ export declare class MatOption<T = any> implements FocusableOption, AfterViewChe
|
|
|
491
547
|
_changeDetectorRef: ChangeDetectorRef;
|
|
492
548
|
private _parent;
|
|
493
549
|
group: MatOptgroup | null;
|
|
550
|
+
private _signalDisableRipple;
|
|
494
551
|
private _selected;
|
|
495
552
|
private _active;
|
|
496
553
|
private _disabled;
|
|
@@ -581,7 +638,7 @@ export declare class MatOptionModule {
|
|
|
581
638
|
* @docs-private
|
|
582
639
|
*/
|
|
583
640
|
export declare interface MatOptionParentComponent {
|
|
584
|
-
disableRipple?: boolean
|
|
641
|
+
disableRipple?: boolean | Signal<boolean>;
|
|
585
642
|
multiple?: boolean;
|
|
586
643
|
inertGroups?: boolean;
|
|
587
644
|
hideSingleSelectionIndicator?: boolean;
|
|
@@ -809,6 +866,12 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
|
|
|
809
866
|
isDateInstance(obj: any): obj is Date;
|
|
810
867
|
isValid(date: Date): boolean;
|
|
811
868
|
invalid(): Date;
|
|
869
|
+
setTime(target: Date, hours: number, minutes: number, seconds: number): Date;
|
|
870
|
+
getHours(date: Date): number;
|
|
871
|
+
getMinutes(date: Date): number;
|
|
872
|
+
getSeconds(date: Date): number;
|
|
873
|
+
parseTime(userValue: any, parseFormat?: any): Date | null;
|
|
874
|
+
addSeconds(date: Date, amount: number): Date;
|
|
812
875
|
/** Creates a date but allows the month and date to overflow. */
|
|
813
876
|
private _createDateWithOverflow;
|
|
814
877
|
/**
|
|
@@ -829,6 +892,11 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
|
|
|
829
892
|
* @returns A Date object with its UTC representation based on the passed in date info
|
|
830
893
|
*/
|
|
831
894
|
private _format;
|
|
895
|
+
/**
|
|
896
|
+
* Attempts to parse a time string into a date object. Returns null if it cannot be parsed.
|
|
897
|
+
* @param value Time string to parse.
|
|
898
|
+
*/
|
|
899
|
+
private _parseTimeString;
|
|
832
900
|
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateAdapter, never>;
|
|
833
901
|
static ɵprov: i0.ɵɵInjectableDeclaration<NativeDateAdapter>;
|
|
834
902
|
}
|
|
@@ -1027,6 +1095,15 @@ export declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
|
1027
1095
|
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
1028
1096
|
}
|
|
1029
1097
|
|
|
1098
|
+
/**
|
|
1099
|
+
* Component used to load structural styles for focus indicators.
|
|
1100
|
+
* @docs-private
|
|
1101
|
+
*/
|
|
1102
|
+
export declare class _StructuralStylesLoader {
|
|
1103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_StructuralStylesLoader, never>;
|
|
1104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<_StructuralStylesLoader, "structural-styles", never, {}, {}, never, never, true, never>;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1030
1107
|
|
|
1031
1108
|
/** Possible color palette values. */
|
|
1032
1109
|
export declare type ThemePalette = 'primary' | 'accent' | 'warn' | undefined;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
@use '../../tree/tree-theme';
|
|
37
37
|
@use '../../snack-bar/snack-bar-theme';
|
|
38
38
|
@use '../../form-field/form-field-theme';
|
|
39
|
+
@use '../../timepicker/timepicker-theme';
|
|
39
40
|
@use './theming';
|
|
40
41
|
|
|
41
42
|
// Create a theme.
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
@include sort-theme.theme($theme);
|
|
80
81
|
@include toolbar-theme.theme($theme);
|
|
81
82
|
@include tree-theme.theme($theme);
|
|
83
|
+
@include timepicker-theme.theme($theme);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -120,6 +122,7 @@
|
|
|
120
122
|
@include sort-theme.base($theme);
|
|
121
123
|
@include toolbar-theme.base($theme);
|
|
122
124
|
@include tree-theme.base($theme);
|
|
125
|
+
@include timepicker-theme.base($theme);
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
// @deprecated Use `all-component-themes`.
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
@use './mat/table' as tokens-mat-table;
|
|
45
45
|
@use './mat/toolbar' as tokens-mat-toolbar;
|
|
46
46
|
@use './mat/tree' as tokens-mat-tree;
|
|
47
|
+
@use './mat/timepicker' as tokens-mat-timepicker;
|
|
47
48
|
@use './mdc/checkbox' as tokens-mdc-checkbox;
|
|
48
49
|
@use './mdc/text-button' as tokens-mdc-text-button;
|
|
49
50
|
@use './mdc/protected-button' as tokens-mdc-protected-button;
|
|
@@ -156,6 +157,7 @@
|
|
|
156
157
|
_get-tokens-for-module($theme, tokens-mat-text-button),
|
|
157
158
|
_get-tokens-for-module($theme, tokens-mat-toolbar),
|
|
158
159
|
_get-tokens-for-module($theme, tokens-mat-tree),
|
|
160
|
+
_get-tokens-for-module($theme, tokens-mat-timepicker),
|
|
159
161
|
_get-tokens-for-module($theme, tokens-mdc-checkbox),
|
|
160
162
|
_get-tokens-for-module($theme, tokens-mdc-chip),
|
|
161
163
|
_get-tokens-for-module($theme, tokens-mdc-circular-progress),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use '../../token-definition';
|
|
2
|
+
@use '../../../theming/inspection';
|
|
3
|
+
@use '../../../style/sass-utils';
|
|
4
|
+
@use '../../../style/elevation';
|
|
5
|
+
|
|
6
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
|
+
$prefix: (mat, timepicker);
|
|
8
|
+
|
|
9
|
+
// Tokens that can't be configured through Angular Material's current theming API,
|
|
10
|
+
// but may be in a future version of the theming API.
|
|
11
|
+
@function get-unthemable-tokens() {
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 4px,
|
|
14
|
+
container-elevation-shadow: elevation.get-box-shadow(8),
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Tokens that can be configured through Angular Material's color theming API.
|
|
19
|
+
@function get-color-tokens($theme) {
|
|
20
|
+
@return (
|
|
21
|
+
container-background-color: inspection.get-theme-color($theme, background, card)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Tokens that can be configured through Angular Material's typography theming API.
|
|
26
|
+
@function get-typography-tokens($theme) {
|
|
27
|
+
@return ();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Tokens that can be configured through Angular Material's density theming API.
|
|
31
|
+
@function get-density-tokens($theme) {
|
|
32
|
+
@return ();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
36
|
+
// This is used to create token slots.
|
|
37
|
+
@function get-token-slots() {
|
|
38
|
+
@return sass-utils.deep-merge-all(
|
|
39
|
+
get-unthemable-tokens(),
|
|
40
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
41
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
42
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
@use './mat/table' as tokens-mat-table;
|
|
43
43
|
@use './mat/toolbar' as tokens-mat-toolbar;
|
|
44
44
|
@use './mat/tree' as tokens-mat-tree;
|
|
45
|
+
@use './mat/timepicker' as tokens-mat-timepicker;
|
|
45
46
|
@use './mdc/checkbox' as tokens-mdc-checkbox;
|
|
46
47
|
@use './mdc/text-button' as tokens-mdc-text-button;
|
|
47
48
|
@use './mdc/protected-button' as tokens-mdc-protected-button;
|
|
@@ -112,6 +113,7 @@ $_module-names: (
|
|
|
112
113
|
tokens-mat-text-button,
|
|
113
114
|
tokens-mat-toolbar,
|
|
114
115
|
tokens-mat-tree,
|
|
116
|
+
tokens-mat-timepicker,
|
|
115
117
|
// MDC tokens
|
|
116
118
|
tokens-mdc-checkbox,
|
|
117
119
|
tokens-mdc-chip,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../../style/elevation';
|
|
3
|
+
@use '../../token-definition';
|
|
4
|
+
|
|
5
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
|
+
$prefix: (mat, timepicker);
|
|
7
|
+
|
|
8
|
+
/// Generates custom tokens for the mat-timepicker.
|
|
9
|
+
/// @param {Map} $systems The MDC system tokens
|
|
10
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
|
+
/// @param {Map} $token-slots Possible token slots
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mat-timepicker
|
|
13
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
|
+
$tokens: (
|
|
15
|
+
container-background-color: map.get($systems, md-sys-color, surface-container),
|
|
16
|
+
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
17
|
+
container-elevation-shadow:
|
|
18
|
+
token-definition.hardcode(elevation.get-box-shadow(2), $exclude-hardcoded),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
@return token-definition.namespace-tokens($prefix, $tokens, $token-slots);
|
|
22
|
+
}
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@use '../../tooltip/tooltip-theme';
|
|
36
36
|
@use '../../snack-bar/snack-bar-theme';
|
|
37
37
|
@use '../../form-field/form-field-theme';
|
|
38
|
+
@use '../../timepicker/timepicker-theme';
|
|
38
39
|
@use '../../tree/tree-theme';
|
|
39
40
|
@use '../theming/inspection';
|
|
40
41
|
@use '../core-theme';
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
@include fab-theme.typography($theme);
|
|
95
96
|
@include snack-bar-theme.typography($theme);
|
|
96
97
|
@include table-theme.typography($theme);
|
|
98
|
+
@include timepicker-theme.typography($theme);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
// @deprecated Use `all-component-typographies`.
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
2
|
import { CdkDialogContainer } from '@angular/cdk/dialog';
|
|
3
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
4
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
4
|
import { ComponentRef } from '@angular/core';
|
|
6
5
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
@@ -295,8 +294,12 @@ export declare class MatDialogConfig<D = any> {
|
|
|
295
294
|
* the `HashLocationStrategy`).
|
|
296
295
|
*/
|
|
297
296
|
closeOnNavigation?: boolean;
|
|
298
|
-
/**
|
|
299
|
-
|
|
297
|
+
/**
|
|
298
|
+
* Alternate `ComponentFactoryResolver` to use when resolving the associated component.
|
|
299
|
+
* @deprecated No longer used. Will be removed.
|
|
300
|
+
* @breaking-change 20.0.0
|
|
301
|
+
*/
|
|
302
|
+
componentFactoryResolver?: unknown;
|
|
300
303
|
/**
|
|
301
304
|
* Duration of the enter animation in ms.
|
|
302
305
|
* Should be a number, string type is deprecated.
|
|
@@ -196,10 +196,10 @@ class MatAutocomplete {
|
|
|
196
196
|
_skipPredicate() {
|
|
197
197
|
return false;
|
|
198
198
|
}
|
|
199
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
200
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
200
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.8", type: MatAutocomplete, isStandalone: true, selector: "mat-autocomplete", inputs: { ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], displayWith: "displayWith", autoActiveFirstOption: ["autoActiveFirstOption", "autoActiveFirstOption", booleanAttribute], autoSelectActiveOption: ["autoSelectActiveOption", "autoSelectActiveOption", booleanAttribute], requireSelection: ["requireSelection", "requireSelection", booleanAttribute], panelWidth: "panelWidth", disableRipple: ["disableRipple", "disableRipple", booleanAttribute], classList: ["class", "classList"], hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute] }, outputs: { optionSelected: "optionSelected", opened: "opened", closed: "closed", optionActivated: "optionActivated" }, host: { classAttribute: "mat-mdc-autocomplete" }, providers: [{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatAutocomplete }], queries: [{ propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionGroups", predicate: MAT_OPTGROUP, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }], exportAs: ["matAutocomplete"], ngImport: i0, template: "<ng-template let-formFieldId=\"id\">\n <div\n class=\"mat-mdc-autocomplete-panel mdc-menu-surface mdc-menu-surface--open\"\n role=\"listbox\"\n [id]=\"id\"\n [class]=\"_classList\"\n [class.mat-mdc-autocomplete-visible]=\"showPanel\"\n [class.mat-mdc-autocomplete-hidden]=\"!showPanel\"\n [class.mat-primary]=\"_color === 'primary'\"\n [class.mat-accent]=\"_color === 'accent'\"\n [class.mat-warn]=\"_color === 'warn'\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby(formFieldId)\"\n [@panelAnimation]=\"isOpen ? 'visible' : 'hidden'\"\n (@panelAnimation.done)=\"_animationDone.next($event)\"\n #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"], animations: [panelAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
201
201
|
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocomplete, decorators: [{
|
|
203
203
|
type: Component,
|
|
204
204
|
args: [{ selector: 'mat-autocomplete', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'matAutocomplete', host: {
|
|
205
205
|
'class': 'mat-mdc-autocomplete',
|
|
@@ -262,10 +262,10 @@ class MatAutocompleteOrigin {
|
|
|
262
262
|
constructor() {
|
|
263
263
|
this.elementRef = inject(ElementRef);
|
|
264
264
|
}
|
|
265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
266
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteOrigin, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
266
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.8", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
|
|
267
267
|
}
|
|
268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
|
|
269
269
|
type: Directive,
|
|
270
270
|
args: [{
|
|
271
271
|
selector: '[matAutocompleteOrigin]',
|
|
@@ -1081,10 +1081,10 @@ class MatAutocompleteTrigger {
|
|
|
1081
1081
|
this._trackedModal = null;
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1085
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
1084
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1085
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.8", type: MatAutocompleteTrigger, isStandalone: true, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: { autocomplete: ["matAutocomplete", "autocomplete"], position: ["matAutocompletePosition", "position"], connectedTo: ["matAutocompleteConnectedTo", "connectedTo"], autocompleteAttribute: ["autocomplete", "autocompleteAttribute"], autocompleteDisabled: ["matAutocompleteDisabled", "autocompleteDisabled", booleanAttribute] }, host: { listeners: { "focusin": "_handleFocus()", "blur": "_onTouched()", "input": "_handleInput($event)", "keydown": "_handleKeydown($event)", "click": "_handleClick()" }, properties: { "attr.autocomplete": "autocompleteAttribute", "attr.role": "autocompleteDisabled ? null : \"combobox\"", "attr.aria-autocomplete": "autocompleteDisabled ? null : \"list\"", "attr.aria-activedescendant": "(panelOpen && activeOption) ? activeOption.id : null", "attr.aria-expanded": "autocompleteDisabled ? null : panelOpen.toString()", "attr.aria-controls": "(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id", "attr.aria-haspopup": "autocompleteDisabled ? null : \"listbox\"" }, classAttribute: "mat-mdc-autocomplete-trigger" }, providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR], exportAs: ["matAutocompleteTrigger"], usesOnChanges: true, ngImport: i0 }); }
|
|
1086
1086
|
}
|
|
1087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteTrigger, decorators: [{
|
|
1088
1088
|
type: Directive,
|
|
1089
1089
|
args: [{
|
|
1090
1090
|
selector: `input[matAutocomplete], textarea[matAutocomplete]`,
|
|
@@ -1127,8 +1127,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
1127
1127
|
}] } });
|
|
1128
1128
|
|
|
1129
1129
|
class MatAutocompleteModule {
|
|
1130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1131
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
1130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1131
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteModule, imports: [OverlayModule,
|
|
1132
1132
|
MatOptionModule,
|
|
1133
1133
|
MatCommonModule,
|
|
1134
1134
|
CommonModule,
|
|
@@ -1140,14 +1140,14 @@ class MatAutocompleteModule {
|
|
|
1140
1140
|
MatCommonModule,
|
|
1141
1141
|
MatAutocompleteTrigger,
|
|
1142
1142
|
MatAutocompleteOrigin] }); }
|
|
1143
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1143
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteModule, providers: [MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [OverlayModule,
|
|
1144
1144
|
MatOptionModule,
|
|
1145
1145
|
MatCommonModule,
|
|
1146
1146
|
CommonModule, CdkScrollableModule,
|
|
1147
1147
|
MatOptionModule,
|
|
1148
1148
|
MatCommonModule] }); }
|
|
1149
1149
|
}
|
|
1150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
1150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatAutocompleteModule, decorators: [{
|
|
1151
1151
|
type: NgModule,
|
|
1152
1152
|
args: [{
|
|
1153
1153
|
imports: [
|
package/fesm2022/badge.mjs
CHANGED
|
@@ -12,10 +12,10 @@ const BADGE_CONTENT_CLASS = 'mat-badge-content';
|
|
|
12
12
|
* @docs-private
|
|
13
13
|
*/
|
|
14
14
|
class _MatBadgeStyleLoader {
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: _MatBadgeStyleLoader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.8", type: _MatBadgeStyleLoader, isStandalone: true, selector: "ng-component", ngImport: i0, template: '', isInline: true, styles: [".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-app-error));color:var(--mat-badge-text-color, var(--mat-app-on-error));font-family:var(--mat-badge-text-font, var(--mat-app-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-app-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-app-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-app-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-app-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, 16px);height:var(--mat-badge-legacy-small-size-container-size, 16px);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-legacy-small-size-container-size, 16px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, 16px);height:var(--mat-badge-legacy-container-size, 16px);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-legacy-container-size, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-app-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, 16px);height:var(--mat-badge-legacy-large-size-container-size, 16px);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-legacy-large-size-container-size, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-app-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: _MatBadgeStyleLoader, decorators: [{
|
|
19
19
|
type: Component,
|
|
20
20
|
args: [{ standalone: true, encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-app-error));color:var(--mat-badge-text-color, var(--mat-app-on-error));font-family:var(--mat-badge-text-font, var(--mat-app-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-app-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-app-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-app-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-app-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, 16px);height:var(--mat-badge-legacy-small-size-container-size, 16px);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-legacy-small-size-container-size, 16px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, 16px);height:var(--mat-badge-legacy-container-size, 16px);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-legacy-container-size, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-app-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, 16px);height:var(--mat-badge-legacy-large-size-container-size, 16px);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-legacy-large-size-container-size, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-app-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}"] }]
|
|
21
21
|
}] });
|
|
@@ -226,10 +226,10 @@ class MatBadge {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
230
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadge, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
230
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.8", type: MatBadge, isStandalone: true, selector: "[matBadge]", inputs: { color: ["matBadgeColor", "color"], overlap: ["matBadgeOverlap", "overlap", booleanAttribute], disabled: ["matBadgeDisabled", "disabled", booleanAttribute], position: ["matBadgePosition", "position"], content: ["matBadge", "content"], description: ["matBadgeDescription", "description"], size: ["matBadgeSize", "size"], hidden: ["matBadgeHidden", "hidden", booleanAttribute] }, host: { properties: { "class.mat-badge-overlap": "overlap", "class.mat-badge-above": "isAbove()", "class.mat-badge-below": "!isAbove()", "class.mat-badge-before": "!isAfter()", "class.mat-badge-after": "isAfter()", "class.mat-badge-small": "size === \"small\"", "class.mat-badge-medium": "size === \"medium\"", "class.mat-badge-large": "size === \"large\"", "class.mat-badge-hidden": "hidden || !content", "class.mat-badge-disabled": "disabled" }, classAttribute: "mat-badge" }, ngImport: i0 }); }
|
|
231
231
|
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadge, decorators: [{
|
|
233
233
|
type: Directive,
|
|
234
234
|
args: [{
|
|
235
235
|
selector: '[matBadge]',
|
|
@@ -275,11 +275,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
|
|
|
275
275
|
}] } });
|
|
276
276
|
|
|
277
277
|
class MatBadgeModule {
|
|
278
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
279
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
280
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
279
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadgeModule, imports: [A11yModule, MatCommonModule, MatBadge, _MatBadgeStyleLoader], exports: [MatBadge, MatCommonModule] }); }
|
|
280
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadgeModule, imports: [A11yModule, MatCommonModule, MatCommonModule] }); }
|
|
281
281
|
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.8", ngImport: i0, type: MatBadgeModule, decorators: [{
|
|
283
283
|
type: NgModule,
|
|
284
284
|
args: [{
|
|
285
285
|
// Note: we _shouldn't_ have to import `_MatBadgeStyleLoader`,
|