@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/index.d.ts
CHANGED
package/keycodes/index.d.ts
CHANGED
|
@@ -1,249 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
declare const MAC_ENTER = 3;
|
|
2
|
+
declare const BACKSPACE = 8;
|
|
3
|
+
declare const TAB = 9;
|
|
4
|
+
declare const NUM_CENTER = 12;
|
|
5
|
+
declare const ENTER = 13;
|
|
6
|
+
declare const SHIFT = 16;
|
|
7
|
+
declare const CONTROL = 17;
|
|
8
|
+
declare const ALT = 18;
|
|
9
|
+
declare const PAUSE = 19;
|
|
10
|
+
declare const CAPS_LOCK = 20;
|
|
11
|
+
declare const ESCAPE = 27;
|
|
12
|
+
declare const SPACE = 32;
|
|
13
|
+
declare const PAGE_UP = 33;
|
|
14
|
+
declare const PAGE_DOWN = 34;
|
|
15
|
+
declare const END = 35;
|
|
16
|
+
declare const HOME = 36;
|
|
17
|
+
declare const LEFT_ARROW = 37;
|
|
18
|
+
declare const UP_ARROW = 38;
|
|
19
|
+
declare const RIGHT_ARROW = 39;
|
|
20
|
+
declare const DOWN_ARROW = 40;
|
|
21
|
+
declare const PLUS_SIGN = 43;
|
|
22
|
+
declare const PRINT_SCREEN = 44;
|
|
23
|
+
declare const INSERT = 45;
|
|
24
|
+
declare const DELETE = 46;
|
|
25
|
+
declare const ZERO = 48;
|
|
26
|
+
declare const ONE = 49;
|
|
27
|
+
declare const TWO = 50;
|
|
28
|
+
declare const THREE = 51;
|
|
29
|
+
declare const FOUR = 52;
|
|
30
|
+
declare const FIVE = 53;
|
|
31
|
+
declare const SIX = 54;
|
|
32
|
+
declare const SEVEN = 55;
|
|
33
|
+
declare const EIGHT = 56;
|
|
34
|
+
declare const NINE = 57;
|
|
35
|
+
declare const FF_SEMICOLON = 59;
|
|
36
|
+
declare const FF_EQUALS = 61;
|
|
37
|
+
declare const QUESTION_MARK = 63;
|
|
38
|
+
declare const AT_SIGN = 64;
|
|
39
|
+
declare const A = 65;
|
|
40
|
+
declare const B = 66;
|
|
41
|
+
declare const C = 67;
|
|
42
|
+
declare const D = 68;
|
|
43
|
+
declare const E = 69;
|
|
44
|
+
declare const F = 70;
|
|
45
|
+
declare const G = 71;
|
|
46
|
+
declare const H = 72;
|
|
47
|
+
declare const I = 73;
|
|
48
|
+
declare const J = 74;
|
|
49
|
+
declare const K = 75;
|
|
50
|
+
declare const L = 76;
|
|
51
|
+
declare const M = 77;
|
|
52
|
+
declare const N = 78;
|
|
53
|
+
declare const O = 79;
|
|
54
|
+
declare const P = 80;
|
|
55
|
+
declare const Q = 81;
|
|
56
|
+
declare const R = 82;
|
|
57
|
+
declare const S = 83;
|
|
58
|
+
declare const T = 84;
|
|
59
|
+
declare const U = 85;
|
|
60
|
+
declare const V = 86;
|
|
61
|
+
declare const W = 87;
|
|
62
|
+
declare const X = 88;
|
|
63
|
+
declare const Y = 89;
|
|
64
|
+
declare const Z = 90;
|
|
65
|
+
declare const META = 91;
|
|
66
|
+
declare const MAC_WK_CMD_LEFT = 91;
|
|
67
|
+
declare const MAC_WK_CMD_RIGHT = 93;
|
|
68
|
+
declare const CONTEXT_MENU = 93;
|
|
69
|
+
declare const NUMPAD_ZERO = 96;
|
|
70
|
+
declare const NUMPAD_ONE = 97;
|
|
71
|
+
declare const NUMPAD_TWO = 98;
|
|
72
|
+
declare const NUMPAD_THREE = 99;
|
|
73
|
+
declare const NUMPAD_FOUR = 100;
|
|
74
|
+
declare const NUMPAD_FIVE = 101;
|
|
75
|
+
declare const NUMPAD_SIX = 102;
|
|
76
|
+
declare const NUMPAD_SEVEN = 103;
|
|
77
|
+
declare const NUMPAD_EIGHT = 104;
|
|
78
|
+
declare const NUMPAD_NINE = 105;
|
|
79
|
+
declare const NUMPAD_MULTIPLY = 106;
|
|
80
|
+
declare const NUMPAD_PLUS = 107;
|
|
81
|
+
declare const NUMPAD_MINUS = 109;
|
|
82
|
+
declare const NUMPAD_PERIOD = 110;
|
|
83
|
+
declare const NUMPAD_DIVIDE = 111;
|
|
84
|
+
declare const F1 = 112;
|
|
85
|
+
declare const F2 = 113;
|
|
86
|
+
declare const F3 = 114;
|
|
87
|
+
declare const F4 = 115;
|
|
88
|
+
declare const F5 = 116;
|
|
89
|
+
declare const F6 = 117;
|
|
90
|
+
declare const F7 = 118;
|
|
91
|
+
declare const F8 = 119;
|
|
92
|
+
declare const F9 = 120;
|
|
93
|
+
declare const F10 = 121;
|
|
94
|
+
declare const F11 = 122;
|
|
95
|
+
declare const F12 = 123;
|
|
96
|
+
declare const NUM_LOCK = 144;
|
|
97
|
+
declare const SCROLL_LOCK = 145;
|
|
98
|
+
declare const FIRST_MEDIA = 166;
|
|
99
|
+
declare const FF_MINUS = 173;
|
|
100
|
+
declare const MUTE = 173;
|
|
101
|
+
declare const VOLUME_DOWN = 174;
|
|
102
|
+
declare const VOLUME_UP = 175;
|
|
103
|
+
declare const FF_MUTE = 181;
|
|
104
|
+
declare const FF_VOLUME_DOWN = 182;
|
|
105
|
+
declare const LAST_MEDIA = 183;
|
|
106
|
+
declare const FF_VOLUME_UP = 183;
|
|
107
|
+
declare const SEMICOLON = 186;
|
|
108
|
+
declare const EQUALS = 187;
|
|
109
|
+
declare const COMMA = 188;
|
|
110
|
+
declare const DASH = 189;
|
|
111
|
+
declare const PERIOD = 190;
|
|
112
|
+
declare const SLASH = 191;
|
|
113
|
+
declare const APOSTROPHE = 192;
|
|
114
|
+
declare const TILDE = 192;
|
|
115
|
+
declare const OPEN_SQUARE_BRACKET = 219;
|
|
116
|
+
declare const BACKSLASH = 220;
|
|
117
|
+
declare const CLOSE_SQUARE_BRACKET = 221;
|
|
118
|
+
declare const SINGLE_QUOTE = 222;
|
|
119
|
+
declare const MAC_META = 224;
|
|
120
|
+
|
|
121
|
+
type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
|
|
95
122
|
/**
|
|
96
123
|
* Checks whether a modifier key is pressed.
|
|
97
124
|
* @param event Event to be checked.
|
|
98
125
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export declare const HOME = 36;
|
|
102
|
-
|
|
103
|
-
export declare const I = 73;
|
|
104
|
-
|
|
105
|
-
export declare const INSERT = 45;
|
|
106
|
-
|
|
107
|
-
export declare const J = 74;
|
|
108
|
-
|
|
109
|
-
export declare const K = 75;
|
|
110
|
-
|
|
111
|
-
export declare const L = 76;
|
|
112
|
-
|
|
113
|
-
export declare const LAST_MEDIA = 183;
|
|
114
|
-
|
|
115
|
-
export declare const LEFT_ARROW = 37;
|
|
116
|
-
|
|
117
|
-
export declare const M = 77;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export declare const MAC_ENTER = 3;
|
|
121
|
-
|
|
122
|
-
export declare const MAC_META = 224;
|
|
123
|
-
|
|
124
|
-
export declare const MAC_WK_CMD_LEFT = 91;
|
|
125
|
-
|
|
126
|
-
export declare const MAC_WK_CMD_RIGHT = 93;
|
|
127
|
-
|
|
128
|
-
export declare const META = 91;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export declare type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
|
|
132
|
-
|
|
133
|
-
export declare const MUTE = 173;
|
|
134
|
-
|
|
135
|
-
export declare const N = 78;
|
|
136
|
-
|
|
137
|
-
export declare const NINE = 57;
|
|
138
|
-
|
|
139
|
-
export declare const NUM_CENTER = 12;
|
|
140
|
-
|
|
141
|
-
export declare const NUM_LOCK = 144;
|
|
142
|
-
|
|
143
|
-
export declare const NUMPAD_DIVIDE = 111;
|
|
144
|
-
|
|
145
|
-
export declare const NUMPAD_EIGHT = 104;
|
|
146
|
-
|
|
147
|
-
export declare const NUMPAD_FIVE = 101;
|
|
148
|
-
|
|
149
|
-
export declare const NUMPAD_FOUR = 100;
|
|
150
|
-
|
|
151
|
-
export declare const NUMPAD_MINUS = 109;
|
|
152
|
-
|
|
153
|
-
export declare const NUMPAD_MULTIPLY = 106;
|
|
154
|
-
|
|
155
|
-
export declare const NUMPAD_NINE = 105;
|
|
156
|
-
|
|
157
|
-
export declare const NUMPAD_ONE = 97;
|
|
158
|
-
|
|
159
|
-
export declare const NUMPAD_PERIOD = 110;
|
|
160
|
-
|
|
161
|
-
export declare const NUMPAD_PLUS = 107;
|
|
162
|
-
|
|
163
|
-
export declare const NUMPAD_SEVEN = 103;
|
|
164
|
-
|
|
165
|
-
export declare const NUMPAD_SIX = 102;
|
|
166
|
-
|
|
167
|
-
export declare const NUMPAD_THREE = 99;
|
|
168
|
-
|
|
169
|
-
export declare const NUMPAD_TWO = 98;
|
|
170
|
-
|
|
171
|
-
export declare const NUMPAD_ZERO = 96;
|
|
172
|
-
|
|
173
|
-
export declare const O = 79;
|
|
174
|
-
|
|
175
|
-
export declare const ONE = 49;
|
|
176
|
-
|
|
177
|
-
export declare const OPEN_SQUARE_BRACKET = 219;
|
|
178
|
-
|
|
179
|
-
export declare const P = 80;
|
|
180
|
-
|
|
181
|
-
export declare const PAGE_DOWN = 34;
|
|
182
|
-
|
|
183
|
-
export declare const PAGE_UP = 33;
|
|
184
|
-
|
|
185
|
-
export declare const PAUSE = 19;
|
|
186
|
-
|
|
187
|
-
export declare const PERIOD = 190;
|
|
188
|
-
|
|
189
|
-
export declare const PLUS_SIGN = 43;
|
|
190
|
-
|
|
191
|
-
export declare const PRINT_SCREEN = 44;
|
|
192
|
-
|
|
193
|
-
export declare const Q = 81;
|
|
194
|
-
|
|
195
|
-
export declare const QUESTION_MARK = 63;
|
|
196
|
-
|
|
197
|
-
export declare const R = 82;
|
|
198
|
-
|
|
199
|
-
export declare const RIGHT_ARROW = 39;
|
|
200
|
-
|
|
201
|
-
export declare const S = 83;
|
|
202
|
-
|
|
203
|
-
export declare const SCROLL_LOCK = 145;
|
|
204
|
-
|
|
205
|
-
export declare const SEMICOLON = 186;
|
|
206
|
-
|
|
207
|
-
export declare const SEVEN = 55;
|
|
208
|
-
|
|
209
|
-
export declare const SHIFT = 16;
|
|
210
|
-
|
|
211
|
-
export declare const SINGLE_QUOTE = 222;
|
|
212
|
-
|
|
213
|
-
export declare const SIX = 54;
|
|
214
|
-
|
|
215
|
-
export declare const SLASH = 191;
|
|
216
|
-
|
|
217
|
-
export declare const SPACE = 32;
|
|
218
|
-
|
|
219
|
-
export declare const T = 84;
|
|
220
|
-
|
|
221
|
-
export declare const TAB = 9;
|
|
222
|
-
|
|
223
|
-
export declare const THREE = 51;
|
|
224
|
-
|
|
225
|
-
export declare const TILDE = 192;
|
|
226
|
-
|
|
227
|
-
export declare const TWO = 50;
|
|
228
|
-
|
|
229
|
-
export declare const U = 85;
|
|
230
|
-
|
|
231
|
-
export declare const UP_ARROW = 38;
|
|
232
|
-
|
|
233
|
-
export declare const V = 86;
|
|
234
|
-
|
|
235
|
-
export declare const VOLUME_DOWN = 174;
|
|
236
|
-
|
|
237
|
-
export declare const VOLUME_UP = 175;
|
|
238
|
-
|
|
239
|
-
export declare const W = 87;
|
|
240
|
-
|
|
241
|
-
export declare const X = 88;
|
|
242
|
-
|
|
243
|
-
export declare const Y = 89;
|
|
244
|
-
|
|
245
|
-
export declare const Z = 90;
|
|
246
|
-
|
|
247
|
-
export declare const ZERO = 48;
|
|
126
|
+
declare function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean;
|
|
248
127
|
|
|
249
|
-
export { }
|
|
128
|
+
export { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, type ModifierKey, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey };
|
package/layout/index.d.ts
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
|
|
5
|
+
declare class LayoutModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** The current state of a layout breakpoint. */
|
|
12
|
+
interface BreakpointState {
|
|
13
|
+
/** Whether the breakpoint is currently matching. */
|
|
14
|
+
matches: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* A key boolean pair for each query provided to the observe method,
|
|
17
|
+
* with its current matched state.
|
|
18
|
+
*/
|
|
19
|
+
breakpoints: {
|
|
20
|
+
[key: string]: boolean;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
5
23
|
/** Utility for checking the matching state of `@media` queries. */
|
|
6
|
-
|
|
24
|
+
declare class BreakpointObserver implements OnDestroy {
|
|
7
25
|
private _mediaMatcher;
|
|
8
26
|
private _zone;
|
|
9
27
|
/** A map of all media queries currently being listened for. */
|
|
@@ -32,8 +50,7 @@ export declare class BreakpointObserver implements OnDestroy {
|
|
|
32
50
|
static ɵprov: i0.ɵɵInjectableDeclaration<BreakpointObserver>;
|
|
33
51
|
}
|
|
34
52
|
|
|
35
|
-
|
|
36
|
-
export declare const Breakpoints: {
|
|
53
|
+
declare const Breakpoints: {
|
|
37
54
|
XSmall: string;
|
|
38
55
|
Small: string;
|
|
39
56
|
Medium: string;
|
|
@@ -50,27 +67,8 @@ export declare const Breakpoints: {
|
|
|
50
67
|
WebLandscape: string;
|
|
51
68
|
};
|
|
52
69
|
|
|
53
|
-
/** The current state of a layout breakpoint. */
|
|
54
|
-
export declare interface BreakpointState {
|
|
55
|
-
/** Whether the breakpoint is currently matching. */
|
|
56
|
-
matches: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* A key boolean pair for each query provided to the observe method,
|
|
59
|
-
* with its current matched state.
|
|
60
|
-
*/
|
|
61
|
-
breakpoints: {
|
|
62
|
-
[key: string]: boolean;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare class LayoutModule {
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
|
|
68
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, never, never>;
|
|
69
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
70
|
/** A utility for calling matchMedia queries. */
|
|
73
|
-
|
|
71
|
+
declare class MediaMatcher {
|
|
74
72
|
private _platform;
|
|
75
73
|
private _nonce;
|
|
76
74
|
/** The internal matchMedia method to return back a MediaQueryList like object. */
|
|
@@ -87,4 +85,4 @@ export declare class MediaMatcher {
|
|
|
87
85
|
static ɵprov: i0.ɵɵInjectableDeclaration<MediaMatcher>;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
|
-
export { }
|
|
88
|
+
export { BreakpointObserver, type BreakpointState, Breakpoints, LayoutModule, MediaMatcher };
|
package/listbox/index.d.ts
CHANGED
|
@@ -1,17 +1,88 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { Highlightable } from '@angular/cdk/a11y';
|
|
6
|
-
import * as i0 from '@angular/core';
|
|
7
|
-
import { ListKeyManagerOption } from '@angular/cdk/a11y';
|
|
8
|
-
import { NgZone } from '@angular/core';
|
|
9
|
-
import { OnDestroy } from '@angular/core';
|
|
10
|
-
import { QueryList } from '@angular/core';
|
|
1
|
+
import { ListKeyManagerOption, Highlightable, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
11
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnDestroy, AfterContentInit, QueryList, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
12
6
|
import { Subject } from 'rxjs';
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
/**
|
|
9
|
+
* An implementation of SelectionModel that internally always represents the selection as a
|
|
10
|
+
* multi-selection. This is necessary so that we can recover the full selection if the user
|
|
11
|
+
* switches the listbox from single-selection to multi-selection after initialization.
|
|
12
|
+
*
|
|
13
|
+
* This selection model may report multiple selected values, even if it is in single-selection
|
|
14
|
+
* mode. It is up to the user (CdkListbox) to check for invalid selections.
|
|
15
|
+
*/
|
|
16
|
+
declare class ListboxSelectionModel<T> extends SelectionModel<T> {
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
constructor(multiple?: boolean, initiallySelectedValues?: T[], emitChanges?: boolean, compareWith?: (o1: T, o2: T) => boolean);
|
|
19
|
+
isMultipleSelection(): boolean;
|
|
20
|
+
select(...values: T[]): boolean | void;
|
|
21
|
+
}
|
|
22
|
+
/** A selectable option in a listbox. */
|
|
23
|
+
declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable, OnDestroy {
|
|
24
|
+
/** The id of the option's host element. */
|
|
25
|
+
get id(): string;
|
|
26
|
+
set id(value: string);
|
|
27
|
+
private _id;
|
|
28
|
+
private _generatedId;
|
|
29
|
+
/** The value of this option. */
|
|
30
|
+
value: T;
|
|
31
|
+
/**
|
|
32
|
+
* The text used to locate this item during listbox typeahead. If not specified,
|
|
33
|
+
* the `textContent` of the item will be used.
|
|
34
|
+
*/
|
|
35
|
+
typeaheadLabel: string | null;
|
|
36
|
+
/** Whether this option is disabled. */
|
|
37
|
+
get disabled(): boolean;
|
|
38
|
+
set disabled(value: boolean);
|
|
39
|
+
private _disabled;
|
|
40
|
+
/** The tabindex of the option when it is enabled. */
|
|
41
|
+
get enabledTabIndex(): number | null | undefined;
|
|
42
|
+
set enabledTabIndex(value: number | null | undefined);
|
|
43
|
+
private _enabledTabIndex;
|
|
44
|
+
/** The option's host element */
|
|
45
|
+
readonly element: HTMLElement;
|
|
46
|
+
/** The parent listbox this option belongs to. */
|
|
47
|
+
protected readonly listbox: CdkListbox<T>;
|
|
48
|
+
/** Emits when the option is destroyed. */
|
|
49
|
+
protected destroyed: Subject<void>;
|
|
50
|
+
/** Emits when the option is clicked. */
|
|
51
|
+
readonly _clicked: Subject<MouseEvent>;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
/** Whether this option is selected. */
|
|
54
|
+
isSelected(): boolean;
|
|
55
|
+
/** Whether this option is active. */
|
|
56
|
+
isActive(): boolean;
|
|
57
|
+
/** Toggle the selected state of this option. */
|
|
58
|
+
toggle(): void;
|
|
59
|
+
/** Select this option if it is not selected. */
|
|
60
|
+
select(): void;
|
|
61
|
+
/** Deselect this option if it is selected. */
|
|
62
|
+
deselect(): void;
|
|
63
|
+
/** Focus this option. */
|
|
64
|
+
focus(): void;
|
|
65
|
+
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
66
|
+
getLabel(): string;
|
|
67
|
+
/**
|
|
68
|
+
* No-op implemented as a part of `Highlightable`.
|
|
69
|
+
* @docs-private
|
|
70
|
+
*/
|
|
71
|
+
setActiveStyles(): void;
|
|
72
|
+
/**
|
|
73
|
+
* No-op implemented as a part of `Highlightable`.
|
|
74
|
+
* @docs-private
|
|
75
|
+
*/
|
|
76
|
+
setInactiveStyles(): void;
|
|
77
|
+
/** Handle focus events on the option. */
|
|
78
|
+
protected _handleFocus(): void;
|
|
79
|
+
/** Get the tabindex for this option. */
|
|
80
|
+
protected _getTabIndex(): number | null | undefined;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkOption<any>, never>;
|
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": { "alias": "id"; "required": false; }; "value": { "alias": "cdkOption"; "required": false; }; "typeaheadLabel": { "alias": "cdkOptionTypeaheadLabel"; "required": false; }; "disabled": { "alias": "cdkOptionDisabled"; "required": false; }; "enabledTabIndex": { "alias": "tabindex"; "required": false; }; }, {}, never, never, true, never>;
|
|
83
|
+
static ngAcceptInputType_disabled: unknown;
|
|
84
|
+
}
|
|
85
|
+
declare class CdkListbox<T = unknown> implements AfterContentInit, OnDestroy, ControlValueAccessor {
|
|
15
86
|
private _cleanupWindowBlur;
|
|
16
87
|
/** The id of the option's host element. */
|
|
17
88
|
get id(): string;
|
|
@@ -261,102 +332,8 @@ export declare class CdkListbox<T = unknown> implements AfterContentInit, OnDest
|
|
|
261
332
|
static ngAcceptInputType_navigationWrapDisabled: unknown;
|
|
262
333
|
static ngAcceptInputType_navigateDisabledOptions: unknown;
|
|
263
334
|
}
|
|
264
|
-
|
|
265
|
-
export declare class CdkListboxModule {
|
|
266
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListboxModule, never>;
|
|
267
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkListboxModule, never, [typeof i1.CdkListbox, typeof i1.CdkOption], [typeof i1.CdkListbox, typeof i1.CdkOption]>;
|
|
268
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkListboxModule>;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/** A selectable option in a listbox. */
|
|
272
|
-
export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable, OnDestroy {
|
|
273
|
-
/** The id of the option's host element. */
|
|
274
|
-
get id(): string;
|
|
275
|
-
set id(value: string);
|
|
276
|
-
private _id;
|
|
277
|
-
private _generatedId;
|
|
278
|
-
/** The value of this option. */
|
|
279
|
-
value: T;
|
|
280
|
-
/**
|
|
281
|
-
* The text used to locate this item during listbox typeahead. If not specified,
|
|
282
|
-
* the `textContent` of the item will be used.
|
|
283
|
-
*/
|
|
284
|
-
typeaheadLabel: string | null;
|
|
285
|
-
/** Whether this option is disabled. */
|
|
286
|
-
get disabled(): boolean;
|
|
287
|
-
set disabled(value: boolean);
|
|
288
|
-
private _disabled;
|
|
289
|
-
/** The tabindex of the option when it is enabled. */
|
|
290
|
-
get enabledTabIndex(): number | null | undefined;
|
|
291
|
-
set enabledTabIndex(value: number | null | undefined);
|
|
292
|
-
private _enabledTabIndex;
|
|
293
|
-
/** The option's host element */
|
|
294
|
-
readonly element: HTMLElement;
|
|
295
|
-
/** The parent listbox this option belongs to. */
|
|
296
|
-
protected readonly listbox: CdkListbox<T>;
|
|
297
|
-
/** Emits when the option is destroyed. */
|
|
298
|
-
protected destroyed: Subject<void>;
|
|
299
|
-
/** Emits when the option is clicked. */
|
|
300
|
-
readonly _clicked: Subject<MouseEvent>;
|
|
301
|
-
ngOnDestroy(): void;
|
|
302
|
-
/** Whether this option is selected. */
|
|
303
|
-
isSelected(): boolean;
|
|
304
|
-
/** Whether this option is active. */
|
|
305
|
-
isActive(): boolean;
|
|
306
|
-
/** Toggle the selected state of this option. */
|
|
307
|
-
toggle(): void;
|
|
308
|
-
/** Select this option if it is not selected. */
|
|
309
|
-
select(): void;
|
|
310
|
-
/** Deselect this option if it is selected. */
|
|
311
|
-
deselect(): void;
|
|
312
|
-
/** Focus this option. */
|
|
313
|
-
focus(): void;
|
|
314
|
-
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
315
|
-
getLabel(): string;
|
|
316
|
-
/**
|
|
317
|
-
* No-op implemented as a part of `Highlightable`.
|
|
318
|
-
* @docs-private
|
|
319
|
-
*/
|
|
320
|
-
setActiveStyles(): void;
|
|
321
|
-
/**
|
|
322
|
-
* No-op implemented as a part of `Highlightable`.
|
|
323
|
-
* @docs-private
|
|
324
|
-
*/
|
|
325
|
-
setInactiveStyles(): void;
|
|
326
|
-
/** Handle focus events on the option. */
|
|
327
|
-
protected _handleFocus(): void;
|
|
328
|
-
/** Get the tabindex for this option. */
|
|
329
|
-
protected _getTabIndex(): number | null | undefined;
|
|
330
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkOption<any>, never>;
|
|
331
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": { "alias": "id"; "required": false; }; "value": { "alias": "cdkOption"; "required": false; }; "typeaheadLabel": { "alias": "cdkOptionTypeaheadLabel"; "required": false; }; "disabled": { "alias": "cdkOptionDisabled"; "required": false; }; "enabledTabIndex": { "alias": "tabindex"; "required": false; }; }, {}, never, never, true, never>;
|
|
332
|
-
static ngAcceptInputType_disabled: unknown;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
declare namespace i1 {
|
|
336
|
-
export {
|
|
337
|
-
CdkOption,
|
|
338
|
-
CdkListbox,
|
|
339
|
-
ListboxValueChangeEvent
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* An implementation of SelectionModel that internally always represents the selection as a
|
|
345
|
-
* multi-selection. This is necessary so that we can recover the full selection if the user
|
|
346
|
-
* switches the listbox from single-selection to multi-selection after initialization.
|
|
347
|
-
*
|
|
348
|
-
* This selection model may report multiple selected values, even if it is in single-selection
|
|
349
|
-
* mode. It is up to the user (CdkListbox) to check for invalid selections.
|
|
350
|
-
*/
|
|
351
|
-
declare class ListboxSelectionModel<T> extends SelectionModel<T> {
|
|
352
|
-
multiple: boolean;
|
|
353
|
-
constructor(multiple?: boolean, initiallySelectedValues?: T[], emitChanges?: boolean, compareWith?: (o1: T, o2: T) => boolean);
|
|
354
|
-
isMultipleSelection(): boolean;
|
|
355
|
-
select(...values: T[]): boolean | void;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
335
|
/** Change event that is fired whenever the value of the listbox changes. */
|
|
359
|
-
|
|
336
|
+
interface ListboxValueChangeEvent<T> {
|
|
360
337
|
/** The new value of the listbox. */
|
|
361
338
|
readonly value: readonly T[];
|
|
362
339
|
/** Reference to the listbox that emitted the event. */
|
|
@@ -365,4 +342,10 @@ export declare interface ListboxValueChangeEvent<T> {
|
|
|
365
342
|
readonly option: CdkOption<T> | null;
|
|
366
343
|
}
|
|
367
344
|
|
|
368
|
-
|
|
345
|
+
declare class CdkListboxModule {
|
|
346
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListboxModule, never>;
|
|
347
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkListboxModule, never, [typeof CdkListbox, typeof CdkOption], [typeof CdkListbox, typeof CdkOption]>;
|
|
348
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkListboxModule>;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export { CdkListbox, CdkListboxModule, CdkOption, type ListboxValueChangeEvent };
|