@angular/material 19.2.3 → 20.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +14 -7
- package/autocomplete/testing/index.d.ts +2 -1
- package/badge/index.d.ts +7 -98
- package/badge/testing/index.d.ts +3 -1
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/index.d.ts +2 -2
- package/button/index.d.ts +10 -220
- package/button-toggle/index.d.ts +10 -257
- package/button-toggle/testing/index.d.ts +4 -1
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/index.d.ts +3 -2
- package/checkbox/index.d.ts +7 -38
- package/chips/index.d.ts +9 -5
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/index.d.ts +21 -846
- package/core/testing/index.d.ts +3 -61
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/index.d.ts +20 -14
- package/datepicker/testing/index.d.ts +5 -277
- package/dialog/index.d.ts +12 -360
- package/dialog/testing/index.d.ts +6 -1
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/index.d.ts +3 -2
- package/divider/testing/index.d.ts +2 -14
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/index.d.ts +3 -2
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +29 -17
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +12 -11
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -11
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +17 -11
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -481
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -47
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +27 -68
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -42
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs +467 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +119 -112
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -897
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-3394f29a.mjs +18 -0
- package/fesm2022/divider-harness-3394f29a.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -8
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion.mjs +28 -26
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -4
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs +11 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1106
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -169
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -8
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +248 -0
- package/fesm2022/icon-button-47f1b5d9.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1024
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-ed59decc.mjs +115 -0
- package/fesm2022/input-harness-ed59decc.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -19
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +57 -50
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +23 -19
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-3bf2775f.mjs +1293 -0
- package/fesm2022/module-3bf2775f.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/module-df9f7af3.mjs +152 -0
- package/fesm2022/module-df9f7af3.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +41 -15
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +10 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +10 -8
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio.mjs +18 -11
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-8c55824d.mjs +123 -0
- package/fesm2022/select-harness-8c55824d.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1315
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +23 -23
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +27 -71
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +22 -17
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +32 -24
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +16 -14
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +42 -33
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table.mjs +58 -56
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +47 -44
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +31 -20
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -11
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -968
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -26
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +12 -437
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +7 -5
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/index.d.ts +5 -3
- package/icon/index.d.ts +9 -449
- package/icon/testing/index.d.ts +3 -1
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/input/index.d.ts +11 -6
- package/input/testing/index.d.ts +4 -59
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/index.d.ts +13 -19
- package/list/testing/index.d.ts +2 -2
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/index.d.ts +6 -3
- package/module.d-18a67f56.d.ts +206 -0
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +6 -6
- package/paginator/index.d.ts +29 -201
- package/paginator/testing/index.d.ts +4 -1
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -0
- package/progress-bar/index.d.ts +4 -3
- package/progress-spinner/index.d.ts +7 -96
- package/progress-spinner/testing/index.d.ts +3 -1
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/index.d.ts +7 -3
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- package/schematics/migration.json +4 -4
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-update/index_bundled.js +4 -4
- package/schematics/ng-update/index_bundled.js.map +1 -1
- package/select/index.d.ts +24 -451
- package/select/testing/index.d.ts +5 -62
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/index.d.ts +4 -3
- package/slide-toggle/index.d.ts +7 -45
- package/slider/index.d.ts +6 -3
- package/snack-bar/index.d.ts +8 -3
- package/sort/index.d.ts +10 -88
- package/sort/testing/index.d.ts +1 -1
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/index.d.ts +9 -4
- package/table/index.d.ts +11 -4
- package/tabs/index.d.ts +5 -3
- package/timepicker/index.d.ts +7 -4
- package/timepicker/testing/index.d.ts +1 -1
- package/toolbar/index.d.ts +3 -2
- package/tooltip/index.d.ts +10 -325
- package/tree/index.d.ts +3 -2
|
@@ -1,103 +1,14 @@
|
|
|
1
|
+
import { M as MatProgressSpinner } from '../progress-spinner.d-1fc040c5.js';
|
|
2
|
+
export { b as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, c as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, M as MatProgressSpinner, a as MatProgressSpinnerDefaultOptions, d as MatSpinner, P as ProgressSpinnerMode } from '../progress-spinner.d-1fc040c5.js';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
/** Possible mode for a progress spinner. */
|
|
7
|
-
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
8
|
-
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
9
|
-
interface MatProgressSpinnerDefaultOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
12
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
13
|
-
*
|
|
14
|
-
* For information on applying color variants in M3, see
|
|
15
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
16
|
-
*/
|
|
17
|
-
color?: ThemePalette;
|
|
18
|
-
/** Diameter of the spinner. */
|
|
19
|
-
diameter?: number;
|
|
20
|
-
/** Width of the spinner's stroke. */
|
|
21
|
-
strokeWidth?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
24
|
-
* using NoopAnimationsModule.
|
|
25
|
-
*/
|
|
26
|
-
_forceAnimations?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
29
|
-
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
30
|
-
/**
|
|
31
|
-
* @docs-private
|
|
32
|
-
* @deprecated No longer used, will be removed.
|
|
33
|
-
* @breaking-change 21.0.0
|
|
34
|
-
*/
|
|
35
|
-
declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
|
|
36
|
-
declare class MatProgressSpinner {
|
|
37
|
-
readonly _elementRef: ElementRef<HTMLElement>;
|
|
38
|
-
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
39
|
-
_noopAnimations: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
42
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
43
|
-
*
|
|
44
|
-
* For information on applying color variants in M3, see
|
|
45
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
46
|
-
*/
|
|
47
|
-
get color(): string | null | undefined;
|
|
48
|
-
set color(value: string | null | undefined);
|
|
49
|
-
private _color;
|
|
50
|
-
private _defaultColor;
|
|
51
|
-
/** The element of the determinate spinner. */
|
|
52
|
-
_determinateCircle: ElementRef<HTMLElement>;
|
|
53
|
-
constructor(...args: unknown[]);
|
|
54
|
-
/**
|
|
55
|
-
* Mode of the progress bar.
|
|
56
|
-
*
|
|
57
|
-
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
|
58
|
-
* 'determinate'.
|
|
59
|
-
* Mirrored to mode attribute.
|
|
60
|
-
*/
|
|
61
|
-
mode: ProgressSpinnerMode;
|
|
62
|
-
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
63
|
-
get value(): number;
|
|
64
|
-
set value(v: number);
|
|
65
|
-
private _value;
|
|
66
|
-
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
67
|
-
get diameter(): number;
|
|
68
|
-
set diameter(size: number);
|
|
69
|
-
private _diameter;
|
|
70
|
-
/** Stroke width of the progress spinner. */
|
|
71
|
-
get strokeWidth(): number;
|
|
72
|
-
set strokeWidth(value: number);
|
|
73
|
-
private _strokeWidth;
|
|
74
|
-
/** The radius of the spinner, adjusted for stroke width. */
|
|
75
|
-
_circleRadius(): number;
|
|
76
|
-
/** The view box of the spinner's svg element. */
|
|
77
|
-
_viewBox(): string;
|
|
78
|
-
/** The stroke circumference of the svg circle. */
|
|
79
|
-
_strokeCircumference(): number;
|
|
80
|
-
/** The dash offset of the svg circle. */
|
|
81
|
-
_strokeDashOffset(): number | null;
|
|
82
|
-
/** Stroke width of the circle in percent. */
|
|
83
|
-
_circleStrokeWidth(): number;
|
|
84
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
86
|
-
static ngAcceptInputType_value: unknown;
|
|
87
|
-
static ngAcceptInputType_diameter: unknown;
|
|
88
|
-
static ngAcceptInputType_strokeWidth: unknown;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated Import Progress Spinner instead. Note that the
|
|
92
|
-
* `mat-spinner` selector isn't deprecated.
|
|
93
|
-
* @breaking-change 16.0.0
|
|
94
|
-
*/
|
|
95
|
-
declare const MatSpinner: typeof MatProgressSpinner;
|
|
4
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
5
|
+
import '../palette.d-ec4a617c.js';
|
|
6
|
+
import '@angular/cdk/bidi';
|
|
96
7
|
|
|
97
8
|
declare class MatProgressSpinnerModule {
|
|
98
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
|
|
99
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof MatProgressSpinner, typeof MatProgressSpinner], [typeof MatProgressSpinner, typeof MatProgressSpinner, typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof MatProgressSpinner, typeof MatProgressSpinner], [typeof MatProgressSpinner, typeof MatProgressSpinner, typeof MatCommonModule]>;
|
|
100
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressSpinnerModule>;
|
|
101
12
|
}
|
|
102
13
|
|
|
103
|
-
export {
|
|
14
|
+
export { MatProgressSpinnerModule };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { ProgressSpinnerMode } from '
|
|
2
|
+
import { P as ProgressSpinnerMode } from '../../progress-spinner.d-1fc040c5.js';
|
|
3
|
+
import '@angular/core';
|
|
4
|
+
import '../../palette.d-ec4a617c.js';
|
|
3
5
|
|
|
4
6
|
/** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
|
|
5
7
|
interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef } from '@angular/core';
|
|
3
|
+
import { T as ThemePalette } from './palette.d-ec4a617c.js';
|
|
4
|
+
|
|
5
|
+
/** Possible mode for a progress spinner. */
|
|
6
|
+
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
7
|
+
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
8
|
+
interface MatProgressSpinnerDefaultOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
11
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
12
|
+
*
|
|
13
|
+
* For information on applying color variants in M3, see
|
|
14
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
15
|
+
*/
|
|
16
|
+
color?: ThemePalette;
|
|
17
|
+
/** Diameter of the spinner. */
|
|
18
|
+
diameter?: number;
|
|
19
|
+
/** Width of the spinner's stroke. */
|
|
20
|
+
strokeWidth?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
23
|
+
* using NoopAnimationsModule.
|
|
24
|
+
*/
|
|
25
|
+
_forceAnimations?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
28
|
+
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
29
|
+
/**
|
|
30
|
+
* @docs-private
|
|
31
|
+
* @deprecated No longer used, will be removed.
|
|
32
|
+
* @breaking-change 21.0.0
|
|
33
|
+
*/
|
|
34
|
+
declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
|
|
35
|
+
declare class MatProgressSpinner {
|
|
36
|
+
readonly _elementRef: ElementRef<HTMLElement>;
|
|
37
|
+
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
38
|
+
_noopAnimations: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
41
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
42
|
+
*
|
|
43
|
+
* For information on applying color variants in M3, see
|
|
44
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
45
|
+
*/
|
|
46
|
+
get color(): string | null | undefined;
|
|
47
|
+
set color(value: string | null | undefined);
|
|
48
|
+
private _color;
|
|
49
|
+
private _defaultColor;
|
|
50
|
+
/** The element of the determinate spinner. */
|
|
51
|
+
_determinateCircle: ElementRef<HTMLElement>;
|
|
52
|
+
constructor(...args: unknown[]);
|
|
53
|
+
/**
|
|
54
|
+
* Mode of the progress bar.
|
|
55
|
+
*
|
|
56
|
+
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
|
57
|
+
* 'determinate'.
|
|
58
|
+
* Mirrored to mode attribute.
|
|
59
|
+
*/
|
|
60
|
+
mode: ProgressSpinnerMode;
|
|
61
|
+
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
62
|
+
get value(): number;
|
|
63
|
+
set value(v: number);
|
|
64
|
+
private _value;
|
|
65
|
+
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
66
|
+
get diameter(): number;
|
|
67
|
+
set diameter(size: number);
|
|
68
|
+
private _diameter;
|
|
69
|
+
/** Stroke width of the progress spinner. */
|
|
70
|
+
get strokeWidth(): number;
|
|
71
|
+
set strokeWidth(value: number);
|
|
72
|
+
private _strokeWidth;
|
|
73
|
+
/** The radius of the spinner, adjusted for stroke width. */
|
|
74
|
+
_circleRadius(): number;
|
|
75
|
+
/** The view box of the spinner's svg element. */
|
|
76
|
+
_viewBox(): string;
|
|
77
|
+
/** The stroke circumference of the svg circle. */
|
|
78
|
+
_strokeCircumference(): number;
|
|
79
|
+
/** The dash offset of the svg circle. */
|
|
80
|
+
_strokeDashOffset(): number | null;
|
|
81
|
+
/** Stroke width of the circle in percent. */
|
|
82
|
+
_circleStrokeWidth(): number;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
85
|
+
static ngAcceptInputType_value: unknown;
|
|
86
|
+
static ngAcceptInputType_diameter: unknown;
|
|
87
|
+
static ngAcceptInputType_strokeWidth: unknown;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Import Progress Spinner instead. Note that the
|
|
91
|
+
* `mat-spinner` selector isn't deprecated.
|
|
92
|
+
* @breaking-change 16.0.0
|
|
93
|
+
*/
|
|
94
|
+
declare const MatSpinner: typeof MatProgressSpinner;
|
|
95
|
+
|
|
96
|
+
export { MatProgressSpinner as M, type ProgressSpinnerMode as P, type MatProgressSpinnerDefaultOptions as a, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS as b, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY as c, MatSpinner as d };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { M as MatCommonModule } from './common-module.d-0e6515ae.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Possible states for a pseudo checkbox.
|
|
6
|
+
* @docs-private
|
|
7
|
+
*/
|
|
8
|
+
type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
9
|
+
/**
|
|
10
|
+
* Component that shows a simplified checkbox without including any kind of "real" checkbox.
|
|
11
|
+
* Meant to be used when the checkbox is purely decorative and a large number of them will be
|
|
12
|
+
* included, such as for the options in a multi-select. Uses no SVGs or complex animations.
|
|
13
|
+
* Note that theming is meant to be handled by the parent element, e.g.
|
|
14
|
+
* `mat-primary .mat-pseudo-checkbox`.
|
|
15
|
+
*
|
|
16
|
+
* Note that this component will be completely invisible to screen-reader users. This is *not*
|
|
17
|
+
* interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
|
|
18
|
+
* interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
|
|
19
|
+
* of more complex components that appropriately handle selected / checked state.
|
|
20
|
+
* @docs-private
|
|
21
|
+
*/
|
|
22
|
+
declare class MatPseudoCheckbox {
|
|
23
|
+
_animationMode?: "NoopAnimations" | "BrowserAnimations" | null | undefined;
|
|
24
|
+
/** Display state of the checkbox. */
|
|
25
|
+
state: MatPseudoCheckboxState;
|
|
26
|
+
/** Whether the checkbox is disabled. */
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark
|
|
30
|
+
* indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.
|
|
31
|
+
*/
|
|
32
|
+
appearance: 'minimal' | 'full';
|
|
33
|
+
constructor(...args: unknown[]);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckbox, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatPseudoCheckbox, "mat-pseudo-checkbox", never, { "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class MatPseudoCheckboxModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckboxModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPseudoCheckboxModule, never, [typeof MatCommonModule, typeof MatPseudoCheckbox], [typeof MatPseudoCheckbox]>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatPseudoCheckboxModule>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { MatPseudoCheckboxModule as M, type MatPseudoCheckboxState as a, MatPseudoCheckbox as b };
|
package/radio/index.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ import { FocusOrigin } from '@angular/cdk/a11y';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { InjectionToken, AfterContentInit, OnDestroy, EventEmitter, QueryList, OnInit, AfterViewInit, DoCheck, ElementRef } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
5
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
6
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
7
|
+
import { M as MatRippleModule } from '../index.d-0536b706.js';
|
|
8
|
+
import '@angular/cdk/bidi';
|
|
9
|
+
import '../ripple.d-2fb57d04.js';
|
|
10
|
+
import '@angular/cdk/platform';
|
|
7
11
|
|
|
8
12
|
/** Change event object emitted by radio button and radio group. */
|
|
9
13
|
declare class MatRadioChange<T = any> {
|
|
@@ -290,7 +294,7 @@ declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestro
|
|
|
290
294
|
|
|
291
295
|
declare class MatRadioModule {
|
|
292
296
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioModule, never>;
|
|
293
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof
|
|
297
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof MatCommonModule, typeof MatRippleModule, typeof MatRadioGroup, typeof MatRadioButton], [typeof MatCommonModule, typeof MatRadioGroup, typeof MatRadioButton]>;
|
|
294
298
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatRadioModule>;
|
|
295
299
|
}
|
|
296
300
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Handles attaching ripples on demand.
|
|
6
|
+
*
|
|
7
|
+
* This service allows us to avoid eagerly creating & attaching MatRipples.
|
|
8
|
+
* It works by creating & attaching a ripple only when a component is first interacted with.
|
|
9
|
+
*
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
declare class MatRippleLoader implements OnDestroy {
|
|
13
|
+
private _document;
|
|
14
|
+
private _animationMode;
|
|
15
|
+
private _globalRippleOptions;
|
|
16
|
+
private _platform;
|
|
17
|
+
private _ngZone;
|
|
18
|
+
private _injector;
|
|
19
|
+
private _eventCleanups;
|
|
20
|
+
private _hosts;
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Configures the ripple that will be rendered by the ripple loader.
|
|
25
|
+
*
|
|
26
|
+
* Stores the given information about how the ripple should be configured on the host
|
|
27
|
+
* element so that it can later be retrived & used when the ripple is actually created.
|
|
28
|
+
*/
|
|
29
|
+
configureRipple(host: HTMLElement, config: {
|
|
30
|
+
className?: string;
|
|
31
|
+
centered?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
/** Sets the disabled state on the ripple instance corresponding to the given host element. */
|
|
35
|
+
setDisabled(host: HTMLElement, disabled: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Handles creating and attaching component internals
|
|
38
|
+
* when a component is initially interacted with.
|
|
39
|
+
*/
|
|
40
|
+
private _onInteraction;
|
|
41
|
+
/** Creates a MatRipple and appends it to the given element. */
|
|
42
|
+
private _createRipple;
|
|
43
|
+
destroyRipple(host: HTMLElement): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleLoader, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatRippleLoader>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { MatRippleLoader as M };
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, ElementRef, Injector, InjectionToken, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Platform } from '@angular/cdk/platform';
|
|
4
|
+
|
|
5
|
+
/** Possible states for a ripple element. */
|
|
6
|
+
declare enum RippleState {
|
|
7
|
+
FADING_IN = 0,
|
|
8
|
+
VISIBLE = 1,
|
|
9
|
+
FADING_OUT = 2,
|
|
10
|
+
HIDDEN = 3
|
|
11
|
+
}
|
|
12
|
+
type RippleConfig = {
|
|
13
|
+
color?: string;
|
|
14
|
+
centered?: boolean;
|
|
15
|
+
radius?: number;
|
|
16
|
+
persistent?: boolean;
|
|
17
|
+
animation?: RippleAnimationConfig;
|
|
18
|
+
terminateOnPointerUp?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Interface that describes the configuration for the animation of a ripple.
|
|
22
|
+
* There are two animation phases with different durations for the ripples.
|
|
23
|
+
*/
|
|
24
|
+
interface RippleAnimationConfig {
|
|
25
|
+
/** Duration in milliseconds for the enter animation (expansion from point of contact). */
|
|
26
|
+
enterDuration?: number;
|
|
27
|
+
/** Duration in milliseconds for the exit animation (fade-out). */
|
|
28
|
+
exitDuration?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Reference to a previously launched ripple element.
|
|
32
|
+
*/
|
|
33
|
+
declare class RippleRef {
|
|
34
|
+
private _renderer;
|
|
35
|
+
/** Reference to the ripple HTML element. */
|
|
36
|
+
element: HTMLElement;
|
|
37
|
+
/** Ripple configuration used for the ripple. */
|
|
38
|
+
config: RippleConfig;
|
|
39
|
+
_animationForciblyDisabledThroughCss: boolean;
|
|
40
|
+
/** Current state of the ripple. */
|
|
41
|
+
state: RippleState;
|
|
42
|
+
constructor(_renderer: {
|
|
43
|
+
fadeOutRipple(ref: RippleRef): void;
|
|
44
|
+
},
|
|
45
|
+
/** Reference to the ripple HTML element. */
|
|
46
|
+
element: HTMLElement,
|
|
47
|
+
/** Ripple configuration used for the ripple. */
|
|
48
|
+
config: RippleConfig, _animationForciblyDisabledThroughCss?: boolean);
|
|
49
|
+
/** Fades out the ripple element. */
|
|
50
|
+
fadeOut(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Interface that describes the target for launching ripples.
|
|
55
|
+
* It defines the ripple configuration and disabled state for interaction ripples.
|
|
56
|
+
* @docs-private
|
|
57
|
+
*/
|
|
58
|
+
interface RippleTarget {
|
|
59
|
+
/** Configuration for ripples that are launched on pointer down. */
|
|
60
|
+
rippleConfig: RippleConfig;
|
|
61
|
+
/** Whether ripples on pointer down should be disabled. */
|
|
62
|
+
rippleDisabled: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Default ripple animation configuration for ripples without an explicit
|
|
66
|
+
* animation config specified.
|
|
67
|
+
*/
|
|
68
|
+
declare const defaultRippleAnimationConfig: {
|
|
69
|
+
enterDuration: number;
|
|
70
|
+
exitDuration: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
74
|
+
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
75
|
+
* event handlers to be installed on the element that triggers ripple animations.
|
|
76
|
+
* This will eventually become a custom renderer once Angular support exists.
|
|
77
|
+
* @docs-private
|
|
78
|
+
*/
|
|
79
|
+
declare class RippleRenderer implements EventListenerObject {
|
|
80
|
+
private _target;
|
|
81
|
+
private _ngZone;
|
|
82
|
+
private _platform;
|
|
83
|
+
/** Element where the ripples are being added to. */
|
|
84
|
+
private _containerElement;
|
|
85
|
+
/** Element which triggers the ripple elements on mouse events. */
|
|
86
|
+
private _triggerElement;
|
|
87
|
+
/** Whether the pointer is currently down or not. */
|
|
88
|
+
private _isPointerDown;
|
|
89
|
+
/**
|
|
90
|
+
* Map of currently active ripple references.
|
|
91
|
+
* The ripple reference is mapped to its element event listeners.
|
|
92
|
+
* The reason why `| null` is used is that event listeners are added only
|
|
93
|
+
* when the condition is truthy (see the `_startFadeOutTransition` method).
|
|
94
|
+
*/
|
|
95
|
+
private _activeRipples;
|
|
96
|
+
/** Latest non-persistent ripple that was triggered. */
|
|
97
|
+
private _mostRecentTransientRipple;
|
|
98
|
+
/** Time in milliseconds when the last touchstart event happened. */
|
|
99
|
+
private _lastTouchStartEvent;
|
|
100
|
+
/** Whether pointer-up event listeners have been registered. */
|
|
101
|
+
private _pointerUpEventsRegistered;
|
|
102
|
+
/**
|
|
103
|
+
* Cached dimensions of the ripple container. Set when the first
|
|
104
|
+
* ripple is shown and cleared once no more ripples are visible.
|
|
105
|
+
*/
|
|
106
|
+
private _containerRect;
|
|
107
|
+
private static _eventManager;
|
|
108
|
+
constructor(_target: RippleTarget, _ngZone: NgZone, elementOrElementRef: HTMLElement | ElementRef<HTMLElement>, _platform: Platform, injector?: Injector);
|
|
109
|
+
/**
|
|
110
|
+
* Fades in a ripple at the given coordinates.
|
|
111
|
+
* @param x Coordinate within the element, along the X axis at which to start the ripple.
|
|
112
|
+
* @param y Coordinate within the element, along the Y axis at which to start the ripple.
|
|
113
|
+
* @param config Extra ripple options.
|
|
114
|
+
*/
|
|
115
|
+
fadeInRipple(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
116
|
+
/** Fades out a ripple reference. */
|
|
117
|
+
fadeOutRipple(rippleRef: RippleRef): void;
|
|
118
|
+
/** Fades out all currently active ripples. */
|
|
119
|
+
fadeOutAll(): void;
|
|
120
|
+
/** Fades out all currently active non-persistent ripples. */
|
|
121
|
+
fadeOutAllNonPersistent(): void;
|
|
122
|
+
/** Sets up the trigger event listeners */
|
|
123
|
+
setupTriggerEvents(elementOrElementRef: HTMLElement | ElementRef<HTMLElement>): void;
|
|
124
|
+
/**
|
|
125
|
+
* Handles all registered events.
|
|
126
|
+
* @docs-private
|
|
127
|
+
*/
|
|
128
|
+
handleEvent(event: Event): void;
|
|
129
|
+
/** Method that will be called if the fade-in or fade-in transition completed. */
|
|
130
|
+
private _finishRippleTransition;
|
|
131
|
+
/**
|
|
132
|
+
* Starts the fade-out transition of the given ripple if it's not persistent and the pointer
|
|
133
|
+
* is not held down anymore.
|
|
134
|
+
*/
|
|
135
|
+
private _startFadeOutTransition;
|
|
136
|
+
/** Destroys the given ripple by removing it from the DOM and updating its state. */
|
|
137
|
+
private _destroyRipple;
|
|
138
|
+
/** Function being called whenever the trigger is being pressed using mouse. */
|
|
139
|
+
private _onMousedown;
|
|
140
|
+
/** Function being called whenever the trigger is being pressed using touch. */
|
|
141
|
+
private _onTouchStart;
|
|
142
|
+
/** Function being called whenever the trigger is being released. */
|
|
143
|
+
private _onPointerUp;
|
|
144
|
+
private _getActiveRipples;
|
|
145
|
+
/** Removes previously registered event listeners from the trigger element. */
|
|
146
|
+
_removeTriggerEvents(): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** Configurable options for `matRipple`. */
|
|
150
|
+
interface RippleGlobalOptions {
|
|
151
|
+
/**
|
|
152
|
+
* Whether ripples should be disabled. Ripples can be still launched manually by using
|
|
153
|
+
* the `launch()` method. Therefore focus indicators will still show up.
|
|
154
|
+
*/
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Default configuration for the animation duration of the ripples. There are two phases with
|
|
158
|
+
* different durations for the ripples: `enter` and `leave`. The durations will be overwritten
|
|
159
|
+
* by the value of `matRippleAnimation` or if the `NoopAnimationsModule` is included.
|
|
160
|
+
*/
|
|
161
|
+
animation?: RippleAnimationConfig;
|
|
162
|
+
/**
|
|
163
|
+
* Whether ripples should start fading out immediately after the mouse or touch is released. By
|
|
164
|
+
* default, ripples will wait for the enter animation to complete and for mouse or touch release.
|
|
165
|
+
*/
|
|
166
|
+
terminateOnPointerUp?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* A namespace to use for ripple loader to allow multiple instances to exist on the same page.
|
|
169
|
+
*/
|
|
170
|
+
namespace?: string;
|
|
171
|
+
}
|
|
172
|
+
/** Injection token that can be used to specify the global ripple options. */
|
|
173
|
+
declare const MAT_RIPPLE_GLOBAL_OPTIONS: InjectionToken<RippleGlobalOptions>;
|
|
174
|
+
declare class MatRipple implements OnInit, OnDestroy, RippleTarget {
|
|
175
|
+
private _elementRef;
|
|
176
|
+
private _animationMode;
|
|
177
|
+
/** Custom color for all ripples. */
|
|
178
|
+
color: string;
|
|
179
|
+
/** Whether the ripples should be visible outside the component's bounds. */
|
|
180
|
+
unbounded: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the ripple always originates from the center of the host element's bounds, rather
|
|
183
|
+
* than originating from the location of the click event.
|
|
184
|
+
*/
|
|
185
|
+
centered: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
188
|
+
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
189
|
+
* bounding rectangle.
|
|
190
|
+
*/
|
|
191
|
+
radius: number;
|
|
192
|
+
/**
|
|
193
|
+
* Configuration for the ripple animation. Allows modifying the enter and exit animation
|
|
194
|
+
* duration of the ripples. The animation durations will be overwritten if the
|
|
195
|
+
* `NoopAnimationsModule` is being used.
|
|
196
|
+
*/
|
|
197
|
+
animation: RippleAnimationConfig;
|
|
198
|
+
/**
|
|
199
|
+
* Whether click events will not trigger the ripple. Ripples can be still launched manually
|
|
200
|
+
* by using the `launch()` method.
|
|
201
|
+
*/
|
|
202
|
+
get disabled(): boolean;
|
|
203
|
+
set disabled(value: boolean);
|
|
204
|
+
private _disabled;
|
|
205
|
+
/**
|
|
206
|
+
* The element that triggers the ripple when click events are received.
|
|
207
|
+
* Defaults to the directive's host element.
|
|
208
|
+
*/
|
|
209
|
+
get trigger(): HTMLElement;
|
|
210
|
+
set trigger(trigger: HTMLElement);
|
|
211
|
+
private _trigger;
|
|
212
|
+
/** Renderer for the ripple DOM manipulations. */
|
|
213
|
+
private _rippleRenderer;
|
|
214
|
+
/** Options that are set globally for all ripples. */
|
|
215
|
+
private _globalOptions;
|
|
216
|
+
/** @docs-private Whether ripple directive is initialized and the input bindings are set. */
|
|
217
|
+
_isInitialized: boolean;
|
|
218
|
+
constructor(...args: unknown[]);
|
|
219
|
+
ngOnInit(): void;
|
|
220
|
+
ngOnDestroy(): void;
|
|
221
|
+
/** Fades out all currently showing ripple elements. */
|
|
222
|
+
fadeOutAll(): void;
|
|
223
|
+
/** Fades out all currently showing non-persistent ripple elements. */
|
|
224
|
+
fadeOutAllNonPersistent(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Ripple configuration from the directive's input values.
|
|
227
|
+
* @docs-private Implemented as part of RippleTarget
|
|
228
|
+
*/
|
|
229
|
+
get rippleConfig(): RippleConfig;
|
|
230
|
+
/**
|
|
231
|
+
* Whether ripples on pointer-down are disabled or not.
|
|
232
|
+
* @docs-private Implemented as part of RippleTarget
|
|
233
|
+
*/
|
|
234
|
+
get rippleDisabled(): boolean;
|
|
235
|
+
/** Sets up the trigger event listeners if ripples are enabled. */
|
|
236
|
+
private _setupTriggerEventsIfEnabled;
|
|
237
|
+
/**
|
|
238
|
+
* Launches a manual ripple using the specified ripple configuration.
|
|
239
|
+
* @param config Configuration for the manual ripple.
|
|
240
|
+
*/
|
|
241
|
+
launch(config: RippleConfig): RippleRef;
|
|
242
|
+
/**
|
|
243
|
+
* Launches a manual ripple at the specified coordinates relative to the viewport.
|
|
244
|
+
* @param x Coordinate along the X axis at which to fade-in the ripple. Coordinate
|
|
245
|
+
* should be relative to the viewport.
|
|
246
|
+
* @param y Coordinate along the Y axis at which to fade-in the ripple. Coordinate
|
|
247
|
+
* should be relative to the viewport.
|
|
248
|
+
* @param config Optional ripple configuration for the manual ripple.
|
|
249
|
+
*/
|
|
250
|
+
launch(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRipple, never>;
|
|
252
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRipple, "[mat-ripple], [matRipple]", ["matRipple"], { "color": { "alias": "matRippleColor"; "required": false; }; "unbounded": { "alias": "matRippleUnbounded"; "required": false; }; "centered": { "alias": "matRippleCentered"; "required": false; }; "radius": { "alias": "matRippleRadius"; "required": false; }; "animation": { "alias": "matRippleAnimation"; "required": false; }; "disabled": { "alias": "matRippleDisabled"; "required": false; }; "trigger": { "alias": "matRippleTrigger"; "required": false; }; }, {}, never, never, true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { MatRipple as M, RippleRenderer as R, type RippleTarget as a, type RippleGlobalOptions as b, MAT_RIPPLE_GLOBAL_OPTIONS as c, defaultRippleAnimationConfig as d, RippleState as e, type RippleConfig as f, type RippleAnimationConfig as g, RippleRef as h };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
|
-
"migration-
|
|
5
|
-
"version": "
|
|
6
|
-
"description": "Updates Angular Material to
|
|
7
|
-
"factory": "./ng-update/index_bundled#
|
|
4
|
+
"migration-v20": {
|
|
5
|
+
"version": "20.0.0-0",
|
|
6
|
+
"description": "Updates Angular Material to v20",
|
|
7
|
+
"factory": "./ng-update/index_bundled#updateToV20"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~
|
|
22
|
+
const fallbackMaterialVersionRange = `~20.0.0-next.1`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -34,7 +34,7 @@ function default_1(options) {
|
|
|
34
34
|
// have the same version tag if possible.
|
|
35
35
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
36
36
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
37
|
-
const angularDependencyVersion = ngCoreVersionTag || `^
|
|
37
|
+
const angularDependencyVersion = ngCoreVersionTag || `^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0`;
|
|
38
38
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
39
39
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
40
40
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~
|
|
22
|
+
const fallbackMaterialVersionRange = `~20.0.0-next.1`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -34,7 +34,7 @@ function default_1(options) {
|
|
|
34
34
|
// have the same version tag if possible.
|
|
35
35
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
36
36
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
37
|
-
const angularDependencyVersion = ngCoreVersionTag || `^
|
|
37
|
+
const angularDependencyVersion = ngCoreVersionTag || `^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0`;
|
|
38
38
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
39
39
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
40
40
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|