@ui5/webcomponents-fiori 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +5 -6
  3. package/dist/Bar.js +1 -1
  4. package/dist/BarcodeScannerDialog.js +3 -3
  5. package/dist/DynamicSideContent.js +1 -1
  6. package/dist/FlexibleColumnLayout.js +1 -3
  7. package/dist/IllustratedMessage.js +55 -0
  8. package/dist/MediaGallery.js +4 -4
  9. package/dist/MediaGalleryItem.js +1 -1
  10. package/dist/NotificationAction.js +3 -3
  11. package/dist/NotificationListItem.js +0 -19
  12. package/dist/Page.js +1 -1
  13. package/dist/ProductSwitchItem.js +1 -1
  14. package/dist/ShellBar.js +8 -24
  15. package/dist/Timeline.js +1 -1
  16. package/dist/ViewSettingsDialog.js +67 -3
  17. package/dist/api.json +1 -3106
  18. package/dist/assets/HT-1000.59a0ea5a.jpg +0 -0
  19. package/dist/assets/HT-1010.7b05e4f5.jpg +0 -0
  20. package/dist/assets/HT-1022.6fa171f0.jpg +0 -0
  21. package/dist/assets/HT-1030.7ead454a.jpg +0 -0
  22. package/dist/assets/HT-2002.0e49d270.jpg +0 -0
  23. package/dist/assets/HT-2026.8d3d321d.jpg +0 -0
  24. package/dist/assets/Overlayed mask.eb7a3287.png +0 -0
  25. package/dist/assets/SAP-icons-TNT.fa06c05f.js +1 -0
  26. package/dist/assets/SAP-icons-business-suite.60260cdf.js +1 -0
  27. package/dist/assets/SAP-icons.09567bd9.js +1 -0
  28. package/dist/assets/SAP-icons.1f482d05.js +1 -0
  29. package/dist/assets/ar.7fd1011b.js +1 -0
  30. package/dist/assets/ar_EG.4dd5f305.js +1 -0
  31. package/dist/assets/ar_SA.8c5a937a.js +1 -0
  32. package/dist/assets/bg.a4d82c03.js +1 -0
  33. package/dist/assets/ca.0021f734.js +1 -0
  34. package/dist/assets/cs.0e585b65.js +1 -0
  35. package/dist/assets/da.521611de.js +1 -0
  36. package/dist/assets/de.63fdffdf.js +1 -0
  37. package/dist/assets/de_AT.ea95f993.js +1 -0
  38. package/dist/assets/de_CH.90d5e701.js +1 -0
  39. package/dist/assets/el.3e1beb01.js +1 -0
  40. package/dist/assets/el_CY.209073e0.js +1 -0
  41. package/dist/assets/en.1af5f31c.js +1 -0
  42. package/dist/assets/en_AU.25e8cf38.js +1 -0
  43. package/dist/assets/en_GB.43297e37.js +1 -0
  44. package/dist/assets/en_HK.0da1e0b5.js +1 -0
  45. package/dist/assets/en_IE.c4988873.js +1 -0
  46. package/dist/assets/en_IN.96d721e2.js +1 -0
  47. package/dist/assets/en_NZ.1091e526.js +1 -0
  48. package/dist/assets/en_PG.f028e345.js +1 -0
  49. package/dist/assets/en_SG.8d370bdb.js +1 -0
  50. package/dist/assets/en_ZA.0cbf9d6e.js +1 -0
  51. package/dist/assets/es.37dda275.js +1 -0
  52. package/dist/assets/es_AR.da796f99.js +1 -0
  53. package/dist/assets/es_BO.2b15333c.js +1 -0
  54. package/dist/assets/es_CL.048ca1f2.js +1 -0
  55. package/dist/assets/es_CO.257ed3d6.js +1 -0
  56. package/dist/assets/es_MX.061e6bbb.js +1 -0
  57. package/dist/assets/es_PE.f7c17b7a.js +1 -0
  58. package/dist/assets/es_UY.73781c0c.js +1 -0
  59. package/dist/assets/es_VE.fe0f3310.js +1 -0
  60. package/dist/assets/et.fbe81c9d.js +1 -0
  61. package/dist/assets/fa.acfcfa4d.js +1 -0
  62. package/dist/assets/fi.0379b5fc.js +1 -0
  63. package/dist/assets/fr.f6c58c06.js +1 -0
  64. package/dist/assets/fr_BE.c6e52c3f.js +1 -0
  65. package/dist/assets/fr_CA.e3c92112.js +1 -0
  66. package/dist/assets/fr_CH.fc89bdfc.js +1 -0
  67. package/dist/assets/fr_LU.4fffec47.js +1 -0
  68. package/dist/assets/he.ca2cb3e0.js +1 -0
  69. package/dist/assets/hi.82a0ad5b.js +1 -0
  70. package/dist/assets/hr.ab15877f.js +1 -0
  71. package/dist/assets/hu.c3d72d24.js +1 -0
  72. package/dist/assets/id.163ccc8d.js +1 -0
  73. package/dist/assets/it.bcf089f4.js +1 -0
  74. package/dist/assets/it_CH.69227571.js +1 -0
  75. package/dist/assets/ja.18f39a5b.js +1 -0
  76. package/dist/assets/kk.a697e741.js +1 -0
  77. package/dist/assets/ko.ebe1e5db.js +1 -0
  78. package/dist/assets/lt.775927de.js +1 -0
  79. package/dist/assets/lv.d7e9d5e6.js +1 -0
  80. package/dist/assets/man_avatar_1.ffaff72e.png +0 -0
  81. package/dist/assets/messagebundle_ar.1274c998.js +1 -0
  82. package/dist/assets/messagebundle_ar.3285e748.js +1 -0
  83. package/dist/assets/messagebundle_ar.8feaf1e8.js +1 -0
  84. package/dist/assets/messagebundle_bg.3184cb7d.js +1 -0
  85. package/dist/assets/messagebundle_bg.eab741a2.js +1 -0
  86. package/dist/assets/messagebundle_bg.eba3e906.js +1 -0
  87. package/dist/assets/messagebundle_ca.47eb5246.js +1 -0
  88. package/dist/assets/messagebundle_ca.93183c86.js +1 -0
  89. package/dist/assets/messagebundle_ca.a54cea5e.js +1 -0
  90. package/dist/assets/messagebundle_cs.2c9254dc.js +1 -0
  91. package/dist/assets/messagebundle_cs.37b05438.js +1 -0
  92. package/dist/assets/messagebundle_cs.48439c10.js +1 -0
  93. package/dist/assets/messagebundle_cy.b66ab3d7.js +1 -0
  94. package/dist/assets/messagebundle_cy.ca739460.js +1 -0
  95. package/dist/assets/messagebundle_cy.d82a9228.js +1 -0
  96. package/dist/assets/messagebundle_da.5b984dd6.js +1 -0
  97. package/dist/assets/messagebundle_da.7306ba78.js +1 -0
  98. package/dist/assets/messagebundle_da.93a500b0.js +1 -0
  99. package/dist/assets/messagebundle_de.11a43c3f.js +1 -0
  100. package/dist/assets/messagebundle_de.12a34533.js +1 -0
  101. package/dist/assets/messagebundle_de.43744da7.js +1 -0
  102. package/dist/assets/messagebundle_el.3d84d13e.js +1 -0
  103. package/dist/assets/messagebundle_el.5313ff1a.js +1 -0
  104. package/dist/assets/messagebundle_el.7589ad5f.js +1 -0
  105. package/dist/assets/messagebundle_en.4d827ce9.js +1 -0
  106. package/dist/assets/messagebundle_en.7e5dff3e.js +1 -0
  107. package/dist/assets/messagebundle_en.93940203.js +1 -0
  108. package/dist/assets/messagebundle_en_GB.5e020d1d.js +1 -0
  109. package/dist/assets/messagebundle_en_GB.ab95edc5.js +1 -0
  110. package/dist/assets/messagebundle_en_GB.b09b6a64.js +1 -0
  111. package/dist/assets/messagebundle_en_US_sappsd.27e85f67.js +1 -0
  112. package/dist/assets/messagebundle_en_US_sappsd.7d173b62.js +1 -0
  113. package/dist/assets/messagebundle_en_US_sappsd.8e0d5b0f.js +1 -0
  114. package/dist/assets/messagebundle_en_US_saprigi.2dc48331.js +1 -0
  115. package/dist/assets/messagebundle_en_US_saprigi.443cefd7.js +1 -0
  116. package/dist/assets/messagebundle_en_US_saprigi.91730b5a.js +1 -0
  117. package/dist/assets/messagebundle_en_US_saptrc.20de4163.js +1 -0
  118. package/dist/assets/messagebundle_en_US_saptrc.afdc30ea.js +1 -0
  119. package/dist/assets/messagebundle_en_US_saptrc.ec370551.js +1 -0
  120. package/dist/assets/messagebundle_es.35fd0b83.js +1 -0
  121. package/dist/assets/messagebundle_es.77e22f84.js +1 -0
  122. package/dist/assets/messagebundle_es.881ff0f9.js +1 -0
  123. package/dist/assets/messagebundle_es_MX.3fc62f39.js +1 -0
  124. package/dist/assets/messagebundle_es_MX.c3319bdc.js +1 -0
  125. package/dist/assets/messagebundle_es_MX.e36afbc2.js +1 -0
  126. package/dist/assets/messagebundle_et.1fed54fa.js +1 -0
  127. package/dist/assets/messagebundle_et.45f3eda8.js +1 -0
  128. package/dist/assets/messagebundle_et.da1fbc8a.js +1 -0
  129. package/dist/assets/messagebundle_fi.17dccdfe.js +1 -0
  130. package/dist/assets/messagebundle_fi.57d133ef.js +1 -0
  131. package/dist/assets/messagebundle_fi.5a33a72d.js +1 -0
  132. package/dist/assets/messagebundle_fr.01378189.js +1 -0
  133. package/dist/assets/messagebundle_fr.138d77ea.js +1 -0
  134. package/dist/assets/messagebundle_fr.dfa9cbc6.js +1 -0
  135. package/dist/assets/messagebundle_fr_CA.229a28c2.js +1 -0
  136. package/dist/assets/messagebundle_fr_CA.2594af28.js +1 -0
  137. package/dist/assets/messagebundle_fr_CA.cb33405c.js +1 -0
  138. package/dist/assets/messagebundle_hi.0dd7cf25.js +1 -0
  139. package/dist/assets/messagebundle_hi.78bbac3d.js +1 -0
  140. package/dist/assets/messagebundle_hi.7d72db0d.js +1 -0
  141. package/dist/assets/messagebundle_hr.22e41fe6.js +1 -0
  142. package/dist/assets/messagebundle_hr.2b1bbc6e.js +1 -0
  143. package/dist/assets/messagebundle_hr.d3f3f1a0.js +1 -0
  144. package/dist/assets/messagebundle_hu.0f717958.js +1 -0
  145. package/dist/assets/messagebundle_hu.281d561d.js +1 -0
  146. package/dist/assets/messagebundle_hu.31a245d6.js +1 -0
  147. package/dist/assets/messagebundle_in.66bf6916.js +1 -0
  148. package/dist/assets/messagebundle_in.6fb73ceb.js +1 -0
  149. package/dist/assets/messagebundle_in.920ee55c.js +1 -0
  150. package/dist/assets/messagebundle_it.3e3b0d82.js +1 -0
  151. package/dist/assets/messagebundle_it.7c4db606.js +1 -0
  152. package/dist/assets/messagebundle_it.acbef1f7.js +1 -0
  153. package/dist/assets/messagebundle_iw.668edbae.js +1 -0
  154. package/dist/assets/messagebundle_iw.e3dff308.js +1 -0
  155. package/dist/assets/messagebundle_iw.eb883c3f.js +1 -0
  156. package/dist/assets/messagebundle_ja.075ec920.js +1 -0
  157. package/dist/assets/messagebundle_ja.4ca0da85.js +1 -0
  158. package/dist/assets/messagebundle_ja.ef4b4cf1.js +1 -0
  159. package/dist/assets/messagebundle_kk.16ebdd8d.js +1 -0
  160. package/dist/assets/messagebundle_kk.22c92c82.js +1 -0
  161. package/dist/assets/messagebundle_kk.f1d95e67.js +1 -0
  162. package/dist/assets/messagebundle_ko.3c57d468.js +1 -0
  163. package/dist/assets/messagebundle_ko.4a200105.js +1 -0
  164. package/dist/assets/messagebundle_ko.a9126af1.js +1 -0
  165. package/dist/assets/messagebundle_lt.1c86044c.js +1 -0
  166. package/dist/assets/messagebundle_lt.8fedcde4.js +1 -0
  167. package/dist/assets/messagebundle_lt.caa2db0a.js +1 -0
  168. package/dist/assets/messagebundle_lv.00010f82.js +1 -0
  169. package/dist/assets/messagebundle_lv.023b46ad.js +1 -0
  170. package/dist/assets/messagebundle_lv.3bb2e361.js +1 -0
  171. package/dist/assets/messagebundle_ms.12fa7211.js +1 -0
  172. package/dist/assets/messagebundle_ms.3b8a7669.js +1 -0
  173. package/dist/assets/messagebundle_ms.91eb2f2d.js +1 -0
  174. package/dist/assets/messagebundle_nl.3d8877e1.js +1 -0
  175. package/dist/assets/messagebundle_nl.6fe5eee0.js +1 -0
  176. package/dist/assets/messagebundle_nl.98202a0c.js +1 -0
  177. package/dist/assets/messagebundle_no.416b83e7.js +1 -0
  178. package/dist/assets/messagebundle_no.9e8220f6.js +1 -0
  179. package/dist/assets/messagebundle_no.ffca354a.js +1 -0
  180. package/dist/assets/messagebundle_pl.0950a9ac.js +1 -0
  181. package/dist/assets/messagebundle_pl.52f7bc48.js +1 -0
  182. package/dist/assets/messagebundle_pl.942cdbbd.js +1 -0
  183. package/dist/assets/messagebundle_pt.027e899b.js +1 -0
  184. package/dist/assets/messagebundle_pt.5d769261.js +1 -0
  185. package/dist/assets/messagebundle_pt.735c02a3.js +1 -0
  186. package/dist/assets/messagebundle_pt_PT.007cd847.js +1 -0
  187. package/dist/assets/messagebundle_pt_PT.62b5839a.js +1 -0
  188. package/dist/assets/messagebundle_pt_PT.9bca19db.js +1 -0
  189. package/dist/assets/messagebundle_ro.4c915b5e.js +1 -0
  190. package/dist/assets/messagebundle_ro.80e6cfad.js +1 -0
  191. package/dist/assets/messagebundle_ro.f1260b8b.js +1 -0
  192. package/dist/assets/messagebundle_ru.03c36ec0.js +1 -0
  193. package/dist/assets/messagebundle_ru.8082e964.js +1 -0
  194. package/dist/assets/messagebundle_ru.e5bfb3ae.js +1 -0
  195. package/dist/assets/messagebundle_sh.6d1a0a62.js +1 -0
  196. package/dist/assets/messagebundle_sh.99e4320c.js +1 -0
  197. package/dist/assets/messagebundle_sh.ec3b5f9d.js +1 -0
  198. package/dist/assets/messagebundle_sk.1c800907.js +1 -0
  199. package/dist/assets/messagebundle_sk.9a8ac52a.js +1 -0
  200. package/dist/assets/messagebundle_sk.edbb603c.js +1 -0
  201. package/dist/assets/messagebundle_sl.71316064.js +1 -0
  202. package/dist/assets/messagebundle_sl.71a8769e.js +1 -0
  203. package/dist/assets/messagebundle_sl.af7daebc.js +1 -0
  204. package/dist/assets/messagebundle_sv.9d11fef9.js +1 -0
  205. package/dist/assets/messagebundle_sv.c5bee490.js +1 -0
  206. package/dist/assets/messagebundle_sv.d8d543df.js +1 -0
  207. package/dist/assets/messagebundle_th.33b51e3d.js +1 -0
  208. package/dist/assets/messagebundle_th.94163d1a.js +1 -0
  209. package/dist/assets/messagebundle_th.f54d55d7.js +1 -0
  210. package/dist/assets/messagebundle_tr.37ecb738.js +1 -0
  211. package/dist/assets/messagebundle_tr.971a97d0.js +1 -0
  212. package/dist/assets/messagebundle_tr.982021d3.js +1 -0
  213. package/dist/assets/messagebundle_uk.60770edd.js +1 -0
  214. package/dist/assets/messagebundle_uk.6e60d682.js +1 -0
  215. package/dist/assets/messagebundle_uk.e0830675.js +1 -0
  216. package/dist/assets/messagebundle_vi.26332b42.js +1 -0
  217. package/dist/assets/messagebundle_vi.57d3d183.js +1 -0
  218. package/dist/assets/messagebundle_vi.ff298420.js +1 -0
  219. package/dist/assets/messagebundle_zh_CN.2fbb5e26.js +1 -0
  220. package/dist/assets/messagebundle_zh_CN.9669c0a2.js +1 -0
  221. package/dist/assets/messagebundle_zh_CN.f67a72ae.js +1 -0
  222. package/dist/assets/messagebundle_zh_TW.29c3ffb0.js +1 -0
  223. package/dist/assets/messagebundle_zh_TW.4841569f.js +1 -0
  224. package/dist/assets/messagebundle_zh_TW.97a3cb9a.js +1 -0
  225. package/dist/assets/ms.d6569411.js +1 -0
  226. package/dist/assets/nb.e08266d5.js +1 -0
  227. package/dist/assets/nl.9999541e.js +1 -0
  228. package/dist/assets/nl_BE.10b9e463.js +1 -0
  229. package/dist/assets/parameters-bundle.css.0369e7ec.js +1 -0
  230. package/dist/assets/parameters-bundle.css.16d388d6.js +1 -0
  231. package/dist/assets/parameters-bundle.css.1968bff5.js +1 -0
  232. package/dist/assets/parameters-bundle.css.1cf9c836.js +1 -0
  233. package/dist/assets/parameters-bundle.css.2137a0e9.js +1 -0
  234. package/dist/assets/parameters-bundle.css.2c2df3ba.js +1 -0
  235. package/dist/assets/parameters-bundle.css.3986b61a.js +1 -0
  236. package/dist/assets/parameters-bundle.css.3db3a626.js +1 -0
  237. package/dist/assets/parameters-bundle.css.41102715.js +1 -0
  238. package/dist/assets/parameters-bundle.css.4f1407e4.js +1 -0
  239. package/dist/assets/parameters-bundle.css.58627f6c.js +1 -0
  240. package/dist/assets/parameters-bundle.css.6901c0cd.js +1 -0
  241. package/dist/assets/parameters-bundle.css.76c92c20.js +1 -0
  242. package/dist/assets/parameters-bundle.css.780c6a0b.js +1 -0
  243. package/dist/assets/parameters-bundle.css.79d2f40d.js +1 -0
  244. package/dist/assets/parameters-bundle.css.7be18144.js +1 -0
  245. package/dist/assets/parameters-bundle.css.7f60c15d.js +1 -0
  246. package/dist/assets/parameters-bundle.css.8082c211.js +1 -0
  247. package/dist/assets/parameters-bundle.css.87453e63.js +1 -0
  248. package/dist/assets/parameters-bundle.css.95d13129.js +1 -0
  249. package/dist/assets/parameters-bundle.css.9859720e.js +1 -0
  250. package/dist/assets/parameters-bundle.css.9a9b06fe.js +1 -0
  251. package/dist/assets/parameters-bundle.css.9aa3bb80.js +1 -0
  252. package/dist/assets/parameters-bundle.css.ac97b296.js +1 -0
  253. package/dist/assets/parameters-bundle.css.adb6e6e6.js +1 -0
  254. package/dist/assets/parameters-bundle.css.c967e7ef.js +1 -0
  255. package/dist/assets/parameters-bundle.css.ca5680b1.js +1 -0
  256. package/dist/assets/parameters-bundle.css.d35c9c32.js +1 -0
  257. package/dist/assets/parameters-bundle.css.d4f504ed.js +1 -0
  258. package/dist/assets/parameters-bundle.css.d7575581.js +1 -0
  259. package/dist/assets/parameters-bundle.css.e49b758d.js +1 -0
  260. package/dist/assets/parameters-bundle.css.e9339a13.js +1 -0
  261. package/dist/assets/parameters-bundle.css.e9998509.js +1 -0
  262. package/dist/assets/parameters-bundle.css.ee68190f.js +1 -0
  263. package/dist/assets/parameters-bundle.css.f0eeb6a4.js +1 -0
  264. package/dist/assets/parameters-bundle.css.f6aea851.js +1 -0
  265. package/dist/assets/pl.896f748a.js +1 -0
  266. package/dist/assets/pt.9282da43.js +1 -0
  267. package/dist/assets/pt_PT.8de6f4a2.js +1 -0
  268. package/dist/assets/ro.f27aab0d.js +1 -0
  269. package/dist/assets/ru.925a56df.js +1 -0
  270. package/dist/assets/ru_UA.066d9903.js +1 -0
  271. package/dist/assets/sk.cea36c4c.js +1 -0
  272. package/dist/assets/sl.00e904c8.js +1 -0
  273. package/dist/assets/sr.5ffa8a72.js +1 -0
  274. package/dist/assets/sr_Latn.37760dd7.js +1 -0
  275. package/dist/assets/sv.e8d71660.js +1 -0
  276. package/dist/assets/th.9c7b50b0.js +1 -0
  277. package/dist/assets/tr.0a0fb3ee.js +1 -0
  278. package/dist/assets/uk.7ee1da23.js +1 -0
  279. package/dist/assets/vi.b1f74e9c.js +1 -0
  280. package/dist/assets/zh_CN.a1d71c11.js +1 -0
  281. package/dist/assets/zh_HK.a47dd921.js +1 -0
  282. package/dist/assets/zh_SG.1cd17a31.js +1 -0
  283. package/dist/assets/zh_TW.b03069d7.js +1 -0
  284. package/dist/css/themes/Bar.css +1 -1
  285. package/dist/css/themes/FlexibleColumnLayout.css +1 -1
  286. package/dist/css/themes/MediaGalleryItem.css +1 -1
  287. package/dist/css/themes/NotificationListItem.css +1 -1
  288. package/dist/css/themes/ProductSwitchItem.css +1 -1
  289. package/dist/css/themes/ShellBar.css +1 -1
  290. package/dist/css/themes/TimelineItem.css +1 -1
  291. package/dist/css/themes/Wizard.css +1 -1
  292. package/dist/css/themes/WizardTab.css +1 -1
  293. package/dist/generated/json-imports/Themes-static.js +1 -1
  294. package/dist/generated/json-imports/Themes.js +2 -2
  295. package/dist/generated/templates/NotificationListItemTemplate.lit.js +1 -1
  296. package/dist/generated/templates/ShellBarTemplate.lit.js +23 -18
  297. package/dist/generated/templates/UploadCollectionItemTemplate.lit.js +1 -1
  298. package/dist/generated/themes/Bar.css.js +1 -1
  299. package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
  300. package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
  301. package/dist/generated/themes/NotificationListItem.css.js +1 -1
  302. package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
  303. package/dist/generated/themes/ShellBar.css.js +1 -1
  304. package/dist/generated/themes/TimelineItem.css.js +1 -1
  305. package/dist/generated/themes/Wizard.css.js +1 -1
  306. package/dist/generated/themes/WizardTab.css.js +1 -1
  307. package/dist/types/FCLLayout.js +6 -6
  308. package/dist/types/IllustrationMessageSize.js +66 -0
  309. package/package.json +7 -8
  310. package/src/Bar.js +1 -1
  311. package/src/BarcodeScannerDialog.js +3 -3
  312. package/src/DynamicSideContent.js +1 -1
  313. package/src/FlexibleColumnLayout.js +1 -3
  314. package/src/IllustratedMessage.js +55 -0
  315. package/src/MediaGallery.js +4 -4
  316. package/src/MediaGalleryItem.js +1 -1
  317. package/src/NotificationAction.js +3 -3
  318. package/src/NotificationListItem.hbs +1 -1
  319. package/src/NotificationListItem.js +0 -19
  320. package/src/Page.js +1 -1
  321. package/src/ProductSwitchItem.js +1 -1
  322. package/src/ShellBar.hbs +58 -32
  323. package/src/ShellBar.js +8 -24
  324. package/src/Timeline.js +1 -1
  325. package/src/ViewSettingsDialog.js +67 -3
  326. package/src/themes/Bar.css +2 -8
  327. package/src/themes/FlexibleColumnLayout.css +0 -9
  328. package/src/themes/MediaGalleryItem.css +130 -131
  329. package/src/themes/NotificationListItem.css +1 -18
  330. package/src/themes/ProductSwitchItem.css +0 -1
  331. package/src/themes/ShellBar.css +15 -52
  332. package/src/themes/TimelineItem.css +0 -1
  333. package/src/themes/Wizard.css +1 -2
  334. package/src/themes/WizardTab.css +1 -6
  335. package/src/types/FCLLayout.js +6 -6
  336. package/src/types/IllustrationMessageSize.js +66 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.5.0](https://github.com/SAP/ui5-webcomponents/compare/v1.4.0...v1.5.0) (2022-07-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **f6navigation:** prevent default behavior on windows OS ([#5424](https://github.com/SAP/ui5-webcomponents/issues/5424)) ([a494f85](https://github.com/SAP/ui5-webcomponents/commit/a494f85))
12
+ * **ui5-shellbar:** correct accessibility DOM ([#5395](https://github.com/SAP/ui5-webcomponents/issues/5395)) ([aba5fb5](https://github.com/SAP/ui5-webcomponents/commit/aba5fb5))
13
+ * **ui5-timeline-item:** align text in title link ([51954b7](https://github.com/SAP/ui5-webcomponents/commit/51954b7)), closes [#5163](https://github.com/SAP/ui5-webcomponents/issues/5163)
14
+
15
+
16
+ ### Features
17
+
18
+ * **ui5-illustrated-message:** implement size property ([#5405](https://github.com/SAP/ui5-webcomponents/issues/5405)) ([c58690d](https://github.com/SAP/ui5-webcomponents/commit/c58690d))
19
+ * **ui5-view-settings-dialog:** Implement behaviour for external setting of confirmed settings ([#5222](https://github.com/SAP/ui5-webcomponents/issues/5222)) ([7fbb235](https://github.com/SAP/ui5-webcomponents/commit/7fbb235))
20
+
21
+
22
+
23
+
24
+
6
25
  # [1.4.0](https://github.com/SAP/ui5-webcomponents/compare/v1.3.1...v1.4.0) (2022-05-25)
7
26
 
8
27
 
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/master/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # UI5 Web Components - Fiori
4
4
 
5
- [![Travis CI Build Status](https://travis-ci.org/SAP/ui5-webcomponents.svg?branch=master)](https://travis-ci.org/SAP/ui5-webcomponents)
6
5
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
6
 
8
7
  Provides essential building blocks, necessary to implement the Fiori UX concept,
@@ -69,16 +68,16 @@ Importing the module above enables the detailed but more resource-intensive anim
69
68
 
70
69
 
71
70
  ## Resources
72
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
71
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
73
72
  - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
74
73
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
75
74
 
76
75
  ## Support
77
- 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/).
76
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/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/).
78
77
 
79
78
  ## Contribute
80
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/docs/6-contributing/02-conventions-and-guidelines.md).
79
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
81
80
 
82
81
  ## License
83
82
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
84
- This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt) file.
83
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
package/dist/Bar.js CHANGED
@@ -16,7 +16,7 @@ const metadata = {
16
16
  fastNavigation: true,
17
17
  properties: /** @lends sap.ui.webcomponents.fiori.Bar.prototype */ {
18
18
  /**
19
- * Defines the <code>ui5-bar</code> design.
19
+ * Defines the component's design.
20
20
  *
21
21
  * <br><br>
22
22
  * <b>Note:</b>
@@ -37,9 +37,9 @@ const defaultMediaConstraints = {
37
37
  const metadata = {
38
38
  tag: "ui5-barcode-scanner-dialog",
39
39
  languageAware: true,
40
- slots: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
40
+ slots: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
41
41
  },
42
- properties: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
42
+ properties: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
43
43
  /**
44
44
  * Indicates whether a loading indicator should be displayed in the dialog.
45
45
  *
@@ -51,7 +51,7 @@ const metadata = {
51
51
  type: Boolean,
52
52
  },
53
53
  },
54
- events: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
54
+ events: /** @lends sap.ui.webcomponents.fiori.BarcodeScannerDialog.prototype */ {
55
55
  /**
56
56
  * Fires when the scan is completed successfuuly.
57
57
  *
@@ -209,7 +209,7 @@ const metadata = {
209
209
  * @public
210
210
  */
211
211
  "layout-change": {
212
- details: {
212
+ detail: {
213
213
  currentBreakpoint: {
214
214
  type: String,
215
215
  },
@@ -6,7 +6,6 @@ import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
6
6
  import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
7
7
  import AnimationMode from "@ui5/webcomponents-base/dist/types/AnimationMode.js";
8
8
  import { getAnimationMode } from "@ui5/webcomponents-base/dist/config/AnimationMode.js";
9
- import { isIE } from "@ui5/webcomponents-base/dist/Device.js";
10
9
  import Button from "@ui5/webcomponents/dist/Button.js";
11
10
  import "@ui5/webcomponents-icons/dist/slim-arrow-left.js";
12
11
  import "@ui5/webcomponents-icons/dist/slim-arrow-right.js";
@@ -239,7 +238,7 @@ const metadata = {
239
238
  *
240
239
  * <h3 class="comment-api-title">Overview</h3>
241
240
  *
242
- * The <code>FlexibleColumnLayout</code> implements the master-detail-detail paradigm by displaying up to three pages in separate columns.
241
+ * The <code>FlexibleColumnLayout</code> implements the list-detail-detail paradigm by displaying up to three pages in separate columns.
243
242
  * There are several possible layouts that can be changed either with the component API, or by pressing the arrows, displayed between the columns.
244
243
  *
245
244
  * <h3>Usage</h3>
@@ -564,7 +563,6 @@ class FlexibleColumnLayout extends UI5Element {
564
563
  return {
565
564
  root: {
566
565
  "ui5-fcl-root": true,
567
- "ui5-fcl--ie": isIE(),
568
566
  },
569
567
  columns: {
570
568
  start: {
@@ -6,6 +6,7 @@ import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
6
6
  import Title from "@ui5/webcomponents/dist/Title.js";
7
7
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
8
8
  import IllustratedMessageTemplate from "./generated/templates/IllustratedMessageTemplate.lit.js";
9
+ import IllustrationMessageSize from "./types/IllustrationMessageSize.js";
9
10
  import IllustrationMessageType from "./types/IllustrationMessageType.js";
10
11
  import "./illustrations/BeforeSearch.js";
11
12
 
@@ -173,6 +174,30 @@ const metadata = {
173
174
  type: IllustrationMessageType,
174
175
  defaultValue: IllustrationMessageType.BeforeSearch,
175
176
  },
177
+ /**
178
+ * Determines which illustration breakpoint variant is used.
179
+ * <br><br>
180
+ * Available options are:
181
+ * <ul>
182
+ * <li><code>Auto</code></li>
183
+ * <li><code>Base</code></li>
184
+ * <li><code>Spot</code></li>
185
+ * <li><code>Dialog</code></li>
186
+ * <li><code>Scene</code></li>
187
+ * </ul>
188
+ *
189
+ * As <code>IllustratedMessage</code> adapts itself around the <code>Illustration</code>, the other
190
+ * elements of the component are displayed differently on the different breakpoints/illustration sizes.
191
+ *
192
+ * @type {IllustrationMessageSize}
193
+ * @defaultvalue "Auto"
194
+ * @public
195
+ * @since 1.5.0
196
+ */
197
+ size: {
198
+ type: IllustrationMessageSize,
199
+ defaultValue: IllustrationMessageSize.Auto,
200
+ },
176
201
  },
177
202
  slots: /** @lends sap.ui.webcomponents.fiori.IllustratedMessage.prototype */ {
178
203
  /**
@@ -316,6 +341,10 @@ class IllustratedMessage extends UI5Element {
316
341
 
317
342
  this.illustrationTitle = IllustratedMessage.i18nBundle.getText(illustrationData.title);
318
343
  this.illustrationSubtitle = IllustratedMessage.i18nBundle.getText(illustrationData.subtitle);
344
+
345
+ if (this.size !== IllustrationMessageSize.Auto) {
346
+ this._handleCustomSize();
347
+ }
319
348
  }
320
349
 
321
350
  onEnterDOM() {
@@ -327,6 +356,10 @@ class IllustratedMessage extends UI5Element {
327
356
  }
328
357
 
329
358
  handleResize() {
359
+ if (this.size !== IllustrationMessageSize.Auto) {
360
+ return;
361
+ }
362
+
330
363
  if (this.offsetWidth <= IllustratedMessage.BREAKPOINTS.BASE) {
331
364
  this.media = IllustratedMessage.MEDIA.BASE;
332
365
  } else if (this.offsetWidth <= IllustratedMessage.BREAKPOINTS.SPOT) {
@@ -338,6 +371,28 @@ class IllustratedMessage extends UI5Element {
338
371
  }
339
372
  }
340
373
 
374
+ /**
375
+ * Modifies the IM styles in accordance to the `size` property's value.
376
+ * Note: The resize handler has no effect when size is different than "Auto".
377
+ * @private
378
+ * @since 1.5.0
379
+ */
380
+ _handleCustomSize() {
381
+ switch (this.size) {
382
+ case IllustrationMessageSize.Base:
383
+ this.media = IllustratedMessage.MEDIA.BASE;
384
+ return;
385
+ case IllustrationMessageSize.Spot:
386
+ this.media = IllustratedMessage.MEDIA.SPOT;
387
+ return;
388
+ case IllustrationMessageSize.Dialog:
389
+ this.media = IllustratedMessage.MEDIA.DIALOG;
390
+ return;
391
+ default:
392
+ this.media = IllustratedMessage.MEDIA.SCENE;
393
+ }
394
+ }
395
+
341
396
  get effectiveIllustration() {
342
397
  switch (this.media) {
343
398
  case IllustratedMessage.MEDIA.SPOT:
@@ -35,7 +35,7 @@ const COLUMNS_COUNT = {
35
35
  const metadata = {
36
36
  tag: "ui5-media-gallery",
37
37
  managedSlots: true,
38
- slots: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
38
+ slots: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
39
39
  /**
40
40
  * Defines the component items.
41
41
  *
@@ -56,7 +56,7 @@ const metadata = {
56
56
  invalidateOnChildChange: true,
57
57
  },
58
58
  },
59
- properties: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
59
+ properties: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
60
60
  /**
61
61
  * If set to <code>true</code>, all thumbnails are rendered in a scrollable container.
62
62
  * If <code>false</code>, only up to five thumbnails are rendered, followed by
@@ -182,7 +182,7 @@ const metadata = {
182
182
  defaultValue: 0,
183
183
  },
184
184
  },
185
- events: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
185
+ events: /** @lends sap.ui.webcomponents.fiori.MediaGallery.prototype */ {
186
186
  /**
187
187
  * Fired when selection is changed by user interaction.
188
188
  *
@@ -221,7 +221,7 @@ const metadata = {
221
221
  *
222
222
  * <h3 class="comment-api-title">Overview</h3>
223
223
  *
224
- * The <code>ui-media-gallery</code> component allows the user to browse through multimedia items. Currently,
224
+ * The <code>ui5-media-gallery</code> component allows the user to browse through multimedia items. Currently,
225
225
  * the supported items are images and videos. The items should be defined using the <code>ui5-media-gallery-item</code>
226
226
  * component.
227
227
  *
@@ -119,7 +119,7 @@ const metadata = {
119
119
  defaultValue: "",
120
120
  },
121
121
  },
122
- slots: /** @lends sap.ui.webcomponents.fiori.MediaGalleryItem.prototype */ {
122
+ slots: /** @lends sap.ui.webcomponents.fiori.MediaGalleryItem.prototype */ {
123
123
  /**
124
124
  * Defines the content of the component.
125
125
  *
@@ -6,7 +6,7 @@ import ButtonDesign from "@ui5/webcomponents/dist/types/ButtonDesign.js";
6
6
  */
7
7
  const metadata = {
8
8
  tag: "ui5-notification-action",
9
- properties: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
9
+ properties: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
10
10
  /**
11
11
  * Defines the text of the <code>ui5-notification-action</code>.
12
12
  *
@@ -68,9 +68,9 @@ const metadata = {
68
68
  type: String,
69
69
  },
70
70
  },
71
- slots: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
71
+ slots: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
72
72
  },
73
- events: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
73
+ events: /** @lends sap.ui.webcomponents.fiori.NotificationAction.prototype */ {
74
74
  click: {},
75
75
  },
76
76
  };
@@ -1,6 +1,5 @@
1
1
  import { isSpace, isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
2
2
  import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
3
- import { isIE } from "@ui5/webcomponents-base/dist/Device.js";
4
3
 
5
4
  import Priority from "@ui5/webcomponents/dist/types/Priority.js";
6
5
  import Button from "@ui5/webcomponents/dist/Button.js";
@@ -31,8 +30,6 @@ import NotificationListItemTemplate from "./generated/templates/NotificationList
31
30
  // Styles
32
31
  import NotificationListItemCss from "./generated/themes/NotificationListItem.css.js";
33
32
 
34
- const MAX_WRAP_HEIGHT = 32; // px.
35
-
36
33
  /**
37
34
  * @public
38
35
  */
@@ -273,10 +270,6 @@ class NotificationListItem extends NotificationListItemBase {
273
270
  return false;
274
271
  }
275
272
 
276
- if (isIE()) {
277
- return titleText.scrollHeight > MAX_WRAP_HEIGHT;
278
- }
279
-
280
273
  return titleText.offsetHeight < titleText.scrollHeight;
281
274
  }
282
275
 
@@ -287,10 +280,6 @@ class NotificationListItem extends NotificationListItemBase {
287
280
  return false;
288
281
  }
289
282
 
290
- if (isIE()) {
291
- return description.scrollHeight > MAX_WRAP_HEIGHT;
292
- }
293
-
294
283
  return description.offsetHeight < description.scrollHeight;
295
284
  }
296
285
 
@@ -347,14 +336,6 @@ class NotificationListItem extends NotificationListItemBase {
347
336
  return `${notificationText} ${readText} ${priorityText}`;
348
337
  }
349
338
 
350
- get classes() {
351
- return {
352
- content: {
353
- "ui5-nli-content--ie": isIE(),
354
- },
355
- };
356
- }
357
-
358
339
  /**
359
340
  * Event handlers
360
341
  */
package/dist/Page.js CHANGED
@@ -131,7 +131,7 @@ const metadata = {
131
131
  *
132
132
  * <h3 class="comment-api-title">Overview</h3>
133
133
  *
134
- * The <code>ui5-page</code> is a container control that holds one whole screen of an application.
134
+ * The <code>ui5-page</code> is a container component that holds one whole screen of an application.
135
135
  * The page has three distinct areas that can hold content - a header, content area and a footer.
136
136
  * <h3>Structure</h3>
137
137
  * <h4>Header</h4>
@@ -113,7 +113,7 @@ const metadata = {
113
113
  noAttribute: true,
114
114
  },
115
115
  },
116
- slots: /** @lends sap.ui.webcomponents.fiori.ProductSwitchItem.prototype */ {
116
+ slots: /** @lends sap.ui.webcomponents.fiori.ProductSwitchItem.prototype */ {
117
117
  },
118
118
  events: /** @lends sap.ui.webcomponents.fiori.ProductSwitchItem.prototype */ {
119
119
  /**
package/dist/ShellBar.js CHANGED
@@ -1079,24 +1079,20 @@ class ShellBar extends UI5Element {
1079
1079
  return this._itemsInfo.filter(itemInfo => !!itemInfo.custom);
1080
1080
  }
1081
1081
 
1082
- get nonFocusableLogo() {
1083
- return this.breakpointSize === "S" && this.hasMenuItems;
1084
- }
1085
-
1086
- get hasFocusableLogo() {
1087
- return this.hasLogo && !this.nonFocusableLogo;
1082
+ get hasLogo() {
1083
+ return !!this.logo.length;
1088
1084
  }
1089
1085
 
1090
- get hasNonFocusableLogo() {
1091
- return this.hasLogo && this.nonFocusableLogo;
1086
+ get showLogoInMenuButton() {
1087
+ return this.hasLogo && this.breakpointSize === "S";
1092
1088
  }
1093
1089
 
1094
- get hasLogo() {
1095
- return !!this.logo.length;
1090
+ get showTitleInMenuButton() {
1091
+ return this.primaryTitle && !(this.showLogoInMenuButton);
1096
1092
  }
1097
1093
 
1098
- get showArrowDown() {
1099
- return this.primaryTitle || this.hasInteractvieLogo;
1094
+ get showMenuButton() {
1095
+ return this.primaryTitle || this.showLogoInMenuButton;
1100
1096
  }
1101
1097
 
1102
1098
  get popoverHorizontalAlign() {
@@ -1115,18 +1111,6 @@ class ShellBar extends UI5Element {
1115
1111
  return this.menuItems.length > 0;
1116
1112
  }
1117
1113
 
1118
- get menuBtnHasPopup() {
1119
- return this.hasMenuItems ? HasPopup.Menu : undefined;
1120
- }
1121
-
1122
- get menuBtnTabindex() {
1123
- return this.hasMenuItems ? "0" : "-1";
1124
- }
1125
-
1126
- get menuPopoverExpanded() {
1127
- return this.hasMenuItems ? this._menuPopoverExpanded : undefined;
1128
- }
1129
-
1130
1114
  get _shellbarText() {
1131
1115
  return ShellBar.i18nBundle.getText(SHELLBAR_LABEL);
1132
1116
  }
package/dist/Timeline.js CHANGED
@@ -22,7 +22,7 @@ const metadata = {
22
22
  tag: "ui5-timeline",
23
23
  languageAware: true,
24
24
  managedSlots: true,
25
- properties: /** @lends sap.ui.webcomponents.fiori.Timeline.prototype */ {
25
+ properties: /** @lends sap.ui.webcomponents.fiori.Timeline.prototype */ {
26
26
  /**
27
27
  * Defines the items orientation.
28
28
  *
@@ -41,7 +41,7 @@ import viewSettingsDialogCSS from "./generated/themes/ViewSettingsDialog.css.js"
41
41
  const metadata = {
42
42
  tag: "ui5-view-settings-dialog",
43
43
  managedSlots: true,
44
- properties: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
44
+ properties: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
45
45
  /**
46
46
  * Defines the initial sort order.
47
47
  *
@@ -115,7 +115,7 @@ const metadata = {
115
115
  noAttribute: true,
116
116
  },
117
117
  },
118
- slots: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
118
+ slots: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
119
119
  /**
120
120
  * Defines the list of items against which the user could sort data.
121
121
  * <b>Note:</b> If you want to use this slot, you need to import used item: <code>import "@ui5/webcomponents-fiori/dist/SortItem";</code>
@@ -140,7 +140,7 @@ const metadata = {
140
140
  type: HTMLElement,
141
141
  },
142
142
  },
143
- events: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
143
+ events: /** @lends sap.ui.webcomponents.fiori.ViewSettingsDialog.prototype */ {
144
144
 
145
145
  /**
146
146
  * Fired when confirmation button is activated.
@@ -183,6 +183,14 @@ const metadata = {
183
183
  filters: { type: Array },
184
184
  },
185
185
  },
186
+
187
+ /**
188
+ * Fired before the component is opened. <b>This event does not bubble.</b>
189
+ *
190
+ * @public
191
+ * @event sap.ui.webcomponents.fiori.ViewSettingsDialog#before-open
192
+ */
193
+ "before-open": {},
186
194
  },
187
195
  };
188
196
 
@@ -488,6 +496,7 @@ class ViewSettingsDialog extends UI5Element {
488
496
  this._restoreSettings(this._confirmedSettings);
489
497
  }
490
498
 
499
+ this.fireEvent("before-open", {}, true, false);
491
500
  this._dialog.show(true);
492
501
 
493
502
  this._dialog.querySelector("[ui5-list]").focusFirstItem();
@@ -667,6 +676,61 @@ class ViewSettingsDialog extends UI5Element {
667
676
  // Invalidate
668
677
  this._currentSettings = JSON.parse(JSON.stringify(this._currentSettings));
669
678
  }
679
+
680
+ /**
681
+ * Sets a JavaScript object, as settings to the <code>ui5-view-settings-dialog</code>.
682
+ * This method can be used after the dialog is initially open, as the dialog need to set its initial settings.
683
+ * The <code>ui5-view-settings-dialog</code> throws an event called "before-open", this can be used as trigger point.
684
+ * The object should have the following format:
685
+ * <code>{
686
+ * { "sortOrder" : "Ascending", "sortBy" : "Name", "filters" : [{"Filter 1": ["Some filter 1", "Some filter 2"]}, {"Filter 2": ["Some filter 4"]}]}
687
+ * }</code>
688
+ * @param {string} settings A value to be set as predefined settings.
689
+ * @public
690
+ */
691
+ setConfirmedSettings(settings) {
692
+ if (settings && this._dialog && !this._dialog.isOpen()) {
693
+ const tempSettings = JSON.parse(JSON.stringify(this._confirmedSettings));
694
+ if (settings.sortOrder) {
695
+ for (let i = 0; i < tempSettings.sortOrder.length; i++) {
696
+ if (tempSettings.sortOrder[i].text === settings.sortOrder) {
697
+ tempSettings.sortOrder[i].selected = true;
698
+ } else {
699
+ tempSettings.sortOrder[i].selected = false;
700
+ }
701
+ }
702
+ }
703
+
704
+ if (settings.sortBy) {
705
+ for (let i = 0; i < tempSettings.sortBy.length; i++) {
706
+ if (tempSettings.sortBy[i].text === settings.sortBy) {
707
+ tempSettings.sortBy[i].selected = true;
708
+ } else {
709
+ tempSettings.sortBy[i].selected = false;
710
+ }
711
+ }
712
+ }
713
+
714
+ if (settings.filters) {
715
+ const inputFilters = {};
716
+ for (let i = 0; i < settings.filters.length; i++) {
717
+ inputFilters[Object.keys(settings.filters[i])[0]] = settings.filters[i][Object.keys(settings.filters[i])[0]];
718
+ }
719
+
720
+ for (let i = 0; i < tempSettings.filters.length; i++) {
721
+ for (let j = 0; j < tempSettings.filters[i].filterOptions.length; j++) {
722
+ if (inputFilters[tempSettings.filters[i].text] && inputFilters[tempSettings.filters[i].text].indexOf(tempSettings.filters[i].filterOptions[j].text) > -1) {
723
+ tempSettings.filters[i].filterOptions[j].selected = true;
724
+ } else {
725
+ tempSettings.filters[i].filterOptions[j].selected = false;
726
+ }
727
+ }
728
+ }
729
+ }
730
+
731
+ this._confirmedSettings = JSON.parse(JSON.stringify(tempSettings));
732
+ }
733
+ }
670
734
  }
671
735
 
672
736
  ViewSettingsDialog.define();