@angular/cdk 20.0.2 → 20.1.0-next.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 +100 -8
- package/_adev_assets/cdk_testing.json +634 -61
- package/dialog/index.d.ts +16 -12
- package/drag-drop/index.d.ts +30 -2
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/dialog.mjs +21 -9
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +98 -24
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/testing.mjs +50 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/{harness-environment.d-BbFzIFDE.d.ts → harness-environment.d-C-TBj7IN.d.ts} +52 -1
- package/package.json +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
|
@@ -242,6 +242,16 @@ interface HarnessLoader {
|
|
|
242
242
|
* @return An instance of the given harness type (or null if not found).
|
|
243
243
|
*/
|
|
244
244
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
245
|
+
/**
|
|
246
|
+
* Searches for an instance of the component corresponding to the given harness type under the
|
|
247
|
+
* `HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page
|
|
248
|
+
* at the given index. If no matching component exists at that index, an error is thrown.
|
|
249
|
+
* @param query A query for a harness to create
|
|
250
|
+
* @param index The zero-indexed offset of the matching component instance to return
|
|
251
|
+
* @return An instance of the given harness type.
|
|
252
|
+
* @throws If a matching component instance can't be found at the given index.
|
|
253
|
+
*/
|
|
254
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, index: number): Promise<T>;
|
|
245
255
|
/**
|
|
246
256
|
* Searches for all instances of the component corresponding to the given harness type under the
|
|
247
257
|
* `HarnessLoader`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
@@ -249,6 +259,13 @@ interface HarnessLoader {
|
|
|
249
259
|
* @return A list instances of the given harness type.
|
|
250
260
|
*/
|
|
251
261
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
262
|
+
/**
|
|
263
|
+
* Searches for all instances of the component corresponding to the given harness type under the
|
|
264
|
+
* `HarnessLoader`'s root element, and returns the total count of all matching components.
|
|
265
|
+
* @param query A query for a harness to create
|
|
266
|
+
* @return An integer indicating the number of instances that were found.
|
|
267
|
+
*/
|
|
268
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
252
269
|
/**
|
|
253
270
|
* Searches for an instance of the component corresponding to the given harness type under the
|
|
254
271
|
* `HarnessLoader`'s root element, and returns a boolean indicating if any were found.
|
|
@@ -562,18 +579,34 @@ declare abstract class ContentContainerComponentHarness<S extends string = strin
|
|
|
562
579
|
* @returns The first harness matching the given query, or null if none is found.
|
|
563
580
|
*/
|
|
564
581
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
582
|
+
/**
|
|
583
|
+
* Gets a matching harness for the given query and index within the current harness's content.
|
|
584
|
+
* @param query The harness query to search for.
|
|
585
|
+
* @param index The zero-indexed offset of the component to find.
|
|
586
|
+
* @returns The first harness matching the given query.
|
|
587
|
+
* @throws If no matching harness is found.
|
|
588
|
+
*/
|
|
589
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, index: number): Promise<T>;
|
|
565
590
|
/**
|
|
566
591
|
* Gets all matching harnesses for the given query within the current harness's content.
|
|
567
592
|
* @param query The harness query to search for.
|
|
568
593
|
* @returns The list of harness matching the given query.
|
|
569
594
|
*/
|
|
570
595
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
596
|
+
/**
|
|
597
|
+
* Returns the number of matching harnesses for the given query within the current harness's
|
|
598
|
+
* content.
|
|
599
|
+
*
|
|
600
|
+
* @param query The harness query to search for.
|
|
601
|
+
* @returns The number of matching harnesses for the given query.
|
|
602
|
+
*/
|
|
603
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
571
604
|
/**
|
|
572
605
|
* Checks whether there is a matching harnesses for the given query within the current harness's
|
|
573
606
|
* content.
|
|
574
607
|
*
|
|
575
608
|
* @param query The harness query to search for.
|
|
576
|
-
* @returns
|
|
609
|
+
* @returns Whether there is matching harnesses for the given query.
|
|
577
610
|
*/
|
|
578
611
|
hasHarness<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<boolean>;
|
|
579
612
|
/**
|
|
@@ -819,6 +852,17 @@ declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFa
|
|
|
819
852
|
* @return An instance of the given harness type (or null if not found).
|
|
820
853
|
*/
|
|
821
854
|
getHarnessOrNull<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T | null>;
|
|
855
|
+
/**
|
|
856
|
+
* Searches for an instance of the component corresponding to the given harness type and index
|
|
857
|
+
* under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that
|
|
858
|
+
* instance. The index specifies the offset of the component to find. If no matching
|
|
859
|
+
* component is found at that index, an error is thrown.
|
|
860
|
+
* @param query A query for a harness to create
|
|
861
|
+
* @param index The zero-indexed offset of the component to find
|
|
862
|
+
* @return An instance of the given harness type
|
|
863
|
+
* @throws If a matching component instance can't be found.
|
|
864
|
+
*/
|
|
865
|
+
getHarnessAtIndex<T extends ComponentHarness>(query: HarnessQuery<T>, offset: number): Promise<T>;
|
|
822
866
|
/**
|
|
823
867
|
* Searches for all instances of the component corresponding to the given harness type under the
|
|
824
868
|
* `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.
|
|
@@ -826,6 +870,13 @@ declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFa
|
|
|
826
870
|
* @return A list instances of the given harness type.
|
|
827
871
|
*/
|
|
828
872
|
getAllHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<T[]>;
|
|
873
|
+
/**
|
|
874
|
+
* Searches for all instance of the component corresponding to the given harness type under the
|
|
875
|
+
* `HarnessEnvironment`'s root element, and returns the number that were found.
|
|
876
|
+
* @param query A query for a harness to create
|
|
877
|
+
* @return The number of instances that were found.
|
|
878
|
+
*/
|
|
879
|
+
countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number>;
|
|
829
880
|
/**
|
|
830
881
|
* Searches for an instance of the component corresponding to the given harness type under the
|
|
831
882
|
* `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.1.0-next.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": "^20.0.0 || ^21.0.0",
|
|
162
|
-
"@angular/common": "^20.0.0 || ^21.0.0",
|
|
161
|
+
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
|
|
162
|
+
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.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', `~20.0.
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~20.1.0-next.0`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
package/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AsyncFactoryFn, g as AsyncOptionPredicate, f as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, e as ComponentHarnessConstructor, j as ContentContainerComponentHarness, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader, k as HarnessPredicate, h as HarnessQuery, i as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, T as TestElement, a as TestKey, b as TextOptions } from '../harness-environment.d-
|
|
1
|
+
export { A as AsyncFactoryFn, g as AsyncOptionPredicate, f as AsyncPredicate, B as BaseHarnessFilters, C as ComponentHarness, e as ComponentHarnessConstructor, j as ContentContainerComponentHarness, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader, k as HarnessPredicate, h as HarnessQuery, i as LocatorFactory, L as LocatorFnResult, M as ModifierKeys, T as TestElement, a as TestKey, b as TextOptions } from '../harness-environment.d-C-TBj7IN.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns an error which reports that no keys have been specified.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as webdriver from 'selenium-webdriver';
|
|
2
|
-
import { T as TestElement, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader } from '../../harness-environment.d-
|
|
2
|
+
import { T as TestElement, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData, H as HarnessEnvironment, d as HarnessLoader } from '../../harness-environment.d-C-TBj7IN.js';
|
|
3
3
|
|
|
4
4
|
/** A `TestElement` implementation for WebDriver. */
|
|
5
5
|
declare class SeleniumWebDriverElement implements TestElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HarnessEnvironment, d as HarnessLoader, T as TestElement, C as ComponentHarness, e as ComponentHarnessConstructor, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData } from '../../harness-environment.d-
|
|
1
|
+
import { H as HarnessEnvironment, d as HarnessLoader, T as TestElement, C as ComponentHarness, e as ComponentHarnessConstructor, M as ModifierKeys, a as TestKey, b as TextOptions, E as ElementDimensions, c as EventData } from '../../harness-environment.d-C-TBj7IN.js';
|
|
2
2
|
import { ComponentFixture } from '@angular/core/testing';
|
|
3
3
|
|
|
4
4
|
/** Options to configure the environment. */
|