@angular/cdk 19.2.1 → 19.2.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/a11y/index.d.ts +926 -999
- package/accordion/index.d.ts +8 -27
- package/bidi/index.d.ts +38 -48
- package/clipboard/index.d.ts +61 -75
- package/coercion/index.d.ts +22 -32
- package/coercion/private/index.d.ts +2 -2
- package/collections/index.d.ts +139 -158
- package/dialog/index.d.ts +210 -246
- package/drag-drop/index.d.ts +1084 -1160
- package/fesm2022/a11y.mjs +62 -54
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -14
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +15 -15
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -14
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +0 -4
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +4 -8
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +10 -14
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +31 -35
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs +0 -4
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +10 -14
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +10 -14
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +49 -53
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +3 -7
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +13 -17
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +54 -50
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -11
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +25 -26
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +6 -10
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +36 -40
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +29 -32
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +78 -88
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +1 -41
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +16 -20
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -29
- package/fesm2022/tree.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/keycodes/index.d.ts +123 -244
- package/layout/index.d.ts +23 -25
- package/listbox/index.d.ts +90 -107
- package/menu/index.d.ts +593 -687
- package/observers/index.d.ts +38 -44
- package/observers/private/index.d.ts +3 -3
- package/overlay/index.d.ts +921 -986
- package/package.json +1 -1
- package/platform/index.d.ts +50 -62
- package/portal/index.d.ts +172 -195
- package/private/index.d.ts +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +1 -1
- package/scrolling/index.d.ts +268 -351
- package/stepper/index.d.ts +72 -124
- package/table/index.d.ts +336 -449
- package/testing/index.d.ts +490 -517
- package/testing/selenium-webdriver/index.d.ts +30 -20
- package/testing/testbed/index.d.ts +9 -19
- package/text-field/index.d.ts +9 -30
- package/tree/index.d.ts +204 -271
package/accordion/index.d.ts
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
|
-
import { OnChanges } from '@angular/core';
|
|
5
|
-
import { OnDestroy } from '@angular/core';
|
|
6
|
-
import { OnInit } from '@angular/core';
|
|
7
|
-
import { SimpleChanges } from '@angular/core';
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
2
|
+
import { InjectionToken, OnDestroy, OnChanges, SimpleChanges, OnInit, EventEmitter } from '@angular/core';
|
|
9
3
|
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
10
5
|
|
|
11
6
|
/**
|
|
12
7
|
* Injection token that can be used to reference instances of `CdkAccordion`. It serves
|
|
13
8
|
* as alternative token to the actual `CdkAccordion` class which could cause unnecessary
|
|
14
9
|
* retention of the class and its directive metadata.
|
|
15
10
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
declare const CDK_ACCORDION: InjectionToken<CdkAccordion>;
|
|
18
12
|
/**
|
|
19
13
|
* Directive whose purpose is to manage the expanded state of CdkAccordionItem children.
|
|
20
14
|
*/
|
|
21
|
-
|
|
15
|
+
declare class CdkAccordion implements OnDestroy, OnChanges {
|
|
22
16
|
/** Emits when the state of the accordion changes */
|
|
23
17
|
readonly _stateChanges: Subject<SimpleChanges>;
|
|
24
18
|
/** Stream that emits true/false when openAll/closeAll is triggered. */
|
|
@@ -42,7 +36,7 @@ export declare class CdkAccordion implements OnDestroy, OnChanges {
|
|
|
42
36
|
* A basic directive expected to be extended and decorated as a component. Sets up all
|
|
43
37
|
* events and attributes needed to be managed by a CdkAccordion parent.
|
|
44
38
|
*/
|
|
45
|
-
|
|
39
|
+
declare class CdkAccordionItem implements OnInit, OnDestroy {
|
|
46
40
|
accordion: CdkAccordion;
|
|
47
41
|
private _changeDetectorRef;
|
|
48
42
|
protected _expansionDispatcher: UniqueSelectionDispatcher;
|
|
@@ -87,23 +81,10 @@ export declare class CdkAccordionItem implements OnInit, OnDestroy {
|
|
|
87
81
|
static ngAcceptInputType_disabled: unknown;
|
|
88
82
|
}
|
|
89
83
|
|
|
90
|
-
|
|
84
|
+
declare class CdkAccordionModule {
|
|
91
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionModule, never>;
|
|
92
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkAccordionModule, never, [typeof
|
|
86
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkAccordionModule, never, [typeof CdkAccordion, typeof CdkAccordionItem], [typeof CdkAccordion, typeof CdkAccordionItem]>;
|
|
93
87
|
static ɵinj: i0.ɵɵInjectorDeclaration<CdkAccordionModule>;
|
|
94
88
|
}
|
|
95
89
|
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
CDK_ACCORDION,
|
|
99
|
-
CdkAccordion
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare namespace i2 {
|
|
104
|
-
export {
|
|
105
|
-
CdkAccordionItem
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export { }
|
|
90
|
+
export { CDK_ACCORDION, CdkAccordion, CdkAccordionItem, CdkAccordionModule };
|
package/bidi/index.d.ts
CHANGED
|
@@ -1,40 +1,20 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken } from '@angular/core';
|
|
5
|
-
import { OnDestroy } from '@angular/core';
|
|
6
|
-
|
|
7
|
-
export declare class BidiModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BidiModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BidiModule, never, [typeof i1.Dir], [typeof i1.Dir]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BidiModule>;
|
|
11
|
-
}
|
|
2
|
+
import { OnDestroy, EventEmitter, InjectionToken, AfterContentInit } from '@angular/core';
|
|
12
3
|
|
|
4
|
+
type Direction = 'ltr' | 'rtl';
|
|
13
5
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Provides itself as Directionality such that descendant directives only need to ever inject
|
|
17
|
-
* Directionality to get the closest direction.
|
|
6
|
+
* The directionality (LTR / RTL) context for the application (or a subtree of it).
|
|
7
|
+
* Exposes the current direction and a stream of direction changes.
|
|
18
8
|
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
private _isInitialized;
|
|
24
|
-
/** Direction as passed in by the consumer. */
|
|
25
|
-
_rawDir: string;
|
|
26
|
-
/** Event emitted when the direction changes. */
|
|
9
|
+
declare class Directionality implements OnDestroy {
|
|
10
|
+
/** The current 'ltr' or 'rtl' value. */
|
|
11
|
+
readonly value: Direction;
|
|
12
|
+
/** Stream that emits whenever the 'ltr' / 'rtl' state changes. */
|
|
27
13
|
readonly change: EventEmitter<Direction>;
|
|
28
|
-
|
|
29
|
-
get dir(): Direction;
|
|
30
|
-
set dir(value: Direction | 'auto');
|
|
31
|
-
/** Current layout direction of the element. */
|
|
32
|
-
get value(): Direction;
|
|
33
|
-
/** Initialize once default value has been set. */
|
|
34
|
-
ngAfterContentInit(): void;
|
|
14
|
+
constructor(...args: unknown[]);
|
|
35
15
|
ngOnDestroy(): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
37
|
-
static
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Directionality, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Directionality>;
|
|
38
18
|
}
|
|
39
19
|
|
|
40
20
|
/**
|
|
@@ -52,29 +32,39 @@ export declare class Dir implements Directionality, AfterContentInit, OnDestroy
|
|
|
52
32
|
*
|
|
53
33
|
* @docs-private
|
|
54
34
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export declare type Direction = 'ltr' | 'rtl';
|
|
35
|
+
declare const DIR_DOCUMENT: InjectionToken<Document>;
|
|
58
36
|
|
|
59
37
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
38
|
+
* Directive to listen for changes of direction of part of the DOM.
|
|
39
|
+
*
|
|
40
|
+
* Provides itself as Directionality such that descendant directives only need to ever inject
|
|
41
|
+
* Directionality to get the closest direction.
|
|
62
42
|
*/
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
/**
|
|
43
|
+
declare class Dir implements Directionality, AfterContentInit, OnDestroy {
|
|
44
|
+
/** Normalized direction that accounts for invalid/unsupported values. */
|
|
45
|
+
private _dir;
|
|
46
|
+
/** Whether the `value` has been set to its initial value. */
|
|
47
|
+
private _isInitialized;
|
|
48
|
+
/** Direction as passed in by the consumer. */
|
|
49
|
+
_rawDir: string;
|
|
50
|
+
/** Event emitted when the direction changes. */
|
|
67
51
|
readonly change: EventEmitter<Direction>;
|
|
68
|
-
|
|
52
|
+
/** @docs-private */
|
|
53
|
+
get dir(): Direction;
|
|
54
|
+
set dir(value: Direction | 'auto');
|
|
55
|
+
/** Current layout direction of the element. */
|
|
56
|
+
get value(): Direction;
|
|
57
|
+
/** Initialize once default value has been set. */
|
|
58
|
+
ngAfterContentInit(): void;
|
|
69
59
|
ngOnDestroy(): void;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
71
|
-
static
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dir, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Dir, "[dir]", ["dir"], { "dir": { "alias": "dir"; "required": false; }; }, { "change": "dirChange"; }, never, never, true, never>;
|
|
72
62
|
}
|
|
73
63
|
|
|
74
|
-
declare
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
declare class BidiModule {
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BidiModule, never>;
|
|
66
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BidiModule, never, [typeof Dir], [typeof Dir]>;
|
|
67
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BidiModule>;
|
|
78
68
|
}
|
|
79
69
|
|
|
80
|
-
export { }
|
|
70
|
+
export { BidiModule, DIR_DOCUMENT, Dir, type Direction, Directionality };
|
package/clipboard/index.d.ts
CHANGED
|
@@ -1,16 +1,68 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy, EventEmitter } from '@angular/core';
|
|
5
3
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
4
|
+
/**
|
|
5
|
+
* A pending copy-to-clipboard operation.
|
|
6
|
+
*
|
|
7
|
+
* The implementation of copying text to the clipboard modifies the DOM and
|
|
8
|
+
* forces a re-layout. This re-layout can take too long if the string is large,
|
|
9
|
+
* causing the execCommand('copy') to happen too long after the user clicked.
|
|
10
|
+
* This results in the browser refusing to copy. This object lets the
|
|
11
|
+
* re-layout happen in a separate tick from copying by providing a copy function
|
|
12
|
+
* that can be called later.
|
|
13
|
+
*
|
|
14
|
+
* Destroy must be called when no longer in use, regardless of whether `copy` is
|
|
15
|
+
* called.
|
|
16
|
+
*/
|
|
17
|
+
declare class PendingCopy {
|
|
18
|
+
private readonly _document;
|
|
19
|
+
private _textarea;
|
|
20
|
+
constructor(text: string, _document: Document);
|
|
21
|
+
/** Finishes copying the text. */
|
|
22
|
+
copy(): boolean;
|
|
23
|
+
/** Cleans up DOM changes used to perform the copy operation. */
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
8
26
|
|
|
27
|
+
/**
|
|
28
|
+
* A service for copying text to the clipboard.
|
|
29
|
+
*/
|
|
30
|
+
declare class Clipboard {
|
|
31
|
+
private readonly _document;
|
|
32
|
+
constructor(...args: unknown[]);
|
|
33
|
+
/**
|
|
34
|
+
* Copies the provided text into the user's clipboard.
|
|
35
|
+
*
|
|
36
|
+
* @param text The string to copy.
|
|
37
|
+
* @returns Whether the operation was successful.
|
|
38
|
+
*/
|
|
39
|
+
copy(text: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Prepares a string to be copied later. This is useful for large strings
|
|
42
|
+
* which take too long to successfully render and be copied in the same tick.
|
|
43
|
+
*
|
|
44
|
+
* The caller must call `destroy` on the returned `PendingCopy`.
|
|
45
|
+
*
|
|
46
|
+
* @param text The string to copy.
|
|
47
|
+
* @returns the pending copy operation.
|
|
48
|
+
*/
|
|
49
|
+
beginCopy(text: string): PendingCopy;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Object that can be used to configure the default options for `CdkCopyToClipboard`. */
|
|
55
|
+
interface CdkCopyToClipboardConfig {
|
|
56
|
+
/** Default number of attempts to make when copying text to the clipboard. */
|
|
57
|
+
attempts?: number;
|
|
58
|
+
}
|
|
59
|
+
/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
|
|
60
|
+
declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
|
|
9
61
|
/**
|
|
10
62
|
* Provides behavior for a button that when clicked copies content into user's
|
|
11
63
|
* clipboard.
|
|
12
64
|
*/
|
|
13
|
-
|
|
65
|
+
declare class CdkCopyToClipboard implements OnDestroy {
|
|
14
66
|
private _clipboard;
|
|
15
67
|
private _ngZone;
|
|
16
68
|
/** Content to be copied. */
|
|
@@ -39,76 +91,10 @@ export declare class CdkCopyToClipboard implements OnDestroy {
|
|
|
39
91
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { "text": { "alias": "cdkCopyToClipboard"; "required": false; }; "attempts": { "alias": "cdkCopyToClipboardAttempts"; "required": false; }; }, { "copied": "cdkCopyToClipboardCopied"; }, never, never, true, never>;
|
|
40
92
|
}
|
|
41
93
|
|
|
42
|
-
|
|
43
|
-
export declare interface CdkCopyToClipboardConfig {
|
|
44
|
-
/** Default number of attempts to make when copying text to the clipboard. */
|
|
45
|
-
attempts?: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* A service for copying text to the clipboard.
|
|
50
|
-
*/
|
|
51
|
-
declare class Clipboard_2 {
|
|
52
|
-
private readonly _document;
|
|
53
|
-
constructor(...args: unknown[]);
|
|
54
|
-
/**
|
|
55
|
-
* Copies the provided text into the user's clipboard.
|
|
56
|
-
*
|
|
57
|
-
* @param text The string to copy.
|
|
58
|
-
* @returns Whether the operation was successful.
|
|
59
|
-
*/
|
|
60
|
-
copy(text: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Prepares a string to be copied later. This is useful for large strings
|
|
63
|
-
* which take too long to successfully render and be copied in the same tick.
|
|
64
|
-
*
|
|
65
|
-
* The caller must call `destroy` on the returned `PendingCopy`.
|
|
66
|
-
*
|
|
67
|
-
* @param text The string to copy.
|
|
68
|
-
* @returns the pending copy operation.
|
|
69
|
-
*/
|
|
70
|
-
beginCopy(text: string): PendingCopy;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard_2, never>;
|
|
72
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard_2>;
|
|
73
|
-
}
|
|
74
|
-
export { Clipboard_2 as Clipboard }
|
|
75
|
-
|
|
76
|
-
export declare class ClipboardModule {
|
|
94
|
+
declare class ClipboardModule {
|
|
77
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardModule, never>;
|
|
78
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof
|
|
96
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ClipboardModule, never, [typeof CdkCopyToClipboard], [typeof CdkCopyToClipboard]>;
|
|
79
97
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClipboardModule>;
|
|
80
98
|
}
|
|
81
99
|
|
|
82
|
-
|
|
83
|
-
export {
|
|
84
|
-
CdkCopyToClipboardConfig,
|
|
85
|
-
CDK_COPY_TO_CLIPBOARD_CONFIG,
|
|
86
|
-
CdkCopyToClipboard
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* A pending copy-to-clipboard operation.
|
|
93
|
-
*
|
|
94
|
-
* The implementation of copying text to the clipboard modifies the DOM and
|
|
95
|
-
* forces a re-layout. This re-layout can take too long if the string is large,
|
|
96
|
-
* causing the execCommand('copy') to happen too long after the user clicked.
|
|
97
|
-
* This results in the browser refusing to copy. This object lets the
|
|
98
|
-
* re-layout happen in a separate tick from copying by providing a copy function
|
|
99
|
-
* that can be called later.
|
|
100
|
-
*
|
|
101
|
-
* Destroy must be called when no longer in use, regardless of whether `copy` is
|
|
102
|
-
* called.
|
|
103
|
-
*/
|
|
104
|
-
export declare class PendingCopy {
|
|
105
|
-
private readonly _document;
|
|
106
|
-
private _textarea;
|
|
107
|
-
constructor(text: string, _document: Document);
|
|
108
|
-
/** Finishes copying the text. */
|
|
109
|
-
copy(): boolean;
|
|
110
|
-
/** Cleans up DOM changes used to perform the copy operation. */
|
|
111
|
-
destroy(): void;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export { }
|
|
100
|
+
export { CDK_COPY_TO_CLIPBOARD_CONFIG, CdkCopyToClipboard, type CdkCopyToClipboardConfig, Clipboard, ClipboardModule, PendingCopy };
|
package/coercion/index.d.ts
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* Type describing the allowed values for a boolean input.
|
|
6
5
|
* @docs-private
|
|
7
6
|
*/
|
|
8
|
-
|
|
7
|
+
type BooleanInput = string | boolean | null | undefined;
|
|
8
|
+
/** Coerces a data-bound value (typically a string) to a boolean. */
|
|
9
|
+
declare function coerceBooleanProperty(value: any): boolean;
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Type describing the allowed values for a number input
|
|
13
|
+
* @docs-private
|
|
14
|
+
*/
|
|
15
|
+
type NumberInput = string | number | null | undefined;
|
|
16
|
+
/** Coerces a data-bound value (typically a string) to a number. */
|
|
17
|
+
declare function coerceNumberProperty(value: any): number;
|
|
18
|
+
declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the provided value is considered a number.
|
|
21
|
+
* @docs-private
|
|
22
|
+
*/
|
|
23
|
+
declare function _isNumberValue(value: any): boolean;
|
|
10
24
|
|
|
11
25
|
/** Wraps the provided value in an array, unless the provided value is an array. */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
|
|
15
|
-
|
|
16
|
-
/** Coerces a data-bound value (typically a string) to a boolean. */
|
|
17
|
-
export declare function coerceBooleanProperty(value: any): boolean;
|
|
18
|
-
|
|
26
|
+
declare function coerceArray<T>(value: T | T[]): T[];
|
|
27
|
+
declare function coerceArray<T>(value: T | readonly T[]): readonly T[];
|
|
19
28
|
|
|
20
29
|
/** Coerces a value to a CSS pixel value. */
|
|
21
|
-
|
|
30
|
+
declare function coerceCssPixelValue(value: any): string;
|
|
22
31
|
|
|
23
32
|
/**
|
|
24
33
|
* Coerces an ElementRef or an Element into an element.
|
|
25
34
|
* Useful for APIs that can accept either a ref or the native element itself.
|
|
26
35
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** Coerces a data-bound value (typically a string) to a number. */
|
|
30
|
-
export declare function coerceNumberProperty(value: any): number;
|
|
31
|
-
|
|
32
|
-
export declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
|
|
33
|
-
|
|
36
|
+
declare function coerceElement<T>(elementOrRef: ElementRef<T> | T): T;
|
|
34
37
|
|
|
35
38
|
/**
|
|
36
39
|
* Coerces a value to an array of trimmed non-empty strings.
|
|
@@ -49,19 +52,6 @@ export declare function coerceNumberProperty<D>(value: any, fallback: D): number
|
|
|
49
52
|
* @param value the value to coerce into an array of strings
|
|
50
53
|
* @param separator split-separator if value isn't an array
|
|
51
54
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Whether the provided value is considered a number.
|
|
56
|
-
* @docs-private
|
|
57
|
-
*/
|
|
58
|
-
export declare function _isNumberValue(value: any): boolean;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Type describing the allowed values for a number input
|
|
63
|
-
* @docs-private
|
|
64
|
-
*/
|
|
65
|
-
export declare type NumberInput = string | number | null | undefined;
|
|
55
|
+
declare function coerceStringArray(value: any, separator?: string | RegExp): string[];
|
|
66
56
|
|
|
67
|
-
export { }
|
|
57
|
+
export { type BooleanInput, type NumberInput, _isNumberValue, coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceNumberProperty, coerceStringArray };
|
|
@@ -4,6 +4,6 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
* Given either an Observable or non-Observable value, returns either the original
|
|
5
5
|
* Observable, or wraps it in an Observable that emits the non-Observable value.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
declare function coerceObservable<T>(data: T | Observable<T>): Observable<T>;
|
|
8
8
|
|
|
9
|
-
export { }
|
|
9
|
+
export { coerceObservable };
|