@ui5/webcomponents-base 0.0.0-d1315d658 → 0.0.0-d473b9686

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.
Files changed (301) hide show
  1. package/CHANGELOG.md +948 -0
  2. package/README.md +2 -9
  3. package/config/wdio.conf.cjs +0 -8
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/AssetRegistry.d.ts +2 -2
  6. package/dist/AssetRegistry.js +2 -2
  7. package/dist/AssetRegistry.js.map +1 -1
  8. package/dist/Boot.d.ts +3 -2
  9. package/dist/Boot.js +8 -6
  10. package/dist/Boot.js.map +1 -1
  11. package/dist/CustomElementsScope.d.ts +4 -4
  12. package/dist/CustomElementsScope.js +2 -2
  13. package/dist/CustomElementsScope.js.map +1 -1
  14. package/dist/CustomElementsScopeUtils.d.ts +8 -1
  15. package/dist/CustomElementsScopeUtils.js +13 -1
  16. package/dist/CustomElementsScopeUtils.js.map +1 -1
  17. package/dist/Device.d.ts +2 -2
  18. package/dist/Device.js +14 -12
  19. package/dist/Device.js.map +1 -1
  20. package/dist/IgnoreCustomElements.d.ts +3 -5
  21. package/dist/IgnoreCustomElements.js +3 -5
  22. package/dist/IgnoreCustomElements.js.map +1 -1
  23. package/dist/InitialConfiguration.d.ts +2 -2
  24. package/dist/InitialConfiguration.js +6 -5
  25. package/dist/InitialConfiguration.js.map +1 -1
  26. package/dist/Keys.d.ts +3 -1
  27. package/dist/Keys.js +109 -106
  28. package/dist/Keys.js.map +1 -1
  29. package/dist/ManagedStyles.d.ts +5 -4
  30. package/dist/ManagedStyles.js +55 -60
  31. package/dist/ManagedStyles.js.map +1 -1
  32. package/dist/MediaRange.d.ts +6 -12
  33. package/dist/MediaRange.js +21 -31
  34. package/dist/MediaRange.js.map +1 -1
  35. package/dist/UI5Element.d.ts +50 -54
  36. package/dist/UI5Element.js +179 -112
  37. package/dist/UI5Element.js.map +1 -1
  38. package/dist/UI5ElementMetadata.d.ts +13 -13
  39. package/dist/UI5ElementMetadata.js +26 -15
  40. package/dist/UI5ElementMetadata.js.map +1 -1
  41. package/dist/asset-registries/Icons.d.ts +4 -3
  42. package/dist/asset-registries/Icons.js +28 -17
  43. package/dist/asset-registries/Icons.js.map +1 -1
  44. package/dist/asset-registries/Illustrations.d.ts +2 -0
  45. package/dist/asset-registries/Illustrations.js +51 -20
  46. package/dist/asset-registries/Illustrations.js.map +1 -1
  47. package/dist/asset-registries/LocaleData.js +1 -1
  48. package/dist/asset-registries/LocaleData.js.map +1 -1
  49. package/dist/asset-registries/Themes.d.ts +4 -3
  50. package/dist/asset-registries/Themes.js +26 -10
  51. package/dist/asset-registries/Themes.js.map +1 -1
  52. package/dist/asset-registries/i18n.d.ts +2 -2
  53. package/dist/asset-registries/i18n.js +4 -3
  54. package/dist/asset-registries/i18n.js.map +1 -1
  55. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
  56. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
  57. package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
  58. package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
  59. package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
  60. package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
  61. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
  62. package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
  63. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
  64. package/dist/config/AnimationMode.js +2 -1
  65. package/dist/config/AnimationMode.js.map +1 -1
  66. package/dist/config/CalendarType.d.ts +8 -1
  67. package/dist/config/CalendarType.js +18 -2
  68. package/dist/config/CalendarType.js.map +1 -1
  69. package/dist/config/Icons.d.ts +9 -24
  70. package/dist/config/Icons.js +8 -67
  71. package/dist/config/Icons.js.map +1 -1
  72. package/dist/config/Language.d.ts +1 -1
  73. package/dist/config/Language.js +6 -3
  74. package/dist/config/Language.js.map +1 -1
  75. package/dist/config/Theme.d.ts +4 -3
  76. package/dist/config/Theme.js +13 -6
  77. package/dist/config/Theme.js.map +1 -1
  78. package/dist/config/ThemeRoot.d.ts +2 -4
  79. package/dist/config/ThemeRoot.js +2 -4
  80. package/dist/config/ThemeRoot.js.map +1 -1
  81. package/dist/config/Timezone.d.ts +1 -1
  82. package/dist/config/Timezone.js +1 -1
  83. package/dist/config/Timezone.js.map +1 -1
  84. package/dist/connectToComponent.d.ts +9 -0
  85. package/dist/connectToComponent.js +59 -0
  86. package/dist/connectToComponent.js.map +1 -0
  87. package/dist/css/FontFace.css +13 -1
  88. package/dist/css/SystemCSSVars.css +0 -8
  89. package/dist/decorators/customElement.d.ts +3 -3
  90. package/dist/decorators/customElement.js +11 -6
  91. package/dist/decorators/customElement.js.map +1 -1
  92. package/dist/decorators/event.d.ts +5 -2
  93. package/dist/decorators/event.js.map +1 -1
  94. package/dist/decorators.d.ts +5 -0
  95. package/dist/decorators.js +6 -0
  96. package/dist/decorators.js.map +1 -0
  97. package/dist/delegate/ItemNavigation.d.ts +9 -8
  98. package/dist/delegate/ItemNavigation.js +12 -13
  99. package/dist/delegate/ItemNavigation.js.map +1 -1
  100. package/dist/delegate/ResizeHandler.d.ts +4 -6
  101. package/dist/delegate/ResizeHandler.js +4 -6
  102. package/dist/delegate/ResizeHandler.js.map +1 -1
  103. package/dist/delegate/ScrollEnablement.js +2 -2
  104. package/dist/delegate/ScrollEnablement.js.map +1 -1
  105. package/dist/features/InputElementsFormSupport.d.ts +18 -0
  106. package/dist/features/InputElementsFormSupport.js +40 -0
  107. package/dist/features/InputElementsFormSupport.js.map +1 -0
  108. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  109. package/dist/features/OpenUI5Support.d.ts +0 -2
  110. package/dist/features/OpenUI5Support.js +8 -22
  111. package/dist/features/OpenUI5Support.js.map +1 -1
  112. package/dist/features/patchPatcher.d.ts +11 -0
  113. package/dist/features/patchPatcher.js +11 -0
  114. package/dist/features/patchPatcher.js.map +1 -0
  115. package/dist/features/patchPopup.d.ts +14 -0
  116. package/dist/features/patchPopup.js +50 -0
  117. package/dist/features/patchPopup.js.map +1 -0
  118. package/dist/generated/AssetParameters.d.ts +6 -0
  119. package/dist/generated/AssetParameters.js +3 -10
  120. package/dist/generated/AssetParameters.js.map +1 -0
  121. package/dist/generated/VersionInfo.d.ts +10 -0
  122. package/dist/generated/VersionInfo.js +9 -8
  123. package/dist/generated/VersionInfo.js.map +1 -0
  124. package/dist/generated/css/FontFace.css.js +1 -1
  125. package/dist/generated/css/FontFace.css.js.map +1 -1
  126. package/dist/generated/css/SystemCSSVars.css.js +1 -1
  127. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  128. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +1 -1
  129. package/dist/i18nBundle.d.ts +1 -3
  130. package/dist/i18nBundle.js +1 -4
  131. package/dist/i18nBundle.js.map +1 -1
  132. package/dist/locale/applyDirection.d.ts +3 -2
  133. package/dist/locale/applyDirection.js +3 -2
  134. package/dist/locale/applyDirection.js.map +1 -1
  135. package/dist/locale/getEffectiveDir.d.ts +1 -1
  136. package/dist/locale/getEffectiveDir.js +3 -19
  137. package/dist/locale/getEffectiveDir.js.map +1 -1
  138. package/dist/renderer/LitRenderer.d.ts +2 -2
  139. package/dist/renderer/LitRenderer.js +2 -8
  140. package/dist/renderer/LitRenderer.js.map +1 -1
  141. package/dist/renderer/directives/style-map.d.ts +13 -0
  142. package/dist/renderer/directives/style-map.js +59 -59
  143. package/dist/renderer/directives/style-map.js.map +1 -0
  144. package/dist/renderer/executeTemplate.d.ts +8 -0
  145. package/dist/renderer/executeTemplate.js +1 -0
  146. package/dist/renderer/executeTemplate.js.map +1 -1
  147. package/dist/sap/base/Log.js +698 -188
  148. package/dist/sap/base/assert.js +28 -1
  149. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  150. package/dist/sap/base/security/URLListValidator.js +253 -6
  151. package/dist/sap/base/security/encodeCSS.js +34 -8
  152. package/dist/sap/base/security/encodeXML.js +47 -17
  153. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  154. package/dist/sap/base/strings/toHex.js +27 -2
  155. package/dist/sap/base/util/now.js +24 -3
  156. package/dist/sap/base/util/uid.js +27 -0
  157. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +1 -1
  158. package/dist/ssr-dom-shim.d.ts +1 -0
  159. package/dist/ssr-dom-shim.js +12 -0
  160. package/dist/ssr-dom-shim.js.map +1 -0
  161. package/dist/ssr-dom.d.ts +0 -0
  162. package/dist/ssr-dom.js +0 -0
  163. package/dist/theming/applyTheme.js +5 -6
  164. package/dist/theming/applyTheme.js.map +1 -1
  165. package/dist/theming/getConstructableStyle.d.ts +1 -1
  166. package/dist/theming/getConstructableStyle.js +3 -3
  167. package/dist/theming/getConstructableStyle.js.map +1 -1
  168. package/dist/theming/getEffectiveStyle.d.ts +1 -1
  169. package/dist/theming/getEffectiveStyle.js +5 -12
  170. package/dist/theming/getEffectiveStyle.js.map +1 -1
  171. package/dist/types/AnimationMode.d.ts +0 -8
  172. package/dist/types/AnimationMode.js +0 -8
  173. package/dist/types/AnimationMode.js.map +1 -1
  174. package/dist/types/AriaHasPopup.d.ts +32 -0
  175. package/dist/types/AriaHasPopup.js +34 -0
  176. package/dist/types/AriaHasPopup.js.map +1 -0
  177. package/dist/types/AriaLandmarkRole.d.ts +79 -0
  178. package/dist/types/AriaLandmarkRole.js +81 -0
  179. package/dist/types/AriaLandmarkRole.js.map +1 -0
  180. package/dist/types/AriaRole.d.ts +27 -0
  181. package/dist/types/AriaRole.js +29 -0
  182. package/dist/types/AriaRole.js.map +1 -0
  183. package/dist/types/CSSColor.d.ts +0 -4
  184. package/dist/types/CSSColor.js +0 -4
  185. package/dist/types/CSSColor.js.map +1 -1
  186. package/dist/types/CSSSize.d.ts +11 -0
  187. package/dist/types/CSSSize.js +14 -0
  188. package/dist/types/CSSSize.js.map +1 -0
  189. package/dist/types/CalendarType.d.ts +0 -9
  190. package/dist/types/CalendarType.js +0 -9
  191. package/dist/types/CalendarType.js.map +1 -1
  192. package/dist/types/DOMReference.d.ts +1 -5
  193. package/dist/types/DOMReference.js +1 -5
  194. package/dist/types/DOMReference.js.map +1 -1
  195. package/dist/types/DataType.d.ts +1 -6
  196. package/dist/types/DataType.js +1 -6
  197. package/dist/types/DataType.js.map +1 -1
  198. package/dist/types/Float.d.ts +0 -3
  199. package/dist/types/Float.js +0 -3
  200. package/dist/types/Float.js.map +1 -1
  201. package/dist/types/Integer.d.ts +0 -3
  202. package/dist/types/Integer.js +0 -3
  203. package/dist/types/Integer.js.map +1 -1
  204. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  205. package/dist/types/InvisibleMessageMode.js +4 -11
  206. package/dist/types/InvisibleMessageMode.js.map +1 -1
  207. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  208. package/dist/types/ItemNavigationBehavior.js +0 -6
  209. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  210. package/dist/types/MovePlacement.d.ts +20 -0
  211. package/dist/types/MovePlacement.js +22 -0
  212. package/dist/types/MovePlacement.js.map +1 -0
  213. package/dist/types/NavigationMode.d.ts +0 -8
  214. package/dist/types/NavigationMode.js +0 -8
  215. package/dist/types/NavigationMode.js.map +1 -1
  216. package/dist/types/Orientation.d.ts +16 -0
  217. package/dist/types/Orientation.js +18 -0
  218. package/dist/types/Orientation.js.map +1 -0
  219. package/dist/types/ValueState.d.ts +3 -17
  220. package/dist/types/ValueState.js +3 -17
  221. package/dist/types/ValueState.js.map +1 -1
  222. package/dist/types.d.ts +24 -1
  223. package/dist/types.js.map +1 -1
  224. package/dist/updateShadowRoot.d.ts +1 -2
  225. package/dist/updateShadowRoot.js +5 -28
  226. package/dist/updateShadowRoot.js.map +1 -1
  227. package/dist/util/ColorConversion.js +200 -195
  228. package/dist/util/ColorConversion.js.map +1 -1
  229. package/dist/util/InvisibleMessage.d.ts +1 -1
  230. package/dist/util/InvisibleMessage.js +2 -2
  231. package/dist/util/InvisibleMessage.js.map +1 -1
  232. package/dist/util/PopupUtils.d.ts +1 -3
  233. package/dist/util/PopupUtils.js +1 -15
  234. package/dist/util/PopupUtils.js.map +1 -1
  235. package/dist/util/clamp.js +2 -1
  236. package/dist/util/clamp.js.map +1 -1
  237. package/dist/util/createLinkInHead.d.ts +1 -1
  238. package/dist/util/createLinkInHead.js +1 -1
  239. package/dist/util/createLinkInHead.js.map +1 -1
  240. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  241. package/dist/util/detectNavigatorLanguage.js +6 -1
  242. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  243. package/dist/util/dragAndDrop/DragRegistry.d.ts +12 -0
  244. package/dist/util/dragAndDrop/DragRegistry.js +68 -0
  245. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
  246. package/dist/util/dragAndDrop/findClosestPosition.d.ts +7 -0
  247. package/dist/util/dragAndDrop/findClosestPosition.js +59 -0
  248. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
  249. package/dist/util/dragAndDrop/longDragOverHandler.d.ts +2 -0
  250. package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
  251. package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
  252. package/dist/util/getClassCopy.d.ts +64 -43
  253. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  254. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  255. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  256. package/dist/util/getParentElement.d.ts +2 -0
  257. package/dist/util/getParentElement.js +5 -0
  258. package/dist/util/getParentElement.js.map +1 -0
  259. package/dist/util/isElementContainingBlock.d.ts +2 -0
  260. package/dist/util/isElementContainingBlock.js +11 -0
  261. package/dist/util/isElementContainingBlock.js.map +1 -0
  262. package/index.js +3 -19
  263. package/package-scripts.cjs +22 -19
  264. package/package.json +23 -8
  265. package/src/css/FontFace.css +13 -1
  266. package/src/css/SystemCSSVars.css +0 -8
  267. package/tsconfig.json +6 -0
  268. package/.eslintignore +0 -16
  269. package/.eslintrc.cjs +0 -3
  270. package/bundle.esm.js +0 -67
  271. package/dist/CSP.d.ts +0 -30
  272. package/dist/CSP.js +0 -51
  273. package/dist/CSP.js.map +0 -1
  274. package/dist/StaticArea.d.ts +0 -3
  275. package/dist/StaticArea.js +0 -7
  276. package/dist/StaticArea.js.map +0 -1
  277. package/dist/StaticAreaItem.d.ts +0 -37
  278. package/dist/StaticAreaItem.js +0 -105
  279. package/dist/StaticAreaItem.js.map +0 -1
  280. package/dist/api.json +0 -1
  281. package/dist/assets/Boot.34b7cea0.css +0 -1
  282. package/dist/assets/Boot.f668b2d0.js +0 -9
  283. package/dist/assets/bundle.esm.88a9eda7.js +0 -50
  284. package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
  285. package/dist/config/RTL.d.ts +0 -7
  286. package/dist/config/RTL.js +0 -37
  287. package/dist/config/RTL.js.map +0 -1
  288. package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
  289. package/dist/theming/getEffectiveLinksHrefs.js +0 -17
  290. package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
  291. package/dist/theming/preloadLinks.d.ts +0 -3
  292. package/dist/theming/preloadLinks.js +0 -19
  293. package/dist/theming/preloadLinks.js.map +0 -1
  294. package/dist/util/createStyleInHead.d.ts +0 -8
  295. package/dist/util/createStyleInHead.js +0 -18
  296. package/dist/util/createStyleInHead.js.map +0 -1
  297. package/lib/generate-asset-parameters/index.js +0 -27
  298. package/lib/generate-styles/index.js +0 -31
  299. package/lib/generate-version-info/index.js +0 -32
  300. package/src/renderer/directives/style-map.js +0 -72
  301. package/used-modules.txt +0 -10
@@ -1,50 +0,0 @@
1
- import{f as he,g as pe,r as Ht,a as kt,E as K,b as J,c as fe,d as Bt,e as ge,h as ft,i as Vt,j as me,k as _e,l as ye,m as ve,n as Ae,o as $e,p as we,q as Se,s as be,t as Ce,u as Ee,v as w,w as Me,x as Te,y as xe,z as Ft,A as De,B as Ie,C as Pe,D as Le,F as Ne,_ as Re,G as Oe}from"./Boot.f668b2d0.js";const He=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,ke=(s,t)=>(t=t||[],s.replace(He,(e,n,i,r,o)=>{if(n)return"'";if(i)return i.replace(/''/g,"'");if(r){const l=typeof r=="string"?parseInt(r):r;return String(t[l])}throw new Error(`[i18n]: pattern syntax error at pos ${o}`)})),Y=new Map;class Be{constructor(t){this.packageName=t}getText(t,...e){if(typeof t=="string"&&(t={key:t,defaultText:t}),!t||!t.key)return"";const n=pe(this.packageName);n&&!n[t.key]&&console.warn(`Key ${t.key} not found in the i18n bundle, the default text will be used`);const i=n&&n[t.key]?n[t.key]:t.defaultText||t.key;return ke(i,e)}}const Ve=s=>{if(Y.has(s))return Y.get(s);const t=new Be(s);return Y.set(s,t),t},Fe=async s=>(await he(s),Ve(s)),Q=new Map,tt=new Map,yt=s=>{if(!Q.has(s)){const t=Ue(s.split("-"));Q.set(s,t)}return Q.get(s)},Ut=s=>{if(!tt.has(s)){const t=s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();tt.set(s,t)}return tt.get(s)},Ue=s=>s.map((t,e)=>e===0?t.toLowerCase():t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(""),je=s=>{if(!(s instanceof HTMLElement))return"default";const t=s.getAttribute("slot");if(t){const e=t.match(/^(.+?)-\d+$/);return e?e[1]:t}return"default"},jt=s=>s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}).filter(t=>t instanceof HTMLElement):[s],We=s=>s.reduce((t,e)=>t.concat(jt(e)),[]);let ze,vt={include:[/^ui5-/],exclude:[]};const et=new Map,Wt=()=>ze,dt=s=>{if(!et.has(s)){const t=vt.include.some(e=>s.match(e))&&!vt.exclude.some(e=>s.match(e));et.set(s,t)}return et.get(s)},zt=s=>{if(dt(s))return Wt()};class Ge{constructor(t){this.metadata=t}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,"_initialState"))return this._initialState;const t={},e=this.slotsAreManaged(),n=this.getProperties();for(const i in n){const r=n[i].type,o=n[i].defaultValue;r===Boolean?(t[i]=!1,o!==void 0&&console.warn("The 'defaultValue' metadata key is ignored for all booleans properties, they would be initialized with 'false' by default")):n[i].multiple?t[i]=[]:r===Object?t[i]="defaultValue"in n[i]?n[i].defaultValue:{}:r===String?t[i]="defaultValue"in n[i]?n[i].defaultValue:"":t[i]=o}if(e){const i=this.getSlots();for(const[r,o]of Object.entries(i)){const l=o.propertyName||r;t[l]=[]}}return this._initialState=t,t}static validatePropertyValue(t,e){return e.multiple&&t?t.map(i=>At(i,e)):At(t,e)}static validateSlotValue(t,e){return qe(t,e)}getPureTag(){return this.metadata.tag||""}getTag(){const t=this.metadata.tag;if(!t)return"";const e=zt(t);return e?`${t}-${e}`:t}hasAttribute(t){const e=this.getProperties()[t];return e.type!==Object&&!e.noAttribute&&!e.multiple}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute.bind(this)).map(Ut)}canSlotText(){const t=this.getSlots().default;return t&&t.type===Node}hasSlots(){return!!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.values(this.getSlots()).some(t=>t.individualSlots)}slotsAreManaged(){return!!this.metadata.managedSlots}supportsF6FastNavigation(){return!!this.metadata.fastNavigation}getProperties(){return this.metadata.properties||(this.metadata.properties={}),this.metadata.properties}getEvents(){return this.metadata.events||(this.metadata.events={}),this.metadata.events}getSlots(){return this.metadata.slots||(this.metadata.slots={}),this.metadata.slots}isLanguageAware(){return!!this.metadata.languageAware}isThemeAware(){return!!this.metadata.themeAware}shouldInvalidateOnChildChange(t,e,n){const i=this.getSlots()[t].invalidateOnChildChange;if(i===void 0)return!1;if(typeof i=="boolean")return i;if(typeof i=="object"){if(e==="property"){if(i.properties===void 0)return!1;if(typeof i.properties=="boolean")return i.properties;if(Array.isArray(i.properties))return i.properties.includes(n);throw new Error("Wrong format for invalidateOnChildChange.properties: boolean or array is expected")}if(e==="slot"){if(i.slots===void 0)return!1;if(typeof i.slots=="boolean")return i.slots;if(Array.isArray(i.slots))return i.slots.includes(n);throw new Error("Wrong format for invalidateOnChildChange.slots: boolean or array is expected")}}throw new Error("Wrong format for invalidateOnChildChange: boolean or object is expected")}}const At=(s,t)=>{const e=t.type;let n=t.validator;return e&&e.isDataTypeClass&&(n=e),n?n.isValid(s)?s:t.defaultValue:!e||e===String?typeof s=="string"||typeof s>"u"||s===null?s:s.toString():e===Boolean?typeof s=="boolean"?s:!1:e===Object?typeof s=="object"?s:t.defaultValue:s in e?s:t.defaultValue},qe=(s,t)=>(s&&jt(s).forEach(e=>{if(!(e instanceof t.type))throw new Error(`The element is not of type ${t.type.toString()}`)}),s);class Ze extends HTMLElement{}customElements.get("ui5-static-area")||customElements.define("ui5-static-area",Ze);const Ke=()=>kt("CustomStyle.eventProvider",new K),Je="CustomCSSChange",gt=s=>{Ke().attachEvent(Je,s)},Xe=()=>kt("CustomStyle.customCSSFor",{});gt(s=>{Ht({tag:s})});const Ye=s=>{const t=Xe();return t[s]?t[s].join(""):""},Qe=10,st=s=>Array.isArray(s)?s.filter(t=>!!t).flat(Qe).map(t=>typeof t=="string"?t:t.content).join(" "):typeof s=="string"?s:s.content,W=new Map;gt(s=>{W.delete(`${s}_normal`)});const Gt=(s,t=!1)=>{const e=s.getMetadata().getTag(),n=`${e}_${t?"static":"normal"}`,i=J("OpenUI5Enablement");if(!W.has(n)){let r,o="";if(i&&(o=st(i.getBusyIndicatorStyles())),t)r=st(s.staticAreaStyles);else{const l=Ye(e)||"";r=`${st(s.styles)} ${l}`}r=`${r} ${o}`,W.set(n,r)}return W.get(n)},z=new Map;gt(s=>{z.delete(`${s}_normal`)});const ts=(s,t=!1)=>{const n=`${s.getMetadata().getTag()}_${t?"static":"normal"}`;if(!z.has(n)){const i=Gt(s,t),r=new CSSStyleSheet;r.replaceSync(i),z.set(n,[r])}return z.get(n)},ut=(s,t=!1)=>{let e;const n=s.constructor,i=t?s.staticAreaItem.shadowRoot:s.shadowRoot;let r;if(t?r=s.renderStatic():r=s.render(),!i){console.warn("There is no shadow root to update");return}if(document.adoptedStyleSheets?i.adoptedStyleSheets=ts(n,t):e=Gt(n,t),n.renderer){n.renderer(r,i,e,t,{host:s});return}n.render(r,i,e,t,{host:s})},es="--_ui5_content_density",ss=s=>getComputedStyle(s).getPropertyValue(es),ns=s=>{const t=/\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(s);return t&&t[2]?t[2].split(/,/):null},is={iw:"he",ji:"yi",in:"id",sh:"sr"},rs=ns("$cldr-rtl-locales:ar,fa,he$")||[],os=s=>(s=s&&is[s]||s,rs.indexOf(s)>=0),qt=()=>{if(typeof document>"u")return!1;const s=fe();return s!==void 0?!!s:os(Bt()||ge())},as="--_ui5_dir",Zt=s=>{const t=window.document,e=["ltr","rtl"],n=getComputedStyle(s).getPropertyValue(as);return e.includes(n)?n:e.includes(s.dir)?s.dir:e.includes(t.documentElement.dir)?t.documentElement.dir:e.includes(t.body.dir)?t.body.dir:qt()?"rtl":void 0},j="ui5-static-area-item",ls="data-sap-ui-integration-popup-content";class R extends HTMLElement{constructor(){super(),this._rendered=!1,this.attachShadow({mode:"open"})}setOwnerElement(t){this.ownerElement=t,this.classList.add(this.ownerElement._id),this.ownerElement.hasAttribute("data-ui5-static-stable")&&this.setAttribute("data-ui5-stable",this.ownerElement.getAttribute("data-ui5-static-stable"))}update(){this._rendered&&(this.updateAdditionalProperties(),ut(this.ownerElement,!0))}updateAdditionalProperties(){this._updateAdditionalAttrs(),this._updateContentDensity(),this._updateDirection()}_updateContentDensity(){ss(this.ownerElement)==="compact"?(this.classList.add("sapUiSizeCompact"),this.classList.add("ui5-content-density-compact")):(this.classList.remove("sapUiSizeCompact"),this.classList.remove("ui5-content-density-compact"))}_updateDirection(){if(this.ownerElement){const t=Zt(this.ownerElement);t?this.setAttribute("dir",t):this.removeAttribute("dir")}}_updateAdditionalAttrs(){this.setAttribute(`_ui5rt${ft()}`,""),this.setAttribute("_ui5host",""),this.setAttribute(j,""),this.setAttribute(ls,"")}async getDomRef(){return this.updateAdditionalProperties(),this._rendered||(this._rendered=!0,ut(this.ownerElement,!0)),await Vt(),this.shadowRoot}static getTag(){const t=zt(j);return t?`${j}-${t}`:j}static createInstance(){return customElements.get(R.getTag())||customElements.define(R.getTag(),R),document.createElement(this.getTag())}}const cs=[],ds=s=>cs.some(t=>s.startsWith(t)),ht=new WeakMap,us=(s,t,e)=>{const n=new MutationObserver(t);ht.set(s,n),n.observe(s,e)},hs=s=>{const t=ht.get(s);t&&(t.disconnect(),ht.delete(s))},ps=["value-changed","click"];let G;const fs=s=>ps.includes(s),gs=s=>{const t=mt();return!(typeof t!="boolean"&&t.events&&t.events.includes&&t.events.includes(s))},mt=()=>(G===void 0&&(G=me()),G),ms=s=>{G=s},_s=s=>{const t=mt();return fs(s)?!1:t===!0?!0:!gs(s)},ys=["disabled","title","hidden","role","draggable"],$t=s=>ys.includes(s)||s.startsWith("aria")?!0:![HTMLElement,Element,Node].some(e=>e.prototype.hasOwnProperty(s)),wt=(s,t)=>{if(s.length!==t.length)return!1;for(let e=0;e<s.length;e++)if(s[e]!==t[e])return!1;return!0},St=(s,t)=>{const e=vs(t),n=Wt();return s.call(t,t,e,n)},vs=s=>{const t=s.constructor,e=t.getMetadata().getPureTag(),n=t.getUniqueDependencies().map(i=>i.getMetadata().getPureTag()).filter(dt);return dt(e)&&n.push(e),n};let As=0;const bt=new Map,nt=new Map;function I(s){this._suppressInvalidation||(this.onInvalidation(s),this._changedState.push(s),Ee(this),this._eventProvider.fireEvent("invalidate",{...s,target:this}))}class $ extends HTMLElement{constructor(){super();const t=this.constructor;this._changedState=[],this._suppressInvalidation=!0,this._inDOM=!1,this._fullyConnected=!1,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._eventProvider=new K;let e;this._domRefReadyPromise=new Promise(n=>{e=n}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._state={...t.getMetadata().getInitialState()},this._upgradeAllProperties(),t._needsShadowDOM()&&this.attachShadow({mode:"open"})}get _id(){return this.__id||(this.__id=`ui5wc_${++As}`),this.__id}render(){const t=this.constructor.template;return St(t,this)}renderStatic(){const t=this.constructor.staticAreaTemplate;return St(t,this)}async connectedCallback(){const t=this.constructor;this.setAttribute(`_ui5rt${ft()}`,""),this.setAttribute("_ui5host",""),this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=!0,e&&(this._startObservingDOMChildren(),await this._processChildren()),this._inDOM&&(_e(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=!0,this.onEnterDOM())}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=!1,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=!1),this.staticAreaItem&&this.staticAreaItem.parentElement&&this.staticAreaItem.parentElement.removeChild(this.staticAreaItem),ye(this)}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const t=this.constructor;if(!t.getMetadata().hasSlots())return;const n=t.getMetadata().canSlotText(),i={childList:!0,subtree:n,characterData:n};us(this,this._processChildren.bind(this),i)}_stopObservingDOMChildren(){hs(this)}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots()}async _updateSlots(){const t=this.constructor,e=t.getMetadata().getSlots(),n=t.getMetadata().canSlotText(),i=Array.from(n?this.childNodes:this.children),r=new Map,o=new Map;for(const[d,u]of Object.entries(e)){const h=u.propertyName||d;o.set(h,d),r.set(h,[...this._state[h]]),this._clearSlot(d,u)}const l=new Map,a=new Map,c=i.map(async(d,u)=>{const h=je(d),f=e[h];if(f===void 0){if(h!=="default"){const g=Object.keys(e).join(", ");console.warn(`Unknown slotName: ${h}, ignoring`,d,`Valid values are: ${g}`)}return}if(f.individualSlots){const g=(l.get(h)||0)+1;l.set(h,g),d._individualSlot=`${h}-${g}`}if(d instanceof HTMLElement){const g=d.localName;if(g.includes("-")&&!ds(g)){if(!window.customElements.get(g)){const de=window.customElements.whenDefined(g);let U=bt.get(g);U||(U=new Promise(ue=>setTimeout(ue,1e3)),bt.set(g,U)),await Promise.race([de,U])}window.customElements.upgrade(d)}}if(d=t.getMetadata().constructor.validateSlotValue(d,f),Ct(d)&&f.invalidateOnChildChange){const g=this._getChildChangeListener(h);g&&d.attachInvalidate.call(d,g)}d instanceof HTMLSlotElement&&this._attachSlotChange(d,h);const m=f.propertyName||h;a.has(m)?a.get(m).push({child:d,idx:u}):a.set(m,[{child:d,idx:u}])});await Promise.all(c),a.forEach((d,u)=>{this._state[u]=d.sort((h,f)=>h.idx-f.idx).map(h=>h.child)});let p=!1;for(const[d,u]of Object.entries(e)){const h=u.propertyName||d;wt(r.get(h),this._state[h])||(I.call(this,{type:"slot",name:o.get(h),reason:"children"}),p=!0)}p||I.call(this,{type:"slot",name:"default",reason:"textcontent"})}_clearSlot(t,e){const n=e.propertyName||t;this._state[n].forEach(r=>{if(Ct(r)){const o=this._getChildChangeListener(t);o&&r.detachInvalidate.call(r,o)}r instanceof HTMLSlotElement&&this._detachSlotChange(r,t)}),this._state[n]=[]}attachInvalidate(t){this._eventProvider.attachEvent("invalidate",t)}detachInvalidate(t){this._eventProvider.detachEvent("invalidate",t)}_onChildChange(t,e){!this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)||I.call(this,{type:"slot",name:t,reason:"childchange",child:e.target})}attributeChangedCallback(t,e,n){let i;if(this._doNotSyncAttributes.has(t))return;const r=this.constructor.getMetadata().getProperties(),o=t.replace(/^ui5-/,""),l=yt(o);if(r.hasOwnProperty(l)){const a=r[l],c=a.type;let p=a.validator;c&&c.isDataTypeClass&&(p=c),p?i=p.attributeToProperty(n):c===Boolean?i=n!==null:i=n,this[l]=i}}_updateAttribute(t,e){const n=this.constructor;if(!n.getMetadata().hasAttribute(t))return;const r=n.getMetadata().getProperties()[t],o=r.type;let l=r.validator;const a=Ut(t),c=this.getAttribute(a);if(o&&o.isDataTypeClass&&(l=o),l){const p=l.propertyToAttribute(e);p===null?(this._doNotSyncAttributes.add(a),this.removeAttribute(a),this._doNotSyncAttributes.delete(a)):this.setAttribute(a,p)}else o===Boolean?e===!0&&c===null?this.setAttribute(a,""):e===!1&&c!==null&&this.removeAttribute(a):typeof e!="object"&&c!==e&&this.setAttribute(a,e)}_upgradeProperty(t){if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this[t]=e}}_upgradeAllProperties(){this.constructor.getMetadata().getPropertiesList().forEach(this._upgradeProperty.bind(this))}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e){const n=this._getSlotChangeListener(e);n&&t.addEventListener("slotchange",n)}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e))}_onSlotChange(t){I.call(this,{type:"slot",name:t,reason:"slotchange"})}onInvalidation(t){}_render(){const t=this.constructor,e=t.getMetadata().hasIndividualSlots();this._suppressInvalidation=!0,this.onBeforeRendering(),this._onComponentStateFinalized&&this._onComponentStateFinalized(),this._suppressInvalidation=!1,this._changedState=[],t._needsShadowDOM()&&ut(this),this.staticAreaItem&&this.staticAreaItem.update(),e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering()}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot)})}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!this.shadowRoot||this.shadowRoot.children.length===0)return;const t=[...this.shadowRoot.children].filter(e=>!["link","style"].includes(e.localName));return t.length!==1&&console.warn(`The shadow DOM for ${this.constructor.getMetadata().getTag()} does not have a top level element, the getDomRef() method might not work as expected`),t[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e&&typeof e.focus=="function"&&e.focus(t)}fireEvent(t,e,n=!1,i=!0){const r=this._fireEvent(t,e,n,i),o=yt(t);return o!==t?r&&this._fireEvent(o,e,n):r}_fireEvent(t,e,n=!1,i=!0){const r=new CustomEvent(`ui5-${t}`,{detail:e,composed:!1,bubbles:i,cancelable:n}),o=this.dispatchEvent(r);if(_s(t))return o;const l=new CustomEvent(t,{detail:e,composed:!1,bubbles:i,cancelable:n});return this.dispatchEvent(l)&&o}getSlottedNodes(t){return We(this[t])}get effectiveDir(){return ve(this.constructor),Zt(this)}get isUI5Element(){return!0}get classes(){return{}}static get observedAttributes(){return this.getMetadata().getAttributesList()}static _needsShadowDOM(){return!!this.template||Object.prototype.hasOwnProperty.call(this.prototype,"render")}static _needsStaticArea(){return!!this.staticAreaTemplate||Object.prototype.hasOwnProperty.call(this.prototype,"renderStatic")}getStaticAreaItemDomRef(){if(!this.constructor._needsStaticArea())throw new Error("This component does not use the static area");return this.staticAreaItem||(this.staticAreaItem=R.createInstance(),this.staticAreaItem.setOwnerElement(this)),this.staticAreaItem.parentElement||Ae("ui5-static-area").appendChild(this.staticAreaItem),this.staticAreaItem.getDomRef()}static _generateAccessors(){const t=this.prototype,e=this.getMetadata().slotsAreManaged(),n=this.getMetadata().getProperties();for(const[i,r]of Object.entries(n)){if($t(i)||console.warn(`"${i}" is not a valid property name. Use a name that does not collide with DOM APIs`),r.type===Boolean&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All booleans are false by default.`);if(r.type===Array)throw new Error(`Wrong type for property "${i}". Properties cannot be of type Array - use "multiple: true" and set "type" to the single value type, such as "String", "Object", etc...`);if(r.type===Object&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All properties of type "Object" are empty objects by default.`);if(r.multiple&&r.defaultValue)throw new Error(`Cannot set a default value for property "${i}". All multiple properties are empty arrays by default.`);Object.defineProperty(t,i,{get(){if(this._state[i]!==void 0)return this._state[i];const o=r.defaultValue;return r.type===Boolean?!1:r.type===String?o:r.multiple?[]:o},set(o){let l;o=this.constructor.getMetadata().constructor.validatePropertyValue(o,r);const p=r.type;let d=r.validator;const u=this._state[i];p&&p.isDataTypeClass&&(d=p),d?l=!d.valuesAreEqual(u,o):Array.isArray(u)&&Array.isArray(o)&&r.multiple&&r.compareValues?l=!wt(u,o):l=u!==o,l&&(this._state[i]=o,I.call(this,{type:"property",name:i,newValue:o,oldValue:u}),this._updateAttribute(i,o))}})}if(e){const i=this.getMetadata().getSlots();for(const[r,o]of Object.entries(i)){$t(r)||console.warn(`"${r}" is not a valid property name. Use a name that does not collide with DOM APIs`);const l=o.propertyName||r;Object.defineProperty(t,l,{get(){return this._state[l]!==void 0?this._state[l]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}})}}}static get styles(){return""}static get staticAreaStyles(){return""}static get dependencies(){return[]}static getUniqueDependencies(){if(!nt.has(this)){const t=this.dependencies.filter((e,n,i)=>i.indexOf(e)===n);nt.set(this,t)}return nt.get(this)||[]}static whenDependenciesDefined(){return Promise.all(this.getUniqueDependencies().map(t=>t.define()))}static async onDefine(){return Promise.resolve()}static async define(){await $e(),await Promise.all([this.whenDependenciesDefined(),this.onDefine()]);const t=this.getMetadata().getTag(),e=we(t),n=customElements.get(t);return n&&!e?Se(t):n||(this._generateAccessors(),be(t),window.customElements.define(t,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==$;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const n=Ce({},...t);return this._metadata=new Ge(n),this._metadata}}$.metadata={};const Ct=s=>"isUI5Element"in s;/**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */var it;const q=window,x=q.trustedTypes,Et=x?x.createPolicy("lit-html",{createHTML:s=>s}):void 0,Z="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+A,$s=`<${_t}>`,E=document,O=()=>E.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",Kt=Array.isArray,Jt=s=>Kt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",rt=`[
6
- \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Tt=/>/g,S=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
7
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xt=/'/g,Dt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,ws=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),Ss=ws(1),M=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),It=new WeakMap,C=E.createTreeWalker(E,129,null,!1);function Yt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Et!==void 0?Et.createHTML(t):t}const Qt=(s,t)=>{const e=s.length-1,n=[];let i,r=t===2?"<svg>":"",o=P;for(let l=0;l<e;l++){const a=s[l];let c,p,d=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===P?p[1]==="!--"?o=Mt:p[1]!==void 0?o=Tt:p[2]!==void 0?(Xt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=S):p[3]!==void 0&&(o=S):o===S?p[0]===">"?(o=i!=null?i:P,d=-1):p[1]===void 0?d=-2:(d=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?S:p[3]==='"'?Dt:xt):o===Dt||o===xt?o=S:o===Mt||o===Tt?o=P:(o=S,i=void 0);const h=o===S&&s[l+1].startsWith("/>")?" ":"";r+=o===P?a+$s:d>=0?(n.push(c),a.slice(0,d)+Z+a.slice(d)+A+h):a+A+(d===-2?(n.push(void 0),l):h)}return[Yt(s,r+(s[e]||"<?>")+(t===2?"</svg>":"")),n]};class k{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const l=t.length-1,a=this.parts,[c,p]=Qt(t,e);if(this.el=k.createElement(c,n),C.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(i=C.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes()){const d=[];for(const u of i.getAttributeNames())if(u.endsWith(Z)||u.startsWith(A)){const h=p[o++];if(d.push(u),h!==void 0){const f=i.getAttribute(h.toLowerCase()+Z).split(A),m=/([.?@])?(.*)/.exec(h);a.push({type:1,index:r,name:m[2],strings:f,ctor:m[1]==="."?ee:m[1]==="?"?se:m[1]==="@"?ne:B})}else a.push({type:6,index:r})}for(const u of d)i.removeAttribute(u)}if(Xt.test(i.tagName)){const d=i.textContent.split(A),u=d.length-1;if(u>0){i.textContent=x?x.emptyScript:"";for(let h=0;h<u;h++)i.append(d[h],O()),C.nextNode(),a.push({type:2,index:++r});i.append(d[u],O())}}}else if(i.nodeType===8)if(i.data===_t)a.push({type:2,index:r});else{let d=-1;for(;(d=i.data.indexOf(A,d+1))!==-1;)a.push({type:7,index:r}),d+=A.length-1}r++}}static createElement(t,e){const n=E.createElement("template");return n.innerHTML=t,n}}function T(s,t,e=s,n){var i,r,o,l;if(t===M)return t;let a=n!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[n]:e._$Cl;const c=H(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((r=a==null?void 0:a._$AO)===null||r===void 0||r.call(a,!1),c===void 0?a=void 0:(a=new c(s),a._$AT(s,e,n)),n!==void 0?((o=(l=e)._$Co)!==null&&o!==void 0?o:l._$Co=[])[n]=a:e._$Cl=a),a!==void 0&&(t=T(s,a._$AS(s,t.values),a,n)),t}class te{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:E).importNode(n,!0);C.currentNode=r;let o=C.nextNode(),l=0,a=0,c=i[0];for(;c!==void 0;){if(l===c.index){let p;c.type===2?p=new D(o,o.nextSibling,this,t):c.type===1?p=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(p=new ie(o,this,t)),this._$AV.push(p),c=i[++a]}l!==(c==null?void 0:c.index)&&(o=C.nextNode(),l++)}return C.currentNode=E,r}v(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class D{constructor(t,e,n,i){var r;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),H(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==M&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Jt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==_&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=k.createElement(Yt(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(n);else{const o=new te(r,this),l=o.u(this.options);o.v(n),this.$(l),this._$AH=o}}_$AC(t){let e=It.get(t.strings);return e===void 0&&It.set(t.strings,e=new k(t)),e}T(t){Kt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new D(this.k(O()),this.k(O()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class B{constructor(t,e,n,i,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(r===void 0)t=T(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==M,o&&(this._$AH=t);else{const l=t;let a,c;for(t=r[0],a=0;a<r.length-1;a++)c=T(this,l[n+a],e,a),c===M&&(c=this._$AH[a]),o||(o=!H(c)||c!==this._$AH[a]),c===_?t=_:t!==_&&(t+=(c!=null?c:"")+r[a+1]),this._$AH[a]=c}o&&!i&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class ee extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const bs=x?x.emptyScript:"";class se extends B{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,bs):this.element.removeAttribute(this.name)}}class ne extends B{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=T(this,t,e,0))!==null&&n!==void 0?n:_)===M)return;const i=this._$AH,r=t===_&&i!==_||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==_&&(i===_||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;typeof this._$AH=="function"?this._$AH.call((n=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}}class ie{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const Cs={O:Z,P:A,A:_t,C:1,M:Qt,L:te,D:Jt,R:T,I:D,V:B,H:se,N:ne,U:ee,F:ie},Pt=q.litHtmlPolyfillSupport;Pt==null||Pt(k,D),((it=q.litHtmlVersions)!==null&&it!==void 0?it:q.litHtmlVersions=[]).push("2.7.5");const Es=(s,t,e)=>{var n,i;const r=(n=e==null?void 0:e.renderBefore)!==null&&n!==void 0?n:t;let o=r._$litPart$;if(o===void 0){const l=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=o=new D(t.insertBefore(O(),l),l,void 0,e!=null?e:{})}return o._$AI(s),o};/**
8
- * @license
9
- * Copyright 2017 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */const re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ms=s=>(...t)=>({_$litDirective$:s,values:t});class oe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
12
- * @license
13
- * Copyright 2020 Google LLC
14
- * SPDX-License-Identifier: BSD-3-Clause
15
- */const{I:Ts}=Cs,Lt=()=>document.createComment(""),L=(s,t,e)=>{var n;const i=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){const o=i.insertBefore(Lt(),r),l=i.insertBefore(Lt(),r);e=new Ts(o,l,s,s.options)}else{const o=e._$AB.nextSibling,l=e._$AM,a=l!==s;if(a){let c;(n=e._$AQ)===null||n===void 0||n.call(e,s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==l._$AU&&e._$AP(c)}if(o!==r||a){let c=e._$AA;for(;c!==o;){const p=c.nextSibling;i.insertBefore(c,r),c=p}}}return e},b=(s,t,e=s)=>(s._$AI(t,e),s),xs={},Ds=(s,t=xs)=>s._$AH=t,Is=s=>s._$AH,ot=s=>{var t;(t=s._$AP)===null||t===void 0||t.call(s,!1,!0);let e=s._$AA;const n=s._$AB.nextSibling;for(;e!==n;){const i=e.nextSibling;e.remove(),e=i}};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */const Nt=(s,t,e)=>{const n=new Map;for(let i=t;i<=e;i++)n.set(s[i],i);return n},ae=Ms(class extends oe{constructor(s){if(super(s),s.type!==re.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,t,e){let n;e===void 0?e=t:t!==void 0&&(n=t);const i=[],r=[];let o=0;for(const l of s)i[o]=n?n(l,o):o,r[o]=e(l,o),o++;return{values:r,keys:i}}render(s,t,e){return this.dt(s,t,e).values}update(s,[t,e,n]){var i;const r=Is(s),{values:o,keys:l}=this.dt(t,e,n);if(!Array.isArray(r))return this.ht=l,o;const a=(i=this.ht)!==null&&i!==void 0?i:this.ht=[],c=[];let p,d,u=0,h=r.length-1,f=0,m=o.length-1;for(;u<=h&&f<=m;)if(r[u]===null)u++;else if(r[h]===null)h--;else if(a[u]===l[f])c[f]=b(r[u],o[f]),u++,f++;else if(a[h]===l[m])c[m]=b(r[h],o[m]),h--,m--;else if(a[u]===l[m])c[m]=b(r[u],o[m]),L(s,c[m+1],r[u]),u++,m--;else if(a[h]===l[f])c[f]=b(r[h],o[f]),L(s,r[u],r[h]),h--,f++;else if(p===void 0&&(p=Nt(l,f,m),d=Nt(a,u,h)),p.has(a[u]))if(p.has(a[h])){const g=d.get(l[f]),F=g!==void 0?r[g]:null;if(F===null){const X=L(s,r[u]);b(X,o[f]),c[f]=X}else c[f]=b(F,o[f]),L(s,r[u],F),r[g]=null;f++}else ot(r[h]),h--;else ot(r[u]),u++;for(;f<=m;){const g=L(s,c[m+1]);b(g,o[f]),c[f++]=g}for(;u<=h;){const g=r[u++];g!==null&&ot(g)}return this.ht=l,Ds(s,c),M}});/**
20
- * @license
21
- * Copyright 2018 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */const v=s=>s!=null?s:_;/**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */class Rt extends oe{constructor(t){if(super(t),this.et=_,t.type!==re.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===_||t==null)return this.ft=void 0,this.et=t;if(t===M)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Rt.directiveName="unsafeHTML",Rt.resultType=1;const y=(s,...t)=>{const e=J("LitStatic");return(e?e.html:Ss)(s,...t)},V=(s,t,e,n,i)=>{const r=J("OpenUI5Enablement");r&&!n&&(s=r.wrapTemplateResultInBusyMarkup(y,i.host,s)),typeof e=="string"?s=y`<style>${e}</style>${s}`:Array.isArray(e)&&e.length&&(s=y`${e.map(o=>y`<link type="text/css" rel="stylesheet" href="${o}">`)}${s}`),Es(s,t,i)},Ps={tag:"ui5-test-generic",properties:{strProp:{type:String},boolProp:{type:Boolean},objectProp:{type:Object},noAttributeProp:{type:String,noAttribute:!0},multiProp:{type:String,multiple:!0},defaultValueProp:{type:String,defaultValue:"Hello"}},managedSlots:!0,slots:{default:{type:Node},other:{type:HTMLElement},individual:{type:HTMLElement,individualSlots:!0},named:{type:HTMLElement,propertyName:"items"}}};class le extends ${static get metadata(){return Ps}static get render(){return V}static get template(){return t=>y`<div><p>
28
- <slot></slot>
29
- <slot name="other"></slot>
30
- <slot name="individual-1"></slot>
31
- <slot name="individual-2"></slot>
32
- </p></div>`}static get styles(){return`:host {
33
- display: inline-block;
34
- border: 1px solid black;
35
- color: var(--var1);
36
- }`}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}le.define();const Ls={tag:"ui5-test-no-shadow"};class Ns extends ${static get metadata(){return Ls}}Ns.define();const Rs={tag:"ui5-test-parent",managedSlots:!0,slots:{default:{type:Node,invalidateOnChildChange:{properties:["prop1"]}},items:{type:HTMLElement,invalidateOnChildChange:{properties:!0}}}};class Os extends ${static get metadata(){return Rs}static get render(){return V}static get template(){return t=>y`<div>
37
- <slot></slot>
38
- </div>`}}Os.define();const Hs={tag:"ui5-test-child",properties:{prop1:{type:String},prop2:{type:String},prop3:{type:String}}};class ks extends ${static get metadata(){return Hs}static get render(){return V}static get template(){return t=>y`<div></div>`}}ks.define();const Bs={tag:"ui5-with-static-area",properties:{staticContent:{type:Boolean}},slots:{}};class Vs extends ${static get metadata(){return Bs}static get render(){return V}static get template(){return t=>y`
39
- <div dir=${t.effectiveDir}>
40
- WithStaticArea works!
41
- </div>`}static get staticAreaTemplate(){return t=>y`
42
- <div class="ui5-with-static-area-content">
43
- Static area content.
44
- </div>`}static get styles(){return`
45
- :host {
46
- display: inline-block;
47
- border: 1px solid black;
48
- color: red;
49
- }`}async addStaticArea(){if(!this.staticContent)return;const t=await this.getStaticAreaItemDomRef();return this.responsivePopover=t.querySelector(".ui5-with-static-area-content"),this.responsivePopover}onBeforeRendering(){this.addStaticArea()}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}}Vs.define();function Fs(s,t,e){return y`<div>Root text: ${v(this.text)}${ae(this.items,(n,i)=>n._id||i,(n,i)=>Us.call(this,s,t,e,n,i))} Root text: ${v(this.text)}</div>`}function Us(s,t,e,n,i){return y`<h3>Item-${i}</h3>${n.text?js.call(this,s,t,e,n,i):void 0}<ul>${ae(n.words,(r,o)=>r._id||o,(r,o)=>Ws.call(this,s,t,e,r,o))}</ul>${n.text?zs.call(this,s,t,e,n,i):void 0}`}function js(s,t,e,n,i){return y`<div class="before-each-content--start--${i}">Root text: ${v(this.text)}, Item text: ${v(n.text)}</div>`}function Ws(s,t,e,n,i){return y`<li><h3>Word-${i}</h3><div class="nested-each-content--${i}--0">Root Text: ${v(this.text)}, Word text: ${v(n.text)}</div><div class="nested-each-content--${i}--1">Root Text: ${v(this.text)}, Word text: ${v(n.text)}</div></li>`}function zs(s,t,e,n,i){return y`<div class="after-each-content--end--${i}">Root text: ${v(this.text)}, Item text: ${v(n.text)}</div>`}class Gs extends ${static get metadata(){return{tag:"ui5-test-complex-template"}}static get render(){return V}static get template(){return Fs}get text(){return"root"}get items(){return[{text:"positives",words:[{text:"word1_good"},{text:"word2_nice"},{text:"word3_kind"}]},{text:"negatives",words:[{text:"word4_bad"},{text:"word5_rude"},{text:"word6_unpolite"}]}]}}Gs.define();const qs={tag:"ui5-test-generic-ext",properties:{extProp:{type:String},strProp:{defaultValue:"Ext"}},slots:{extSlot:{type:HTMLElement}}};class Zs extends le{static get metadata(){return qs}}Zs.define();const Ks={content:":root{ --var1: red; }",packageName:"",fileName:""},Js={content:":root{ --var1: green; }",packageName:"",fileName:""},Xs={content:":root{ --var1: blue; }",packageName:"",fileName:""},Ys={content:":root{ --var1: orange; }",packageName:"",fileName:""},Qs={content:":root{ --var1: orange; }",packageName:"",fileName:""},tn={content:":root{ --var1: yellow; }",packageName:"",fileName:""},en={content:":root{ --var1: yellow; }",packageName:"",fileName:""};w("@ui5/webcomponents-base-test","sap_fiori_3",()=>Ks);w("@ui5/webcomponents-base-test","sap_fiori_3_dark",()=>Js);w("@ui5/webcomponents-base-test","sap_belize",()=>Xs);w("@ui5/webcomponents-base-test","sap_belize_hcb",()=>Ys);w("@ui5/webcomponents-base-test","sap_belize_hcw",()=>Qs);w("@ui5/webcomponents-base-test","sap_fiori_3_hcb",()=>tn);w("@ui5/webcomponents-base-test","sap_fiori_3_hcw",()=>en);const sn=typeof window.chrome=="object"||typeof window.v8=="object"?(s,t)=>(t>2&&40*t>s.length,s):s=>s,nn=/(?:\r\n|\r|\n|^)[ \t\f]*/,rn=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g,on=/(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g,an={"\\f":"\f","\\n":`
50
- `,"\\r":"\r","\\t":" "},ln=s=>{const t={},e=s.split(nn);let n,i,r,o,l,a,c,p;const d=u=>{o?(o=`${o}${u}`,p++):(o=u,p=0)};for(l=0;l<e.length;l++)if(n=e[l],!(n===""||n.charAt(0)==="#"||n.charAt(0)==="!")){for(i=rn,c=0,i.lastIndex=c,r=null,o="",a=i.exec(n);a!==null;){if(c<a.index&&d(n.slice(c,a.index)),c=i.lastIndex,a[1]){if(a[1].length!==6)throw new Error(`Incomplete Unicode Escape '${a[1]}'`);d(String.fromCharCode(parseInt(a[1].slice(2),16)))}else a[2]?d(an[a[2]]||a[2].slice(1)):a[3]?(n=e[++l],c=0,i.lastIndex=c):a[4]&&(r=o,o="",i=on,i.lastIndex=c);a=i.exec(n)}c<n.length&&d(n.slice(c)),r==null&&(r=o,o=""),t[r]=sn(o,o?p:0)}return t};let at;const cn=()=>(at===void 0&&(at=Me()),at);var pt;(function(s){s.Gregorian="Gregorian",s.Islamic="Islamic",s.Japanese="Japanese",s.Buddhist="Buddhist",s.Persian="Persian"})(pt||(pt={}));const Ot=pt;let N;const dn=()=>(N===void 0&&(N=Te()),N&&N in Ot?N:Ot.Gregorian);let lt;class ce{static getLegacyDateCalendarCustomizing(){return lt===void 0&&(lt=Ft()),lt.legacyDateCalendarCustomizing||[]}}xe("LegacyDateFormats",ce);let ct;const un=()=>(ct===void 0&&(ct=Ft()),ct.firstDayOfWeek),hn=J("LegacyDateFormats"),pn=hn?ce.getLegacyDateCalendarCustomizing:()=>[],fn=new K,gn="directionChange",mn=()=>fn.fireEvent(gn,void 0),_n=async()=>{const s=mn();await Promise.all(s),await Ht({rtlAware:!0})};window.registerThemePropertiesLoader=w;window["sap-ui-webcomponents-bundle"]={configuration:{getAnimationMode:cn,getLanguage:Bt,setLanguage:De,getTheme:Ie,getThemeRoot:Pe,setThemeRoot:Le,setTheme:Ne,getNoConflict:mt,setNoConflict:ms,getCalendarType:dn,getRTL:qt,getFirstDayOfWeek:un,getLegacyDateCalendarCustomizing:pn},getCurrentRuntimeIndex:ft,getIconNames:Re,parseProperties:ln,registerI18nLoader:Oe,getI18nBundle:Fe,renderFinished:Vt,applyDirection:_n,EventProvider:K};
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconCollectionsAlias.js","sourceRoot":"","sources":["../../src/assets-meta/IconCollectionsAlias.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,IAAK,oBAKJ;AALD,WAAK,oBAAoB;IACxB,kDAA4B,CAAA;IAC5B,gDAA0B,CAAA;IAC1B,6CAAuB,CAAA;IACvB,oEAA8C,CAAA;AAC/C,CAAC,EALI,oBAAoB,KAApB,oBAAoB,QAKxB;AAED;;;;;;;;;;GAUG;AACH,MAAM,wBAAwB,GAAG,CAAC,cAAsB,EAAE,EAAE;IAC3D,IAAI,oBAAoB,CAAC,cAAmD,CAAC,EAAE;QAC9E,OAAO,oBAAoB,CAAC,cAAmD,CAAC,CAAC;KACjF;IAED,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC;AACpC,OAAO,EACN,wBAAwB,GACxB,CAAC","sourcesContent":["/**\n * Supported icon collection aliases.\n *\n * Users might specify a collection, using both the key and the value in the following key-value pairs,\n * e.g the following pairs are completely exchangeable:\n *\n * - \"SAP-icons/accept\" and \"SAP-icons-v4/accept\"\n * - \"horizon/accept\" and \"SAP-icons-v5/accept\"\n * - \"SAP-icons-TNT/actor\" and \"tnt/actor\"\n * - \"BusinessSuiteInAppSymbols/3d\" and \"business-suite/3d\"\n */\nenum IconCollectionsAlias {\n\t\"SAP-icons\" = \"SAP-icons-v4\",\n\t\"horizon\" = \"SAP-icons-v5\",\n\t\"SAP-icons-TNT\" = \"tnt\",\n\t\"BusinessSuiteInAppSymbols\" = \"business-suite\",\n}\n\n/**\n * Returns the mapped collection name for a given alias.\n *\n * <b>For example</b>:\n * - \"SAP-icons-TNT\"resolves to \"tnt\"\n * - \"BusinessSuiteInAppSymbols\" resolves to \"business-suite\"\n * - \"horizon\" resolves to \"SAP-icons-v5\"\n *\n * @param { string } collectionName\n * @return { string } the normalized collection name\n */\nconst getIconCollectionByAlias = (collectionName: string) => {\n\tif (IconCollectionsAlias[collectionName as keyof typeof IconCollectionsAlias]) {\n\t\treturn IconCollectionsAlias[collectionName as keyof typeof IconCollectionsAlias];\n\t}\n\n\treturn collectionName;\n};\n\nexport default IconCollectionsAlias;\nexport {\n\tgetIconCollectionByAlias,\n};\n"]}
@@ -1,7 +0,0 @@
1
- /**
2
- * Gets the effective RTL setting by first checking the configuration
3
- * and if not set using the currently set language or the navigator language if the language is not explicitly set.
4
- * @returns {boolean} whether RTL should be used
5
- */
6
- declare const getRTL: () => boolean;
7
- export { getRTL };
@@ -1,37 +0,0 @@
1
- import { getRTL as getConfiguredRTL } from "../InitialConfiguration.js";
2
- import { getLanguage } from "./Language.js";
3
- import getDesigntimePropertyAsArray from "../util/getDesigntimePropertyAsArray.js";
4
- import detectNavigatorLanguage from "../util/detectNavigatorLanguage.js";
5
- const M_ISO639_OLD_TO_NEW = {
6
- "iw": "he",
7
- "ji": "yi",
8
- "in": "id",
9
- "sh": "sr",
10
- };
11
- const A_RTL_LOCALES = getDesigntimePropertyAsArray("$cldr-rtl-locales:ar,fa,he$") || [];
12
- /**
13
- * Checks whether the language is using RTL
14
- * @param {string} language
15
- * @returns {boolean} whether the language is using RTL
16
- */
17
- const impliesRTL = (language) => {
18
- language = (language && M_ISO639_OLD_TO_NEW[language]) || language;
19
- return A_RTL_LOCALES.indexOf(language) >= 0;
20
- };
21
- /**
22
- * Gets the effective RTL setting by first checking the configuration
23
- * and if not set using the currently set language or the navigator language if the language is not explicitly set.
24
- * @returns {boolean} whether RTL should be used
25
- */
26
- const getRTL = () => {
27
- if (typeof document === "undefined") {
28
- return false;
29
- }
30
- const configurationRTL = getConfiguredRTL();
31
- if (configurationRTL !== undefined) {
32
- return !!configurationRTL;
33
- }
34
- return impliesRTL(getLanguage() || detectNavigatorLanguage());
35
- };
36
- export { getRTL }; // eslint-disable-line
37
- //# sourceMappingURL=RTL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTL.js","sourceRoot":"","sources":["../../src/config/RTL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,4BAA4B,MAAM,yCAAyC,CAAC;AACnF,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AAEzE,MAAM,mBAAmB,GAAG;IAC3B,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACV,CAAC;AAEF,MAAM,aAAa,GAAG,4BAA4B,CAAC,6BAA6B,CAAC,IAAI,EAAE,CAAC;AAExF;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAE,EAAE;IACvC,QAAQ,GAAG,CAAC,QAAQ,IAAI,mBAAmB,CAAC,QAA4C,CAAC,CAAC,IAAI,QAAQ,CAAC;IAEvG,OAAO,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,GAAG,GAAY,EAAE;IAC5B,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACpC,OAAO,KAAK,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAE5C,IAAI,gBAAgB,KAAK,SAAS,EAAE;QACnC,OAAO,CAAC,CAAC,gBAAgB,CAAC;KAC1B;IAED,OAAO,UAAU,CAAC,WAAW,EAAE,IAAI,uBAAuB,EAAE,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,sBAAsB","sourcesContent":["import { getRTL as getConfiguredRTL } from \"../InitialConfiguration.js\";\nimport { getLanguage } from \"./Language.js\";\nimport getDesigntimePropertyAsArray from \"../util/getDesigntimePropertyAsArray.js\";\nimport detectNavigatorLanguage from \"../util/detectNavigatorLanguage.js\";\n\nconst M_ISO639_OLD_TO_NEW = {\n\t\"iw\": \"he\",\n\t\"ji\": \"yi\",\n\t\"in\": \"id\",\n\t\"sh\": \"sr\",\n};\n\nconst A_RTL_LOCALES = getDesigntimePropertyAsArray(\"$cldr-rtl-locales:ar,fa,he$\") || [];\n\n/**\n * Checks whether the language is using RTL\n * @param {string} language\n * @returns {boolean} whether the language is using RTL\n */\nconst impliesRTL = (language: string) => {\n\tlanguage = (language && M_ISO639_OLD_TO_NEW[language as keyof typeof M_ISO639_OLD_TO_NEW]) || language;\n\n\treturn A_RTL_LOCALES.indexOf(language) >= 0;\n};\n\n/**\n * Gets the effective RTL setting by first checking the configuration\n * and if not set using the currently set language or the navigator language if the language is not explicitly set.\n * @returns {boolean} whether RTL should be used\n */\nconst getRTL = (): boolean => {\n\tif (typeof document === \"undefined\") {\n\t\treturn false;\n\t}\n\n\tconst configurationRTL = getConfiguredRTL();\n\n\tif (configurationRTL !== undefined) {\n\t\treturn !!configurationRTL;\n\t}\n\n\treturn impliesRTL(getLanguage() || detectNavigatorLanguage());\n};\n\nexport { getRTL }; // eslint-disable-line\n"]}
@@ -1,3 +0,0 @@
1
- import type UI5Element from "../UI5Element.js";
2
- declare const getEffectiveLinksHrefs: (ElementClass: typeof UI5Element, forStaticArea?: boolean) => string[] | undefined;
3
- export default getEffectiveLinksHrefs;
@@ -1,17 +0,0 @@
1
- import { getUrl } from "../CSP.js";
2
- import { getFeature } from "../FeaturesRegistry.js";
3
- const MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers
4
- const getEffectiveLinksHrefs = (ElementClass, forStaticArea = false) => {
5
- const stylesData = ElementClass[forStaticArea ? "staticAreaStyles" : "styles"];
6
- if (!stylesData) {
7
- return;
8
- }
9
- const stylesDataArray = Array.isArray(stylesData) ? stylesData : [stylesData];
10
- const openUI5Enablement = getFeature("OpenUI5Enablement");
11
- if (openUI5Enablement) {
12
- stylesDataArray.push(openUI5Enablement.getBusyIndicatorStyles());
13
- }
14
- return stylesDataArray.flat(MAX_DEPTH_INHERITED_CLASSES).filter(data => !!data).map(data => getUrl(data.packageName, data.fileName));
15
- };
16
- export default getEffectiveLinksHrefs;
17
- //# sourceMappingURL=getEffectiveLinksHrefs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEffectiveLinksHrefs.js","sourceRoot":"","sources":["../../src/theming/getEffectiveLinksHrefs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKpD,MAAM,2BAA2B,GAAG,EAAE,CAAC,CAAC,sDAAsD;AAE9F,MAAM,sBAAsB,GAAG,CAAC,YAA+B,EAAE,aAAa,GAAG,KAAK,EAAE,EAAE;IACzF,MAAM,UAAU,GAAwB,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEpG,IAAI,CAAC,UAAU,EAAE;QAChB,OAAO;KACP;IAED,MAAM,eAAe,GAAwB,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAEnG,MAAM,iBAAiB,GAAG,UAAU,CAA2B,mBAAmB,CAAC,CAAC;IACpF,IAAI,iBAAiB,EAAE;QACtB,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;KACjE;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAE,IAAqB,CAAC,WAAW,EAAG,IAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC1K,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC","sourcesContent":["import { getUrl } from \"../CSP.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type UI5Element from \"../UI5Element.js\";\nimport type OpenUI5Enablement from \"../features/OpenUI5Enablement.js\";\nimport type { ComponentStylesData, StyleDataCSP } from \"../types.js\";\n\nconst MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers\n\nconst getEffectiveLinksHrefs = (ElementClass: typeof UI5Element, forStaticArea = false) => {\n\tconst stylesData: ComponentStylesData = ElementClass[forStaticArea ? \"staticAreaStyles\" : \"styles\"];\n\n\tif (!stylesData) {\n\t\treturn;\n\t}\n\n\tconst stylesDataArray: ComponentStylesData = Array.isArray(stylesData) ? stylesData : [stylesData];\n\n\tconst openUI5Enablement = getFeature<typeof OpenUI5Enablement>(\"OpenUI5Enablement\");\n\tif (openUI5Enablement) {\n\t\tstylesDataArray.push(openUI5Enablement.getBusyIndicatorStyles());\n\t}\n\n\treturn stylesDataArray.flat(MAX_DEPTH_INHERITED_CLASSES).filter(data => !!data).map(data => getUrl((data as StyleDataCSP).packageName, (data as StyleDataCSP).fileName));\n};\n\nexport default getEffectiveLinksHrefs;\n"]}
@@ -1,3 +0,0 @@
1
- import type UI5Element from "../UI5Element.js";
2
- declare const preloadLinks: (ElementClass: typeof UI5Element) => void;
3
- export default preloadLinks;
@@ -1,19 +0,0 @@
1
- import getEffectiveLinksHrefs from "./getEffectiveLinksHrefs.js";
2
- import createLinkInHead from "../util/createLinkInHead.js";
3
- import { shouldUseLinks, shouldPreloadLinks } from "../CSP.js";
4
- const preloaded = new Set();
5
- const preloadLinks = (ElementClass) => {
6
- if (!shouldUseLinks() || !shouldPreloadLinks()) {
7
- return;
8
- }
9
- const linksHrefs = getEffectiveLinksHrefs(ElementClass, false) || [];
10
- const staticAreaLinksHrefs = getEffectiveLinksHrefs(ElementClass, true) || [];
11
- [...linksHrefs, ...staticAreaLinksHrefs].forEach(href => {
12
- if (!preloaded.has(href)) {
13
- createLinkInHead(href, { rel: "preload", as: "style" });
14
- preloaded.add(href);
15
- }
16
- });
17
- };
18
- export default preloadLinks;
19
- //# sourceMappingURL=preloadLinks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preloadLinks.js","sourceRoot":"","sources":["../../src/theming/preloadLinks.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAG/D,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;AAEpC,MAAM,YAAY,GAAG,CAAC,YAA+B,EAAE,EAAE;IACxD,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,kBAAkB,EAAE,EAAE;QAC/C,OAAO;KACP;IAED,MAAM,UAAU,GAAG,sBAAsB,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IACrE,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAE9E,CAAC,GAAG,UAAU,EAAE,GAAG,oBAAoB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACzB,gBAAgB,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;YACxD,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SACpB;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import getEffectiveLinksHrefs from \"./getEffectiveLinksHrefs.js\";\nimport createLinkInHead from \"../util/createLinkInHead.js\";\nimport { shouldUseLinks, shouldPreloadLinks } from \"../CSP.js\";\nimport type UI5Element from \"../UI5Element.js\";\n\nconst preloaded = new Set<string>();\n\nconst preloadLinks = (ElementClass: typeof UI5Element) => {\n\tif (!shouldUseLinks() || !shouldPreloadLinks()) {\n\t\treturn;\n\t}\n\n\tconst linksHrefs = getEffectiveLinksHrefs(ElementClass, false) || [];\n\tconst staticAreaLinksHrefs = getEffectiveLinksHrefs(ElementClass, true) || [];\n\n\t[...linksHrefs, ...staticAreaLinksHrefs].forEach(href => {\n\t\tif (!preloaded.has(href)) {\n\t\t\tcreateLinkInHead(href, { rel: \"preload\", as: \"style\" });\n\t\t\tpreloaded.add(href);\n\t\t}\n\t});\n};\n\nexport default preloadLinks;\n"]}
@@ -1,8 +0,0 @@
1
- /**
2
- * Creates a <style> tag in the <head> tag
3
- * @param cssText - the CSS
4
- * @param attributes - optional attributes to add to the tag
5
- * @returns {HTMLElement}
6
- */
7
- declare const createStyleInHead: (cssText: string, attributes?: Record<string, string>) => HTMLStyleElement;
8
- export default createStyleInHead;
@@ -1,18 +0,0 @@
1
- /**
2
- * Creates a <style> tag in the <head> tag
3
- * @param cssText - the CSS
4
- * @param attributes - optional attributes to add to the tag
5
- * @returns {HTMLElement}
6
- */
7
- const createStyleInHead = (cssText, attributes) => {
8
- const style = document.createElement("style");
9
- style.type = "text/css";
10
- if (attributes) {
11
- Object.entries(attributes).forEach(pair => style.setAttribute(...pair));
12
- }
13
- style.textContent = cssText;
14
- document.head.appendChild(style);
15
- return style;
16
- };
17
- export default createStyleInHead;
18
- //# sourceMappingURL=createStyleInHead.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createStyleInHead.js","sourceRoot":"","sources":["../../src/util/createStyleInHead.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAAE,UAAmC,EAAE,EAAE;IAClF,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;IAExB,IAAI,UAAU,EAAE;QACf,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;KACxE;IAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["/**\n * Creates a <style> tag in the <head> tag\n * @param cssText - the CSS\n * @param attributes - optional attributes to add to the tag\n * @returns {HTMLElement}\n */\nconst createStyleInHead = (cssText: string, attributes?: Record<string, string>) => {\n\tconst style = document.createElement(\"style\");\n\tstyle.type = \"text/css\";\n\n\tif (attributes) {\n\t\tObject.entries(attributes).forEach(pair => style.setAttribute(...pair));\n\t}\n\n\tstyle.textContent = cssText;\n\tdocument.head.appendChild(style);\n\treturn style;\n};\n\nexport default createStyleInHead;\n"]}
@@ -1,27 +0,0 @@
1
- import fs from "fs/promises";
2
- import assets from "@ui5/webcomponents-tools/assets-meta.js";
3
-
4
- const fileContent = `const assetParameters = ${JSON.stringify(assets)};
5
-
6
- const DEFAULT_THEME = assetParameters.themes.default;
7
- const SUPPORTED_THEMES = assetParameters.themes.all;
8
- const DEFAULT_LANGUAGE = assetParameters.languages.default;
9
- const DEFAULT_LOCALE = assetParameters.locales.default;
10
- const SUPPORTED_LOCALES = assetParameters.locales.all;
11
-
12
- export {
13
- DEFAULT_THEME,
14
- SUPPORTED_THEMES,
15
- DEFAULT_LANGUAGE,
16
- DEFAULT_LOCALE,
17
- SUPPORTED_LOCALES,
18
- };`;
19
-
20
- const generate = async () => {
21
- await fs.mkdir("dist/generated/", { recursive: true });
22
- return fs.writeFile("dist/generated/AssetParameters.js", fileContent);
23
- }
24
-
25
- generate().then(() => {
26
- console.log("Assets parameters generated.");
27
- });
@@ -1,31 +0,0 @@
1
- import fs from 'fs/promises';
2
- import path from "path";
3
- import CleanCSS from "clean-css";
4
-
5
- const generate = async () => {
6
- await fs.mkdir("src/generated/css/", {recursive: true});
7
-
8
- const files = (await fs.readdir("src/css/")).filter(file => file.endsWith(".css"));
9
- const filesPromises = files.map(async file => {
10
- let content = await fs.readFile(path.join("src/css/", file));
11
- const res = new CleanCSS().minify(`${content}`);
12
- content = `import type { StyleData } from "../../types.js";
13
-
14
- const styleData: StyleData = {
15
- packageName: "@ui5/webcomponents-base",
16
- fileName: "${file}",
17
- content: \`${res.styles}\`,
18
- };
19
-
20
- export default styleData;
21
- `;
22
-
23
- return fs.writeFile(path.join("src/generated/css/", `${file}.ts`), content);
24
- });
25
-
26
- return Promise.all(filesPromises);
27
- };
28
-
29
- generate().then(() => {
30
- console.log("Styles files generated.");
31
- });
@@ -1,32 +0,0 @@
1
- import fs from "fs/promises";
2
-
3
- const generate = async () => {
4
- const version = JSON.parse(await fs.readFile("package.json")).version;
5
-
6
- // Parse version
7
- const matches = version.match(/^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/);
8
- if (!matches) {
9
- throw new Error("Unsupported version format");
10
- }
11
-
12
- const isNext = version.match(/[a-f0-9]{9}$/);
13
- const buildTime = Math.floor(new Date().getTime() / 1000);
14
-
15
- const fileContent = `const VersionInfo = {
16
- version: "${version}",
17
- major: ${matches[1]},
18
- minor: ${matches[2]},
19
- patch: ${matches[3]},
20
- suffix: "${matches[4]}",
21
- isNext: ${isNext ? "true" : "false"},
22
- buildTime: ${buildTime},
23
- };
24
- export default VersionInfo;`;
25
-
26
- await fs.mkdir("dist/generated/", { recursive: true });
27
- await fs.writeFile("dist/generated/VersionInfo.js", fileContent);
28
- }
29
-
30
- generate().then(() => {
31
- console.log("Version info file generated.");
32
- });
@@ -1,72 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * This is the original style-map.js directive from lit-html 2 with the only difference that "render" is not called even for the first rendering (update is used instead)
9
- */
10
-
11
- import { noChange } from 'lit-html';
12
- import { directive, Directive, PartType, } from 'lit-html/directive.js';
13
- class StyleMapDirective extends Directive {
14
- constructor(partInfo) {
15
- var _a;
16
- super(partInfo);
17
- if (partInfo.type !== PartType.ATTRIBUTE ||
18
- partInfo.name !== 'style' ||
19
- ((_a = partInfo.strings) === null || _a === void 0 ? void 0 : _a.length) > 2) {
20
- throw new Error('The `styleMap` directive must be used in the `style` attribute ' +
21
- 'and must be the only part in the attribute.');
22
- }
23
- }
24
- render(styleInfo) {
25
- return "";
26
- }
27
- update(part, [styleInfo]) {
28
- const { style } = part.element;
29
- if (this._previousStyleProperties === undefined) {
30
- this._previousStyleProperties = new Set();
31
- for (const name in styleInfo) {
32
- this._previousStyleProperties.add(name);
33
- }
34
- // return this.render(styleInfo);
35
- }
36
- // Remove old properties that no longer exist in styleInfo
37
- // We use forEach() instead of for-of so that re don't require down-level
38
- // iteration.
39
- this._previousStyleProperties.forEach((name) => {
40
- // If the name isn't in styleInfo or it's null/undefined
41
- if (styleInfo[name] == null) {
42
- this._previousStyleProperties.delete(name);
43
- if (name.includes('-')) {
44
- style.removeProperty(name);
45
- }
46
- else {
47
- // Note reset using empty string (vs null) as IE11 does not always
48
- // reset via null (https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style#setting_styles)
49
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
- style[name] = '';
51
- }
52
- }
53
- });
54
- // Add or update properties
55
- for (const name in styleInfo) {
56
- const value = styleInfo[name];
57
- if (value != null) {
58
- this._previousStyleProperties.add(name);
59
- if (name.includes('-')) {
60
- style.setProperty(name, value);
61
- }
62
- else {
63
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
64
- style[name] = value;
65
- }
66
- }
67
- }
68
- return noChange;
69
- }
70
- }
71
-
72
- export const styleMap = directive(StyleMapDirective);
package/used-modules.txt DELETED
@@ -1,10 +0,0 @@
1
- # Needed files from OpenUI5
2
-
3
- sap/base/util/now.js
4
- sap/base/Log.js
5
- sap/base/assert.js
6
- sap/base/security/URLListValidator.js
7
- sap/base/security/sanitizeHTML.js
8
- sap/base/strings/toHex.js
9
- sap/base/security/encodeXML.js
10
- sap/base/security/encodeCSS.js