@angular/cdk 19.2.3 → 19.2.4
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 +12 -843
- package/a11y-module.d-7d03e079.d.ts +313 -0
- package/accordion/index.d.ts +1 -1
- package/activedescendant-key-manager.d-11921e3a.d.ts +31 -0
- package/bidi/index.d.ts +3 -52
- package/bidi-module.d-f8648621.d.ts +53 -0
- package/coercion/index.d.ts +2 -15
- package/collections/index.d.ts +10 -269
- package/data-source.d-7cab2c9d.d.ts +42 -0
- package/dialog/index.d.ts +17 -9
- package/drag-drop/index.d.ts +6 -5
- package/fesm2022/a11y-module-012407f8.mjs +952 -0
- package/fesm2022/a11y-module-012407f8.mjs.map +1 -0
- package/fesm2022/a11y.mjs +33 -2439
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +2 -2
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/activedescendant-key-manager-1351a9d3.mjs +16 -0
- package/fesm2022/activedescendant-key-manager-1351a9d3.mjs.map +1 -0
- package/fesm2022/array-ee3b4bab.mjs +6 -0
- package/fesm2022/array-ee3b4bab.mjs.map +1 -0
- package/fesm2022/backwards-compatibility-bcbe473e.mjs +25 -0
- package/fesm2022/backwards-compatibility-bcbe473e.mjs.map +1 -0
- package/fesm2022/bidi-module-56dd006c.mjs +78 -0
- package/fesm2022/bidi-module-56dd006c.mjs.map +1 -0
- package/fesm2022/bidi.mjs +4 -143
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/breakpoints-observer-63bede13.mjs +179 -0
- package/fesm2022/breakpoints-observer-63bede13.mjs.map +1 -0
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +2 -14
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs +5 -39
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +7 -472
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/css-pixel-value-286c9a60.mjs +10 -0
- package/fesm2022/css-pixel-value-286c9a60.mjs.map +1 -0
- package/fesm2022/data-source-5320b6fd.mjs +15 -0
- package/fesm2022/data-source-5320b6fd.mjs.map +1 -0
- package/fesm2022/dialog.mjs +26 -6
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/directionality-0a678adc.mjs +72 -0
- package/fesm2022/directionality-0a678adc.mjs.map +1 -0
- package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs +44 -0
- package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs.map +1 -0
- package/fesm2022/drag-drop.mjs +14 -6
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/element-705567fe.mjs +29 -0
- package/fesm2022/element-705567fe.mjs.map +1 -0
- package/fesm2022/fake-event-detection-7055b1bd.mjs +24 -0
- package/fesm2022/fake-event-detection-7055b1bd.mjs.map +1 -0
- package/fesm2022/focus-key-manager-58d29acd.mjs +22 -0
- package/fesm2022/focus-key-manager-58d29acd.mjs.map +1 -0
- package/fesm2022/focus-monitor-81212fa3.mjs +629 -0
- package/fesm2022/focus-monitor-81212fa3.mjs.map +1 -0
- package/fesm2022/id-generator-1959b006.mjs +37 -0
- package/fesm2022/id-generator-1959b006.mjs.map +1 -0
- package/fesm2022/keycodes-107cd3e4.mjs +122 -0
- package/fesm2022/keycodes-107cd3e4.mjs.map +1 -0
- package/fesm2022/keycodes.mjs +2 -132
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +8 -176
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/list-key-manager-c7b5cefb.mjs +360 -0
- package/fesm2022/list-key-manager-c7b5cefb.mjs.map +1 -0
- package/fesm2022/listbox.mjs +11 -6
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +27 -7
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/modifiers-33a5859e.mjs +13 -0
- package/fesm2022/modifiers-33a5859e.mjs.map +1 -0
- package/fesm2022/observable-97c0792c.mjs +15 -0
- package/fesm2022/observable-97c0792c.mjs.map +1 -0
- package/fesm2022/observe-content-41b1b248.mjs +210 -0
- package/fesm2022/observe-content-41b1b248.mjs.map +1 -0
- package/fesm2022/observers.mjs +5 -209
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay-module-7f527d71.mjs +3029 -0
- package/fesm2022/overlay-module-7f527d71.mjs.map +1 -0
- package/fesm2022/overlay.mjs +25 -3020
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/passive-listeners-c0bdc49f.mjs +31 -0
- package/fesm2022/passive-listeners-c0bdc49f.mjs.map +1 -0
- package/fesm2022/platform-610a08ae.mjs +77 -0
- package/fesm2022/platform-610a08ae.mjs.map +1 -0
- package/fesm2022/platform.mjs +9 -285
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal-directives-06c9f3e0.mjs +653 -0
- package/fesm2022/portal-directives-06c9f3e0.mjs.map +1 -0
- package/fesm2022/portal.mjs +4 -651
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -59
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs +156 -0
- package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs.map +1 -0
- package/fesm2022/scrolling-61955dd1.mjs +99 -0
- package/fesm2022/scrolling-61955dd1.mjs.map +1 -0
- package/fesm2022/scrolling-module-dbd83632.mjs +1463 -0
- package/fesm2022/scrolling-module-dbd83632.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +12 -1459
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection-model-0f5fc202.mjs +226 -0
- package/fesm2022/selection-model-0f5fc202.mjs.map +1 -0
- package/fesm2022/shadow-dom-9f403d00.mjs +49 -0
- package/fesm2022/shadow-dom-9f403d00.mjs.map +1 -0
- package/fesm2022/stepper.mjs +10 -4
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/style-loader-51b80670.mjs +47 -0
- package/fesm2022/style-loader-51b80670.mjs.map +1 -0
- package/fesm2022/table.mjs +10 -5
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/test-environment-34eef1ee.mjs +19 -0
- package/fesm2022/test-environment-34eef1ee.mjs.map +1 -0
- package/fesm2022/testing/selenium-webdriver.mjs +2 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +33 -34
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +2 -697
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +8 -3
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/text-filtering-b60ba8a2.mjs +698 -0
- package/fesm2022/text-filtering-b60ba8a2.mjs.map +1 -0
- package/fesm2022/tree-key-manager-2f20c79c.mjs +360 -0
- package/fesm2022/tree-key-manager-2f20c79c.mjs.map +1 -0
- package/fesm2022/tree.mjs +8 -4
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/typeahead-11ae39bd.mjs +88 -0
- package/fesm2022/typeahead-11ae39bd.mjs.map +1 -0
- package/fesm2022/unique-selection-dispatcher-8d1187be.mjs +49 -0
- package/fesm2022/unique-selection-dispatcher-8d1187be.mjs.map +1 -0
- package/fesm2022/visually-hidden-7e8689f8.mjs +18 -0
- package/fesm2022/visually-hidden-7e8689f8.mjs.map +1 -0
- package/focus-key-manager.d-415a6958.d.ts +33 -0
- package/focus-monitor.d-810a02e6.d.ts +209 -0
- package/harness-environment.d-4d615248.d.ts +619 -0
- package/list-key-manager.d-72e9a2e7.d.ts +164 -0
- package/listbox/index.d.ts +4 -3
- package/menu/index.d.ts +14 -6
- package/number-property.d-ce316715.d.ts +15 -0
- package/observe-content.d-c08bc882.d.ts +84 -0
- package/observers/index.d.ts +4 -84
- package/overlay/index.d.ts +15 -1080
- package/overlay-module.d-13717e08.d.ts +790 -0
- package/overlay.d-f1a41275.d.ts +295 -0
- package/package.json +1 -1
- package/platform/index.d.ts +2 -31
- package/platform.d-0a5b4792.d.ts +33 -0
- package/portal/index.d.ts +4 -230
- package/portal-directives.d-ef3fad92.d.ts +231 -0
- package/private/index.d.ts +2 -19
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +7 -604
- package/scrolling-module.d-e181b1be.d.ts +551 -0
- package/selection-model.d-0f0cc883.d.ts +116 -0
- package/stepper/index.d.ts +5 -3
- package/style-loader.d-19baab84.d.ts +21 -0
- package/table/index.d.ts +7 -5
- package/testing/index.d.ts +2 -618
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
- package/text-field/index.d.ts +3 -1
- package/tree/index.d.ts +3 -2
- package/tree-key-manager-strategy.d-603161dd.d.ts +116 -0
- package/unique-selection-dispatcher.d-7993b9f5.d.ts +32 -0
- package/view-repeater.d-79039e1f.d.ts +88 -0
- package/viewport-ruler.d-f3d3e82f.d.ts +57 -0
package/collections/index.d.ts
CHANGED
|
@@ -1,45 +1,12 @@
|
|
|
1
|
-
import { Observable
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Interface for any component that provides a view of some data collection and wants to provide
|
|
12
|
-
* information regarding the view and any changes made.
|
|
13
|
-
*/
|
|
14
|
-
interface CollectionViewer {
|
|
15
|
-
/**
|
|
16
|
-
* A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
|
|
17
|
-
* data. The `start` index is inclusive, while the `end` is exclusive.
|
|
18
|
-
*/
|
|
19
|
-
viewChange: Observable<ListRange>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare abstract class DataSource<T> {
|
|
23
|
-
/**
|
|
24
|
-
* Connects a collection viewer (such as a data-table) to this data source. Note that
|
|
25
|
-
* the stream provided will be accessed during change detection and should not directly change
|
|
26
|
-
* values that are bound in template views.
|
|
27
|
-
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
28
|
-
* data source.
|
|
29
|
-
* @returns Observable that emits a new value when the data changes.
|
|
30
|
-
*/
|
|
31
|
-
abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Disconnects a collection viewer (such as a data-table) from this data source. Can be used
|
|
34
|
-
* to perform any clean-up or tear-down operations when a view is being destroyed.
|
|
35
|
-
*
|
|
36
|
-
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
37
|
-
* data source.
|
|
38
|
-
*/
|
|
39
|
-
abstract disconnect(collectionViewer: CollectionViewer): void;
|
|
40
|
-
}
|
|
41
|
-
/** Checks whether an object is a data source. */
|
|
42
|
-
declare function isDataSource(value: any): value is DataSource<any>;
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { D as DataSource } from '../data-source.d-7cab2c9d.js';
|
|
3
|
+
export { C as CollectionViewer, D as DataSource, L as ListRange, i as isDataSource } from '../data-source.d-7cab2c9d.js';
|
|
4
|
+
import { IterableChanges, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { _ as _ViewRepeaterItemContext, a as _ViewRepeater, b as _ViewRepeaterItemContextFactory, c as _ViewRepeaterItemValueResolver, d as _ViewRepeaterItemChanged } from '../view-repeater.d-79039e1f.js';
|
|
6
|
+
export { h as _VIEW_REPEATER_STRATEGY, a as _ViewRepeater, g as _ViewRepeaterItemChange, d as _ViewRepeaterItemChanged, _ as _ViewRepeaterItemContext, b as _ViewRepeaterItemContextFactory, e as _ViewRepeaterItemInsertArgs, c as _ViewRepeaterItemValueResolver, f as _ViewRepeaterOperation } from '../view-repeater.d-79039e1f.js';
|
|
7
|
+
import { S as SelectionModel } from '../selection-model.d-0f0cc883.js';
|
|
8
|
+
export { a as SelectionChange, S as SelectionModel, g as getMultipleValuesInSingleSelectionError } from '../selection-model.d-0f0cc883.js';
|
|
9
|
+
export { U as UniqueSelectionDispatcher, a as UniqueSelectionDispatcherListener } from '../unique-selection-dispatcher.d-7993b9f5.js';
|
|
43
10
|
|
|
44
11
|
/** DataSource wrapper for a native array. */
|
|
45
12
|
declare class ArrayDataSource<T> extends DataSource<T> {
|
|
@@ -49,91 +16,6 @@ declare class ArrayDataSource<T> extends DataSource<T> {
|
|
|
49
16
|
disconnect(): void;
|
|
50
17
|
}
|
|
51
18
|
|
|
52
|
-
/**
|
|
53
|
-
* The context for an embedded view in the repeater's view container.
|
|
54
|
-
*
|
|
55
|
-
* @template T The type for the embedded view's $implicit property.
|
|
56
|
-
*/
|
|
57
|
-
interface _ViewRepeaterItemContext<T> {
|
|
58
|
-
$implicit?: T;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* The arguments needed to construct an embedded view for an item in a view
|
|
62
|
-
* container.
|
|
63
|
-
*
|
|
64
|
-
* @template C The type for the context passed to each embedded view.
|
|
65
|
-
*/
|
|
66
|
-
interface _ViewRepeaterItemInsertArgs<C> {
|
|
67
|
-
templateRef: TemplateRef<C>;
|
|
68
|
-
context?: C;
|
|
69
|
-
index?: number;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* A factory that derives the embedded view context for an item in a view
|
|
73
|
-
* container.
|
|
74
|
-
*
|
|
75
|
-
* @template T The type for the embedded view's $implicit property.
|
|
76
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
77
|
-
* @template C The type for the context passed to each embedded view.
|
|
78
|
-
*/
|
|
79
|
-
type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
|
|
80
|
-
/**
|
|
81
|
-
* Extracts the value of an item from an {@link IterableChangeRecord}.
|
|
82
|
-
*
|
|
83
|
-
* @template T The type for the embedded view's $implicit property.
|
|
84
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
85
|
-
*/
|
|
86
|
-
type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
|
|
87
|
-
/** Indicates how a view was changed by a {@link _ViewRepeater}. */
|
|
88
|
-
declare enum _ViewRepeaterOperation {
|
|
89
|
-
/** The content of an existing view was replaced with another item. */
|
|
90
|
-
REPLACED = 0,
|
|
91
|
-
/** A new view was created with `createEmbeddedView`. */
|
|
92
|
-
INSERTED = 1,
|
|
93
|
-
/** The position of a view changed, but the content remains the same. */
|
|
94
|
-
MOVED = 2,
|
|
95
|
-
/** A view was detached from the view container. */
|
|
96
|
-
REMOVED = 3
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Meta data describing the state of a view after it was updated by a
|
|
100
|
-
* {@link _ViewRepeater}.
|
|
101
|
-
*
|
|
102
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
103
|
-
* @template C The type for the context passed to each embedded view.
|
|
104
|
-
*/
|
|
105
|
-
interface _ViewRepeaterItemChange<R, C> {
|
|
106
|
-
/** The view's context after it was changed. */
|
|
107
|
-
context?: C;
|
|
108
|
-
/** Indicates how the view was changed. */
|
|
109
|
-
operation: _ViewRepeaterOperation;
|
|
110
|
-
/** The view's corresponding change record. */
|
|
111
|
-
record: IterableChangeRecord<R>;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Type for a callback to be executed after a view has changed.
|
|
115
|
-
*
|
|
116
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
117
|
-
* @template C The type for the context passed to each embedded view.
|
|
118
|
-
*/
|
|
119
|
-
type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
|
|
120
|
-
/**
|
|
121
|
-
* Describes a strategy for rendering items in a {@link ViewContainerRef}.
|
|
122
|
-
*
|
|
123
|
-
* @template T The type for the embedded view's $implicit property.
|
|
124
|
-
* @template R The type for the item in each IterableDiffer change record.
|
|
125
|
-
* @template C The type for the context passed to each embedded view.
|
|
126
|
-
*/
|
|
127
|
-
interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
|
|
128
|
-
applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
|
|
129
|
-
detach(): void;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
|
|
133
|
-
* @docs-private
|
|
134
|
-
*/
|
|
135
|
-
declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
|
|
136
|
-
|
|
137
19
|
/**
|
|
138
20
|
* A repeater that destroys views when they are removed from a
|
|
139
21
|
* {@link ViewContainerRef}. When new items are inserted into the container,
|
|
@@ -194,147 +76,6 @@ declare class _RecycleViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemCont
|
|
|
194
76
|
private _insertViewFromCache;
|
|
195
77
|
}
|
|
196
78
|
|
|
197
|
-
/**
|
|
198
|
-
* Class to be used to power selecting one or more options from a list.
|
|
199
|
-
*/
|
|
200
|
-
declare class SelectionModel<T> {
|
|
201
|
-
private _multiple;
|
|
202
|
-
private _emitChanges;
|
|
203
|
-
compareWith?: ((o1: T, o2: T) => boolean) | undefined;
|
|
204
|
-
/** Currently-selected values. */
|
|
205
|
-
private _selection;
|
|
206
|
-
/** Keeps track of the deselected options that haven't been emitted by the change event. */
|
|
207
|
-
private _deselectedToEmit;
|
|
208
|
-
/** Keeps track of the selected options that haven't been emitted by the change event. */
|
|
209
|
-
private _selectedToEmit;
|
|
210
|
-
/** Cache for the array value of the selected items. */
|
|
211
|
-
private _selected;
|
|
212
|
-
/** Selected values. */
|
|
213
|
-
get selected(): T[];
|
|
214
|
-
/** Event emitted when the value has changed. */
|
|
215
|
-
readonly changed: Subject<SelectionChange<T>>;
|
|
216
|
-
constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean, compareWith?: ((o1: T, o2: T) => boolean) | undefined);
|
|
217
|
-
/**
|
|
218
|
-
* Selects a value or an array of values.
|
|
219
|
-
* @param values The values to select
|
|
220
|
-
* @return Whether the selection changed as a result of this call
|
|
221
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
222
|
-
*/
|
|
223
|
-
select(...values: T[]): boolean | void;
|
|
224
|
-
/**
|
|
225
|
-
* Deselects a value or an array of values.
|
|
226
|
-
* @param values The values to deselect
|
|
227
|
-
* @return Whether the selection changed as a result of this call
|
|
228
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
229
|
-
*/
|
|
230
|
-
deselect(...values: T[]): boolean | void;
|
|
231
|
-
/**
|
|
232
|
-
* Sets the selected values
|
|
233
|
-
* @param values The new selected values
|
|
234
|
-
* @return Whether the selection changed as a result of this call
|
|
235
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
236
|
-
*/
|
|
237
|
-
setSelection(...values: T[]): boolean | void;
|
|
238
|
-
/**
|
|
239
|
-
* Toggles a value between selected and deselected.
|
|
240
|
-
* @param value The value to toggle
|
|
241
|
-
* @return Whether the selection changed as a result of this call
|
|
242
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
243
|
-
*/
|
|
244
|
-
toggle(value: T): boolean | void;
|
|
245
|
-
/**
|
|
246
|
-
* Clears all of the selected values.
|
|
247
|
-
* @param flushEvent Whether to flush the changes in an event.
|
|
248
|
-
* If false, the changes to the selection will be flushed along with the next event.
|
|
249
|
-
* @return Whether the selection changed as a result of this call
|
|
250
|
-
* @breaking-change 16.0.0 make return type boolean
|
|
251
|
-
*/
|
|
252
|
-
clear(flushEvent?: boolean): boolean | void;
|
|
253
|
-
/**
|
|
254
|
-
* Determines whether a value is selected.
|
|
255
|
-
*/
|
|
256
|
-
isSelected(value: T): boolean;
|
|
257
|
-
/**
|
|
258
|
-
* Determines whether the model does not have a value.
|
|
259
|
-
*/
|
|
260
|
-
isEmpty(): boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Determines whether the model has a value.
|
|
263
|
-
*/
|
|
264
|
-
hasValue(): boolean;
|
|
265
|
-
/**
|
|
266
|
-
* Sorts the selected values based on a predicate function.
|
|
267
|
-
*/
|
|
268
|
-
sort(predicate?: (a: T, b: T) => number): void;
|
|
269
|
-
/**
|
|
270
|
-
* Gets whether multiple values can be selected.
|
|
271
|
-
*/
|
|
272
|
-
isMultipleSelection(): boolean;
|
|
273
|
-
/** Emits a change event and clears the records of selected and deselected values. */
|
|
274
|
-
private _emitChangeEvent;
|
|
275
|
-
/** Selects a value. */
|
|
276
|
-
private _markSelected;
|
|
277
|
-
/** Deselects a value. */
|
|
278
|
-
private _unmarkSelected;
|
|
279
|
-
/** Clears out the selected values. */
|
|
280
|
-
private _unmarkAll;
|
|
281
|
-
/**
|
|
282
|
-
* Verifies the value assignment and throws an error if the specified value array is
|
|
283
|
-
* including multiple values while the selection model is not supporting multiple values.
|
|
284
|
-
*/
|
|
285
|
-
private _verifyValueAssignment;
|
|
286
|
-
/** Whether there are queued up change to be emitted. */
|
|
287
|
-
private _hasQueuedChanges;
|
|
288
|
-
/** Returns a value that is comparable to inputValue by applying compareWith function, returns the same inputValue otherwise. */
|
|
289
|
-
private _getConcreteValue;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Event emitted when the value of a MatSelectionModel has changed.
|
|
293
|
-
* @docs-private
|
|
294
|
-
*/
|
|
295
|
-
interface SelectionChange<T> {
|
|
296
|
-
/** Model that dispatched the event. */
|
|
297
|
-
source: SelectionModel<T>;
|
|
298
|
-
/** Options that were added to the model. */
|
|
299
|
-
added: T[];
|
|
300
|
-
/** Options that were removed from the model. */
|
|
301
|
-
removed: T[];
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Returns an error that reports that multiple values are passed into a selection model
|
|
305
|
-
* with a single value.
|
|
306
|
-
* @docs-private
|
|
307
|
-
*/
|
|
308
|
-
declare function getMultipleValuesInSingleSelectionError(): Error;
|
|
309
|
-
|
|
310
|
-
type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
|
|
311
|
-
/**
|
|
312
|
-
* Class to coordinate unique selection based on name.
|
|
313
|
-
* Intended to be consumed as an Angular service.
|
|
314
|
-
* This service is needed because native radio change events are only fired on the item currently
|
|
315
|
-
* being selected, and we still need to uncheck the previous selection.
|
|
316
|
-
*
|
|
317
|
-
* This service does not *store* any IDs and names because they may change at any time, so it is
|
|
318
|
-
* less error-prone if they are simply passed through when the events occur.
|
|
319
|
-
*/
|
|
320
|
-
declare class UniqueSelectionDispatcher implements OnDestroy {
|
|
321
|
-
private _listeners;
|
|
322
|
-
/**
|
|
323
|
-
* Notify other items that selection for the given name has been set.
|
|
324
|
-
* @param id ID of the item.
|
|
325
|
-
* @param name Name of the item.
|
|
326
|
-
*/
|
|
327
|
-
notify(id: string, name: string): void;
|
|
328
|
-
/**
|
|
329
|
-
* Listen for future changes to item selection.
|
|
330
|
-
* @return Function used to deregister listener
|
|
331
|
-
*/
|
|
332
|
-
listen(listener: UniqueSelectionDispatcherListener): () => void;
|
|
333
|
-
ngOnDestroy(): void;
|
|
334
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
|
|
335
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
79
|
/**
|
|
339
80
|
* Interface for a class that can flatten hierarchical structured data and re-expand the flattened
|
|
340
81
|
* data back into its original structure. Should be used in conjunction with the cdk-tree.
|
|
@@ -354,4 +95,4 @@ interface TreeDataNodeFlattener<T> {
|
|
|
354
95
|
nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
|
|
355
96
|
}
|
|
356
97
|
|
|
357
|
-
export { ArrayDataSource, type
|
|
98
|
+
export { ArrayDataSource, type TreeDataNodeFlattener, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
|
|
3
|
+
/** Represents a range of numbers with a specified start and end. */
|
|
4
|
+
type ListRange = {
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Interface for any component that provides a view of some data collection and wants to provide
|
|
10
|
+
* information regarding the view and any changes made.
|
|
11
|
+
*/
|
|
12
|
+
interface CollectionViewer {
|
|
13
|
+
/**
|
|
14
|
+
* A stream that emits whenever the `CollectionViewer` starts looking at a new portion of the
|
|
15
|
+
* data. The `start` index is inclusive, while the `end` is exclusive.
|
|
16
|
+
*/
|
|
17
|
+
viewChange: Observable<ListRange>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare abstract class DataSource<T> {
|
|
21
|
+
/**
|
|
22
|
+
* Connects a collection viewer (such as a data-table) to this data source. Note that
|
|
23
|
+
* the stream provided will be accessed during change detection and should not directly change
|
|
24
|
+
* values that are bound in template views.
|
|
25
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
26
|
+
* data source.
|
|
27
|
+
* @returns Observable that emits a new value when the data changes.
|
|
28
|
+
*/
|
|
29
|
+
abstract connect(collectionViewer: CollectionViewer): Observable<readonly T[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Disconnects a collection viewer (such as a data-table) from this data source. Can be used
|
|
32
|
+
* to perform any clean-up or tear-down operations when a view is being destroyed.
|
|
33
|
+
*
|
|
34
|
+
* @param collectionViewer The component that exposes a view over the data provided by this
|
|
35
|
+
* data source.
|
|
36
|
+
*/
|
|
37
|
+
abstract disconnect(collectionViewer: CollectionViewer): void;
|
|
38
|
+
}
|
|
39
|
+
/** Checks whether an object is a data source. */
|
|
40
|
+
declare function isDataSource(value: any): value is DataSource<any>;
|
|
41
|
+
|
|
42
|
+
export { type CollectionViewer as C, DataSource as D, type ListRange as L, isDataSource as i };
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import * as i3 from '@angular/cdk/a11y';
|
|
2
|
-
import { FocusTrapFactory, FocusOrigin } from '@angular/cdk/a11y';
|
|
3
|
-
import * as i2 from '@angular/cdk/portal';
|
|
4
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, DomPortal } from '@angular/cdk/portal';
|
|
5
1
|
import * as i0 from '@angular/core';
|
|
6
2
|
import { ViewContainerRef, Injector, StaticProvider, Type, OnDestroy, ElementRef, NgZone, ChangeDetectorRef, ComponentRef, EmbeddedViewRef, TemplateRef, InjectionToken } from '@angular/core';
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
3
|
+
import { F as FocusOrigin } from '../focus-monitor.d-810a02e6.js';
|
|
4
|
+
import { a as FocusTrapFactory, h as A11yModule } from '../a11y-module.d-7d03e079.js';
|
|
5
|
+
import { B as BasePortalOutlet, C as CdkPortalOutlet, a as ComponentPortal, T as TemplatePortal, D as DomPortal, b as ComponentType, P as PortalModule } from '../portal-directives.d-ef3fad92.js';
|
|
6
|
+
import { a as Direction } from '../bidi-module.d-f8648621.js';
|
|
7
|
+
import { P as PositionStrategy, S as ScrollStrategy, O as OverlayRef, a as OverlayModule } from '../overlay-module.d-13717e08.js';
|
|
10
8
|
import { Observable, Subject } from 'rxjs';
|
|
9
|
+
import * as _angular_cdk_portal from '@angular/cdk/portal';
|
|
10
|
+
import { O as Overlay } from '../overlay.d-f1a41275.js';
|
|
11
|
+
import '../observe-content.d-c08bc882.js';
|
|
12
|
+
import '../number-property.d-ce316715.js';
|
|
13
|
+
import '../scrolling-module.d-e181b1be.js';
|
|
14
|
+
import '../data-source.d-7cab2c9d.js';
|
|
15
|
+
import '@angular/common';
|
|
16
|
+
import '../viewport-ruler.d-f3d3e82f.js';
|
|
17
|
+
import '../platform.d-0a5b4792.js';
|
|
18
|
+
import '../style-loader.d-19baab84.js';
|
|
11
19
|
|
|
12
20
|
/** Options for where to set focus to automatically on dialog open */
|
|
13
21
|
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
@@ -386,7 +394,7 @@ declare class Dialog implements OnDestroy {
|
|
|
386
394
|
|
|
387
395
|
declare class DialogModule {
|
|
388
396
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
389
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, never, [typeof
|
|
397
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, never, [typeof OverlayModule, typeof PortalModule, typeof A11yModule, typeof CdkDialogContainer], [typeof PortalModule, typeof CdkDialogContainer]>;
|
|
390
398
|
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
391
399
|
}
|
|
392
400
|
|
|
@@ -395,7 +403,7 @@ declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
|
395
403
|
/** Injection token for the Dialog's Data. */
|
|
396
404
|
declare const DIALOG_DATA: InjectionToken<any>;
|
|
397
405
|
/** Injection token that can be used to provide default options for the dialog module. */
|
|
398
|
-
declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown,
|
|
406
|
+
declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown, _angular_cdk_portal.BasePortalOutlet>>;
|
|
399
407
|
/**
|
|
400
408
|
* @docs-private
|
|
401
409
|
* @deprecated No longer used. To be removed.
|
package/drag-drop/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, ElementRef, NgZone, OnDestroy, EventEmitter, AfterViewInit, TemplateRef, OnChanges, SimpleChanges, ViewContainerRef, Renderer2 } from '@angular/core';
|
|
3
|
-
import { Direction } from '
|
|
4
|
-
import * as i3 from '@angular/cdk/scrolling';
|
|
5
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
3
|
+
import { a as Direction } from '../bidi-module.d-f8648621.js';
|
|
6
4
|
import { Subject, Observable } from 'rxjs';
|
|
7
|
-
import {
|
|
5
|
+
import { V as ViewportRuler } from '../viewport-ruler.d-f3d3e82f.js';
|
|
6
|
+
import { N as NumberInput } from '../number-property.d-ce316715.js';
|
|
7
|
+
import { b as CdkScrollableModule } from '../scrolling-module.d-e181b1be.js';
|
|
8
|
+
import '../data-source.d-7cab2c9d.js';
|
|
8
9
|
|
|
9
10
|
/** Possible values that can be used to configure the drag start delay. */
|
|
10
11
|
type DragStartDelay = number | {
|
|
@@ -1371,7 +1372,7 @@ declare class CdkDropListGroup<T> implements OnDestroy {
|
|
|
1371
1372
|
|
|
1372
1373
|
declare class DragDropModule {
|
|
1373
1374
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropModule, never>;
|
|
1374
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DragDropModule, never, [typeof CdkDropList, typeof CdkDropListGroup, typeof CdkDrag, typeof CdkDragHandle, typeof CdkDragPreview, typeof CdkDragPlaceholder], [typeof
|
|
1375
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DragDropModule, never, [typeof CdkDropList, typeof CdkDropListGroup, typeof CdkDrag, typeof CdkDragHandle, typeof CdkDragPreview, typeof CdkDragPlaceholder], [typeof CdkScrollableModule, typeof CdkDropList, typeof CdkDropListGroup, typeof CdkDrag, typeof CdkDragHandle, typeof CdkDragPreview, typeof CdkDragPlaceholder]>;
|
|
1375
1376
|
static ɵinj: i0.ɵɵInjectorDeclaration<DragDropModule>;
|
|
1376
1377
|
}
|
|
1377
1378
|
|