@ui5/webcomponents-fiori 1.24.0 → 2.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/CHANGELOG.md +328 -0
  2. package/README.md +0 -1
  3. package/dist/BarcodeScannerDialog.d.ts +5 -5
  4. package/dist/BarcodeScannerDialog.js +12 -14
  5. package/dist/BarcodeScannerDialog.js.map +1 -1
  6. package/dist/IllustratedMessage.d.ts +6 -6
  7. package/dist/IllustratedMessage.js +9 -9
  8. package/dist/IllustratedMessage.js.map +1 -1
  9. package/dist/MediaGallery.js +0 -1
  10. package/dist/MediaGallery.js.map +1 -1
  11. package/dist/NotificationListGroupItem.js +5 -1
  12. package/dist/NotificationListGroupItem.js.map +1 -1
  13. package/dist/NotificationListItem.js +5 -1
  14. package/dist/NotificationListItem.js.map +1 -1
  15. package/dist/NotificationListItemBase.d.ts +3 -3
  16. package/dist/NotificationListItemBase.js +7 -15
  17. package/dist/NotificationListItemBase.js.map +1 -1
  18. package/dist/ShellBar.d.ts +8 -8
  19. package/dist/ShellBar.js +17 -23
  20. package/dist/ShellBar.js.map +1 -1
  21. package/dist/SideNavigation.d.ts +14 -14
  22. package/dist/SideNavigation.js +27 -33
  23. package/dist/SideNavigation.js.map +1 -1
  24. package/dist/SideNavigationItemBase.d.ts +6 -3
  25. package/dist/SideNavigationItemBase.js +8 -2
  26. package/dist/SideNavigationItemBase.js.map +1 -1
  27. package/dist/UploadCollection.d.ts +8 -15
  28. package/dist/UploadCollection.js +4 -4
  29. package/dist/UploadCollection.js.map +1 -1
  30. package/dist/UploadCollectionItem.d.ts +2 -9
  31. package/dist/UploadCollectionItem.js +0 -7
  32. package/dist/UploadCollectionItem.js.map +1 -1
  33. package/dist/Wizard.d.ts +4 -4
  34. package/dist/Wizard.js +8 -11
  35. package/dist/Wizard.js.map +1 -1
  36. package/dist/bundle.esm.js.map +1 -1
  37. package/dist/css/themes/FlexibleColumnLayout.css +1 -1
  38. package/dist/css/themes/MediaGallery.css +1 -1
  39. package/dist/css/themes/MediaGalleryItem.css +1 -1
  40. package/dist/css/themes/NotificationListGroupItem.css +1 -1
  41. package/dist/css/themes/NotificationListItem.css +1 -1
  42. package/dist/css/themes/NotificationListItemBase.css +1 -1
  43. package/dist/css/themes/NotificationOverflowActionsPopover.css +1 -1
  44. package/dist/css/themes/Page.css +1 -1
  45. package/dist/css/themes/ProductSwitchItem.css +1 -1
  46. package/dist/css/themes/ShellBar.css +1 -1
  47. package/dist/css/themes/SideNavigation.css +1 -1
  48. package/dist/css/themes/SideNavigationGroup.css +1 -1
  49. package/dist/css/themes/SideNavigationItem.css +1 -1
  50. package/dist/css/themes/SideNavigationItemBase.css +1 -1
  51. package/dist/css/themes/SideNavigationPopover.css +1 -1
  52. package/dist/css/themes/SideNavigationSubItem.css +1 -1
  53. package/dist/css/themes/Timeline.css +1 -1
  54. package/dist/css/themes/TimelineItem.css +1 -1
  55. package/dist/css/themes/UploadCollection.css +1 -1
  56. package/dist/css/themes/UploadCollectionItem.css +1 -1
  57. package/dist/css/themes/ViewSettingsDialog.css +1 -1
  58. package/dist/css/themes/Wizard.css +1 -1
  59. package/dist/css/themes/WizardTab.css +1 -1
  60. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  61. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  62. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  63. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  64. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  65. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  66. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  67. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  68. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  69. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  70. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  71. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  72. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  73. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  74. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  75. package/dist/custom-elements-internal.json +151 -204
  76. package/dist/custom-elements.json +79 -125
  77. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  78. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  79. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  80. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  81. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  82. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  83. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  84. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  85. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  86. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  87. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  88. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  89. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  90. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  91. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  92. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  93. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  94. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  95. package/dist/generated/json-imports/Themes.js +1 -1
  96. package/dist/generated/json-imports/Themes.js.map +1 -1
  97. package/dist/generated/json-imports/i18n.js +1 -1
  98. package/dist/generated/json-imports/i18n.js.map +1 -1
  99. package/dist/generated/templates/BarcodeScannerDialogTemplate.lit.js +1 -1
  100. package/dist/generated/templates/BarcodeScannerDialogTemplate.lit.js.map +1 -1
  101. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.js +3 -2
  102. package/dist/generated/templates/NotificationListGroupItemTemplate.lit.js.map +1 -1
  103. package/dist/generated/templates/NotificationListItemTemplate.lit.js +3 -2
  104. package/dist/generated/templates/NotificationListItemTemplate.lit.js.map +1 -1
  105. package/dist/generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js +1 -1
  106. package/dist/generated/templates/NotificationOverflowActionsPopoverTemplate.lit.js.map +1 -1
  107. package/dist/generated/templates/ShellBarPopoverTemplate.lit.js +1 -1
  108. package/dist/generated/templates/ShellBarPopoverTemplate.lit.js.map +1 -1
  109. package/dist/generated/templates/ShellBarTemplate.lit.js +3 -1
  110. package/dist/generated/templates/ShellBarTemplate.lit.js.map +1 -1
  111. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js +3 -2
  112. package/dist/generated/templates/SideNavigationPopoverTemplate.lit.js.map +1 -1
  113. package/dist/generated/templates/SideNavigationTemplate.lit.js +8 -2
  114. package/dist/generated/templates/SideNavigationTemplate.lit.js.map +1 -1
  115. package/dist/generated/templates/UploadCollectionItemTemplate.lit.js +3 -3
  116. package/dist/generated/templates/UploadCollectionItemTemplate.lit.js.map +1 -1
  117. package/dist/generated/templates/UploadCollectionTemplate.lit.js +1 -1
  118. package/dist/generated/templates/UploadCollectionTemplate.lit.js.map +1 -1
  119. package/dist/generated/templates/ViewSettingsDialogTemplate.lit.js +2 -2
  120. package/dist/generated/templates/ViewSettingsDialogTemplate.lit.js.map +1 -1
  121. package/dist/generated/templates/WizardPopoverTemplate.lit.js +1 -1
  122. package/dist/generated/templates/WizardPopoverTemplate.lit.js.map +1 -1
  123. package/dist/generated/templates/WizardTemplate.lit.js +2 -1
  124. package/dist/generated/templates/WizardTemplate.lit.js.map +1 -1
  125. package/dist/generated/themes/FlexibleColumnLayout.css.js +1 -1
  126. package/dist/generated/themes/FlexibleColumnLayout.css.js.map +1 -1
  127. package/dist/generated/themes/MediaGallery.css.js +1 -1
  128. package/dist/generated/themes/MediaGallery.css.js.map +1 -1
  129. package/dist/generated/themes/MediaGalleryItem.css.js +1 -1
  130. package/dist/generated/themes/MediaGalleryItem.css.js.map +1 -1
  131. package/dist/generated/themes/NotificationListGroupItem.css.js +1 -1
  132. package/dist/generated/themes/NotificationListGroupItem.css.js.map +1 -1
  133. package/dist/generated/themes/NotificationListItem.css.js +1 -1
  134. package/dist/generated/themes/NotificationListItem.css.js.map +1 -1
  135. package/dist/generated/themes/NotificationListItemBase.css.js +1 -1
  136. package/dist/generated/themes/NotificationListItemBase.css.js.map +1 -1
  137. package/dist/generated/themes/NotificationOverflowActionsPopover.css.js +1 -1
  138. package/dist/generated/themes/NotificationOverflowActionsPopover.css.js.map +1 -1
  139. package/dist/generated/themes/Page.css.js +1 -1
  140. package/dist/generated/themes/Page.css.js.map +1 -1
  141. package/dist/generated/themes/ProductSwitchItem.css.js +1 -1
  142. package/dist/generated/themes/ProductSwitchItem.css.js.map +1 -1
  143. package/dist/generated/themes/ShellBar.css.js +1 -1
  144. package/dist/generated/themes/ShellBar.css.js.map +1 -1
  145. package/dist/generated/themes/SideNavigation.css.js +1 -1
  146. package/dist/generated/themes/SideNavigation.css.js.map +1 -1
  147. package/dist/generated/themes/SideNavigationGroup.css.js +1 -1
  148. package/dist/generated/themes/SideNavigationGroup.css.js.map +1 -1
  149. package/dist/generated/themes/SideNavigationItem.css.js +1 -1
  150. package/dist/generated/themes/SideNavigationItem.css.js.map +1 -1
  151. package/dist/generated/themes/SideNavigationItemBase.css.js +1 -1
  152. package/dist/generated/themes/SideNavigationItemBase.css.js.map +1 -1
  153. package/dist/generated/themes/SideNavigationPopover.css.js +1 -1
  154. package/dist/generated/themes/SideNavigationPopover.css.js.map +1 -1
  155. package/dist/generated/themes/SideNavigationSubItem.css.js +1 -1
  156. package/dist/generated/themes/SideNavigationSubItem.css.js.map +1 -1
  157. package/dist/generated/themes/Timeline.css.js +1 -1
  158. package/dist/generated/themes/Timeline.css.js.map +1 -1
  159. package/dist/generated/themes/TimelineItem.css.js +1 -1
  160. package/dist/generated/themes/TimelineItem.css.js.map +1 -1
  161. package/dist/generated/themes/UploadCollection.css.js +1 -1
  162. package/dist/generated/themes/UploadCollection.css.js.map +1 -1
  163. package/dist/generated/themes/UploadCollectionItem.css.js +1 -1
  164. package/dist/generated/themes/UploadCollectionItem.css.js.map +1 -1
  165. package/dist/generated/themes/ViewSettingsDialog.css.js +1 -1
  166. package/dist/generated/themes/ViewSettingsDialog.css.js.map +1 -1
  167. package/dist/generated/themes/Wizard.css.js +1 -1
  168. package/dist/generated/themes/Wizard.css.js.map +1 -1
  169. package/dist/generated/themes/WizardTab.css.js +1 -1
  170. package/dist/generated/themes/WizardTab.css.js.map +1 -1
  171. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  172. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  173. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  174. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  175. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  176. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  177. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  178. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  179. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  180. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  181. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  182. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  183. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  184. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  185. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  186. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  187. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  188. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  189. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  190. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  191. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  192. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  193. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  194. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  195. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  196. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  197. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  198. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  199. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  200. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  201. package/dist/types/UploadCollectionSelectionMode.d.ts +39 -0
  202. package/dist/types/UploadCollectionSelectionMode.js +41 -0
  203. package/dist/types/UploadCollectionSelectionMode.js.map +1 -0
  204. package/dist/vscode.html-custom-data.json +21 -29
  205. package/dist/web-types.json +26 -62
  206. package/package-scripts.cjs +0 -1
  207. package/package.json +7 -7
  208. package/src/BarcodeScannerDialog.hbs +1 -1
  209. package/src/NotificationListGroupItem.hbs +2 -1
  210. package/src/NotificationListItem.hbs +2 -1
  211. package/src/NotificationOverflowActionsPopover.hbs +2 -2
  212. package/src/ShellBar.hbs +2 -0
  213. package/src/ShellBarPopover.hbs +3 -3
  214. package/src/SideNavigation.hbs +2 -0
  215. package/src/SideNavigationPopover.hbs +4 -2
  216. package/src/UploadCollection.hbs +1 -1
  217. package/src/UploadCollectionItem.hbs +2 -2
  218. package/src/ViewSettingsDialog.hbs +3 -3
  219. package/src/Wizard.hbs +2 -0
  220. package/src/WizardPopover.hbs +1 -2
  221. package/src/i18n/messagebundle_bg.properties +1 -1
  222. package/src/i18n/messagebundle_cy.properties +1 -1
  223. package/src/i18n/messagebundle_da.properties +2 -2
  224. package/src/themes/FlexibleColumnLayout.css +2 -24
  225. package/src/themes/NotificationListItemBase.css +1 -0
  226. package/src/themes/SideNavigationItemBase.css +2 -1
  227. package/src/themes/UploadCollection.css +6 -3
  228. package/src/themes/UploadCollectionItem.css +1 -7
  229. package/src/themes/base/UploadCollection-parameters.css +4 -0
  230. package/src/themes/sap_belize/parameters-bundle.css +0 -2
  231. package/src/themes/sap_belize_hcb/parameters-bundle.css +0 -2
  232. package/src/themes/sap_belize_hcw/parameters-bundle.css +0 -2
  233. package/src/themes/sap_fiori_3/parameters-bundle.css +0 -2
  234. package/src/themes/sap_fiori_3_dark/parameters-bundle.css +0 -2
  235. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +0 -2
  236. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +0 -2
  237. package/src/themes/sap_horizon/UploadCollection-parameters.css +6 -0
  238. package/src/themes/sap_horizon/parameters-bundle.css +0 -2
  239. package/src/themes/sap_horizon_dark/UploadCollection-parameters.css +6 -0
  240. package/src/themes/sap_horizon_dark/parameters-bundle.css +0 -2
  241. package/src/themes/sap_horizon_dark_exp/parameters-bundle.css +0 -2
  242. package/src/themes/sap_horizon_exp/parameters-bundle.css +0 -2
  243. package/src/themes/sap_horizon_hcb/UploadCollection-parameters.css +6 -3
  244. package/src/themes/sap_horizon_hcb/parameters-bundle.css +0 -2
  245. package/src/themes/sap_horizon_hcb_exp/parameters-bundle.css +0 -2
  246. package/src/themes/sap_horizon_hcw/UploadCollection-parameters.css +6 -2
  247. package/src/themes/sap_horizon_hcw/parameters-bundle.css +0 -2
  248. package/src/themes/sap_horizon_hcw_exp/parameters-bundle.css +0 -2
  249. package/dist/Assets-static.d.ts +0 -3
  250. package/dist/Assets-static.js +0 -6
  251. package/dist/Assets-static.js.map +0 -1
  252. package/dist/Bar.d.ts +0 -73
  253. package/dist/Bar.js +0 -113
  254. package/dist/Bar.js.map +0 -1
  255. package/dist/css/themes/Bar.css +0 -1
  256. package/dist/generated/json-imports/Themes-static.d.ts +0 -1
  257. package/dist/generated/json-imports/Themes-static.js +0 -45
  258. package/dist/generated/json-imports/Themes-static.js.map +0 -1
  259. package/dist/generated/json-imports/i18n-static.d.ts +0 -1
  260. package/dist/generated/json-imports/i18n-static.js +0 -168
  261. package/dist/generated/json-imports/i18n-static.js.map +0 -1
  262. package/dist/generated/templates/BarTemplate.lit.d.ts +0 -4
  263. package/dist/generated/templates/BarTemplate.lit.js +0 -5
  264. package/dist/generated/templates/BarTemplate.lit.js.map +0 -1
  265. package/dist/generated/themes/Bar.css.d.ts +0 -3
  266. package/dist/generated/themes/Bar.css.js +0 -9
  267. package/dist/generated/themes/Bar.css.js.map +0 -1
  268. package/dist/types/BarDesign.d.ts +0 -27
  269. package/dist/types/BarDesign.js +0 -29
  270. package/dist/types/BarDesign.js.map +0 -1
  271. package/src/Bar.hbs +0 -16
  272. package/src/themes/Bar.css +0 -75
  273. package/src/themes/base/Bar-parameters.css +0 -8
  274. package/src/themes/base/sizes-parameters.css +0 -6
  275. package/src/themes/sap_fiori_3_hcb/Bar-parameters.css +0 -5
  276. package/src/themes/sap_fiori_3_hcw/Bar-parameters.css +0 -5
  277. package/src/themes/sap_horizon_hcb/Bar-parameters.css +0 -5
  278. package/src/themes/sap_horizon_hcw/Bar-parameters.css +0 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,334 @@
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
+ # [2.0.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.0...v2.0.0-rc.1) (2024-04-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ui5-button:** provide focus support for mobile ([#8414](https://github.com/SAP/ui5-webcomponents/issues/8414)) ([4d9e32f](https://github.com/SAP/ui5-webcomponents/commit/4d9e32fff1a594f774f9f36d549619c0389c1e07)), closes [#8178](https://github.com/SAP/ui5-webcomponents/issues/8178) [#8322](https://github.com/SAP/ui5-webcomponents/issues/8322)
12
+
13
+
14
+
15
+
16
+
17
+ # [2.0.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0...v2.0.0-rc.0) (2024-04-09)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ui5-flexible-column-layout:** improved separators borders ([#8639](https://github.com/SAP/ui5-webcomponents/issues/8639)) ([367ca80](https://github.com/SAP/ui5-webcomponents/commit/367ca80c9f3eb24c36080046b58c823f5af21780)), closes [#8307](https://github.com/SAP/ui5-webcomponents/issues/8307)
23
+ * **ui5-upload-collection:** update ui5-upload-collection Drag and Drop overlay color ([#8616](https://github.com/SAP/ui5-webcomponents/issues/8616)) ([73f713e](https://github.com/SAP/ui5-webcomponents/commit/73f713e5003dacb1ceb68fbb3a6ac2e954741c97))
24
+
25
+
26
+ ### chore
27
+
28
+ * bring release-2.0 to main ([#8651](https://github.com/SAP/ui5-webcomponents/issues/8651)) ([69271c9](https://github.com/SAP/ui5-webcomponents/commit/69271c9468c7dd54f90710fc4613ae0a79f85cef)), closes [#8494](https://github.com/SAP/ui5-webcomponents/issues/8494) [#8496](https://github.com/SAP/ui5-webcomponents/issues/8496) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8497](https://github.com/SAP/ui5-webcomponents/issues/8497) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8504](https://github.com/SAP/ui5-webcomponents/issues/8504) [#8509](https://github.com/SAP/ui5-webcomponents/issues/8509) [#8507](https://github.com/SAP/ui5-webcomponents/issues/8507) [#8511](https://github.com/SAP/ui5-webcomponents/issues/8511) [#8501](https://github.com/SAP/ui5-webcomponents/issues/8501) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8503](https://github.com/SAP/ui5-webcomponents/issues/8503) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8506](https://github.com/SAP/ui5-webcomponents/issues/8506) [#8502](https://github.com/SAP/ui5-webcomponents/issues/8502) [#8524](https://github.com/SAP/ui5-webcomponents/issues/8524) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8525](https://github.com/SAP/ui5-webcomponents/issues/8525) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8518](https://github.com/SAP/ui5-webcomponents/issues/8518) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8526](https://github.com/SAP/ui5-webcomponents/issues/8526) [#8529](https://github.com/SAP/ui5-webcomponents/issues/8529) [#8528](https://github.com/SAP/ui5-webcomponents/issues/8528) [#8531](https://github.com/SAP/ui5-webcomponents/issues/8531) [#8532](https://github.com/SAP/ui5-webcomponents/issues/8532) [#8534](https://github.com/SAP/ui5-webcomponents/issues/8534) [#8163](https://github.com/SAP/ui5-webcomponents/issues/8163) [#8527](https://github.com/SAP/ui5-webcomponents/issues/8527) [#8538](https://github.com/SAP/ui5-webcomponents/issues/8538) [#8521](https://github.com/SAP/ui5-webcomponents/issues/8521) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8542](https://github.com/SAP/ui5-webcomponents/issues/8542) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8548](https://github.com/SAP/ui5-webcomponents/issues/8548) [#8555](https://github.com/SAP/ui5-webcomponents/issues/8555) [#8559](https://github.com/SAP/ui5-webcomponents/issues/8559) [#8565](https://github.com/SAP/ui5-webcomponents/issues/8565) [#8570](https://github.com/SAP/ui5-webcomponents/issues/8570) [#8558](https://github.com/SAP/ui5-webcomponents/issues/8558) [#8568](https://github.com/SAP/ui5-webcomponents/issues/8568) [#8596](https://github.com/SAP/ui5-webcomponents/issues/8596) [#8192](https://github.com/SAP/ui5-webcomponents/issues/8192) [#8606](https://github.com/SAP/ui5-webcomponents/issues/8606) [#8605](https://github.com/SAP/ui5-webcomponents/issues/8605) [#8600](https://github.com/SAP/ui5-webcomponents/issues/8600) [#8602](https://github.com/SAP/ui5-webcomponents/issues/8602) [#8593](https://github.com/SAP/ui5-webcomponents/issues/8593)
29
+
30
+
31
+ ### Code Refactoring
32
+
33
+ * **ui5-list, ui5-tree, ui5-upload-collection:** rename mode to selectionMode ([#8657](https://github.com/SAP/ui5-webcomponents/issues/8657)) ([d53b3b2](https://github.com/SAP/ui5-webcomponents/commit/d53b3b2e231b6bf3aa5b317634d3f304240f9d76))
34
+ * **ui5-tabcontainer:** remove fixed property ([#8676](https://github.com/SAP/ui5-webcomponents/issues/8676)) ([98052e1](https://github.com/SAP/ui5-webcomponents/commit/98052e1857845314cc41e1cfff80436bd1096436)), closes [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461)
35
+ * **ui5-upload-collection:** remove Delete selection mode ([#8607](https://github.com/SAP/ui5-webcomponents/issues/8607)) ([926ae75](https://github.com/SAP/ui5-webcomponents/commit/926ae75015fc4ca751dcbc5a36a5acceeedfffe3))
36
+
37
+
38
+ ### Features
39
+
40
+ * **focus:** new focus handling ([#8590](https://github.com/SAP/ui5-webcomponents/issues/8590)) ([b6a33e0](https://github.com/SAP/ui5-webcomponents/commit/b6a33e04210de2d0eb972755dbce804d479e14a9))
41
+
42
+
43
+ ### BREAKING CHANGES
44
+
45
+ * **ui5-tabcontainer:** Property "fixed" is removed and there is no alternative provided. The TabContainer is no longer expandable/collapsible via use interaction. You can still show the TabContainer collapsed via the "collapsed" property.
46
+ * **ui5-upload-collection:** The `selectionMode` property no longer accepts "Delete" as value.
47
+ If you have previously used it:
48
+ ```html
49
+ <ui5-upload-collection selection-mode="Delete"></ui5-upload-collection>
50
+ ```
51
+ Now omit it completely and use `hide-delete-button` onto the ui5-upload-collection:
52
+ ```html
53
+ <ui5-upload-collection>
54
+ <ui5-upload-collection-item hide-delete-button> </ui5-upload-collection-item>
55
+ </ui5-upload-collection>
56
+ ```
57
+
58
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
59
+ * **ui5-list, ui5-tree, ui5-upload-collection:** The `mode` property and the `ListMode` enum have been renamed.
60
+ If you have previously used the `mode` property and the `ListMode` values:
61
+ ```html
62
+ <ui5-list class="list" mode="SingleSelect">
63
+ <ui5-list class="list" mode="MultiSelect">
64
+ <ui5-upload-collection mode="SingleSelectBegin">
65
+ <ui5-upload-collection mode="SingleSelectEnd">
66
+ <ui5-tree mode="SingleSelectAuto" >
67
+ <ui5-tree mode="None" >
68
+ ```
69
+ Now use `selectionMode` and `Single`, `Multiple` instead:
70
+ ```html
71
+ <ui5-list class="list" selection-mode="Single">
72
+ <ui5-list class="list" selection-mode="Multiple">
73
+ <ui5-upload-collection selection-mode="SingleStart">
74
+ <ui5-upload-collection selection-mode="SingleEnd">
75
+ <ui5-tree selection-mode="SingleAuto">
76
+ <ui5-tree selection-mode="None">
77
+
78
+ ```
79
+
80
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
81
+ * "Device#isIE" method has been removed and no longer available
82
+
83
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
84
+ * Removed the `CSP.js` module and the creation of `<style>` and `<link>` tags, as all browsers now support adoptedStyleSheets. The following APIs are not available any more and should not be used:
85
+ ```ts
86
+ import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"
87
+ import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"
88
+ import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"
89
+ ```
90
+ * Removed the `ICardHeader` interface. If you previously used the interface
91
+ ```ts
92
+ import type { ICardHeader } from "@ui5/webcomponents-base/dist/Card.js"
93
+ ```
94
+ Use the CardHeader type instead:
95
+ ```ts
96
+ import type CardHeader from "@ui5/webcomponents-base/dist/CardHeader.js"
97
+ ```
98
+ * Removed the `IUploadCollectionItem` interface. If you previously used the interface:
99
+ ```js
100
+ import type { IUploadCollectionItem} from "@ui5/webcomponents-fiori/dist/UploadCollection.js"
101
+ ```
102
+ Use the `UploadCollectionItem` type instead:
103
+ ```js
104
+ import type UploadCollectionItem from "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js"
105
+ ```
106
+
107
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
108
+ * The `size` property now accepts different values. If you previously used it like:
109
+ ```html
110
+ <ui5-busy-indicator size="Small"></ui5-busy-indicator>
111
+ ```
112
+ Now use the new values instead:
113
+ ```html
114
+ <ui5-busy-indicator size="S"></ui5-busy-indicator>
115
+ ```
116
+
117
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
118
+ * The `status` property and its shadow part have been renamed. If you previously used them:
119
+ ```html
120
+ <style>
121
+ .cardHeader::part(status) { ... }
122
+ </style>
123
+ <ui5-card-header status="3 of 10"></ui5-popover>
124
+ ```
125
+ Now use `additionalText` instead:
126
+ ```html
127
+ <style>
128
+ .cardHeader::part(additional-text) { ... }
129
+ </style>
130
+ <ui5-card-header class="cardHeader" additional-text="3 of 10"></ui5-card-header>
131
+ ```
132
+
133
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
134
+ * The `pageIndicatorStyle` no longer exists. If you previously used it like:
135
+ ```html
136
+ <ui5-carousel page-indicator-style="Numeric"></ui5-carousel>
137
+ ```
138
+ Now you should use `pageIndicatorType` instead:
139
+ ```html
140
+ <ui5-carousel page-indicator-type="Numeric"></ui5-carousel>
141
+ ```
142
+
143
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
144
+ * Removed `UI5Element#render` method in favour of `UI5Element#renderer`. If you previously used "render"
145
+ ```js
146
+ class MyClass extends UI5Element {
147
+ static get render() {
148
+ return litRenderer;
149
+ }
150
+ }
151
+ ```
152
+ start using "renderer"
153
+ ```ts
154
+ class MyClass extends UI5Element {
155
+ static get renderer() {
156
+ return litRenderer;
157
+ }
158
+ }
159
+ ```
160
+ * Remove JavaScript template option from @ui5/create-webcomponents-package
161
+ Previously `npm init @ui5/webcomponents-package` used to create JS-based project, however now it will be TypeScript-based project.
162
+ If you previously used `npm init @ui5/webcomponents-package --enable-typescript` to create TypeScript-based project, now it's by default, e.g `npm init @ui5/webcomponents-package` and `--enable-typescript` is removed.
163
+ * The `Left` and `Right` options option have been renamed. If you previously used them to set the placement or the alignment of the popover:
164
+ ```html
165
+ <ui5-popover horizontal-align="Left" placement-type="Left"></ui5-popover>
166
+ ```
167
+ Now use `Start` or `End` instead:
168
+ ```html
169
+ <ui5-popover horizontal-align="Start" placement-type="Start"></ui5-popover>
170
+ ```
171
+
172
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
173
+
174
+ * docs: deploy v2 preview
175
+ * Remove `soccor` icon. Use `soccer` instead.
176
+ * Remove `add-polygone` icon. Use `add-polygon` instead.
177
+ * The JSDoc plugin has been removed, and the generation of api.json has stopped. If you previously relied on the `ui5-package/dist/api.json file`, you can now use `ui5-package/dist/custom-elements.json`
178
+ * All Assets-static.js modules are removed. If you previously imported any Assets-static.js module from any package:
179
+ ```ts
180
+ import "@ui5/webcomponents/dist/Assets-static.js";
181
+ import "@ui5/webcomponents-icons/dist/Assets-static.js"
182
+ ```
183
+ use the dynamic equivalent of it:
184
+ ```ts
185
+ import "@ui5/webcomponents/dist/Assets.js";
186
+ import "@ui5/webcomponents-icons/dist/Assets.js"
187
+ ```
188
+
189
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
190
+ * The event `selected-dates-change ` is renamed to `selection-change`. In addition the event details
191
+ `values` and `dates` are renamed to `selectedValues` and `selectedDateValues`. If you previously used the Calendar event as follows:
192
+ ```ts
193
+ myCalendar.addEventListener("selected-dates-change", () => {
194
+ const values = e.detail.values;
195
+ const dates = e.detail.dates;
196
+ })
197
+ ```
198
+ Now you have to use the new event name and details:
199
+ ```ts
200
+ myCalendar.addEventListener("selection-change", () => {
201
+ const values = event.detail.selectedValues;
202
+ const dates = event.detail.selectedDateValues;
203
+ })
204
+ ```
205
+
206
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
207
+ * The property `color` is renamed to `value`. If you previously used the change event of the ColorPicker as follows:
208
+ ```html
209
+ <ui5-color-picker color="red"></ui5-color-picker>
210
+ ```
211
+ Now you have to use it like this:
212
+ ```html
213
+ <ui5-color-picker value="red"></ui5-color-picker>
214
+ ```
215
+
216
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
217
+ * JavaScript projects may not function properly with the tools package.
218
+ * The `openPopover` and `showAt` methods are removed in favor of `open` and `opener` properties. If you previously used the imperative API:
219
+ ```js
220
+ button.addEventListener("click", function(event) {
221
+ colorPalettePopover.showAt(this);
222
+ });
223
+ ```
224
+ Now the declarative API should be used instead:
225
+ ```html
226
+ <ui5-button id="opener">Open</ui5-button>
227
+ <ui5-color-palette-popover opener="opener">
228
+ ```
229
+ ```js
230
+ button.addEventListener("click", function(event) {
231
+ colorPalettePopover.open = !colorPalettePopover.open;
232
+ });
233
+ ```
234
+ * The `ui5-bar` component is now in `main` library. If you previously imported the `ui5-bar` from `fiori`:
235
+ ```ts
236
+ import "@ui5/webcomponents-fiori/dist/Bar.js;
237
+ ```
238
+ Now, import the `ui5-bar` from `main`:
239
+ ```ts
240
+ import "@ui5/webcomponents/dist/Bar.js";
241
+ ```
242
+
243
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
244
+ * If you have previously used:
245
+ ```html
246
+ <ui5-tab id="nestedTab" slot="subTabs"></ui5-tab>
247
+ ```
248
+ Now use:
249
+ ```html
250
+ <ui5-tab id="nestedTab" slot="items"></ui5-tab>
251
+ ```
252
+
253
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
254
+ * If you have previously used:
255
+ ```html
256
+ <ui5-tabcontainer tabs-overflow-mode="StartAndEnd"></ui5-tabcontainer>
257
+ ```
258
+ Now use:
259
+ ```html
260
+ <ui5-tabcontainer overflow-mode="StartAndEnd"></ui5-tabcontainer>
261
+ ```
262
+
263
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
264
+ * If you previously imported `TabContainerBackgroundDesign`, use `BackgroundDesign` instead.
265
+
266
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
267
+ * The showOverflow property is removed. If previously you have used:
268
+ ```html
269
+ <ui5-tabcontainer show-overflow></ui5-tabcontainer>
270
+ ```
271
+ now use the overflowButton slot:
272
+ ```html
273
+ <ui5-tabcontainer>
274
+ <ui5-button slot="startOverflowButton" id="startOverflowButton">Start</ui5-button>
275
+ <ui5-button slot="overflowButton" id="endOverflowButton">End</ui5-button>
276
+ </ui5-tabcontainer>
277
+ ```
278
+
279
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
280
+ * The `placementType` property and the `PopoverPlacementType` enum have been renamed.
281
+ If you have previously used the `placementType` property and the `PopoverPlacementType`
282
+ ```html
283
+ <ui5-popover placement-type="Bottom"></ui5-popover>
284
+ ```
285
+ ```js
286
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacementType.js";
287
+ ```
288
+ Now use `placement` instead:
289
+ ```html
290
+ <ui5-placement="Bottom"></ui5-popover>
291
+ ```
292
+ ```js
293
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacement.js";
294
+ ```
295
+
296
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
297
+ * The `size` property of the `ui5--illustrated-message` is renamed to `design`.
298
+ If you have previously used the `size` property:
299
+ ```html
300
+ <ui5-illustrated-message size="Dialog">
301
+ ```
302
+ Now use `design` instead:
303
+ ```html
304
+ <ui5-illustrated-message design="Dialog">
305
+
306
+ ```
307
+
308
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
309
+ * The `separator-style` property is renamed to `separators` and the `BreadcrumbsSeparatorStyle` enum is renamed to `BreadcrumbsSeparator`.
310
+ If you have previously used the `separator-style` property:
311
+ ```html
312
+ <ui5-breadcrumbs separator-style="Slash">
313
+ ```
314
+ Now use `separators` instead:
315
+ ```html
316
+ <ui5-breadcrumbs separators="Slash">
317
+ ```
318
+
319
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
320
+ * The `disabled` property of the `ui5-option` is removed.
321
+ If you have previously used the `disabled` property:
322
+ ```html
323
+ <ui5-option disabled>Option</ui5-option>
324
+ ```
325
+ it will no longer work for the component.
326
+
327
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
328
+ * You can no longer import and implement the `ITab` interface. TabContainer is designed to work only with Tab and TabSeparator classes, so the interface was obsolete.
329
+
330
+
331
+
332
+
333
+
6
334
  # [1.24.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.4...v1.24.0) (2024-04-04)
7
335
 
8
336
  **Note:** Version bump only for package @ui5/webcomponents-fiori
package/README.md CHANGED
@@ -12,7 +12,6 @@ such as a common header (ShellBar).
12
12
 
13
13
  | Web Component | Tag name | Module import |
14
14
  |-------------------------------------------|--------------------------------|-----------------------------------------------------------------------|
15
- | Bar | `ui5-bar` | `import "@ui5/webcomponents-fiori/dist/Bar.js";` |
16
15
  | Barcode Scanner Dialog | `ui5-barcode-scanner-dialog` | `import "@ui5/webcomponents-fiori/dist/BarcodeScannerDialog.js";` |
17
16
  | Dynamic Side Content | `ui5-dynamic-side-content` | `import "@ui5/webcomponents-fiori/dist/DynamicSideContent.js";` |
18
17
  | Flexible Column Layout | `ui5-flexible-column-layout` | `import "@ui5/webcomponents-fiori/dist/FlexibleColumnLayout.js";` |
@@ -66,13 +66,13 @@ declare class BarcodeScannerDialog extends UI5Element {
66
66
  */
67
67
  _hasGetUserMedia(): boolean;
68
68
  _getUserPermission(): Promise<MediaStream>;
69
- _getDialog(): Promise<Dialog>;
70
- _getVideoElement(): Promise<HTMLVideoElement>;
71
- _showDialog(): Promise<void>;
69
+ _getDialog(): Dialog;
70
+ _getVideoElement(): HTMLVideoElement;
71
+ _showDialog(): void;
72
72
  _closeDialog(): void;
73
73
  _startReader(): void;
74
- _resetReader(): Promise<void>;
75
- _decodeFromCamera(): Promise<void>;
74
+ _resetReader(): void;
75
+ _decodeFromCamera(): void;
76
76
  get _cancelButtonText(): string;
77
77
  get _busyIndicatorText(): string;
78
78
  }
@@ -114,16 +114,14 @@ let BarcodeScannerDialog = BarcodeScannerDialog_1 = class BarcodeScannerDialog e
114
114
  _getUserPermission() {
115
115
  return navigator.mediaDevices.getUserMedia(defaultMediaConstraints);
116
116
  }
117
- async _getDialog() {
118
- const staticAreaItem = await this.getStaticAreaItemDomRef();
119
- return staticAreaItem.querySelector("[ui5-dialog]");
117
+ _getDialog() {
118
+ return this.shadowRoot.querySelector("[ui5-dialog]");
120
119
  }
121
- async _getVideoElement() {
122
- const staticAreaItem = await this.getStaticAreaItemDomRef();
123
- return staticAreaItem.querySelector(".ui5-barcode-scanner-dialog-video");
120
+ _getVideoElement() {
121
+ return this.shadowRoot.querySelector(".ui5-barcode-scanner-dialog-video");
124
122
  }
125
- async _showDialog() {
126
- this.dialog = await this._getDialog();
123
+ _showDialog() {
124
+ this.dialog = this._getDialog();
127
125
  this.dialog.show();
128
126
  this.open = true;
129
127
  }
@@ -136,13 +134,13 @@ let BarcodeScannerDialog = BarcodeScannerDialog_1 = class BarcodeScannerDialog e
136
134
  _startReader() {
137
135
  this._decodeFromCamera();
138
136
  }
139
- async _resetReader() {
140
- const videoElement = await this._getVideoElement();
137
+ _resetReader() {
138
+ const videoElement = this._getVideoElement();
141
139
  videoElement.pause();
142
140
  this._codeReader.reset();
143
141
  }
144
- async _decodeFromCamera() {
145
- const videoElement = await this._getVideoElement();
142
+ _decodeFromCamera() {
143
+ const videoElement = this._getVideoElement();
146
144
  this._codeReader.decodeFromVideoDevice(null, videoElement, (result, err) => {
147
145
  this.loading = false;
148
146
  if (result) {
@@ -174,8 +172,8 @@ BarcodeScannerDialog = BarcodeScannerDialog_1 = __decorate([
174
172
  tag: "ui5-barcode-scanner-dialog",
175
173
  languageAware: true,
176
174
  renderer: litRender,
177
- staticAreaTemplate: BarcodeScannerDialogTemplate,
178
- staticAreaStyles: [BarcodeScannerDialogCss],
175
+ template: BarcodeScannerDialogTemplate,
176
+ styles: [BarcodeScannerDialogCss],
179
177
  dependencies: [
180
178
  Dialog,
181
179
  BusyIndicator,
@@ -1 +1 @@
1
- {"version":3,"file":"BarcodeScannerDialog.js","sourceRoot":"","sources":["../src/BarcodeScannerDialog.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAA0B,MAAM,4CAA4C,CAAC;AACpF,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,MAAM,MAAM,mCAAmC,CAAC;AACvD,OAAO,aAAa,MAAM,0CAA0C,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,iCAAiC,CAAC;AACzD,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AAGrE,QAAQ;AACR,OAAO,EACN,wCAAwC,EACxC,kCAAkC,GAClC,MAAM,mCAAmC,CAAC;AAE3C,WAAW;AACX,OAAO,4BAA4B,MAAM,2DAA2D,CAAC;AAErG,SAAS;AACT,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AAErF,qHAAqH;AACrH,oJAAoJ;AACpJ,MAAM,cAAc,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG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OAAO,sBAAoB,CAAC,UAAU,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;IACpF,CAAC;CACD,CAAA;AA1IA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACb;AAQf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDACV;AAjBb,oBAAoB;IA7CzB,aAAa,CAAC;QACd,GAAG,EAAE,4BAA4B;QACjC,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,kBAAkB,EAAE,4BAA4B;QAChD,gBAAgB,EAAE,CAAC,uBAAuB,CAAC;QAC3C,YAAY,EAAE;YACb,MAAM;YACN,aAAa;YACb,MAAM;SACN;KACD,CAAC;IACF;;;;;OAKG;;IACF,KAAK,CAA6C,cAAc,EAAE;QAClE,MAAM,EAAE;YACP;;cAEE;YACF,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACtB;;cAEE;YACF,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAA2C,YAAY,EAAE;QAC9D,MAAM,EAAE;YACP;;cAEE;YACF,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACzB;KACD,CAAC;GAEI,oBAAoB,CAmJzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import UI5Element, { ChangeInfo } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Dialog from \"@ui5/webcomponents/dist/Dialog.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport * as ZXing from \"@zxing/library/umd/index.min.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport type { Result, Exception } from \"@zxing/library/esm5/index.js\";\n\n// Texts\nimport {\n\tBARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT,\n\tBARCODE_SCANNER_DIALOG_LOADING_TXT,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport BarcodeScannerDialogTemplate from \"./generated/templates/BarcodeScannerDialogTemplate.lit.js\";\n\n// Styles\nimport BarcodeScannerDialogCss from \"./generated/themes/BarcodeScannerDialog.css.js\";\n\n// some tools handle named exports from UMD files and the window object is not assigned but the imports work (vitejs)\n// other tools do not handle named exports (they are undefined after the import), but the window global is assigned and can be used (web dev server)\nconst effectiveZXing = { ...ZXing, ...window.ZXing };\nconst { BrowserMultiFormatReader, NotFoundException } = effectiveZXing;\n\nconst defaultMediaConstraints = {\n\taudio: false,\n\tvideo: {\n\t\theight: {\n\t\t\tmin: 480,\n\t\t\tideal: 960,\n\t\t\tmax: 1440,\n\t\t},\n\t\taspectRatio: 1.333333333,\n\t\tfacingMode: \"environment\",\n\t},\n};\n\ntype BarcodeScannerDialogScanSuccessEventDetail = {\n\ttext: string,\n\trawBytes: Uint8Array,\n};\n\ntype BarcodeScannerDialogScanErrorEventDetail = {\n\tmessage: string,\n};\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `BarcodeScannerDialog` component provides barcode scanning functionality for all devices that support the `MediaDevices.getUserMedia()` native API.\n * Opening the dialog launches the device camera and scans for known barcode formats.\n *\n * A `scanSuccess` event fires whenever a barcode is identified\n * and a `scanError` event fires when the scan failed (for example, due to missing permisions).\n *\n * Internally, the component uses the zxing-js/library third party OSS.\n *\n * For a list of supported barcode formats, see the [zxing-js/library](https://github.com/zxing-js/library) documentation.\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.15\n */\n@customElement({\n\ttag: \"ui5-barcode-scanner-dialog\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\tstaticAreaTemplate: BarcodeScannerDialogTemplate,\n\tstaticAreaStyles: [BarcodeScannerDialogCss],\n\tdependencies: [\n\t\tDialog,\n\t\tBusyIndicator,\n\t\tButton,\n\t],\n})\n/**\n * Fires when the scan is completed successfuuly.\n * @param {string} text the scan result as string\n * @param {Object} rawBytes the scan result as a Uint8Array\n * @public\n */\n@event<BarcodeScannerDialogScanSuccessEventDetail>(\"scan-success\", {\n\tdetail: {\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\ttext: { type: String },\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\trawBytes: { type: Object },\n\t},\n})\n\n/**\n * Fires when the scan fails with error.\n * @param {string} message the error message\n * @public\n */\n@event<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", {\n\tdetail: {\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\tmessage: { type: String },\n\t},\n})\n\nclass BarcodeScannerDialog extends UI5Element {\n\t/**\n\t * Indicates whether the dialog is open.\n\t *\n\t * @public\n\t * @default false\n\t * @since 1.24.0\n\t*/\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Indicates whether a loading indicator should be displayed in the dialog.\n\t * @default false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tloading!: boolean;\n\n\t_codeReader: InstanceType<typeof BrowserMultiFormatReader>;\n\tdialog?: Dialog;\n\tstatic i18nBundle: I18nBundle;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._codeReader = new BrowserMultiFormatReader();\n\t}\n\n\tstatic async onDefine() {\n\t\tBarcodeScannerDialog.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tonInvalidation(changeInfo: ChangeInfo) {\n\t\tif (changeInfo.type === \"property\" && changeInfo.name === \"open\") {\n\t\t\tif (changeInfo.newValue) {\n\t\t\t\tthis.show();\n\t\t\t} else {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Shows a dialog with the camera videostream. Starts a scan session.\n\t * @public\n\t * @deprecated The method is deprecated in favour of <code>open</code> property.\n\t */\n\tshow(): void {\n\t\tif (this.loading) {\n\t\t\tconsole.warn(\"Barcode scanning is already in progress.\"); // eslint-disable-line\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._hasGetUserMedia()) {\n\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: \"getUserMedia() is not supported by your browser\" });\n\t\t\treturn;\n\t\t}\n\n\t\tthis.loading = true;\n\n\t\tthis._getUserPermission()\n\t\t\t.then(() => this._showDialog())\n\t\t\t.catch(err => {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err });\n\t\t\t\tthis.loading = false;\n\t\t\t});\n\t}\n\n\t/**\n\t * Closes the dialog and the scan session.\n\t * @public\n\t * @deprecated The method is deprecated in favour of <code>open</code> property.\n\t */\n\tclose():void {\n\t\tthis._closeDialog();\n\t\tthis.loading = false;\n\t}\n\n\t/**\n\t * PRIVATE METHODS\n\t */\n\n\t_hasGetUserMedia() {\n\t\treturn !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);\n\t}\n\n\t_getUserPermission() {\n\t\treturn navigator.mediaDevices.getUserMedia(defaultMediaConstraints);\n\t}\n\n\tasync _getDialog() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<Dialog>(\"[ui5-dialog]\")!;\n\t}\n\n\tasync _getVideoElement() {\n\t\tconst staticAreaItem = await this.getStaticAreaItemDomRef();\n\t\treturn staticAreaItem!.querySelector<HTMLVideoElement>(\".ui5-barcode-scanner-dialog-video\")!;\n\t}\n\n\tasync _showDialog() {\n\t\tthis.dialog = await this._getDialog();\n\t\tthis.dialog.show();\n\t\tthis.open = true;\n\t}\n\n\t_closeDialog() {\n\t\tif (this.dialog && this.dialog.opened) {\n\t\t\tthis.dialog.close();\n\t\t\tthis.open = false;\n\t\t}\n\t}\n\n\t_startReader() {\n\t\tthis._decodeFromCamera();\n\t}\n\n\tasync _resetReader() {\n\t\tconst videoElement = await this._getVideoElement();\n\t\tvideoElement.pause();\n\t\tthis._codeReader.reset();\n\t}\n\n\tasync _decodeFromCamera() {\n\t\tconst videoElement = await this._getVideoElement();\n\t\tthis._codeReader.decodeFromVideoDevice(null, videoElement, (result: Result, err?: Exception) => {\n\t\t\tthis.loading = false;\n\t\t\tif (result) {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanSuccessEventDetail>(\"scan-success\",\n\t\t\t\t\t{\n\t\t\t\t\t\ttext: result.getText(),\n\t\t\t\t\t\trawBytes: result.getRawBytes(),\n\t\t\t\t\t});\n\t\t\t}\n\t\t\tif (err && !(err instanceof NotFoundException)) {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err.message });\n\t\t\t}\n\t\t}).catch((err: Error) => this.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err.message }));\n\t}\n\n\tget _cancelButtonText() {\n\t\treturn BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT);\n\t}\n\n\tget _busyIndicatorText() {\n\t\treturn BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_LOADING_TXT);\n\t}\n}\n\nBarcodeScannerDialog.define();\n\nexport default BarcodeScannerDialog;\nexport type {\n\tBarcodeScannerDialogScanErrorEventDetail,\n\tBarcodeScannerDialogScanSuccessEventDetail,\n};\n"]}
1
+ {"version":3,"file":"BarcodeScannerDialog.js","sourceRoot":"","sources":["../src/BarcodeScannerDialog.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAA0B,MAAM,4CAA4C,CAAC;AACpF,OAAO,SAAS,MAAM,sDAAsD,CAAC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oBAAoB,CAiJzB;AAED,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAE9B,eAAe,oBAAoB,CAAC","sourcesContent":["import UI5Element, { ChangeInfo } from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Dialog from \"@ui5/webcomponents/dist/Dialog.js\";\nimport Button from \"@ui5/webcomponents/dist/Button.js\";\nimport BusyIndicator from \"@ui5/webcomponents/dist/BusyIndicator.js\";\nimport * as ZXing from \"@zxing/library/umd/index.min.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport type { Result, Exception } from \"@zxing/library/esm5/index.js\";\n\n// Texts\nimport {\n\tBARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT,\n\tBARCODE_SCANNER_DIALOG_LOADING_TXT,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport BarcodeScannerDialogTemplate from \"./generated/templates/BarcodeScannerDialogTemplate.lit.js\";\n\n// Styles\nimport BarcodeScannerDialogCss from \"./generated/themes/BarcodeScannerDialog.css.js\";\n\n// some tools handle named exports from UMD files and the window object is not assigned but the imports work (vitejs)\n// other tools do not handle named exports (they are undefined after the import), but the window global is assigned and can be used (web dev server)\nconst effectiveZXing = { ...ZXing, ...window.ZXing };\nconst { BrowserMultiFormatReader, NotFoundException } = effectiveZXing;\n\nconst defaultMediaConstraints = {\n\taudio: false,\n\tvideo: {\n\t\theight: {\n\t\t\tmin: 480,\n\t\t\tideal: 960,\n\t\t\tmax: 1440,\n\t\t},\n\t\taspectRatio: 1.333333333,\n\t\tfacingMode: \"environment\",\n\t},\n};\n\ntype BarcodeScannerDialogScanSuccessEventDetail = {\n\ttext: string,\n\trawBytes: Uint8Array,\n};\n\ntype BarcodeScannerDialogScanErrorEventDetail = {\n\tmessage: string,\n};\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `BarcodeScannerDialog` component provides barcode scanning functionality for all devices that support the `MediaDevices.getUserMedia()` native API.\n * Opening the dialog launches the device camera and scans for known barcode formats.\n *\n * A `scanSuccess` event fires whenever a barcode is identified\n * and a `scanError` event fires when the scan failed (for example, due to missing permisions).\n *\n * Internally, the component uses the zxing-js/library third party OSS.\n *\n * For a list of supported barcode formats, see the [zxing-js/library](https://github.com/zxing-js/library) documentation.\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.15\n */\n@customElement({\n\ttag: \"ui5-barcode-scanner-dialog\",\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: BarcodeScannerDialogTemplate,\n\tstyles: [BarcodeScannerDialogCss],\n\tdependencies: [\n\t\tDialog,\n\t\tBusyIndicator,\n\t\tButton,\n\t],\n})\n/**\n * Fires when the scan is completed successfuuly.\n * @param {string} text the scan result as string\n * @param {Object} rawBytes the scan result as a Uint8Array\n * @public\n */\n@event<BarcodeScannerDialogScanSuccessEventDetail>(\"scan-success\", {\n\tdetail: {\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\ttext: { type: String },\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\trawBytes: { type: Object },\n\t},\n})\n\n/**\n * Fires when the scan fails with error.\n * @param {string} message the error message\n * @public\n */\n@event<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", {\n\tdetail: {\n\t\t/**\n\t\t* @public\n\t\t*/\n\t\tmessage: { type: String },\n\t},\n})\n\nclass BarcodeScannerDialog extends UI5Element {\n\t/**\n\t * Indicates whether the dialog is open.\n\t *\n\t * @public\n\t * @default false\n\t * @since 1.24.0\n\t*/\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Indicates whether a loading indicator should be displayed in the dialog.\n\t * @default false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tloading!: boolean;\n\n\t_codeReader: InstanceType<typeof BrowserMultiFormatReader>;\n\tdialog?: Dialog;\n\tstatic i18nBundle: I18nBundle;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis._codeReader = new BrowserMultiFormatReader();\n\t}\n\n\tstatic async onDefine() {\n\t\tBarcodeScannerDialog.i18nBundle = await getI18nBundle(\"@ui5/webcomponents-fiori\");\n\t}\n\n\tonInvalidation(changeInfo: ChangeInfo) {\n\t\tif (changeInfo.type === \"property\" && changeInfo.name === \"open\") {\n\t\t\tif (changeInfo.newValue) {\n\t\t\t\tthis.show();\n\t\t\t} else {\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Shows a dialog with the camera videostream. Starts a scan session.\n\t * @public\n\t * @deprecated The method is deprecated in favour of <code>open</code> property.\n\t */\n\tshow(): void {\n\t\tif (this.loading) {\n\t\t\tconsole.warn(\"Barcode scanning is already in progress.\"); // eslint-disable-line\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._hasGetUserMedia()) {\n\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: \"getUserMedia() is not supported by your browser\" });\n\t\t\treturn;\n\t\t}\n\n\t\tthis.loading = true;\n\n\t\tthis._getUserPermission()\n\t\t\t.then(() => this._showDialog())\n\t\t\t.catch(err => {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err });\n\t\t\t\tthis.loading = false;\n\t\t\t});\n\t}\n\n\t/**\n\t * Closes the dialog and the scan session.\n\t * @public\n\t * @deprecated The method is deprecated in favour of <code>open</code> property.\n\t */\n\tclose():void {\n\t\tthis._closeDialog();\n\t\tthis.loading = false;\n\t}\n\n\t/**\n\t * PRIVATE METHODS\n\t */\n\n\t_hasGetUserMedia() {\n\t\treturn !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);\n\t}\n\n\t_getUserPermission() {\n\t\treturn navigator.mediaDevices.getUserMedia(defaultMediaConstraints);\n\t}\n\n\t_getDialog() {\n\t\treturn this.shadowRoot!.querySelector<Dialog>(\"[ui5-dialog]\")!;\n\t}\n\n\t_getVideoElement() {\n\t\treturn this.shadowRoot!.querySelector<HTMLVideoElement>(\".ui5-barcode-scanner-dialog-video\")!;\n\t}\n\n\t_showDialog() {\n\t\tthis.dialog = this._getDialog();\n\t\tthis.dialog.show();\n\t\tthis.open = true;\n\t}\n\n\t_closeDialog() {\n\t\tif (this.dialog && this.dialog.opened) {\n\t\t\tthis.dialog.close();\n\t\t\tthis.open = false;\n\t\t}\n\t}\n\n\t_startReader() {\n\t\tthis._decodeFromCamera();\n\t}\n\n\t_resetReader() {\n\t\tconst videoElement = this._getVideoElement();\n\t\tvideoElement.pause();\n\t\tthis._codeReader.reset();\n\t}\n\n\t_decodeFromCamera() {\n\t\tconst videoElement = this._getVideoElement();\n\t\tthis._codeReader.decodeFromVideoDevice(null, videoElement, (result: Result, err?: Exception) => {\n\t\t\tthis.loading = false;\n\t\t\tif (result) {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanSuccessEventDetail>(\"scan-success\",\n\t\t\t\t\t{\n\t\t\t\t\t\ttext: result.getText(),\n\t\t\t\t\t\trawBytes: result.getRawBytes(),\n\t\t\t\t\t});\n\t\t\t}\n\t\t\tif (err && !(err instanceof NotFoundException)) {\n\t\t\t\tthis.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err.message });\n\t\t\t}\n\t\t}).catch((err: Error) => this.fireEvent<BarcodeScannerDialogScanErrorEventDetail>(\"scan-error\", { message: err.message }));\n\t}\n\n\tget _cancelButtonText() {\n\t\treturn BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT);\n\t}\n\n\tget _busyIndicatorText() {\n\t\treturn BarcodeScannerDialog.i18nBundle.getText(BARCODE_SCANNER_DIALOG_LOADING_TXT);\n\t}\n}\n\nBarcodeScannerDialog.define();\n\nexport default BarcodeScannerDialog;\nexport type {\n\tBarcodeScannerDialogScanErrorEventDetail,\n\tBarcodeScannerDialogScanSuccessEventDetail,\n};\n"]}
@@ -78,12 +78,12 @@ declare class IllustratedMessage extends UI5Element {
78
78
  * Determines which illustration breakpoint variant is used.
79
79
  *
80
80
  * As `IllustratedMessage` adapts itself around the `Illustration`, the other
81
- * elements of the component are displayed differently on the different breakpoints/illustration sizes.
81
+ * elements of the component are displayed differently on the different breakpoints/illustration designs.
82
82
  * @default "Auto"
83
83
  * @public
84
84
  * @since 1.5.0
85
85
  */
86
- size: `${IllustrationMessageSize}`;
86
+ design: `${IllustrationMessageSize}`;
87
87
  /**
88
88
  * Defines the subtitle of the component.
89
89
  *
@@ -121,27 +121,27 @@ declare class IllustratedMessage extends UI5Element {
121
121
  */
122
122
  titleLevel: `${TitleLevel}`;
123
123
  /**
124
- * Illustration breakpoint variant for the <code>Dot</code> size.
124
+ * Illustration breakpoint variant for the <code>Dot</code> design.
125
125
  *
126
126
  * @private
127
127
  * @since 1.24.0
128
128
  */
129
129
  dotSvg: string;
130
130
  /**
131
- * Illustration breakpoint variant for the <code>Spot</code> size.
131
+ * Illustration breakpoint variant for the <code>Spot</code> design.
132
132
  *
133
133
  * @private
134
134
  * @since 1.9.0
135
135
  */
136
136
  spotSvg: string;
137
137
  /**
138
- * Illustration breakpoint variant for the `Scene` size.
138
+ * Illustration breakpoint variant for the `Scene` design.
139
139
  * @private
140
140
  * @since 1.9.0
141
141
  */
142
142
  sceneSvg: string;
143
143
  /**
144
- * Illustration breakpoint variant for the `Dialog` size.
144
+ * Illustration breakpoint variant for the `Dialog` design.
145
145
  * @private
146
146
  * @since 1.9.0
147
147
  */
@@ -130,7 +130,7 @@ let IllustratedMessage = IllustratedMessage_1 = class IllustratedMessage extends
130
130
  this.sceneSvg = illustrationData.sceneSvg;
131
131
  this.illustrationTitle = IllustratedMessage_1.i18nBundle.getText(illustrationData.title);
132
132
  this.illustrationSubtitle = IllustratedMessage_1.i18nBundle.getText(illustrationData.subtitle);
133
- if (this.size !== IllustrationMessageSize.Auto) {
133
+ if (this.design !== IllustrationMessageSize.Auto) {
134
134
  this._handleCustomSize();
135
135
  }
136
136
  }
@@ -141,7 +141,7 @@ let IllustratedMessage = IllustratedMessage_1 = class IllustratedMessage extends
141
141
  ResizeHandler.deregister(this, this._handleResize);
142
142
  }
143
143
  handleResize() {
144
- if (this.size !== IllustrationMessageSize.Auto) {
144
+ if (this.design !== IllustrationMessageSize.Auto) {
145
145
  this._adjustHeightToFitContainer();
146
146
  return;
147
147
  }
@@ -150,18 +150,18 @@ let IllustratedMessage = IllustratedMessage_1 = class IllustratedMessage extends
150
150
  }
151
151
  _applyMedia(heightChange) {
152
152
  const currOffsetWidth = this.offsetWidth, currOffsetHeight = this.offsetHeight;
153
- const size = heightChange ? currOffsetHeight : currOffsetWidth, oBreakpounts = heightChange ? IllustratedMessage_1.BREAKPOINTS_HEIGHT : IllustratedMessage_1.BREAKPOINTS;
153
+ const design = heightChange ? currOffsetHeight : currOffsetWidth, oBreakpounts = heightChange ? IllustratedMessage_1.BREAKPOINTS_HEIGHT : IllustratedMessage_1.BREAKPOINTS;
154
154
  let newMedia = "";
155
- if (size <= oBreakpounts.BASE) {
155
+ if (design <= oBreakpounts.BASE) {
156
156
  newMedia = IllustratedMessage_1.MEDIA.BASE;
157
157
  }
158
- else if (size <= oBreakpounts.DOT) {
158
+ else if (design <= oBreakpounts.DOT) {
159
159
  newMedia = IllustratedMessage_1.MEDIA.DOT;
160
160
  }
161
- else if (size <= oBreakpounts.SPOT) {
161
+ else if (design <= oBreakpounts.SPOT) {
162
162
  newMedia = IllustratedMessage_1.MEDIA.SPOT;
163
163
  }
164
- else if (size <= oBreakpounts.DIALOG) {
164
+ else if (design <= oBreakpounts.DIALOG) {
165
165
  newMedia = IllustratedMessage_1.MEDIA.DIALOG;
166
166
  }
167
167
  else {
@@ -211,7 +211,7 @@ let IllustratedMessage = IllustratedMessage_1 = class IllustratedMessage extends
211
211
  * @since 1.5.0
212
212
  */
213
213
  _handleCustomSize() {
214
- switch (this.size) {
214
+ switch (this.design) {
215
215
  case IllustrationMessageSize.Base:
216
216
  this.media = IllustratedMessage_1.MEDIA.BASE;
217
217
  return;
@@ -276,7 +276,7 @@ __decorate([
276
276
  ], IllustratedMessage.prototype, "name", void 0);
277
277
  __decorate([
278
278
  property({ type: IllustrationMessageSize, defaultValue: IllustrationMessageSize.Auto })
279
- ], IllustratedMessage.prototype, "size", void 0);
279
+ ], IllustratedMessage.prototype, "design", void 0);
280
280
  __decorate([
281
281
  property()
282
282
  ], IllustratedMessage.prototype, "subtitleText", void 0);