@angular/cdk 22.0.0-next.7 → 22.0.0-rc.0
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 +25 -29
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
- package/fesm2022/_directionality-chunk.mjs +3 -3
- package/fesm2022/_focus-monitor-chunk.mjs +9 -9
- package/fesm2022/_id-generator-chunk.mjs +3 -3
- package/fesm2022/_overlay-module-chunk.mjs +35 -37
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
- package/fesm2022/a11y.mjs +11 -20
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +7 -7
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/dialog.mjs +10 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +33 -35
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +50 -50
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs +3 -3
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +3 -3
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/portal.mjs +19 -14
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +4 -6
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +36 -38
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +24 -26
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +73 -73
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/text-field.mjs +17 -19
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- 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 +2 -5
- package/types/_portal-directives-chunk.d.ts +6 -2
- package/types/a11y.d.ts +2 -25
- package/types/drag-drop.d.ts +1 -3
- package/types/menu.d.ts +1 -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', `~22.0.0-
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~22.0.0-rc.0`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -67,8 +67,7 @@ declare class FocusTrap {
|
|
|
67
67
|
private _checker;
|
|
68
68
|
readonly _ngZone: NgZone;
|
|
69
69
|
readonly _document: Document;
|
|
70
|
-
|
|
71
|
-
readonly _injector?: Injector | undefined;
|
|
70
|
+
readonly _injector: Injector;
|
|
72
71
|
private _startAnchor;
|
|
73
72
|
private _endAnchor;
|
|
74
73
|
private _hasAttached;
|
|
@@ -78,9 +77,7 @@ declare class FocusTrap {
|
|
|
78
77
|
get enabled(): boolean;
|
|
79
78
|
set enabled(value: boolean);
|
|
80
79
|
protected _enabled: boolean;
|
|
81
|
-
constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, deferAnchors
|
|
82
|
-
/** @breaking-change 20.0.0 param to become required */
|
|
83
|
-
_injector?: Injector | undefined);
|
|
80
|
+
constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, deferAnchors: boolean | undefined, _injector: Injector);
|
|
84
81
|
/** Destroys the focus trap by cleaning up the anchors. */
|
|
85
82
|
destroy(): void;
|
|
86
83
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ComponentRef, ViewContainerRef, Injector, Binding, EmbeddedViewRef, TemplateRef, ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ComponentRef, ViewContainerRef, Injector, Binding, Type, DirectiveWithBindings, EmbeddedViewRef, TemplateRef, ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
/** Interface that can be used to generically type a class. */
|
|
5
5
|
interface ComponentType<T> {
|
|
@@ -45,7 +45,11 @@ declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
|
|
|
45
45
|
* Bindings to apply to the created component.
|
|
46
46
|
*/
|
|
47
47
|
readonly bindings: Binding[] | null;
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Directives to apply to the created component.
|
|
50
|
+
*/
|
|
51
|
+
readonly directives: (Type<unknown> | DirectiveWithBindings<unknown>)[] | null;
|
|
52
|
+
constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, projectableNodes?: Node[][] | null, bindings?: Binding[], directives?: (Type<unknown> | DirectiveWithBindings<unknown>)[]);
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
55
|
* A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
|
package/types/a11y.d.ts
CHANGED
|
@@ -22,24 +22,6 @@ interface RegisteredMessage {
|
|
|
22
22
|
/** The number of elements that reference this message element via `aria-describedby`. */
|
|
23
23
|
referenceCount: number;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* ID used for the body container where all messages are appended.
|
|
27
|
-
* @deprecated No longer being used. To be removed.
|
|
28
|
-
* @breaking-change 14.0.0
|
|
29
|
-
*/
|
|
30
|
-
declare const MESSAGES_CONTAINER_ID = "cdk-describedby-message-container";
|
|
31
|
-
/**
|
|
32
|
-
* ID prefix used for each created message element.
|
|
33
|
-
* @deprecated To be turned into a private variable.
|
|
34
|
-
* @breaking-change 14.0.0
|
|
35
|
-
*/
|
|
36
|
-
declare const CDK_DESCRIBEDBY_ID_PREFIX = "cdk-describedby-message";
|
|
37
|
-
/**
|
|
38
|
-
* Attribute given to each host element that is described by a message element.
|
|
39
|
-
* @deprecated To be turned into a private variable.
|
|
40
|
-
* @breaking-change 14.0.0
|
|
41
|
-
*/
|
|
42
|
-
declare const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = "cdk-describedby-host";
|
|
43
25
|
/**
|
|
44
26
|
* Utility that creates visually hidden elements with a message content. Useful for elements that
|
|
45
27
|
* want to use aria-describedby to further describe themselves without adding additional visual
|
|
@@ -321,7 +303,7 @@ declare class ConfigurableFocusTrap extends FocusTrap implements ManagedFocusTra
|
|
|
321
303
|
/** Whether the FocusTrap is enabled. */
|
|
322
304
|
get enabled(): boolean;
|
|
323
305
|
set enabled(value: boolean);
|
|
324
|
-
constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, _focusTrapManager: FocusTrapManager, _inertStrategy: FocusTrapInertStrategy, config: ConfigurableFocusTrapConfig, injector
|
|
306
|
+
constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, _focusTrapManager: FocusTrapManager, _inertStrategy: FocusTrapInertStrategy, config: ConfigurableFocusTrapConfig, injector: Injector);
|
|
325
307
|
/** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
|
|
326
308
|
destroy(): void;
|
|
327
309
|
/** @docs-private Implemented as part of ManagedFocusTrap. */
|
|
@@ -346,11 +328,6 @@ declare class ConfigurableFocusTrapFactory {
|
|
|
346
328
|
* @returns The created focus trap instance.
|
|
347
329
|
*/
|
|
348
330
|
create(element: HTMLElement, config?: ConfigurableFocusTrapConfig): ConfigurableFocusTrap;
|
|
349
|
-
/**
|
|
350
|
-
* @deprecated Pass a config object instead of the `deferCaptureElements` flag.
|
|
351
|
-
* @breaking-change 11.0.0
|
|
352
|
-
*/
|
|
353
|
-
create(element: HTMLElement, deferCaptureElements: boolean): ConfigurableFocusTrap;
|
|
354
331
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableFocusTrapFactory, never>;
|
|
355
332
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurableFocusTrapFactory>;
|
|
356
333
|
}
|
|
@@ -520,5 +497,5 @@ declare class _IdGenerator {
|
|
|
520
497
|
static ɵprov: i0.ɵɵInjectableDeclaration<_IdGenerator>;
|
|
521
498
|
}
|
|
522
499
|
|
|
523
|
-
export { AriaDescriber,
|
|
500
|
+
export { AriaDescriber, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_TRAP_INERT_STRATEGY, FocusTrap, HighContrastMode, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER, NoopTreeKeyManager, TREE_KEY_MANAGER, TreeKeyManager, TreeKeyManagerFactory, TreeKeyManagerItem, TreeKeyManagerOptions, TreeKeyManagerStrategy, _IdGenerator, addAriaReferencedId, getAriaReferenceIds, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader, removeAriaReferencedId };
|
|
524
501
|
export type { ConfigurableFocusTrapConfig, FocusTrapInertStrategy, InputModality, InputModalityDetectorOptions, RegisteredMessage };
|
package/types/drag-drop.d.ts
CHANGED
|
@@ -197,10 +197,8 @@ declare class DropListRef<T = any> {
|
|
|
197
197
|
* container when the item was dropped.
|
|
198
198
|
* @param distance Distance the user has dragged since the start of the dragging sequence.
|
|
199
199
|
* @param event Event that triggered the dropping sequence.
|
|
200
|
-
*
|
|
201
|
-
* @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
|
|
202
200
|
*/
|
|
203
|
-
drop(item: DragRef, currentIndex: number, previousIndex: number, previousContainer: DropListRef, isPointerOverContainer: boolean, distance: Point, dropPoint: Point, event
|
|
201
|
+
drop(item: DragRef, currentIndex: number, previousIndex: number, previousContainer: DropListRef, isPointerOverContainer: boolean, distance: Point, dropPoint: Point, event: MouseEvent | TouchEvent): void;
|
|
204
202
|
/**
|
|
205
203
|
* Sets the draggable items that are a part of this list.
|
|
206
204
|
* @param items Items that are a part of this list.
|
package/types/menu.d.ts
CHANGED
|
@@ -831,5 +831,5 @@ declare class CdkMenuModule {
|
|
|
831
831
|
static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
export { CDK_MENU, CdkContextMenuTrigger, CdkMenu, CdkMenuBar, CdkMenuBase, CdkMenuGroup, CdkMenuItem, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuItemSelectable, CdkMenuModule, CdkMenuTrigger, CdkMenuTriggerBase, CdkTargetMenuAim,
|
|
834
|
+
export { CDK_MENU, CdkContextMenuTrigger, CdkMenu, CdkMenuBar, CdkMenuBase, CdkMenuGroup, CdkMenuItem, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuItemSelectable, CdkMenuModule, CdkMenuTrigger, CdkMenuTriggerBase, CdkTargetMenuAim, FocusNext, MENU_AIM, MENU_SCROLL_STRATEGY, MENU_STACK, MENU_TRIGGER, MenuStack, MenuTracker, PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER, PARENT_OR_NEW_MENU_STACK_PROVIDER, PointerFocusTracker, TargetMenuAim };
|
|
835
835
|
export type { CloseOptions, ContextMenuCoordinates, FocusableElement, Menu, MenuAim, MenuStackCloseEvent, MenuStackItem, Toggler };
|