@ui5/webcomponents-base 2.15.5 → 2.15.6
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 +11 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/asset-registries/LocaleData.js +2 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/custom-elements-internal.json +134 -134
- package/dist/custom-elements.json +134 -134
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/prod/asset-registries/LocaleData.js +1 -1
- package/dist/prod/asset-registries/LocaleData.js.map +2 -2
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +1 -1
- package/package.json +3 -3
|
@@ -1063,103 +1063,103 @@
|
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
1065
1065
|
"kind": "javascript-module",
|
|
1066
|
-
"path": "dist/
|
|
1066
|
+
"path": "dist/config/AnimationMode.js",
|
|
1067
1067
|
"declarations": [],
|
|
1068
1068
|
"exports": []
|
|
1069
1069
|
},
|
|
1070
1070
|
{
|
|
1071
1071
|
"kind": "javascript-module",
|
|
1072
|
-
"path": "dist/
|
|
1072
|
+
"path": "dist/config/CalendarType.js",
|
|
1073
1073
|
"declarations": [],
|
|
1074
1074
|
"exports": []
|
|
1075
1075
|
},
|
|
1076
1076
|
{
|
|
1077
1077
|
"kind": "javascript-module",
|
|
1078
|
-
"path": "dist/
|
|
1078
|
+
"path": "dist/config/ConfigurationReset.js",
|
|
1079
1079
|
"declarations": [],
|
|
1080
1080
|
"exports": []
|
|
1081
1081
|
},
|
|
1082
1082
|
{
|
|
1083
1083
|
"kind": "javascript-module",
|
|
1084
|
-
"path": "dist/
|
|
1084
|
+
"path": "dist/config/Fonts.js",
|
|
1085
1085
|
"declarations": [],
|
|
1086
1086
|
"exports": []
|
|
1087
1087
|
},
|
|
1088
1088
|
{
|
|
1089
1089
|
"kind": "javascript-module",
|
|
1090
|
-
"path": "dist/
|
|
1090
|
+
"path": "dist/config/FormatSettings.js",
|
|
1091
1091
|
"declarations": [],
|
|
1092
1092
|
"exports": []
|
|
1093
1093
|
},
|
|
1094
1094
|
{
|
|
1095
1095
|
"kind": "javascript-module",
|
|
1096
|
-
"path": "dist/config/
|
|
1096
|
+
"path": "dist/config/Icons.js",
|
|
1097
1097
|
"declarations": [],
|
|
1098
1098
|
"exports": []
|
|
1099
1099
|
},
|
|
1100
1100
|
{
|
|
1101
1101
|
"kind": "javascript-module",
|
|
1102
|
-
"path": "dist/config/
|
|
1102
|
+
"path": "dist/config/Language.js",
|
|
1103
1103
|
"declarations": [],
|
|
1104
1104
|
"exports": []
|
|
1105
1105
|
},
|
|
1106
1106
|
{
|
|
1107
1107
|
"kind": "javascript-module",
|
|
1108
|
-
"path": "dist/config/
|
|
1108
|
+
"path": "dist/config/NoConflict.js",
|
|
1109
1109
|
"declarations": [],
|
|
1110
1110
|
"exports": []
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
"kind": "javascript-module",
|
|
1114
|
-
"path": "dist/config/
|
|
1114
|
+
"path": "dist/config/Theme.js",
|
|
1115
1115
|
"declarations": [],
|
|
1116
1116
|
"exports": []
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
1119
|
"kind": "javascript-module",
|
|
1120
|
-
"path": "dist/config/
|
|
1120
|
+
"path": "dist/config/ThemeRoot.js",
|
|
1121
1121
|
"declarations": [],
|
|
1122
1122
|
"exports": []
|
|
1123
1123
|
},
|
|
1124
1124
|
{
|
|
1125
1125
|
"kind": "javascript-module",
|
|
1126
|
-
"path": "dist/config/
|
|
1126
|
+
"path": "dist/config/Timezone.js",
|
|
1127
1127
|
"declarations": [],
|
|
1128
1128
|
"exports": []
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
1131
1131
|
"kind": "javascript-module",
|
|
1132
|
-
"path": "dist/config/
|
|
1132
|
+
"path": "dist/config/Tooltips.js",
|
|
1133
1133
|
"declarations": [],
|
|
1134
1134
|
"exports": []
|
|
1135
1135
|
},
|
|
1136
1136
|
{
|
|
1137
1137
|
"kind": "javascript-module",
|
|
1138
|
-
"path": "dist/
|
|
1138
|
+
"path": "dist/asset-registries/Icons.js",
|
|
1139
1139
|
"declarations": [],
|
|
1140
1140
|
"exports": []
|
|
1141
1141
|
},
|
|
1142
1142
|
{
|
|
1143
1143
|
"kind": "javascript-module",
|
|
1144
|
-
"path": "dist/
|
|
1144
|
+
"path": "dist/asset-registries/Illustrations.js",
|
|
1145
1145
|
"declarations": [],
|
|
1146
1146
|
"exports": []
|
|
1147
1147
|
},
|
|
1148
1148
|
{
|
|
1149
1149
|
"kind": "javascript-module",
|
|
1150
|
-
"path": "dist/
|
|
1150
|
+
"path": "dist/asset-registries/LocaleData.js",
|
|
1151
1151
|
"declarations": [],
|
|
1152
1152
|
"exports": []
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
1155
|
"kind": "javascript-module",
|
|
1156
|
-
"path": "dist/
|
|
1156
|
+
"path": "dist/asset-registries/Themes.js",
|
|
1157
1157
|
"declarations": [],
|
|
1158
1158
|
"exports": []
|
|
1159
1159
|
},
|
|
1160
1160
|
{
|
|
1161
1161
|
"kind": "javascript-module",
|
|
1162
|
-
"path": "dist/
|
|
1162
|
+
"path": "dist/asset-registries/i18n.js",
|
|
1163
1163
|
"declarations": [],
|
|
1164
1164
|
"exports": []
|
|
1165
1165
|
},
|
|
@@ -1313,6 +1313,123 @@
|
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "javascript-module",
|
|
1318
|
+
"path": "dist/features/F6Navigation.js",
|
|
1319
|
+
"declarations": [],
|
|
1320
|
+
"exports": [
|
|
1321
|
+
{
|
|
1322
|
+
"kind": "js",
|
|
1323
|
+
"name": "default",
|
|
1324
|
+
"declaration": {
|
|
1325
|
+
"name": "F6Navigation",
|
|
1326
|
+
"module": "dist/features/F6Navigation.js"
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"kind": "javascript-module",
|
|
1333
|
+
"path": "dist/features/InputElementsFormSupport.js",
|
|
1334
|
+
"declarations": [],
|
|
1335
|
+
"exports": []
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "javascript-module",
|
|
1339
|
+
"path": "dist/features/LegacyDateFormats.js",
|
|
1340
|
+
"declarations": [],
|
|
1341
|
+
"exports": [
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "js",
|
|
1344
|
+
"name": "default",
|
|
1345
|
+
"declaration": {
|
|
1346
|
+
"name": "LegacyDateFormats",
|
|
1347
|
+
"module": "dist/features/LegacyDateFormats.js"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
]
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"kind": "javascript-module",
|
|
1354
|
+
"path": "dist/features/OpenUI5Element.js",
|
|
1355
|
+
"declarations": [],
|
|
1356
|
+
"exports": [
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "js",
|
|
1359
|
+
"name": "default",
|
|
1360
|
+
"declaration": {
|
|
1361
|
+
"name": "OpenUI5Element",
|
|
1362
|
+
"module": "dist/features/OpenUI5Element.js"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"kind": "javascript-module",
|
|
1369
|
+
"path": "dist/features/OpenUI5Enablement.js",
|
|
1370
|
+
"declarations": [],
|
|
1371
|
+
"exports": [
|
|
1372
|
+
{
|
|
1373
|
+
"kind": "js",
|
|
1374
|
+
"name": "default",
|
|
1375
|
+
"declaration": {
|
|
1376
|
+
"name": "OpenUI5Enablement",
|
|
1377
|
+
"module": "dist/features/OpenUI5Enablement.js"
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
]
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"kind": "javascript-module",
|
|
1384
|
+
"path": "dist/features/OpenUI5Support.js",
|
|
1385
|
+
"declarations": [],
|
|
1386
|
+
"exports": [
|
|
1387
|
+
{
|
|
1388
|
+
"kind": "js",
|
|
1389
|
+
"name": "default",
|
|
1390
|
+
"declaration": {
|
|
1391
|
+
"name": "OpenUI5Support",
|
|
1392
|
+
"module": "dist/features/OpenUI5Support.js"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
]
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"kind": "javascript-module",
|
|
1399
|
+
"path": "dist/features/insertOpenUI5PopupStyles.js",
|
|
1400
|
+
"declarations": [],
|
|
1401
|
+
"exports": [
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "js",
|
|
1404
|
+
"name": "default",
|
|
1405
|
+
"declaration": {
|
|
1406
|
+
"name": "insertOpenUI5PopupStyles",
|
|
1407
|
+
"module": "dist/features/insertOpenUI5PopupStyles.js"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
]
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"kind": "javascript-module",
|
|
1414
|
+
"path": "dist/features/patchPatcher.js",
|
|
1415
|
+
"declarations": [],
|
|
1416
|
+
"exports": [
|
|
1417
|
+
{
|
|
1418
|
+
"kind": "js",
|
|
1419
|
+
"name": "default",
|
|
1420
|
+
"declaration": {
|
|
1421
|
+
"name": "patchPatcher",
|
|
1422
|
+
"module": "dist/features/patchPatcher.js"
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
]
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"kind": "javascript-module",
|
|
1429
|
+
"path": "dist/features/patchPopup.js",
|
|
1430
|
+
"declarations": [],
|
|
1431
|
+
"exports": []
|
|
1432
|
+
},
|
|
1316
1433
|
{
|
|
1317
1434
|
"kind": "javascript-module",
|
|
1318
1435
|
"path": "dist/delegate/ItemNavigation.js",
|
|
@@ -1488,123 +1605,6 @@
|
|
|
1488
1605
|
}
|
|
1489
1606
|
]
|
|
1490
1607
|
},
|
|
1491
|
-
{
|
|
1492
|
-
"kind": "javascript-module",
|
|
1493
|
-
"path": "dist/features/F6Navigation.js",
|
|
1494
|
-
"declarations": [],
|
|
1495
|
-
"exports": [
|
|
1496
|
-
{
|
|
1497
|
-
"kind": "js",
|
|
1498
|
-
"name": "default",
|
|
1499
|
-
"declaration": {
|
|
1500
|
-
"name": "F6Navigation",
|
|
1501
|
-
"module": "dist/features/F6Navigation.js"
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
]
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
"kind": "javascript-module",
|
|
1508
|
-
"path": "dist/features/InputElementsFormSupport.js",
|
|
1509
|
-
"declarations": [],
|
|
1510
|
-
"exports": []
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
"kind": "javascript-module",
|
|
1514
|
-
"path": "dist/features/LegacyDateFormats.js",
|
|
1515
|
-
"declarations": [],
|
|
1516
|
-
"exports": [
|
|
1517
|
-
{
|
|
1518
|
-
"kind": "js",
|
|
1519
|
-
"name": "default",
|
|
1520
|
-
"declaration": {
|
|
1521
|
-
"name": "LegacyDateFormats",
|
|
1522
|
-
"module": "dist/features/LegacyDateFormats.js"
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
"kind": "javascript-module",
|
|
1529
|
-
"path": "dist/features/OpenUI5Element.js",
|
|
1530
|
-
"declarations": [],
|
|
1531
|
-
"exports": [
|
|
1532
|
-
{
|
|
1533
|
-
"kind": "js",
|
|
1534
|
-
"name": "default",
|
|
1535
|
-
"declaration": {
|
|
1536
|
-
"name": "OpenUI5Element",
|
|
1537
|
-
"module": "dist/features/OpenUI5Element.js"
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
]
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"kind": "javascript-module",
|
|
1544
|
-
"path": "dist/features/OpenUI5Enablement.js",
|
|
1545
|
-
"declarations": [],
|
|
1546
|
-
"exports": [
|
|
1547
|
-
{
|
|
1548
|
-
"kind": "js",
|
|
1549
|
-
"name": "default",
|
|
1550
|
-
"declaration": {
|
|
1551
|
-
"name": "OpenUI5Enablement",
|
|
1552
|
-
"module": "dist/features/OpenUI5Enablement.js"
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
]
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"kind": "javascript-module",
|
|
1559
|
-
"path": "dist/features/OpenUI5Support.js",
|
|
1560
|
-
"declarations": [],
|
|
1561
|
-
"exports": [
|
|
1562
|
-
{
|
|
1563
|
-
"kind": "js",
|
|
1564
|
-
"name": "default",
|
|
1565
|
-
"declaration": {
|
|
1566
|
-
"name": "OpenUI5Support",
|
|
1567
|
-
"module": "dist/features/OpenUI5Support.js"
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
]
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
"kind": "javascript-module",
|
|
1574
|
-
"path": "dist/features/insertOpenUI5PopupStyles.js",
|
|
1575
|
-
"declarations": [],
|
|
1576
|
-
"exports": [
|
|
1577
|
-
{
|
|
1578
|
-
"kind": "js",
|
|
1579
|
-
"name": "default",
|
|
1580
|
-
"declaration": {
|
|
1581
|
-
"name": "insertOpenUI5PopupStyles",
|
|
1582
|
-
"module": "dist/features/insertOpenUI5PopupStyles.js"
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
]
|
|
1586
|
-
},
|
|
1587
|
-
{
|
|
1588
|
-
"kind": "javascript-module",
|
|
1589
|
-
"path": "dist/features/patchPatcher.js",
|
|
1590
|
-
"declarations": [],
|
|
1591
|
-
"exports": [
|
|
1592
|
-
{
|
|
1593
|
-
"kind": "js",
|
|
1594
|
-
"name": "default",
|
|
1595
|
-
"declaration": {
|
|
1596
|
-
"name": "patchPatcher",
|
|
1597
|
-
"module": "dist/features/patchPatcher.js"
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
]
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
"kind": "javascript-module",
|
|
1604
|
-
"path": "dist/features/patchPopup.js",
|
|
1605
|
-
"declarations": [],
|
|
1606
|
-
"exports": []
|
|
1607
|
-
},
|
|
1608
1608
|
{
|
|
1609
1609
|
"kind": "javascript-module",
|
|
1610
1610
|
"path": "dist/locale/Locale.js",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const VersionInfo = {
|
|
2
|
-
version: "2.15.
|
|
2
|
+
version: "2.15.6",
|
|
3
3
|
major: 2,
|
|
4
4
|
minor: 15,
|
|
5
|
-
patch:
|
|
5
|
+
patch: 6,
|
|
6
6
|
suffix: "",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1785334661,
|
|
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.15.
|
|
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.15.6\",\n\tmajor: 2,\n\tminor: 15,\n\tpatch: 6,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1785334661,\n};\nexport default VersionInfo;"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{attachLanguageChange as
|
|
1
|
+
"use strict";import{attachLanguageChange as C}from"../locale/languageChange.js";import h from"../locale/getLocale.js";import{DEFAULT_LOCALE as a,SUPPORTED_LOCALES as l}from"../generated/AssetParameters.js";import{getFeature as w}from"../FeaturesRegistry.js";const f=new Map,s=new Map,i=new Map,L=new Set;let d=!1;const O={iw:"he",ji:"yi",in:"id"},D=t=>{d||(console.warn(`[LocaleData] Supported locale "${t}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),d=!0)},y=(t,e,n)=>{t=t&&O[t]||t,t==="no"&&(t="nb"),t==="zh"&&!e&&(n==="Hans"?e="CN":n==="Hant"&&(e="TW")),(t==="sh"||t==="sr"&&n==="Latn")&&(t="sr",e="Latn");let o=`${t}_${e}`;return l.includes(o)?s.has(o)?o:(D(o),a):(o=t,l.includes(o)?s.has(o)?o:(D(o),a):a)},u=(t,e)=>{f.set(t,e)},R=t=>{s.has(t)||(t=a);const e=f.get(t);if(!e)throw new Error(`CLDR data for locale ${t} is not loaded!`);return e},S=t=>{if(!i.get(t)){const e=s.get(t);if(!e)throw new Error(`CLDR data for locale ${t} is not loaded!`);i.set(t,e(t))}return i.get(t)},g=async(t,e,n)=>{const o=y(t,e,n),p=w("OpenUI5Support");if(p){const r=p.getLocaleDataObject();if(r){u(o,r);return}}try{const r=await S(o);u(o,r)}catch(r){const c=r;L.has(c.message)||(L.add(c.message),console.error(c.message))}},m=(t,e)=>{s.set(t,e)};m("en",async()=>(console.warn('[LocaleData] Falling back to loading "en" locale data from CDN.','For production usage, please configure locale data loading via the "Assets.js" module of the webcomponents package you are using.'),(await fetch("https://cdn.jsdelivr.net/npm/@openui5/sap.ui.core@1.120.17/src/sap/ui/core/cldr/en.json")).json())),C(()=>{const t=h();return g(t.getLanguage(),t.getRegion(),t.getScript())});export{m as registerLocaleDataLoader,g as fetchCldr,R as getLocaleData};
|
|
2
2
|
//# sourceMappingURL=LocaleData.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/asset-registries/LocaleData.ts"],
|
|
4
|
-
"sourcesContent": ["import { attachLanguageChange } from \"../locale/languageChange.js\";\nimport getLocale from \"../locale/getLocale.js\";\nimport { DEFAULT_LOCALE, SUPPORTED_LOCALES } from \"../generated/AssetParameters.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type OpenUI5Support from \"../features/OpenUI5Support.js\";\n\ntype LocaleDataLoader = (locale: string) => Promise<CLDRData>;\ntype CLDRData = Record<string, object | boolean | string>;\n\nconst localeDataMap = new Map<string, CLDRData>();\nconst loaders = new Map<string, LocaleDataLoader>();\nconst cldrPromises = new Map<string, Promise<CLDRData>>();\nconst reportedErrors = new Set<string>();\nlet warningShown = false;\n\nconst M_ISO639_OLD_TO_NEW = {\n\t\"iw\": \"he\",\n\t\"ji\": \"yi\",\n\t\"in\": \"id\",\n};\n\nconst _showAssetsWarningOnce = (localeId: string) => {\n\tif (warningShown) {\n\t\treturn;\n\t}\n\n\tconsole.warn(`[LocaleData] Supported locale \"${localeId}\" not configured, import the \"Assets.js\" module from the webcomponents package you are using.`); /* eslint-disable-line */\n\n\twarningShown = true;\n};\n\nconst calcLocale = (language: string, region: string, script: string) => {\n\t// normalize language and handle special cases\n\tlanguage = (language && M_ISO639_OLD_TO_NEW[language as keyof typeof M_ISO639_OLD_TO_NEW]) || language;\n\t// Special case 1: in an SAP context, the inclusive language code \"no\" always means Norwegian Bokmal (\"nb\")\n\tif (language === \"no\") {\n\t\tlanguage = \"nb\";\n\t}\n\t// Special case 2: for Chinese, derive a default region from the script (this behavior is inherited from Java)\n\tif (language === \"zh\" && !region) {\n\t\tif (script === \"Hans\") {\n\t\t\tregion = \"CN\";\n\t\t} else if (script === \"Hant\") {\n\t\t\tregion = \"TW\";\n\t\t}\n\t}\n\n\t// Special case 3: for Serbian, there are cyrillic and latin scripts, \"sh\" and \"sr-latn\" map to \"latin\", \"sr\" maps to cyrillic.\n\tif (language === \"sh\" || (language === \"sr\" && script === \"Latn\")) {\n\t\tlanguage = \"sr\";\n\t\tregion = \"Latn\";\n\t}\n\n\t// try language + region\n\tlet localeId = `${language}_${region}`;\n\tif (SUPPORTED_LOCALES.includes(localeId)) {\n\t\tif (loaders.has(localeId)) {\n\t\t\t// supported and has loader\n\t\t\treturn localeId;\n\t\t}\n\n\t\t// supported, no loader - fallback to default and warn\n\t\t_showAssetsWarningOnce(localeId);\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\t// not supported, try language only\n\tlocaleId = language;\n\tif (SUPPORTED_LOCALES.includes(localeId)) {\n\t\tif (loaders.has(localeId)) {\n\t\t\t// supported and has loader\n\t\t\treturn localeId;\n\t\t}\n\n\t\t// supported, no loader - fallback to default and warn\n\t\t_showAssetsWarningOnce(localeId);\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\t// not supported - fallback to default locale\n\treturn DEFAULT_LOCALE;\n};\n\n// internal set data\nconst setLocaleData = (localeId: string, content: CLDRData) => {\n\tlocaleDataMap.set(localeId, content);\n};\n\n// external getSync\nconst getLocaleData = (localeId: string) => {\n\t// if there is no loader, the default fallback was fetched and a warning was given - use default locale instead\n\tif (!loaders.has(localeId)) {\n\t\tlocaleId = DEFAULT_LOCALE;\n\t}\n\n\tconst content = localeDataMap.get(localeId);\n\tif (!content) {\n\t\tthrow new Error(`CLDR data for locale ${localeId} is not loaded!`);\n\t}\n\n\treturn content;\n};\n\n// load bundle over the network once\nconst _loadCldrOnce = (localeId: string) => {\n\tif (!cldrPromises.get(localeId)) {\n\t\tconst loadCldr = loaders.get(localeId);\n\n\t\tif (!loadCldr) {\n\t\t\tthrow new Error(`CLDR data for locale ${localeId} is not loaded!`);\n\t\t}\n\n\t\tcldrPromises.set(localeId, loadCldr(localeId));\n\t}\n\n\treturn cldrPromises.get(localeId);\n};\n\n// external getAsync\nconst fetchCldr = async (language: string, region: string, script: string) => {\n\tconst localeId = calcLocale(language, region, script);\n\n\t// reuse OpenUI5 CLDR if present\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support) {\n\t\tconst cldrContent = openUI5Support.getLocaleDataObject();\n\t\tif (cldrContent) {\n\t\t\t// only if openui5 actually returned valid content\n\t\t\tsetLocaleData(localeId, cldrContent);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// fetch it\n\ttry {\n\t\tconst cldrContent = await _loadCldrOnce(localeId);\n\t\tsetLocaleData(localeId, cldrContent as CLDRData);\n\t} catch (error: unknown) {\n\t\tconst e = error as Error;\n\t\tif (!reportedErrors.has(e.message)) {\n\t\t\treportedErrors.add(e.message);\n\t\t\tconsole.error(e.message); /* eslint-disable-line */\n\t\t}\n\t}\n};\n\nconst registerLocaleDataLoader = (localeId: string, loader: LocaleDataLoader) => {\n\tloaders.set(localeId, loader);\n};\n\n// register default loader for \"en\" from ui5 CDN (dev workflow without assets)\nregisterLocaleDataLoader(\"en\", async () => {\n\tconst cldrContent = await fetch(`https://
|
|
5
|
-
"mappings": "aAAA,OAAS,wBAAAA,MAA4B,8BACrC,OAAOC,MAAe,yBACtB,OAAS,kBAAAC,EAAgB,qBAAAC,MAAyB,kCAClD,OAAS,cAAAC,MAAkB,yBAM3B,MAAMC,EAAgB,IAAI,IACpBC,EAAU,IAAI,IACdC,EAAe,IAAI,IACnBC,EAAiB,IAAI,IAC3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K,CAAQ,CACjC,EAGMU,EAAY,MAAOR,EAAkBC,EAAgBC,IAAmB,CAC7E,MAAMJ,EAAWC,EAAWC,EAAUC,EAAQC,CAAM,EAG9CO,EAAiBnB,EAAkC,gBAAgB,EACzE,GAAImB,EAAgB,CACnB,MAAMC,EAAcD,EAAe,oBAAoB,EACvD,GAAIC,EAAa,CAEhBP,EAAcL,EAAUY,CAAW,EACnC,MACD,CACD,CAGA,GAAI,CACH,MAAMA,EAAc,MAAMJ,EAAcR,CAAQ,EAChDK,EAAcL,EAAUY,CAAuB,CAChD,OAASC,EAAgB,CACxB,MAAMC,EAAID,EACLjB,EAAe,IAAIkB,EAAE,OAAO,IAChClB,EAAe,IAAIkB,EAAE,OAAO,EAC5B,QAAQ,MAAMA,EAAE,OAAO,EAEzB,CACD,EAEMC,EAA2B,CAACf,EAAkBgB,IAA6B,CAChFtB,EAAQ,IAAIM,EAAUgB,CAAM,CAC7B,EAGAD,EAAyB,KAAM,
|
|
4
|
+
"sourcesContent": ["import { attachLanguageChange } from \"../locale/languageChange.js\";\nimport getLocale from \"../locale/getLocale.js\";\nimport { DEFAULT_LOCALE, SUPPORTED_LOCALES } from \"../generated/AssetParameters.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type OpenUI5Support from \"../features/OpenUI5Support.js\";\n\ntype LocaleDataLoader = (locale: string) => Promise<CLDRData>;\ntype CLDRData = Record<string, object | boolean | string>;\n\nconst localeDataMap = new Map<string, CLDRData>();\nconst loaders = new Map<string, LocaleDataLoader>();\nconst cldrPromises = new Map<string, Promise<CLDRData>>();\nconst reportedErrors = new Set<string>();\nlet warningShown = false;\n\nconst M_ISO639_OLD_TO_NEW = {\n\t\"iw\": \"he\",\n\t\"ji\": \"yi\",\n\t\"in\": \"id\",\n};\n\nconst _showAssetsWarningOnce = (localeId: string) => {\n\tif (warningShown) {\n\t\treturn;\n\t}\n\n\tconsole.warn(`[LocaleData] Supported locale \"${localeId}\" not configured, import the \"Assets.js\" module from the webcomponents package you are using.`); /* eslint-disable-line */\n\n\twarningShown = true;\n};\n\nconst calcLocale = (language: string, region: string, script: string) => {\n\t// normalize language and handle special cases\n\tlanguage = (language && M_ISO639_OLD_TO_NEW[language as keyof typeof M_ISO639_OLD_TO_NEW]) || language;\n\t// Special case 1: in an SAP context, the inclusive language code \"no\" always means Norwegian Bokmal (\"nb\")\n\tif (language === \"no\") {\n\t\tlanguage = \"nb\";\n\t}\n\t// Special case 2: for Chinese, derive a default region from the script (this behavior is inherited from Java)\n\tif (language === \"zh\" && !region) {\n\t\tif (script === \"Hans\") {\n\t\t\tregion = \"CN\";\n\t\t} else if (script === \"Hant\") {\n\t\t\tregion = \"TW\";\n\t\t}\n\t}\n\n\t// Special case 3: for Serbian, there are cyrillic and latin scripts, \"sh\" and \"sr-latn\" map to \"latin\", \"sr\" maps to cyrillic.\n\tif (language === \"sh\" || (language === \"sr\" && script === \"Latn\")) {\n\t\tlanguage = \"sr\";\n\t\tregion = \"Latn\";\n\t}\n\n\t// try language + region\n\tlet localeId = `${language}_${region}`;\n\tif (SUPPORTED_LOCALES.includes(localeId)) {\n\t\tif (loaders.has(localeId)) {\n\t\t\t// supported and has loader\n\t\t\treturn localeId;\n\t\t}\n\n\t\t// supported, no loader - fallback to default and warn\n\t\t_showAssetsWarningOnce(localeId);\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\t// not supported, try language only\n\tlocaleId = language;\n\tif (SUPPORTED_LOCALES.includes(localeId)) {\n\t\tif (loaders.has(localeId)) {\n\t\t\t// supported and has loader\n\t\t\treturn localeId;\n\t\t}\n\n\t\t// supported, no loader - fallback to default and warn\n\t\t_showAssetsWarningOnce(localeId);\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\t// not supported - fallback to default locale\n\treturn DEFAULT_LOCALE;\n};\n\n// internal set data\nconst setLocaleData = (localeId: string, content: CLDRData) => {\n\tlocaleDataMap.set(localeId, content);\n};\n\n// external getSync\nconst getLocaleData = (localeId: string) => {\n\t// if there is no loader, the default fallback was fetched and a warning was given - use default locale instead\n\tif (!loaders.has(localeId)) {\n\t\tlocaleId = DEFAULT_LOCALE;\n\t}\n\n\tconst content = localeDataMap.get(localeId);\n\tif (!content) {\n\t\tthrow new Error(`CLDR data for locale ${localeId} is not loaded!`);\n\t}\n\n\treturn content;\n};\n\n// load bundle over the network once\nconst _loadCldrOnce = (localeId: string) => {\n\tif (!cldrPromises.get(localeId)) {\n\t\tconst loadCldr = loaders.get(localeId);\n\n\t\tif (!loadCldr) {\n\t\t\tthrow new Error(`CLDR data for locale ${localeId} is not loaded!`);\n\t\t}\n\n\t\tcldrPromises.set(localeId, loadCldr(localeId));\n\t}\n\n\treturn cldrPromises.get(localeId);\n};\n\n// external getAsync\nconst fetchCldr = async (language: string, region: string, script: string) => {\n\tconst localeId = calcLocale(language, region, script);\n\n\t// reuse OpenUI5 CLDR if present\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support) {\n\t\tconst cldrContent = openUI5Support.getLocaleDataObject();\n\t\tif (cldrContent) {\n\t\t\t// only if openui5 actually returned valid content\n\t\t\tsetLocaleData(localeId, cldrContent);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// fetch it\n\ttry {\n\t\tconst cldrContent = await _loadCldrOnce(localeId);\n\t\tsetLocaleData(localeId, cldrContent as CLDRData);\n\t} catch (error: unknown) {\n\t\tconst e = error as Error;\n\t\tif (!reportedErrors.has(e.message)) {\n\t\t\treportedErrors.add(e.message);\n\t\t\tconsole.error(e.message); /* eslint-disable-line */\n\t\t}\n\t}\n};\n\nconst registerLocaleDataLoader = (localeId: string, loader: LocaleDataLoader) => {\n\tloaders.set(localeId, loader);\n};\n\n// register default loader for \"en\" from ui5 CDN (dev workflow without assets)\nregisterLocaleDataLoader(\"en\", async () => {\n\tconsole.warn(`[LocaleData] Falling back to loading \"en\" locale data from CDN.`, /* eslint-disable-line */\n\t\t`For production usage, please configure locale data loading via the \"Assets.js\" module of the webcomponents package you are using.`); /* eslint-disable-line */\n\tconst cldrContent = await fetch(`https://cdn.jsdelivr.net/npm/@openui5/sap.ui.core@1.120.17/src/sap/ui/core/cldr/en.json`);\n\treturn cldrContent.json() as Promise<CLDRData>;\n});\n\n// When the language changes dynamically (the user calls setLanguage),\n// re-fetch the required CDRD data.\nattachLanguageChange(() => {\n\tconst locale = getLocale();\n\treturn fetchCldr(locale.getLanguage(), locale.getRegion(), locale.getScript());\n});\n\nexport {\n\tregisterLocaleDataLoader,\n\tfetchCldr,\n\tgetLocaleData,\n};\n\nexport type {\n\tCLDRData,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,wBAAAA,MAA4B,8BACrC,OAAOC,MAAe,yBACtB,OAAS,kBAAAC,EAAgB,qBAAAC,MAAyB,kCAClD,OAAS,cAAAC,MAAkB,yBAM3B,MAAMC,EAAgB,IAAI,IACpBC,EAAU,IAAI,IACdC,EAAe,IAAI,IACnBC,EAAiB,IAAI,IAC3B,IAAIC,EAAe,GAEnB,MAAMC,EAAsB,CAC3B,GAAM,KACN,GAAM,KACN,GAAM,IACP,EAEMC,EAA0BC,GAAqB,CAChDH,IAIJ,QAAQ,KAAK,kCAAkCG,CAAQ,+FAA+F,EAEtJH,EAAe,GAChB,EAEMI,EAAa,CAACC,EAAkBC,EAAgBC,IAAmB,CAExEF,EAAYA,GAAYJ,EAAoBI,CAA4C,GAAMA,EAE1FA,IAAa,OAChBA,EAAW,MAGRA,IAAa,MAAQ,CAACC,IACrBC,IAAW,OACdD,EAAS,KACCC,IAAW,SACrBD,EAAS,QAKPD,IAAa,MAASA,IAAa,MAAQE,IAAW,UACzDF,EAAW,KACXC,EAAS,QAIV,IAAIH,EAAW,GAAGE,CAAQ,IAAIC,CAAM,GACpC,OAAIZ,EAAkB,SAASS,CAAQ,EAClCN,EAAQ,IAAIM,CAAQ,EAEhBA,GAIRD,EAAuBC,CAAQ,EACxBV,IAIRU,EAAWE,EACPX,EAAkB,SAASS,CAAQ,EAClCN,EA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AmI,GAChH,MAAM,MAAM,yFAAyF,GACtG,KAAK,EACxB,EAID3B,EAAqB,IAAM,CAC1B,MAAM6B,EAAS5B,EAAU,EACzB,OAAOqB,EAAUO,EAAO,YAAY,EAAGA,EAAO,UAAU,EAAGA,EAAO,UAAU,CAAC,CAC9E,CAAC,EAED,OACCF,KAAA,yBACAL,KAAA,UACAH,KAAA",
|
|
6
6
|
"names": ["attachLanguageChange", "getLocale", "DEFAULT_LOCALE", "SUPPORTED_LOCALES", "getFeature", "localeDataMap", "loaders", "cldrPromises", "reportedErrors", "warningShown", "M_ISO639_OLD_TO_NEW", "_showAssetsWarningOnce", "localeId", "calcLocale", "language", "region", "script", "setLocaleData", "content", "getLocaleData", "_loadCldrOnce", "loadCldr", "fetchCldr", "openUI5Support", "cldrContent", "error", "e", "registerLocaleDataLoader", "loader", "locale"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e={version:"2.15.
|
|
1
|
+
"use strict";const e={version:"2.15.6",major:2,minor:15,patch:6,suffix:"",isNext:!1,buildTime:1785334661};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.15.
|
|
4
|
+
"sourcesContent": ["const VersionInfo = {\n\tversion: \"2.15.6\",\n\tmajor: 2,\n\tminor: 15,\n\tpatch: 6,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1785334661,\n};\nexport default VersionInfo;"],
|
|
5
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@openui5/sap.ui.core": "1.120.17",
|
|
66
66
|
"@sap-theming/theming-base-content": "11.29.3",
|
|
67
67
|
"@ui5/cypress-internal": "0.1.0",
|
|
68
|
-
"@ui5/webcomponents-tools": "2.15.
|
|
68
|
+
"@ui5/webcomponents-tools": "2.15.6",
|
|
69
69
|
"clean-css": "^5.2.2",
|
|
70
70
|
"cypress": "^15.3.0",
|
|
71
71
|
"eslint": "^7.22.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"vite": "5.4.8"
|
|
79
79
|
},
|
|
80
80
|
"customElements": "dist/custom-elements.json",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "702d02db396f7fd609bcb13fe3d08a387bd08a2f"
|
|
82
82
|
}
|