@openui5/sap.f 1.141.2 → 1.142.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/README.md +2 -2
  2. package/REUSE.toml +39 -1
  3. package/THIRDPARTY.txt +36 -3
  4. package/package.json +19 -4
  5. package/src/sap/f/.library +34 -3
  6. package/src/sap/f/Avatar.js +1 -1
  7. package/src/sap/f/AvatarGroup.js +1 -1
  8. package/src/sap/f/AvatarGroupItem.js +1 -1
  9. package/src/sap/f/CalendarAppointmentInCard.js +1 -1
  10. package/src/sap/f/CalendarInCard.js +1 -1
  11. package/src/sap/f/Card.js +1 -1
  12. package/src/sap/f/CardBase.js +1 -1
  13. package/src/sap/f/DynamicPage.js +30 -12
  14. package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
  15. package/src/sap/f/DynamicPageHeader.js +1 -1
  16. package/src/sap/f/DynamicPageTitle.js +1 -1
  17. package/src/sap/f/FlexibleColumnLayout.js +1 -1
  18. package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
  19. package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
  20. package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
  21. package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
  22. package/src/sap/f/FlexibleColumnLayoutRenderer.js +2 -0
  23. package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
  24. package/src/sap/f/GridContainer.js +1 -1
  25. package/src/sap/f/GridContainerItemLayoutData.js +1 -1
  26. package/src/sap/f/GridContainerSettings.js +2 -2
  27. package/src/sap/f/GridList.js +1 -1
  28. package/src/sap/f/GridListItem.js +1 -1
  29. package/src/sap/f/IllustratedMessage.js +1 -1
  30. package/src/sap/f/Illustration.js +1 -1
  31. package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
  32. package/src/sap/f/ProductSwitch.js +1 -1
  33. package/src/sap/f/ProductSwitchItem.js +1 -1
  34. package/src/sap/f/SearchManager.js +1 -1
  35. package/src/sap/f/ShellBar.js +1 -1
  36. package/src/sap/f/SidePanel.js +1 -1
  37. package/src/sap/f/SidePanelItem.js +1 -1
  38. package/src/sap/f/cards/BaseHeader.js +1 -1
  39. package/src/sap/f/cards/Header.js +1 -1
  40. package/src/sap/f/cards/NumericHeader.js +1 -1
  41. package/src/sap/f/cards/NumericIndicators.js +1 -1
  42. package/src/sap/f/cards/NumericSideIndicator.js +1 -1
  43. package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
  44. package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
  45. package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
  46. package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
  47. package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
  48. package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
  49. package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
  50. package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
  51. package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
  52. package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
  53. package/src/sap/f/delegate/GridItemNavigation.js +1 -1
  54. package/src/sap/f/dnd/GridDragOver.js +1 -1
  55. package/src/sap/f/dnd/GridDropInfo.js +1 -1
  56. package/src/sap/f/gen/ui5/webcomponents/dist/Avatar.js +238 -0
  57. package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +339 -0
  58. package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +125 -0
  59. package/src/sap/f/gen/ui5/webcomponents/dist/ListItem.js +140 -0
  60. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemBase.js +64 -0
  61. package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +207 -0
  62. package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +280 -0
  63. package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +347 -0
  64. package/src/sap/f/gen/ui5/webcomponents.js +2819 -0
  65. package/src/sap/f/gen/ui5/webcomponents_base.js +572 -0
  66. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +211 -0
  67. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +204 -0
  68. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +164 -0
  69. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +243 -0
  70. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItemBase.js +87 -0
  71. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +248 -0
  72. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +125 -0
  73. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +60 -0
  74. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +88 -0
  75. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +76 -0
  76. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +81 -0
  77. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +655 -0
  78. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +122 -0
  79. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +139 -0
  80. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +232 -0
  81. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +74 -0
  82. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +279 -0
  83. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +129 -0
  84. package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +83 -0
  85. package/src/sap/f/gen/ui5/webcomponents_fiori.js +1648 -0
  86. package/src/sap/f/library.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/Card.less +8 -2
  117. package/src/sap/f/themes/base/CardHeaders.less +25 -3
  118. package/src/sap/f/themes/base/DynamicPage.less +6 -1
  119. package/src/sap/f/thirdparty/AccessibilityTextsHelper.js +13 -0
  120. package/src/sap/f/thirdparty/Avatar.js +453 -0
  121. package/src/sap/f/thirdparty/BusyIndicator.js +233 -0
  122. package/src/sap/f/thirdparty/Button.js +7 -0
  123. package/src/sap/f/thirdparty/Button2.js +656 -0
  124. package/src/sap/f/thirdparty/FocusableElements.js +10 -0
  125. package/src/sap/f/thirdparty/Icon.js +313 -0
  126. package/src/sap/f/thirdparty/Icons.js +234 -0
  127. package/src/sap/f/thirdparty/IllustratedMessage.js +1297 -0
  128. package/src/sap/f/thirdparty/Label.js +115 -0
  129. package/src/sap/f/thirdparty/Link.js +316 -0
  130. package/src/sap/f/thirdparty/List.js +1253 -0
  131. package/src/sap/f/thirdparty/ListBoxItemGroupTemplate.js +14 -0
  132. package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +10 -0
  133. package/src/sap/f/thirdparty/ListItemBase.js +251 -0
  134. package/src/sap/f/thirdparty/ListItemCustom.js +1689 -0
  135. package/src/sap/f/thirdparty/ListItemGroup.js +637 -0
  136. package/src/sap/f/thirdparty/Menu.js +389 -0
  137. package/src/sap/f/thirdparty/MenuItem.js +10 -0
  138. package/src/sap/f/thirdparty/MenuItem2.js +762 -0
  139. package/src/sap/f/thirdparty/NotificationList.js +291 -0
  140. package/src/sap/f/thirdparty/NotificationListGroupItem.js +310 -0
  141. package/src/sap/f/thirdparty/NotificationListItem.js +534 -0
  142. package/src/sap/f/thirdparty/NotificationListItemBase.js +98 -0
  143. package/src/sap/f/thirdparty/ResponsivePopover.js +2312 -0
  144. package/src/sap/f/thirdparty/SearchItem.css.js +10 -0
  145. package/src/sap/f/thirdparty/SearchItem.js +152 -0
  146. package/src/sap/f/thirdparty/SearchItemGroup.js +44 -0
  147. package/src/sap/f/thirdparty/SearchItemShowMore.js +86 -0
  148. package/src/sap/f/thirdparty/SearchMessageArea.js +49 -0
  149. package/src/sap/f/thirdparty/SearchScope.js +39 -0
  150. package/src/sap/f/thirdparty/ShellBar.js +1809 -0
  151. package/src/sap/f/thirdparty/ShellBarBranding.js +119 -0
  152. package/src/sap/f/thirdparty/ShellBarItem.js +89 -0
  153. package/src/sap/f/thirdparty/ShellBarSearch.js +7 -0
  154. package/src/sap/f/thirdparty/ShellBarSearch2.js +3453 -0
  155. package/src/sap/f/thirdparty/ShellBarSpacer.js +40 -0
  156. package/src/sap/f/thirdparty/Tag.js +302 -0
  157. package/src/sap/f/thirdparty/Text.js +127 -0
  158. package/src/sap/f/thirdparty/Title.js +167 -0
  159. package/src/sap/f/thirdparty/UserMenu.js +950 -0
  160. package/src/sap/f/thirdparty/UserMenuAccount.js +114 -0
  161. package/src/sap/f/thirdparty/UserMenuItem.js +61 -0
  162. package/src/sap/f/thirdparty/ValueState.js +7 -0
  163. package/src/sap/f/thirdparty/WrappingType.js +24 -0
  164. package/src/sap/f/thirdparty/_dynamics/InputComposition.js +35 -0
  165. package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +397 -0
  166. package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +193 -0
  167. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT.js +585 -0
  168. package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT2.js +585 -0
  169. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite.js +1194 -0
  170. package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite2.js +1194 -0
  171. package/src/sap/f/thirdparty/_dynamics/SAP-icons.js +2509 -0
  172. package/src/sap/f/thirdparty/_dynamics/SAP-icons2.js +2509 -0
  173. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar.js +866 -0
  174. package/src/sap/f/thirdparty/_dynamics/messagebundle_ar2.js +611 -0
  175. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg.js +866 -0
  176. package/src/sap/f/thirdparty/_dynamics/messagebundle_bg2.js +611 -0
  177. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca.js +866 -0
  178. package/src/sap/f/thirdparty/_dynamics/messagebundle_ca2.js +611 -0
  179. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr.js +866 -0
  180. package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr2.js +611 -0
  181. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs.js +866 -0
  182. package/src/sap/f/thirdparty/_dynamics/messagebundle_cs2.js +611 -0
  183. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy.js +866 -0
  184. package/src/sap/f/thirdparty/_dynamics/messagebundle_cy2.js +611 -0
  185. package/src/sap/f/thirdparty/_dynamics/messagebundle_da.js +866 -0
  186. package/src/sap/f/thirdparty/_dynamics/messagebundle_da2.js +611 -0
  187. package/src/sap/f/thirdparty/_dynamics/messagebundle_de.js +866 -0
  188. package/src/sap/f/thirdparty/_dynamics/messagebundle_de2.js +611 -0
  189. package/src/sap/f/thirdparty/_dynamics/messagebundle_el.js +866 -0
  190. package/src/sap/f/thirdparty/_dynamics/messagebundle_el2.js +611 -0
  191. package/src/sap/f/thirdparty/_dynamics/messagebundle_en.js +866 -0
  192. package/src/sap/f/thirdparty/_dynamics/messagebundle_en2.js +611 -0
  193. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB.js +866 -0
  194. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB2.js +611 -0
  195. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +866 -0
  196. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +611 -0
  197. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +866 -0
  198. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +611 -0
  199. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +866 -0
  200. package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +611 -0
  201. package/src/sap/f/thirdparty/_dynamics/messagebundle_es.js +866 -0
  202. package/src/sap/f/thirdparty/_dynamics/messagebundle_es2.js +611 -0
  203. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX.js +866 -0
  204. package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX2.js +611 -0
  205. package/src/sap/f/thirdparty/_dynamics/messagebundle_et.js +866 -0
  206. package/src/sap/f/thirdparty/_dynamics/messagebundle_et2.js +611 -0
  207. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi.js +866 -0
  208. package/src/sap/f/thirdparty/_dynamics/messagebundle_fi2.js +611 -0
  209. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr.js +866 -0
  210. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr2.js +611 -0
  211. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA.js +866 -0
  212. package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA2.js +611 -0
  213. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi.js +866 -0
  214. package/src/sap/f/thirdparty/_dynamics/messagebundle_hi2.js +611 -0
  215. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr.js +866 -0
  216. package/src/sap/f/thirdparty/_dynamics/messagebundle_hr2.js +611 -0
  217. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu.js +866 -0
  218. package/src/sap/f/thirdparty/_dynamics/messagebundle_hu2.js +611 -0
  219. package/src/sap/f/thirdparty/_dynamics/messagebundle_id.js +866 -0
  220. package/src/sap/f/thirdparty/_dynamics/messagebundle_id2.js +611 -0
  221. package/src/sap/f/thirdparty/_dynamics/messagebundle_it.js +866 -0
  222. package/src/sap/f/thirdparty/_dynamics/messagebundle_it2.js +611 -0
  223. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw.js +866 -0
  224. package/src/sap/f/thirdparty/_dynamics/messagebundle_iw2.js +611 -0
  225. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja.js +866 -0
  226. package/src/sap/f/thirdparty/_dynamics/messagebundle_ja2.js +611 -0
  227. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk.js +866 -0
  228. package/src/sap/f/thirdparty/_dynamics/messagebundle_kk2.js +611 -0
  229. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko.js +866 -0
  230. package/src/sap/f/thirdparty/_dynamics/messagebundle_ko2.js +611 -0
  231. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt.js +866 -0
  232. package/src/sap/f/thirdparty/_dynamics/messagebundle_lt2.js +611 -0
  233. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv.js +866 -0
  234. package/src/sap/f/thirdparty/_dynamics/messagebundle_lv2.js +611 -0
  235. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk.js +866 -0
  236. package/src/sap/f/thirdparty/_dynamics/messagebundle_mk2.js +611 -0
  237. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms.js +866 -0
  238. package/src/sap/f/thirdparty/_dynamics/messagebundle_ms2.js +611 -0
  239. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl.js +866 -0
  240. package/src/sap/f/thirdparty/_dynamics/messagebundle_nl2.js +611 -0
  241. package/src/sap/f/thirdparty/_dynamics/messagebundle_no.js +866 -0
  242. package/src/sap/f/thirdparty/_dynamics/messagebundle_no2.js +611 -0
  243. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl.js +866 -0
  244. package/src/sap/f/thirdparty/_dynamics/messagebundle_pl2.js +611 -0
  245. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt.js +866 -0
  246. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt2.js +611 -0
  247. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT.js +866 -0
  248. package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT2.js +611 -0
  249. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro.js +866 -0
  250. package/src/sap/f/thirdparty/_dynamics/messagebundle_ro2.js +611 -0
  251. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru.js +866 -0
  252. package/src/sap/f/thirdparty/_dynamics/messagebundle_ru2.js +611 -0
  253. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh.js +866 -0
  254. package/src/sap/f/thirdparty/_dynamics/messagebundle_sh2.js +611 -0
  255. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk.js +866 -0
  256. package/src/sap/f/thirdparty/_dynamics/messagebundle_sk2.js +611 -0
  257. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl.js +866 -0
  258. package/src/sap/f/thirdparty/_dynamics/messagebundle_sl2.js +611 -0
  259. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr.js +866 -0
  260. package/src/sap/f/thirdparty/_dynamics/messagebundle_sr2.js +611 -0
  261. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv.js +866 -0
  262. package/src/sap/f/thirdparty/_dynamics/messagebundle_sv2.js +611 -0
  263. package/src/sap/f/thirdparty/_dynamics/messagebundle_th.js +866 -0
  264. package/src/sap/f/thirdparty/_dynamics/messagebundle_th2.js +611 -0
  265. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr.js +866 -0
  266. package/src/sap/f/thirdparty/_dynamics/messagebundle_tr2.js +611 -0
  267. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk.js +866 -0
  268. package/src/sap/f/thirdparty/_dynamics/messagebundle_uk2.js +611 -0
  269. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi.js +866 -0
  270. package/src/sap/f/thirdparty/_dynamics/messagebundle_vi2.js +611 -0
  271. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN.js +866 -0
  272. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN2.js +611 -0
  273. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW.js +866 -0
  274. package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW2.js +611 -0
  275. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css10.js +7 -0
  276. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css11.js +7 -0
  277. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css12.js +7 -0
  278. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css13.js +7 -0
  279. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css14.js +7 -0
  280. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css15.js +7 -0
  281. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css16.js +7 -0
  282. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css17.js +7 -0
  283. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css18.js +7 -0
  284. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css19.js +7 -0
  285. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css20.js +7 -0
  286. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css21.js +7 -0
  287. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css22.js +7 -0
  288. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css23.js +7 -0
  289. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css24.js +7 -0
  290. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css25.js +7 -0
  291. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css26.js +7 -0
  292. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css27.js +7 -0
  293. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css4.js +7 -0
  294. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css5.js +7 -0
  295. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css6.js +7 -0
  296. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css7.js +7 -0
  297. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css8.js +7 -0
  298. package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css9.js +7 -0
  299. package/src/sap/f/thirdparty/encodeXML.js +87 -0
  300. package/src/sap/f/thirdparty/event-strict.js +7 -0
  301. package/src/sap/f/thirdparty/generateHighlightedMarkup.js +9 -0
  302. package/src/sap/f/thirdparty/i18n-defaults.js +119 -0
  303. package/src/sap/f/thirdparty/i18n-defaults2.js +159 -0
  304. package/src/sap/f/thirdparty/information.js +100 -0
  305. package/src/sap/f/thirdparty/information2.js +13 -0
  306. package/src/sap/f/thirdparty/overflow.js +25 -0
  307. package/src/sap/f/thirdparty/parameters-bundle.css.js +11 -0
  308. package/src/sap/f/thirdparty/parameters-bundle.css2.js +44 -0
  309. package/src/sap/f/thirdparty/parameters-bundle.css3.js +8 -0
  310. package/src/sap/f/thirdparty/query.js +7 -0
  311. package/src/sap/f/thirdparty/slim-arrow-down.js +44 -0
  312. package/src/sap/f/thirdparty/sys-enter-2.js +7 -0
  313. package/src/sap/f/thirdparty/toLowercaseEnumValue.js +7 -0
  314. package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +26 -0
  315. package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +26 -0
  316. package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +26 -0
  317. package/src/sap/f/thirdparty/webcomponents-base.js +7 -0
  318. package/src/sap/f/thirdparty/webcomponents-fiori.js +5 -0
  319. package/src/sap/f/thirdparty/webcomponents.js +4611 -0
  320. package/src/sap/f/thirdparty/willShowContent.js +7 -0
  321. package/ui5-build.yaml +55 -0
  322. package/ui5.yaml +46 -0
@@ -0,0 +1,114 @@
1
+ sap.ui.define(['sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/Icons'], (function (webcomponentsBase, Icons) { 'use strict';
2
+
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ 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;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ let UserMenuAccount =
10
+ /**
11
+ * @class
12
+ * ### Overview
13
+ *
14
+ * The `ui5-user-menu-account` represents an account in the `ui5-user-menu`.
15
+ *
16
+ * ### ES6 Module Import
17
+ * `import "@ui5/webcomponents-fiori/dist/UserMenuAccount.js";`
18
+ *
19
+ * @constructor
20
+ * @extends UI5Element
21
+ * @experimental
22
+ * @public
23
+ * @since 2.5.0
24
+ */
25
+ class UserMenuAccount extends webcomponentsBase.b {
26
+ constructor() {
27
+ super(...arguments);
28
+ /**
29
+ * Defines the title text of the user.
30
+ *
31
+ * @default ""
32
+ * @public
33
+ */
34
+ this.titleText = "";
35
+ /**
36
+ * Defines additional text of the user.
37
+ *
38
+ * @default ""
39
+ * @public
40
+ */
41
+ this.subtitleText = "";
42
+ /**
43
+ * Defines description of the user.
44
+ *
45
+ * @default ""
46
+ * @public
47
+ */
48
+ this.description = "";
49
+ /**
50
+ * Defines if the user is selected.
51
+ *
52
+ * @default false
53
+ * @public
54
+ */
55
+ this.selected = false;
56
+ /**
57
+ * Indicates whether a loading indicator should be shown.
58
+ * @default false
59
+ * @public
60
+ * @since 2.9.0
61
+ */
62
+ this.loading = false;
63
+ }
64
+ get _initials() {
65
+ return this.avatarInitials || "undefined";
66
+ }
67
+ };
68
+ __decorate([
69
+ webcomponentsBase.s({ type: String })
70
+ ], UserMenuAccount.prototype, "avatarSrc", void 0);
71
+ __decorate([
72
+ webcomponentsBase.s({ type: String })
73
+ ], UserMenuAccount.prototype, "avatarInitials", void 0);
74
+ __decorate([
75
+ webcomponentsBase.s({ type: String })
76
+ ], UserMenuAccount.prototype, "titleText", void 0);
77
+ __decorate([
78
+ webcomponentsBase.s({ type: String })
79
+ ], UserMenuAccount.prototype, "subtitleText", void 0);
80
+ __decorate([
81
+ webcomponentsBase.s({ type: String })
82
+ ], UserMenuAccount.prototype, "description", void 0);
83
+ __decorate([
84
+ webcomponentsBase.s({ type: Boolean })
85
+ ], UserMenuAccount.prototype, "selected", void 0);
86
+ __decorate([
87
+ webcomponentsBase.s({ type: Boolean })
88
+ ], UserMenuAccount.prototype, "loading", void 0);
89
+ UserMenuAccount = __decorate([
90
+ webcomponentsBase.m({
91
+ tag: "ui5-user-menu-account",
92
+ })
93
+ /**
94
+ * @class
95
+ * ### Overview
96
+ *
97
+ * The `ui5-user-menu-account` represents an account in the `ui5-user-menu`.
98
+ *
99
+ * ### ES6 Module Import
100
+ * `import "@ui5/webcomponents-fiori/dist/UserMenuAccount.js";`
101
+ *
102
+ * @constructor
103
+ * @extends UI5Element
104
+ * @experimental
105
+ * @public
106
+ * @since 2.5.0
107
+ */
108
+ ], UserMenuAccount);
109
+ UserMenuAccount.define();
110
+ var UserMenuAccount$1 = UserMenuAccount;
111
+
112
+ return UserMenuAccount$1;
113
+
114
+ }));
@@ -0,0 +1,61 @@
1
+ sap.ui.define(['sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/MenuItem2', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/parameters-bundle.css3', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/information', 'sap/f/thirdparty/ListItemCustom', 'sap/f/thirdparty/FocusableElements', 'sap/f/thirdparty/ListItemBase', 'sap/f/thirdparty/List', 'sap/f/thirdparty/toLowercaseEnumValue', 'sap/f/thirdparty/ListItemGroup', 'sap/f/thirdparty/i18n-defaults2', 'sap/f/thirdparty/WrappingType', 'sap/f/thirdparty/AccessibilityTextsHelper', 'sap/f/thirdparty/BusyIndicator', 'sap/f/thirdparty/willShowContent', 'sap/f/thirdparty/Label', 'sap/f/thirdparty/ListItemAdditionalText.css', 'sap/f/thirdparty/Button2', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/ValueState', 'sap/f/thirdparty/ResponsivePopover', 'sap/f/thirdparty/Title'], (function (webcomponentsBase, MenuItem, Icons, parametersBundle_css, parametersBundle_css$1, eventStrict, parametersBundle_css$2, information, ListItemCustom, FocusableElements, ListItemBase, List, toLowercaseEnumValue, ListItemGroup, i18nDefaults, WrappingType, AccessibilityTextsHelper, BusyIndicator, willShowContent, Label, ListItemAdditionalText_css, Button, Icon, ValueState, ResponsivePopover, Title) { 'use strict';
2
+
3
+ function UserMenuItemTemplate() {
4
+ return [MenuItem.MenuItemTemplate.call(this)];
5
+ }
6
+
7
+ Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
8
+ Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "f" + "i" + "o" + "r" + "i", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
9
+ var userMenuItemCss = `:host{height:40px}:host(:last-of-type){margin-bottom:0}:host(:first-of-type){margin-top:0}
10
+ `;
11
+
12
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+ 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;
16
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+ };
18
+ /**
19
+ * @class
20
+ *
21
+ * ### Overview
22
+ *
23
+ * `ui5-user-menu-item` is the item to use inside a `ui5-user-menu`.
24
+ * An arbitrary hierarchy structure can be represented by recursively nesting menu items.
25
+ *
26
+ * ### Usage
27
+ *
28
+ * `ui5-user-menu-item` represents a node in a `ui5-user-menu`. The user menu itself is rendered as a list,
29
+ * and each `ui5-menu-item` is represented by a menu item in that menu. Therefore, you should only use
30
+ * `ui5-user-menu-item` directly in your apps. The `ui5-menu` menu item is internal for the menu, and not intended for public use.
31
+ *
32
+ * ### ES6 Module Import
33
+ *
34
+ * `import "@ui5/webcomponents-fiori/dist/UserMenuItem.js";`
35
+ * @constructor
36
+ * @extends MenuItem
37
+ * @experimental
38
+ * @public
39
+ * @since 2.5.0
40
+ */
41
+ let UserMenuItem = class UserMenuItem extends MenuItem.MenuItem {
42
+ get _menuItems() {
43
+ return this.items.filter(MenuItem.isInstanceOfMenuItem);
44
+ }
45
+ };
46
+ __decorate([
47
+ webcomponentsBase.d({ "default": true, type: HTMLElement, invalidateOnChildChange: true })
48
+ ], UserMenuItem.prototype, "items", void 0);
49
+ UserMenuItem = __decorate([
50
+ webcomponentsBase.m({
51
+ tag: "ui5-user-menu-item",
52
+ template: UserMenuItemTemplate,
53
+ styles: [MenuItem.MenuItem.styles, userMenuItemCss],
54
+ })
55
+ ], UserMenuItem);
56
+ UserMenuItem.define();
57
+ var UserMenuItem$1 = UserMenuItem;
58
+
59
+ return UserMenuItem$1;
60
+
61
+ }));
@@ -0,0 +1,7 @@
1
+ sap.ui.define(['exports'], (function (exports) { 'use strict';
2
+
3
+ var o=(i=>(i.None="None",i.Positive="Positive",i.Critical="Critical",i.Negative="Negative",i.Information="Information",i))(o||{});
4
+
5
+ exports.o = o;
6
+
7
+ }));
@@ -0,0 +1,24 @@
1
+ sap.ui.define(['exports'], (function (exports) { 'use strict';
2
+
3
+ /**
4
+ * Different types of wrapping.
5
+ * @public
6
+ */
7
+ var WrappingType;
8
+ (function (WrappingType) {
9
+ /**
10
+ * The text will be truncated with an ellipsis.
11
+ * @public
12
+ */
13
+ WrappingType["None"] = "None";
14
+ /**
15
+ * The text will wrap. The words will not be broken based on hyphenation.
16
+ * @public
17
+ */
18
+ WrappingType["Normal"] = "Normal";
19
+ })(WrappingType || (WrappingType = {}));
20
+ var WrappingType$1 = WrappingType;
21
+
22
+ exports.WrappingType = WrappingType$1;
23
+
24
+ }));
@@ -0,0 +1,35 @@
1
+ sap.ui.define(['exports'], (function (exports) { 'use strict';
2
+
3
+ class InputComposition {
4
+ constructor(component) {
5
+ this._onComposition = () => {
6
+ this._component.updateCompositionState(true);
7
+ };
8
+ this._onCompositionEnd = () => {
9
+ this._component.updateCompositionState(false);
10
+ };
11
+ this._component = component;
12
+ }
13
+ addEventListeners() {
14
+ const el = this._component.getInputEl();
15
+ if (!el) {
16
+ return;
17
+ }
18
+ el.addEventListener("compositionstart", this._onComposition);
19
+ el.addEventListener("compositionupdate", this._onComposition);
20
+ el.addEventListener("compositionend", this._onCompositionEnd);
21
+ }
22
+ removeEventListeners() {
23
+ const el = this._component.getInputEl();
24
+ if (!el) {
25
+ return;
26
+ }
27
+ el.removeEventListener("compositionstart", this._onComposition);
28
+ el.removeEventListener("compositionupdate", this._onComposition);
29
+ el.removeEventListener("compositionend", this._onCompositionEnd);
30
+ }
31
+ }
32
+
33
+ exports.default = InputComposition;
34
+
35
+ }));
@@ -0,0 +1,397 @@
1
+ sap.ui.define(['exports', 'sap/f/thirdparty/generateHighlightedMarkup', 'sap/f/thirdparty/ShellBarSearch2', 'sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/ListItemGroup', 'sap/f/thirdparty/ListBoxItemGroupTemplate', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/List', 'sap/f/thirdparty/ResponsivePopover', 'sap/f/thirdparty/Button2', 'sap/f/thirdparty/i18n-defaults2', 'sap/f/thirdparty/encodeXML', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/ListItemBase', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/ListItemAdditionalText.css', 'sap/f/thirdparty/AccessibilityTextsHelper', 'sap/f/thirdparty/ValueState', 'sap/f/thirdparty/information', 'sap/f/thirdparty/Label', 'sap/f/thirdparty/slim-arrow-down', 'sap/f/thirdparty/Title', 'sap/f/thirdparty/BusyIndicator', 'sap/f/thirdparty/willShowContent', 'sap/f/thirdparty/information2', 'sap/f/thirdparty/sys-enter-2', 'sap/f/thirdparty/parameters-bundle.css3', 'sap/f/thirdparty/i18n-defaults', 'sap/f/thirdparty/toLowercaseEnumValue', 'sap/f/thirdparty/WrappingType', 'sap/f/thirdparty/FocusableElements'], (function (exports, generateHighlightedMarkup, ShellBarSearch, webcomponentsBase, ListItemGroup, ListBoxItemGroupTemplate, parametersBundle_css, Icon, List, ResponsivePopover, Button, i18nDefaults, encodeXML, eventStrict, Icons, ListItemBase, parametersBundle_css$1, ListItemAdditionalText_css, AccessibilityTextsHelper, ValueState, information, Label, slimArrowDown, Title, BusyIndicator, willShowContent, information$1, sysEnter2, parametersBundle_css$2, i18nDefaults$1, toLowercaseEnumValue, WrappingType, FocusableElements) { 'use strict';
2
+
3
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6
+ 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;
7
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8
+ };
9
+ /**
10
+ * @class
11
+ * The `ui5-suggestion-item-group` is type of suggestion item,
12
+ * that can be used to split the `ui5-input` suggestions into groups.
13
+ * @constructor
14
+ * @extends ListItemGroup
15
+ * @public
16
+ * @since 2.0.0
17
+ */
18
+ let SuggestionItemGroup = class SuggestionItemGroup extends ListItemGroup.ListItemGroup {
19
+ };
20
+ __decorate([
21
+ webcomponentsBase.d({
22
+ "default": true,
23
+ invalidateOnChildChange: true,
24
+ type: HTMLElement,
25
+ })
26
+ ], SuggestionItemGroup.prototype, "items", void 0);
27
+ SuggestionItemGroup = __decorate([
28
+ webcomponentsBase.m({
29
+ tag: "ui5-suggestion-item-group",
30
+ template: ListBoxItemGroupTemplate.ListItemGroupTemplate,
31
+ })
32
+ ], SuggestionItemGroup);
33
+ SuggestionItemGroup.define();
34
+
35
+ function InputSuggestionsTemplate(hooks) {
36
+ const suggestionsList = hooks?.suggestionsList || defaultSuggestionsList;
37
+ const valueStateMessage = hooks?.valueStateMessage;
38
+ const valueStateMessageInputIcon = hooks?.valueStateMessageInputIcon;
39
+ return (parametersBundle_css.jsxs(ResponsivePopover.ResponsivePopover, { class: this.classes.popover, hideArrow: true, preventFocusRestore: true, preventInitialFocus: true, placement: "Bottom", horizontalAlign: "Start", tabindex: -1, style: this.styles.suggestionsPopover, onOpen: this._afterOpenPicker, onClose: this._afterClosePicker, onScroll: this._scroll, open: this.open, opener: this, accessibleName: this._popupLabel, children: [this._isPhone &&
40
+ parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsxs("div", { slot: "header", class: "ui5-responsive-popover-header", children: [parametersBundle_css.jsx("div", { class: "row", children: parametersBundle_css.jsx("span", { children: this._headerTitleText }) }), parametersBundle_css.jsx("div", { class: "row", children: parametersBundle_css.jsx("div", { class: "input-root-phone native-input-wrapper", children: parametersBundle_css.jsx(ShellBarSearch.Input, { class: "ui5-input-inner-phone", type: this.inputType, value: this.value, showClearIcon: this.showClearIcon, placeholder: this.placeholder, onInput: this._handleInput, onChange: this._handleChange }) }) })] }), this.hasValueStateMessage &&
41
+ parametersBundle_css.jsxs("div", { class: this.classes.popoverValueState, style: this.styles.suggestionPopoverHeader, children: [parametersBundle_css.jsx(Icon.Icon, { class: "ui5-input-value-state-message-icon", name: valueStateMessageInputIcon?.call(this) }), this.open && valueStateMessage?.call(this)] })] }), !this._isPhone && this.hasValueStateMessage &&
42
+ parametersBundle_css.jsxs("div", { slot: "header", class: {
43
+ "ui5-responsive-popover-header": true,
44
+ ...this.classes.popoverValueState,
45
+ }, style: this.styles.suggestionPopoverHeader, children: [parametersBundle_css.jsx(Icon.Icon, { class: "ui5-input-value-state-message-icon", name: valueStateMessageInputIcon?.call(this) }), this.open && valueStateMessage?.call(this)] }), suggestionsList.call(this), this._isPhone &&
46
+ parametersBundle_css.jsxs("div", { slot: "footer", class: "ui5-responsive-popover-footer", children: [parametersBundle_css.jsx(Button.Button, { design: "Emphasized", onClick: this._closePicker, children: this._suggestionsOkButtonText }), parametersBundle_css.jsx(Button.Button, { class: "ui5-responsive-popover-close-btn", design: "Transparent", onClick: this._closePicker, children: this._suggestionsCancelButtonText })] })] }));
47
+ }
48
+ function defaultSuggestionsList() {
49
+ return (parametersBundle_css.jsx(List.List, { accessibleRole: List.ListAccessibleRole.ListBox, separators: this.suggestionSeparators, selectionMode: "Single", onMouseDown: this.onItemMouseDown, onItemClick: this._handleSuggestionItemPress, onSelectionChange: this._handleSelectionChange, children: parametersBundle_css.jsx("slot", {}) }));
50
+ }
51
+
52
+ /**
53
+ * A class to manage the `Input` suggestion items.
54
+ * @class
55
+ * @private
56
+ */
57
+ class Suggestions {
58
+ get template() {
59
+ return InputSuggestionsTemplate;
60
+ }
61
+ constructor(component, slotName, highlight, handleFocus) {
62
+ // The component, that the suggestion would plug into.
63
+ this.component = component;
64
+ // Defines the items` slot name.
65
+ this.slotName = slotName;
66
+ // Defines, if the focus will be moved via the arrow keys.
67
+ this.handleFocus = handleFocus;
68
+ // Defines, if the suggestions should highlight.
69
+ this.highlight = highlight;
70
+ // An integer value to store the currently selected item position,
71
+ // that changes due to user interaction.
72
+ this.selectedItemIndex = -1;
73
+ }
74
+ onUp(e, indexOfItem) {
75
+ e.preventDefault();
76
+ const index = !this.isOpened && this._hasValueState && indexOfItem === -1 ? 0 : indexOfItem;
77
+ this._handleItemNavigation(false /* forward */, index);
78
+ return true;
79
+ }
80
+ onDown(e, indexOfItem) {
81
+ e.preventDefault();
82
+ const index = !this.isOpened && this._hasValueState && indexOfItem === -1 ? 0 : indexOfItem;
83
+ this._handleItemNavigation(true /* forward */, index);
84
+ return true;
85
+ }
86
+ onSpace(e) {
87
+ if (this._isItemOnTarget()) {
88
+ e.preventDefault();
89
+ this.onItemSelected(this._selectedItem, true /* keyboardUsed */);
90
+ return true;
91
+ }
92
+ return false;
93
+ }
94
+ onEnter(e) {
95
+ if (this._isGroupItem) {
96
+ e.preventDefault();
97
+ return false;
98
+ }
99
+ if (this._isItemOnTarget()) {
100
+ this.onItemSelected(this._selectedItem, true /* keyboardUsed */);
101
+ return true;
102
+ }
103
+ return false;
104
+ }
105
+ onPageUp(e) {
106
+ e.preventDefault();
107
+ const isItemIndexValid = this.selectedItemIndex - 10 > -1;
108
+ this._moveItemSelection(this.selectedItemIndex, isItemIndexValid ? this.selectedItemIndex -= 10 : this.selectedItemIndex = 0);
109
+ return true;
110
+ }
111
+ onPageDown(e) {
112
+ e.preventDefault();
113
+ const items = this._getItems();
114
+ if (!items) {
115
+ return true;
116
+ }
117
+ const lastItemIndex = items.length - 1;
118
+ const isItemIndexValid = this.selectedItemIndex + 10 <= lastItemIndex;
119
+ this._moveItemSelection(this.selectedItemIndex, isItemIndexValid ? this.selectedItemIndex += 10 : this.selectedItemIndex = lastItemIndex);
120
+ return true;
121
+ }
122
+ onHome(e) {
123
+ e.preventDefault();
124
+ this._moveItemSelection(this.selectedItemIndex, this.selectedItemIndex = 0);
125
+ return true;
126
+ }
127
+ onEnd(e) {
128
+ e.preventDefault();
129
+ const lastItemIndex = this._getItems().length - 1;
130
+ if (!lastItemIndex) {
131
+ return true;
132
+ }
133
+ this._moveItemSelection(this.selectedItemIndex, this.selectedItemIndex = lastItemIndex);
134
+ return true;
135
+ }
136
+ onTab() {
137
+ if (this._isItemOnTarget()) {
138
+ this.onItemSelected(this._selectedItem, true);
139
+ return true;
140
+ }
141
+ return false;
142
+ }
143
+ toggle(bToggle, options) {
144
+ const toggle = bToggle !== undefined ? bToggle : !this.isOpened();
145
+ if (toggle) {
146
+ this._getComponent().open = true;
147
+ }
148
+ else {
149
+ this.close(options.preventFocusRestore);
150
+ }
151
+ }
152
+ get _selectedItem() {
153
+ return this._getNonGroupItems().find(item => item.selected);
154
+ }
155
+ _isScrollable() {
156
+ const sc = this._getScrollContainer();
157
+ return sc.offsetHeight < sc.scrollHeight;
158
+ }
159
+ close(preventFocusRestore = false) {
160
+ const selectedItem = this._getItems() && this._getItems()[this.selectedItemIndex];
161
+ this._getComponent().open = false;
162
+ const picker = this._getPicker();
163
+ picker.preventFocusRestore = preventFocusRestore;
164
+ picker.open = false;
165
+ if (selectedItem && selectedItem.focused) {
166
+ selectedItem.focused = false;
167
+ }
168
+ }
169
+ updateSelectedItemPosition(pos) {
170
+ this.selectedItemIndex = pos;
171
+ }
172
+ onItemSelected(selectedItem, keyboardUsed) {
173
+ const item = selectedItem;
174
+ const nonGroupItems = this._getNonGroupItems();
175
+ if (!item) {
176
+ return;
177
+ }
178
+ this.accInfo = {
179
+ isGroup: item.hasAttribute("ui5-suggestion-item-group"),
180
+ currentPos: nonGroupItems.indexOf(item) + 1,
181
+ listSize: nonGroupItems.length,
182
+ itemText: item.text || "",
183
+ additionalText: item.additionalText,
184
+ };
185
+ this._getComponent().onItemSelected(item, keyboardUsed);
186
+ this._getComponent().open = false;
187
+ }
188
+ onItemSelect(item) {
189
+ this._getComponent().onItemSelect(item);
190
+ }
191
+ /* Private methods */
192
+ // Note: Split into two separate handlers
193
+ onItemPress(e) {
194
+ let pressedItem; // SuggestionListItem
195
+ const isPressEvent = e.type === "ui5-item-click";
196
+ // Only use the press e if the item is already selected, in all other cases we are listening for 'ui5-selection-change' from the list
197
+ // Also we have to check if the selection-change is fired by the list's 'item-click' event handling, to avoid double handling on our side
198
+ if ((isPressEvent && !e.detail.item.selected) || (this._handledPress && !isPressEvent)) {
199
+ return;
200
+ }
201
+ if (isPressEvent && e.detail.item.selected) {
202
+ pressedItem = e.detail.item;
203
+ this._handledPress = true;
204
+ }
205
+ else {
206
+ pressedItem = e.detail.selectedItems[0];
207
+ }
208
+ this.onItemSelected(pressedItem, false /* keyboardUsed */);
209
+ }
210
+ _onClose() {
211
+ this._handledPress = false;
212
+ }
213
+ _isItemOnTarget() {
214
+ return this.isOpened() && this.selectedItemIndex !== null && this.selectedItemIndex !== -1 && !this._isGroupItem;
215
+ }
216
+ get _isGroupItem() {
217
+ const items = this._getItems();
218
+ if (!items || !items[this.selectedItemIndex]) {
219
+ return false;
220
+ }
221
+ return items[this.selectedItemIndex].hasAttribute("ui5-suggestion-item-group");
222
+ }
223
+ isOpened() {
224
+ return !!(this._getPicker()?.open);
225
+ }
226
+ _handleItemNavigation(forward, index) {
227
+ this.selectedItemIndex = index;
228
+ if (!this._getItems().length) {
229
+ return;
230
+ }
231
+ if (forward) {
232
+ this._selectNextItem();
233
+ }
234
+ else {
235
+ this._selectPreviousItem();
236
+ }
237
+ }
238
+ _selectNextItem() {
239
+ const itemsCount = this._getItems().length;
240
+ const previousSelectedIdx = this.selectedItemIndex;
241
+ if (previousSelectedIdx !== -1 && previousSelectedIdx + 1 > itemsCount - 1) {
242
+ return;
243
+ }
244
+ this._moveItemSelection(previousSelectedIdx, ++this.selectedItemIndex);
245
+ }
246
+ _selectPreviousItem() {
247
+ const items = this._getItems();
248
+ const previousSelectedIdx = this.selectedItemIndex;
249
+ if (previousSelectedIdx === -1 || previousSelectedIdx === null) {
250
+ return;
251
+ }
252
+ if (previousSelectedIdx - 1 < 0) {
253
+ if (items[previousSelectedIdx].hasAttribute("ui5-suggestion-item") || items[previousSelectedIdx].hasAttribute("ui5-suggestion-item-custom")) {
254
+ items[previousSelectedIdx].selected = false;
255
+ }
256
+ items[previousSelectedIdx].focused = false;
257
+ this.component.focused = true;
258
+ this.component.hasSuggestionItemSelected = false;
259
+ this.selectedItemIndex -= 1;
260
+ return;
261
+ }
262
+ this._moveItemSelection(previousSelectedIdx, --this.selectedItemIndex);
263
+ }
264
+ _moveItemSelection(previousIdx, nextIdx) {
265
+ const items = this._getItems();
266
+ const currentItem = items[nextIdx];
267
+ const previousItem = items[previousIdx];
268
+ const nonGroupItems = this._getNonGroupItems();
269
+ const isGroupItem = currentItem.hasAttribute("ui5-suggestion-item-group");
270
+ if (!currentItem) {
271
+ return;
272
+ }
273
+ this.component.focused = false;
274
+ const selectedItem = this._getItems()[this.selectedItemIndex];
275
+ this.accInfo = {
276
+ isGroup: isGroupItem,
277
+ currentPos: items.indexOf(currentItem) + 1,
278
+ itemText: (isGroupItem ? selectedItem.headerText : selectedItem.text) || "",
279
+ };
280
+ if (currentItem.hasAttribute("ui5-suggestion-item") || currentItem.hasAttribute("ui5-suggestion-item-custom")) {
281
+ this.accInfo.additionalText = currentItem.additionalText || "";
282
+ this.accInfo.currentPos = nonGroupItems.indexOf(currentItem) + 1;
283
+ this.accInfo.listSize = nonGroupItems.length;
284
+ }
285
+ if (previousItem) {
286
+ previousItem.focused = false;
287
+ }
288
+ if (previousItem?.hasAttribute("ui5-suggestion-item") || previousItem?.hasAttribute("ui5-suggestion-item-custom")) {
289
+ previousItem.selected = false;
290
+ }
291
+ if (currentItem) {
292
+ currentItem.focused = true;
293
+ if (!isGroupItem) {
294
+ currentItem.selected = true;
295
+ }
296
+ if (this.handleFocus) {
297
+ currentItem.focus();
298
+ }
299
+ }
300
+ this.component.hasSuggestionItemSelected = true;
301
+ this.onItemSelect(currentItem);
302
+ if (!this._isItemIntoView(currentItem)) {
303
+ const itemRef = this._isGroupItem ? currentItem.shadowRoot.querySelector("[ui5-li-group-header]") : currentItem;
304
+ this._scrollItemIntoView(itemRef);
305
+ }
306
+ }
307
+ _deselectItems() {
308
+ const items = this._getItems();
309
+ items.forEach(item => {
310
+ if (item.hasAttribute("ui5-suggestion-item")) {
311
+ item.selected = false;
312
+ }
313
+ item.focused = false;
314
+ });
315
+ }
316
+ _clearItemFocus() {
317
+ const focusedItem = this._getItems().find(item => item.focused);
318
+ if (focusedItem) {
319
+ focusedItem.focused = false;
320
+ }
321
+ }
322
+ _isItemIntoView(item) {
323
+ const rectItem = item.getDomRef().getBoundingClientRect();
324
+ const rectInput = this._getComponent().getDomRef().getBoundingClientRect();
325
+ const windowHeight = (window.innerHeight || document.documentElement.clientHeight);
326
+ let headerHeight = 0;
327
+ if (this._hasValueState) {
328
+ const valueStateHeader = this._getPicker().querySelector("[slot=header]");
329
+ headerHeight = valueStateHeader.getBoundingClientRect().height;
330
+ }
331
+ return (rectItem.top + Suggestions.SCROLL_STEP <= windowHeight) && (rectItem.top >= rectInput.top + headerHeight);
332
+ }
333
+ _scrollItemIntoView(item) {
334
+ item.scrollIntoView({
335
+ behavior: "auto",
336
+ block: "nearest",
337
+ inline: "nearest",
338
+ });
339
+ }
340
+ _getScrollContainer() {
341
+ if (!this._scrollContainer) {
342
+ this._scrollContainer = this._getPicker().shadowRoot.querySelector(".ui5-popup-content");
343
+ }
344
+ return this._scrollContainer;
345
+ }
346
+ /**
347
+ * Returns the items in 1D array.
348
+ *
349
+ */
350
+ _getItems() {
351
+ const suggestionComponent = this._getComponent();
352
+ return suggestionComponent.getSlottedNodes("suggestionItems").flatMap(item => {
353
+ return item.hasAttribute("ui5-suggestion-item-group") ? [item, ...item.items] : [item];
354
+ });
355
+ }
356
+ _getNonGroupItems() {
357
+ return this._getItems().filter(item => !item.hasAttribute("ui5-suggestion-item-group"));
358
+ }
359
+ _getComponent() {
360
+ return this.component;
361
+ }
362
+ _getList() {
363
+ return this._getPicker().querySelector("[ui5-list]");
364
+ }
365
+ _getListWidth() {
366
+ return this._getList()?.offsetWidth;
367
+ }
368
+ _getPicker() {
369
+ return this._getComponent().shadowRoot.querySelector("[ui5-responsive-popover]");
370
+ }
371
+ get itemSelectionAnnounce() {
372
+ if (!this.accInfo) {
373
+ return "";
374
+ }
375
+ if (this.accInfo.isGroup) {
376
+ return `${Suggestions.i18nBundle.getText(i18nDefaults.LIST_ITEM_GROUP_HEADER)} ${this.accInfo.itemText}`;
377
+ }
378
+ const itemPositionText = Suggestions.i18nBundle.getText(i18nDefaults.LIST_ITEM_POSITION, this.accInfo.currentPos || 0, this.accInfo.listSize || 0);
379
+ return `${this.accInfo.additionalText} ${itemPositionText}`;
380
+ }
381
+ hightlightInput(text, input) {
382
+ return generateHighlightedMarkup.f(text, input);
383
+ }
384
+ get _hasValueState() {
385
+ return this.component.hasValueStateMessage;
386
+ }
387
+ _clearSelectedSuggestionAndaccInfo() {
388
+ this.accInfo = undefined;
389
+ this.selectedItemIndex = 0;
390
+ }
391
+ }
392
+ Suggestions.SCROLL_STEP = 60;
393
+ ShellBarSearch.Input.SuggestionsClass = Suggestions;
394
+
395
+ exports.default = Suggestions;
396
+
397
+ }));