@angular/material 21.1.0-next.1 → 21.1.0-next.3
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/core/focus-indicators/_private.scss +2 -2
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +6 -6
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +40 -40
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +8 -8
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +4 -4
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +4 -4
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +7 -7
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +6 -6
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +4 -4
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +3 -3
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +11 -11
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +3 -3
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +4 -4
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +5 -5
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +10 -11
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +21 -21
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +12 -12
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +11 -11
- 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 +16 -16
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +20 -20
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +11 -11
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +55 -55
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +12 -12
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +143 -143
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +26 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +25 -25
- 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.mjs +4 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +7 -7
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +9 -9
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +12 -12
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -59
- 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 +24 -24
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +12 -12
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +10 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +30 -30
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +11 -11
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +21 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +13 -13
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +38 -38
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +61 -75
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +48 -48
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +83 -88
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +4 -4
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/setup-project.js +1 -39
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/theming/{create-custom-theme.d.ts → create-theme.d.ts} +2 -2
- package/schematics/ng-add/theming/{create-custom-theme.js → create-theme.js} +6 -4
- package/schematics/ng-add/theming/create-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +15 -15
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/types/_tooltip-chunk.d.ts +305 -0
- package/types/datepicker.d.ts +2 -2
- package/types/paginator.d.ts +1 -0
- package/types/stepper.d.ts +4 -4
- package/types/table.d.ts +7 -2
- package/types/timepicker.d.ts +2 -2
- package/types/tooltip.d.ts +7 -297
- package/schematics/ng-add/theming/create-custom-theme.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-project.js","sourceRoot":"","sources":["setup-project.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,
|
|
1
|
+
{"version":3,"file":"setup-project.js","sourceRoot":"","sources":["setup-project.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,4BAgBC;AA7BD,2DAA+E;AAC/E,wDAAgE;AAChE,yDAA0D;AAC1D,mFAAyE;AACzE,2DAAuD;AAEvD,+CAAsD;AAEtD;;;;GAIG;AACH,mBAAyB,OAAe;IACtC,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAa,EAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,OAAO,GAAG,IAAA,oCAAuB,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAEpE,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,8BAAW,CAAC,WAAW,EAAE,CAAC;YAClE,OAAO,IAAA,kBAAK,EAAC,CAAC,IAAA,6BAAmB,EAAC,OAAO,CAAC,EAAE,IAAA,gCAAe,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACzE,CAAC;QACD,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,mFAAmF;YACjF,sEAAsE;YACtE,oFAAoF;YACpF,SAAS,CACZ,CAAC;QACF,OAAO;IACT,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
|
-
/** Create
|
|
9
|
-
export declare function
|
|
8
|
+
/** Create theme for the given application configuration. */
|
|
9
|
+
export declare function createTheme(userPaletteChoice: string): string;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
/** Create
|
|
12
|
-
function
|
|
10
|
+
exports.createTheme = createTheme;
|
|
11
|
+
/** Create theme for the given application configuration. */
|
|
12
|
+
function createTheme(userPaletteChoice) {
|
|
13
13
|
const colorPalettes = new Map([
|
|
14
14
|
['azure-blue', { primary: 'azure', tertiary: 'blue' }],
|
|
15
15
|
['rose-red', { primary: 'rose', tertiary: 'red' }],
|
|
@@ -25,6 +25,7 @@ function createCustomTheme(userPaletteChoice) {
|
|
|
25
25
|
@use '@angular/material' as mat;
|
|
26
26
|
|
|
27
27
|
html {
|
|
28
|
+
height: 100%;
|
|
28
29
|
@include mat.theme((
|
|
29
30
|
color: (
|
|
30
31
|
primary: mat.$${colorPalettes.get(userPaletteChoice).primary}-palette,
|
|
@@ -50,7 +51,8 @@ body {
|
|
|
50
51
|
|
|
51
52
|
// Reset the user agent margin.
|
|
52
53
|
margin: 0;
|
|
54
|
+
height: 100%;
|
|
53
55
|
}
|
|
54
56
|
`;
|
|
55
57
|
}
|
|
56
|
-
//# sourceMappingURL=create-
|
|
58
|
+
//# sourceMappingURL=create-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-theme.js","sourceRoot":"","sources":["create-theme.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAGH,kCA6CC;AA9CD,4DAA4D;AAC5D,SAAgB,WAAW,CAAC,iBAAyB;IACnD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;QAC5B,CAAC,YAAY,EAAE,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC;QACpD,CAAC,UAAU,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;QAChD,CAAC,gBAAgB,EAAE,EAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC5D,CAAC,aAAa,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;KACvD,CAAC,CAAC;IACH,OAAO;;;;;;;;;;;;sBAYa,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAE,CAAC,OAAO;uBAC5C,aAAa,CAAC,GAAG,CAAC,iBAAiB,CAAE,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAwBpE,CAAC;AACF,CAAC"}
|
|
@@ -14,11 +14,11 @@ const schematics_2 = require("@angular/cdk/schematics");
|
|
|
14
14
|
const change_1 = require("@schematics/angular/utility/change");
|
|
15
15
|
const utility_1 = require("@schematics/angular/utility");
|
|
16
16
|
const path_1 = require("path");
|
|
17
|
-
const
|
|
17
|
+
const create_theme_1 = require("./create-theme");
|
|
18
18
|
/** Path segment that can be found in paths that refer to a prebuilt theme. */
|
|
19
19
|
const prebuiltThemePathSegment = '@angular/material/prebuilt-themes';
|
|
20
20
|
/** Default file name of the custom theme that can be generated. */
|
|
21
|
-
const
|
|
21
|
+
const defaultThemeFilename = 'material-theme.scss';
|
|
22
22
|
/** Add pre-built styles to the main project style file. */
|
|
23
23
|
function addThemeToAppStyles(options) {
|
|
24
24
|
return (host, context) => {
|
|
@@ -30,18 +30,18 @@ function addThemeToAppStyles(options) {
|
|
|
30
30
|
if (palettes === 'custom') {
|
|
31
31
|
palettes = 'azure-blue';
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return insertTheme(palettes, options.project, host, context.logger);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
* Insert an Angular Material theme to project style file. If no valid style file could be found,
|
|
38
|
-
*
|
|
37
|
+
* Insert an Angular Material theme to project style file. If no valid style file could be found,
|
|
38
|
+
* a new Sass file for the theme will be created.
|
|
39
39
|
*/
|
|
40
|
-
async function
|
|
40
|
+
async function insertTheme(palettes, projectName, host, logger) {
|
|
41
41
|
const workspace = await (0, utility_1.readWorkspace)(host);
|
|
42
42
|
const project = (0, schematics_2.getProjectFromWorkspace)(workspace, projectName);
|
|
43
43
|
const stylesPath = (0, schematics_2.getProjectStyleFile)(project, 'scss');
|
|
44
|
-
const themeContent = (0,
|
|
44
|
+
const themeContent = (0, create_theme_1.createTheme)(palettes);
|
|
45
45
|
if (!stylesPath) {
|
|
46
46
|
if (!project.sourceRoot) {
|
|
47
47
|
throw new schematics_1.SchematicsException(`Could not find source root for project: "${projectName}". ` +
|
|
@@ -49,14 +49,14 @@ async function insertCustomTheme(palettes, projectName, host, logger) {
|
|
|
49
49
|
}
|
|
50
50
|
// Normalize the path through the devkit utilities because we want to avoid having
|
|
51
51
|
// unnecessary path segments and windows backslash delimiters.
|
|
52
|
-
const
|
|
53
|
-
if (host.exists(
|
|
54
|
-
logger.warn(`Cannot create
|
|
55
|
-
${
|
|
52
|
+
const themePath = (0, core_1.normalize)((0, path_1.join)(project.sourceRoot, defaultThemeFilename));
|
|
53
|
+
if (host.exists(themePath)) {
|
|
54
|
+
logger.warn(`Cannot create an Angular Material theme because
|
|
55
|
+
${themePath} already exists. Skipping theme generation.`);
|
|
56
56
|
return (0, schematics_1.noop)();
|
|
57
57
|
}
|
|
58
|
-
host.create(
|
|
59
|
-
return addThemeStyleToTarget(projectName, 'build',
|
|
58
|
+
host.create(themePath, themeContent);
|
|
59
|
+
return addThemeStyleToTarget(projectName, 'build', themePath, logger);
|
|
60
60
|
}
|
|
61
61
|
const insertion = new change_1.InsertChange(stylesPath, 0, themeContent);
|
|
62
62
|
const recorder = host.beginUpdate(stylesPath);
|
|
@@ -88,9 +88,9 @@ function addThemeStyleToTarget(projectName, targetName, assetPath, logger) {
|
|
|
88
88
|
// theme file. If a custom theme is set up, we are not able to safely replace the custom
|
|
89
89
|
// theme because these files can contain custom styles, while prebuilt themes are
|
|
90
90
|
// always packaged and considered replaceable.
|
|
91
|
-
if (stylePath.includes(
|
|
91
|
+
if (stylePath.includes(defaultThemeFilename)) {
|
|
92
92
|
logger.error(`Could not add the selected theme to the CLI project ` +
|
|
93
|
-
`configuration because there is already a
|
|
93
|
+
`configuration because there is already a theme file referenced.`);
|
|
94
94
|
logger.info(`Please manually add the following style file to your configuration:`);
|
|
95
95
|
logger.info(` ${assetPath}`);
|
|
96
96
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theming.js","sourceRoot":"","sources":["theming.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,kDAcC;AApCD,+CAAwD;AACxD,2DAAmG;AACnG,wDAMiC;AACjC,+DAAgE;AAChE,yDAA8F;AAC9F,+BAA0B;AAE1B
|
|
1
|
+
{"version":3,"file":"theming.js","sourceRoot":"","sources":["theming.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,kDAcC;AApCD,+CAAwD;AACxD,2DAAmG;AACnG,wDAMiC;AACjC,+DAAgE;AAChE,yDAA8F;AAC9F,+BAA0B;AAE1B,iDAA2C;AAE3C,8EAA8E;AAC9E,MAAM,wBAAwB,GAAG,mCAAmC,CAAC;AAErE,mEAAmE;AACnE,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAEnD,2DAA2D;AAC3D,SAAgB,mBAAmB,CAAC,OAAe;IACjD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,IAAI,QAAQ,GAAG,OAAO,CAAC,KAAK,IAAI,YAAY,CAAC;QAE7C,gGAAgG;QACh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M,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC7B,qFAAqF;QACrF,+EAA+E;QAC/E,MAAM,CAAC,IAAI,CACT,uDAAuD,UAAU,UAAU;YACzE,yDAAyD,UAAU,WAAW,CACjF,CAAC;IACJ,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
4
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
5
|
+
import { ScrollStrategy, OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition } from '@angular/cdk/overlay';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
interface CSSStyleDeclaration {
|
|
10
|
+
msUserSelect: string;
|
|
11
|
+
MozUserSelect: string;
|
|
12
|
+
webkitUserDrag: string;
|
|
13
|
+
webkitTapHighlightColor: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** Possible positions for a tooltip. */
|
|
17
|
+
type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
18
|
+
/**
|
|
19
|
+
* Options for how the tooltip trigger should handle touch gestures.
|
|
20
|
+
* See `MatTooltip.touchGestures` for more information.
|
|
21
|
+
*/
|
|
22
|
+
type TooltipTouchGestures = 'auto' | 'on' | 'off';
|
|
23
|
+
/** Possible visibility states of a tooltip. */
|
|
24
|
+
type TooltipVisibility = 'initial' | 'visible' | 'hidden';
|
|
25
|
+
/** Time in ms to throttle repositioning after scroll events. */
|
|
26
|
+
declare const SCROLL_THROTTLE_MS = 20;
|
|
27
|
+
/**
|
|
28
|
+
* Creates an error to be thrown if the user supplied an invalid tooltip position.
|
|
29
|
+
* @docs-private
|
|
30
|
+
*/
|
|
31
|
+
declare function getMatTooltipInvalidPositionError(position: string): Error;
|
|
32
|
+
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
33
|
+
declare const MAT_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
34
|
+
/** Injection token to be used to override the default options for `matTooltip`. */
|
|
35
|
+
declare const MAT_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MatTooltipDefaultOptions>;
|
|
36
|
+
/** Default `matTooltip` options that can be overridden. */
|
|
37
|
+
interface MatTooltipDefaultOptions {
|
|
38
|
+
/** Default delay when the tooltip is shown. */
|
|
39
|
+
showDelay: number;
|
|
40
|
+
/** Default delay when the tooltip is hidden. */
|
|
41
|
+
hideDelay: number;
|
|
42
|
+
/** Default delay when hiding the tooltip on a touch device. */
|
|
43
|
+
touchendHideDelay: number;
|
|
44
|
+
/** Time between the user putting the pointer on a tooltip trigger and the long press event being fired on a touch device. */
|
|
45
|
+
touchLongPressShowDelay?: number;
|
|
46
|
+
/** Default touch gesture handling for tooltips. */
|
|
47
|
+
touchGestures?: TooltipTouchGestures;
|
|
48
|
+
/** Default position for tooltips. */
|
|
49
|
+
position?: TooltipPosition;
|
|
50
|
+
/**
|
|
51
|
+
* Default value for whether tooltips should be positioned near the click or touch origin
|
|
52
|
+
* instead of outside the element bounding box.
|
|
53
|
+
*/
|
|
54
|
+
positionAtOrigin?: boolean;
|
|
55
|
+
/** Disables the ability for the user to interact with the tooltip element. */
|
|
56
|
+
disableTooltipInteractivity?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Default classes to be applied to the tooltip. These default classes will not be applied if
|
|
59
|
+
* `tooltipClass` is defined directly on the tooltip element, as it will override the default.
|
|
60
|
+
*/
|
|
61
|
+
tooltipClass?: string | string[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* CSS class that will be attached to the overlay panel.
|
|
65
|
+
* @deprecated
|
|
66
|
+
* @breaking-change 13.0.0 remove this variable
|
|
67
|
+
*/
|
|
68
|
+
declare const TOOLTIP_PANEL_CLASS = "mat-mdc-tooltip-panel";
|
|
69
|
+
/**
|
|
70
|
+
* Directive that attaches a material design tooltip to the host element. Animates the showing and
|
|
71
|
+
* hiding of a tooltip provided position (defaults to below the element).
|
|
72
|
+
*
|
|
73
|
+
* https://material.io/design/components/tooltips.html
|
|
74
|
+
*/
|
|
75
|
+
declare class MatTooltip implements OnDestroy, AfterViewInit {
|
|
76
|
+
private _elementRef;
|
|
77
|
+
private _ngZone;
|
|
78
|
+
private _platform;
|
|
79
|
+
private _ariaDescriber;
|
|
80
|
+
private _focusMonitor;
|
|
81
|
+
protected _dir: Directionality;
|
|
82
|
+
private _injector;
|
|
83
|
+
private _viewContainerRef;
|
|
84
|
+
private _animationsDisabled;
|
|
85
|
+
private _defaultOptions;
|
|
86
|
+
_overlayRef: OverlayRef | null;
|
|
87
|
+
_tooltipInstance: TooltipComponent | null;
|
|
88
|
+
_overlayPanelClass: string[] | undefined;
|
|
89
|
+
private _portal;
|
|
90
|
+
private _position;
|
|
91
|
+
private _positionAtOrigin;
|
|
92
|
+
private _disabled;
|
|
93
|
+
private _tooltipClass;
|
|
94
|
+
private _viewInitialized;
|
|
95
|
+
private _pointerExitEventsInitialized;
|
|
96
|
+
private readonly _tooltipComponent;
|
|
97
|
+
private _viewportMargin;
|
|
98
|
+
private _currentPosition;
|
|
99
|
+
private readonly _cssClassPrefix;
|
|
100
|
+
private _ariaDescriptionPending;
|
|
101
|
+
private _dirSubscribed;
|
|
102
|
+
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
103
|
+
get position(): TooltipPosition;
|
|
104
|
+
set position(value: TooltipPosition);
|
|
105
|
+
/**
|
|
106
|
+
* Whether tooltip should be relative to the click or touch origin
|
|
107
|
+
* instead of outside the element bounding box.
|
|
108
|
+
*/
|
|
109
|
+
get positionAtOrigin(): boolean;
|
|
110
|
+
set positionAtOrigin(value: BooleanInput);
|
|
111
|
+
/** Disables the display of the tooltip. */
|
|
112
|
+
get disabled(): boolean;
|
|
113
|
+
set disabled(value: BooleanInput);
|
|
114
|
+
/** The default delay in ms before showing the tooltip after show is called */
|
|
115
|
+
get showDelay(): number;
|
|
116
|
+
set showDelay(value: NumberInput);
|
|
117
|
+
private _showDelay;
|
|
118
|
+
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
119
|
+
get hideDelay(): number;
|
|
120
|
+
set hideDelay(value: NumberInput);
|
|
121
|
+
private _hideDelay;
|
|
122
|
+
/**
|
|
123
|
+
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
124
|
+
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
125
|
+
* gestures. To work around the conflict, Angular Material disables native gestures on the
|
|
126
|
+
* trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
|
|
127
|
+
* elements). The different values for this option configure the touch event handling as follows:
|
|
128
|
+
* - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
|
|
129
|
+
* browser gestures on particular elements. In particular, it allows text selection on inputs
|
|
130
|
+
* and textareas, and preserves the native browser dragging on elements marked as `draggable`.
|
|
131
|
+
* - `on` - Enables touch gestures for all elements and disables native
|
|
132
|
+
* browser gestures with no exceptions.
|
|
133
|
+
* - `off` - Disables touch gestures. Note that this will prevent the tooltip from
|
|
134
|
+
* showing on touch devices.
|
|
135
|
+
*/
|
|
136
|
+
touchGestures: TooltipTouchGestures;
|
|
137
|
+
/** The message to be displayed in the tooltip */
|
|
138
|
+
get message(): string;
|
|
139
|
+
set message(value: string | number | null | undefined);
|
|
140
|
+
private _message;
|
|
141
|
+
/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
|
|
142
|
+
get tooltipClass(): string | string[] | Set<string> | {
|
|
143
|
+
[key: string]: unknown;
|
|
144
|
+
};
|
|
145
|
+
set tooltipClass(value: string | string[] | Set<string> | {
|
|
146
|
+
[key: string]: unknown;
|
|
147
|
+
});
|
|
148
|
+
/** Manually-bound passive event listeners. */
|
|
149
|
+
private readonly _passiveListeners;
|
|
150
|
+
/** Timer started at the last `touchstart` event. */
|
|
151
|
+
private _touchstartTimeout;
|
|
152
|
+
/** Emits when the component is destroyed. */
|
|
153
|
+
private readonly _destroyed;
|
|
154
|
+
/** Whether ngOnDestroyed has been called. */
|
|
155
|
+
private _isDestroyed;
|
|
156
|
+
constructor(...args: unknown[]);
|
|
157
|
+
ngAfterViewInit(): void;
|
|
158
|
+
/**
|
|
159
|
+
* Dispose the tooltip when destroyed.
|
|
160
|
+
*/
|
|
161
|
+
ngOnDestroy(): void;
|
|
162
|
+
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
163
|
+
show(delay?: number, origin?: {
|
|
164
|
+
x: number;
|
|
165
|
+
y: number;
|
|
166
|
+
}): void;
|
|
167
|
+
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
168
|
+
hide(delay?: number): void;
|
|
169
|
+
/** Shows/hides the tooltip */
|
|
170
|
+
toggle(origin?: {
|
|
171
|
+
x: number;
|
|
172
|
+
y: number;
|
|
173
|
+
}): void;
|
|
174
|
+
/** Returns true if the tooltip is currently visible to the user */
|
|
175
|
+
_isTooltipVisible(): boolean;
|
|
176
|
+
/** Create the overlay config and position strategy */
|
|
177
|
+
private _createOverlay;
|
|
178
|
+
/** Detaches the currently-attached tooltip. */
|
|
179
|
+
private _detach;
|
|
180
|
+
/** Updates the position of the current tooltip. */
|
|
181
|
+
private _updatePosition;
|
|
182
|
+
/** Adds the configured offset to a position. Used as a hook for child classes. */
|
|
183
|
+
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
184
|
+
/**
|
|
185
|
+
* Returns the origin position and a fallback position based on the user's position preference.
|
|
186
|
+
* The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
|
|
187
|
+
*/
|
|
188
|
+
_getOrigin(): {
|
|
189
|
+
main: OriginConnectionPosition;
|
|
190
|
+
fallback: OriginConnectionPosition;
|
|
191
|
+
};
|
|
192
|
+
/** Returns the overlay position and a fallback position based on the user's preference */
|
|
193
|
+
_getOverlayPosition(): {
|
|
194
|
+
main: OverlayConnectionPosition;
|
|
195
|
+
fallback: OverlayConnectionPosition;
|
|
196
|
+
};
|
|
197
|
+
/** Updates the tooltip message and repositions the overlay according to the new message length */
|
|
198
|
+
private _updateTooltipMessage;
|
|
199
|
+
/** Updates the tooltip class */
|
|
200
|
+
private _setTooltipClass;
|
|
201
|
+
/** Inverts an overlay position. */
|
|
202
|
+
private _invertPosition;
|
|
203
|
+
/** Updates the class on the overlay panel based on the current position of the tooltip. */
|
|
204
|
+
private _updateCurrentPositionClass;
|
|
205
|
+
/** Binds the pointer events to the tooltip trigger. */
|
|
206
|
+
private _setupPointerEnterEventsIfNeeded;
|
|
207
|
+
private _setupPointerExitEventsIfNeeded;
|
|
208
|
+
private _addListeners;
|
|
209
|
+
private _platformSupportsMouseEvents;
|
|
210
|
+
/** Listener for the `wheel` event on the element. */
|
|
211
|
+
private _wheelListener;
|
|
212
|
+
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
213
|
+
private _disableNativeGesturesIfNecessary;
|
|
214
|
+
/** Updates the tooltip's ARIA description based on it current state. */
|
|
215
|
+
private _syncAriaDescription;
|
|
216
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltip, never>;
|
|
217
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTooltip, "[matTooltip]", ["matTooltip"], { "position": { "alias": "matTooltipPosition"; "required": false; }; "positionAtOrigin": { "alias": "matTooltipPositionAtOrigin"; "required": false; }; "disabled": { "alias": "matTooltipDisabled"; "required": false; }; "showDelay": { "alias": "matTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "matTooltipHideDelay"; "required": false; }; "touchGestures": { "alias": "matTooltipTouchGestures"; "required": false; }; "message": { "alias": "matTooltip"; "required": false; }; "tooltipClass": { "alias": "matTooltipClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Internal component that wraps the tooltip's content.
|
|
221
|
+
* @docs-private
|
|
222
|
+
*/
|
|
223
|
+
declare class TooltipComponent implements OnDestroy {
|
|
224
|
+
private _changeDetectorRef;
|
|
225
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
226
|
+
_isMultiline: boolean;
|
|
227
|
+
/** Message to display in the tooltip */
|
|
228
|
+
message: string;
|
|
229
|
+
/** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
|
|
230
|
+
tooltipClass: string | string[] | Set<string> | {
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
};
|
|
233
|
+
/** The timeout ID of any current timer set to show the tooltip */
|
|
234
|
+
private _showTimeoutId;
|
|
235
|
+
/** The timeout ID of any current timer set to hide the tooltip */
|
|
236
|
+
private _hideTimeoutId;
|
|
237
|
+
/** Element that caused the tooltip to open. */
|
|
238
|
+
_triggerElement: HTMLElement;
|
|
239
|
+
/** Amount of milliseconds to delay the closing sequence. */
|
|
240
|
+
_mouseLeaveHideDelay: number;
|
|
241
|
+
/** Whether animations are currently disabled. */
|
|
242
|
+
private _animationsDisabled;
|
|
243
|
+
/** Reference to the internal tooltip element. */
|
|
244
|
+
_tooltip: ElementRef<HTMLElement>;
|
|
245
|
+
/** Whether interactions on the page should close the tooltip */
|
|
246
|
+
private _closeOnInteraction;
|
|
247
|
+
/** Whether the tooltip is currently visible. */
|
|
248
|
+
private _isVisible;
|
|
249
|
+
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
250
|
+
private readonly _onHide;
|
|
251
|
+
/** Name of the show animation and the class that toggles it. */
|
|
252
|
+
private readonly _showAnimation;
|
|
253
|
+
/** Name of the hide animation and the class that toggles it. */
|
|
254
|
+
private readonly _hideAnimation;
|
|
255
|
+
constructor(...args: unknown[]);
|
|
256
|
+
/**
|
|
257
|
+
* Shows the tooltip with an animation originating from the provided origin
|
|
258
|
+
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
259
|
+
*/
|
|
260
|
+
show(delay: number): void;
|
|
261
|
+
/**
|
|
262
|
+
* Begins the animation to hide the tooltip after the provided delay in ms.
|
|
263
|
+
* @param delay Amount of milliseconds to delay showing the tooltip.
|
|
264
|
+
*/
|
|
265
|
+
hide(delay: number): void;
|
|
266
|
+
/** Returns an observable that notifies when the tooltip has been hidden from view. */
|
|
267
|
+
afterHidden(): Observable<void>;
|
|
268
|
+
/** Whether the tooltip is being displayed. */
|
|
269
|
+
isVisible(): boolean;
|
|
270
|
+
ngOnDestroy(): void;
|
|
271
|
+
/**
|
|
272
|
+
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
273
|
+
* material design spec.
|
|
274
|
+
* https://material.io/design/components/tooltips.html#behavior
|
|
275
|
+
*/
|
|
276
|
+
_handleBodyInteraction(): void;
|
|
277
|
+
/**
|
|
278
|
+
* Marks that the tooltip needs to be checked in the next change detection run.
|
|
279
|
+
* Mainly used for rendering the initial text before positioning a tooltip, which
|
|
280
|
+
* can be problematic in components with OnPush change detection.
|
|
281
|
+
*/
|
|
282
|
+
_markForCheck(): void;
|
|
283
|
+
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
284
|
+
/**
|
|
285
|
+
* Callback for when the timeout in this.show() gets completed.
|
|
286
|
+
* This method is only needed by the mdc-tooltip, and so it is only implemented
|
|
287
|
+
* in the mdc-tooltip, not here.
|
|
288
|
+
*/
|
|
289
|
+
protected _onShow(): void;
|
|
290
|
+
/** Whether the tooltip text has overflown to the next line */
|
|
291
|
+
private _isTooltipMultiline;
|
|
292
|
+
/** Event listener dispatched when an animation on the tooltip finishes. */
|
|
293
|
+
_handleAnimationEnd({ animationName }: AnimationEvent): void;
|
|
294
|
+
/** Cancels any pending animation sequences. */
|
|
295
|
+
_cancelPendingAnimations(): void;
|
|
296
|
+
/** Handles the cleanup after an animation has finished. */
|
|
297
|
+
private _finalizeAnimation;
|
|
298
|
+
/** Toggles the visibility of the tooltip element. */
|
|
299
|
+
private _toggleVisibility;
|
|
300
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
301
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never, true, never>;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltip, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMatTooltipInvalidPositionError };
|
|
305
|
+
export type { MatTooltipDefaultOptions, TooltipPosition, TooltipTouchGestures, TooltipVisibility };
|
package/types/datepicker.d.ts
CHANGED
|
@@ -989,7 +989,7 @@ declare abstract class MatDatepickerInputBase<S, D = ExtractDateTypeFromSelectio
|
|
|
989
989
|
*/
|
|
990
990
|
protected _parentDisabled(): boolean;
|
|
991
991
|
/** Programmatically assigns a value to the input. */
|
|
992
|
-
protected _assignValueProgrammatically(value: D | null): void;
|
|
992
|
+
protected _assignValueProgrammatically(value: D | null, reformat: boolean): void;
|
|
993
993
|
/** Gets whether a value matches the current date filter. */
|
|
994
994
|
_matchesFilter(value: D | null): boolean;
|
|
995
995
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerInputBase<any, any>, never>;
|
|
@@ -1476,7 +1476,7 @@ declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBa
|
|
|
1476
1476
|
protected _getDateFilter(): DateFilterFn<D> | null | undefined;
|
|
1477
1477
|
protected _parentDisabled(): boolean;
|
|
1478
1478
|
protected _shouldHandleChangeEvent({ source }: DateSelectionModelChange<DateRange<D>>): boolean;
|
|
1479
|
-
protected _assignValueProgrammatically(value: D | null): void;
|
|
1479
|
+
protected _assignValueProgrammatically(value: D | null, reformat: boolean): void;
|
|
1480
1480
|
protected _formatValue(value: D | null): void;
|
|
1481
1481
|
/** return the ARIA accessible name of the input element */
|
|
1482
1482
|
_getAccessibleName(): string;
|
package/types/paginator.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import '@angular/cdk/coercion';
|
|
|
25
25
|
import './_form-field-control-chunk.js';
|
|
26
26
|
import './_form-field-module-chunk.js';
|
|
27
27
|
import '@angular/cdk/observers';
|
|
28
|
+
import './_tooltip-chunk.js';
|
|
28
29
|
|
|
29
30
|
declare class MatPaginatorModule {
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorModule, never>;
|
package/types/stepper.d.ts
CHANGED
|
@@ -113,11 +113,11 @@ declare class MatStepHeader extends CdkStepHeader implements AfterViewInit, OnDe
|
|
|
113
113
|
/**
|
|
114
114
|
* Content for a `mat-step` that will be rendered lazily.
|
|
115
115
|
*/
|
|
116
|
-
declare class MatStepContent {
|
|
117
|
-
_template: TemplateRef<
|
|
116
|
+
declare class MatStepContent<C = unknown> {
|
|
117
|
+
_template: TemplateRef<C>;
|
|
118
118
|
constructor(...args: unknown[]);
|
|
119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepContent
|
|
120
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepContent<any>, never>;
|
|
120
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent<any>, "ng-template[matStepContent]", never, {}, {}, never, never, true, never>;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
|
package/types/table.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import * as i2 from '@angular/cdk/bidi';
|
|
5
5
|
import { Subscription, BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { DataSource } from '@angular/cdk/collections';
|
|
7
|
+
import './_tooltip-chunk.js';
|
|
7
8
|
import { MatPaginator } from './_paginator-chunk.js';
|
|
8
9
|
import { MatSort } from './_sort-chunk.js';
|
|
10
|
+
import '@angular/cdk/coercion';
|
|
11
|
+
import '@angular/cdk/overlay';
|
|
9
12
|
import './_palette-chunk.js';
|
|
10
13
|
import './_form-field-chunk.js';
|
|
11
|
-
import '@angular/cdk/coercion';
|
|
12
14
|
import '@angular/forms';
|
|
13
15
|
import './_form-field-control-chunk.js';
|
|
14
16
|
import './_sort-direction-chunk.js';
|
|
@@ -16,6 +18,9 @@ import './_sort-direction-chunk.js';
|
|
|
16
18
|
/**
|
|
17
19
|
* Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
|
|
18
20
|
* tables that animate rows.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated This directive is a no-op and will be removed.
|
|
23
|
+
* @breaking-change 23.0.0
|
|
19
24
|
*/
|
|
20
25
|
declare class MatRecycleRows {
|
|
21
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRecycleRows, never>;
|
|
@@ -171,7 +176,7 @@ declare class MatTableModule {
|
|
|
171
176
|
* interactions. If your app needs to support more advanced use cases, consider implementing your
|
|
172
177
|
* own `DataSource`.
|
|
173
178
|
*/
|
|
174
|
-
declare class MatTableDataSource<T, P extends MatPaginator = MatPaginator> extends DataSource<T> {
|
|
179
|
+
declare class MatTableDataSource<T extends object | any, P extends MatPaginator = MatPaginator> extends DataSource<T> {
|
|
175
180
|
/** Stream that emits when a new data array is set on the data source. */
|
|
176
181
|
private readonly _data;
|
|
177
182
|
/** Stream emitting render data to the table (depends on ordered data changes). */
|
package/types/timepicker.d.ts
CHANGED
|
@@ -209,12 +209,12 @@ declare class MatTimepickerInput<D> implements MatTimepickerConnectedInput<D>, C
|
|
|
209
209
|
* Implemented as a part of `ControlValueAccessor`.
|
|
210
210
|
* @docs-private
|
|
211
211
|
*/
|
|
212
|
-
writeValue(value:
|
|
212
|
+
writeValue(value: unknown): void;
|
|
213
213
|
/**
|
|
214
214
|
* Implemented as a part of `ControlValueAccessor`.
|
|
215
215
|
* @docs-private
|
|
216
216
|
*/
|
|
217
|
-
registerOnChange(fn: (value:
|
|
217
|
+
registerOnChange(fn: (value: unknown) => void): void;
|
|
218
218
|
/**
|
|
219
219
|
* Implemented as a part of `ControlValueAccessor`.
|
|
220
220
|
* @docs-private
|