@openui5/sap.f 1.144.0 → 1.146.0

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 (399) hide show
  1. package/REUSE.toml +40 -16
  2. package/THIRDPARTY.txt +28 -7
  3. package/package.json +10 -10
  4. package/src/sap/f/.library +8 -8
  5. package/src/sap/f/Avatar.js +1 -1
  6. package/src/sap/f/AvatarGroup.js +8 -2
  7. package/src/sap/f/AvatarGroupItem.js +1 -1
  8. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  9. package/src/sap/f/CalendarInCard.js +1 -1
  10. package/src/sap/f/Card.js +1 -1
  11. package/src/sap/f/CardBase.js +3 -3
  12. package/src/sap/f/DynamicPage.js +1 -1
  13. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  14. package/src/sap/f/DynamicPageHeader.js +1 -1
  15. package/src/sap/f/DynamicPageTitle.js +1 -1
  16. package/src/sap/f/FlexibleColumnLayout.js +8 -2
  17. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  18. package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
  19. package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
  20. package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
  21. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  22. package/src/sap/f/GridContainer.js +1 -1
  23. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  24. package/src/sap/f/GridContainerSettings.js +2 -2
  25. package/src/sap/f/GridList.js +1 -1
  26. package/src/sap/f/GridListItem.js +1 -1
  27. package/src/sap/f/IllustratedMessage.js +1 -1
  28. package/src/sap/f/Illustration.js +1 -1
  29. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  30. package/src/sap/f/ProductSwitch.js +1 -1
  31. package/src/sap/f/ProductSwitchItem.js +1 -1
  32. package/src/sap/f/SearchManager.js +1 -1
  33. package/src/sap/f/ShellBar.js +1 -1
  34. package/src/sap/f/SidePanel.js +5 -1
  35. package/src/sap/f/SidePanelItem.js +7 -1
  36. package/src/sap/f/SidePanelRenderer.js +1 -1
  37. package/src/sap/f/cards/BaseHeader.js +39 -26
  38. package/src/sap/f/cards/Header.js +7 -7
  39. package/src/sap/f/cards/NumericHeader.js +22 -23
  40. package/src/sap/f/cards/NumericIndicators.js +1 -2
  41. package/src/sap/f/cards/NumericSideIndicator.js +2 -3
  42. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  43. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  44. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  45. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  46. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  47. package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
  48. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  49. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  50. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  51. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  52. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  53. package/src/sap/f/dnd/GridDragOver.js +1 -1
  54. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  55. package/src/sap/f/gen/ui5/webcomponents/dist/Avatar.js +2 -246
  56. package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +2 -349
  57. package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +2 -126
  58. package/src/sap/f/gen/ui5/webcomponents/dist/ListItem.js +2 -141
  59. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemBase.js +2 -60
  60. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +2 -208
  61. package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +2 -283
  62. package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +2 -357
  63. package/src/sap/f/gen/ui5/webcomponents.js +2 -3155
  64. package/src/sap/f/gen/ui5/webcomponents_base.js +2 -600
  65. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +2 -214
  66. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +2 -203
  67. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +2 -167
  68. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +2 -248
  69. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItemBase.js +2 -86
  70. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +2 -254
  71. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +2 -128
  72. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +2 -56
  73. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +2 -87
  74. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +2 -75
  75. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +2 -80
  76. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +2 -669
  77. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +2 -123
  78. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +2 -140
  79. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +2 -236
  80. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +2 -72
  81. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +2 -282
  82. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +2 -134
  83. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +2 -79
  84. package/src/sap/f/gen/ui5/webcomponents_fiori.js +2 -1859
  85. package/src/sap/f/library.js +3 -4
  86. package/src/sap/f/routing/Target.js +2 -2
  87. package/src/sap/f/semantic/AddAction.js +1 -1
  88. package/src/sap/f/semantic/CloseAction.js +1 -1
  89. package/src/sap/f/semantic/CopyAction.js +1 -1
  90. package/src/sap/f/semantic/DeleteAction.js +1 -1
  91. package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
  92. package/src/sap/f/semantic/EditAction.js +1 -1
  93. package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
  94. package/src/sap/f/semantic/FavoriteAction.js +1 -1
  95. package/src/sap/f/semantic/FlagAction.js +1 -1
  96. package/src/sap/f/semantic/FooterMainAction.js +1 -1
  97. package/src/sap/f/semantic/FullScreenAction.js +1 -1
  98. package/src/sap/f/semantic/MainAction.js +1 -1
  99. package/src/sap/f/semantic/MessagesIndicator.js +1 -1
  100. package/src/sap/f/semantic/NegativeAction.js +1 -1
  101. package/src/sap/f/semantic/PositiveAction.js +1 -1
  102. package/src/sap/f/semantic/PrintAction.js +1 -1
  103. package/src/sap/f/semantic/SemanticButton.js +1 -1
  104. package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
  105. package/src/sap/f/semantic/SemanticControl.js +1 -1
  106. package/src/sap/f/semantic/SemanticPage.js +1 -1
  107. package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
  108. package/src/sap/f/semantic/SendEmailAction.js +1 -1
  109. package/src/sap/f/semantic/SendMessageAction.js +1 -1
  110. package/src/sap/f/semantic/ShareInJamAction.js +1 -1
  111. package/src/sap/f/semantic/TitleMainAction.js +1 -1
  112. package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
  113. package/src/sap/f/shellBar/CoPilot.js +1 -1
  114. package/src/sap/f/shellBar/ControlSpacer.js +1 -1
  115. package/src/sap/f/shellBar/Search.js +1 -1
  116. package/src/sap/f/themes/base/AvatarGroup.less +2 -2
  117. package/src/sap/f/themes/base/GridList.less +1 -1
  118. package/src/sap/f/thirdparty/AccessibilityTextsHelper.js +2 -13
  119. package/src/sap/f/thirdparty/Avatar.js +2 -453
  120. package/src/sap/f/thirdparty/BusyIndicator.js +2 -233
  121. package/src/sap/f/thirdparty/Button.js +2 -7
  122. package/src/sap/f/thirdparty/Button2.js +2 -656
  123. package/src/sap/f/thirdparty/FocusableElements.js +2 -10
  124. package/src/sap/f/thirdparty/Icon.js +2 -313
  125. package/src/sap/f/thirdparty/Icons.js +2 -234
  126. package/src/sap/f/thirdparty/IllustratedMessage.js +2 -1297
  127. package/src/sap/f/thirdparty/Illustrations.js +2 -0
  128. package/src/sap/f/thirdparty/Label.js +2 -115
  129. package/src/sap/f/thirdparty/Link.js +2 -316
  130. package/src/sap/f/thirdparty/List.js +2 -1253
  131. package/src/sap/f/thirdparty/ListBoxItemGroupTemplate.js +2 -14
  132. package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +2 -10
  133. package/src/sap/f/thirdparty/ListItemBase.js +2 -251
  134. package/src/sap/f/thirdparty/ListItemGroup.js +2 -637
  135. package/src/sap/f/thirdparty/Menu.js +2 -389
  136. package/src/sap/f/thirdparty/MenuItem.js +2 -10
  137. package/src/sap/f/thirdparty/MenuItem2.js +2 -762
  138. package/src/sap/f/thirdparty/NotificationList.js +2 -291
  139. package/src/sap/f/thirdparty/NotificationListGroupItem.js +2 -310
  140. package/src/sap/f/thirdparty/NotificationListItem.js +2 -534
  141. package/src/sap/f/thirdparty/NotificationListItemBase.js +2 -98
  142. package/src/sap/f/thirdparty/ResponsivePopover.js +2 -2312
  143. package/src/sap/f/thirdparty/SearchItem.css.js +2 -10
  144. package/src/sap/f/thirdparty/SearchItem.js +2 -152
  145. package/src/sap/f/thirdparty/SearchItemGroup.js +2 -44
  146. package/src/sap/f/thirdparty/SearchItemShowMore.js +2 -86
  147. package/src/sap/f/thirdparty/SearchMessageArea.js +2 -49
  148. package/src/sap/f/thirdparty/SearchScope.js +2 -39
  149. package/src/sap/f/thirdparty/ShellBar.js +2 -1809
  150. package/src/sap/f/thirdparty/ShellBarBranding.js +2 -119
  151. package/src/sap/f/thirdparty/ShellBarItem.js +2 -89
  152. package/src/sap/f/thirdparty/ShellBarSearch.js +2 -7
  153. package/src/sap/f/thirdparty/ShellBarSearch2.js +2 -3453
  154. package/src/sap/f/thirdparty/ShellBarSpacer.js +2 -40
  155. package/src/sap/f/thirdparty/Tag.js +2 -302
  156. package/src/sap/f/thirdparty/Text.js +2 -127
  157. package/src/sap/f/thirdparty/Theme.js +2 -0
  158. package/src/sap/f/thirdparty/Title.js +2 -167
  159. package/src/sap/f/thirdparty/UserMenu.js +2 -950
  160. package/src/sap/f/thirdparty/UserMenuAccount.js +2 -114
  161. package/src/sap/f/thirdparty/UserMenuItem.js +2 -61
  162. package/src/sap/f/thirdparty/ValueState.js +2 -7
  163. package/src/sap/f/thirdparty/WrappingType.js +2 -24
  164. package/src/sap/f/thirdparty/_dynamics/InputComposition.js +2 -35
  165. package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +2 -397
  166. package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +2 -193
  167. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT.js +2 -585
  168. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT2.js +2 -585
  169. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite.js +2 -1194
  170. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite2.js +2 -1194
  171. package/src/sap/f/thirdparty/_dynamics/SAP-icons.js +2 -2509
  172. package/src/sap/f/thirdparty/_dynamics/SAP-icons2.js +2 -2509
  173. package/src/sap/f/thirdparty/_dynamics/ar.js +2 -0
  174. package/src/sap/f/thirdparty/_dynamics/ar_EG.js +2 -0
  175. package/src/sap/f/thirdparty/_dynamics/ar_SA.js +2 -0
  176. package/src/sap/f/thirdparty/_dynamics/bg.js +2 -0
  177. package/src/sap/f/thirdparty/_dynamics/ca.js +2 -0
  178. package/src/sap/f/thirdparty/_dynamics/cnr.js +2 -0
  179. package/src/sap/f/thirdparty/_dynamics/cs.js +2 -0
  180. package/src/sap/f/thirdparty/_dynamics/da.js +2 -0
  181. package/src/sap/f/thirdparty/_dynamics/de.js +2 -0
  182. package/src/sap/f/thirdparty/_dynamics/de_AT.js +2 -0
  183. package/src/sap/f/thirdparty/_dynamics/de_CH.js +2 -0
  184. package/src/sap/f/thirdparty/_dynamics/el.js +2 -0
  185. package/src/sap/f/thirdparty/_dynamics/el_CY.js +2 -0
  186. package/src/sap/f/thirdparty/_dynamics/en.js +2 -0
  187. package/src/sap/f/thirdparty/_dynamics/en_AU.js +2 -0
  188. package/src/sap/f/thirdparty/_dynamics/en_GB.js +2 -0
  189. package/src/sap/f/thirdparty/_dynamics/en_HK.js +2 -0
  190. package/src/sap/f/thirdparty/_dynamics/en_IE.js +2 -0
  191. package/src/sap/f/thirdparty/_dynamics/en_IN.js +2 -0
  192. package/src/sap/f/thirdparty/_dynamics/en_NZ.js +2 -0
  193. package/src/sap/f/thirdparty/_dynamics/en_PG.js +2 -0
  194. package/src/sap/f/thirdparty/_dynamics/en_SG.js +2 -0
  195. package/src/sap/f/thirdparty/_dynamics/en_ZA.js +2 -0
  196. package/src/sap/f/thirdparty/_dynamics/es.js +2 -0
  197. package/src/sap/f/thirdparty/_dynamics/es_AR.js +2 -0
  198. package/src/sap/f/thirdparty/_dynamics/es_BO.js +2 -0
  199. package/src/sap/f/thirdparty/_dynamics/es_CL.js +2 -0
  200. package/src/sap/f/thirdparty/_dynamics/es_CO.js +2 -0
  201. package/src/sap/f/thirdparty/_dynamics/es_MX.js +2 -0
  202. package/src/sap/f/thirdparty/_dynamics/es_PE.js +2 -0
  203. package/src/sap/f/thirdparty/_dynamics/es_UY.js +2 -0
  204. package/src/sap/f/thirdparty/_dynamics/es_VE.js +2 -0
  205. package/src/sap/f/thirdparty/_dynamics/et.js +2 -0
  206. package/src/sap/f/thirdparty/_dynamics/fa.js +2 -0
  207. package/src/sap/f/thirdparty/_dynamics/fi.js +2 -0
  208. package/src/sap/f/thirdparty/_dynamics/fr.js +2 -0
  209. package/src/sap/f/thirdparty/_dynamics/fr_BE.js +2 -0
  210. package/src/sap/f/thirdparty/_dynamics/fr_CA.js +2 -0
  211. package/src/sap/f/thirdparty/_dynamics/fr_CH.js +2 -0
  212. package/src/sap/f/thirdparty/_dynamics/fr_LU.js +2 -0
  213. package/src/sap/f/thirdparty/_dynamics/he.js +2 -0
  214. package/src/sap/f/thirdparty/_dynamics/hi.js +2 -0
  215. package/src/sap/f/thirdparty/_dynamics/hr.js +2 -0
  216. package/src/sap/f/thirdparty/_dynamics/hu.js +2 -0
  217. package/src/sap/f/thirdparty/_dynamics/id.js +2 -0
  218. package/src/sap/f/thirdparty/_dynamics/it.js +2 -0
  219. package/src/sap/f/thirdparty/_dynamics/it_CH.js +2 -0
  220. package/src/sap/f/thirdparty/_dynamics/ja.js +2 -0
  221. package/src/sap/f/thirdparty/_dynamics/kk.js +2 -0
  222. package/src/sap/f/thirdparty/_dynamics/ko.js +2 -0
  223. package/src/sap/f/thirdparty/_dynamics/lt.js +2 -0
  224. package/src/sap/f/thirdparty/_dynamics/lv.js +2 -0
  225. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar.js +2 -866
  226. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar2.js +2 -611
  227. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg.js +2 -866
  228. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg2.js +2 -611
  229. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca.js +2 -866
  230. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca2.js +2 -611
  231. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr.js +2 -866
  232. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr2.js +2 -611
  233. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs.js +2 -866
  234. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs2.js +2 -611
  235. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy.js +2 -866
  236. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy2.js +2 -611
  237. package/src/sap/f/thirdparty/_dynamics/messagebundle_da.js +2 -866
  238. package/src/sap/f/thirdparty/_dynamics/messagebundle_da2.js +2 -611
  239. package/src/sap/f/thirdparty/_dynamics/messagebundle_de.js +2 -866
  240. package/src/sap/f/thirdparty/_dynamics/messagebundle_de2.js +2 -611
  241. package/src/sap/f/thirdparty/_dynamics/messagebundle_el.js +2 -866
  242. package/src/sap/f/thirdparty/_dynamics/messagebundle_el2.js +2 -611
  243. package/src/sap/f/thirdparty/_dynamics/messagebundle_en.js +2 -866
  244. package/src/sap/f/thirdparty/_dynamics/messagebundle_en2.js +2 -611
  245. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB.js +2 -866
  246. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB2.js +2 -611
  247. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +2 -866
  248. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +2 -611
  249. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +2 -866
  250. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +2 -611
  251. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +2 -866
  252. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +2 -611
  253. package/src/sap/f/thirdparty/_dynamics/messagebundle_es.js +2 -866
  254. package/src/sap/f/thirdparty/_dynamics/messagebundle_es2.js +2 -611
  255. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX.js +2 -866
  256. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX2.js +2 -611
  257. package/src/sap/f/thirdparty/_dynamics/messagebundle_et.js +2 -866
  258. package/src/sap/f/thirdparty/_dynamics/messagebundle_et2.js +2 -611
  259. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi.js +2 -866
  260. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi2.js +2 -611
  261. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr.js +2 -866
  262. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr2.js +2 -611
  263. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA.js +2 -866
  264. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA2.js +2 -611
  265. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi.js +2 -866
  266. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi2.js +2 -611
  267. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr.js +2 -866
  268. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr2.js +2 -611
  269. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu.js +2 -866
  270. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu2.js +2 -611
  271. package/src/sap/f/thirdparty/_dynamics/messagebundle_id.js +2 -866
  272. package/src/sap/f/thirdparty/_dynamics/messagebundle_id2.js +2 -611
  273. package/src/sap/f/thirdparty/_dynamics/messagebundle_it.js +2 -866
  274. package/src/sap/f/thirdparty/_dynamics/messagebundle_it2.js +2 -611
  275. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw.js +2 -866
  276. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw2.js +2 -611
  277. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja.js +2 -866
  278. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja2.js +2 -611
  279. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk.js +2 -866
  280. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk2.js +2 -611
  281. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko.js +2 -866
  282. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko2.js +2 -611
  283. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt.js +2 -866
  284. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt2.js +2 -611
  285. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv.js +2 -866
  286. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv2.js +2 -611
  287. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk.js +2 -866
  288. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk2.js +2 -611
  289. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms.js +2 -866
  290. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms2.js +2 -611
  291. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl.js +2 -866
  292. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl2.js +2 -611
  293. package/src/sap/f/thirdparty/_dynamics/messagebundle_no.js +2 -866
  294. package/src/sap/f/thirdparty/_dynamics/messagebundle_no2.js +2 -611
  295. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl.js +2 -866
  296. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl2.js +2 -611
  297. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt.js +2 -866
  298. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt2.js +2 -611
  299. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT.js +2 -866
  300. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT2.js +2 -611
  301. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro.js +2 -866
  302. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro2.js +2 -611
  303. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru.js +2 -866
  304. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru2.js +2 -611
  305. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh.js +2 -866
  306. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh2.js +2 -611
  307. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk.js +2 -866
  308. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk2.js +2 -611
  309. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl.js +2 -866
  310. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl2.js +2 -611
  311. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr.js +2 -866
  312. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr2.js +2 -611
  313. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv.js +2 -866
  314. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv2.js +2 -611
  315. package/src/sap/f/thirdparty/_dynamics/messagebundle_th.js +2 -866
  316. package/src/sap/f/thirdparty/_dynamics/messagebundle_th2.js +2 -611
  317. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr.js +2 -866
  318. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr2.js +2 -611
  319. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk.js +2 -866
  320. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk2.js +2 -611
  321. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi.js +2 -866
  322. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi2.js +2 -611
  323. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN.js +2 -866
  324. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN2.js +2 -611
  325. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW.js +2 -866
  326. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW2.js +2 -611
  327. package/src/sap/f/thirdparty/_dynamics/mk.js +2 -0
  328. package/src/sap/f/thirdparty/_dynamics/ms.js +2 -0
  329. package/src/sap/f/thirdparty/_dynamics/nb.js +2 -0
  330. package/src/sap/f/thirdparty/_dynamics/nl.js +2 -0
  331. package/src/sap/f/thirdparty/_dynamics/nl_BE.js +2 -0
  332. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css10.js +2 -7
  333. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css11.js +2 -7
  334. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css12.js +2 -7
  335. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css13.js +2 -7
  336. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css14.js +2 -7
  337. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css15.js +2 -7
  338. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css16.js +2 -7
  339. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css17.js +2 -7
  340. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css18.js +2 -7
  341. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css19.js +2 -7
  342. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css20.js +2 -7
  343. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css21.js +2 -7
  344. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css22.js +2 -7
  345. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css23.js +2 -7
  346. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css24.js +2 -7
  347. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css25.js +2 -7
  348. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css26.js +2 -7
  349. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css27.js +2 -7
  350. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css4.js +2 -7
  351. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css5.js +2 -7
  352. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css6.js +2 -7
  353. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css7.js +2 -7
  354. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css8.js +2 -7
  355. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css9.js +2 -7
  356. package/src/sap/f/thirdparty/_dynamics/pl.js +2 -0
  357. package/src/sap/f/thirdparty/_dynamics/pt.js +2 -0
  358. package/src/sap/f/thirdparty/_dynamics/pt_PT.js +2 -0
  359. package/src/sap/f/thirdparty/_dynamics/ro.js +2 -0
  360. package/src/sap/f/thirdparty/_dynamics/ru.js +2 -0
  361. package/src/sap/f/thirdparty/_dynamics/ru_UA.js +2 -0
  362. package/src/sap/f/thirdparty/_dynamics/sk.js +2 -0
  363. package/src/sap/f/thirdparty/_dynamics/sl.js +2 -0
  364. package/src/sap/f/thirdparty/_dynamics/sr.js +2 -0
  365. package/src/sap/f/thirdparty/_dynamics/sr_Latn.js +2 -0
  366. package/src/sap/f/thirdparty/_dynamics/sv.js +2 -0
  367. package/src/sap/f/thirdparty/_dynamics/th.js +2 -0
  368. package/src/sap/f/thirdparty/_dynamics/tr.js +2 -0
  369. package/src/sap/f/thirdparty/_dynamics/uk.js +2 -0
  370. package/src/sap/f/thirdparty/_dynamics/vi.js +2 -0
  371. package/src/sap/f/thirdparty/_dynamics/zh_CN.js +2 -0
  372. package/src/sap/f/thirdparty/_dynamics/zh_HK.js +2 -0
  373. package/src/sap/f/thirdparty/_dynamics/zh_SG.js +2 -0
  374. package/src/sap/f/thirdparty/_dynamics/zh_TW.js +2 -0
  375. package/src/sap/f/thirdparty/encodeXML.js +6 -81
  376. package/src/sap/f/thirdparty/event-strict.js +2 -7
  377. package/src/sap/f/thirdparty/generateHighlightedMarkup.js +2 -9
  378. package/src/sap/f/thirdparty/i18n-defaults.js +2 -119
  379. package/src/sap/f/thirdparty/i18n-defaults2.js +2 -159
  380. package/src/sap/f/thirdparty/information.js +2 -100
  381. package/src/sap/f/thirdparty/information2.js +2 -13
  382. package/src/sap/f/thirdparty/overflow.js +2 -25
  383. package/src/sap/f/thirdparty/parameters-bundle.css.js +2 -11
  384. package/src/sap/f/thirdparty/parameters-bundle.css2.js +2 -44
  385. package/src/sap/f/thirdparty/parameters-bundle.css3.js +2 -8
  386. package/src/sap/f/thirdparty/query.js +2 -7
  387. package/src/sap/f/thirdparty/slim-arrow-down.js +2 -44
  388. package/src/sap/f/thirdparty/sys-enter-2.js +2 -7
  389. package/src/sap/f/thirdparty/toLowercaseEnumValue.js +2 -7
  390. package/src/sap/f/thirdparty/ui5/webcomponents_fiori/dist/illustrations/UnableToUpload.js +2 -0
  391. package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +2 -26
  392. package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +2 -26
  393. package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +2 -26
  394. package/src/sap/f/thirdparty/webcomponents-base.js +2 -7
  395. package/src/sap/f/thirdparty/webcomponents-fiori.js +2 -5
  396. package/src/sap/f/thirdparty/webcomponents.js +51 -4589
  397. package/src/sap/f/thirdparty/willShowContent.js +2 -7
  398. package/ui5-build.yaml +1 -0
  399. package/src/sap/f/thirdparty/ListItemCustom.js +0 -1689
@@ -1,453 +1,2 @@
1
- sap.ui.define(['sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/i18n-defaults2'], (function (webcomponentsBase, eventStrict, parametersBundle_css$1, parametersBundle_css, Icons, Icon, i18nDefaults) { 'use strict';
2
-
3
- function AvatarTemplate() {
4
- return (parametersBundle_css.jsxs("div", { class: "ui5-avatar-root", tabindex: this.tabindex, "data-sap-focus-ref": true, role: this._role, "aria-haspopup": this._ariaHasPopup, "aria-label": this.accessibleNameText, onKeyUp: this._onkeyup, onKeyDown: this._onkeydown, onClick: this._onclick, children: [this._hasImage ?
5
- parametersBundle_css.jsx("slot", {})
6
- : parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this.icon && parametersBundle_css.jsx(Icon.Icon, { class: "ui5-avatar-icon", name: this.icon, accessibleName: this.accessibleName }), this.initials ? (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { class: "ui5-avatar-initials ui5-avatar-initials-hidden", children: this.validInitials }), parametersBundle_css.jsx(Icon.Icon, { name: this.fallbackIcon, class: "ui5-avatar-icon ui5-avatar-icon-fallback ui5-avatar-fallback-icon-hidden" })] })) : (
7
- // Show fallback icon only
8
- parametersBundle_css.jsx(Icon.Icon, { name: this.fallbackIcon, class: "ui5-avatar-icon ui5-avatar-icon-fallback" }))] }), parametersBundle_css.jsx("slot", { name: "badge" })] }));
9
- }
10
-
11
- Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
12
- Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
13
- var AvatarCss = `:host(:not([hidden])){display:inline-block;box-sizing:border-box;position:relative;font-family:var(--sapFontFamily)}:host(:not([hidden]).ui5_hovered){opacity:.7}:host([interactive]:not([disabled])){cursor:pointer}:host([interactive]:not([hidden]):active){background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([interactive]:not([hidden]):not([disabled]):not(:active):not([focused]):hover){box-shadow:var(--ui5-v2-15-0-avatar-hover-box-shadow-offset)}:host([interactive][desktop]:not([hidden])) .ui5-avatar-root:focus,:host([interactive]:not([hidden])) .ui5-avatar-root:focus-visible{outline:var(--_ui5-v2-15-0_avatar_outline);outline-offset:var(--_ui5-v2-15-0_avatar_focus_offset)}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:none}:host{height:3rem;width:3rem;border-radius:50%;border:var(--ui5-v2-15-0-avatar-initials-border);outline:none;color:var(--ui5-v2-15-0-avatar-initials-color)}.ui5-avatar-root{display:flex;align-items:center;justify-content:center;outline:none;height:100%;width:100%;border-radius:inherit}:host([_size="XS"]),:host([size="XS"]){height:2rem;width:2rem;min-height:2rem;min-width:2rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_XS)}:host(:not([size])),:host([_size="S"]),:host([size="S"]){min-height:3rem;min-width:3rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_S)}:host([_size="M"]),:host([size="M"]){min-height:4rem;min-width:4rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_M)}:host([_size="L"]),:host([size="L"]){min-height:5rem;min-width:5rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_L)}:host([_size="XL"]),:host([size="XL"]){min-height:7rem;min-width:7rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_XL)}:host .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_fontsize_S);width:var(--_ui5-v2-15-0_avatar_fontsize_S);color:inherit}:host([_size="XS"]) .ui5-avatar-icon,:host([size="XS"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_XS);width:var(--_ui5-v2-15-0_avatar_icon_XS)}:host([_size="S"]) .ui5-avatar-icon,:host([size="S"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_S);width:var(--_ui5-v2-15-0_avatar_icon_S)}:host([_size="M"]) .ui5-avatar-icon,:host([size="M"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_M);width:var(--_ui5-v2-15-0_avatar_icon_M)}:host([_size="L"]) .ui5-avatar-icon,:host([size="L"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_L);width:var(--_ui5-v2-15-0_avatar_icon_L)}:host([_size="XL"]) .ui5-avatar-icon,:host([size="XL"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_XL);width:var(--_ui5-v2-15-0_avatar_icon_XL)}::slotted(*){border-radius:50%;width:100%;height:100%;pointer-events:none}:host([shape="Square"]){border-radius:var(--ui5-v2-15-0-avatar-border-radius)}:host([shape="Square"]) ::slotted(*){border-radius:calc(var(--ui5-v2-15-0-avatar-border-radius) - var(--ui5-v2-15-0-avatar-border-radius-img-deduction))}:host(:not([color-scheme])),:host(:not([_has-image])),:host([color-scheme="Auto"]),:host([_color-scheme="Accent6"]),:host([ui5-avatar][color-scheme="Accent6"]){background-color:var(--ui5-v2-15-0-avatar-accent6);color:var(--ui5-v2-15-0-avatar-accent6-color);border-color:var(--ui5-v2-15-0-avatar-accent6-border-color)}:host([_color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_6_Hover_Background)}:host([_color-scheme="Accent1"]),:host([ui5-avatar][color-scheme="Accent1"]){background-color:var(--ui5-v2-15-0-avatar-accent1);color:var(--ui5-v2-15-0-avatar-accent1-color);border-color:var(--ui5-v2-15-0-avatar-accent1-border-color)}:host([_color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_1_Hover_Background)}:host([_color-scheme="Accent2"]),:host([ui5-avatar][color-scheme="Accent2"]){background-color:var(--ui5-v2-15-0-avatar-accent2);color:var(--ui5-v2-15-0-avatar-accent2-color);border-color:var(--ui5-v2-15-0-avatar-accent2-border-color)}:host([_color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_2_Hover_Background)}:host([_color-scheme="Accent3"]),:host([ui5-avatar][color-scheme="Accent3"]){background-color:var(--ui5-v2-15-0-avatar-accent3);color:var(--ui5-v2-15-0-avatar-accent3-color);border-color:var(--ui5-v2-15-0-avatar-accent3-border-color)}:host([_color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_3_Hover_Background)}:host([_color-scheme="Accent4"]),:host([ui5-avatar][color-scheme="Accent4"]){background-color:var(--ui5-v2-15-0-avatar-accent4);color:var(--ui5-v2-15-0-avatar-accent4-color);border-color:var(--ui5-v2-15-0-avatar-accent4-border-color)}:host([_color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_4_Hover_Background)}:host([_color-scheme="Accent5"]),:host([ui5-avatar][color-scheme="Accent5"]){background-color:var(--ui5-v2-15-0-avatar-accent5);color:var(--ui5-v2-15-0-avatar-accent5-color);border-color:var(--ui5-v2-15-0-avatar-accent5-border-color)}:host([_color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_5_Hover_Background)}:host([_color-scheme="Accent7"]),:host([ui5-avatar][color-scheme="Accent7"]){background-color:var(--ui5-v2-15-0-avatar-accent7);color:var(--ui5-v2-15-0-avatar-accent7-color);border-color:var(--ui5-v2-15-0-avatar-accent7-border-color)}:host([_color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_7_Hover_Background)}:host([_color-scheme="Accent8"]),:host([ui5-avatar][color-scheme="Accent8"]){background-color:var(--ui5-v2-15-0-avatar-accent8);color:var(--ui5-v2-15-0-avatar-accent8-color);border-color:var(--ui5-v2-15-0-avatar-accent8-border-color)}:host([_color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_8_Hover_Background)}:host([_color-scheme="Accent9"]),:host([ui5-avatar][color-scheme="Accent9"]){background-color:var(--ui5-v2-15-0-avatar-accent9);color:var(--ui5-v2-15-0-avatar-accent9-color);border-color:var(--ui5-v2-15-0-avatar-accent9-border-color)}:host([_color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_9_Hover_Background)}:host([_color-scheme="Accent10"]),:host([ui5-avatar][color-scheme="Accent10"]){background-color:var(--ui5-v2-15-0-avatar-accent10);color:var(--ui5-v2-15-0-avatar-accent10-color);border-color:var(--ui5-v2-15-0-avatar-accent10-border-color)}:host([_color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_10_Hover_Background)}:host([_color-scheme="Placeholder"]),:host([ui5-avatar][color-scheme="Placeholder"]){background-color:var(--ui5-v2-15-0-avatar-placeholder);color:var(--ui5-v2-15-0-avatar-placeholder-color);border-color:var(--sapAvatar_Lite_BorderColor)}:host([_color-scheme="Transparent"]),:host([ui5-avatar][color-scheme="Transparent"]){background-color:transparent;border-color:transparent}:host([_has-image]){color:var(--ui5-v2-15-0-avatar-accent10-color);border:var(--ui5-v2-15-0-avatar-optional-border);background-color:transparent}.ui5-avatar-initials{color:inherit}.ui5-avatar-icon~.ui5-avatar-initials,.ui5-avatar-icon~.ui5-avatar-icon-fallback{display:none}.ui5-avatar-fallback-icon-hidden{display:none}.ui5-avatar-initials-hidden{position:absolute;visibility:hidden;z-index:0;pointer-events:none}::slotted([slot="badge"]){position:absolute;bottom:0;right:0;width:1.125rem;height:1.125rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSmallSize);color:var(--sapBackgroundColor);--_ui5-v2-15-0-tag-height: 1.125rem}:host(:not([disabled])) ::slotted([slot="badge"]){pointer-events:initial}:host([_size="L"]) ::slotted([slot="badge"]),:host([size="L"]) ::slotted([slot="badge"]){width:1.25rem;height:1.25rem;--_ui5-v2-15-0-tag-height: 1.25rem;--_ui5-v2-15-0-tag-icon-width: .875rem}:host([_size="XL"]) ::slotted([slot="badge"]),:host([size="XL"]) ::slotted([slot="badge"]){width:1.75rem;height:1.75rem;--_ui5-v2-15-0-tag-height: 1.75rem;--_ui5-v2-15-0-tag-icon-width: 1rem}:host([shape="Square"]) ::slotted([slot="badge"]){bottom:-.125rem;right:-.125rem}:host([_size="L"][shape="Square"]) ::slotted([slot="badge"]),:host([size="L"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.1875rem;right:-.1875rem}:host([_size="XL"][shape="Square"]) ::slotted([slot="badge"]),:host([size="XL"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.25rem;right:-.25rem}
14
- `;
15
-
16
- /**
17
- * Different types of AvatarSize.
18
- * @public
19
- */
20
- var AvatarSize;
21
- (function (AvatarSize) {
22
- /**
23
- * component size - 2rem
24
- * font size - 1rem
25
- * @public
26
- */
27
- AvatarSize["XS"] = "XS";
28
- /**
29
- * component size - 3rem
30
- * font size - 1.5rem
31
- * @public
32
- */
33
- AvatarSize["S"] = "S";
34
- /**
35
- * component size - 4rem
36
- * font size - 2rem
37
- * @public
38
- */
39
- AvatarSize["M"] = "M";
40
- /**
41
- * component size - 5rem
42
- * font size - 2.5rem
43
- * @public
44
- */
45
- AvatarSize["L"] = "L";
46
- /**
47
- * component size - 7rem
48
- * font size - 3rem
49
- * @public
50
- */
51
- AvatarSize["XL"] = "XL";
52
- })(AvatarSize || (AvatarSize = {}));
53
- var AvatarSize$1 = AvatarSize;
54
-
55
- const name$1 = "employee";
56
- const pathData$1 = "M448 512H64V384q0-26 10-49.5t27.5-41T142 266t50-10h64q-27 0-50-10t-40.5-27.5T138 178t-10-50q0-26 10-49.5t27.5-41T206 10t50-10q26 0 49.5 10t41 27.5 27.5 41 10 49.5q0 27-10 50t-27.5 40.5-41 27.5-49.5 10h64q26 0 49.5 10t41 27.5 27.5 41 10 49.5v128zM96 384v96h320v-96q0-40-28-68t-68-28H192q-40 0-68 28t-28 68zm160-160q40 0 68-28t28-68-28-68-68-28-68 28-28 68 28 68 68 28zm32 192v-32h96v32h-96z";
57
- const ltr$1 = false;
58
- const collection$1 = "SAP-icons-v4";
59
- const packageName$1 = "@ui5/webcomponents-icons";
60
-
61
- Icons.y(name$1, { pathData: pathData$1, ltr: ltr$1, collection: collection$1, packageName: packageName$1 });
62
-
63
- const name = "employee";
64
- const pathData = "M342 255q48 23 77 67.5t29 99.5v32q0 11-7.5 18.5T422 480H90q-11 0-18.5-7.5T64 454v-32q0-55 29-99.5t77-67.5l-4-5q-19-17-28.5-40.5T128 160q0-27 10-50t27.5-40.5 41-27.5T256 32t49.5 10.5 41 28T374 111t10 49q0 27-11 52t-31 43zm-163-95q0 32 22.5 54.5T256 237t54.5-22.5T333 160t-22.5-54.5T256 83t-54.5 22.5T179 160zm51 181l-25-15q-13-7-13-19v-6q-34 17-55.5 49T115 422v7h115v-88zm167 81q0-40-21-72t-56-49v6q0 12-13 19l-26 15v88h116v-7zm-71-70q11 0 18.5 7.5T352 378t-7.5 18-18.5 7h-12q-11 0-18.5-7t-7.5-18 7.5-18.5T314 352h12z";
65
- const ltr = false;
66
- const collection = "SAP-icons-v5";
67
- const packageName = "@ui5/webcomponents-icons";
68
-
69
- Icons.y(name, { pathData, ltr, collection, packageName });
70
-
71
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
72
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
73
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
74
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
75
- return c > 3 && r && Object.defineProperty(target, key, r), r;
76
- };
77
- var Avatar_1;
78
- /**
79
- * @class
80
- * ### Overview
81
- *
82
- * An image-like component that has different display options for representing images and icons
83
- * in different shapes and sizes, depending on the use case.
84
- *
85
- * The shape can be circular or square. There are several predefined sizes, as well as an option to
86
- * set a custom size.
87
- *
88
- * ### Keyboard Handling
89
- *
90
- * - [Space] / [Enter] or [Return] - Fires the `click` event if the `interactive` property is set to true.
91
- * - [Shift] - If [Space] is pressed, pressing [Shift] releases the component without triggering the click event.
92
- *
93
- * ### ES6 Module Import
94
- * `import "@ui5/webcomponents/dist/Avatar.js";`
95
- * @constructor
96
- * @extends UI5Element
97
- * @since 1.0.0-rc.6
98
- * @implements {IAvatarGroupItem}
99
- * @public
100
- */
101
- let Avatar = Avatar_1 = class Avatar extends webcomponentsBase.b {
102
- constructor() {
103
- super();
104
- /**
105
- * Defines whether the component is disabled.
106
- * A disabled component can't be pressed or
107
- * focused, and it is not in the tab chain.
108
- * @default false
109
- * @public
110
- */
111
- this.disabled = false;
112
- /**
113
- * Defines if the avatar is interactive (focusable and pressable).
114
- *
115
- * **Note:** This property won't have effect if the `disabled`
116
- * property is set to `true`.
117
- * @default false
118
- * @public
119
- */
120
- this.interactive = false;
121
- /**
122
- * Defines the name of the fallback icon, which should be displayed in the following cases:
123
- *
124
- * - If the initials are not valid (more than 3 letters, unsupported languages or empty initials).
125
- * - If there are three initials and they do not fit in the shape (e.g. WWW for some of the sizes).
126
- * - If the image src is wrong.
127
- *
128
- * **Note:** If not set, a default fallback icon "employee" is displayed.
129
- *
130
- * **Note:** You should import the desired icon first, then use its name as "fallback-icon".
131
- *
132
- * `import "@ui5/webcomponents-icons/dist/{icon_name}.js"`
133
- *
134
- * `<ui5-avatar fallback-icon="alert">`
135
- *
136
- * See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
137
- * @default "employee"
138
- * @public
139
- */
140
- this.fallbackIcon = "employee";
141
- /**
142
- * Defines the shape of the component.
143
- * @default "Circle"
144
- * @public
145
- */
146
- this.shape = "Circle";
147
- /**
148
- * Defines predefined size of the component.
149
- * @default "S"
150
- * @public
151
- */
152
- this.size = "S";
153
- /**
154
- * Defines the background color of the desired image.
155
- * If `colorScheme` is set to `Auto`, the avatar will be displayed with the `Accent6` color.
156
- *
157
- * @default "Auto"
158
- * @public
159
- */
160
- this.colorScheme = "Auto";
161
- /**
162
- * @private
163
- */
164
- this._colorScheme = "Auto";
165
- /**
166
- * Defines the additional accessibility attributes that will be applied to the component.
167
- * The following field is supported:
168
- *
169
- * - **hasPopup**: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button.
170
- * Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
171
- *
172
- * @public
173
- * @since 2.0.0
174
- * @default {}
175
- */
176
- this.accessibilityAttributes = {};
177
- /**
178
- * @private
179
- */
180
- this._hasImage = false;
181
- /**
182
- * @private
183
- */
184
- this._imageLoadError = false;
185
- this._handleResizeBound = this.handleResize.bind(this);
186
- this._onImageLoadBound = this._onImageLoad.bind(this);
187
- this._onImageErrorBound = this._onImageError.bind(this);
188
- }
189
- onBeforeRendering() {
190
- this._attachImageEventHandlers();
191
- this._hasImage = this.hasImage;
192
- }
193
- get tabindex() {
194
- if (this.forcedTabIndex) {
195
- return parseInt(this.forcedTabIndex);
196
- }
197
- return this._interactive ? 0 : undefined;
198
- }
199
- /**
200
- * Returns the effective avatar size.
201
- * @default "S"
202
- * @private
203
- */
204
- get effectiveSize() {
205
- // we read the attribute, because the "size" property will always have a default value
206
- return this.getAttribute("size") || AvatarSize$1.S;
207
- }
208
- /**
209
- * Returns the effective background color.
210
- * @default "Auto"
211
- * @private
212
- */
213
- get effectiveBackgroundColor() {
214
- // we read the attribute, because the "background-color" property will always have a default value
215
- return this.getAttribute("color-scheme") || this._colorScheme;
216
- }
217
- get _role() {
218
- return this._interactive ? "button" : "img";
219
- }
220
- get _ariaHasPopup() {
221
- return this._getAriaHasPopup();
222
- }
223
- get _interactive() {
224
- return this.interactive && !this.disabled;
225
- }
226
- get validInitials() {
227
- // initials should consist of only 1,2 or 3 latin letters
228
- const validInitials = /^[a-zA-Zà-üÀ-Ü]{1,3}$/, areInitialsValid = this.initials && validInitials.test(this.initials);
229
- if (areInitialsValid) {
230
- return this.initials;
231
- }
232
- return null;
233
- }
234
- get accessibleNameText() {
235
- if (this.accessibleName) {
236
- return this.accessibleName;
237
- }
238
- const defaultLabel = Avatar_1.i18nBundle.getText(i18nDefaults.AVATAR_TOOLTIP);
239
- return this.initials ? `${defaultLabel} ${this.initials}`.trim() : defaultLabel;
240
- }
241
- get hasImage() {
242
- return !!this.image.length && !this._imageLoadError;
243
- }
244
- get imageEl() {
245
- return this.image?.[0] instanceof HTMLImageElement ? this.image[0] : null;
246
- }
247
- get initialsContainer() {
248
- return this.getDomRef().querySelector(".ui5-avatar-initials");
249
- }
250
- get fallBackIconDomRef() {
251
- return this.getDomRef().querySelector(".ui5-avatar-icon-fallback");
252
- }
253
- async onAfterRendering() {
254
- await Icons.f$1();
255
- if (this.initials && !this.icon) {
256
- this._checkInitials();
257
- }
258
- }
259
- onEnterDOM() {
260
- if (Icons.f()) {
261
- this.setAttribute("desktop", "");
262
- }
263
- this.initialsContainer && webcomponentsBase.f.register(this.initialsContainer, this._handleResizeBound);
264
- }
265
- onExitDOM() {
266
- this.initialsContainer && webcomponentsBase.f.deregister(this.initialsContainer, this._handleResizeBound);
267
- this._detachImageEventHandlers();
268
- }
269
- handleResize() {
270
- if (this.initials && !this.icon) {
271
- this._checkInitials();
272
- }
273
- }
274
- _checkInitials() {
275
- const avatar = this.getDomRef();
276
- const avatarInitials = avatar.querySelector(".ui5-avatar-initials");
277
- const validInitials = this.validInitials && avatarInitials && avatarInitials.scrollWidth <= avatar.scrollWidth;
278
- if (validInitials) {
279
- this.showInitials();
280
- return;
281
- }
282
- this.showFallbackIcon();
283
- }
284
- showFallbackIcon() {
285
- this.initialsContainer?.classList.add("ui5-avatar-initials-hidden");
286
- this.fallBackIconDomRef?.classList.remove("ui5-avatar-fallback-icon-hidden");
287
- }
288
- showInitials() {
289
- this.initialsContainer?.classList.remove("ui5-avatar-initials-hidden");
290
- this.fallBackIconDomRef?.classList.add("ui5-avatar-fallback-icon-hidden");
291
- }
292
- _onclick(e) {
293
- e.stopPropagation();
294
- this._fireClick();
295
- }
296
- _onkeydown(e) {
297
- if (!this._interactive) {
298
- return;
299
- }
300
- if (webcomponentsBase.b$1(e)) {
301
- this._fireClick();
302
- }
303
- if (webcomponentsBase.A(e)) {
304
- e.preventDefault(); // prevent scrolling
305
- }
306
- }
307
- _onkeyup(e) {
308
- if (this._interactive && !e.shiftKey && webcomponentsBase.A(e)) {
309
- this._fireClick();
310
- }
311
- }
312
- _fireClick() {
313
- this.fireDecoratorEvent("click");
314
- }
315
- _getAriaHasPopup() {
316
- const ariaHaspopup = this.accessibilityAttributes.hasPopup;
317
- if (!this._interactive || !ariaHaspopup) {
318
- return;
319
- }
320
- return ariaHaspopup;
321
- }
322
- _attachImageEventHandlers() {
323
- const imgEl = this.imageEl;
324
- if (!imgEl) {
325
- this._imageLoadError = false;
326
- return;
327
- }
328
- // Remove previous handlers to avoid duplicates
329
- imgEl.removeEventListener("load", this._onImageLoadBound);
330
- imgEl.removeEventListener("error", this._onImageErrorBound);
331
- // Attach new handlers
332
- imgEl.addEventListener("load", this._onImageLoadBound);
333
- imgEl.addEventListener("error", this._onImageErrorBound);
334
- // Check existing image state
335
- this._checkExistingImageState();
336
- }
337
- _checkExistingImageState() {
338
- const imgEl = this.imageEl;
339
- if (!imgEl) {
340
- this._imageLoadError = false;
341
- return;
342
- }
343
- if (imgEl.complete && imgEl.naturalWidth === 0) {
344
- this._imageLoadError = true; // Already broken
345
- }
346
- else if (imgEl.complete && imgEl.naturalWidth > 0) {
347
- this._imageLoadError = false; // Already loaded
348
- }
349
- else {
350
- this._imageLoadError = false; // Pending load
351
- }
352
- }
353
- _detachImageEventHandlers() {
354
- const imgEl = this.imageEl;
355
- if (!imgEl) {
356
- return;
357
- }
358
- imgEl.removeEventListener("load", this._onImageLoadBound);
359
- imgEl.removeEventListener("error", this._onImageErrorBound);
360
- }
361
- _onImageLoad(e) {
362
- if (e.target !== this.imageEl) {
363
- e.target?.removeEventListener("load", this._onImageLoadBound);
364
- return;
365
- }
366
- this._imageLoadError = false;
367
- }
368
- _onImageError(e) {
369
- if (e.target !== this.imageEl) {
370
- e.target?.removeEventListener("error", this._onImageErrorBound);
371
- return;
372
- }
373
- this._imageLoadError = true;
374
- }
375
- };
376
- __decorate([
377
- webcomponentsBase.s({ type: Boolean })
378
- ], Avatar.prototype, "disabled", void 0);
379
- __decorate([
380
- webcomponentsBase.s({ type: Boolean })
381
- ], Avatar.prototype, "interactive", void 0);
382
- __decorate([
383
- webcomponentsBase.s()
384
- ], Avatar.prototype, "icon", void 0);
385
- __decorate([
386
- webcomponentsBase.s()
387
- ], Avatar.prototype, "fallbackIcon", void 0);
388
- __decorate([
389
- webcomponentsBase.s()
390
- ], Avatar.prototype, "initials", void 0);
391
- __decorate([
392
- webcomponentsBase.s()
393
- ], Avatar.prototype, "shape", void 0);
394
- __decorate([
395
- webcomponentsBase.s()
396
- ], Avatar.prototype, "size", void 0);
397
- __decorate([
398
- webcomponentsBase.s()
399
- ], Avatar.prototype, "colorScheme", void 0);
400
- __decorate([
401
- webcomponentsBase.s()
402
- ], Avatar.prototype, "_colorScheme", void 0);
403
- __decorate([
404
- webcomponentsBase.s()
405
- ], Avatar.prototype, "accessibleName", void 0);
406
- __decorate([
407
- webcomponentsBase.s({ type: Object })
408
- ], Avatar.prototype, "accessibilityAttributes", void 0);
409
- __decorate([
410
- webcomponentsBase.s({ noAttribute: true })
411
- ], Avatar.prototype, "forcedTabIndex", void 0);
412
- __decorate([
413
- webcomponentsBase.s({ type: Boolean })
414
- ], Avatar.prototype, "_hasImage", void 0);
415
- __decorate([
416
- webcomponentsBase.s({ type: Boolean, noAttribute: true })
417
- ], Avatar.prototype, "_imageLoadError", void 0);
418
- __decorate([
419
- webcomponentsBase.d({ type: HTMLElement, "default": true })
420
- ], Avatar.prototype, "image", void 0);
421
- __decorate([
422
- webcomponentsBase.d()
423
- ], Avatar.prototype, "badge", void 0);
424
- __decorate([
425
- parametersBundle_css$1.i("@ui5/webcomponents")
426
- ], Avatar, "i18nBundle", void 0);
427
- Avatar = Avatar_1 = __decorate([
428
- webcomponentsBase.m({
429
- tag: "ui5-avatar",
430
- languageAware: true,
431
- renderer: parametersBundle_css.y,
432
- styles: AvatarCss,
433
- template: AvatarTemplate,
434
- })
435
- /**
436
- * Fired on mouseup, space and enter if avatar is interactive
437
- *
438
- * **Note:** The event will not be fired if the `disabled`
439
- * property is set to `true`.
440
- * @public
441
- * @since 2.11.0
442
- */
443
- ,
444
- eventStrict.l("click", {
445
- bubbles: true,
446
- })
447
- ], Avatar);
448
- Avatar.define();
449
- var Avatar$1 = Avatar;
450
-
451
- return Avatar$1;
452
-
453
- }));
1
+ sap.ui.define(["sap/f/thirdparty/webcomponents","sap/f/thirdparty/event-strict","sap/f/thirdparty/parameters-bundle.css","sap/f/thirdparty/parameters-bundle.css2","sap/f/thirdparty/Theme","sap/f/thirdparty/Icon","sap/f/thirdparty/i18n-defaults2","sap/f/thirdparty/Icons"],function(t,e,a,o,i,r,n,c){"use strict";function s(){return o.jsxs("div",{class:"ui5-avatar-root",tabindex:this.tabindex,"data-sap-focus-ref":true,role:this._role,"aria-haspopup":this._ariaHasPopup,"aria-label":this.accessibleNameText,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onClick:this._onclick,children:[this._hasImage?o.jsx("slot",{}):o.jsxs(o.Fragment,{children:[this.icon&&o.jsx(r.Icon,{class:"ui5-avatar-icon",name:this.icon,accessibleName:this.accessibleName}),this.initials?o.jsxs(o.Fragment,{children:[o.jsx("span",{class:"ui5-avatar-initials ui5-avatar-initials-hidden",children:this.validInitials}),o.jsx(r.Icon,{name:this.fallbackIcon,class:"ui5-avatar-icon ui5-avatar-icon-fallback ui5-avatar-fallback-icon-hidden"})]}):o.jsx(r.Icon,{name:this.fallbackIcon,class:"ui5-avatar-icon ui5-avatar-icon-fallback"})]}),o.jsx("slot",{name:"badge"})]})}i.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>o.defaultThemeBase);i.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>a.defaultTheme,"host");var h=`:host(:not([hidden])){display:inline-block;box-sizing:border-box;position:relative;font-family:var(--sapFontFamily)}:host(:not([hidden]).ui5_hovered){opacity:.7}:host([interactive]:not([disabled])){cursor:pointer}:host([interactive]:not([hidden]):active){background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([interactive]:not([hidden]):not([disabled]):not(:active):not([focused]):hover){box-shadow:var(--ui5-avatar-hover-box-shadow-offset)}:host([interactive][desktop]:not([hidden])) .ui5-avatar-root:focus,:host([interactive]:not([hidden])) .ui5-avatar-root:focus-visible{outline:var(--_ui5_avatar_outline);outline-offset:var(--_ui5_avatar_focus_offset)}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:none}:host{height:3rem;width:3rem;border-radius:50%;border:var(--ui5-avatar-initials-border);outline:none;color:var(--ui5-avatar-initials-color)}.ui5-avatar-root{display:flex;align-items:center;justify-content:center;outline:none;height:100%;width:100%;border-radius:inherit}:host([size="XS"]){height:2rem;width:2rem;min-height:2rem;min-width:2rem;font-size:var(--_ui5_avatar_fontsize_XS)}:host(:not([size])),:host([size="S"]){min-height:3rem;min-width:3rem;font-size:var(--_ui5_avatar_fontsize_S)}:host([size="M"]){min-height:4rem;min-width:4rem;font-size:var(--_ui5_avatar_fontsize_M)}:host([size="L"]){min-height:5rem;min-width:5rem;font-size:var(--_ui5_avatar_fontsize_L)}:host([size="XL"]){min-height:7rem;min-width:7rem;font-size:var(--_ui5_avatar_fontsize_XL)}:host .ui5-avatar-icon{height:var(--_ui5_avatar_fontsize_S);width:var(--_ui5_avatar_fontsize_S);color:inherit}:host([size="XS"]) .ui5-avatar-icon{height:var(--_ui5_avatar_icon_XS);width:var(--_ui5_avatar_icon_XS)}:host([size="S"]) .ui5-avatar-icon{height:var(--_ui5_avatar_icon_S);width:var(--_ui5_avatar_icon_S)}:host([size="M"]) .ui5-avatar-icon{height:var(--_ui5_avatar_icon_M);width:var(--_ui5_avatar_icon_M)}:host([size="L"]) .ui5-avatar-icon{height:var(--_ui5_avatar_icon_L);width:var(--_ui5_avatar_icon_L)}:host([size="XL"]) .ui5-avatar-icon{height:var(--_ui5_avatar_icon_XL);width:var(--_ui5_avatar_icon_XL)}::slotted(*){border-radius:50%;width:100%;height:100%;pointer-events:none}:host([shape="Square"]){border-radius:var(--ui5-avatar-border-radius)}:host([shape="Square"]) ::slotted(*){border-radius:calc(var(--ui5-avatar-border-radius) - var(--ui5-avatar-border-radius-img-deduction))}:host(:not([color-scheme])),:host(:not([_has-image])),:host([color-scheme="Auto"]),:host([_color-scheme="Accent6"]),:host([ui5-avatar][color-scheme="Accent6"]){background-color:var(--ui5-avatar-accent6);color:var(--ui5-avatar-accent6-color);border-color:var(--ui5-avatar-accent6-border-color)}:host([_color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_6_Hover_Background)}:host([_color-scheme="Accent1"]),:host([ui5-avatar][color-scheme="Accent1"]){background-color:var(--ui5-avatar-accent1);color:var(--ui5-avatar-accent1-color);border-color:var(--ui5-avatar-accent1-border-color)}:host([_color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_1_Hover_Background)}:host([_color-scheme="Accent2"]),:host([ui5-avatar][color-scheme="Accent2"]){background-color:var(--ui5-avatar-accent2);color:var(--ui5-avatar-accent2-color);border-color:var(--ui5-avatar-accent2-border-color)}:host([_color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_2_Hover_Background)}:host([_color-scheme="Accent3"]),:host([ui5-avatar][color-scheme="Accent3"]){background-color:var(--ui5-avatar-accent3);color:var(--ui5-avatar-accent3-color);border-color:var(--ui5-avatar-accent3-border-color)}:host([_color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_3_Hover_Background)}:host([_color-scheme="Accent4"]),:host([ui5-avatar][color-scheme="Accent4"]){background-color:var(--ui5-avatar-accent4);color:var(--ui5-avatar-accent4-color);border-color:var(--ui5-avatar-accent4-border-color)}:host([_color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_4_Hover_Background)}:host([_color-scheme="Accent5"]),:host([ui5-avatar][color-scheme="Accent5"]){background-color:var(--ui5-avatar-accent5);color:var(--ui5-avatar-accent5-color);border-color:var(--ui5-avatar-accent5-border-color)}:host([_color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_5_Hover_Background)}:host([_color-scheme="Accent7"]),:host([ui5-avatar][color-scheme="Accent7"]){background-color:var(--ui5-avatar-accent7);color:var(--ui5-avatar-accent7-color);border-color:var(--ui5-avatar-accent7-border-color)}:host([_color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_7_Hover_Background)}:host([_color-scheme="Accent8"]),:host([ui5-avatar][color-scheme="Accent8"]){background-color:var(--ui5-avatar-accent8);color:var(--ui5-avatar-accent8-color);border-color:var(--ui5-avatar-accent8-border-color)}:host([_color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_8_Hover_Background)}:host([_color-scheme="Accent9"]),:host([ui5-avatar][color-scheme="Accent9"]){background-color:var(--ui5-avatar-accent9);color:var(--ui5-avatar-accent9-color);border-color:var(--ui5-avatar-accent9-border-color)}:host([_color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_9_Hover_Background)}:host([_color-scheme="Accent10"]),:host([ui5-avatar][color-scheme="Accent10"]){background-color:var(--ui5-avatar-accent10);color:var(--ui5-avatar-accent10-color);border-color:var(--ui5-avatar-accent10-border-color)}:host([_color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_10_Hover_Background)}:host([_color-scheme="Placeholder"]),:host([ui5-avatar][color-scheme="Placeholder"]){background-color:var(--ui5-avatar-placeholder);color:var(--ui5-avatar-placeholder-color);border-color:var(--sapAvatar_Lite_BorderColor)}:host([_color-scheme="Transparent"]),:host([ui5-avatar][color-scheme="Transparent"]){background-color:transparent;border-color:transparent}:host([_has-image]){color:var(--ui5-avatar-accent10-color);border:var(--ui5-avatar-optional-border);background-color:transparent}.ui5-avatar-initials{color:inherit}.ui5-avatar-icon~.ui5-avatar-initials,.ui5-avatar-icon~.ui5-avatar-icon-fallback{display:none}.ui5-avatar-fallback-icon-hidden{display:none}.ui5-avatar-initials-hidden{position:absolute;visibility:hidden;z-index:0;pointer-events:none}::slotted([slot="badge"]){position:absolute;inset-block-end:0;inset-inline-end:0;width:1.125rem;height:1.125rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSmallSize);--_ui5-avatar-badge-icon-size: .75rem}:host(:not([disabled])) ::slotted([slot="badge"]){pointer-events:initial}:host([size="L"]) ::slotted([slot="badge"]){width:1.25rem;height:1.25rem;--_ui5-avatar-badge-icon-size: .875rem}:host([size="XL"]) ::slotted([slot="badge"]){width:1.75rem;height:1.75rem;--_ui5-avatar-badge-icon-size: 1rem}:host([shape="Square"]) ::slotted([slot="badge"]){border-radius:50%}:host([shape="Square"]) ::slotted([slot="badge"]){inset-block-end:-.125rem;inset-inline-end:-.125rem}:host([size="L"][shape="Square"]) ::slotted([slot="badge"]){inset-block-end:-.1875rem;inset-inline-end:-.1875rem}:host([size="XL"][shape="Square"]) ::slotted([slot="badge"]){inset-block-end:-.25rem;inset-inline-end:-.25rem}\n`;var l;(function(t){t["XS"]="XS";t["S"]="S";t["M"]="M";t["L"]="L";t["XL"]="XL"})(l||(l={}));var d=l;const v="employee";const u="M448 512H64V384q0-26 10-49.5t27.5-41T142 266t50-10h64q-27 0-50-10t-40.5-27.5T138 178t-10-50q0-26 10-49.5t27.5-41T206 10t50-10q26 0 49.5 10t41 27.5 27.5 41 10 49.5q0 27-10 50t-27.5 40.5-41 27.5-49.5 10h64q26 0 49.5 10t41 27.5 27.5 41 10 49.5v128zM96 384v96h320v-96q0-40-28-68t-68-28H192q-40 0-68 28t-28 68zm160-160q40 0 68-28t28-68-28-68-68-28-68 28-28 68 28 68 68 28zm32 192v-32h96v32h-96z";const _=false;const m="SAP-icons-v4";const b="@ui5/webcomponents-icons";c.y(v,{pathData:u,ltr:_,collection:m,packageName:b});const g="employee";const p="M342 255q48 23 77 67.5t29 99.5v32q0 11-7.5 18.5T422 480H90q-11 0-18.5-7.5T64 454v-32q0-55 29-99.5t77-67.5l-4-5q-19-17-28.5-40.5T128 160q0-27 10-50t27.5-40.5 41-27.5T256 32t49.5 10.5 41 28T374 111t10 49q0 27-11 52t-31 43zm-163-95q0 32 22.5 54.5T256 237t54.5-22.5T333 160t-22.5-54.5T256 83t-54.5 22.5T179 160zm51 181l-25-15q-13-7-13-19v-6q-34 17-55.5 49T115 422v7h115v-88zm167 81q0-40-21-72t-56-49v6q0 12-13 19l-26 15v88h116v-7zm-71-70q11 0 18.5 7.5T352 378t-7.5 18-18.5 7h-12q-11 0-18.5-7t-7.5-18 7.5-18.5T314 352h12z";const f=false;const A="SAP-icons-v5";const k="@ui5/webcomponents-icons";c.y(g,{pathData:p,ltr:f,collection:A,packageName:k});var y=this&&this.__decorate||function(t,e,a,o){var i=arguments.length,r=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,a):o,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(t,e,a,o);else for(var c=t.length-1;c>=0;c--)if(n=t[c])r=(i<3?n(r):i>3?n(e,a,r):n(e,a))||r;return i>3&&r&&Object.defineProperty(e,a,r),r};var I;let z=I=class e extends t.S{constructor(){super();this.disabled=false;this.interactive=false;this.fallbackIcon="employee";this.shape="Circle";this.size="S";this.colorScheme="Auto";this._colorScheme="Auto";this.accessibilityAttributes={};this._hasImage=false;this._imageLoadError=false;this._handleResizeBound=this.handleResize.bind(this);this._onImageLoadBound=this._onImageLoad.bind(this);this._onImageErrorBound=this._onImageError.bind(this)}onBeforeRendering(){this._attachImageEventHandlers();this._hasImage=this.hasImage}get tabindex(){if(this.forcedTabIndex){return parseInt(this.forcedTabIndex)}return this._interactive?0:undefined}get effectiveSize(){return this.getAttribute("size")||d.S}get effectiveBackgroundColor(){return this.getAttribute("color-scheme")||this._colorScheme}get _role(){return this._interactive?"button":"img"}get _ariaHasPopup(){return this._getAriaHasPopup()}get _interactive(){return this.interactive&&!this.disabled}get validInitials(){const t=/^[a-zA-Zà-üÀ-Ü]{1,3}$/,e=this.initials&&t.test(this.initials);if(e){return this.initials}return null}get accessibleNameText(){if(this.accessibleName){return this.accessibleName}const t=I.i18nBundle.getText(n.AVATAR_TOOLTIP);return this.initials?`${t} ${this.initials}`.trim():t}get hasImage(){return!!this.image.length&&!this._imageLoadError}get imageEl(){return this.image?.[0]instanceof HTMLImageElement?this.image[0]:null}get initialsContainer(){return this.getDomRef().querySelector(".ui5-avatar-initials")}get fallBackIconDomRef(){return this.getDomRef().querySelector(".ui5-avatar-icon-fallback")}async onAfterRendering(){await i.f$2();if(this.initials&&!this.icon){this._checkInitials()}}onEnterDOM(){if(i.f$1()){this.setAttribute("desktop","")}this.initialsContainer&&t.f.register(this.initialsContainer,this._handleResizeBound)}onExitDOM(){this.initialsContainer&&t.f.deregister(this.initialsContainer,this._handleResizeBound);this._detachImageEventHandlers()}handleResize(){if(this.initials&&!this.icon){this._checkInitials()}}_checkInitials(){const t=this.getDomRef();const e=t.querySelector(".ui5-avatar-initials");const a=this.validInitials&&e&&e.scrollWidth<=t.scrollWidth;if(a){this.showInitials();return}this.showFallbackIcon()}showFallbackIcon(){this.initialsContainer?.classList.add("ui5-avatar-initials-hidden");this.fallBackIconDomRef?.classList.remove("ui5-avatar-fallback-icon-hidden")}showInitials(){this.initialsContainer?.classList.remove("ui5-avatar-initials-hidden");this.fallBackIconDomRef?.classList.add("ui5-avatar-fallback-icon-hidden")}_onclick(t){t.stopPropagation();this._fireClick()}_onkeydown(e){if(!this._interactive){return}if(t.b(e)){this._fireClick()}if(t.A(e)){e.preventDefault()}}_onkeyup(e){if(this._interactive&&!e.shiftKey&&t.A(e)){this._fireClick()}}_fireClick(){this.fireDecoratorEvent("click")}_getAriaHasPopup(){const t=this.accessibilityAttributes.hasPopup;if(!this._interactive||!t){return}return t}_attachImageEventHandlers(){const t=this.imageEl;if(!t){this._imageLoadError=false;return}t.removeEventListener("load",this._onImageLoadBound);t.removeEventListener("error",this._onImageErrorBound);t.addEventListener("load",this._onImageLoadBound);t.addEventListener("error",this._onImageErrorBound);this._checkExistingImageState()}_checkExistingImageState(){const t=this.imageEl;if(!t){this._imageLoadError=false;return}if(t.complete&&t.naturalWidth===0){this._imageLoadError=true}else if(t.complete&&t.naturalWidth>0){this._imageLoadError=false}else{this._imageLoadError=false}}_detachImageEventHandlers(){const t=this.imageEl;if(!t){return}t.removeEventListener("load",this._onImageLoadBound);t.removeEventListener("error",this._onImageErrorBound)}_onImageLoad(t){if(t.target!==this.imageEl){t.target?.removeEventListener("load",this._onImageLoadBound);return}this._imageLoadError=false}_onImageError(t){if(t.target!==this.imageEl){t.target?.removeEventListener("error",this._onImageErrorBound);return}this._imageLoadError=true}get accessibilityInfo(){return{role:this._role,type:this.interactive?I.i18nBundle.getText(n.AVATAR_TYPE_BUTTON):I.i18nBundle.getText(n.AVATAR_TYPE_IMAGE),description:this.accessibleNameText,disabled:this.disabled}}};y([t.s({type:Boolean})],z.prototype,"disabled",void 0);y([t.s({type:Boolean})],z.prototype,"interactive",void 0);y([t.s()],z.prototype,"icon",void 0);y([t.s()],z.prototype,"fallbackIcon",void 0);y([t.s()],z.prototype,"initials",void 0);y([t.s()],z.prototype,"shape",void 0);y([t.s()],z.prototype,"size",void 0);y([t.s()],z.prototype,"colorScheme",void 0);y([t.s()],z.prototype,"_colorScheme",void 0);y([t.s()],z.prototype,"accessibleName",void 0);y([t.s({type:Object})],z.prototype,"accessibilityAttributes",void 0);y([t.s({noAttribute:true})],z.prototype,"forcedTabIndex",void 0);y([t.s({type:Boolean})],z.prototype,"_hasImage",void 0);y([t.s({type:Boolean,noAttribute:true})],z.prototype,"_imageLoadError",void 0);y([t.d({type:HTMLElement,default:true})],z.prototype,"image",void 0);y([t.d()],z.prototype,"badge",void 0);y([a.i("@ui5/webcomponents")],z,"i18nBundle",void 0);z=I=y([t.m({tag:"ui5-avatar",languageAware:true,renderer:o.y,styles:h,template:s}),e.l("click",{bubbles:true})],z);z.define();var L=z;return L});
2
+ //# sourceMappingURL=Avatar.js.map