@ui5/webcomponents 1.1.2 → 1.2.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 (440) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +1 -0
  3. package/dist/Avatar.js +1 -1
  4. package/dist/AvatarGroup.js +2 -2
  5. package/dist/Breadcrumbs.js +11 -4
  6. package/dist/BusyIndicator.js +1 -1
  7. package/dist/Button.js +42 -28
  8. package/dist/Calendar.js +1 -1
  9. package/dist/Card.js +2 -2
  10. package/dist/CheckBox.js +3 -3
  11. package/dist/ColorPalette.js +1 -1
  12. package/dist/ColorPaletteItem.js +2 -2
  13. package/dist/ColorPalettePopover.js +3 -3
  14. package/dist/ColorPicker.js +42 -4
  15. package/dist/ComboBox.js +10 -4
  16. package/dist/DatePicker.js +10 -8
  17. package/dist/DateRangePicker.js +7 -1
  18. package/dist/Dialog.js +35 -5
  19. package/dist/FileUploader.js +2 -1
  20. package/dist/Input.js +87 -19
  21. package/dist/Interfaces.js +1 -1
  22. package/dist/Label.js +7 -1
  23. package/dist/Link.js +16 -5
  24. package/dist/List.js +6 -16
  25. package/dist/ListItem.js +1 -1
  26. package/dist/MessageStrip.js +0 -8
  27. package/dist/MultiComboBox.js +166 -27
  28. package/dist/Panel.js +7 -8
  29. package/dist/Popover.js +39 -9
  30. package/dist/Popup.js +61 -26
  31. package/dist/ProgressIndicator.js +5 -0
  32. package/dist/RadioButton.js +1 -1
  33. package/dist/RangeSlider.js +6 -1
  34. package/dist/RatingIndicator.js +2 -2
  35. package/dist/ResponsivePopover.js +14 -10
  36. package/dist/SegmentedButton.js +2 -2
  37. package/dist/SegmentedButtonItem.js +7 -2
  38. package/dist/Select.js +9 -5
  39. package/dist/Slider.js +5 -0
  40. package/dist/SliderBase.js +4 -3
  41. package/dist/SplitButton.js +11 -5
  42. package/dist/StepInput.js +4 -4
  43. package/dist/Switch.js +13 -1
  44. package/dist/TabContainer.js +44 -3
  45. package/dist/Table.js +243 -4
  46. package/dist/TableColumn.js +0 -7
  47. package/dist/TableGroupRow.js +4 -0
  48. package/dist/TableRow.js +87 -8
  49. package/dist/TextArea.js +9 -4
  50. package/dist/Tokenizer.js +35 -6
  51. package/dist/Tree.js +5 -1
  52. package/dist/TreeItem.js +2 -2
  53. package/dist/TreeListItem.js +5 -2
  54. package/dist/api.json +129 -68
  55. package/dist/css/themes/Avatar.css +1 -1
  56. package/dist/css/themes/Button.css +1 -1
  57. package/dist/css/themes/Calendar.css +1 -1
  58. package/dist/css/themes/ColorPalettePopover.css +1 -1
  59. package/dist/css/themes/ComboBox.css +1 -1
  60. package/dist/css/themes/DatePickerPopover.css +1 -1
  61. package/dist/css/themes/Dialog.css +1 -1
  62. package/dist/css/themes/Input.css +1 -1
  63. package/dist/css/themes/ListItemBase.css +1 -1
  64. package/dist/css/themes/MultiComboBox.css +1 -1
  65. package/dist/css/themes/PopupGlobal.css +1 -1
  66. package/dist/css/themes/PopupsCommon.css +1 -1
  67. package/dist/css/themes/ResponsivePopover.css +1 -1
  68. package/dist/css/themes/SelectPopover.css +1 -1
  69. package/dist/css/themes/SplitButton.css +1 -1
  70. package/dist/css/themes/Suggestions.css +1 -1
  71. package/dist/css/themes/TabInOverflow.css +1 -1
  72. package/dist/css/themes/TableRow.css +1 -1
  73. package/dist/css/themes/TimePickerPopover.css +1 -1
  74. package/dist/css/themes/TokenizerPopover.css +1 -0
  75. package/dist/css/themes/ValueStateMessage.css +1 -1
  76. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  77. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  78. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  79. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  80. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  81. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  82. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  83. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  84. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  85. package/dist/features/InputSuggestions.js +4 -0
  86. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  87. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  88. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  89. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  90. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  91. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  92. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  93. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  94. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  95. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  96. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  97. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  98. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  99. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  100. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  101. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  102. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  103. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  104. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  105. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  106. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  107. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  108. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  109. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  110. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  111. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  112. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  113. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  114. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  115. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  116. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  117. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  118. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  119. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  120. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  121. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  122. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  123. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  124. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  125. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  126. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  127. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  128. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  129. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  130. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  131. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  132. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  133. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  134. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  135. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  136. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  137. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  138. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  139. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  140. package/dist/generated/i18n/i18n-defaults.js +2 -2
  141. package/dist/generated/templates/AvatarGroupTemplate.lit.js +1 -1
  142. package/dist/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -1
  143. package/dist/generated/templates/BreadcrumbsTemplate.lit.js +1 -1
  144. package/dist/generated/templates/ButtonTemplate.lit.js +1 -1
  145. package/dist/generated/templates/CalendarTemplate.lit.js +1 -1
  146. package/dist/generated/templates/CarouselTemplate.lit.js +3 -3
  147. package/dist/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -1
  148. package/dist/generated/templates/ColorPickerTemplate.lit.js +1 -1
  149. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
  150. package/dist/generated/templates/CustomListItemTemplate.lit.js +2 -2
  151. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js +1 -1
  152. package/dist/generated/templates/DatePickerTemplate.lit.js +1 -1
  153. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -1
  154. package/dist/generated/templates/DialogTemplate.lit.js +3 -3
  155. package/dist/generated/templates/FileUploaderPopoverTemplate.lit.js +5 -4
  156. package/dist/generated/templates/InputPopoverTemplate.lit.js +2 -2
  157. package/dist/generated/templates/InputTemplate.lit.js +6 -5
  158. package/dist/generated/templates/ListItemTemplate.lit.js +2 -2
  159. package/dist/generated/templates/ListTemplate.lit.js +1 -1
  160. package/dist/generated/templates/MessageStripTemplate.lit.js +1 -1
  161. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -1
  162. package/dist/generated/templates/MultiInputTemplate.lit.js +7 -6
  163. package/dist/generated/templates/PanelTemplate.lit.js +2 -2
  164. package/dist/generated/templates/PopoverTemplate.lit.js +3 -3
  165. package/dist/generated/templates/PopupTemplate.lit.js +1 -1
  166. package/dist/generated/templates/RatingIndicatorTemplate.lit.js +1 -1
  167. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +5 -5
  168. package/dist/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -1
  169. package/dist/generated/templates/SelectPopoverTemplate.lit.js +1 -1
  170. package/dist/generated/templates/StandardListItemTemplate.lit.js +2 -2
  171. package/dist/generated/templates/StepInputTemplate.lit.js +1 -1
  172. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +2 -2
  173. package/dist/generated/templates/SwitchTemplate.lit.js +1 -1
  174. package/dist/generated/templates/TabContainerPopoverTemplate.lit.js +1 -1
  175. package/dist/generated/templates/TabContainerTemplate.lit.js +4 -4
  176. package/dist/generated/templates/TableGroupRowTemplate.lit.js +1 -1
  177. package/dist/generated/templates/TableRowTemplate.lit.js +2 -2
  178. package/dist/generated/templates/TableTemplate.lit.js +3 -3
  179. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js +1 -1
  180. package/dist/generated/templates/TextAreaTemplate.lit.js +1 -1
  181. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js +1 -1
  182. package/dist/generated/templates/ToggleButtonTemplate.lit.js +1 -1
  183. package/dist/generated/templates/TokenizerTemplate.lit.js +1 -1
  184. package/dist/generated/templates/TreeListItemTemplate.lit.js +2 -2
  185. package/dist/generated/themes/Avatar.css.js +1 -1
  186. package/dist/generated/themes/Button.css.js +1 -1
  187. package/dist/generated/themes/Calendar.css.js +1 -1
  188. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  189. package/dist/generated/themes/ComboBox.css.js +1 -1
  190. package/dist/generated/themes/DatePickerPopover.css.js +1 -1
  191. package/dist/generated/themes/Dialog.css.js +1 -1
  192. package/dist/generated/themes/Input.css.js +1 -1
  193. package/dist/generated/themes/ListItemBase.css.js +1 -1
  194. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  195. package/dist/generated/themes/PopupGlobal.css.js +1 -1
  196. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  197. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  198. package/dist/generated/themes/SelectPopover.css.js +1 -1
  199. package/dist/generated/themes/SplitButton.css.js +1 -1
  200. package/dist/generated/themes/Suggestions.css.js +1 -1
  201. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  202. package/dist/generated/themes/TableRow.css.js +1 -1
  203. package/dist/generated/themes/TimePickerPopover.css.js +1 -1
  204. package/dist/generated/themes/TokenizerPopover.css.js +8 -0
  205. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  206. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  207. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  208. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  209. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  210. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  211. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  212. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  213. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  214. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  215. package/dist/i18n/messagebundle.properties +3 -0
  216. package/dist/i18n/messagebundle_ar.properties +5 -0
  217. package/dist/i18n/messagebundle_bg.properties +5 -0
  218. package/dist/i18n/messagebundle_ca.properties +5 -0
  219. package/dist/i18n/messagebundle_cs.properties +5 -0
  220. package/dist/i18n/messagebundle_cy.properties +5 -0
  221. package/dist/i18n/messagebundle_da.properties +5 -0
  222. package/dist/i18n/messagebundle_de.properties +5 -0
  223. package/dist/i18n/messagebundle_el.properties +5 -0
  224. package/dist/i18n/messagebundle_en.properties +5 -0
  225. package/dist/i18n/messagebundle_en_GB.properties +5 -0
  226. package/dist/i18n/messagebundle_en_US_saprigi.properties +2 -0
  227. package/dist/i18n/messagebundle_es.properties +5 -0
  228. package/dist/i18n/messagebundle_es_MX.properties +5 -0
  229. package/dist/i18n/messagebundle_et.properties +5 -0
  230. package/dist/i18n/messagebundle_fi.properties +5 -0
  231. package/dist/i18n/messagebundle_fr.properties +5 -0
  232. package/dist/i18n/messagebundle_fr_CA.properties +5 -0
  233. package/dist/i18n/messagebundle_hi.properties +5 -0
  234. package/dist/i18n/messagebundle_hr.properties +5 -0
  235. package/dist/i18n/messagebundle_hu.properties +5 -0
  236. package/dist/i18n/messagebundle_id.properties +5 -0
  237. package/dist/i18n/messagebundle_it.properties +5 -0
  238. package/dist/i18n/messagebundle_iw.properties +5 -0
  239. package/dist/i18n/messagebundle_ja.properties +7 -2
  240. package/dist/i18n/messagebundle_kk.properties +5 -0
  241. package/dist/i18n/messagebundle_ko.properties +5 -0
  242. package/dist/i18n/messagebundle_lt.properties +5 -0
  243. package/dist/i18n/messagebundle_lv.properties +5 -0
  244. package/dist/i18n/messagebundle_ms.properties +5 -0
  245. package/dist/i18n/messagebundle_nl.properties +5 -0
  246. package/dist/i18n/messagebundle_no.properties +5 -0
  247. package/dist/i18n/messagebundle_pl.properties +5 -0
  248. package/dist/i18n/messagebundle_pt.properties +5 -0
  249. package/dist/i18n/messagebundle_pt_PT.properties +5 -0
  250. package/dist/i18n/messagebundle_ro.properties +5 -0
  251. package/dist/i18n/messagebundle_ru.properties +5 -0
  252. package/dist/i18n/messagebundle_sh.properties +5 -0
  253. package/dist/i18n/messagebundle_sk.properties +5 -0
  254. package/dist/i18n/messagebundle_sl.properties +5 -0
  255. package/dist/i18n/messagebundle_sv.properties +5 -0
  256. package/dist/i18n/messagebundle_th.properties +5 -0
  257. package/dist/i18n/messagebundle_tr.properties +5 -0
  258. package/dist/i18n/messagebundle_uk.properties +5 -0
  259. package/dist/i18n/messagebundle_vi.properties +5 -0
  260. package/dist/i18n/messagebundle_zh_CN.properties +5 -0
  261. package/dist/i18n/messagebundle_zh_TW.properties +5 -0
  262. package/package.json +11 -9
  263. package/src/Avatar.js +1 -1
  264. package/src/AvatarGroup.hbs +1 -1
  265. package/src/AvatarGroup.js +2 -2
  266. package/src/Breadcrumbs.hbs +2 -2
  267. package/src/Breadcrumbs.js +11 -4
  268. package/src/BreadcrumbsPopover.hbs +0 -1
  269. package/src/BusyIndicator.js +1 -1
  270. package/src/Button.hbs +4 -4
  271. package/src/Button.js +42 -28
  272. package/src/Calendar.hbs +1 -1
  273. package/src/Calendar.js +1 -1
  274. package/src/Card.js +2 -2
  275. package/src/Carousel.hbs +2 -2
  276. package/src/CheckBox.js +3 -3
  277. package/src/ColorPalette.js +1 -1
  278. package/src/ColorPaletteItem.js +2 -2
  279. package/src/ColorPalettePopover.hbs +1 -1
  280. package/src/ColorPalettePopover.js +3 -3
  281. package/src/ColorPicker.hbs +1 -0
  282. package/src/ColorPicker.js +42 -4
  283. package/src/ComboBox.js +10 -4
  284. package/src/ComboBoxPopover.hbs +0 -1
  285. package/src/DatePicker.hbs +1 -1
  286. package/src/DatePicker.js +10 -8
  287. package/src/DatePickerPopover.hbs +0 -2
  288. package/src/DateRangePicker.js +7 -1
  289. package/src/Dialog.hbs +3 -2
  290. package/src/Dialog.js +35 -5
  291. package/src/FileUploader.js +2 -1
  292. package/src/FileUploaderPopover.hbs +3 -2
  293. package/src/Input.hbs +5 -1
  294. package/src/Input.js +87 -19
  295. package/src/InputPopover.hbs +3 -4
  296. package/src/Interfaces.js +1 -1
  297. package/src/Label.js +7 -1
  298. package/src/Link.js +16 -5
  299. package/src/List.hbs +1 -1
  300. package/src/List.js +6 -16
  301. package/src/ListItem.hbs +1 -1
  302. package/src/ListItem.js +1 -1
  303. package/src/MessageStrip.hbs +1 -1
  304. package/src/MessageStrip.js +0 -8
  305. package/src/MultiComboBox.js +166 -27
  306. package/src/MultiComboBoxPopover.hbs +0 -1
  307. package/src/Panel.hbs +4 -3
  308. package/src/Panel.js +7 -8
  309. package/src/Popover.hbs +2 -2
  310. package/src/Popover.js +39 -9
  311. package/src/Popup.hbs +1 -1
  312. package/src/Popup.js +61 -26
  313. package/src/ProgressIndicator.js +5 -0
  314. package/src/RadioButton.js +1 -1
  315. package/src/RangeSlider.js +6 -1
  316. package/src/RatingIndicator.hbs +2 -0
  317. package/src/RatingIndicator.js +2 -2
  318. package/src/ResponsivePopover.hbs +3 -3
  319. package/src/ResponsivePopover.js +14 -10
  320. package/src/SegmentedButton.js +2 -2
  321. package/src/SegmentedButtonItem.hbs +1 -1
  322. package/src/SegmentedButtonItem.js +7 -2
  323. package/src/Select.js +9 -5
  324. package/src/SelectPopover.hbs +0 -1
  325. package/src/Slider.js +5 -0
  326. package/src/SliderBase.js +4 -3
  327. package/src/SplitButton.js +11 -5
  328. package/src/StepInput.hbs +4 -3
  329. package/src/StepInput.js +4 -4
  330. package/src/Switch.hbs +1 -1
  331. package/src/Switch.js +13 -1
  332. package/src/TabContainer.hbs +3 -3
  333. package/src/TabContainer.js +44 -3
  334. package/src/TabContainerPopover.hbs +1 -1
  335. package/src/Table.hbs +11 -1
  336. package/src/Table.js +243 -4
  337. package/src/TableColumn.js +0 -7
  338. package/src/TableGroupRow.hbs +1 -0
  339. package/src/TableGroupRow.js +4 -0
  340. package/src/TableRow.hbs +2 -0
  341. package/src/TableRow.js +87 -8
  342. package/src/TextArea.hbs +1 -1
  343. package/src/TextArea.js +9 -4
  344. package/src/TextAreaPopover.hbs +0 -1
  345. package/src/TimePickerPopover.hbs +0 -1
  346. package/src/Tokenizer.hbs +2 -1
  347. package/src/Tokenizer.js +35 -6
  348. package/src/Tree.js +5 -1
  349. package/src/TreeItem.js +2 -2
  350. package/src/TreeListItem.js +5 -2
  351. package/src/features/InputSuggestions.js +4 -0
  352. package/src/i18n/messagebundle.properties +3 -0
  353. package/src/i18n/messagebundle_ar.properties +5 -0
  354. package/src/i18n/messagebundle_bg.properties +5 -0
  355. package/src/i18n/messagebundle_ca.properties +5 -0
  356. package/src/i18n/messagebundle_cs.properties +5 -0
  357. package/src/i18n/messagebundle_cy.properties +5 -0
  358. package/src/i18n/messagebundle_da.properties +5 -0
  359. package/src/i18n/messagebundle_de.properties +5 -0
  360. package/src/i18n/messagebundle_el.properties +5 -0
  361. package/src/i18n/messagebundle_en.properties +5 -0
  362. package/src/i18n/messagebundle_en_GB.properties +5 -0
  363. package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
  364. package/src/i18n/messagebundle_es.properties +5 -0
  365. package/src/i18n/messagebundle_es_MX.properties +5 -0
  366. package/src/i18n/messagebundle_et.properties +5 -0
  367. package/src/i18n/messagebundle_fi.properties +5 -0
  368. package/src/i18n/messagebundle_fr.properties +5 -0
  369. package/src/i18n/messagebundle_fr_CA.properties +5 -0
  370. package/src/i18n/messagebundle_hi.properties +5 -0
  371. package/src/i18n/messagebundle_hr.properties +5 -0
  372. package/src/i18n/messagebundle_hu.properties +5 -0
  373. package/src/i18n/messagebundle_id.properties +5 -0
  374. package/src/i18n/messagebundle_it.properties +5 -0
  375. package/src/i18n/messagebundle_iw.properties +5 -0
  376. package/src/i18n/messagebundle_ja.properties +7 -2
  377. package/src/i18n/messagebundle_kk.properties +5 -0
  378. package/src/i18n/messagebundle_ko.properties +5 -0
  379. package/src/i18n/messagebundle_lt.properties +5 -0
  380. package/src/i18n/messagebundle_lv.properties +5 -0
  381. package/src/i18n/messagebundle_ms.properties +5 -0
  382. package/src/i18n/messagebundle_nl.properties +5 -0
  383. package/src/i18n/messagebundle_no.properties +5 -0
  384. package/src/i18n/messagebundle_pl.properties +5 -0
  385. package/src/i18n/messagebundle_pt.properties +5 -0
  386. package/src/i18n/messagebundle_pt_PT.properties +5 -0
  387. package/src/i18n/messagebundle_ro.properties +5 -0
  388. package/src/i18n/messagebundle_ru.properties +5 -0
  389. package/src/i18n/messagebundle_sh.properties +5 -0
  390. package/src/i18n/messagebundle_sk.properties +5 -0
  391. package/src/i18n/messagebundle_sl.properties +5 -0
  392. package/src/i18n/messagebundle_sv.properties +5 -0
  393. package/src/i18n/messagebundle_th.properties +5 -0
  394. package/src/i18n/messagebundle_tr.properties +5 -0
  395. package/src/i18n/messagebundle_uk.properties +5 -0
  396. package/src/i18n/messagebundle_vi.properties +5 -0
  397. package/src/i18n/messagebundle_zh_CN.properties +5 -0
  398. package/src/i18n/messagebundle_zh_TW.properties +5 -0
  399. package/src/themes/Avatar.css +1 -0
  400. package/src/themes/Button.css +1 -1
  401. package/src/themes/Calendar.css +6 -1
  402. package/src/themes/ColorPalettePopover.css +6 -5
  403. package/src/themes/DatePickerPopover.css +4 -0
  404. package/src/themes/Dialog.css +1 -5
  405. package/src/themes/Input.css +1 -0
  406. package/src/themes/ListItemBase.css +11 -5
  407. package/src/themes/MultiComboBox.css +0 -1
  408. package/src/themes/Popover.css +1 -1
  409. package/src/themes/PopupGlobal.css +1 -4
  410. package/src/themes/PopupsCommon.css +44 -4
  411. package/src/themes/ResponsivePopover.css +2 -7
  412. package/src/themes/ResponsivePopoverCommon.css +1 -0
  413. package/src/themes/SelectPopover.css +11 -2
  414. package/src/themes/SplitButton.css +1 -1
  415. package/src/themes/Suggestions.css +15 -1
  416. package/src/themes/TabInOverflow.css +5 -1
  417. package/src/themes/TableRow.css +1 -0
  418. package/src/themes/TimePickerPopover.css +4 -0
  419. package/src/themes/Tokenizer.css +1 -0
  420. package/src/themes/TokenizerPopover.css +4 -0
  421. package/src/themes/ValueStateMessage.css +10 -0
  422. package/src/themes/base/Badge-parameters.css +10 -10
  423. package/src/themes/base/DayPicker-parameters.css +2 -2
  424. package/src/themes/base/Dialog-parameters.css +1 -1
  425. package/src/themes/base/ListItemBase-parameters.css +1 -0
  426. package/src/themes/base/PopupsCommon-parameters.css +6 -1
  427. package/src/themes/base/SliderBase-parameters.css +7 -0
  428. package/src/themes/base/Switch-parameters.css +2 -13
  429. package/src/themes/base/sizes-parameters.css +7 -7
  430. package/src/themes/sap_belize_hcb/Switch-parameters.css +2 -4
  431. package/src/themes/sap_belize_hcw/Switch-parameters.css +2 -4
  432. package/src/themes/sap_fiori_3_hcb/DayPicker-parameters.css +0 -2
  433. package/src/themes/sap_fiori_3_hcb/Switch-parameters.css +2 -4
  434. package/src/themes/sap_fiori_3_hcw/DayPicker-parameters.css +0 -2
  435. package/src/themes/sap_fiori_3_hcw/Switch-parameters.css +2 -4
  436. package/src/themes/sap_horizon/Dialog-parameters.css +1 -1
  437. package/src/themes/sap_horizon/ListItemBase-parameters.css +1 -2
  438. package/src/themes/sap_horizon/PopupsCommon-parameters.css +0 -1
  439. package/src/themes/sap_horizon/Switch-parameters.css +7 -7
  440. package/src/themes/sap_horizon_exp/Switch-parameters.css +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,72 @@
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.2.0](https://github.com/SAP/ui5-webcomponents/compare/v1.1.2...v1.2.0) (2022-02-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * correct scoping issues with several components ([#4820](https://github.com/SAP/ui5-webcomponents/issues/4820)) ([621dc20](https://github.com/SAP/ui5-webcomponents/commit/621dc20))
12
+ * **inputs:** import used icons ([#4712](https://github.com/SAP/ui5-webcomponents/issues/4712)) ([2041ff3](https://github.com/SAP/ui5-webcomponents/commit/2041ff3))
13
+ * **popovers:** correct list items height of input dropdowns ([#4650](https://github.com/SAP/ui5-webcomponents/issues/4650)) ([11f8ada](https://github.com/SAP/ui5-webcomponents/commit/11f8ada)), closes [#4616](https://github.com/SAP/ui5-webcomponents/issues/4616)
14
+ * **templates:** replace HTML comments with HBS ones ([#4681](https://github.com/SAP/ui5-webcomponents/issues/4681)) ([ddc38eb](https://github.com/SAP/ui5-webcomponents/commit/ddc38eb)), closes [/github.com/SAP/ui5-webcomponents/blob/master/packages/tools/lib/hbs2lit/src/partialsVisitor.js#L95](https://github.com//github.com/SAP/ui5-webcomponents/blob/master/packages/tools/lib/hbs2lit/src/partialsVisitor.js/issues/L95)
15
+ * **ui5-badge:** update color-scheme parameters ([#4678](https://github.com/SAP/ui5-webcomponents/issues/4678)) ([c7d75ef](https://github.com/SAP/ui5-webcomponents/commit/c7d75ef)), closes [#3940](https://github.com/SAP/ui5-webcomponents/issues/3940)
16
+ * **ui5-button:** remove focus on phone and tablet ([#4746](https://github.com/SAP/ui5-webcomponents/issues/4746)) ([31915d7](https://github.com/SAP/ui5-webcomponents/commit/31915d7))
17
+ * **ui5-calendar:** adjust picker styles ([#4672](https://github.com/SAP/ui5-webcomponents/issues/4672)) ([3afe7a8](https://github.com/SAP/ui5-webcomponents/commit/3afe7a8))
18
+ * **ui5-color-palette-popover:** showDefaultColor works ([#4802](https://github.com/SAP/ui5-webcomponents/issues/4802)) ([f93f22f](https://github.com/SAP/ui5-webcomponents/commit/f93f22f))
19
+ * **ui5-color-palette-popover:** update documentation ([#4778](https://github.com/SAP/ui5-webcomponents/issues/4778)) ([34f629e](https://github.com/SAP/ui5-webcomponents/commit/34f629e))
20
+ * **ui5-color-picker:** adjust hue value update when user presses over the main color section ([#4601](https://github.com/SAP/ui5-webcomponents/issues/4601)) ([4b03374](https://github.com/SAP/ui5-webcomponents/commit/4b03374)), closes [#4540](https://github.com/SAP/ui5-webcomponents/issues/4540)
21
+ * **ui5-color-picker:** enable hex value input change on enter ([#4621](https://github.com/SAP/ui5-webcomponents/issues/4621)) ([cf45552](https://github.com/SAP/ui5-webcomponents/commit/cf45552)), closes [#4541](https://github.com/SAP/ui5-webcomponents/issues/4541)
22
+ * **ui5-combobox:** prevent dropdown closing on scroll ([#4773](https://github.com/SAP/ui5-webcomponents/issues/4773)) ([199e860](https://github.com/SAP/ui5-webcomponents/commit/199e860))
23
+ * **ui5-date-picker:** remove combobox role ([#4706](https://github.com/SAP/ui5-webcomponents/issues/4706)) ([2d457c9](https://github.com/SAP/ui5-webcomponents/commit/2d457c9))
24
+ * **ui5-daterange-picker:** change delimiter dynamically ([#4693](https://github.com/SAP/ui5-webcomponents/issues/4693)) ([ec02855](https://github.com/SAP/ui5-webcomponents/commit/ec02855)), closes [#2925](https://github.com/SAP/ui5-webcomponents/issues/2925)
25
+ * **ui5-file-uploader:** fixing the console warning ([#4605](https://github.com/SAP/ui5-webcomponents/issues/4605)) ([197f3f9](https://github.com/SAP/ui5-webcomponents/commit/197f3f9)), closes [#4592](https://github.com/SAP/ui5-webcomponents/issues/4592)
26
+ * **ui5-input:** aria-invalid is now properly rendered ([#4734](https://github.com/SAP/ui5-webcomponents/issues/4734)) ([81a00d7](https://github.com/SAP/ui5-webcomponents/commit/81a00d7)), closes [#4723](https://github.com/SAP/ui5-webcomponents/issues/4723)
27
+ * **ui5-input:** delete whole value of ui5-input with type number when… ([#4760](https://github.com/SAP/ui5-webcomponents/issues/4760)) ([0aa9979](https://github.com/SAP/ui5-webcomponents/commit/0aa9979))
28
+ * **ui5-input:** improve lazy loading behaviour ([#4763](https://github.com/SAP/ui5-webcomponents/issues/4763)) ([35342be](https://github.com/SAP/ui5-webcomponents/commit/35342be))
29
+ * **ui5-label:** allow focusing elements linked with for attribute inside a shadow root ([#4754](https://github.com/SAP/ui5-webcomponents/issues/4754)) ([bd7a8a1](https://github.com/SAP/ui5-webcomponents/commit/bd7a8a1)), closes [#4751](https://github.com/SAP/ui5-webcomponents/issues/4751)
30
+ * **ui5-li-tree:** correct usage of i18nBudnle ([#4668](https://github.com/SAP/ui5-webcomponents/issues/4668)) ([67848d7](https://github.com/SAP/ui5-webcomponents/commit/67848d7))
31
+ * **ui5-list:** fix separators in SAP Horizon ([#4805](https://github.com/SAP/ui5-webcomponents/issues/4805)) ([6a814b3](https://github.com/SAP/ui5-webcomponents/commit/6a814b3))
32
+ * **ui5-list:** initial focus target ([#4809](https://github.com/SAP/ui5-webcomponents/issues/4809)) ([cf6dd1a](https://github.com/SAP/ui5-webcomponents/commit/cf6dd1a))
33
+ * **ui5-multi-combobox:** add value selection on focus ([#4804](https://github.com/SAP/ui5-webcomponents/issues/4804)) ([08ea794](https://github.com/SAP/ui5-webcomponents/commit/08ea794))
34
+ * **ui5-popup:** body styles are no longer modified ([#4813](https://github.com/SAP/ui5-webcomponents/issues/4813)) ([1754496](https://github.com/SAP/ui5-webcomponents/commit/1754496)), closes [#4347](https://github.com/SAP/ui5-webcomponents/issues/4347)
35
+ * **ui5-popup:** Usage of parts in Dialog, Popover, ResponsivePopover and TabContainer documented ([#4747](https://github.com/SAP/ui5-webcomponents/issues/4747)) ([f93909c](https://github.com/SAP/ui5-webcomponents/commit/f93909c)), closes [#4402](https://github.com/SAP/ui5-webcomponents/issues/4402)
36
+ * **ui5-select:** incorrect popover styles when value state is used ([#4651](https://github.com/SAP/ui5-webcomponents/issues/4651)) ([2d8ce46](https://github.com/SAP/ui5-webcomponents/commit/2d8ce46))
37
+ * **ui5-slider:** prevent handle's jumping on focus ([#4752](https://github.com/SAP/ui5-webcomponents/issues/4752)) ([dc2de5b](https://github.com/SAP/ui5-webcomponents/commit/dc2de5b))
38
+ * **ui5-slider:** sets correct color to tickmarks based on theme ([#4677](https://github.com/SAP/ui5-webcomponents/issues/4677)) ([4aecd48](https://github.com/SAP/ui5-webcomponents/commit/4aecd48))
39
+ * **ui5-switch:** adjust focus outline ([#4665](https://github.com/SAP/ui5-webcomponents/issues/4665)) ([0cb6580](https://github.com/SAP/ui5-webcomponents/commit/0cb6580)), closes [#2925](https://github.com/SAP/ui5-webcomponents/issues/2925)
40
+ * **ui5-switch:** role checkbox is changed to role switch ([#4658](https://github.com/SAP/ui5-webcomponents/issues/4658)) ([ec6ca80](https://github.com/SAP/ui5-webcomponents/commit/ec6ca80)), closes [#4633](https://github.com/SAP/ui5-webcomponents/issues/4633)
41
+ * **ui5-tabcontainer:** await for renderFinished in resize handler ([#4675](https://github.com/SAP/ui5-webcomponents/issues/4675)) ([cd8dc26](https://github.com/SAP/ui5-webcomponents/commit/cd8dc26)), closes [#4628](https://github.com/SAP/ui5-webcomponents/issues/4628)
42
+ * **ui5-tabcontainer:** fix overflow button runtime error ([#4780](https://github.com/SAP/ui5-webcomponents/issues/4780)) ([08d75fa](https://github.com/SAP/ui5-webcomponents/commit/08d75fa)), closes [#4770](https://github.com/SAP/ui5-webcomponents/issues/4770)
43
+ * **ui5-tabcontainer:** replace hardcoded text ([#4815](https://github.com/SAP/ui5-webcomponents/issues/4815)) ([439033c](https://github.com/SAP/ui5-webcomponents/commit/439033c)), closes [#4810](https://github.com/SAP/ui5-webcomponents/issues/4810)
44
+ * describe all dependencies for some components ([#4807](https://github.com/SAP/ui5-webcomponents/issues/4807)) ([1cf148f](https://github.com/SAP/ui5-webcomponents/commit/1cf148f))
45
+ * **ui5-table-row:** align checkbox vertically ([#4696](https://github.com/SAP/ui5-webcomponents/issues/4696)) ([62ae8dc](https://github.com/SAP/ui5-webcomponents/commit/62ae8dc))
46
+ * **ui5-textarea:** enhance aria-invalid attribute handling ([#4767](https://github.com/SAP/ui5-webcomponents/issues/4767)) ([f2fd6fb](https://github.com/SAP/ui5-webcomponents/commit/f2fd6fb))
47
+ * scoped bundles ([#4745](https://github.com/SAP/ui5-webcomponents/issues/4745)) ([2cd4c7e](https://github.com/SAP/ui5-webcomponents/commit/2cd4c7e))
48
+ * **ui5-switch:** adjust focus outline ([#4717](https://github.com/SAP/ui5-webcomponents/issues/4717)) ([9d9d6c8](https://github.com/SAP/ui5-webcomponents/commit/9d9d6c8))
49
+
50
+
51
+ ### Features
52
+
53
+ * add and update icons from 4.13 and 5.01 icon fonts ([#4790](https://github.com/SAP/ui5-webcomponents/issues/4790)) ([a9e88f0](https://github.com/SAP/ui5-webcomponents/commit/a9e88f0))
54
+ * **popups:** Implement declarative API for open/close ([#4653](https://github.com/SAP/ui5-webcomponents/issues/4653)) ([af70586](https://github.com/SAP/ui5-webcomponents/commit/af70586)), closes [#3527](https://github.com/SAP/ui5-webcomponents/issues/3527)
55
+ * **ui5-breadcrumbs:** allow preventDefault in item-click event listener ([#4589](https://github.com/SAP/ui5-webcomponents/issues/4589)) ([ccb4c83](https://github.com/SAP/ui5-webcomponents/commit/ccb4c83))
56
+ * **ui5-button:** add new `tooltip` property ([#4737](https://github.com/SAP/ui5-webcomponents/issues/4737)) ([df8f013](https://github.com/SAP/ui5-webcomponents/commit/df8f013)), closes [#4689](https://github.com/SAP/ui5-webcomponents/issues/4689)
57
+ * **ui5-button:** implement accessibilityAttributes property ([#4655](https://github.com/SAP/ui5-webcomponents/issues/4655)) ([d27c4b5](https://github.com/SAP/ui5-webcomponents/commit/d27c4b5)), closes [#3546](https://github.com/SAP/ui5-webcomponents/issues/3546)
58
+ * **ui5-input:** implement showClearIcon property ([#4641](https://github.com/SAP/ui5-webcomponents/issues/4641)) ([b1c1620](https://github.com/SAP/ui5-webcomponents/commit/b1c1620))
59
+ * **ui5-link:** provide accessible-name support ([#4711](https://github.com/SAP/ui5-webcomponents/issues/4711)) ([6597afa](https://github.com/SAP/ui5-webcomponents/commit/6597afa)), closes [#4498](https://github.com/SAP/ui5-webcomponents/issues/4498)
60
+ * **ui5-popup:** аdd default responsive paddings ([#4567](https://github.com/SAP/ui5-webcomponents/issues/4567)) ([ddc1e39](https://github.com/SAP/ui5-webcomponents/commit/ddc1e39)), closes [#4402](https://github.com/SAP/ui5-webcomponents/issues/4402)
61
+ * **ui5-rating-indicator:** Accessibility enhancements ([#4736](https://github.com/SAP/ui5-webcomponents/issues/4736)) ([f8dc9f0](https://github.com/SAP/ui5-webcomponents/commit/f8dc9f0))
62
+ * **ui5-switch:** provide accessible-name attribute support ([#4735](https://github.com/SAP/ui5-webcomponents/issues/4735)) ([ee6819f](https://github.com/SAP/ui5-webcomponents/commit/ee6819f)), closes [#4147](https://github.com/SAP/ui5-webcomponents/issues/4147)
63
+ * **ui5-table:** extend keyboard handling ([#4550](https://github.com/SAP/ui5-webcomponents/issues/4550)) ([8daa764](https://github.com/SAP/ui5-webcomponents/commit/8daa764)), closes [#3090](https://github.com/SAP/ui5-webcomponents/issues/3090)
64
+ * **ui5-table:** improve keyboard handling ([#4631](https://github.com/SAP/ui5-webcomponents/issues/4631)) ([f1f2b1b](https://github.com/SAP/ui5-webcomponents/commit/f1f2b1b))
65
+ * **ui5-tokenizer:** Implement token range deletion ([#4750](https://github.com/SAP/ui5-webcomponents/issues/4750)) ([cece8d7](https://github.com/SAP/ui5-webcomponents/commit/cece8d7))
66
+ * **ui5-tree:** make `item-click` event preventable ([#4708](https://github.com/SAP/ui5-webcomponents/issues/4708)) ([29967f0](https://github.com/SAP/ui5-webcomponents/commit/29967f0)), closes [#4502](https://github.com/SAP/ui5-webcomponents/issues/4502)
67
+
68
+
69
+
70
+
71
+
6
72
  ## [1.1.2](https://github.com/SAP/ui5-webcomponents/compare/v1.1.1...v1.1.2) (2022-01-26)
7
73
 
8
74
 
package/README.md CHANGED
@@ -61,6 +61,7 @@ Provides general purpose UI building blocks such as buttons, labels, inputs and
61
61
  | Select | `ui5-select` | `import "@ui5/webcomponents/dist/Select.js";` |
62
62
  | Select Option | `ui5-option` | comes with `ui5-select ` |
63
63
  | Slider | `ui5-slider` | `import "@ui5/webcomponents/dist/Slider.js";` |
64
+ | Split Button | `ui5-split-button` | `import "@ui5/webcomponents/dist/SplitButton.js";` |
64
65
  | Step Input | `ui5-step-input` | `import "@ui5/webcomponents/dist/StepInput.js";` |
65
66
  | Suggestion Item | `ui5-suggestion-item` | comes with `InputSuggestions.js` feature - see below |
66
67
  | Switch | `ui5-switch` | `import "@ui5/webcomponents/dist/Switch.js";` |
package/dist/Avatar.js CHANGED
@@ -200,7 +200,7 @@ const metadata = {
200
200
  * } <br />
201
201
  * </code>
202
202
  * @type {HTMLElement}
203
- * @slot
203
+ * @slot image
204
204
  * @public
205
205
  * @since 1.0.0-rc.15
206
206
  */
@@ -329,9 +329,9 @@ class AvatarGroup extends UI5Element {
329
329
  return this._isGroup ? this._getAriaHasPopup() : undefined;
330
330
  }
331
331
 
332
- get _overflowButtonAccInfo() {
332
+ get _overflowButtonAccAttributes() {
333
333
  return {
334
- ariaHaspopup: this._isGroup ? undefined : this._getAriaHasPopup(),
334
+ hasPopup: this._isGroup ? undefined : this._getAriaHasPopup(),
335
335
  };
336
336
  }
337
337
 
@@ -24,6 +24,7 @@ import ResponsivePopover from "./ResponsivePopover.js";
24
24
  import List from "./List.js";
25
25
  import StandardListItem from "./StandardListItem.js";
26
26
  import Icon from "./Icon.js";
27
+ import Button from "./Button.js";
27
28
 
28
29
  // Templates
29
30
  import BreadcrumbsTemplate from "./generated/templates/BreadcrumbsTemplate.lit.js";
@@ -117,8 +118,10 @@ const metadata = {
117
118
 
118
119
  /**
119
120
  * Fires when a <code>BreadcrumbsItem</code> is clicked.
121
+ * <b>Note:</b> You can prevent browser location change by calling <code>event.preventDefault()</code>.
120
122
  *
121
123
  * @event sap.ui.webcomponents.main.Breadcrumbs#item-click
124
+ * @allowPreventDefault
122
125
  * @param {HTMLElement} item The clicked item.
123
126
  * @public
124
127
  */
@@ -387,7 +390,9 @@ class Breadcrumbs extends UI5Element {
387
390
  const link = event.target,
388
391
  items = this.getSlottedNodes("items"),
389
392
  item = items.find(x => `${x._id}-link` === link.id);
390
- this.fireEvent("item-click", { item });
393
+ if (!this.fireEvent("item-click", { item }, true)) {
394
+ event.preventDefault();
395
+ }
391
396
  }
392
397
 
393
398
  _onLabelPress() {
@@ -401,9 +406,10 @@ class Breadcrumbs extends UI5Element {
401
406
  items = this.getSlottedNodes("items"),
402
407
  item = items.find(x => `${x._id}-li` === listItem.id);
403
408
 
404
- window.open(item.href, item.target || "_self", "noopener,noreferrer");
405
- this.responsivePopover.close();
406
- this.fireEvent("item-click", { item });
409
+ if (this.fireEvent("item-click", { item }, true)) {
410
+ window.open(item.href, item.target || "_self", "noopener,noreferrer");
411
+ this.responsivePopover.close();
412
+ }
407
413
  }
408
414
 
409
415
  async _respPopover() {
@@ -562,6 +568,7 @@ class Breadcrumbs extends UI5Element {
562
568
  List,
563
569
  StandardListItem,
564
570
  Icon,
571
+ Button,
565
572
  ];
566
573
  }
567
574
 
@@ -39,7 +39,7 @@ const metadata = {
39
39
 
40
40
  /**
41
41
  * Defines text to be displayed below the component. It can be used to inform the user of the current operation.
42
- * @type {String}
42
+ * @type {string}
43
43
  * @public
44
44
  * @defaultvalue ""
45
45
  * @since 1.0.0-rc.7
package/dist/Button.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  isPhone,
10
10
  isTablet,
11
11
  isCombi,
12
+ isDesktop,
12
13
  isSafari,
13
14
  } from "@ui5/webcomponents-base/dist/Device.js";
14
15
  import ButtonDesign from "./types/ButtonDesign.js";
@@ -117,10 +118,10 @@ const metadata = {
117
118
  * <b>Note:</b> Tooltips should only be set to icon-only buttons.
118
119
  * @type {string}
119
120
  * @defaultvalue: ""
120
- * @private
121
- * @since 1.0.0-rc.11
121
+ * @public
122
+ * @since 1.2.0
122
123
  */
123
- title: {
124
+ tooltip: {
124
125
  type: String,
125
126
  },
126
127
 
@@ -157,9 +158,9 @@ const metadata = {
157
158
  },
158
159
 
159
160
  /**
160
- * Sets the accessible aria name of the component.
161
+ * Defines the accessible aria name of the component.
161
162
  *
162
- * @type {String}
163
+ * @type {string}
163
164
  * @defaultvalue: ""
164
165
  * @public
165
166
  * @since 1.0.0-rc.15
@@ -172,7 +173,7 @@ const metadata = {
172
173
  /**
173
174
  * Receives id(or many ids) of the elements that label the component.
174
175
  *
175
- * @type {String}
176
+ * @type {string}
176
177
  * @defaultvalue ""
177
178
  * @public
178
179
  * @since 1.1.0
@@ -183,13 +184,35 @@ const metadata = {
183
184
  },
184
185
 
185
186
  /**
186
- * @type {String}
187
- * @defaultvalue ""
188
- * @private
189
- * @since 1.0.0-rc.8
187
+ * An object of strings that defines several additional accessibility attribute values
188
+ * for customization depending on the use case.
189
+ *
190
+ * It supports the following fields:
191
+ *
192
+ * <ul>
193
+ * <li><code>expanded</code>: Indicates whether the button, or another grouping element it controls, is currently expanded or collapsed. Accepts the following string values:
194
+ * <ul>
195
+ * <li><code>true</code></li>
196
+ * <li><code>false</code></li>
197
+ * </ul>
198
+ * </li>
199
+ * <li><code>hasPopup</code>: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button. Accepts the following string values:
200
+ * <ul>
201
+ * <li><code>Dialog</code></li>
202
+ * <li><code>Grid</code></li>
203
+ * <li><code>ListBox</code></li>
204
+ * <li><code>Menu</code></li>
205
+ * <li><code>Tree</code></li>
206
+ * </ul>
207
+ * </li>
208
+ * <li><code>controls</code>: Identifies the element (or elements) whose contents or presence are controlled by the button element. Accepts a string value.</li>
209
+ * </ul>
210
+ * @type {object}
211
+ * @public
212
+ * @since 1.2.0
190
213
  */
191
- ariaExpanded: {
192
- type: String,
214
+ accessibilityAttributes: {
215
+ type: Object,
193
216
  },
194
217
 
195
218
  /**
@@ -204,10 +227,6 @@ const metadata = {
204
227
  type: Object,
205
228
  },
206
229
 
207
- _buttonAccInfo: {
208
- type: Object,
209
- },
210
-
211
230
  /**
212
231
  * Defines the tabIndex of the component.
213
232
  * @private
@@ -418,7 +437,9 @@ class Button extends UI5Element {
418
437
  return;
419
438
  }
420
439
  this.active = false;
421
- this.focused = false;
440
+ if (isDesktop()) {
441
+ this.focused = false;
442
+ }
422
443
  }
423
444
 
424
445
  _onfocusin(event) {
@@ -427,7 +448,9 @@ class Button extends UI5Element {
427
448
  }
428
449
 
429
450
  event.isMarked = "button";
430
- this.focused = true;
451
+ if (isDesktop()) {
452
+ this.focused = true;
453
+ }
431
454
  }
432
455
 
433
456
  get hasButtonType() {
@@ -441,15 +464,6 @@ class Button extends UI5Element {
441
464
  }).length;
442
465
  }
443
466
 
444
- get accInfo() {
445
- return {
446
- "ariaExpanded": this.ariaExpanded || (this._buttonAccInfo && this._buttonAccInfo.ariaExpanded),
447
- "ariaControls": this._buttonAccInfo && this._buttonAccInfo.ariaControls,
448
- "ariaHaspopup": this._buttonAccInfo && this._buttonAccInfo.ariaHaspopup,
449
- "title": this.title || (this._buttonAccInfo && this._buttonAccInfo.title),
450
- };
451
- }
452
-
453
467
  static typeTextMappings() {
454
468
  return {
455
469
  "Positive": BUTTON_ARIA_TYPE_ACCEPT,
@@ -473,7 +487,7 @@ class Button extends UI5Element {
473
487
  }
474
488
 
475
489
  get showIconTooltip() {
476
- return this.iconOnly && !this.title;
490
+ return this.iconOnly && !this.tooltip;
477
491
  }
478
492
 
479
493
  get ariaLabelText() {
package/dist/Calendar.js CHANGED
@@ -277,7 +277,7 @@ class Calendar extends CalendarPart {
277
277
 
278
278
  // Create tags for the selected dates that don't already exist in DOM
279
279
  selectedValues.filter(value => !valuesInDOM.includes(value)).forEach(value => {
280
- const dateElement = document.createElement("ui5-date");
280
+ const dateElement = document.createElement(CalendarDateComponent.default.getMetadata().getTag());
281
281
  dateElement.value = value;
282
282
  this.appendChild(dateElement);
283
283
  });
package/dist/Card.js CHANGED
@@ -53,7 +53,7 @@ const metadata = {
53
53
  * <b>Note:</b> <code>accessibleName</code> should be always set, unless <code>accessibleNameRef</code> is set.
54
54
  *
55
55
  *
56
- * @type {String}
56
+ * @type {string}
57
57
  * @defaultvalue ""
58
58
  * @public
59
59
  * @since 1.0.0-rc.16
@@ -65,7 +65,7 @@ const metadata = {
65
65
  /**
66
66
  * Defines the IDs of the elements that label the component.
67
67
  *
68
- * @type {String}
68
+ * @type {string}
69
69
  * @defaultvalue ""
70
70
  * @public
71
71
  * @since 1.0.0-rc.16
package/dist/CheckBox.js CHANGED
@@ -35,7 +35,7 @@ const metadata = {
35
35
 
36
36
  /**
37
37
  * Receives id(or many ids) of the elements that label the component
38
- * @type {String}
38
+ * @type {string}
39
39
  * @defaultvalue ""
40
40
  * @public
41
41
  * @since 1.1.0
@@ -46,9 +46,9 @@ const metadata = {
46
46
  },
47
47
 
48
48
  /**
49
- * Sets the accessible aria name of the component.
49
+ * Defines the accessible aria name of the component.
50
50
  *
51
- * @type {String}
51
+ * @type {string}
52
52
  * @public
53
53
  * @defaultvalue ""
54
54
  * @since 1.1.0
@@ -116,7 +116,7 @@ const metadata = {
116
116
  * @event sap.ui.webcomponents.main.ColorPalette#item-click
117
117
  * @public
118
118
  * @since 1.0.0-rc.15
119
- * @param {String} color the selected color
119
+ * @param {string} color the selected color
120
120
  */
121
121
  "item-click": {
122
122
  details: {
@@ -43,7 +43,7 @@ const metadata = {
43
43
  /**
44
44
  * Defines the index of the item inside of the ColorPalette.
45
45
  * @private
46
- * @type {String}
46
+ * @type {string}
47
47
  */
48
48
  index: {
49
49
  type: String,
@@ -52,7 +52,7 @@ const metadata = {
52
52
  /**
53
53
  * Defines if the ColorPalette is on phone mode.
54
54
  * @private
55
- * @type {Boolean}
55
+ * @type {boolean}
56
56
  */
57
57
  phone: {
58
58
  type: Boolean,
@@ -68,8 +68,8 @@ const metadata = {
68
68
  slots: /** @lends sap.ui.webcomponents.main.ColorPalettePopover.prototype */ {
69
69
  /**
70
70
  * Defines the content of the component.
71
- * @type {HTMLElement[]}
72
- * @slot
71
+ * @type {sap.ui.webcomponents.main.IColorPaletteItem[]}
72
+ * @slot colors
73
73
  * @public
74
74
  */
75
75
  "default": {
@@ -84,7 +84,7 @@ const metadata = {
84
84
  *
85
85
  * @event sap.ui.webcomponents.main.ColorPalettePopover#item-click
86
86
  * @public
87
- * @param {String} color the selected color
87
+ * @param {string} color the selected color
88
88
  */
89
89
  "item-click": {
90
90
  details: {
@@ -1,4 +1,5 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
+ import { isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
2
3
  import CSSColor from "@ui5/webcomponents-base/dist/types/CSSColor.js";
3
4
  import { isIE } from "@ui5/webcomponents-base/dist/Device.js";
4
5
  import { renderFinished } from "@ui5/webcomponents-base/dist/Render.js";
@@ -41,7 +42,7 @@ const metadata = {
41
42
  /**
42
43
  * Defines the HEX code of the currently selected color
43
44
  * *Note*: If Alpha(transperancy) is set it is not included in this property. Use <code>color</code> property.
44
- * @type {String}
45
+ * @type {string}
45
46
  * @private
46
47
  */
47
48
  hex: {
@@ -52,7 +53,7 @@ const metadata = {
52
53
 
53
54
  /**
54
55
  * Defines the current main color which is selected via the hue slider and is shown in the main color square.
55
- * @type {String}
56
+ * @type {string}
56
57
  * @private
57
58
  */
58
59
  _mainColor: {
@@ -87,6 +88,20 @@ const metadata = {
87
88
  defaultValue: 0,
88
89
  },
89
90
 
91
+ /**
92
+ * @private
93
+ */
94
+ _isSelectedColorChanged: {
95
+ type: Boolean,
96
+ },
97
+
98
+ /**
99
+ * @private
100
+ */
101
+ _isHueValueChanged: {
102
+ type: Boolean,
103
+ },
104
+
90
105
  /**
91
106
  * @private
92
107
  */
@@ -326,6 +341,8 @@ class ColorPicker extends UI5Element {
326
341
  this.selectedHue = event.target.value;
327
342
  this._hue = this.selectedHue;
328
343
  this._setMainColor(this._hue);
344
+ // Idication that changes to the hue value triggered as a result of user pressing over the hue slider.
345
+ this._isHueValueChanged = true;
329
346
 
330
347
  const tempColor = this._calculateColorFromCoordinates(this._selectedCoordinates.x + 6.5, this._selectedCoordinates.y + 6.5);
331
348
 
@@ -343,6 +360,10 @@ class ColorPicker extends UI5Element {
343
360
  newValue = `${newValue[0]}${newValue[0]}${newValue[1]}${newValue[1]}${newValue[2]}${newValue[2]}`;
344
361
  }
345
362
 
363
+ if (newValue === this.hex) {
364
+ return;
365
+ }
366
+
346
367
  this.hex = newValue;
347
368
  if (newValue.length !== 6 || !hexRegex.test(newValue)) {
348
369
  this._wrongHEX = true;
@@ -425,17 +446,26 @@ class ColorPicker extends UI5Element {
425
446
  y: y - 6.5, // Center the coordinates, because of the height of the circle
426
447
  };
427
448
 
449
+ // Idication that changes to the color settings are triggered as a result of user pressing over the main color section.
450
+ this._isSelectedColorChanged = true;
451
+
428
452
  const tempColor = this._calculateColorFromCoordinates(x, y);
429
453
  if (tempColor) {
430
454
  this._setColor(HSLToRGB(tempColor));
431
455
  }
432
456
  }
433
457
 
458
+ _onkeydown(event) {
459
+ if (isEnter(event)) {
460
+ this._handleHEXChange(event);
461
+ }
462
+ }
463
+
434
464
  _calculateColorFromCoordinates(x, y) {
435
465
  // By using the selected coordinates(x = Lightness, y = Saturation) and hue(selected from the hue slider)
436
466
  // and HSL format, the color will be parsed to RGB
437
467
 
438
- const h = Math.round(this._hue / 4.25), // 0 ≤ H < 360
468
+ const h = this._hue / 4.25, // 0 ≤ H < 360
439
469
  // 0 ≤ S ≤ 1
440
470
  s = 1 - +(Math.round((y / 256) + "e+2") + "e-2"), // eslint-disable-line
441
471
  // 0 ≤ V ≤ 1
@@ -488,7 +518,15 @@ class ColorPicker extends UI5Element {
488
518
  y: (256 - (Math.round(hslColours.s * 100) * 2.56)) - 6.5, // Center the coordinates, because of the height of the circle
489
519
  };
490
520
 
491
- this._hue = this.selectedHue ? this.selectedHue : Math.round(hslColours.h * 4.25);
521
+ if (this._isSelectedColorChanged) { // We shouldn't update the hue value when user presses over the main color section.
522
+ this._isSelectedColorChanged = false;
523
+ } else if (this._isHueValueChanged) { // We shouldn't recalculate the hue value when user changes the hue slider.
524
+ this._isHueValueChanged = false;
525
+ this._hue = this.selectedHue ? this.selectedHue : this._hue;
526
+ } else {
527
+ this._hue = Math.round(hslColours.h * 4.25);
528
+ }
529
+
492
530
  this._setMainColor(this._hue);
493
531
  }
494
532
 
package/dist/ComboBox.js CHANGED
@@ -8,6 +8,10 @@ import announce from "@ui5/webcomponents-base/dist/util/InvisibleMessage.js";
8
8
  import "@ui5/webcomponents-icons/dist/slim-arrow-down.js";
9
9
  import "@ui5/webcomponents-icons/dist/decline.js";
10
10
  import "@ui5/webcomponents-icons/dist/not-editable.js";
11
+ import "@ui5/webcomponents-icons/dist/error.js";
12
+ import "@ui5/webcomponents-icons/dist/alert.js";
13
+ import "@ui5/webcomponents-icons/dist/sys-enter-2.js";
14
+ import "@ui5/webcomponents-icons/dist/information.js";
11
15
  import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
12
16
  import {
13
17
  isBackSpace,
@@ -57,6 +61,7 @@ import BusyIndicator from "./BusyIndicator.js";
57
61
  import Button from "./Button.js";
58
62
  import StandardListItem from "./StandardListItem.js";
59
63
  import ComboBoxGroupItem from "./ComboBoxGroupItem.js";
64
+ import GroupHeaderListItem from "./GroupHeaderListItem.js";
60
65
 
61
66
  /**
62
67
  * @public
@@ -206,9 +211,9 @@ const metadata = {
206
211
  },
207
212
 
208
213
  /**
209
- * Sets the accessible aria name of the component.
214
+ * Defines the accessible aria name of the component.
210
215
  *
211
- * @type {String}
216
+ * @type {string}
212
217
  * @defaultvalue: ""
213
218
  * @public
214
219
  * @since 1.0.0-rc.15
@@ -220,7 +225,7 @@ const metadata = {
220
225
 
221
226
  /**
222
227
  * Receives id(or many ids) of the elements that label the component
223
- * @type {String}
228
+ * @type {string}
224
229
  * @defaultvalue ""
225
230
  * @public
226
231
  * @since 1.0.0-rc.15
@@ -468,7 +473,7 @@ class ComboBox extends UI5Element {
468
473
  return;
469
474
  }
470
475
 
471
- if (!this.shadowRoot.contains(event.relatedTarget)) {
476
+ if (!this.shadowRoot.contains(event.relatedTarget) && (this.staticAreaItem !== event.relatedTarget)) {
472
477
  this.focused = false;
473
478
  !isPhone() && this._closeRespPopover(event);
474
479
  }
@@ -1063,6 +1068,7 @@ class ComboBox extends UI5Element {
1063
1068
  BusyIndicator,
1064
1069
  Button,
1065
1070
  StandardListItem,
1071
+ GroupHeaderListItem,
1066
1072
  Popover,
1067
1073
  ComboBoxGroupItem,
1068
1074
  ];
@@ -19,6 +19,7 @@ import {
19
19
  import { isPhone, isIE } from "@ui5/webcomponents-base/dist/Device.js";
20
20
  import "@ui5/webcomponents-icons/dist/appointment-2.js";
21
21
  import "@ui5/webcomponents-icons/dist/decline.js";
22
+ import HasPopup from "./types/HasPopup.js";
22
23
  import { DATEPICKER_OPEN_ICON_TITLE, DATEPICKER_DATE_DESCRIPTION, INPUT_SUGGESTIONS_TITLE } from "./generated/i18n/i18n-defaults.js";
23
24
  import DateComponentBase from "./DateComponentBase.js";
24
25
  import Icon from "./Icon.js";
@@ -169,7 +170,7 @@ const metadata = {
169
170
  /**
170
171
  * Defines the aria-label attribute for the component.
171
172
  *
172
- * @type {String}
173
+ * @type {string}
173
174
  * @public
174
175
  * @since 1.0.0-rc.15
175
176
  */
@@ -180,7 +181,7 @@ const metadata = {
180
181
  /**
181
182
  * Receives id(or many ids) of the elements that label the component.
182
183
  *
183
- * @type {String}
184
+ * @type {string}
184
185
  * @defaultvalue ""
185
186
  * @public
186
187
  * @since 1.0.0-rc.15
@@ -243,8 +244,8 @@ const metadata = {
243
244
  * @event
244
245
  * @allowPreventDefault
245
246
  * @public
246
- * @param {String} value The submitted value.
247
- * @param {Boolean} valid Indicator if the value is in correct format pattern and in valid range.
247
+ * @param {string} value The submitted value.
248
+ * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.
248
249
  */
249
250
  change: {
250
251
  details: {
@@ -263,8 +264,8 @@ const metadata = {
263
264
  * @event
264
265
  * @allowPreventDefault
265
266
  * @public
266
- * @param {String} value The submitted value.
267
- * @param {Boolean} valid Indicator if the value is in correct format pattern and in valid range.
267
+ * @param {string} value The submitted value.
268
+ * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range.
268
269
  */
269
270
  input: {
270
271
  details: {
@@ -414,6 +415,7 @@ class DatePicker extends DateComponentBase {
414
415
  console.warn(`In order for the "name" property to have effect, you should also: import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";`); // eslint-disable-line
415
416
  }
416
417
 
418
+ this.value = this.normalizeValue(this.value);
417
419
  this.liveValue = this.value;
418
420
  }
419
421
 
@@ -600,6 +602,7 @@ class DatePicker extends DateComponentBase {
600
602
  /**
601
603
  * Checks if a value is valid against the current date format of the DatePicker.
602
604
  * @param {string} value A value to be tested against the current date format
605
+ * @returns {boolean}
603
606
  * @public
604
607
  */
605
608
  isValid(value = "") {
@@ -671,9 +674,8 @@ class DatePicker extends DateComponentBase {
671
674
  get accInfo() {
672
675
  return {
673
676
  "ariaRoledescription": this.dateAriaDescription,
674
- "ariaHasPopup": "true",
677
+ "ariaHasPopup": HasPopup.Grid,
675
678
  "ariaAutoComplete": "none",
676
- "role": "combobox",
677
679
  "ariaControls": `${this._id}-responsive-popover`,
678
680
  "ariaExpanded": this.isOpen(),
679
681
  "ariaRequired": this.required,