@cloudscape-design/components-themeable 3.0.1248 → 3.0.1250
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-feature-notifications.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/test-utils/dom/index.d.ts +704 -0
- package/lib/internal/template/test-utils/dom/index.js +440 -0
- package/lib/internal/template/test-utils/dom/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -196,6 +196,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
196
196
|
* @returns {Array<AlertWrapper>}
|
|
197
197
|
*/
|
|
198
198
|
findAllAlerts(selector?: string): Array<AlertWrapper>;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the wrapper of the closest parent Alert for the current element,
|
|
201
|
+
* or the element itself if it is an instance of Alert.
|
|
202
|
+
* If no Alert is found, returns `null`.
|
|
203
|
+
*
|
|
204
|
+
* @returns {AlertWrapper | null}
|
|
205
|
+
*/
|
|
206
|
+
findClosestAlert(): AlertWrapper | null;
|
|
199
207
|
/**
|
|
200
208
|
* Returns the wrapper of the first AnchorNavigation that matches the specified CSS selector.
|
|
201
209
|
* If no CSS selector is specified, returns the wrapper of the first AnchorNavigation.
|
|
@@ -214,6 +222,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
214
222
|
* @returns {Array<AnchorNavigationWrapper>}
|
|
215
223
|
*/
|
|
216
224
|
findAllAnchorNavigations(selector?: string): Array<AnchorNavigationWrapper>;
|
|
225
|
+
/**
|
|
226
|
+
* Returns the wrapper of the closest parent AnchorNavigation for the current element,
|
|
227
|
+
* or the element itself if it is an instance of AnchorNavigation.
|
|
228
|
+
* If no AnchorNavigation is found, returns `null`.
|
|
229
|
+
*
|
|
230
|
+
* @returns {AnchorNavigationWrapper | null}
|
|
231
|
+
*/
|
|
232
|
+
findClosestAnchorNavigation(): AnchorNavigationWrapper | null;
|
|
217
233
|
/**
|
|
218
234
|
* Returns the wrapper of the first Annotation that matches the specified CSS selector.
|
|
219
235
|
* If no CSS selector is specified, returns the wrapper of the first Annotation.
|
|
@@ -232,6 +248,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
232
248
|
* @returns {Array<AnnotationWrapper>}
|
|
233
249
|
*/
|
|
234
250
|
findAllAnnotations(selector?: string): Array<AnnotationWrapper>;
|
|
251
|
+
/**
|
|
252
|
+
* Returns the wrapper of the closest parent Annotation for the current element,
|
|
253
|
+
* or the element itself if it is an instance of Annotation.
|
|
254
|
+
* If no Annotation is found, returns `null`.
|
|
255
|
+
*
|
|
256
|
+
* @returns {AnnotationWrapper | null}
|
|
257
|
+
*/
|
|
258
|
+
findClosestAnnotation(): AnnotationWrapper | null;
|
|
235
259
|
/**
|
|
236
260
|
* Returns the wrapper of the first AppLayout that matches the specified CSS selector.
|
|
237
261
|
* If no CSS selector is specified, returns the wrapper of the first AppLayout.
|
|
@@ -250,6 +274,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
250
274
|
* @returns {Array<AppLayoutWrapper>}
|
|
251
275
|
*/
|
|
252
276
|
findAllAppLayouts(selector?: string): Array<AppLayoutWrapper>;
|
|
277
|
+
/**
|
|
278
|
+
* Returns the wrapper of the closest parent AppLayout for the current element,
|
|
279
|
+
* or the element itself if it is an instance of AppLayout.
|
|
280
|
+
* If no AppLayout is found, returns `null`.
|
|
281
|
+
*
|
|
282
|
+
* @returns {AppLayoutWrapper | null}
|
|
283
|
+
*/
|
|
284
|
+
findClosestAppLayout(): AppLayoutWrapper | null;
|
|
253
285
|
/**
|
|
254
286
|
* Returns the wrapper of the first AppLayoutToolbar that matches the specified CSS selector.
|
|
255
287
|
* If no CSS selector is specified, returns the wrapper of the first AppLayoutToolbar.
|
|
@@ -268,6 +300,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
268
300
|
* @returns {Array<AppLayoutToolbarWrapper>}
|
|
269
301
|
*/
|
|
270
302
|
findAllAppLayoutToolbars(selector?: string): Array<AppLayoutToolbarWrapper>;
|
|
303
|
+
/**
|
|
304
|
+
* Returns the wrapper of the closest parent AppLayoutToolbar for the current element,
|
|
305
|
+
* or the element itself if it is an instance of AppLayoutToolbar.
|
|
306
|
+
* If no AppLayoutToolbar is found, returns `null`.
|
|
307
|
+
*
|
|
308
|
+
* @returns {AppLayoutToolbarWrapper | null}
|
|
309
|
+
*/
|
|
310
|
+
findClosestAppLayoutToolbar(): AppLayoutToolbarWrapper | null;
|
|
271
311
|
/**
|
|
272
312
|
* Returns the wrapper of the first AreaChart that matches the specified CSS selector.
|
|
273
313
|
* If no CSS selector is specified, returns the wrapper of the first AreaChart.
|
|
@@ -286,6 +326,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
286
326
|
* @returns {Array<AreaChartWrapper>}
|
|
287
327
|
*/
|
|
288
328
|
findAllAreaCharts(selector?: string): Array<AreaChartWrapper>;
|
|
329
|
+
/**
|
|
330
|
+
* Returns the wrapper of the closest parent AreaChart for the current element,
|
|
331
|
+
* or the element itself if it is an instance of AreaChart.
|
|
332
|
+
* If no AreaChart is found, returns `null`.
|
|
333
|
+
*
|
|
334
|
+
* @returns {AreaChartWrapper | null}
|
|
335
|
+
*/
|
|
336
|
+
findClosestAreaChart(): AreaChartWrapper | null;
|
|
289
337
|
/**
|
|
290
338
|
* Returns the wrapper of the first AttributeEditor that matches the specified CSS selector.
|
|
291
339
|
* If no CSS selector is specified, returns the wrapper of the first AttributeEditor.
|
|
@@ -304,6 +352,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
304
352
|
* @returns {Array<AttributeEditorWrapper>}
|
|
305
353
|
*/
|
|
306
354
|
findAllAttributeEditors(selector?: string): Array<AttributeEditorWrapper>;
|
|
355
|
+
/**
|
|
356
|
+
* Returns the wrapper of the closest parent AttributeEditor for the current element,
|
|
357
|
+
* or the element itself if it is an instance of AttributeEditor.
|
|
358
|
+
* If no AttributeEditor is found, returns `null`.
|
|
359
|
+
*
|
|
360
|
+
* @returns {AttributeEditorWrapper | null}
|
|
361
|
+
*/
|
|
362
|
+
findClosestAttributeEditor(): AttributeEditorWrapper | null;
|
|
307
363
|
/**
|
|
308
364
|
* Returns the wrapper of the first Autosuggest that matches the specified CSS selector.
|
|
309
365
|
* If no CSS selector is specified, returns the wrapper of the first Autosuggest.
|
|
@@ -322,6 +378,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
322
378
|
* @returns {Array<AutosuggestWrapper>}
|
|
323
379
|
*/
|
|
324
380
|
findAllAutosuggests(selector?: string): Array<AutosuggestWrapper>;
|
|
381
|
+
/**
|
|
382
|
+
* Returns the wrapper of the closest parent Autosuggest for the current element,
|
|
383
|
+
* or the element itself if it is an instance of Autosuggest.
|
|
384
|
+
* If no Autosuggest is found, returns `null`.
|
|
385
|
+
*
|
|
386
|
+
* @returns {AutosuggestWrapper | null}
|
|
387
|
+
*/
|
|
388
|
+
findClosestAutosuggest(): AutosuggestWrapper | null;
|
|
325
389
|
/**
|
|
326
390
|
* Returns the wrapper of the first Badge that matches the specified CSS selector.
|
|
327
391
|
* If no CSS selector is specified, returns the wrapper of the first Badge.
|
|
@@ -340,6 +404,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
340
404
|
* @returns {Array<BadgeWrapper>}
|
|
341
405
|
*/
|
|
342
406
|
findAllBadges(selector?: string): Array<BadgeWrapper>;
|
|
407
|
+
/**
|
|
408
|
+
* Returns the wrapper of the closest parent Badge for the current element,
|
|
409
|
+
* or the element itself if it is an instance of Badge.
|
|
410
|
+
* If no Badge is found, returns `null`.
|
|
411
|
+
*
|
|
412
|
+
* @returns {BadgeWrapper | null}
|
|
413
|
+
*/
|
|
414
|
+
findClosestBadge(): BadgeWrapper | null;
|
|
343
415
|
/**
|
|
344
416
|
* Returns the wrapper of the first BarChart that matches the specified CSS selector.
|
|
345
417
|
* If no CSS selector is specified, returns the wrapper of the first BarChart.
|
|
@@ -358,6 +430,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
358
430
|
* @returns {Array<BarChartWrapper>}
|
|
359
431
|
*/
|
|
360
432
|
findAllBarCharts(selector?: string): Array<BarChartWrapper>;
|
|
433
|
+
/**
|
|
434
|
+
* Returns the wrapper of the closest parent BarChart for the current element,
|
|
435
|
+
* or the element itself if it is an instance of BarChart.
|
|
436
|
+
* If no BarChart is found, returns `null`.
|
|
437
|
+
*
|
|
438
|
+
* @returns {BarChartWrapper | null}
|
|
439
|
+
*/
|
|
440
|
+
findClosestBarChart(): BarChartWrapper | null;
|
|
361
441
|
/**
|
|
362
442
|
* Returns the wrapper of the first Box that matches the specified CSS selector.
|
|
363
443
|
* If no CSS selector is specified, returns the wrapper of the first Box.
|
|
@@ -376,6 +456,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
376
456
|
* @returns {Array<BoxWrapper>}
|
|
377
457
|
*/
|
|
378
458
|
findAllBoxes(selector?: string): Array<BoxWrapper>;
|
|
459
|
+
/**
|
|
460
|
+
* Returns the wrapper of the closest parent Box for the current element,
|
|
461
|
+
* or the element itself if it is an instance of Box.
|
|
462
|
+
* If no Box is found, returns `null`.
|
|
463
|
+
*
|
|
464
|
+
* @returns {BoxWrapper | null}
|
|
465
|
+
*/
|
|
466
|
+
findClosestBox(): BoxWrapper | null;
|
|
379
467
|
/**
|
|
380
468
|
* Returns the wrapper of the first BreadcrumbGroup that matches the specified CSS selector.
|
|
381
469
|
* If no CSS selector is specified, returns the wrapper of the first BreadcrumbGroup.
|
|
@@ -394,6 +482,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
394
482
|
* @returns {Array<BreadcrumbGroupWrapper>}
|
|
395
483
|
*/
|
|
396
484
|
findAllBreadcrumbGroups(selector?: string): Array<BreadcrumbGroupWrapper>;
|
|
485
|
+
/**
|
|
486
|
+
* Returns the wrapper of the closest parent BreadcrumbGroup for the current element,
|
|
487
|
+
* or the element itself if it is an instance of BreadcrumbGroup.
|
|
488
|
+
* If no BreadcrumbGroup is found, returns `null`.
|
|
489
|
+
*
|
|
490
|
+
* @returns {BreadcrumbGroupWrapper | null}
|
|
491
|
+
*/
|
|
492
|
+
findClosestBreadcrumbGroup(): BreadcrumbGroupWrapper | null;
|
|
397
493
|
/**
|
|
398
494
|
* Returns the wrapper of the first Button that matches the specified CSS selector.
|
|
399
495
|
* If no CSS selector is specified, returns the wrapper of the first Button.
|
|
@@ -412,6 +508,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
412
508
|
* @returns {Array<ButtonWrapper>}
|
|
413
509
|
*/
|
|
414
510
|
findAllButtons(selector?: string): Array<ButtonWrapper>;
|
|
511
|
+
/**
|
|
512
|
+
* Returns the wrapper of the closest parent Button for the current element,
|
|
513
|
+
* or the element itself if it is an instance of Button.
|
|
514
|
+
* If no Button is found, returns `null`.
|
|
515
|
+
*
|
|
516
|
+
* @returns {ButtonWrapper | null}
|
|
517
|
+
*/
|
|
518
|
+
findClosestButton(): ButtonWrapper | null;
|
|
415
519
|
/**
|
|
416
520
|
* Returns the wrapper of the first ButtonDropdown that matches the specified CSS selector.
|
|
417
521
|
* If no CSS selector is specified, returns the wrapper of the first ButtonDropdown.
|
|
@@ -430,6 +534,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
430
534
|
* @returns {Array<ButtonDropdownWrapper>}
|
|
431
535
|
*/
|
|
432
536
|
findAllButtonDropdowns(selector?: string): Array<ButtonDropdownWrapper>;
|
|
537
|
+
/**
|
|
538
|
+
* Returns the wrapper of the closest parent ButtonDropdown for the current element,
|
|
539
|
+
* or the element itself if it is an instance of ButtonDropdown.
|
|
540
|
+
* If no ButtonDropdown is found, returns `null`.
|
|
541
|
+
*
|
|
542
|
+
* @returns {ButtonDropdownWrapper | null}
|
|
543
|
+
*/
|
|
544
|
+
findClosestButtonDropdown(): ButtonDropdownWrapper | null;
|
|
433
545
|
/**
|
|
434
546
|
* Returns the wrapper of the first ButtonGroup that matches the specified CSS selector.
|
|
435
547
|
* If no CSS selector is specified, returns the wrapper of the first ButtonGroup.
|
|
@@ -448,6 +560,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
448
560
|
* @returns {Array<ButtonGroupWrapper>}
|
|
449
561
|
*/
|
|
450
562
|
findAllButtonGroups(selector?: string): Array<ButtonGroupWrapper>;
|
|
563
|
+
/**
|
|
564
|
+
* Returns the wrapper of the closest parent ButtonGroup for the current element,
|
|
565
|
+
* or the element itself if it is an instance of ButtonGroup.
|
|
566
|
+
* If no ButtonGroup is found, returns `null`.
|
|
567
|
+
*
|
|
568
|
+
* @returns {ButtonGroupWrapper | null}
|
|
569
|
+
*/
|
|
570
|
+
findClosestButtonGroup(): ButtonGroupWrapper | null;
|
|
451
571
|
/**
|
|
452
572
|
* Returns the wrapper of the first Calendar that matches the specified CSS selector.
|
|
453
573
|
* If no CSS selector is specified, returns the wrapper of the first Calendar.
|
|
@@ -466,6 +586,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
466
586
|
* @returns {Array<CalendarWrapper>}
|
|
467
587
|
*/
|
|
468
588
|
findAllCalendars(selector?: string): Array<CalendarWrapper>;
|
|
589
|
+
/**
|
|
590
|
+
* Returns the wrapper of the closest parent Calendar for the current element,
|
|
591
|
+
* or the element itself if it is an instance of Calendar.
|
|
592
|
+
* If no Calendar is found, returns `null`.
|
|
593
|
+
*
|
|
594
|
+
* @returns {CalendarWrapper | null}
|
|
595
|
+
*/
|
|
596
|
+
findClosestCalendar(): CalendarWrapper | null;
|
|
469
597
|
/**
|
|
470
598
|
* Returns the wrapper of the first Cards that matches the specified CSS selector.
|
|
471
599
|
* If no CSS selector is specified, returns the wrapper of the first Cards.
|
|
@@ -484,6 +612,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
484
612
|
* @returns {Array<CardsWrapper>}
|
|
485
613
|
*/
|
|
486
614
|
findAllCards(selector?: string): Array<CardsWrapper>;
|
|
615
|
+
/**
|
|
616
|
+
* Returns the wrapper of the closest parent Cards for the current element,
|
|
617
|
+
* or the element itself if it is an instance of Cards.
|
|
618
|
+
* If no Cards is found, returns `null`.
|
|
619
|
+
*
|
|
620
|
+
* @returns {CardsWrapper | null}
|
|
621
|
+
*/
|
|
622
|
+
findClosestCards(): CardsWrapper | null;
|
|
487
623
|
/**
|
|
488
624
|
* Returns the wrapper of the first Checkbox that matches the specified CSS selector.
|
|
489
625
|
* If no CSS selector is specified, returns the wrapper of the first Checkbox.
|
|
@@ -502,6 +638,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
502
638
|
* @returns {Array<CheckboxWrapper>}
|
|
503
639
|
*/
|
|
504
640
|
findAllCheckboxes(selector?: string): Array<CheckboxWrapper>;
|
|
641
|
+
/**
|
|
642
|
+
* Returns the wrapper of the closest parent Checkbox for the current element,
|
|
643
|
+
* or the element itself if it is an instance of Checkbox.
|
|
644
|
+
* If no Checkbox is found, returns `null`.
|
|
645
|
+
*
|
|
646
|
+
* @returns {CheckboxWrapper | null}
|
|
647
|
+
*/
|
|
648
|
+
findClosestCheckbox(): CheckboxWrapper | null;
|
|
505
649
|
/**
|
|
506
650
|
* Returns the wrapper of the first CodeEditor that matches the specified CSS selector.
|
|
507
651
|
* If no CSS selector is specified, returns the wrapper of the first CodeEditor.
|
|
@@ -520,6 +664,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
520
664
|
* @returns {Array<CodeEditorWrapper>}
|
|
521
665
|
*/
|
|
522
666
|
findAllCodeEditors(selector?: string): Array<CodeEditorWrapper>;
|
|
667
|
+
/**
|
|
668
|
+
* Returns the wrapper of the closest parent CodeEditor for the current element,
|
|
669
|
+
* or the element itself if it is an instance of CodeEditor.
|
|
670
|
+
* If no CodeEditor is found, returns `null`.
|
|
671
|
+
*
|
|
672
|
+
* @returns {CodeEditorWrapper | null}
|
|
673
|
+
*/
|
|
674
|
+
findClosestCodeEditor(): CodeEditorWrapper | null;
|
|
523
675
|
/**
|
|
524
676
|
* Returns the wrapper of the first CollectionPreferences that matches the specified CSS selector.
|
|
525
677
|
* If no CSS selector is specified, returns the wrapper of the first CollectionPreferences.
|
|
@@ -538,6 +690,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
538
690
|
* @returns {Array<CollectionPreferencesWrapper>}
|
|
539
691
|
*/
|
|
540
692
|
findAllCollectionPreferences(selector?: string): Array<CollectionPreferencesWrapper>;
|
|
693
|
+
/**
|
|
694
|
+
* Returns the wrapper of the closest parent CollectionPreferences for the current element,
|
|
695
|
+
* or the element itself if it is an instance of CollectionPreferences.
|
|
696
|
+
* If no CollectionPreferences is found, returns `null`.
|
|
697
|
+
*
|
|
698
|
+
* @returns {CollectionPreferencesWrapper | null}
|
|
699
|
+
*/
|
|
700
|
+
findClosestCollectionPreferences(): CollectionPreferencesWrapper | null;
|
|
541
701
|
/**
|
|
542
702
|
* Returns the wrapper of the first ColumnLayout that matches the specified CSS selector.
|
|
543
703
|
* If no CSS selector is specified, returns the wrapper of the first ColumnLayout.
|
|
@@ -556,6 +716,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
556
716
|
* @returns {Array<ColumnLayoutWrapper>}
|
|
557
717
|
*/
|
|
558
718
|
findAllColumnLayouts(selector?: string): Array<ColumnLayoutWrapper>;
|
|
719
|
+
/**
|
|
720
|
+
* Returns the wrapper of the closest parent ColumnLayout for the current element,
|
|
721
|
+
* or the element itself if it is an instance of ColumnLayout.
|
|
722
|
+
* If no ColumnLayout is found, returns `null`.
|
|
723
|
+
*
|
|
724
|
+
* @returns {ColumnLayoutWrapper | null}
|
|
725
|
+
*/
|
|
726
|
+
findClosestColumnLayout(): ColumnLayoutWrapper | null;
|
|
559
727
|
/**
|
|
560
728
|
* Returns the wrapper of the first Container that matches the specified CSS selector.
|
|
561
729
|
* If no CSS selector is specified, returns the wrapper of the first Container.
|
|
@@ -574,6 +742,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
574
742
|
* @returns {Array<ContainerWrapper>}
|
|
575
743
|
*/
|
|
576
744
|
findAllContainers(selector?: string): Array<ContainerWrapper>;
|
|
745
|
+
/**
|
|
746
|
+
* Returns the wrapper of the closest parent Container for the current element,
|
|
747
|
+
* or the element itself if it is an instance of Container.
|
|
748
|
+
* If no Container is found, returns `null`.
|
|
749
|
+
*
|
|
750
|
+
* @returns {ContainerWrapper | null}
|
|
751
|
+
*/
|
|
752
|
+
findClosestContainer(): ContainerWrapper | null;
|
|
577
753
|
/**
|
|
578
754
|
* Returns the wrapper of the first ContentLayout that matches the specified CSS selector.
|
|
579
755
|
* If no CSS selector is specified, returns the wrapper of the first ContentLayout.
|
|
@@ -592,6 +768,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
592
768
|
* @returns {Array<ContentLayoutWrapper>}
|
|
593
769
|
*/
|
|
594
770
|
findAllContentLayouts(selector?: string): Array<ContentLayoutWrapper>;
|
|
771
|
+
/**
|
|
772
|
+
* Returns the wrapper of the closest parent ContentLayout for the current element,
|
|
773
|
+
* or the element itself if it is an instance of ContentLayout.
|
|
774
|
+
* If no ContentLayout is found, returns `null`.
|
|
775
|
+
*
|
|
776
|
+
* @returns {ContentLayoutWrapper | null}
|
|
777
|
+
*/
|
|
778
|
+
findClosestContentLayout(): ContentLayoutWrapper | null;
|
|
595
779
|
/**
|
|
596
780
|
* Returns the wrapper of the first CopyToClipboard that matches the specified CSS selector.
|
|
597
781
|
* If no CSS selector is specified, returns the wrapper of the first CopyToClipboard.
|
|
@@ -610,6 +794,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
610
794
|
* @returns {Array<CopyToClipboardWrapper>}
|
|
611
795
|
*/
|
|
612
796
|
findAllCopyToClipboards(selector?: string): Array<CopyToClipboardWrapper>;
|
|
797
|
+
/**
|
|
798
|
+
* Returns the wrapper of the closest parent CopyToClipboard for the current element,
|
|
799
|
+
* or the element itself if it is an instance of CopyToClipboard.
|
|
800
|
+
* If no CopyToClipboard is found, returns `null`.
|
|
801
|
+
*
|
|
802
|
+
* @returns {CopyToClipboardWrapper | null}
|
|
803
|
+
*/
|
|
804
|
+
findClosestCopyToClipboard(): CopyToClipboardWrapper | null;
|
|
613
805
|
/**
|
|
614
806
|
* Returns the wrapper of the first DateInput that matches the specified CSS selector.
|
|
615
807
|
* If no CSS selector is specified, returns the wrapper of the first DateInput.
|
|
@@ -628,6 +820,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
628
820
|
* @returns {Array<DateInputWrapper>}
|
|
629
821
|
*/
|
|
630
822
|
findAllDateInputs(selector?: string): Array<DateInputWrapper>;
|
|
823
|
+
/**
|
|
824
|
+
* Returns the wrapper of the closest parent DateInput for the current element,
|
|
825
|
+
* or the element itself if it is an instance of DateInput.
|
|
826
|
+
* If no DateInput is found, returns `null`.
|
|
827
|
+
*
|
|
828
|
+
* @returns {DateInputWrapper | null}
|
|
829
|
+
*/
|
|
830
|
+
findClosestDateInput(): DateInputWrapper | null;
|
|
631
831
|
/**
|
|
632
832
|
* Returns the wrapper of the first DatePicker that matches the specified CSS selector.
|
|
633
833
|
* If no CSS selector is specified, returns the wrapper of the first DatePicker.
|
|
@@ -646,6 +846,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
646
846
|
* @returns {Array<DatePickerWrapper>}
|
|
647
847
|
*/
|
|
648
848
|
findAllDatePickers(selector?: string): Array<DatePickerWrapper>;
|
|
849
|
+
/**
|
|
850
|
+
* Returns the wrapper of the closest parent DatePicker for the current element,
|
|
851
|
+
* or the element itself if it is an instance of DatePicker.
|
|
852
|
+
* If no DatePicker is found, returns `null`.
|
|
853
|
+
*
|
|
854
|
+
* @returns {DatePickerWrapper | null}
|
|
855
|
+
*/
|
|
856
|
+
findClosestDatePicker(): DatePickerWrapper | null;
|
|
649
857
|
/**
|
|
650
858
|
* Returns the wrapper of the first DateRangePicker that matches the specified CSS selector.
|
|
651
859
|
* If no CSS selector is specified, returns the wrapper of the first DateRangePicker.
|
|
@@ -664,6 +872,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
664
872
|
* @returns {Array<DateRangePickerWrapper>}
|
|
665
873
|
*/
|
|
666
874
|
findAllDateRangePickers(selector?: string): Array<DateRangePickerWrapper>;
|
|
875
|
+
/**
|
|
876
|
+
* Returns the wrapper of the closest parent DateRangePicker for the current element,
|
|
877
|
+
* or the element itself if it is an instance of DateRangePicker.
|
|
878
|
+
* If no DateRangePicker is found, returns `null`.
|
|
879
|
+
*
|
|
880
|
+
* @returns {DateRangePickerWrapper | null}
|
|
881
|
+
*/
|
|
882
|
+
findClosestDateRangePicker(): DateRangePickerWrapper | null;
|
|
667
883
|
/**
|
|
668
884
|
* Returns the wrapper of the first Drawer that matches the specified CSS selector.
|
|
669
885
|
* If no CSS selector is specified, returns the wrapper of the first Drawer.
|
|
@@ -682,6 +898,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
682
898
|
* @returns {Array<DrawerWrapper>}
|
|
683
899
|
*/
|
|
684
900
|
findAllDrawers(selector?: string): Array<DrawerWrapper>;
|
|
901
|
+
/**
|
|
902
|
+
* Returns the wrapper of the closest parent Drawer for the current element,
|
|
903
|
+
* or the element itself if it is an instance of Drawer.
|
|
904
|
+
* If no Drawer is found, returns `null`.
|
|
905
|
+
*
|
|
906
|
+
* @returns {DrawerWrapper | null}
|
|
907
|
+
*/
|
|
908
|
+
findClosestDrawer(): DrawerWrapper | null;
|
|
685
909
|
/**
|
|
686
910
|
* Returns the wrapper of the first ErrorBoundary that matches the specified CSS selector.
|
|
687
911
|
* If no CSS selector is specified, returns the wrapper of the first ErrorBoundary.
|
|
@@ -700,6 +924,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
700
924
|
* @returns {Array<ErrorBoundaryWrapper>}
|
|
701
925
|
*/
|
|
702
926
|
findAllErrorBoundaries(selector?: string): Array<ErrorBoundaryWrapper>;
|
|
927
|
+
/**
|
|
928
|
+
* Returns the wrapper of the closest parent ErrorBoundary for the current element,
|
|
929
|
+
* or the element itself if it is an instance of ErrorBoundary.
|
|
930
|
+
* If no ErrorBoundary is found, returns `null`.
|
|
931
|
+
*
|
|
932
|
+
* @returns {ErrorBoundaryWrapper | null}
|
|
933
|
+
*/
|
|
934
|
+
findClosestErrorBoundary(): ErrorBoundaryWrapper | null;
|
|
703
935
|
/**
|
|
704
936
|
* Returns the wrapper of the first ExpandableSection that matches the specified CSS selector.
|
|
705
937
|
* If no CSS selector is specified, returns the wrapper of the first ExpandableSection.
|
|
@@ -718,6 +950,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
718
950
|
* @returns {Array<ExpandableSectionWrapper>}
|
|
719
951
|
*/
|
|
720
952
|
findAllExpandableSections(selector?: string): Array<ExpandableSectionWrapper>;
|
|
953
|
+
/**
|
|
954
|
+
* Returns the wrapper of the closest parent ExpandableSection for the current element,
|
|
955
|
+
* or the element itself if it is an instance of ExpandableSection.
|
|
956
|
+
* If no ExpandableSection is found, returns `null`.
|
|
957
|
+
*
|
|
958
|
+
* @returns {ExpandableSectionWrapper | null}
|
|
959
|
+
*/
|
|
960
|
+
findClosestExpandableSection(): ExpandableSectionWrapper | null;
|
|
721
961
|
/**
|
|
722
962
|
* Returns the wrapper of the first FileDropzone that matches the specified CSS selector.
|
|
723
963
|
* If no CSS selector is specified, returns the wrapper of the first FileDropzone.
|
|
@@ -736,6 +976,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
736
976
|
* @returns {Array<FileDropzoneWrapper>}
|
|
737
977
|
*/
|
|
738
978
|
findAllFileDropzones(selector?: string): Array<FileDropzoneWrapper>;
|
|
979
|
+
/**
|
|
980
|
+
* Returns the wrapper of the closest parent FileDropzone for the current element,
|
|
981
|
+
* or the element itself if it is an instance of FileDropzone.
|
|
982
|
+
* If no FileDropzone is found, returns `null`.
|
|
983
|
+
*
|
|
984
|
+
* @returns {FileDropzoneWrapper | null}
|
|
985
|
+
*/
|
|
986
|
+
findClosestFileDropzone(): FileDropzoneWrapper | null;
|
|
739
987
|
/**
|
|
740
988
|
* Returns the wrapper of the first FileInput that matches the specified CSS selector.
|
|
741
989
|
* If no CSS selector is specified, returns the wrapper of the first FileInput.
|
|
@@ -754,6 +1002,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
754
1002
|
* @returns {Array<FileInputWrapper>}
|
|
755
1003
|
*/
|
|
756
1004
|
findAllFileInputs(selector?: string): Array<FileInputWrapper>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Returns the wrapper of the closest parent FileInput for the current element,
|
|
1007
|
+
* or the element itself if it is an instance of FileInput.
|
|
1008
|
+
* If no FileInput is found, returns `null`.
|
|
1009
|
+
*
|
|
1010
|
+
* @returns {FileInputWrapper | null}
|
|
1011
|
+
*/
|
|
1012
|
+
findClosestFileInput(): FileInputWrapper | null;
|
|
757
1013
|
/**
|
|
758
1014
|
* Returns the wrapper of the first FileTokenGroup that matches the specified CSS selector.
|
|
759
1015
|
* If no CSS selector is specified, returns the wrapper of the first FileTokenGroup.
|
|
@@ -772,6 +1028,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
772
1028
|
* @returns {Array<FileTokenGroupWrapper>}
|
|
773
1029
|
*/
|
|
774
1030
|
findAllFileTokenGroups(selector?: string): Array<FileTokenGroupWrapper>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns the wrapper of the closest parent FileTokenGroup for the current element,
|
|
1033
|
+
* or the element itself if it is an instance of FileTokenGroup.
|
|
1034
|
+
* If no FileTokenGroup is found, returns `null`.
|
|
1035
|
+
*
|
|
1036
|
+
* @returns {FileTokenGroupWrapper | null}
|
|
1037
|
+
*/
|
|
1038
|
+
findClosestFileTokenGroup(): FileTokenGroupWrapper | null;
|
|
775
1039
|
/**
|
|
776
1040
|
* Returns the wrapper of the first FileUpload that matches the specified CSS selector.
|
|
777
1041
|
* If no CSS selector is specified, returns the wrapper of the first FileUpload.
|
|
@@ -790,6 +1054,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
790
1054
|
* @returns {Array<FileUploadWrapper>}
|
|
791
1055
|
*/
|
|
792
1056
|
findAllFileUploads(selector?: string): Array<FileUploadWrapper>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Returns the wrapper of the closest parent FileUpload for the current element,
|
|
1059
|
+
* or the element itself if it is an instance of FileUpload.
|
|
1060
|
+
* If no FileUpload is found, returns `null`.
|
|
1061
|
+
*
|
|
1062
|
+
* @returns {FileUploadWrapper | null}
|
|
1063
|
+
*/
|
|
1064
|
+
findClosestFileUpload(): FileUploadWrapper | null;
|
|
793
1065
|
/**
|
|
794
1066
|
* Returns the wrapper of the first Flashbar that matches the specified CSS selector.
|
|
795
1067
|
* If no CSS selector is specified, returns the wrapper of the first Flashbar.
|
|
@@ -808,6 +1080,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
808
1080
|
* @returns {Array<FlashbarWrapper>}
|
|
809
1081
|
*/
|
|
810
1082
|
findAllFlashbars(selector?: string): Array<FlashbarWrapper>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Returns the wrapper of the closest parent Flashbar for the current element,
|
|
1085
|
+
* or the element itself if it is an instance of Flashbar.
|
|
1086
|
+
* If no Flashbar is found, returns `null`.
|
|
1087
|
+
*
|
|
1088
|
+
* @returns {FlashbarWrapper | null}
|
|
1089
|
+
*/
|
|
1090
|
+
findClosestFlashbar(): FlashbarWrapper | null;
|
|
811
1091
|
/**
|
|
812
1092
|
* Returns the wrapper of the first Form that matches the specified CSS selector.
|
|
813
1093
|
* If no CSS selector is specified, returns the wrapper of the first Form.
|
|
@@ -826,6 +1106,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
826
1106
|
* @returns {Array<FormWrapper>}
|
|
827
1107
|
*/
|
|
828
1108
|
findAllForms(selector?: string): Array<FormWrapper>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Returns the wrapper of the closest parent Form for the current element,
|
|
1111
|
+
* or the element itself if it is an instance of Form.
|
|
1112
|
+
* If no Form is found, returns `null`.
|
|
1113
|
+
*
|
|
1114
|
+
* @returns {FormWrapper | null}
|
|
1115
|
+
*/
|
|
1116
|
+
findClosestForm(): FormWrapper | null;
|
|
829
1117
|
/**
|
|
830
1118
|
* Returns the wrapper of the first FormField that matches the specified CSS selector.
|
|
831
1119
|
* If no CSS selector is specified, returns the wrapper of the first FormField.
|
|
@@ -844,6 +1132,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
844
1132
|
* @returns {Array<FormFieldWrapper>}
|
|
845
1133
|
*/
|
|
846
1134
|
findAllFormFields(selector?: string): Array<FormFieldWrapper>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Returns the wrapper of the closest parent FormField for the current element,
|
|
1137
|
+
* or the element itself if it is an instance of FormField.
|
|
1138
|
+
* If no FormField is found, returns `null`.
|
|
1139
|
+
*
|
|
1140
|
+
* @returns {FormFieldWrapper | null}
|
|
1141
|
+
*/
|
|
1142
|
+
findClosestFormField(): FormFieldWrapper | null;
|
|
847
1143
|
/**
|
|
848
1144
|
* Returns the wrapper of the first Grid that matches the specified CSS selector.
|
|
849
1145
|
* If no CSS selector is specified, returns the wrapper of the first Grid.
|
|
@@ -862,6 +1158,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
862
1158
|
* @returns {Array<GridWrapper>}
|
|
863
1159
|
*/
|
|
864
1160
|
findAllGrids(selector?: string): Array<GridWrapper>;
|
|
1161
|
+
/**
|
|
1162
|
+
* Returns the wrapper of the closest parent Grid for the current element,
|
|
1163
|
+
* or the element itself if it is an instance of Grid.
|
|
1164
|
+
* If no Grid is found, returns `null`.
|
|
1165
|
+
*
|
|
1166
|
+
* @returns {GridWrapper | null}
|
|
1167
|
+
*/
|
|
1168
|
+
findClosestGrid(): GridWrapper | null;
|
|
865
1169
|
/**
|
|
866
1170
|
* Returns the wrapper of the first Header that matches the specified CSS selector.
|
|
867
1171
|
* If no CSS selector is specified, returns the wrapper of the first Header.
|
|
@@ -880,6 +1184,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
880
1184
|
* @returns {Array<HeaderWrapper>}
|
|
881
1185
|
*/
|
|
882
1186
|
findAllHeaders(selector?: string): Array<HeaderWrapper>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Returns the wrapper of the closest parent Header for the current element,
|
|
1189
|
+
* or the element itself if it is an instance of Header.
|
|
1190
|
+
* If no Header is found, returns `null`.
|
|
1191
|
+
*
|
|
1192
|
+
* @returns {HeaderWrapper | null}
|
|
1193
|
+
*/
|
|
1194
|
+
findClosestHeader(): HeaderWrapper | null;
|
|
883
1195
|
/**
|
|
884
1196
|
* Returns the wrapper of the first HelpPanel that matches the specified CSS selector.
|
|
885
1197
|
* If no CSS selector is specified, returns the wrapper of the first HelpPanel.
|
|
@@ -898,6 +1210,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
898
1210
|
* @returns {Array<HelpPanelWrapper>}
|
|
899
1211
|
*/
|
|
900
1212
|
findAllHelpPanels(selector?: string): Array<HelpPanelWrapper>;
|
|
1213
|
+
/**
|
|
1214
|
+
* Returns the wrapper of the closest parent HelpPanel for the current element,
|
|
1215
|
+
* or the element itself if it is an instance of HelpPanel.
|
|
1216
|
+
* If no HelpPanel is found, returns `null`.
|
|
1217
|
+
*
|
|
1218
|
+
* @returns {HelpPanelWrapper | null}
|
|
1219
|
+
*/
|
|
1220
|
+
findClosestHelpPanel(): HelpPanelWrapper | null;
|
|
901
1221
|
/**
|
|
902
1222
|
* Returns the wrapper of the first Hotspot that matches the specified CSS selector.
|
|
903
1223
|
* If no CSS selector is specified, returns the wrapper of the first Hotspot.
|
|
@@ -916,6 +1236,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
916
1236
|
* @returns {Array<HotspotWrapper>}
|
|
917
1237
|
*/
|
|
918
1238
|
findAllHotspots(selector?: string): Array<HotspotWrapper>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Returns the wrapper of the closest parent Hotspot for the current element,
|
|
1241
|
+
* or the element itself if it is an instance of Hotspot.
|
|
1242
|
+
* If no Hotspot is found, returns `null`.
|
|
1243
|
+
*
|
|
1244
|
+
* @returns {HotspotWrapper | null}
|
|
1245
|
+
*/
|
|
1246
|
+
findClosestHotspot(): HotspotWrapper | null;
|
|
919
1247
|
/**
|
|
920
1248
|
* Returns the wrapper of the first Icon that matches the specified CSS selector.
|
|
921
1249
|
* If no CSS selector is specified, returns the wrapper of the first Icon.
|
|
@@ -934,6 +1262,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
934
1262
|
* @returns {Array<IconWrapper>}
|
|
935
1263
|
*/
|
|
936
1264
|
findAllIcons(selector?: string): Array<IconWrapper>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Returns the wrapper of the closest parent Icon for the current element,
|
|
1267
|
+
* or the element itself if it is an instance of Icon.
|
|
1268
|
+
* If no Icon is found, returns `null`.
|
|
1269
|
+
*
|
|
1270
|
+
* @returns {IconWrapper | null}
|
|
1271
|
+
*/
|
|
1272
|
+
findClosestIcon(): IconWrapper | null;
|
|
937
1273
|
/**
|
|
938
1274
|
* Returns the wrapper of the first Input that matches the specified CSS selector.
|
|
939
1275
|
* If no CSS selector is specified, returns the wrapper of the first Input.
|
|
@@ -952,6 +1288,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
952
1288
|
* @returns {Array<InputWrapper>}
|
|
953
1289
|
*/
|
|
954
1290
|
findAllInputs(selector?: string): Array<InputWrapper>;
|
|
1291
|
+
/**
|
|
1292
|
+
* Returns the wrapper of the closest parent Input for the current element,
|
|
1293
|
+
* or the element itself if it is an instance of Input.
|
|
1294
|
+
* If no Input is found, returns `null`.
|
|
1295
|
+
*
|
|
1296
|
+
* @returns {InputWrapper | null}
|
|
1297
|
+
*/
|
|
1298
|
+
findClosestInput(): InputWrapper | null;
|
|
955
1299
|
/**
|
|
956
1300
|
* Returns the wrapper of the first KeyValuePairs that matches the specified CSS selector.
|
|
957
1301
|
* If no CSS selector is specified, returns the wrapper of the first KeyValuePairs.
|
|
@@ -970,6 +1314,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
970
1314
|
* @returns {Array<KeyValuePairsWrapper>}
|
|
971
1315
|
*/
|
|
972
1316
|
findAllKeyValuePairs(selector?: string): Array<KeyValuePairsWrapper>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Returns the wrapper of the closest parent KeyValuePairs for the current element,
|
|
1319
|
+
* or the element itself if it is an instance of KeyValuePairs.
|
|
1320
|
+
* If no KeyValuePairs is found, returns `null`.
|
|
1321
|
+
*
|
|
1322
|
+
* @returns {KeyValuePairsWrapper | null}
|
|
1323
|
+
*/
|
|
1324
|
+
findClosestKeyValuePairs(): KeyValuePairsWrapper | null;
|
|
973
1325
|
/**
|
|
974
1326
|
* Returns the wrapper of the first LineChart that matches the specified CSS selector.
|
|
975
1327
|
* If no CSS selector is specified, returns the wrapper of the first LineChart.
|
|
@@ -988,6 +1340,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
988
1340
|
* @returns {Array<LineChartWrapper>}
|
|
989
1341
|
*/
|
|
990
1342
|
findAllLineCharts(selector?: string): Array<LineChartWrapper>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Returns the wrapper of the closest parent LineChart for the current element,
|
|
1345
|
+
* or the element itself if it is an instance of LineChart.
|
|
1346
|
+
* If no LineChart is found, returns `null`.
|
|
1347
|
+
*
|
|
1348
|
+
* @returns {LineChartWrapper | null}
|
|
1349
|
+
*/
|
|
1350
|
+
findClosestLineChart(): LineChartWrapper | null;
|
|
991
1351
|
/**
|
|
992
1352
|
* Returns the wrapper of the first Link that matches the specified CSS selector.
|
|
993
1353
|
* If no CSS selector is specified, returns the wrapper of the first Link.
|
|
@@ -1006,6 +1366,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1006
1366
|
* @returns {Array<LinkWrapper>}
|
|
1007
1367
|
*/
|
|
1008
1368
|
findAllLinks(selector?: string): Array<LinkWrapper>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Returns the wrapper of the closest parent Link for the current element,
|
|
1371
|
+
* or the element itself if it is an instance of Link.
|
|
1372
|
+
* If no Link is found, returns `null`.
|
|
1373
|
+
*
|
|
1374
|
+
* @returns {LinkWrapper | null}
|
|
1375
|
+
*/
|
|
1376
|
+
findClosestLink(): LinkWrapper | null;
|
|
1009
1377
|
/**
|
|
1010
1378
|
* Returns the wrapper of the first List that matches the specified CSS selector.
|
|
1011
1379
|
* If no CSS selector is specified, returns the wrapper of the first List.
|
|
@@ -1024,6 +1392,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1024
1392
|
* @returns {Array<ListWrapper>}
|
|
1025
1393
|
*/
|
|
1026
1394
|
findAllLists(selector?: string): Array<ListWrapper>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Returns the wrapper of the closest parent List for the current element,
|
|
1397
|
+
* or the element itself if it is an instance of List.
|
|
1398
|
+
* If no List is found, returns `null`.
|
|
1399
|
+
*
|
|
1400
|
+
* @returns {ListWrapper | null}
|
|
1401
|
+
*/
|
|
1402
|
+
findClosestList(): ListWrapper | null;
|
|
1027
1403
|
/**
|
|
1028
1404
|
* Returns the wrapper of the first LiveRegion that matches the specified CSS selector.
|
|
1029
1405
|
* If no CSS selector is specified, returns the wrapper of the first LiveRegion.
|
|
@@ -1042,6 +1418,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1042
1418
|
* @returns {Array<LiveRegionWrapper>}
|
|
1043
1419
|
*/
|
|
1044
1420
|
findAllLiveRegions(selector?: string): Array<LiveRegionWrapper>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Returns the wrapper of the closest parent LiveRegion for the current element,
|
|
1423
|
+
* or the element itself if it is an instance of LiveRegion.
|
|
1424
|
+
* If no LiveRegion is found, returns `null`.
|
|
1425
|
+
*
|
|
1426
|
+
* @returns {LiveRegionWrapper | null}
|
|
1427
|
+
*/
|
|
1428
|
+
findClosestLiveRegion(): LiveRegionWrapper | null;
|
|
1045
1429
|
/**
|
|
1046
1430
|
* Returns the wrapper of the first MixedLineBarChart that matches the specified CSS selector.
|
|
1047
1431
|
* If no CSS selector is specified, returns the wrapper of the first MixedLineBarChart.
|
|
@@ -1060,6 +1444,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1060
1444
|
* @returns {Array<MixedLineBarChartWrapper>}
|
|
1061
1445
|
*/
|
|
1062
1446
|
findAllMixedLineBarCharts(selector?: string): Array<MixedLineBarChartWrapper>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Returns the wrapper of the closest parent MixedLineBarChart for the current element,
|
|
1449
|
+
* or the element itself if it is an instance of MixedLineBarChart.
|
|
1450
|
+
* If no MixedLineBarChart is found, returns `null`.
|
|
1451
|
+
*
|
|
1452
|
+
* @returns {MixedLineBarChartWrapper | null}
|
|
1453
|
+
*/
|
|
1454
|
+
findClosestMixedLineBarChart(): MixedLineBarChartWrapper | null;
|
|
1063
1455
|
/**
|
|
1064
1456
|
* Returns the wrapper of the first Modal that matches the specified CSS selector.
|
|
1065
1457
|
* If no CSS selector is specified, returns the wrapper of the first Modal.
|
|
@@ -1078,6 +1470,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1078
1470
|
* @returns {Array<ModalWrapper>}
|
|
1079
1471
|
*/
|
|
1080
1472
|
findAllModals(selector?: string): Array<ModalWrapper>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Returns the wrapper of the closest parent Modal for the current element,
|
|
1475
|
+
* or the element itself if it is an instance of Modal.
|
|
1476
|
+
* If no Modal is found, returns `null`.
|
|
1477
|
+
*
|
|
1478
|
+
* @returns {ModalWrapper | null}
|
|
1479
|
+
*/
|
|
1480
|
+
findClosestModal(): ModalWrapper | null;
|
|
1081
1481
|
/**
|
|
1082
1482
|
* Returns the wrapper of the first Multiselect that matches the specified CSS selector.
|
|
1083
1483
|
* If no CSS selector is specified, returns the wrapper of the first Multiselect.
|
|
@@ -1096,6 +1496,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1096
1496
|
* @returns {Array<MultiselectWrapper>}
|
|
1097
1497
|
*/
|
|
1098
1498
|
findAllMultiselects(selector?: string): Array<MultiselectWrapper>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Returns the wrapper of the closest parent Multiselect for the current element,
|
|
1501
|
+
* or the element itself if it is an instance of Multiselect.
|
|
1502
|
+
* If no Multiselect is found, returns `null`.
|
|
1503
|
+
*
|
|
1504
|
+
* @returns {MultiselectWrapper | null}
|
|
1505
|
+
*/
|
|
1506
|
+
findClosestMultiselect(): MultiselectWrapper | null;
|
|
1099
1507
|
/**
|
|
1100
1508
|
* Returns the wrapper of the first NavigableGroup that matches the specified CSS selector.
|
|
1101
1509
|
* If no CSS selector is specified, returns the wrapper of the first NavigableGroup.
|
|
@@ -1114,6 +1522,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1114
1522
|
* @returns {Array<NavigableGroupWrapper>}
|
|
1115
1523
|
*/
|
|
1116
1524
|
findAllNavigableGroups(selector?: string): Array<NavigableGroupWrapper>;
|
|
1525
|
+
/**
|
|
1526
|
+
* Returns the wrapper of the closest parent NavigableGroup for the current element,
|
|
1527
|
+
* or the element itself if it is an instance of NavigableGroup.
|
|
1528
|
+
* If no NavigableGroup is found, returns `null`.
|
|
1529
|
+
*
|
|
1530
|
+
* @returns {NavigableGroupWrapper | null}
|
|
1531
|
+
*/
|
|
1532
|
+
findClosestNavigableGroup(): NavigableGroupWrapper | null;
|
|
1117
1533
|
/**
|
|
1118
1534
|
* Returns the wrapper of the first Pagination that matches the specified CSS selector.
|
|
1119
1535
|
* If no CSS selector is specified, returns the wrapper of the first Pagination.
|
|
@@ -1132,6 +1548,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1132
1548
|
* @returns {Array<PaginationWrapper>}
|
|
1133
1549
|
*/
|
|
1134
1550
|
findAllPaginations(selector?: string): Array<PaginationWrapper>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Returns the wrapper of the closest parent Pagination for the current element,
|
|
1553
|
+
* or the element itself if it is an instance of Pagination.
|
|
1554
|
+
* If no Pagination is found, returns `null`.
|
|
1555
|
+
*
|
|
1556
|
+
* @returns {PaginationWrapper | null}
|
|
1557
|
+
*/
|
|
1558
|
+
findClosestPagination(): PaginationWrapper | null;
|
|
1135
1559
|
/**
|
|
1136
1560
|
* Returns the wrapper of the first PanelLayout that matches the specified CSS selector.
|
|
1137
1561
|
* If no CSS selector is specified, returns the wrapper of the first PanelLayout.
|
|
@@ -1150,6 +1574,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1150
1574
|
* @returns {Array<PanelLayoutWrapper>}
|
|
1151
1575
|
*/
|
|
1152
1576
|
findAllPanelLayouts(selector?: string): Array<PanelLayoutWrapper>;
|
|
1577
|
+
/**
|
|
1578
|
+
* Returns the wrapper of the closest parent PanelLayout for the current element,
|
|
1579
|
+
* or the element itself if it is an instance of PanelLayout.
|
|
1580
|
+
* If no PanelLayout is found, returns `null`.
|
|
1581
|
+
*
|
|
1582
|
+
* @returns {PanelLayoutWrapper | null}
|
|
1583
|
+
*/
|
|
1584
|
+
findClosestPanelLayout(): PanelLayoutWrapper | null;
|
|
1153
1585
|
/**
|
|
1154
1586
|
* Returns the wrapper of the first PieChart that matches the specified CSS selector.
|
|
1155
1587
|
* If no CSS selector is specified, returns the wrapper of the first PieChart.
|
|
@@ -1168,6 +1600,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1168
1600
|
* @returns {Array<PieChartWrapper>}
|
|
1169
1601
|
*/
|
|
1170
1602
|
findAllPieCharts(selector?: string): Array<PieChartWrapper>;
|
|
1603
|
+
/**
|
|
1604
|
+
* Returns the wrapper of the closest parent PieChart for the current element,
|
|
1605
|
+
* or the element itself if it is an instance of PieChart.
|
|
1606
|
+
* If no PieChart is found, returns `null`.
|
|
1607
|
+
*
|
|
1608
|
+
* @returns {PieChartWrapper | null}
|
|
1609
|
+
*/
|
|
1610
|
+
findClosestPieChart(): PieChartWrapper | null;
|
|
1171
1611
|
/**
|
|
1172
1612
|
* Returns the wrapper of the first Popover that matches the specified CSS selector.
|
|
1173
1613
|
* If no CSS selector is specified, returns the wrapper of the first Popover.
|
|
@@ -1186,6 +1626,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1186
1626
|
* @returns {Array<PopoverWrapper>}
|
|
1187
1627
|
*/
|
|
1188
1628
|
findAllPopovers(selector?: string): Array<PopoverWrapper>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Returns the wrapper of the closest parent Popover for the current element,
|
|
1631
|
+
* or the element itself if it is an instance of Popover.
|
|
1632
|
+
* If no Popover is found, returns `null`.
|
|
1633
|
+
*
|
|
1634
|
+
* @returns {PopoverWrapper | null}
|
|
1635
|
+
*/
|
|
1636
|
+
findClosestPopover(): PopoverWrapper | null;
|
|
1189
1637
|
/**
|
|
1190
1638
|
* Returns the wrapper of the first ProgressBar that matches the specified CSS selector.
|
|
1191
1639
|
* If no CSS selector is specified, returns the wrapper of the first ProgressBar.
|
|
@@ -1204,6 +1652,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1204
1652
|
* @returns {Array<ProgressBarWrapper>}
|
|
1205
1653
|
*/
|
|
1206
1654
|
findAllProgressBars(selector?: string): Array<ProgressBarWrapper>;
|
|
1655
|
+
/**
|
|
1656
|
+
* Returns the wrapper of the closest parent ProgressBar for the current element,
|
|
1657
|
+
* or the element itself if it is an instance of ProgressBar.
|
|
1658
|
+
* If no ProgressBar is found, returns `null`.
|
|
1659
|
+
*
|
|
1660
|
+
* @returns {ProgressBarWrapper | null}
|
|
1661
|
+
*/
|
|
1662
|
+
findClosestProgressBar(): ProgressBarWrapper | null;
|
|
1207
1663
|
/**
|
|
1208
1664
|
* Returns the wrapper of the first PromptInput that matches the specified CSS selector.
|
|
1209
1665
|
* If no CSS selector is specified, returns the wrapper of the first PromptInput.
|
|
@@ -1222,6 +1678,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1222
1678
|
* @returns {Array<PromptInputWrapper>}
|
|
1223
1679
|
*/
|
|
1224
1680
|
findAllPromptInputs(selector?: string): Array<PromptInputWrapper>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Returns the wrapper of the closest parent PromptInput for the current element,
|
|
1683
|
+
* or the element itself if it is an instance of PromptInput.
|
|
1684
|
+
* If no PromptInput is found, returns `null`.
|
|
1685
|
+
*
|
|
1686
|
+
* @returns {PromptInputWrapper | null}
|
|
1687
|
+
*/
|
|
1688
|
+
findClosestPromptInput(): PromptInputWrapper | null;
|
|
1225
1689
|
/**
|
|
1226
1690
|
* Returns the wrapper of the first PropertyFilter that matches the specified CSS selector.
|
|
1227
1691
|
* If no CSS selector is specified, returns the wrapper of the first PropertyFilter.
|
|
@@ -1240,6 +1704,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1240
1704
|
* @returns {Array<PropertyFilterWrapper>}
|
|
1241
1705
|
*/
|
|
1242
1706
|
findAllPropertyFilters(selector?: string): Array<PropertyFilterWrapper>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Returns the wrapper of the closest parent PropertyFilter for the current element,
|
|
1709
|
+
* or the element itself if it is an instance of PropertyFilter.
|
|
1710
|
+
* If no PropertyFilter is found, returns `null`.
|
|
1711
|
+
*
|
|
1712
|
+
* @returns {PropertyFilterWrapper | null}
|
|
1713
|
+
*/
|
|
1714
|
+
findClosestPropertyFilter(): PropertyFilterWrapper | null;
|
|
1243
1715
|
/**
|
|
1244
1716
|
* Returns the wrapper of the first RadioButton that matches the specified CSS selector.
|
|
1245
1717
|
* If no CSS selector is specified, returns the wrapper of the first RadioButton.
|
|
@@ -1258,6 +1730,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1258
1730
|
* @returns {Array<RadioButtonWrapper>}
|
|
1259
1731
|
*/
|
|
1260
1732
|
findAllRadioButtons(selector?: string): Array<RadioButtonWrapper>;
|
|
1733
|
+
/**
|
|
1734
|
+
* Returns the wrapper of the closest parent RadioButton for the current element,
|
|
1735
|
+
* or the element itself if it is an instance of RadioButton.
|
|
1736
|
+
* If no RadioButton is found, returns `null`.
|
|
1737
|
+
*
|
|
1738
|
+
* @returns {RadioButtonWrapper | null}
|
|
1739
|
+
*/
|
|
1740
|
+
findClosestRadioButton(): RadioButtonWrapper | null;
|
|
1261
1741
|
/**
|
|
1262
1742
|
* Returns the wrapper of the first RadioGroup that matches the specified CSS selector.
|
|
1263
1743
|
* If no CSS selector is specified, returns the wrapper of the first RadioGroup.
|
|
@@ -1276,6 +1756,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1276
1756
|
* @returns {Array<RadioGroupWrapper>}
|
|
1277
1757
|
*/
|
|
1278
1758
|
findAllRadioGroups(selector?: string): Array<RadioGroupWrapper>;
|
|
1759
|
+
/**
|
|
1760
|
+
* Returns the wrapper of the closest parent RadioGroup for the current element,
|
|
1761
|
+
* or the element itself if it is an instance of RadioGroup.
|
|
1762
|
+
* If no RadioGroup is found, returns `null`.
|
|
1763
|
+
*
|
|
1764
|
+
* @returns {RadioGroupWrapper | null}
|
|
1765
|
+
*/
|
|
1766
|
+
findClosestRadioGroup(): RadioGroupWrapper | null;
|
|
1279
1767
|
/**
|
|
1280
1768
|
* Returns the wrapper of the first S3ResourceSelector that matches the specified CSS selector.
|
|
1281
1769
|
* If no CSS selector is specified, returns the wrapper of the first S3ResourceSelector.
|
|
@@ -1294,6 +1782,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1294
1782
|
* @returns {Array<S3ResourceSelectorWrapper>}
|
|
1295
1783
|
*/
|
|
1296
1784
|
findAllS3ResourceSelectors(selector?: string): Array<S3ResourceSelectorWrapper>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Returns the wrapper of the closest parent S3ResourceSelector for the current element,
|
|
1787
|
+
* or the element itself if it is an instance of S3ResourceSelector.
|
|
1788
|
+
* If no S3ResourceSelector is found, returns `null`.
|
|
1789
|
+
*
|
|
1790
|
+
* @returns {S3ResourceSelectorWrapper | null}
|
|
1791
|
+
*/
|
|
1792
|
+
findClosestS3ResourceSelector(): S3ResourceSelectorWrapper | null;
|
|
1297
1793
|
/**
|
|
1298
1794
|
* Returns the wrapper of the first SegmentedControl that matches the specified CSS selector.
|
|
1299
1795
|
* If no CSS selector is specified, returns the wrapper of the first SegmentedControl.
|
|
@@ -1312,6 +1808,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1312
1808
|
* @returns {Array<SegmentedControlWrapper>}
|
|
1313
1809
|
*/
|
|
1314
1810
|
findAllSegmentedControls(selector?: string): Array<SegmentedControlWrapper>;
|
|
1811
|
+
/**
|
|
1812
|
+
* Returns the wrapper of the closest parent SegmentedControl for the current element,
|
|
1813
|
+
* or the element itself if it is an instance of SegmentedControl.
|
|
1814
|
+
* If no SegmentedControl is found, returns `null`.
|
|
1815
|
+
*
|
|
1816
|
+
* @returns {SegmentedControlWrapper | null}
|
|
1817
|
+
*/
|
|
1818
|
+
findClosestSegmentedControl(): SegmentedControlWrapper | null;
|
|
1315
1819
|
/**
|
|
1316
1820
|
* Returns the wrapper of the first Select that matches the specified CSS selector.
|
|
1317
1821
|
* If no CSS selector is specified, returns the wrapper of the first Select.
|
|
@@ -1330,6 +1834,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1330
1834
|
* @returns {Array<SelectWrapper>}
|
|
1331
1835
|
*/
|
|
1332
1836
|
findAllSelects(selector?: string): Array<SelectWrapper>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Returns the wrapper of the closest parent Select for the current element,
|
|
1839
|
+
* or the element itself if it is an instance of Select.
|
|
1840
|
+
* If no Select is found, returns `null`.
|
|
1841
|
+
*
|
|
1842
|
+
* @returns {SelectWrapper | null}
|
|
1843
|
+
*/
|
|
1844
|
+
findClosestSelect(): SelectWrapper | null;
|
|
1333
1845
|
/**
|
|
1334
1846
|
* Returns the wrapper of the first SideNavigation that matches the specified CSS selector.
|
|
1335
1847
|
* If no CSS selector is specified, returns the wrapper of the first SideNavigation.
|
|
@@ -1348,6 +1860,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1348
1860
|
* @returns {Array<SideNavigationWrapper>}
|
|
1349
1861
|
*/
|
|
1350
1862
|
findAllSideNavigations(selector?: string): Array<SideNavigationWrapper>;
|
|
1863
|
+
/**
|
|
1864
|
+
* Returns the wrapper of the closest parent SideNavigation for the current element,
|
|
1865
|
+
* or the element itself if it is an instance of SideNavigation.
|
|
1866
|
+
* If no SideNavigation is found, returns `null`.
|
|
1867
|
+
*
|
|
1868
|
+
* @returns {SideNavigationWrapper | null}
|
|
1869
|
+
*/
|
|
1870
|
+
findClosestSideNavigation(): SideNavigationWrapper | null;
|
|
1351
1871
|
/**
|
|
1352
1872
|
* Returns the wrapper of the first Slider that matches the specified CSS selector.
|
|
1353
1873
|
* If no CSS selector is specified, returns the wrapper of the first Slider.
|
|
@@ -1366,6 +1886,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1366
1886
|
* @returns {Array<SliderWrapper>}
|
|
1367
1887
|
*/
|
|
1368
1888
|
findAllSliders(selector?: string): Array<SliderWrapper>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Returns the wrapper of the closest parent Slider for the current element,
|
|
1891
|
+
* or the element itself if it is an instance of Slider.
|
|
1892
|
+
* If no Slider is found, returns `null`.
|
|
1893
|
+
*
|
|
1894
|
+
* @returns {SliderWrapper | null}
|
|
1895
|
+
*/
|
|
1896
|
+
findClosestSlider(): SliderWrapper | null;
|
|
1369
1897
|
/**
|
|
1370
1898
|
* Returns the wrapper of the first SpaceBetween that matches the specified CSS selector.
|
|
1371
1899
|
* If no CSS selector is specified, returns the wrapper of the first SpaceBetween.
|
|
@@ -1384,6 +1912,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1384
1912
|
* @returns {Array<SpaceBetweenWrapper>}
|
|
1385
1913
|
*/
|
|
1386
1914
|
findAllSpaceBetweens(selector?: string): Array<SpaceBetweenWrapper>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Returns the wrapper of the closest parent SpaceBetween for the current element,
|
|
1917
|
+
* or the element itself if it is an instance of SpaceBetween.
|
|
1918
|
+
* If no SpaceBetween is found, returns `null`.
|
|
1919
|
+
*
|
|
1920
|
+
* @returns {SpaceBetweenWrapper | null}
|
|
1921
|
+
*/
|
|
1922
|
+
findClosestSpaceBetween(): SpaceBetweenWrapper | null;
|
|
1387
1923
|
/**
|
|
1388
1924
|
* Returns the wrapper of the first Spinner that matches the specified CSS selector.
|
|
1389
1925
|
* If no CSS selector is specified, returns the wrapper of the first Spinner.
|
|
@@ -1402,6 +1938,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1402
1938
|
* @returns {Array<SpinnerWrapper>}
|
|
1403
1939
|
*/
|
|
1404
1940
|
findAllSpinners(selector?: string): Array<SpinnerWrapper>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Returns the wrapper of the closest parent Spinner for the current element,
|
|
1943
|
+
* or the element itself if it is an instance of Spinner.
|
|
1944
|
+
* If no Spinner is found, returns `null`.
|
|
1945
|
+
*
|
|
1946
|
+
* @returns {SpinnerWrapper | null}
|
|
1947
|
+
*/
|
|
1948
|
+
findClosestSpinner(): SpinnerWrapper | null;
|
|
1405
1949
|
/**
|
|
1406
1950
|
* Returns the wrapper of the first SplitPanel that matches the specified CSS selector.
|
|
1407
1951
|
* If no CSS selector is specified, returns the wrapper of the first SplitPanel.
|
|
@@ -1420,6 +1964,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1420
1964
|
* @returns {Array<SplitPanelWrapper>}
|
|
1421
1965
|
*/
|
|
1422
1966
|
findAllSplitPanels(selector?: string): Array<SplitPanelWrapper>;
|
|
1967
|
+
/**
|
|
1968
|
+
* Returns the wrapper of the closest parent SplitPanel for the current element,
|
|
1969
|
+
* or the element itself if it is an instance of SplitPanel.
|
|
1970
|
+
* If no SplitPanel is found, returns `null`.
|
|
1971
|
+
*
|
|
1972
|
+
* @returns {SplitPanelWrapper | null}
|
|
1973
|
+
*/
|
|
1974
|
+
findClosestSplitPanel(): SplitPanelWrapper | null;
|
|
1423
1975
|
/**
|
|
1424
1976
|
* Returns the wrapper of the first StatusIndicator that matches the specified CSS selector.
|
|
1425
1977
|
* If no CSS selector is specified, returns the wrapper of the first StatusIndicator.
|
|
@@ -1438,6 +1990,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1438
1990
|
* @returns {Array<StatusIndicatorWrapper>}
|
|
1439
1991
|
*/
|
|
1440
1992
|
findAllStatusIndicators(selector?: string): Array<StatusIndicatorWrapper>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Returns the wrapper of the closest parent StatusIndicator for the current element,
|
|
1995
|
+
* or the element itself if it is an instance of StatusIndicator.
|
|
1996
|
+
* If no StatusIndicator is found, returns `null`.
|
|
1997
|
+
*
|
|
1998
|
+
* @returns {StatusIndicatorWrapper | null}
|
|
1999
|
+
*/
|
|
2000
|
+
findClosestStatusIndicator(): StatusIndicatorWrapper | null;
|
|
1441
2001
|
/**
|
|
1442
2002
|
* Returns the wrapper of the first Steps that matches the specified CSS selector.
|
|
1443
2003
|
* If no CSS selector is specified, returns the wrapper of the first Steps.
|
|
@@ -1456,6 +2016,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1456
2016
|
* @returns {Array<StepsWrapper>}
|
|
1457
2017
|
*/
|
|
1458
2018
|
findAllSteps(selector?: string): Array<StepsWrapper>;
|
|
2019
|
+
/**
|
|
2020
|
+
* Returns the wrapper of the closest parent Steps for the current element,
|
|
2021
|
+
* or the element itself if it is an instance of Steps.
|
|
2022
|
+
* If no Steps is found, returns `null`.
|
|
2023
|
+
*
|
|
2024
|
+
* @returns {StepsWrapper | null}
|
|
2025
|
+
*/
|
|
2026
|
+
findClosestSteps(): StepsWrapper | null;
|
|
1459
2027
|
/**
|
|
1460
2028
|
* Returns the wrapper of the first Table that matches the specified CSS selector.
|
|
1461
2029
|
* If no CSS selector is specified, returns the wrapper of the first Table.
|
|
@@ -1474,6 +2042,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1474
2042
|
* @returns {Array<TableWrapper>}
|
|
1475
2043
|
*/
|
|
1476
2044
|
findAllTables(selector?: string): Array<TableWrapper>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Returns the wrapper of the closest parent Table for the current element,
|
|
2047
|
+
* or the element itself if it is an instance of Table.
|
|
2048
|
+
* If no Table is found, returns `null`.
|
|
2049
|
+
*
|
|
2050
|
+
* @returns {TableWrapper | null}
|
|
2051
|
+
*/
|
|
2052
|
+
findClosestTable(): TableWrapper | null;
|
|
1477
2053
|
/**
|
|
1478
2054
|
* Returns the wrapper of the first Tabs that matches the specified CSS selector.
|
|
1479
2055
|
* If no CSS selector is specified, returns the wrapper of the first Tabs.
|
|
@@ -1492,6 +2068,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1492
2068
|
* @returns {Array<TabsWrapper>}
|
|
1493
2069
|
*/
|
|
1494
2070
|
findAllTabs(selector?: string): Array<TabsWrapper>;
|
|
2071
|
+
/**
|
|
2072
|
+
* Returns the wrapper of the closest parent Tabs for the current element,
|
|
2073
|
+
* or the element itself if it is an instance of Tabs.
|
|
2074
|
+
* If no Tabs is found, returns `null`.
|
|
2075
|
+
*
|
|
2076
|
+
* @returns {TabsWrapper | null}
|
|
2077
|
+
*/
|
|
2078
|
+
findClosestTabs(): TabsWrapper | null;
|
|
1495
2079
|
/**
|
|
1496
2080
|
* Returns the wrapper of the first TagEditor that matches the specified CSS selector.
|
|
1497
2081
|
* If no CSS selector is specified, returns the wrapper of the first TagEditor.
|
|
@@ -1510,6 +2094,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1510
2094
|
* @returns {Array<TagEditorWrapper>}
|
|
1511
2095
|
*/
|
|
1512
2096
|
findAllTagEditors(selector?: string): Array<TagEditorWrapper>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Returns the wrapper of the closest parent TagEditor for the current element,
|
|
2099
|
+
* or the element itself if it is an instance of TagEditor.
|
|
2100
|
+
* If no TagEditor is found, returns `null`.
|
|
2101
|
+
*
|
|
2102
|
+
* @returns {TagEditorWrapper | null}
|
|
2103
|
+
*/
|
|
2104
|
+
findClosestTagEditor(): TagEditorWrapper | null;
|
|
1513
2105
|
/**
|
|
1514
2106
|
* Returns the wrapper of the first TextContent that matches the specified CSS selector.
|
|
1515
2107
|
* If no CSS selector is specified, returns the wrapper of the first TextContent.
|
|
@@ -1528,6 +2120,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1528
2120
|
* @returns {Array<TextContentWrapper>}
|
|
1529
2121
|
*/
|
|
1530
2122
|
findAllTextContents(selector?: string): Array<TextContentWrapper>;
|
|
2123
|
+
/**
|
|
2124
|
+
* Returns the wrapper of the closest parent TextContent for the current element,
|
|
2125
|
+
* or the element itself if it is an instance of TextContent.
|
|
2126
|
+
* If no TextContent is found, returns `null`.
|
|
2127
|
+
*
|
|
2128
|
+
* @returns {TextContentWrapper | null}
|
|
2129
|
+
*/
|
|
2130
|
+
findClosestTextContent(): TextContentWrapper | null;
|
|
1531
2131
|
/**
|
|
1532
2132
|
* Returns the wrapper of the first TextFilter that matches the specified CSS selector.
|
|
1533
2133
|
* If no CSS selector is specified, returns the wrapper of the first TextFilter.
|
|
@@ -1546,6 +2146,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1546
2146
|
* @returns {Array<TextFilterWrapper>}
|
|
1547
2147
|
*/
|
|
1548
2148
|
findAllTextFilters(selector?: string): Array<TextFilterWrapper>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Returns the wrapper of the closest parent TextFilter for the current element,
|
|
2151
|
+
* or the element itself if it is an instance of TextFilter.
|
|
2152
|
+
* If no TextFilter is found, returns `null`.
|
|
2153
|
+
*
|
|
2154
|
+
* @returns {TextFilterWrapper | null}
|
|
2155
|
+
*/
|
|
2156
|
+
findClosestTextFilter(): TextFilterWrapper | null;
|
|
1549
2157
|
/**
|
|
1550
2158
|
* Returns the wrapper of the first Textarea that matches the specified CSS selector.
|
|
1551
2159
|
* If no CSS selector is specified, returns the wrapper of the first Textarea.
|
|
@@ -1564,6 +2172,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1564
2172
|
* @returns {Array<TextareaWrapper>}
|
|
1565
2173
|
*/
|
|
1566
2174
|
findAllTextareas(selector?: string): Array<TextareaWrapper>;
|
|
2175
|
+
/**
|
|
2176
|
+
* Returns the wrapper of the closest parent Textarea for the current element,
|
|
2177
|
+
* or the element itself if it is an instance of Textarea.
|
|
2178
|
+
* If no Textarea is found, returns `null`.
|
|
2179
|
+
*
|
|
2180
|
+
* @returns {TextareaWrapper | null}
|
|
2181
|
+
*/
|
|
2182
|
+
findClosestTextarea(): TextareaWrapper | null;
|
|
1567
2183
|
/**
|
|
1568
2184
|
* Returns the wrapper of the first Tiles that matches the specified CSS selector.
|
|
1569
2185
|
* If no CSS selector is specified, returns the wrapper of the first Tiles.
|
|
@@ -1582,6 +2198,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1582
2198
|
* @returns {Array<TilesWrapper>}
|
|
1583
2199
|
*/
|
|
1584
2200
|
findAllTiles(selector?: string): Array<TilesWrapper>;
|
|
2201
|
+
/**
|
|
2202
|
+
* Returns the wrapper of the closest parent Tiles for the current element,
|
|
2203
|
+
* or the element itself if it is an instance of Tiles.
|
|
2204
|
+
* If no Tiles is found, returns `null`.
|
|
2205
|
+
*
|
|
2206
|
+
* @returns {TilesWrapper | null}
|
|
2207
|
+
*/
|
|
2208
|
+
findClosestTiles(): TilesWrapper | null;
|
|
1585
2209
|
/**
|
|
1586
2210
|
* Returns the wrapper of the first TimeInput that matches the specified CSS selector.
|
|
1587
2211
|
* If no CSS selector is specified, returns the wrapper of the first TimeInput.
|
|
@@ -1600,6 +2224,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1600
2224
|
* @returns {Array<TimeInputWrapper>}
|
|
1601
2225
|
*/
|
|
1602
2226
|
findAllTimeInputs(selector?: string): Array<TimeInputWrapper>;
|
|
2227
|
+
/**
|
|
2228
|
+
* Returns the wrapper of the closest parent TimeInput for the current element,
|
|
2229
|
+
* or the element itself if it is an instance of TimeInput.
|
|
2230
|
+
* If no TimeInput is found, returns `null`.
|
|
2231
|
+
*
|
|
2232
|
+
* @returns {TimeInputWrapper | null}
|
|
2233
|
+
*/
|
|
2234
|
+
findClosestTimeInput(): TimeInputWrapper | null;
|
|
1603
2235
|
/**
|
|
1604
2236
|
* Returns the wrapper of the first Toggle that matches the specified CSS selector.
|
|
1605
2237
|
* If no CSS selector is specified, returns the wrapper of the first Toggle.
|
|
@@ -1618,6 +2250,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1618
2250
|
* @returns {Array<ToggleWrapper>}
|
|
1619
2251
|
*/
|
|
1620
2252
|
findAllToggles(selector?: string): Array<ToggleWrapper>;
|
|
2253
|
+
/**
|
|
2254
|
+
* Returns the wrapper of the closest parent Toggle for the current element,
|
|
2255
|
+
* or the element itself if it is an instance of Toggle.
|
|
2256
|
+
* If no Toggle is found, returns `null`.
|
|
2257
|
+
*
|
|
2258
|
+
* @returns {ToggleWrapper | null}
|
|
2259
|
+
*/
|
|
2260
|
+
findClosestToggle(): ToggleWrapper | null;
|
|
1621
2261
|
/**
|
|
1622
2262
|
* Returns the wrapper of the first ToggleButton that matches the specified CSS selector.
|
|
1623
2263
|
* If no CSS selector is specified, returns the wrapper of the first ToggleButton.
|
|
@@ -1636,6 +2276,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1636
2276
|
* @returns {Array<ToggleButtonWrapper>}
|
|
1637
2277
|
*/
|
|
1638
2278
|
findAllToggleButtons(selector?: string): Array<ToggleButtonWrapper>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Returns the wrapper of the closest parent ToggleButton for the current element,
|
|
2281
|
+
* or the element itself if it is an instance of ToggleButton.
|
|
2282
|
+
* If no ToggleButton is found, returns `null`.
|
|
2283
|
+
*
|
|
2284
|
+
* @returns {ToggleButtonWrapper | null}
|
|
2285
|
+
*/
|
|
2286
|
+
findClosestToggleButton(): ToggleButtonWrapper | null;
|
|
1639
2287
|
/**
|
|
1640
2288
|
* Returns the wrapper of the first Token that matches the specified CSS selector.
|
|
1641
2289
|
* If no CSS selector is specified, returns the wrapper of the first Token.
|
|
@@ -1654,6 +2302,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1654
2302
|
* @returns {Array<TokenWrapper>}
|
|
1655
2303
|
*/
|
|
1656
2304
|
findAllTokens(selector?: string): Array<TokenWrapper>;
|
|
2305
|
+
/**
|
|
2306
|
+
* Returns the wrapper of the closest parent Token for the current element,
|
|
2307
|
+
* or the element itself if it is an instance of Token.
|
|
2308
|
+
* If no Token is found, returns `null`.
|
|
2309
|
+
*
|
|
2310
|
+
* @returns {TokenWrapper | null}
|
|
2311
|
+
*/
|
|
2312
|
+
findClosestToken(): TokenWrapper | null;
|
|
1657
2313
|
/**
|
|
1658
2314
|
* Returns the wrapper of the first TokenGroup that matches the specified CSS selector.
|
|
1659
2315
|
* If no CSS selector is specified, returns the wrapper of the first TokenGroup.
|
|
@@ -1672,6 +2328,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1672
2328
|
* @returns {Array<TokenGroupWrapper>}
|
|
1673
2329
|
*/
|
|
1674
2330
|
findAllTokenGroups(selector?: string): Array<TokenGroupWrapper>;
|
|
2331
|
+
/**
|
|
2332
|
+
* Returns the wrapper of the closest parent TokenGroup for the current element,
|
|
2333
|
+
* or the element itself if it is an instance of TokenGroup.
|
|
2334
|
+
* If no TokenGroup is found, returns `null`.
|
|
2335
|
+
*
|
|
2336
|
+
* @returns {TokenGroupWrapper | null}
|
|
2337
|
+
*/
|
|
2338
|
+
findClosestTokenGroup(): TokenGroupWrapper | null;
|
|
1675
2339
|
/**
|
|
1676
2340
|
* Returns the wrapper of the first Tooltip that matches the specified CSS selector.
|
|
1677
2341
|
* If no CSS selector is specified, returns the wrapper of the first Tooltip.
|
|
@@ -1690,6 +2354,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1690
2354
|
* @returns {Array<TooltipWrapper>}
|
|
1691
2355
|
*/
|
|
1692
2356
|
findAllTooltips(selector?: string): Array<TooltipWrapper>;
|
|
2357
|
+
/**
|
|
2358
|
+
* Returns the wrapper of the closest parent Tooltip for the current element,
|
|
2359
|
+
* or the element itself if it is an instance of Tooltip.
|
|
2360
|
+
* If no Tooltip is found, returns `null`.
|
|
2361
|
+
*
|
|
2362
|
+
* @returns {TooltipWrapper | null}
|
|
2363
|
+
*/
|
|
2364
|
+
findClosestTooltip(): TooltipWrapper | null;
|
|
1693
2365
|
/**
|
|
1694
2366
|
* Returns the wrapper of the first TopNavigation that matches the specified CSS selector.
|
|
1695
2367
|
* If no CSS selector is specified, returns the wrapper of the first TopNavigation.
|
|
@@ -1708,6 +2380,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1708
2380
|
* @returns {Array<TopNavigationWrapper>}
|
|
1709
2381
|
*/
|
|
1710
2382
|
findAllTopNavigations(selector?: string): Array<TopNavigationWrapper>;
|
|
2383
|
+
/**
|
|
2384
|
+
* Returns the wrapper of the closest parent TopNavigation for the current element,
|
|
2385
|
+
* or the element itself if it is an instance of TopNavigation.
|
|
2386
|
+
* If no TopNavigation is found, returns `null`.
|
|
2387
|
+
*
|
|
2388
|
+
* @returns {TopNavigationWrapper | null}
|
|
2389
|
+
*/
|
|
2390
|
+
findClosestTopNavigation(): TopNavigationWrapper | null;
|
|
1711
2391
|
/**
|
|
1712
2392
|
* Returns the wrapper of the first TreeView that matches the specified CSS selector.
|
|
1713
2393
|
* If no CSS selector is specified, returns the wrapper of the first TreeView.
|
|
@@ -1726,6 +2406,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1726
2406
|
* @returns {Array<TreeViewWrapper>}
|
|
1727
2407
|
*/
|
|
1728
2408
|
findAllTreeViews(selector?: string): Array<TreeViewWrapper>;
|
|
2409
|
+
/**
|
|
2410
|
+
* Returns the wrapper of the closest parent TreeView for the current element,
|
|
2411
|
+
* or the element itself if it is an instance of TreeView.
|
|
2412
|
+
* If no TreeView is found, returns `null`.
|
|
2413
|
+
*
|
|
2414
|
+
* @returns {TreeViewWrapper | null}
|
|
2415
|
+
*/
|
|
2416
|
+
findClosestTreeView(): TreeViewWrapper | null;
|
|
1729
2417
|
/**
|
|
1730
2418
|
* Returns the wrapper of the first TutorialPanel that matches the specified CSS selector.
|
|
1731
2419
|
* If no CSS selector is specified, returns the wrapper of the first TutorialPanel.
|
|
@@ -1744,6 +2432,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1744
2432
|
* @returns {Array<TutorialPanelWrapper>}
|
|
1745
2433
|
*/
|
|
1746
2434
|
findAllTutorialPanels(selector?: string): Array<TutorialPanelWrapper>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Returns the wrapper of the closest parent TutorialPanel for the current element,
|
|
2437
|
+
* or the element itself if it is an instance of TutorialPanel.
|
|
2438
|
+
* If no TutorialPanel is found, returns `null`.
|
|
2439
|
+
*
|
|
2440
|
+
* @returns {TutorialPanelWrapper | null}
|
|
2441
|
+
*/
|
|
2442
|
+
findClosestTutorialPanel(): TutorialPanelWrapper | null;
|
|
1747
2443
|
/**
|
|
1748
2444
|
* Returns the wrapper of the first Wizard that matches the specified CSS selector.
|
|
1749
2445
|
* If no CSS selector is specified, returns the wrapper of the first Wizard.
|
|
@@ -1762,6 +2458,14 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
1762
2458
|
* @returns {Array<WizardWrapper>}
|
|
1763
2459
|
*/
|
|
1764
2460
|
findAllWizards(selector?: string): Array<WizardWrapper>;
|
|
2461
|
+
/**
|
|
2462
|
+
* Returns the wrapper of the closest parent Wizard for the current element,
|
|
2463
|
+
* or the element itself if it is an instance of Wizard.
|
|
2464
|
+
* If no Wizard is found, returns `null`.
|
|
2465
|
+
*
|
|
2466
|
+
* @returns {WizardWrapper | null}
|
|
2467
|
+
*/
|
|
2468
|
+
findClosestWizard(): WizardWrapper | null;
|
|
1765
2469
|
}
|
|
1766
2470
|
}
|
|
1767
2471
|
export default function wrapper(root?: Element): ElementWrapper<Element>;
|