@ui5/webcomponents-base 2.23.1 → 2.23.3
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 +22 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/FontFace.js +2 -4
- package/dist/FontFace.js.map +1 -1
- package/dist/ManagedStyles.js +3 -0
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/ScrollbarStyles.js +2 -4
- package/dist/ScrollbarStyles.js.map +1 -1
- package/dist/UI5Element.js +12 -5
- package/dist/UI5Element.js.map +1 -1
- package/dist/config/Language.d.ts +1 -1
- package/dist/config/Language.js +20 -20
- package/dist/config/Language.js.map +1 -1
- package/dist/custom-elements-internal.json +117 -117
- package/dist/custom-elements.json +117 -117
- package/dist/features/insertOpenUI5PopupStyles.js +2 -4
- package/dist/features/insertOpenUI5PopupStyles.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/prod/FontFace.js +1 -1
- package/dist/prod/FontFace.js.map +3 -3
- package/dist/prod/ManagedStyles.js +1 -1
- package/dist/prod/ManagedStyles.js.map +2 -2
- package/dist/prod/ScrollbarStyles.js +1 -1
- package/dist/prod/ScrollbarStyles.js.map +3 -3
- package/dist/prod/UI5Element.js +1 -1
- package/dist/prod/UI5Element.js.map +3 -3
- package/dist/prod/config/Language.js +1 -1
- package/dist/prod/config/Language.js.map +3 -3
- package/dist/prod/features/insertOpenUI5PopupStyles.js +1 -1
- package/dist/prod/features/insertOpenUI5PopupStyles.js.map +3 -3
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +1 -1
- package/package.json +3 -3
package/dist/config/Language.js
CHANGED
|
@@ -11,23 +11,28 @@ attachConfigurationReset(() => {
|
|
|
11
11
|
curLanguage = undefined;
|
|
12
12
|
fetchDefaultLanguage = undefined;
|
|
13
13
|
});
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
let languageChangePending = false;
|
|
22
|
-
attachConfigChange("language", (language) => {
|
|
23
|
-
curLanguage = language;
|
|
24
|
-
languageChangePending = true;
|
|
25
|
-
fireLanguageChange(language).then(() => {
|
|
26
|
-
languageChangePending = false;
|
|
14
|
+
// Promise that resolves when the current language change (i18n bundles + CLDR data)
|
|
15
|
+
// completes, or `null` when no language change is in flight. Consumers that need to
|
|
16
|
+
// wait for locale data to be ready before rendering — most notably language-aware
|
|
17
|
+
// UI5Element instances mounted while setLanguage is in flight — can await it.
|
|
18
|
+
let languageChangePending = null;
|
|
19
|
+
const startLanguageChange = (language) => {
|
|
20
|
+
const changePromise = fireLanguageChange(language).then(() => {
|
|
27
21
|
if (isBooted()) {
|
|
28
|
-
reRenderAllUI5Elements({ languageAware: true });
|
|
22
|
+
return reRenderAllUI5Elements({ languageAware: true });
|
|
23
|
+
}
|
|
24
|
+
}).finally(() => {
|
|
25
|
+
// Only clear if no newer change has already replaced us
|
|
26
|
+
if (languageChangePending === changePromise) {
|
|
27
|
+
languageChangePending = null;
|
|
29
28
|
}
|
|
30
29
|
});
|
|
30
|
+
languageChangePending = changePromise;
|
|
31
|
+
return changePromise;
|
|
32
|
+
};
|
|
33
|
+
attachConfigChange("language", (language) => {
|
|
34
|
+
curLanguage = language;
|
|
35
|
+
startLanguageChange(language);
|
|
31
36
|
});
|
|
32
37
|
const getLanguageChangePending = () => languageChangePending;
|
|
33
38
|
/**
|
|
@@ -53,14 +58,9 @@ const setLanguage = async (language) => {
|
|
|
53
58
|
if (curLanguage === language) {
|
|
54
59
|
return;
|
|
55
60
|
}
|
|
56
|
-
languageChangePending = true;
|
|
57
61
|
curLanguage = language;
|
|
58
62
|
fireConfigChange("language", language);
|
|
59
|
-
await
|
|
60
|
-
languageChangePending = false;
|
|
61
|
-
if (isBooted()) {
|
|
62
|
-
await reRenderAllUI5Elements({ languageAware: true });
|
|
63
|
-
}
|
|
63
|
+
await startLanguageChange(language);
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Returns the default languague.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/config/Language.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,IAAI,qBAAqB,EACpC,uBAAuB,IAAI,iCAAiC,GAC5D,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9F,IAAI,WAA+B,CAAC;AACpC,IAAI,oBAAyC,CAAC;AAE9C,wBAAwB,CAAC,GAAG,EAAE;IAC7B,WAAW,GAAG,SAAS,CAAC;IACxB,oBAAoB,GAAG,SAAS,CAAC;AAClC,CAAC,CAAC,CAAC;AAEH,
|
|
1
|
+
{"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/config/Language.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n\tgetLanguage as getConfiguredLanguage,\n\tgetFetchDefaultLanguage as getConfiguredFetchDefaultLanguage,\n} from \"../InitialConfiguration.js\";\nimport { fireLanguageChange } from \"../locale/languageChange.js\";\nimport { reRenderAllUI5Elements } from \"../Render.js\";\nimport { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\nimport { isBooted } from \"../Boot.js\";\nimport { attachConfigurationReset } from \"./ConfigurationReset.js\";\nimport { fireConfigChange, attachConfigChange, getSharedValue } from \"./ConfigurationSync.js\";\n\nlet curLanguage: string | undefined;\nlet fetchDefaultLanguage: boolean | undefined;\n\nattachConfigurationReset(() => {\n\tcurLanguage = undefined;\n\tfetchDefaultLanguage = undefined;\n});\n\n// Promise that resolves when the current language change (i18n bundles + CLDR data)\n// completes, or `null` when no language change is in flight. Consumers that need to\n// wait for locale data to be ready before rendering — most notably language-aware\n// UI5Element instances mounted while setLanguage is in flight — can await it.\nlet languageChangePending: Promise<void> | null = null;\n\nconst startLanguageChange = (language: string): Promise<void> => {\n\tconst changePromise = fireLanguageChange(language).then(() => {\n\t\tif (isBooted()) {\n\t\t\treturn reRenderAllUI5Elements({ languageAware: true });\n\t\t}\n\t}).finally(() => {\n\t\t// Only clear if no newer change has already replaced us\n\t\tif (languageChangePending === changePromise) {\n\t\t\tlanguageChangePending = null;\n\t\t}\n\t});\n\tlanguageChangePending = changePromise;\n\treturn changePromise;\n};\n\nattachConfigChange(\"language\", (language: string) => {\n\tcurLanguage = language;\n\tstartLanguageChange(language);\n});\n\nconst getLanguageChangePending = (): Promise<void> | null => languageChangePending;\n\n/**\n * Returns the currently configured language, or the browser language as a fallback.\n * @public\n * @returns {string}\n */\nconst getLanguage = (): string | undefined => {\n\tif (curLanguage === undefined) {\n\t\tcurLanguage = getSharedValue<string>(\"language\") ?? getConfiguredLanguage();\n\t}\n\treturn curLanguage;\n};\n\n/**\n * Changes the current language, re-fetches all message bundles, updates all language-aware components\n * and returns a promise that resolves when all rendering is done.\n *\n * @param {string} language\n * @public\n * @returns {Promise<void>}\n */\nconst setLanguage = async (language: string): Promise<void> => {\n\tif (curLanguage === language) {\n\t\treturn;\n\t}\n\n\tcurLanguage = language;\n\n\tfireConfigChange(\"language\", language);\n\n\tawait startLanguageChange(language);\n};\n\n/**\n * Returns the default languague.\n *\n * Note: Default language might be different than the configurated one.\n *\n * @public\n * @returns {string}\n */\nconst getDefaultLanguage = (): string => {\n\treturn DEFAULT_LANGUAGE;\n};\n\n/**\n * Defines if the default language, that is inlined, should be\n * fetched over the network instead of using the inlined one.\n * **Note:** By default the language will not be fetched.\n *\n * @public\n * @param {boolean} fetchDefaultLang\n */\nconst setFetchDefaultLanguage = (fetchDefaultLang: boolean) => {\n\tfetchDefaultLanguage = fetchDefaultLang;\n};\n\n/**\n * Returns if the default language, that is inlined, should be fetched over the network.\n * @public\n * @returns {boolean}\n */\nconst getFetchDefaultLanguage = (): boolean => {\n\tif (fetchDefaultLanguage === undefined) {\n\t\tfetchDefaultLanguage = getConfiguredFetchDefaultLanguage();\n\t}\n\n\treturn fetchDefaultLanguage;\n};\n\nexport {\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n\tgetLanguageChangePending,\n};\n"]}
|
|
@@ -1373,123 +1373,6 @@
|
|
|
1373
1373
|
}
|
|
1374
1374
|
]
|
|
1375
1375
|
},
|
|
1376
|
-
{
|
|
1377
|
-
"kind": "javascript-module",
|
|
1378
|
-
"path": "dist/features/F6Navigation.js",
|
|
1379
|
-
"declarations": [],
|
|
1380
|
-
"exports": [
|
|
1381
|
-
{
|
|
1382
|
-
"kind": "js",
|
|
1383
|
-
"name": "default",
|
|
1384
|
-
"declaration": {
|
|
1385
|
-
"name": "F6Navigation",
|
|
1386
|
-
"module": "dist/features/F6Navigation.js"
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
]
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
"kind": "javascript-module",
|
|
1393
|
-
"path": "dist/features/InputElementsFormSupport.js",
|
|
1394
|
-
"declarations": [],
|
|
1395
|
-
"exports": []
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
"kind": "javascript-module",
|
|
1399
|
-
"path": "dist/features/LegacyDateFormats.js",
|
|
1400
|
-
"declarations": [],
|
|
1401
|
-
"exports": [
|
|
1402
|
-
{
|
|
1403
|
-
"kind": "js",
|
|
1404
|
-
"name": "default",
|
|
1405
|
-
"declaration": {
|
|
1406
|
-
"name": "LegacyDateFormats",
|
|
1407
|
-
"module": "dist/features/LegacyDateFormats.js"
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
]
|
|
1411
|
-
},
|
|
1412
|
-
{
|
|
1413
|
-
"kind": "javascript-module",
|
|
1414
|
-
"path": "dist/features/OpenUI5Element.js",
|
|
1415
|
-
"declarations": [],
|
|
1416
|
-
"exports": [
|
|
1417
|
-
{
|
|
1418
|
-
"kind": "js",
|
|
1419
|
-
"name": "default",
|
|
1420
|
-
"declaration": {
|
|
1421
|
-
"name": "OpenUI5Element",
|
|
1422
|
-
"module": "dist/features/OpenUI5Element.js"
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
]
|
|
1426
|
-
},
|
|
1427
|
-
{
|
|
1428
|
-
"kind": "javascript-module",
|
|
1429
|
-
"path": "dist/features/OpenUI5Enablement.js",
|
|
1430
|
-
"declarations": [],
|
|
1431
|
-
"exports": [
|
|
1432
|
-
{
|
|
1433
|
-
"kind": "js",
|
|
1434
|
-
"name": "default",
|
|
1435
|
-
"declaration": {
|
|
1436
|
-
"name": "OpenUI5Enablement",
|
|
1437
|
-
"module": "dist/features/OpenUI5Enablement.js"
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
]
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
"kind": "javascript-module",
|
|
1444
|
-
"path": "dist/features/OpenUI5Support.js",
|
|
1445
|
-
"declarations": [],
|
|
1446
|
-
"exports": [
|
|
1447
|
-
{
|
|
1448
|
-
"kind": "js",
|
|
1449
|
-
"name": "default",
|
|
1450
|
-
"declaration": {
|
|
1451
|
-
"name": "OpenUI5Support",
|
|
1452
|
-
"module": "dist/features/OpenUI5Support.js"
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
]
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
"kind": "javascript-module",
|
|
1459
|
-
"path": "dist/features/insertOpenUI5PopupStyles.js",
|
|
1460
|
-
"declarations": [],
|
|
1461
|
-
"exports": [
|
|
1462
|
-
{
|
|
1463
|
-
"kind": "js",
|
|
1464
|
-
"name": "default",
|
|
1465
|
-
"declaration": {
|
|
1466
|
-
"name": "insertOpenUI5PopupStyles",
|
|
1467
|
-
"module": "dist/features/insertOpenUI5PopupStyles.js"
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
]
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
"kind": "javascript-module",
|
|
1474
|
-
"path": "dist/features/patchPatcher.js",
|
|
1475
|
-
"declarations": [],
|
|
1476
|
-
"exports": [
|
|
1477
|
-
{
|
|
1478
|
-
"kind": "js",
|
|
1479
|
-
"name": "default",
|
|
1480
|
-
"declaration": {
|
|
1481
|
-
"name": "patchPatcher",
|
|
1482
|
-
"module": "dist/features/patchPatcher.js"
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
]
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
"kind": "javascript-module",
|
|
1489
|
-
"path": "dist/features/patchPopup.js",
|
|
1490
|
-
"declarations": [],
|
|
1491
|
-
"exports": []
|
|
1492
|
-
},
|
|
1493
1376
|
{
|
|
1494
1377
|
"kind": "javascript-module",
|
|
1495
1378
|
"path": "dist/delegate/ItemNavigation.js",
|
|
@@ -1673,6 +1556,123 @@
|
|
|
1673
1556
|
}
|
|
1674
1557
|
]
|
|
1675
1558
|
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "javascript-module",
|
|
1561
|
+
"path": "dist/features/F6Navigation.js",
|
|
1562
|
+
"declarations": [],
|
|
1563
|
+
"exports": [
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "js",
|
|
1566
|
+
"name": "default",
|
|
1567
|
+
"declaration": {
|
|
1568
|
+
"name": "F6Navigation",
|
|
1569
|
+
"module": "dist/features/F6Navigation.js"
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"kind": "javascript-module",
|
|
1576
|
+
"path": "dist/features/InputElementsFormSupport.js",
|
|
1577
|
+
"declarations": [],
|
|
1578
|
+
"exports": []
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"kind": "javascript-module",
|
|
1582
|
+
"path": "dist/features/LegacyDateFormats.js",
|
|
1583
|
+
"declarations": [],
|
|
1584
|
+
"exports": [
|
|
1585
|
+
{
|
|
1586
|
+
"kind": "js",
|
|
1587
|
+
"name": "default",
|
|
1588
|
+
"declaration": {
|
|
1589
|
+
"name": "LegacyDateFormats",
|
|
1590
|
+
"module": "dist/features/LegacyDateFormats.js"
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
]
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"kind": "javascript-module",
|
|
1597
|
+
"path": "dist/features/OpenUI5Element.js",
|
|
1598
|
+
"declarations": [],
|
|
1599
|
+
"exports": [
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "js",
|
|
1602
|
+
"name": "default",
|
|
1603
|
+
"declaration": {
|
|
1604
|
+
"name": "OpenUI5Element",
|
|
1605
|
+
"module": "dist/features/OpenUI5Element.js"
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
]
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"kind": "javascript-module",
|
|
1612
|
+
"path": "dist/features/OpenUI5Enablement.js",
|
|
1613
|
+
"declarations": [],
|
|
1614
|
+
"exports": [
|
|
1615
|
+
{
|
|
1616
|
+
"kind": "js",
|
|
1617
|
+
"name": "default",
|
|
1618
|
+
"declaration": {
|
|
1619
|
+
"name": "OpenUI5Enablement",
|
|
1620
|
+
"module": "dist/features/OpenUI5Enablement.js"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
]
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"kind": "javascript-module",
|
|
1627
|
+
"path": "dist/features/OpenUI5Support.js",
|
|
1628
|
+
"declarations": [],
|
|
1629
|
+
"exports": [
|
|
1630
|
+
{
|
|
1631
|
+
"kind": "js",
|
|
1632
|
+
"name": "default",
|
|
1633
|
+
"declaration": {
|
|
1634
|
+
"name": "OpenUI5Support",
|
|
1635
|
+
"module": "dist/features/OpenUI5Support.js"
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
]
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"kind": "javascript-module",
|
|
1642
|
+
"path": "dist/features/insertOpenUI5PopupStyles.js",
|
|
1643
|
+
"declarations": [],
|
|
1644
|
+
"exports": [
|
|
1645
|
+
{
|
|
1646
|
+
"kind": "js",
|
|
1647
|
+
"name": "default",
|
|
1648
|
+
"declaration": {
|
|
1649
|
+
"name": "insertOpenUI5PopupStyles",
|
|
1650
|
+
"module": "dist/features/insertOpenUI5PopupStyles.js"
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
]
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"kind": "javascript-module",
|
|
1657
|
+
"path": "dist/features/patchPatcher.js",
|
|
1658
|
+
"declarations": [],
|
|
1659
|
+
"exports": [
|
|
1660
|
+
{
|
|
1661
|
+
"kind": "js",
|
|
1662
|
+
"name": "default",
|
|
1663
|
+
"declaration": {
|
|
1664
|
+
"name": "patchPatcher",
|
|
1665
|
+
"module": "dist/features/patchPatcher.js"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
]
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"kind": "javascript-module",
|
|
1672
|
+
"path": "dist/features/patchPopup.js",
|
|
1673
|
+
"declarations": [],
|
|
1674
|
+
"exports": []
|
|
1675
|
+
},
|
|
1676
1676
|
{
|
|
1677
1677
|
"kind": "javascript-module",
|
|
1678
1678
|
"path": "dist/locale/Locale.js",
|
|
@@ -1355,123 +1355,6 @@
|
|
|
1355
1355
|
}
|
|
1356
1356
|
]
|
|
1357
1357
|
},
|
|
1358
|
-
{
|
|
1359
|
-
"kind": "javascript-module",
|
|
1360
|
-
"path": "dist/features/F6Navigation.js",
|
|
1361
|
-
"declarations": [],
|
|
1362
|
-
"exports": [
|
|
1363
|
-
{
|
|
1364
|
-
"kind": "js",
|
|
1365
|
-
"name": "default",
|
|
1366
|
-
"declaration": {
|
|
1367
|
-
"name": "F6Navigation",
|
|
1368
|
-
"module": "dist/features/F6Navigation.js"
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
]
|
|
1372
|
-
},
|
|
1373
|
-
{
|
|
1374
|
-
"kind": "javascript-module",
|
|
1375
|
-
"path": "dist/features/InputElementsFormSupport.js",
|
|
1376
|
-
"declarations": [],
|
|
1377
|
-
"exports": []
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
"kind": "javascript-module",
|
|
1381
|
-
"path": "dist/features/LegacyDateFormats.js",
|
|
1382
|
-
"declarations": [],
|
|
1383
|
-
"exports": [
|
|
1384
|
-
{
|
|
1385
|
-
"kind": "js",
|
|
1386
|
-
"name": "default",
|
|
1387
|
-
"declaration": {
|
|
1388
|
-
"name": "LegacyDateFormats",
|
|
1389
|
-
"module": "dist/features/LegacyDateFormats.js"
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
]
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
"kind": "javascript-module",
|
|
1396
|
-
"path": "dist/features/OpenUI5Element.js",
|
|
1397
|
-
"declarations": [],
|
|
1398
|
-
"exports": [
|
|
1399
|
-
{
|
|
1400
|
-
"kind": "js",
|
|
1401
|
-
"name": "default",
|
|
1402
|
-
"declaration": {
|
|
1403
|
-
"name": "OpenUI5Element",
|
|
1404
|
-
"module": "dist/features/OpenUI5Element.js"
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
]
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
"kind": "javascript-module",
|
|
1411
|
-
"path": "dist/features/OpenUI5Enablement.js",
|
|
1412
|
-
"declarations": [],
|
|
1413
|
-
"exports": [
|
|
1414
|
-
{
|
|
1415
|
-
"kind": "js",
|
|
1416
|
-
"name": "default",
|
|
1417
|
-
"declaration": {
|
|
1418
|
-
"name": "OpenUI5Enablement",
|
|
1419
|
-
"module": "dist/features/OpenUI5Enablement.js"
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
]
|
|
1423
|
-
},
|
|
1424
|
-
{
|
|
1425
|
-
"kind": "javascript-module",
|
|
1426
|
-
"path": "dist/features/OpenUI5Support.js",
|
|
1427
|
-
"declarations": [],
|
|
1428
|
-
"exports": [
|
|
1429
|
-
{
|
|
1430
|
-
"kind": "js",
|
|
1431
|
-
"name": "default",
|
|
1432
|
-
"declaration": {
|
|
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"
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
]
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"kind": "javascript-module",
|
|
1471
|
-
"path": "dist/features/patchPopup.js",
|
|
1472
|
-
"declarations": [],
|
|
1473
|
-
"exports": []
|
|
1474
|
-
},
|
|
1475
1358
|
{
|
|
1476
1359
|
"kind": "javascript-module",
|
|
1477
1360
|
"path": "dist/delegate/ItemNavigation.js",
|
|
@@ -1647,6 +1530,123 @@
|
|
|
1647
1530
|
}
|
|
1648
1531
|
]
|
|
1649
1532
|
},
|
|
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",
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createOrUpdateStyle } from "../ManagedStyles.js";
|
|
2
2
|
import openUI5PopupStyles from "../generated/css/OpenUI5PopupStyles.css.js";
|
|
3
3
|
const insertOpenUI5PopupStyles = () => {
|
|
4
|
-
|
|
5
|
-
createStyle(openUI5PopupStyles, "data-ui5-popup-styles");
|
|
6
|
-
}
|
|
4
|
+
createOrUpdateStyle(openUI5PopupStyles, "data-ui5-popup-styles");
|
|
7
5
|
};
|
|
8
6
|
export default insertOpenUI5PopupStyles;
|
|
9
7
|
//# sourceMappingURL=insertOpenUI5PopupStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertOpenUI5PopupStyles.js","sourceRoot":"","sources":["../../src/features/insertOpenUI5PopupStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"insertOpenUI5PopupStyles.js","sourceRoot":"","sources":["../../src/features/insertOpenUI5PopupStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,kBAAkB,MAAM,4CAA4C,CAAC;AAE5E,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACrC,mBAAmB,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,CAAC;AAClE,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import { createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport openUI5PopupStyles from \"../generated/css/OpenUI5PopupStyles.css.js\";\n\nconst insertOpenUI5PopupStyles = () => {\n\tcreateOrUpdateStyle(openUI5PopupStyles, \"data-ui5-popup-styles\");\n};\n\nexport default insertOpenUI5PopupStyles;\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const VersionInfo = {
|
|
2
|
-
version: "2.23.
|
|
2
|
+
version: "2.23.3",
|
|
3
3
|
major: 2,
|
|
4
4
|
minor: 23,
|
|
5
|
-
patch:
|
|
5
|
+
patch: 3,
|
|
6
6
|
suffix: "",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1783518729,
|
|
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.
|
|
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.3\",\n\tmajor: 2,\n\tminor: 23,\n\tpatch: 3,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1783518729,\n};\nexport default VersionInfo;"]}
|
package/dist/prod/FontFace.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{
|
|
1
|
+
"use strict";import{createOrUpdateStyle as e}from"./ManagedStyles.js";import{getFeature as o}from"./FeaturesRegistry.js";import r from"./generated/css/FontFace.css.js";import{getDefaultFontLoading as p}from"./config/Fonts.js";const n=()=>{const t=o("OpenUI5Support");(!t||!t.isOpenUI5Detected())&&a()},a=()=>{const t=document.querySelector("head>style[data-ui5-font-face]");!p()||t||e(r,"data-ui5-font-face")};export default n;
|
|
2
2
|
//# sourceMappingURL=FontFace.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FontFace.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "aAAA,OAAS,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { createOrUpdateStyle } from \"./ManagedStyles.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport fontFaceCSS from \"./generated/css/FontFace.css.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport { getDefaultFontLoading } from \"./config/Fonts.js\";\n\nconst insertFontFace = () => {\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\n\t// Only set the main font if there is no OpenUI5 support, or there is, but OpenUI5 is not loaded\n\tif ((!openUI5Support || !openUI5Support.isOpenUI5Detected())) {\n\t\tinsertMainFontFace();\n\t}\n};\n\nconst insertMainFontFace = () => {\n\tconst hasFontStyles = document.querySelector(\"head>style[data-ui5-font-face]\");\n\n\tif (!getDefaultFontLoading() || hasFontStyles) {\n\t\treturn;\n\t}\n\n\tcreateOrUpdateStyle(fontFaceCSS, \"data-ui5-font-face\");\n};\n\nexport default insertFontFace;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,uBAAAA,MAA2B,qBACpC,OAAS,cAAAC,MAAkB,wBAC3B,OAAOC,MAAiB,kCAExB,OAAS,yBAAAC,MAA6B,oBAEtC,MAAMC,EAAiB,IAAM,CAC5B,MAAMC,EAAiBJ,EAAkC,gBAAgB,GAGpE,CAACI,GAAkB,CAACA,EAAe,kBAAkB,IACzDC,EAAmB,CAErB,EAEMA,EAAqB,IAAM,CAChC,MAAMC,EAAgB,SAAS,cAAc,gCAAgC,EAEzE,CAACJ,EAAsB,GAAKI,GAIhCP,EAAoBE,EAAa,oBAAoB,CACtD,EAEA,eAAeE",
|
|
6
|
+
"names": ["createOrUpdateStyle", "getFeature", "fontFaceCSS", "getDefaultFontLoading", "insertFontFace", "openUI5Support", "insertMainFontFace", "hasFontStyles"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{getCurrentRuntimeIndex as u,compareRuntimes as
|
|
1
|
+
"use strict";import{getCurrentRuntimeIndex as u,compareRuntimes as g}from"./Runtimes.js";const c=typeof document>"u",i=(e,t)=>t?`${e}|${t}`:e,l=e=>e===void 0?!0:g(u(),parseInt(e))>=1,y=(e,t,r="",s)=>{const d=u(),n=new CSSStyleSheet;n.replaceSync(e),n._ui5StyleId=i(t,r),s&&(n._ui5RuntimeIndex=d,n._ui5Theme=s),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]},S=(e,t,r="",s)=>{if(c)return;const d=u(),n=document.adoptedStyleSheets.find(o=>o._ui5StyleId===i(t,r));if(n)if(!s)n.replaceSync(e||"");else{const o=n._ui5RuntimeIndex;(n._ui5Theme!==s||l(o))&&(n.replaceSync(e||""),n._ui5RuntimeIndex=String(d),n._ui5Theme=s)}},a=(e,t="")=>c?!0:!!document.adoptedStyleSheets.find(r=>r._ui5StyleId===i(e,t)),f=(e,t="")=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r._ui5StyleId!==i(e,t))},R=(e,t,r="",s)=>{a(t,r)?S(e,t,r,s):y(e,t,r,s)},m=(e,t)=>e===void 0?t:t===void 0?e:`${e} ${t}`;export{y as createStyle,a as hasStyle,S as updateStyle,f as removeStyle,R as createOrUpdateStyle,m as mergeStyles};
|
|
2
2
|
//# sourceMappingURL=ManagedStyles.js.map
|