@angular/cdk 19.2.3 → 20.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -32
- package/drag-drop/index.d.ts +14 -18
- package/fesm2022/a11y-module-e6996d20.mjs +952 -0
- package/fesm2022/a11y-module-e6996d20.mjs.map +1 -0
- package/fesm2022/a11y.mjs +42 -2448
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -12
- 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-0726b65c.mjs +78 -0
- package/fesm2022/bidi-module-0726b65c.mjs.map +1 -0
- package/fesm2022/bidi.mjs +4 -143
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/breakpoints-observer-d4584b66.mjs +179 -0
- package/fesm2022/breakpoints-observer-d4584b66.mjs.map +1 -0
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/clipboard.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 +37 -41
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/directionality-7ea26429.mjs +72 -0
- package/fesm2022/directionality-7ea26429.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 +48 -46
- 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-cebaa0d1.mjs +629 -0
- package/fesm2022/focus-monitor-cebaa0d1.mjs.map +1 -0
- package/fesm2022/id-generator-fba495fb.mjs +37 -0
- package/fesm2022/id-generator-fba495fb.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 +12 -180
- 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 +21 -16
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +76 -56
- 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-d2a6b5a0.mjs +210 -0
- package/fesm2022/observe-content-d2a6b5a0.mjs.map +1 -0
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +5 -209
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay-module-863b82c9.mjs +3029 -0
- package/fesm2022/overlay-module-863b82c9.mjs.map +1 -0
- package/fesm2022/overlay.mjs +28 -3023
- 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-1be098b0.mjs +77 -0
- package/fesm2022/platform-1be098b0.mjs.map +1 -0
- package/fesm2022/platform.mjs +13 -289
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal-directives-c88fea11.mjs +615 -0
- package/fesm2022/portal-directives-c88fea11.mjs.map +1 -0
- package/fesm2022/portal.mjs +3 -675
- 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-aa9eeac5.mjs +1463 -0
- package/fesm2022/scrolling-module-aa9eeac5.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +12 -1459
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection-model-30243dba.mjs +221 -0
- package/fesm2022/selection-model-30243dba.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 +32 -26
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/style-loader-e14dc585.mjs +47 -0
- package/fesm2022/style-loader-e14dc585.mjs.map +1 -0
- package/fesm2022/table.mjs +87 -121
- 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 +20 -19
- 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 +33 -29
- 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-1d6f91d8.mjs +49 -0
- package/fesm2022/unique-selection-dispatcher-1d6f91d8.mjs.map +1 -0
- package/fesm2022/visually-hidden-83aea4a0.mjs +18 -0
- package/fesm2022/visually-hidden-83aea4a0.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 +5 -4
- 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 +16 -792
- package/overlay-module.d-5d06db8a.d.ts +790 -0
- package/package.json +3 -3
- package/platform/index.d.ts +2 -31
- package/platform.d-0a5b4792.d.ts +33 -0
- package/portal/index.d.ts +5 -266
- package/portal-directives.d-d345bd53.d.ts +210 -0
- package/private/index.d.ts +2 -19
- package/schematics/migration.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/index.d.ts +2 -2
- package/schematics/ng-update/index.js +5 -5
- package/schematics/ng-update/index.mjs +5 -5
- package/schematics/update-tool/target-version.d.ts +1 -1
- package/schematics/update-tool/target-version.js +2 -2
- package/schematics/update-tool/target-version.mjs +2 -2
- package/scrolling/index.d.ts +7 -604
- package/scrolling-module.d-a08a462d.d.ts +551 -0
- package/selection-model.d-1a70542c.d.ts +111 -0
- package/stepper/index.d.ts +5 -3
- package/style-loader.d-19baab84.d.ts +21 -0
- package/table/index.d.ts +8 -19
- 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 +1 -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
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { QueryList, Signal, Injector } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
/** This interface is for items that can be passed to a ListKeyManager. */
|
|
5
|
+
interface ListKeyManagerOption {
|
|
6
|
+
/** Whether the option is disabled. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Gets the label for this option. */
|
|
9
|
+
getLabel?(): string;
|
|
10
|
+
}
|
|
11
|
+
/** Modifier keys handled by the ListKeyManager. */
|
|
12
|
+
type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
|
|
13
|
+
/**
|
|
14
|
+
* This class manages keyboard events for selectable lists. If you pass it a query list
|
|
15
|
+
* of items, it will set the active item correctly when arrow events occur.
|
|
16
|
+
*/
|
|
17
|
+
declare class ListKeyManager<T extends ListKeyManagerOption> {
|
|
18
|
+
private _items;
|
|
19
|
+
private _activeItemIndex;
|
|
20
|
+
private _activeItem;
|
|
21
|
+
private _wrap;
|
|
22
|
+
private _typeaheadSubscription;
|
|
23
|
+
private _itemChangesSubscription?;
|
|
24
|
+
private _vertical;
|
|
25
|
+
private _horizontal;
|
|
26
|
+
private _allowedModifierKeys;
|
|
27
|
+
private _homeAndEnd;
|
|
28
|
+
private _pageUpAndDown;
|
|
29
|
+
private _effectRef;
|
|
30
|
+
private _typeahead?;
|
|
31
|
+
/**
|
|
32
|
+
* Predicate function that can be used to check whether an item should be skipped
|
|
33
|
+
* by the key manager. By default, disabled items are skipped.
|
|
34
|
+
*/
|
|
35
|
+
private _skipPredicateFn;
|
|
36
|
+
constructor(items: QueryList<T> | T[] | readonly T[]);
|
|
37
|
+
constructor(items: Signal<T[]> | Signal<readonly T[]>, injector: Injector);
|
|
38
|
+
/**
|
|
39
|
+
* Stream that emits any time the TAB key is pressed, so components can react
|
|
40
|
+
* when focus is shifted off of the list.
|
|
41
|
+
*/
|
|
42
|
+
readonly tabOut: Subject<void>;
|
|
43
|
+
/** Stream that emits whenever the active item of the list manager changes. */
|
|
44
|
+
readonly change: Subject<number>;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the predicate function that determines which items should be skipped by the
|
|
47
|
+
* list key manager.
|
|
48
|
+
* @param predicate Function that determines whether the given item should be skipped.
|
|
49
|
+
*/
|
|
50
|
+
skipPredicate(predicate: (item: T) => boolean): this;
|
|
51
|
+
/**
|
|
52
|
+
* Configures wrapping mode, which determines whether the active item will wrap to
|
|
53
|
+
* the other end of list when there are no more items in the given direction.
|
|
54
|
+
* @param shouldWrap Whether the list should wrap when reaching the end.
|
|
55
|
+
*/
|
|
56
|
+
withWrap(shouldWrap?: boolean): this;
|
|
57
|
+
/**
|
|
58
|
+
* Configures whether the key manager should be able to move the selection vertically.
|
|
59
|
+
* @param enabled Whether vertical selection should be enabled.
|
|
60
|
+
*/
|
|
61
|
+
withVerticalOrientation(enabled?: boolean): this;
|
|
62
|
+
/**
|
|
63
|
+
* Configures the key manager to move the selection horizontally.
|
|
64
|
+
* Passing in `null` will disable horizontal movement.
|
|
65
|
+
* @param direction Direction in which the selection can be moved.
|
|
66
|
+
*/
|
|
67
|
+
withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
|
|
68
|
+
/**
|
|
69
|
+
* Modifier keys which are allowed to be held down and whose default actions will be prevented
|
|
70
|
+
* as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
|
|
71
|
+
*/
|
|
72
|
+
withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
|
|
73
|
+
/**
|
|
74
|
+
* Turns on typeahead mode which allows users to set the active item by typing.
|
|
75
|
+
* @param debounceInterval Time to wait after the last keystroke before setting the active item.
|
|
76
|
+
*/
|
|
77
|
+
withTypeAhead(debounceInterval?: number): this;
|
|
78
|
+
/** Cancels the current typeahead sequence. */
|
|
79
|
+
cancelTypeahead(): this;
|
|
80
|
+
/**
|
|
81
|
+
* Configures the key manager to activate the first and last items
|
|
82
|
+
* respectively when the Home or End key is pressed.
|
|
83
|
+
* @param enabled Whether pressing the Home or End key activates the first/last item.
|
|
84
|
+
*/
|
|
85
|
+
withHomeAndEnd(enabled?: boolean): this;
|
|
86
|
+
/**
|
|
87
|
+
* Configures the key manager to activate every 10th, configured or first/last element in up/down direction
|
|
88
|
+
* respectively when the Page-Up or Page-Down key is pressed.
|
|
89
|
+
* @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item.
|
|
90
|
+
* @param delta Whether pressing the Home or End key activates the first/last item.
|
|
91
|
+
*/
|
|
92
|
+
withPageUpDown(enabled?: boolean, delta?: number): this;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the active item to the item at the index specified.
|
|
95
|
+
* @param index The index of the item to be set as active.
|
|
96
|
+
*/
|
|
97
|
+
setActiveItem(index: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the active item to the specified item.
|
|
100
|
+
* @param item The item to be set as active.
|
|
101
|
+
*/
|
|
102
|
+
setActiveItem(item: T): void;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the active item depending on the key event passed in.
|
|
105
|
+
* @param event Keyboard event to be used for determining which element should be active.
|
|
106
|
+
*/
|
|
107
|
+
onKeydown(event: KeyboardEvent): void;
|
|
108
|
+
/** Index of the currently active item. */
|
|
109
|
+
get activeItemIndex(): number | null;
|
|
110
|
+
/** The active item. */
|
|
111
|
+
get activeItem(): T | null;
|
|
112
|
+
/** Gets whether the user is currently typing into the manager using the typeahead feature. */
|
|
113
|
+
isTyping(): boolean;
|
|
114
|
+
/** Sets the active item to the first enabled item in the list. */
|
|
115
|
+
setFirstItemActive(): void;
|
|
116
|
+
/** Sets the active item to the last enabled item in the list. */
|
|
117
|
+
setLastItemActive(): void;
|
|
118
|
+
/** Sets the active item to the next enabled item in the list. */
|
|
119
|
+
setNextItemActive(): void;
|
|
120
|
+
/** Sets the active item to a previous enabled item in the list. */
|
|
121
|
+
setPreviousItemActive(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Allows setting the active without any other effects.
|
|
124
|
+
* @param index Index of the item to be set as active.
|
|
125
|
+
*/
|
|
126
|
+
updateActiveItem(index: number): void;
|
|
127
|
+
/**
|
|
128
|
+
* Allows setting the active item without any other effects.
|
|
129
|
+
* @param item Item to be set as active.
|
|
130
|
+
*/
|
|
131
|
+
updateActiveItem(item: T): void;
|
|
132
|
+
/** Cleans up the key manager. */
|
|
133
|
+
destroy(): void;
|
|
134
|
+
/**
|
|
135
|
+
* This method sets the active item, given a list of items and the delta between the
|
|
136
|
+
* currently active item and the new active item. It will calculate differently
|
|
137
|
+
* depending on whether wrap mode is turned on.
|
|
138
|
+
*/
|
|
139
|
+
private _setActiveItemByDelta;
|
|
140
|
+
/**
|
|
141
|
+
* Sets the active item properly given "wrap" mode. In other words, it will continue to move
|
|
142
|
+
* down the list until it finds an item that is not disabled, and it will wrap if it
|
|
143
|
+
* encounters either end of the list.
|
|
144
|
+
*/
|
|
145
|
+
private _setActiveInWrapMode;
|
|
146
|
+
/**
|
|
147
|
+
* Sets the active item properly given the default mode. In other words, it will
|
|
148
|
+
* continue to move down the list until it finds an item that is not disabled. If
|
|
149
|
+
* it encounters either end of the list, it will stop and not wrap.
|
|
150
|
+
*/
|
|
151
|
+
private _setActiveInDefaultMode;
|
|
152
|
+
/**
|
|
153
|
+
* Sets the active item to the first enabled item starting at the index specified. If the
|
|
154
|
+
* item is disabled, it will move in the fallbackDelta direction until it either
|
|
155
|
+
* finds an enabled item or encounters the end of the list.
|
|
156
|
+
*/
|
|
157
|
+
private _setActiveItemByIndex;
|
|
158
|
+
/** Returns the items as an array. */
|
|
159
|
+
private _getItemsArray;
|
|
160
|
+
/** Callback for when the items have changed. */
|
|
161
|
+
private _itemsChanged;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { type ListKeyManagerOption as L, type ListKeyManagerModifierKey as a, ListKeyManager as b };
|
package/listbox/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ListKeyManagerOption, Highlightable, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
2
|
import { OnDestroy, AfterContentInit, QueryList, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
5
|
-
import {
|
|
3
|
+
import { H as Highlightable, A as ActiveDescendantKeyManager } from '../activedescendant-key-manager.d-11921e3a.js';
|
|
4
|
+
import { L as ListKeyManagerOption } from '../list-key-manager.d-72e9a2e7.js';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
6
|
+
import { S as SelectionModel } from '../selection-model.d-1a70542c.js';
|
|
7
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* An implementation of SelectionModel that internally always represents the selection as a
|
|
@@ -17,7 +18,7 @@ declare class ListboxSelectionModel<T> extends SelectionModel<T> {
|
|
|
17
18
|
multiple: boolean;
|
|
18
19
|
constructor(multiple?: boolean, initiallySelectedValues?: T[], emitChanges?: boolean, compareWith?: (o1: T, o2: T) => boolean);
|
|
19
20
|
isMultipleSelection(): boolean;
|
|
20
|
-
select(...values: T[]): boolean
|
|
21
|
+
select(...values: T[]): boolean;
|
|
21
22
|
}
|
|
22
23
|
/** A selectable option in a listbox. */
|
|
23
24
|
declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable, OnDestroy {
|
package/menu/index.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, Renderer2, QueryList, InjectionToken, Optional, OnDestroy, Injector, ViewContainerRef, EventEmitter, TemplateRef, OnChanges, SimpleChanges, NgZone, AfterContentInit } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { ScrollStrategy, ConnectedPosition, OverlayRef } from '@angular/cdk/overlay';
|
|
3
|
+
import { S as ScrollStrategy, C as ConnectedPosition, O as OverlayRef, a as OverlayModule } from '../overlay-module.d-5d06db8a.js';
|
|
5
4
|
import * as rxjs from 'rxjs';
|
|
6
5
|
import { Observable, Subject } from 'rxjs';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { F as FocusOrigin } from '../focus-monitor.d-810a02e6.js';
|
|
7
|
+
import { F as FocusableOption, a as FocusKeyManager } from '../focus-key-manager.d-415a6958.js';
|
|
8
|
+
import { D as Directionality } from '../bidi-module.d-f8648621.js';
|
|
9
|
+
import { T as TemplatePortal } from '../portal-directives.d-d345bd53.js';
|
|
10
|
+
import '../scrolling-module.d-a08a462d.js';
|
|
11
|
+
import '../data-source.d-7cab2c9d.js';
|
|
12
|
+
import '../number-property.d-ce316715.js';
|
|
13
|
+
import '@angular/common';
|
|
14
|
+
import '../viewport-ruler.d-f3d3e82f.js';
|
|
15
|
+
import '../platform.d-0a5b4792.js';
|
|
16
|
+
import '../style-loader.d-19baab84.js';
|
|
17
|
+
import '../list-key-manager.d-72e9a2e7.js';
|
|
10
18
|
|
|
11
19
|
/** Item to track for mouse focus events. */
|
|
12
20
|
interface FocusableElement {
|
|
@@ -805,7 +813,7 @@ declare class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDest
|
|
|
805
813
|
/** Module that declares components and directives for the CDK menu. */
|
|
806
814
|
declare class CdkMenuModule {
|
|
807
815
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuModule, never>;
|
|
808
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, never, [typeof
|
|
816
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, never, [typeof OverlayModule, typeof CdkMenuBar, typeof CdkMenu, typeof CdkMenuItem, typeof CdkMenuItemRadio, typeof CdkMenuItemCheckbox, typeof CdkMenuTrigger, typeof CdkMenuGroup, typeof CdkContextMenuTrigger, typeof CdkTargetMenuAim], [typeof CdkMenuBar, typeof CdkMenu, typeof CdkMenuItem, typeof CdkMenuItemRadio, typeof CdkMenuItemCheckbox, typeof CdkMenuTrigger, typeof CdkMenuGroup, typeof CdkContextMenuTrigger, typeof CdkTargetMenuAim]>;
|
|
809
817
|
static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
|
|
810
818
|
}
|
|
811
819
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type describing the allowed values for a number input
|
|
3
|
+
* @docs-private
|
|
4
|
+
*/
|
|
5
|
+
type NumberInput = string | number | null | undefined;
|
|
6
|
+
/** Coerces a data-bound value (typically a string) to a number. */
|
|
7
|
+
declare function coerceNumberProperty(value: any): number;
|
|
8
|
+
declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the provided value is considered a number.
|
|
11
|
+
* @docs-private
|
|
12
|
+
*/
|
|
13
|
+
declare function _isNumberValue(value: any): boolean;
|
|
14
|
+
|
|
15
|
+
export { type NumberInput as N, _isNumberValue as _, coerceNumberProperty as c };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { N as NumberInput } from './number-property.d-ce316715.js';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnDestroy, ElementRef, AfterContentInit, EventEmitter } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
|
|
8
|
+
* @docs-private
|
|
9
|
+
*/
|
|
10
|
+
declare class MutationObserverFactory {
|
|
11
|
+
create(callback: MutationCallback): MutationObserver | null;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverFactory, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverFactory>;
|
|
14
|
+
}
|
|
15
|
+
/** An injectable service that allows watching elements for changes to their content. */
|
|
16
|
+
declare class ContentObserver implements OnDestroy {
|
|
17
|
+
private _mutationObserverFactory;
|
|
18
|
+
/** Keeps track of the existing MutationObservers so they can be reused. */
|
|
19
|
+
private _observedElements;
|
|
20
|
+
private _ngZone;
|
|
21
|
+
constructor(...args: unknown[]);
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Observe content changes on an element.
|
|
25
|
+
* @param element The element to observe for content changes.
|
|
26
|
+
*/
|
|
27
|
+
observe(element: Element): Observable<MutationRecord[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Observe content changes on an element.
|
|
30
|
+
* @param element The element to observe for content changes.
|
|
31
|
+
*/
|
|
32
|
+
observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Observes the given element by using the existing MutationObserver if available, or creating a
|
|
35
|
+
* new one if not.
|
|
36
|
+
*/
|
|
37
|
+
private _observeElement;
|
|
38
|
+
/**
|
|
39
|
+
* Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
|
|
40
|
+
* observing this element.
|
|
41
|
+
*/
|
|
42
|
+
private _unobserveElement;
|
|
43
|
+
/** Clean up the underlying MutationObserver for the specified element. */
|
|
44
|
+
private _cleanupObserver;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserver, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserver>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Directive that triggers a callback whenever the content of
|
|
50
|
+
* its associated element has changed.
|
|
51
|
+
*/
|
|
52
|
+
declare class CdkObserveContent implements AfterContentInit, OnDestroy {
|
|
53
|
+
private _contentObserver;
|
|
54
|
+
private _elementRef;
|
|
55
|
+
/** Event emitted for each change in the element's content. */
|
|
56
|
+
readonly event: EventEmitter<MutationRecord[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether observing content is disabled. This option can be used
|
|
59
|
+
* to disconnect the underlying MutationObserver until it is needed.
|
|
60
|
+
*/
|
|
61
|
+
get disabled(): boolean;
|
|
62
|
+
set disabled(value: boolean);
|
|
63
|
+
private _disabled;
|
|
64
|
+
/** Debounce interval for emitting the changes. */
|
|
65
|
+
get debounce(): number;
|
|
66
|
+
set debounce(value: NumberInput);
|
|
67
|
+
private _debounce;
|
|
68
|
+
private _currentSubscription;
|
|
69
|
+
constructor(...args: unknown[]);
|
|
70
|
+
ngAfterContentInit(): void;
|
|
71
|
+
ngOnDestroy(): void;
|
|
72
|
+
private _subscribe;
|
|
73
|
+
private _unsubscribe;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkObserveContent, never>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": { "alias": "cdkObserveContentDisabled"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "event": "cdkObserveContent"; }, never, never, true, never>;
|
|
76
|
+
static ngAcceptInputType_disabled: unknown;
|
|
77
|
+
}
|
|
78
|
+
declare class ObserversModule {
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObserversModule, never>;
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ObserversModule, never, [typeof CdkObserveContent], [typeof CdkObserveContent]>;
|
|
81
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ObserversModule>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { ContentObserver as C, MutationObserverFactory as M, ObserversModule as O, CdkObserveContent as a };
|
package/observers/index.d.ts
CHANGED
|
@@ -1,84 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
|
|
8
|
-
* @docs-private
|
|
9
|
-
*/
|
|
10
|
-
declare class MutationObserverFactory {
|
|
11
|
-
create(callback: MutationCallback): MutationObserver | null;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverFactory, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverFactory>;
|
|
14
|
-
}
|
|
15
|
-
/** An injectable service that allows watching elements for changes to their content. */
|
|
16
|
-
declare class ContentObserver implements OnDestroy {
|
|
17
|
-
private _mutationObserverFactory;
|
|
18
|
-
/** Keeps track of the existing MutationObservers so they can be reused. */
|
|
19
|
-
private _observedElements;
|
|
20
|
-
private _ngZone;
|
|
21
|
-
constructor(...args: unknown[]);
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Observe content changes on an element.
|
|
25
|
-
* @param element The element to observe for content changes.
|
|
26
|
-
*/
|
|
27
|
-
observe(element: Element): Observable<MutationRecord[]>;
|
|
28
|
-
/**
|
|
29
|
-
* Observe content changes on an element.
|
|
30
|
-
* @param element The element to observe for content changes.
|
|
31
|
-
*/
|
|
32
|
-
observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
|
|
33
|
-
/**
|
|
34
|
-
* Observes the given element by using the existing MutationObserver if available, or creating a
|
|
35
|
-
* new one if not.
|
|
36
|
-
*/
|
|
37
|
-
private _observeElement;
|
|
38
|
-
/**
|
|
39
|
-
* Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
|
|
40
|
-
* observing this element.
|
|
41
|
-
*/
|
|
42
|
-
private _unobserveElement;
|
|
43
|
-
/** Clean up the underlying MutationObserver for the specified element. */
|
|
44
|
-
private _cleanupObserver;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserver, never>;
|
|
46
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserver>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Directive that triggers a callback whenever the content of
|
|
50
|
-
* its associated element has changed.
|
|
51
|
-
*/
|
|
52
|
-
declare class CdkObserveContent implements AfterContentInit, OnDestroy {
|
|
53
|
-
private _contentObserver;
|
|
54
|
-
private _elementRef;
|
|
55
|
-
/** Event emitted for each change in the element's content. */
|
|
56
|
-
readonly event: EventEmitter<MutationRecord[]>;
|
|
57
|
-
/**
|
|
58
|
-
* Whether observing content is disabled. This option can be used
|
|
59
|
-
* to disconnect the underlying MutationObserver until it is needed.
|
|
60
|
-
*/
|
|
61
|
-
get disabled(): boolean;
|
|
62
|
-
set disabled(value: boolean);
|
|
63
|
-
private _disabled;
|
|
64
|
-
/** Debounce interval for emitting the changes. */
|
|
65
|
-
get debounce(): number;
|
|
66
|
-
set debounce(value: NumberInput);
|
|
67
|
-
private _debounce;
|
|
68
|
-
private _currentSubscription;
|
|
69
|
-
constructor(...args: unknown[]);
|
|
70
|
-
ngAfterContentInit(): void;
|
|
71
|
-
ngOnDestroy(): void;
|
|
72
|
-
private _subscribe;
|
|
73
|
-
private _unsubscribe;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkObserveContent, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": { "alias": "cdkObserveContentDisabled"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "event": "cdkObserveContent"; }, never, never, true, never>;
|
|
76
|
-
static ngAcceptInputType_disabled: unknown;
|
|
77
|
-
}
|
|
78
|
-
declare class ObserversModule {
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ObserversModule, never>;
|
|
80
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ObserversModule, never, [typeof CdkObserveContent], [typeof CdkObserveContent]>;
|
|
81
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ObserversModule>;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export { CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule };
|
|
1
|
+
export { a as CdkObserveContent, C as ContentObserver, M as MutationObserverFactory, O as ObserversModule } from '../observe-content.d-c08bc882.js';
|
|
2
|
+
import '../number-property.d-ce316715.js';
|
|
3
|
+
import '@angular/core';
|
|
4
|
+
import 'rxjs';
|