@cloudscape-design/components-themeable 3.0.1249 → 3.0.1251
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/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
|
@@ -1240,6 +1240,446 @@ dom_1.ElementWrapper.prototype.findWizard = function (selector) {
|
|
|
1240
1240
|
dom_1.ElementWrapper.prototype.findAllWizards = function (selector) {
|
|
1241
1241
|
return this.findAllComponents(wizard_1.default, selector);
|
|
1242
1242
|
};
|
|
1243
|
+
dom_1.ElementWrapper.prototype.findClosestAlert = function () {
|
|
1244
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1245
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1246
|
+
return this.findClosestComponent(alert_1.default);
|
|
1247
|
+
};
|
|
1248
|
+
dom_1.ElementWrapper.prototype.findClosestAnchorNavigation = function () {
|
|
1249
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1250
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1251
|
+
return this.findClosestComponent(anchor_navigation_1.default);
|
|
1252
|
+
};
|
|
1253
|
+
dom_1.ElementWrapper.prototype.findClosestAnnotation = function () {
|
|
1254
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1255
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1256
|
+
return this.findClosestComponent(annotation_1.default);
|
|
1257
|
+
};
|
|
1258
|
+
dom_1.ElementWrapper.prototype.findClosestAppLayout = function () {
|
|
1259
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1260
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1261
|
+
return this.findClosestComponent(app_layout_1.default);
|
|
1262
|
+
};
|
|
1263
|
+
dom_1.ElementWrapper.prototype.findClosestAppLayoutToolbar = function () {
|
|
1264
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1265
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1266
|
+
return this.findClosestComponent(app_layout_toolbar_1.default);
|
|
1267
|
+
};
|
|
1268
|
+
dom_1.ElementWrapper.prototype.findClosestAreaChart = function () {
|
|
1269
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1270
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1271
|
+
return this.findClosestComponent(area_chart_1.default);
|
|
1272
|
+
};
|
|
1273
|
+
dom_1.ElementWrapper.prototype.findClosestAttributeEditor = function () {
|
|
1274
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1275
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1276
|
+
return this.findClosestComponent(attribute_editor_1.default);
|
|
1277
|
+
};
|
|
1278
|
+
dom_1.ElementWrapper.prototype.findClosestAutosuggest = function () {
|
|
1279
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1280
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1281
|
+
return this.findClosestComponent(autosuggest_1.default);
|
|
1282
|
+
};
|
|
1283
|
+
dom_1.ElementWrapper.prototype.findClosestBadge = function () {
|
|
1284
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1285
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1286
|
+
return this.findClosestComponent(badge_1.default);
|
|
1287
|
+
};
|
|
1288
|
+
dom_1.ElementWrapper.prototype.findClosestBarChart = function () {
|
|
1289
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1290
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1291
|
+
return this.findClosestComponent(bar_chart_1.default);
|
|
1292
|
+
};
|
|
1293
|
+
dom_1.ElementWrapper.prototype.findClosestBox = function () {
|
|
1294
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1295
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1296
|
+
return this.findClosestComponent(box_1.default);
|
|
1297
|
+
};
|
|
1298
|
+
dom_1.ElementWrapper.prototype.findClosestBreadcrumbGroup = function () {
|
|
1299
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1300
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1301
|
+
return this.findClosestComponent(breadcrumb_group_1.default);
|
|
1302
|
+
};
|
|
1303
|
+
dom_1.ElementWrapper.prototype.findClosestButton = function () {
|
|
1304
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1305
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1306
|
+
return this.findClosestComponent(button_1.default);
|
|
1307
|
+
};
|
|
1308
|
+
dom_1.ElementWrapper.prototype.findClosestButtonDropdown = function () {
|
|
1309
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1310
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1311
|
+
return this.findClosestComponent(button_dropdown_1.default);
|
|
1312
|
+
};
|
|
1313
|
+
dom_1.ElementWrapper.prototype.findClosestButtonGroup = function () {
|
|
1314
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1315
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1316
|
+
return this.findClosestComponent(button_group_1.default);
|
|
1317
|
+
};
|
|
1318
|
+
dom_1.ElementWrapper.prototype.findClosestCalendar = function () {
|
|
1319
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1320
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1321
|
+
return this.findClosestComponent(calendar_1.default);
|
|
1322
|
+
};
|
|
1323
|
+
dom_1.ElementWrapper.prototype.findClosestCards = function () {
|
|
1324
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1325
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1326
|
+
return this.findClosestComponent(cards_1.default);
|
|
1327
|
+
};
|
|
1328
|
+
dom_1.ElementWrapper.prototype.findClosestCheckbox = function () {
|
|
1329
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1330
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1331
|
+
return this.findClosestComponent(checkbox_1.default);
|
|
1332
|
+
};
|
|
1333
|
+
dom_1.ElementWrapper.prototype.findClosestCodeEditor = function () {
|
|
1334
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1335
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1336
|
+
return this.findClosestComponent(code_editor_1.default);
|
|
1337
|
+
};
|
|
1338
|
+
dom_1.ElementWrapper.prototype.findClosestCollectionPreferences = function () {
|
|
1339
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1340
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1341
|
+
return this.findClosestComponent(collection_preferences_1.default);
|
|
1342
|
+
};
|
|
1343
|
+
dom_1.ElementWrapper.prototype.findClosestColumnLayout = function () {
|
|
1344
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1345
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1346
|
+
return this.findClosestComponent(column_layout_1.default);
|
|
1347
|
+
};
|
|
1348
|
+
dom_1.ElementWrapper.prototype.findClosestContainer = function () {
|
|
1349
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1350
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1351
|
+
return this.findClosestComponent(container_1.default);
|
|
1352
|
+
};
|
|
1353
|
+
dom_1.ElementWrapper.prototype.findClosestContentLayout = function () {
|
|
1354
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1355
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1356
|
+
return this.findClosestComponent(content_layout_1.default);
|
|
1357
|
+
};
|
|
1358
|
+
dom_1.ElementWrapper.prototype.findClosestCopyToClipboard = function () {
|
|
1359
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1360
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1361
|
+
return this.findClosestComponent(copy_to_clipboard_1.default);
|
|
1362
|
+
};
|
|
1363
|
+
dom_1.ElementWrapper.prototype.findClosestDateInput = function () {
|
|
1364
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1365
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1366
|
+
return this.findClosestComponent(date_input_1.default);
|
|
1367
|
+
};
|
|
1368
|
+
dom_1.ElementWrapper.prototype.findClosestDatePicker = function () {
|
|
1369
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1370
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1371
|
+
return this.findClosestComponent(date_picker_1.default);
|
|
1372
|
+
};
|
|
1373
|
+
dom_1.ElementWrapper.prototype.findClosestDateRangePicker = function () {
|
|
1374
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1375
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1376
|
+
return this.findClosestComponent(date_range_picker_1.default);
|
|
1377
|
+
};
|
|
1378
|
+
dom_1.ElementWrapper.prototype.findClosestDrawer = function () {
|
|
1379
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1380
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1381
|
+
return this.findClosestComponent(drawer_1.default);
|
|
1382
|
+
};
|
|
1383
|
+
dom_1.ElementWrapper.prototype.findClosestErrorBoundary = function () {
|
|
1384
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1385
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1386
|
+
return this.findClosestComponent(error_boundary_1.default);
|
|
1387
|
+
};
|
|
1388
|
+
dom_1.ElementWrapper.prototype.findClosestExpandableSection = function () {
|
|
1389
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1390
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1391
|
+
return this.findClosestComponent(expandable_section_1.default);
|
|
1392
|
+
};
|
|
1393
|
+
dom_1.ElementWrapper.prototype.findClosestFileDropzone = function () {
|
|
1394
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1395
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1396
|
+
return this.findClosestComponent(file_dropzone_1.default);
|
|
1397
|
+
};
|
|
1398
|
+
dom_1.ElementWrapper.prototype.findClosestFileInput = function () {
|
|
1399
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1400
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1401
|
+
return this.findClosestComponent(file_input_1.default);
|
|
1402
|
+
};
|
|
1403
|
+
dom_1.ElementWrapper.prototype.findClosestFileTokenGroup = function () {
|
|
1404
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1405
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1406
|
+
return this.findClosestComponent(file_token_group_1.default);
|
|
1407
|
+
};
|
|
1408
|
+
dom_1.ElementWrapper.prototype.findClosestFileUpload = function () {
|
|
1409
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1410
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1411
|
+
return this.findClosestComponent(file_upload_1.default);
|
|
1412
|
+
};
|
|
1413
|
+
dom_1.ElementWrapper.prototype.findClosestFlashbar = function () {
|
|
1414
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1415
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1416
|
+
return this.findClosestComponent(flashbar_1.default);
|
|
1417
|
+
};
|
|
1418
|
+
dom_1.ElementWrapper.prototype.findClosestForm = function () {
|
|
1419
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1420
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1421
|
+
return this.findClosestComponent(form_1.default);
|
|
1422
|
+
};
|
|
1423
|
+
dom_1.ElementWrapper.prototype.findClosestFormField = function () {
|
|
1424
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1425
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1426
|
+
return this.findClosestComponent(form_field_1.default);
|
|
1427
|
+
};
|
|
1428
|
+
dom_1.ElementWrapper.prototype.findClosestGrid = function () {
|
|
1429
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1430
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1431
|
+
return this.findClosestComponent(grid_1.default);
|
|
1432
|
+
};
|
|
1433
|
+
dom_1.ElementWrapper.prototype.findClosestHeader = function () {
|
|
1434
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1435
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1436
|
+
return this.findClosestComponent(header_1.default);
|
|
1437
|
+
};
|
|
1438
|
+
dom_1.ElementWrapper.prototype.findClosestHelpPanel = function () {
|
|
1439
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1440
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1441
|
+
return this.findClosestComponent(help_panel_1.default);
|
|
1442
|
+
};
|
|
1443
|
+
dom_1.ElementWrapper.prototype.findClosestHotspot = function () {
|
|
1444
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1445
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1446
|
+
return this.findClosestComponent(hotspot_1.default);
|
|
1447
|
+
};
|
|
1448
|
+
dom_1.ElementWrapper.prototype.findClosestIcon = function () {
|
|
1449
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1450
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1451
|
+
return this.findClosestComponent(icon_1.default);
|
|
1452
|
+
};
|
|
1453
|
+
dom_1.ElementWrapper.prototype.findClosestInput = function () {
|
|
1454
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1455
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1456
|
+
return this.findClosestComponent(input_1.default);
|
|
1457
|
+
};
|
|
1458
|
+
dom_1.ElementWrapper.prototype.findClosestKeyValuePairs = function () {
|
|
1459
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1460
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1461
|
+
return this.findClosestComponent(key_value_pairs_1.default);
|
|
1462
|
+
};
|
|
1463
|
+
dom_1.ElementWrapper.prototype.findClosestLineChart = function () {
|
|
1464
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1465
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1466
|
+
return this.findClosestComponent(line_chart_1.default);
|
|
1467
|
+
};
|
|
1468
|
+
dom_1.ElementWrapper.prototype.findClosestLink = function () {
|
|
1469
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1470
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1471
|
+
return this.findClosestComponent(link_1.default);
|
|
1472
|
+
};
|
|
1473
|
+
dom_1.ElementWrapper.prototype.findClosestList = function () {
|
|
1474
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1475
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1476
|
+
return this.findClosestComponent(list_1.default);
|
|
1477
|
+
};
|
|
1478
|
+
dom_1.ElementWrapper.prototype.findClosestLiveRegion = function () {
|
|
1479
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1480
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1481
|
+
return this.findClosestComponent(live_region_1.default);
|
|
1482
|
+
};
|
|
1483
|
+
dom_1.ElementWrapper.prototype.findClosestMixedLineBarChart = function () {
|
|
1484
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1485
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1486
|
+
return this.findClosestComponent(mixed_line_bar_chart_1.default);
|
|
1487
|
+
};
|
|
1488
|
+
dom_1.ElementWrapper.prototype.findClosestModal = function () {
|
|
1489
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1490
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1491
|
+
return this.findClosestComponent(modal_1.default);
|
|
1492
|
+
};
|
|
1493
|
+
dom_1.ElementWrapper.prototype.findClosestMultiselect = function () {
|
|
1494
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1495
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1496
|
+
return this.findClosestComponent(multiselect_1.default);
|
|
1497
|
+
};
|
|
1498
|
+
dom_1.ElementWrapper.prototype.findClosestNavigableGroup = function () {
|
|
1499
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1500
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1501
|
+
return this.findClosestComponent(navigable_group_1.default);
|
|
1502
|
+
};
|
|
1503
|
+
dom_1.ElementWrapper.prototype.findClosestPagination = function () {
|
|
1504
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1505
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1506
|
+
return this.findClosestComponent(pagination_1.default);
|
|
1507
|
+
};
|
|
1508
|
+
dom_1.ElementWrapper.prototype.findClosestPanelLayout = function () {
|
|
1509
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1510
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1511
|
+
return this.findClosestComponent(panel_layout_1.default);
|
|
1512
|
+
};
|
|
1513
|
+
dom_1.ElementWrapper.prototype.findClosestPieChart = function () {
|
|
1514
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1515
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1516
|
+
return this.findClosestComponent(pie_chart_1.default);
|
|
1517
|
+
};
|
|
1518
|
+
dom_1.ElementWrapper.prototype.findClosestPopover = function () {
|
|
1519
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1520
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1521
|
+
return this.findClosestComponent(popover_1.default);
|
|
1522
|
+
};
|
|
1523
|
+
dom_1.ElementWrapper.prototype.findClosestProgressBar = function () {
|
|
1524
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1525
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1526
|
+
return this.findClosestComponent(progress_bar_1.default);
|
|
1527
|
+
};
|
|
1528
|
+
dom_1.ElementWrapper.prototype.findClosestPromptInput = function () {
|
|
1529
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1530
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1531
|
+
return this.findClosestComponent(prompt_input_1.default);
|
|
1532
|
+
};
|
|
1533
|
+
dom_1.ElementWrapper.prototype.findClosestPropertyFilter = function () {
|
|
1534
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1535
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1536
|
+
return this.findClosestComponent(property_filter_1.default);
|
|
1537
|
+
};
|
|
1538
|
+
dom_1.ElementWrapper.prototype.findClosestRadioButton = function () {
|
|
1539
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1540
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1541
|
+
return this.findClosestComponent(radio_button_1.default);
|
|
1542
|
+
};
|
|
1543
|
+
dom_1.ElementWrapper.prototype.findClosestRadioGroup = function () {
|
|
1544
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1545
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1546
|
+
return this.findClosestComponent(radio_group_1.default);
|
|
1547
|
+
};
|
|
1548
|
+
dom_1.ElementWrapper.prototype.findClosestS3ResourceSelector = function () {
|
|
1549
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1550
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1551
|
+
return this.findClosestComponent(s3_resource_selector_1.default);
|
|
1552
|
+
};
|
|
1553
|
+
dom_1.ElementWrapper.prototype.findClosestSegmentedControl = function () {
|
|
1554
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1555
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1556
|
+
return this.findClosestComponent(segmented_control_1.default);
|
|
1557
|
+
};
|
|
1558
|
+
dom_1.ElementWrapper.prototype.findClosestSelect = function () {
|
|
1559
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1560
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1561
|
+
return this.findClosestComponent(select_1.default);
|
|
1562
|
+
};
|
|
1563
|
+
dom_1.ElementWrapper.prototype.findClosestSideNavigation = function () {
|
|
1564
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1565
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1566
|
+
return this.findClosestComponent(side_navigation_1.default);
|
|
1567
|
+
};
|
|
1568
|
+
dom_1.ElementWrapper.prototype.findClosestSlider = function () {
|
|
1569
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1570
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1571
|
+
return this.findClosestComponent(slider_1.default);
|
|
1572
|
+
};
|
|
1573
|
+
dom_1.ElementWrapper.prototype.findClosestSpaceBetween = function () {
|
|
1574
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1575
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1576
|
+
return this.findClosestComponent(space_between_1.default);
|
|
1577
|
+
};
|
|
1578
|
+
dom_1.ElementWrapper.prototype.findClosestSpinner = function () {
|
|
1579
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1580
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1581
|
+
return this.findClosestComponent(spinner_1.default);
|
|
1582
|
+
};
|
|
1583
|
+
dom_1.ElementWrapper.prototype.findClosestSplitPanel = function () {
|
|
1584
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1585
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1586
|
+
return this.findClosestComponent(split_panel_1.default);
|
|
1587
|
+
};
|
|
1588
|
+
dom_1.ElementWrapper.prototype.findClosestStatusIndicator = function () {
|
|
1589
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1590
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1591
|
+
return this.findClosestComponent(status_indicator_1.default);
|
|
1592
|
+
};
|
|
1593
|
+
dom_1.ElementWrapper.prototype.findClosestSteps = function () {
|
|
1594
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1595
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1596
|
+
return this.findClosestComponent(steps_1.default);
|
|
1597
|
+
};
|
|
1598
|
+
dom_1.ElementWrapper.prototype.findClosestTable = function () {
|
|
1599
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1600
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1601
|
+
return this.findClosestComponent(table_1.default);
|
|
1602
|
+
};
|
|
1603
|
+
dom_1.ElementWrapper.prototype.findClosestTabs = function () {
|
|
1604
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1605
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1606
|
+
return this.findClosestComponent(tabs_1.default);
|
|
1607
|
+
};
|
|
1608
|
+
dom_1.ElementWrapper.prototype.findClosestTagEditor = function () {
|
|
1609
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1610
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1611
|
+
return this.findClosestComponent(tag_editor_1.default);
|
|
1612
|
+
};
|
|
1613
|
+
dom_1.ElementWrapper.prototype.findClosestTextContent = function () {
|
|
1614
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1615
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1616
|
+
return this.findClosestComponent(text_content_1.default);
|
|
1617
|
+
};
|
|
1618
|
+
dom_1.ElementWrapper.prototype.findClosestTextFilter = function () {
|
|
1619
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1620
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1621
|
+
return this.findClosestComponent(text_filter_1.default);
|
|
1622
|
+
};
|
|
1623
|
+
dom_1.ElementWrapper.prototype.findClosestTextarea = function () {
|
|
1624
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1625
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1626
|
+
return this.findClosestComponent(textarea_1.default);
|
|
1627
|
+
};
|
|
1628
|
+
dom_1.ElementWrapper.prototype.findClosestTiles = function () {
|
|
1629
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1630
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1631
|
+
return this.findClosestComponent(tiles_1.default);
|
|
1632
|
+
};
|
|
1633
|
+
dom_1.ElementWrapper.prototype.findClosestTimeInput = function () {
|
|
1634
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1635
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1636
|
+
return this.findClosestComponent(time_input_1.default);
|
|
1637
|
+
};
|
|
1638
|
+
dom_1.ElementWrapper.prototype.findClosestToggle = function () {
|
|
1639
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1640
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1641
|
+
return this.findClosestComponent(toggle_1.default);
|
|
1642
|
+
};
|
|
1643
|
+
dom_1.ElementWrapper.prototype.findClosestToggleButton = function () {
|
|
1644
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1645
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1646
|
+
return this.findClosestComponent(toggle_button_1.default);
|
|
1647
|
+
};
|
|
1648
|
+
dom_1.ElementWrapper.prototype.findClosestToken = function () {
|
|
1649
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1650
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1651
|
+
return this.findClosestComponent(token_1.default);
|
|
1652
|
+
};
|
|
1653
|
+
dom_1.ElementWrapper.prototype.findClosestTokenGroup = function () {
|
|
1654
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1655
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1656
|
+
return this.findClosestComponent(token_group_1.default);
|
|
1657
|
+
};
|
|
1658
|
+
dom_1.ElementWrapper.prototype.findClosestTooltip = function () {
|
|
1659
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1660
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1661
|
+
return this.findClosestComponent(tooltip_1.default);
|
|
1662
|
+
};
|
|
1663
|
+
dom_1.ElementWrapper.prototype.findClosestTopNavigation = function () {
|
|
1664
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1665
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1666
|
+
return this.findClosestComponent(top_navigation_1.default);
|
|
1667
|
+
};
|
|
1668
|
+
dom_1.ElementWrapper.prototype.findClosestTreeView = function () {
|
|
1669
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1670
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1671
|
+
return this.findClosestComponent(tree_view_1.default);
|
|
1672
|
+
};
|
|
1673
|
+
dom_1.ElementWrapper.prototype.findClosestTutorialPanel = function () {
|
|
1674
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1675
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1676
|
+
return this.findClosestComponent(tutorial_panel_1.default);
|
|
1677
|
+
};
|
|
1678
|
+
dom_1.ElementWrapper.prototype.findClosestWizard = function () {
|
|
1679
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
1680
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
1681
|
+
return this.findClosestComponent(wizard_1.default);
|
|
1682
|
+
};
|
|
1243
1683
|
function wrapper(root = document.body) {
|
|
1244
1684
|
if (document && document.body && !document.body.contains(root)) {
|
|
1245
1685
|
console.warn('[AwsUi] [test-utils] provided element is not part of the document body, interactions may work incorrectly');
|