@ui5/webcomponents-fiori 2.6.0-rc.3 → 2.6.0-rc.5

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 (380) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +1 -0
  3. package/cypress/specs/DynamicSideContent.cy.ts +83 -0
  4. package/cypress/specs/NavigationLayout.cy.ts +4 -4
  5. package/cypress/specs/Page.cy.ts +42 -13
  6. package/cypress/specs/UserMenu.cy.ts +7 -2
  7. package/dist/.tsbuildinfo +1 -1
  8. package/dist/BarcodeScannerDialog.d.ts +1 -1
  9. package/dist/BarcodeScannerDialog.js +0 -8
  10. package/dist/BarcodeScannerDialog.js.map +1 -1
  11. package/dist/DynamicPage.d.ts +1 -1
  12. package/dist/DynamicPage.js +6 -2
  13. package/dist/DynamicPage.js.map +1 -1
  14. package/dist/DynamicPageHeaderActions.d.ts +2 -2
  15. package/dist/DynamicPageHeaderActions.js +0 -3
  16. package/dist/DynamicPageHeaderActions.js.map +1 -1
  17. package/dist/DynamicPageTitle.d.ts +1 -1
  18. package/dist/DynamicPageTitle.js +0 -3
  19. package/dist/DynamicPageTitle.js.map +1 -1
  20. package/dist/DynamicSideContent.d.ts +21 -4
  21. package/dist/DynamicSideContent.js +23 -2
  22. package/dist/DynamicSideContent.js.map +1 -1
  23. package/dist/DynamicSideContentTemplate.js +2 -2
  24. package/dist/DynamicSideContentTemplate.js.map +1 -1
  25. package/dist/FlexibleColumnLayout.js +0 -2
  26. package/dist/FlexibleColumnLayout.js.map +1 -1
  27. package/dist/IllustratedMessage.js +0 -2
  28. package/dist/IllustratedMessage.js.map +1 -1
  29. package/dist/NavigationLayout.d.ts +19 -8
  30. package/dist/NavigationLayout.js +35 -21
  31. package/dist/NavigationLayout.js.map +1 -1
  32. package/dist/NotificationList.d.ts +1 -1
  33. package/dist/NotificationList.js +0 -4
  34. package/dist/NotificationList.js.map +1 -1
  35. package/dist/NotificationListGroupItem.d.ts +0 -2
  36. package/dist/NotificationListGroupItem.js +7 -17
  37. package/dist/NotificationListGroupItem.js.map +1 -1
  38. package/dist/NotificationListGroupItemTemplate.d.ts +2 -0
  39. package/dist/NotificationListGroupItemTemplate.js +11 -0
  40. package/dist/NotificationListGroupItemTemplate.js.map +1 -0
  41. package/dist/NotificationListItem.d.ts +11 -20
  42. package/dist/NotificationListItem.js +29 -46
  43. package/dist/NotificationListItem.js.map +1 -1
  44. package/dist/NotificationListItemTemplate.d.ts +2 -0
  45. package/dist/NotificationListItemTemplate.js +19 -0
  46. package/dist/NotificationListItemTemplate.js.map +1 -0
  47. package/dist/ProductSwitchItem.js +0 -2
  48. package/dist/ProductSwitchItem.js.map +1 -1
  49. package/dist/SideNavigation.d.ts +5 -5
  50. package/dist/SideNavigation.js +2 -15
  51. package/dist/SideNavigation.js.map +1 -1
  52. package/dist/SideNavigationGroup.js +0 -4
  53. package/dist/SideNavigationGroup.js.map +1 -1
  54. package/dist/SideNavigationItem.js +0 -4
  55. package/dist/SideNavigationItem.js.map +1 -1
  56. package/dist/SideNavigationSubItem.js +0 -4
  57. package/dist/SideNavigationSubItem.js.map +1 -1
  58. package/dist/Timeline.d.ts +2 -0
  59. package/dist/Timeline.js +2 -3
  60. package/dist/Timeline.js.map +1 -1
  61. package/dist/TimelineGroupItem.js +0 -3
  62. package/dist/TimelineGroupItem.js.map +1 -1
  63. package/dist/TimelineItem.js +0 -6
  64. package/dist/TimelineItem.js.map +1 -1
  65. package/dist/UploadCollection.js +0 -14
  66. package/dist/UploadCollection.js.map +1 -1
  67. package/dist/UploadCollectionItem.js +0 -13
  68. package/dist/UploadCollectionItem.js.map +1 -1
  69. package/dist/UserMenu.d.ts +3 -3
  70. package/dist/UserMenu.js +0 -26
  71. package/dist/UserMenu.js.map +1 -1
  72. package/dist/UserMenuItem.js +0 -1
  73. package/dist/UserMenuItem.js.map +1 -1
  74. package/dist/ViewSettingsDialog.d.ts +2 -2
  75. package/dist/ViewSettingsDialog.js +0 -20
  76. package/dist/ViewSettingsDialog.js.map +1 -1
  77. package/dist/Wizard.d.ts +4 -3
  78. package/dist/Wizard.js +1 -11
  79. package/dist/Wizard.js.map +1 -1
  80. package/dist/WizardTab.js +0 -2
  81. package/dist/WizardTab.js.map +1 -1
  82. package/dist/bundle.esm.js +1 -0
  83. package/dist/bundle.esm.js.map +1 -1
  84. package/dist/css/themes/DynamicPage.css +1 -1
  85. package/dist/css/themes/DynamicPageHeader.css +1 -1
  86. package/dist/css/themes/DynamicPageHeaderActions.css +1 -1
  87. package/dist/css/themes/DynamicPageTitle.css +1 -1
  88. package/dist/css/themes/FlexibleColumnLayout.css +1 -1
  89. package/dist/css/themes/MediaGallery.css +1 -1
  90. package/dist/css/themes/MediaGalleryItem.css +1 -1
  91. package/dist/css/themes/NotificationListGroupItem.css +1 -1
  92. package/dist/css/themes/NotificationListItem.css +1 -1
  93. package/dist/css/themes/NotificationListItemBase.css +1 -1
  94. package/dist/css/themes/NotificationStateIcon.css +1 -1
  95. package/dist/css/themes/Page.css +1 -1
  96. package/dist/css/themes/ProductSwitchItem.css +1 -1
  97. package/dist/css/themes/ShellBar.css +1 -1
  98. package/dist/css/themes/SideNavigation.css +1 -1
  99. package/dist/css/themes/SideNavigationGroup.css +1 -1
  100. package/dist/css/themes/SideNavigationItem.css +1 -1
  101. package/dist/css/themes/SideNavigationItemBase.css +1 -1
  102. package/dist/css/themes/SideNavigationPopover.css +1 -1
  103. package/dist/css/themes/SideNavigationSubItem.css +1 -1
  104. package/dist/css/themes/Timeline.css +1 -1
  105. package/dist/css/themes/TimelineGroupItem.css +1 -1
  106. package/dist/css/themes/TimelineItem.css +1 -1
  107. package/dist/css/themes/UploadCollection.css +1 -1
  108. package/dist/css/themes/UploadCollectionItem.css +1 -1
  109. package/dist/css/themes/ViewSettingsDialog.css +1 -1
  110. package/dist/css/themes/Wizard.css +1 -1
  111. package/dist/css/themes/WizardTab.css +1 -1
  112. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  113. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  114. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  115. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  116. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  117. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  118. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  119. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  120. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  121. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  122. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  123. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  124. package/dist/custom-elements-internal.json +108 -12
  125. package/dist/custom-elements.json +71 -12
  126. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  127. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  128. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  129. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  130. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  131. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  132. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  133. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  134. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  135. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  136. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  137. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  138. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  139. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  140. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  141. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  142. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  143. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  144. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  145. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  146. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  147. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  148. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  149. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  150. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  151. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  152. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  153. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  154. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  155. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  156. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  157. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  158. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  159. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  160. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  161. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  162. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  163. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  164. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  165. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  166. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  167. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  168. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  169. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  170. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  171. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  172. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  173. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  174. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  175. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  176. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  177. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  178. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  179. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  180. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  181. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  182. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  183. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  184. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  185. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  186. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  187. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  188. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  189. package/dist/generated/i18n/i18n-defaults.js +4 -3
  190. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  191. package/dist/generated/themes/DynamicPage.css.d.ts +1 -1
  192. package/dist/generated/themes/DynamicPage.css.js +1 -1
  193. package/dist/generated/themes/DynamicPage.css.js.map +1 -1
  194. package/dist/generated/themes/DynamicPageHeader.css.d.ts +1 -1
  195. package/dist/generated/themes/DynamicPageHeader.css.js +1 -1
  196. package/dist/generated/themes/DynamicPageHeader.css.js.map +1 -1
  197. package/dist/generated/themes/DynamicPageHeaderActions.css.d.ts +1 -1
  198. package/dist/generated/themes/DynamicPageHeaderActions.css.js +1 -1
  199. package/dist/generated/themes/DynamicPageHeaderActions.css.js.map +1 -1
  200. package/dist/generated/themes/DynamicPageTitle.css.d.ts +1 -1
  201. package/dist/generated/themes/DynamicPageTitle.css.js +1 -1
  202. package/dist/generated/themes/DynamicPageTitle.css.js.map +1 -1
  203. package/dist/generated/themes/FlexibleColumnLayout.css.d.ts +1 -1
  204. package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
  205. package/dist/generated/themes/FlexibleColumnLayout.css.js.map +1 -1
  206. package/dist/generated/themes/MediaGallery.css.d.ts +1 -1
  207. package/dist/generated/themes/MediaGallery.css.js +1 -1
  208. package/dist/generated/themes/MediaGallery.css.js.map +1 -1
  209. package/dist/generated/themes/MediaGalleryItem.css.d.ts +1 -1
  210. package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
  211. package/dist/generated/themes/MediaGalleryItem.css.js.map +1 -1
  212. package/dist/generated/themes/NotificationListGroupItem.css.d.ts +1 -1
  213. package/dist/generated/themes/NotificationListGroupItem.css.js +1 -1
  214. package/dist/generated/themes/NotificationListGroupItem.css.js.map +1 -1
  215. package/dist/generated/themes/NotificationListItem.css.d.ts +1 -1
  216. package/dist/generated/themes/NotificationListItem.css.js +1 -1
  217. package/dist/generated/themes/NotificationListItem.css.js.map +1 -1
  218. package/dist/generated/themes/NotificationListItemBase.css.d.ts +1 -1
  219. package/dist/generated/themes/NotificationListItemBase.css.js +1 -1
  220. package/dist/generated/themes/NotificationListItemBase.css.js.map +1 -1
  221. package/dist/generated/themes/NotificationStateIcon.css.d.ts +1 -1
  222. package/dist/generated/themes/NotificationStateIcon.css.js +1 -1
  223. package/dist/generated/themes/NotificationStateIcon.css.js.map +1 -1
  224. package/dist/generated/themes/Page.css.d.ts +1 -1
  225. package/dist/generated/themes/Page.css.js +1 -1
  226. package/dist/generated/themes/Page.css.js.map +1 -1
  227. package/dist/generated/themes/ProductSwitchItem.css.d.ts +1 -1
  228. package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
  229. package/dist/generated/themes/ProductSwitchItem.css.js.map +1 -1
  230. package/dist/generated/themes/ShellBar.css.d.ts +1 -1
  231. package/dist/generated/themes/ShellBar.css.js +1 -1
  232. package/dist/generated/themes/ShellBar.css.js.map +1 -1
  233. package/dist/generated/themes/SideNavigation.css.d.ts +1 -1
  234. package/dist/generated/themes/SideNavigation.css.js +1 -1
  235. package/dist/generated/themes/SideNavigation.css.js.map +1 -1
  236. package/dist/generated/themes/SideNavigationGroup.css.d.ts +1 -1
  237. package/dist/generated/themes/SideNavigationGroup.css.js +1 -1
  238. package/dist/generated/themes/SideNavigationGroup.css.js.map +1 -1
  239. package/dist/generated/themes/SideNavigationItem.css.d.ts +1 -1
  240. package/dist/generated/themes/SideNavigationItem.css.js +1 -1
  241. package/dist/generated/themes/SideNavigationItem.css.js.map +1 -1
  242. package/dist/generated/themes/SideNavigationItemBase.css.d.ts +1 -1
  243. package/dist/generated/themes/SideNavigationItemBase.css.js +1 -1
  244. package/dist/generated/themes/SideNavigationItemBase.css.js.map +1 -1
  245. package/dist/generated/themes/SideNavigationPopover.css.d.ts +1 -1
  246. package/dist/generated/themes/SideNavigationPopover.css.js +1 -1
  247. package/dist/generated/themes/SideNavigationPopover.css.js.map +1 -1
  248. package/dist/generated/themes/SideNavigationSubItem.css.d.ts +1 -1
  249. package/dist/generated/themes/SideNavigationSubItem.css.js +1 -1
  250. package/dist/generated/themes/SideNavigationSubItem.css.js.map +1 -1
  251. package/dist/generated/themes/Timeline.css.d.ts +1 -1
  252. package/dist/generated/themes/Timeline.css.js +1 -1
  253. package/dist/generated/themes/Timeline.css.js.map +1 -1
  254. package/dist/generated/themes/TimelineGroupItem.css.d.ts +1 -1
  255. package/dist/generated/themes/TimelineGroupItem.css.js +1 -1
  256. package/dist/generated/themes/TimelineGroupItem.css.js.map +1 -1
  257. package/dist/generated/themes/TimelineItem.css.d.ts +1 -1
  258. package/dist/generated/themes/TimelineItem.css.js +1 -1
  259. package/dist/generated/themes/TimelineItem.css.js.map +1 -1
  260. package/dist/generated/themes/UploadCollection.css.d.ts +1 -1
  261. package/dist/generated/themes/UploadCollection.css.js +1 -1
  262. package/dist/generated/themes/UploadCollection.css.js.map +1 -1
  263. package/dist/generated/themes/UploadCollectionItem.css.d.ts +1 -1
  264. package/dist/generated/themes/UploadCollectionItem.css.js +1 -1
  265. package/dist/generated/themes/UploadCollectionItem.css.js.map +1 -1
  266. package/dist/generated/themes/ViewSettingsDialog.css.d.ts +1 -1
  267. package/dist/generated/themes/ViewSettingsDialog.css.js +1 -1
  268. package/dist/generated/themes/ViewSettingsDialog.css.js.map +1 -1
  269. package/dist/generated/themes/Wizard.css.d.ts +1 -1
  270. package/dist/generated/themes/Wizard.css.js +1 -1
  271. package/dist/generated/themes/Wizard.css.js.map +1 -1
  272. package/dist/generated/themes/WizardTab.css.d.ts +1 -1
  273. package/dist/generated/themes/WizardTab.css.js +1 -1
  274. package/dist/generated/themes/WizardTab.css.js.map +1 -1
  275. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +1 -1
  276. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  277. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  278. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +1 -1
  279. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  280. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  281. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +1 -1
  282. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  283. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  284. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +1 -1
  285. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  286. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  287. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  288. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  289. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  290. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  291. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  292. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  293. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.d.ts +1 -1
  294. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  295. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  296. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.d.ts +1 -1
  297. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  298. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  299. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  300. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  301. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  302. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.d.ts +1 -1
  303. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  304. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  305. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  306. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  307. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  308. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.d.ts +1 -1
  309. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  310. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  311. package/dist/types/NavigationLayoutMode.d.ts +23 -0
  312. package/dist/types/NavigationLayoutMode.js +25 -0
  313. package/dist/types/NavigationLayoutMode.js.map +1 -0
  314. package/dist/vscode.html-custom-data.json +13 -4
  315. package/dist/web-types.json +24 -8
  316. package/package.json +7 -7
  317. package/src/DynamicSideContentTemplate.tsx +3 -1
  318. package/src/NotificationListGroupItemTemplate.tsx +72 -0
  319. package/src/NotificationListItemTemplate.tsx +154 -0
  320. package/src/i18n/messagebundle.properties +3 -0
  321. package/src/i18n/messagebundle_ar.properties +18 -0
  322. package/src/i18n/messagebundle_bg.properties +18 -0
  323. package/src/i18n/messagebundle_ca.properties +18 -0
  324. package/src/i18n/messagebundle_cnr.properties +18 -0
  325. package/src/i18n/messagebundle_cs.properties +18 -0
  326. package/src/i18n/messagebundle_cy.properties +18 -0
  327. package/src/i18n/messagebundle_da.properties +18 -0
  328. package/src/i18n/messagebundle_de.properties +18 -0
  329. package/src/i18n/messagebundle_el.properties +18 -0
  330. package/src/i18n/messagebundle_en.properties +18 -0
  331. package/src/i18n/messagebundle_en_GB.properties +18 -0
  332. package/src/i18n/messagebundle_en_US_sappsd.properties +18 -0
  333. package/src/i18n/messagebundle_en_US_saprigi.properties +18 -0
  334. package/src/i18n/messagebundle_en_US_saptrc.properties +18 -0
  335. package/src/i18n/messagebundle_es.properties +18 -0
  336. package/src/i18n/messagebundle_es_MX.properties +18 -0
  337. package/src/i18n/messagebundle_et.properties +18 -0
  338. package/src/i18n/messagebundle_fi.properties +18 -0
  339. package/src/i18n/messagebundle_fr.properties +18 -0
  340. package/src/i18n/messagebundle_fr_CA.properties +18 -0
  341. package/src/i18n/messagebundle_hi.properties +18 -0
  342. package/src/i18n/messagebundle_hr.properties +18 -0
  343. package/src/i18n/messagebundle_hu.properties +18 -0
  344. package/src/i18n/messagebundle_id.properties +18 -0
  345. package/src/i18n/messagebundle_it.properties +18 -0
  346. package/src/i18n/messagebundle_iw.properties +18 -0
  347. package/src/i18n/messagebundle_ja.properties +18 -0
  348. package/src/i18n/messagebundle_kk.properties +18 -0
  349. package/src/i18n/messagebundle_ko.properties +18 -0
  350. package/src/i18n/messagebundle_lt.properties +18 -0
  351. package/src/i18n/messagebundle_lv.properties +18 -0
  352. package/src/i18n/messagebundle_mk.properties +18 -0
  353. package/src/i18n/messagebundle_ms.properties +18 -0
  354. package/src/i18n/messagebundle_nl.properties +18 -0
  355. package/src/i18n/messagebundle_no.properties +18 -0
  356. package/src/i18n/messagebundle_pl.properties +18 -0
  357. package/src/i18n/messagebundle_pt.properties +18 -0
  358. package/src/i18n/messagebundle_pt_PT.properties +18 -0
  359. package/src/i18n/messagebundle_ro.properties +18 -0
  360. package/src/i18n/messagebundle_ru.properties +18 -0
  361. package/src/i18n/messagebundle_sh.properties +18 -0
  362. package/src/i18n/messagebundle_sk.properties +18 -0
  363. package/src/i18n/messagebundle_sl.properties +18 -0
  364. package/src/i18n/messagebundle_sr.properties +18 -0
  365. package/src/i18n/messagebundle_sv.properties +18 -0
  366. package/src/i18n/messagebundle_th.properties +18 -0
  367. package/src/i18n/messagebundle_tr.properties +18 -0
  368. package/src/i18n/messagebundle_uk.properties +18 -0
  369. package/src/i18n/messagebundle_vi.properties +18 -0
  370. package/src/i18n/messagebundle_zh_CN.properties +18 -0
  371. package/src/i18n/messagebundle_zh_TW.properties +18 -0
  372. package/src/themes/NotificationListGroupItem.css +3 -8
  373. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.d.ts +0 -3
  374. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.js +0 -8
  375. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.js.map +0 -1
  376. package/dist/generated/templates/NotificationListItemTemplate.lit.d.ts +0 -3
  377. package/dist/generated/templates/NotificationListItemTemplate.lit.js +0 -15
  378. package/dist/generated/templates/NotificationListItemTemplate.lit.js.map +0 -1
  379. package/src/NotificationListGroupItem.hbs +0 -54
  380. package/src/NotificationListItem.hbs +0 -108
@@ -1,4 +1,5 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import NavigationLayoutMode from "./types/NavigationLayoutMode.js";
2
3
  import type SideNavigation from "./SideNavigation.js";
3
4
  /**
4
5
  * @class
@@ -14,9 +15,10 @@ import type SideNavigation from "./SideNavigation.js";
14
15
  *
15
16
  * ### Responsive Behavior
16
17
  *
17
- * On desktop and tablet devices, the side navigation remains visible and can
18
- * be expanded or collapsed using the `sideCollapsed` property. On phone devices, the side navigation
19
- * is hidden by default but can be displayed using the same `sideCollapsed` property.
18
+ * On desktop and tablet devices, the side navigation is visible
19
+ * by default and can be expanded or collapsed using the `mode` property.
20
+ * On phone devices, the side navigation is hidden by default and can
21
+ * be displayed using the `mode` property.
20
22
  *
21
23
  * ### ES6 Module Import
22
24
  *
@@ -27,7 +29,17 @@ import type SideNavigation from "./SideNavigation.js";
27
29
  * @public
28
30
  */
29
31
  declare class NavigationLayout extends UI5Element {
30
- _sideCollapsed: boolean;
32
+ _defaultSideCollapsed: boolean;
33
+ /**
34
+ * Specifies the navigation layout mode.
35
+ * @default "Auto"
36
+ * @public
37
+ */
38
+ mode: `${NavigationLayoutMode}`;
39
+ /**
40
+ * @private
41
+ */
42
+ sideCollapsed: boolean;
31
43
  /**
32
44
  * @private
33
45
  */
@@ -37,12 +49,10 @@ declare class NavigationLayout extends UI5Element {
37
49
  */
38
50
  isTablet: boolean;
39
51
  /**
40
- * Indicates whether the side navigation is collapsed.
41
- * @default false
52
+ * Gets whether the side navigation is collapsed.
42
53
  * @public
43
54
  */
44
- set sideCollapsed(value: boolean);
45
- get sideCollapsed(): boolean;
55
+ isSideCollapsed(): boolean;
46
56
  /**
47
57
  * Defines the header.
48
58
  * @public
@@ -59,5 +69,6 @@ declare class NavigationLayout extends UI5Element {
59
69
  */
60
70
  content: Array<HTMLElement>;
61
71
  onBeforeRendering(): void;
72
+ calcSideCollapsed(): void;
62
73
  }
63
74
  export default NavigationLayout;
@@ -11,6 +11,7 @@ import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
11
11
  import jsxRenderer from "@ui5/webcomponents-base/dist/renderer/JsxRenderer.js";
12
12
  import browserScrollbarCSS from "@ui5/webcomponents/dist/generated/themes/BrowserScrollbar.css.js";
13
13
  import { isPhone, isTablet, isCombi, } from "@ui5/webcomponents-base/dist/Device.js";
14
+ import NavigationLayoutMode from "./types/NavigationLayoutMode.js";
14
15
  // Template
15
16
  import NavigationLayoutTemplate from "./NavigationLayoutTemplate.js";
16
17
  // Styles
@@ -29,9 +30,10 @@ import NavigationLayoutCss from "./generated/themes/NavigationLayout.css.js";
29
30
  *
30
31
  * ### Responsive Behavior
31
32
  *
32
- * On desktop and tablet devices, the side navigation remains visible and can
33
- * be expanded or collapsed using the `sideCollapsed` property. On phone devices, the side navigation
34
- * is hidden by default but can be displayed using the same `sideCollapsed` property.
33
+ * On desktop and tablet devices, the side navigation is visible
34
+ * by default and can be expanded or collapsed using the `mode` property.
35
+ * On phone devices, the side navigation is hidden by default and can
36
+ * be displayed using the `mode` property.
35
37
  *
36
38
  * ### ES6 Module Import
37
39
  *
@@ -44,7 +46,17 @@ import NavigationLayoutCss from "./generated/themes/NavigationLayout.css.js";
44
46
  let NavigationLayout = class NavigationLayout extends UI5Element {
45
47
  constructor() {
46
48
  super(...arguments);
47
- this._sideCollapsed = isPhone() || (isTablet() && !isCombi());
49
+ this._defaultSideCollapsed = isPhone() || (isTablet() && !isCombi());
50
+ /**
51
+ * Specifies the navigation layout mode.
52
+ * @default "Auto"
53
+ * @public
54
+ */
55
+ this.mode = "Auto";
56
+ /**
57
+ * @private
58
+ */
59
+ this.sideCollapsed = this._defaultSideCollapsed;
48
60
  /**
49
61
  * @private
50
62
  */
@@ -55,42 +67,44 @@ let NavigationLayout = class NavigationLayout extends UI5Element {
55
67
  this.isTablet = isTablet() && !isCombi();
56
68
  }
57
69
  /**
58
- * Indicates whether the side navigation is collapsed.
59
- * @default false
70
+ * Gets whether the side navigation is collapsed.
60
71
  * @public
61
72
  */
62
- set sideCollapsed(value) {
63
- this._sideCollapsed = value;
73
+ isSideCollapsed() {
74
+ this.calcSideCollapsed();
75
+ return this.sideCollapsed;
76
+ }
77
+ onBeforeRendering() {
78
+ this.calcSideCollapsed();
64
79
  if (isPhone()) {
65
80
  return;
66
81
  }
67
82
  const sideNavigation = this.sideContent[0];
68
83
  if (sideNavigation) {
69
- sideNavigation.collapsed = value;
84
+ sideNavigation.collapsed = this.isSideCollapsed();
70
85
  }
71
86
  }
72
- get sideCollapsed() {
73
- return this._sideCollapsed;
74
- }
75
- onBeforeRendering() {
76
- if (isPhone()) {
77
- return;
87
+ calcSideCollapsed() {
88
+ if (this.mode === NavigationLayoutMode.Auto) {
89
+ this.sideCollapsed = this._defaultSideCollapsed;
78
90
  }
79
- const sideNavigation = this.sideContent[0];
80
- if (sideNavigation) {
81
- sideNavigation.collapsed = this.sideCollapsed;
91
+ else {
92
+ this.sideCollapsed = this.mode === NavigationLayoutMode.Collapsed;
82
93
  }
83
94
  }
84
95
  };
96
+ __decorate([
97
+ property()
98
+ ], NavigationLayout.prototype, "mode", void 0);
85
99
  __decorate([
86
100
  property({ type: Boolean })
87
- ], NavigationLayout.prototype, "isPhone", void 0);
101
+ ], NavigationLayout.prototype, "sideCollapsed", void 0);
88
102
  __decorate([
89
103
  property({ type: Boolean })
90
- ], NavigationLayout.prototype, "isTablet", void 0);
104
+ ], NavigationLayout.prototype, "isPhone", void 0);
91
105
  __decorate([
92
106
  property({ type: Boolean })
93
- ], NavigationLayout.prototype, "sideCollapsed", null);
107
+ ], NavigationLayout.prototype, "isTablet", void 0);
94
108
  __decorate([
95
109
  slot()
96
110
  ], NavigationLayout.prototype, "header", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationLayout.js","sourceRoot":"","sources":["../src/NavigationLayout.ts"],"names":[],"mappings":";;;;;;AA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AC,WAAW,CAAC,CAAC,CAAC,CAAC;QAE3C,IAAI,cAAc,EAAE,CAAC;YACpB,cAAc,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC;QAC/C,CAAC;IACF,CAAC;CACD,CAAA;AAhEA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACR;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACQ;AAQpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAa3B;AAWD;IADC,IAAI,EAAE;gDACqB;AAO5B;IADC,IAAI,EAAE;qDAC6B;AAOpC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;iDAChB;AA1DxB,gBAAgB;IAVrB,aAAa,CAAC;QACd,GAAG,EAAE,uBAAuB;QAC5B,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE;YACP,mBAAmB;YACnB,mBAAmB;SACnB;QACD,QAAQ,EAAE,wBAAwB;KAClC,CAAC;GACI,gBAAgB,CAuErB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport browserScrollbarCSS from \"@ui5/webcomponents/dist/generated/themes/BrowserScrollbar.css.js\";\nimport {\n\tisPhone,\n\tisTablet,\n\tisCombi,\n} from \"@ui5/webcomponents-base/dist/Device.js\";\nimport type SideNavigation from \"./SideNavigation.js\";\n\n// Template\nimport NavigationLayoutTemplate from \"./NavigationLayoutTemplate.js\";\n\n// Styles\nimport NavigationLayoutCss from \"./generated/themes/NavigationLayout.css.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-navigation-layout` is a container component that can be used to\n * create a layout with a header, a side navigation and a content area.\n *\n * ### Usage\n *\n * Use the `ui5-navigation-layout` to create whole screen of an application with vertical navigation.\n *\n * ### Responsive Behavior\n *\n * On desktop and tablet devices, the side navigation remains visible and can\n * be expanded or collapsed using the `sideCollapsed` property. On phone devices, the side navigation\n * is hidden by default but can be displayed using the same `sideCollapsed` property.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NavigationLayout.js\";`\n * @constructor\n * @extends UI5Element\n * @since 2.4.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-navigation-layout\",\n\tlanguageAware: true,\n\trenderer: jsxRenderer,\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tNavigationLayoutCss,\n\t],\n\ttemplate: NavigationLayoutTemplate,\n})\nclass NavigationLayout extends UI5Element {\n\t_sideCollapsed = isPhone() || (isTablet() && !isCombi());\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tisPhone = isPhone();\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tisTablet = isTablet() && !isCombi();\n\n\t/**\n\t * Indicates whether the side navigation is collapsed.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tset sideCollapsed(value: boolean) {\n\t\tthis._sideCollapsed = value;\n\n\t\tif (isPhone()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst sideNavigation = this.sideContent[0];\n\n\t\tif (sideNavigation) {\n\t\t\tsideNavigation.collapsed = value;\n\t\t}\n\t}\n\n\tget sideCollapsed() : boolean {\n\t\treturn this._sideCollapsed;\n\t}\n\n\t/**\n\t * Defines the header.\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the side content.\n\t * @public\n\t */\n\t@slot()\n\tsideContent!: Array<SideNavigation>;\n\n\t/**\n\t * Defines the content.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>;\n\n\tonBeforeRendering() {\n\t\tif (isPhone()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst sideNavigation = this.sideContent[0];\n\n\t\tif (sideNavigation) {\n\t\t\tsideNavigation.collapsed = this.sideCollapsed;\n\t\t}\n\t}\n}\n\nNavigationLayout.define();\n\nexport default NavigationLayout;\n"]}
1
+ {"version":3,"file":"NavigationLayout.js","sourceRoot":"","sources":["../src/NavigationLayout.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,mBAAmB,MAAM,kEAAkE,CAAC;AACnG,OAAO,EACN,OAAO,EACP,QAAQ,EACR,OAAO,GACP,MAAM,wCAAwC,CAAC;AAChD,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAGnE,WAAW;AACX,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,SAAS;AACT,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAWH,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QACC,0BAAqB,GAAG,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAEhE;;;;WAIG;QAEH,SAAI,GAA8B,MAAM,CAAC;QAEzC;;WAEG;QAEH,kBAAa,GAAa,IAAI,CAAC,qBAAqB,CAAC;QAErD;;WAEG;QAEH,YAAO,GAAG,OAAO,EAAE,CAAC;QAEpB;;WA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EAAE,IAAI;QACnB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE;YACP,mBAAmB;YACnB,mBAAmB;SACnB;QACD,QAAQ,EAAE,wBAAwB;KAClC,CAAC;GACI,gBAAgB,CAgFrB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport browserScrollbarCSS from \"@ui5/webcomponents/dist/generated/themes/BrowserScrollbar.css.js\";\nimport {\n\tisPhone,\n\tisTablet,\n\tisCombi,\n} from \"@ui5/webcomponents-base/dist/Device.js\";\nimport NavigationLayoutMode from \"./types/NavigationLayoutMode.js\";\nimport type SideNavigation from \"./SideNavigation.js\";\n\n// Template\nimport NavigationLayoutTemplate from \"./NavigationLayoutTemplate.js\";\n\n// Styles\nimport NavigationLayoutCss from \"./generated/themes/NavigationLayout.css.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-navigation-layout` is a container component that can be used to\n * create a layout with a header, a side navigation and a content area.\n *\n * ### Usage\n *\n * Use the `ui5-navigation-layout` to create whole screen of an application with vertical navigation.\n *\n * ### Responsive Behavior\n *\n * On desktop and tablet devices, the side navigation is visible\n * by default and can be expanded or collapsed using the `mode` property.\n * On phone devices, the side navigation is hidden by default and can\n * be displayed using the `mode` property.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NavigationLayout.js\";`\n * @constructor\n * @extends UI5Element\n * @since 2.4.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-navigation-layout\",\n\tlanguageAware: true,\n\trenderer: jsxRenderer,\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tNavigationLayoutCss,\n\t],\n\ttemplate: NavigationLayoutTemplate,\n})\nclass NavigationLayout extends UI5Element {\n\t_defaultSideCollapsed = isPhone() || (isTablet() && !isCombi());\n\n\t/**\n\t * Specifies the navigation layout mode.\n\t * @default \"Auto\"\n\t * @public\n\t */\n\t@property()\n\tmode: `${NavigationLayoutMode}` = \"Auto\";\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tsideCollapsed : boolean = this._defaultSideCollapsed;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tisPhone = isPhone();\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tisTablet = isTablet() && !isCombi();\n\n\t/**\n\t * Gets whether the side navigation is collapsed.\n\t * @public\n\t */\n\tisSideCollapsed() : boolean {\n\t\tthis.calcSideCollapsed();\n\t\treturn this.sideCollapsed;\n\t}\n\n\t/**\n\t * Defines the header.\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the side content.\n\t * @public\n\t */\n\t@slot()\n\tsideContent!: Array<SideNavigation>;\n\n\t/**\n\t * Defines the content.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>;\n\n\tonBeforeRendering() {\n\t\tthis.calcSideCollapsed();\n\n\t\tif (isPhone()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst sideNavigation = this.sideContent[0];\n\n\t\tif (sideNavigation) {\n\t\t\tsideNavigation.collapsed = this.isSideCollapsed();\n\t\t}\n\t}\n\n\tcalcSideCollapsed() {\n\t\tif (this.mode === NavigationLayoutMode.Auto) {\n\t\t\tthis.sideCollapsed = this._defaultSideCollapsed;\n\t\t} else {\n\t\t\tthis.sideCollapsed = this.mode === NavigationLayoutMode.Collapsed;\n\t\t}\n\t}\n}\n\nNavigationLayout.define();\n\nexport default NavigationLayout;\n"]}
@@ -2,7 +2,7 @@ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
3
3
  import type { ListItemClickEventDetail, ListItemToggleEventDetail, ListItemCloseEventDetail } from "@ui5/webcomponents/dist/List.js";
4
4
  import type NotificationListItemBase from "./NotificationListItemBase.js";
5
- import NotificationListInternal from "./NotificationListInternal.js";
5
+ import type NotificationListInternal from "./NotificationListInternal.js";
6
6
  type NotificationItemEventDetail = {
7
7
  item: NotificationListItemBase;
8
8
  };
@@ -12,7 +12,6 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
12
12
  import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
13
13
  import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
14
14
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
15
- import NotificationListInternal from "./NotificationListInternal.js";
16
15
  // Template
17
16
  import NotificationListTemplate from "./NotificationListTemplate.js";
18
17
  // Styles
@@ -98,9 +97,6 @@ NotificationList = NotificationList_1 = __decorate([
98
97
  languageAware: true,
99
98
  styles: [NotificationListCss],
100
99
  template: NotificationListTemplate,
101
- dependencies: [
102
- NotificationListInternal,
103
- ],
104
100
  })
105
101
  /**
106
102
  * Fired when an item is clicked.
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationList.js","sourceRoot":"","sources":["../src/NotificationList.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,UAAU,MAAM,4CAA4C,CAAC;AAQpE,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,WAAW;AACX,OAAO,wBAAwB,MAAM,+BAA+B,CAAC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AED,WAAW;QACV,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACD,CAAA;AApDA;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;+CACL;AAQxC;IADC,QAAQ,EAAE;oDACS;AAOb;IADN,IAAI,CAAC,0BAA0B,CAAC;+CACE;AA5B9B,gBAAgB;IA1CrB,aAAa,CAAC;QACd,GAAG,EAAE,uBAAuB;QAC5B,QAAQ,EAAE,WAAW;QACrB,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,CAAC,mBAAmB,CAAC;QAC7B,QAAQ,EAAE,wBAAwB;QAClC,YAAY,EAAE;YACb,wBAAwB;SACxB;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,aAAa,EAAE;QACrB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;GAEI,gBAAgB,CAiErB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type {\n\tListItemClickEventDetail,\n\tListItemToggleEventDetail,\n\tListItemCloseEventDetail,\n} from \"@ui5/webcomponents/dist/List.js\";\nimport type NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport NotificationListInternal from \"./NotificationListInternal.js\";\n\n// Template\nimport NotificationListTemplate from \"./NotificationListTemplate.js\";\n\n// Styles\nimport NotificationListCss from \"./generated/themes/NotificationList.css.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_ACCESSIBLE_NAME,\n} from \"./generated/i18n/i18n-defaults.js\";\n\ntype NotificationItemEventDetail = {\n\titem: NotificationListItemBase,\n}\n\ntype NotificationItemClickEventDetail = NotificationItemEventDetail;\ntype NotificationItemToggleEventDetail = NotificationItemEventDetail;\ntype NotificationItemCloseEventDetail = NotificationItemEventDetail;\n\n/**\n * @class\n * ### Overview\n * The `ui5-notification-list` web component represents\n * a container for `ui5-li-notification-group` and `ui5-li-notification`.\n *\n * ### Keyboard Handling\n *\n * #### Basic Navigation\n * The `ui5-notification-list` provides advanced keyboard handling.\n * When a list is focused the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n *\n * - [Up] or [Left] - Navigates up the items\n * - [Down] or [Right] - Navigates down the items\n * - [Home] - Navigates to first item\n * - [End] - Navigates to the last item\n *\n * #### Fast Navigation\n * This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].\n * In order to use this functionality, you need to import the following module:\n * `import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"`\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NotificationList.js\";``\n * @constructor\n * @extends UI5Element\n * @since 2.0.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-notification-list\",\n\trenderer: jsxRenderer,\n\tlanguageAware: true,\n\tstyles: [NotificationListCss],\n\ttemplate: NotificationListTemplate,\n\tdependencies: [\n\t\tNotificationListInternal,\n\t],\n})\n\n/**\n * Fired when an item is clicked.\n * @param {HTMLElement} item The clicked item.\n * @public\n */\n@event(\"item-click\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired when the `Close` button of any item is clicked.\n * @param {HTMLElement} item the item about to be closed.\n * @public\n */\n@event(\"item-close\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired when an item is toggled.\n *\n * @param {HTMLElement} item the toggled item.\n * @public\n */\n@event(\"item-toggle\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\nclass NotificationList extends UI5Element {\n\teventDetails!: {\n\t\t\"item-click\": NotificationItemClickEventDetail,\n\t\t\"item-close\": NotificationItemCloseEventDetail,\n\t\t\"item-toggle\": NotificationItemToggleEventDetail,\n\t\t\"load-more\": void,\n\t}\n\t/**\n\t * Defines the items of the component.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItemBase>;\n\n\t/**\n\t * Defines the text that is displayed when the component contains no items.\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\tnoDataText?: string;\n\n\tget _accessibleName() {\n\t\treturn NotificationList.i18nFioriBundle.getText(NOTIFICATION_LIST_ACCESSIBLE_NAME);\n\t}\n\n\t@i18n(\"@ui5/webcomponents-fiori\")\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tgetEnabledItems() {\n\t\treturn this.innerList?.getEnabledItems() || [];\n\t}\n\n\tget innerList() {\n\t\treturn this.shadowRoot?.querySelector(\"[ui5-notification-list-internal]\") as NotificationListInternal;\n\t}\n\n\t_onItemClick(e: CustomEvent<ListItemClickEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-click\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onItemClose(e: CustomEvent<ListItemCloseEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-close\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onItemToggle(e: CustomEvent<ListItemToggleEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-toggle\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onLoadMore() {\n\t\tthis.fireDecoratorEvent(\"load-more\");\n\t}\n}\n\nNotificationList.define();\n\nexport default NotificationList;\nexport type {\n\tNotificationItemClickEventDetail,\n\tNotificationItemToggleEventDetail,\n\tNotificationItemCloseEventDetail,\n};\n"]}
1
+ {"version":3,"file":"NotificationList.js","sourceRoot":"","sources":["../src/NotificationList.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,UAAU,MAAM,4CAA4C,CAAC;AAUpE,WAAW;AACX,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,SAAS;AACT,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAE7E,QAAQ;AACR,OAAO,EACN,iCAAiC,GACjC,MAAM,mCAAmC,CAAC;AAU3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAwCH,IAAM,gBAAgB,wBAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAuBxC,IAAI,eAAe;QAClB,OAAO,kBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;IACpF,CAAC;IAKD,eAAe;QACd,OAAO,IAAI,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;IAChD,CAAC;IAED,IAAI,SAAS;QACZ,OAAO,IAAI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G;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAAC,YAAY,EAAE;QACpB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,aAAa,EAAE;QACrB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KAChB,CAAC;GAEI,gBAAgB,CAiErB;AAED,gBAAgB,CAAC,MAAM,EAAE,CAAC;AAE1B,eAAe,gBAAgB,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport i18n from \"@ui5/webcomponents-base/dist/decorators/i18n.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type {\n\tListItemClickEventDetail,\n\tListItemToggleEventDetail,\n\tListItemCloseEventDetail,\n} from \"@ui5/webcomponents/dist/List.js\";\nimport type NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport type NotificationListInternal from \"./NotificationListInternal.js\";\n\n// Template\nimport NotificationListTemplate from \"./NotificationListTemplate.js\";\n\n// Styles\nimport NotificationListCss from \"./generated/themes/NotificationList.css.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_ACCESSIBLE_NAME,\n} from \"./generated/i18n/i18n-defaults.js\";\n\ntype NotificationItemEventDetail = {\n\titem: NotificationListItemBase,\n}\n\ntype NotificationItemClickEventDetail = NotificationItemEventDetail;\ntype NotificationItemToggleEventDetail = NotificationItemEventDetail;\ntype NotificationItemCloseEventDetail = NotificationItemEventDetail;\n\n/**\n * @class\n * ### Overview\n * The `ui5-notification-list` web component represents\n * a container for `ui5-li-notification-group` and `ui5-li-notification`.\n *\n * ### Keyboard Handling\n *\n * #### Basic Navigation\n * The `ui5-notification-list` provides advanced keyboard handling.\n * When a list is focused the user can use the following keyboard\n * shortcuts in order to perform a navigation:\n *\n * - [Up] or [Left] - Navigates up the items\n * - [Down] or [Right] - Navigates down the items\n * - [Home] - Navigates to first item\n * - [End] - Navigates to the last item\n *\n * #### Fast Navigation\n * This component provides a build in fast navigation group which can be used via [F6] / [Shift] + [F6] / [Ctrl] + [Alt/Option] / [Down] or [Ctrl] + [Alt/Option] + [Up].\n * In order to use this functionality, you need to import the following module:\n * `import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"`\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NotificationList.js\";``\n * @constructor\n * @extends UI5Element\n * @since 2.0.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-notification-list\",\n\trenderer: jsxRenderer,\n\tlanguageAware: true,\n\tstyles: [NotificationListCss],\n\ttemplate: NotificationListTemplate,\n})\n\n/**\n * Fired when an item is clicked.\n * @param {HTMLElement} item The clicked item.\n * @public\n */\n@event(\"item-click\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired when the `Close` button of any item is clicked.\n * @param {HTMLElement} item the item about to be closed.\n * @public\n */\n@event(\"item-close\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\n/**\n * Fired when an item is toggled.\n *\n * @param {HTMLElement} item the toggled item.\n * @public\n */\n@event(\"item-toggle\", {\n\tbubbles: true,\n\tcancelable: true,\n})\n\nclass NotificationList extends UI5Element {\n\teventDetails!: {\n\t\t\"item-click\": NotificationItemClickEventDetail,\n\t\t\"item-close\": NotificationItemCloseEventDetail,\n\t\t\"item-toggle\": NotificationItemToggleEventDetail,\n\t\t\"load-more\": void,\n\t}\n\t/**\n\t * Defines the items of the component.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItemBase>;\n\n\t/**\n\t * Defines the text that is displayed when the component contains no items.\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\tnoDataText?: string;\n\n\tget _accessibleName() {\n\t\treturn NotificationList.i18nFioriBundle.getText(NOTIFICATION_LIST_ACCESSIBLE_NAME);\n\t}\n\n\t@i18n(\"@ui5/webcomponents-fiori\")\n\tstatic i18nFioriBundle: I18nBundle;\n\n\tgetEnabledItems() {\n\t\treturn this.innerList?.getEnabledItems() || [];\n\t}\n\n\tget innerList() {\n\t\treturn this.shadowRoot?.querySelector(\"[ui5-notification-list-internal]\") as NotificationListInternal;\n\t}\n\n\t_onItemClick(e: CustomEvent<ListItemClickEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-click\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onItemClose(e: CustomEvent<ListItemCloseEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-close\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onItemToggle(e: CustomEvent<ListItemToggleEventDetail>) {\n\t\tconst item = e.detail.item as NotificationListItemBase;\n\n\t\tif (!this.fireDecoratorEvent(\"item-toggle\", { item })) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onLoadMore() {\n\t\tthis.fireDecoratorEvent(\"load-more\");\n\t}\n}\n\nNotificationList.define();\n\nexport default NotificationList;\nexport type {\n\tNotificationItemClickEventDetail,\n\tNotificationItemToggleEventDetail,\n\tNotificationItemCloseEventDetail,\n};\n"]}
@@ -1,8 +1,6 @@
1
1
  import type NotificationListGrowingMode from "@ui5/webcomponents/dist/types/NotificationListGrowingMode.js";
2
2
  import NotificationListItemBase from "./NotificationListItemBase.js";
3
3
  import type NotificationListItem from "./NotificationListItem.js";
4
- import "@ui5/webcomponents-icons/dist/navigation-right-arrow.js";
5
- import "@ui5/webcomponents-icons/dist/navigation-down-arrow.js";
6
4
  type NotificationListGroupItemToggleEventDetail = {
7
5
  item: NotificationListGroupItem;
8
6
  };
@@ -10,21 +10,17 @@ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement
10
10
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
11
11
  import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
12
12
  import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
13
- import Button from "@ui5/webcomponents/dist/Button.js";
14
- import BusyIndicator from "@ui5/webcomponents/dist/BusyIndicator.js";
15
- import Icon from "@ui5/webcomponents/dist/Icon.js";
16
- import NotificationListGroupList from "./NotificationListGroupList.js";
13
+ import jsxRenderer from "@ui5/webcomponents-base/dist/renderer/JsxRenderer.js";
17
14
  import NotificationListItemBase from "./NotificationListItemBase.js";
18
15
  // Icons
19
- import "@ui5/webcomponents-icons/dist/navigation-right-arrow.js";
20
- import "@ui5/webcomponents-icons/dist/navigation-down-arrow.js";
16
+ import iconNavigationRightArrow from "@ui5/webcomponents-icons/dist/navigation-right-arrow.js";
17
+ import iconNavigationDownArrow from "@ui5/webcomponents-icons/dist/navigation-down-arrow.js";
21
18
  // Texts
22
19
  import { NOTIFICATION_LIST_GROUP_ITEM_TXT, NOTIFICATION_LIST_GROUP_COLLAPSED, NOTIFICATION_LIST_GROUP_EXPANDED, NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_ICON_COLLAPSE_TITLE, } from "./generated/i18n/i18n-defaults.js";
23
20
  // Templates
24
- import NotificationListGroupItemTemplate from "./generated/templates/NotificationListGroupItemTemplate.lit.js";
21
+ import NotificationListGroupItemTemplate from "./NotificationListGroupItemTemplate.js";
25
22
  // Styles
26
23
  import NotificationListGroupItemCss from "./generated/themes/NotificationListGroupItem.css.js";
27
- import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
28
24
  /**
29
25
  * @class
30
26
  *
@@ -80,7 +76,7 @@ let NotificationListGroupItem = NotificationListGroupItem_1 = class Notification
80
76
  onBeforeRendering() {
81
77
  super.onBeforeRendering();
82
78
  this.items.forEach(item => {
83
- item._ariaLevel = "2";
79
+ item._ariaLevel = 2;
84
80
  });
85
81
  if (this.loading) {
86
82
  this.clearChildBusyIndicator();
@@ -129,7 +125,7 @@ let NotificationListGroupItem = NotificationListGroupItem_1 = class Notification
129
125
  return false;
130
126
  }
131
127
  get groupCollapsedIcon() {
132
- return this.collapsed ? "navigation-right-arrow" : "navigation-down-arrow";
128
+ return this.collapsed ? iconNavigationRightArrow : iconNavigationDownArrow;
133
129
  }
134
130
  toggleCollapsed() {
135
131
  this.collapsed = !this.collapsed;
@@ -195,17 +191,11 @@ NotificationListGroupItem = NotificationListGroupItem_1 = __decorate([
195
191
  customElement({
196
192
  tag: "ui5-li-notification-group",
197
193
  languageAware: true,
198
- renderer: litRender,
194
+ renderer: jsxRenderer,
199
195
  styles: [
200
196
  NotificationListGroupItemCss,
201
197
  ],
202
198
  template: NotificationListGroupItemTemplate,
203
- dependencies: [
204
- NotificationListGroupList,
205
- Button,
206
- Icon,
207
- BusyIndicator,
208
- ],
209
199
  })
210
200
  /**
211
201
  * Fired when the `ui5-li-notification-group` is expanded/collapsed by user interaction.
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationListGroupItem.js","sourceRoot":"","sources":["../src/NotificationListGroupItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACN,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GACzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,aAAa,MAAM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AC;gBACrB,IAAI,CAAC,eAAe,EAAE,CAAC;gBACvB,CAAC,CAAC,wBAAwB,EAAE,CAAC;YAC9B,CAAC;QACF,CAAC;IACF,CAAC;IAED,eAAe;QACd,OAAO,IAAI,CAAC,SAAS,EAAE,EAAE,aAAa,CAAC,uBAAuB,CAAgB,CAAC;IAChF,CAAC;CACD,CAAA;AAvJA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4DACV;AAUlB;IADC,QAAQ,EAAE;0DACwC;AAQnD;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;wDACV;AA7B9B,yBAAyB;IAlC9B,aAAa,CAAC;QACd,GAAG,EAAE,2BAA2B;QAChC,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE;YACP,4BAA4B;SAC5B;QACD,QAAQ,EAAE,iCAAiC;QAC3C,YAAY,EAAE;YACb,yBAAyB;YACzB,MAAM;YACN,IAAI;YACJ,aAAa;SACb;KACD,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,QAAQ,EAAE;QAChB,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,WAAW,EAAE;QACnB,OAAO,EAAE,IAAI;KACb,CAAC;GAEI,yBAAyB,CAkK9B;AAED,yBAAyB,CAAC,MAAM,EAAE,CAAC;AAEnC,eAAe,yBAAyB,CAAC","sourcesContent":["import {\n\tisSpace, isPlus, isMinus, isLeft, isRight,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport type NotificationListGrowingMode from \"@ui5/webcomponents/dist/types/NotificationListGrowingMode.js\";\nimport NotificationListGroupList from \"./NotificationListGroupList.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport type NotificationListItem from \"./NotificationListItem.js\";\n\n// Icons\nimport \"@ui5/webcomponents-icons/dist/navigation-right-arrow.js\";\nimport \"@ui5/webcomponents-icons/dist/navigation-down-arrow.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_GROUP_ITEM_TXT,\n\tNOTIFICATION_LIST_GROUP_COLLAPSED,\n\tNOTIFICATION_LIST_GROUP_EXPANDED,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_ICON_COLLAPSE_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListGroupItemTemplate from \"./generated/templates/NotificationListGroupItemTemplate.lit.js\";\n\n// Styles\nimport NotificationListGroupItemCss from \"./generated/themes/NotificationListGroupItem.css.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\ntype NotificationListGroupItemToggleEventDetail = {\n\titem: NotificationListGroupItem,\n};\n\n/**\n * @class\n *\n * ### Overview\n * The `ui5-li-notification-group` is a special type of list item,\n * that unlike others can group items within self, usually `ui5-li-notification` items.\n *\n * The component consists of:\n *\n * - `Toggle` button to expand and collapse the group\n * - `TitleText` to entitle the group\n * - Items of the group\n *\n * ### Usage\n * The component can be used in a standard `ui5-list`.\n *\n * ### Keyboard Handling\n * The `ui5-li-notification-group` provides advanced keyboard handling.\n * This component provides fast navigation when the header is focused using the following keyboard shortcuts:\n *\n * - [Space] - toggles expand / collapse of the group\n * - [Plus] - expands the group\n * - [Minus] - collapses the group\n * - [Right] - expands the group\n * - [Left] - collapses the group\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NotificationListGroupItem.js\";`\n * @constructor\n * @extends NotificationListItemBase\n * @since 1.0.0-rc.8\n * @public\n */\n@customElement({\n\ttag: \"ui5-li-notification-group\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstyles: [\n\t\tNotificationListGroupItemCss,\n\t],\n\ttemplate: NotificationListGroupItemTemplate,\n\tdependencies: [\n\t\tNotificationListGroupList,\n\t\tButton,\n\t\tIcon,\n\t\tBusyIndicator,\n\t],\n})\n\n/**\n * Fired when the `ui5-li-notification-group` is expanded/collapsed by user interaction.\n * @public\n */\n@event(\"toggle\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when additional items are requested.\n *\n * @public\n * @since 2.2.0\n */\n@event(\"load-more\", {\n\tbubbles: true,\n})\n\nclass NotificationListGroupItem extends NotificationListItemBase {\n\teventDetails!: NotificationListItemBase[\"eventDetails\"] & {\n\t\ttoggle: NotificationListGroupItemToggleEventDetail;\n\t\t\"load-more\": void;\n\t}\n\t/**\n\t * Defines if the group is collapsed or expanded.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed = false;\n\n\t/**\n\t * Defines whether the component will have growing capability by pressing a `More` button.\n\t * When button is pressed `load-more` event will be fired.\n\t * @default \"None\"\n\t * @public\n\t * @since 2.2.0\n\t */\n\t@property()\n\tgrowing: `${NotificationListGrowingMode}` = \"None\";\n\n\t/**\n\t * Defines the items of the `ui5-li-notification-group`,\n\t * usually `ui5-li-notification` items.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItem>\n\n\tonBeforeRendering() {\n\t\tsuper.onBeforeRendering();\n\n\t\tthis.items.forEach(item => {\n\t\t\titem._ariaLevel = \"2\";\n\t\t});\n\n\t\tif (this.loading) {\n\t\t\tthis.clearChildBusyIndicator();\n\t\t}\n\t\tthis.actionable = false;\n\t}\n\n\t/**\n\t * Clears child items loading state to show a single loading over the entire group,\n\t * instead of multiple BusyIndicator instances\n\t */\n\tclearChildBusyIndicator() {\n\t\tthis.items.forEach(item => {\n\t\t\titem.loading = false;\n\t\t});\n\t}\n\n\tget toggleIconAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_ICON_COLLAPSE_TITLE);\n\t}\n\n\tget accInvisibleText() {\n\t\treturn `${this.groupText} ${this.expandText}`;\n\t}\n\n\tget expandText() {\n\t\tif (this.collapsed) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_COLLAPSED);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_EXPANDED);\n\t}\n\n\tget groupText() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TXT);\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\n\t\tif (this.loading) {\n\t\t\treturn `${id}-loading`;\n\t\t}\n\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\n\t\treturn ids.join(\" \");\n\t}\n\n\tget _expanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\tget _pressable() {\n\t\treturn false;\n\t}\n\n\tget groupCollapsedIcon() {\n\t\treturn this.collapsed ? \"navigation-right-arrow\" : \"navigation-down-arrow\";\n\t}\n\n\ttoggleCollapsed() {\n\t\tthis.collapsed = !this.collapsed;\n\t\tthis.fireDecoratorEvent(\"toggle\", { item: this });\n\t}\n\n\t/**\n\t * Event handlers\n\t *\n\t */\n\t_onHeaderToggleClick() {\n\t\tthis.toggleCollapsed();\n\t}\n\n\t_onLoadMore() {\n\t\tthis.fireDecoratorEvent(\"load-more\");\n\t}\n\n\tget loadMoreButton() {\n\t\tconst innerList = this.getDomRef()?.querySelector(\"[ui5-notification-group-list]\") as NotificationListGroupList;\n\t\treturn innerList.getDomRef()?.querySelector(\".ui5-growing-button-inner\") as HTMLElement;\n\t}\n\n\tasync _onkeydown(e: KeyboardEvent) {\n\t\tconst isFocused = this.matches(\":focus\");\n\t\tif (!isFocused) {\n\t\t\treturn;\n\t\t}\n\n\t\tawait super._onkeydown(e);\n\n\t\tconst space = isSpace(e);\n\t\tconst plus = isPlus(e);\n\t\tconst minus = isMinus(e);\n\t\tconst left = isLeft(e);\n\t\tconst right = isRight(e);\n\n\t\tif (space) {\n\t\t\tthis.toggleCollapsed();\n\t\t}\n\n\t\tif (plus || right) {\n\t\t\t// expand\n\t\t\tif (this.collapsed) {\n\t\t\t\tthis.toggleCollapsed();\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\n\t\tif (minus || left) {\n\t\t\t// collapse\n\t\t\tif (!this.collapsed) {\n\t\t\t\tthis.toggleCollapsed();\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\t}\n\n\tgetHeaderDomRef() {\n\t\treturn this.getDomRef()?.querySelector(\".ui5-nli-group-header\") as HTMLElement;\n\t}\n}\n\nNotificationListGroupItem.define();\n\nexport default NotificationListGroupItem;\nexport type {\n\tNotificationListGroupItemToggleEventDetail,\n};\n"]}
1
+ {"version":3,"file":"NotificationListGroupItem.js","sourceRoot":"","sources":["../src/NotificationListGroupItem.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACN,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GACzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,yDAAyD,CAAC;AAC5E,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAG/E,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAGrE,QAAQ;AACR,OAAO,wBAAwB,MAAM,yDAAyD,CAAC;AAC/F,OAAO,uBAAuB,MAAM,wDAAwD,CA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Q,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4DACV;AAUlB;IADC,QAAQ,EAAE;0DACwC;AAQnD;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;wDACV;AA7B9B,yBAAyB;IA5B9B,aAAa,CAAC;QACd,GAAG,EAAE,2BAA2B;QAChC,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE;YACP,4BAA4B;SAC5B;QACD,QAAQ,EAAE,iCAAiC;KAC3C,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,QAAQ,EAAE;QAChB,OAAO,EAAE,IAAI;KACb,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,WAAW,EAAE;QACnB,OAAO,EAAE,IAAI;KACb,CAAC;GAEI,yBAAyB,CAkK9B;AAED,yBAAyB,CAAC,MAAM,EAAE,CAAC;AAEnC,eAAe,yBAAyB,CAAC","sourcesContent":["import {\n\tisSpace, isPlus, isMinus, isLeft, isRight,\n} from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event-strict.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport type NotificationListGrowingMode from \"@ui5/webcomponents/dist/types/NotificationListGrowingMode.js\";\nimport type NotificationListGroupList from \"./NotificationListGroupList.js\";\nimport NotificationListItemBase from \"./NotificationListItemBase.js\";\nimport type NotificationListItem from \"./NotificationListItem.js\";\n\n// Icons\nimport iconNavigationRightArrow from \"@ui5/webcomponents-icons/dist/navigation-right-arrow.js\";\nimport iconNavigationDownArrow from \"@ui5/webcomponents-icons/dist/navigation-down-arrow.js\";\n\n// Texts\nimport {\n\tNOTIFICATION_LIST_GROUP_ITEM_TXT,\n\tNOTIFICATION_LIST_GROUP_COLLAPSED,\n\tNOTIFICATION_LIST_GROUP_EXPANDED,\n\tNOTIFICATION_LIST_GROUP_ITEM_TOGGLE_ICON_COLLAPSE_TITLE,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Templates\nimport NotificationListGroupItemTemplate from \"./NotificationListGroupItemTemplate.js\";\n\n// Styles\nimport NotificationListGroupItemCss from \"./generated/themes/NotificationListGroupItem.css.js\";\n\ntype NotificationListGroupItemToggleEventDetail = {\n\titem: NotificationListGroupItem,\n};\n\n/**\n * @class\n *\n * ### Overview\n * The `ui5-li-notification-group` is a special type of list item,\n * that unlike others can group items within self, usually `ui5-li-notification` items.\n *\n * The component consists of:\n *\n * - `Toggle` button to expand and collapse the group\n * - `TitleText` to entitle the group\n * - Items of the group\n *\n * ### Usage\n * The component can be used in a standard `ui5-list`.\n *\n * ### Keyboard Handling\n * The `ui5-li-notification-group` provides advanced keyboard handling.\n * This component provides fast navigation when the header is focused using the following keyboard shortcuts:\n *\n * - [Space] - toggles expand / collapse of the group\n * - [Plus] - expands the group\n * - [Minus] - collapses the group\n * - [Right] - expands the group\n * - [Left] - collapses the group\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents-fiori/dist/NotificationListGroupItem.js\";`\n * @constructor\n * @extends NotificationListItemBase\n * @since 1.0.0-rc.8\n * @public\n */\n@customElement({\n\ttag: \"ui5-li-notification-group\",\n\tlanguageAware: true,\n\trenderer: jsxRenderer,\n\tstyles: [\n\t\tNotificationListGroupItemCss,\n\t],\n\ttemplate: NotificationListGroupItemTemplate,\n})\n\n/**\n * Fired when the `ui5-li-notification-group` is expanded/collapsed by user interaction.\n * @public\n */\n@event(\"toggle\", {\n\tbubbles: true,\n})\n\n/**\n * Fired when additional items are requested.\n *\n * @public\n * @since 2.2.0\n */\n@event(\"load-more\", {\n\tbubbles: true,\n})\n\nclass NotificationListGroupItem extends NotificationListItemBase {\n\teventDetails!: NotificationListItemBase[\"eventDetails\"] & {\n\t\ttoggle: NotificationListGroupItemToggleEventDetail;\n\t\t\"load-more\": void;\n\t}\n\t/**\n\t * Defines if the group is collapsed or expanded.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed = false;\n\n\t/**\n\t * Defines whether the component will have growing capability by pressing a `More` button.\n\t * When button is pressed `load-more` event will be fired.\n\t * @default \"None\"\n\t * @public\n\t * @since 2.2.0\n\t */\n\t@property()\n\tgrowing: `${NotificationListGrowingMode}` = \"None\";\n\n\t/**\n\t * Defines the items of the `ui5-li-notification-group`,\n\t * usually `ui5-li-notification` items.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\titems!: Array<NotificationListItem>\n\n\tonBeforeRendering() {\n\t\tsuper.onBeforeRendering();\n\n\t\tthis.items.forEach(item => {\n\t\t\titem._ariaLevel = 2;\n\t\t});\n\n\t\tif (this.loading) {\n\t\t\tthis.clearChildBusyIndicator();\n\t\t}\n\t\tthis.actionable = false;\n\t}\n\n\t/**\n\t * Clears child items loading state to show a single loading over the entire group,\n\t * instead of multiple BusyIndicator instances\n\t */\n\tclearChildBusyIndicator() {\n\t\tthis.items.forEach(item => {\n\t\t\titem.loading = false;\n\t\t});\n\t}\n\n\tget toggleIconAccessibleName() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TOGGLE_ICON_COLLAPSE_TITLE);\n\t}\n\n\tget accInvisibleText() {\n\t\treturn `${this.groupText} ${this.expandText}`;\n\t}\n\n\tget expandText() {\n\t\tif (this.collapsed) {\n\t\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_COLLAPSED);\n\t\t}\n\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_EXPANDED);\n\t}\n\n\tget groupText() {\n\t\treturn NotificationListGroupItem.i18nFioriBundle.getText(NOTIFICATION_LIST_GROUP_ITEM_TXT);\n\t}\n\n\tget ariaLabelledBy() {\n\t\tconst id = this._id;\n\n\t\tif (this.loading) {\n\t\t\treturn `${id}-loading`;\n\t\t}\n\n\t\tconst ids = [];\n\n\t\tif (this.hasTitleText) {\n\t\t\tids.push(`${id}-title-text`);\n\t\t}\n\n\t\treturn ids.join(\" \");\n\t}\n\n\tget _expanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\tget _pressable() {\n\t\treturn false;\n\t}\n\n\tget groupCollapsedIcon() {\n\t\treturn this.collapsed ? iconNavigationRightArrow : iconNavigationDownArrow;\n\t}\n\n\ttoggleCollapsed() {\n\t\tthis.collapsed = !this.collapsed;\n\t\tthis.fireDecoratorEvent(\"toggle\", { item: this });\n\t}\n\n\t/**\n\t * Event handlers\n\t *\n\t */\n\t_onHeaderToggleClick() {\n\t\tthis.toggleCollapsed();\n\t}\n\n\t_onLoadMore() {\n\t\tthis.fireDecoratorEvent(\"load-more\");\n\t}\n\n\tget loadMoreButton() {\n\t\tconst innerList = this.getDomRef()?.querySelector(\"[ui5-notification-group-list]\") as NotificationListGroupList;\n\t\treturn innerList.getDomRef()?.querySelector(\".ui5-growing-button-inner\") as HTMLElement;\n\t}\n\n\tasync _onkeydown(e: KeyboardEvent) {\n\t\tconst isFocused = this.matches(\":focus\");\n\t\tif (!isFocused) {\n\t\t\treturn;\n\t\t}\n\n\t\tawait super._onkeydown(e);\n\n\t\tconst space = isSpace(e);\n\t\tconst plus = isPlus(e);\n\t\tconst minus = isMinus(e);\n\t\tconst left = isLeft(e);\n\t\tconst right = isRight(e);\n\n\t\tif (space) {\n\t\t\tthis.toggleCollapsed();\n\t\t}\n\n\t\tif (plus || right) {\n\t\t\t// expand\n\t\t\tif (this.collapsed) {\n\t\t\t\tthis.toggleCollapsed();\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\n\t\tif (minus || left) {\n\t\t\t// collapse\n\t\t\tif (!this.collapsed) {\n\t\t\t\tthis.toggleCollapsed();\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t}\n\t\t}\n\t}\n\n\tgetHeaderDomRef() {\n\t\treturn this.getDomRef()?.querySelector(\".ui5-nli-group-header\") as HTMLElement;\n\t}\n}\n\nNotificationListGroupItem.define();\n\nexport default NotificationListGroupItem;\nexport type {\n\tNotificationListGroupItemToggleEventDetail,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type NotificationListGroupItem from "./NotificationListGroupItem.js";
2
+ export default function NotificationListItemTemplate(this: NotificationListGroupItem): import("@ui5/webcomponents-base/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@ui5/webcomponents-base/jsx-runtime";
2
+ import BusyIndicator from "@ui5/webcomponents/dist/BusyIndicator.js";
3
+ import Icon from "@ui5/webcomponents/dist/Icon.js";
4
+ import NotificationListGroupList from "./NotificationListGroupList.js";
5
+ export default function NotificationListItemTemplate() {
6
+ return (_jsxs("li", { class: "ui5-nli-group-root ui5-nli-focusable", onFocusIn: this._onfocusin, onKeyDown: this._onkeydown, tabindex: this.forcedTabIndex ? parseInt(this.forcedTabIndex) : undefined, "aria-labelledby": this.ariaLabelledBy, "aria-description": this.accInvisibleText, "aria-level": 1, children: [this.loading && (_jsx("span", { id: `${this._id}-loading`, class: "ui5-hidden-text", children: this.loadingText })), _jsx(BusyIndicator, { delay: this.loadingDelay, active: this.loading, inert: this.loading, class: "ui5-nli-loading", children: _jsxs("div", { class: "ui5-nli-group-content-wrapper", children: [_jsxs("div", { class: {
7
+ "ui5-nli-group-header": true,
8
+ "ui5-nli-group-header-expanded": this._expanded,
9
+ }, onClick: this._onHeaderToggleClick, onKeyDown: this._onkeydown, role: "button", "aria-expanded": this._expanded, "aria-controls": `${this._id}-notificationsList`, title: this.toggleIconAccessibleName, children: [_jsx(Icon, { name: this.groupCollapsedIcon, class: "ui5-nli-group-toggle-icon", mode: "Decorative" }), _jsx("div", { id: `${this._id}-title-text`, class: "ui5-nli-group-title-text", part: "title-text", role: "heading", "aria-level": 2, children: this.titleText }), _jsx("div", { class: "ui5-nli-group-divider" })] }), _jsx(NotificationListGroupList, { id: `${this._id}-notificationsList`, class: "ui5-nli-group-items", accessibleNameRef: `${this._id}-title-text`, growing: this.growing, onLoadMore: this._onLoadMore, children: _jsx("slot", {}) })] }) })] }));
10
+ }
11
+ //# sourceMappingURL=NotificationListGroupItemTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationListGroupItemTemplate.js","sourceRoot":"","sources":["../src/NotificationListGroupItemTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,0CAA0C,CAAC;AAErE,OAAO,IAAI,MAAM,iCAAiC,CAAC;AACnD,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AAEvE,MAAM,CAAC,OAAO,UAAU,4BAA4B;IACnD,OAAO,CACN,cACC,KAAK,EAAC,sCAAsC,EAC5C,SAAS,EAAE,IAAI,CAAC,UAAU,EAC1B,SAAS,EAAE,IAAI,CAAC,UAAU,EAC1B,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,qBACxD,IAAI,CAAC,cAAc,sBAClB,IAAI,CAAC,gBAAgB,gBAC3B,CAAC,aAEZ,IAAI,CAAC,OAAO,IAAI,CAChB,eACC,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,UAAU,EACzB,KAAK,EAAC,iBAAiB,YAEtB,IAAI,CAAC,WAAW,GACX,CACP,EACD,KAAC,aAAa,IACb,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,MAAM,EAAE,IAAI,CAAC,OAAO,EACpB,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,KAAK,EAAC,iBAAiB,YAEvB,eAAK,KAAK,EAAC,+BAA+B,aACzC,eACC,KAAK,EAAE;gCACN,sBAAsB,EAAE,IAAI;gCAC5B,+BAA+B,EAAE,IAAI,CAAC,SAAS;6BAC/C,EACD,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAClC,SAAS,EAAE,IAAI,CAAC,UAAU,EAC1B,IAAI,EAAC,QAAQ,mBACE,IAAI,CAAC,SAAS,mBACd,GAAG,IAAI,CAAC,GAAG,oBAAoB,EAC9C,KAAK,EAAE,IAAI,CAAC,wBAAwB,aACpC,KAAC,IAAI,IACJ,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAC7B,KAAK,EAAC,2BAA2B,EACjC,IAAI,EAAC,YAAY,GAChB,EACF,cACC,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,aAAa,EAC5B,KAAK,EAAC,0BAA0B,EAChC,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,SAAS,gBACF,CAAC,YAEZ,IAAI,CAAC,SAAS,GACV,EACN,cAAK,KAAK,EAAC,uBAAuB,GAAO,IACpC,EACN,KAAC,yBAAyB,IACzB,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,oBAAoB,EACnC,KAAK,EAAC,qBAAqB,EAC3B,iBAAiB,EAAE,GAAG,IAAI,CAAC,GAAG,aAAa,EAC3C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,UAAU,EAAE,IAAI,CAAC,WAAW,YAE5B,gBAAa,GACc,IACvB,GACS,IACZ,CACL,CAAC;AACH,CAAC","sourcesContent":["import BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport type NotificationListGroupItem from \"./NotificationListGroupItem.js\";\nimport Icon from \"@ui5/webcomponents/dist/Icon.js\";\nimport NotificationListGroupList from \"./NotificationListGroupList.js\";\n\nexport default function NotificationListItemTemplate(this: NotificationListGroupItem) {\n\treturn (\n\t\t<li\n\t\t\tclass=\"ui5-nli-group-root ui5-nli-focusable\"\n\t\t\tonFocusIn={this._onfocusin}\n\t\t\tonKeyDown={this._onkeydown}\n\t\t\ttabindex={this.forcedTabIndex ? parseInt(this.forcedTabIndex) : undefined}\n\t\t\taria-labelledby={this.ariaLabelledBy}\n\t\t\taria-description={this.accInvisibleText}\n\t\t\taria-level={1}\n\t\t>\n\t\t\t{this.loading && (\n\t\t\t\t<span\n\t\t\t\t\tid={`${this._id}-loading`}\n\t\t\t\t\tclass=\"ui5-hidden-text\"\n\t\t\t\t>\n\t\t\t\t\t{this.loadingText}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\t<BusyIndicator\n\t\t\t\tdelay={this.loadingDelay}\n\t\t\t\tactive={this.loading}\n\t\t\t\tinert={this.loading}\n\t\t\t\tclass=\"ui5-nli-loading\"\n\t\t\t>\n\t\t\t\t<div class=\"ui5-nli-group-content-wrapper\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t\"ui5-nli-group-header\": true,\n\t\t\t\t\t\t\t\"ui5-nli-group-header-expanded\": this._expanded,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonClick={this._onHeaderToggleClick}\n\t\t\t\t\t\tonKeyDown={this._onkeydown}\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\taria-expanded={this._expanded}\n\t\t\t\t\t\taria-controls={`${this._id}-notificationsList`}\n\t\t\t\t\t\ttitle={this.toggleIconAccessibleName}>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tname={this.groupCollapsedIcon}\n\t\t\t\t\t\t\tclass=\"ui5-nli-group-toggle-icon\"\n\t\t\t\t\t\t\tmode=\"Decorative\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tid={`${this._id}-title-text`}\n\t\t\t\t\t\t\tclass=\"ui5-nli-group-title-text\"\n\t\t\t\t\t\t\tpart=\"title-text\"\n\t\t\t\t\t\t\trole=\"heading\"\n\t\t\t\t\t\t\taria-level={2}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.titleText}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"ui5-nli-group-divider\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<NotificationListGroupList\n\t\t\t\t\t\tid={`${this._id}-notificationsList`}\n\t\t\t\t\t\tclass=\"ui5-nli-group-items\"\n\t\t\t\t\t\taccessibleNameRef={`${this._id}-title-text`}\n\t\t\t\t\t\tgrowing={this.growing}\n\t\t\t\t\t\tonLoadMore={this._onLoadMore}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</NotificationListGroupList>\n\t\t\t\t</div>\n\t\t\t</BusyIndicator>\n\t\t</li>\n\t);\n}\n"]}
@@ -1,16 +1,13 @@
1
+ import type { UI5CustomEvent } from "@ui5/webcomponents-base";
1
2
  import type { ResizeObserverCallback } from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
3
+ import type { ButtonAccessibilityAttributes } from "@ui5/webcomponents/dist/Button.js";
4
+ import type Link from "@ui5/webcomponents/dist/Link.js";
2
5
  import WrappingType from "@ui5/webcomponents/dist/types/WrappingType.js";
3
6
  import type Menu from "@ui5/webcomponents/dist/Menu.js";
4
7
  import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js";
5
8
  import NotificationListItemImportance from "./types/NotificationListItemImportance.js";
6
9
  import NotificationListItemBase from "./NotificationListItemBase.js";
7
- import "@ui5/webcomponents-icons/dist/overflow.js";
8
- import "@ui5/webcomponents-icons/dist/decline.js";
9
- import "@ui5/webcomponents-icons/dist/high-priority.js";
10
- import "@ui5/webcomponents-icons/dist/message-success.js";
11
- import "@ui5/webcomponents-icons/dist/message-information.js";
12
- import "@ui5/webcomponents-icons/dist/message-error.js";
13
- import "@ui5/webcomponents-icons/dist/message-warning.js";
10
+ import IconDesign from "@ui5/webcomponents/dist/types/IconDesign.js";
14
11
  type NotificationListItemCloseEventDetail = {
15
12
  item: HTMLElement;
16
13
  };
@@ -146,14 +143,13 @@ declare class NotificationListItem extends NotificationListItemBase {
146
143
  _titleTextOverflowHeight: number;
147
144
  _descOverflowHeight: number;
148
145
  _onResizeBound: ResizeObserverCallback;
149
- _ariaLevel: string | undefined;
146
+ _ariaLevel?: number;
150
147
  constructor();
151
148
  onEnterDOM(): void;
152
149
  onExitDOM(): void;
153
150
  get hasState(): boolean;
154
151
  get hasDesc(): boolean;
155
152
  get hasImportance(): boolean;
156
- get contentClasses(): "ui5-nli-content ui5-nli-content-with-importance" | "ui5-nli-content";
157
153
  get hasFootNotes(): boolean;
158
154
  get showMoreText(): string;
159
155
  get menuBtnAccessibleName(): string;
@@ -171,31 +167,26 @@ declare class NotificationListItem extends NotificationListItemBase {
171
167
  get ariaLabelledBy(): string;
172
168
  get itemClasses(): string;
173
169
  get statusIconName(): string;
174
- get statusIconDesign(): string;
170
+ get statusIconDesign(): IconDesign | undefined;
175
171
  get importanceText(): string;
176
172
  get stateText(): string;
177
173
  get readText(): string;
178
- get accInfoButton(): {
179
- accessibilityAttributes: {
180
- hasPopup: string;
181
- };
182
- };
183
- get accInfoLink(): {
184
- accessibilityAttributes: {
185
- expanded: boolean;
186
- };
174
+ get menuButtonAccessibilityAttributes(): ButtonAccessibilityAttributes;
175
+ get moreLinkAccessibilityAttributes(): {
176
+ expanded: boolean;
187
177
  };
188
178
  get showMenu(): boolean;
189
179
  /**
190
180
  * Event handlers
191
181
  */
192
182
  _onclick(): void;
193
- _onShowMoreClick(e: MouseEvent): void;
183
+ _onShowMoreClick(e: UI5CustomEvent<Link, "click">): void;
194
184
  _onkeydown(e: KeyboardEvent): Promise<void>;
195
185
  focusSameItemOnNextRow(e: KeyboardEvent): void;
196
186
  _onkeyup(e: KeyboardEvent): void;
197
187
  _onBtnCloseClick(): void;
198
188
  _onBtnMenuClick(): void;
189
+ _toggleShowMorePressed(): void;
199
190
  openMenu(): void;
200
191
  getMenu(): Menu;
201
192
  /**