@angular/cdk 20.0.0-next.0 → 20.0.0-next.2
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 +330 -1234
- package/a11y-module.d-7d03e079.d.ts +313 -0
- package/accordion/index.d.ts +8 -27
- package/activedescendant-key-manager.d-11921e3a.d.ts +31 -0
- package/bidi/index.d.ts +3 -62
- package/bidi-module.d-f8648621.d.ts +53 -0
- package/clipboard/index.d.ts +61 -75
- package/coercion/index.d.ts +10 -33
- package/coercion/private/index.d.ts +2 -2
- package/collections/index.d.ts +13 -291
- package/data-source.d-7cab2c9d.d.ts +42 -0
- package/dialog/index.d.ts +204 -249
- package/drag-drop/index.d.ts +1077 -1157
- package/fesm2022/a11y-module-e6996d20.mjs +952 -0
- package/fesm2022/a11y-module-e6996d20.mjs.map +1 -0
- package/fesm2022/a11y.mjs +47 -2445
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -16
- 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 -14
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +2 -18
- 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 -476
- 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 -39
- 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 -50
- 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 -136
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +12 -184
- 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 -20
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +76 -60
- 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 -7
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +5 -213
- 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 -3019
- 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 -293
- 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 -650
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -63
- 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 -1463
- 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 -30
- 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 +88 -132
- 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 -74
- 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 +24 -23
- 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 -33
- 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/index.d.ts +2 -2
- package/keycodes/index.d.ts +123 -244
- package/layout/index.d.ts +23 -25
- package/list-key-manager.d-72e9a2e7.d.ts +164 -0
- package/listbox/index.d.ts +91 -107
- package/menu/index.d.ts +596 -682
- package/number-property.d-ce316715.d.ts +15 -0
- package/observe-content.d-c08bc882.d.ts +84 -0
- package/observers/index.d.ts +4 -90
- package/observers/private/index.d.ts +3 -3
- package/overlay/index.d.ts +110 -951
- package/overlay-module.d-5d06db8a.d.ts +790 -0
- package/package.json +1 -1
- package/platform/index.d.ts +45 -86
- package/platform.d-0a5b4792.d.ts +33 -0
- package/portal/index.d.ts +5 -264
- package/portal-directives.d-d345bd53.d.ts +210 -0
- package/private/index.d.ts +3 -20
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/html-parsing/angular.js +2 -2
- package/schematics/ng-update/html-parsing/angular.mjs +2 -2
- package/scrolling/index.d.ts +7 -687
- package/scrolling-module.d-a08a462d.d.ts +551 -0
- package/selection-model.d-1a70542c.d.ts +111 -0
- package/stepper/index.d.ts +74 -124
- package/style-loader.d-19baab84.d.ts +21 -0
- package/table/index.d.ts +329 -453
- package/testing/index.d.ts +32 -675
- package/testing/selenium-webdriver/index.d.ts +30 -20
- package/testing/testbed/index.d.ts +9 -19
- package/text-field/index.d.ts +11 -30
- package/tree/index.d.ts +205 -271
- 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/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 };
|
|
@@ -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 };
|