@angular/cdk 7.0.0-rc.1 → 7.0.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.scss +32 -0
- package/_overlay.scss +141 -0
- package/_text-field.scss +63 -0
- package/a11y/typings/aria-describer/aria-describer.d.ts +2 -2
- package/a11y/typings/focus-monitor/focus-monitor.d.ts +2 -2
- package/a11y/typings/index.metadata.json +1 -1
- package/a11y/typings/key-manager/list-key-manager.d.ts +1 -1
- package/a11y/typings/live-announcer/live-announcer.d.ts +2 -2
- package/bundles/cdk-a11y.umd.js +26 -21
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +1 -1
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +126 -81
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +1 -1
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +22 -22
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-platform.umd.js +13 -2
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +1 -1
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +10 -6
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +1 -1
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-stepper.umd.js +1 -1
- package/bundles/cdk-stepper.umd.js.map +1 -1
- package/bundles/cdk-stepper.umd.min.js.map +1 -1
- package/bundles/cdk-table.umd.js +5 -1
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-table.umd.min.js +1 -1
- package/bundles/cdk-table.umd.min.js.map +1 -1
- package/bundles/cdk-text-field.umd.js +10 -3
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-text-field.umd.min.js +1 -1
- package/bundles/cdk-text-field.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/drag-drop/typings/drag-events.d.ts +5 -5
- package/drag-drop/typings/drag-handle.d.ts +3 -1
- package/drag-drop/typings/drag-parent.d.ts +15 -0
- package/drag-drop/typings/drag-utils.d.ts +10 -0
- package/drag-drop/typings/drag.d.ts +6 -11
- package/drag-drop/typings/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
- package/{typings/drag-drop/drop.d.ts → drag-drop/typings/drop-list.d.ts} +7 -7
- package/drag-drop/typings/index.d.ts +1 -0
- package/drag-drop/typings/index.metadata.json +1 -1
- package/drag-drop/typings/public-api.d.ts +2 -2
- package/esm2015/a11y.js +25 -20
- package/esm2015/a11y.js.map +1 -1
- package/esm2015/cdk.js +1 -1
- package/esm2015/cdk.js.map +1 -1
- package/esm2015/drag-drop.js +108 -57
- package/esm2015/drag-drop.js.map +1 -1
- package/esm2015/overlay.js +12 -12
- package/esm2015/overlay.js.map +1 -1
- package/esm2015/platform.js +13 -3
- package/esm2015/platform.js.map +1 -1
- package/esm2015/scrolling.js +10 -6
- package/esm2015/scrolling.js.map +1 -1
- package/esm2015/stepper.js +1 -1
- package/esm2015/stepper.js.map +1 -1
- package/esm2015/table.js +5 -1
- package/esm2015/table.js.map +1 -1
- package/esm2015/text-field.js +11 -4
- package/esm2015/text-field.js.map +1 -1
- package/esm5/a11y.es5.js +27 -22
- package/esm5/a11y.es5.js.map +1 -1
- package/esm5/cdk.es5.js +1 -1
- package/esm5/cdk.es5.js.map +1 -1
- package/esm5/drag-drop.es5.js +124 -81
- package/esm5/drag-drop.es5.js.map +1 -1
- package/esm5/overlay.es5.js +22 -22
- package/esm5/overlay.es5.js.map +1 -1
- package/esm5/platform.es5.js +13 -3
- package/esm5/platform.es5.js.map +1 -1
- package/esm5/scrolling.es5.js +10 -6
- package/esm5/scrolling.es5.js.map +1 -1
- package/esm5/stepper.es5.js +1 -1
- package/esm5/stepper.es5.js.map +1 -1
- package/esm5/table.es5.js +5 -1
- package/esm5/table.es5.js.map +1 -1
- package/esm5/text-field.es5.js +11 -4
- package/esm5/text-field.es5.js.map +1 -1
- package/overlay/typings/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
- package/overlay/typings/overlay-container.d.ts +2 -2
- package/overlay/typings/overlay-directives.d.ts +1 -1
- package/overlay/typings/overlay-module.d.ts +1 -1
- package/overlay/typings/position/connected-position-strategy.d.ts +1 -1
- package/overlay/typings/position/global-position-strategy.d.ts +2 -2
- package/overlay/typings/position/overlay-position-builder.d.ts +1 -1
- package/package.json +6 -6
- package/platform/typings/features/passive-listeners.d.ts +7 -0
- package/platform/typings/index.metadata.json +1 -1
- package/platform/typings/platform.d.ts +1 -1
- package/schematics/index.d.ts +0 -1
- package/schematics/index.js +0 -1
- package/schematics/index.js.map +1 -1
- package/schematics/ng-add/index.d.ts +4 -0
- package/schematics/ng-add/index.js +7 -3
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +4 -4
- package/schematics/ng-generate/drag-drop/schema.json +2 -1
- package/schematics/ng-update/index.js +8 -2
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/utils/build-component.d.ts +7 -0
- package/schematics/utils/build-component.js +4 -5
- package/schematics/utils/build-component.js.map +1 -1
- package/schematics/utils/html-head-element.d.ts +13 -0
- package/schematics/utils/html-head-element.js +54 -0
- package/schematics/utils/html-head-element.js.map +1 -0
- package/schematics/utils/index.d.ts +1 -0
- package/schematics/utils/index.js +1 -0
- package/schematics/utils/index.js.map +1 -1
- package/scrolling/typings/index.metadata.json +1 -1
- package/scrolling/typings/scroll-dispatcher.d.ts +2 -2
- package/scrolling/typings/viewport-ruler.d.ts +2 -2
- package/table/typings/index.metadata.json +1 -1
- package/text-field/typings/autosize.d.ts +7 -1
- package/text-field/typings/index.metadata.json +1 -1
- package/typings/a11y/aria-describer/aria-describer.d.ts +2 -2
- package/typings/a11y/focus-monitor/focus-monitor.d.ts +2 -2
- package/typings/a11y/index.metadata.json +1 -1
- package/typings/a11y/key-manager/list-key-manager.d.ts +1 -1
- package/typings/a11y/live-announcer/live-announcer.d.ts +2 -2
- package/typings/drag-drop/drag-events.d.ts +5 -5
- package/typings/drag-drop/drag-handle.d.ts +3 -1
- package/typings/drag-drop/drag-parent.d.ts +15 -0
- package/typings/drag-drop/drag-utils.d.ts +10 -0
- package/typings/drag-drop/drag.d.ts +6 -11
- package/typings/drag-drop/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
- package/{drag-drop/typings/drop.d.ts → typings/drag-drop/drop-list.d.ts} +7 -7
- package/typings/drag-drop/index.d.ts +1 -0
- package/typings/drag-drop/index.metadata.json +1 -1
- package/typings/drag-drop/public-api.d.ts +2 -2
- package/typings/esm5/a11y/aria-describer/aria-describer.d.ts +2 -2
- package/typings/esm5/a11y/focus-monitor/focus-monitor.d.ts +2 -2
- package/typings/esm5/a11y/index.metadata.json +1 -1
- package/typings/esm5/a11y/key-manager/list-key-manager.d.ts +1 -1
- package/typings/esm5/a11y/live-announcer/live-announcer.d.ts +2 -2
- package/typings/esm5/drag-drop/drag-events.d.ts +5 -5
- package/typings/esm5/drag-drop/drag-handle.d.ts +3 -1
- package/typings/esm5/drag-drop/drag-parent.d.ts +15 -0
- package/typings/esm5/drag-drop/drag-utils.d.ts +10 -0
- package/typings/esm5/drag-drop/drag.d.ts +6 -11
- package/typings/esm5/drag-drop/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
- package/typings/esm5/drag-drop/{drop.d.ts → drop-list.d.ts} +7 -7
- package/typings/esm5/drag-drop/index.d.ts +1 -0
- package/typings/esm5/drag-drop/index.metadata.json +1 -1
- package/typings/esm5/drag-drop/public-api.d.ts +2 -2
- package/typings/esm5/index.metadata.json +1 -1
- package/typings/esm5/overlay/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
- package/typings/esm5/overlay/overlay-container.d.ts +2 -2
- package/typings/esm5/overlay/overlay-directives.d.ts +1 -1
- package/typings/esm5/overlay/overlay-module.d.ts +1 -1
- package/typings/esm5/overlay/position/connected-position-strategy.d.ts +1 -1
- package/typings/esm5/overlay/position/global-position-strategy.d.ts +2 -2
- package/typings/esm5/overlay/position/overlay-position-builder.d.ts +1 -1
- package/typings/esm5/platform/features/passive-listeners.d.ts +7 -0
- package/typings/esm5/platform/index.metadata.json +1 -1
- package/typings/esm5/platform/platform.d.ts +1 -1
- package/typings/esm5/scrolling/index.metadata.json +1 -1
- package/typings/esm5/scrolling/scroll-dispatcher.d.ts +2 -2
- package/typings/esm5/scrolling/viewport-ruler.d.ts +2 -2
- package/typings/esm5/table/index.metadata.json +1 -1
- package/typings/esm5/text-field/autosize.d.ts +7 -1
- package/typings/esm5/text-field/index.metadata.json +1 -1
- package/typings/index.metadata.json +1 -1
- package/typings/overlay/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
- package/typings/overlay/overlay-container.d.ts +2 -2
- package/typings/overlay/overlay-directives.d.ts +1 -1
- package/typings/overlay/overlay-module.d.ts +1 -1
- package/typings/overlay/position/connected-position-strategy.d.ts +1 -1
- package/typings/overlay/position/global-position-strategy.d.ts +2 -2
- package/typings/overlay/position/overlay-position-builder.d.ts +1 -1
- package/typings/platform/features/passive-listeners.d.ts +7 -0
- package/typings/platform/index.metadata.json +1 -1
- package/typings/platform/platform.d.ts +1 -1
- package/typings/schematics/index.d.ts +0 -1
- package/typings/schematics/ng-add/index.d.ts +4 -0
- package/typings/schematics/utils/build-component.d.ts +7 -0
- package/typings/schematics/utils/html-head-element.d.ts +13 -0
- package/typings/schematics/utils/index.d.ts +1 -0
- package/typings/scrolling/index.metadata.json +1 -1
- package/typings/scrolling/scroll-dispatcher.d.ts +2 -2
- package/typings/scrolling/viewport-ruler.d.ts +2 -2
- package/typings/table/index.metadata.json +1 -1
- package/typings/text-field/autosize.d.ts +7 -1
- package/typings/text-field/index.metadata.json +1 -1
- package/schematics/testing/index.d.ts +0 -9
- package/schematics/testing/index.js +0 -15
- package/schematics/testing/index.js.map +0 -1
- package/schematics/testing/post-scheduled-tasks.d.ts +0 -18
- package/schematics/testing/post-scheduled-tasks.js +0 -35
- package/schematics/testing/post-scheduled-tasks.js.map +0 -1
- package/schematics/testing/test-app.d.ts +0 -10
- package/schematics/testing/test-app.js +0 -20
- package/schematics/testing/test-app.js.map +0 -1
- package/typings/schematics/testing/index.d.ts +0 -9
- package/typings/schematics/testing/post-scheduled-tasks.d.ts +0 -18
- package/typings/schematics/testing/test-app.d.ts +0 -10
package/_a11y.scss
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@mixin cdk-a11y {
|
|
2
|
+
.cdk-visually-hidden {
|
|
3
|
+
border: 0;
|
|
4
|
+
clip: rect(0 0 0 0);
|
|
5
|
+
height: 1px;
|
|
6
|
+
margin: -1px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
padding: 0;
|
|
9
|
+
position: absolute;
|
|
10
|
+
width: 1px;
|
|
11
|
+
|
|
12
|
+
// Avoid browsers rendering the focus ring in some cases.
|
|
13
|
+
outline: 0;
|
|
14
|
+
|
|
15
|
+
// Avoid some cases where the browser will still render the native controls (see #9049).
|
|
16
|
+
-webkit-appearance: none;
|
|
17
|
+
-moz-appearance: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Applies styles for users in high contrast mode. Note that this only applies
|
|
23
|
+
* to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
|
|
24
|
+
* attribute, however Chrome handles high contrast differently.
|
|
25
|
+
* @param target Which kind of high contrast setting to target. Defaults to `active`, can be
|
|
26
|
+
* `white-on-black` or `black-on-white`.
|
|
27
|
+
*/
|
|
28
|
+
@mixin cdk-high-contrast($target: active) {
|
|
29
|
+
@media screen and (-ms-high-contrast: $target) {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/_overlay.scss
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// We want overlays to always appear over user content, so set a baseline
|
|
2
|
+
// very high z-index for the overlay container, which is where we create the new
|
|
3
|
+
// stacking context for all overlays.
|
|
4
|
+
$cdk-z-index-overlay-container: 1000;
|
|
5
|
+
$cdk-z-index-overlay: 1000;
|
|
6
|
+
$cdk-z-index-overlay-backdrop: 1000;
|
|
7
|
+
|
|
8
|
+
// Background color for all of the backdrops
|
|
9
|
+
$cdk-overlay-dark-backdrop-background: rgba(0, 0, 0, 0.32);
|
|
10
|
+
|
|
11
|
+
// Default backdrop animation is based on the Material Design swift-ease-out.
|
|
12
|
+
$backdrop-animation-duration: 400ms !default;
|
|
13
|
+
$backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@mixin cdk-overlay() {
|
|
17
|
+
.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
18
|
+
// Disable events from being captured on the overlay container.
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
|
|
21
|
+
// The container should be the size of the viewport.
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
height: 100%;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// The overlay-container is an invisible element which contains all individual overlays.
|
|
29
|
+
.cdk-overlay-container {
|
|
30
|
+
position: fixed;
|
|
31
|
+
z-index: $cdk-z-index-overlay-container;
|
|
32
|
+
|
|
33
|
+
&:empty {
|
|
34
|
+
// Hide the element when it doesn't have any child nodes. This doesn't
|
|
35
|
+
// include overlays that have been detached, rather than disposed.
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// We use an extra wrapper element in order to use make the overlay itself a flex item.
|
|
41
|
+
// This makes centering the overlay easy without running into the subpixel rendering
|
|
42
|
+
// problems tied to using `transform` and without interfering with the other position
|
|
43
|
+
// strategies.
|
|
44
|
+
.cdk-global-overlay-wrapper {
|
|
45
|
+
display: flex;
|
|
46
|
+
position: absolute;
|
|
47
|
+
z-index: $cdk-z-index-overlay;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// A single overlay pane.
|
|
51
|
+
.cdk-overlay-pane {
|
|
52
|
+
// Note: it's important for this one to start off `absolute`,
|
|
53
|
+
// in order for us to be able to measure it correctly.
|
|
54
|
+
position: absolute;
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
z-index: $cdk-z-index-overlay;
|
|
58
|
+
|
|
59
|
+
// For connected-position overlays, we set `display: flex` in
|
|
60
|
+
// order to force `max-width` and `max-height` to take effect.
|
|
61
|
+
display: flex;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
max-height: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cdk-overlay-backdrop {
|
|
67
|
+
// TODO(jelbourn): reuse sidenav fullscreen mixin.
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
right: 0;
|
|
73
|
+
|
|
74
|
+
z-index: $cdk-z-index-overlay-backdrop;
|
|
75
|
+
pointer-events: auto;
|
|
76
|
+
-webkit-tap-highlight-color: transparent;
|
|
77
|
+
transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
|
|
78
|
+
opacity: 0;
|
|
79
|
+
|
|
80
|
+
&.cdk-overlay-backdrop-showing {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
|
|
83
|
+
// In high contrast mode the rgba background will become solid so we need to fall back
|
|
84
|
+
// to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
|
|
85
|
+
// mixin, because we can't normalize the import path to the _a11y.scss both for the
|
|
86
|
+
// source and when this file is distributed. See #10908.
|
|
87
|
+
@media screen and (-ms-high-contrast: active) {
|
|
88
|
+
opacity: 0.6;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cdk-overlay-dark-backdrop {
|
|
94
|
+
background: $cdk-overlay-dark-backdrop-background;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cdk-overlay-transparent-backdrop {
|
|
98
|
+
// Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
|
|
99
|
+
// capturing the user's mouse scroll events. Since we also can't use something like
|
|
100
|
+
// `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
|
|
101
|
+
// all and using `opacity` to make the element transparent.
|
|
102
|
+
&, &.cdk-overlay-backdrop-showing {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Overlay parent element used with the connected position strategy. Used to constrain the
|
|
108
|
+
// overlay element's size to fit within the viewport.
|
|
109
|
+
.cdk-overlay-connected-position-bounding-box {
|
|
110
|
+
position: absolute;
|
|
111
|
+
z-index: $cdk-z-index-overlay;
|
|
112
|
+
|
|
113
|
+
// We use `display: flex` on this element exclusively for centering connected overlays.
|
|
114
|
+
// When *not* centering, a top/left/bottom/right will be set which overrides the normal
|
|
115
|
+
// flex layout.
|
|
116
|
+
display: flex;
|
|
117
|
+
|
|
118
|
+
// We use the `column` direction here to avoid some flexbox issues in Edge
|
|
119
|
+
// when using the "grow after open" options.
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
|
|
122
|
+
// Add some dimensions so the element has an `innerText` which some people depend on in tests.
|
|
123
|
+
min-width: 1px;
|
|
124
|
+
min-height: 1px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Used when disabling global scrolling.
|
|
128
|
+
.cdk-global-scrollblock {
|
|
129
|
+
position: fixed;
|
|
130
|
+
|
|
131
|
+
// Necessary for the content not to lose its width. Note that we're using 100%, instead of
|
|
132
|
+
// 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
|
|
133
|
+
// that the element had before we made it `fixed`.
|
|
134
|
+
width: 100%;
|
|
135
|
+
|
|
136
|
+
// Note: this will always add a scrollbar to whatever element it is on, which can
|
|
137
|
+
// potentially result in double scrollbars. It shouldn't be an issue, because we won't
|
|
138
|
+
// block scrolling on a page that doesn't have a scrollbar in the first place.
|
|
139
|
+
overflow-y: scroll;
|
|
140
|
+
}
|
|
141
|
+
}
|
package/_text-field.scss
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Core styles that enable monitoring autofill state of text fields.
|
|
2
|
+
@mixin cdk-text-field {
|
|
3
|
+
// Keyframes that apply no styles, but allow us to monitor when an text field becomes autofilled
|
|
4
|
+
// by watching for the animation events that are fired when they start. Note: the /*!*/ comment is
|
|
5
|
+
// needed to prevent LibSass from stripping the keyframes out.
|
|
6
|
+
// Based on: https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
|
|
7
|
+
@keyframes cdk-text-field-autofill-start {/*!*/}
|
|
8
|
+
@keyframes cdk-text-field-autofill-end {/*!*/}
|
|
9
|
+
|
|
10
|
+
.cdk-text-field-autofill-monitored:-webkit-autofill {
|
|
11
|
+
animation-name: cdk-text-field-autofill-start;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cdk-text-field-autofill-monitored:not(:-webkit-autofill) {
|
|
15
|
+
animation-name: cdk-text-field-autofill-end;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Remove the resize handle on autosizing textareas, because whatever height
|
|
19
|
+
// the user resized to will be overwritten once they start typing again.
|
|
20
|
+
textarea.cdk-textarea-autosize {
|
|
21
|
+
resize: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// This class is temporarily applied to the textarea when it is being measured. It is immediately
|
|
25
|
+
// removed when measuring is complete. We use `!important` rules here to make sure user-specified
|
|
26
|
+
// rules do not interfere with the measurement.
|
|
27
|
+
textarea.cdk-textarea-autosize-measuring {
|
|
28
|
+
height: auto !important;
|
|
29
|
+
overflow: hidden !important;
|
|
30
|
+
// Having 2px top and bottom padding seems to fix a bug where Chrome gets an incorrect
|
|
31
|
+
// measurement. We just have to account for it later and subtract it off the final result.
|
|
32
|
+
padding: 2px 0 !important;
|
|
33
|
+
box-sizing: content-box !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Used to generate UIDs for keyframes used to change the text field autofill styles.
|
|
38
|
+
$cdk-text-field-autofill-color-frame-count: 0;
|
|
39
|
+
|
|
40
|
+
// Mixin used to apply custom background and foreground colors to an autofilled text field.
|
|
41
|
+
// Based on: https://stackoverflow.com/questions/2781549/
|
|
42
|
+
// removing-input-background-colour-for-chrome-autocomplete#answer-37432260
|
|
43
|
+
@mixin cdk-text-field-autofill-color($background, $foreground:'') {
|
|
44
|
+
@keyframes cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count} {
|
|
45
|
+
to {
|
|
46
|
+
background: $background;
|
|
47
|
+
@if $foreground != '' { color: $foreground; }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:-webkit-autofill {
|
|
52
|
+
animation-name: cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count};
|
|
53
|
+
animation-fill-mode: both;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.cdk-text-field-autofill-monitored:-webkit-autofill {
|
|
57
|
+
animation-name: cdk-text-field-autofill-start,
|
|
58
|
+
cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
$cdk-text-field-autofill-color-frame-count:
|
|
62
|
+
$cdk-text-field-autofill-color-frame-count + 1 !global;
|
|
63
|
+
}
|
|
@@ -69,9 +69,9 @@ export declare class AriaDescriber implements OnDestroy {
|
|
|
69
69
|
/** Determines whether a message can be described on a particular element. */
|
|
70
70
|
private _canBeDescribed;
|
|
71
71
|
}
|
|
72
|
-
/** @docs-private @deprecated @breaking-change
|
|
72
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
73
73
|
export declare function ARIA_DESCRIBER_PROVIDER_FACTORY(parentDispatcher: AriaDescriber, _document: any): AriaDescriber;
|
|
74
|
-
/** @docs-private @deprecated @breaking-change
|
|
74
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
75
75
|
export declare const ARIA_DESCRIBER_PROVIDER: {
|
|
76
76
|
provide: typeof AriaDescriber;
|
|
77
77
|
deps: (Optional[] | InjectionToken<any>)[];
|
|
@@ -138,9 +138,9 @@ export declare class CdkMonitorFocus implements OnDestroy {
|
|
|
138
138
|
constructor(_elementRef: ElementRef<HTMLElement>, _focusMonitor: FocusMonitor);
|
|
139
139
|
ngOnDestroy(): void;
|
|
140
140
|
}
|
|
141
|
-
/** @docs-private @deprecated @breaking-change
|
|
141
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
142
142
|
export declare function FOCUS_MONITOR_PROVIDER_FACTORY(parentDispatcher: FocusMonitor, ngZone: NgZone, platform: Platform): FocusMonitor;
|
|
143
|
-
/** @docs-private @deprecated @breaking-change
|
|
143
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
144
144
|
export declare const FOCUS_MONITOR_PROVIDER: {
|
|
145
145
|
provide: typeof FocusMonitor;
|
|
146
146
|
deps: (Optional[] | typeof NgZone | typeof Platform)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"RegisteredMessage":{"__symbolic":"interface"},"MESSAGES_CONTAINER_ID":"cdk-describedby-message-container","CDK_DESCRIBEDBY_ID_PREFIX":"cdk-describedby-message","CDK_DESCRIBEDBY_HOST_ATTRIBUTE":"cdk-describedby-host","AriaDescriber":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":56,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":60,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":60,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"describe":[{"__symbolic":"method"}],"removeDescription":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_createMessageElement":[{"__symbolic":"method"}],"_deleteMessageElement":[{"__symbolic":"method"}],"_createMessagesContainer":[{"__symbolic":"method"}],"_deleteMessagesContainer":[{"__symbolic":"method"}],"_removeCdkDescribedByReferenceIds":[{"__symbolic":"method"}],"_addMessageReference":[{"__symbolic":"method"}],"_removeMessageReference":[{"__symbolic":"method"}],"_isElementDescribedByMessage":[{"__symbolic":"method"}],"_canBeDescribed":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ARIA_DESCRIBER_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","_document"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"AriaDescriber"},"arguments":[{"__symbolic":"reference","name":"_document"}]}}},"ARIA_DESCRIBER_PROVIDER":{"provide":{"__symbolic":"reference","name":"AriaDescriber"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":237,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":237,"character":25}},{"__symbolic":"reference","name":"AriaDescriber"}],{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":238,"character":4}],"useFactory":{"__symbolic":"reference","name":"ARIA_DESCRIBER_PROVIDER_FACTORY"}},"Highlightable":{"__symbolic":"interface"},"ActiveDescendantKeyManager":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ListKeyManager"},"members":{"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]}},"FocusableOption":{"__symbolic":"interface"},"FocusKeyManager":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ListKeyManager"},"members":{"setFocusOrigin":[{"__symbolic":"method"}],"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]}},"ListKeyManagerOption":{"__symbolic":"interface"},"ListKeyManager":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"QueryList","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":54,"character":40,"context":{"typeName":"T"},"module":"./key-manager/list-key-manager"}]}]}],"skipPredicate":[{"__symbolic":"method"}],"withWrap":[{"__symbolic":"method"}],"withVerticalOrientation":[{"__symbolic":"method"}],"withHorizontalOrientation":[{"__symbolic":"method"}],"withTypeAhead":[{"__symbolic":"method"}],"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"onKeydown":[{"__symbolic":"method"}],"setFirstItemActive":[{"__symbolic":"method"}],"setLastItemActive":[{"__symbolic":"method"}],"setNextItemActive":[{"__symbolic":"method"}],"setPreviousItemActive":[{"__symbolic":"method"}],"updateActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"updateActiveItemIndex":[{"__symbolic":"method"}],"_setActiveItemByDelta":[{"__symbolic":"method"}],"_setActiveInWrapMode":[{"__symbolic":"method"}],"_setActiveInDefaultMode":[{"__symbolic":"method"}],"_setActiveItemByIndex":[{"__symbolic":"method"}],"_getItemsArray":[{"__symbolic":"method"}]}},"FocusTrap":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":50,"character":22,"context":{"typeName":"HTMLElement"},"module":"./focus-trap/focus-trap"},{"__symbolic":"reference","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":21},{"__symbolic":"error","message":"Could not resolve type","line":53,"character":23,"context":{"typeName":"Document"},"module":"./focus-trap/focus-trap"},null]}],"destroy":[{"__symbolic":"method"}],"attachAnchors":[{"__symbolic":"method"}],"focusInitialElementWhenReady":[{"__symbolic":"method"}],"focusFirstTabbableElementWhenReady":[{"__symbolic":"method"}],"focusLastTabbableElementWhenReady":[{"__symbolic":"method"}],"_getRegionBoundary":[{"__symbolic":"method"}],"focusInitialElement":[{"__symbolic":"method"}],"focusFirstTabbableElement":[{"__symbolic":"method"}],"focusLastTabbableElement":[{"__symbolic":"method"}],"hasAttached":[{"__symbolic":"method"}],"_getFirstTabbableElement":[{"__symbolic":"method"}],"_getLastTabbableElement":[{"__symbolic":"method"}],"_createAnchor":[{"__symbolic":"method"}],"_toggleAnchorTabIndex":[{"__symbolic":"method"}],"_executeOnStable":[{"__symbolic":"method"}]}},"FocusTrapFactory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":310,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":317,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":317,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":21},{"__symbolic":"reference","name":"any"}]}],"create":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkTrapFocus":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":336,"character":1},"arguments":[{"selector":"[cdkTrapFocus]","exportAs":"cdkTrapFocus"}]}],"members":{"enabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":350,"character":3},"arguments":["cdkTrapFocus"]}]}],"autoCapture":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":358,"character":3},"arguments":["cdkTrapFocusAutoCapture"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":366,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":366,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":364,"character":38,"context":{"typeName":"HTMLElement"},"module":"./focus-trap/focus-trap"}]},{"__symbolic":"reference","name":"FocusTrapFactory"},{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}]}},"InteractivityChecker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":23,"character":33}]}],"isDisabled":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"isTabbable":[{"__symbolic":"method"}],"isFocusable":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"AriaLivePoliteness":{"__symbolic":"interface"},"LiveAnnouncer":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":29,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":35,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":19},"arguments":[{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN"}]}],null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":37,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23},{"__symbolic":"reference","name":"any"}]}],"announce":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_createLiveElement":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkAriaLive":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":107,"character":1},"arguments":[{"selector":"[cdkAriaLive]","exportAs":"cdkAriaLive"}]}],"members":{"politeness":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":3},"arguments":["cdkAriaLive"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":138,"character":35},{"__symbolic":"reference","name":"LiveAnnouncer"},{"__symbolic":"reference","module":"@angular/cdk/observers","name":"ContentObserver","line":139,"character":40},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"LIVE_ANNOUNCER_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","liveElement","_document","ngZone"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"LiveAnnouncer"},"arguments":[{"__symbolic":"reference","name":"liveElement"},{"__symbolic":"reference","name":"_document"},{"__symbolic":"reference","name":"ngZone"}]}}},"LIVE_ANNOUNCER_PROVIDER":{"provide":{"__symbolic":"reference","name":"LiveAnnouncer"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":161,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":161,"character":25}},{"__symbolic":"reference","name":"LiveAnnouncer"}],[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":162,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":162,"character":25},"arguments":[{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN"}]}],{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":163,"character":4},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23}],"useFactory":{"__symbolic":"reference","name":"LIVE_ANNOUNCER_PROVIDER_FACTORY"}},"LIVE_ANNOUNCER_ELEMENT_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":8},"arguments":["liveAnnouncerElement",{"providedIn":"root","factory":{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY"}}]},"LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY":{"__symbolic":"function","parameters":[],"value":null},"TOUCH_BUFFER_MS":650,"FocusOrigin":{"__symbolic":"interface"},"FocusOptions":{"__symbolic":"interface"},"FocusMonitor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":49,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":81,"character":31},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":81,"character":58}]}],"monitor":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"stopMonitoring":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"focusVia":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_registerGlobalListeners":[{"__symbolic":"method"}],"_toggleClass":[{"__symbolic":"method"}],"_setClasses":[{"__symbolic":"method"}],"_setOriginForCurrentEventQueue":[{"__symbolic":"method"}],"_wasCausedByTouch":[{"__symbolic":"method"}],"_onFocus":[{"__symbolic":"method"}],"_onBlur":[{"__symbolic":"method"}],"_emitOrigin":[{"__symbolic":"method"}],"_incrementMonitoredElementCount":[{"__symbolic":"method"}],"_decrementMonitoredElementCount":[{"__symbolic":"method"}],"_getNativeElement":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkMonitorFocus":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":427,"character":1},"arguments":[{"selector":"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],"members":{"cdkFocusChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":432,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":434,"character":46,"context":{"typeName":"HTMLElement"},"module":"./focus-monitor/focus-monitor"}]},{"__symbolic":"reference","name":"FocusMonitor"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"FOCUS_MONITOR_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","ngZone","platform"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FocusMonitor"},"arguments":[{"__symbolic":"reference","name":"ngZone"},{"__symbolic":"reference","name":"platform"}]}}},"FOCUS_MONITOR_PROVIDER":{"provide":{"__symbolic":"reference","name":"FocusMonitor"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":457,"character":14}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":457,"character":30}},{"__symbolic":"reference","name":"FocusMonitor"}],{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":81,"character":31},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":81,"character":58}],"useFactory":{"__symbolic":"reference","name":"FOCUS_MONITOR_PROVIDER_FACTORY"}},"isFakeMousedownFromScreenReader":{"__symbolic":"function","parameters":["event"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"buttons"},"right":0}},"A11yModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":12},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"PlatformModule","line":17,"character":26},{"__symbolic":"reference","module":"@angular/cdk/observers","name":"ObserversModule","line":17,"character":42}],"declarations":[{"__symbolic":"reference","name":"CdkAriaLive"},{"__symbolic":"reference","name":"CdkTrapFocus"},{"__symbolic":"reference","name":"CdkMonitorFocus"}],"exports":[{"__symbolic":"reference","name":"CdkAriaLive"},{"__symbolic":"reference","name":"CdkTrapFocus"},{"__symbolic":"reference","name":"CdkMonitorFocus"}]}]}],"members":{}}},"origins":{"RegisteredMessage":"./aria-describer/aria-describer","MESSAGES_CONTAINER_ID":"./aria-describer/aria-describer","CDK_DESCRIBEDBY_ID_PREFIX":"./aria-describer/aria-describer","CDK_DESCRIBEDBY_HOST_ATTRIBUTE":"./aria-describer/aria-describer","AriaDescriber":"./aria-describer/aria-describer","ARIA_DESCRIBER_PROVIDER_FACTORY":"./aria-describer/aria-describer","ARIA_DESCRIBER_PROVIDER":"./aria-describer/aria-describer","Highlightable":"./key-manager/activedescendant-key-manager","ActiveDescendantKeyManager":"./key-manager/activedescendant-key-manager","FocusableOption":"./key-manager/focus-key-manager","FocusKeyManager":"./key-manager/focus-key-manager","ListKeyManagerOption":"./key-manager/list-key-manager","ListKeyManager":"./key-manager/list-key-manager","FocusTrap":"./focus-trap/focus-trap","FocusTrapFactory":"./focus-trap/focus-trap","CdkTrapFocus":"./focus-trap/focus-trap","InteractivityChecker":"./interactivity-checker/interactivity-checker","AriaLivePoliteness":"./live-announcer/live-announcer","LiveAnnouncer":"./live-announcer/live-announcer","CdkAriaLive":"./live-announcer/live-announcer","LIVE_ANNOUNCER_PROVIDER_FACTORY":"./live-announcer/live-announcer","LIVE_ANNOUNCER_PROVIDER":"./live-announcer/live-announcer","LIVE_ANNOUNCER_ELEMENT_TOKEN":"./live-announcer/live-announcer-token","LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY":"./live-announcer/live-announcer-token","TOUCH_BUFFER_MS":"./focus-monitor/focus-monitor","FocusOrigin":"./focus-monitor/focus-monitor","FocusOptions":"./focus-monitor/focus-monitor","FocusMonitor":"./focus-monitor/focus-monitor","CdkMonitorFocus":"./focus-monitor/focus-monitor","FOCUS_MONITOR_PROVIDER_FACTORY":"./focus-monitor/focus-monitor","FOCUS_MONITOR_PROVIDER":"./focus-monitor/focus-monitor","isFakeMousedownFromScreenReader":"./fake-mousedown","A11yModule":"./a11y-module"},"importAs":"@angular/cdk/a11y"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"RegisteredMessage":{"__symbolic":"interface"},"MESSAGES_CONTAINER_ID":"cdk-describedby-message-container","CDK_DESCRIBEDBY_ID_PREFIX":"cdk-describedby-message","CDK_DESCRIBEDBY_HOST_ATTRIBUTE":"cdk-describedby-host","AriaDescriber":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":56,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":60,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":60,"character":22}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"describe":[{"__symbolic":"method"}],"removeDescription":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_createMessageElement":[{"__symbolic":"method"}],"_deleteMessageElement":[{"__symbolic":"method"}],"_createMessagesContainer":[{"__symbolic":"method"}],"_deleteMessagesContainer":[{"__symbolic":"method"}],"_removeCdkDescribedByReferenceIds":[{"__symbolic":"method"}],"_addMessageReference":[{"__symbolic":"method"}],"_removeMessageReference":[{"__symbolic":"method"}],"_isElementDescribedByMessage":[{"__symbolic":"method"}],"_canBeDescribed":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ARIA_DESCRIBER_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","_document"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"AriaDescriber"},"arguments":[{"__symbolic":"reference","name":"_document"}]}}},"ARIA_DESCRIBER_PROVIDER":{"provide":{"__symbolic":"reference","name":"AriaDescriber"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":237,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":237,"character":25}},{"__symbolic":"reference","name":"AriaDescriber"}],{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":238,"character":4}],"useFactory":{"__symbolic":"reference","name":"ARIA_DESCRIBER_PROVIDER_FACTORY"}},"Highlightable":{"__symbolic":"interface"},"ActiveDescendantKeyManager":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ListKeyManager"},"members":{"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]}},"FocusableOption":{"__symbolic":"interface"},"FocusKeyManager":{"__symbolic":"class","arity":1,"extends":{"__symbolic":"reference","name":"ListKeyManager"},"members":{"setFocusOrigin":[{"__symbolic":"method"}],"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}]}},"ListKeyManagerOption":{"__symbolic":"interface"},"ListKeyManager":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"QueryList","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":54,"character":40,"context":{"typeName":"T"},"module":"./key-manager/list-key-manager"}]}]}],"skipPredicate":[{"__symbolic":"method"}],"withWrap":[{"__symbolic":"method"}],"withVerticalOrientation":[{"__symbolic":"method"}],"withHorizontalOrientation":[{"__symbolic":"method"}],"withTypeAhead":[{"__symbolic":"method"}],"setActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"onKeydown":[{"__symbolic":"method"}],"setFirstItemActive":[{"__symbolic":"method"}],"setLastItemActive":[{"__symbolic":"method"}],"setNextItemActive":[{"__symbolic":"method"}],"setPreviousItemActive":[{"__symbolic":"method"}],"updateActiveItem":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"updateActiveItemIndex":[{"__symbolic":"method"}],"_setActiveItemByDelta":[{"__symbolic":"method"}],"_setActiveInWrapMode":[{"__symbolic":"method"}],"_setActiveInDefaultMode":[{"__symbolic":"method"}],"_setActiveItemByIndex":[{"__symbolic":"method"}],"_getItemsArray":[{"__symbolic":"method"}]}},"FocusTrap":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":50,"character":22,"context":{"typeName":"HTMLElement"},"module":"./focus-trap/focus-trap"},{"__symbolic":"reference","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":21},{"__symbolic":"error","message":"Could not resolve type","line":53,"character":23,"context":{"typeName":"Document"},"module":"./focus-trap/focus-trap"},null]}],"destroy":[{"__symbolic":"method"}],"attachAnchors":[{"__symbolic":"method"}],"focusInitialElementWhenReady":[{"__symbolic":"method"}],"focusFirstTabbableElementWhenReady":[{"__symbolic":"method"}],"focusLastTabbableElementWhenReady":[{"__symbolic":"method"}],"_getRegionBoundary":[{"__symbolic":"method"}],"focusInitialElement":[{"__symbolic":"method"}],"focusFirstTabbableElement":[{"__symbolic":"method"}],"focusLastTabbableElement":[{"__symbolic":"method"}],"hasAttached":[{"__symbolic":"method"}],"_getFirstTabbableElement":[{"__symbolic":"method"}],"_getLastTabbableElement":[{"__symbolic":"method"}],"_createAnchor":[{"__symbolic":"method"}],"_toggleAnchorTabIndex":[{"__symbolic":"method"}],"_executeOnStable":[{"__symbolic":"method"}]}},"FocusTrapFactory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":310,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":317,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":317,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"InteractivityChecker"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":52,"character":21},{"__symbolic":"reference","name":"any"}]}],"create":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkTrapFocus":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":336,"character":1},"arguments":[{"selector":"[cdkTrapFocus]","exportAs":"cdkTrapFocus"}]}],"members":{"enabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":350,"character":3},"arguments":["cdkTrapFocus"]}]}],"autoCapture":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":358,"character":3},"arguments":["cdkTrapFocusAutoCapture"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":366,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":366,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":364,"character":38,"context":{"typeName":"HTMLElement"},"module":"./focus-trap/focus-trap"}]},{"__symbolic":"reference","name":"FocusTrapFactory"},{"__symbolic":"reference","name":"any"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngDoCheck":[{"__symbolic":"method"}]}},"InteractivityChecker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":23,"character":33}]}],"isDisabled":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"isTabbable":[{"__symbolic":"method"}],"isFocusable":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"AriaLivePoliteness":{"__symbolic":"interface"},"LiveAnnouncer":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":29,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":35,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":19},"arguments":[{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN"}]}],null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":7},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":37,"character":14}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23},{"__symbolic":"reference","name":"any"}]}],"announce":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_createLiveElement":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkAriaLive":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":107,"character":1},"arguments":[{"selector":"[cdkAriaLive]","exportAs":"cdkAriaLive"}]}],"members":{"politeness":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":113,"character":3},"arguments":["cdkAriaLive"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":138,"character":35},{"__symbolic":"reference","name":"LiveAnnouncer"},{"__symbolic":"reference","module":"@angular/cdk/observers","name":"ContentObserver","line":139,"character":40},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"LIVE_ANNOUNCER_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","liveElement","_document","ngZone"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"LiveAnnouncer"},"arguments":[{"__symbolic":"reference","name":"liveElement"},{"__symbolic":"reference","name":"_document"},{"__symbolic":"reference","name":"ngZone"}]}}},"LIVE_ANNOUNCER_PROVIDER":{"provide":{"__symbolic":"reference","name":"LiveAnnouncer"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":161,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":161,"character":25}},{"__symbolic":"reference","name":"LiveAnnouncer"}],[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":162,"character":9}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":162,"character":25},"arguments":[{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN"}]}],{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":163,"character":4},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":36,"character":23}],"useFactory":{"__symbolic":"reference","name":"LIVE_ANNOUNCER_PROVIDER_FACTORY"}},"LIVE_ANNOUNCER_ELEMENT_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":8},"arguments":["liveAnnouncerElement",{"providedIn":"root","factory":{"__symbolic":"reference","name":"LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY"}}]},"LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY":{"__symbolic":"function","parameters":[],"value":null},"TOUCH_BUFFER_MS":650,"FocusOrigin":{"__symbolic":"interface"},"FocusOptions":{"__symbolic":"interface"},"FocusMonitor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":49,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":81,"character":31},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":81,"character":58}]}],"monitor":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"stopMonitoring":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"focusVia":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_registerGlobalListeners":[{"__symbolic":"method"}],"_toggleClass":[{"__symbolic":"method"}],"_setClasses":[{"__symbolic":"method"}],"_setOriginForCurrentEventQueue":[{"__symbolic":"method"}],"_wasCausedByTouch":[{"__symbolic":"method"}],"_onFocus":[{"__symbolic":"method"}],"_onBlur":[{"__symbolic":"method"}],"_emitOrigin":[{"__symbolic":"method"}],"_incrementMonitoredElementCount":[{"__symbolic":"method"}],"_decrementMonitoredElementCount":[{"__symbolic":"method"}],"_getNativeElement":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CdkMonitorFocus":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":436,"character":1},"arguments":[{"selector":"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],"members":{"cdkFocusChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":441,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":443,"character":46,"context":{"typeName":"HTMLElement"},"module":"./focus-monitor/focus-monitor"}]},{"__symbolic":"reference","name":"FocusMonitor"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"FOCUS_MONITOR_PROVIDER_FACTORY":{"__symbolic":"function","parameters":["parentDispatcher","ngZone","platform"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"parentDispatcher"},"right":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"FocusMonitor"},"arguments":[{"__symbolic":"reference","name":"ngZone"},{"__symbolic":"reference","name":"platform"}]}}},"FOCUS_MONITOR_PROVIDER":{"provide":{"__symbolic":"reference","name":"FocusMonitor"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":466,"character":14}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":466,"character":30}},{"__symbolic":"reference","name":"FocusMonitor"}],{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":81,"character":31},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"Platform","line":81,"character":58}],"useFactory":{"__symbolic":"reference","name":"FOCUS_MONITOR_PROVIDER_FACTORY"}},"isFakeMousedownFromScreenReader":{"__symbolic":"function","parameters":["event"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"event"},"member":"buttons"},"right":0}},"A11yModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":12},{"__symbolic":"reference","module":"@angular/cdk/platform","name":"PlatformModule","line":17,"character":26},{"__symbolic":"reference","module":"@angular/cdk/observers","name":"ObserversModule","line":17,"character":42}],"declarations":[{"__symbolic":"reference","name":"CdkAriaLive"},{"__symbolic":"reference","name":"CdkTrapFocus"},{"__symbolic":"reference","name":"CdkMonitorFocus"}],"exports":[{"__symbolic":"reference","name":"CdkAriaLive"},{"__symbolic":"reference","name":"CdkTrapFocus"},{"__symbolic":"reference","name":"CdkMonitorFocus"}]}]}],"members":{}}},"origins":{"RegisteredMessage":"./aria-describer/aria-describer","MESSAGES_CONTAINER_ID":"./aria-describer/aria-describer","CDK_DESCRIBEDBY_ID_PREFIX":"./aria-describer/aria-describer","CDK_DESCRIBEDBY_HOST_ATTRIBUTE":"./aria-describer/aria-describer","AriaDescriber":"./aria-describer/aria-describer","ARIA_DESCRIBER_PROVIDER_FACTORY":"./aria-describer/aria-describer","ARIA_DESCRIBER_PROVIDER":"./aria-describer/aria-describer","Highlightable":"./key-manager/activedescendant-key-manager","ActiveDescendantKeyManager":"./key-manager/activedescendant-key-manager","FocusableOption":"./key-manager/focus-key-manager","FocusKeyManager":"./key-manager/focus-key-manager","ListKeyManagerOption":"./key-manager/list-key-manager","ListKeyManager":"./key-manager/list-key-manager","FocusTrap":"./focus-trap/focus-trap","FocusTrapFactory":"./focus-trap/focus-trap","CdkTrapFocus":"./focus-trap/focus-trap","InteractivityChecker":"./interactivity-checker/interactivity-checker","AriaLivePoliteness":"./live-announcer/live-announcer","LiveAnnouncer":"./live-announcer/live-announcer","CdkAriaLive":"./live-announcer/live-announcer","LIVE_ANNOUNCER_PROVIDER_FACTORY":"./live-announcer/live-announcer","LIVE_ANNOUNCER_PROVIDER":"./live-announcer/live-announcer","LIVE_ANNOUNCER_ELEMENT_TOKEN":"./live-announcer/live-announcer-token","LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY":"./live-announcer/live-announcer-token","TOUCH_BUFFER_MS":"./focus-monitor/focus-monitor","FocusOrigin":"./focus-monitor/focus-monitor","FocusOptions":"./focus-monitor/focus-monitor","FocusMonitor":"./focus-monitor/focus-monitor","CdkMonitorFocus":"./focus-monitor/focus-monitor","FOCUS_MONITOR_PROVIDER_FACTORY":"./focus-monitor/focus-monitor","FOCUS_MONITOR_PROVIDER":"./focus-monitor/focus-monitor","isFakeMousedownFromScreenReader":"./fake-mousedown","A11yModule":"./a11y-module"},"importAs":"@angular/cdk/a11y"}
|
|
@@ -110,7 +110,7 @@ export declare class ListKeyManager<T extends ListKeyManagerOption> {
|
|
|
110
110
|
* Allows setting of the activeItemIndex without any other effects.
|
|
111
111
|
* @param index The new activeItemIndex.
|
|
112
112
|
* @deprecated Use `updateActiveItem` instead.
|
|
113
|
-
* @breaking-change
|
|
113
|
+
* @breaking-change 8.0.0
|
|
114
114
|
*/
|
|
115
115
|
updateActiveItemIndex(index: number): void;
|
|
116
116
|
/**
|
|
@@ -40,7 +40,7 @@ export declare class CdkAriaLive implements OnDestroy {
|
|
|
40
40
|
constructor(_elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _contentObserver: ContentObserver, _ngZone: NgZone);
|
|
41
41
|
ngOnDestroy(): void;
|
|
42
42
|
}
|
|
43
|
-
/** @docs-private @deprecated @breaking-change
|
|
43
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
44
44
|
export declare function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher: LiveAnnouncer, liveElement: any, _document: any, ngZone: NgZone): LiveAnnouncer;
|
|
45
|
-
/** @docs-private @deprecated @breaking-change
|
|
45
|
+
/** @docs-private @deprecated @breaking-change 8.0.0 */
|
|
46
46
|
export declare const LIVE_ANNOUNCER_PROVIDER: Provider;
|
package/bundles/cdk-a11y.umd.js
CHANGED
|
@@ -402,7 +402,7 @@ var AriaDescriber = /** @class */ (function () {
|
|
|
402
402
|
return AriaDescriber;
|
|
403
403
|
}());
|
|
404
404
|
/**
|
|
405
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
405
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
406
406
|
* @param {?} parentDispatcher
|
|
407
407
|
* @param {?} _document
|
|
408
408
|
* @return {?}
|
|
@@ -411,7 +411,7 @@ function ARIA_DESCRIBER_PROVIDER_FACTORY(parentDispatcher, _document) {
|
|
|
411
411
|
return parentDispatcher || new AriaDescriber(_document);
|
|
412
412
|
}
|
|
413
413
|
/** *
|
|
414
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
414
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
415
415
|
@type {?} */
|
|
416
416
|
var ARIA_DESCRIBER_PROVIDER = {
|
|
417
417
|
// If there is already an AriaDescriber available, use that. Otherwise, provide a new one.
|
|
@@ -793,19 +793,19 @@ ListKeyManager = /** @class */ (function () {
|
|
|
793
793
|
* Allows setting of the activeItemIndex without any other effects.
|
|
794
794
|
* @param index The new activeItemIndex.
|
|
795
795
|
* @deprecated Use `updateActiveItem` instead.
|
|
796
|
-
* @breaking-change
|
|
796
|
+
* @breaking-change 8.0.0
|
|
797
797
|
*/
|
|
798
798
|
/**
|
|
799
799
|
* Allows setting of the activeItemIndex without any other effects.
|
|
800
800
|
* @deprecated Use `updateActiveItem` instead.
|
|
801
|
-
* \@breaking-change
|
|
801
|
+
* \@breaking-change 8.0.0
|
|
802
802
|
* @param {?} index The new activeItemIndex.
|
|
803
803
|
* @return {?}
|
|
804
804
|
*/
|
|
805
805
|
ListKeyManager.prototype.updateActiveItemIndex = /**
|
|
806
806
|
* Allows setting of the activeItemIndex without any other effects.
|
|
807
807
|
* @deprecated Use `updateActiveItem` instead.
|
|
808
|
-
* \@breaking-change
|
|
808
|
+
* \@breaking-change 8.0.0
|
|
809
809
|
* @param {?} index The new activeItemIndex.
|
|
810
810
|
* @return {?}
|
|
811
811
|
*/
|
|
@@ -1199,7 +1199,7 @@ function getFrameElement(window) {
|
|
|
1199
1199
|
try {
|
|
1200
1200
|
return /** @type {?} */ (window.frameElement);
|
|
1201
1201
|
}
|
|
1202
|
-
catch (
|
|
1202
|
+
catch (_a) {
|
|
1203
1203
|
return null;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
@@ -1530,16 +1530,16 @@ FocusTrap = /** @class */ (function () {
|
|
|
1530
1530
|
("[cdkFocusRegion" + bound + "], ") +
|
|
1531
1531
|
("[cdk-focus-" + bound + "]")));
|
|
1532
1532
|
for (var i = 0; i < markers.length; i++) {
|
|
1533
|
-
// @breaking-change
|
|
1533
|
+
// @breaking-change 8.0.0
|
|
1534
1534
|
if (markers[i].hasAttribute("cdk-focus-" + bound)) {
|
|
1535
1535
|
console.warn("Found use of deprecated attribute 'cdk-focus-" + bound + "', " +
|
|
1536
1536
|
("use 'cdkFocusRegion" + bound + "' instead. The deprecated ") +
|
|
1537
|
-
"attribute will be removed in
|
|
1537
|
+
"attribute will be removed in 8.0.0.", markers[i]);
|
|
1538
1538
|
}
|
|
1539
1539
|
else if (markers[i].hasAttribute("cdk-focus-region-" + bound)) {
|
|
1540
1540
|
console.warn("Found use of deprecated attribute 'cdk-focus-region-" + bound + "', " +
|
|
1541
1541
|
("use 'cdkFocusRegion" + bound + "' instead. The deprecated attribute ") +
|
|
1542
|
-
"will be removed in
|
|
1542
|
+
"will be removed in 8.0.0.", markers[i]);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
if (bound == 'start') {
|
|
@@ -1565,11 +1565,11 @@ FocusTrap = /** @class */ (function () {
|
|
|
1565
1565
|
var redirectToElement = /** @type {?} */ (this._element.querySelector("[cdk-focus-initial], " +
|
|
1566
1566
|
"[cdkFocusInitial]"));
|
|
1567
1567
|
if (redirectToElement) {
|
|
1568
|
-
// @breaking-change
|
|
1568
|
+
// @breaking-change 8.0.0
|
|
1569
1569
|
if (redirectToElement.hasAttribute("cdk-focus-initial")) {
|
|
1570
1570
|
console.warn("Found use of deprecated attribute 'cdk-focus-initial', " +
|
|
1571
1571
|
"use 'cdkFocusInitial' instead. The deprecated attribute " +
|
|
1572
|
-
"will be removed in
|
|
1572
|
+
"will be removed in 8.0.0", redirectToElement);
|
|
1573
1573
|
}
|
|
1574
1574
|
redirectToElement.focus();
|
|
1575
1575
|
return true;
|
|
@@ -2081,7 +2081,7 @@ var CdkAriaLive = /** @class */ (function () {
|
|
|
2081
2081
|
return CdkAriaLive;
|
|
2082
2082
|
}());
|
|
2083
2083
|
/**
|
|
2084
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
2084
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
2085
2085
|
* @param {?} parentDispatcher
|
|
2086
2086
|
* @param {?} liveElement
|
|
2087
2087
|
* @param {?} _document
|
|
@@ -2092,7 +2092,7 @@ function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher, liveElement, _documen
|
|
|
2092
2092
|
return parentDispatcher || new LiveAnnouncer(liveElement, _document, ngZone);
|
|
2093
2093
|
}
|
|
2094
2094
|
/** *
|
|
2095
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
2095
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
2096
2096
|
@type {?} */
|
|
2097
2097
|
var LIVE_ANNOUNCER_PROVIDER = {
|
|
2098
2098
|
// If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one.
|
|
@@ -2280,18 +2280,23 @@ var FocusMonitor = /** @class */ (function () {
|
|
|
2280
2280
|
_this._windowFocused = true;
|
|
2281
2281
|
_this._windowFocusTimeoutId = setTimeout(function () { return _this._windowFocused = false; });
|
|
2282
2282
|
};
|
|
2283
|
+
/** @type {?} */
|
|
2284
|
+
var captureEventListenerOptions = platform.normalizePassiveListenerOptions({
|
|
2285
|
+
passive: true,
|
|
2286
|
+
capture: true
|
|
2287
|
+
});
|
|
2283
2288
|
// Note: we listen to events in the capture phase so we can detect them even if the user stops
|
|
2284
2289
|
// propagation.
|
|
2285
2290
|
this._ngZone.runOutsideAngular(function () {
|
|
2286
|
-
document.addEventListener('keydown', documentKeydownListener,
|
|
2287
|
-
document.addEventListener('mousedown', documentMousedownListener,
|
|
2288
|
-
document.addEventListener('touchstart', documentTouchstartListener,
|
|
2291
|
+
document.addEventListener('keydown', documentKeydownListener, captureEventListenerOptions);
|
|
2292
|
+
document.addEventListener('mousedown', documentMousedownListener, captureEventListenerOptions);
|
|
2293
|
+
document.addEventListener('touchstart', documentTouchstartListener, captureEventListenerOptions);
|
|
2289
2294
|
window.addEventListener('focus', windowFocusListener);
|
|
2290
2295
|
});
|
|
2291
2296
|
this._unregisterGlobalListeners = function () {
|
|
2292
|
-
document.removeEventListener('keydown', documentKeydownListener,
|
|
2293
|
-
document.removeEventListener('mousedown', documentMousedownListener,
|
|
2294
|
-
document.removeEventListener('touchstart', documentTouchstartListener,
|
|
2297
|
+
document.removeEventListener('keydown', documentKeydownListener, captureEventListenerOptions);
|
|
2298
|
+
document.removeEventListener('mousedown', documentMousedownListener, captureEventListenerOptions);
|
|
2299
|
+
document.removeEventListener('touchstart', documentTouchstartListener, captureEventListenerOptions);
|
|
2295
2300
|
window.removeEventListener('focus', windowFocusListener);
|
|
2296
2301
|
// Clear timeouts for all potentially pending timeouts to prevent the leaks.
|
|
2297
2302
|
clearTimeout(_this._windowFocusTimeoutId);
|
|
@@ -2544,7 +2549,7 @@ var CdkMonitorFocus = /** @class */ (function () {
|
|
|
2544
2549
|
return CdkMonitorFocus;
|
|
2545
2550
|
}());
|
|
2546
2551
|
/**
|
|
2547
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
2552
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
2548
2553
|
* @param {?} parentDispatcher
|
|
2549
2554
|
* @param {?} ngZone
|
|
2550
2555
|
* @param {?} platform
|
|
@@ -2554,7 +2559,7 @@ function FOCUS_MONITOR_PROVIDER_FACTORY(parentDispatcher, ngZone, platform$$1) {
|
|
|
2554
2559
|
return parentDispatcher || new FocusMonitor(ngZone, platform$$1);
|
|
2555
2560
|
}
|
|
2556
2561
|
/** *
|
|
2557
|
-
* \@docs-private \@deprecated \@breaking-change
|
|
2562
|
+
* \@docs-private \@deprecated \@breaking-change 8.0.0
|
|
2558
2563
|
@type {?} */
|
|
2559
2564
|
var FOCUS_MONITOR_PROVIDER = {
|
|
2560
2565
|
// If there is already a FocusMonitor available, use that. Otherwise, provide a new one.
|