@ui5/webcomponents-base 2.23.0 → 2.23.1

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.
@@ -1001,6 +1001,81 @@
1001
1001
  }
1002
1002
  ]
1003
1003
  },
1004
+ {
1005
+ "kind": "javascript-module",
1006
+ "path": "dist/animations/AnimationQueue.js",
1007
+ "declarations": [],
1008
+ "exports": [
1009
+ {
1010
+ "kind": "js",
1011
+ "name": "default",
1012
+ "declaration": {
1013
+ "name": "AnimationQueue",
1014
+ "module": "dist/animations/AnimationQueue.js"
1015
+ }
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "kind": "javascript-module",
1021
+ "path": "dist/animations/animate.js",
1022
+ "declarations": [],
1023
+ "exports": [
1024
+ {
1025
+ "kind": "js",
1026
+ "name": "default",
1027
+ "declaration": {
1028
+ "name": "animate",
1029
+ "module": "dist/animations/animate.js"
1030
+ }
1031
+ }
1032
+ ]
1033
+ },
1034
+ {
1035
+ "kind": "javascript-module",
1036
+ "path": "dist/animations/scroll.js",
1037
+ "declarations": [],
1038
+ "exports": [
1039
+ {
1040
+ "kind": "js",
1041
+ "name": "default",
1042
+ "declaration": {
1043
+ "name": "scroll",
1044
+ "module": "dist/animations/scroll.js"
1045
+ }
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "kind": "javascript-module",
1051
+ "path": "dist/animations/slideDown.js",
1052
+ "declarations": [],
1053
+ "exports": [
1054
+ {
1055
+ "kind": "js",
1056
+ "name": "default",
1057
+ "declaration": {
1058
+ "name": "slideDown",
1059
+ "module": "dist/animations/slideDown.js"
1060
+ }
1061
+ }
1062
+ ]
1063
+ },
1064
+ {
1065
+ "kind": "javascript-module",
1066
+ "path": "dist/animations/slideUp.js",
1067
+ "declarations": [],
1068
+ "exports": [
1069
+ {
1070
+ "kind": "js",
1071
+ "name": "default",
1072
+ "declaration": {
1073
+ "name": "slideUp",
1074
+ "module": "dist/animations/slideUp.js"
1075
+ }
1076
+ }
1077
+ ]
1078
+ },
1004
1079
  {
1005
1080
  "kind": "javascript-module",
1006
1081
  "path": "dist/asset-registries/Icons.js",
@@ -1117,244 +1192,286 @@
1117
1192
  },
1118
1193
  {
1119
1194
  "kind": "javascript-module",
1120
- "path": "dist/animations/AnimationQueue.js",
1195
+ "path": "dist/converters/DOMReference.js",
1121
1196
  "declarations": [],
1122
1197
  "exports": [
1123
1198
  {
1124
1199
  "kind": "js",
1125
1200
  "name": "default",
1126
1201
  "declaration": {
1127
- "name": "AnimationQueue",
1128
- "module": "dist/animations/AnimationQueue.js"
1202
+ "name": "DOMReferenceConverter",
1203
+ "module": "dist/converters/DOMReference.js"
1129
1204
  }
1130
1205
  }
1131
1206
  ]
1132
1207
  },
1133
1208
  {
1134
1209
  "kind": "javascript-module",
1135
- "path": "dist/animations/animate.js",
1210
+ "path": "dist/decorators/bound.js",
1136
1211
  "declarations": [],
1137
1212
  "exports": [
1138
1213
  {
1139
1214
  "kind": "js",
1140
1215
  "name": "default",
1141
1216
  "declaration": {
1142
- "name": "animate",
1143
- "module": "dist/animations/animate.js"
1217
+ "name": "bound",
1218
+ "module": "dist/decorators/bound.js"
1144
1219
  }
1145
1220
  }
1146
1221
  ]
1147
1222
  },
1148
1223
  {
1149
1224
  "kind": "javascript-module",
1150
- "path": "dist/animations/scroll.js",
1225
+ "path": "dist/decorators/customElement.js",
1151
1226
  "declarations": [],
1152
1227
  "exports": [
1153
1228
  {
1154
1229
  "kind": "js",
1155
1230
  "name": "default",
1156
1231
  "declaration": {
1157
- "name": "scroll",
1158
- "module": "dist/animations/scroll.js"
1232
+ "name": "customElement",
1233
+ "module": "dist/decorators/customElement.js"
1159
1234
  }
1160
1235
  }
1161
1236
  ]
1162
1237
  },
1163
1238
  {
1164
1239
  "kind": "javascript-module",
1165
- "path": "dist/animations/slideDown.js",
1240
+ "path": "dist/decorators/event-strict.js",
1166
1241
  "declarations": [],
1167
1242
  "exports": [
1168
1243
  {
1169
1244
  "kind": "js",
1170
1245
  "name": "default",
1171
1246
  "declaration": {
1172
- "name": "slideDown",
1173
- "module": "dist/animations/slideDown.js"
1247
+ "name": "event",
1248
+ "module": "dist/decorators/event-strict.js"
1174
1249
  }
1175
1250
  }
1176
1251
  ]
1177
1252
  },
1178
1253
  {
1179
1254
  "kind": "javascript-module",
1180
- "path": "dist/animations/slideUp.js",
1255
+ "path": "dist/decorators/event.js",
1181
1256
  "declarations": [],
1182
1257
  "exports": [
1183
1258
  {
1184
1259
  "kind": "js",
1185
1260
  "name": "default",
1186
1261
  "declaration": {
1187
- "name": "slideUp",
1188
- "module": "dist/animations/slideUp.js"
1262
+ "name": "event",
1263
+ "module": "dist/decorators/event.js"
1189
1264
  }
1190
1265
  }
1191
1266
  ]
1192
1267
  },
1193
1268
  {
1194
1269
  "kind": "javascript-module",
1195
- "path": "dist/converters/DOMReference.js",
1270
+ "path": "dist/decorators/i18n.js",
1196
1271
  "declarations": [],
1197
1272
  "exports": [
1198
1273
  {
1199
1274
  "kind": "js",
1200
1275
  "name": "default",
1201
1276
  "declaration": {
1202
- "name": "DOMReferenceConverter",
1203
- "module": "dist/converters/DOMReference.js"
1277
+ "name": "i18n",
1278
+ "module": "dist/decorators/i18n.js"
1204
1279
  }
1205
1280
  }
1206
1281
  ]
1207
1282
  },
1208
1283
  {
1209
1284
  "kind": "javascript-module",
1210
- "path": "dist/decorators/bound.js",
1285
+ "path": "dist/decorators/property.js",
1211
1286
  "declarations": [],
1212
1287
  "exports": [
1213
1288
  {
1214
1289
  "kind": "js",
1215
1290
  "name": "default",
1216
1291
  "declaration": {
1217
- "name": "bound",
1218
- "module": "dist/decorators/bound.js"
1292
+ "name": "property",
1293
+ "module": "dist/decorators/property.js"
1219
1294
  }
1220
1295
  }
1221
1296
  ]
1222
1297
  },
1223
1298
  {
1224
1299
  "kind": "javascript-module",
1225
- "path": "dist/decorators/customElement.js",
1300
+ "path": "dist/decorators/query.js",
1226
1301
  "declarations": [],
1227
1302
  "exports": [
1228
1303
  {
1229
1304
  "kind": "js",
1230
1305
  "name": "default",
1231
1306
  "declaration": {
1232
- "name": "customElement",
1233
- "module": "dist/decorators/customElement.js"
1307
+ "name": "query",
1308
+ "module": "dist/decorators/query.js"
1234
1309
  }
1235
1310
  }
1236
1311
  ]
1237
1312
  },
1238
1313
  {
1239
1314
  "kind": "javascript-module",
1240
- "path": "dist/decorators/event-strict.js",
1315
+ "path": "dist/decorators/queryAll.js",
1241
1316
  "declarations": [],
1242
1317
  "exports": [
1243
1318
  {
1244
1319
  "kind": "js",
1245
1320
  "name": "default",
1246
1321
  "declaration": {
1247
- "name": "event",
1248
- "module": "dist/decorators/event-strict.js"
1322
+ "name": "queryAll",
1323
+ "module": "dist/decorators/queryAll.js"
1249
1324
  }
1250
1325
  }
1251
1326
  ]
1252
1327
  },
1253
1328
  {
1254
1329
  "kind": "javascript-module",
1255
- "path": "dist/decorators/event.js",
1330
+ "path": "dist/decorators/slot-strict.js",
1256
1331
  "declarations": [],
1257
1332
  "exports": [
1258
1333
  {
1259
1334
  "kind": "js",
1260
1335
  "name": "default",
1261
1336
  "declaration": {
1262
- "name": "event",
1263
- "module": "dist/decorators/event.js"
1337
+ "name": "slot",
1338
+ "module": "dist/decorators/slot-strict.js"
1264
1339
  }
1265
1340
  }
1266
1341
  ]
1267
1342
  },
1268
1343
  {
1269
1344
  "kind": "javascript-module",
1270
- "path": "dist/decorators/i18n.js",
1345
+ "path": "dist/decorators/slot.js",
1271
1346
  "declarations": [],
1272
1347
  "exports": [
1273
1348
  {
1274
1349
  "kind": "js",
1275
1350
  "name": "default",
1276
1351
  "declaration": {
1277
- "name": "i18n",
1278
- "module": "dist/decorators/i18n.js"
1352
+ "name": "slot",
1353
+ "module": "dist/decorators/slot.js"
1279
1354
  }
1280
1355
  }
1281
1356
  ]
1282
1357
  },
1283
1358
  {
1284
1359
  "kind": "javascript-module",
1285
- "path": "dist/decorators/property.js",
1360
+ "path": "dist/features/F6Navigation.js",
1286
1361
  "declarations": [],
1287
1362
  "exports": [
1288
1363
  {
1289
1364
  "kind": "js",
1290
1365
  "name": "default",
1291
1366
  "declaration": {
1292
- "name": "property",
1293
- "module": "dist/decorators/property.js"
1367
+ "name": "F6Navigation",
1368
+ "module": "dist/features/F6Navigation.js"
1294
1369
  }
1295
1370
  }
1296
1371
  ]
1297
1372
  },
1298
1373
  {
1299
1374
  "kind": "javascript-module",
1300
- "path": "dist/decorators/query.js",
1375
+ "path": "dist/features/InputElementsFormSupport.js",
1376
+ "declarations": [],
1377
+ "exports": []
1378
+ },
1379
+ {
1380
+ "kind": "javascript-module",
1381
+ "path": "dist/features/LegacyDateFormats.js",
1301
1382
  "declarations": [],
1302
1383
  "exports": [
1303
1384
  {
1304
1385
  "kind": "js",
1305
1386
  "name": "default",
1306
1387
  "declaration": {
1307
- "name": "query",
1308
- "module": "dist/decorators/query.js"
1388
+ "name": "LegacyDateFormats",
1389
+ "module": "dist/features/LegacyDateFormats.js"
1309
1390
  }
1310
1391
  }
1311
1392
  ]
1312
1393
  },
1313
1394
  {
1314
1395
  "kind": "javascript-module",
1315
- "path": "dist/decorators/queryAll.js",
1396
+ "path": "dist/features/OpenUI5Element.js",
1316
1397
  "declarations": [],
1317
1398
  "exports": [
1318
1399
  {
1319
1400
  "kind": "js",
1320
1401
  "name": "default",
1321
1402
  "declaration": {
1322
- "name": "queryAll",
1323
- "module": "dist/decorators/queryAll.js"
1403
+ "name": "OpenUI5Element",
1404
+ "module": "dist/features/OpenUI5Element.js"
1324
1405
  }
1325
1406
  }
1326
1407
  ]
1327
1408
  },
1328
1409
  {
1329
1410
  "kind": "javascript-module",
1330
- "path": "dist/decorators/slot-strict.js",
1411
+ "path": "dist/features/OpenUI5Enablement.js",
1331
1412
  "declarations": [],
1332
1413
  "exports": [
1333
1414
  {
1334
1415
  "kind": "js",
1335
1416
  "name": "default",
1336
1417
  "declaration": {
1337
- "name": "slot",
1338
- "module": "dist/decorators/slot-strict.js"
1418
+ "name": "OpenUI5Enablement",
1419
+ "module": "dist/features/OpenUI5Enablement.js"
1339
1420
  }
1340
1421
  }
1341
1422
  ]
1342
1423
  },
1343
1424
  {
1344
1425
  "kind": "javascript-module",
1345
- "path": "dist/decorators/slot.js",
1426
+ "path": "dist/features/OpenUI5Support.js",
1346
1427
  "declarations": [],
1347
1428
  "exports": [
1348
1429
  {
1349
1430
  "kind": "js",
1350
1431
  "name": "default",
1351
1432
  "declaration": {
1352
- "name": "slot",
1353
- "module": "dist/decorators/slot.js"
1433
+ "name": "OpenUI5Support",
1434
+ "module": "dist/features/OpenUI5Support.js"
1435
+ }
1436
+ }
1437
+ ]
1438
+ },
1439
+ {
1440
+ "kind": "javascript-module",
1441
+ "path": "dist/features/insertOpenUI5PopupStyles.js",
1442
+ "declarations": [],
1443
+ "exports": [
1444
+ {
1445
+ "kind": "js",
1446
+ "name": "default",
1447
+ "declaration": {
1448
+ "name": "insertOpenUI5PopupStyles",
1449
+ "module": "dist/features/insertOpenUI5PopupStyles.js"
1450
+ }
1451
+ }
1452
+ ]
1453
+ },
1454
+ {
1455
+ "kind": "javascript-module",
1456
+ "path": "dist/features/patchPatcher.js",
1457
+ "declarations": [],
1458
+ "exports": [
1459
+ {
1460
+ "kind": "js",
1461
+ "name": "default",
1462
+ "declaration": {
1463
+ "name": "patchPatcher",
1464
+ "module": "dist/features/patchPatcher.js"
1354
1465
  }
1355
1466
  }
1356
1467
  ]
1357
1468
  },
1469
+ {
1470
+ "kind": "javascript-module",
1471
+ "path": "dist/features/patchPopup.js",
1472
+ "declarations": [],
1473
+ "exports": []
1474
+ },
1358
1475
  {
1359
1476
  "kind": "javascript-module",
1360
1477
  "path": "dist/delegate/ItemNavigation.js",
@@ -1530,123 +1647,6 @@
1530
1647
  }
1531
1648
  ]
1532
1649
  },
1533
- {
1534
- "kind": "javascript-module",
1535
- "path": "dist/features/F6Navigation.js",
1536
- "declarations": [],
1537
- "exports": [
1538
- {
1539
- "kind": "js",
1540
- "name": "default",
1541
- "declaration": {
1542
- "name": "F6Navigation",
1543
- "module": "dist/features/F6Navigation.js"
1544
- }
1545
- }
1546
- ]
1547
- },
1548
- {
1549
- "kind": "javascript-module",
1550
- "path": "dist/features/InputElementsFormSupport.js",
1551
- "declarations": [],
1552
- "exports": []
1553
- },
1554
- {
1555
- "kind": "javascript-module",
1556
- "path": "dist/features/LegacyDateFormats.js",
1557
- "declarations": [],
1558
- "exports": [
1559
- {
1560
- "kind": "js",
1561
- "name": "default",
1562
- "declaration": {
1563
- "name": "LegacyDateFormats",
1564
- "module": "dist/features/LegacyDateFormats.js"
1565
- }
1566
- }
1567
- ]
1568
- },
1569
- {
1570
- "kind": "javascript-module",
1571
- "path": "dist/features/OpenUI5Element.js",
1572
- "declarations": [],
1573
- "exports": [
1574
- {
1575
- "kind": "js",
1576
- "name": "default",
1577
- "declaration": {
1578
- "name": "OpenUI5Element",
1579
- "module": "dist/features/OpenUI5Element.js"
1580
- }
1581
- }
1582
- ]
1583
- },
1584
- {
1585
- "kind": "javascript-module",
1586
- "path": "dist/features/OpenUI5Enablement.js",
1587
- "declarations": [],
1588
- "exports": [
1589
- {
1590
- "kind": "js",
1591
- "name": "default",
1592
- "declaration": {
1593
- "name": "OpenUI5Enablement",
1594
- "module": "dist/features/OpenUI5Enablement.js"
1595
- }
1596
- }
1597
- ]
1598
- },
1599
- {
1600
- "kind": "javascript-module",
1601
- "path": "dist/features/OpenUI5Support.js",
1602
- "declarations": [],
1603
- "exports": [
1604
- {
1605
- "kind": "js",
1606
- "name": "default",
1607
- "declaration": {
1608
- "name": "OpenUI5Support",
1609
- "module": "dist/features/OpenUI5Support.js"
1610
- }
1611
- }
1612
- ]
1613
- },
1614
- {
1615
- "kind": "javascript-module",
1616
- "path": "dist/features/insertOpenUI5PopupStyles.js",
1617
- "declarations": [],
1618
- "exports": [
1619
- {
1620
- "kind": "js",
1621
- "name": "default",
1622
- "declaration": {
1623
- "name": "insertOpenUI5PopupStyles",
1624
- "module": "dist/features/insertOpenUI5PopupStyles.js"
1625
- }
1626
- }
1627
- ]
1628
- },
1629
- {
1630
- "kind": "javascript-module",
1631
- "path": "dist/features/patchPatcher.js",
1632
- "declarations": [],
1633
- "exports": [
1634
- {
1635
- "kind": "js",
1636
- "name": "default",
1637
- "declaration": {
1638
- "name": "patchPatcher",
1639
- "module": "dist/features/patchPatcher.js"
1640
- }
1641
- }
1642
- ]
1643
- },
1644
- {
1645
- "kind": "javascript-module",
1646
- "path": "dist/features/patchPopup.js",
1647
- "declarations": [],
1648
- "exports": []
1649
- },
1650
1650
  {
1651
1651
  "kind": "javascript-module",
1652
1652
  "path": "dist/locale/Locale.js",
@@ -72,6 +72,7 @@ const openNativePopoverForOpenUI5 = (popup) => {
72
72
  openUI5BlockLayer.showPopover();
73
73
  }
74
74
  domRef.setAttribute("popover", "manual");
75
+ domRef.hidePopover();
75
76
  domRef.showPopover();
76
77
  };
77
78
  const closeNativePopoverForOpenUI5 = (popup) => {
@@ -1 +1 @@
1
- {"version":3,"file":"patchPopup.js","sourceRoot":"","sources":["../../src/features/patchPopup.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AACrE,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AASjD,MAAM,gBAAgB,GAAG,iBAAiB,CAA2B,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAE7F,MAAM,aAAa,GAAG,CAAC,GAAW,EAAW,EAAE;IAC9C,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC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AAC,KAAK,CAAC,CAAC,CAAA,+BAA+B;IACtD,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,+BAA+B;AACrD,CAAC,CAAC;AAEF,OAAO,EACN,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,GACf,CAAC","sourcesContent":["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\nimport VersionInfo from \"../generated/VersionInfo.js\";\nimport { compareVersions } from \"../Runtimes.js\";\n\ntype PatchedFunctionRecord = {\n\tversion: VersionInfo | undefined;\n\toriginalFn: (...args: any[]) => any;\n};\n\ntype PatchedFunctionsRegistry = Record<string, PatchedFunctionRecord>;\n\nconst PatchedFunctions = getSharedResource<PatchedFunctionsRegistry>(\"PatchedFunctions\", {});\n\nconst shouldRepatch = (key: string): boolean => {\n\tconst existing = PatchedFunctions[key];\n\tif (!existing) {\n\t\treturn true;\n\t}\n\n\tif (!existing.version) {\n\t\treturn true;\n\t}\n\treturn compareVersions(VersionInfo, existing.version) > 0;\n};\n\ntype Control = {\n\tgetDomRef: () => HTMLElement | null,\n}\n\n// The lifecycle of Popup.js is open -> _opened -> close -> _closed, we're interested in the first (open) and last (_closed)\ntype OpenUI5Popup = {\n\topen: (...args: any[]) => void,\n\t_closed: (...args: any[]) => void,\n\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\tonFocusEvent: (...args: any[]) => void,\n\tgetModal: () => boolean\n};\n\ntype OpenUI5PopupClass = {\n\tprototype: OpenUI5Popup\n};\n\ntype OpenUI5DialogClass = {\n\tprototype: {\n\t\tonsapescape: (...args: any[]) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"WebComponent\";\n\tinstance: object;\n} | {\n\ttype: \"OpenUI5\";\n\tinstance: OpenUI5Popup;\n};\n\n// contains all OpenUI5 and Web Component popups that are currently opened\nconst AllOpenedPopupsRegistry = getSharedResource<{ openedRegistry: Array<PopupInfo> }>(\"AllOpenedPopupsRegistry\", { openedRegistry: [] });\n\nconst addOpenedPopup = (popupInfo: PopupInfo) => {\n\tAllOpenedPopupsRegistry.openedRegistry.push(popupInfo);\n};\n\nconst removeOpenedPopup = (popup: object) => {\n\tconst index = AllOpenedPopupsRegistry.openedRegistry.findIndex(el => el.instance === popup);\n\n\tif (index === AllOpenedPopupsRegistry.openedRegistry.length - 1) {\n\t\tfixTopmostOpenUI5Popup();\n\t}\n\n\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\n\tif (AllOpenedPopupsRegistry.openedRegistry.length === 0) {\n\t\treturn null;\n\t}\n\treturn AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 1].instance;\n};\n\n/**\n * Determines whether there is a Web Component popup opened above (a specified popup).\n *\n * @param {object} popup The popup instance to check against.\n * @returns {boolean} `true` if a Web Component popup is opened above (the given popup instance); otherwise `false`.\n */\nconst hasWebComponentPopupAbove = (popup: object) => {\n\tfor (let i = AllOpenedPopupsRegistry.openedRegistry.length - 1; i >= 0; i--) {\n\t\tconst popupInfo = AllOpenedPopupsRegistry.openedRegistry[i];\n\t\tif (popupInfo.type === \"WebComponent\") {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (popupInfo.instance === popup) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn false;\n};\n\nconst getPopupContentElement = (popup: OpenUI5Popup): HTMLElement | null => {\n\tconst content = popup.getContent();\n\treturn content instanceof HTMLElement ? content : content?.getDomRef() || null;\n};\n\nconst openNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(popup.getOpenState());\n\tif (!openingInitiated || !isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tif (popup.getModal() && openUI5BlockLayer) {\n\t\topenUI5BlockLayer.setAttribute(\"popover\", \"manual\");\n\t\topenUI5BlockLayer.hidePopover();\n\t\topenUI5BlockLayer.showPopover();\n\t}\n\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.showPopover();\n};\n\nconst closeNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\n\n\tif (getTopmostPopup() !== popup) {\n\t\treturn;\n\t}\n\n\t// The OpenUI5 block layer is only one for all modal OpenUI5 popups,\n\t// and it is displayed above all opened pupups - OpenUI5 and Web Components,\n\t// as a result, we need to hide this block layer.\n\t// If the underlying popup is a Web Component - it is displayed like a native popover, and we don't need to do anything\n\t// If the underlying popup is an OpenUI5 popup, it will be fixed in fixTopmostOpenUI5Popup method.\n\tif (popup.getModal()) {\n\t\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\t\tif (openUI5BlockLayer && openUI5BlockLayer.hasAttribute(\"popover\")) {\n\t\t\topenUI5BlockLayer.hidePopover();\n\t\t}\n\t}\n};\n\nconst fixTopmostOpenUI5Popup = () => {\n\tif (!isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst prevPopup = AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 2];\n\tif (!prevPopup\n\t\t|| prevPopup.type !== \"OpenUI5\"\n\t\t|| !prevPopup.instance.getModal()) {\n\t\treturn;\n\t}\n\n\tconst content = getPopupContentElement(prevPopup.instance);\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tcontent?.hidePopover();\n\topenUI5BlockLayer?.showPopover();\n\n\tcontent?.showPopover();\n};\n\nconst isNativePopoverOpen = (root: Document | ShadowRoot = document): boolean => {\n\tif (root.querySelector(\":popover-open\")) {\n\t\treturn true;\n\t}\n\n\treturn Array.from(root.querySelectorAll(\"*\")).some(element => {\n\t\tconst shadowRoot = element.shadowRoot;\n\t\treturn shadowRoot && isNativePopoverOpen(shadowRoot);\n\t});\n};\n\nconst patchDialog = (Dialog: OpenUI5DialogClass) => {\n\tconst key = \"Dialog.prototype.onsapescape\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Dialog.prototype.onsapescape };\n\t}\n\tconst origOnsapescape = PatchedFunctions[key].originalFn;\n\tDialog.prototype.onsapescape = function onsapescape(...args: any[]) {\n\t\tif (hasWebComponentPopupAbove(this.oPopup)) {\n\t\t\treturn;\n\t\t}\n\n\t\torigOnsapescape.apply(this, args);\n\t};\n};\n\nconst patchOpen = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype.open\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype.open };\n\t}\n\tconst origOpen = PatchedFunctions[key].originalFn;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\topenNativePopoverForOpenUI5(this);\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype._closed\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype._closed };\n\t}\n\tconst _origClosed = PatchedFunctions[key].originalFn;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tcloseNativePopoverForOpenUI5(this);\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype.onFocusEvent\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype.onFocusEvent };\n\t}\n\tconst origFocusEvent = PatchedFunctions[key].originalFn;\n\tPopup.prototype.onFocusEvent = function onFocusEvent(...args: any[]) {\n\t\tif (!hasWebComponentPopupAbove(this)) {\n\t\t\torigFocusEvent.apply(this, args);\n\t\t}\n\t};\n};\n\nconst createGlobalStyles = () => {\n\tconst stylesheet = new CSSStyleSheet();\n\tstylesheet.replaceSync(`.sapMPopup-CTX:popover-open { inset: unset; }`);\n\tdocument.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];\n};\n\nconst patchPopup = (Popup: OpenUI5PopupClass, Dialog: OpenUI5DialogClass) => {\n\tinsertOpenUI5PopupStyles();\n\tpatchOpen(Popup); // Popup.prototype.open\n\tpatchClosed(Popup); // Popup.prototype._closed\n\tcreateGlobalStyles(); // Ensures correct popover positioning by OpenUI5 (otherwise 0,0 is the center of the screen)\n\tpatchFocusEvent(Popup);// Popup.prototype.onFocusEvent\n\tpatchDialog(Dialog); // Dialog.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5PopupClass, OpenUI5DialogClass, PopupInfo };\n"]}
1
+ {"version":3,"file":"patchPopup.js","sourceRoot":"","sources":["../../src/features/patchPopup.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,wBAAwB,MAAM,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AC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;IACvC,UAAU,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;IACxE,QAAQ,CAAC,kBAAkB,GAAG,CAAC,GAAG,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAwB,EAAE,MAA0B,EAAE,EAAE;IAC3E,wBAAwB,EAAE,CAAC;IAC3B,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,uBAAuB;IACzC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,0BAA0B;IAC9C,kBAAkB,EAAE,CAAC,CAAC,6FAA6F;IACnH,eAAe,CAAC,KAAK,CAAC,CAAC,CAAA,+BAA+B;IACtD,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,+BAA+B;AACrD,CAAC,CAAC;AAEF,OAAO,EACN,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,GACf,CAAC","sourcesContent":["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\nimport VersionInfo from \"../generated/VersionInfo.js\";\nimport { compareVersions } from \"../Runtimes.js\";\n\ntype PatchedFunctionRecord = {\n\tversion: VersionInfo | undefined;\n\toriginalFn: (...args: any[]) => any;\n};\n\ntype PatchedFunctionsRegistry = Record<string, PatchedFunctionRecord>;\n\nconst PatchedFunctions = getSharedResource<PatchedFunctionsRegistry>(\"PatchedFunctions\", {});\n\nconst shouldRepatch = (key: string): boolean => {\n\tconst existing = PatchedFunctions[key];\n\tif (!existing) {\n\t\treturn true;\n\t}\n\n\tif (!existing.version) {\n\t\treturn true;\n\t}\n\treturn compareVersions(VersionInfo, existing.version) > 0;\n};\n\ntype Control = {\n\tgetDomRef: () => HTMLElement | null,\n}\n\n// The lifecycle of Popup.js is open -> _opened -> close -> _closed, we're interested in the first (open) and last (_closed)\ntype OpenUI5Popup = {\n\topen: (...args: any[]) => void,\n\t_closed: (...args: any[]) => void,\n\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\tonFocusEvent: (...args: any[]) => void,\n\tgetModal: () => boolean\n};\n\ntype OpenUI5PopupClass = {\n\tprototype: OpenUI5Popup\n};\n\ntype OpenUI5DialogClass = {\n\tprototype: {\n\t\tonsapescape: (...args: any[]) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"WebComponent\";\n\tinstance: object;\n} | {\n\ttype: \"OpenUI5\";\n\tinstance: OpenUI5Popup;\n};\n\n// contains all OpenUI5 and Web Component popups that are currently opened\nconst AllOpenedPopupsRegistry = getSharedResource<{ openedRegistry: Array<PopupInfo> }>(\"AllOpenedPopupsRegistry\", { openedRegistry: [] });\n\nconst addOpenedPopup = (popupInfo: PopupInfo) => {\n\tAllOpenedPopupsRegistry.openedRegistry.push(popupInfo);\n};\n\nconst removeOpenedPopup = (popup: object) => {\n\tconst index = AllOpenedPopupsRegistry.openedRegistry.findIndex(el => el.instance === popup);\n\n\tif (index === AllOpenedPopupsRegistry.openedRegistry.length - 1) {\n\t\tfixTopmostOpenUI5Popup();\n\t}\n\n\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\n\tif (AllOpenedPopupsRegistry.openedRegistry.length === 0) {\n\t\treturn null;\n\t}\n\treturn AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 1].instance;\n};\n\n/**\n * Determines whether there is a Web Component popup opened above (a specified popup).\n *\n * @param {object} popup The popup instance to check against.\n * @returns {boolean} `true` if a Web Component popup is opened above (the given popup instance); otherwise `false`.\n */\nconst hasWebComponentPopupAbove = (popup: object) => {\n\tfor (let i = AllOpenedPopupsRegistry.openedRegistry.length - 1; i >= 0; i--) {\n\t\tconst popupInfo = AllOpenedPopupsRegistry.openedRegistry[i];\n\t\tif (popupInfo.type === \"WebComponent\") {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (popupInfo.instance === popup) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn false;\n};\n\nconst getPopupContentElement = (popup: OpenUI5Popup): HTMLElement | null => {\n\tconst content = popup.getContent();\n\treturn content instanceof HTMLElement ? content : content?.getDomRef() || null;\n};\n\nconst openNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(popup.getOpenState());\n\tif (!openingInitiated || !isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tif (popup.getModal() && openUI5BlockLayer) {\n\t\topenUI5BlockLayer.setAttribute(\"popover\", \"manual\");\n\t\topenUI5BlockLayer.hidePopover();\n\t\topenUI5BlockLayer.showPopover();\n\t}\n\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.hidePopover();\n\tdomRef.showPopover();\n};\n\nconst closeNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\n\n\tif (getTopmostPopup() !== popup) {\n\t\treturn;\n\t}\n\n\t// The OpenUI5 block layer is only one for all modal OpenUI5 popups,\n\t// and it is displayed above all opened pupups - OpenUI5 and Web Components,\n\t// as a result, we need to hide this block layer.\n\t// If the underlying popup is a Web Component - it is displayed like a native popover, and we don't need to do anything\n\t// If the underlying popup is an OpenUI5 popup, it will be fixed in fixTopmostOpenUI5Popup method.\n\tif (popup.getModal()) {\n\t\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\t\tif (openUI5BlockLayer && openUI5BlockLayer.hasAttribute(\"popover\")) {\n\t\t\topenUI5BlockLayer.hidePopover();\n\t\t}\n\t}\n};\n\nconst fixTopmostOpenUI5Popup = () => {\n\tif (!isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst prevPopup = AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 2];\n\tif (!prevPopup\n\t\t|| prevPopup.type !== \"OpenUI5\"\n\t\t|| !prevPopup.instance.getModal()) {\n\t\treturn;\n\t}\n\n\tconst content = getPopupContentElement(prevPopup.instance);\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tcontent?.hidePopover();\n\topenUI5BlockLayer?.showPopover();\n\n\tcontent?.showPopover();\n};\n\nconst isNativePopoverOpen = (root: Document | ShadowRoot = document): boolean => {\n\tif (root.querySelector(\":popover-open\")) {\n\t\treturn true;\n\t}\n\n\treturn Array.from(root.querySelectorAll(\"*\")).some(element => {\n\t\tconst shadowRoot = element.shadowRoot;\n\t\treturn shadowRoot && isNativePopoverOpen(shadowRoot);\n\t});\n};\n\nconst patchDialog = (Dialog: OpenUI5DialogClass) => {\n\tconst key = \"Dialog.prototype.onsapescape\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Dialog.prototype.onsapescape };\n\t}\n\tconst origOnsapescape = PatchedFunctions[key].originalFn;\n\tDialog.prototype.onsapescape = function onsapescape(...args: any[]) {\n\t\tif (hasWebComponentPopupAbove(this.oPopup)) {\n\t\t\treturn;\n\t\t}\n\n\t\torigOnsapescape.apply(this, args);\n\t};\n};\n\nconst patchOpen = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype.open\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype.open };\n\t}\n\tconst origOpen = PatchedFunctions[key].originalFn;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\topenNativePopoverForOpenUI5(this);\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype._closed\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype._closed };\n\t}\n\tconst _origClosed = PatchedFunctions[key].originalFn;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tcloseNativePopoverForOpenUI5(this);\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5PopupClass) => {\n\tconst key = \"Popup.prototype.onFocusEvent\";\n\tif (shouldRepatch(key)) {\n\t\tPatchedFunctions[key] = { version: VersionInfo, originalFn: PatchedFunctions[key]?.originalFn ?? Popup.prototype.onFocusEvent };\n\t}\n\tconst origFocusEvent = PatchedFunctions[key].originalFn;\n\tPopup.prototype.onFocusEvent = function onFocusEvent(...args: any[]) {\n\t\tif (!hasWebComponentPopupAbove(this)) {\n\t\t\torigFocusEvent.apply(this, args);\n\t\t}\n\t};\n};\n\nconst createGlobalStyles = () => {\n\tconst stylesheet = new CSSStyleSheet();\n\tstylesheet.replaceSync(`.sapMPopup-CTX:popover-open { inset: unset; }`);\n\tdocument.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];\n};\n\nconst patchPopup = (Popup: OpenUI5PopupClass, Dialog: OpenUI5DialogClass) => {\n\tinsertOpenUI5PopupStyles();\n\tpatchOpen(Popup); // Popup.prototype.open\n\tpatchClosed(Popup); // Popup.prototype._closed\n\tcreateGlobalStyles(); // Ensures correct popover positioning by OpenUI5 (otherwise 0,0 is the center of the screen)\n\tpatchFocusEvent(Popup);// Popup.prototype.onFocusEvent\n\tpatchDialog(Dialog); // Dialog.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5PopupClass, OpenUI5DialogClass, PopupInfo };\n"]}
@@ -1,11 +1,11 @@
1
1
  const VersionInfo = {
2
- version: "2.23.0",
2
+ version: "2.23.1",
3
3
  major: 2,
4
4
  minor: 23,
5
- patch: 0,
5
+ patch: 1,
6
6
  suffix: "",
7
7
  isNext: false,
8
- buildTime: 1780660955,
8
+ buildTime: 1781204653,
9
9
  };
10
10
  export default VersionInfo;
11
11
  //# sourceMappingURL=VersionInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.23.0\",\n\tmajor: 2,\n\tminor: 23,\n\tpatch: 0,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1780660955,\n};\nexport default VersionInfo;"]}
1
+ {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.23.1\",\n\tmajor: 2,\n\tminor: 23,\n\tpatch: 1,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1781204653,\n};\nexport default VersionInfo;"]}
package/dist/prod/Boot.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import d from"./util/whenDOMReady.js";import v from"./EventProvider.js";import y from"./FontFace.js";import S from"./SystemCSSVars.js";import g from"./ScrollbarStyles.js";import{getTheme as s,getBaseTheme as h}from"./config/Theme.js";import a from"./theming/applyTheme.js";import{registerCurrentRuntime as l}from"./Runtimes.js";import{getFeature as n}from"./FeaturesRegistry.js";import{attachThemeRegistered as I}from"./theming/ThemeRegistered.js";import U from"./util/fixSafariActiveState.js";let r=!1,i,p=!1;const m=new v,O=()=>r,P=t=>{if(!r){m.attachEvent("boot",t);return}t()},f=async()=>{const t=n("OpenUI5Support"),e=t?t.isOpenUI5Detected():!1,o=n("F6Navigation");t&&(o&&o.destroy(),await t.init()),o&&!e&&o.init()},c=()=>{if(p)return;const t=n("OpenUI5Support");t&&(p=t.attachListeners())},u=async()=>{if(i!==void 0)return i;const t=async e=>{if(l(),typeof document>"u"){e();return}I(b),await f(),await d(),await a(s()),c(),y(),S(),g(),U(),e(),r=!0,m.fireEvent("boot")};return i=new Promise(t),i},w=async()=>{await u(),await f(),c()},b=t=>{if(!r)return;const e=s(),o=h();(t===e||t===o)&&a(e)};export{u as boot,w as secondaryBoot,P as attachBoot,O as isBooted};
1
+ "use strict";import d from"./util/whenDOMReady.js";import v from"./EventProvider.js";import y from"./FontFace.js";import S from"./SystemCSSVars.js";import g from"./ScrollbarStyles.js";import{getTheme as n,getBaseTheme as h}from"./config/Theme.js";import s from"./theming/applyTheme.js";import{registerCurrentRuntime as l}from"./Runtimes.js";import{getFeature as a}from"./FeaturesRegistry.js";import{attachThemeRegistered as I}from"./theming/ThemeRegistered.js";import U from"./util/fixSafariActiveState.js";let r=!1,i,p=!1;const m=new v,w=()=>r,O=t=>{if(!r){m.attachEvent("boot",t);return}t()},f=async()=>{const t=a("OpenUI5Support"),e=t?t.isOpenUI5Detected():!1,o=a("F6Navigation");t&&(o&&o.destroy(),await t.init()),o&&!e&&o.init()},c=()=>{if(p)return;const t=a("OpenUI5Support");t&&(p=t.attachListeners())},u=async()=>{if(i!==void 0)return i;const t=async e=>{if(l(),typeof document>"u"){e();return}I(b),await f(),await d(),await s(n()),c(),y(),S(),g(),U(),e(),r=!0,m.fireEvent("boot")};return i=new Promise(t),i},P=async()=>{await u(),await f(),c(),await s(n())},b=t=>{if(!r)return;const e=n(),o=h();(t===e||t===o)&&s(e)};export{u as boot,P as secondaryBoot,O as attachBoot,w as isBooted};
2
2
  //# sourceMappingURL=Boot.js.map