@angular/material 19.2.15 → 19.2.17
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/badge/index.d.ts +2 -2
- package/badge/testing/index.d.ts +1 -1
- package/{badge.d-BZbIGkUG.d.ts → badge.d-mlaO4g0J.d.ts} +2 -2
- package/button/_button-base.scss +9 -1
- package/button/index.d.ts +4 -4
- package/checkbox/index.d.ts +4 -4
- package/chips/index.d.ts +2 -2
- package/core/m2/_typography.scss +1 -1
- package/core/theming/_theming.scss +2 -2
- package/core/tokens/m3/mat/_standard-button-toggle.scss +1 -1
- package/datepicker/index.d.ts +7 -6
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +1 -1
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +3 -3
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +2 -2
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +6 -6
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +2 -2
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +3 -3
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-WayjW0Pb.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -1
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +13 -9
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-Dm2JJUbF.mjs.map +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-B4o2BB25.mjs → form-field-DqPi4knt.mjs} +3 -3
- package/fesm2022/form-field-DqPi4knt.mjs.map +1 -0
- package/fesm2022/form-field.mjs +2 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/{icon-button-ImoriYmd.mjs → icon-button-D1J0zeqv.mjs} +7 -7
- package/fesm2022/icon-button-D1J0zeqv.mjs.map +1 -0
- package/fesm2022/icon-registry-B2IMBfNA.mjs.map +1 -1
- package/fesm2022/icon.mjs +2 -2
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-DOxJc1m4.mjs.map +1 -1
- package/fesm2022/index-SYVYjXwK.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +1 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -1
- package/fesm2022/input.mjs +3 -3
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-grv62mCZ.mjs.map +1 -1
- package/fesm2022/line-Bm3zUbBF.mjs.map +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +4 -4
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-DAp_YJSv.mjs → module-BXZhw7pQ.mjs} +2 -2
- package/fesm2022/module-BXZhw7pQ.mjs.map +1 -0
- package/fesm2022/module-BnDTus5c.mjs.map +1 -1
- package/fesm2022/module-C9K6ZqpI.mjs.map +1 -1
- package/fesm2022/{module-QDphV0Pw.mjs → module-Cbt8Fcmv.mjs} +3 -3
- package/fesm2022/module-Cbt8Fcmv.mjs.map +1 -0
- package/fesm2022/option-ChV6uQgD.mjs.map +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +6 -6
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +2 -2
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +2 -2
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-CJ7seqQH.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-module-CAX2sutq.mjs.map +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +9 -6
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-BT3tzh6F.mjs.map +1 -1
- package/fesm2022/ripple-loader-Ce3DAhPW.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +3 -3
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +8 -4
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +2 -2
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +3 -3
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +1 -1
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +6 -6
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-BQUT6wsL.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +27 -23
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +2 -2
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +2 -2
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +2 -2
- package/{form-field.d-BjJF4VvY.d.ts → form-field.d-CMA_QQ0R.d.ts} +4 -4
- package/icon/index.d.ts +1 -1
- package/{icon-module.d-sA1hmRKS.d.ts → icon-module.d-COXCrhrh.d.ts} +4 -4
- package/input/index.d.ts +4 -4
- package/list/index.d.ts +4 -4
- package/{module.d-xJtDDSjD.d.ts → module.d-1ZCYe5BH.d.ts} +1 -1
- package/{module.d-jogvLnOv.d.ts → module.d-CyLvt0Fz.d.ts} +2 -2
- package/package.json +2 -2
- package/paginator/index.d.ts +5 -5
- package/{paginator.d-rLYZCvFf.d.ts → paginator.d-CexYxFq4.d.ts} +3 -3
- package/progress-bar/index.d.ts +4 -4
- package/progress-spinner/index.d.ts +2 -2
- package/progress-spinner/testing/index.d.ts +1 -1
- package/{progress-spinner.d-DtYCWeYd.d.ts → progress-spinner.d-Lfz4Wh5x.d.ts} +4 -4
- package/radio/index.d.ts +6 -6
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/schema.json +4 -4
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/index_bundled.js.map +1 -1
- package/select/index.d.ts +3 -3
- package/slide-toggle/index.d.ts +4 -4
- package/slider/index.d.ts +3 -3
- package/stepper/index.d.ts +7 -7
- package/table/index.d.ts +2 -2
- package/tabs/index.d.ts +13 -11
- package/toolbar/index.d.ts +2 -2
- package/fesm2022/form-field-B4o2BB25.mjs.map +0 -1
- package/fesm2022/icon-button-ImoriYmd.mjs.map +0 -1
- package/fesm2022/module-DAp_YJSv.mjs.map +0 -1
- package/fesm2022/module-QDphV0Pw.mjs.map +0 -1
package/badge/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@angular/cdk/a11y';
|
|
3
3
|
import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js';
|
|
4
|
-
import { M as MatBadge, _ as _MatBadgeStyleLoader } from '../badge.d-
|
|
5
|
-
export { a as MatBadgePosition, b as MatBadgeSize } from '../badge.d-
|
|
4
|
+
import { M as MatBadge, _ as _MatBadgeStyleLoader } from '../badge.d-mlaO4g0J.js';
|
|
5
|
+
export { a as MatBadgePosition, b as MatBadgeSize } from '../badge.d-mlaO4g0J.js';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
7
7
|
import '../palette.d-BSSFKjO6.js';
|
|
8
8
|
|
package/badge/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { a as MatBadgePosition, b as MatBadgeSize } from '../../badge.d-
|
|
2
|
+
import { a as MatBadgePosition, b as MatBadgeSize } from '../../badge.d-mlaO4g0J.js';
|
|
3
3
|
import '@angular/core';
|
|
4
4
|
import '../../palette.d-BSSFKjO6.js';
|
|
5
5
|
|
|
@@ -24,10 +24,10 @@ declare class MatBadge implements OnInit, OnDestroy {
|
|
|
24
24
|
private _idGenerator;
|
|
25
25
|
/**
|
|
26
26
|
* Theme color of the badge. This API is supported in M2 themes only, it
|
|
27
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
27
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/badge/styling.
|
|
28
28
|
*
|
|
29
29
|
* For information on applying color variants in M3, see
|
|
30
|
-
* https://material.angular.
|
|
30
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
31
31
|
*/
|
|
32
32
|
get color(): ThemePalette;
|
|
33
33
|
set color(value: ThemePalette);
|
package/button/_button-base.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// color and opacity for states like hover, active, and focus. Additionally, adds styles to the
|
|
7
7
|
// ripple and state container so that they fill the button, match the border radius, and avoid
|
|
8
8
|
// pointer events.
|
|
9
|
-
@mixin mat-private-button-interactive() {
|
|
9
|
+
@mixin mat-private-button-interactive($focus-indicator-inherits-shape: true) {
|
|
10
10
|
-webkit-tap-highlight-color: transparent;
|
|
11
11
|
|
|
12
12
|
// The ripple container should match the bounds of the entire button.
|
|
@@ -50,10 +50,18 @@
|
|
|
50
50
|
// The focus indicator should match the bounds of the entire button.
|
|
51
51
|
.mat-focus-indicator {
|
|
52
52
|
@include layout-common.fill();
|
|
53
|
+
|
|
54
|
+
@if ($focus-indicator-inherits-shape) {
|
|
55
|
+
border-radius: inherit;
|
|
56
|
+
}
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
&:focus > .mat-focus-indicator::before {
|
|
56
60
|
content: '';
|
|
61
|
+
|
|
62
|
+
@if ($focus-indicator-inherits-shape) {
|
|
63
|
+
border-radius: inherit;
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
67
|
|
package/button/index.d.ts
CHANGED
|
@@ -33,10 +33,10 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
|
|
|
33
33
|
protected _isFab: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* Theme color of the button. This API is supported in M2 themes only, it has
|
|
36
|
-
* no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
36
|
+
* no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/button/styling.
|
|
37
37
|
*
|
|
38
38
|
* For information on applying color variants in M3, see
|
|
39
|
-
* https://material.angular.
|
|
39
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
40
40
|
*/
|
|
41
41
|
color?: string | null;
|
|
42
42
|
/** Whether the ripple effect is disabled or not. */
|
|
@@ -126,10 +126,10 @@ declare class MatAnchor extends MatAnchorBase {
|
|
|
126
126
|
interface MatFabDefaultOptions {
|
|
127
127
|
/**
|
|
128
128
|
* Default theme color of the button. This API is supported in M2 themes
|
|
129
|
-
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
129
|
+
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/button/styling.
|
|
130
130
|
*
|
|
131
131
|
* For information on applying color variants in M3, see
|
|
132
|
-
* https://material.angular.
|
|
132
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
|
|
133
133
|
*/
|
|
134
134
|
color?: ThemePalette;
|
|
135
135
|
}
|
package/checkbox/index.d.ts
CHANGED
|
@@ -101,10 +101,10 @@ declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAcces
|
|
|
101
101
|
tabIndex: number;
|
|
102
102
|
/**
|
|
103
103
|
* Theme color of the checkbox. This API is supported in M2 themes only, it
|
|
104
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
104
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/checkbox/styling.
|
|
105
105
|
*
|
|
106
106
|
* For information on applying color variants in M3, see
|
|
107
|
-
* https://material.angular.
|
|
107
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
108
108
|
*/
|
|
109
109
|
color: string | undefined;
|
|
110
110
|
/** Whether the checkbox should remain interactive when it is disabled. */
|
|
@@ -190,10 +190,10 @@ declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAcces
|
|
|
190
190
|
interface MatCheckboxDefaultOptions {
|
|
191
191
|
/**
|
|
192
192
|
* Default theme color of the checkbox. This API is supported in M2 themes
|
|
193
|
-
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
193
|
+
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/checkbox/styling.
|
|
194
194
|
*
|
|
195
195
|
* For information on applying color variants in M3, see
|
|
196
|
-
* https://material.angular.
|
|
196
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
197
197
|
*/
|
|
198
198
|
color?: ThemePalette;
|
|
199
199
|
/** Default checkbox click action for checkboxes. */
|
package/chips/index.d.ts
CHANGED
|
@@ -154,10 +154,10 @@ declare class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoChec
|
|
|
154
154
|
protected _value: any;
|
|
155
155
|
/**
|
|
156
156
|
* Theme color of the chip. This API is supported in M2 themes only, it has no
|
|
157
|
-
* effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
157
|
+
* effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/chips/styling.
|
|
158
158
|
*
|
|
159
159
|
* For information on applying color variants in M3, see
|
|
160
|
-
* https://material.angular.
|
|
160
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
161
161
|
*/
|
|
162
162
|
color?: string | null;
|
|
163
163
|
/**
|
package/core/m2/_typography.scss
CHANGED
|
@@ -178,7 +178,7 @@ $_mdc-levels: (
|
|
|
178
178
|
/// @param {Map} $input Configuration for the "input" typographic level.
|
|
179
179
|
/// @returns {Map} A typography config for the application.
|
|
180
180
|
///
|
|
181
|
-
/// @deprecated Use `mat.m2-define-typography-config` instead. See https://v17.material.angular.
|
|
181
|
+
/// @deprecated Use `mat.m2-define-typography-config` instead. See https://v17.material.angular.dev/guide/mdc-migration for information about migrating.
|
|
182
182
|
/// @breaking-change 17.0.0
|
|
183
183
|
@function define-legacy-typography-config(
|
|
184
184
|
$font-family: 'Roboto, "Helvetica Neue", sans-serif',
|
|
@@ -15,13 +15,13 @@ $_generate-default-density: true !default;
|
|
|
15
15
|
|
|
16
16
|
// Warning that will be printed if duplicated styles are generated by a theme.
|
|
17
17
|
$_duplicate-warning: 'Read more about how style duplication can be avoided in a dedicated ' +
|
|
18
|
-
'guide. https://v18.material.angular.
|
|
18
|
+
'guide. https://v18.material.angular.dev/guide/duplicate-theming-styles';
|
|
19
19
|
|
|
20
20
|
// Warning that will be printed if the legacy theming API is used.
|
|
21
21
|
$private-legacy-theme-warning: 'Angular Material themes should be created from a map containing ' +
|
|
22
22
|
'the keys "color", "typography", and "density". The color value should be a map containing the ' +
|
|
23
23
|
'palette values for "primary", "accent", and "warn". ' +
|
|
24
|
-
'See https://material.angular.
|
|
24
|
+
'See https://material.angular.dev/guide/theming for more information.';
|
|
25
25
|
|
|
26
26
|
// Flag whether to disable theme definitions copying color values to the top-level theme config.
|
|
27
27
|
// This copy is to preserve backwards compatibility.
|
|
@@ -14,7 +14,7 @@ $prefix: (mat, standard-button-toggle);
|
|
|
14
14
|
$tokens: sass-utils.merge-all(
|
|
15
15
|
token-definition.generate-typography-tokens($systems, label-text, label-large),
|
|
16
16
|
(
|
|
17
|
-
shape: map.get($systems, md-sys-shape, corner-
|
|
17
|
+
shape: map.get($systems, md-sys-shape, corner-extra-large),
|
|
18
18
|
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
19
19
|
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
20
20
|
text-color: map.get($systems, md-sys-color, on-surface),
|
package/datepicker/index.d.ts
CHANGED
|
@@ -774,6 +774,7 @@ declare class MatCalendar<D> implements AfterContentInit, AfterViewChecked, OnDe
|
|
|
774
774
|
private _dateAdapter;
|
|
775
775
|
private _dateFormats;
|
|
776
776
|
private _changeDetectorRef;
|
|
777
|
+
private _elementRef;
|
|
777
778
|
/** An input indicating the type of the header component, if set. */
|
|
778
779
|
headerComponent: ComponentType<any>;
|
|
779
780
|
/** A portal containing the header component type for this calendar. */
|
|
@@ -1056,10 +1057,10 @@ declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>> imple
|
|
|
1056
1057
|
_calendar: MatCalendar<D>;
|
|
1057
1058
|
/**
|
|
1058
1059
|
* Theme color of the internal calendar. This API is supported in M2 themes
|
|
1059
|
-
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
1060
|
+
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/datepicker/styling.
|
|
1060
1061
|
*
|
|
1061
1062
|
* For information on applying color variants in M3, see
|
|
1062
|
-
* https://material.angular.
|
|
1063
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
1063
1064
|
*/
|
|
1064
1065
|
color: ThemePalette;
|
|
1065
1066
|
/** Reference to the datepicker that created the overlay. */
|
|
@@ -1125,10 +1126,10 @@ interface MatDatepickerPanel<C extends MatDatepickerControl<D>, S, D = ExtractDa
|
|
|
1125
1126
|
closedStream: EventEmitter<void>;
|
|
1126
1127
|
/**
|
|
1127
1128
|
* Color palette to use on the datepicker's calendar. This API is supported in M2 themes only, it
|
|
1128
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
1129
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/datepicker/styling.
|
|
1129
1130
|
*
|
|
1130
1131
|
* For information on applying color variants in M3, see
|
|
1131
|
-
* https://material.angular.
|
|
1132
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
1132
1133
|
*/
|
|
1133
1134
|
color: ThemePalette;
|
|
1134
1135
|
/** The input element the datepicker is associated with. */
|
|
@@ -1168,10 +1169,10 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
1168
1169
|
startView: 'month' | 'year' | 'multi-year';
|
|
1169
1170
|
/**
|
|
1170
1171
|
* Theme color of the datepicker's calendar. This API is supported in M2 themes only, it
|
|
1171
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.
|
|
1172
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/datepicker/styling.
|
|
1172
1173
|
*
|
|
1173
1174
|
* For information on applying color variants in M3, see
|
|
1174
|
-
* https://material.angular.
|
|
1175
|
+
* https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
1175
1176
|
*/
|
|
1176
1177
|
get color(): ThemePalette;
|
|
1177
1178
|
set color(value: ThemePalette);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../k8-fastbuild-ST-46c76129e412/bin/src/material/autocomplete/testing/autocomplete-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n TestElement,\n} from '@angular/cdk/testing';\nimport {\n MatOptgroupHarness,\n MatOptionHarness,\n OptgroupHarnessFilters,\n OptionHarnessFilters,\n} from '../../core/testing';\nimport {AutocompleteHarnessFilters} from './autocomplete-harness-filters';\n\nexport class MatAutocompleteHarness extends ComponentHarness {\n private _documentRootLocator = this.documentRootLocatorFactory();\n\n /** The selector for the host element of a `MatAutocomplete` instance. */\n static hostSelector = '.mat-mdc-autocomplete-trigger';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for an autocomplete with specific\n * attributes.\n * @param options Options for filtering which autocomplete instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatAutocompleteHarness>(\n this: ComponentHarnessConstructor<T>,\n options: AutocompleteHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options)\n .addOption('value', options.value, (harness, value) =>\n HarnessPredicate.stringMatches(harness.getValue(), value),\n )\n .addOption('disabled', options.disabled, async (harness, disabled) => {\n return (await harness.isDisabled()) === disabled;\n });\n }\n\n /** Gets the value of the autocomplete input. */\n async getValue(): Promise<string> {\n return (await this.host()).getProperty<string>('value');\n }\n\n /** Whether the autocomplete input is disabled. */\n async isDisabled(): Promise<boolean> {\n const disabled = (await this.host()).getAttribute('disabled');\n return coerceBooleanProperty(await disabled);\n }\n\n /** Focuses the autocomplete input. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the autocomplete input. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the autocomplete input is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /** Enters text into the autocomplete. */\n async enterText(value: string): Promise<void> {\n return (await this.host()).sendKeys(value);\n }\n\n /** Clears the input value. */\n async clear(): Promise<void> {\n return (await this.host()).clear();\n }\n\n /** Gets the options inside the autocomplete panel. */\n async getOptions(filters?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]> {\n if (!(await this.isOpen())) {\n throw new Error('Unable to retrieve options for autocomplete. Autocomplete panel is closed.');\n }\n\n return this._documentRootLocator.locatorForAll(\n MatOptionHarness.with({\n ...(filters || {}),\n ancestor: await this._getPanelSelector(),\n } as OptionHarnessFilters),\n )();\n }\n\n /** Gets the option groups inside the autocomplete panel. */\n async getOptionGroups(\n filters?: Omit<OptgroupHarnessFilters, 'ancestor'>,\n ): Promise<MatOptgroupHarness[]> {\n if (!(await this.isOpen())) {\n throw new Error(\n 'Unable to retrieve option groups for autocomplete. Autocomplete panel is closed.',\n );\n }\n\n return this._documentRootLocator.locatorForAll(\n MatOptgroupHarness.with({\n ...(filters || {}),\n ancestor: await this._getPanelSelector(),\n } as OptgroupHarnessFilters),\n )();\n }\n\n /** Selects the first option matching the given filters. */\n async selectOption(filters: OptionHarnessFilters): Promise<void> {\n await this.focus(); // Focus the input to make sure the autocomplete panel is shown.\n const options = await this.getOptions(filters);\n if (!options.length) {\n throw Error(`Could not find a mat-option matching ${JSON.stringify(filters)}`);\n }\n await options[0].click();\n }\n\n /** Whether the autocomplete is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._getPanel();\n return !!panel && (await panel.hasClass(`mat-mdc-autocomplete-visible`));\n }\n\n /** Gets the panel associated with this autocomplete trigger. */\n private async _getPanel(): Promise<TestElement | null> {\n // Technically this is static, but it needs to be in a\n // function, because the autocomplete's panel ID can changed.\n return this._documentRootLocator.locatorForOptional(await this._getPanelSelector())();\n }\n\n /** Gets the selector that can be used to find the autocomplete trigger's panel. */\n protected async _getPanelSelector(): Promise<string> {\n return `#${await (await this.host()).getAttribute('aria-controls')}`;\n }\n}\n"],"names":[],"mappings":";;;;;AAuBM,MAAO,sBAAuB,SAAQ,gBAAgB,CAAA;AAClD,IAAA,oBAAoB,GAAG,IAAI,CAAC,0BAA0B,EAAE;;AAGhE,IAAA,OAAO,YAAY,GAAG,+BAA+B;AAErD;;;;;AAKG;AACH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AK,MAAM,KAAK,CAAC,QAAQ,CAAC,CAA8B,4BAAA,CAAA,CAAC,CAAC;;;AAIlE,IAAA,MAAM,SAAS,GAAA;;;AAGrB,QAAA,OAAO,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC,EAAE;;;AAI7E,IAAA,MAAM,iBAAiB,GAAA;AAC/B,QAAA,OAAO,CAAI,CAAA,EAAA,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,YAAY,CAAC,eAAe,CAAC,EAAE;;;;;;"}
|
|
@@ -13,7 +13,7 @@ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
|
13
13
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
14
14
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
15
15
|
import { filter, map, startWith, switchMap, tap, delay, take } from 'rxjs/operators';
|
|
16
|
-
import { h as MAT_FORM_FIELD } from './form-field-
|
|
16
|
+
import { h as MAT_FORM_FIELD } from './form-field-DqPi4knt.mjs';
|
|
17
17
|
import { M as MatOptionModule } from './index-DOxJc1m4.mjs';
|
|
18
18
|
import { M as MatCommonModule } from './common-module-WayjW0Pb.mjs';
|
|
19
19
|
import './ripple-BT3tzh6F.mjs';
|