@angular/cdk 20.0.3 → 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.
Files changed (41) hide show
  1. package/_adev_assets/cdk_drag_drop.json +100 -8
  2. package/_adev_assets/cdk_testing.json +634 -61
  3. package/collections/index.d.ts +4 -4
  4. package/dialog/index.d.ts +18 -14
  5. package/drag-drop/index.d.ts +32 -4
  6. package/fesm2022/cdk.mjs +1 -1
  7. package/fesm2022/cdk.mjs.map +1 -1
  8. package/fesm2022/collections.mjs +2 -2
  9. package/fesm2022/dialog.mjs +22 -10
  10. package/fesm2022/dialog.mjs.map +1 -1
  11. package/fesm2022/{dispose-view-repeater-strategy-Cvpav0PR.mjs → dispose-view-repeater-strategy-D_JReLI1.mjs} +3 -3
  12. package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +1 -0
  13. package/fesm2022/drag-drop.mjs +99 -25
  14. package/fesm2022/drag-drop.mjs.map +1 -1
  15. package/fesm2022/menu.mjs +1 -1
  16. package/fesm2022/overlay.mjs +1 -1
  17. package/fesm2022/{recycle-view-repeater-strategy-SfuyU210.mjs → recycle-view-repeater-strategy-DoWdPqVw.mjs} +4 -4
  18. package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +1 -0
  19. package/fesm2022/scrolling.mjs +2 -2
  20. package/fesm2022/scrolling.mjs.map +1 -1
  21. package/fesm2022/table.mjs +3 -3
  22. package/fesm2022/table.mjs.map +1 -1
  23. package/fesm2022/testing.mjs +50 -1
  24. package/fesm2022/testing.mjs.map +1 -1
  25. package/{harness-environment.d-BbFzIFDE.d.ts → harness-environment.d-C-TBj7IN.d.ts} +52 -1
  26. package/menu/index.d.ts +2 -2
  27. package/overlay/index.d.ts +4 -4
  28. package/{overlay-module.d-C2CxnwqT.d.ts → overlay-module.d-CVO-IcaN.d.ts} +1 -1
  29. package/package.json +3 -3
  30. package/schematics/ng-add/index.js +1 -1
  31. package/schematics/utils/build-component.js +1 -2
  32. package/schematics/utils/build-component.js.map +1 -1
  33. package/scrolling/index.d.ts +1 -1
  34. package/{scrolling-module.d-C_w4tIrZ.d.ts → scrolling-module.d-BvCGMKMo.d.ts} +1 -1
  35. package/table/index.d.ts +3 -3
  36. package/testing/index.d.ts +1 -1
  37. package/testing/selenium-webdriver/index.d.ts +1 -1
  38. package/testing/testbed/index.d.ts +1 -1
  39. package/{view-repeater.d-DUdkOYhk.d.ts → view-repeater.d-BKljR8u8.d.ts} +6 -5
  40. package/fesm2022/dispose-view-repeater-strategy-Cvpav0PR.mjs.map +0 -1
  41. package/fesm2022/recycle-view-repeater-strategy-SfuyU210.mjs.map +0 -1
@@ -1431,6 +1431,130 @@
1431
1431
  "memberType": "method",
1432
1432
  "memberTags": []
1433
1433
  },
1434
+ {
1435
+ "name": "getHarnessAtIndex",
1436
+ "signatures": [
1437
+ {
1438
+ "name": "getHarnessAtIndex",
1439
+ "entryType": "function",
1440
+ "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.",
1441
+ "generics": [
1442
+ {
1443
+ "name": "T",
1444
+ "constraint": "ComponentHarness"
1445
+ }
1446
+ ],
1447
+ "isNewType": false,
1448
+ "jsdocTags": [
1449
+ {
1450
+ "name": "param",
1451
+ "comment": "A query for a harness to create"
1452
+ },
1453
+ {
1454
+ "name": "param",
1455
+ "comment": "The zero-indexed offset of the component to find"
1456
+ },
1457
+ {
1458
+ "name": "return",
1459
+ "comment": "An instance of the given harness type"
1460
+ },
1461
+ {
1462
+ "name": "throws",
1463
+ "comment": "If a matching component instance can't be found."
1464
+ }
1465
+ ],
1466
+ "params": [
1467
+ {
1468
+ "name": "query",
1469
+ "description": "A query for a harness to create",
1470
+ "type": "HarnessQuery<T>",
1471
+ "isOptional": false,
1472
+ "isRestParam": false
1473
+ },
1474
+ {
1475
+ "name": "offset",
1476
+ "description": "",
1477
+ "type": "number",
1478
+ "isOptional": false,
1479
+ "isRestParam": false
1480
+ }
1481
+ ],
1482
+ "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */",
1483
+ "returnType": "Promise<T>"
1484
+ }
1485
+ ],
1486
+ "implementation": {
1487
+ "params": [
1488
+ {
1489
+ "name": "query",
1490
+ "description": "A query for a harness to create",
1491
+ "type": "HarnessQuery<T>",
1492
+ "isOptional": false,
1493
+ "isRestParam": false
1494
+ },
1495
+ {
1496
+ "name": "offset",
1497
+ "description": "",
1498
+ "type": "number",
1499
+ "isOptional": false,
1500
+ "isRestParam": false
1501
+ }
1502
+ ],
1503
+ "isNewType": false,
1504
+ "returnType": "Promise<T>",
1505
+ "generics": [
1506
+ {
1507
+ "name": "T",
1508
+ "constraint": "ComponentHarness"
1509
+ }
1510
+ ],
1511
+ "name": "getHarnessAtIndex",
1512
+ "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.",
1513
+ "entryType": "function",
1514
+ "jsdocTags": [
1515
+ {
1516
+ "name": "param",
1517
+ "comment": "A query for a harness to create"
1518
+ },
1519
+ {
1520
+ "name": "param",
1521
+ "comment": "The zero-indexed offset of the component to find"
1522
+ },
1523
+ {
1524
+ "name": "return",
1525
+ "comment": "An instance of the given harness type"
1526
+ },
1527
+ {
1528
+ "name": "throws",
1529
+ "comment": "If a matching component instance can't be found."
1530
+ }
1531
+ ],
1532
+ "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */"
1533
+ },
1534
+ "entryType": "function",
1535
+ "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.",
1536
+ "jsdocTags": [
1537
+ {
1538
+ "name": "param",
1539
+ "comment": "A query for a harness to create"
1540
+ },
1541
+ {
1542
+ "name": "param",
1543
+ "comment": "The zero-indexed offset of the component to find"
1544
+ },
1545
+ {
1546
+ "name": "return",
1547
+ "comment": "An instance of the given harness type"
1548
+ },
1549
+ {
1550
+ "name": "throws",
1551
+ "comment": "If a matching component instance can't be found."
1552
+ }
1553
+ ],
1554
+ "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */",
1555
+ "memberType": "method",
1556
+ "memberTags": []
1557
+ },
1434
1558
  {
1435
1559
  "name": "getAllHarnesses",
1436
1560
  "signatures": [
@@ -1517,6 +1641,92 @@
1517
1641
  "memberType": "method",
1518
1642
  "memberTags": []
1519
1643
  },
1644
+ {
1645
+ "name": "countHarnesses",
1646
+ "signatures": [
1647
+ {
1648
+ "name": "countHarnesses",
1649
+ "entryType": "function",
1650
+ "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.",
1651
+ "generics": [
1652
+ {
1653
+ "name": "T",
1654
+ "constraint": "ComponentHarness"
1655
+ }
1656
+ ],
1657
+ "isNewType": false,
1658
+ "jsdocTags": [
1659
+ {
1660
+ "name": "param",
1661
+ "comment": "A query for a harness to create"
1662
+ },
1663
+ {
1664
+ "name": "return",
1665
+ "comment": "The number of instances that were found."
1666
+ }
1667
+ ],
1668
+ "params": [
1669
+ {
1670
+ "name": "query",
1671
+ "description": "A query for a harness to create",
1672
+ "type": "HarnessQuery<T>",
1673
+ "isOptional": false,
1674
+ "isRestParam": false
1675
+ }
1676
+ ],
1677
+ "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */",
1678
+ "returnType": "Promise<number>"
1679
+ }
1680
+ ],
1681
+ "implementation": {
1682
+ "params": [
1683
+ {
1684
+ "name": "query",
1685
+ "description": "A query for a harness to create",
1686
+ "type": "HarnessQuery<T>",
1687
+ "isOptional": false,
1688
+ "isRestParam": false
1689
+ }
1690
+ ],
1691
+ "isNewType": false,
1692
+ "returnType": "Promise<number>",
1693
+ "generics": [
1694
+ {
1695
+ "name": "T",
1696
+ "constraint": "ComponentHarness"
1697
+ }
1698
+ ],
1699
+ "name": "countHarnesses",
1700
+ "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.",
1701
+ "entryType": "function",
1702
+ "jsdocTags": [
1703
+ {
1704
+ "name": "param",
1705
+ "comment": "A query for a harness to create"
1706
+ },
1707
+ {
1708
+ "name": "return",
1709
+ "comment": "The number of instances that were found."
1710
+ }
1711
+ ],
1712
+ "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */"
1713
+ },
1714
+ "entryType": "function",
1715
+ "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.",
1716
+ "jsdocTags": [
1717
+ {
1718
+ "name": "param",
1719
+ "comment": "A query for a harness to create"
1720
+ },
1721
+ {
1722
+ "name": "return",
1723
+ "comment": "The number of instances that were found."
1724
+ }
1725
+ ],
1726
+ "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */",
1727
+ "memberType": "method",
1728
+ "memberTags": []
1729
+ },
1520
1730
  {
1521
1731
  "name": "hasHarness",
1522
1732
  "signatures": [
@@ -2120,7 +2330,7 @@
2120
2330
  "source": {
2121
2331
  "filePath": "src/cdk/testing/harness-environment.ts",
2122
2332
  "startLine": 45,
2123
- "endLine": 401
2333
+ "endLine": 435
2124
2334
  }
2125
2335
  },
2126
2336
  {
@@ -3239,6 +3449,81 @@
3239
3449
  "memberType": "method",
3240
3450
  "memberTags": []
3241
3451
  },
3452
+ {
3453
+ "name": "getHarnessAtIndex",
3454
+ "signatures": [],
3455
+ "implementation": {
3456
+ "params": [
3457
+ {
3458
+ "name": "query",
3459
+ "description": "A query for a harness to create",
3460
+ "type": "HarnessQuery<T>",
3461
+ "isOptional": false,
3462
+ "isRestParam": false
3463
+ },
3464
+ {
3465
+ "name": "index",
3466
+ "description": "The zero-indexed offset of the matching component instance to return",
3467
+ "type": "number",
3468
+ "isOptional": false,
3469
+ "isRestParam": false
3470
+ }
3471
+ ],
3472
+ "isNewType": false,
3473
+ "returnType": "Promise<T>",
3474
+ "generics": [
3475
+ {
3476
+ "name": "T",
3477
+ "constraint": "ComponentHarness"
3478
+ }
3479
+ ],
3480
+ "name": "getHarnessAtIndex",
3481
+ "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page\nat the given index. If no matching component exists at that index, an error is thrown.",
3482
+ "entryType": "function",
3483
+ "jsdocTags": [
3484
+ {
3485
+ "name": "param",
3486
+ "comment": "A query for a harness to create"
3487
+ },
3488
+ {
3489
+ "name": "param",
3490
+ "comment": "The zero-indexed offset of the matching component instance to return"
3491
+ },
3492
+ {
3493
+ "name": "return",
3494
+ "comment": "An instance of the given harness type."
3495
+ },
3496
+ {
3497
+ "name": "throws",
3498
+ "comment": "If a matching component instance can't be found at the given index."
3499
+ }
3500
+ ],
3501
+ "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page\n * at the given index. If no matching component exists at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the matching component instance to return\n * @return An instance of the given harness type.\n * @throws If a matching component instance can't be found at the given index.\n */"
3502
+ },
3503
+ "entryType": "function",
3504
+ "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page\nat the given index. If no matching component exists at that index, an error is thrown.",
3505
+ "jsdocTags": [
3506
+ {
3507
+ "name": "param",
3508
+ "comment": "A query for a harness to create"
3509
+ },
3510
+ {
3511
+ "name": "param",
3512
+ "comment": "The zero-indexed offset of the matching component instance to return"
3513
+ },
3514
+ {
3515
+ "name": "return",
3516
+ "comment": "An instance of the given harness type."
3517
+ },
3518
+ {
3519
+ "name": "throws",
3520
+ "comment": "If a matching component instance can't be found at the given index."
3521
+ }
3522
+ ],
3523
+ "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns a `ComponentHarness` for the instance on the page\n * at the given index. If no matching component exists at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the matching component instance to return\n * @return An instance of the given harness type.\n * @throws If a matching component instance can't be found at the given index.\n */",
3524
+ "memberType": "method",
3525
+ "memberTags": []
3526
+ },
3242
3527
  {
3243
3528
  "name": "getAllHarnesses",
3244
3529
  "signatures": [],
@@ -3291,6 +3576,58 @@
3291
3576
  "memberType": "method",
3292
3577
  "memberTags": []
3293
3578
  },
3579
+ {
3580
+ "name": "countHarnesses",
3581
+ "signatures": [],
3582
+ "implementation": {
3583
+ "params": [
3584
+ {
3585
+ "name": "query",
3586
+ "description": "A query for a harness to create",
3587
+ "type": "HarnessQuery<T>",
3588
+ "isOptional": false,
3589
+ "isRestParam": false
3590
+ }
3591
+ ],
3592
+ "isNewType": false,
3593
+ "returnType": "Promise<number>",
3594
+ "generics": [
3595
+ {
3596
+ "name": "T",
3597
+ "constraint": "ComponentHarness"
3598
+ }
3599
+ ],
3600
+ "name": "countHarnesses",
3601
+ "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns the total count of all matching components.",
3602
+ "entryType": "function",
3603
+ "jsdocTags": [
3604
+ {
3605
+ "name": "param",
3606
+ "comment": "A query for a harness to create"
3607
+ },
3608
+ {
3609
+ "name": "return",
3610
+ "comment": "An integer indicating the number of instances that were found."
3611
+ }
3612
+ ],
3613
+ "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns the total count of all matching components.\n * @param query A query for a harness to create\n * @return An integer indicating the number of instances that were found.\n */"
3614
+ },
3615
+ "entryType": "function",
3616
+ "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessLoader`'s root element, and returns the total count of all matching components.",
3617
+ "jsdocTags": [
3618
+ {
3619
+ "name": "param",
3620
+ "comment": "A query for a harness to create"
3621
+ },
3622
+ {
3623
+ "name": "return",
3624
+ "comment": "An integer indicating the number of instances that were found."
3625
+ }
3626
+ ],
3627
+ "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessLoader`'s root element, and returns the total count of all matching components.\n * @param query A query for a harness to create\n * @return An integer indicating the number of instances that were found.\n */",
3628
+ "memberType": "method",
3629
+ "memberTags": []
3630
+ },
3294
3631
  {
3295
3632
  "name": "hasHarness",
3296
3633
  "signatures": [],
@@ -3352,7 +3689,7 @@
3352
3689
  "source": {
3353
3690
  "filePath": "src/cdk/testing/component-harness.ts",
3354
3691
  "startLine": 81,
3355
- "endLine": 137
3692
+ "endLine": 156
3356
3693
  }
3357
3694
  },
3358
3695
  {
@@ -3682,9 +4019,36 @@
3682
4019
  ],
3683
4020
  "rawComment": "/**\n * Resolves the given list of async values in parallel (i.e. via Promise.all) while batching change\n * detection over the entire operation such that change detection occurs exactly once before\n * resolving the values and once after.\n * @param values A getter for the async values to resolve in parallel with batched change detection.\n * @return The resolved values.\n */",
3684
4021
  "source": {
3685
- "filePath": "src/cdk/testing/change-detection.ts",
3686
- "startLine": 129,
3687
- "endLine": 137
4022
+ "filePath": "src/cdk/testing/change-detection.ts",
4023
+ "startLine": 129,
4024
+ "endLine": 137
4025
+ }
4026
+ },
4027
+ {
4028
+ "name": "TextOptions",
4029
+ "isAbstract": false,
4030
+ "entryType": "interface",
4031
+ "members": [
4032
+ {
4033
+ "name": "exclude",
4034
+ "type": "string | undefined",
4035
+ "memberType": "property",
4036
+ "memberTags": [
4037
+ "optional"
4038
+ ],
4039
+ "description": "Optional selector for elements whose content should be excluded from the text string.",
4040
+ "jsdocTags": []
4041
+ }
4042
+ ],
4043
+ "generics": [],
4044
+ "description": "Options that affect the text returned by `TestElement.text`.",
4045
+ "jsdocTags": [],
4046
+ "rawComment": "/**\n * Options that affect the text returned by `TestElement.text`.\n */",
4047
+ "implements": [],
4048
+ "source": {
4049
+ "filePath": "/src/cdk/testing/test-element.ts",
4050
+ "startLine": 186,
4051
+ "endLine": 189
3688
4052
  }
3689
4053
  },
3690
4054
  {
@@ -4107,35 +4471,8 @@
4107
4471
  "implements": [],
4108
4472
  "source": {
4109
4473
  "filePath": "src/cdk/testing/component-harness.ts",
4110
- "startLine": 144,
4111
- "endLine": 299
4112
- }
4113
- },
4114
- {
4115
- "name": "TextOptions",
4116
- "isAbstract": false,
4117
- "entryType": "interface",
4118
- "members": [
4119
- {
4120
- "name": "exclude",
4121
- "type": "string | undefined",
4122
- "memberType": "property",
4123
- "memberTags": [
4124
- "optional"
4125
- ],
4126
- "description": "Optional selector for elements whose content should be excluded from the text string.",
4127
- "jsdocTags": []
4128
- }
4129
- ],
4130
- "generics": [],
4131
- "description": "Options that affect the text returned by `TestElement.text`.",
4132
- "jsdocTags": [],
4133
- "rawComment": "/**\n * Options that affect the text returned by `TestElement.text`.\n */",
4134
- "implements": [],
4135
- "source": {
4136
- "filePath": "/src/cdk/testing/test-element.ts",
4137
- "startLine": 186,
4138
- "endLine": 189
4474
+ "startLine": 163,
4475
+ "endLine": 318
4139
4476
  }
4140
4477
  },
4141
4478
  {
@@ -4582,8 +4919,8 @@
4582
4919
  "implements": [],
4583
4920
  "source": {
4584
4921
  "filePath": "src/cdk/testing/component-harness.ts",
4585
- "startLine": 305,
4586
- "endLine": 454
4922
+ "startLine": 324,
4923
+ "endLine": 473
4587
4924
  }
4588
4925
  },
4589
4926
  {
@@ -4931,6 +5268,131 @@
4931
5268
  "memberType": "method",
4932
5269
  "memberTags": []
4933
5270
  },
5271
+ {
5272
+ "name": "getHarnessAtIndex",
5273
+ "signatures": [
5274
+ {
5275
+ "name": "getHarnessAtIndex",
5276
+ "entryType": "function",
5277
+ "description": "Gets a matching harness for the given query and index within the current harness's content.",
5278
+ "generics": [
5279
+ {
5280
+ "name": "T",
5281
+ "constraint": "ComponentHarness"
5282
+ }
5283
+ ],
5284
+ "isNewType": false,
5285
+ "jsdocTags": [
5286
+ {
5287
+ "name": "param",
5288
+ "comment": "The harness query to search for."
5289
+ },
5290
+ {
5291
+ "name": "param",
5292
+ "comment": "The zero-indexed offset of the component to find."
5293
+ },
5294
+ {
5295
+ "name": "returns",
5296
+ "comment": "The first harness matching the given query."
5297
+ },
5298
+ {
5299
+ "name": "throws",
5300
+ "comment": "If no matching harness is found."
5301
+ }
5302
+ ],
5303
+ "params": [
5304
+ {
5305
+ "name": "query",
5306
+ "description": "The harness query to search for.",
5307
+ "type": "HarnessQuery<T>",
5308
+ "isOptional": false,
5309
+ "isRestParam": false
5310
+ },
5311
+ {
5312
+ "name": "index",
5313
+ "description": "The zero-indexed offset of the component to find.",
5314
+ "type": "number",
5315
+ "isOptional": false,
5316
+ "isRestParam": false
5317
+ }
5318
+ ],
5319
+ "rawComment": "/**\n * Gets a matching harness for the given query and index within the current harness's content.\n * @param query The harness query to search for.\n * @param index The zero-indexed offset of the component to find.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */",
5320
+ "returnType": "Promise<T>"
5321
+ }
5322
+ ],
5323
+ "implementation": {
5324
+ "params": [
5325
+ {
5326
+ "name": "query",
5327
+ "description": "The harness query to search for.",
5328
+ "type": "HarnessQuery<T>",
5329
+ "isOptional": false,
5330
+ "isRestParam": false
5331
+ },
5332
+ {
5333
+ "name": "index",
5334
+ "description": "The zero-indexed offset of the component to find.",
5335
+ "type": "number",
5336
+ "isOptional": false,
5337
+ "isRestParam": false
5338
+ }
5339
+ ],
5340
+ "isNewType": false,
5341
+ "returnType": "Promise<T>",
5342
+ "returnDescription": "The first harness matching the given query.",
5343
+ "generics": [
5344
+ {
5345
+ "name": "T",
5346
+ "constraint": "ComponentHarness"
5347
+ }
5348
+ ],
5349
+ "name": "getHarnessAtIndex",
5350
+ "description": "Gets a matching harness for the given query and index within the current harness's content.",
5351
+ "entryType": "function",
5352
+ "jsdocTags": [
5353
+ {
5354
+ "name": "param",
5355
+ "comment": "The harness query to search for."
5356
+ },
5357
+ {
5358
+ "name": "param",
5359
+ "comment": "The zero-indexed offset of the component to find."
5360
+ },
5361
+ {
5362
+ "name": "returns",
5363
+ "comment": "The first harness matching the given query."
5364
+ },
5365
+ {
5366
+ "name": "throws",
5367
+ "comment": "If no matching harness is found."
5368
+ }
5369
+ ],
5370
+ "rawComment": "/**\n * Gets a matching harness for the given query and index within the current harness's content.\n * @param query The harness query to search for.\n * @param index The zero-indexed offset of the component to find.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */"
5371
+ },
5372
+ "entryType": "function",
5373
+ "description": "Gets a matching harness for the given query and index within the current harness's content.",
5374
+ "jsdocTags": [
5375
+ {
5376
+ "name": "param",
5377
+ "comment": "The harness query to search for."
5378
+ },
5379
+ {
5380
+ "name": "param",
5381
+ "comment": "The zero-indexed offset of the component to find."
5382
+ },
5383
+ {
5384
+ "name": "returns",
5385
+ "comment": "The first harness matching the given query."
5386
+ },
5387
+ {
5388
+ "name": "throws",
5389
+ "comment": "If no matching harness is found."
5390
+ }
5391
+ ],
5392
+ "rawComment": "/**\n * Gets a matching harness for the given query and index within the current harness's content.\n * @param query The harness query to search for.\n * @param index The zero-indexed offset of the component to find.\n * @returns The first harness matching the given query.\n * @throws If no matching harness is found.\n */",
5393
+ "memberType": "method",
5394
+ "memberTags": []
5395
+ },
4934
5396
  {
4935
5397
  "name": "getAllHarnesses",
4936
5398
  "signatures": [
@@ -5018,6 +5480,93 @@
5018
5480
  "memberType": "method",
5019
5481
  "memberTags": []
5020
5482
  },
5483
+ {
5484
+ "name": "countHarnesses",
5485
+ "signatures": [
5486
+ {
5487
+ "name": "countHarnesses",
5488
+ "entryType": "function",
5489
+ "description": "Returns the number of matching harnesses for the given query within the current harness's\ncontent.",
5490
+ "generics": [
5491
+ {
5492
+ "name": "T",
5493
+ "constraint": "ComponentHarness"
5494
+ }
5495
+ ],
5496
+ "isNewType": false,
5497
+ "jsdocTags": [
5498
+ {
5499
+ "name": "param",
5500
+ "comment": "The harness query to search for."
5501
+ },
5502
+ {
5503
+ "name": "returns",
5504
+ "comment": "The number of matching harnesses for the given query."
5505
+ }
5506
+ ],
5507
+ "params": [
5508
+ {
5509
+ "name": "query",
5510
+ "description": "The harness query to search for.",
5511
+ "type": "HarnessQuery<T>",
5512
+ "isOptional": false,
5513
+ "isRestParam": false
5514
+ }
5515
+ ],
5516
+ "rawComment": "/**\n * Returns the number of matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns The number of matching harnesses for the given query.\n */",
5517
+ "returnType": "Promise<number>"
5518
+ }
5519
+ ],
5520
+ "implementation": {
5521
+ "params": [
5522
+ {
5523
+ "name": "query",
5524
+ "description": "The harness query to search for.",
5525
+ "type": "HarnessQuery<T>",
5526
+ "isOptional": false,
5527
+ "isRestParam": false
5528
+ }
5529
+ ],
5530
+ "isNewType": false,
5531
+ "returnType": "Promise<number>",
5532
+ "returnDescription": "The number of matching harnesses for the given query.",
5533
+ "generics": [
5534
+ {
5535
+ "name": "T",
5536
+ "constraint": "ComponentHarness"
5537
+ }
5538
+ ],
5539
+ "name": "countHarnesses",
5540
+ "description": "Returns the number of matching harnesses for the given query within the current harness's\ncontent.",
5541
+ "entryType": "function",
5542
+ "jsdocTags": [
5543
+ {
5544
+ "name": "param",
5545
+ "comment": "The harness query to search for."
5546
+ },
5547
+ {
5548
+ "name": "returns",
5549
+ "comment": "The number of matching harnesses for the given query."
5550
+ }
5551
+ ],
5552
+ "rawComment": "/**\n * Returns the number of matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns The number of matching harnesses for the given query.\n */"
5553
+ },
5554
+ "entryType": "function",
5555
+ "description": "Returns the number of matching harnesses for the given query within the current harness's\ncontent.",
5556
+ "jsdocTags": [
5557
+ {
5558
+ "name": "param",
5559
+ "comment": "The harness query to search for."
5560
+ },
5561
+ {
5562
+ "name": "returns",
5563
+ "comment": "The number of matching harnesses for the given query."
5564
+ }
5565
+ ],
5566
+ "rawComment": "/**\n * Returns the number of matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns The number of matching harnesses for the given query.\n */",
5567
+ "memberType": "method",
5568
+ "memberTags": []
5569
+ },
5021
5570
  {
5022
5571
  "name": "hasHarness",
5023
5572
  "signatures": [
@@ -5039,7 +5588,7 @@
5039
5588
  },
5040
5589
  {
5041
5590
  "name": "returns",
5042
- "comment": "Whetehr there is matching harnesses for the given query."
5591
+ "comment": "Whether there is matching harnesses for the given query."
5043
5592
  }
5044
5593
  ],
5045
5594
  "params": [
@@ -5051,7 +5600,7 @@
5051
5600
  "isRestParam": false
5052
5601
  }
5053
5602
  ],
5054
- "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */",
5603
+ "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whether there is matching harnesses for the given query.\n */",
5055
5604
  "returnType": "Promise<boolean>"
5056
5605
  }
5057
5606
  ],
@@ -5067,7 +5616,7 @@
5067
5616
  ],
5068
5617
  "isNewType": false,
5069
5618
  "returnType": "Promise<boolean>",
5070
- "returnDescription": "Whetehr there is matching harnesses for the given query.",
5619
+ "returnDescription": "Whether there is matching harnesses for the given query.",
5071
5620
  "generics": [
5072
5621
  {
5073
5622
  "name": "T",
@@ -5084,10 +5633,10 @@
5084
5633
  },
5085
5634
  {
5086
5635
  "name": "returns",
5087
- "comment": "Whetehr there is matching harnesses for the given query."
5636
+ "comment": "Whether there is matching harnesses for the given query."
5088
5637
  }
5089
5638
  ],
5090
- "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */"
5639
+ "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whether there is matching harnesses for the given query.\n */"
5091
5640
  },
5092
5641
  "entryType": "function",
5093
5642
  "description": "Checks whether there is a matching harnesses for the given query within the current harness's\ncontent.",
@@ -5098,10 +5647,10 @@
5098
5647
  },
5099
5648
  {
5100
5649
  "name": "returns",
5101
- "comment": "Whetehr there is matching harnesses for the given query."
5650
+ "comment": "Whether there is matching harnesses for the given query."
5102
5651
  }
5103
5652
  ],
5104
- "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whetehr there is matching harnesses for the given query.\n */",
5653
+ "rawComment": "/**\n * Checks whether there is a matching harnesses for the given query within the current harness's\n * content.\n *\n * @param query The harness query to search for.\n * @returns Whether there is matching harnesses for the given query.\n */",
5105
5654
  "memberType": "method",
5106
5655
  "memberTags": []
5107
5656
  },
@@ -5567,8 +6116,8 @@
5567
6116
  ],
5568
6117
  "source": {
5569
6118
  "filePath": "src/cdk/testing/component-harness.ts",
5570
- "startLine": 460,
5571
- "endLine": 530
6119
+ "startLine": 479,
6120
+ "endLine": 574
5572
6121
  }
5573
6122
  },
5574
6123
  {
@@ -5597,8 +6146,8 @@
5597
6146
  "implements": [],
5598
6147
  "source": {
5599
6148
  "filePath": "src/cdk/testing/component-harness.ts",
5600
- "startLine": 536,
5601
- "endLine": 545
6149
+ "startLine": 580,
6150
+ "endLine": 589
5602
6151
  }
5603
6152
  },
5604
6153
  {
@@ -5634,8 +6183,8 @@
5634
6183
  "implements": [],
5635
6184
  "source": {
5636
6185
  "filePath": "src/cdk/testing/component-harness.ts",
5637
- "startLine": 548,
5638
- "endLine": 553
6186
+ "startLine": 592,
6187
+ "endLine": 597
5639
6188
  }
5640
6189
  },
5641
6190
  {
@@ -6262,8 +6811,8 @@
6262
6811
  "implements": [],
6263
6812
  "source": {
6264
6813
  "filePath": "src/cdk/testing/component-harness.ts",
6265
- "startLine": 559,
6266
- "endLine": 687
6814
+ "startLine": 603,
6815
+ "endLine": 731
6267
6816
  }
6268
6817
  }
6269
6818
  ],
@@ -6341,11 +6890,11 @@
6341
6890
  "@angular/cdk/testing"
6342
6891
  ],
6343
6892
  [
6344
- "LocatorFactory",
6893
+ "TextOptions",
6345
6894
  "@angular/cdk/testing"
6346
6895
  ],
6347
6896
  [
6348
- "TextOptions",
6897
+ "LocatorFactory",
6349
6898
  "@angular/cdk/testing"
6350
6899
  ],
6351
6900
  [
@@ -6632,10 +7181,18 @@
6632
7181
  "HarnessEnvironment.getHarnessOrNull",
6633
7182
  "@angular/cdk/testing"
6634
7183
  ],
7184
+ [
7185
+ "HarnessEnvironment.getHarnessAtIndex",
7186
+ "@angular/cdk/testing"
7187
+ ],
6635
7188
  [
6636
7189
  "HarnessEnvironment.getAllHarnesses",
6637
7190
  "@angular/cdk/testing"
6638
7191
  ],
7192
+ [
7193
+ "HarnessEnvironment.countHarnesses",
7194
+ "@angular/cdk/testing"
7195
+ ],
6639
7196
  [
6640
7197
  "HarnessEnvironment.hasHarness",
6641
7198
  "@angular/cdk/testing"
@@ -6800,10 +7357,18 @@
6800
7357
  "HarnessLoader.getHarnessOrNull",
6801
7358
  "@angular/cdk/testing"
6802
7359
  ],
7360
+ [
7361
+ "HarnessLoader.getHarnessAtIndex",
7362
+ "@angular/cdk/testing"
7363
+ ],
6803
7364
  [
6804
7365
  "HarnessLoader.getAllHarnesses",
6805
7366
  "@angular/cdk/testing"
6806
7367
  ],
7368
+ [
7369
+ "HarnessLoader.countHarnesses",
7370
+ "@angular/cdk/testing"
7371
+ ],
6807
7372
  [
6808
7373
  "HarnessLoader.hasHarness",
6809
7374
  "@angular/cdk/testing"
@@ -6816,6 +7381,14 @@
6816
7381
  "parallel",
6817
7382
  "@angular/cdk/testing"
6818
7383
  ],
7384
+ [
7385
+ "TextOptions",
7386
+ "@angular/cdk/testing"
7387
+ ],
7388
+ [
7389
+ "TextOptions.exclude",
7390
+ "@angular/cdk/testing"
7391
+ ],
6819
7392
  [
6820
7393
  "LocatorFactory",
6821
7394
  "@angular/cdk/testing"
@@ -6864,14 +7437,6 @@
6864
7437
  "LocatorFactory.waitForTasksOutsideAngular",
6865
7438
  "@angular/cdk/testing"
6866
7439
  ],
6867
- [
6868
- "TextOptions",
6869
- "@angular/cdk/testing"
6870
- ],
6871
- [
6872
- "TextOptions.exclude",
6873
- "@angular/cdk/testing"
6874
- ],
6875
7440
  [
6876
7441
  "ComponentHarness",
6877
7442
  "@angular/cdk/testing"
@@ -6928,10 +7493,18 @@
6928
7493
  "ContentContainerComponentHarness.getHarnessOrNull",
6929
7494
  "@angular/cdk/testing"
6930
7495
  ],
7496
+ [
7497
+ "ContentContainerComponentHarness.getHarnessAtIndex",
7498
+ "@angular/cdk/testing"
7499
+ ],
6931
7500
  [
6932
7501
  "ContentContainerComponentHarness.getAllHarnesses",
6933
7502
  "@angular/cdk/testing"
6934
7503
  ],
7504
+ [
7505
+ "ContentContainerComponentHarness.countHarnesses",
7506
+ "@angular/cdk/testing"
7507
+ ],
6935
7508
  [
6936
7509
  "ContentContainerComponentHarness.hasHarness",
6937
7510
  "@angular/cdk/testing"