@angular/cdk 21.0.0-rc.2 → 21.0.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/_adev_assets/cdk_drag_drop.json +5 -0
- package/_adev_assets/cdk_testing.json +6 -0
- package/fesm2022/_overlay-module-chunk.mjs +35 -11
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +14 -3
package/fesm2022/cdk.mjs
CHANGED
package/fesm2022/cdk.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0
|
|
1
|
+
{"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.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 {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0');\n"],"names":["VERSION","Version"],"mappings":";;MAWaA,OAAO,GAAG,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk",
|
|
3
|
-
"version": "21.0.0
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"description": "Angular Material Component Development Kit",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
161
|
-
"@angular/core": "^21.0.0
|
|
162
|
-
"@angular/common": "^21.0.0
|
|
161
|
+
"@angular/core": "^21.0.0 || ^22.0.0",
|
|
162
|
+
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
163
163
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
164
164
|
},
|
|
165
165
|
"dependencies": {
|
|
@@ -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.0.0
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~21.0.0`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -235,7 +235,10 @@ interface PositionStrategy {
|
|
|
235
235
|
* Gets the element in the DOM after which to insert
|
|
236
236
|
* the overlay when it is rendered out as a popover.
|
|
237
237
|
*/
|
|
238
|
-
getPopoverInsertionPoint?(): Element | null
|
|
238
|
+
getPopoverInsertionPoint?(): Element | null | {
|
|
239
|
+
type: 'parent';
|
|
240
|
+
element: Element;
|
|
241
|
+
};
|
|
239
242
|
}
|
|
240
243
|
|
|
241
244
|
/** Initial configuration used when creating an overlay. */
|
|
@@ -424,7 +427,10 @@ type FlexibleConnectedPositionStrategyOrigin = ElementRef | Element | (Point & {
|
|
|
424
427
|
*/
|
|
425
428
|
declare function createFlexibleConnectedPositionStrategy(injector: Injector, origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
|
|
426
429
|
/** Supported locations in the DOM for connected overlays. */
|
|
427
|
-
type FlexibleOverlayPopoverLocation = 'global' | 'inline'
|
|
430
|
+
type FlexibleOverlayPopoverLocation = 'global' | 'inline' | {
|
|
431
|
+
type: 'parent';
|
|
432
|
+
element: Element;
|
|
433
|
+
};
|
|
428
434
|
/**
|
|
429
435
|
* A strategy for positioning overlays. Using this strategy, an overlay is given an
|
|
430
436
|
* implicit position relative some origin element. The relative position is defined in terms of
|
|
@@ -591,10 +597,15 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
|
|
|
591
597
|
* @param location Configures the location in the DOM. Supports the following values:
|
|
592
598
|
* - `global` - The default which inserts the overlay inside the overlay container.
|
|
593
599
|
* - `inline` - Inserts the overlay next to the trigger.
|
|
600
|
+
* - {type: 'parent', element: element} - Inserts the overlay to a child of a custom parent
|
|
601
|
+
* element.
|
|
594
602
|
*/
|
|
595
603
|
withPopoverLocation(location: FlexibleOverlayPopoverLocation): this;
|
|
596
604
|
/** @docs-private */
|
|
597
|
-
getPopoverInsertionPoint(): Element | null
|
|
605
|
+
getPopoverInsertionPoint(): Element | null | {
|
|
606
|
+
type: 'parent';
|
|
607
|
+
element: Element;
|
|
608
|
+
};
|
|
598
609
|
/**
|
|
599
610
|
* Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
|
|
600
611
|
*/
|