@ui5/webcomponents-base 2.16.0-rc.2 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/custom-elements-internal.json +105 -105
- package/dist/custom-elements.json +105 -105
- package/dist/features/patchPopup.d.ts +2 -2
- package/dist/features/patchPopup.js +4 -4
- package/dist/features/patchPopup.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/prod/features/patchPopup.js +1 -1
- package/dist/prod/features/patchPopup.js.map +3 -3
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +2 -2
- package/package.json +4 -4
|
@@ -1004,111 +1004,6 @@
|
|
|
1004
1004
|
}
|
|
1005
1005
|
]
|
|
1006
1006
|
},
|
|
1007
|
-
{
|
|
1008
|
-
"kind": "javascript-module",
|
|
1009
|
-
"path": "dist/animations/AnimationQueue.js",
|
|
1010
|
-
"declarations": [],
|
|
1011
|
-
"exports": [
|
|
1012
|
-
{
|
|
1013
|
-
"kind": "js",
|
|
1014
|
-
"name": "default",
|
|
1015
|
-
"declaration": {
|
|
1016
|
-
"name": "AnimationQueue",
|
|
1017
|
-
"module": "dist/animations/AnimationQueue.js"
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
]
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
"kind": "javascript-module",
|
|
1024
|
-
"path": "dist/animations/animate.js",
|
|
1025
|
-
"declarations": [],
|
|
1026
|
-
"exports": [
|
|
1027
|
-
{
|
|
1028
|
-
"kind": "js",
|
|
1029
|
-
"name": "default",
|
|
1030
|
-
"declaration": {
|
|
1031
|
-
"name": "animate",
|
|
1032
|
-
"module": "dist/animations/animate.js"
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
]
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
"kind": "javascript-module",
|
|
1039
|
-
"path": "dist/animations/scroll.js",
|
|
1040
|
-
"declarations": [],
|
|
1041
|
-
"exports": [
|
|
1042
|
-
{
|
|
1043
|
-
"kind": "js",
|
|
1044
|
-
"name": "default",
|
|
1045
|
-
"declaration": {
|
|
1046
|
-
"name": "scroll",
|
|
1047
|
-
"module": "dist/animations/scroll.js"
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
]
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"kind": "javascript-module",
|
|
1054
|
-
"path": "dist/animations/slideDown.js",
|
|
1055
|
-
"declarations": [],
|
|
1056
|
-
"exports": [
|
|
1057
|
-
{
|
|
1058
|
-
"kind": "js",
|
|
1059
|
-
"name": "default",
|
|
1060
|
-
"declaration": {
|
|
1061
|
-
"name": "slideDown",
|
|
1062
|
-
"module": "dist/animations/slideDown.js"
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
]
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
"kind": "javascript-module",
|
|
1069
|
-
"path": "dist/animations/slideUp.js",
|
|
1070
|
-
"declarations": [],
|
|
1071
|
-
"exports": [
|
|
1072
|
-
{
|
|
1073
|
-
"kind": "js",
|
|
1074
|
-
"name": "default",
|
|
1075
|
-
"declaration": {
|
|
1076
|
-
"name": "slideUp",
|
|
1077
|
-
"module": "dist/animations/slideUp.js"
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
]
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"kind": "javascript-module",
|
|
1084
|
-
"path": "dist/asset-registries/Icons.js",
|
|
1085
|
-
"declarations": [],
|
|
1086
|
-
"exports": []
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
"kind": "javascript-module",
|
|
1090
|
-
"path": "dist/asset-registries/Illustrations.js",
|
|
1091
|
-
"declarations": [],
|
|
1092
|
-
"exports": []
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
"kind": "javascript-module",
|
|
1096
|
-
"path": "dist/asset-registries/LocaleData.js",
|
|
1097
|
-
"declarations": [],
|
|
1098
|
-
"exports": []
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
"kind": "javascript-module",
|
|
1102
|
-
"path": "dist/asset-registries/Themes.js",
|
|
1103
|
-
"declarations": [],
|
|
1104
|
-
"exports": []
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"kind": "javascript-module",
|
|
1108
|
-
"path": "dist/asset-registries/i18n.js",
|
|
1109
|
-
"declarations": [],
|
|
1110
|
-
"exports": []
|
|
1111
|
-
},
|
|
1112
1007
|
{
|
|
1113
1008
|
"kind": "javascript-module",
|
|
1114
1009
|
"path": "dist/config/AnimationMode.js",
|
|
@@ -1331,6 +1226,111 @@
|
|
|
1331
1226
|
}
|
|
1332
1227
|
]
|
|
1333
1228
|
},
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "javascript-module",
|
|
1231
|
+
"path": "dist/animations/AnimationQueue.js",
|
|
1232
|
+
"declarations": [],
|
|
1233
|
+
"exports": [
|
|
1234
|
+
{
|
|
1235
|
+
"kind": "js",
|
|
1236
|
+
"name": "default",
|
|
1237
|
+
"declaration": {
|
|
1238
|
+
"name": "AnimationQueue",
|
|
1239
|
+
"module": "dist/animations/AnimationQueue.js"
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
]
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "javascript-module",
|
|
1246
|
+
"path": "dist/animations/animate.js",
|
|
1247
|
+
"declarations": [],
|
|
1248
|
+
"exports": [
|
|
1249
|
+
{
|
|
1250
|
+
"kind": "js",
|
|
1251
|
+
"name": "default",
|
|
1252
|
+
"declaration": {
|
|
1253
|
+
"name": "animate",
|
|
1254
|
+
"module": "dist/animations/animate.js"
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "javascript-module",
|
|
1261
|
+
"path": "dist/animations/scroll.js",
|
|
1262
|
+
"declarations": [],
|
|
1263
|
+
"exports": [
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "js",
|
|
1266
|
+
"name": "default",
|
|
1267
|
+
"declaration": {
|
|
1268
|
+
"name": "scroll",
|
|
1269
|
+
"module": "dist/animations/scroll.js"
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"kind": "javascript-module",
|
|
1276
|
+
"path": "dist/animations/slideDown.js",
|
|
1277
|
+
"declarations": [],
|
|
1278
|
+
"exports": [
|
|
1279
|
+
{
|
|
1280
|
+
"kind": "js",
|
|
1281
|
+
"name": "default",
|
|
1282
|
+
"declaration": {
|
|
1283
|
+
"name": "slideDown",
|
|
1284
|
+
"module": "dist/animations/slideDown.js"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
]
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "javascript-module",
|
|
1291
|
+
"path": "dist/animations/slideUp.js",
|
|
1292
|
+
"declarations": [],
|
|
1293
|
+
"exports": [
|
|
1294
|
+
{
|
|
1295
|
+
"kind": "js",
|
|
1296
|
+
"name": "default",
|
|
1297
|
+
"declaration": {
|
|
1298
|
+
"name": "slideUp",
|
|
1299
|
+
"module": "dist/animations/slideUp.js"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "javascript-module",
|
|
1306
|
+
"path": "dist/asset-registries/Icons.js",
|
|
1307
|
+
"declarations": [],
|
|
1308
|
+
"exports": []
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "javascript-module",
|
|
1312
|
+
"path": "dist/asset-registries/Illustrations.js",
|
|
1313
|
+
"declarations": [],
|
|
1314
|
+
"exports": []
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "javascript-module",
|
|
1318
|
+
"path": "dist/asset-registries/LocaleData.js",
|
|
1319
|
+
"declarations": [],
|
|
1320
|
+
"exports": []
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"kind": "javascript-module",
|
|
1324
|
+
"path": "dist/asset-registries/Themes.js",
|
|
1325
|
+
"declarations": [],
|
|
1326
|
+
"exports": []
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"kind": "javascript-module",
|
|
1330
|
+
"path": "dist/asset-registries/i18n.js",
|
|
1331
|
+
"declarations": [],
|
|
1332
|
+
"exports": []
|
|
1333
|
+
},
|
|
1334
1334
|
{
|
|
1335
1335
|
"kind": "javascript-module",
|
|
1336
1336
|
"path": "dist/delegate/ItemNavigation.js",
|
|
@@ -986,111 +986,6 @@
|
|
|
986
986
|
}
|
|
987
987
|
]
|
|
988
988
|
},
|
|
989
|
-
{
|
|
990
|
-
"kind": "javascript-module",
|
|
991
|
-
"path": "dist/animations/AnimationQueue.js",
|
|
992
|
-
"declarations": [],
|
|
993
|
-
"exports": [
|
|
994
|
-
{
|
|
995
|
-
"kind": "js",
|
|
996
|
-
"name": "default",
|
|
997
|
-
"declaration": {
|
|
998
|
-
"name": "AnimationQueue",
|
|
999
|
-
"module": "dist/animations/AnimationQueue.js"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
]
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"kind": "javascript-module",
|
|
1006
|
-
"path": "dist/animations/animate.js",
|
|
1007
|
-
"declarations": [],
|
|
1008
|
-
"exports": [
|
|
1009
|
-
{
|
|
1010
|
-
"kind": "js",
|
|
1011
|
-
"name": "default",
|
|
1012
|
-
"declaration": {
|
|
1013
|
-
"name": "animate",
|
|
1014
|
-
"module": "dist/animations/animate.js"
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
]
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"kind": "javascript-module",
|
|
1021
|
-
"path": "dist/animations/scroll.js",
|
|
1022
|
-
"declarations": [],
|
|
1023
|
-
"exports": [
|
|
1024
|
-
{
|
|
1025
|
-
"kind": "js",
|
|
1026
|
-
"name": "default",
|
|
1027
|
-
"declaration": {
|
|
1028
|
-
"name": "scroll",
|
|
1029
|
-
"module": "dist/animations/scroll.js"
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
]
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"kind": "javascript-module",
|
|
1036
|
-
"path": "dist/animations/slideDown.js",
|
|
1037
|
-
"declarations": [],
|
|
1038
|
-
"exports": [
|
|
1039
|
-
{
|
|
1040
|
-
"kind": "js",
|
|
1041
|
-
"name": "default",
|
|
1042
|
-
"declaration": {
|
|
1043
|
-
"name": "slideDown",
|
|
1044
|
-
"module": "dist/animations/slideDown.js"
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
]
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"kind": "javascript-module",
|
|
1051
|
-
"path": "dist/animations/slideUp.js",
|
|
1052
|
-
"declarations": [],
|
|
1053
|
-
"exports": [
|
|
1054
|
-
{
|
|
1055
|
-
"kind": "js",
|
|
1056
|
-
"name": "default",
|
|
1057
|
-
"declaration": {
|
|
1058
|
-
"name": "slideUp",
|
|
1059
|
-
"module": "dist/animations/slideUp.js"
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
]
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
"kind": "javascript-module",
|
|
1066
|
-
"path": "dist/asset-registries/Icons.js",
|
|
1067
|
-
"declarations": [],
|
|
1068
|
-
"exports": []
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
"kind": "javascript-module",
|
|
1072
|
-
"path": "dist/asset-registries/Illustrations.js",
|
|
1073
|
-
"declarations": [],
|
|
1074
|
-
"exports": []
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "javascript-module",
|
|
1078
|
-
"path": "dist/asset-registries/LocaleData.js",
|
|
1079
|
-
"declarations": [],
|
|
1080
|
-
"exports": []
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"kind": "javascript-module",
|
|
1084
|
-
"path": "dist/asset-registries/Themes.js",
|
|
1085
|
-
"declarations": [],
|
|
1086
|
-
"exports": []
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
"kind": "javascript-module",
|
|
1090
|
-
"path": "dist/asset-registries/i18n.js",
|
|
1091
|
-
"declarations": [],
|
|
1092
|
-
"exports": []
|
|
1093
|
-
},
|
|
1094
989
|
{
|
|
1095
990
|
"kind": "javascript-module",
|
|
1096
991
|
"path": "dist/config/AnimationMode.js",
|
|
@@ -1313,6 +1208,111 @@
|
|
|
1313
1208
|
}
|
|
1314
1209
|
]
|
|
1315
1210
|
},
|
|
1211
|
+
{
|
|
1212
|
+
"kind": "javascript-module",
|
|
1213
|
+
"path": "dist/animations/AnimationQueue.js",
|
|
1214
|
+
"declarations": [],
|
|
1215
|
+
"exports": [
|
|
1216
|
+
{
|
|
1217
|
+
"kind": "js",
|
|
1218
|
+
"name": "default",
|
|
1219
|
+
"declaration": {
|
|
1220
|
+
"name": "AnimationQueue",
|
|
1221
|
+
"module": "dist/animations/AnimationQueue.js"
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
]
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"kind": "javascript-module",
|
|
1228
|
+
"path": "dist/animations/animate.js",
|
|
1229
|
+
"declarations": [],
|
|
1230
|
+
"exports": [
|
|
1231
|
+
{
|
|
1232
|
+
"kind": "js",
|
|
1233
|
+
"name": "default",
|
|
1234
|
+
"declaration": {
|
|
1235
|
+
"name": "animate",
|
|
1236
|
+
"module": "dist/animations/animate.js"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "javascript-module",
|
|
1243
|
+
"path": "dist/animations/scroll.js",
|
|
1244
|
+
"declarations": [],
|
|
1245
|
+
"exports": [
|
|
1246
|
+
{
|
|
1247
|
+
"kind": "js",
|
|
1248
|
+
"name": "default",
|
|
1249
|
+
"declaration": {
|
|
1250
|
+
"name": "scroll",
|
|
1251
|
+
"module": "dist/animations/scroll.js"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
]
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"kind": "javascript-module",
|
|
1258
|
+
"path": "dist/animations/slideDown.js",
|
|
1259
|
+
"declarations": [],
|
|
1260
|
+
"exports": [
|
|
1261
|
+
{
|
|
1262
|
+
"kind": "js",
|
|
1263
|
+
"name": "default",
|
|
1264
|
+
"declaration": {
|
|
1265
|
+
"name": "slideDown",
|
|
1266
|
+
"module": "dist/animations/slideDown.js"
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"kind": "javascript-module",
|
|
1273
|
+
"path": "dist/animations/slideUp.js",
|
|
1274
|
+
"declarations": [],
|
|
1275
|
+
"exports": [
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "js",
|
|
1278
|
+
"name": "default",
|
|
1279
|
+
"declaration": {
|
|
1280
|
+
"name": "slideUp",
|
|
1281
|
+
"module": "dist/animations/slideUp.js"
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"kind": "javascript-module",
|
|
1288
|
+
"path": "dist/asset-registries/Icons.js",
|
|
1289
|
+
"declarations": [],
|
|
1290
|
+
"exports": []
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"kind": "javascript-module",
|
|
1294
|
+
"path": "dist/asset-registries/Illustrations.js",
|
|
1295
|
+
"declarations": [],
|
|
1296
|
+
"exports": []
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "javascript-module",
|
|
1300
|
+
"path": "dist/asset-registries/LocaleData.js",
|
|
1301
|
+
"declarations": [],
|
|
1302
|
+
"exports": []
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "javascript-module",
|
|
1306
|
+
"path": "dist/asset-registries/Themes.js",
|
|
1307
|
+
"declarations": [],
|
|
1308
|
+
"exports": []
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "javascript-module",
|
|
1312
|
+
"path": "dist/asset-registries/i18n.js",
|
|
1313
|
+
"declarations": [],
|
|
1314
|
+
"exports": []
|
|
1315
|
+
},
|
|
1316
1316
|
{
|
|
1317
1317
|
"kind": "javascript-module",
|
|
1318
1318
|
"path": "dist/delegate/ItemNavigation.js",
|
|
@@ -7,12 +7,12 @@ type OpenUI5Popup = {
|
|
|
7
7
|
_closed: (...args: any[]) => void;
|
|
8
8
|
getOpenState: () => "CLOSED" | "CLOSING" | "OPEN" | "OPENING";
|
|
9
9
|
getContent: () => Control | HTMLElement | null;
|
|
10
|
-
onFocusEvent: (
|
|
10
|
+
onFocusEvent: (...args: any[]) => void;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
type OpenUI5PopupBasedControl = {
|
|
14
14
|
prototype: {
|
|
15
|
-
onsapescape: (
|
|
15
|
+
onsapescape: (...args: any[]) => void;
|
|
16
16
|
oPopup: OpenUI5Popup;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -54,11 +54,11 @@ const isNativePopoverOpen = (root = document) => {
|
|
|
54
54
|
};
|
|
55
55
|
const patchPopupBasedControl = (PopupBasedControl) => {
|
|
56
56
|
const origOnsapescape = PopupBasedControl.prototype.onsapescape;
|
|
57
|
-
PopupBasedControl.prototype.onsapescape = function onsapescape(
|
|
57
|
+
PopupBasedControl.prototype.onsapescape = function onsapescape(...args) {
|
|
58
58
|
if (hasWebComponentPopupAbove(this.oPopup)) {
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
origOnsapescape.
|
|
61
|
+
origOnsapescape.apply(this, args);
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
const patchOpen = (Popup) => {
|
|
@@ -96,9 +96,9 @@ const patchClosed = (Popup) => {
|
|
|
96
96
|
};
|
|
97
97
|
const patchFocusEvent = (Popup) => {
|
|
98
98
|
const origFocusEvent = Popup.prototype.onFocusEvent;
|
|
99
|
-
Popup.prototype.onFocusEvent = function onFocusEvent(
|
|
99
|
+
Popup.prototype.onFocusEvent = function onFocusEvent(...args) {
|
|
100
100
|
if (!hasWebComponentPopupAbove(this)) {
|
|
101
|
-
origFocusEvent.
|
|
101
|
+
origFocusEvent.apply(this, args);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -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;AA6BrE,0EAA0E;AAC1E,MAAM,uBAAuB,GAAG,iBAAiB,CAAuC,yBAAyB,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;AAE3I,MAAM,cAAc,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC/C,uBAAuB,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE;IAC3C,MAAM,KAAK,GAAG,uBAAuB,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC;IAC5F,I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AAc,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;IACF,CAAC,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,KAAmB,EAAE,MAAgC,EAAE,OAAiC,EAAE,EAAE;IAC/G,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,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,+BAA+B;IAC/D,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,gCAAgC;AAClE,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\";\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\tprototype: {\n\t\topen: (...args: any[]) => void,\n\t\t_closed: (...args: any[]) => void,\n\t\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\t\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\t\tonFocusEvent: (e: FocusEvent) => void,\n\t}\n};\n\ntype OpenUI5PopupBasedControl = {\n\tprototype: {\n\t\tonsapescape: (e: Event) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"OpenUI5\" | \"WebComponent\";\n\tinstance: object;\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\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\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 openNativePopover = (domRef: HTMLElement) => {\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.showPopover();\n};\n\nconst closeNativePopover = (domRef: HTMLElement) => {\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\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 patchPopupBasedControl = (PopupBasedControl: OpenUI5PopupBasedControl) => {\n\tconst origOnsapescape = PopupBasedControl.prototype.onsapescape;\n\tPopupBasedControl.prototype.onsapescape = function onsapescape(e: Event) {\n\t\tif (hasWebComponentPopupAbove(this.oPopup)) {\n\t\t\treturn;\n\t\t}\n\n\t\torigOnsapescape.call(this, e);\n\t};\n};\n\nconst patchOpen = (Popup: OpenUI5Popup) => {\n\tconst origOpen = Popup.prototype.open;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\tconst topLayerAlreadyInUse = isNativePopoverOpen();\n\t\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(this.getOpenState());\n\t\tif (openingInitiated && topLayerAlreadyInUse) {\n\t\t\tconst element = this.getContent();\n\t\t\tif (element) {\n\t\t\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t\t\tif (domRef) {\n\t\t\t\t\topenNativePopover(domRef);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5Popup) => {\n\tconst _origClosed = Popup.prototype._closed;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tconst element = this.getContent();\n\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tif (domRef) {\n\t\t\tcloseNativePopover(domRef); // unset the popover attribute and close the native popover, but only if still in DOM\n\t\t}\n\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5Popup) => {\n\tconst origFocusEvent = Popup.prototype.onFocusEvent;\n\tPopup.prototype.onFocusEvent = function onFocusEvent(e: FocusEvent) {\n\t\tif (!hasWebComponentPopupAbove(this)) {\n\t\t\torigFocusEvent.call(this, e);\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: OpenUI5Popup, Dialog: OpenUI5PopupBasedControl, Popover: OpenUI5PopupBasedControl) => {\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\tpatchPopupBasedControl(Dialog); // Dialog.prototype.onsapescape\n\tpatchPopupBasedControl(Popover); // Popover.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5Popup, OpenUI5PopupBasedControl, 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,+BAA+B,CAAC;AA6BrE,0EAA0E;AAC1E,MAAM,uBAAuB,GAAG,iBAAiB,CAAuC,yBAAyB,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;AAE3I,MAAM,cAAc,GAAG,CAA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AAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC/C,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC;IACpD,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,SAAS,YAAY,CAAC,GAAG,IAAW;QAClE,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;YACtC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAClC,CAAC;IACF,CAAC,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,KAAmB,EAAE,MAAgC,EAAE,OAAiC,EAAE,EAAE;IAC/G,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,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,+BAA+B;IAC/D,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,gCAAgC;AAClE,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\";\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\tprototype: {\n\t\topen: (...args: any[]) => void,\n\t\t_closed: (...args: any[]) => void,\n\t\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\t\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\t\tonFocusEvent: (...args: any[]) => void,\n\t}\n};\n\ntype OpenUI5PopupBasedControl = {\n\tprototype: {\n\t\tonsapescape: (...args: any[]) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"OpenUI5\" | \"WebComponent\";\n\tinstance: object;\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\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\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 openNativePopover = (domRef: HTMLElement) => {\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.showPopover();\n};\n\nconst closeNativePopover = (domRef: HTMLElement) => {\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\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 patchPopupBasedControl = (PopupBasedControl: OpenUI5PopupBasedControl) => {\n\tconst origOnsapescape = PopupBasedControl.prototype.onsapescape;\n\tPopupBasedControl.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: OpenUI5Popup) => {\n\tconst origOpen = Popup.prototype.open;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\tconst topLayerAlreadyInUse = isNativePopoverOpen();\n\t\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(this.getOpenState());\n\t\tif (openingInitiated && topLayerAlreadyInUse) {\n\t\t\tconst element = this.getContent();\n\t\t\tif (element) {\n\t\t\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t\t\tif (domRef) {\n\t\t\t\t\topenNativePopover(domRef);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5Popup) => {\n\tconst _origClosed = Popup.prototype._closed;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tconst element = this.getContent();\n\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tif (domRef) {\n\t\t\tcloseNativePopover(domRef); // unset the popover attribute and close the native popover, but only if still in DOM\n\t\t}\n\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5Popup) => {\n\tconst origFocusEvent = Popup.prototype.onFocusEvent;\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: OpenUI5Popup, Dialog: OpenUI5PopupBasedControl, Popover: OpenUI5PopupBasedControl) => {\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\tpatchPopupBasedControl(Dialog); // Dialog.prototype.onsapescape\n\tpatchPopupBasedControl(Popover); // Popover.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5Popup, OpenUI5PopupBasedControl, PopupInfo };\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const VersionInfo = {
|
|
2
|
-
version: "2.16.0
|
|
2
|
+
version: "2.16.0",
|
|
3
3
|
major: 2,
|
|
4
4
|
minor: 16,
|
|
5
5
|
patch: 0,
|
|
6
|
-
suffix: "
|
|
6
|
+
suffix: "",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1762351071,
|
|
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,
|
|
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.16.0\",\n\tmajor: 2,\n\tminor: 16,\n\tpatch: 0,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1762351071,\n};\nexport default VersionInfo;"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import g from"../getSharedResource.js";import h from"./insertOpenUI5PopupStyles.js";const p=g("AllOpenedPopupsRegistry",{openedRegistry:[]}),a=e=>{p.openedRegistry.push(e)},u=e=>{const o=p.openedRegistry.findIndex(t=>t.instance===e);o>-1&&p.openedRegistry.splice(o,1)},O=()=>p.openedRegistry[p.openedRegistry.length-1].instance,l=e=>{for(let o=p.openedRegistry.length-1;o>=0;o--){const t=p.openedRegistry[o];if(t.type==="WebComponent")return!0;if(t.instance===e)break}return!1},P=e=>{e.setAttribute("popover","manual"),e.showPopover()},f=e=>{e.hasAttribute("popover")&&(e.hidePopover(),e.removeAttribute("popover"))},
|
|
1
|
+
"use strict";import g from"../getSharedResource.js";import h from"./insertOpenUI5PopupStyles.js";const p=g("AllOpenedPopupsRegistry",{openedRegistry:[]}),a=e=>{p.openedRegistry.push(e)},u=e=>{const o=p.openedRegistry.findIndex(t=>t.instance===e);o>-1&&p.openedRegistry.splice(o,1)},O=()=>p.openedRegistry[p.openedRegistry.length-1].instance,l=e=>{for(let o=p.openedRegistry.length-1;o>=0;o--){const t=p.openedRegistry[o];if(t.type==="WebComponent")return!0;if(t.instance===e)break}return!1},P=e=>{e.setAttribute("popover","manual"),e.showPopover()},f=e=>{e.hasAttribute("popover")&&(e.hidePopover(),e.removeAttribute("popover"))},y=(e=document)=>e.querySelector(":popover-open")?!0:Array.from(e.querySelectorAll("*")).some(o=>{const t=o.shadowRoot;return t&&y(t)}),d=e=>{const o=e.prototype.onsapescape;e.prototype.onsapescape=function(...n){l(this.oPopup)||o.apply(this,n)}},m=e=>{const o=e.prototype.open;e.prototype.open=function(...n){o.apply(this,n);const s=y();if(["OPENING","OPEN"].includes(this.getOpenState())&&s){const r=this.getContent();if(r){const i=r instanceof HTMLElement?r:r?.getDomRef();i&&P(i)}}a({type:"OpenUI5",instance:this})}},I=e=>{const o=e.prototype._closed;e.prototype._closed=function(...n){const s=this.getContent(),c=s instanceof HTMLElement?s:s?.getDomRef();o.apply(this,n),c&&f(c),u(this)}},v=e=>{const o=e.prototype.onFocusEvent;e.prototype.onFocusEvent=function(...n){l(this)||o.apply(this,n)}},C=()=>{const e=new CSSStyleSheet;e.replaceSync(".sapMPopup-CTX:popover-open { inset: unset; }"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]},S=(e,o,t)=>{h(),m(e),I(e),C(),v(e),d(o),d(t)};export{S as patchPopup,a as addOpenedPopup,u as removeOpenedPopup,O as getTopmostPopup};
|
|
2
2
|
//# sourceMappingURL=patchPopup.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/patchPopup.ts"],
|
|
4
|
-
"sourcesContent": ["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\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\tprototype: {\n\t\topen: (...args: any[]) => void,\n\t\t_closed: (...args: any[]) => void,\n\t\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\t\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\t\tonFocusEvent: (
|
|
5
|
-
"mappings": "aACA,OAAOA,MAAuB,0BAC9B,OAAOC,MAA8B,gCA8BrC,MAAMC,EAA0BF,EAAwD,0BAA2B,CAAE,eAAgB,CAAC,CAAE,CAAC,EAEnIG,EAAkBC,GAAyB,CAChDF,EAAwB,eAAe,KAAKE,CAAS,CACtD,EAEMC,EAAqBC,GAAkB,CAC5C,MAAMC,EAAQL,EAAwB,eAAe,UAAUM,GAAMA,EAAG,WAAaF,CAAK,EACtFC,EAAQ,IACXL,EAAwB,eAAe,OAAOK,EAAO,CAAC,CAExD,EAEME,EAAkB,IAChBP,EAAwB,eAAeA,EAAwB,eAAe,OAAS,CAAC,EAAE,SAS5FQ,EAA6BJ,GAAkB,CACpD,QAASK,EAAIT,EAAwB,eAAe,OAAS,EAAGS,GAAK,EAAGA,IAAK,CAC5E,MAAMP,EAAYF,EAAwB,eAAeS,CAAC,EAC1D,GAAIP,EAAU,OAAS,eACtB,MAAO,GAGR,GAAIA,EAAU,WAAaE,EAC1B,KAEF,CAEA,MAAO,EACR,EAEMM,EAAqBC,GAAwB,CAClDA,EAAO,aAAa,UAAW,QAAQ,EACvCA,EAAO,YAAY,CACpB,EAEMC,EAAsBD,GAAwB,CAC/CA,EAAO,aAAa,SAAS,IAChCA,EAAO,YAAY,EACnBA,EAAO,gBAAgB,SAAS,EAElC,EAEME,EAAsB,CAACC,EAA8B,WACtDA,EAAK,cAAc,eAAe,EAC9B,GAGD,MAAM,KAAKA,EAAK,iBAAiB,GAAG,CAAC,EAAE,KAAKC,GAAW,CAC7D,MAAMC,EAAaD,EAAQ,WAC3B,OAAOC,GAAcH,EAAoBG,CAAU,CACpD,CAAC,EAGIC,EAA0BC,GAAgD,CAC/E,MAAMC,EAAkBD,EAAkB,UAAU,YACpDA,EAAkB,UAAU,YAAc,
|
|
6
|
-
"names": ["getSharedResource", "insertOpenUI5PopupStyles", "AllOpenedPopupsRegistry", "addOpenedPopup", "popupInfo", "removeOpenedPopup", "popup", "index", "el", "getTopmostPopup", "hasWebComponentPopupAbove", "i", "openNativePopover", "domRef", "closeNativePopover", "isNativePopoverOpen", "root", "element", "shadowRoot", "patchPopupBasedControl", "PopupBasedControl", "origOnsapescape", "
|
|
4
|
+
"sourcesContent": ["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\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\tprototype: {\n\t\topen: (...args: any[]) => void,\n\t\t_closed: (...args: any[]) => void,\n\t\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\t\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\t\tonFocusEvent: (...args: any[]) => void,\n\t}\n};\n\ntype OpenUI5PopupBasedControl = {\n\tprototype: {\n\t\tonsapescape: (...args: any[]) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"OpenUI5\" | \"WebComponent\";\n\tinstance: object;\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\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\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 openNativePopover = (domRef: HTMLElement) => {\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.showPopover();\n};\n\nconst closeNativePopover = (domRef: HTMLElement) => {\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\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 patchPopupBasedControl = (PopupBasedControl: OpenUI5PopupBasedControl) => {\n\tconst origOnsapescape = PopupBasedControl.prototype.onsapescape;\n\tPopupBasedControl.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: OpenUI5Popup) => {\n\tconst origOpen = Popup.prototype.open;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\tconst topLayerAlreadyInUse = isNativePopoverOpen();\n\t\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(this.getOpenState());\n\t\tif (openingInitiated && topLayerAlreadyInUse) {\n\t\t\tconst element = this.getContent();\n\t\t\tif (element) {\n\t\t\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t\t\tif (domRef) {\n\t\t\t\t\topenNativePopover(domRef);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5Popup) => {\n\tconst _origClosed = Popup.prototype._closed;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tconst element = this.getContent();\n\t\tconst domRef = element instanceof HTMLElement ? element : element?.getDomRef();\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tif (domRef) {\n\t\t\tcloseNativePopover(domRef); // unset the popover attribute and close the native popover, but only if still in DOM\n\t\t}\n\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5Popup) => {\n\tconst origFocusEvent = Popup.prototype.onFocusEvent;\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: OpenUI5Popup, Dialog: OpenUI5PopupBasedControl, Popover: OpenUI5PopupBasedControl) => {\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\tpatchPopupBasedControl(Dialog); // Dialog.prototype.onsapescape\n\tpatchPopupBasedControl(Popover); // Popover.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5Popup, OpenUI5PopupBasedControl, PopupInfo };\n"],
|
|
5
|
+
"mappings": "aACA,OAAOA,MAAuB,0BAC9B,OAAOC,MAA8B,gCA8BrC,MAAMC,EAA0BF,EAAwD,0BAA2B,CAAE,eAAgB,CAAC,CAAE,CAAC,EAEnIG,EAAkBC,GAAyB,CAChDF,EAAwB,eAAe,KAAKE,CAAS,CACtD,EAEMC,EAAqBC,GAAkB,CAC5C,MAAMC,EAAQL,EAAwB,eAAe,UAAUM,GAAMA,EAAG,WAAaF,CAAK,EACtFC,EAAQ,IACXL,EAAwB,eAAe,OAAOK,EAAO,CAAC,CAExD,EAEME,EAAkB,IAChBP,EAAwB,eAAeA,EAAwB,eAAe,OAAS,CAAC,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wB,EAAeH,GAAwB,CAC5C,MAAMI,EAAcJ,EAAM,UAAU,QACpCA,EAAM,UAAU,QAAU,YAAoBF,EAAa,CAC1D,MAAML,EAAU,KAAK,WAAW,EAC1BJ,EAASI,aAAmB,YAAcA,EAAUA,GAAS,UAAU,EAC7EW,EAAY,MAAM,KAAMN,CAAI,EACxBT,GACHC,EAAmBD,CAAM,EAG1BR,EAAkB,IAAI,CACvB,CACD,EAEMwB,EAAmBL,GAAwB,CAChD,MAAMM,EAAiBN,EAAM,UAAU,aACvCA,EAAM,UAAU,aAAe,YAAyBF,EAAa,CAC/DZ,EAA0B,IAAI,GAClCoB,EAAe,MAAM,KAAMR,CAAI,CAEjC,CACD,EAEMS,EAAqB,IAAM,CAChC,MAAMC,EAAa,IAAI,cACvBA,EAAW,YAAY,+CAA+C,EACtE,SAAS,mBAAqB,CAAC,GAAG,SAAS,mBAAoBA,CAAU,CAC1E,EAEMC,EAAa,CAACT,EAAqBU,EAAkCC,IAAsC,CAChHlC,EAAyB,EACzBsB,EAAUC,CAAK,EACfG,EAAYH,CAAK,EACjBO,EAAmB,EACnBF,EAAgBL,CAAK,EACrBL,EAAuBe,CAAM,EAC7Bf,EAAuBgB,CAAO,CAC/B,EAEA,OACCF,KAAA,WACA9B,KAAA,eACAE,KAAA,kBACAI,KAAA",
|
|
6
|
+
"names": ["getSharedResource", "insertOpenUI5PopupStyles", "AllOpenedPopupsRegistry", "addOpenedPopup", "popupInfo", "removeOpenedPopup", "popup", "index", "el", "getTopmostPopup", "hasWebComponentPopupAbove", "i", "openNativePopover", "domRef", "closeNativePopover", "isNativePopoverOpen", "root", "element", "shadowRoot", "patchPopupBasedControl", "PopupBasedControl", "origOnsapescape", "args", "patchOpen", "Popup", "origOpen", "topLayerAlreadyInUse", "patchClosed", "_origClosed", "patchFocusEvent", "origFocusEvent", "createGlobalStyles", "stylesheet", "patchPopup", "Dialog", "Popover"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e={version:"2.16.0
|
|
1
|
+
"use strict";const e={version:"2.16.0",major:2,minor:16,patch:0,suffix:"",isNext:!1,buildTime:1762351071};export default e;
|
|
2
2
|
//# sourceMappingURL=VersionInfo.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/generated/VersionInfo.ts"],
|
|
4
|
-
"sourcesContent": ["const VersionInfo = {\n\tversion: \"2.16.0
|
|
5
|
-
"mappings": "aAAA,MAAMA,EAAc,CACnB,QAAS,
|
|
4
|
+
"sourcesContent": ["const VersionInfo = {\n\tversion: \"2.16.0\",\n\tmajor: 2,\n\tminor: 16,\n\tpatch: 0,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1762351071,\n};\nexport default VersionInfo;"],
|
|
5
|
+
"mappings": "aAAA,MAAMA,EAAc,CACnB,QAAS,SACT,MAAO,EACP,MAAO,GACP,MAAO,EACP,OAAQ,GACR,OAAQ,GACR,UAAW,UACZ,EACA,eAAeA",
|
|
6
6
|
"names": ["VersionInfo"]
|
|
7
7
|
}
|