@ui5/webcomponents-base 2.11.0-rc.2 → 2.11.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/custom-elements-internal.json +32 -17
- package/dist/custom-elements.json +32 -17
- package/dist/features/F6Navigation.js +3 -2
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/OpenUI5Support.d.ts +1 -0
- package/dist/features/OpenUI5Support.js +30 -27
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/prod/features/F6Navigation.js +1 -1
- package/dist/prod/features/F6Navigation.js.map +3 -3
- package/dist/prod/features/OpenUI5Support.js +1 -1
- package/dist/prod/features/OpenUI5Support.js.map +2 -2
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +1 -1
- package/dist/prod/ssr-dom-shim.js +1 -1
- package/dist/prod/ssr-dom-shim.js.map +2 -2
- package/dist/prod/util/getParentElement.js +2 -0
- package/dist/prod/util/getParentElement.js.map +7 -0
- package/dist/ssr-dom-shim.js +2 -1
- package/dist/ssr-dom-shim.js.map +1 -1
- package/dist/util/getParentElement.d.ts +2 -0
- package/dist/util/getParentElement.js +5 -0
- package/dist/util/getParentElement.js.map +1 -0
- package/package.json +3 -3
- package/cypress/specs/Accessor.cy.tsx +0 -79
- package/cypress/specs/Boot.cy.tsx +0 -19
- package/cypress/specs/ConfigurationChange.cy.tsx +0 -41
- package/cypress/specs/ConfigurationScript.cy.tsx +0 -133
- package/cypress/specs/ConfigurationURL.cy.tsx +0 -201
- package/cypress/specs/CustomMount.cy.tsx +0 -9
- package/cypress/specs/CustomTheme.cy.tsx +0 -36
- package/cypress/specs/EventProvider.cy.tsx +0 -59
- package/cypress/specs/Events.cy.tsx +0 -28
- package/cypress/specs/SystemDOMElements.cy.tsx +0 -8
- package/cypress/specs/Theming.cy.tsx +0 -74
- package/cypress/specs/UI5ElementInvalidation.cy.tsx +0 -252
- package/cypress/specs/UI5ElementLifecycle.cy.tsx +0 -82
- package/cypress/specs/UI5ElementListenForChildPropChanges.cy.tsx +0 -83
- package/cypress/specs/UI5ElementMetadataExt.cy.tsx +0 -42
- package/cypress/specs/UI5ElementPropertyValidation.cy.tsx +0 -16
- package/cypress/specs/UI5ElementPropsAndAttrs.cy.tsx +0 -113
- package/cypress/specs/UI5ElementShadowDOM.cy.tsx +0 -30
- package/cypress/specs/UI5ElementSlots.cy.tsx +0 -136
- package/cypress/specs/WithComplexTemplate.cy.tsx +0 -32
- package/cypress/specs/i18n_texts.cy.tsx +0 -129
- package/cypress/specs/util/FocusableElements.cy.tsx +0 -48
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/component-index.html +0 -12
- package/cypress/support/component.ts +0 -17
- package/cypress/tsconfig.json +0 -21
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import u from"./patchPatcher.js";import l from"./patchPopup.js";import{registerFeature as m}from"../FeaturesRegistry.js";import{setTheme as g}from"../config/Theme.js";class
|
|
1
|
+
"use strict";import u from"./patchPatcher.js";import l from"./patchPopup.js";import{registerFeature as m}from"../FeaturesRegistry.js";import{setTheme as g}from"../config/Theme.js";class t{static isAtLeastVersion116(){if(!window.sap.ui.version)return!0;const e=window.sap.ui.version.split(".");return!e||e.length<2?!1:parseInt(e[0])>1||parseInt(e[1])>=116}static isOpenUI5Detected(){return typeof window.sap?.ui?.require=="function"}static init(){return t.isOpenUI5Detected()?(t.initPromise||(t.initPromise=new Promise(a=>{window.sap.ui.require(["sap/ui/core/Core"],async e=>{const i=()=>{let n=["sap/ui/core/Popup","sap/ui/core/Patcher","sap/ui/core/LocaleData"];t.isAtLeastVersion116()&&(n=[...n,"sap/base/i18n/Formatting","sap/base/i18n/Localization","sap/ui/core/ControlBehavior","sap/ui/core/Theming","sap/ui/core/date/CalendarUtils"]),window.sap.ui.require(n,(o,r)=>{u(r),l(o),a()})};t.isAtLeastVersion116()?(await e.ready(),i()):e.attachInit(i)})})),t.initPromise):Promise.resolve()}static getConfigurationSettingsObject(){if(!t.isOpenUI5Detected())return{};if(t.isAtLeastVersion116()){const n=window.sap.ui.require("sap/ui/core/ControlBehavior"),o=window.sap.ui.require("sap/base/i18n/Localization"),r=window.sap.ui.require("sap/ui/core/Theming"),s=window.sap.ui.require("sap/base/i18n/Formatting"),c=window.sap.ui.require("sap/ui/core/date/CalendarUtils");return{animationMode:n.getAnimationMode(),language:o.getLanguage(),theme:r.getTheme(),themeRoot:r.getThemeRoot(),rtl:o.getRTL(),timezone:o.getTimezone(),calendarType:s.getCalendarType(),formatSettings:{firstDayOfWeek:c.getWeekConfigurationValues().firstDayOfWeek,legacyDateCalendarCustomizing:s.getCustomIslamicCalendarData?.()??s.getLegacyDateCalendarCustomizing?.()}}}const e=window.sap.ui.require("sap/ui/core/Core").getConfiguration(),i=window.sap.ui.require("sap/ui/core/LocaleData");return{animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),themeRoot:e.getThemeRoot(),rtl:e.getRTL(),timezone:e.getTimezone(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:i?i.getInstance(e.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:e.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){if(!t.isOpenUI5Detected())return;const a=window.sap.ui.require("sap/ui/core/LocaleData");if(t.isAtLeastVersion116()){const n=window.sap.ui.require("sap/base/i18n/Localization");return a.getInstance(n.getLanguageTag())._get()}const i=window.sap.ui.require("sap/ui/core/Core").getConfiguration();return a.getInstance(i.getLocale())._get()}static _listenForThemeChange(){if(t.isAtLeastVersion116()){const a=window.sap.ui.require("sap/ui/core/Theming");a.attachApplied(()=>{g(a.getTheme())})}else{const a=window.sap.ui.require("sap/ui/core/Core"),e=a.getConfiguration();a.attachThemeChanged(()=>{g(e.getTheme())})}}static attachListeners(){t.isOpenUI5Detected()&&t._listenForThemeChange()}static cssVariablesLoaded(){if(!t.isOpenUI5Detected())return;const a=[...document.head.children].find(e=>e.id==="sap-ui-theme-sap.ui.core");return a?!!a.href.match(/\/css(-|_)variables\.css/):!1}}m("OpenUI5Support",t);export default t;
|
|
2
2
|
//# sourceMappingURL=OpenUI5Support.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/features/OpenUI5Support.ts"],
|
|
4
|
-
"sourcesContent": ["import patchPatcher from \"./patchPatcher.js\";\nimport type { OpenUI5Patcher } from \"./patchPatcher.js\";\nimport patchPopup from \"./patchPopup.js\";\nimport type { OpenUI5Popup } from \"./patchPopup.js\";\nimport { registerFeature } from \"../FeaturesRegistry.js\";\nimport { setTheme } from \"../config/Theme.js\";\nimport type { CLDRData } from \"../asset-registries/LocaleData.js\";\nimport type { LegacyDateCalendarCustomizing } from \"../features/LegacyDateFormats.js\";\n\ntype OpenUI5Core = {\n\tattachInit: (callback: () => void) => void,\n\tready: () => Promise<void>,\n\tattachThemeChanged: (callback: () => void) => void,\n\tgetConfiguration: () => OpenUI5CoreConfiguration,\n};\n\ntype OpenUI5CoreConfiguration = {\n\tgetAnimationMode: () => string,\n\tgetLanguage: () => string,\n\tgetTheme: () => string,\n\tgetThemeRoot: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n\tgetCalendarType: () => string,\n\tgetLocale: () => string,\n\tgetFormatSettings: () => {\n\t\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing;\n\t}\n};\n\ntype ControlBehavior = {\n\tgetAnimationMode: () => string,\n}\n\ntype Localization = {\n\tgetLanguage: () => string,\n\tgetLanguageTag: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n}\n\ntype LocaleData = {\n\tgetInstance: (locale: string) => Locale,\n}\n\ntype Theming = {\n\tgetThemeRoot: () => string,\n\tgetTheme: () => string,\n\tattachApplied: (callback: () => void) => void,\n}\n\ntype Formatting = {\n\tgetCalendarType: () => string,\n\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing,\n\tgetCustomIslamicCalendarData?: () => LegacyDateCalendarCustomizing,\n}\n\ntype CalendarUtils = {\n\tgetWeekConfigurationValues: () => {\n\t\tfirstDayOfWeek: number | undefined,\n\t},\n}\n\ntype Locale = {\n\tgetFirstDayOfWeek: () => number,\n\t_get: () => CLDRData,\n};\n\nclass OpenUI5Support {\n\tstatic isAtLeastVersion116() {\n\t\tif (!window.sap.ui!.version) {\n\t\t\treturn true; // sap.ui.version will be removed in newer OpenUI5 versions\n\t\t}\n\t\tconst version = window.sap.ui!.version as string;\n\t\tconst parts = version.split(\".\");\n\t\tif (!parts || parts.length < 2) {\n\t\t\treturn false;\n\t\t}\n\t\treturn parseInt(parts[0]) > 1 || parseInt(parts[1]) >= 116;\n\t}\n\n\tstatic isOpenUI5Detected() {\n\t\treturn typeof window.sap?.ui?.require === \"function\";\n\t}\n\n\tstatic init() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\
|
|
5
|
-
"mappings": "aAAA,OAAOA,MAAkB,oBAEzB,OAAOC,MAAgB,kBAEvB,OAAS,mBAAAC,MAAuB,yBAChC,OAAS,YAAAC,MAAgB,qBA+DzB,MAAMC,CAAe,CACpB,OAAO,qBAAsB,CAC5B,GAAI,CAAC,OAAO,IAAI,GAAI,QACnB,MAAO,GAGR,MAAMC,EADU,OAAO,IAAI,GAAI,QACT,MAAM,GAAG,EAC/B,MAAI,CAACA,GAASA,EAAM,OAAS,EACrB,GAED,SAASA,EAAM,CAAC,CAAC,EAAI,GAAK,SAASA,EAAM,CAAC,CAAC,GAAK,GACxD,CAEA,OAAO,mBAAoB,CAC1B,OAAO,OAAO,OAAO,KAAK,IAAI,SAAY,UAC3C,
|
|
4
|
+
"sourcesContent": ["import patchPatcher from \"./patchPatcher.js\";\nimport type { OpenUI5Patcher } from \"./patchPatcher.js\";\nimport patchPopup from \"./patchPopup.js\";\nimport type { OpenUI5Popup } from \"./patchPopup.js\";\nimport { registerFeature } from \"../FeaturesRegistry.js\";\nimport { setTheme } from \"../config/Theme.js\";\nimport type { CLDRData } from \"../asset-registries/LocaleData.js\";\nimport type { LegacyDateCalendarCustomizing } from \"../features/LegacyDateFormats.js\";\n\ntype OpenUI5Core = {\n\tattachInit: (callback: () => void) => void,\n\tready: () => Promise<void>,\n\tattachThemeChanged: (callback: () => void) => void,\n\tgetConfiguration: () => OpenUI5CoreConfiguration,\n};\n\ntype OpenUI5CoreConfiguration = {\n\tgetAnimationMode: () => string,\n\tgetLanguage: () => string,\n\tgetTheme: () => string,\n\tgetThemeRoot: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n\tgetCalendarType: () => string,\n\tgetLocale: () => string,\n\tgetFormatSettings: () => {\n\t\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing;\n\t}\n};\n\ntype ControlBehavior = {\n\tgetAnimationMode: () => string,\n}\n\ntype Localization = {\n\tgetLanguage: () => string,\n\tgetLanguageTag: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n}\n\ntype LocaleData = {\n\tgetInstance: (locale: string) => Locale,\n}\n\ntype Theming = {\n\tgetThemeRoot: () => string,\n\tgetTheme: () => string,\n\tattachApplied: (callback: () => void) => void,\n}\n\ntype Formatting = {\n\tgetCalendarType: () => string,\n\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing,\n\tgetCustomIslamicCalendarData?: () => LegacyDateCalendarCustomizing,\n}\n\ntype CalendarUtils = {\n\tgetWeekConfigurationValues: () => {\n\t\tfirstDayOfWeek: number | undefined,\n\t},\n}\n\ntype Locale = {\n\tgetFirstDayOfWeek: () => number,\n\t_get: () => CLDRData,\n};\n\nclass OpenUI5Support {\n\tstatic isAtLeastVersion116() {\n\t\tif (!window.sap.ui!.version) {\n\t\t\treturn true; // sap.ui.version will be removed in newer OpenUI5 versions\n\t\t}\n\t\tconst version = window.sap.ui!.version as string;\n\t\tconst parts = version.split(\".\");\n\t\tif (!parts || parts.length < 2) {\n\t\t\treturn false;\n\t\t}\n\t\treturn parseInt(parts[0]) > 1 || parseInt(parts[1]) >= 116;\n\t}\n\n\tstatic isOpenUI5Detected() {\n\t\treturn typeof window.sap?.ui?.require === \"function\";\n\t}\n\n\tstatic initPromise?: Promise<void>;\n\n\tstatic init() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tif (!OpenUI5Support.initPromise) {\n\t\t\tOpenUI5Support.initPromise = new Promise<void>(resolve => {\n\t\t\t\twindow.sap.ui.require([\"sap/ui/core/Core\"], async (Core: OpenUI5Core) => {\n\t\t\t\t\tconst callback = () => {\n\t\t\t\t\t\tlet deps: Array<string> = [\"sap/ui/core/Popup\", \"sap/ui/core/Patcher\", \"sap/ui/core/LocaleData\"];\n\t\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion116()) { // for versions since 1.116.0 and onward, use the modular core\n\t\t\t\t\t\t\tdeps = [\n\t\t\t\t\t\t\t\t...deps,\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Formatting\",\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Localization\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/ControlBehavior\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/Theming\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/date/CalendarUtils\",\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow.sap.ui.require(deps, (Popup: OpenUI5Popup, Patcher: OpenUI5Patcher) => {\n\t\t\t\t\t\t\tpatchPatcher(Patcher);\n\t\t\t\t\t\t\tpatchPopup(Popup);\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion116()) {\n\t\t\t\t\t\tawait Core.ready();\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCore.attachInit(callback);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\treturn OpenUI5Support.initPromise;\n\t}\n\n\tstatic getConfigurationSettingsObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn {};\n\t\t}\n\n\t\tif (OpenUI5Support.isAtLeastVersion116()) {\n\t\t\tconst ControlBehavior = window.sap.ui.require(\"sap/ui/core/ControlBehavior\") as ControlBehavior;\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\tconst Theming = window.sap.ui.require(\"sap/ui/core/Theming\") as Theming;\n\t\t\tconst Formatting = window.sap.ui.require(\"sap/base/i18n/Formatting\") as Formatting;\n\t\t\tconst CalendarUtils = window.sap.ui.require(\"sap/ui/core/date/CalendarUtils\") as CalendarUtils;\n\n\t\t\treturn {\n\t\t\t\tanimationMode: ControlBehavior.getAnimationMode(),\n\t\t\t\tlanguage: Localization.getLanguage(),\n\t\t\t\ttheme: Theming.getTheme(),\n\t\t\t\tthemeRoot: Theming.getThemeRoot(),\n\t\t\t\trtl: Localization.getRTL(),\n\t\t\t\ttimezone: Localization.getTimezone(),\n\t\t\t\tcalendarType: Formatting.getCalendarType(),\n\t\t\t\tformatSettings: {\n\t\t\t\t\tfirstDayOfWeek: CalendarUtils.getWeekConfigurationValues().firstDayOfWeek,\n\t\t\t\t\tlegacyDateCalendarCustomizing: Formatting.getCustomIslamicCalendarData?.()\n\t\t\t\t\t\t\t\t\t\t\t\t?? Formatting.getLegacyDateCalendarCustomizing?.(),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\treturn {\n\t\t\tanimationMode: config.getAnimationMode(),\n\t\t\tlanguage: config.getLanguage(),\n\t\t\ttheme: config.getTheme(),\n\t\t\tthemeRoot: config.getThemeRoot(),\n\t\t\trtl: config.getRTL(),\n\t\t\ttimezone: config.getTimezone(),\n\t\t\tcalendarType: config.getCalendarType(),\n\t\t\tformatSettings: {\n\t\t\t\tfirstDayOfWeek: LocaleData ? LocaleData.getInstance(config.getLocale()).getFirstDayOfWeek() : undefined,\n\t\t\t\tlegacyDateCalendarCustomizing: config.getFormatSettings().getLegacyDateCalendarCustomizing(),\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic getLocaleDataObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\tif (OpenUI5Support.isAtLeastVersion116()) {\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\treturn LocaleData.getInstance(Localization.getLanguageTag())._get();\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\treturn LocaleData.getInstance(config.getLocale())._get();\n\t}\n\n\tstatic _listenForThemeChange() {\n\t\tif (OpenUI5Support.isAtLeastVersion116()) {\n\t\t\tconst Theming: Theming = window.sap.ui.require(\"sap/ui/core/Theming\");\n\t\t\tTheming.attachApplied(() => {\n\t\t\t\tsetTheme(Theming.getTheme());\n\t\t\t});\n\t\t} else {\n\t\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\t\tconst config = Core.getConfiguration();\n\t\t\tCore.attachThemeChanged(() => {\n\t\t\t\tsetTheme(config.getTheme());\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic attachListeners() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tOpenUI5Support._listenForThemeChange();\n\t}\n\n\tstatic cssVariablesLoaded() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst link = [...document.head.children].find(el => el.id === \"sap-ui-theme-sap.ui.core\") as HTMLLinkElement; // more reliable than querySelector early\n\t\tif (!link) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn !!link.href.match(/\\/css(-|_)variables\\.css/);\n\t}\n}\n\nregisterFeature(\"OpenUI5Support\", OpenUI5Support);\n\nexport default OpenUI5Support;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAkB,oBAEzB,OAAOC,MAAgB,kBAEvB,OAAS,mBAAAC,MAAuB,yBAChC,OAAS,YAAAC,MAAgB,qBA+DzB,MAAMC,CAAe,CACpB,OAAO,qBAAsB,CAC5B,GAAI,CAAC,OAAO,IAAI,GAAI,QACnB,MAAO,GAGR,MAAMC,EADU,OAAO,IAAI,GAAI,QACT,MAAM,GAAG,EAC/B,MAAI,CAACA,GAASA,EAAM,OAAS,EACrB,GAED,SAASA,EAAM,CAAC,CAAC,EAAI,GAAK,SAASA,EAAM,CAAC,CAAC,GAAK,GACxD,CAEA,OAAO,mBAAoB,CAC1B,OAAO,OAAO,OAAO,KAAK,IAAI,SAAY,UAC3C,CAIA,OAAO,MAAO,CACb,OAAKD,EAAe,kBAAkB,GAIjCA,EAAe,cACnBA,EAAe,YAAc,IAAI,QAAcE,GAAW,CACzD,OAAO,IAAI,GAAG,QAAQ,CAAC,kBAAkB,EAAG,MAAOC,GAAsB,CACxE,MAAMC,EAAW,IAAM,CACtB,IAAIC,EAAsB,CAAC,oBAAqB,sBAAuB,wBAAwB,EAC3FL,EAAe,oBAAoB,IACtCK,EAAO,CACN,GAAGA,EACH,2BACA,6BACA,8BACA,sBACA,gCACD,GAED,OAAO,IAAI,GAAG,QAAQA,EAAM,CAACC,EAAqBC,IAA4B,CAC7EX,E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chPopup", "registerFeature", "setTheme", "OpenUI5Support", "parts", "resolve", "Core", "callback", "deps", "Popup", "Patcher", "ControlBehavior", "Localization", "Theming", "Formatting", "CalendarUtils", "config", "LocaleData", "link", "el"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e={version:"2.11.0-rc.
|
|
1
|
+
"use strict";const e={version:"2.11.0-rc.4",major:2,minor:11,patch:0,suffix:"-rc.4",isNext:!1,buildTime:1749111287};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.11.0-rc.
|
|
4
|
+
"sourcesContent": ["const VersionInfo = {\n\tversion: \"2.11.0-rc.4\",\n\tmajor: 2,\n\tminor: 11,\n\tpatch: 0,\n\tsuffix: \"-rc.4\",\n\tisNext: false,\n\tbuildTime: 1749111287,\n};\nexport default VersionInfo;"],
|
|
5
5
|
"mappings": "aAAA,MAAMA,EAAc,CACnB,QAAS,cACT,MAAO,EACP,MAAO,GACP,MAAO,EACP,OAAQ,QACR,OAAQ,GACR,UAAW,UACZ,EACA,eAAeA",
|
|
6
6
|
"names": ["VersionInfo"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{HTMLElement as o,Element as s,customElements as l,ElementInternals as i}from"@lit-labs/ssr-dom-shim";globalThis.HTMLElement??=o,globalThis.Element??=s,globalThis.customElements??=l;class n{}globalThis.Node??=n;class r{}globalThis.FileList??=r;const t=new WeakMap;globalThis.Document&&!("adoptedStyleSheets"in Document.prototype)&&Object.defineProperty(Document.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.ShadowRoot&&!("adoptedStyleSheets"in ShadowRoot.prototype)&&Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.CSSStyleSheet&&!("replaceSync"in CSSStyleSheet.prototype)&&Object.defineProperty(CSSStyleSheet.prototype,"replaceSync",{value(e){return this.cssText=e,e}}),globalThis.ResizeObserver=class{observe(){}unobserve(){}disconnect(){}},globalThis.HTMLElement.prototype.showPopover=function(){},globalThis.HTMLElement.prototype.attachInternals=function(){return new i};
|
|
1
|
+
"use strict";import{HTMLElement as o,Element as s,customElements as l,ElementInternals as i}from"@lit-labs/ssr-dom-shim";globalThis.HTMLElement??=o,globalThis.Element??=s,globalThis.customElements??=l;class n{}globalThis.Node??=n;class r{}globalThis.FileList??=r;const t=new WeakMap;globalThis.Document&&!("adoptedStyleSheets"in Document.prototype)&&Object.defineProperty(Document.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.ShadowRoot&&!("adoptedStyleSheets"in ShadowRoot.prototype)&&Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.CSSStyleSheet&&!("replaceSync"in CSSStyleSheet.prototype)&&Object.defineProperty(CSSStyleSheet.prototype,"replaceSync",{value(e){return this.cssText=e,e}}),globalThis.ResizeObserver=class{observe(){}unobserve(){}disconnect(){}},globalThis.HTMLElement.prototype.showPopover=function(){},globalThis.HTMLElement.prototype.hidePopover=function(){},globalThis.HTMLElement.prototype.attachInternals=function(){return new i};
|
|
2
2
|
//# sourceMappingURL=ssr-dom-shim.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ssr-dom-shim.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements, ElementInternals } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n\n// ------- JS DOM shims -------\n\n// Polyfill `adoptedStyleSheets` globally for both `Document` and `ShadowRoot`\nconst adoptedSheetsStore = new WeakMap();\n\nif (globalThis.Document && !(\"adoptedStyleSheets\" in Document.prototype)) {\n Object.defineProperty(Document.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\nif (globalThis.ShadowRoot && !(\"adoptedStyleSheets\" in ShadowRoot.prototype)) {\n Object.defineProperty(ShadowRoot.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\n// Polyfill CSSStyleSheet to provide `replaceSync`\nif (globalThis.CSSStyleSheet && !(\"replaceSync\" in CSSStyleSheet.prototype)) {\n Object.defineProperty(CSSStyleSheet.prototype, \"replaceSync\", {\n value(cssText: string) {\n this.cssText = cssText;\n return cssText;\n },\n });\n }\n\n// Empty resize observer\nglobalThis.ResizeObserver = class ResizeObserver {\n observe() {\n // do nothing\n }\n unobserve() {\n // do nothing\n }\n disconnect() {\n // do nothing\n }\n};\n\n// empty showPopover method\nglobalThis.HTMLElement.prototype.showPopover = function () {};\n\n// ElementInternals\nglobalThis.HTMLElement.prototype.attachInternals = function() {\n return new ElementInternals();\n}"],
|
|
5
|
-
"mappings": "aACA,OAAS,eAAAA,EAAa,WAAAC,EAAS,kBAAAC,EAAgB,oBAAAC,MAAwB,yBAEvE,WAAW,cAAgBH,EAC3B,WAAW,UAAYC,EACvB,WAAW,iBAAmBC,EAE9B,MAAME,CAAS,CAAC,CAChB,WAAW,OAASA,EAEpB,MAAMC,CAAa,CAAC,CACpB,WAAW,WAAaA,EAKxB,MAAMC,EAAqB,IAAI,QAE3B,WAAW,UAAY,EAAE,uBAAwB,SAAS,YAC5D,OAAO,eAAe,SAAS,UAAW,qBAAsB,CAC9D,KAAM,CACJ,OAAOA,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAGC,WAAW,YAAc,EAAE,uBAAwB,WAAW,YAChE,OAAO,eAAe,WAAW,UAAW,qBAAsB,CAChE,KAAM,CACJ,OAAOD,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAIC,WAAW,eAAiB,EAAE,gBAAiB,cAAc,YAC7D,OAAO,eAAe,cAAc,UAAW,cAAe,CAC5D,MAAMC,EAAiB,CACrB,YAAK,QAAUA,EACRA,CACT,CACF,CAAC,EAIL,WAAW,eAAiB,KAAqB,CAC7C,SAAU,CAEV,CACA,WAAY,CAEZ,CACA,YAAa,CAEb,CACJ,EAGA,WAAW,YAAY,UAAU,YAAc,UAAY,CAAC,EAG5D,WAAW,YAAY,UAAU,gBAAkB,UAAW,CAC1D,OAAO,IAAIL,CACf",
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements, ElementInternals } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n\n// ------- JS DOM shims -------\n\n// Polyfill `adoptedStyleSheets` globally for both `Document` and `ShadowRoot`\nconst adoptedSheetsStore = new WeakMap();\n\nif (globalThis.Document && !(\"adoptedStyleSheets\" in Document.prototype)) {\n Object.defineProperty(Document.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\nif (globalThis.ShadowRoot && !(\"adoptedStyleSheets\" in ShadowRoot.prototype)) {\n Object.defineProperty(ShadowRoot.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\n// Polyfill CSSStyleSheet to provide `replaceSync`\nif (globalThis.CSSStyleSheet && !(\"replaceSync\" in CSSStyleSheet.prototype)) {\n Object.defineProperty(CSSStyleSheet.prototype, \"replaceSync\", {\n value(cssText: string) {\n this.cssText = cssText;\n return cssText;\n },\n });\n }\n\n// Empty resize observer\nglobalThis.ResizeObserver = class ResizeObserver {\n observe() {\n // do nothing\n }\n unobserve() {\n // do nothing\n }\n disconnect() {\n // do nothing\n }\n};\n\n// empty showPopover & hidePopover method\nglobalThis.HTMLElement.prototype.showPopover = function () {};\nglobalThis.HTMLElement.prototype.hidePopover = function () {};\n\n// ElementInternals\nglobalThis.HTMLElement.prototype.attachInternals = function() {\n return new ElementInternals();\n}"],
|
|
5
|
+
"mappings": "aACA,OAAS,eAAAA,EAAa,WAAAC,EAAS,kBAAAC,EAAgB,oBAAAC,MAAwB,yBAEvE,WAAW,cAAgBH,EAC3B,WAAW,UAAYC,EACvB,WAAW,iBAAmBC,EAE9B,MAAME,CAAS,CAAC,CAChB,WAAW,OAASA,EAEpB,MAAMC,CAAa,CAAC,CACpB,WAAW,WAAaA,EAKxB,MAAMC,EAAqB,IAAI,QAE3B,WAAW,UAAY,EAAE,uBAAwB,SAAS,YAC5D,OAAO,eAAe,SAAS,UAAW,qBAAsB,CAC9D,KAAM,CACJ,OAAOA,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAGC,WAAW,YAAc,EAAE,uBAAwB,WAAW,YAChE,OAAO,eAAe,WAAW,UAAW,qBAAsB,CAChE,KAAM,CACJ,OAAOD,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAIC,WAAW,eAAiB,EAAE,gBAAiB,cAAc,YAC7D,OAAO,eAAe,cAAc,UAAW,cAAe,CAC5D,MAAMC,EAAiB,CACrB,YAAK,QAAUA,EACRA,CACT,CACF,CAAC,EAIL,WAAW,eAAiB,KAAqB,CAC7C,SAAU,CAEV,CACA,WAAY,CAEZ,CACA,YAAa,CAEb,CACJ,EAGA,WAAW,YAAY,UAAU,YAAc,UAAY,CAAC,EAC5D,WAAW,YAAY,UAAU,YAAc,UAAY,CAAC,EAG5D,WAAW,YAAY,UAAU,gBAAkB,UAAW,CAC1D,OAAO,IAAIL,CACf",
|
|
6
6
|
"names": ["HTMLElement", "Element", "customElements", "ElementInternals", "NodeShim", "FileListShim", "adoptedSheetsStore", "sheets", "cssText"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/util/getParentElement.ts"],
|
|
4
|
+
"sourcesContent": ["const getParentElement = (element: Element) : Element | null => {\n\treturn element.parentElement ? element.parentElement : (element.parentNode as ShadowRoot).host;\n};\n\nexport default getParentElement;\n"],
|
|
5
|
+
"mappings": "aAAA,MAAMA,EAAoBC,GAClBA,EAAQ,cAAgBA,EAAQ,cAAiBA,EAAQ,WAA0B,KAG3F,eAAeD",
|
|
6
|
+
"names": ["getParentElement", "element"]
|
|
7
|
+
}
|
package/dist/ssr-dom-shim.js
CHANGED
|
@@ -53,8 +53,9 @@ globalThis.ResizeObserver = class ResizeObserver {
|
|
|
53
53
|
// do nothing
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
// empty showPopover method
|
|
56
|
+
// empty showPopover & hidePopover method
|
|
57
57
|
globalThis.HTMLElement.prototype.showPopover = function () { };
|
|
58
|
+
globalThis.HTMLElement.prototype.hidePopover = function () { };
|
|
58
59
|
// ElementInternals
|
|
59
60
|
globalThis.HTMLElement.prototype.attachInternals = function () {
|
|
60
61
|
return new ElementInternals();
|
package/dist/ssr-dom-shim.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-dom-shim.js","sourceRoot":"","sources":["../src/ssr-dom-shim.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEhG,UAAU,CAAC,WAAW,KAAK,WAAW,CAAC;AACvC,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC;AAC/B,UAAU,CAAC,cAAc,KAAK,cAAc,CAAC;AAE7C,MAAM,QAAQ;CAAG;AACjB,UAAU,CAAC,IAAI,KAAK,QAAiC,CAAC;AAEtD,MAAM,YAAY;CAAG;AACrB,UAAU,CAAC,QAAQ,KAAK,YAAyC,CAAC;AAElE,+BAA+B;AAE/B,8EAA8E;AAC9E,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAAE,CAAC;AAEzC,IAAI,UAAU,CAAC,QAAQ,IAAI,CAAC,CAAC,oBAAoB,IAAI,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;IACzE,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE;QAC9D,GAAG;YACD,OAAO,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5C,CAAC;QACD,GAAG,CAAC,MAAuB;YACzB,kBAAkB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,IAAI,UAA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C,CAAC;AACL,CAAC;AAEH,wBAAwB;AACxB,UAAU,CAAC,cAAc,GAAG,MAAM,cAAc;IAC5C,OAAO;QACL,aAAa;IACf,CAAC;IACD,SAAS;QACP,aAAa;IACf,CAAC;IACD,UAAU;QACR,aAAa;IACf,CAAC;CACJ,CAAC;AAEF,yCAAyC;AACzC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,GAAG,cAAa,CAAC,CAAC;AAC9D,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,GAAG,cAAa,CAAC,CAAC;AAE9D,oBAAoB;AACpB,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,eAAe,GAAG;IAC/C,OAAO,IAAI,gBAAgB,EAAE,CAAC;AAClC,CAAC,CAAA","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements, ElementInternals } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n\n// ------- JS DOM shims -------\n\n// Polyfill `adoptedStyleSheets` globally for both `Document` and `ShadowRoot`\nconst adoptedSheetsStore = new WeakMap();\n\nif (globalThis.Document && !(\"adoptedStyleSheets\" in Document.prototype)) {\n Object.defineProperty(Document.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\nif (globalThis.ShadowRoot && !(\"adoptedStyleSheets\" in ShadowRoot.prototype)) {\n Object.defineProperty(ShadowRoot.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\n// Polyfill CSSStyleSheet to provide `replaceSync`\nif (globalThis.CSSStyleSheet && !(\"replaceSync\" in CSSStyleSheet.prototype)) {\n Object.defineProperty(CSSStyleSheet.prototype, \"replaceSync\", {\n value(cssText: string) {\n this.cssText = cssText;\n return cssText;\n },\n });\n }\n\n// Empty resize observer\nglobalThis.ResizeObserver = class ResizeObserver {\n observe() {\n // do nothing\n }\n unobserve() {\n // do nothing\n }\n disconnect() {\n // do nothing\n }\n};\n\n// empty showPopover & hidePopover method\nglobalThis.HTMLElement.prototype.showPopover = function () {};\nglobalThis.HTMLElement.prototype.hidePopover = function () {};\n\n// ElementInternals\nglobalThis.HTMLElement.prototype.attachInternals = function() {\n return new ElementInternals();\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getParentElement.js","sourceRoot":"","sources":["../../src/util/getParentElement.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAmB,EAAE;IAC9D,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAE,OAAO,CAAC,UAAyB,CAAC,IAAI,CAAC;AAChG,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["const getParentElement = (element: Element) : Element | null => {\n\treturn element.parentElement ? element.parentElement : (element.parentNode as ShadowRoot).host;\n};\n\nexport default getParentElement;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "2.11.0-rc.
|
|
3
|
+
"version": "2.11.0-rc.4",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@openui5/sap.ui.core": "1.120.17",
|
|
64
64
|
"@ui5/cypress-internal": "0.0.0",
|
|
65
|
-
"@ui5/webcomponents-tools": "2.11.0-rc.
|
|
65
|
+
"@ui5/webcomponents-tools": "2.11.0-rc.4",
|
|
66
66
|
"chromedriver": "^135.0.0",
|
|
67
67
|
"clean-css": "^5.2.2",
|
|
68
68
|
"copy-and-watch": "^0.1.5",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"resolve": "^1.20.0",
|
|
74
74
|
"touch": "^3.1.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "14eef00495b716ea5aea644d3c124b0c83aadd62"
|
|
77
77
|
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import Accessor from "../../test/test-elements/Accessor.js";
|
|
2
|
-
|
|
3
|
-
describe("Framework boot", () => {
|
|
4
|
-
it("Setting property updates attribute, state and DOM", () => {
|
|
5
|
-
cy.mount(<Accessor></Accessor>);
|
|
6
|
-
|
|
7
|
-
cy.get("[ui5-test-accessor]")
|
|
8
|
-
.as("testAccessor")
|
|
9
|
-
.invoke("prop", "myProp", true);
|
|
10
|
-
|
|
11
|
-
cy.get("@testAccessor")
|
|
12
|
-
.should("have.attr", "my-prop");
|
|
13
|
-
|
|
14
|
-
cy.get("@testAccessor")
|
|
15
|
-
.shadow()
|
|
16
|
-
.find("div")
|
|
17
|
-
.should("have.text", "true");
|
|
18
|
-
|
|
19
|
-
cy.get("@testAccessor")
|
|
20
|
-
.should("have.prop", "storage", true);
|
|
21
|
-
|
|
22
|
-
cy.get("[ui5-test-accessor]")
|
|
23
|
-
.as("testAccessor")
|
|
24
|
-
.invoke("prop", "myProp", false);
|
|
25
|
-
|
|
26
|
-
cy.get("@testAccessor")
|
|
27
|
-
.should("not.have.attr", "my-prop");
|
|
28
|
-
|
|
29
|
-
cy.get("@testAccessor")
|
|
30
|
-
.shadow()
|
|
31
|
-
.find("div")
|
|
32
|
-
.should("have.text", "false");
|
|
33
|
-
|
|
34
|
-
cy.get("@testAccessor")
|
|
35
|
-
.should("have.prop", "storage", false);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it("Setting attribute updates property, state and DOM", () => {
|
|
39
|
-
cy.mount(<Accessor></Accessor>);
|
|
40
|
-
|
|
41
|
-
cy.get("[ui5-test-accessor]")
|
|
42
|
-
.as("testAccessor")
|
|
43
|
-
.invoke("attr", "my-prop", "");
|
|
44
|
-
|
|
45
|
-
cy.get("@testAccessor")
|
|
46
|
-
.should("have.attr", "my-prop");
|
|
47
|
-
|
|
48
|
-
cy.get("@testAccessor")
|
|
49
|
-
.shadow()
|
|
50
|
-
.find("div")
|
|
51
|
-
.should("have.text", "true");
|
|
52
|
-
|
|
53
|
-
cy.get("@testAccessor")
|
|
54
|
-
.should("have.prop", "storage", true);
|
|
55
|
-
|
|
56
|
-
cy.get("[ui5-test-accessor]")
|
|
57
|
-
.as("testAccessor")
|
|
58
|
-
.invoke("removeAttr", "my-prop");
|
|
59
|
-
|
|
60
|
-
cy.get("@testAccessor")
|
|
61
|
-
.should("not.have.attr", "my-prop");
|
|
62
|
-
|
|
63
|
-
cy.get("@testAccessor")
|
|
64
|
-
.shadow()
|
|
65
|
-
.find("div")
|
|
66
|
-
.should("have.text", "false");
|
|
67
|
-
|
|
68
|
-
cy.get("@testAccessor")
|
|
69
|
-
.should("have.prop", "storage", false);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it("should stop searching for accessors when HTMLElement is reached", () => {
|
|
73
|
-
cy.mount(<Accessor></Accessor>);
|
|
74
|
-
|
|
75
|
-
cy.get("[ui5-test-accessor]")
|
|
76
|
-
.invoke("prop", "title")
|
|
77
|
-
.should("be.undefined");
|
|
78
|
-
});
|
|
79
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
|
|
2
|
-
import { boot } from "../../src/Boot.js";
|
|
3
|
-
import { hasStyle } from "../../src/ManagedStyles.js";
|
|
4
|
-
|
|
5
|
-
describe("Framework boot", () => {
|
|
6
|
-
it("Tests theme loading, when registered after 'attachBoot' and 'boot'", () => {
|
|
7
|
-
cy.wrap({ boot })
|
|
8
|
-
.invoke("boot");
|
|
9
|
-
|
|
10
|
-
cy.wrap({ registerThemePropertiesLoader })
|
|
11
|
-
.invoke("registerThemePropertiesLoader", "@ui5/webcomponents-theming", "sap_horizon", () => {
|
|
12
|
-
return Promise.resolve(`:root{ --customCol: #fff; --customBg: #000; }`);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
cy.wrap({ hasStyle })
|
|
16
|
-
.invoke("hasStyle", "data-ui5-theme-properties", "@ui5/webcomponents-theming")
|
|
17
|
-
.should("be.true");
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import "../../test/test-elements/Accessor.js";
|
|
2
|
-
import { setTheme, getTheme } from "../../src/config/Theme.js";
|
|
3
|
-
import { setThemeRoot, getThemeRoot } from "../../src/config/ThemeRoot.js";
|
|
4
|
-
import { setNoConflict, getNoConflict } from "../../src/config/NoConflict.js";
|
|
5
|
-
|
|
6
|
-
describe("Some configuration options can be changed at runtime", () => {
|
|
7
|
-
it("Tests that theme can be changed", () => {
|
|
8
|
-
const newTheme = "sap_horizon_hcb";
|
|
9
|
-
|
|
10
|
-
cy.wrap({ setTheme })
|
|
11
|
-
.invoke("setTheme", newTheme);
|
|
12
|
-
|
|
13
|
-
cy.wrap({ getTheme })
|
|
14
|
-
.invoke("getTheme")
|
|
15
|
-
.should("equal", newTheme);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("Tests that noConflict can be changed", () => {
|
|
19
|
-
const noConflictObject = { events: ["selection-change"] };
|
|
20
|
-
|
|
21
|
-
cy.wrap({ setNoConflict })
|
|
22
|
-
.invoke("setNoConflict", noConflictObject);
|
|
23
|
-
|
|
24
|
-
cy.wrap({ getNoConflict })
|
|
25
|
-
.invoke("getNoConflict")
|
|
26
|
-
.should("deep.equal", noConflictObject)
|
|
27
|
-
.its("events")
|
|
28
|
-
.should("deep.equal", noConflictObject.events);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it("Tests that theme root is applied", () => {
|
|
32
|
-
const newThemeRoot = "https://example.com/";
|
|
33
|
-
|
|
34
|
-
cy.wrap({ setThemeRoot })
|
|
35
|
-
.invoke("setThemeRoot", newThemeRoot);
|
|
36
|
-
|
|
37
|
-
cy.wrap({ getThemeRoot })
|
|
38
|
-
.invoke("getThemeRoot")
|
|
39
|
-
.should("deep.equal", newThemeRoot);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
2
|
-
import { getCalendarType } from "../../src/config/CalendarType.js";
|
|
3
|
-
import { getDefaultFontLoading } from "../../src/config/Fonts.js";
|
|
4
|
-
import TestGeneric from "../../test/test-elements/Generic.js";
|
|
5
|
-
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
|
|
6
|
-
import { getLanguage } from "../../src/config/Language.js";
|
|
7
|
-
import { getNoConflict } from "../../src/config/NoConflict.js";
|
|
8
|
-
import { getTheme } from "../../src/config/Theme.js";
|
|
9
|
-
import { getEnableDefaultTooltips } from "../../src/config/Tooltips.js";
|
|
10
|
-
import { resetConfiguration } from "../../src/InitialConfiguration.js";
|
|
11
|
-
|
|
12
|
-
describe("Configuration script", () => {
|
|
13
|
-
const configurationObject = {
|
|
14
|
-
"theme": "sap_horizon_hcb",
|
|
15
|
-
"animationMode": "basic",
|
|
16
|
-
"rtl": true,
|
|
17
|
-
"language": "ja",
|
|
18
|
-
"calendarType": "Japanese",
|
|
19
|
-
"formatSettings": {
|
|
20
|
-
"firstDayOfWeek": 0,
|
|
21
|
-
"legacyDateCalendarCustomizing": [
|
|
22
|
-
{
|
|
23
|
-
"dateFormat": "A",
|
|
24
|
-
"islamicMonthStart": "14351201",
|
|
25
|
-
"gregDate": "20140925",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"dateFormat": "A",
|
|
29
|
-
"islamicMonthStart": "14360101",
|
|
30
|
-
"gregDate": "20141024",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"dateFormat": "A",
|
|
34
|
-
"islamicMonthStart": "14360201",
|
|
35
|
-
"gregDate": "20141123",
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
"noConflict": {
|
|
40
|
-
"events": ["selection-change", "header-click"],
|
|
41
|
-
},
|
|
42
|
-
"defaultFontLoading": false,
|
|
43
|
-
"enableDefaultTooltips": false,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
before(() => {
|
|
47
|
-
cy.window()
|
|
48
|
-
.then($el => {
|
|
49
|
-
const scriptElement = document.createElement("script");
|
|
50
|
-
scriptElement.type = "application/json";
|
|
51
|
-
scriptElement.setAttribute("data-ui5-config", "true");
|
|
52
|
-
scriptElement.innerHTML = JSON.stringify(configurationObject);
|
|
53
|
-
return $el.document.head.append(scriptElement);
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
cy.wrap({ resetConfiguration })
|
|
58
|
-
.invoke("resetConfiguration", true);
|
|
59
|
-
|
|
60
|
-
cy.mount(<TestGeneric />);
|
|
61
|
-
cy.get("script[data-ui5-config]")
|
|
62
|
-
.should("exist")
|
|
63
|
-
.then($el => {
|
|
64
|
-
return $el.get(0)?.innerHTML;
|
|
65
|
-
})
|
|
66
|
-
.should("equal", JSON.stringify(configurationObject));
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
after(() => {
|
|
70
|
-
cy.window()
|
|
71
|
-
.then($el => {
|
|
72
|
-
const scriptElement = $el.document.head.querySelector("script[data-ui5-config]");
|
|
73
|
-
|
|
74
|
-
scriptElement?.remove();
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
it("getLanguage", () => {
|
|
79
|
-
cy.wrap({ getLanguage })
|
|
80
|
-
.invoke("getLanguage")
|
|
81
|
-
.should("equal", configurationObject.language);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
it("getCalendarType", () => {
|
|
85
|
-
cy.wrap({ getCalendarType })
|
|
86
|
-
.invoke("getCalendarType")
|
|
87
|
-
.should("equal", configurationObject.calendarType);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it("getFirstDayOfWeek", () => {
|
|
91
|
-
cy.wrap({ getFirstDayOfWeek })
|
|
92
|
-
.invoke("getFirstDayOfWeek")
|
|
93
|
-
.should("equal", configurationObject.formatSettings.firstDayOfWeek);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
it("getLegacyDateCalendarCustomizing", () => {
|
|
97
|
-
cy.wrap({ getLegacyDateCalendarCustomizing })
|
|
98
|
-
.invoke("getLegacyDateCalendarCustomizing")
|
|
99
|
-
.should("deep.equal", configurationObject.formatSettings.legacyDateCalendarCustomizing);
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
it("getAnimationMode", () => {
|
|
103
|
-
cy.wrap({ getAnimationMode })
|
|
104
|
-
.invoke("getAnimationMode")
|
|
105
|
-
.should("equal", configurationObject.animationMode);
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
it("getEnableDefaultTooltips", () => {
|
|
109
|
-
cy.wrap({ getTheme })
|
|
110
|
-
.invoke("getTheme")
|
|
111
|
-
.should("equal", configurationObject.theme);
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
it("getNoConflict", () => {
|
|
115
|
-
cy.wrap({ getNoConflict })
|
|
116
|
-
.invoke("getNoConflict")
|
|
117
|
-
.should("deep.equal", configurationObject.noConflict)
|
|
118
|
-
.its("events")
|
|
119
|
-
.should("deep.equal", configurationObject.noConflict.events);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
it("getDefaultFontLoading", () => {
|
|
123
|
-
cy.wrap({ getDefaultFontLoading })
|
|
124
|
-
.invoke("getDefaultFontLoading")
|
|
125
|
-
.should("equal", false);
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
it("getEnableDefaultTooltips", () => {
|
|
129
|
-
cy.wrap({ getEnableDefaultTooltips })
|
|
130
|
-
.invoke("getEnableDefaultTooltips")
|
|
131
|
-
.should("equal", false);
|
|
132
|
-
});
|
|
133
|
-
});
|