@ui5/webcomponents-base 2.23.1 → 2.23.2
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/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/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/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/FontFace.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createOrUpdateStyle } from "./ManagedStyles.js";
|
|
2
2
|
import { getFeature } from "./FeaturesRegistry.js";
|
|
3
3
|
import fontFaceCSS from "./generated/css/FontFace.css.js";
|
|
4
4
|
import { getDefaultFontLoading } from "./config/Fonts.js";
|
|
@@ -14,9 +14,7 @@ const insertMainFontFace = () => {
|
|
|
14
14
|
if (!getDefaultFontLoading() || hasFontStyles) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
createStyle(fontFaceCSS, "data-ui5-font-face");
|
|
19
|
-
}
|
|
17
|
+
createOrUpdateStyle(fontFaceCSS, "data-ui5-font-face");
|
|
20
18
|
};
|
|
21
19
|
export default insertFontFace;
|
|
22
20
|
//# sourceMappingURL=FontFace.js.map
|
package/dist/FontFace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontFace.js","sourceRoot":"","sources":["../src/FontFace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"FontFace.js","sourceRoot":"","sources":["../src/FontFace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,cAAc,GAAG,GAAG,EAAE;IAC3B,MAAM,cAAc,GAAG,UAAU,CAAwB,gBAAgB,CAAC,CAAC;IAE3E,gGAAgG;IAChG,IAAI,CAAC,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC;QAC9D,kBAAkB,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAE/E,IAAI,CAAC,qBAAqB,EAAE,IAAI,aAAa,EAAE,CAAC;QAC/C,OAAO;IACR,CAAC;IAED,mBAAmB,CAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","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"]}
|
package/dist/ManagedStyles.js
CHANGED
|
@@ -21,6 +21,9 @@ const createStyle = (content, name, value = "", theme) => {
|
|
|
21
21
|
document.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];
|
|
22
22
|
};
|
|
23
23
|
const updateStyle = (content, name, value = "", theme) => {
|
|
24
|
+
if (isSSR) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
24
27
|
const currentRuntimeIndex = getCurrentRuntimeIndex();
|
|
25
28
|
const stylesheet = document.adoptedStyleSheets.find(sh => sh._ui5StyleId === getStyleId(name, value));
|
|
26
29
|
if (!stylesheet) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedStyles.js","sourceRoot":"","sources":["../src/ManagedStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAE9C,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE;IAClD,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1C,CAAC,CAAC;AA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IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACP,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAe,EAAE,MAAe,EAAE,EAAE;IACxD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,MAAM,CAAC;IACf,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,MAAM,CAAC;IACf,CAAC;IACD,OAAO,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9B,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,WAAW,GACX,CAAC","sourcesContent":["import { getCurrentRuntimeIndex, compareRuntimes } from \"./Runtimes.js\";\n\nconst isSSR = typeof document === \"undefined\";\n\nconst getStyleId = (name: string, value: string) => {\n\treturn value ? `${name}|${value}` : name;\n};\n\nconst shouldUpdate = (runtimeIndex: string | undefined) => {\n\tif (runtimeIndex === undefined) {\n\t\treturn true;\n\t}\n\treturn compareRuntimes(getCurrentRuntimeIndex(), parseInt(runtimeIndex)) >= 1; // 1 or larger means the current is newer, 0 means the same, -1 means the resource's runtime is newer\n};\n\nconst createStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tconst currentRuntimeIndex = getCurrentRuntimeIndex();\n\n\tconst stylesheet = new CSSStyleSheet();\n\tstylesheet.replaceSync(content);\n\t(stylesheet as Record<string, any>)._ui5StyleId = getStyleId(name, value); // set an id so that we can find the style later\n\tif (theme) {\n\t\t(stylesheet as Record<string, any>)._ui5RuntimeIndex = currentRuntimeIndex;\n\t\t(stylesheet as Record<string, any>)._ui5Theme = theme;\n\t}\n\tdocument.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];\n};\n\nconst updateStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tconst currentRuntimeIndex = getCurrentRuntimeIndex();\n\n\tconst stylesheet = document.adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === getStyleId(name, value));\n\tif (!stylesheet) {\n\t\treturn;\n\t}\n\n\tif (!theme) {\n\t\tstylesheet.replaceSync(content || \"\");\n\t} else {\n\t\tconst stylesheetRuntimeIndex: string | undefined = (stylesheet as Record<string, any>)._ui5RuntimeIndex;\n\t\tconst stylesheetTheme: string | undefined = (stylesheet as Record<string, any>)._ui5Theme;\n\t\tif (stylesheetTheme !== theme || shouldUpdate(stylesheetRuntimeIndex)) {\n\t\t\tstylesheet.replaceSync(content || \"\");\n\t\t\t(stylesheet as Record<string, any>)._ui5RuntimeIndex = String(currentRuntimeIndex);\n\t\t\t(stylesheet as Record<string, any>)._ui5Theme = theme;\n\t\t}\n\t}\n};\n\nconst hasStyle = (name: string, value = \"\"): boolean => {\n\tif (isSSR) {\n\t\treturn true;\n\t}\n\n\treturn !!document.adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === getStyleId(name, value));\n};\n\nconst removeStyle = (name: string, value = \"\") => {\n\tdocument.adoptedStyleSheets = document.adoptedStyleSheets.filter(sh => (sh as Record<string, any>)._ui5StyleId !== getStyleId(name, value));\n};\n\nconst createOrUpdateStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tif (hasStyle(name, value)) {\n\t\tupdateStyle(content, name, value, theme);\n\t} else {\n\t\tcreateStyle(content, name, value, theme);\n\t}\n};\n\nconst mergeStyles = (style1?: string, style2?: string) => {\n\tif (style1 === undefined) {\n\t\treturn style2;\n\t}\n\tif (style2 === undefined) {\n\t\treturn style1;\n\t}\n\treturn `${style1} ${style2}`;\n};\n\nexport {\n\tcreateStyle,\n\thasStyle,\n\tupdateStyle,\n\tremoveStyle,\n\tcreateOrUpdateStyle,\n\tmergeStyles,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ManagedStyles.js","sourceRoot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EAAE;IAChD,QAAQ,CAAC,kBAAkB,GAAG,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAE,EAA0B,CAAC,WAAW,KAAK,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7I,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,KAAK,GAAG,EAAE,EAAE,KAAc,EAAE,EAAE;IACzF,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QAC3B,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACP,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAe,EAAE,MAAe,EAAE,EAAE;IACxD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,MAAM,CAAC;IACf,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,MAAM,CAAC;IACf,CAAC;IACD,OAAO,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9B,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,WAAW,GACX,CAAC","sourcesContent":["import { getCurrentRuntimeIndex, compareRuntimes } from \"./Runtimes.js\";\n\nconst isSSR = typeof document === \"undefined\";\n\nconst getStyleId = (name: string, value: string) => {\n\treturn value ? `${name}|${value}` : name;\n};\n\nconst shouldUpdate = (runtimeIndex: string | undefined) => {\n\tif (runtimeIndex === undefined) {\n\t\treturn true;\n\t}\n\treturn compareRuntimes(getCurrentRuntimeIndex(), parseInt(runtimeIndex)) >= 1; // 1 or larger means the current is newer, 0 means the same, -1 means the resource's runtime is newer\n};\n\nconst createStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tconst currentRuntimeIndex = getCurrentRuntimeIndex();\n\n\tconst stylesheet = new CSSStyleSheet();\n\tstylesheet.replaceSync(content);\n\t(stylesheet as Record<string, any>)._ui5StyleId = getStyleId(name, value); // set an id so that we can find the style later\n\tif (theme) {\n\t\t(stylesheet as Record<string, any>)._ui5RuntimeIndex = currentRuntimeIndex;\n\t\t(stylesheet as Record<string, any>)._ui5Theme = theme;\n\t}\n\tdocument.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];\n};\n\nconst updateStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tif (isSSR) {\n\t\treturn;\n\t}\n\n\tconst currentRuntimeIndex = getCurrentRuntimeIndex();\n\n\tconst stylesheet = document.adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === getStyleId(name, value));\n\tif (!stylesheet) {\n\t\treturn;\n\t}\n\n\tif (!theme) {\n\t\tstylesheet.replaceSync(content || \"\");\n\t} else {\n\t\tconst stylesheetRuntimeIndex: string | undefined = (stylesheet as Record<string, any>)._ui5RuntimeIndex;\n\t\tconst stylesheetTheme: string | undefined = (stylesheet as Record<string, any>)._ui5Theme;\n\t\tif (stylesheetTheme !== theme || shouldUpdate(stylesheetRuntimeIndex)) {\n\t\t\tstylesheet.replaceSync(content || \"\");\n\t\t\t(stylesheet as Record<string, any>)._ui5RuntimeIndex = String(currentRuntimeIndex);\n\t\t\t(stylesheet as Record<string, any>)._ui5Theme = theme;\n\t\t}\n\t}\n};\n\nconst hasStyle = (name: string, value = \"\"): boolean => {\n\tif (isSSR) {\n\t\treturn true;\n\t}\n\n\treturn !!document.adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === getStyleId(name, value));\n};\n\nconst removeStyle = (name: string, value = \"\") => {\n\tdocument.adoptedStyleSheets = document.adoptedStyleSheets.filter(sh => (sh as Record<string, any>)._ui5StyleId !== getStyleId(name, value));\n};\n\nconst createOrUpdateStyle = (content: string, name: string, value = \"\", theme?: string) => {\n\tif (hasStyle(name, value)) {\n\t\tupdateStyle(content, name, value, theme);\n\t} else {\n\t\tcreateStyle(content, name, value, theme);\n\t}\n};\n\nconst mergeStyles = (style1?: string, style2?: string) => {\n\tif (style1 === undefined) {\n\t\treturn style2;\n\t}\n\tif (style2 === undefined) {\n\t\treturn style1;\n\t}\n\treturn `${style1} ${style2}`;\n};\n\nexport {\n\tcreateStyle,\n\thasStyle,\n\tupdateStyle,\n\tremoveStyle,\n\tcreateOrUpdateStyle,\n\tmergeStyles,\n};\n"]}
|
package/dist/ScrollbarStyles.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createOrUpdateStyle } from "./ManagedStyles.js";
|
|
2
2
|
import scrollbarStyles from "./generated/css/ScrollbarStyles.css.js";
|
|
3
3
|
const insertScrollbarStyles = () => {
|
|
4
|
-
|
|
5
|
-
createStyle(scrollbarStyles, "data-ui5-scrollbar-styles");
|
|
6
|
-
}
|
|
4
|
+
createOrUpdateStyle(scrollbarStyles, "data-ui5-scrollbar-styles");
|
|
7
5
|
};
|
|
8
6
|
export default insertScrollbarStyles;
|
|
9
7
|
//# sourceMappingURL=ScrollbarStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollbarStyles.js","sourceRoot":"","sources":["../src/ScrollbarStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ScrollbarStyles.js","sourceRoot":"","sources":["../src/ScrollbarStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,eAAe,MAAM,wCAAwC,CAAC;AAErE,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,mBAAmB,CAAC,eAAe,EAAE,2BAA2B,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import { createOrUpdateStyle } from \"./ManagedStyles.js\";\nimport scrollbarStyles from \"./generated/css/ScrollbarStyles.css.js\";\n\nconst insertScrollbarStyles = () => {\n\tcreateOrUpdateStyle(scrollbarStyles, \"data-ui5-scrollbar-styles\");\n};\n\nexport default insertScrollbarStyles;\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.2",
|
|
3
3
|
major: 2,
|
|
4
4
|
minor: 23,
|
|
5
|
-
patch:
|
|
5
|
+
patch: 2,
|
|
6
6
|
suffix: "",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1782484484,
|
|
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.2\",\n\tmajor: 2,\n\tminor: 23,\n\tpatch: 2,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1782484484,\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
|