@ui5/webcomponents 1.24.0-rc.4 → 2.0.0-rc.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 (735) hide show
  1. package/CHANGELOG.md +347 -0
  2. package/README.md +1 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/Badge.d.ts +1 -0
  5. package/dist/Badge.js +6 -0
  6. package/dist/Badge.js.map +1 -1
  7. package/dist/Bar.d.ts +73 -0
  8. package/dist/Bar.js +113 -0
  9. package/dist/Bar.js.map +1 -0
  10. package/dist/Breadcrumbs.d.ts +5 -5
  11. package/dist/Breadcrumbs.js +10 -14
  12. package/dist/Breadcrumbs.js.map +1 -1
  13. package/dist/BusyIndicator.d.ts +1 -1
  14. package/dist/BusyIndicator.js +5 -1
  15. package/dist/BusyIndicator.js.map +1 -1
  16. package/dist/Calendar.d.ts +5 -5
  17. package/dist/Calendar.js +7 -7
  18. package/dist/Calendar.js.map +1 -1
  19. package/dist/Card.d.ts +3 -13
  20. package/dist/Card.js +1 -1
  21. package/dist/Card.js.map +1 -1
  22. package/dist/CardHeader.d.ts +6 -8
  23. package/dist/CardHeader.js +11 -7
  24. package/dist/CardHeader.js.map +1 -1
  25. package/dist/Carousel.d.ts +17 -2
  26. package/dist/Carousel.js +17 -4
  27. package/dist/Carousel.js.map +1 -1
  28. package/dist/CheckBox.d.ts +1 -0
  29. package/dist/CheckBox.js +5 -0
  30. package/dist/CheckBox.js.map +1 -1
  31. package/dist/ColorPalette.d.ts +7 -7
  32. package/dist/ColorPalette.js +14 -17
  33. package/dist/ColorPalette.js.map +1 -1
  34. package/dist/ColorPalettePopover.d.ts +0 -16
  35. package/dist/ColorPalettePopover.js +0 -23
  36. package/dist/ColorPalettePopover.js.map +1 -1
  37. package/dist/ColorPicker.d.ts +3 -3
  38. package/dist/ColorPicker.js +23 -23
  39. package/dist/ColorPicker.js.map +1 -1
  40. package/dist/ComboBox.d.ts +1 -0
  41. package/dist/ComboBox.js +11 -10
  42. package/dist/ComboBox.js.map +1 -1
  43. package/dist/DatePicker.d.ts +3 -3
  44. package/dist/DatePicker.js +7 -10
  45. package/dist/DatePicker.js.map +1 -1
  46. package/dist/DateRangePicker.d.ts +2 -2
  47. package/dist/DateRangePicker.js +2 -2
  48. package/dist/DateRangePicker.js.map +1 -1
  49. package/dist/DateTimePicker.d.ts +3 -3
  50. package/dist/DateTimePicker.js +6 -10
  51. package/dist/DateTimePicker.js.map +1 -1
  52. package/dist/Dialog.d.ts +0 -1
  53. package/dist/Dialog.js +1 -3
  54. package/dist/Dialog.js.map +1 -1
  55. package/dist/FileUploader.d.ts +3 -3
  56. package/dist/FileUploader.js +11 -11
  57. package/dist/FileUploader.js.map +1 -1
  58. package/dist/Input.d.ts +2 -1
  59. package/dist/Input.js +12 -8
  60. package/dist/Input.js.map +1 -1
  61. package/dist/List.d.ts +18 -18
  62. package/dist/List.js +37 -37
  63. package/dist/List.js.map +1 -1
  64. package/dist/ListItem.d.ts +3 -3
  65. package/dist/ListItem.js +15 -15
  66. package/dist/ListItem.js.map +1 -1
  67. package/dist/Menu.d.ts +2 -1
  68. package/dist/Menu.js +11 -9
  69. package/dist/Menu.js.map +1 -1
  70. package/dist/MultiComboBox.d.ts +14 -14
  71. package/dist/MultiComboBox.js +63 -59
  72. package/dist/MultiComboBox.js.map +1 -1
  73. package/dist/MultiInput.d.ts +1 -0
  74. package/dist/MultiInput.js +5 -2
  75. package/dist/MultiInput.js.map +1 -1
  76. package/dist/NavigationMenu.js +5 -5
  77. package/dist/NavigationMenu.js.map +1 -1
  78. package/dist/Option.d.ts +0 -9
  79. package/dist/Option.js +0 -3
  80. package/dist/Option.js.map +1 -1
  81. package/dist/Popover.d.ts +9 -12
  82. package/dist/Popover.js +50 -49
  83. package/dist/Popover.js.map +1 -1
  84. package/dist/Popup.d.ts +2 -4
  85. package/dist/Popup.js +38 -22
  86. package/dist/Popup.js.map +1 -1
  87. package/dist/ProgressIndicator.d.ts +0 -7
  88. package/dist/ProgressIndicator.js +0 -6
  89. package/dist/ProgressIndicator.js.map +1 -1
  90. package/dist/RadioButton.d.ts +1 -0
  91. package/dist/RadioButton.js +5 -0
  92. package/dist/RadioButton.js.map +1 -1
  93. package/dist/ResponsivePopover.js +0 -6
  94. package/dist/ResponsivePopover.js.map +1 -1
  95. package/dist/Select.d.ts +5 -7
  96. package/dist/Select.js +17 -24
  97. package/dist/Select.js.map +1 -1
  98. package/dist/SliderBase.d.ts +1 -1
  99. package/dist/SliderBase.js +1 -1
  100. package/dist/SliderBase.js.map +1 -1
  101. package/dist/Tab.d.ts +23 -11
  102. package/dist/Tab.js +32 -28
  103. package/dist/Tab.js.map +1 -1
  104. package/dist/TabContainer.d.ts +41 -84
  105. package/dist/TabContainer.js +98 -161
  106. package/dist/TabContainer.js.map +1 -1
  107. package/dist/TabSeparator.d.ts +12 -7
  108. package/dist/TabSeparator.js +10 -12
  109. package/dist/TabSeparator.js.map +1 -1
  110. package/dist/TextArea.d.ts +4 -3
  111. package/dist/TextArea.js +8 -11
  112. package/dist/TextArea.js.map +1 -1
  113. package/dist/TimePickerBase.d.ts +9 -9
  114. package/dist/TimePickerBase.js +24 -24
  115. package/dist/TimePickerBase.js.map +1 -1
  116. package/dist/Toast.js +0 -2
  117. package/dist/Toast.js.map +1 -1
  118. package/dist/Tokenizer.d.ts +1 -0
  119. package/dist/Tokenizer.js +8 -6
  120. package/dist/Tokenizer.js.map +1 -1
  121. package/dist/Toolbar.d.ts +6 -7
  122. package/dist/Toolbar.js +14 -23
  123. package/dist/Toolbar.js.map +1 -1
  124. package/dist/ToolbarButton.d.ts +0 -1
  125. package/dist/ToolbarButton.js +1 -3
  126. package/dist/ToolbarButton.js.map +1 -1
  127. package/dist/ToolbarRegistry.d.ts +1 -2
  128. package/dist/ToolbarRegistry.js +1 -4
  129. package/dist/ToolbarRegistry.js.map +1 -1
  130. package/dist/Tree.d.ts +4 -4
  131. package/dist/Tree.js +6 -6
  132. package/dist/Tree.js.map +1 -1
  133. package/dist/TreeItemBase.d.ts +1 -1
  134. package/dist/TreeItemBase.js.map +1 -1
  135. package/dist/bundle.common.bootstrap.js.map +1 -1
  136. package/dist/bundle.esm.js.map +1 -1
  137. package/dist/css/themes/Avatar.css +1 -1
  138. package/dist/css/themes/AvatarGroup.css +1 -1
  139. package/dist/css/themes/Badge.css +1 -1
  140. package/dist/css/themes/Bar.css +1 -0
  141. package/dist/css/themes/Breadcrumbs.css +1 -1
  142. package/dist/css/themes/BusyIndicator.css +1 -1
  143. package/dist/css/themes/Button.css +1 -1
  144. package/dist/css/themes/Calendar.css +1 -1
  145. package/dist/css/themes/CalendarHeader.css +1 -1
  146. package/dist/css/themes/CalendarLegend.css +1 -1
  147. package/dist/css/themes/CalendarLegendItem.css +1 -1
  148. package/dist/css/themes/Card.css +1 -1
  149. package/dist/css/themes/CardHeader.css +1 -1
  150. package/dist/css/themes/Carousel.css +1 -1
  151. package/dist/css/themes/CheckBox.css +1 -1
  152. package/dist/css/themes/ColorPalette.css +1 -1
  153. package/dist/css/themes/ColorPaletteItem.css +1 -1
  154. package/dist/css/themes/ColorPalettePopover.css +1 -1
  155. package/dist/css/themes/ColorPicker.css +1 -1
  156. package/dist/css/themes/ComboBox.css +1 -1
  157. package/dist/css/themes/CustomListItem.css +1 -1
  158. package/dist/css/themes/DatePicker.css +1 -1
  159. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  160. package/dist/css/themes/DayPicker.css +1 -1
  161. package/dist/css/themes/Dialog.css +1 -1
  162. package/dist/css/themes/FileUploader.css +1 -1
  163. package/dist/css/themes/GroupHeaderListItem.css +1 -1
  164. package/dist/css/themes/GrowingButton.css +1 -1
  165. package/dist/css/themes/Icon.css +1 -1
  166. package/dist/css/themes/Input.css +1 -1
  167. package/dist/css/themes/InputIcon.css +1 -1
  168. package/dist/css/themes/InputSharedStyles.css +1 -1
  169. package/dist/css/themes/Link.css +1 -1
  170. package/dist/css/themes/List.css +1 -1
  171. package/dist/css/themes/ListItem.css +1 -1
  172. package/dist/css/themes/ListItemBase.css +1 -1
  173. package/dist/css/themes/Menu.css +1 -1
  174. package/dist/css/themes/MenuListItem.css +1 -1
  175. package/dist/css/themes/MessageStrip.css +1 -1
  176. package/dist/css/themes/MonthPicker.css +1 -1
  177. package/dist/css/themes/MultiComboBox.css +1 -1
  178. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  179. package/dist/css/themes/MultiInput.css +1 -1
  180. package/dist/css/themes/NavigationMenu.css +1 -1
  181. package/dist/css/themes/Panel.css +1 -1
  182. package/dist/css/themes/Popover.css +1 -1
  183. package/dist/css/themes/Popup.css +1 -1
  184. package/dist/css/themes/PopupBlockLayer.css +1 -0
  185. package/dist/css/themes/PopupsCommon.css +1 -1
  186. package/dist/css/themes/ProgressIndicator.css +1 -1
  187. package/dist/css/themes/RadioButton.css +1 -1
  188. package/dist/css/themes/RangeSlider.css +1 -1
  189. package/dist/css/themes/RatingIndicator.css +1 -1
  190. package/dist/css/themes/ResponsivePopover.css +1 -1
  191. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  192. package/dist/css/themes/SegmentedButton.css +1 -1
  193. package/dist/css/themes/Select.css +1 -1
  194. package/dist/css/themes/SelectMenu.css +1 -1
  195. package/dist/css/themes/SelectPopover.css +1 -1
  196. package/dist/css/themes/SliderBase.css +1 -1
  197. package/dist/css/themes/SplitButton.css +1 -1
  198. package/dist/css/themes/StepInput.css +1 -1
  199. package/dist/css/themes/Switch.css +1 -1
  200. package/dist/css/themes/TabContainer.css +1 -1
  201. package/dist/css/themes/TabInOverflow.css +1 -1
  202. package/dist/css/themes/TabInStrip.css +1 -1
  203. package/dist/css/themes/TabSemanticIcon.css +1 -1
  204. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  205. package/dist/css/themes/TabSeparatorInStrip.css +1 -1
  206. package/dist/css/themes/Table.css +1 -1
  207. package/dist/css/themes/TableCell.css +1 -1
  208. package/dist/css/themes/TableColumn.css +1 -1
  209. package/dist/css/themes/TableGroupRow.css +1 -1
  210. package/dist/css/themes/TableRow.css +1 -1
  211. package/dist/css/themes/TextArea.css +1 -1
  212. package/dist/css/themes/TimePicker.css +1 -1
  213. package/dist/css/themes/Toast.css +1 -1
  214. package/dist/css/themes/ToggleButton.css +1 -1
  215. package/dist/css/themes/Token.css +1 -1
  216. package/dist/css/themes/Tokenizer.css +1 -1
  217. package/dist/css/themes/TokenizerPopover.css +1 -1
  218. package/dist/css/themes/Toolbar.css +1 -1
  219. package/dist/css/themes/ToolbarPopover.css +1 -1
  220. package/dist/css/themes/TreeItem.css +1 -1
  221. package/dist/css/themes/ValueStateMessage.css +1 -1
  222. package/dist/css/themes/WheelSlider.css +1 -1
  223. package/dist/css/themes/YearPicker.css +1 -1
  224. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  225. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  226. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  227. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  228. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  229. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  230. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  231. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  232. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  233. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  234. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  235. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  236. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  237. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  238. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  239. package/dist/custom-elements-internal.json +431 -481
  240. package/dist/custom-elements.json +281 -304
  241. package/dist/features/InputSuggestions.d.ts +2 -2
  242. package/dist/features/InputSuggestions.js +8 -7
  243. package/dist/features/InputSuggestions.js.map +1 -1
  244. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  245. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  246. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  247. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  248. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  249. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  250. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  251. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  252. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  253. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  254. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  255. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  256. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  257. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  258. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  259. package/dist/generated/json-imports/Themes.js +1 -1
  260. package/dist/generated/json-imports/Themes.js.map +1 -1
  261. package/dist/generated/json-imports/i18n.js +1 -1
  262. package/dist/generated/json-imports/i18n.js.map +1 -1
  263. package/dist/generated/templates/BarTemplate.lit.d.ts +4 -0
  264. package/dist/generated/templates/BarTemplate.lit.js +5 -0
  265. package/dist/generated/templates/BarTemplate.lit.js.map +1 -0
  266. package/dist/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -1
  267. package/dist/generated/templates/BreadcrumbsPopoverTemplate.lit.js.map +1 -1
  268. package/dist/generated/templates/BreadcrumbsTemplate.lit.js +2 -1
  269. package/dist/generated/templates/BreadcrumbsTemplate.lit.js.map +1 -1
  270. package/dist/generated/templates/CardHeaderTemplate.lit.js +2 -2
  271. package/dist/generated/templates/CardHeaderTemplate.lit.js.map +1 -1
  272. package/dist/generated/templates/CarouselTemplate.lit.js +1 -1
  273. package/dist/generated/templates/CarouselTemplate.lit.js.map +1 -1
  274. package/dist/generated/templates/ColorPaletteDialogTemplate.lit.js +2 -1
  275. package/dist/generated/templates/ColorPaletteDialogTemplate.lit.js.map +1 -1
  276. package/dist/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -1
  277. package/dist/generated/templates/ColorPalettePopoverTemplate.lit.js.map +1 -1
  278. package/dist/generated/templates/ColorPaletteTemplate.lit.js +2 -1
  279. package/dist/generated/templates/ColorPaletteTemplate.lit.js.map +1 -1
  280. package/dist/generated/templates/ColorPickerTemplate.lit.js +1 -1
  281. package/dist/generated/templates/ColorPickerTemplate.lit.js.map +1 -1
  282. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +2 -2
  283. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
  284. package/dist/generated/templates/ComboBoxTemplate.lit.js +21 -2
  285. package/dist/generated/templates/ComboBoxTemplate.lit.js.map +1 -1
  286. package/dist/generated/templates/CustomListItemTemplate.lit.js +2 -2
  287. package/dist/generated/templates/CustomListItemTemplate.lit.js.map +1 -1
  288. package/dist/generated/templates/DatePickerInputTemplate.lit.d.ts +4 -0
  289. package/dist/generated/templates/DatePickerInputTemplate.lit.js +7 -0
  290. package/dist/generated/templates/DatePickerInputTemplate.lit.js.map +1 -0
  291. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js +1 -1
  292. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js.map +1 -1
  293. package/dist/generated/templates/DatePickerTemplate.lit.js +5 -2
  294. package/dist/generated/templates/DatePickerTemplate.lit.js.map +1 -1
  295. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -1
  296. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js.map +1 -1
  297. package/dist/generated/templates/DateTimePickerTemplate.lit.d.ts +4 -0
  298. package/dist/generated/templates/DateTimePickerTemplate.lit.js +13 -0
  299. package/dist/generated/templates/DateTimePickerTemplate.lit.js.map +1 -0
  300. package/dist/generated/templates/DialogTemplate.lit.js +1 -1
  301. package/dist/generated/templates/DialogTemplate.lit.js.map +1 -1
  302. package/dist/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -1
  303. package/dist/generated/templates/FileUploaderPopoverTemplate.lit.js.map +1 -1
  304. package/dist/generated/templates/FileUploaderTemplate.lit.js +6 -2
  305. package/dist/generated/templates/FileUploaderTemplate.lit.js.map +1 -1
  306. package/dist/generated/templates/InputPopoverTemplate.lit.js +2 -2
  307. package/dist/generated/templates/InputPopoverTemplate.lit.js.map +1 -1
  308. package/dist/generated/templates/InputTemplate.lit.js +22 -2
  309. package/dist/generated/templates/InputTemplate.lit.js.map +1 -1
  310. package/dist/generated/templates/ListItemTemplate.lit.js +2 -2
  311. package/dist/generated/templates/ListItemTemplate.lit.js.map +1 -1
  312. package/dist/generated/templates/ListTemplate.lit.js +2 -2
  313. package/dist/generated/templates/ListTemplate.lit.js.map +1 -1
  314. package/dist/generated/templates/MenuListItemTemplate.lit.js +2 -2
  315. package/dist/generated/templates/MenuListItemTemplate.lit.js.map +1 -1
  316. package/dist/generated/templates/MenuTemplate.lit.js +2 -2
  317. package/dist/generated/templates/MenuTemplate.lit.js.map +1 -1
  318. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +4 -4
  319. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js.map +1 -1
  320. package/dist/generated/templates/MultiComboBoxTemplate.lit.js +28 -2
  321. package/dist/generated/templates/MultiComboBoxTemplate.lit.js.map +1 -1
  322. package/dist/generated/templates/MultiInputTemplate.lit.js +22 -2
  323. package/dist/generated/templates/MultiInputTemplate.lit.js.map +1 -1
  324. package/dist/generated/templates/NavigationMenuTemplate.lit.js +1 -1
  325. package/dist/generated/templates/NavigationMenuTemplate.lit.js.map +1 -1
  326. package/dist/generated/templates/PopoverTemplate.lit.js +1 -1
  327. package/dist/generated/templates/PopoverTemplate.lit.js.map +1 -1
  328. package/dist/generated/templates/PopupBlockLayerTemplate.lit.js +2 -2
  329. package/dist/generated/templates/PopupBlockLayerTemplate.lit.js.map +1 -1
  330. package/dist/generated/templates/PopupTemplate.lit.js +1 -1
  331. package/dist/generated/templates/PopupTemplate.lit.js.map +1 -1
  332. package/dist/generated/templates/ProgressIndicatorTemplate.lit.js +1 -1
  333. package/dist/generated/templates/ProgressIndicatorTemplate.lit.js.map +1 -1
  334. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +2 -2
  335. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js.map +1 -1
  336. package/dist/generated/templates/SelectMenuTemplate.lit.js +1 -1
  337. package/dist/generated/templates/SelectMenuTemplate.lit.js.map +1 -1
  338. package/dist/generated/templates/SelectPopoverTemplate.lit.js +2 -2
  339. package/dist/generated/templates/SelectPopoverTemplate.lit.js.map +1 -1
  340. package/dist/generated/templates/SelectTemplate.lit.js +18 -2
  341. package/dist/generated/templates/SelectTemplate.lit.js.map +1 -1
  342. package/dist/generated/templates/StandardListItemTemplate.lit.js +2 -2
  343. package/dist/generated/templates/StandardListItemTemplate.lit.js.map +1 -1
  344. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +2 -2
  345. package/dist/generated/templates/SuggestionListItemTemplate.lit.js.map +1 -1
  346. package/dist/generated/templates/TabContainerPopoverTemplate.lit.js +1 -1
  347. package/dist/generated/templates/TabContainerPopoverTemplate.lit.js.map +1 -1
  348. package/dist/generated/templates/TabContainerTemplate.lit.js +2 -1
  349. package/dist/generated/templates/TabContainerTemplate.lit.js.map +1 -1
  350. package/dist/generated/templates/TabInOverflowTemplate.lit.js +1 -1
  351. package/dist/generated/templates/TabInOverflowTemplate.lit.js.map +1 -1
  352. package/dist/generated/templates/TabInStripTemplate.lit.js +1 -1
  353. package/dist/generated/templates/TabInStripTemplate.lit.js.map +1 -1
  354. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -1
  355. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js.map +1 -1
  356. package/dist/generated/templates/TableTemplate.lit.js +1 -1
  357. package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
  358. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js +1 -1
  359. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js.map +1 -1
  360. package/dist/generated/templates/TextAreaTemplate.lit.js +6 -2
  361. package/dist/generated/templates/TextAreaTemplate.lit.js.map +1 -1
  362. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js +2 -2
  363. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js.map +1 -1
  364. package/dist/generated/templates/TimePickerTemplate.lit.js +2 -1
  365. package/dist/generated/templates/TimePickerTemplate.lit.js.map +1 -1
  366. package/dist/generated/templates/TokenizerPopoverTemplate.lit.js +1 -1
  367. package/dist/generated/templates/TokenizerPopoverTemplate.lit.js.map +1 -1
  368. package/dist/generated/templates/TokenizerTemplate.lit.js +10 -2
  369. package/dist/generated/templates/TokenizerTemplate.lit.js.map +1 -1
  370. package/dist/generated/templates/ToolbarPopoverTemplate.lit.js +1 -1
  371. package/dist/generated/templates/ToolbarPopoverTemplate.lit.js.map +1 -1
  372. package/dist/generated/templates/ToolbarTemplate.lit.js +2 -1
  373. package/dist/generated/templates/ToolbarTemplate.lit.js.map +1 -1
  374. package/dist/generated/templates/TreeItemBaseTemplate.lit.js +2 -2
  375. package/dist/generated/templates/TreeItemBaseTemplate.lit.js.map +1 -1
  376. package/dist/generated/templates/TreeItemCustomTemplate.lit.js +2 -2
  377. package/dist/generated/templates/TreeItemCustomTemplate.lit.js.map +1 -1
  378. package/dist/generated/templates/TreeItemTemplate.lit.js +2 -2
  379. package/dist/generated/templates/TreeItemTemplate.lit.js.map +1 -1
  380. package/dist/generated/templates/TreeTemplate.lit.js +1 -1
  381. package/dist/generated/templates/TreeTemplate.lit.js.map +1 -1
  382. package/dist/generated/themes/Avatar.css.js +1 -1
  383. package/dist/generated/themes/Avatar.css.js.map +1 -1
  384. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  385. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  386. package/dist/generated/themes/Badge.css.js +1 -1
  387. package/dist/generated/themes/Badge.css.js.map +1 -1
  388. package/dist/generated/themes/Bar.css.js +9 -0
  389. package/dist/generated/themes/Bar.css.js.map +1 -0
  390. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  391. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  392. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  393. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  394. package/dist/generated/themes/Button.css.js +1 -1
  395. package/dist/generated/themes/Button.css.js.map +1 -1
  396. package/dist/generated/themes/Calendar.css.js +1 -1
  397. package/dist/generated/themes/Calendar.css.js.map +1 -1
  398. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  399. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  400. package/dist/generated/themes/CalendarLegend.css.js +1 -1
  401. package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
  402. package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
  403. package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
  404. package/dist/generated/themes/Card.css.js +1 -1
  405. package/dist/generated/themes/Card.css.js.map +1 -1
  406. package/dist/generated/themes/CardHeader.css.js +1 -1
  407. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  408. package/dist/generated/themes/Carousel.css.js +1 -1
  409. package/dist/generated/themes/Carousel.css.js.map +1 -1
  410. package/dist/generated/themes/CheckBox.css.js +1 -1
  411. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  412. package/dist/generated/themes/ColorPalette.css.js +1 -1
  413. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  414. package/dist/generated/themes/{ColorPaletteStaticArea.css.js → ColorPaletteDialog.css.js} +2 -2
  415. package/dist/generated/themes/ColorPaletteDialog.css.js.map +1 -0
  416. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  417. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  418. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  419. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  420. package/dist/generated/themes/ColorPicker.css.js +1 -1
  421. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  422. package/dist/generated/themes/ComboBox.css.js +1 -1
  423. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  424. package/dist/generated/themes/CustomListItem.css.js +1 -1
  425. package/dist/generated/themes/CustomListItem.css.js.map +1 -1
  426. package/dist/generated/themes/DatePicker.css.js +1 -1
  427. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  428. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  429. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  430. package/dist/generated/themes/DayPicker.css.js +1 -1
  431. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  432. package/dist/generated/themes/Dialog.css.js +1 -1
  433. package/dist/generated/themes/Dialog.css.js.map +1 -1
  434. package/dist/generated/themes/FileUploader.css.js +1 -1
  435. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  436. package/dist/generated/themes/GroupHeaderListItem.css.js +1 -1
  437. package/dist/generated/themes/GroupHeaderListItem.css.js.map +1 -1
  438. package/dist/generated/themes/GrowingButton.css.js +1 -1
  439. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  440. package/dist/generated/themes/Icon.css.js +1 -1
  441. package/dist/generated/themes/Icon.css.js.map +1 -1
  442. package/dist/generated/themes/Input.css.js +1 -1
  443. package/dist/generated/themes/Input.css.js.map +1 -1
  444. package/dist/generated/themes/InputIcon.css.js +1 -1
  445. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  446. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  447. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  448. package/dist/generated/themes/Link.css.js +1 -1
  449. package/dist/generated/themes/Link.css.js.map +1 -1
  450. package/dist/generated/themes/List.css.js +1 -1
  451. package/dist/generated/themes/List.css.js.map +1 -1
  452. package/dist/generated/themes/ListItem.css.js +1 -1
  453. package/dist/generated/themes/ListItem.css.js.map +1 -1
  454. package/dist/generated/themes/ListItemBase.css.js +1 -1
  455. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  456. package/dist/generated/themes/Menu.css.js +1 -1
  457. package/dist/generated/themes/Menu.css.js.map +1 -1
  458. package/dist/generated/themes/MenuListItem.css.js +1 -1
  459. package/dist/generated/themes/MenuListItem.css.js.map +1 -1
  460. package/dist/generated/themes/MessageStrip.css.js +1 -1
  461. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  462. package/dist/generated/themes/MonthPicker.css.js +1 -1
  463. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  464. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  465. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  466. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  467. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  468. package/dist/generated/themes/MultiInput.css.js +1 -1
  469. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  470. package/dist/generated/themes/NavigationMenu.css.js +1 -1
  471. package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
  472. package/dist/generated/themes/Panel.css.js +1 -1
  473. package/dist/generated/themes/Panel.css.js.map +1 -1
  474. package/dist/generated/themes/Popover.css.js +1 -1
  475. package/dist/generated/themes/Popover.css.js.map +1 -1
  476. package/dist/generated/themes/Popup.css.js +1 -1
  477. package/dist/generated/themes/Popup.css.js.map +1 -1
  478. package/dist/generated/themes/PopupBlockLayer.css.d.ts +3 -0
  479. package/dist/generated/themes/{PopupStaticAreaStyles.css.js → PopupBlockLayer.css.js} +2 -2
  480. package/dist/generated/themes/PopupBlockLayer.css.js.map +1 -0
  481. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  482. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  483. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  484. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  485. package/dist/generated/themes/RadioButton.css.js +1 -1
  486. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  487. package/dist/generated/themes/RangeSlider.css.js +1 -1
  488. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  489. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  490. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  491. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  492. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  493. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  494. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  495. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  496. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  497. package/dist/generated/themes/Select.css.js +1 -1
  498. package/dist/generated/themes/Select.css.js.map +1 -1
  499. package/dist/generated/themes/SelectMenu.css.js +1 -1
  500. package/dist/generated/themes/SelectMenu.css.js.map +1 -1
  501. package/dist/generated/themes/SelectPopover.css.js +1 -1
  502. package/dist/generated/themes/SelectPopover.css.js.map +1 -1
  503. package/dist/generated/themes/SliderBase.css.js +1 -1
  504. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  505. package/dist/generated/themes/SplitButton.css.js +1 -1
  506. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  507. package/dist/generated/themes/StepInput.css.js +1 -1
  508. package/dist/generated/themes/StepInput.css.js.map +1 -1
  509. package/dist/generated/themes/Switch.css.js +1 -1
  510. package/dist/generated/themes/Switch.css.js.map +1 -1
  511. package/dist/generated/themes/TabContainer.css.js +1 -1
  512. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  513. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  514. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  515. package/dist/generated/themes/TabInStrip.css.js +1 -1
  516. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  517. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  518. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  519. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  520. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  521. package/dist/generated/themes/TabSeparatorInStrip.css.js +1 -1
  522. package/dist/generated/themes/TabSeparatorInStrip.css.js.map +1 -1
  523. package/dist/generated/themes/Table.css.js +1 -1
  524. package/dist/generated/themes/Table.css.js.map +1 -1
  525. package/dist/generated/themes/TableCell.css.js +1 -1
  526. package/dist/generated/themes/TableCell.css.js.map +1 -1
  527. package/dist/generated/themes/TableColumn.css.js +1 -1
  528. package/dist/generated/themes/TableColumn.css.js.map +1 -1
  529. package/dist/generated/themes/TableGroupRow.css.js +1 -1
  530. package/dist/generated/themes/TableGroupRow.css.js.map +1 -1
  531. package/dist/generated/themes/TableRow.css.js +1 -1
  532. package/dist/generated/themes/TableRow.css.js.map +1 -1
  533. package/dist/generated/themes/TextArea.css.js +1 -1
  534. package/dist/generated/themes/TextArea.css.js.map +1 -1
  535. package/dist/generated/themes/TimePicker.css.js +1 -1
  536. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  537. package/dist/generated/themes/Toast.css.js +1 -1
  538. package/dist/generated/themes/Toast.css.js.map +1 -1
  539. package/dist/generated/themes/ToggleButton.css.js +1 -1
  540. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  541. package/dist/generated/themes/Token.css.js +1 -1
  542. package/dist/generated/themes/Token.css.js.map +1 -1
  543. package/dist/generated/themes/Tokenizer.css.js +1 -1
  544. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  545. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  546. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  547. package/dist/generated/themes/Toolbar.css.js +1 -1
  548. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  549. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  550. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  551. package/dist/generated/themes/TreeItem.css.js +1 -1
  552. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  553. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  554. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  555. package/dist/generated/themes/WheelSlider.css.js +1 -1
  556. package/dist/generated/themes/WheelSlider.css.js.map +1 -1
  557. package/dist/generated/themes/YearPicker.css.js +1 -1
  558. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  559. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  560. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  561. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  562. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  563. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  564. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  565. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  566. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  567. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  568. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  569. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  570. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  571. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  572. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  573. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  574. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  575. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  576. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  577. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  578. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  579. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  580. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  581. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  582. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  583. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  584. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  585. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  586. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  587. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  588. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  589. package/dist/types/BarDesign.d.ts +27 -0
  590. package/dist/types/BarDesign.js +29 -0
  591. package/dist/types/BarDesign.js.map +1 -0
  592. package/dist/types/{BreadcrumbsSeparatorStyle.d.ts → BreadcrumbsSeparator.d.ts} +3 -3
  593. package/dist/types/BreadcrumbsSeparator.js +39 -0
  594. package/dist/types/BreadcrumbsSeparator.js.map +1 -0
  595. package/dist/types/BusyIndicatorSize.d.ts +3 -3
  596. package/dist/types/BusyIndicatorSize.js +3 -3
  597. package/dist/types/BusyIndicatorSize.js.map +1 -1
  598. package/dist/types/{CarouselPageIndicatorStyle.d.ts → CarouselPageIndicatorType.d.ts} +3 -3
  599. package/dist/types/{CarouselPageIndicatorStyle.js → CarouselPageIndicatorType.js} +8 -8
  600. package/dist/types/CarouselPageIndicatorType.js.map +1 -0
  601. package/dist/types/{ListMode.d.ts → ListSelectionMode.d.ts} +8 -8
  602. package/dist/types/{ListMode.js → ListSelectionMode.js} +13 -13
  603. package/dist/types/ListSelectionMode.js.map +1 -0
  604. package/dist/types/{TabsOverflowMode.d.ts → OverflowMode.d.ts} +2 -2
  605. package/dist/types/{TabsOverflowMode.js → OverflowMode.js} +7 -7
  606. package/dist/types/OverflowMode.js.map +1 -0
  607. package/dist/types/PopoverHorizontalAlign.d.ts +4 -4
  608. package/dist/types/PopoverHorizontalAlign.js +4 -4
  609. package/dist/types/PopoverHorizontalAlign.js.map +1 -1
  610. package/dist/types/{PopoverPlacementType.d.ts → PopoverPlacement.d.ts} +7 -7
  611. package/dist/types/PopoverPlacement.js +29 -0
  612. package/dist/types/PopoverPlacement.js.map +1 -0
  613. package/dist/vscode.html-custom-data.json +76 -73
  614. package/dist/web-types.json +144 -121
  615. package/package-scripts.cjs +0 -1
  616. package/package.json +9 -9
  617. package/src/Bar.hbs +16 -0
  618. package/src/Breadcrumbs.hbs +3 -1
  619. package/src/BreadcrumbsPopover.hbs +3 -3
  620. package/src/CardHeader.hbs +3 -3
  621. package/src/Carousel.hbs +1 -0
  622. package/src/ColorPalette.hbs +5 -3
  623. package/src/ColorPaletteDialog.hbs +2 -0
  624. package/src/ColorPalettePopover.hbs +1 -1
  625. package/src/ColorPicker.hbs +3 -3
  626. package/src/ComboBox.hbs +2 -0
  627. package/src/ComboBoxPopover.hbs +5 -6
  628. package/src/DatePicker.hbs +2 -45
  629. package/src/DatePickerInput.hbs +45 -0
  630. package/src/DatePickerPopover.hbs +3 -3
  631. package/src/DateTimePicker.hbs +2 -0
  632. package/src/DateTimePickerPopover.hbs +1 -1
  633. package/src/FileUploader.hbs +2 -1
  634. package/src/FileUploaderPopover.hbs +2 -2
  635. package/src/Input.hbs +3 -1
  636. package/src/InputPopover.hbs +4 -4
  637. package/src/List.hbs +5 -6
  638. package/src/ListItem.hbs +1 -1
  639. package/src/Menu.hbs +3 -3
  640. package/src/MultiComboBox.hbs +2 -0
  641. package/src/MultiComboBoxPopover.hbs +6 -5
  642. package/src/NavigationMenu.hbs +1 -1
  643. package/src/Popup.hbs +2 -1
  644. package/src/PopupBlockLayer.hbs +2 -4
  645. package/src/ProgressIndicator.hbs +0 -1
  646. package/src/ResponsivePopover.hbs +1 -0
  647. package/src/Select.hbs +2 -0
  648. package/src/SelectMenu.hbs +4 -4
  649. package/src/SelectPopover.hbs +5 -5
  650. package/src/TabContainer.hbs +4 -2
  651. package/src/TabContainerPopover.hbs +4 -3
  652. package/src/TabInOverflow.hbs +1 -1
  653. package/src/TabInStrip.hbs +3 -3
  654. package/src/TabSeparatorInOverflow.hbs +1 -1
  655. package/src/Table.hbs +0 -1
  656. package/src/TextArea.hbs +2 -0
  657. package/src/TextAreaPopover.hbs +1 -1
  658. package/src/TimePicker.hbs +2 -0
  659. package/src/TimePickerPopover.hbs +6 -6
  660. package/src/Tokenizer.hbs +3 -1
  661. package/src/TokenizerPopover.hbs +3 -3
  662. package/src/Toolbar.hbs +3 -1
  663. package/src/ToolbarPopover.hbs +2 -2
  664. package/src/Tree.hbs +1 -1
  665. package/src/themes/Badge.css +2 -1
  666. package/src/themes/Bar.css +75 -0
  667. package/src/themes/Breadcrumbs.css +5 -5
  668. package/src/themes/BusyIndicator.css +18 -17
  669. package/src/themes/CardHeader.css +6 -4
  670. package/src/themes/Carousel.css +2 -1
  671. package/src/themes/CheckBox.css +11 -14
  672. package/src/themes/Dialog.css +2 -1
  673. package/src/themes/List.css +3 -3
  674. package/src/themes/ListItem.css +3 -3
  675. package/src/themes/Menu.css +1 -1
  676. package/src/themes/Popover.css +12 -12
  677. package/src/themes/Popup.css +5 -2
  678. package/src/themes/{PopupStaticAreaStyles.css → PopupBlockLayer.css} +6 -5
  679. package/src/themes/PopupsCommon.css +0 -1
  680. package/src/themes/ProgressIndicator.css +0 -4
  681. package/src/themes/RadioButton.css +4 -7
  682. package/src/themes/TabContainer.css +1 -0
  683. package/src/themes/TabInOverflow.css +1 -0
  684. package/src/themes/TabInStrip.css +8 -4
  685. package/src/themes/TabSeparatorInOverflow.css +2 -2
  686. package/src/themes/TabSeparatorInStrip.css +2 -2
  687. package/src/themes/TreeItem.css +2 -2
  688. package/src/themes/base/Bar-parameters.css +8 -0
  689. package/src/themes/base/RadioButton-parameters.css +0 -1
  690. package/src/themes/base/sizes-parameters.css +3 -0
  691. package/src/themes/sap_belize/parameters-bundle.css +2 -1
  692. package/src/themes/sap_belize_hcb/parameters-bundle.css +2 -1
  693. package/src/themes/sap_belize_hcw/parameters-bundle.css +2 -1
  694. package/src/themes/sap_fiori_3/parameters-bundle.css +2 -1
  695. package/src/themes/sap_fiori_3_dark/parameters-bundle.css +2 -1
  696. package/src/themes/sap_fiori_3_hcb/Bar-parameters.css +5 -0
  697. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +2 -1
  698. package/src/themes/sap_fiori_3_hcw/Bar-parameters.css +5 -0
  699. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  700. package/src/themes/sap_horizon/parameters-bundle.css +2 -1
  701. package/src/themes/sap_horizon_dark/CheckBox-parameters.css +1 -0
  702. package/src/themes/sap_horizon_dark/parameters-bundle.css +2 -1
  703. package/src/themes/sap_horizon_hcb/Bar-parameters.css +5 -0
  704. package/src/themes/sap_horizon_hcb/CheckBox-parameters.css +1 -0
  705. package/src/themes/sap_horizon_hcb/parameters-bundle.css +2 -1
  706. package/src/themes/sap_horizon_hcw/Bar-parameters.css +5 -0
  707. package/src/themes/sap_horizon_hcw/CheckBox-parameters.css +1 -0
  708. package/src/themes/sap_horizon_hcw/parameters-bundle.css +2 -1
  709. package/dist/Assets-static.d.ts +0 -4
  710. package/dist/Assets-static.js +0 -6
  711. package/dist/Assets-static.js.map +0 -1
  712. package/dist/css/themes/PopupStaticAreaStyles.css +0 -1
  713. package/dist/generated/json-imports/Themes-static.d.ts +0 -1
  714. package/dist/generated/json-imports/Themes-static.js +0 -45
  715. package/dist/generated/json-imports/Themes-static.js.map +0 -1
  716. package/dist/generated/json-imports/i18n-static.d.ts +0 -1
  717. package/dist/generated/json-imports/i18n-static.js +0 -168
  718. package/dist/generated/json-imports/i18n-static.js.map +0 -1
  719. package/dist/generated/themes/ColorPaletteStaticArea.css.js.map +0 -1
  720. package/dist/generated/themes/PopupStaticAreaStyles.css.js.map +0 -1
  721. package/dist/types/BreadcrumbsSeparatorStyle.js +0 -39
  722. package/dist/types/BreadcrumbsSeparatorStyle.js.map +0 -1
  723. package/dist/types/CarouselPageIndicatorStyle.js.map +0 -1
  724. package/dist/types/ListMode.js.map +0 -1
  725. package/dist/types/PopoverPlacementType.js +0 -29
  726. package/dist/types/PopoverPlacementType.js.map +0 -1
  727. package/dist/types/TabContainerBackgroundDesign.d.ts +0 -22
  728. package/dist/types/TabContainerBackgroundDesign.js +0 -24
  729. package/dist/types/TabContainerBackgroundDesign.js.map +0 -1
  730. package/dist/types/TabsOverflowMode.js.map +0 -1
  731. /package/dist/css/themes/{ColorPaletteStaticArea.css → ColorPaletteDialog.css} +0 -0
  732. /package/dist/generated/themes/{ColorPaletteStaticArea.css.d.ts → Bar.css.d.ts} +0 -0
  733. /package/dist/generated/themes/{PopupStaticAreaStyles.css.d.ts → ColorPaletteDialog.css.d.ts} +0 -0
  734. /package/src/themes/{ColorPaletteStaticArea.css → ColorPaletteDialog.css} +0 -0
  735. /package/src/themes/base/{PopupStaticAreaStyles-parameters.css → PopupBlockLayer-parameters.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPalettePopover.js","sourceRoot":"","sources":["../src/ColorPalettePopover.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,YAAY,MAAM,oDAAo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B;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;yDACZ;AAStB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACb;AASf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;mDACR;AAO9B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;mDAClC;AA5D7B,mBAAmB;IAlCxB,aAAa,CAAC;QACd,GAAG,EAAE,2BAA2B;QAChC,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;QAC5D,QAAQ,EAAE,2BAA2B;QACrC,YAAY,EAAE;YACb,iBAAiB;YACjB,MAAM;YACN,KAAK;YACL,YAAY;SACZ;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAA0C,YAAY,EAAE;QAC7D,MAAM,EAAE;YACP;;eAEG;YACH,KAAK,EAAE;gBACN,IAAI,EAAE,MAAM;aACZ;SACD;KACD,CAAC;IACF;;;;OAIG;;IACF,KAAK,CAAC,OAAO,CAAC;GACT,mBAAmB,CA+IxB;AAED,mBAAmB,CAAC,MAAM,EAAE,CAAC;AAE7B,eAAe,mBAAmB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport DOMReference from \"@ui5/webcomponents-base/dist/types/DOMReference.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.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 CSSColor from \"@ui5/webcomponents-base/dist/types/CSSColor.js\";\nimport ColorPalettePopoverTemplate from \"./generated/templates/ColorPalettePopoverTemplate.lit.js\";\n\n// Styles\nimport ColorPalettePopoverCss from \"./generated/themes/ColorPalettePopover.css.js\";\nimport ResponsivePopoverCommonCss from \"./generated/themes/ResponsivePopoverCommon.css.js\";\nimport {\n\tCOLORPALETTE_POPOVER_TITLE,\n\tCOLOR_PALETTE_DIALOG_CANCEL_BUTTON,\n} from \"./generated/i18n/i18n-defaults.js\";\n\nimport Button from \"./Button.js\";\nimport Title from \"./Title.js\";\nimport ResponsivePopover from \"./ResponsivePopover.js\";\nimport ColorPalette from \"./ColorPalette.js\";\nimport type { ColorPaletteItemClickEventDetail, IColorPaletteItem } from \"./ColorPalette.js\";\nimport type ColorPaletteItem from \"./ColorPaletteItem.js\";\n\ntype ColorPalettePopoverItemClickEventDetail = ColorPaletteItemClickEventDetail;\n\n/**\n * @class\n *\n * ### Overview\n * Represents a predefined range of colors for easier selection.\n *\n * Overview\n * The ColorPalettePopover provides the users with a slot to predefine colors.\n *\n * You can customize them with the use of the colors property. You can specify a defaultColor and display a \"Default color\" button for the user to choose directly.\n * You can display a \"More colors...\" button that opens an additional color picker for the user to choose specific colors that are not present in the predefined range.\n *\n * ### Usage\n *\n * The palette is intended for users, who don't want to check and remember the different values of the colors and spend large amount of time to configure the right color through the color picker.\n *\n * For the `ui5-color-palette-popover`\n * ### ES6 Module Import\n *\n * `import @ui5/webcomponents/dist/ColorPalettePopover.js\";`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.16\n */\n@customElement({\n\ttag: \"ui5-color-palette-popover\",\n\trenderer: litRender,\n\tstyles: [ResponsivePopoverCommonCss, ColorPalettePopoverCss],\n\ttemplate: ColorPalettePopoverTemplate,\n\tdependencies: [\n\t\tResponsivePopover,\n\t\tButton,\n\t\tTitle,\n\t\tColorPalette,\n\t],\n})\n\n/**\n * Fired when the user selects a color.\n * @public\n * @param {string} color the selected color\n */\n@event<ColorPalettePopoverItemClickEventDetail>(\"item-click\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\tcolor: {\n\t\t\ttype: String,\n\t\t},\n\t},\n})\n/**\n * Fired when the `ui5-color-palette-popover` is closed due to user interaction.\n * @since 1.21.0\n * @public\n */\n@event(\"close\")\nclass ColorPalettePopover extends UI5Element {\n\t/**\n\t * Defines whether the user can see the last used colors in the bottom of the component\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowRecentColors!: boolean;\n\n\t/**\n\t * Defines whether the user can choose a custom color from a component.\n\t *\n\t * **Note:** In order to use this property you need to import the following module: `\"@ui5/webcomponents/dist/features/ColorPaletteMoreColors.js\"`\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowMoreColors!: boolean;\n\n\t/**\n\t * Defines whether the user can choose the default color from a button.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowDefaultColor!: boolean;\n\n\t/**\n\t * Defines the default color of the component.\n\t *\n\t * **Note:** The default color should be a part of the ColorPalette colors`\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ validator: CSSColor })\n\tdefaultColor?: string;\n\n\t/**\n\t * Defines the open | closed state of the popover.\n\t * @public\n\t * @default false\n\t * @since 1.21.0\n\t */\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at.\n\t * @public\n\t * @default undefined\n\t * @since 1.21.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines the content of the component.\n\t * @public\n\t */\n\t@slot({ \"default\": true, type: HTMLElement, individualSlots: true })\n\tcolors!: Array<IColorPaletteItem>;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tColorPalettePopover.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget responsivePopover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\tget respPopover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\t/**\n\t * Shows the ColorPalettePopover.\n\t * @param opener the element that the popover is shown at\n\t * @public\n\t * @deprecated The method is deprecated in favour of `open` and `opener` properties.\n\t * @since 1.1.1\n\t */\n\tshowAt(opener: HTMLElement): void {\n\t\tconsole.warn(\"The method 'showAt' is deprecated and will be removed in future, use 'open' and 'opener' props instead.\"); // eslint-disable-line\n\t\tthis.open = true;\n\t\tthis.opener = opener;\n\t}\n\n\t/**\n\t * Shows the ColorPalettePopover.\n\t * @param opener the element that the popover is shown at\n\t * @public\n\t * @since 1.0.0-rc.16\n\t * @deprecated The method is deprecated in favour of `open` and `opener` properties.\n\t */\n\topenPopover(opener: HTMLElement): void {\n\t\tconsole.warn(\"The method 'openPopover' is deprecated and will be removed in future, use 'open' and 'opener' props instead.\"); // eslint-disable-line\n\t\tthis.showAt(opener);\n\t}\n\n\tclosePopover() {\n\t\tthis.open = false;\n\t}\n\n\tonAfterClose() {\n\t\tthis.closePopover();\n\t\tthis.fireEvent(\"close\");\n\t}\n\n\tonSelectedColor(e: CustomEvent<ColorPaletteItemClickEventDetail>) {\n\t\tthis.closePopover();\n\t\tthis.fireEvent<ColorPalettePopoverItemClickEventDetail>(\"item-click\", e.detail);\n\t}\n\n\t/**\n\t * Returns if the component is opened.\n\t * @protected\n\t * @since 1.0.0-rc.16\n\t */\n\tisOpen() {\n\t\treturn this.open;\n\t}\n\n\tget colorPaletteColors() {\n\t\treturn this.getSlottedNodes<ColorPaletteItem>(\"colors\");\n\t}\n\n\tget _colorPaletteTitle() {\n\t\treturn ColorPalettePopover.i18nBundle.getText(COLORPALETTE_POPOVER_TITLE);\n\t}\n\n\tget _cancelButtonLabel() {\n\t\treturn ColorPalettePopover.i18nBundle.getText(COLOR_PALETTE_DIALOG_CANCEL_BUTTON);\n\t}\n\n\tget _open() {\n\t\treturn this.open || undefined;\n\t}\n}\n\nColorPalettePopover.define();\n\nexport default ColorPalettePopover;\nexport type { ColorPalettePopoverItemClickEventDetail };\n"]}
1
+ {"version":3,"file":"ColorPalettePopover.js","sourceRoot":"","sources":["../src/ColorPalettePopover.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,QAAQ,MAAM,gDAAgD,CAAC;AACtE,OAAO,2BAA2B,MAAM,0DAA0D,CAAC;AAEnG,SAAS;AACT,OAAO,sBAAsB,MAAM,+CAA+C,CAAC;AACnF,OAAO,0BAA0B,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EACN,0BAA0B,EAC1B,kCAAkC,GAClC,MAAM,mCAAmC,CAAC;AAE3C,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAM7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAmCH,IAAM,mBAAmB,2BAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAgE3C,MAAM,CAAC,KAAK,CAAC,QAAQ;QACpB,qBAAmB,CAAC,UAAU,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC5E,CAAC;IAED;QACC,KAAK,EAAE,C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AQ,EAAE,CAAC;yDACZ;AAStB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDACb;AASf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;mDACR;AAO9B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;mDAClC;AA5D7B,mBAAmB;IAlCxB,aAAa,CAAC;QACd,GAAG,EAAE,2BAA2B;QAChC,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;QAC5D,QAAQ,EAAE,2BAA2B;QACrC,YAAY,EAAE;YACb,iBAAiB;YACjB,MAAM;YACN,KAAK;YACL,YAAY;SACZ;KACD,CAAC;IAEF;;;;OAIG;;IACF,KAAK,CAA0C,YAAY,EAAE;QAC7D,MAAM,EAAE;YACP;;eAEG;YACH,KAAK,EAAE;gBACN,IAAI,EAAE,MAAM;aACZ;SACD;KACD,CAAC;IACF;;;;OAIG;;IACF,KAAK,CAAC,OAAO,CAAC;GACT,mBAAmB,CAsHxB;AAED,mBAAmB,CAAC,MAAM,EAAE,CAAC;AAE7B,eAAe,mBAAmB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport DOMReference from \"@ui5/webcomponents-base/dist/types/DOMReference.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.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 CSSColor from \"@ui5/webcomponents-base/dist/types/CSSColor.js\";\nimport ColorPalettePopoverTemplate from \"./generated/templates/ColorPalettePopoverTemplate.lit.js\";\n\n// Styles\nimport ColorPalettePopoverCss from \"./generated/themes/ColorPalettePopover.css.js\";\nimport ResponsivePopoverCommonCss from \"./generated/themes/ResponsivePopoverCommon.css.js\";\nimport {\n\tCOLORPALETTE_POPOVER_TITLE,\n\tCOLOR_PALETTE_DIALOG_CANCEL_BUTTON,\n} from \"./generated/i18n/i18n-defaults.js\";\n\nimport Button from \"./Button.js\";\nimport Title from \"./Title.js\";\nimport ResponsivePopover from \"./ResponsivePopover.js\";\nimport ColorPalette from \"./ColorPalette.js\";\nimport type { ColorPaletteItemClickEventDetail, IColorPaletteItem } from \"./ColorPalette.js\";\nimport type ColorPaletteItem from \"./ColorPaletteItem.js\";\n\ntype ColorPalettePopoverItemClickEventDetail = ColorPaletteItemClickEventDetail;\n\n/**\n * @class\n *\n * ### Overview\n * Represents a predefined range of colors for easier selection.\n *\n * Overview\n * The ColorPalettePopover provides the users with a slot to predefine colors.\n *\n * You can customize them with the use of the colors property. You can specify a defaultColor and display a \"Default color\" button for the user to choose directly.\n * You can display a \"More colors...\" button that opens an additional color picker for the user to choose specific colors that are not present in the predefined range.\n *\n * ### Usage\n *\n * The palette is intended for users, who don't want to check and remember the different values of the colors and spend large amount of time to configure the right color through the color picker.\n *\n * For the `ui5-color-palette-popover`\n * ### ES6 Module Import\n *\n * `import @ui5/webcomponents/dist/ColorPalettePopover.js\";`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.16\n */\n@customElement({\n\ttag: \"ui5-color-palette-popover\",\n\trenderer: litRender,\n\tstyles: [ResponsivePopoverCommonCss, ColorPalettePopoverCss],\n\ttemplate: ColorPalettePopoverTemplate,\n\tdependencies: [\n\t\tResponsivePopover,\n\t\tButton,\n\t\tTitle,\n\t\tColorPalette,\n\t],\n})\n\n/**\n * Fired when the user selects a color.\n * @public\n * @param {string} color the selected color\n */\n@event<ColorPalettePopoverItemClickEventDetail>(\"item-click\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\tcolor: {\n\t\t\ttype: String,\n\t\t},\n\t},\n})\n/**\n * Fired when the `ui5-color-palette-popover` is closed due to user interaction.\n * @since 1.21.0\n * @public\n */\n@event(\"close\")\nclass ColorPalettePopover extends UI5Element {\n\t/**\n\t * Defines whether the user can see the last used colors in the bottom of the component\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowRecentColors!: boolean;\n\n\t/**\n\t * Defines whether the user can choose a custom color from a component.\n\t *\n\t * **Note:** In order to use this property you need to import the following module: `\"@ui5/webcomponents/dist/features/ColorPaletteMoreColors.js\"`\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowMoreColors!: boolean;\n\n\t/**\n\t * Defines whether the user can choose the default color from a button.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tshowDefaultColor!: boolean;\n\n\t/**\n\t * Defines the default color of the component.\n\t *\n\t * **Note:** The default color should be a part of the ColorPalette colors`\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ validator: CSSColor })\n\tdefaultColor?: string;\n\n\t/**\n\t * Defines the open | closed state of the popover.\n\t * @public\n\t * @default false\n\t * @since 1.21.0\n\t */\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at.\n\t * @public\n\t * @default undefined\n\t * @since 1.21.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines the content of the component.\n\t * @public\n\t */\n\t@slot({ \"default\": true, type: HTMLElement, individualSlots: true })\n\tcolors!: Array<IColorPaletteItem>;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tColorPalettePopover.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget responsivePopover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\tget respPopover() {\n\t\treturn this.shadowRoot!.querySelector<ResponsivePopover>(\"[ui5-responsive-popover]\")!;\n\t}\n\n\tclosePopover() {\n\t\tthis.open = false;\n\t}\n\n\tonAfterClose() {\n\t\tthis.closePopover();\n\t\tthis.fireEvent(\"close\");\n\t}\n\n\tonSelectedColor(e: CustomEvent<ColorPaletteItemClickEventDetail>) {\n\t\tthis.closePopover();\n\t\tthis.fireEvent<ColorPalettePopoverItemClickEventDetail>(\"item-click\", e.detail);\n\t}\n\n\t/**\n\t * Returns if the component is opened.\n\t * @protected\n\t * @since 1.0.0-rc.16\n\t */\n\tisOpen() {\n\t\treturn this.open;\n\t}\n\n\tget colorPaletteColors() {\n\t\treturn this.getSlottedNodes<ColorPaletteItem>(\"colors\");\n\t}\n\n\tget _colorPaletteTitle() {\n\t\treturn ColorPalettePopover.i18nBundle.getText(COLORPALETTE_POPOVER_TITLE);\n\t}\n\n\tget _cancelButtonLabel() {\n\t\treturn ColorPalettePopover.i18nBundle.getText(COLOR_PALETTE_DIALOG_CANCEL_BUTTON);\n\t}\n\n\tget _open() {\n\t\treturn this.open || undefined;\n\t}\n}\n\nColorPalettePopover.define();\n\nexport default ColorPalettePopover;\nexport type { ColorPalettePopoverItemClickEventDetail };\n"]}
@@ -38,7 +38,7 @@ declare class ColorPicker extends UI5Element {
38
38
  * @default "rgba(255, 255, 255, 1)"
39
39
  * @public
40
40
  */
41
- color: string;
41
+ value: string;
42
42
  /**
43
43
  * Defines the HEX code of the currently selected color
44
44
  *
@@ -50,12 +50,12 @@ declare class ColorPicker extends UI5Element {
50
50
  * Defines the current main color which is selected via the hue slider and is shown in the main color square.
51
51
  * @private
52
52
  */
53
- _mainColor: ColorRGB;
53
+ _mainValue: ColorRGB;
54
54
  /**
55
55
  * Defines the currenty selected color from the main color section.
56
56
  * @private
57
57
  */
58
- _color: ColorRGB;
58
+ _value: ColorRGB;
59
59
  /**
60
60
  * @private
61
61
  */
@@ -62,7 +62,7 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
62
62
  y: 256 - PICKER_POINTER_WIDTH,
63
63
  };
64
64
  // Default main color is red
65
- this._mainColor = {
65
+ this._mainValue = {
66
66
  r: 255,
67
67
  g: 0,
68
68
  b: 0,
@@ -72,9 +72,9 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
72
72
  this.mouseIn = false;
73
73
  }
74
74
  onBeforeRendering() {
75
- // we have the color & _mainColor properties here
76
- this._color = getRGBColor(this.color);
77
- const tempColor = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, 1)`;
75
+ // we have the color & ._mainValue properties here
76
+ this._value = getRGBColor(this.value);
77
+ const tempColor = `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, 1)`;
78
78
  this._setHex();
79
79
  this._setValues();
80
80
  this.style.setProperty(getScopedVarName("--ui5_Color_Picker_Progress_Container_Color"), tempColor);
@@ -132,7 +132,7 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
132
132
  _handleAlphaInput(e) {
133
133
  const aphaInputValue = e.target.value;
134
134
  this._alpha = parseFloat(aphaInputValue);
135
- this._setColor(this._color);
135
+ this._setColor(this._value);
136
136
  }
137
137
  _handleHueInput(e) {
138
138
  this.selectedHue = e.target.value;
@@ -178,57 +178,57 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
178
178
  let tempColor;
179
179
  switch (target.id) {
180
180
  case "red":
181
- tempColor = { ...this._color, r: targetValue };
181
+ tempColor = { ...this._value, r: targetValue };
182
182
  break;
183
183
  case "green":
184
- tempColor = { ...this._color, g: targetValue };
184
+ tempColor = { ...this._value, g: targetValue };
185
185
  break;
186
186
  case "blue":
187
- tempColor = { ...this._color, b: targetValue };
187
+ tempColor = { ...this._value, b: targetValue };
188
188
  break;
189
189
  default:
190
- tempColor = { ...this._color };
190
+ tempColor = { ...this._value };
191
191
  }
192
192
  this._setColor(tempColor);
193
193
  }
194
194
  _setMainColor(hueValue) {
195
195
  if (hueValue <= 255) {
196
- this._mainColor = {
196
+ this._mainValue = {
197
197
  r: 255,
198
198
  g: hueValue,
199
199
  b: 0,
200
200
  };
201
201
  }
202
202
  else if (hueValue <= 510) {
203
- this._mainColor = {
203
+ this._mainValue = {
204
204
  r: 255 - (hueValue - 255),
205
205
  g: 255,
206
206
  b: 0,
207
207
  };
208
208
  }
209
209
  else if (hueValue <= 765) {
210
- this._mainColor = {
210
+ this._mainValue = {
211
211
  r: 0,
212
212
  g: 255,
213
213
  b: hueValue - 510,
214
214
  };
215
215
  }
216
216
  else if (hueValue <= 1020) {
217
- this._mainColor = {
217
+ this._mainValue = {
218
218
  r: 0,
219
219
  g: 765 - (hueValue - 255),
220
220
  b: 255,
221
221
  };
222
222
  }
223
223
  else if (hueValue <= 1275) {
224
- this._mainColor = {
224
+ this._mainValue = {
225
225
  r: hueValue - 1020,
226
226
  g: 0,
227
227
  b: 255,
228
228
  };
229
229
  }
230
230
  else {
231
- this._mainColor = {
231
+ this._mainValue = {
232
232
  r: 255,
233
233
  g: 0,
234
234
  b: 1275 - (hueValue - 255),
@@ -277,7 +277,7 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
277
277
  };
278
278
  }
279
279
  _setColor(color = { r: 0, g: 0, b: 0 }) {
280
- this.color = `rgba(${color.r}, ${color.g}, ${color.b}, ${this._alpha})`;
280
+ this.value = `rgba(${color.r}, ${color.g}, ${color.b}, ${this._alpha})`;
281
281
  this._wrongHEX = !this.isValidRGBColor(color);
282
282
  this.fireEvent("change");
283
283
  }
@@ -285,7 +285,7 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
285
285
  return color.r >= 0 && color.r <= 255 && color.g >= 0 && color.g <= 255 && color.b >= 0 && color.b <= 255;
286
286
  }
287
287
  _setHex() {
288
- let red = this._color.r.toString(16), green = this._color.g.toString(16), blue = this._color.b.toString(16);
288
+ let red = this._value.r.toString(16), green = this._value.g.toString(16), blue = this._value.b.toString(16);
289
289
  if (red.length === 1) {
290
290
  red = `0${red}`;
291
291
  }
@@ -298,7 +298,7 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
298
298
  this.hex = red + green + blue;
299
299
  }
300
300
  _setValues() {
301
- const hslColours = RGBToHSL(this._color);
301
+ const hslColours = RGBToHSL(this._value);
302
302
  this._selectedCoordinates = {
303
303
  x: ((Math.round(hslColours.l * 100) * 2.56)) - PICKER_POINTER_WIDTH,
304
304
  y: (256 - (Math.round(hslColours.s * 100) * 2.56)) - PICKER_POINTER_WIDTH, // Center the coordinates, because of the height of the circle
@@ -345,30 +345,30 @@ let ColorPicker = ColorPicker_1 = class ColorPicker extends UI5Element {
345
345
  get styles() {
346
346
  return {
347
347
  mainColor: {
348
- "background-color": `rgb(${this._mainColor.r}, ${this._mainColor.g}, ${this._mainColor.b})`,
348
+ "background-color": `rgb(${this._mainValue.r}, ${this._mainValue.g}, ${this._mainValue.b})`,
349
349
  },
350
350
  circle: {
351
351
  left: `${this._selectedCoordinates.x}px`,
352
352
  top: `${this._selectedCoordinates.y}px`,
353
353
  },
354
354
  colorSpan: {
355
- "background-color": `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, ${this._alpha})`,
355
+ "background-color": `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, ${this._alpha})`,
356
356
  },
357
357
  };
358
358
  }
359
359
  };
360
360
  __decorate([
361
361
  property({ validator: CSSColor, defaultValue: "rgba(255, 255, 255, 1)" })
362
- ], ColorPicker.prototype, "color", void 0);
362
+ ], ColorPicker.prototype, "value", void 0);
363
363
  __decorate([
364
364
  property({ defaultValue: "ffffff", noAttribute: true })
365
365
  ], ColorPicker.prototype, "hex", void 0);
366
366
  __decorate([
367
367
  property({ type: Object })
368
- ], ColorPicker.prototype, "_mainColor", void 0);
368
+ ], ColorPicker.prototype, "_mainValue", void 0);
369
369
  __decorate([
370
370
  property({ type: Object })
371
- ], ColorPicker.prototype, "_color", void 0);
371
+ ], ColorPicker.prototype, "_value", void 0);
372
372
  __decorate([
373
373
  property({ type: Object })
374
374
  ], ColorPicker.prototype, "_selectedCoordinates", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../src/ColorPicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,QAAQ,MAAM,gDAAgD,CAAC;AACtE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,GACR,MAAM,sDAAsD,CAAC;AAK9D,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AACnF,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EACN,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,mCAAmC,CAAC;AAE3C,SAAS;AACT,OAAO,cAAc,MAAM,uCAAuC,CAAC;AAEnE,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAOjC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAkBH,IAAM,WAAW,mBAAjB,MAAM,WAA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,SAAS;QACnB,MAAM,EAAE,cAAc;QACtB,QAAQ,EAAE,mBAAmB;QAC7B,YAAY,EAAE;YACb,KAAK;YACL,MAAM;YACN,KAAK;SACL;KACD,CAAC;IACF;;;OAGG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,WAAW,CAkbhB;AAED,WAAW,CAAC,MAAM,EAAE,CAAC;AAErB,eAAe,WAAW,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport { isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport CSSColor from \"@ui5/webcomponents-base/dist/types/CSSColor.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport Float from \"@ui5/webcomponents-base/dist/types/Float.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getScopedVarName } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\nimport {\n\tgetRGBColor,\n\tHSLToRGB,\n\tHEXToRGB,\n\tRGBToHSL,\n} from \"@ui5/webcomponents-base/dist/util/ColorConversion.js\";\nimport type {\n\tColorHSL,\n\tColorRGB,\n} from \"@ui5/webcomponents-base/dist/util/ColorConversion.js\";\nimport ColorPickerTemplate from \"./generated/templates/ColorPickerTemplate.lit.js\";\nimport Input from \"./Input.js\";\nimport Slider from \"./Slider.js\";\nimport Label from \"./Label.js\";\n\nimport {\n\tCOLORPICKER_ALPHA_SLIDER,\n\tCOLORPICKER_HUE_SLIDER,\n\tCOLORPICKER_HEX,\n\tCOLORPICKER_RED,\n\tCOLORPICKER_GREEN,\n\tCOLORPICKER_BLUE,\n\tCOLORPICKER_ALPHA,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport ColorPickerCss from \"./generated/themes/ColorPicker.css.js\";\n\nconst PICKER_POINTER_WIDTH = 6.5;\n\ntype ColorCoordinates = {\n\tx: number,\n\ty: number,\n}\n\n/**\n * @class\n *\n * ### Overview\n * The `ui5-color-picker` allows users to choose any color and provides different input options for selecting colors.\n *\n * ### Usage\n *\n * #### When to use\n * Use the color picker if:\n *\n * - users need to select any color freely.\n *\n * #### When not to use\n *\n * - Users need to select one color from a predefined set of colors. Use the ColorPalette component instead.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/ColorPicker.js\";`\n * @constructor\n * @since 1.0.0-rc.12\n * @extends UI5Element\n * @public\n */\n\n@customElement({\n\ttag: \"ui5-color-picker\",\n\trenderer: litRender,\n\tstyles: ColorPickerCss,\n\ttemplate: ColorPickerTemplate,\n\tdependencies: [\n\t\tInput,\n\t\tSlider,\n\t\tLabel,\n\t],\n})\n/**\n * Fired when the the selected color is changed\n * @public\n */\n@event(\"change\")\nclass ColorPicker extends UI5Element {\n\t/**\n\t * Defines the currently selected color of the component.\n\t *\n\t * **Note**: use HEX, RGB, RGBA, HSV formats or a CSS color name when modifying this property.\n\t * @default \"rgba(255, 255, 255, 1)\"\n\t * @public\n\t */\n\t@property({ validator: CSSColor, defaultValue: \"rgba(255, 255, 255, 1)\" })\n\tcolor!: string;\n\n\t/**\n\t * Defines the HEX code of the currently selected color\n\t *\n\t * **Note**: If Alpha(transperancy) is set it is not included in this property. Use `color` property.\n\t * @private\n\t */\n\t@property({ defaultValue: \"ffffff\", noAttribute: true })\n\thex!: string;\n\n\t/**\n\t * Defines the current main color which is selected via the hue slider and is shown in the main color square.\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_mainColor!: ColorRGB;\n\n\t/**\n\t * Defines the currenty selected color from the main color section.\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_color!: ColorRGB;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_selectedCoordinates!: ColorCoordinates;\n\n\t/**\n\t * @private\n\t */\n\t@property({ validator: Float, defaultValue: 1 })\n\t_alpha!: number;\n\n\t/**\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\t_hue!: number;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_isSelectedColorChanged!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_isHueValueChanged!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_wrongHEX!: boolean;\n\n\tselectedHue: number;\n\n\tmouseDown: boolean;\n\n\tmouseIn: boolean;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tColorPicker.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\n\t\t// Bottom Right corner\n\t\tthis._selectedCoordinates = {\n\t\t\tx: 256 - PICKER_POINTER_WIDTH,\n\t\t\ty: 256 - PICKER_POINTER_WIDTH,\n\t\t};\n\n\t\t// Default main color is red\n\t\tthis._mainColor = {\n\t\t\tr: 255,\n\t\t\tg: 0,\n\t\t\tb: 0,\n\t\t};\n\n\t\tthis.selectedHue = 0;\n\n\t\tthis.mouseDown = false;\n\t\tthis.mouseIn = false;\n\t}\n\n\tonBeforeRendering() {\n\t\t// we have the color & _mainColor properties here\n\t\tthis._color = getRGBColor(this.color);\n\t\tconst tempColor = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, 1)`;\n\t\tthis._setHex();\n\t\tthis._setValues();\n\t\tthis.style.setProperty(getScopedVarName(\"--ui5_Color_Picker_Progress_Container_Color\"), tempColor);\n\t}\n\n\t_handleMouseDown(e: MouseEvent) {\n\t\tthis.mouseDown = true;\n\t\tthis.mouseIn = true;\n\t\tthis._changeSelectedColor(e.offsetX, e.offsetY);\n\t}\n\n\t_handleMouseUp() {\n\t\tthis.mouseDown = false;\n\t}\n\n\t_handleMouseOut(e: MouseEvent) {\n\t\tif (!this.mouseIn || !this.mouseDown) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = e.target as HTMLElement;\n\t\tconst offsetHeight: number = target.offsetHeight;\n\t\tconst offsetWidth: number = target.offsetWidth;\n\t\tconst isLeft: boolean = e.offsetX <= 0;\n\t\tconst isUp: boolean = e.offsetY <= 0;\n\t\tconst isDown: boolean = e.offsetY >= target.offsetHeight;\n\t\tconst isRight: boolean = e.offsetX >= target.offsetWidth;\n\n\t\tlet x: number,\n\t\t\ty: number;\n\n\t\tif (isLeft) {\n\t\t\tx = 0;\n\t\t} else if (isRight) {\n\t\t\t// Note: - e.offsetWidth has been changed to e.target.offsetWidth as offsetWidth does not exist on the event object\n\t\t\tx = offsetWidth;\n\t\t} else {\n\t\t\tx = e.offsetX;\n\t\t}\n\n\t\tif (isUp) {\n\t\t\ty = 0;\n\t\t} else if (isDown) {\n\t\t\t// Note: - e.offsetWidth has been changed to e.target.offsetWidth as offsetWidth does not exist on the event object\n\t\t\ty = offsetHeight;\n\t\t} else {\n\t\t\ty = e.offsetY;\n\t\t}\n\n\t\tthis._changeSelectedColor(x, y);\n\t\tthis.mouseIn = false;\n\t\tthis.mouseDown = false;\n\t}\n\n\t_handleMouseMove(e: MouseEvent) {\n\t\tif (!this.mouseDown || !this.mouseIn) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changeSelectedColor(e.offsetX, e.offsetY);\n\t}\n\n\t_handleAlphaInput(e: CustomEvent) {\n\t\tconst aphaInputValue: string = (e.target as Input).value;\n\t\tthis._alpha = parseFloat(aphaInputValue);\n\t\tthis._setColor(this._color);\n\t}\n\n\t_handleHueInput(e: CustomEvent) {\n\t\tthis.selectedHue = (e.target as Slider).value;\n\t\tthis._hue = this.selectedHue;\n\t\tthis._setMainColor(this._hue);\n\t\t// Idication that changes to the hue value triggered as a result of user pressing over the hue slider.\n\t\tthis._isHueValueChanged = true;\n\n\t\tconst x: number = this._selectedCoordinates.x + PICKER_POINTER_WIDTH;\n\t\tconst y: number = this._selectedCoordinates.y + PICKER_POINTER_WIDTH;\n\t\tconst tempColor = this._calculateColorFromCoordinates(x, y);\n\n\t\tif (tempColor) {\n\t\t\tthis._setColor(HSLToRGB(tempColor));\n\t\t}\n\t}\n\n\t_handleHEXChange(e: CustomEvent | KeyboardEvent) {\n\t\tconst hexRegex = new RegExp(\"^[<0-9 abcdef]+$\");\n\t\tconst input: Input = (e.target as Input);\n\t\tlet inputValueLowerCase = input.value.toLowerCase();\n\n\t\t// Shorthand Syntax\n\t\tif (inputValueLowerCase.length === 3) {\n\t\t\tinputValueLowerCase = `${inputValueLowerCase[0]}${inputValueLowerCase[0]}${inputValueLowerCase[1]}${inputValueLowerCase[1]}${inputValueLowerCase[2]}${inputValueLowerCase[2]}`;\n\t\t}\n\n\t\tconst isNewValueValid = inputValueLowerCase.length === 6 && hexRegex.test(inputValueLowerCase);\n\n\t\tif (isNewValueValid && input.value !== inputValueLowerCase) {\n\t\t\tthis._wrongHEX = false;\n\t\t\tinput.value = inputValueLowerCase;\n\t\t}\n\n\t\tif (inputValueLowerCase === this.hex) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.hex = inputValueLowerCase;\n\n\t\tif (!isNewValueValid) {\n\t\t\tthis._wrongHEX = true;\n\t\t} else {\n\t\t\tthis._wrongHEX = false;\n\t\t\tthis._setColor(HEXToRGB(this.hex));\n\t\t}\n\t}\n\n\t_handleRGBInputsChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tconst targetValue = parseInt(target.value) || 0;\n\t\tlet tempColor;\n\t\tswitch (target.id) {\n\t\tcase \"red\":\n\t\t\ttempColor = { ...this._color, r: targetValue };\n\t\t\tbreak;\n\n\t\tcase \"green\":\n\t\t\ttempColor = { ...this._color, g: targetValue };\n\t\t\tbreak;\n\n\t\tcase \"blue\":\n\t\t\ttempColor = { ...this._color, b: targetValue };\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttempColor = { ...this._color };\n\t\t}\n\n\t\tthis._setColor(tempColor);\n\t}\n\n\t_setMainColor(hueValue: number) {\n\t\tif (hueValue <= 255) {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: 255,\n\t\t\t\tg: hueValue,\n\t\t\t\tb: 0,\n\t\t\t};\n\t\t} else if (hueValue <= 510) {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: 255 - (hueValue - 255),\n\t\t\t\tg: 255,\n\t\t\t\tb: 0,\n\t\t\t};\n\t\t} else if (hueValue <= 765) {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: 0,\n\t\t\t\tg: 255,\n\t\t\t\tb: hueValue - 510,\n\t\t\t};\n\t\t} else if (hueValue <= 1020) {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: 0,\n\t\t\t\tg: 765 - (hueValue - 255),\n\t\t\t\tb: 255,\n\t\t\t};\n\t\t} else if (hueValue <= 1275) {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: hueValue - 1020,\n\t\t\t\tg: 0,\n\t\t\t\tb: 255,\n\t\t\t};\n\t\t} else {\n\t\t\tthis._mainColor = {\n\t\t\t\tr: 255,\n\t\t\t\tg: 0,\n\t\t\t\tb: 1275 - (hueValue - 255),\n\t\t\t};\n\t\t}\n\t}\n\n\t_handleAlphaChange() {\n\t\tthis._alpha = this._alpha < 0 ? 0 : this._alpha;\n\t\tthis._alpha = this._alpha > 1 ? 1 : this._alpha;\n\t}\n\n\t_changeSelectedColor(x: number, y: number) {\n\t\tthis._selectedCoordinates = {\n\t\t\tx: x - PICKER_POINTER_WIDTH, // Center the coordinates, because of the width of the circle\n\t\t\ty: y - PICKER_POINTER_WIDTH, // Center the coordinates, because of the height of the circle\n\t\t};\n\n\t\t// Idication that changes to the color settings are triggered as a result of user pressing over the main color section.\n\t\tthis._isSelectedColorChanged = true;\n\n\t\tconst tempColor = this._calculateColorFromCoordinates(x, y);\n\t\tif (tempColor) {\n\t\t\tthis._setColor(HSLToRGB(tempColor));\n\t\t}\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isEnter(e)) {\n\t\t\tthis._handleHEXChange(e);\n\t\t}\n\t}\n\n\t_calculateColorFromCoordinates(x: number, y: number) {\n\t\t// By using the selected coordinates(x = Lightness, y = Saturation) and hue(selected from the hue slider)\n\t\t// and HSL format, the color will be parsed to RGB\n\t\t// 0 ≤ H < 360\n\t\t// 4.251 because with 4.25 we get out of the colors range.\n\t\tconst h = this._hue / 4.251;\n\n\t\t// 0 ≤ S ≤ 1\n\t\tconst s = 1 - +(Math.round(parseFloat((y / 256) + \"e+2\")) + \"e-2\"); // eslint-disable-line\n\n\t\t// 0 ≤ V ≤ 1\n\t\tconst l = +(Math.round(parseFloat((x / 256) + \"e+2\")) + \"e-2\"); // eslint-disable-line\n\n\t\tif (!s || !l) {\n\t\t\t// The event is finished out of the main color section\n\t\t\treturn;\n\t\t}\n\n\t\treturn {\n\t\t\th,\n\t\t\ts,\n\t\t\tl,\n\t\t};\n\t}\n\n\t_setColor(color: ColorRGB = { r: 0, g: 0, b: 0 }) {\n\t\tthis.color = `rgba(${color.r}, ${color.g}, ${color.b}, ${this._alpha})`;\n\t\tthis._wrongHEX = !this.isValidRGBColor(color);\n\t\tthis.fireEvent(\"change\");\n\t}\n\n\tisValidRGBColor(color: ColorRGB) {\n\t\treturn color.r >= 0 && color.r <= 255 && color.g >= 0 && color.g <= 255 && color.b >= 0 && color.b <= 255;\n\t}\n\n\t_setHex() {\n\t\tlet red = this._color.r.toString(16),\n\t\t\tgreen = this._color.g.toString(16),\n\t\t\tblue = this._color.b.toString(16);\n\n\t\tif (red.length === 1) {\n\t\t\tred = `0${red}`;\n\t\t}\n\t\tif (green.length === 1) {\n\t\t\tgreen = `0${green}`;\n\t\t}\n\t\tif (blue.length === 1) {\n\t\t\tblue = `0${blue}`;\n\t\t}\n\n\t\tthis.hex = red + green + blue;\n\t}\n\n\t_setValues() {\n\t\tconst hslColours: ColorHSL = RGBToHSL(this._color);\n\t\tthis._selectedCoordinates = {\n\t\t\tx: ((Math.round(hslColours.l * 100) * 2.56)) - PICKER_POINTER_WIDTH, // Center the coordinates, because of the width of the circle\n\t\t\ty: (256 - (Math.round(hslColours.s * 100) * 2.56)) - PICKER_POINTER_WIDTH, // Center the coordinates, because of the height of the circle\n\t\t};\n\n\t\tif (this._isSelectedColorChanged) { // We shouldn't update the hue value when user presses over the main color section.\n\t\t\tthis._isSelectedColorChanged = false;\n\t\t} else if (this._isHueValueChanged) { // We shouldn't recalculate the hue value when user changes the hue slider.\n\t\t\tthis._isHueValueChanged = false;\n\t\t\tthis._hue = this.selectedHue ? this.selectedHue : this._hue;\n\t\t} else {\n\t\t\tthis._hue = Math.round(hslColours.h * 4.25);\n\t\t}\n\n\t\tthis._setMainColor(this._hue);\n\t}\n\n\tget hueSliderLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_HUE_SLIDER);\n\t}\n\n\tget alphaSliderLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_ALPHA_SLIDER);\n\t}\n\n\tget hexInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_HEX);\n\t}\n\n\tget redInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_RED);\n\t}\n\n\tget greenInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_GREEN);\n\t}\n\n\tget blueInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_BLUE);\n\t}\n\n\tget alphaInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_ALPHA);\n\t}\n\n\tget inputsDisabled() {\n\t\treturn this._wrongHEX ? true : undefined;\n\t}\n\n\tget hexInputErrorState() {\n\t\treturn this._wrongHEX ? \"Error\" : undefined;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tmainColor: {\n\t\t\t\t\"background-color\": `rgb(${this._mainColor.r}, ${this._mainColor.g}, ${this._mainColor.b})`,\n\t\t\t},\n\t\t\tcircle: {\n\t\t\t\tleft: `${this._selectedCoordinates.x}px`,\n\t\t\t\ttop: `${this._selectedCoordinates.y}px`,\n\t\t\t},\n\t\t\tcolorSpan: {\n\t\t\t\t\"background-color\": `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, ${this._alpha})`,\n\t\t\t},\n\t\t};\n\t}\n}\n\nColorPicker.define();\n\nexport default ColorPicker;\n"]}
1
+ {"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../src/ColorPicker.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,QAAQ,MAAM,gDAAgD,CAAC;AACtE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,GACR,MAAM,sDAAsD,CAAC;AAK9D,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AACnF,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EACN,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,mCAAmC,CAAC;AAE3C,SAAS;AACT,OAAO,cAAc,MA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;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CACR;AApEf,WAAW;IAhBhB,aAAa,CAAC;QACd,GAAG,EAAE,kBAAkB;QACvB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,cAAc;QACtB,QAAQ,EAAE,mBAAmB;QAC7B,YAAY,EAAE;YACb,KAAK;YACL,MAAM;YACN,KAAK;SACL;KACD,CAAC;IACF;;;OAGG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,WAAW,CAkbhB;AAED,WAAW,CAAC,MAAM,EAAE,CAAC;AAErB,eAAe,WAAW,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport { isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport CSSColor from \"@ui5/webcomponents-base/dist/types/CSSColor.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport Float from \"@ui5/webcomponents-base/dist/types/Float.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport { getScopedVarName } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\nimport {\n\tgetRGBColor,\n\tHSLToRGB,\n\tHEXToRGB,\n\tRGBToHSL,\n} from \"@ui5/webcomponents-base/dist/util/ColorConversion.js\";\nimport type {\n\tColorHSL,\n\tColorRGB,\n} from \"@ui5/webcomponents-base/dist/util/ColorConversion.js\";\nimport ColorPickerTemplate from \"./generated/templates/ColorPickerTemplate.lit.js\";\nimport Input from \"./Input.js\";\nimport Slider from \"./Slider.js\";\nimport Label from \"./Label.js\";\n\nimport {\n\tCOLORPICKER_ALPHA_SLIDER,\n\tCOLORPICKER_HUE_SLIDER,\n\tCOLORPICKER_HEX,\n\tCOLORPICKER_RED,\n\tCOLORPICKER_GREEN,\n\tCOLORPICKER_BLUE,\n\tCOLORPICKER_ALPHA,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport ColorPickerCss from \"./generated/themes/ColorPicker.css.js\";\n\nconst PICKER_POINTER_WIDTH = 6.5;\n\ntype ColorCoordinates = {\n\tx: number,\n\ty: number,\n}\n\n/**\n * @class\n *\n * ### Overview\n * The `ui5-color-picker` allows users to choose any color and provides different input options for selecting colors.\n *\n * ### Usage\n *\n * #### When to use\n * Use the color picker if:\n *\n * - users need to select any color freely.\n *\n * #### When not to use\n *\n * - Users need to select one color from a predefined set of colors. Use the ColorPalette component instead.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/ColorPicker.js\";`\n * @constructor\n * @since 1.0.0-rc.12\n * @extends UI5Element\n * @public\n */\n\n@customElement({\n\ttag: \"ui5-color-picker\",\n\trenderer: litRender,\n\tstyles: ColorPickerCss,\n\ttemplate: ColorPickerTemplate,\n\tdependencies: [\n\t\tInput,\n\t\tSlider,\n\t\tLabel,\n\t],\n})\n/**\n * Fired when the the selected color is changed\n * @public\n */\n@event(\"change\")\nclass ColorPicker extends UI5Element {\n\t/**\n\t * Defines the currently selected color of the component.\n\t *\n\t * **Note**: use HEX, RGB, RGBA, HSV formats or a CSS color name when modifying this property.\n\t * @default \"rgba(255, 255, 255, 1)\"\n\t * @public\n\t */\n\t@property({ validator: CSSColor, defaultValue: \"rgba(255, 255, 255, 1)\" })\n\tvalue!: string;\n\n\t/**\n\t * Defines the HEX code of the currently selected color\n\t *\n\t * **Note**: If Alpha(transperancy) is set it is not included in this property. Use `color` property.\n\t * @private\n\t */\n\t@property({ defaultValue: \"ffffff\", noAttribute: true })\n\thex!: string;\n\n\t/**\n\t * Defines the current main color which is selected via the hue slider and is shown in the main color square.\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_mainValue!: ColorRGB;\n\n\t/**\n\t * Defines the currenty selected color from the main color section.\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_value!: ColorRGB;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Object })\n\t_selectedCoordinates!: ColorCoordinates;\n\n\t/**\n\t * @private\n\t */\n\t@property({ validator: Float, defaultValue: 1 })\n\t_alpha!: number;\n\n\t/**\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\t_hue!: number;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_isSelectedColorChanged!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_isHueValueChanged!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_wrongHEX!: boolean;\n\n\tselectedHue: number;\n\n\tmouseDown: boolean;\n\n\tmouseIn: boolean;\n\n\tstatic i18nBundle: I18nBundle;\n\n\tstatic async onDefine() {\n\t\tColorPicker.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\n\t\t// Bottom Right corner\n\t\tthis._selectedCoordinates = {\n\t\t\tx: 256 - PICKER_POINTER_WIDTH,\n\t\t\ty: 256 - PICKER_POINTER_WIDTH,\n\t\t};\n\n\t\t// Default main color is red\n\t\tthis._mainValue = {\n\t\t\tr: 255,\n\t\t\tg: 0,\n\t\t\tb: 0,\n\t\t};\n\n\t\tthis.selectedHue = 0;\n\n\t\tthis.mouseDown = false;\n\t\tthis.mouseIn = false;\n\t}\n\n\tonBeforeRendering() {\n\t\t// we have the color & ._mainValue properties here\n\t\tthis._value = getRGBColor(this.value);\n\t\tconst tempColor = `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, 1)`;\n\t\tthis._setHex();\n\t\tthis._setValues();\n\t\tthis.style.setProperty(getScopedVarName(\"--ui5_Color_Picker_Progress_Container_Color\"), tempColor);\n\t}\n\n\t_handleMouseDown(e: MouseEvent) {\n\t\tthis.mouseDown = true;\n\t\tthis.mouseIn = true;\n\t\tthis._changeSelectedColor(e.offsetX, e.offsetY);\n\t}\n\n\t_handleMouseUp() {\n\t\tthis.mouseDown = false;\n\t}\n\n\t_handleMouseOut(e: MouseEvent) {\n\t\tif (!this.mouseIn || !this.mouseDown) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst target = e.target as HTMLElement;\n\t\tconst offsetHeight: number = target.offsetHeight;\n\t\tconst offsetWidth: number = target.offsetWidth;\n\t\tconst isLeft: boolean = e.offsetX <= 0;\n\t\tconst isUp: boolean = e.offsetY <= 0;\n\t\tconst isDown: boolean = e.offsetY >= target.offsetHeight;\n\t\tconst isRight: boolean = e.offsetX >= target.offsetWidth;\n\n\t\tlet x: number,\n\t\t\ty: number;\n\n\t\tif (isLeft) {\n\t\t\tx = 0;\n\t\t} else if (isRight) {\n\t\t\t// Note: - e.offsetWidth has been changed to e.target.offsetWidth as offsetWidth does not exist on the event object\n\t\t\tx = offsetWidth;\n\t\t} else {\n\t\t\tx = e.offsetX;\n\t\t}\n\n\t\tif (isUp) {\n\t\t\ty = 0;\n\t\t} else if (isDown) {\n\t\t\t// Note: - e.offsetWidth has been changed to e.target.offsetWidth as offsetWidth does not exist on the event object\n\t\t\ty = offsetHeight;\n\t\t} else {\n\t\t\ty = e.offsetY;\n\t\t}\n\n\t\tthis._changeSelectedColor(x, y);\n\t\tthis.mouseIn = false;\n\t\tthis.mouseDown = false;\n\t}\n\n\t_handleMouseMove(e: MouseEvent) {\n\t\tif (!this.mouseDown || !this.mouseIn) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changeSelectedColor(e.offsetX, e.offsetY);\n\t}\n\n\t_handleAlphaInput(e: CustomEvent) {\n\t\tconst aphaInputValue: string = (e.target as Input).value;\n\t\tthis._alpha = parseFloat(aphaInputValue);\n\t\tthis._setColor(this._value);\n\t}\n\n\t_handleHueInput(e: CustomEvent) {\n\t\tthis.selectedHue = (e.target as Slider).value;\n\t\tthis._hue = this.selectedHue;\n\t\tthis._setMainColor(this._hue);\n\t\t// Idication that changes to the hue value triggered as a result of user pressing over the hue slider.\n\t\tthis._isHueValueChanged = true;\n\n\t\tconst x: number = this._selectedCoordinates.x + PICKER_POINTER_WIDTH;\n\t\tconst y: number = this._selectedCoordinates.y + PICKER_POINTER_WIDTH;\n\t\tconst tempColor = this._calculateColorFromCoordinates(x, y);\n\n\t\tif (tempColor) {\n\t\t\tthis._setColor(HSLToRGB(tempColor));\n\t\t}\n\t}\n\n\t_handleHEXChange(e: CustomEvent | KeyboardEvent) {\n\t\tconst hexRegex = new RegExp(\"^[<0-9 abcdef]+$\");\n\t\tconst input: Input = (e.target as Input);\n\t\tlet inputValueLowerCase = input.value.toLowerCase();\n\n\t\t// Shorthand Syntax\n\t\tif (inputValueLowerCase.length === 3) {\n\t\t\tinputValueLowerCase = `${inputValueLowerCase[0]}${inputValueLowerCase[0]}${inputValueLowerCase[1]}${inputValueLowerCase[1]}${inputValueLowerCase[2]}${inputValueLowerCase[2]}`;\n\t\t}\n\n\t\tconst isNewValueValid = inputValueLowerCase.length === 6 && hexRegex.test(inputValueLowerCase);\n\n\t\tif (isNewValueValid && input.value !== inputValueLowerCase) {\n\t\t\tthis._wrongHEX = false;\n\t\t\tinput.value = inputValueLowerCase;\n\t\t}\n\n\t\tif (inputValueLowerCase === this.hex) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.hex = inputValueLowerCase;\n\n\t\tif (!isNewValueValid) {\n\t\t\tthis._wrongHEX = true;\n\t\t} else {\n\t\t\tthis._wrongHEX = false;\n\t\t\tthis._setColor(HEXToRGB(this.hex));\n\t\t}\n\t}\n\n\t_handleRGBInputsChange(e: CustomEvent) {\n\t\tconst target = e.target as Input;\n\t\tconst targetValue = parseInt(target.value) || 0;\n\t\tlet tempColor;\n\t\tswitch (target.id) {\n\t\tcase \"red\":\n\t\t\ttempColor = { ...this._value, r: targetValue };\n\t\t\tbreak;\n\n\t\tcase \"green\":\n\t\t\ttempColor = { ...this._value, g: targetValue };\n\t\t\tbreak;\n\n\t\tcase \"blue\":\n\t\t\ttempColor = { ...this._value, b: targetValue };\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttempColor = { ...this._value };\n\t\t}\n\n\t\tthis._setColor(tempColor);\n\t}\n\n\t_setMainColor(hueValue: number) {\n\t\tif (hueValue <= 255) {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: 255,\n\t\t\t\tg: hueValue,\n\t\t\t\tb: 0,\n\t\t\t};\n\t\t} else if (hueValue <= 510) {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: 255 - (hueValue - 255),\n\t\t\t\tg: 255,\n\t\t\t\tb: 0,\n\t\t\t};\n\t\t} else if (hueValue <= 765) {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: 0,\n\t\t\t\tg: 255,\n\t\t\t\tb: hueValue - 510,\n\t\t\t};\n\t\t} else if (hueValue <= 1020) {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: 0,\n\t\t\t\tg: 765 - (hueValue - 255),\n\t\t\t\tb: 255,\n\t\t\t};\n\t\t} else if (hueValue <= 1275) {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: hueValue - 1020,\n\t\t\t\tg: 0,\n\t\t\t\tb: 255,\n\t\t\t};\n\t\t} else {\n\t\t\tthis._mainValue = {\n\t\t\t\tr: 255,\n\t\t\t\tg: 0,\n\t\t\t\tb: 1275 - (hueValue - 255),\n\t\t\t};\n\t\t}\n\t}\n\n\t_handleAlphaChange() {\n\t\tthis._alpha = this._alpha < 0 ? 0 : this._alpha;\n\t\tthis._alpha = this._alpha > 1 ? 1 : this._alpha;\n\t}\n\n\t_changeSelectedColor(x: number, y: number) {\n\t\tthis._selectedCoordinates = {\n\t\t\tx: x - PICKER_POINTER_WIDTH, // Center the coordinates, because of the width of the circle\n\t\t\ty: y - PICKER_POINTER_WIDTH, // Center the coordinates, because of the height of the circle\n\t\t};\n\n\t\t// Idication that changes to the color settings are triggered as a result of user pressing over the main color section.\n\t\tthis._isSelectedColorChanged = true;\n\n\t\tconst tempColor = this._calculateColorFromCoordinates(x, y);\n\t\tif (tempColor) {\n\t\t\tthis._setColor(HSLToRGB(tempColor));\n\t\t}\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tif (isEnter(e)) {\n\t\t\tthis._handleHEXChange(e);\n\t\t}\n\t}\n\n\t_calculateColorFromCoordinates(x: number, y: number) {\n\t\t// By using the selected coordinates(x = Lightness, y = Saturation) and hue(selected from the hue slider)\n\t\t// and HSL format, the color will be parsed to RGB\n\t\t// 0 ≤ H < 360\n\t\t// 4.251 because with 4.25 we get out of the colors range.\n\t\tconst h = this._hue / 4.251;\n\n\t\t// 0 ≤ S ≤ 1\n\t\tconst s = 1 - +(Math.round(parseFloat((y / 256) + \"e+2\")) + \"e-2\"); // eslint-disable-line\n\n\t\t// 0 ≤ V ≤ 1\n\t\tconst l = +(Math.round(parseFloat((x / 256) + \"e+2\")) + \"e-2\"); // eslint-disable-line\n\n\t\tif (!s || !l) {\n\t\t\t// The event is finished out of the main color section\n\t\t\treturn;\n\t\t}\n\n\t\treturn {\n\t\t\th,\n\t\t\ts,\n\t\t\tl,\n\t\t};\n\t}\n\n\t_setColor(color: ColorRGB = { r: 0, g: 0, b: 0 }) {\n\t\tthis.value = `rgba(${color.r}, ${color.g}, ${color.b}, ${this._alpha})`;\n\t\tthis._wrongHEX = !this.isValidRGBColor(color);\n\t\tthis.fireEvent(\"change\");\n\t}\n\n\tisValidRGBColor(color: ColorRGB) {\n\t\treturn color.r >= 0 && color.r <= 255 && color.g >= 0 && color.g <= 255 && color.b >= 0 && color.b <= 255;\n\t}\n\n\t_setHex() {\n\t\tlet red = this._value.r.toString(16),\n\t\t\tgreen = this._value.g.toString(16),\n\t\t\tblue = this._value.b.toString(16);\n\n\t\tif (red.length === 1) {\n\t\t\tred = `0${red}`;\n\t\t}\n\t\tif (green.length === 1) {\n\t\t\tgreen = `0${green}`;\n\t\t}\n\t\tif (blue.length === 1) {\n\t\t\tblue = `0${blue}`;\n\t\t}\n\n\t\tthis.hex = red + green + blue;\n\t}\n\n\t_setValues() {\n\t\tconst hslColours: ColorHSL = RGBToHSL(this._value);\n\t\tthis._selectedCoordinates = {\n\t\t\tx: ((Math.round(hslColours.l * 100) * 2.56)) - PICKER_POINTER_WIDTH, // Center the coordinates, because of the width of the circle\n\t\t\ty: (256 - (Math.round(hslColours.s * 100) * 2.56)) - PICKER_POINTER_WIDTH, // Center the coordinates, because of the height of the circle\n\t\t};\n\n\t\tif (this._isSelectedColorChanged) { // We shouldn't update the hue value when user presses over the main color section.\n\t\t\tthis._isSelectedColorChanged = false;\n\t\t} else if (this._isHueValueChanged) { // We shouldn't recalculate the hue value when user changes the hue slider.\n\t\t\tthis._isHueValueChanged = false;\n\t\t\tthis._hue = this.selectedHue ? this.selectedHue : this._hue;\n\t\t} else {\n\t\t\tthis._hue = Math.round(hslColours.h * 4.25);\n\t\t}\n\n\t\tthis._setMainColor(this._hue);\n\t}\n\n\tget hueSliderLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_HUE_SLIDER);\n\t}\n\n\tget alphaSliderLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_ALPHA_SLIDER);\n\t}\n\n\tget hexInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_HEX);\n\t}\n\n\tget redInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_RED);\n\t}\n\n\tget greenInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_GREEN);\n\t}\n\n\tget blueInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_BLUE);\n\t}\n\n\tget alphaInputLabel() {\n\t\treturn ColorPicker.i18nBundle.getText(COLORPICKER_ALPHA);\n\t}\n\n\tget inputsDisabled() {\n\t\treturn this._wrongHEX ? true : undefined;\n\t}\n\n\tget hexInputErrorState() {\n\t\treturn this._wrongHEX ? \"Error\" : undefined;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tmainColor: {\n\t\t\t\t\"background-color\": `rgb(${this._mainValue.r}, ${this._mainValue.g}, ${this._mainValue.b})`,\n\t\t\t},\n\t\t\tcircle: {\n\t\t\t\tleft: `${this._selectedCoordinates.x}px`,\n\t\t\t\ttop: `${this._selectedCoordinates.y}px`,\n\t\t\t},\n\t\t\tcolorSpan: {\n\t\t\t\t\"background-color\": `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, ${this._alpha})`,\n\t\t\t},\n\t\t};\n\t}\n}\n\nColorPicker.define();\n\nexport default ColorPicker;\n"]}
@@ -304,6 +304,7 @@ declare class ComboBox extends UI5Element {
304
304
  "min-width": string;
305
305
  "max-width": string;
306
306
  };
307
+ popoverValueStateMessage: {};
307
308
  };
308
309
  get classes(): {
309
310
  popover: {
package/dist/ComboBox.js CHANGED
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  var ComboBox_1;
8
8
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
9
+ import { renderFinished } from "@ui5/webcomponents-base/dist/Render.js";
9
10
  import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
10
11
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
11
12
  import event from "@ui5/webcomponents-base/dist/decorators/event.js";
@@ -32,7 +33,6 @@ import * as Filters from "./Filters.js";
32
33
  import { VALUE_STATE_SUCCESS, VALUE_STATE_ERROR, VALUE_STATE_WARNING, VALUE_STATE_INFORMATION, VALUE_STATE_TYPE_SUCCESS, VALUE_STATE_TYPE_INFORMATION, VALUE_STATE_TYPE_ERROR, VALUE_STATE_TYPE_WARNING, INPUT_SUGGESTIONS_TITLE, SELECT_OPTIONS, LIST_ITEM_POSITION, LIST_ITEM_GROUP_HEADER, INPUT_CLEAR_ICON_ACC_NAME, } from "./generated/i18n/i18n-defaults.js";
33
34
  // Templates
34
35
  import ComboBoxTemplate from "./generated/templates/ComboBoxTemplate.lit.js";
35
- import ComboBoxPopoverTemplate from "./generated/templates/ComboBoxPopoverTemplate.lit.js";
36
36
  // Styles
37
37
  import ComboBoxCss from "./generated/themes/ComboBox.css.js";
38
38
  import ComboBoxPopoverCss from "./generated/themes/ComboBoxPopover.css.js";
@@ -173,7 +173,8 @@ let ComboBox = ComboBox_1 = class ComboBox extends UI5Element {
173
173
  e.stopImmediatePropagation();
174
174
  return;
175
175
  }
176
- if (!(this.shadowRoot.contains(toBeFocused)) && (this.staticAreaItem !== e.relatedTarget)) {
176
+ const popover = this.shadowRoot.querySelector("[ui5-responsive-popover]");
177
+ if (!(this.getDomRef().contains(toBeFocused)) && (popover !== e.relatedTarget)) {
177
178
  this.focused = false;
178
179
  !isPhone() && this._closeRespPopover(e);
179
180
  }
@@ -224,8 +225,8 @@ let ComboBox = ComboBox_1 = class ComboBox extends UI5Element {
224
225
  (await this._getValueStatePopover())?.close();
225
226
  }
226
227
  async _getValueStatePopover() {
227
- const staticAreaItem = await this.getStaticAreaItemDomRef();
228
- const popover = staticAreaItem.querySelector(".ui5-valuestatemessage-popover");
228
+ await renderFinished();
229
+ const popover = this.shadowRoot.querySelector(".ui5-valuestatemessage-popover");
229
230
  // backward compatibility
230
231
  // rework all methods to work with async getters
231
232
  this.valueStatePopover = popover;
@@ -672,8 +673,8 @@ let ComboBox = ComboBox_1 = class ComboBox extends UI5Element {
672
673
  return isPhone() ? this.responsivePopover.querySelector("[ui5-input]").shadowRoot.querySelector("input") : this.shadowRoot.querySelector("[inner-input]");
673
674
  }
674
675
  async _getPicker() {
675
- const staticAreaItem = await this.getStaticAreaItemDomRef();
676
- const picker = staticAreaItem.querySelector("[ui5-responsive-popover]");
676
+ await renderFinished();
677
+ const picker = this.shadowRoot.querySelector("[ui5-responsive-popover]");
677
678
  // backward compatibility
678
679
  // rework all methods to work with async getters
679
680
  this.responsivePopover = picker;
@@ -731,7 +732,7 @@ let ComboBox = ComboBox_1 = class ComboBox extends UI5Element {
731
732
  return !this.valueStateMessage.length && this.hasValueStateText;
732
733
  }
733
734
  get _valueStatePopoverHorizontalAlign() {
734
- return this.effectiveDir !== "rtl" ? PopoverHorizontalAlign.Left : PopoverHorizontalAlign.Right;
735
+ return this.effectiveDir !== "rtl" ? PopoverHorizontalAlign.Start : PopoverHorizontalAlign.End;
735
736
  }
736
737
  /**
737
738
  * This method is relevant for sap_horizon theme only
@@ -771,6 +772,7 @@ let ComboBox = ComboBox_1 = class ComboBox extends UI5Element {
771
772
  "min-width": `${this.offsetWidth || 0}px`,
772
773
  "max-width": (this.offsetWidth / remSizeInPx) > 40 ? `${this.offsetWidth}px` : "40rem",
773
774
  },
775
+ popoverValueStateMessage: {},
774
776
  };
775
777
  }
776
778
  get classes() {
@@ -862,15 +864,14 @@ ComboBox = ComboBox_1 = __decorate([
862
864
  tag: "ui5-combobox",
863
865
  languageAware: true,
864
866
  renderer: litRender,
865
- styles: ComboBoxCss,
866
- staticAreaStyles: [
867
+ styles: [
868
+ ComboBoxCss,
867
869
  ResponsivePopoverCommonCss,
868
870
  ValueStateMessageCss,
869
871
  ComboBoxPopoverCss,
870
872
  SuggestionsCss,
871
873
  ],
872
874
  template: ComboBoxTemplate,
873
- staticAreaTemplate: ComboBoxPopoverTemplate,
874
875
  dependencies: [
875
876
  ComboBoxItem,
876
877
  Icon,