@ui5/webcomponents-fiori 0.0.0-aeb93167c → 0.0.0-b053ad005

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 (554) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +57 -9
  3. package/dist/Assets-static.js +6 -0
  4. package/dist/Assets.js +1 -1
  5. package/dist/Bar.js +182 -0
  6. package/dist/BarcodeScannerDialog.js +262 -0
  7. package/dist/FilterItem.js +94 -0
  8. package/dist/FilterItemOption.js +69 -0
  9. package/dist/FlexibleColumnLayout.js +67 -28
  10. package/dist/IllustratedMessage.js +314 -0
  11. package/dist/Interfaces.js +122 -0
  12. package/dist/{NotificationOverflowAction.js → NotificationAction.js} +22 -13
  13. package/dist/NotificationListGroupItem.js +60 -27
  14. package/dist/NotificationListItem.js +68 -69
  15. package/dist/NotificationListItemBase.js +45 -15
  16. package/dist/Page.js +223 -0
  17. package/dist/ProductSwitch.js +78 -11
  18. package/dist/ProductSwitchItem.js +32 -8
  19. package/dist/ShellBar.js +198 -76
  20. package/dist/ShellBarItem.js +5 -15
  21. package/dist/SideNavigation.js +54 -13
  22. package/dist/SideNavigationItem.js +38 -4
  23. package/dist/SideNavigationSubItem.js +20 -1
  24. package/dist/SortItem.js +68 -0
  25. package/dist/Timeline.js +169 -0
  26. package/dist/TimelineItem.js +197 -0
  27. package/dist/UploadCollection.js +73 -26
  28. package/dist/UploadCollectionItem.js +111 -99
  29. package/dist/ViewSettingsDialog.js +628 -0
  30. package/dist/Wizard.js +413 -109
  31. package/dist/WizardStep.js +25 -34
  32. package/dist/WizardTab.js +23 -83
  33. package/dist/api.json +2204 -1
  34. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  35. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  36. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  37. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  38. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
  39. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  40. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  41. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  42. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  43. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
  44. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  45. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  46. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  47. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  48. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
  49. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  50. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  51. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  52. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
  53. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  54. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  55. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  56. package/dist/generated/assets/i18n/messagebundle_in.json +1 -0
  57. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  58. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  59. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  60. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  61. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  62. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  63. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  64. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  65. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  66. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  67. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  68. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  69. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
  70. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  71. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  72. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  73. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  74. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  75. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  76. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  77. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  78. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  79. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  80. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  81. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  82. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  83. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  84. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  85. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  86. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  87. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  88. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  89. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -0
  90. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -0
  91. package/dist/generated/i18n/i18n-defaults.js +2 -2
  92. package/dist/generated/json-imports/Themes-static.js +35 -0
  93. package/dist/generated/json-imports/Themes.js +23 -19
  94. package/dist/generated/json-imports/i18n-static.js +162 -0
  95. package/dist/generated/json-imports/i18n.js +113 -89
  96. package/dist/generated/templates/BarTemplate.lit.js +7 -0
  97. package/dist/generated/templates/BarcodeScannerDialogTemplate.lit.js +7 -0
  98. package/dist/generated/templates/FilterItemTemplate.lit.js +20 -0
  99. package/dist/generated/templates/FlexibleColumnLayoutTemplate.lit.js +4 -11
  100. package/dist/generated/templates/IllustratedMessageTemplate.lit.js +13 -0
  101. package/dist/generated/templates/NotifactionOverflowActionsPopoverTemplate.lit.js +5 -12
  102. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.js +12 -19
  103. package/dist/generated/templates/NotificationListItemTemplate.lit.js +13 -20
  104. package/dist/generated/templates/PageTemplate.lit.js +7 -0
  105. package/dist/generated/templates/ProductSwitchItemTemplate.lit.js +12 -19
  106. package/dist/generated/templates/ProductSwitchTemplate.lit.js +4 -11
  107. package/dist/generated/templates/ShellBarPopoverTemplate.lit.js +6 -13
  108. package/dist/generated/templates/ShellBarTemplate.lit.js +22 -27
  109. package/dist/generated/templates/SideNavigationItemPopoverContentTemplate.lit.js +5 -12
  110. package/dist/generated/templates/SideNavigationTemplate.lit.js +13 -19
  111. package/dist/generated/templates/TimelineItemTemplate.lit.js +13 -0
  112. package/dist/generated/templates/TimelineTemplate.lit.js +8 -0
  113. package/dist/generated/templates/UploadCollectionItemTemplate.lit.js +23 -30
  114. package/dist/generated/templates/UploadCollectionTemplate.lit.js +6 -14
  115. package/dist/generated/templates/ViewSettingsDialogTemplate.lit.js +18 -0
  116. package/dist/generated/templates/WizardPopoverTemplate.lit.js +8 -0
  117. package/dist/generated/templates/WizardTabTemplate.lit.js +8 -15
  118. package/dist/generated/templates/WizardTemplate.lit.js +6 -13
  119. package/dist/generated/themes/Bar.css.js +8 -0
  120. package/dist/generated/themes/BarcodeScannerDialog.css.js +8 -0
  121. package/dist/generated/themes/FilterItem.css.js +8 -0
  122. package/dist/generated/themes/FlexibleColumnLayout.css.js +5 -5
  123. package/dist/generated/themes/IllustratedMessage.css.js +8 -0
  124. package/dist/generated/themes/InvisibleTextStyles.css.js +5 -5
  125. package/dist/generated/themes/NotifactionOverflowActionsPopover.css.js +5 -5
  126. package/dist/generated/themes/NotificationListGroupItem.css.js +5 -5
  127. package/dist/generated/themes/NotificationListItem.css.js +5 -5
  128. package/dist/generated/themes/NotificationListItemBase.css.js +5 -5
  129. package/dist/generated/themes/NotificationPrioIcon.css.js +5 -5
  130. package/dist/generated/themes/Page.css.js +8 -0
  131. package/dist/generated/themes/ProductSwitch.css.js +5 -5
  132. package/dist/generated/themes/ProductSwitchItem.css.js +5 -5
  133. package/dist/generated/themes/ShellBar.css.js +5 -5
  134. package/dist/generated/themes/SideNavigation.css.js +5 -5
  135. package/dist/generated/themes/Timeline.css.js +8 -0
  136. package/dist/generated/themes/TimelineItem.css.js +8 -0
  137. package/dist/generated/themes/UploadCollection.css.js +5 -5
  138. package/dist/generated/themes/UploadCollectionItem.css.js +5 -5
  139. package/dist/generated/themes/ViewSettingsDialog.css.js +8 -0
  140. package/dist/generated/themes/Wizard.css.js +5 -5
  141. package/dist/generated/themes/WizardPopover.css.js +8 -0
  142. package/dist/generated/themes/WizardTab.css.js +5 -5
  143. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  144. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  145. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  146. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  147. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  148. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  149. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  150. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -0
  151. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -0
  152. package/dist/i18n/messagebundle.properties +266 -0
  153. package/dist/i18n/messagebundle_ar.properties +177 -0
  154. package/dist/i18n/messagebundle_bg.properties +177 -0
  155. package/dist/i18n/messagebundle_ca.properties +177 -0
  156. package/dist/i18n/messagebundle_cs.properties +177 -0
  157. package/dist/i18n/messagebundle_cy.properties +177 -0
  158. package/dist/i18n/messagebundle_da.properties +177 -0
  159. package/dist/i18n/messagebundle_de.properties +177 -0
  160. package/dist/i18n/messagebundle_el.properties +177 -0
  161. package/dist/i18n/messagebundle_en.properties +177 -0
  162. package/dist/i18n/messagebundle_en_GB.properties +177 -0
  163. package/dist/i18n/messagebundle_en_US_sappsd.properties +177 -0
  164. package/dist/i18n/messagebundle_en_US_saprigi.properties +177 -0
  165. package/dist/i18n/messagebundle_en_US_saptrc.properties +177 -0
  166. package/dist/i18n/messagebundle_es.properties +177 -0
  167. package/dist/i18n/messagebundle_es_MX.properties +177 -0
  168. package/dist/i18n/messagebundle_et.properties +177 -0
  169. package/dist/i18n/messagebundle_fi.properties +177 -0
  170. package/dist/i18n/messagebundle_fr.properties +177 -0
  171. package/dist/i18n/messagebundle_fr_CA.properties +177 -0
  172. package/dist/i18n/messagebundle_hi.properties +177 -0
  173. package/dist/i18n/messagebundle_hr.properties +177 -0
  174. package/dist/i18n/messagebundle_hu.properties +177 -0
  175. package/dist/i18n/messagebundle_id.properties +177 -0
  176. package/dist/i18n/messagebundle_in.properties +88 -0
  177. package/dist/i18n/messagebundle_it.properties +177 -0
  178. package/dist/i18n/messagebundle_iw.properties +177 -0
  179. package/dist/i18n/messagebundle_ja.properties +177 -0
  180. package/dist/i18n/messagebundle_kk.properties +177 -0
  181. package/dist/i18n/messagebundle_ko.properties +177 -0
  182. package/dist/i18n/messagebundle_lt.properties +177 -0
  183. package/dist/i18n/messagebundle_lv.properties +177 -0
  184. package/dist/i18n/messagebundle_ms.properties +177 -0
  185. package/dist/i18n/messagebundle_nl.properties +177 -0
  186. package/dist/i18n/messagebundle_no.properties +177 -0
  187. package/dist/i18n/messagebundle_pl.properties +177 -0
  188. package/dist/i18n/messagebundle_pt.properties +177 -0
  189. package/dist/i18n/messagebundle_pt_PT.properties +177 -0
  190. package/dist/i18n/messagebundle_ro.properties +177 -0
  191. package/dist/i18n/messagebundle_ru.properties +177 -0
  192. package/dist/i18n/messagebundle_sh.properties +177 -0
  193. package/dist/i18n/messagebundle_sk.properties +177 -0
  194. package/dist/i18n/messagebundle_sl.properties +177 -0
  195. package/dist/i18n/messagebundle_sv.properties +177 -0
  196. package/dist/i18n/messagebundle_th.properties +177 -0
  197. package/dist/i18n/messagebundle_tr.properties +177 -0
  198. package/dist/i18n/messagebundle_uk.properties +177 -0
  199. package/dist/i18n/messagebundle_vi.properties +177 -0
  200. package/dist/i18n/messagebundle_zh_CN.properties +177 -0
  201. package/dist/i18n/messagebundle_zh_TW.properties +177 -0
  202. package/dist/illustrations/BeforeSearch.js +28 -0
  203. package/dist/illustrations/NoActivities.js +28 -0
  204. package/dist/illustrations/NoData.js +28 -0
  205. package/dist/illustrations/NoEntries.js +28 -0
  206. package/dist/illustrations/NoMail.js +28 -0
  207. package/dist/illustrations/NoNotifications.js +28 -0
  208. package/dist/illustrations/NoSavedItems.js +28 -0
  209. package/dist/illustrations/NoSearchResults.js +28 -0
  210. package/dist/illustrations/NoTasks.js +28 -0
  211. package/dist/illustrations/UnableToLoad.js +28 -0
  212. package/dist/illustrations/UnableToUpload.js +28 -0
  213. package/dist/illustrations/sapIllus-Dialog-BeforeSearch.js +14 -0
  214. package/dist/illustrations/sapIllus-Dialog-NoActivities.js +19 -0
  215. package/dist/illustrations/sapIllus-Dialog-NoData.js +11 -0
  216. package/dist/illustrations/sapIllus-Dialog-NoEntries.js +19 -0
  217. package/dist/illustrations/sapIllus-Dialog-NoMail.js +12 -0
  218. package/dist/illustrations/sapIllus-Dialog-NoNotifications.js +15 -0
  219. package/dist/illustrations/sapIllus-Dialog-NoSavedItems.js +14 -0
  220. package/dist/illustrations/sapIllus-Dialog-NoSearchResults.js +16 -0
  221. package/dist/illustrations/sapIllus-Dialog-NoTasks.js +19 -0
  222. package/dist/illustrations/sapIllus-Dialog-UnableToLoad.js +12 -0
  223. package/dist/illustrations/sapIllus-Dialog-UnableToUpload.js +14 -0
  224. package/dist/illustrations/sapIllus-Scene-BeforeSearch.js +32 -0
  225. package/dist/illustrations/sapIllus-Scene-NoActivities.js +29 -0
  226. package/dist/illustrations/sapIllus-Scene-NoData.js +24 -0
  227. package/dist/illustrations/sapIllus-Scene-NoEntries.js +33 -0
  228. package/dist/illustrations/sapIllus-Scene-NoMail.js +24 -0
  229. package/dist/illustrations/sapIllus-Scene-NoNotifications.js +37 -0
  230. package/dist/illustrations/sapIllus-Scene-NoSavedItems.js +36 -0
  231. package/dist/illustrations/sapIllus-Scene-NoSearchResults.js +16 -0
  232. package/dist/illustrations/sapIllus-Scene-NoTasks.js +23 -0
  233. package/dist/illustrations/sapIllus-Scene-UnableToLoad.js +24 -0
  234. package/dist/illustrations/sapIllus-Scene-UnableToUpload.js +14 -0
  235. package/dist/illustrations/sapIllus-Spot-BeforeSearch.js +11 -0
  236. package/dist/illustrations/sapIllus-Spot-NoActivities.js +23 -0
  237. package/dist/illustrations/sapIllus-Spot-NoData.js +9 -0
  238. package/dist/illustrations/sapIllus-Spot-NoEntries.js +22 -0
  239. package/dist/illustrations/sapIllus-Spot-NoMail.js +11 -0
  240. package/dist/illustrations/sapIllus-Spot-NoNotifications.js +15 -0
  241. package/dist/illustrations/sapIllus-Spot-NoSavedItems.js +9 -0
  242. package/dist/illustrations/sapIllus-Spot-NoSearchResults.js +14 -0
  243. package/dist/illustrations/sapIllus-Spot-NoTasks.js +20 -0
  244. package/dist/illustrations/sapIllus-Spot-UnableToLoad.js +11 -0
  245. package/dist/illustrations/sapIllus-Spot-UnableToUpload.js +11 -0
  246. package/dist/illustrations/tnt/CodePlaceholder.js +20 -0
  247. package/dist/illustrations/tnt/Company.js +20 -0
  248. package/dist/illustrations/tnt/ExternalLink.js +20 -0
  249. package/dist/illustrations/tnt/FaceID.js +20 -0
  250. package/dist/illustrations/tnt/Fingerprint.js +20 -0
  251. package/dist/illustrations/tnt/Lock.js +20 -0
  252. package/dist/illustrations/tnt/Mission.js +20 -0
  253. package/dist/illustrations/tnt/NoApplications.js +20 -0
  254. package/dist/illustrations/tnt/NoFlows.js +20 -0
  255. package/dist/illustrations/tnt/NoUsers.js +20 -0
  256. package/dist/illustrations/tnt/Radar.js +20 -0
  257. package/dist/illustrations/tnt/Services.js +20 -0
  258. package/dist/illustrations/tnt/SessionExpired.js +20 -0
  259. package/dist/illustrations/tnt/SessionExpiring.js +20 -0
  260. package/dist/illustrations/tnt/Success.js +20 -0
  261. package/dist/illustrations/tnt/SuccessfulAuth.js +20 -0
  262. package/dist/illustrations/tnt/Unlock.js +20 -0
  263. package/dist/illustrations/tnt/UnsuccessfulAuth.js +20 -0
  264. package/dist/illustrations/tnt/tnt-Dialog-CodePlaceholder.js +6 -0
  265. package/dist/illustrations/tnt/tnt-Dialog-Company.js +13 -0
  266. package/dist/illustrations/tnt/tnt-Dialog-ExternalLink.js +11 -0
  267. package/dist/illustrations/tnt/tnt-Dialog-FaceID.js +17 -0
  268. package/dist/illustrations/tnt/tnt-Dialog-Fingerprint.js +16 -0
  269. package/dist/illustrations/tnt/tnt-Dialog-Lock.js +12 -0
  270. package/dist/illustrations/tnt/tnt-Dialog-Mission.js +18 -0
  271. package/dist/illustrations/tnt/tnt-Dialog-NoApplications.js +16 -0
  272. package/dist/illustrations/tnt/tnt-Dialog-NoFlows.js +12 -0
  273. package/dist/illustrations/tnt/tnt-Dialog-NoUsers.js +16 -0
  274. package/dist/illustrations/tnt/tnt-Dialog-Radar.js +15 -0
  275. package/dist/illustrations/tnt/tnt-Dialog-Services.js +16 -0
  276. package/dist/illustrations/tnt/tnt-Dialog-SessionExpired.js +11 -0
  277. package/dist/illustrations/tnt/tnt-Dialog-SessionExpiring.js +10 -0
  278. package/dist/illustrations/tnt/tnt-Dialog-Success.js +10 -0
  279. package/dist/illustrations/tnt/tnt-Dialog-SuccessfulAuth.js +10 -0
  280. package/dist/illustrations/tnt/tnt-Dialog-Unlock.js +12 -0
  281. package/dist/illustrations/tnt/tnt-Dialog-UnsuccessfulAuth.js +11 -0
  282. package/dist/illustrations/tnt/tnt-Scene-CodePlaceholder.js +9 -0
  283. package/dist/illustrations/tnt/tnt-Scene-Company.js +30 -0
  284. package/dist/illustrations/tnt/tnt-Scene-ExternalLink.js +14 -0
  285. package/dist/illustrations/tnt/tnt-Scene-FaceID.js +21 -0
  286. package/dist/illustrations/tnt/tnt-Scene-Fingerprint.js +35 -0
  287. package/dist/illustrations/tnt/tnt-Scene-Lock.js +22 -0
  288. package/dist/illustrations/tnt/tnt-Scene-Mission.js +19 -0
  289. package/dist/illustrations/tnt/tnt-Scene-NoApplications.js +18 -0
  290. package/dist/illustrations/tnt/tnt-Scene-NoFlows.js +20 -0
  291. package/dist/illustrations/tnt/tnt-Scene-NoUsers.js +17 -0
  292. package/dist/illustrations/tnt/tnt-Scene-Radar.js +20 -0
  293. package/dist/illustrations/tnt/tnt-Scene-Services.js +17 -0
  294. package/dist/illustrations/tnt/tnt-Scene-SessionExpired.js +18 -0
  295. package/dist/illustrations/tnt/tnt-Scene-SessionExpiring.js +17 -0
  296. package/dist/illustrations/tnt/tnt-Scene-Success.js +18 -0
  297. package/dist/illustrations/tnt/tnt-Scene-SuccessfulAuth.js +20 -0
  298. package/dist/illustrations/tnt/tnt-Scene-Unlock.js +15 -0
  299. package/dist/illustrations/tnt/tnt-Scene-UnsuccessfulAuth.js +22 -0
  300. package/dist/illustrations/tnt/tnt-Spot-CodePlaceholder.js +6 -0
  301. package/dist/illustrations/tnt/tnt-Spot-Company.js +13 -0
  302. package/dist/illustrations/tnt/tnt-Spot-ExternalLink.js +9 -0
  303. package/dist/illustrations/tnt/tnt-Spot-FaceID.js +16 -0
  304. package/dist/illustrations/tnt/tnt-Spot-Fingerprint.js +10 -0
  305. package/dist/illustrations/tnt/tnt-Spot-Lock.js +13 -0
  306. package/dist/illustrations/tnt/tnt-Spot-Mission.js +17 -0
  307. package/dist/illustrations/tnt/tnt-Spot-NoApplications.js +12 -0
  308. package/dist/illustrations/tnt/tnt-Spot-NoFlows.js +9 -0
  309. package/dist/illustrations/tnt/tnt-Spot-NoUsers.js +12 -0
  310. package/dist/illustrations/tnt/tnt-Spot-Radar.js +14 -0
  311. package/dist/illustrations/tnt/tnt-Spot-Services.js +15 -0
  312. package/dist/illustrations/tnt/tnt-Spot-SessionExpired.js +9 -0
  313. package/dist/illustrations/tnt/tnt-Spot-SessionExpiring.js +9 -0
  314. package/dist/illustrations/tnt/tnt-Spot-Success.js +9 -0
  315. package/dist/illustrations/tnt/tnt-Spot-SuccessfulAuth.js +9 -0
  316. package/dist/illustrations/tnt/tnt-Spot-Unlock.js +11 -0
  317. package/dist/illustrations/tnt/tnt-Spot-UnsuccessfulAuth.js +10 -0
  318. package/dist/types/BarDesign.js +54 -0
  319. package/dist/types/FCLLayout.js +1 -1
  320. package/dist/types/IllustrationMessageType.js +202 -0
  321. package/dist/types/PageBackgroundDesign.js +53 -0
  322. package/dist/types/TimelineLayout.js +42 -0
  323. package/dist/types/UploadCollectionDnDMode.js +1 -1
  324. package/dist/types/UploadState.js +1 -1
  325. package/dist/types/ViewSettingsDialogMode.js +43 -0
  326. package/dist/upload-utils/UploadCollectionBodyDnD.js +0 -1
  327. package/dist/webcomponentsjs/CHANGELOG.md +61 -0
  328. package/dist/webcomponentsjs/README.md +64 -47
  329. package/dist/webcomponentsjs/bundles/webcomponents-ce.js +38 -38
  330. package/dist/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -1
  331. package/dist/webcomponentsjs/bundles/webcomponents-pf_dom.js +60 -0
  332. package/dist/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -0
  333. package/dist/webcomponentsjs/bundles/webcomponents-pf_js.js +95 -0
  334. package/dist/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -0
  335. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +292 -229
  336. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -1
  337. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js +190 -170
  338. package/dist/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -1
  339. package/dist/webcomponentsjs/bundles/webcomponents-sd.js +151 -132
  340. package/dist/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -1
  341. package/dist/webcomponentsjs/custom-elements-es5-adapter.js +2 -2
  342. package/dist/webcomponentsjs/webcomponents-bundle.js +302 -230
  343. package/dist/webcomponentsjs/webcomponents-bundle.js.map +1 -1
  344. package/dist/webcomponentsjs/webcomponents-loader.js +49 -28
  345. package/package-scripts.js +18 -1
  346. package/package.json +19 -7
  347. package/src/Assets-static.js +6 -0
  348. package/src/Assets.js +1 -1
  349. package/src/Bar.hbs +16 -0
  350. package/src/Bar.js +182 -0
  351. package/src/BarcodeScannerDialog.hbs +17 -0
  352. package/src/BarcodeScannerDialog.js +262 -0
  353. package/src/FilterItem.hbs +8 -0
  354. package/src/FilterItem.js +94 -0
  355. package/src/FilterItemOption.js +69 -0
  356. package/src/FlexibleColumnLayout.hbs +0 -2
  357. package/src/FlexibleColumnLayout.js +67 -28
  358. package/src/IllustratedMessage.hbs +58 -0
  359. package/src/IllustratedMessage.js +314 -0
  360. package/src/Interfaces.js +122 -0
  361. package/src/NotifactionOverflowActionsPopover.hbs +1 -1
  362. package/src/{NotificationOverflowAction.js → NotificationAction.js} +22 -13
  363. package/src/NotificationListGroupItem.hbs +16 -7
  364. package/src/NotificationListGroupItem.js +60 -27
  365. package/src/NotificationListItem.hbs +15 -8
  366. package/src/NotificationListItem.js +68 -69
  367. package/src/NotificationListItemBase.js +45 -15
  368. package/src/Page.hbs +15 -0
  369. package/src/Page.js +223 -0
  370. package/src/ProductSwitch.hbs +7 -1
  371. package/src/ProductSwitch.js +78 -11
  372. package/src/ProductSwitchItem.hbs +5 -4
  373. package/src/ProductSwitchItem.js +32 -8
  374. package/src/ShellBar.hbs +31 -23
  375. package/src/ShellBar.js +198 -76
  376. package/src/ShellBarItem.js +5 -15
  377. package/src/ShellBarPopover.hbs +1 -1
  378. package/src/SideNavigation.hbs +11 -3
  379. package/src/SideNavigation.js +54 -13
  380. package/src/SideNavigationItem.js +38 -4
  381. package/src/SideNavigationItemPopoverContent.hbs +18 -15
  382. package/src/SideNavigationSubItem.js +20 -1
  383. package/src/SortItem.js +68 -0
  384. package/src/Timeline.hbs +15 -0
  385. package/src/Timeline.js +169 -0
  386. package/src/TimelineItem.hbs +38 -0
  387. package/src/TimelineItem.js +197 -0
  388. package/src/UploadCollection.hbs +13 -9
  389. package/src/UploadCollection.js +73 -26
  390. package/src/UploadCollectionItem.hbs +16 -7
  391. package/src/UploadCollectionItem.js +111 -99
  392. package/src/ViewSettingsDialog.hbs +108 -0
  393. package/src/ViewSettingsDialog.js +628 -0
  394. package/src/Wizard.hbs +17 -17
  395. package/src/Wizard.js +413 -109
  396. package/src/WizardPopover.hbs +33 -0
  397. package/src/WizardStep.js +25 -34
  398. package/src/WizardTab.hbs +8 -9
  399. package/src/WizardTab.js +23 -83
  400. package/src/i18n/messagebundle.properties +150 -2
  401. package/src/i18n/messagebundle_ar.properties +111 -0
  402. package/src/i18n/messagebundle_bg.properties +111 -0
  403. package/src/i18n/messagebundle_ca.properties +111 -0
  404. package/src/i18n/messagebundle_cs.properties +111 -0
  405. package/src/i18n/messagebundle_cy.properties +177 -0
  406. package/src/i18n/messagebundle_da.properties +111 -0
  407. package/src/i18n/messagebundle_de.properties +111 -0
  408. package/src/i18n/messagebundle_el.properties +111 -0
  409. package/src/i18n/messagebundle_en.properties +111 -0
  410. package/src/i18n/messagebundle_en_GB.properties +177 -0
  411. package/src/i18n/messagebundle_en_US_sappsd.properties +111 -0
  412. package/src/i18n/messagebundle_en_US_saprigi.properties +177 -0
  413. package/src/i18n/messagebundle_en_US_saptrc.properties +111 -0
  414. package/src/i18n/messagebundle_es.properties +111 -0
  415. package/src/i18n/messagebundle_es_MX.properties +177 -0
  416. package/src/i18n/messagebundle_et.properties +111 -0
  417. package/src/i18n/messagebundle_fi.properties +111 -0
  418. package/src/i18n/messagebundle_fr.properties +111 -0
  419. package/src/i18n/messagebundle_fr_CA.properties +177 -0
  420. package/src/i18n/messagebundle_hi.properties +111 -0
  421. package/src/i18n/messagebundle_hr.properties +111 -0
  422. package/src/i18n/messagebundle_hu.properties +111 -0
  423. package/src/i18n/messagebundle_id.properties +177 -0
  424. package/src/i18n/messagebundle_in.properties +88 -0
  425. package/src/i18n/messagebundle_it.properties +113 -2
  426. package/src/i18n/messagebundle_iw.properties +111 -0
  427. package/src/i18n/messagebundle_ja.properties +111 -0
  428. package/src/i18n/messagebundle_kk.properties +111 -0
  429. package/src/i18n/messagebundle_ko.properties +112 -1
  430. package/src/i18n/messagebundle_lt.properties +111 -0
  431. package/src/i18n/messagebundle_lv.properties +111 -0
  432. package/src/i18n/messagebundle_ms.properties +111 -0
  433. package/src/i18n/messagebundle_nl.properties +111 -0
  434. package/src/i18n/messagebundle_no.properties +111 -0
  435. package/src/i18n/messagebundle_pl.properties +112 -1
  436. package/src/i18n/messagebundle_pt.properties +111 -0
  437. package/src/i18n/messagebundle_pt_PT.properties +177 -0
  438. package/src/i18n/messagebundle_ro.properties +111 -0
  439. package/src/i18n/messagebundle_ru.properties +111 -0
  440. package/src/i18n/messagebundle_sh.properties +112 -1
  441. package/src/i18n/messagebundle_sk.properties +111 -0
  442. package/src/i18n/messagebundle_sl.properties +111 -0
  443. package/src/i18n/messagebundle_sv.properties +111 -0
  444. package/src/i18n/messagebundle_th.properties +111 -0
  445. package/src/i18n/messagebundle_tr.properties +112 -1
  446. package/src/i18n/messagebundle_uk.properties +111 -0
  447. package/src/i18n/messagebundle_vi.properties +111 -0
  448. package/src/i18n/messagebundle_zh_CN.properties +111 -0
  449. package/src/i18n/messagebundle_zh_TW.properties +111 -0
  450. package/src/illustrations/sapIllus-Dialog-BeforeSearch.svg +13 -0
  451. package/src/illustrations/sapIllus-Dialog-NoActivities.svg +18 -0
  452. package/src/illustrations/sapIllus-Dialog-NoData.svg +10 -0
  453. package/src/illustrations/sapIllus-Dialog-NoEntries.svg +18 -0
  454. package/src/illustrations/sapIllus-Dialog-NoMail.svg +11 -0
  455. package/src/illustrations/sapIllus-Dialog-NoNotifications.svg +14 -0
  456. package/src/illustrations/sapIllus-Dialog-NoSavedItems.svg +13 -0
  457. package/src/illustrations/sapIllus-Dialog-NoSearchResults.svg +15 -0
  458. package/src/illustrations/sapIllus-Dialog-NoTasks.svg +18 -0
  459. package/src/illustrations/sapIllus-Dialog-UnableToLoad.svg +11 -0
  460. package/src/illustrations/sapIllus-Dialog-UnableToUpload.svg +13 -0
  461. package/src/illustrations/sapIllus-Scene-BeforeSearch.svg +31 -0
  462. package/src/illustrations/sapIllus-Scene-NoActivities.svg +28 -0
  463. package/src/illustrations/sapIllus-Scene-NoData.svg +23 -0
  464. package/src/illustrations/sapIllus-Scene-NoEntries.svg +32 -0
  465. package/src/illustrations/sapIllus-Scene-NoMail.svg +23 -0
  466. package/src/illustrations/sapIllus-Scene-NoNotifications.svg +36 -0
  467. package/src/illustrations/sapIllus-Scene-NoSavedItems.svg +36 -0
  468. package/src/illustrations/sapIllus-Scene-NoSearchResults.svg +15 -0
  469. package/src/illustrations/sapIllus-Scene-NoTasks.svg +22 -0
  470. package/src/illustrations/sapIllus-Scene-UnableToLoad.svg +23 -0
  471. package/src/illustrations/sapIllus-Scene-UnableToUpload.svg +13 -0
  472. package/src/illustrations/sapIllus-Spot-BeforeSearch.svg +10 -0
  473. package/src/illustrations/sapIllus-Spot-NoActivities.svg +23 -0
  474. package/src/illustrations/sapIllus-Spot-NoData.svg +9 -0
  475. package/src/illustrations/sapIllus-Spot-NoEntries.svg +22 -0
  476. package/src/illustrations/sapIllus-Spot-NoMail.svg +10 -0
  477. package/src/illustrations/sapIllus-Spot-NoNotifications.svg +15 -0
  478. package/src/illustrations/sapIllus-Spot-NoSavedItems.svg +9 -0
  479. package/src/illustrations/sapIllus-Spot-NoSearchResults.svg +13 -0
  480. package/src/illustrations/sapIllus-Spot-NoTasks.svg +20 -0
  481. package/src/illustrations/sapIllus-Spot-UnableToLoad.svg +10 -0
  482. package/src/illustrations/sapIllus-Spot-UnableToUpload.svg +10 -0
  483. package/src/illustrations/tnt/tnt-Dialog-CodePlaceholder.svg +6 -0
  484. package/src/illustrations/tnt/tnt-Dialog-Company.svg +13 -0
  485. package/src/illustrations/tnt/tnt-Dialog-ExternalLink.svg +11 -0
  486. package/src/illustrations/tnt/tnt-Dialog-FaceID.svg +17 -0
  487. package/src/illustrations/tnt/tnt-Dialog-Fingerprint.svg +16 -0
  488. package/src/illustrations/tnt/tnt-Dialog-Lock.svg +12 -0
  489. package/src/illustrations/tnt/tnt-Dialog-Mission.svg +18 -0
  490. package/src/illustrations/tnt/tnt-Dialog-NoApplications.svg +16 -0
  491. package/src/illustrations/tnt/tnt-Dialog-NoFlows.svg +12 -0
  492. package/src/illustrations/tnt/tnt-Dialog-NoUsers.svg +16 -0
  493. package/src/illustrations/tnt/tnt-Dialog-Radar.svg +15 -0
  494. package/src/illustrations/tnt/tnt-Dialog-Services.svg +16 -0
  495. package/src/illustrations/tnt/tnt-Dialog-SessionExpired.svg +11 -0
  496. package/src/illustrations/tnt/tnt-Dialog-SessionExpiring.svg +10 -0
  497. package/src/illustrations/tnt/tnt-Dialog-Success.svg +10 -0
  498. package/src/illustrations/tnt/tnt-Dialog-SuccessfulAuth.svg +10 -0
  499. package/src/illustrations/tnt/tnt-Dialog-Unlock.svg +12 -0
  500. package/src/illustrations/tnt/tnt-Dialog-UnsuccessfulAuth.svg +11 -0
  501. package/src/illustrations/tnt/tnt-Scene-CodePlaceholder.svg +9 -0
  502. package/src/illustrations/tnt/tnt-Scene-Company.svg +30 -0
  503. package/src/illustrations/tnt/tnt-Scene-ExternalLink.svg +14 -0
  504. package/src/illustrations/tnt/tnt-Scene-FaceID.svg +21 -0
  505. package/src/illustrations/tnt/tnt-Scene-Fingerprint.svg +35 -0
  506. package/src/illustrations/tnt/tnt-Scene-Lock.svg +22 -0
  507. package/src/illustrations/tnt/tnt-Scene-Mission.svg +19 -0
  508. package/src/illustrations/tnt/tnt-Scene-NoApplications.svg +18 -0
  509. package/src/illustrations/tnt/tnt-Scene-NoFlows.svg +20 -0
  510. package/src/illustrations/tnt/tnt-Scene-NoUsers.svg +17 -0
  511. package/src/illustrations/tnt/tnt-Scene-Radar.svg +20 -0
  512. package/src/illustrations/tnt/tnt-Scene-Services.svg +17 -0
  513. package/src/illustrations/tnt/tnt-Scene-SessionExpired.svg +18 -0
  514. package/src/illustrations/tnt/tnt-Scene-SessionExpiring.svg +17 -0
  515. package/src/illustrations/tnt/tnt-Scene-Success.svg +18 -0
  516. package/src/illustrations/tnt/tnt-Scene-SuccessfulAuth.svg +20 -0
  517. package/src/illustrations/tnt/tnt-Scene-Unlock.svg +15 -0
  518. package/src/illustrations/tnt/tnt-Scene-UnsuccessfulAuth.svg +22 -0
  519. package/src/illustrations/tnt/tnt-Spot-CodePlaceholder.svg +6 -0
  520. package/src/illustrations/tnt/tnt-Spot-Company.svg +13 -0
  521. package/src/illustrations/tnt/tnt-Spot-ExternalLink.svg +9 -0
  522. package/src/illustrations/tnt/tnt-Spot-FaceID.svg +16 -0
  523. package/src/illustrations/tnt/tnt-Spot-Fingerprint.svg +10 -0
  524. package/src/illustrations/tnt/tnt-Spot-Lock.svg +13 -0
  525. package/src/illustrations/tnt/tnt-Spot-Mission.svg +17 -0
  526. package/src/illustrations/tnt/tnt-Spot-NoApplications.svg +12 -0
  527. package/src/illustrations/tnt/tnt-Spot-NoFlows.svg +9 -0
  528. package/src/illustrations/tnt/tnt-Spot-NoUsers.svg +12 -0
  529. package/src/illustrations/tnt/tnt-Spot-Radar.svg +14 -0
  530. package/src/illustrations/tnt/tnt-Spot-Services.svg +15 -0
  531. package/src/illustrations/tnt/tnt-Spot-SessionExpired.svg +9 -0
  532. package/src/illustrations/tnt/tnt-Spot-SessionExpiring.svg +9 -0
  533. package/src/illustrations/tnt/tnt-Spot-Success.svg +9 -0
  534. package/src/illustrations/tnt/tnt-Spot-SuccessfulAuth.svg +9 -0
  535. package/src/illustrations/tnt/tnt-Spot-Unlock.svg +11 -0
  536. package/src/illustrations/tnt/tnt-Spot-UnsuccessfulAuth.svg +10 -0
  537. package/src/types/BarDesign.js +54 -0
  538. package/src/types/FCLLayout.js +1 -1
  539. package/src/types/IllustrationMessageType.js +202 -0
  540. package/src/types/PageBackgroundDesign.js +53 -0
  541. package/src/types/TimelineLayout.js +42 -0
  542. package/src/types/UploadCollectionDnDMode.js +1 -1
  543. package/src/types/UploadState.js +1 -1
  544. package/src/types/ViewSettingsDialogMode.js +43 -0
  545. package/src/upload-utils/UploadCollectionBodyDnD.js +0 -1
  546. package/dist/generated/templates/ShellBarItemTemplate.lit.js +0 -14
  547. package/dist/webcomponentsjs/package.json +0 -46
  548. package/dist/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  549. package/dist/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -53
  550. package/dist/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  551. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  552. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -28
  553. package/dist/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  554. package/src/ShellBarItem.hbs +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,127 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-rc.15](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.14...v1.0.0-rc.15) (2021-07-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui5-bar:** aria-label added depending on the "design" property ([#3161](https://github.com/SAP/ui5-webcomponents/issues/3161)) ([7ffb575](https://github.com/SAP/ui5-webcomponents/commit/7ffb575)), closes [#3020](https://github.com/SAP/ui5-webcomponents/issues/3020)
12
+ * **ui5-bar:** rename middleContent slot ([#3440](https://github.com/SAP/ui5-webcomponents/issues/3440)) ([e235d7d](https://github.com/SAP/ui5-webcomponents/commit/e235d7d)), closes [#3107](https://github.com/SAP/ui5-webcomponents/issues/3107)
13
+ * **ui5-flexible-column-layout:** column borders in high contrast themes ([#3328](https://github.com/SAP/ui5-webcomponents/issues/3328)) ([bd18bb9](https://github.com/SAP/ui5-webcomponents/commit/bd18bb9)), closes [#3320](https://github.com/SAP/ui5-webcomponents/issues/3320)
14
+ * **ui5-flexible-column-layout:** correct columns display ([#3444](https://github.com/SAP/ui5-webcomponents/issues/3444)) ([62977d0](https://github.com/SAP/ui5-webcomponents/commit/62977d0)), closes [#3425](https://github.com/SAP/ui5-webcomponents/issues/3425)
15
+ * **ui5-flexible-column-layout:** rename noArrows property to hideArrows ([#3352](https://github.com/SAP/ui5-webcomponents/issues/3352)) ([8660d11](https://github.com/SAP/ui5-webcomponents/commit/8660d11)), closes [#3107](https://github.com/SAP/ui5-webcomponents/issues/3107)
16
+ * **ui5-shellbar:** fix search field width ([#3296](https://github.com/SAP/ui5-webcomponents/issues/3296)) ([51fb1a3](https://github.com/SAP/ui5-webcomponents/commit/51fb1a3))
17
+ * **ui5-shellbar:** Fix unnecessary cutting space on left side ([#3513](https://github.com/SAP/ui5-webcomponents/issues/3513)) ([c7e6f07](https://github.com/SAP/ui5-webcomponents/commit/c7e6f07)), closes [#3501](https://github.com/SAP/ui5-webcomponents/issues/3501)
18
+ * **ui5-shellbar:** hide notification bubble if empty str ([#3123](https://github.com/SAP/ui5-webcomponents/issues/3123)) ([33fde82](https://github.com/SAP/ui5-webcomponents/commit/33fde82)), closes [#3121](https://github.com/SAP/ui5-webcomponents/issues/3121)
19
+ * **ui5-shellbar:** menu button arrow position ([#3285](https://github.com/SAP/ui5-webcomponents/issues/3285)) ([18ea76d](https://github.com/SAP/ui5-webcomponents/commit/18ea76d)), closes [#3199](https://github.com/SAP/ui5-webcomponents/issues/3199)
20
+ * **ui5-side-navigation:** items in popup fire click event ([#3468](https://github.com/SAP/ui5-webcomponents/issues/3468)) ([658328a](https://github.com/SAP/ui5-webcomponents/commit/658328a))
21
+ * **ui5-upload-collection:** change file deleted event name ([#3413](https://github.com/SAP/ui5-webcomponents/issues/3413)) ([5898eb8](https://github.com/SAP/ui5-webcomponents/commit/5898eb8)), closes [#3107](https://github.com/SAP/ui5-webcomponents/issues/3107)
22
+ * **ui5-upload-collection:** rename noDnd property to hideDragOverlay ([#3335](https://github.com/SAP/ui5-webcomponents/issues/3335)) ([c360443](https://github.com/SAP/ui5-webcomponents/commit/c360443)), closes [#3107](https://github.com/SAP/ui5-webcomponents/issues/3107)
23
+ * **ui5-upload-collection-item:** fixed keyboard navigation ([#3327](https://github.com/SAP/ui5-webcomponents/issues/3327)) ([aad0c32](https://github.com/SAP/ui5-webcomponents/commit/aad0c32))
24
+ * **ui5-wizard:** Circle's number horizontally aligned with the step's title ([#3370](https://github.com/SAP/ui5-webcomponents/issues/3370)) ([2cd97ec](https://github.com/SAP/ui5-webcomponents/commit/2cd97ec)), closes [#3251](https://github.com/SAP/ui5-webcomponents/issues/3251) [#3251](https://github.com/SAP/ui5-webcomponents/issues/3251)
25
+ * **ui5-wizard:** correct aria-controls value ([#3180](https://github.com/SAP/ui5-webcomponents/issues/3180)) ([d449812](https://github.com/SAP/ui5-webcomponents/commit/d449812))
26
+ * **ui5-wizard:** implement revised accessibility spec ([#2990](https://github.com/SAP/ui5-webcomponents/issues/2990)) ([99cb6b1](https://github.com/SAP/ui5-webcomponents/commit/99cb6b1))
27
+ * **ui5-wizard-step:** rename properties ([#3334](https://github.com/SAP/ui5-webcomponents/issues/3334)) ([b0e73ad](https://github.com/SAP/ui5-webcomponents/commit/b0e73ad)), closes [#3107](https://github.com/SAP/ui5-webcomponents/issues/3107)
28
+ * keep invisible texts out of the view port ([#3085](https://github.com/SAP/ui5-webcomponents/issues/3085)) ([de47520](https://github.com/SAP/ui5-webcomponents/commit/de47520)), closes [#2723](https://github.com/SAP/ui5-webcomponents/issues/2723) [#2723](https://github.com/SAP/ui5-webcomponents/issues/2723)
29
+
30
+
31
+ ### Features
32
+
33
+ * **ui5-page:** implement responsive paddings ([#3412](https://github.com/SAP/ui5-webcomponents/issues/3412)) ([b720393](https://github.com/SAP/ui5-webcomponents/commit/b720393))
34
+ * **ui5-product-switch:** Implement accessibility specification ([#2865](https://github.com/SAP/ui5-webcomponents/issues/2865)) ([8c0225c](https://github.com/SAP/ui5-webcomponents/commit/8c0225c)), closes [#2707](https://github.com/SAP/ui5-webcomponents/issues/2707)
35
+ * **ui5-wizard:** set initial focus when a step is changed ([#3310](https://github.com/SAP/ui5-webcomponents/issues/3310)) ([70f5563](https://github.com/SAP/ui5-webcomponents/commit/70f5563))
36
+
37
+
38
+
39
+ # [1.0.0-rc.14](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.13...v1.0.0-rc.14) (2021-04-01)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+
45
+
46
+ * **ui5-li-notification-group, ui5-li-notification:** fix i18n bundles usage ([#3063](https://github.com/SAP/ui5-webcomponents/issues/3063)) ([d6b6fa4](https://github.com/SAP/ui5-webcomponents/commit/d6b6fa4))
47
+ * **ui5-upload-collection-item:** make use of both main & fiori i18n bundles ([#3061](https://github.com/SAP/ui5-webcomponents/issues/3061)) ([2a01cb4](https://github.com/SAP/ui5-webcomponents/commit/2a01cb4))
48
+
49
+
50
+ ### Features
51
+
52
+ * **ui5-static-area-item:** StaticAreaItem can now be scoped ([#3076](https://github.com/SAP/ui5-webcomponents/issues/3076)) ([9a7ffe4](https://github.com/SAP/ui5-webcomponents/commit/9a7ffe4))
53
+ * **ui5-wizard:** add parameter to selectionChange event ([#3034](https://github.com/SAP/ui5-webcomponents/issues/3034)) ([7ad94d2](https://github.com/SAP/ui5-webcomponents/commit/7ad94d2))
54
+
55
+
56
+
57
+ # [1.0.0-rc.13](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.12...v1.0.0-rc.13) (2021-03-26)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * **ui5-page:** correct background-design styles ([#2862](https://github.com/SAP/ui5-webcomponents/issues/2862)) ([b10ee4c](https://github.com/SAP/ui5-webcomponents/commit/b10ee4c))
63
+ * **ui5-upload-collection:** add region and roledescription to root element ([#2915](https://github.com/SAP/ui5-webcomponents/issues/2915)) ([6db9f09](https://github.com/SAP/ui5-webcomponents/commit/6db9f09))
64
+ * **ui5-upload-collection:** add tooltip to edit button ([#2886](https://github.com/SAP/ui5-webcomponents/issues/2886)) ([35de38c](https://github.com/SAP/ui5-webcomponents/commit/35de38c))
65
+ * **ui5-upload-collection-item:** show disabled delete button ([#2893](https://github.com/SAP/ui5-webcomponents/issues/2893)) ([b609b47](https://github.com/SAP/ui5-webcomponents/commit/b609b47))
66
+ * **ui5-wizard:** use CSS vars for navigation bg-color ([#2892](https://github.com/SAP/ui5-webcomponents/issues/2892)) ([c967c6c](https://github.com/SAP/ui5-webcomponents/commit/c967c6c))
67
+
68
+
69
+
70
+
71
+
72
+ # [1.0.0-rc.12](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.11...v1.0.0-rc.12) (2021-02-18)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * **ui5-li-notification:** it is now possible to not have a description ([#2744](https://github.com/SAP/ui5-webcomponents/issues/2744)) ([ef35f84](https://github.com/SAP/ui5-webcomponents/commit/ef35f84))
78
+ * **ui5-li-notification-group:** align priority icon ([#2584](https://github.com/SAP/ui5-webcomponents/issues/2584)) ([ff247f0](https://github.com/SAP/ui5-webcomponents/commit/ff247f0))
79
+ * **ui5-upload-collection:** wrap noDataText/Desc text ([#2674](https://github.com/SAP/ui5-webcomponents/issues/2674)) ([c48bfe7](https://github.com/SAP/ui5-webcomponents/commit/c48bfe7)), closes [#2672](https://github.com/SAP/ui5-webcomponents/issues/2672)
80
+ * **ui5-upload-collection-item:** fix title behaviour on small screens ([#2699](https://github.com/SAP/ui5-webcomponents/issues/2699)) ([bb7c952](https://github.com/SAP/ui5-webcomponents/commit/bb7c952))
81
+ * **ui5-wizard:** observe content height changes ([#2801](https://github.com/SAP/ui5-webcomponents/issues/2801)) ([b4cbc43](https://github.com/SAP/ui5-webcomponents/commit/b4cbc43))
82
+
83
+
84
+ ### Features
85
+
86
+ * **ui5-li-notification*:** full-fill accessibility spec ([#2578](https://github.com/SAP/ui5-webcomponents/issues/2578)) ([20de5ae](https://github.com/SAP/ui5-webcomponents/commit/20de5ae))
87
+ * **ui5-page:** Initial implementation ([#2685](https://github.com/SAP/ui5-webcomponents/issues/2685)) ([bd09e17](https://github.com/SAP/ui5-webcomponents/commit/bd09e17)), closes [#2433](https://github.com/SAP/ui5-webcomponents/issues/2433)
88
+ * **ui5-wizard:** improve progress navigator responsiveness ([#2590](https://github.com/SAP/ui5-webcomponents/issues/2590)) ([01cd6f9](https://github.com/SAP/ui5-webcomponents/commit/01cd6f9))
89
+
90
+
91
+
92
+
93
+ # [1.0.0-rc.11](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.10...v1.0.0-rc.11) (2020-12-21)
94
+
95
+
96
+ ### Bug Fixes
97
+
98
+ * **docs:** fix ui5-side-navigation sample ([#2564](https://github.com/SAP/ui5-webcomponents/issues/2564)) ([0338fdc](https://github.com/SAP/ui5-webcomponents/commit/0338fdc))
99
+ * **ui5-shellbar:** fix overlapping of the search box over icons ([#2155](https://github.com/SAP/ui5-webcomponents/issues/2155)) ([3597902](https://github.com/SAP/ui5-webcomponents/commit/3597902)), closes [#2044](https://github.com/SAP/ui5-webcomponents/issues/2044)
100
+ * **ui5-upload-collection:** fire drop only when files are dropped within dnd overlay ([#2527](https://github.com/SAP/ui5-webcomponents/issues/2527)) ([455f614](https://github.com/SAP/ui5-webcomponents/commit/455f614))
101
+ * **ui5-wizard:** correct phone breakpoint size ([#2596](https://github.com/SAP/ui5-webcomponents/issues/2596)) ([c98d9ba](https://github.com/SAP/ui5-webcomponents/commit/c98d9ba))
102
+ * **ui5-wizard:** fix styling issues ([#2547](https://github.com/SAP/ui5-webcomponents/issues/2547)) ([65cb42f](https://github.com/SAP/ui5-webcomponents/commit/65cb42f)), closes [#2523](https://github.com/SAP/ui5-webcomponents/issues/2523)
103
+
104
+
105
+ ### Features
106
+
107
+ * **framework:** Change child-parent invalidation API ([#2541](https://github.com/SAP/ui5-webcomponents/issues/2541)) ([a1a3f80](https://github.com/SAP/ui5-webcomponents/commit/a1a3f80))
108
+ * **ui5-bar:** initial implementation ([#2533](https://github.com/SAP/ui5-webcomponents/issues/2533)) ([5c601cd](https://github.com/SAP/ui5-webcomponents/commit/5c601cd)), closes [#2434](https://github.com/SAP/ui5-webcomponents/issues/2434)
109
+ * **ui5-flexible-column-layout:** add start/mid/endColumnAccessibleName properties ([#2483](https://github.com/SAP/ui5-webcomponents/issues/2483)) ([fb0b24c](https://github.com/SAP/ui5-webcomponents/commit/fb0b24c))
110
+ * **ui5-side-navigation:** add "header" slot ([#2520](https://github.com/SAP/ui5-webcomponents/issues/2520)) ([b5c4a92](https://github.com/SAP/ui5-webcomponents/commit/b5c4a92)), closes [#2518](https://github.com/SAP/ui5-webcomponents/issues/2518)
111
+ * **ui5-side-navigation-item, ui5-side-navigation-sub-item:** introduce click event ([#2298](https://github.com/SAP/ui5-webcomponents/issues/2298)) ([d73ce38](https://github.com/SAP/ui5-webcomponents/commit/d73ce38))
112
+
113
+
114
+
115
+
116
+
117
+ # [1.0.0-rc.10](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.9...v1.0.0-rc.10) (2020-11-12)
118
+
119
+
120
+
121
+ ### Features
122
+
123
+ * **ui5-wizard:** introduce new component ([#2400](https://github.com/SAP/ui5-webcomponents/issues/2400)) ([bdec517](https://github.com/SAP/ui5-webcomponents/commit/bdec517)), closes [#2368](https://github.com/SAP/ui5-webcomponents/issues/2368)
124
+
125
+
126
+
6
127
  # [1.0.0-rc.9](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.8...v1.0.0-rc.9) (2020-10-08)
7
128
 
8
129
 
package/README.md CHANGED
@@ -7,15 +7,63 @@
7
7
 
8
8
  Provides essential building blocks, necessary to implement the Fiori UX concept,
9
9
  such as a common header (ShellBar).
10
-
11
- | Web Component | Tag name | Module import |
12
- | ------------------------ | -------------------- | ---------------------------------------------------------- |
13
- | Shell Bar | `ui5-shellbar` | `import "@ui5/webcomponents-fiori/dist/ShellBar.js";` |
14
- | Shell Bar Item | `ui5-shellbar-item` | `import "@ui5/webcomponents-fiori/dist/ShellBarItem.js";` |
15
- | Product Switch | `ui5-product-switch` | `import "@ui5/webcomponents-fiori/dist/ProductSwitch.js";` |
16
- | Product Switch Item | `ui5-product-switch-item` | `import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";` |
17
10
 
18
- For a complete list of all public module imports from the `fiori` package, click [here](../../docs/Public%20Module%20Imports.md#fiori):
11
+ ## Provided components
12
+
13
+ | Web Component | Tag name | Module import |
14
+ |-------------------------------------------|--------------------------------|-----------------------------------------------------------------------|
15
+ | Bar | `ui5-bar` | `import "@ui5/webcomponents-fiori/dist/Bar.js";` |
16
+ | Barcode Scanner Dialog | `ui5-barcode-scanner-dialog` | `import "@ui5/webcomponents-fiori/dist/BarcodeScannerDialog.js";` |
17
+ | Flexible Column Layout | `ui5-flexible-column-layout` | `import "@ui5/webcomponents-fiori/dist/FlexibleColumnLayout.js";` |
18
+ | Illustrated Message | `ui5-illustrated-message` | `import "@ui5/webcomponents-fiori/dist/IllustratedMessage.js";` |
19
+ | Notification List Item | `ui5-li-notifcation` | `import "@ui5/webcomponents-fiori/dist/NotifcationListItem.js";` |
20
+ | Notification Group List Item | `ui5-li-notification-group` | `import "@ui5/webcomponents-fiori/dist/NotifcationListGroupItem.js";` |
21
+ | Notification Action | `ui5-notification-action` | `import "@ui5/webcomponents-fiori/dist/NotificationAction.js";` |
22
+ | Page | `ui5-page` | `import "@ui5/webcomponents-fiori/dist/Page.js";` |
23
+ | Product Switch | `ui5-product-switch` | `import "@ui5/webcomponents-fiori/dist/ProductSwitch.js";` |
24
+ | Product Switch Item | `ui5-product-switch-item` | `import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";` |
25
+ | Shell Bar | `ui5-shellbar` | `import "@ui5/webcomponents-fiori/dist/ShellBar.js";` |
26
+ | Shell Bar Item | `ui5-shellbar-item` | `import "@ui5/webcomponents-fiori/dist/ShellBarItem.js";` |
27
+ | Side Navigation | `ui5-side-navigation` | `import "@ui5/webcomponents-fiori/dist/SideNavigation.js";` |
28
+ | Side Navigation Item | `ui5-side-navigation-item` | `import "@ui5/webcomponents-fiori/dist/SideNavigationItem.js";` |
29
+ | Side Navigation Sub Item | `ui5-side-navigation-sub-item` | `import "@ui5/webcomponents-fiori/dist/SideNavigationSubItem.js";` |
30
+ | Timeline | `ui5-timeline` | `import "@ui5/webcomponents-fiori/dist/Timeline.js";` |
31
+ | Timeline Item | `ui5-timeline-item` | comes with `ui5-timeline` |
32
+ | Upload Collection | `ui5-upload-collection` | `import "@ui5/webcomponents-fiori/dist/UploadCollection.js";` |
33
+ | Upload Collection Item | `ui5-upload-collection-item` | `import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";` |
34
+ | View Settings Dialog | `ui5-view-settings-dialog` | `import "@ui5/webcomponents-fiori/dist/ViewSettingsDialog.js";` |
35
+ | View Settings Dialog - Sort Item | `ui5-sort-item` | `import "@ui5/webcomponents-fiori/dist/SortItem.js";` |
36
+ | View Settings Dialog - Filter Item | `ui5-filter-item` | `import "@ui5/webcomponents-fiori/dist/FilterItem.js";` |
37
+ | View Settings Dialog - Filter Item Option | `ui5-filter-item-option` | `import "@ui5/webcomponents-fiori/dist/FilterItemOption.js";` |
38
+ | Wizard | `ui5-wizard` | `import "@ui5/webcomponents-fiori/dist/Wizard.js";` |
39
+ | Wizard Step | `ui5-wizard-step` | comes with `ui5-wizard` |
40
+
41
+ ## Provided assets
42
+
43
+ ```js
44
+ import "@ui5/webcomponents-fiori/dist/Assets.js";
45
+ ```
46
+
47
+ | Assets | Module | Notes |
48
+ |------------------|-------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
49
+ | `i18n`, `themes` | `@ui5/webcomponents-fiori/dist/Assets.js` | Theming parameters and translations for the components <br><br> *Automatically imports also:<br> `@ui5/webcomponents/dist/Assets.js`* |
50
+
51
+ ## Provided features
52
+
53
+
54
+ | Affects | Feature Import | Description |
55
+ |----------------|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
56
+ | `ui5-shellbar` | `@ui5/webcomponents-fiori/dist/features/CoPilotAnimation.js` | Support for a better (but bigger in size) animation for the "co-pilot" button in the shellbar component |
57
+
58
+ ### Shellbar CoPilot animation
59
+
60
+ ```js
61
+ import "@ui5/webcomponents-fiori/dist/features/CoPilotAnimation.js";
62
+ ```
63
+
64
+ By default, the `ui5-shellbar` CoPilot button ships with a simple animation for better performance.
65
+ Importing the module above enables the detailed but more resource-intensive animation instead.
66
+
19
67
 
20
68
  ## Resources
21
69
  - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
@@ -26,7 +74,7 @@ For a complete list of all public module imports from the `fiori` package, click
26
74
  We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
27
75
 
28
76
  ## Contribute
29
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/CONTRIBUTING.md).
77
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/docs/6-contributing/02-conventions-and-guidelines.md).
30
78
 
31
79
  ## License
32
80
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
@@ -0,0 +1,6 @@
1
+ // main package assets (transitively base and theming)
2
+ import "@ui5/webcomponents/dist/Assets-static.js";
3
+
4
+ // own fiori package assets
5
+ import "./generated/json-imports/Themes-static.js";
6
+ import "./generated/json-imports/i18n-static.js";
package/dist/Assets.js CHANGED
@@ -1,4 +1,4 @@
1
- // main package assets (transitively base and theme-base)
1
+ // main package assets (transitively base, theming and icons)
2
2
  import "@ui5/webcomponents/dist/Assets.js";
3
3
 
4
4
  // own fiori package assets
package/dist/Bar.js ADDED
@@ -0,0 +1,182 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
+ import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
4
+ import BarTemplate from "./generated/templates/BarTemplate.lit.js";
5
+ import BarDesign from "./types/BarDesign.js";
6
+
7
+ // Styles
8
+ import BarCss from "./generated/themes/Bar.css.js";
9
+
10
+ /**
11
+ * @public
12
+ */
13
+ const metadata = {
14
+ tag: "ui5-bar",
15
+ managedSlots: true,
16
+ properties: /** @lends sap.ui.webcomponents.fiori.Bar.prototype */ {
17
+ /**
18
+ * Defines the <code>ui5-bar</code> design.
19
+ *
20
+ * <br><br>
21
+ * <b>Note:</b>
22
+ * Available options are:
23
+ * <ul>
24
+ * <li><code>Header</code></li>
25
+ * <li><code>Subheader</code></li>
26
+ * <li><code>Footer</code></li>
27
+ * <li><code>FloatingFooter</code></li>
28
+ * </ul>
29
+ *
30
+ * @type {BarDesign}
31
+ * @defaultvalue "Header"
32
+ * @public
33
+ */
34
+ design: {
35
+ type: BarDesign,
36
+ defaultValue: BarDesign.Header,
37
+ },
38
+
39
+ /**
40
+ * Defines if the component middle area needs to be centered between start and end area
41
+ * @type {Boolean}
42
+ * @private
43
+ */
44
+ _shrinked: {
45
+ type: Boolean,
46
+ },
47
+ },
48
+ slots: /** @lends sap.ui.webcomponents.fiori.Bar.prototype */ {
49
+ /**
50
+ * Defines the content at the start of the bar
51
+ * @type {HTMLElement[]}
52
+ * @slot
53
+ * @public
54
+ */
55
+ startContent: {
56
+ type: HTMLElement,
57
+ },
58
+
59
+ /**
60
+ * Defines the content in the middle of the bar
61
+ * @type {HTMLElement[]}
62
+ * @slot
63
+ * @public
64
+ */
65
+ "default": {
66
+ type: HTMLElement,
67
+ propertyName: "middleContent",
68
+ },
69
+
70
+ /**
71
+ * Defines the content at the end of the bar
72
+ * @type {HTMLElement[]}
73
+ * @slot
74
+ * @public
75
+ */
76
+ endContent: {
77
+ type: HTMLElement,
78
+ },
79
+ },
80
+ events: /** @lends sap.ui.webcomponents.fiori.Bar.prototype */ {
81
+ //
82
+ },
83
+ };
84
+
85
+ /**
86
+ * @class
87
+ *
88
+ * <h3 class="comment-api-title">Overview</h3>
89
+ * The Bar is a container which is primarily used to hold titles, buttons and input elements
90
+ * and its design and functionality is the basis for page headers and footers.
91
+ * The component consists of three areas to hold its content - startContent slot, default slot and endContent slot.
92
+ * It has the capability to center content, such as a title, while having other components on the left and right side.
93
+ *
94
+ * <h3>Usage</h3>
95
+ * With the use of the design property, you can set the style of the Bar to appear designed like a Header, Subheader, Footer and FloatingFooter.
96
+ * <br>
97
+ * <b>Note:</b> Do not place a Bar inside another Bar or inside any bar-like component. Doing so may cause unpredictable behavior.
98
+ *
99
+ * <h3>Responsive Behavior</h3>
100
+ * The default slot will be centered in the available space between the startContent and the endContent areas,
101
+ * therefore it might not always be centered in the entire bar.
102
+ *
103
+ * <h3>CSS Shadow Parts</h3>
104
+ *
105
+ * <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
106
+ * <br>
107
+ * The <code>ui5-bar</code> exposes the following CSS Shadow Parts:
108
+ * <ul>
109
+ * <li>bar - Used to style the wrapper of the content of the component</li>
110
+ * </ul>
111
+ *
112
+ * <h3>ES6 Module Import</h3>
113
+ *
114
+ * <code>import "@ui5/webcomponents-fiori/dist/Bar.js";</code>
115
+ *
116
+ * @constructor
117
+ * @author SAP SE
118
+ * @alias sap.ui.webcomponents.fiori.Bar
119
+ * @extends UI5Element
120
+ * @tagname ui5-bar
121
+ * @public
122
+ * @since 1.0.0-rc.11
123
+ */
124
+ class Bar extends UI5Element {
125
+ static get metadata() {
126
+ return metadata;
127
+ }
128
+
129
+ static get render() {
130
+ return litRender;
131
+ }
132
+
133
+ static get styles() {
134
+ return BarCss;
135
+ }
136
+
137
+ static get template() {
138
+ return BarTemplate;
139
+ }
140
+
141
+ get accInfo() {
142
+ return {
143
+ "label": this.design,
144
+ };
145
+ }
146
+
147
+ constructor() {
148
+ super();
149
+
150
+ this._handleResizeBound = this.handleResize.bind(this);
151
+ }
152
+
153
+ handleResize() {
154
+ const bar = this.getDomRef();
155
+ const barWidth = bar.offsetWidth;
156
+
157
+ this._shrinked = Array.from(bar.children).some(element => {
158
+ return barWidth / 3 < element.offsetWidth;
159
+ });
160
+ }
161
+
162
+ get classes() {
163
+ return {
164
+ root: {
165
+ "ui5-bar-root": true,
166
+ "ui5-bar-root-shrinked": this._shrinked,
167
+ },
168
+ };
169
+ }
170
+
171
+ onEnterDOM() {
172
+ ResizeHandler.register(this, this._handleResizeBound);
173
+ }
174
+
175
+ onExitDOM() {
176
+ ResizeHandler.deregister(this, this._handleResizeBound);
177
+ }
178
+ }
179
+
180
+ Bar.define();
181
+
182
+ export default Bar;
@@ -0,0 +1,262 @@
1
+ import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
3
+ import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
4
+ import Dialog from "@ui5/webcomponents/dist/Dialog.js";
5
+ import Button from "@ui5/webcomponents/dist/Button.js";
6
+ import BusyIndicator from "@ui5/webcomponents/dist/BusyIndicator.js";
7
+ import { BrowserMultiFormatReader, NotFoundException } from "@zxing/library";
8
+
9
+ // Template
10
+ import BarcodeScannerDialogTemplate from "./generated/templates/BarcodeScannerDialogTemplate.lit.js";
11
+
12
+ // Styles
13
+ import barcodeScannerDialogCss from "./generated/themes/BarcodeScannerDialog.css.js";
14
+
15
+ // Texts
16
+ import {
17
+ BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT,
18
+ BARCODE_SCANNER_DIALOG_LOADING_TXT,
19
+ } from "./generated/i18n/i18n-defaults.js";
20
+
21
+ const defaultMediaConstraints = {
22
+ audio: false,
23
+ video: {
24
+ height: {
25
+ min: 480,
26
+ ideal: 960,
27
+ max: 1440,
28
+ },
29
+ aspectRatio: 1.333333333,
30
+ facingMode: "environment",
31
+ },
32
+ };
33
+
34
+ /**
35
+ * @public
36
+ */
37
+ const metadata = {
38
+ tag: "ui5-barcode-scanner-dialog",
39
+ languageAware: true,
40
+ slots: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
41
+ },
42
+ properties: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
43
+ /**
44
+ * Indicates whether a loading indicator should be displayed in the dialog.
45
+ *
46
+ * @type {boolean}
47
+ * @defaultvalue false
48
+ * @private
49
+ */
50
+ loading: {
51
+ type: Boolean,
52
+ },
53
+ },
54
+ events: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
55
+ /**
56
+ * Fires when the scan is completed successfuuly.
57
+ *
58
+ * @event sap.ui.webcomponents.fiori.BarcodeScannerDialog#scan-success
59
+ * @param {String} text the scan result as string
60
+ * @param {Object} rawBytes the scan result as a Uint8Array
61
+ * @public
62
+ */
63
+ "scan-success": {
64
+ detail: {
65
+ text: { type: String },
66
+ rawBytes: { type: Object },
67
+ },
68
+ },
69
+
70
+ /**
71
+ * Fires when the scan fails with error.
72
+ *
73
+ * @event sap.ui.webcomponents.fiori.BarcodeScannerDialog#scan-error
74
+ * @param {String} message the error message
75
+ * @public
76
+ */
77
+ "scan-error": {
78
+ detail: {
79
+ message: { type: String },
80
+ },
81
+ },
82
+ },
83
+ };
84
+
85
+ /**
86
+ * @class
87
+ *
88
+ * <h3 class="comment-api-title">Overview</h3>
89
+ *
90
+ * The <code>BarcodeScannerDialog</code> component provides barcode scanning functionality for all devices that support the <code>MediaDevices.getUserMedia()</code> native API.
91
+ * Opening the dialog launches the device camera and scans for known barcode formats.
92
+ * <br>
93
+ * <br>
94
+ * A <code>scanSuccess</code> event fires whenever a barcode is identified
95
+ * and a <code>scanError</code> event fires when the scan failed (for example, due to missing permisions).
96
+ * <br>
97
+ * <br>
98
+ * Internally, the component uses the zxing-js/library third party OSS.
99
+ *
100
+ * For a list of supported barcode formats, see the <ui5-link target="_blank" href="https://github.com/zxing-js/library">zxing-js/library</ui5-link> documentation.
101
+ *
102
+ * @constructor
103
+ * @author SAP SE
104
+ * @alias sap.ui.webcomponents.fiori.BarcodeScannerDialog
105
+ * @extends UI5Element
106
+ * @tagname ui5-barcode-scanner-dialog
107
+ * @public
108
+ * @since 1.0.0-rc.15
109
+ */
110
+ class BarcodeScannerDialog extends UI5Element {
111
+ constructor() {
112
+ super();
113
+ this._codeReader = new BrowserMultiFormatReader();
114
+ }
115
+
116
+ static get metadata() {
117
+ return metadata;
118
+ }
119
+
120
+ static get render() {
121
+ return litRender;
122
+ }
123
+
124
+ static get template() {
125
+ return null;
126
+ }
127
+
128
+ static get staticAreaTemplate() {
129
+ return BarcodeScannerDialogTemplate;
130
+ }
131
+
132
+ static get styles() {
133
+ return null;
134
+ }
135
+
136
+ static get staticAreaStyles() {
137
+ return [barcodeScannerDialogCss];
138
+ }
139
+
140
+ static async onDefine() {
141
+ BarcodeScannerDialog.i18nBundle = await getI18nBundle("@ui5/webcomponents-fiori");
142
+ }
143
+
144
+ /**
145
+ * Shows a dialog with the camera videostream. Starts a scan session.
146
+ * @public
147
+ */
148
+ show() {
149
+ if (this.loading) {
150
+ console.warn("Barcode scanning is already in progress."); // eslint-disable-line
151
+ return;
152
+ }
153
+
154
+ if (!this._hasGetUserMedia()) {
155
+ this.fireEvent("scan-error", { message: "getUserMedia() is not supported by your browser" });
156
+ return;
157
+ }
158
+
159
+ this.loading = true;
160
+
161
+ this._getUserPermission()
162
+ .then(() => this._showDialog())
163
+ .catch(err => {
164
+ this.fireEvent("scan-error", { message: err });
165
+ this.loading = false;
166
+ });
167
+ }
168
+
169
+ /**
170
+ * Closes the dialog and the scan session.
171
+ * @public
172
+ */
173
+ close() {
174
+ this._closeDialog();
175
+ this.loading = false;
176
+ }
177
+
178
+ /**
179
+ * PRIVATE METHODS
180
+ */
181
+
182
+ _hasGetUserMedia() {
183
+ return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
184
+ }
185
+
186
+ _getUserPermission() {
187
+ return navigator.mediaDevices.getUserMedia(defaultMediaConstraints);
188
+ }
189
+
190
+ async _getDialog() {
191
+ const staticAreaItem = await this.getStaticAreaItemDomRef();
192
+ return staticAreaItem.querySelector("[ui5-dialog]");
193
+ }
194
+
195
+ async _getVideoElement() {
196
+ const staticAreaItem = await this.getStaticAreaItemDomRef();
197
+ return staticAreaItem.querySelector(".ui5-barcode-scanner-dialog-video");
198
+ }
199
+
200
+ async _showDialog() {
201
+ this.dialog = await this._getDialog();
202
+ this.dialog.show();
203
+ }
204
+
205
+ _closeDialog() {
206
+ if (this._isOpen) {
207
+ this.dialog.close();
208
+ }
209
+ }
210
+
211
+ _startReader() {
212
+ this._decodeFromCamera(null);
213
+ }
214
+
215
+ async _resetReader() {
216
+ const videoElement = await this._getVideoElement();
217
+ videoElement.pause();
218
+ this._codeReader.reset();
219
+ }
220
+
221
+ async _decodeFromCamera(cameraId) {
222
+ const videoElement = await this._getVideoElement();
223
+
224
+ this._codeReader.decodeFromVideoDevice(cameraId, videoElement, (result, err) => {
225
+ this.loading = false;
226
+ if (result) {
227
+ this.fireEvent("scan-success",
228
+ {
229
+ text: result.getText(),
230
+ rawBytes: result.getRawBytes(),
231
+ });
232
+ }
233
+ if (err && !(err instanceof NotFoundException)) {
234
+ this.fireEvent("scan-error", { message: err });
235
+ }
236
+ }).catch(err => this.fireEvent("scan-error", { message: err }));
237
+ }
238
+
239
+ get _isOpen() {
240
+ return !!this.dialog && this.dialog.opened;
241
+ }
242
+
243
+ get _cancelButtonText() {
244
+ return BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT);
245
+ }
246
+
247
+ get _busyIndicatorText() {
248
+ return BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_LOADING_TXT);
249
+ }
250
+
251
+ static get dependencies() {
252
+ return [
253
+ Dialog,
254
+ BusyIndicator,
255
+ Button,
256
+ ];
257
+ }
258
+ }
259
+
260
+ BarcodeScannerDialog.define();
261
+
262
+ export default BarcodeScannerDialog;