@angular/cdk 22.2.0 → 22.2.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/fesm2022/_a11y-module-chunk.mjs +22 -22
- 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 +58 -46
- 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 +9 -9
- 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 -33
- 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 +49 -49
- 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 +4 -8
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/portal.mjs +10 -10
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +35 -35
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- 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 +16 -16
- 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/_overlay-module-chunk.d.ts +15 -9
- package/types/dialog.d.ts +3 -7
- package/types/overlay.d.ts +1 -1
|
@@ -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.2.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~22.2.2`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -247,6 +247,16 @@ interface PositionStrategy {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
/**
|
|
251
|
+
* Value that can be used to configure the behavior of `OverlayConfig.disposeOnNavigation`.
|
|
252
|
+
* The value correspond to the following:
|
|
253
|
+
* - `true` or `pop-state` - Overlay is only disposed when the back/forward browser buttons are
|
|
254
|
+
* pressed.
|
|
255
|
+
* - `false` - Overlay does nothing on navigations.
|
|
256
|
+
* - `url-change` - Overlay closes on any URL change. Note that this may close overlays opened
|
|
257
|
+
* from route resolvers immediately.
|
|
258
|
+
*/
|
|
259
|
+
type OverlayDisposeOnNavigation = boolean | 'url-change' | 'pop-state';
|
|
250
260
|
/** Initial configuration used when creating an overlay. */
|
|
251
261
|
declare class OverlayConfig {
|
|
252
262
|
/** Strategy with which to position the overlay. */
|
|
@@ -278,12 +288,8 @@ declare class OverlayConfig {
|
|
|
278
288
|
* is passed in, the overlay will handle changes to its value automatically.
|
|
279
289
|
*/
|
|
280
290
|
direction?: Direction | Directionality;
|
|
281
|
-
/**
|
|
282
|
-
|
|
283
|
-
* Note that this usually doesn't include clicking on links (unless the user is using
|
|
284
|
-
* the `HashLocationStrategy`).
|
|
285
|
-
*/
|
|
286
|
-
disposeOnNavigation?: boolean;
|
|
291
|
+
/** Whether the overlay should be disposed of when the user navigates. */
|
|
292
|
+
disposeOnNavigation?: OverlayDisposeOnNavigation;
|
|
287
293
|
/**
|
|
288
294
|
* Whether the overlay should be rendered as a native popover element,
|
|
289
295
|
* rather than placing it inside of the overlay container.
|
|
@@ -780,7 +786,7 @@ interface CdkConnectedOverlayConfig {
|
|
|
780
786
|
flexibleDimensions?: boolean;
|
|
781
787
|
growAfterOpen?: boolean;
|
|
782
788
|
push?: boolean;
|
|
783
|
-
disposeOnNavigation?:
|
|
789
|
+
disposeOnNavigation?: OverlayDisposeOnNavigation;
|
|
784
790
|
usePopover?: FlexibleOverlayPopoverLocation | null;
|
|
785
791
|
matchWidth?: boolean;
|
|
786
792
|
}
|
|
@@ -850,7 +856,7 @@ declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
|
|
|
850
856
|
/** Whether the overlay can be pushed on-screen if none of the provided positions fit. */
|
|
851
857
|
push: boolean;
|
|
852
858
|
/** Whether the overlay should be disposed of when the user goes backwards/forwards in history. */
|
|
853
|
-
disposeOnNavigation:
|
|
859
|
+
disposeOnNavigation: OverlayDisposeOnNavigation;
|
|
854
860
|
/** Whether the connected overlay should be rendered inside a popover element or the overlay container. */
|
|
855
861
|
usePopover: FlexibleOverlayPopoverLocation | null;
|
|
856
862
|
/** Whether the overlay should match the trigger's width. */
|
|
@@ -910,4 +916,4 @@ declare class OverlayModule {
|
|
|
910
916
|
}
|
|
911
917
|
|
|
912
918
|
export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayRef, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition };
|
|
913
|
-
export type { CdkConnectedOverlayConfig, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
|
|
919
|
+
export type { CdkConnectedOverlayConfig, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayDisposeOnNavigation, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
|
package/types/dialog.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ComponentType } from './overlay.js';
|
|
|
8
8
|
import { BasePortalOutlet, ComponentPortal, TemplatePortal, DomPortal, PortalModule } from './portal.js';
|
|
9
9
|
export { CdkPortal as ɵɵCdkPortal } from './_portal-directives-chunk.js';
|
|
10
10
|
import { Direction } from './bidi.js';
|
|
11
|
-
import { PositionStrategy, ScrollStrategy, OverlayRef, OverlayModule } from './overlay.js';
|
|
11
|
+
import { PositionStrategy, ScrollStrategy, OverlayDisposeOnNavigation, OverlayRef, OverlayModule } from './overlay.js';
|
|
12
12
|
import * as _angular_cdk_portal from '@angular/cdk/portal';
|
|
13
13
|
import './observers.js';
|
|
14
14
|
import './_number-property-chunk.js';
|
|
@@ -110,12 +110,8 @@ declare class DialogConfig<D = unknown, R = unknown, C extends DialogContainer =
|
|
|
110
110
|
* the dialog responds to scrolling underneath the panel element.
|
|
111
111
|
*/
|
|
112
112
|
scrollStrategy?: ScrollStrategy;
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
* history. This does not apply to navigation via anchor element unless using URL-hash based
|
|
116
|
-
* routing (`HashLocationStrategy` in the Angular router).
|
|
117
|
-
*/
|
|
118
|
-
closeOnNavigation?: boolean;
|
|
113
|
+
/** Whether the dialog should be disposed of when the user navigates. */
|
|
114
|
+
closeOnNavigation?: OverlayDisposeOnNavigation;
|
|
119
115
|
/**
|
|
120
116
|
* Whether the dialog should close when the dialog service is destroyed. This is useful if
|
|
121
117
|
* another service is wrapping the dialog and is managing the destruction instead.
|
package/types/overlay.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollStrategy, OverlayRef, PositionStrategy, FlexibleConnectedPositionStrategyOrigin, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer } from './_overlay-module-chunk.js';
|
|
2
|
-
export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkConnectedOverlayConfig, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlaySizeConfig, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, VerticalConnectionPos, ViewportMargin, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.js';
|
|
2
|
+
export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkConnectedOverlayConfig, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayDisposeOnNavigation, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlaySizeConfig, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, VerticalConnectionPos, ViewportMargin, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.js';
|
|
3
3
|
import { ScrollDispatcher } from './_scrolling-module-chunk.js';
|
|
4
4
|
export { CdkScrollable, CdkFixedSizeVirtualScroll as ɵɵCdkFixedSizeVirtualScroll, CdkScrollableModule as ɵɵCdkScrollableModule, CdkVirtualForOf as ɵɵCdkVirtualForOf, CdkVirtualScrollViewport as ɵɵCdkVirtualScrollViewport, CdkVirtualScrollableElement as ɵɵCdkVirtualScrollableElement, CdkVirtualScrollableWindow as ɵɵCdkVirtualScrollableWindow } from './_scrolling-module-chunk.js';
|
|
5
5
|
import { ViewportRuler } from './scrolling.js';
|