@ui5/webcomponents-base 2.22.1-rc.0 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -2
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/Boot.js +1 -0
- package/dist/Boot.js.map +1 -1
- package/dist/InitialConfiguration.d.ts +1 -2
- package/dist/InitialConfiguration.js +2 -9
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Runtimes.d.ts +1 -5
- package/dist/Runtimes.js +24 -24
- package/dist/Runtimes.js.map +1 -1
- package/dist/custom-elements-internal.json +0 -6
- package/dist/custom-elements.json +0 -6
- package/dist/features/patchPopup.js +5 -33
- package/dist/features/patchPopup.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/prod/Boot.js +1 -1
- package/dist/prod/Boot.js.map +2 -2
- package/dist/prod/InitialConfiguration.js +1 -1
- package/dist/prod/InitialConfiguration.js.map +3 -3
- package/dist/prod/Runtimes.js +1 -1
- package/dist/prod/Runtimes.js.map +3 -3
- package/dist/prod/features/patchPopup.js +1 -1
- package/dist/prod/features/patchPopup.js.map +3 -3
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/prod/index.js.map +3 -3
- package/package.json +3 -3
- package/dist/config/UrlParams.d.ts +0 -20
- package/dist/config/UrlParams.js +0 -30
- package/dist/config/UrlParams.js.map +0 -1
- package/dist/generated/assets/i18n/messagebundle_ar.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_cnr.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_id.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_it.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_mk.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_sr.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +0 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +0 -1
- package/dist/prod/config/UrlParams.js +0 -2
- package/dist/prod/config/UrlParams.js.map +0 -7
- package/dist/prod/generated/assets/i18n/messagebundle_ar.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_bg.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ca.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_cnr.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_cs.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_cy.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_da.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_de.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_el.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_en_GB.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_es.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_es_MX.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_et.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_fi.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_fr.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_fr_CA.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_hi.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_hr.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_hu.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_id.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_it.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_iw.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ja.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_kk.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ko.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_lt.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_lv.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_mk.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ms.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_nl.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_no.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_pl.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_pt.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_pt_PT.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ro.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_ru.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_sh.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_sk.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_sl.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_sr.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_sv.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_th.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_tr.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_uk.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_vi.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_zh_CN.json +0 -1
- package/dist/prod/generated/assets/i18n/messagebundle_zh_TW.json +0 -1
- package/src/i18n/messagebundle_ar.properties +0 -2
- package/src/i18n/messagebundle_bg.properties +0 -2
- package/src/i18n/messagebundle_ca.properties +0 -2
- package/src/i18n/messagebundle_cnr.properties +0 -2
- package/src/i18n/messagebundle_cs.properties +0 -2
- package/src/i18n/messagebundle_cy.properties +0 -2
- package/src/i18n/messagebundle_da.properties +0 -2
- package/src/i18n/messagebundle_de.properties +0 -2
- package/src/i18n/messagebundle_el.properties +0 -2
- package/src/i18n/messagebundle_en_GB.properties +0 -2
- package/src/i18n/messagebundle_es.properties +0 -2
- package/src/i18n/messagebundle_es_MX.properties +0 -2
- package/src/i18n/messagebundle_et.properties +0 -2
- package/src/i18n/messagebundle_fi.properties +0 -2
- package/src/i18n/messagebundle_fr.properties +0 -2
- package/src/i18n/messagebundle_fr_CA.properties +0 -2
- package/src/i18n/messagebundle_hi.properties +0 -2
- package/src/i18n/messagebundle_hr.properties +0 -2
- package/src/i18n/messagebundle_hu.properties +0 -2
- package/src/i18n/messagebundle_id.properties +0 -2
- package/src/i18n/messagebundle_it.properties +0 -2
- package/src/i18n/messagebundle_iw.properties +0 -2
- package/src/i18n/messagebundle_ja.properties +0 -2
- package/src/i18n/messagebundle_kk.properties +0 -2
- package/src/i18n/messagebundle_ko.properties +0 -2
- package/src/i18n/messagebundle_lt.properties +0 -2
- package/src/i18n/messagebundle_lv.properties +0 -2
- package/src/i18n/messagebundle_mk.properties +0 -2
- package/src/i18n/messagebundle_ms.properties +0 -2
- package/src/i18n/messagebundle_nl.properties +0 -2
- package/src/i18n/messagebundle_no.properties +0 -2
- package/src/i18n/messagebundle_pl.properties +0 -2
- package/src/i18n/messagebundle_pt.properties +0 -2
- package/src/i18n/messagebundle_pt_PT.properties +0 -2
- package/src/i18n/messagebundle_ro.properties +0 -2
- package/src/i18n/messagebundle_ru.properties +0 -2
- package/src/i18n/messagebundle_sh.properties +0 -2
- package/src/i18n/messagebundle_sk.properties +0 -2
- package/src/i18n/messagebundle_sl.properties +0 -2
- package/src/i18n/messagebundle_sr.properties +0 -2
- package/src/i18n/messagebundle_sv.properties +0 -2
- package/src/i18n/messagebundle_th.properties +0 -2
- package/src/i18n/messagebundle_tr.properties +0 -2
- package/src/i18n/messagebundle_uk.properties +0 -2
- package/src/i18n/messagebundle_vi.properties +0 -2
- package/src/i18n/messagebundle_zh_CN.properties +0 -2
- package/src/i18n/messagebundle_zh_TW.properties +0 -2
package/dist/prod/Boot.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Boot.ts"],
|
|
4
|
-
"sourcesContent": ["import whenDOMReady from \"./util/whenDOMReady.js\";\nimport EventProvider from \"./EventProvider.js\";\nimport insertFontFace from \"./FontFace.js\";\nimport insertSystemCSSVars from \"./SystemCSSVars.js\";\nimport insertScrollbarStyles from \"./ScrollbarStyles.js\";\nimport { getTheme, getBaseTheme } from \"./config/Theme.js\";\nimport applyTheme from \"./theming/applyTheme.js\";\nimport { registerCurrentRuntime } from \"./Runtimes.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport type F6Navigation from \"./features/F6Navigation.js\";\nimport type { PromiseResolve } from \"./types.js\";\nimport { attachThemeRegistered } from \"./theming/ThemeRegistered.js\";\nimport fixSafariActiveState from \"./util/fixSafariActiveState.js\";\n\nlet booted = false;\nlet bootPromise: Promise<void>;\nlet openUI5ListenersAttached = false;\nconst eventProvider = new EventProvider<void, void>();\n\nconst isBooted = (): boolean => {\n\treturn booted;\n};\n\n/**\n * Attaches a callback that will be executed after boot finishes.\n * **Note:** If the framework already booted, the callback will be immediately executed.\n * @public\n * @param { Function } listener\n */\nconst attachBoot = (listener: () => void) => {\n\tif (!booted) {\n\t\teventProvider.attachEvent(\"boot\", listener);\n\t\treturn;\n\t}\n\n\tlistener();\n};\n\n/**\n * This function may now be called twice - once without OpenUI5Support, and then later again, when OpenUI5 is loaded dynamically\n * In this case, deregister the UI5 Web Components listener\n */\nconst initF6Navigation = async () => {\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tconst isOpenUI5Loaded = openUI5Support ? openUI5Support.isOpenUI5Detected() : false;\n\tconst f6Navigation = getFeature<typeof F6Navigation>(\"F6Navigation\");\n\n\tif (openUI5Support) {\n\t\tf6Navigation && f6Navigation.destroy(); // F6Navigation is not needed when OpenUI5 is used\n\t\tawait openUI5Support.init();\n\t}\n\n\tif (f6Navigation && !isOpenUI5Loaded) {\n\t\tf6Navigation.init();\n\t}\n};\n\nconst attachOpenUI5SupportListeners = () => {\n\tif (openUI5ListenersAttached) {\n\t\treturn;\n\t}\n\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support) {\n\t\topenUI5ListenersAttached = openUI5Support.attachListeners(); // listeners will be attached (return true) only if OpenUI5 is loaded\n\t}\n};\n\nconst boot = async (): Promise<void> => {\n\tif (bootPromise !== undefined) {\n\t\treturn bootPromise;\n\t}\n\n\tconst bootExecutor = async (resolve: PromiseResolve) => {\n\t\tregisterCurrentRuntime();\n\n\t\tif (typeof document === \"undefined\") {\n\t\t\tresolve();\n\t\t\treturn;\n\t\t}\n\n\t\tattachThemeRegistered(onThemeRegistered);\n\n\t\tawait initF6Navigation(); // depends on OpenUI5Support\n\t\tawait whenDOMReady();\n\t\tawait applyTheme(getTheme());\n\t\tattachOpenUI5SupportListeners(); // depends on OpenUI5Support\n\t\tinsertFontFace();\n\t\tinsertSystemCSSVars();\n\t\tinsertScrollbarStyles();\n\t\tfixSafariActiveState();\n\n\t\tresolve();\n\n\t\tbooted = true;\n\t\teventProvider.fireEvent(\"boot\");\n\t};\n\n\tbootPromise = new Promise(bootExecutor as (resolve: PromiseResolve) => void);\n\treturn bootPromise;\n};\n\nconst secondaryBoot = async (): Promise<void> => {\n\tawait boot(); // make sure we're not in the middle of boot before re-running the skipped parts\n\tawait initF6Navigation();\n\tattachOpenUI5SupportListeners();\n};\n\n/**\n * Callback, executed after theme properties registration\n * to apply the newly registered theme.\n * @private\n * @param { string } theme\n */\nconst onThemeRegistered = (theme: string) => {\n\tif (!booted) {\n\t\treturn;\n\t}\n\n\tconst currentTheme = getTheme();\n\tconst currentBaseTheme = getBaseTheme();\n\n\tif (theme === currentTheme || theme === currentBaseTheme) {\n\t\tapplyTheme(currentTheme);\n\t}\n};\n\nexport {\n\tboot,\n\tsecondaryBoot,\n\tattachBoot,\n\tisBooted,\n};\n"],
|
|
5
|
-
"mappings": "aAAA,OAAOA,MAAkB,yBACzB,OAAOC,MAAmB,qBAC1B,OAAOC,MAAoB,gBAC3B,OAAOC,MAAyB,qBAChC,OAAOC,MAA2B,uBAClC,OAAS,YAAAC,EAAU,gBAAAC,MAAoB,oBACvC,OAAOC,MAAgB,0BACvB,OAAS,0BAAAC,MAA8B,gBACvC,OAAS,cAAAC,MAAkB,wBAI3B,OAAS,yBAAAC,MAA6B,+BACtC,OAAOC,MAA0B,iCAEjC,IAAIC,EAAS,GACTC,EACAC,EAA2B,GAC/B,MAAMC,EAAgB,IAAId,EAEpBe,EAAW,IACTJ,EASFK,EAAcC,GAAyB,CAC5C,GAAI,CAACN,EAAQ,CACZG,EAAc,YAAY,OAAQG,CAAQ,EAC1C,MACD,CAEAA,EAAS,CACV,EAMMC,EAAmB,SAAY,CACpC,MAAMC,EAAiBX,EAAkC,gBAAgB,EACnEY,EAAkBD,EAAiBA,EAAe,kBAAkB,EAAI,GACxEE,EAAeb,EAAgC,cAAc,EAE/DW,IACHE,GAAgBA,EAAa,QAAQ,EACrC,MAAMF,EAAe,KAAK,GAGvBE,GAAgB,CAACD,GACpBC,EAAa,KAAK,CAEpB,EAEMC,EAAgC,IAAM,CAC3C,GAAIT,EACH,OAGD,MAAMM,EAAiBX,EAAkC,gBAAgB,EACrEW,IACHN,EAA2BM,EAAe,gBAAgB,EAE5D,EAEMI,EAAO,SAA2B,CACvC,GAAIX,IAAgB,OACnB,OAAOA,EAGR,MAAMY,EAAe,MAAOC,GAA4B,CAGvD,GAFAlB,EAAuB,EAEnB,OAAO,SAAa,IAAa,CACpCkB,EAAQ,EACR,MACD,CAEAhB,EAAsBiB,CAAiB,EAEvC,MAAMR,EAAiB,EACvB,MAAMnB,EAAa,EACnB,MAAMO,EAAWF,EAAS,CAAC,EAC3BkB,EAA8B,EAC9BrB,EAAe,EACfC,EAAoB,EACpBC,EAAsB,EACtBO,EAAqB,EAErBe,EAAQ,EAERd,EAAS,GACTG,EAAc,UAAU,MAAM,CAC/B,EAEA,OAAAF,EAAc,IAAI,QAAQY,CAAiD,EACpEZ,CACR,EAEMe,EAAgB,SAA2B,CAChD,MAAMJ,EAAK,EACX,MAAML,EAAiB,EACvBI,EAA8B,
|
|
4
|
+
"sourcesContent": ["import whenDOMReady from \"./util/whenDOMReady.js\";\nimport EventProvider from \"./EventProvider.js\";\nimport insertFontFace from \"./FontFace.js\";\nimport insertSystemCSSVars from \"./SystemCSSVars.js\";\nimport insertScrollbarStyles from \"./ScrollbarStyles.js\";\nimport { getTheme, getBaseTheme } from \"./config/Theme.js\";\nimport applyTheme from \"./theming/applyTheme.js\";\nimport { registerCurrentRuntime } from \"./Runtimes.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport type F6Navigation from \"./features/F6Navigation.js\";\nimport type { PromiseResolve } from \"./types.js\";\nimport { attachThemeRegistered } from \"./theming/ThemeRegistered.js\";\nimport fixSafariActiveState from \"./util/fixSafariActiveState.js\";\n\nlet booted = false;\nlet bootPromise: Promise<void>;\nlet openUI5ListenersAttached = false;\nconst eventProvider = new EventProvider<void, void>();\n\nconst isBooted = (): boolean => {\n\treturn booted;\n};\n\n/**\n * Attaches a callback that will be executed after boot finishes.\n * **Note:** If the framework already booted, the callback will be immediately executed.\n * @public\n * @param { Function } listener\n */\nconst attachBoot = (listener: () => void) => {\n\tif (!booted) {\n\t\teventProvider.attachEvent(\"boot\", listener);\n\t\treturn;\n\t}\n\n\tlistener();\n};\n\n/**\n * This function may now be called twice - once without OpenUI5Support, and then later again, when OpenUI5 is loaded dynamically\n * In this case, deregister the UI5 Web Components listener\n */\nconst initF6Navigation = async () => {\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tconst isOpenUI5Loaded = openUI5Support ? openUI5Support.isOpenUI5Detected() : false;\n\tconst f6Navigation = getFeature<typeof F6Navigation>(\"F6Navigation\");\n\n\tif (openUI5Support) {\n\t\tf6Navigation && f6Navigation.destroy(); // F6Navigation is not needed when OpenUI5 is used\n\t\tawait openUI5Support.init();\n\t}\n\n\tif (f6Navigation && !isOpenUI5Loaded) {\n\t\tf6Navigation.init();\n\t}\n};\n\nconst attachOpenUI5SupportListeners = () => {\n\tif (openUI5ListenersAttached) {\n\t\treturn;\n\t}\n\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support) {\n\t\topenUI5ListenersAttached = openUI5Support.attachListeners(); // listeners will be attached (return true) only if OpenUI5 is loaded\n\t}\n};\n\nconst boot = async (): Promise<void> => {\n\tif (bootPromise !== undefined) {\n\t\treturn bootPromise;\n\t}\n\n\tconst bootExecutor = async (resolve: PromiseResolve) => {\n\t\tregisterCurrentRuntime();\n\n\t\tif (typeof document === \"undefined\") {\n\t\t\tresolve();\n\t\t\treturn;\n\t\t}\n\n\t\tattachThemeRegistered(onThemeRegistered);\n\n\t\tawait initF6Navigation(); // depends on OpenUI5Support\n\t\tawait whenDOMReady();\n\t\tawait applyTheme(getTheme());\n\t\tattachOpenUI5SupportListeners(); // depends on OpenUI5Support\n\t\tinsertFontFace();\n\t\tinsertSystemCSSVars();\n\t\tinsertScrollbarStyles();\n\t\tfixSafariActiveState();\n\n\t\tresolve();\n\n\t\tbooted = true;\n\t\teventProvider.fireEvent(\"boot\");\n\t};\n\n\tbootPromise = new Promise(bootExecutor as (resolve: PromiseResolve) => void);\n\treturn bootPromise;\n};\n\nconst secondaryBoot = async (): Promise<void> => {\n\tawait boot(); // make sure we're not in the middle of boot before re-running the skipped parts\n\tawait initF6Navigation();\n\tattachOpenUI5SupportListeners();\n\tawait applyTheme(getTheme()); // Re-apply theme to detect external theme from OpenUI5 and clean up\n};\n\n/**\n * Callback, executed after theme properties registration\n * to apply the newly registered theme.\n * @private\n * @param { string } theme\n */\nconst onThemeRegistered = (theme: string) => {\n\tif (!booted) {\n\t\treturn;\n\t}\n\n\tconst currentTheme = getTheme();\n\tconst currentBaseTheme = getBaseTheme();\n\n\tif (theme === currentTheme || theme === currentBaseTheme) {\n\t\tapplyTheme(currentTheme);\n\t}\n};\n\nexport {\n\tboot,\n\tsecondaryBoot,\n\tattachBoot,\n\tisBooted,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAkB,yBACzB,OAAOC,MAAmB,qBAC1B,OAAOC,MAAoB,gBAC3B,OAAOC,MAAyB,qBAChC,OAAOC,MAA2B,uBAClC,OAAS,YAAAC,EAAU,gBAAAC,MAAoB,oBACvC,OAAOC,MAAgB,0BACvB,OAAS,0BAAAC,MAA8B,gBACvC,OAAS,cAAAC,MAAkB,wBAI3B,OAAS,yBAAAC,MAA6B,+BACtC,OAAOC,MAA0B,iCAEjC,IAAIC,EAAS,GACTC,EACAC,EAA2B,GAC/B,MAAMC,EAAgB,IAAId,EAEpBe,EAAW,IACTJ,EASFK,EAAcC,GAAyB,CAC5C,GAAI,CAACN,EAAQ,CACZG,EAAc,YAAY,OAAQG,CAAQ,EAC1C,MACD,CAEAA,EAAS,CACV,EAMMC,EAAmB,SAAY,CACpC,MAAMC,EAAiBX,EAAkC,gBAAgB,EACnEY,EAAkBD,EAAiBA,EAAe,kBAAkB,EAAI,GACxEE,EAAeb,EAAgC,cAAc,EAE/DW,IACHE,GAAgBA,EAAa,QAAQ,EACrC,MAAMF,EAAe,KAAK,GAGvBE,GAAgB,CAACD,GACpBC,EAAa,KAAK,CAEpB,EAEMC,EAAgC,IAAM,CAC3C,GAAIT,EACH,OAGD,MAAMM,EAAiBX,EAAkC,gBAAgB,EACrEW,IACHN,EAA2BM,EAAe,gBAAgB,EAE5D,EAEMI,EAAO,SAA2B,CACvC,GAAIX,IAAgB,OACnB,OAAOA,EAGR,MAAMY,EAAe,MAAOC,GAA4B,CAGvD,GAFAlB,EAAuB,EAEnB,OAAO,SAAa,IAAa,CACpCkB,EAAQ,EACR,MACD,CAEAhB,EAAsBiB,CAAiB,EAEvC,MAAMR,EAAiB,EACvB,MAAMnB,EAAa,EACnB,MAAMO,EAAWF,EAAS,CAAC,EAC3BkB,EAA8B,EAC9BrB,EAAe,EACfC,EAAoB,EACpBC,EAAsB,EACtBO,EAAqB,EAErBe,EAAQ,EAERd,EAAS,GACTG,EAAc,UAAU,MAAM,CAC/B,EAEA,OAAAF,EAAc,IAAI,QAAQY,CAAiD,EACpEZ,CACR,EAEMe,EAAgB,SAA2B,CAChD,MAAMJ,EAAK,EACX,MAAML,EAAiB,EACvBI,EAA8B,EAC9B,MAAMhB,EAAWF,EAAS,CAAC,CAC5B,EAQMsB,EAAqBE,GAAkB,CAC5C,GAAI,CAACjB,EACJ,OAGD,MAAMkB,EAAezB,EAAS,EACxB0B,EAAmBzB,EAAa,GAElCuB,IAAUC,GAAgBD,IAAUE,IACvCxB,EAAWuB,CAAY,CAEzB,EAEA,OACCN,KAAA,KACAI,KAAA,cACAX,KAAA,WACAD,KAAA",
|
|
6
6
|
"names": ["whenDOMReady", "EventProvider", "insertFontFace", "insertSystemCSSVars", "insertScrollbarStyles", "getTheme", "getBaseTheme", "applyTheme", "registerCurrentRuntime", "getFeature", "attachThemeRegistered", "fixSafariActiveState", "booted", "bootPromise", "openUI5ListenersAttached", "eventProvider", "isBooted", "attachBoot", "listener", "initF6Navigation", "openUI5Support", "isOpenUI5Loaded", "f6Navigation", "attachOpenUI5SupportListeners", "boot", "bootExecutor", "resolve", "onThemeRegistered", "secondaryBoot", "theme", "currentTheme", "currentBaseTheme"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import f from"./thirdparty/merge.js";import{getFeature as
|
|
1
|
+
"use strict";import f from"./thirdparty/merge.js";import{getFeature as l}from"./FeaturesRegistry.js";import{DEFAULT_THEME as c}from"./generated/AssetParameters.js";import m from"./types/AnimationMode.js";import{resetConfiguration as d}from"./config/ConfigurationReset.js";import{getLocationSearch as h}from"./Location.js";let u=!1,t={animationMode:m.Full,theme:c,themeRoot:void 0,rtl:void 0,language:void 0,timezone:void 0,calendarType:void 0,secondaryCalendarType:void 0,noConflict:!1,formatSettings:{},fetchDefaultLanguage:!1,defaultFontLoading:!0,enableDefaultTooltips:!0};const y=()=>(o(),t.animationMode),C=()=>(o(),t.theme),T=()=>(o(),t.themeRoot),S=()=>(o(),t.language),L=()=>(o(),t.fetchDefaultLanguage),F=()=>(o(),t.noConflict),U=()=>(o(),t.defaultFontLoading),b=()=>(o(),t.enableDefaultTooltips),D=()=>(o(),t.calendarType),I=()=>(o(),t.secondaryCalendarType),O=()=>(o(),t.timezone),R=()=>(o(),t.formatSettings),i=new Map;i.set("true",!0),i.set("false",!1);const M=()=>{const n=document.querySelector("[data-ui5-config]")||document.querySelector("[data-id='sap-ui-config']");let e;if(n){try{e=JSON.parse(n.innerHTML)}catch{console.warn("Incorrect data-sap-ui-config format. Please use JSON")}e&&(t=f(t,e))}},z=()=>{const n=new URLSearchParams(h());n.forEach((e,a)=>{const r=a.split("sap-").length;r===0||r===a.split("sap-ui-").length||p(a,e,"sap")}),n.forEach((e,a)=>{a.startsWith("sap-ui")&&p(a,e,"sap-ui")})},E=n=>n.split("@")[1],P=(n,e)=>n==="theme"&&e.includes("@")?e.split("@")[0]:e,p=(n,e,a)=>{const r=e.toLowerCase(),s=n.split(`${a}-`)[1];i.has(e)&&(e=i.get(r)),s==="theme"?(t.theme=P(s,e),e&&e.includes("@")&&(t.themeRoot=E(e))):t[s]=e},w=()=>{const n=l("OpenUI5Support");if(!n||!n.isOpenUI5Detected())return;const e=n.getConfigurationSettingsObject();t=f(t,e)},o=()=>{typeof document>"u"||u||(g(),u=!0)},g=n=>{n&&d(),M(),z(),w()};export{y as getAnimationMode,C as getTheme,T as getThemeRoot,S as getLanguage,L as getFetchDefaultLanguage,F as getNoConflict,D as getCalendarType,I as getSecondaryCalendarType,O as getTimezone,R as getFormatSettings,U as getDefaultFontLoading,g as resetConfiguration,b as getEnableDefaultTooltips};
|
|
2
2
|
//# sourceMappingURL=InitialConfiguration.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/InitialConfiguration.ts"],
|
|
4
|
-
"sourcesContent": ["import merge from \"./thirdparty/merge.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport { DEFAULT_THEME } from \"./generated/AssetParameters.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport type { FormatSettings } from \"./config/FormatSettings.js\";\nimport AnimationMode from \"./types/AnimationMode.js\";\nimport type CalendarType from \"./types/CalendarType.js\";\nimport { resetConfiguration as resetConfigurationFn } from \"./config/ConfigurationReset.js\";\nimport { getLocationSearch } from \"./Location.js\";\n\nlet initialized = false;\n\ntype InitialConfig = {\n\t[key: string]: any,\n\tanimationMode: AnimationMode,\n\ttheme: string,\n\tthemeRoot: string | undefined,\n\tlanguage: string | undefined,\n\tcalendarType: CalendarType | undefined,\n\tsecondaryCalendarType: CalendarType | undefined,\n\ttimezone: string | undefined,\n\tnoConflict: boolean,\n\tformatSettings: FormatSettings,\n\tfetchDefaultLanguage: boolean,\n\tdefaultFontLoading: boolean,\n\tenableDefaultTooltips: boolean,\n
|
|
5
|
-
"mappings": "aAAA,OAAOA,MAAW,wBAClB,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,iBAAAC,MAAqB,iCAG9B,OAAOC,MAAmB,2BAE1B,OAAS,sBAAsBC,MAA4B,iCAC3D,OAAS,qBAAAC,MAAyB,gBAElC,IAAIC,EAAc,
|
|
6
|
-
"names": ["merge", "getFeature", "DEFAULT_THEME", "AnimationMode", "resetConfigurationFn", "getLocationSearch", "initialized", "initialConfig", "getAnimationMode", "initConfiguration", "getTheme", "getThemeRoot", "getLanguage", "getFetchDefaultLanguage", "getNoConflict", "getDefaultFontLoading", "getEnableDefaultTooltips", "
|
|
4
|
+
"sourcesContent": ["import merge from \"./thirdparty/merge.js\";\nimport { getFeature } from \"./FeaturesRegistry.js\";\nimport { DEFAULT_THEME } from \"./generated/AssetParameters.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport type { FormatSettings } from \"./config/FormatSettings.js\";\nimport AnimationMode from \"./types/AnimationMode.js\";\nimport type CalendarType from \"./types/CalendarType.js\";\nimport { resetConfiguration as resetConfigurationFn } from \"./config/ConfigurationReset.js\";\nimport { getLocationSearch } from \"./Location.js\";\n\nlet initialized = false;\n\ntype InitialConfig = {\n\t[key: string]: any,\n\tanimationMode: AnimationMode,\n\ttheme: string,\n\tthemeRoot: string | undefined,\n\tlanguage: string | undefined,\n\tcalendarType: CalendarType | undefined,\n\tsecondaryCalendarType: CalendarType | undefined,\n\ttimezone: string | undefined,\n\tnoConflict: boolean,\n\tformatSettings: FormatSettings,\n\tfetchDefaultLanguage: boolean,\n\tdefaultFontLoading: boolean,\n\tenableDefaultTooltips: boolean,\n};\n\nlet initialConfig: InitialConfig = {\n\tanimationMode: AnimationMode.Full,\n\ttheme: DEFAULT_THEME,\n\tthemeRoot: undefined,\n\trtl: undefined,\n\tlanguage: undefined,\n\ttimezone: undefined,\n\tcalendarType: undefined,\n\tsecondaryCalendarType: undefined,\n\tnoConflict: false, // no URL\n\tformatSettings: {},\n\tfetchDefaultLanguage: false,\n\tdefaultFontLoading: true,\n\tenableDefaultTooltips: true,\n};\n\n/* General settings */\nconst getAnimationMode = () => {\n\tinitConfiguration();\n\treturn initialConfig.animationMode;\n};\n\nconst getTheme = () => {\n\tinitConfiguration();\n\treturn initialConfig.theme;\n};\n\nconst getThemeRoot = () => {\n\tinitConfiguration();\n\treturn initialConfig.themeRoot;\n};\n\nconst getLanguage = () => {\n\tinitConfiguration();\n\treturn initialConfig.language;\n};\n\n/**\n * Returns if the default language, that is inlined at build time,\n * should be fetched over the network instead.\n * @returns {Boolean}\n */\nconst getFetchDefaultLanguage = () => {\n\tinitConfiguration();\n\treturn initialConfig.fetchDefaultLanguage;\n};\n\nconst getNoConflict = () => {\n\tinitConfiguration();\n\treturn initialConfig.noConflict;\n};\n\nconst getDefaultFontLoading = () => {\n\tinitConfiguration();\n\treturn initialConfig.defaultFontLoading;\n};\n\nconst getEnableDefaultTooltips = () => {\n\tinitConfiguration();\n\treturn initialConfig.enableDefaultTooltips;\n};\n\n/**\n * Get the configured calendar type\n * @returns { String } the name of the configured calendar type\n */\nconst getCalendarType = () => {\n\tinitConfiguration();\n\treturn initialConfig.calendarType;\n};\n\nconst getSecondaryCalendarType = () => {\n\tinitConfiguration();\n\treturn initialConfig.secondaryCalendarType;\n};\n\n/**\n * Returns the configured IANA timezone ID.\n * @returns { String } the configured IANA timezone ID, e.g. \"America/New_York\"\n */\nconst getTimezone = () => {\n\tinitConfiguration();\n\treturn initialConfig.timezone;\n};\n\nconst getFormatSettings = () => {\n\tinitConfiguration();\n\treturn initialConfig.formatSettings;\n};\n\nconst booleanMapping = new Map();\nbooleanMapping.set(\"true\", true);\nbooleanMapping.set(\"false\", false);\n\nconst parseConfigurationScript = () => {\n\tconst configScript = document.querySelector(\"[data-ui5-config]\") || document.querySelector(\"[data-id='sap-ui-config']\"); // for backward compatibility\n\n\tlet configJSON;\n\n\tif (configScript) {\n\t\ttry {\n\t\t\tconfigJSON = JSON.parse(configScript.innerHTML);\n\t\t} catch (err) {\n\t\t\tconsole.warn(\"Incorrect data-sap-ui-config format. Please use JSON\"); /* eslint-disable-line */\n\t\t}\n\n\t\tif (configJSON) {\n\t\t\tinitialConfig = merge(initialConfig, configJSON);\n\t\t}\n\t}\n};\n\nconst parseURLParameters = () => {\n\tconst params = new URLSearchParams(getLocationSearch());\n\n\t// Process \"sap-*\" params first\n\tparams.forEach((value, key) => {\n\t\tconst parts = key.split(\"sap-\").length;\n\t\tif (parts === 0 || parts === key.split(\"sap-ui-\").length) {\n\t\t\treturn;\n\t\t}\n\n\t\tapplyURLParam(key, value, \"sap\");\n\t});\n\n\t// Process \"sap-ui-*\" params\n\tparams.forEach((value, key) => {\n\t\tif (!key.startsWith(\"sap-ui\")) {\n\t\t\treturn;\n\t\t}\n\n\t\tapplyURLParam(key, value, \"sap-ui\");\n\t});\n};\n\nconst normalizeThemeRootParamValue = (value: string) => {\n\tconst themeRoot = value.split(\"@\")[1];\n\n\treturn themeRoot;\n};\n\nconst normalizeThemeParamValue = (param: string, value: string) => {\n\tif (param === \"theme\" && value.includes(\"@\")) { // the theme parameter might have @<URL-TO-THEME> in the value - strip this\n\t\treturn value.split(\"@\")[0];\n\t}\n\n\treturn value;\n};\n\nconst applyURLParam = (key: string, value: string, paramType: string) => {\n\tconst lowerCaseValue = value.toLowerCase();\n\tconst param = key.split(`${paramType}-`)[1];\n\n\tif (booleanMapping.has(value)) {\n\t\tvalue = booleanMapping.get(lowerCaseValue);\n\t}\n\n\tif (param === \"theme\") {\n\t\tinitialConfig.theme = normalizeThemeParamValue(param, value);\n\n\t\tif (value && value.includes(\"@\")) {\n\t\t\tinitialConfig.themeRoot = normalizeThemeRootParamValue(value);\n\t\t}\n\t} else {\n\t\tinitialConfig[param] = value;\n\t}\n};\n\nconst applyOpenUI5Configuration = () => {\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (!openUI5Support || !openUI5Support.isOpenUI5Detected()) {\n\t\treturn;\n\t}\n\n\tconst OpenUI5Config = openUI5Support.getConfigurationSettingsObject();\n\tinitialConfig = merge(initialConfig, OpenUI5Config);\n};\n\nconst initConfiguration = () => {\n\tif (typeof document === \"undefined\" || initialized) {\n\t\treturn;\n\t}\n\n\tresetConfiguration();\n\n\tinitialized = true;\n};\n\n/**\n * Internaly exposed method to enable configurations in tests.\n * @private\n */\nconst resetConfiguration = (testEnv?: boolean) => {\n\tif (testEnv) {\n\t\tresetConfigurationFn();\n\t}\n\t// 1. Lowest priority - configuration script\n\tparseConfigurationScript();\n\n\t// 2. URL parameters overwrite configuration script parameters\n\tparseURLParameters();\n\n\t// 3. If OpenUI5 is detected, it has the highest priority\n\tapplyOpenUI5Configuration();\n};\n\nexport {\n\tgetAnimationMode,\n\tgetTheme,\n\tgetThemeRoot,\n\tgetLanguage,\n\tgetFetchDefaultLanguage,\n\tgetNoConflict,\n\tgetCalendarType,\n\tgetSecondaryCalendarType,\n\tgetTimezone,\n\tgetFormatSettings,\n\tgetDefaultFontLoading,\n\tresetConfiguration,\n\tgetEnableDefaultTooltips,\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["merge", "getFeature", "DEFAULT_THEME", "AnimationMode", "resetConfigurationFn", "getLocationSearch", "initialized", "initialConfig", "getAnimationMode", "initConfiguration", "getTheme", "getThemeRoot", "getLanguage", "getFetchDefaultLanguage", "getNoConflict", "getDefaultFontLoading", "getEnableDefaultTooltips", "getCalendarType", "getSecondaryCalendarType", "getTimezone", "getFormatSettings", "booleanMapping", "parseConfigurationScript", "configScript", "configJSON", "parseURLParameters", "params", "value", "key", "parts", "applyURLParam", "normalizeThemeRootParamValue", "normalizeThemeParamValue", "param", "paramType", "lowerCaseValue", "applyOpenUI5Configuration", "openUI5Support", "OpenUI5Config", "resetConfiguration", "testEnv"]
|
|
7
7
|
}
|
package/dist/prod/Runtimes.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{getAllRegisteredTags as
|
|
1
|
+
"use strict";import{getAllRegisteredTags as g}from"./CustomElementsRegistry.js";import{getCustomElementsScopingRules as p,getCustomElementsScopingSuffix as R}from"./CustomElementsScopeUtils.js";import d from"./generated/VersionInfo.js";import h from"./getSharedResource.js";let i,s="";const u=new Map,n=h("Runtimes",[]),x=()=>{if(i===void 0){i=n.length;const t=d;n.push({...t,get scopingSuffix(){return R()},get registeredTags(){return g()},get scopingRules(){return p()},alias:s,description:`Runtime ${i} - ver ${t.version}${s?` (${s})`:""}`,importMetaUrl:import.meta.url})}},I=()=>i,b=(t,m)=>{const o=`${t},${m}`;if(u.has(o))return u.get(o);const e=n[t],r=n[m];if(!e||!r)throw new Error("Invalid runtime index supplied");if(e.isNext||r.isNext)return e.buildTime-r.buildTime;const c=e.major-r.major;if(c)return c;const a=e.minor-r.minor;if(a)return a;const f=e.patch-r.patch;if(f)return f;const l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(e.suffix,r.suffix);return u.set(o,l),l},C=t=>{s=t},$=()=>n;export{I as getCurrentRuntimeIndex,x as registerCurrentRuntime,b as compareRuntimes,C as setRuntimeAlias,$ as getAllRuntimes};
|
|
2
2
|
//# sourceMappingURL=Runtimes.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Runtimes.ts"],
|
|
4
|
-
"sourcesContent": ["import { getAllRegisteredTags } from \"./CustomElementsRegistry.js\";\nimport { getCustomElementsScopingRules, getCustomElementsScopingSuffix } from \"./CustomElementsScopeUtils.js\";\nimport VersionInfo from \"./generated/VersionInfo.js\";\nimport getSharedResource from \"./getSharedResource.js\";\n\ntype RuntimeData = VersionInfo & {\n\talias: string,\n\tdescription: string,\n\timportMetaUrl: string,\n};\n\nlet currentRuntimeIndex: number;\nlet currentRuntimeAlias = \"\";\n\nconst compareCache = new Map<string, number>();\n\n/**\n * Central registry where all runtimes register themselves by pushing an object.\n * The index in the registry servers as an ID for the runtime.\n * @type {*}\n */\nconst Runtimes = getSharedResource<Array<RuntimeData>>(\"Runtimes\", []);\n\n/**\n * Registers the current runtime in the shared runtimes resource registry\n */\nconst registerCurrentRuntime = () => {\n\tif (currentRuntimeIndex === undefined) {\n\t\tcurrentRuntimeIndex = Runtimes.length;\n\t\tconst versionInfo = VersionInfo;\n\n\t\tRuntimes.push({\n\t\t\t...versionInfo,\n\t\t\tget scopingSuffix() {\n\t\t\t\treturn getCustomElementsScopingSuffix();\n\t\t\t},\n\t\t\tget registeredTags() {\n\t\t\t\treturn getAllRegisteredTags();\n\t\t\t},\n\t\t\tget scopingRules() {\n\t\t\t\treturn getCustomElementsScopingRules();\n\t\t\t},\n\t\t\talias: currentRuntimeAlias,\n\t\t\tdescription: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : \"\"}`,\n\t\t\timportMetaUrl: import.meta.url,\n\t\t});\n\t}\n};\n\n/**\n * Returns the index of the current runtime's object in the shared runtimes resource registry\n * @returns {*}\n */\nconst getCurrentRuntimeIndex = () => {\n\treturn currentRuntimeIndex;\n};\n\n/**\n * Compares two
|
|
5
|
-
"mappings": "aAAA,OAAS,wBAAAA,MAA4B,8BACrC,OAAS,iCAAAC,EAA+B,kCAAAC,MAAsC,gCAC9E,OAAOC,MAAiB,6BACxB,OAAOC,MAAuB,yBAQ9B,IAAIC,EACAC,EAAsB,GAE1B,MAAMC,EAAe,IAAI,IAOnBC,EAAWJ,EAAsC,WAAY,CAAC,CAAC,EAK/DK,EAAyB,IAAM,CACpC,GAAIJ,IAAwB,OAAW,CACtCA,EAAsBG,EAAS,OAC/B,MAAME,EAAcP,EAEpBK,EAAS,KAAK,CACb,GAAGE,EACH,IAAI,eAAgB,CACnB,OAAOR,EAA+B,CACvC,EACA,IAAI,gBAAiB,CACpB,OAAOF,EAAqB,CAC7B,EACA,IAAI,cAAe,CAClB,OAAOC,EAA8B,CACtC,EACA,MAAOK,EACP,YAAa,WAAWD,CAAmB,UAAUK,EAAY,OAAO,GAAGJ,EAAsB,KAAKA,CAAmB,IAAM,EAAE,GACjI,cAAe,YAAY,GAC5B,CAAC,CACF,CACD,EAMMK,EAAyB,IACvBN,
|
|
6
|
-
"names": ["getAllRegisteredTags", "getCustomElementsScopingRules", "getCustomElementsScopingSuffix", "VersionInfo", "getSharedResource", "currentRuntimeIndex", "currentRuntimeAlias", "compareCache", "Runtimes", "registerCurrentRuntime", "versionInfo", "getCurrentRuntimeIndex", "
|
|
4
|
+
"sourcesContent": ["import { getAllRegisteredTags } from \"./CustomElementsRegistry.js\";\nimport { getCustomElementsScopingRules, getCustomElementsScopingSuffix } from \"./CustomElementsScopeUtils.js\";\nimport VersionInfo from \"./generated/VersionInfo.js\";\nimport getSharedResource from \"./getSharedResource.js\";\n\ntype RuntimeData = VersionInfo & {\n\talias: string,\n\tdescription: string,\n\timportMetaUrl: string,\n};\n\nlet currentRuntimeIndex: number;\nlet currentRuntimeAlias = \"\";\n\nconst compareCache = new Map<string, number>();\n\n/**\n * Central registry where all runtimes register themselves by pushing an object.\n * The index in the registry servers as an ID for the runtime.\n * @type {*}\n */\nconst Runtimes = getSharedResource<Array<RuntimeData>>(\"Runtimes\", []);\n\n/**\n * Registers the current runtime in the shared runtimes resource registry\n */\nconst registerCurrentRuntime = () => {\n\tif (currentRuntimeIndex === undefined) {\n\t\tcurrentRuntimeIndex = Runtimes.length;\n\t\tconst versionInfo = VersionInfo;\n\n\t\tRuntimes.push({\n\t\t\t...versionInfo,\n\t\t\tget scopingSuffix() {\n\t\t\t\treturn getCustomElementsScopingSuffix();\n\t\t\t},\n\t\t\tget registeredTags() {\n\t\t\t\treturn getAllRegisteredTags();\n\t\t\t},\n\t\t\tget scopingRules() {\n\t\t\t\treturn getCustomElementsScopingRules();\n\t\t\t},\n\t\t\talias: currentRuntimeAlias,\n\t\t\tdescription: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : \"\"}`,\n\t\t\timportMetaUrl: import.meta.url,\n\t\t});\n\t}\n};\n\n/**\n * Returns the index of the current runtime's object in the shared runtimes resource registry\n * @returns {*}\n */\nconst getCurrentRuntimeIndex = () => {\n\treturn currentRuntimeIndex;\n};\n\n/**\n * Compares two runtimes and returns 1 if the first is of a bigger version, -1 if the second is of a bigger version, and 0 if equal\n * @param index1 The index of the first runtime to compare\n * @param index2 The index of the second runtime to compare\n * @returns {number}\n */\nconst compareRuntimes = (index1: number, index2: number) => {\n\tconst cacheIndex = `${index1},${index2}`;\n\tif (compareCache.has(cacheIndex)) {\n\t\treturn compareCache.get(cacheIndex)!;\n\t}\n\n\tconst runtime1 = Runtimes[index1];\n\tconst runtime2 = Runtimes[index2];\n\n\tif (!runtime1 || !runtime2) {\n\t\tthrow new Error(\"Invalid runtime index supplied\");\n\t}\n\n\t// If any of the two is a next version, bigger buildTime wins\n\tif (runtime1.isNext || runtime2.isNext) {\n\t\treturn runtime1.buildTime - runtime2.buildTime;\n\t}\n\n\t// If major versions differ, bigger one wins\n\tconst majorDiff = runtime1.major - runtime2.major;\n\tif (majorDiff) {\n\t\treturn majorDiff;\n\t}\n\n\t// If minor versions differ, bigger one wins\n\tconst minorDiff = runtime1.minor - runtime2.minor;\n\tif (minorDiff) {\n\t\treturn minorDiff;\n\t}\n\n\t// If patch versions differ, bigger one wins\n\tconst patchDiff = runtime1.patch - runtime2.patch;\n\tif (patchDiff) {\n\t\treturn patchDiff;\n\t}\n\n\t// Bigger suffix wins, f.e. rc10 > rc9\n\t// Important: suffix is alphanumeric, must use natural compare\n\tconst collator = new Intl.Collator(undefined, { numeric: true, sensitivity: \"base\" });\n\tconst result = collator.compare(runtime1.suffix, runtime2.suffix);\n\n\tcompareCache.set(cacheIndex, result);\n\treturn result;\n};\n\n/**\n * Set an alias for the the current app/library/microfrontend which will appear in debug messages and console warnings\n * @param alias\n */\nconst setRuntimeAlias = (alias: string) => {\n\tcurrentRuntimeAlias = alias;\n};\n\nconst getAllRuntimes = () => {\n\treturn Runtimes;\n};\n\nexport {\n\tgetCurrentRuntimeIndex,\n\tregisterCurrentRuntime,\n\tcompareRuntimes,\n\tsetRuntimeAlias,\n\tgetAllRuntimes,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,wBAAAA,MAA4B,8BACrC,OAAS,iCAAAC,EAA+B,kCAAAC,MAAsC,gCAC9E,OAAOC,MAAiB,6BACxB,OAAOC,MAAuB,yBAQ9B,IAAIC,EACAC,EAAsB,GAE1B,MAAMC,EAAe,IAAI,IAOnBC,EAAWJ,EAAsC,WAAY,CAAC,CAAC,EAK/DK,EAAyB,IAAM,CACpC,GAAIJ,IAAwB,OAAW,CACtCA,EAAsBG,EAAS,OAC/B,MAAME,EAAcP,EAEpBK,EAAS,KAAK,CACb,GAAGE,EACH,IAAI,eAAgB,CACnB,OAAOR,EAA+B,CACvC,EACA,IAAI,gBAAiB,CACpB,OAAOF,EAAqB,CAC7B,EACA,IAAI,cAAe,CAClB,OAAOC,EAA8B,CACtC,EACA,MAAOK,EACP,YAAa,WAAWD,CAAmB,UAAUK,EAAY,OAAO,GAAGJ,EAAsB,KAAKA,CAAmB,IAAM,EAAE,GACjI,cAAe,YAAY,GAC5B,CAAC,CACF,CACD,EAMMK,EAAyB,IACvBN,EASFO,EAAkB,CAACC,EAAgBC,IAAmB,CAC3D,MAAMC,EAAa,GAAGF,CAAM,IAAIC,CAAM,GACtC,GAAIP,EAAa,IAAIQ,CAAU,EAC9B,OAAOR,EAAa,IAAIQ,CAAU,EAGnC,MAAMC,EAAWR,EAASK,CAAM,EAC1BI,EAAWT,EAASM,CAAM,EAEhC,GAAI,CAACE,GAAY,CAACC,EACjB,MAAM,IAAI,MAAM,gCAAgC,EAIjD,GAAID,EAAS,QAAUC,EAAS,OAC/B,OAAOD,EAAS,UAAYC,EAAS,UAItC,MAAMC,EAAYF,EAAS,MAAQC,EAAS,MAC5C,GAAIC,EACH,OAAOA,EAIR,MAAMC,EAAYH,EAAS,MAAQC,EAAS,MAC5C,GAAIE,EACH,OAAOA,EAIR,MAAMC,EAAYJ,EAAS,MAAQC,EAAS,MAC5C,GAAIG,EACH,OAAOA,EAMR,MAAMC,EADW,IAAI,KAAK,SAAS,OAAW,CAAE,QAAS,GAAM,YAAa,MAAO,CAAC,EAC5D,QAAQL,EAAS,OAAQC,EAAS,MAAM,EAEhE,OAAAV,EAAa,IAAIQ,EAAYM,CAAM,EAC5BA,CACR,EAMMC,EAAmBC,GAAkB,CAC1CjB,EAAsBiB,CACvB,EAEMC,EAAiB,IACfhB,EAGR,OACCG,KAAA,uBACAF,KAAA,uBACAG,KAAA,gBACAU,KAAA,gBACAE,KAAA",
|
|
6
|
+
"names": ["getAllRegisteredTags", "getCustomElementsScopingRules", "getCustomElementsScopingSuffix", "VersionInfo", "getSharedResource", "currentRuntimeIndex", "currentRuntimeAlias", "compareCache", "Runtimes", "registerCurrentRuntime", "versionInfo", "getCurrentRuntimeIndex", "compareRuntimes", "index1", "index2", "cacheIndex", "runtime1", "runtime2", "majorDiff", "minorDiff", "patchDiff", "result", "setRuntimeAlias", "alias", "getAllRuntimes"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import u from"../getSharedResource.js";import
|
|
1
|
+
"use strict";import u from"../getSharedResource.js";import y from"./insertOpenUI5PopupStyles.js";const p=u("AllOpenedPopupsRegistry",{openedRegistry:[]}),i=e=>{p.openedRegistry.push(e)},a=e=>{const o=p.openedRegistry.findIndex(t=>t.instance===e);o===p.openedRegistry.length-1&&P(),o>-1&&p.openedRegistry.splice(o,1)},c=()=>p.openedRegistry.length===0?null:p.openedRegistry[p.openedRegistry.length-1].instance,l=e=>{for(let o=p.openedRegistry.length-1;o>=0;o--){const t=p.openedRegistry[o];if(t.type==="WebComponent")return!0;if(t.instance===e)break}return!1},s=e=>{const o=e.getContent();return o instanceof HTMLElement?o:o?.getDomRef()||null},d=e=>{if(!["OPENING","OPEN"].includes(e.getOpenState())||!r())return;const t=s(e);if(!t)return;const n=document.getElementById("sap-ui-blocklayer-popup");e.getModal()&&n&&(n.setAttribute("popover","manual"),n.hidePopover(),n.showPopover()),t.setAttribute("popover","manual"),t.hidePopover(),t.showPopover()},g=e=>{const o=s(e);if(o&&(o.hasAttribute("popover")&&(o.hidePopover(),o.removeAttribute("popover")),c()===e&&e.getModal())){const t=document.getElementById("sap-ui-blocklayer-popup");t&&t.hasAttribute("popover")&&t.hidePopover()}},P=()=>{if(!r())return;const e=p.openedRegistry[p.openedRegistry.length-2];if(!e||e.type!=="OpenUI5"||!e.instance.getModal())return;const o=s(e.instance),t=document.getElementById("sap-ui-blocklayer-popup");o?.hidePopover(),t?.showPopover(),o?.showPopover()},r=(e=document)=>e.querySelector(":popover-open")?!0:Array.from(e.querySelectorAll("*")).some(o=>{const t=o.shadowRoot;return t&&r(t)}),h=e=>{const o=e.prototype.onsapescape;e.prototype.onsapescape=function(...n){l(this.oPopup)||o.apply(this,n)}},I=e=>{const o=e.prototype.open;e.prototype.open=function(...n){o.apply(this,n),d(this),i({type:"OpenUI5",instance:this})}},O=e=>{const o=e.prototype._closed;e.prototype._closed=function(...n){g(this),o.apply(this,n),a(this)}},f=e=>{const o=e.prototype.onFocusEvent;e.prototype.onFocusEvent=function(...n){l(this)||o.apply(this,n)}},v=()=>{const e=new CSSStyleSheet;e.replaceSync(".sapMPopup-CTX:popover-open { inset: unset; }"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]},m=(e,o)=>{y(),I(e),O(e),v(),f(e),h(o)};export{m as patchPopup,i as addOpenedPopup,a as removeOpenedPopup,c as getTopmostPopup};
|
|
2
2
|
//# sourceMappingURL=patchPopup.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/patchPopup.ts"],
|
|
4
|
-
"sourcesContent": ["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\
|
|
5
|
-
"mappings": "aACA,OAAOA,MAAuB,0BAC9B,OAAOC,MAA8B,
|
|
6
|
-
"names": ["getSharedResource", "insertOpenUI5PopupStyles", "
|
|
4
|
+
"sourcesContent": ["// OpenUI5's Control.js subset\nimport getSharedResource from \"../getSharedResource.js\";\nimport insertOpenUI5PopupStyles from \"./insertOpenUI5PopupStyles.js\";\n\ntype Control = {\n\tgetDomRef: () => HTMLElement | null,\n}\n\n// The lifecycle of Popup.js is open -> _opened -> close -> _closed, we're interested in the first (open) and last (_closed)\ntype OpenUI5Popup = {\n\topen: (...args: any[]) => void,\n\t_closed: (...args: any[]) => void,\n\tgetOpenState: () => \"CLOSED\" | \"CLOSING\" | \"OPEN\" | \"OPENING\",\n\tgetContent: () => Control | HTMLElement | null, // this is the OpenUI5 Element/Control instance that opens the Popup (usually sap.m.Popover/sap.m.Dialog)\n\tonFocusEvent: (...args: any[]) => void,\n\tgetModal: () => boolean\n};\n\ntype OpenUI5PopupClass = {\n\tprototype: OpenUI5Popup\n};\n\ntype OpenUI5DialogClass = {\n\tprototype: {\n\t\tonsapescape: (...args: any[]) => void,\n\t\toPopup: OpenUI5Popup,\n\t}\n};\n\ntype PopupInfo = {\n\ttype: \"WebComponent\";\n\tinstance: object;\n} | {\n\ttype: \"OpenUI5\";\n\tinstance: OpenUI5Popup;\n};\n\n// contains all OpenUI5 and Web Component popups that are currently opened\nconst AllOpenedPopupsRegistry = getSharedResource<{ openedRegistry: Array<PopupInfo> }>(\"AllOpenedPopupsRegistry\", { openedRegistry: [] });\n\nconst addOpenedPopup = (popupInfo: PopupInfo) => {\n\tAllOpenedPopupsRegistry.openedRegistry.push(popupInfo);\n};\n\nconst removeOpenedPopup = (popup: object) => {\n\tconst index = AllOpenedPopupsRegistry.openedRegistry.findIndex(el => el.instance === popup);\n\n\tif (index === AllOpenedPopupsRegistry.openedRegistry.length - 1) {\n\t\tfixTopmostOpenUI5Popup();\n\t}\n\n\tif (index > -1) {\n\t\tAllOpenedPopupsRegistry.openedRegistry.splice(index, 1);\n\t}\n};\n\nconst getTopmostPopup = () => {\n\tif (AllOpenedPopupsRegistry.openedRegistry.length === 0) {\n\t\treturn null;\n\t}\n\treturn AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 1].instance;\n};\n\n/**\n * Determines whether there is a Web Component popup opened above (a specified popup).\n *\n * @param {object} popup The popup instance to check against.\n * @returns {boolean} `true` if a Web Component popup is opened above (the given popup instance); otherwise `false`.\n */\nconst hasWebComponentPopupAbove = (popup: object) => {\n\tfor (let i = AllOpenedPopupsRegistry.openedRegistry.length - 1; i >= 0; i--) {\n\t\tconst popupInfo = AllOpenedPopupsRegistry.openedRegistry[i];\n\t\tif (popupInfo.type === \"WebComponent\") {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (popupInfo.instance === popup) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn false;\n};\n\nconst getPopupContentElement = (popup: OpenUI5Popup): HTMLElement | null => {\n\tconst content = popup.getContent();\n\treturn content instanceof HTMLElement ? content : content?.getDomRef() || null;\n};\n\nconst openNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst openingInitiated = [\"OPENING\", \"OPEN\"].includes(popup.getOpenState());\n\tif (!openingInitiated || !isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tif (popup.getModal() && openUI5BlockLayer) {\n\t\topenUI5BlockLayer.setAttribute(\"popover\", \"manual\");\n\t\topenUI5BlockLayer.hidePopover();\n\t\topenUI5BlockLayer.showPopover();\n\t}\n\n\tdomRef.setAttribute(\"popover\", \"manual\");\n\tdomRef.hidePopover();\n\tdomRef.showPopover();\n};\n\nconst closeNativePopoverForOpenUI5 = (popup: OpenUI5Popup) => {\n\tconst domRef = getPopupContentElement(popup);\n\n\tif (!domRef) {\n\t\treturn;\n\t}\n\n\tif (domRef.hasAttribute(\"popover\")) {\n\t\tdomRef.hidePopover();\n\t\tdomRef.removeAttribute(\"popover\");\n\t}\n\n\tif (getTopmostPopup() !== popup) {\n\t\treturn;\n\t}\n\n\t// The OpenUI5 block layer is only one for all modal OpenUI5 popups,\n\t// and it is displayed above all opened pupups - OpenUI5 and Web Components,\n\t// as a result, we need to hide this block layer.\n\t// If the underlying popup is a Web Component - it is displayed like a native popover, and we don't need to do anything\n\t// If the underlying popup is an OpenUI5 popup, it will be fixed in fixTopmostOpenUI5Popup method.\n\tif (popup.getModal()) {\n\t\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\t\tif (openUI5BlockLayer && openUI5BlockLayer.hasAttribute(\"popover\")) {\n\t\t\topenUI5BlockLayer.hidePopover();\n\t\t}\n\t}\n};\n\nconst fixTopmostOpenUI5Popup = () => {\n\tif (!isNativePopoverOpen()) {\n\t\treturn;\n\t}\n\n\tconst prevPopup = AllOpenedPopupsRegistry.openedRegistry[AllOpenedPopupsRegistry.openedRegistry.length - 2];\n\tif (!prevPopup\n\t\t|| prevPopup.type !== \"OpenUI5\"\n\t\t|| !prevPopup.instance.getModal()) {\n\t\treturn;\n\t}\n\n\tconst content = getPopupContentElement(prevPopup.instance);\n\tconst openUI5BlockLayer = document.getElementById(\"sap-ui-blocklayer-popup\");\n\n\tcontent?.hidePopover();\n\topenUI5BlockLayer?.showPopover();\n\n\tcontent?.showPopover();\n};\n\nconst isNativePopoverOpen = (root: Document | ShadowRoot = document): boolean => {\n\tif (root.querySelector(\":popover-open\")) {\n\t\treturn true;\n\t}\n\n\treturn Array.from(root.querySelectorAll(\"*\")).some(element => {\n\t\tconst shadowRoot = element.shadowRoot;\n\t\treturn shadowRoot && isNativePopoverOpen(shadowRoot);\n\t});\n};\n\nconst patchDialog = (Dialog: OpenUI5DialogClass) => {\n\tconst origOnsapescape = Dialog.prototype.onsapescape;\n\tDialog.prototype.onsapescape = function onsapescape(...args: any[]) {\n\t\tif (hasWebComponentPopupAbove(this.oPopup)) {\n\t\t\treturn;\n\t\t}\n\n\t\torigOnsapescape.apply(this, args);\n\t};\n};\n\nconst patchOpen = (Popup: OpenUI5PopupClass) => {\n\tconst origOpen = Popup.prototype.open;\n\tPopup.prototype.open = function open(...args: any[]) {\n\t\torigOpen.apply(this, args); // call open first to initiate opening\n\t\topenNativePopoverForOpenUI5(this);\n\n\t\taddOpenedPopup({\n\t\t\ttype: \"OpenUI5\",\n\t\t\tinstance: this,\n\t\t});\n\t};\n};\n\nconst patchClosed = (Popup: OpenUI5PopupClass) => {\n\tconst _origClosed = Popup.prototype._closed;\n\tPopup.prototype._closed = function _closed(...args: any[]) {\n\t\tcloseNativePopoverForOpenUI5(this);\n\t\t_origClosed.apply(this, args); // only then call _close\n\t\tremoveOpenedPopup(this);\n\t};\n};\n\nconst patchFocusEvent = (Popup: OpenUI5PopupClass) => {\n\tconst origFocusEvent = Popup.prototype.onFocusEvent;\n\tPopup.prototype.onFocusEvent = function onFocusEvent(...args: any[]) {\n\t\tif (!hasWebComponentPopupAbove(this)) {\n\t\t\torigFocusEvent.apply(this, args);\n\t\t}\n\t};\n};\n\nconst createGlobalStyles = () => {\n\tconst stylesheet = new CSSStyleSheet();\n\tstylesheet.replaceSync(`.sapMPopup-CTX:popover-open { inset: unset; }`);\n\tdocument.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];\n};\n\nconst patchPopup = (Popup: OpenUI5PopupClass, Dialog: OpenUI5DialogClass) => {\n\tinsertOpenUI5PopupStyles();\n\tpatchOpen(Popup); // Popup.prototype.open\n\tpatchClosed(Popup); // Popup.prototype._closed\n\tcreateGlobalStyles(); // Ensures correct popover positioning by OpenUI5 (otherwise 0,0 is the center of the screen)\n\tpatchFocusEvent(Popup);// Popup.prototype.onFocusEvent\n\tpatchDialog(Dialog); // Dialog.prototype.onsapescape\n};\n\nexport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n};\n\nexport type { OpenUI5PopupClass, OpenUI5DialogClass, PopupInfo };\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["getSharedResource", "insertOpenUI5PopupStyles", "AllOpenedPopupsRegistry", "addOpenedPopup", "popupInfo", "removeOpenedPopup", "popup", "index", "el", "fixTopmostOpenUI5Popup", "getTopmostPopup", "hasWebComponentPopupAbove", "i", "getPopupContentElement", "content", "openNativePopoverForOpenUI5", "isNativePopoverOpen", "domRef", "openUI5BlockLayer", "closeNativePopoverForOpenUI5", "prevPopup", "root", "element", "shadowRoot", "patchDialog", "Dialog", "origOnsapescape", "args", "patchOpen", "Popup", "origOpen", "patchClosed", "_origClosed", "patchFocusEvent", "origFocusEvent", "createGlobalStyles", "stylesheet", "patchPopup"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e={version:"2.22.1
|
|
1
|
+
"use strict";const e={version:"2.22.1",major:2,minor:22,patch:1,suffix:"",isNext:!1,buildTime:1781853614};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.22.1
|
|
5
|
-
"mappings": "aAAA,MAAMA,EAAc,CACnB,QAAS,
|
|
4
|
+
"sourcesContent": ["const VersionInfo = {\n\tversion: \"2.22.1\",\n\tmajor: 2,\n\tminor: 22,\n\tpatch: 1,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1781853614,\n};\nexport default VersionInfo;"],
|
|
5
|
+
"mappings": "aAAA,MAAMA,EAAc,CACnB,QAAS,SACT,MAAO,EACP,MAAO,GACP,MAAO,EACP,OAAQ,GACR,OAAQ,GACR,UAAW,UACZ,EACA,eAAeA",
|
|
6
6
|
"names": ["VersionInfo"]
|
|
7
7
|
}
|
package/dist/prod/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import t from"./animations/scroll.js";import o from"./animations/slideDown.js";import r from"./animations/slideUp.js";import{getAnimationMode as m,setAnimationMode as i}from"./config/AnimationMode.js";import{getCalendarType as a}from"./config/CalendarType.js";import{getFirstDayOfWeek as n,getLegacyDateCalendarCustomizing as p}from"./config/FormatSettings.js";import{setDefaultIconCollection as s,getDefaultIconCollection as f}from"./config/Icons.js";import{RegisteredIconCollection as
|
|
1
|
+
"use strict";import t from"./animations/scroll.js";import o from"./animations/slideDown.js";import r from"./animations/slideUp.js";import{getAnimationMode as m,setAnimationMode as i}from"./config/AnimationMode.js";import{getCalendarType as a}from"./config/CalendarType.js";import{getFirstDayOfWeek as n,getLegacyDateCalendarCustomizing as p}from"./config/FormatSettings.js";import{setDefaultIconCollection as s,getDefaultIconCollection as f}from"./config/Icons.js";import{RegisteredIconCollection as l}from"./asset-registries/util/IconCollectionsByTheme.js";import g from"./asset-registries/util/getIconCollectionByTheme.js";import{startMultipleDrag as d}from"./DragAndDrop.js";import{getLanguage as u,setLanguage as c,getDefaultLanguage as C,setFetchDefaultLanguage as T,getFetchDefaultLanguage as h}from"./config/Language.js";import{getNoConflict as D,setNoConflict as x}from"./config/NoConflict.js";import{getTheme as L,setTheme as E,getDefaultTheme as S}from"./config/Theme.js";import y from"./decorators/customElement.js";import I from"./decorators/event.js";import v from"./decorators/property.js";import R from"./decorators/slot.js";import F from"./decorators/slot-strict.js";import J from"./delegate/ItemNavigation.js";import M from"./delegate/ResizeHandler.js";import N from"./delegate/ScrollEnablement.js";import U from"./locale/applyDirection.js";import{attachDirectionChange as B,detachDirectionChange as b}from"./locale/directionChange.js";import k from"./locale/getEffectiveDir.js";import{attachLanguageChange as z,detachLanguageChange as A}from"./locale/languageChange.js";import{URLListValidator as O,sanitizeHTML as P}from"./util/HTMLSanitizer.js";import{registerI18nLoader as j}from"./asset-registries/i18n.js";import{registerLocaleDataLoader as H}from"./asset-registries/LocaleData.js";import{registerThemePropertiesLoader as X}from"./asset-registries/Themes.js";import{registerIconLoader as w}from"./asset-registries/Icons.js";import{attachBoot as G}from"./Boot.js";import{setCustomElementsScopingSuffix as V,getCustomElementsScopingSuffix as W,setCustomElementsScopingRules as q,getCustomElementsScopingRules as K,getEffectiveScopingSuffixForTag as Q}from"./CustomElementsScope.js";import{supportsTouch as Y,isSafari as Z,isChrome as _,isFirefox as $,isPhone as ee,isTablet as te,isDesktop as oe,isCombi as re,isIOS as me,isAndroid as ie}from"./Device.js";import ae from"./EventProvider.js";import ne,{getI18nBundle as pe,registerCustomI18nBundleGetter as se}from"./i18nBundle.js";import fe from"./MediaRange.js";import{renderDeferred as le,renderImmediately as ge,cancelRender as de,renderFinished as ue}from"./Render.js";import{addCustomCSS as ce,attachThemeLoaded as Ce,detachThemeLoaded as Te}from"./Theming.js";import e from"./UI5Element.js";export default e;export{d as startMultipleDrag,t as scroll,o as slideDown,r as slideUp,m as getAnimationMode,i as setAnimationMode,a as getCalendarType,n as getFirstDayOfWeek,p as getLegacyDateCalendarCustomizing,s as setDefaultIconCollection,f as getDefaultIconCollection,g as getEffectiveIconCollection,l as RegisteredIconCollection,u as getLanguage,c as setLanguage,C as getDefaultLanguage,T as setFetchDefaultLanguage,h as getFetchDefaultLanguage,D as getNoConflict,x as setNoConflict,L as getTheme,E as setTheme,S as getDefaultTheme,y as customElement,I as event,v as property,R as slot,F as slotStrict,J as ItemNavigation,M as ResizeHandler,N as ScrollEnablement,U as applyDirection,B as attachDirectionChange,b as detachDirectionChange,k as getEffectiveDir,z as attachLanguageChange,A as detachLanguageChange,O as URLListValidator,P as sanitizeHTML,j as registerI18nLoader,H as registerLocaleDataLoader,X as registerThemePropertiesLoader,w as registerIconLoader,G as attachBoot,V as setCustomElementsScopingSuffix,W as getCustomElementsScopingSuffix,q as setCustomElementsScopingRules,K as getCustomElementsScopingRules,Q as getEffectiveScopingSuffixForTag,Y as supportsTouch,Z as isSafari,_ as isChrome,$ as isFirefox,ee as isPhone,te as isTablet,oe as isDesktop,re as isCombi,me as isIOS,ie as isAndroid,ae as EventProvider,ne as I18nBundle,pe as getI18nBundle,se as registerCustomI18nBundleGetter,fe as MediaRange,le as renderDeferred,ge as renderImmediately,de as cancelRender,ue as renderFinished,ce as addCustomCSS,Ce as attachThemeLoaded,Te as detachThemeLoaded,e as UI5Element};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/prod/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { JSX } from \"./jsx-runtime.d.ts\";\n\n// animations/\nimport scroll from \"./animations/scroll.js\";\nimport slideDown from \"./animations/slideDown.js\";\nimport slideUp from \"./animations/slideUp.js\";\n\n// config/\nimport { getAnimationMode, setAnimationMode } from \"./config/AnimationMode.js\";\nimport { getCalendarType } from \"./config/CalendarType.js\";\nimport { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from \"./config/FormatSettings.js\";\nimport {\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n} from \"./config/Icons.js\";\nimport { RegisteredIconCollection } from \"./asset-registries/util/IconCollectionsByTheme.js\";\nimport getEffectiveIconCollection from \"./asset-registries/util/getIconCollectionByTheme.js\";\nimport { startMultipleDrag } from \"./DragAndDrop.js\";\nimport {\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n} from \"./config/Language.js\";\nimport { getNoConflict, setNoConflict } from \"./config/NoConflict.js\";\nimport {
|
|
5
|
-
"mappings": "aAGA,OAAOA,MAAY,yBACnB,OAAOC,MAAe,4BACtB,OAAOC,MAAa,0BAGpB,OAAS,oBAAAC,EAAkB,oBAAAC,MAAwB,4BACnD,OAAS,mBAAAC,MAAuB,2BAChC,OAAS,qBAAAC,EAAmB,oCAAAC,MAAwC,6BACpE,OACC,4BAAAC,EACA,4BAAAC,MACM,oBACP,OAAS,4BAAAC,MAAgC,oDACzC,OAAOC,MAAgC,sDACvC,OAAS,qBAAAC,MAAyB,mBAClC,OACC,eAAAC,EACA,eAAAC,EACA,sBAAAC,EACA,2BAAAC,EACA,2BAAAC,MACM,uBACP,OAAS,iBAAAC,EAAe,iBAAAC,MAAqB,yBAC7C,
|
|
6
|
-
"names": ["scroll", "slideDown", "slideUp", "getAnimationMode", "setAnimationMode", "getCalendarType", "getFirstDayOfWeek", "getLegacyDateCalendarCustomizing", "setDefaultIconCollection", "getDefaultIconCollection", "RegisteredIconCollection", "getEffectiveIconCollection", "startMultipleDrag", "getLanguage", "setLanguage", "getDefaultLanguage", "setFetchDefaultLanguage", "getFetchDefaultLanguage", "getNoConflict", "setNoConflict", "
|
|
4
|
+
"sourcesContent": ["import type { JSX } from \"./jsx-runtime.d.ts\";\n\n// animations/\nimport scroll from \"./animations/scroll.js\";\nimport slideDown from \"./animations/slideDown.js\";\nimport slideUp from \"./animations/slideUp.js\";\n\n// config/\nimport { getAnimationMode, setAnimationMode } from \"./config/AnimationMode.js\";\nimport { getCalendarType } from \"./config/CalendarType.js\";\nimport { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from \"./config/FormatSettings.js\";\nimport {\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n} from \"./config/Icons.js\";\nimport { RegisteredIconCollection } from \"./asset-registries/util/IconCollectionsByTheme.js\";\nimport getEffectiveIconCollection from \"./asset-registries/util/getIconCollectionByTheme.js\";\nimport { startMultipleDrag } from \"./DragAndDrop.js\";\nimport {\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n} from \"./config/Language.js\";\nimport { getNoConflict, setNoConflict } from \"./config/NoConflict.js\";\nimport {\n\tgetTheme,\n\tsetTheme,\n\tgetDefaultTheme,\n} from \"./config/Theme.js\";\n\n// decorators/\nimport customElement from \"./decorators/customElement.js\";\nimport event from \"./decorators/event.js\";\nimport property from \"./decorators/property.js\";\nimport slot from \"./decorators/slot.js\";\nimport slotStrict from \"./decorators/slot-strict.js\";\n\n// delegate/\nimport ItemNavigation from \"./delegate/ItemNavigation.js\";\nimport ResizeHandler from \"./delegate/ResizeHandler.js\";\nimport ScrollEnablement from \"./delegate/ScrollEnablement.js\";\n\n// locale/\nimport applyDirection from \"./locale/applyDirection.js\";\nimport { attachDirectionChange, detachDirectionChange } from \"./locale/directionChange.js\";\nimport getEffectiveDir from \"./locale/getEffectiveDir.js\";\nimport { attachLanguageChange, detachLanguageChange } from \"./locale/languageChange.js\";\n\n// util/\nimport { URLListValidator, sanitizeHTML } from \"./util/HTMLSanitizer.js\";\n\n// Assets.ts\nimport { registerI18nLoader } from \"./asset-registries/i18n.js\";\nimport { registerLocaleDataLoader } from \"./asset-registries/LocaleData.js\";\nimport { registerThemePropertiesLoader } from \"./asset-registries/Themes.js\";\nimport { registerIconLoader } from \"./asset-registries/Icons.js\";\n\n// Boot.ts\nimport { attachBoot } from \"./Boot.js\";\n\n// CustomElementsScope.ts\nimport {\n\tsetCustomElementsScopingSuffix,\n\tgetCustomElementsScopingSuffix,\n\tsetCustomElementsScopingRules,\n\tgetCustomElementsScopingRules,\n\tgetEffectiveScopingSuffixForTag,\n} from \"./CustomElementsScope.js\";\n\n// Device.ts\nimport {\n\tsupportsTouch,\n\tisSafari,\n\tisChrome,\n\tisFirefox,\n\tisPhone,\n\tisTablet,\n\tisDesktop,\n\tisCombi,\n\tisIOS,\n\tisAndroid,\n} from \"./Device.js\";\n\n// EventProvider.ts\nimport EventProvider from \"./EventProvider.js\";\n\n// i18nBundle.ts\nimport I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from \"./i18nBundle.js\";\n\n// MediaRange.ts\nimport MediaRange from \"./MediaRange.js\";\n\n// Render.ts\nimport {\n\trenderDeferred,\n\trenderImmediately,\n\tcancelRender,\n\trenderFinished,\n} from \"./Render.js\";\n\n// Theming.ts\nimport { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from \"./Theming.js\";\n\n// UI5Element.ts\nimport UI5Element from \"./UI5Element.js\";\n\nexport default UI5Element;\nexport {\n\t// drag and drop\n\tstartMultipleDrag,\n\n\t// animations/\n\tscroll,\n\tslideDown,\n\tslideUp,\n\n\t// config/\n\tgetAnimationMode,\n\tsetAnimationMode,\n\tgetCalendarType,\n\tgetFirstDayOfWeek,\n\tgetLegacyDateCalendarCustomizing,\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n\tgetEffectiveIconCollection,\n\tRegisteredIconCollection,\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n\tgetNoConflict,\n\tsetNoConflict,\n\tgetTheme,\n\tsetTheme,\n\tgetDefaultTheme,\n\n\t// decorators/\n\tcustomElement,\n\tevent,\n\tproperty,\n\tslot,\n\tslotStrict,\n\n\t// delegate/\n\tItemNavigation,\n\tResizeHandler,\n\tScrollEnablement,\n\n\t// locale/\n\tapplyDirection,\n\tattachDirectionChange,\n\tdetachDirectionChange,\n\tgetEffectiveDir,\n\tattachLanguageChange,\n\tdetachLanguageChange,\n\n\t// util/\n\tURLListValidator,\n\tsanitizeHTML,\n\n\t// Assets.ts\n\tregisterI18nLoader,\n\tregisterLocaleDataLoader,\n\tregisterThemePropertiesLoader,\n\tregisterIconLoader,\n\n\t// Boot.ts\n\tattachBoot,\n\n\t// CustomElementsScope.ts\n\tsetCustomElementsScopingSuffix,\n\tgetCustomElementsScopingSuffix,\n\tsetCustomElementsScopingRules,\n\tgetCustomElementsScopingRules,\n\tgetEffectiveScopingSuffixForTag,\n\n\t// Device.ts\n\tsupportsTouch,\n\tisSafari,\n\tisChrome,\n\tisFirefox,\n\tisPhone,\n\tisTablet,\n\tisDesktop,\n\tisCombi,\n\tisIOS,\n\tisAndroid,\n\n\t// EventProvider.ts\n\tEventProvider,\n\n\t// i18nBundle.ts\n\tI18nBundle,\n\tgetI18nBundle,\n\tregisterCustomI18nBundleGetter,\n\n\t// MediaRange.ts\n\tMediaRange,\n\n\t// Render.ts\n\trenderDeferred,\n\trenderImmediately,\n\tcancelRender,\n\trenderFinished,\n\n\t// Theming.ts\n\taddCustomCSS,\n\tattachThemeLoaded,\n\tdetachThemeLoaded,\n\n\t// UI5Element.ts\n\tUI5Element,\n};\n\ntype TargetedCustomEvent<D, T> = Omit<CustomEvent<D>, \"currentTarget\"> & { currentTarget: T };\n// export type UI5NativeEvent<T extends keyof HTMLElementTagNameMap, N> = Parameters<JSX.IntrinsicElements[T][N]>[0];\nexport type UI5CustomEvent<T extends UI5Element, N extends keyof T[\"eventDetails\"]> = TargetedCustomEvent<T[\"eventDetails\"][N], T>;\nexport type JsxTemplateResult = JSX.Element | void;\nexport type JsxTemplate = () => JsxTemplateResult;\n\nexport type * from \"./types.d.ts\";\nexport type * from \"./jsx-runtime.d.ts\";\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["scroll", "slideDown", "slideUp", "getAnimationMode", "setAnimationMode", "getCalendarType", "getFirstDayOfWeek", "getLegacyDateCalendarCustomizing", "setDefaultIconCollection", "getDefaultIconCollection", "RegisteredIconCollection", "getEffectiveIconCollection", "startMultipleDrag", "getLanguage", "setLanguage", "getDefaultLanguage", "setFetchDefaultLanguage", "getFetchDefaultLanguage", "getNoConflict", "setNoConflict", "getTheme", "setTheme", "getDefaultTheme", "customElement", "event", "property", "slot", "slotStrict", "ItemNavigation", "ResizeHandler", "ScrollEnablement", "applyDirection", "attachDirectionChange", "detachDirectionChange", "getEffectiveDir", "attachLanguageChange", "detachLanguageChange", "URLListValidator", "sanitizeHTML", "registerI18nLoader", "registerLocaleDataLoader", "registerThemePropertiesLoader", "registerIconLoader", "attachBoot", "setCustomElementsScopingSuffix", "getCustomElementsScopingSuffix", "setCustomElementsScopingRules", "getCustomElementsScopingRules", "getEffectiveScopingSuffixForTag", "supportsTouch", "isSafari", "isChrome", "isFirefox", "isPhone", "isTablet", "isDesktop", "isCombi", "isIOS", "isAndroid", "EventProvider", "I18nBundle", "getI18nBundle", "registerCustomI18nBundleGetter", "MediaRange", "renderDeferred", "renderImmediately", "cancelRender", "renderFinished", "addCustomCSS", "attachThemeLoaded", "detachThemeLoaded", "UI5Element"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "2.22.1
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@openui5/sap.ui.core": "1.146.0",
|
|
67
67
|
"@sap-theming/theming-base-content": "11.35.0",
|
|
68
68
|
"@ui5/cypress-internal": "0.1.0",
|
|
69
|
-
"@ui5/webcomponents-tools": "2.22.1
|
|
69
|
+
"@ui5/webcomponents-tools": "2.22.1",
|
|
70
70
|
"clean-css": "^5.2.2",
|
|
71
71
|
"cypress": "15.9.0",
|
|
72
72
|
"mocha": "^11.7.2",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"customElements": "dist/custom-elements.json",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "7b22831115168bb68b34d53d31a5bf5fe5b976f8"
|
|
89
89
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns if the "ignoreUrlParams" configuration is set.
|
|
3
|
-
* @public
|
|
4
|
-
* @since 2.23.0
|
|
5
|
-
* @returns { boolean }
|
|
6
|
-
*/
|
|
7
|
-
declare const getIgnoreUrlParams: () => boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Defines the "ignoreUrlParams" setting.
|
|
10
|
-
*
|
|
11
|
-
* - When set to "true", the framework will not process URL parameters
|
|
12
|
-
* (e.g. sap-ui-theme, sap-ui-language) during initialization.
|
|
13
|
-
* - When set to "false" (default), URL parameters are processed normally.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
* @since 2.23.0
|
|
17
|
-
* @param { boolean } ignoreUrlParams
|
|
18
|
-
*/
|
|
19
|
-
declare const setIgnoreUrlParams: (ignoreUrlParams: boolean) => void;
|
|
20
|
-
export { getIgnoreUrlParams, setIgnoreUrlParams, };
|
package/dist/config/UrlParams.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getIgnoreUrlParams as getConfiguredIgnoreUrlParams } from "../InitialConfiguration.js";
|
|
2
|
-
let _ignoreUrlParams;
|
|
3
|
-
/**
|
|
4
|
-
* Returns if the "ignoreUrlParams" configuration is set.
|
|
5
|
-
* @public
|
|
6
|
-
* @since 2.23.0
|
|
7
|
-
* @returns { boolean }
|
|
8
|
-
*/
|
|
9
|
-
const getIgnoreUrlParams = () => {
|
|
10
|
-
if (_ignoreUrlParams === undefined) {
|
|
11
|
-
_ignoreUrlParams = getConfiguredIgnoreUrlParams();
|
|
12
|
-
}
|
|
13
|
-
return _ignoreUrlParams;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Defines the "ignoreUrlParams" setting.
|
|
17
|
-
*
|
|
18
|
-
* - When set to "true", the framework will not process URL parameters
|
|
19
|
-
* (e.g. sap-ui-theme, sap-ui-language) during initialization.
|
|
20
|
-
* - When set to "false" (default), URL parameters are processed normally.
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
* @since 2.23.0
|
|
24
|
-
* @param { boolean } ignoreUrlParams
|
|
25
|
-
*/
|
|
26
|
-
const setIgnoreUrlParams = (ignoreUrlParams) => {
|
|
27
|
-
_ignoreUrlParams = ignoreUrlParams;
|
|
28
|
-
};
|
|
29
|
-
export { getIgnoreUrlParams, setIgnoreUrlParams, };
|
|
30
|
-
//# sourceMappingURL=UrlParams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UrlParams.js","sourceRoot":"","sources":["../../src/config/UrlParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAEhG,IAAI,gBAAyB,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,GAAY,EAAE;IACxC,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACpC,gBAAgB,GAAG,4BAA4B,EAAE,CAAC;IACnD,CAAC;IAED,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,kBAAkB,GAAG,CAAC,eAAwB,EAAE,EAAE;IACvD,gBAAgB,GAAG,eAAe,CAAC;AACpC,CAAC,CAAC;AAEF,OAAO,EACN,kBAAkB,EAClB,kBAAkB,GAClB,CAAC","sourcesContent":["import { getIgnoreUrlParams as getConfiguredIgnoreUrlParams } from \"../InitialConfiguration.js\";\n\nlet _ignoreUrlParams: boolean;\n\n/**\n * Returns if the \"ignoreUrlParams\" configuration is set.\n * @public\n * @since 2.23.0\n * @returns { boolean }\n */\nconst getIgnoreUrlParams = (): boolean => {\n\tif (_ignoreUrlParams === undefined) {\n\t\t_ignoreUrlParams = getConfiguredIgnoreUrlParams();\n\t}\n\n\treturn _ignoreUrlParams;\n};\n\n/**\n * Defines the \"ignoreUrlParams\" setting.\n *\n * - When set to \"true\", the framework will not process URL parameters\n * (e.g. sap-ui-theme, sap-ui-language) during initialization.\n * - When set to \"false\" (default), URL parameters are processed normally.\n *\n * @public\n * @since 2.23.0\n * @param { boolean } ignoreUrlParams\n */\nconst setIgnoreUrlParams = (ignoreUrlParams: boolean) => {\n\t_ignoreUrlParams = ignoreUrlParams;\n};\n\nexport {\n\tgetIgnoreUrlParams,\n\tsetIgnoreUrlParams,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} من البنود"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} позиции"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elements"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} stavke/i"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} položky"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} eitem"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementer"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} Elemente"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} είδη"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} items"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementos"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementos"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} üksust"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementtiä"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} éléments"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} éléments"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} आइटम"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"Broj stavki: {0}"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elem"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} item"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementi"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} פריטים"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} 項目"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} тармақ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0}개 항목"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"Elementų: {0}"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementi"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} ставки"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} item"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementen"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} elementer"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"Liczba pozycji: {0}"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} itens"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"DRAG_DROP_MULTIPLE_TEXT":"{0} itens"}
|