@angular/cdk 21.1.0-next.0 → 21.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_a11y-module-chunk.mjs +8 -2
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_array-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
- package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
- package/fesm2022/_data-source-chunk.mjs.map +1 -1
- package/fesm2022/_directionality-chunk.mjs.map +1 -1
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_element-chunk.mjs.map +1 -1
- package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
- package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
- package/fesm2022/_id-generator-chunk.mjs.map +1 -1
- package/fesm2022/_keycodes-chunk.mjs.map +1 -1
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs.map +1 -1
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
- package/fesm2022/_scrolling-chunk.mjs.map +1 -1
- package/fesm2022/_selection-model-chunk.mjs.map +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
- package/fesm2022/_style-loader-chunk.mjs.map +1 -1
- package/fesm2022/_test-environment-chunk.mjs.map +1 -1
- package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
- package/fesm2022/_typeahead-chunk.mjs.map +1 -1
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
- package/fesm2022/a11y.mjs +2 -1
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion-private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/dialog.mjs +2 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs.map +1 -1
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +52 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing-testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_a11y-module-chunk.d.ts +9 -5
- package/types/a11y.d.ts +2 -1
- package/types/dialog.d.ts +1 -0
- package/types/private.d.ts +5 -1
- package/fesm2022/_visually-hidden-chunk.mjs +0 -46
- package/fesm2022/_visually-hidden-chunk.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -26,6 +26,6 @@ function default_1() {
|
|
|
26
26
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
27
27
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
28
28
|
// dependencies in new CLI projects.
|
|
29
|
-
return (0, utility_1.addDependency)('@angular/cdk', `~21.1.0-next.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~21.1.0-next.1`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgZone, Injector, OnDestroy, AfterContentInit, OnChanges, DoCheck, SimpleChanges, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ObserversModule } from './observers.js';
|
|
4
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
5
|
import { CdkMonitorFocus } from './_focus-monitor-chunk.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -216,11 +217,14 @@ interface LiveAnnouncerDefaultOptions {
|
|
|
216
217
|
/** Injection token that can be used to configure the default options for the LiveAnnouncer. */
|
|
217
218
|
declare const LIVE_ANNOUNCER_DEFAULT_OPTIONS: InjectionToken<LiveAnnouncerDefaultOptions>;
|
|
218
219
|
|
|
220
|
+
/** Possible types for a message that can be announced by the `LiveAnnouncer`. */
|
|
221
|
+
type LiveAnnouncerMessage = string | SafeHtml;
|
|
219
222
|
declare class LiveAnnouncer implements OnDestroy {
|
|
220
223
|
private _ngZone;
|
|
221
224
|
private _defaultOptions;
|
|
222
225
|
private _liveElement;
|
|
223
226
|
private _document;
|
|
227
|
+
private _sanitizer;
|
|
224
228
|
private _previousTimeout;
|
|
225
229
|
private _currentPromise;
|
|
226
230
|
private _currentResolve;
|
|
@@ -230,14 +234,14 @@ declare class LiveAnnouncer implements OnDestroy {
|
|
|
230
234
|
* @param message Message to be announced to the screen reader.
|
|
231
235
|
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
232
236
|
*/
|
|
233
|
-
announce(message:
|
|
237
|
+
announce(message: LiveAnnouncerMessage): Promise<void>;
|
|
234
238
|
/**
|
|
235
239
|
* Announces a message to screen readers.
|
|
236
240
|
* @param message Message to be announced to the screen reader.
|
|
237
241
|
* @param politeness The politeness of the announcer element.
|
|
238
242
|
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
239
243
|
*/
|
|
240
|
-
announce(message:
|
|
244
|
+
announce(message: LiveAnnouncerMessage, politeness?: AriaLivePoliteness): Promise<void>;
|
|
241
245
|
/**
|
|
242
246
|
* Announces a message to screen readers.
|
|
243
247
|
* @param message Message to be announced to the screen reader.
|
|
@@ -246,7 +250,7 @@ declare class LiveAnnouncer implements OnDestroy {
|
|
|
246
250
|
* 100ms after `announce` has been called.
|
|
247
251
|
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
248
252
|
*/
|
|
249
|
-
announce(message:
|
|
253
|
+
announce(message: LiveAnnouncerMessage, duration?: number): Promise<void>;
|
|
250
254
|
/**
|
|
251
255
|
* Announces a message to screen readers.
|
|
252
256
|
* @param message Message to be announced to the screen reader.
|
|
@@ -256,7 +260,7 @@ declare class LiveAnnouncer implements OnDestroy {
|
|
|
256
260
|
* 100ms after `announce` has been called.
|
|
257
261
|
* @returns Promise that will be resolved when the message is added to the DOM.
|
|
258
262
|
*/
|
|
259
|
-
announce(message:
|
|
263
|
+
announce(message: LiveAnnouncerMessage, politeness?: AriaLivePoliteness, duration?: number): Promise<void>;
|
|
260
264
|
/**
|
|
261
265
|
* Clears the current text from the announcer element. Can be used to prevent
|
|
262
266
|
* screen readers from reading the text out again while the user is going
|
|
@@ -305,4 +309,4 @@ declare class A11yModule {
|
|
|
305
309
|
}
|
|
306
310
|
|
|
307
311
|
export { A11yModule, CdkAriaLive, CdkTrapFocus, FocusTrap, FocusTrapFactory, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LiveAnnouncer };
|
|
308
|
-
export type { AriaLivePoliteness, LiveAnnouncerDefaultOptions };
|
|
312
|
+
export type { AriaLivePoliteness, LiveAnnouncerDefaultOptions, LiveAnnouncerMessage };
|
package/types/a11y.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ export { ListKeyManager, ListKeyManagerModifierKey, ListKeyManagerOption } from
|
|
|
6
6
|
import { Subject, Observable } from 'rxjs';
|
|
7
7
|
import { TreeKeyManagerItem, TreeKeyManagerStrategy, TreeKeyManagerOptions, TreeKeyManagerFactory } from './_tree-key-manager-strategy-chunk.js';
|
|
8
8
|
import { FocusTrap, InteractivityChecker } from './_a11y-module-chunk.js';
|
|
9
|
-
export { A11yModule, AriaLivePoliteness, CdkAriaLive, CdkTrapFocus, FocusTrapFactory, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LiveAnnouncer, LiveAnnouncerDefaultOptions } from './_a11y-module-chunk.js';
|
|
9
|
+
export { A11yModule, AriaLivePoliteness, CdkAriaLive, CdkTrapFocus, FocusTrapFactory, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LiveAnnouncer, LiveAnnouncerDefaultOptions, LiveAnnouncerMessage } from './_a11y-module-chunk.js';
|
|
10
10
|
export { CdkMonitorFocus, FOCUS_MONITOR_DEFAULT_OPTIONS, FocusMonitor, FocusMonitorDetectionMode, FocusMonitorOptions, FocusOptions, FocusOrigin } from './_focus-monitor-chunk.js';
|
|
11
11
|
import './observers.js';
|
|
12
12
|
import './_number-property-chunk.js';
|
|
13
|
+
import '@angular/platform-browser';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Interface used to register message elements and keep a count of how many registrations have
|
package/types/dialog.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { PositionStrategy, ScrollStrategy, OverlayRef, OverlayModule } from './_
|
|
|
10
10
|
import * as _angular_cdk_portal from '@angular/cdk/portal';
|
|
11
11
|
import './observers.js';
|
|
12
12
|
import './_number-property-chunk.js';
|
|
13
|
+
import '@angular/platform-browser';
|
|
13
14
|
import './_scrolling-module-chunk.js';
|
|
14
15
|
import './_data-source-chunk.js';
|
|
15
16
|
import '@angular/common';
|
package/types/private.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { _CdkPrivateStyleLoader } from './_style-loader-chunk.js';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
+
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Component used to load the .cdk-visually-hidden styles.
|
|
@@ -25,5 +26,8 @@ interface TrustedHTML {
|
|
|
25
26
|
*/
|
|
26
27
|
declare function trustedHTMLFromString(html: string): TrustedHTML;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
/** Sanitizes and sets the `innerHTML` of an element. */
|
|
30
|
+
declare function _setInnerHtml(element: HTMLElement, html: SafeHtml, sanitizer: DomSanitizer): void;
|
|
31
|
+
|
|
32
|
+
export { _VisuallyHiddenLoader, _setInnerHtml, trustedHTMLFromString };
|
|
29
33
|
export type { TrustedHTML };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class _VisuallyHiddenLoader {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
6
|
-
minVersion: "12.0.0",
|
|
7
|
-
version: "21.0.0",
|
|
8
|
-
ngImport: i0,
|
|
9
|
-
type: _VisuallyHiddenLoader,
|
|
10
|
-
deps: [],
|
|
11
|
-
target: i0.ɵɵFactoryTarget.Component
|
|
12
|
-
});
|
|
13
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
14
|
-
minVersion: "14.0.0",
|
|
15
|
-
version: "21.0.0",
|
|
16
|
-
type: _VisuallyHiddenLoader,
|
|
17
|
-
isStandalone: true,
|
|
18
|
-
selector: "ng-component",
|
|
19
|
-
exportAs: ["cdkVisuallyHidden"],
|
|
20
|
-
ngImport: i0,
|
|
21
|
-
template: '',
|
|
22
|
-
isInline: true,
|
|
23
|
-
styles: [".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],
|
|
24
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
25
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
-
minVersion: "12.0.0",
|
|
30
|
-
version: "21.0.0",
|
|
31
|
-
ngImport: i0,
|
|
32
|
-
type: _VisuallyHiddenLoader,
|
|
33
|
-
decorators: [{
|
|
34
|
-
type: Component,
|
|
35
|
-
args: [{
|
|
36
|
-
exportAs: 'cdkVisuallyHidden',
|
|
37
|
-
encapsulation: ViewEncapsulation.None,
|
|
38
|
-
template: '',
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
styles: [".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"]
|
|
41
|
-
}]
|
|
42
|
-
}]
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export { _VisuallyHiddenLoader };
|
|
46
|
-
//# sourceMappingURL=_visually-hidden-chunk.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_visually-hidden-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/private/visually-hidden/visually-hidden.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n/**\n * Component used to load the .cdk-visually-hidden styles.\n * @docs-private\n */\n@Component({\n styleUrl: 'visually-hidden.css',\n exportAs: 'cdkVisuallyHidden',\n encapsulation: ViewEncapsulation.None,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class _VisuallyHiddenLoader {}\n"],"names":["_VisuallyHiddenLoader","deps","target","i0","ɵɵFactoryTarget","Component","ɵcmp","ɵɵngDeclareComponent","minVersion","version","type","isInline","styles","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","decorators"],"mappings":";;;MAqBaA,qBAAqB,CAAA;;;;;UAArBA,qBAAqB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAArB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,oBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,QAAA;AAAAC,IAAAA,IAAA,EAAAV,qBAAqB;;;;;cAHtB,EAAE;AAAAW,IAAAA,QAAA,EAAA,IAAA;IAAAC,MAAA,EAAA,CAAA,oQAAA,CAAA;AAAAC,IAAAA,eAAA,EAAAV,EAAA,CAAAW,uBAAA,CAAAC,MAAA;AAAAC,IAAAA,aAAA,EAAAb,EAAA,CAAAc,iBAAA,CAAAC;AAAA,GAAA,CAAA;;;;;;QAGDlB,qBAAqB;AAAAmB,EAAAA,UAAA,EAAA,CAAA;UAPjCd,SAAS;;gBAEE,mBAAmB;MAAAW,aAAA,EACdC,iBAAiB,CAACC,IAAI;gBAC3B,EAAE;MAAAL,eAAA,EACKC,uBAAuB,CAACC,MAAM;MAAAH,MAAA,EAAA,CAAA,oQAAA;KAAA;;;;;;"}
|