@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,656 @@
1
+ sap.ui.define(['exports', 'sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/AccessibilityTextsHelper', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/willShowContent', 'sap/f/thirdparty/toLowercaseEnumValue', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/BusyIndicator', 'sap/f/thirdparty/i18n-defaults2'], (function (exports, webcomponentsBase, eventStrict, parametersBundle_css$1, parametersBundle_css, AccessibilityTextsHelper, Icons, willShowContent, toLowercaseEnumValue, Icon, BusyIndicator, i18nDefaults) { 'use strict';
2
+
3
+ let e;const l=()=>(e===void 0&&(e=Icons.b()),e);
4
+
5
+ /**
6
+ * Different Button designs.
7
+ * @public
8
+ */
9
+ var ButtonDesign;
10
+ (function (ButtonDesign) {
11
+ /**
12
+ * default type (no special styling)
13
+ * @public
14
+ */
15
+ ButtonDesign["Default"] = "Default";
16
+ /**
17
+ * accept type (green button)
18
+ * @public
19
+ */
20
+ ButtonDesign["Positive"] = "Positive";
21
+ /**
22
+ * reject style (red button)
23
+ * @public
24
+ */
25
+ ButtonDesign["Negative"] = "Negative";
26
+ /**
27
+ * transparent type
28
+ * @public
29
+ */
30
+ ButtonDesign["Transparent"] = "Transparent";
31
+ /**
32
+ * emphasized type
33
+ * @public
34
+ */
35
+ ButtonDesign["Emphasized"] = "Emphasized";
36
+ /**
37
+ * attention type
38
+ * @public
39
+ */
40
+ ButtonDesign["Attention"] = "Attention";
41
+ })(ButtonDesign || (ButtonDesign = {}));
42
+ var ButtonDesign$1 = ButtonDesign;
43
+
44
+ /**
45
+ * Determines if the button has special form-related functionality.
46
+ * @public
47
+ */
48
+ var ButtonType;
49
+ (function (ButtonType) {
50
+ /**
51
+ * The button does not do anything special when inside a form
52
+ * @public
53
+ */
54
+ ButtonType["Button"] = "Button";
55
+ /**
56
+ * The button acts as a submit button (submits a form)
57
+ * @public
58
+ */
59
+ ButtonType["Submit"] = "Submit";
60
+ /**
61
+ * The button acts as a reset button (resets a form)
62
+ * @public
63
+ */
64
+ ButtonType["Reset"] = "Reset";
65
+ })(ButtonType || (ButtonType = {}));
66
+ var ButtonType$1 = ButtonType;
67
+
68
+ /**
69
+ * Determines where the badge will be placed and how it will be styled.
70
+ * @since 2.7.0
71
+ * @public
72
+ */
73
+ var ButtonBadgeDesign;
74
+ (function (ButtonBadgeDesign) {
75
+ /**
76
+ * The badge is displayed after the text, inside the button.
77
+ * @public
78
+ */
79
+ ButtonBadgeDesign["InlineText"] = "InlineText";
80
+ /**
81
+ * The badge is displayed at the top-end corner of the button.
82
+ *
83
+ * **Note:** According to design guidance, the OverlayText design mode is best used in cozy density to avoid potential visual issues in compact.
84
+ * @public
85
+ */
86
+ ButtonBadgeDesign["OverlayText"] = "OverlayText";
87
+ /**
88
+ * The badge is displayed as an attention dot.
89
+ * @public
90
+ */
91
+ ButtonBadgeDesign["AttentionDot"] = "AttentionDot";
92
+ })(ButtonBadgeDesign || (ButtonBadgeDesign = {}));
93
+ var ButtonBadgeDesign$1 = ButtonBadgeDesign;
94
+
95
+ /**
96
+ * Different BusyIndicator sizes.
97
+ * @public
98
+ */
99
+ var BusyIndicatorSize;
100
+ (function (BusyIndicatorSize) {
101
+ /**
102
+ * small size
103
+ * @public
104
+ */
105
+ BusyIndicatorSize["S"] = "S";
106
+ /**
107
+ * medium size
108
+ * @public
109
+ */
110
+ BusyIndicatorSize["M"] = "M";
111
+ /**
112
+ * large size
113
+ * @public
114
+ */
115
+ BusyIndicatorSize["L"] = "L";
116
+ })(BusyIndicatorSize || (BusyIndicatorSize = {}));
117
+ var BusyIndicatorSize$1 = BusyIndicatorSize;
118
+
119
+ function ButtonTemplate(injectedProps) {
120
+ return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsxs("button", { type: "button", class: {
121
+ "ui5-button-root": true,
122
+ "ui5-button-badge-placement-end": this.badge[0]?.design === "InlineText",
123
+ "ui5-button-badge-placement-end-top": this.badge[0]?.design === "OverlayText",
124
+ "ui5-button-badge-dot": this.badge[0]?.design === "AttentionDot"
125
+ }, disabled: this.disabled, "data-sap-focus-ref": true, "aria-pressed": injectedProps?.ariaPressed, "aria-valuemin": injectedProps?.ariaValueMin, "aria-valuemax": injectedProps?.ariaValueMax, "aria-valuenow": injectedProps?.ariaValueNow, "aria-valuetext": injectedProps?.ariaValueText, onFocusOut: this._onfocusout, onClick: this._onclick, onMouseDown: this._onmousedown, onKeyDown: this._onkeydown, onKeyUp: this._onkeyup, onTouchStart: this._ontouchstart, onTouchEnd: this._ontouchend, tabindex: this.tabIndexValue, "aria-expanded": this._computedAccessibilityAttributes?.expanded, "aria-controls": this._computedAccessibilityAttributes?.controls, "aria-haspopup": this._computedAccessibilityAttributes?.hasPopup, "aria-label": this._computedAccessibilityAttributes?.ariaLabel, "aria-keyshortcuts": this._computedAccessibilityAttributes?.ariaKeyShortcuts, "aria-description": this.ariaDescriptionText, "aria-busy": this.loading ? "true" : undefined, title: this.buttonTitle, part: "button", role: this.effectiveAccRole, children: [this.icon &&
126
+ parametersBundle_css.jsx(Icon.Icon, { class: "ui5-button-icon", name: this.icon, mode: "Decorative", part: "icon" }), parametersBundle_css.jsx("span", { id: `${this._id}-content`, class: "ui5-button-text", children: parametersBundle_css.jsx("bdi", { children: parametersBundle_css.jsx("slot", {}) }) }), this.endIcon &&
127
+ parametersBundle_css.jsx(Icon.Icon, { class: "ui5-button-end-icon", name: this.endIcon, mode: "Decorative", part: "endIcon" }), this.shouldRenderBadge &&
128
+ parametersBundle_css.jsx("slot", { name: "badge" })] }), this.loading &&
129
+ parametersBundle_css.jsx(BusyIndicator.BusyIndicator, { id: `${this._id}-button-busy-indicator`, class: "ui5-button-busy-indicator", size: this.iconOnly ? BusyIndicatorSize$1.S : BusyIndicatorSize$1.M, active: true, delay: this.loadingDelay, inert: this.loading })] }));
130
+ }
131
+
132
+ Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
133
+ 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);
134
+ var buttonCss = `:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{min-width:var(--_ui5-v2-15-0_button_base_min_width);height:var(--_ui5-v2-15-0_button_base_height);line-height:normal;font-family:var(--_ui5-v2-15-0_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5-v2-15-0_button_text_shadow);border-radius:var(--_ui5-v2-15-0_button_border_radius);cursor:pointer;background-color:var(--sapButton_Background);border:var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);color:var(--sapButton_TextColor);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}.ui5-button-root{min-width:inherit;cursor:inherit;height:100%;width:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;outline:none;padding:0 var(--_ui5-v2-15-0_button_base_padding);position:relative;background:transparent;border:none;color:inherit;text-shadow:inherit;font:inherit;white-space:inherit;overflow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host(:not([hidden]):not([disabled]).ui5_hovered){background:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);color:var(--sapButton_Hover_TextColor)}.ui5-button-icon,.ui5-button-end-icon{color:inherit;flex-shrink:0}.ui5-button-end-icon{margin-inline-start:var(--_ui5-v2-15-0_button_base_icon_margin)}:host([icon-only]:not([has-end-icon])) .ui5-button-root{min-width:auto;padding:0}:host([icon-only]) .ui5-button-text{display:none}.ui5-button-text{outline:none;position:relative;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([has-icon]:not(:empty)) .ui5-button-text{margin-inline-start:var(--_ui5-v2-15-0_button_base_icon_margin)}:host([has-end-icon]:not([has-icon]):empty) .ui5-button-end-icon{margin-inline-start:0}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:unset;cursor:default}:host([has-icon]:not([icon-only]):not([has-end-icon])) .ui5-button-text{min-width:calc(var(--_ui5-v2-15-0_button_base_min_width) - var(--_ui5-v2-15-0_button_base_icon_margin) - 1rem)}:host([disabled]:active){pointer-events:none}:host([desktop]:not([loading])) .ui5-button-root:focus-within:after,:host(:not([active])) .ui5-button-root:focus-visible:after,:host([desktop][active][design="Emphasized"]) .ui5-button-root:focus-within:after,:host([active][design="Emphasized"]) .ui5-button-root:focus-visible:after,:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;pointer-events:none;inset:.0625rem;border:var(--_ui5-v2-15-0_button_focused_border);border-radius:var(--_ui5-v2-15-0_button_focused_border_radius)}:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{border-color:var(--_ui5-v2-15-0_button_pressed_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:before,:host([design="Emphasized"]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5-v2-15-0_button_emphasized_focused_border_before);border-radius:var(--_ui5-v2-15-0_button_focused_border_radius)}.ui5-button-root::-moz-focus-inner{border:0}bdi{display:block;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([ui5-button][active]:not([disabled]):not([non-interactive])){background-image:none;background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]){background-color:var(--sapButton_Accept_Background);border-color:var(--sapButton_Accept_BorderColor);color:var(--sapButton_Accept_TextColor)}:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Accept_Hover_Background);border-color:var(--sapButton_Accept_Hover_BorderColor);color:var(--sapButton_Accept_Hover_TextColor)}:host([ui5-button][design="Positive"][active]:not([non-interactive])){background-color:var(--sapButton_Accept_Active_Background);border-color:var(--sapButton_Accept_Active_BorderColor);color:var(--sapButton_Accept_Active_TextColor)}:host([design="Negative"]){background-color:var(--sapButton_Reject_Background);border-color:var(--sapButton_Reject_BorderColor);color:var(--sapButton_Reject_TextColor)}:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Reject_Hover_Background);border-color:var(--sapButton_Reject_Hover_BorderColor);color:var(--sapButton_Reject_Hover_TextColor)}:host([ui5-button][design="Negative"][active]:not([non-interactive])){background-color:var(--sapButton_Reject_Active_Background);border-color:var(--sapButton_Reject_Active_BorderColor);color:var(--sapButton_Reject_Active_TextColor)}:host([design="Attention"]){background-color:var(--sapButton_Attention_Background);border-color:var(--sapButton_Attention_BorderColor);color:var(--sapButton_Attention_TextColor)}:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Attention_Hover_Background);border-color:var(--sapButton_Attention_Hover_BorderColor);color:var(--sapButton_Attention_Hover_TextColor)}:host([ui5-button][design="Attention"][active]:not([non-interactive])){background-color:var(--sapButton_Attention_Active_Background);border-color:var(--sapButton_Attention_Active_BorderColor);color:var(--sapButton_Attention_Active_TextColor)}:host([design="Emphasized"]){background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);border-width:var(--_ui5-v2-15-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_TextColor);font-family:var(--sapButton_Emphasized_FontFamily)}:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Emphasized_Hover_Background);border-color:var(--sapButton_Emphasized_Hover_BorderColor);border-width:var(--_ui5-v2-15-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_Hover_TextColor)}:host([ui5-button][design="Empasized"][active]:not([non-interactive])){background-color:var(--sapButton_Emphasized_Active_Background);border-color:var(--sapButton_Emphasized_Active_BorderColor);color:var(--sapButton_Emphasized_Active_TextColor)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_border_color);outline:none}:host([design="Emphasized"][desktop][active]:not([non-interactive])) .ui5-button-root:focus-within:after,:host([design="Emphasized"][active]:not([non-interactive])) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_active_border_color)}:host([design="Transparent"]){background-color:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor);border-color:var(--sapButton_Lite_BorderColor)}:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Lite_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapButton_Lite_Hover_TextColor)}:host([ui5-button][design="Transparent"][active]:not([non-interactive])){background-color:var(--sapButton_Lite_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([ui5-segmented-button-item][active][desktop]) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item][active]) .ui5-button-root:focus-visible:after,:host([pressed][desktop]) .ui5-button-root:focus-within:after,:host([pressed]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_pressed_focused_border_color);outline:none}:host([ui5-segmented-button-item][desktop]:not(:last-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:last-child)) .ui5-button-root:focus-visible:after{border-top-right-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius)}:host([ui5-segmented-button-item][desktop]:not(:first-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:first-child)) .ui5-button-root:focus-visible:after{border-top-left-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius)}::slotted([slot="badge"][design="InlineText"]){pointer-events:initial;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);padding-inline-start:.25rem;--_ui5-v2-15-0-tag-height: .625rem}::slotted([slot="badge"][design="OverlayText"]){pointer-events:initial;position:absolute;top:0;inset-inline-end:0;margin:-.5rem;z-index:1;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);--_ui5-v2-15-0-tag-height: .625rem}::slotted([slot="badge"][design="AttentionDot"]){pointer-events:initial;content:"";position:absolute;top:0;inset-inline-end:0;margin:-.25rem;z-index:1}:host(:state(has-overlay-badge)){overflow:visible;margin-inline-end:.3125rem}:host([loading]){position:relative;pointer-events:unset}:host([loading]) .ui5-button-root{opacity:var(--sapContent_DisabledOpacity)}:host([loading][design="Emphasized"]){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover) .ui5-button-root,:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered) .ui5-button-root{background-color:var(--sapButton_Emphasized_Hover_Background)}:host([loading][design="Emphasized"]) .ui5-button-root{background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor)}.ui5-button-busy-indicator{position:absolute;height:100%;width:100%;top:0}
135
+ `;
136
+
137
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
138
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
139
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
140
+ 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;
141
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
142
+ };
143
+ var Button_1;
144
+ let isGlobalHandlerAttached = false;
145
+ let activeButton = null;
146
+ /**
147
+ * @class
148
+ *
149
+ * ### Overview
150
+ *
151
+ * The `ui5-button` component represents a simple push button.
152
+ * It enables users to trigger actions by clicking or tapping the `ui5-button`, or by pressing
153
+ * certain keyboard keys, such as Enter.
154
+ *
155
+ * ### Usage
156
+ *
157
+ * For the `ui5-button` UI, you can define text, icon, or both. You can also specify
158
+ * whether the text or the icon is displayed first.
159
+ *
160
+ * You can choose from a set of predefined types that offer different
161
+ * styling to correspond to the triggered action.
162
+ *
163
+ * You can set the `ui5-button` as enabled or disabled. An enabled
164
+ * `ui5-button` can be pressed by clicking or tapping it. The button changes
165
+ * its style to provide visual feedback to the user that it is pressed or hovered over with
166
+ * the mouse cursor. A disabled `ui5-button` appears inactive and cannot be pressed.
167
+ *
168
+ * ### ES6 Module Import
169
+ *
170
+ * `import "@ui5/webcomponents/dist/Button.js";`
171
+ * @csspart button - Used to style the native button element
172
+ * @csspart icon - Used to style the icon in the native button element
173
+ * @csspart endIcon - Used to style the end icon in the native button element
174
+ * @constructor
175
+ * @extends UI5Element
176
+ * @implements { IButton }
177
+ * @public
178
+ */
179
+ let Button = Button_1 = class Button extends webcomponentsBase.b {
180
+ constructor() {
181
+ super();
182
+ /**
183
+ * Defines the component design.
184
+ * @default "Default"
185
+ * @public
186
+ */
187
+ this.design = "Default";
188
+ /**
189
+ * Defines whether the component is disabled.
190
+ * A disabled component can't be pressed or
191
+ * focused, and it is not in the tab chain.
192
+ * @default false
193
+ * @public
194
+ */
195
+ this.disabled = false;
196
+ /**
197
+ * When set to `true`, the component will
198
+ * automatically submit the nearest HTML form element on `press`.
199
+ *
200
+ * **Note:** This property is only applicable within the context of an HTML Form element.`
201
+ * @default false
202
+ * @public
203
+ * @deprecated Set the "type" property to "Submit" to achieve the same result. The "submits" property is ignored if "type" is set to any value other than "Button".
204
+ */
205
+ this.submits = false;
206
+ /**
207
+ * Defines the additional accessibility attributes that will be applied to the component.
208
+ * The following fields are supported:
209
+ *
210
+ * - **expanded**: Indicates whether the button, or another grouping element it controls, is currently expanded or collapsed.
211
+ * Accepts the following string values: `true` or `false`
212
+ *
213
+ * - **hasPopup**: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button.
214
+ * Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
215
+ *
216
+ * - **ariaLabel**: Defines the accessible ARIA name of the component.
217
+ * Accepts any string value.
218
+ *
219
+ * - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or give focus to the button.
220
+ *
221
+ * - **controls**: Identifies the element (or elements) whose contents or presence are controlled by the button element.
222
+ * Accepts a lowercase string value.
223
+ *
224
+ * @public
225
+ * @since 1.2.0
226
+ * @default {}
227
+ */
228
+ this.accessibilityAttributes = {};
229
+ /**
230
+ * Defines whether the button has special form-related functionality.
231
+ *
232
+ * **Note:** This property is only applicable within the context of an HTML Form element.
233
+ * @default "Button"
234
+ * @public
235
+ * @since 1.15.0
236
+ */
237
+ this.type = "Button";
238
+ /**
239
+ * Describes the accessibility role of the button.
240
+ *
241
+ * **Note:** Use <code>ButtonAccessibleRole.Link</code> role only with a press handler, which performs a navigation. In all other scenarios the default button semantics are recommended.
242
+ *
243
+ * @default "Button"
244
+ * @public
245
+ * @since 1.23
246
+ */
247
+ this.accessibleRole = "Button";
248
+ /**
249
+ * Used to switch the active state (pressed or not) of the component.
250
+ * @private
251
+ */
252
+ this.active = false;
253
+ /**
254
+ * Defines if a content has been added to the default slot
255
+ * @private
256
+ */
257
+ this.iconOnly = false;
258
+ /**
259
+ * Indicates if the elements has a slotted icon
260
+ * @private
261
+ */
262
+ this.hasIcon = false;
263
+ /**
264
+ * Indicates if the elements has a slotted end icon
265
+ * @private
266
+ */
267
+ this.hasEndIcon = false;
268
+ /**
269
+ * Indicates if the element is focusable
270
+ * @private
271
+ */
272
+ this.nonInteractive = false;
273
+ /**
274
+ * Defines whether the button shows a loading indicator.
275
+ *
276
+ * **Note:** If set to `true`, a busy indicator component will be displayed on the related button.
277
+ * @default false
278
+ * @public
279
+ * @since 2.13.0
280
+ */
281
+ this.loading = false;
282
+ /**
283
+ * Specifies the delay in milliseconds before the loading indicator appears within the associated button.
284
+ * @default 1000
285
+ * @public
286
+ * @since 2.13.0
287
+ */
288
+ this.loadingDelay = 1000;
289
+ /**
290
+ * @private
291
+ */
292
+ this._iconSettings = {};
293
+ /**
294
+ * Defines the tabIndex of the component.
295
+ * @private
296
+ */
297
+ this.forcedTabIndex = "0";
298
+ /**
299
+ * @since 1.0.0-rc.13
300
+ * @private
301
+ */
302
+ this._isTouch = false;
303
+ this._cancelAction = false;
304
+ this._clickHandlerAttached = false;
305
+ this._deactivate = () => {
306
+ if (activeButton) {
307
+ activeButton._setActiveState(false);
308
+ }
309
+ };
310
+ this._onclickBound = e => {
311
+ if (e instanceof CustomEvent) {
312
+ return;
313
+ }
314
+ this._onclick(e);
315
+ };
316
+ if (!this._clickHandlerAttached) {
317
+ this.addEventListener("click", this._onclickBound);
318
+ this._clickHandlerAttached = true;
319
+ }
320
+ if (!isGlobalHandlerAttached) {
321
+ document.addEventListener("mouseup", this._deactivate);
322
+ isGlobalHandlerAttached = true;
323
+ }
324
+ }
325
+ _ontouchstart() {
326
+ if (this.nonInteractive) {
327
+ return;
328
+ }
329
+ this._setActiveState(true);
330
+ }
331
+ onEnterDOM() {
332
+ if (Icons.f()) {
333
+ this.setAttribute("desktop", "");
334
+ }
335
+ if (!this._clickHandlerAttached) {
336
+ this.addEventListener("click", this._onclickBound);
337
+ this._clickHandlerAttached = true;
338
+ }
339
+ }
340
+ onExitDOM() {
341
+ if (this._clickHandlerAttached) {
342
+ this.removeEventListener("click", this._onclickBound);
343
+ this._clickHandlerAttached = false;
344
+ }
345
+ }
346
+ async onBeforeRendering() {
347
+ this._setBadgeOverlayStyle();
348
+ this.hasIcon = !!this.icon;
349
+ this.hasEndIcon = !!this.endIcon;
350
+ this.iconOnly = this.isIconOnly;
351
+ const defaultTooltip = await this.getDefaultTooltip();
352
+ this.buttonTitle = this.iconOnly ? this.tooltip ?? defaultTooltip : this.tooltip;
353
+ }
354
+ _setBadgeOverlayStyle() {
355
+ const needsOverflowVisible = this.badge.length && (this.badge[0].design === ButtonBadgeDesign$1.AttentionDot || this.badge[0].design === ButtonBadgeDesign$1.OverlayText);
356
+ if (needsOverflowVisible) {
357
+ this._internals.states.add("has-overlay-badge");
358
+ }
359
+ else {
360
+ this._internals.states.delete("has-overlay-badge");
361
+ }
362
+ }
363
+ _onclick(e) {
364
+ e.stopImmediatePropagation();
365
+ if (this.nonInteractive) {
366
+ return;
367
+ }
368
+ if (this.loading) {
369
+ e.preventDefault();
370
+ return;
371
+ }
372
+ const { altKey, ctrlKey, metaKey, shiftKey, } = e;
373
+ const prevented = !this.fireDecoratorEvent("click", {
374
+ originalEvent: e,
375
+ altKey,
376
+ ctrlKey,
377
+ metaKey,
378
+ shiftKey,
379
+ });
380
+ if (prevented) {
381
+ e.preventDefault();
382
+ return;
383
+ }
384
+ if (this._isSubmit) {
385
+ webcomponentsBase.i$1(this);
386
+ }
387
+ if (this._isReset) {
388
+ webcomponentsBase.m$1(this);
389
+ }
390
+ if (Icons.h()) {
391
+ this.getDomRef()?.focus();
392
+ }
393
+ }
394
+ _onmousedown() {
395
+ if (this.nonInteractive) {
396
+ return;
397
+ }
398
+ this._setActiveState(true);
399
+ activeButton = this; // eslint-disable-line
400
+ }
401
+ _ontouchend(e) {
402
+ if (this.disabled || this.loading) {
403
+ e.preventDefault();
404
+ e.stopPropagation();
405
+ }
406
+ if (this.active) {
407
+ this._setActiveState(false);
408
+ }
409
+ if (activeButton) {
410
+ activeButton._setActiveState(false);
411
+ }
412
+ }
413
+ _onkeydown(e) {
414
+ this._cancelAction = webcomponentsBase.Ko(e) || webcomponentsBase.m$2(e);
415
+ if (webcomponentsBase.A(e) || webcomponentsBase.b$1(e)) {
416
+ this._setActiveState(true);
417
+ }
418
+ else if (this._cancelAction) {
419
+ this._setActiveState(false);
420
+ }
421
+ }
422
+ _onkeyup(e) {
423
+ if (this._cancelAction) {
424
+ e.preventDefault();
425
+ }
426
+ if (webcomponentsBase.A(e) || webcomponentsBase.b$1(e)) {
427
+ if (this.active) {
428
+ this._setActiveState(false);
429
+ }
430
+ }
431
+ }
432
+ _onfocusout() {
433
+ if (this.nonInteractive) {
434
+ return;
435
+ }
436
+ if (this.active) {
437
+ this._setActiveState(false);
438
+ }
439
+ }
440
+ _setActiveState(active) {
441
+ const eventPrevented = !this.fireDecoratorEvent("active-state-change");
442
+ if (eventPrevented || this.loading) {
443
+ return;
444
+ }
445
+ this.active = active;
446
+ }
447
+ get hasButtonType() {
448
+ return this.design !== ButtonDesign$1.Default && this.design !== ButtonDesign$1.Transparent;
449
+ }
450
+ get isIconOnly() {
451
+ return !willShowContent.t(this.text);
452
+ }
453
+ static typeTextMappings() {
454
+ return {
455
+ "Positive": i18nDefaults.BUTTON_ARIA_TYPE_ACCEPT,
456
+ "Negative": i18nDefaults.BUTTON_ARIA_TYPE_REJECT,
457
+ "Emphasized": i18nDefaults.BUTTON_ARIA_TYPE_EMPHASIZED,
458
+ "Attention": i18nDefaults.BUTTON_ARIA_TYPE_ATTENTION,
459
+ };
460
+ }
461
+ getDefaultTooltip() {
462
+ if (!l()) {
463
+ return;
464
+ }
465
+ return Icons.A(this.icon);
466
+ }
467
+ get buttonTypeText() {
468
+ return Button_1.i18nBundle.getText(Button_1.typeTextMappings()[this.design]);
469
+ }
470
+ get effectiveAccRole() {
471
+ return toLowercaseEnumValue.n(this.accessibleRole);
472
+ }
473
+ get tabIndexValue() {
474
+ if (this.disabled) {
475
+ return;
476
+ }
477
+ const tabindex = this.getAttribute("tabindex");
478
+ if (tabindex) {
479
+ return Number.parseInt(tabindex);
480
+ }
481
+ return this.nonInteractive ? -1 : Number.parseInt(this.forcedTabIndex);
482
+ }
483
+ get ariaLabelText() {
484
+ const textContent = this.textContent || "";
485
+ const ariaLabelText = AccessibilityTextsHelper.A(this) || "";
486
+ const typeLabelText = this.hasButtonType ? this.buttonTypeText : "";
487
+ const internalLabelText = this.effectiveBadgeDescriptionText || "";
488
+ const labelParts = [textContent, ariaLabelText, typeLabelText, internalLabelText].filter(part => part);
489
+ return labelParts.join(" ");
490
+ }
491
+ get ariaDescriptionText() {
492
+ return this.accessibleDescription === "" ? undefined : this.accessibleDescription;
493
+ }
494
+ get _computedAccessibilityAttributes() {
495
+ return {
496
+ expanded: this.accessibilityAttributes.expanded,
497
+ hasPopup: this.accessibilityAttributes.hasPopup,
498
+ controls: this.accessibilityAttributes.controls,
499
+ ariaKeyShortcuts: this.accessibilityAttributes.ariaKeyShortcuts,
500
+ ariaLabel: this.accessibilityAttributes.ariaLabel || this.ariaLabelText,
501
+ };
502
+ }
503
+ get effectiveBadgeDescriptionText() {
504
+ if (!this.shouldRenderBadge) {
505
+ return "";
506
+ }
507
+ const badgeEffectiveText = this.badge[0].effectiveText;
508
+ // Use distinct i18n keys for singular and plural badge values to ensure proper localization.
509
+ // Some languages have different grammatical rules for singular and plural forms,
510
+ // so separate keys (BUTTON_BADGE_ONE_ITEM and BUTTON_BADGE_MANY_ITEMS) are necessary.
511
+ switch (badgeEffectiveText) {
512
+ case "":
513
+ return badgeEffectiveText;
514
+ case "1":
515
+ return Button_1.i18nBundle.getText(i18nDefaults.BUTTON_BADGE_ONE_ITEM, badgeEffectiveText);
516
+ default:
517
+ return Button_1.i18nBundle.getText(i18nDefaults.BUTTON_BADGE_MANY_ITEMS, badgeEffectiveText);
518
+ }
519
+ }
520
+ get _isSubmit() {
521
+ return this.type === ButtonType$1.Submit || this.submits;
522
+ }
523
+ get _isReset() {
524
+ return this.type === ButtonType$1.Reset;
525
+ }
526
+ get shouldRenderBadge() {
527
+ return !!this.badge.length && (!!this.badge[0].text.length || this.badge[0].design === ButtonBadgeDesign$1.AttentionDot);
528
+ }
529
+ };
530
+ __decorate([
531
+ webcomponentsBase.s()
532
+ ], Button.prototype, "design", void 0);
533
+ __decorate([
534
+ webcomponentsBase.s({ type: Boolean })
535
+ ], Button.prototype, "disabled", void 0);
536
+ __decorate([
537
+ webcomponentsBase.s()
538
+ ], Button.prototype, "icon", void 0);
539
+ __decorate([
540
+ webcomponentsBase.s()
541
+ ], Button.prototype, "endIcon", void 0);
542
+ __decorate([
543
+ webcomponentsBase.s({ type: Boolean })
544
+ ], Button.prototype, "submits", void 0);
545
+ __decorate([
546
+ webcomponentsBase.s()
547
+ ], Button.prototype, "tooltip", void 0);
548
+ __decorate([
549
+ webcomponentsBase.s()
550
+ ], Button.prototype, "accessibleName", void 0);
551
+ __decorate([
552
+ webcomponentsBase.s()
553
+ ], Button.prototype, "accessibleNameRef", void 0);
554
+ __decorate([
555
+ webcomponentsBase.s({ type: Object })
556
+ ], Button.prototype, "accessibilityAttributes", void 0);
557
+ __decorate([
558
+ webcomponentsBase.s()
559
+ ], Button.prototype, "accessibleDescription", void 0);
560
+ __decorate([
561
+ webcomponentsBase.s()
562
+ ], Button.prototype, "type", void 0);
563
+ __decorate([
564
+ webcomponentsBase.s()
565
+ ], Button.prototype, "accessibleRole", void 0);
566
+ __decorate([
567
+ webcomponentsBase.s({ type: Boolean })
568
+ ], Button.prototype, "active", void 0);
569
+ __decorate([
570
+ webcomponentsBase.s({ type: Boolean })
571
+ ], Button.prototype, "iconOnly", void 0);
572
+ __decorate([
573
+ webcomponentsBase.s({ type: Boolean })
574
+ ], Button.prototype, "hasIcon", void 0);
575
+ __decorate([
576
+ webcomponentsBase.s({ type: Boolean })
577
+ ], Button.prototype, "hasEndIcon", void 0);
578
+ __decorate([
579
+ webcomponentsBase.s({ type: Boolean })
580
+ ], Button.prototype, "nonInteractive", void 0);
581
+ __decorate([
582
+ webcomponentsBase.s({ type: Boolean })
583
+ ], Button.prototype, "loading", void 0);
584
+ __decorate([
585
+ webcomponentsBase.s({ type: Number })
586
+ ], Button.prototype, "loadingDelay", void 0);
587
+ __decorate([
588
+ webcomponentsBase.s({ noAttribute: true })
589
+ ], Button.prototype, "buttonTitle", void 0);
590
+ __decorate([
591
+ webcomponentsBase.s({ type: Object })
592
+ ], Button.prototype, "_iconSettings", void 0);
593
+ __decorate([
594
+ webcomponentsBase.s({ noAttribute: true })
595
+ ], Button.prototype, "forcedTabIndex", void 0);
596
+ __decorate([
597
+ webcomponentsBase.s({ type: Boolean })
598
+ ], Button.prototype, "_isTouch", void 0);
599
+ __decorate([
600
+ webcomponentsBase.s({ type: Boolean, noAttribute: true })
601
+ ], Button.prototype, "_cancelAction", void 0);
602
+ __decorate([
603
+ webcomponentsBase.d({ type: Node, "default": true })
604
+ ], Button.prototype, "text", void 0);
605
+ __decorate([
606
+ webcomponentsBase.d({ type: HTMLElement, invalidateOnChildChange: true })
607
+ ], Button.prototype, "badge", void 0);
608
+ __decorate([
609
+ parametersBundle_css$1.i("@ui5/webcomponents")
610
+ ], Button, "i18nBundle", void 0);
611
+ Button = Button_1 = __decorate([
612
+ webcomponentsBase.m({
613
+ tag: "ui5-button",
614
+ formAssociated: true,
615
+ languageAware: true,
616
+ renderer: parametersBundle_css.y,
617
+ template: ButtonTemplate,
618
+ styles: buttonCss,
619
+ shadowRootOptions: { delegatesFocus: true },
620
+ })
621
+ /**
622
+ * Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.
623
+ *
624
+ * **Note:** The event will not be fired if the `disabled` property is set to `true`.
625
+ *
626
+ * @since 2.10.0
627
+ * @public
628
+ * @param {Event} originalEvent Returns original event that comes from user's **click** interaction
629
+ * @param {boolean} altKey Returns whether the "ALT" key was pressed when the event was triggered.
630
+ * @param {boolean} ctrlKey Returns whether the "CTRL" key was pressed when the event was triggered.
631
+ * @param {boolean} metaKey Returns whether the "META" key was pressed when the event was triggered.
632
+ * @param {boolean} shiftKey Returns whether the "SHIFT" key was pressed when the event was triggered.
633
+ */
634
+ ,
635
+ eventStrict.l("click", {
636
+ bubbles: true,
637
+ cancelable: true,
638
+ })
639
+ /**
640
+ * Fired whenever the active state of the component changes.
641
+ * @private
642
+ */
643
+ ,
644
+ eventStrict.l("active-state-change", {
645
+ bubbles: true,
646
+ cancelable: true,
647
+ })
648
+ ], Button);
649
+ Button.define();
650
+ var Button$1 = Button;
651
+
652
+ exports.Button = Button$1;
653
+ exports.ButtonBadgeDesign = ButtonBadgeDesign$1;
654
+ exports.ButtonDesign = ButtonDesign$1;
655
+
656
+ }));