@ui5/webcomponents 2.6.3 → 2.7.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (878) hide show
  1. package/CHANGELOG.md +38 -2
  2. package/README.md +1 -1
  3. package/cypress/specs/Card.cy.ts +51 -0
  4. package/cypress/specs/ColorPicker.cy.ts +98 -0
  5. package/cypress/specs/Label.cy.ts +128 -0
  6. package/cypress/specs/Table.cy.ts +32 -2
  7. package/cypress/specs/TableRowActions.cy.ts +212 -0
  8. package/cypress/specs/Tag.cy.ts +76 -0
  9. package/cypress/specs/Text.cy.ts +31 -0
  10. package/cypress/specs/Title.cy.ts +37 -0
  11. package/cypress/specs/Toolbar.cy.ts +75 -0
  12. package/cypress/support/commands/ColorPalette.commands.ts +6 -0
  13. package/cypress/support/commands/ColorPicker.commands.ts +24 -0
  14. package/cypress/support/commands.ts +3 -0
  15. package/dist/.tsbuildinfo +1 -1
  16. package/dist/CardHeader.d.ts +1 -1
  17. package/dist/CardHeader.js +1 -1
  18. package/dist/CardHeader.js.map +1 -1
  19. package/dist/CardHeaderTemplate.js +1 -1
  20. package/dist/CardHeaderTemplate.js.map +1 -1
  21. package/dist/ColorPalette.d.ts +21 -12
  22. package/dist/ColorPalette.js +38 -32
  23. package/dist/ColorPalette.js.map +1 -1
  24. package/dist/ColorPaletteTemplate.js +2 -2
  25. package/dist/ColorPaletteTemplate.js.map +1 -1
  26. package/dist/ColorPicker.d.ts +30 -28
  27. package/dist/ColorPicker.js +145 -99
  28. package/dist/ColorPicker.js.map +1 -1
  29. package/dist/ColorPickerTemplate.js +5 -3
  30. package/dist/ColorPickerTemplate.js.map +1 -1
  31. package/dist/DateTimeInput.d.ts +20 -0
  32. package/dist/DateTimeInput.js +44 -0
  33. package/dist/DateTimeInput.js.map +1 -0
  34. package/dist/Form.d.ts +0 -2
  35. package/dist/Form.js +0 -1
  36. package/dist/Form.js.map +1 -1
  37. package/dist/FormGroup.d.ts +0 -1
  38. package/dist/FormGroup.js +0 -1
  39. package/dist/FormGroup.js.map +1 -1
  40. package/dist/FormItem.d.ts +0 -1
  41. package/dist/FormItem.js +0 -1
  42. package/dist/FormItem.js.map +1 -1
  43. package/dist/Input.d.ts +5 -1
  44. package/dist/Input.js +14 -12
  45. package/dist/Input.js.map +1 -1
  46. package/dist/Menu.d.ts +2 -2
  47. package/dist/Menu.js +34 -19
  48. package/dist/Menu.js.map +1 -1
  49. package/dist/MenuItem.d.ts +9 -2
  50. package/dist/MenuItem.js +50 -6
  51. package/dist/MenuItem.js.map +1 -1
  52. package/dist/NavigationMenuTemplate.js +1 -1
  53. package/dist/NavigationMenuTemplate.js.map +1 -1
  54. package/dist/Popover.d.ts +1 -1
  55. package/dist/Popover.js +7 -6
  56. package/dist/Popover.js.map +1 -1
  57. package/dist/Popup.js +0 -2
  58. package/dist/Popup.js.map +1 -1
  59. package/dist/Select.d.ts +1 -3
  60. package/dist/Select.js +4 -6
  61. package/dist/Select.js.map +1 -1
  62. package/dist/SelectPopoverTemplate.d.ts +2 -0
  63. package/dist/SelectPopoverTemplate.js +28 -0
  64. package/dist/SelectPopoverTemplate.js.map +1 -0
  65. package/dist/SelectTemplate.d.ts +2 -0
  66. package/dist/SelectTemplate.js +19 -0
  67. package/dist/SelectTemplate.js.map +1 -0
  68. package/dist/SwitchTemplate.js +1 -1
  69. package/dist/SwitchTemplate.js.map +1 -1
  70. package/dist/TabContainer.js +3 -3
  71. package/dist/TabContainer.js.map +1 -1
  72. package/dist/Table.d.ts +31 -7
  73. package/dist/Table.js +43 -8
  74. package/dist/Table.js.map +1 -1
  75. package/dist/TableCell.d.ts +2 -0
  76. package/dist/TableCell.js +9 -4
  77. package/dist/TableCell.js.map +1 -1
  78. package/dist/TableCellBase.d.ts +2 -2
  79. package/dist/TableCellBase.js +3 -3
  80. package/dist/TableCellBase.js.map +1 -1
  81. package/dist/TableExtension.d.ts +1 -1
  82. package/dist/TableExtension.js +1 -1
  83. package/dist/TableExtension.js.map +1 -1
  84. package/dist/TableHeaderCell.d.ts +8 -0
  85. package/dist/TableHeaderCell.js +7 -2
  86. package/dist/TableHeaderCell.js.map +1 -1
  87. package/dist/TableHeaderRow.d.ts +2 -0
  88. package/dist/TableHeaderRow.js +7 -1
  89. package/dist/TableHeaderRow.js.map +1 -1
  90. package/dist/TableRow.d.ts +18 -1
  91. package/dist/TableRow.js +64 -5
  92. package/dist/TableRow.js.map +1 -1
  93. package/dist/TableRowAction.d.ts +45 -0
  94. package/dist/TableRowAction.js +72 -0
  95. package/dist/TableRowAction.js.map +1 -0
  96. package/dist/TableRowActionBase.d.ts +38 -0
  97. package/dist/TableRowActionBase.js +104 -0
  98. package/dist/TableRowActionBase.js.map +1 -0
  99. package/dist/TableRowActionNavigation.d.ts +27 -0
  100. package/dist/TableRowActionNavigation.js +53 -0
  101. package/dist/TableRowActionNavigation.js.map +1 -0
  102. package/dist/TableRowBase.d.ts +1 -0
  103. package/dist/TableRowBase.js +4 -0
  104. package/dist/TableRowBase.js.map +1 -1
  105. package/dist/TableVirtualizer.d.ts +2 -2
  106. package/dist/TableVirtualizer.js +2 -2
  107. package/dist/TableVirtualizer.js.map +1 -1
  108. package/dist/TimePicker.d.ts +21 -1
  109. package/dist/TimePicker.js +44 -2
  110. package/dist/TimePicker.js.map +1 -1
  111. package/dist/TimePickerPopoverTemplate.js +29 -2
  112. package/dist/TimePickerPopoverTemplate.js.map +1 -1
  113. package/dist/TimePickerTemplate.js +4 -3
  114. package/dist/TimePickerTemplate.js.map +1 -1
  115. package/dist/ToastTemplate.js +3 -2
  116. package/dist/ToastTemplate.js.map +1 -1
  117. package/dist/Token.d.ts +0 -5
  118. package/dist/Token.js +0 -8
  119. package/dist/Token.js.map +1 -1
  120. package/dist/Tokenizer.d.ts +0 -1
  121. package/dist/Tokenizer.js +0 -23
  122. package/dist/Tokenizer.js.map +1 -1
  123. package/dist/TokenizerPopoverTemplate.js +0 -1
  124. package/dist/TokenizerPopoverTemplate.js.map +1 -1
  125. package/dist/Toolbar.d.ts +1 -3
  126. package/dist/Toolbar.js +6 -42
  127. package/dist/Toolbar.js.map +1 -1
  128. package/dist/ToolbarButton.d.ts +1 -5
  129. package/dist/ToolbarButton.js +6 -4
  130. package/dist/ToolbarButton.js.map +1 -1
  131. package/dist/ToolbarButtonTemplate.js +1 -1
  132. package/dist/ToolbarButtonTemplate.js.map +1 -1
  133. package/dist/ToolbarItem.d.ts +6 -17
  134. package/dist/ToolbarItem.js +18 -8
  135. package/dist/ToolbarItem.js.map +1 -1
  136. package/dist/ToolbarPopoverButtonTemplate.js +1 -1
  137. package/dist/ToolbarPopoverButtonTemplate.js.map +1 -1
  138. package/dist/ToolbarPopoverSelectTemplate.js +1 -1
  139. package/dist/ToolbarPopoverSelectTemplate.js.map +1 -1
  140. package/dist/ToolbarSelect.d.ts +9 -11
  141. package/dist/ToolbarSelect.js +41 -41
  142. package/dist/ToolbarSelect.js.map +1 -1
  143. package/dist/ToolbarSelectTemplate.js +1 -1
  144. package/dist/ToolbarSelectTemplate.js.map +1 -1
  145. package/dist/ToolbarTemplate.js +1 -1
  146. package/dist/ToolbarTemplate.js.map +1 -1
  147. package/dist/TreeItemBase.d.ts +1 -1
  148. package/dist/TreeItemCustom.js +5 -1
  149. package/dist/TreeItemCustom.js.map +1 -1
  150. package/dist/bundle.esm.d.ts +0 -2
  151. package/dist/bundle.esm.js +2 -5
  152. package/dist/bundle.esm.js.map +1 -1
  153. package/dist/colorpicker-utils/ColorValue.d.ts +53 -0
  154. package/dist/colorpicker-utils/ColorValue.js +143 -0
  155. package/dist/colorpicker-utils/ColorValue.js.map +1 -0
  156. package/dist/css/themes/Avatar.css +1 -1
  157. package/dist/css/themes/AvatarGroup.css +1 -1
  158. package/dist/css/themes/Bar.css +1 -1
  159. package/dist/css/themes/Breadcrumbs.css +1 -1
  160. package/dist/css/themes/BusyIndicator.css +1 -1
  161. package/dist/css/themes/Button.css +1 -1
  162. package/dist/css/themes/Calendar.css +1 -1
  163. package/dist/css/themes/CalendarHeader.css +1 -1
  164. package/dist/css/themes/CalendarLegend.css +1 -1
  165. package/dist/css/themes/CalendarLegendItem.css +1 -1
  166. package/dist/css/themes/Card.css +1 -1
  167. package/dist/css/themes/CardHeader.css +1 -1
  168. package/dist/css/themes/Carousel.css +1 -1
  169. package/dist/css/themes/CheckBox.css +1 -1
  170. package/dist/css/themes/ColorPalette.css +1 -1
  171. package/dist/css/themes/ColorPaletteItem.css +1 -1
  172. package/dist/css/themes/ColorPalettePopover.css +1 -1
  173. package/dist/css/themes/ColorPicker.css +1 -1
  174. package/dist/css/themes/ComboBox.css +1 -1
  175. package/dist/css/themes/ComboBoxItem.css +1 -1
  176. package/dist/css/themes/DatePicker.css +1 -1
  177. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  178. package/dist/css/themes/DayPicker.css +1 -1
  179. package/dist/css/themes/Dialog.css +1 -1
  180. package/dist/css/themes/FileUploader.css +1 -1
  181. package/dist/css/themes/Form.css +1 -1
  182. package/dist/css/themes/FormItem.css +1 -1
  183. package/dist/css/themes/FormItemSpan.css +1 -1
  184. package/dist/css/themes/GrowingButton.css +1 -1
  185. package/dist/css/themes/Icon.css +1 -1
  186. package/dist/css/themes/Input.css +1 -1
  187. package/dist/css/themes/InputIcon.css +1 -1
  188. package/dist/css/themes/InputSharedStyles.css +1 -1
  189. package/dist/css/themes/Label.css +1 -1
  190. package/dist/css/themes/Link.css +1 -1
  191. package/dist/css/themes/List.css +1 -1
  192. package/dist/css/themes/ListItem.css +1 -1
  193. package/dist/css/themes/ListItemBase.css +1 -1
  194. package/dist/css/themes/ListItemCustom.css +1 -1
  195. package/dist/css/themes/ListItemGroup.css +1 -1
  196. package/dist/css/themes/ListItemGroupHeader.css +1 -1
  197. package/dist/css/themes/ListItemIcon.css +1 -1
  198. package/dist/css/themes/Menu.css +1 -1
  199. package/dist/css/themes/MenuItem.css +1 -1
  200. package/dist/css/themes/MessageStrip.css +1 -1
  201. package/dist/css/themes/MonthPicker.css +1 -1
  202. package/dist/css/themes/MultiComboBox.css +1 -1
  203. package/dist/css/themes/MultiComboBoxItem.css +1 -1
  204. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  205. package/dist/css/themes/MultiInput.css +1 -1
  206. package/dist/css/themes/NavigationMenu.css +1 -1
  207. package/dist/css/themes/NavigationMenuItem.css +1 -1
  208. package/dist/css/themes/OptionBase.css +1 -1
  209. package/dist/css/themes/Panel.css +1 -1
  210. package/dist/css/themes/Popover.css +1 -1
  211. package/dist/css/themes/PopupsCommon.css +1 -1
  212. package/dist/css/themes/ProgressIndicator.css +1 -1
  213. package/dist/css/themes/RadioButton.css +1 -1
  214. package/dist/css/themes/RangeSlider.css +1 -1
  215. package/dist/css/themes/RatingIndicator.css +1 -1
  216. package/dist/css/themes/ResponsivePopover.css +1 -1
  217. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  218. package/dist/css/themes/SegmentedButton.css +1 -1
  219. package/dist/css/themes/SegmentedButtonItem.css +1 -1
  220. package/dist/css/themes/Select.css +1 -1
  221. package/dist/css/themes/SliderBase.css +1 -1
  222. package/dist/css/themes/SplitButton.css +1 -1
  223. package/dist/css/themes/StepInput.css +1 -1
  224. package/dist/css/themes/SuggestionItem.css +1 -1
  225. package/dist/css/themes/SuggestionItemCustom.css +1 -1
  226. package/dist/css/themes/Switch.css +1 -1
  227. package/dist/css/themes/TabContainer.css +1 -1
  228. package/dist/css/themes/TabInOverflow.css +1 -1
  229. package/dist/css/themes/TabInStrip.css +1 -1
  230. package/dist/css/themes/TabSemanticIcon.css +1 -1
  231. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  232. package/dist/css/themes/Table.css +1 -1
  233. package/dist/css/themes/TableCellBase.css +1 -1
  234. package/dist/css/themes/TableHeaderRow.css +1 -1
  235. package/dist/css/themes/TableRow.css +1 -1
  236. package/dist/css/themes/TableRowActionBase.css +1 -0
  237. package/dist/css/themes/TableRowBase.css +1 -1
  238. package/dist/css/themes/Tag.css +1 -1
  239. package/dist/css/themes/Text.css +1 -1
  240. package/dist/css/themes/TextArea.css +1 -1
  241. package/dist/css/themes/TimePicker.css +1 -1
  242. package/dist/css/themes/TimePickerPopover.css +1 -1
  243. package/dist/css/themes/Toast.css +1 -1
  244. package/dist/css/themes/ToggleButton.css +1 -1
  245. package/dist/css/themes/Token.css +1 -1
  246. package/dist/css/themes/Tokenizer.css +1 -1
  247. package/dist/css/themes/TokenizerPopover.css +1 -1
  248. package/dist/css/themes/Toolbar.css +1 -1
  249. package/dist/css/themes/ToolbarPopover.css +1 -1
  250. package/dist/css/themes/TreeItem.css +1 -1
  251. package/dist/css/themes/ValueStateMessage.css +1 -1
  252. package/dist/css/themes/YearPicker.css +1 -1
  253. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  254. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  255. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  256. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  257. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  258. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  259. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  260. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  261. package/dist/custom-elements-internal.json +513 -56
  262. package/dist/custom-elements.json +416 -37
  263. package/dist/features/ColorPaletteMoreColors.d.ts +1 -11
  264. package/dist/features/ColorPaletteMoreColors.js +3 -18
  265. package/dist/features/ColorPaletteMoreColors.js.map +1 -1
  266. package/dist/features/ColorPaletteMoreColorsTemplate.js +1 -1
  267. package/dist/features/ColorPaletteMoreColorsTemplate.js.map +1 -1
  268. package/dist/features/InputSuggestions.d.ts +1 -2
  269. package/dist/features/InputSuggestions.js +3 -5
  270. package/dist/features/InputSuggestions.js.map +1 -1
  271. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  272. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  273. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  274. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  275. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  276. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  277. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  278. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  279. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  280. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  281. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  282. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  283. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  284. package/dist/generated/i18n/i18n-defaults.d.ts +7 -1
  285. package/dist/generated/i18n/i18n-defaults.js +8 -2
  286. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  287. package/dist/generated/json-imports/Themes-fetch.js +1 -5
  288. package/dist/generated/json-imports/Themes-fetch.js.map +1 -1
  289. package/dist/generated/json-imports/Themes.js +1 -5
  290. package/dist/generated/json-imports/Themes.js.map +1 -1
  291. package/dist/generated/templates/TableCellTemplate.lit.js +6 -4
  292. package/dist/generated/templates/TableCellTemplate.lit.js.map +1 -1
  293. package/dist/generated/templates/TableHeaderRowTemplate.lit.js +3 -2
  294. package/dist/generated/templates/TableHeaderRowTemplate.lit.js.map +1 -1
  295. package/dist/generated/templates/TableRowActionBaseTemplate.lit.d.ts +3 -0
  296. package/dist/generated/templates/TableRowActionBaseTemplate.lit.js +11 -0
  297. package/dist/generated/templates/TableRowActionBaseTemplate.lit.js.map +1 -0
  298. package/dist/generated/templates/TableRowTemplate.lit.js +8 -4
  299. package/dist/generated/templates/TableRowTemplate.lit.js.map +1 -1
  300. package/dist/generated/templates/TableTemplate.lit.js +1 -1
  301. package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
  302. package/dist/generated/themes/Avatar.css.d.ts +1 -1
  303. package/dist/generated/themes/Avatar.css.js +1 -1
  304. package/dist/generated/themes/Avatar.css.js.map +1 -1
  305. package/dist/generated/themes/AvatarGroup.css.d.ts +1 -1
  306. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  307. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  308. package/dist/generated/themes/Bar.css.d.ts +1 -1
  309. package/dist/generated/themes/Bar.css.js +1 -1
  310. package/dist/generated/themes/Bar.css.js.map +1 -1
  311. package/dist/generated/themes/Breadcrumbs.css.d.ts +1 -1
  312. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  313. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  314. package/dist/generated/themes/BusyIndicator.css.d.ts +1 -1
  315. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  316. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  317. package/dist/generated/themes/Button.css.d.ts +1 -1
  318. package/dist/generated/themes/Button.css.js +1 -1
  319. package/dist/generated/themes/Button.css.js.map +1 -1
  320. package/dist/generated/themes/Calendar.css.d.ts +1 -1
  321. package/dist/generated/themes/Calendar.css.js +1 -1
  322. package/dist/generated/themes/Calendar.css.js.map +1 -1
  323. package/dist/generated/themes/CalendarHeader.css.d.ts +1 -1
  324. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  325. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  326. package/dist/generated/themes/CalendarLegend.css.d.ts +1 -1
  327. package/dist/generated/themes/CalendarLegend.css.js +1 -1
  328. package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
  329. package/dist/generated/themes/CalendarLegendItem.css.d.ts +1 -1
  330. package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
  331. package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
  332. package/dist/generated/themes/Card.css.d.ts +1 -1
  333. package/dist/generated/themes/Card.css.js +1 -1
  334. package/dist/generated/themes/Card.css.js.map +1 -1
  335. package/dist/generated/themes/CardHeader.css.d.ts +1 -1
  336. package/dist/generated/themes/CardHeader.css.js +1 -1
  337. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  338. package/dist/generated/themes/Carousel.css.d.ts +1 -1
  339. package/dist/generated/themes/Carousel.css.js +1 -1
  340. package/dist/generated/themes/Carousel.css.js.map +1 -1
  341. package/dist/generated/themes/CheckBox.css.d.ts +1 -1
  342. package/dist/generated/themes/CheckBox.css.js +1 -1
  343. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  344. package/dist/generated/themes/ColorPalette.css.d.ts +1 -1
  345. package/dist/generated/themes/ColorPalette.css.js +1 -1
  346. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  347. package/dist/generated/themes/ColorPaletteItem.css.d.ts +1 -1
  348. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  349. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  350. package/dist/generated/themes/ColorPalettePopover.css.d.ts +1 -1
  351. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  352. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  353. package/dist/generated/themes/ColorPicker.css.d.ts +1 -1
  354. package/dist/generated/themes/ColorPicker.css.js +1 -1
  355. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  356. package/dist/generated/themes/ComboBox.css.d.ts +1 -1
  357. package/dist/generated/themes/ComboBox.css.js +1 -1
  358. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  359. package/dist/generated/themes/ComboBoxItem.css.d.ts +1 -1
  360. package/dist/generated/themes/ComboBoxItem.css.js +1 -1
  361. package/dist/generated/themes/ComboBoxItem.css.js.map +1 -1
  362. package/dist/generated/themes/DatePicker.css.d.ts +1 -1
  363. package/dist/generated/themes/DatePicker.css.js +1 -1
  364. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  365. package/dist/generated/themes/DateTimePickerPopover.css.d.ts +1 -1
  366. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  367. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  368. package/dist/generated/themes/DayPicker.css.d.ts +1 -1
  369. package/dist/generated/themes/DayPicker.css.js +1 -1
  370. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  371. package/dist/generated/themes/Dialog.css.d.ts +1 -1
  372. package/dist/generated/themes/Dialog.css.js +1 -1
  373. package/dist/generated/themes/Dialog.css.js.map +1 -1
  374. package/dist/generated/themes/FileUploader.css.d.ts +1 -1
  375. package/dist/generated/themes/FileUploader.css.js +1 -1
  376. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  377. package/dist/generated/themes/Form.css.d.ts +1 -1
  378. package/dist/generated/themes/Form.css.js +1 -1
  379. package/dist/generated/themes/Form.css.js.map +1 -1
  380. package/dist/generated/themes/FormItem.css.d.ts +1 -1
  381. package/dist/generated/themes/FormItem.css.js +1 -1
  382. package/dist/generated/themes/FormItem.css.js.map +1 -1
  383. package/dist/generated/themes/FormItemSpan.css.d.ts +1 -1
  384. package/dist/generated/themes/FormItemSpan.css.js +1 -1
  385. package/dist/generated/themes/FormItemSpan.css.js.map +1 -1
  386. package/dist/generated/themes/GrowingButton.css.d.ts +1 -1
  387. package/dist/generated/themes/GrowingButton.css.js +1 -1
  388. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  389. package/dist/generated/themes/Icon.css.d.ts +1 -1
  390. package/dist/generated/themes/Icon.css.js +1 -1
  391. package/dist/generated/themes/Icon.css.js.map +1 -1
  392. package/dist/generated/themes/Input.css.d.ts +1 -1
  393. package/dist/generated/themes/Input.css.js +1 -1
  394. package/dist/generated/themes/Input.css.js.map +1 -1
  395. package/dist/generated/themes/InputIcon.css.d.ts +1 -1
  396. package/dist/generated/themes/InputIcon.css.js +1 -1
  397. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  398. package/dist/generated/themes/InputSharedStyles.css.d.ts +1 -1
  399. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  400. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  401. package/dist/generated/themes/Label.css.d.ts +1 -1
  402. package/dist/generated/themes/Label.css.js +1 -1
  403. package/dist/generated/themes/Label.css.js.map +1 -1
  404. package/dist/generated/themes/Link.css.d.ts +1 -1
  405. package/dist/generated/themes/Link.css.js +1 -1
  406. package/dist/generated/themes/Link.css.js.map +1 -1
  407. package/dist/generated/themes/List.css.d.ts +1 -1
  408. package/dist/generated/themes/List.css.js +1 -1
  409. package/dist/generated/themes/List.css.js.map +1 -1
  410. package/dist/generated/themes/ListItem.css.d.ts +1 -1
  411. package/dist/generated/themes/ListItem.css.js +1 -1
  412. package/dist/generated/themes/ListItem.css.js.map +1 -1
  413. package/dist/generated/themes/ListItemBase.css.d.ts +1 -1
  414. package/dist/generated/themes/ListItemBase.css.js +1 -1
  415. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  416. package/dist/generated/themes/ListItemCustom.css.d.ts +1 -1
  417. package/dist/generated/themes/ListItemCustom.css.js +1 -1
  418. package/dist/generated/themes/ListItemCustom.css.js.map +1 -1
  419. package/dist/generated/themes/ListItemGroup.css.d.ts +1 -1
  420. package/dist/generated/themes/ListItemGroup.css.js +1 -1
  421. package/dist/generated/themes/ListItemGroup.css.js.map +1 -1
  422. package/dist/generated/themes/ListItemGroupHeader.css.d.ts +1 -1
  423. package/dist/generated/themes/ListItemGroupHeader.css.js +1 -1
  424. package/dist/generated/themes/ListItemGroupHeader.css.js.map +1 -1
  425. package/dist/generated/themes/ListItemIcon.css.d.ts +1 -1
  426. package/dist/generated/themes/ListItemIcon.css.js +1 -1
  427. package/dist/generated/themes/ListItemIcon.css.js.map +1 -1
  428. package/dist/generated/themes/Menu.css.d.ts +1 -1
  429. package/dist/generated/themes/Menu.css.js +1 -1
  430. package/dist/generated/themes/Menu.css.js.map +1 -1
  431. package/dist/generated/themes/MenuItem.css.d.ts +1 -1
  432. package/dist/generated/themes/MenuItem.css.js +1 -1
  433. package/dist/generated/themes/MenuItem.css.js.map +1 -1
  434. package/dist/generated/themes/MessageStrip.css.d.ts +1 -1
  435. package/dist/generated/themes/MessageStrip.css.js +1 -1
  436. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  437. package/dist/generated/themes/MonthPicker.css.d.ts +1 -1
  438. package/dist/generated/themes/MonthPicker.css.js +1 -1
  439. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  440. package/dist/generated/themes/MultiComboBox.css.d.ts +1 -1
  441. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  442. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  443. package/dist/generated/themes/MultiComboBoxItem.css.d.ts +1 -1
  444. package/dist/generated/themes/MultiComboBoxItem.css.js +1 -1
  445. package/dist/generated/themes/MultiComboBoxItem.css.js.map +1 -1
  446. package/dist/generated/themes/MultiComboBoxPopover.css.d.ts +1 -1
  447. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  448. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  449. package/dist/generated/themes/MultiInput.css.d.ts +1 -1
  450. package/dist/generated/themes/MultiInput.css.js +1 -1
  451. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  452. package/dist/generated/themes/NavigationMenu.css.d.ts +1 -1
  453. package/dist/generated/themes/NavigationMenu.css.js +1 -1
  454. package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
  455. package/dist/generated/themes/NavigationMenuItem.css.d.ts +1 -1
  456. package/dist/generated/themes/NavigationMenuItem.css.js +1 -1
  457. package/dist/generated/themes/NavigationMenuItem.css.js.map +1 -1
  458. package/dist/generated/themes/OptionBase.css.d.ts +1 -1
  459. package/dist/generated/themes/OptionBase.css.js +1 -1
  460. package/dist/generated/themes/OptionBase.css.js.map +1 -1
  461. package/dist/generated/themes/Panel.css.d.ts +1 -1
  462. package/dist/generated/themes/Panel.css.js +1 -1
  463. package/dist/generated/themes/Panel.css.js.map +1 -1
  464. package/dist/generated/themes/Popover.css.d.ts +1 -1
  465. package/dist/generated/themes/Popover.css.js +1 -1
  466. package/dist/generated/themes/Popover.css.js.map +1 -1
  467. package/dist/generated/themes/PopupsCommon.css.d.ts +1 -1
  468. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  469. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  470. package/dist/generated/themes/ProgressIndicator.css.d.ts +1 -1
  471. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  472. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  473. package/dist/generated/themes/RadioButton.css.d.ts +1 -1
  474. package/dist/generated/themes/RadioButton.css.js +1 -1
  475. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  476. package/dist/generated/themes/RangeSlider.css.d.ts +1 -1
  477. package/dist/generated/themes/RangeSlider.css.js +1 -1
  478. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  479. package/dist/generated/themes/RatingIndicator.css.d.ts +1 -1
  480. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  481. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  482. package/dist/generated/themes/ResponsivePopover.css.d.ts +1 -1
  483. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  484. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  485. package/dist/generated/themes/ResponsivePopoverCommon.css.d.ts +1 -1
  486. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  487. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  488. package/dist/generated/themes/SegmentedButton.css.d.ts +1 -1
  489. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  490. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  491. package/dist/generated/themes/SegmentedButtonItem.css.d.ts +1 -1
  492. package/dist/generated/themes/SegmentedButtonItem.css.js +1 -1
  493. package/dist/generated/themes/SegmentedButtonItem.css.js.map +1 -1
  494. package/dist/generated/themes/Select.css.d.ts +1 -1
  495. package/dist/generated/themes/Select.css.js +1 -1
  496. package/dist/generated/themes/Select.css.js.map +1 -1
  497. package/dist/generated/themes/SliderBase.css.d.ts +1 -1
  498. package/dist/generated/themes/SliderBase.css.js +1 -1
  499. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  500. package/dist/generated/themes/SplitButton.css.d.ts +1 -1
  501. package/dist/generated/themes/SplitButton.css.js +1 -1
  502. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  503. package/dist/generated/themes/StepInput.css.d.ts +1 -1
  504. package/dist/generated/themes/StepInput.css.js +1 -1
  505. package/dist/generated/themes/StepInput.css.js.map +1 -1
  506. package/dist/generated/themes/SuggestionItem.css.d.ts +1 -1
  507. package/dist/generated/themes/SuggestionItem.css.js +1 -1
  508. package/dist/generated/themes/SuggestionItem.css.js.map +1 -1
  509. package/dist/generated/themes/SuggestionItemCustom.css.d.ts +1 -1
  510. package/dist/generated/themes/SuggestionItemCustom.css.js +1 -1
  511. package/dist/generated/themes/SuggestionItemCustom.css.js.map +1 -1
  512. package/dist/generated/themes/Switch.css.d.ts +1 -1
  513. package/dist/generated/themes/Switch.css.js +1 -1
  514. package/dist/generated/themes/Switch.css.js.map +1 -1
  515. package/dist/generated/themes/TabContainer.css.d.ts +1 -1
  516. package/dist/generated/themes/TabContainer.css.js +1 -1
  517. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  518. package/dist/generated/themes/TabInOverflow.css.d.ts +1 -1
  519. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  520. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  521. package/dist/generated/themes/TabInStrip.css.d.ts +1 -1
  522. package/dist/generated/themes/TabInStrip.css.js +1 -1
  523. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  524. package/dist/generated/themes/TabSemanticIcon.css.d.ts +1 -1
  525. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  526. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  527. package/dist/generated/themes/TabSeparatorInOverflow.css.d.ts +1 -1
  528. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  529. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  530. package/dist/generated/themes/Table.css.d.ts +1 -1
  531. package/dist/generated/themes/Table.css.js +1 -1
  532. package/dist/generated/themes/Table.css.js.map +1 -1
  533. package/dist/generated/themes/TableCellBase.css.d.ts +1 -1
  534. package/dist/generated/themes/TableCellBase.css.js +1 -1
  535. package/dist/generated/themes/TableCellBase.css.js.map +1 -1
  536. package/dist/generated/themes/TableHeaderRow.css.d.ts +1 -1
  537. package/dist/generated/themes/TableHeaderRow.css.js +1 -1
  538. package/dist/generated/themes/TableHeaderRow.css.js.map +1 -1
  539. package/dist/generated/themes/TableRow.css.d.ts +1 -1
  540. package/dist/generated/themes/TableRow.css.js +1 -1
  541. package/dist/generated/themes/TableRow.css.js.map +1 -1
  542. package/dist/generated/themes/TableRowActionBase.css.d.ts +2 -0
  543. package/dist/generated/themes/TableRowActionBase.css.js +8 -0
  544. package/dist/generated/themes/TableRowActionBase.css.js.map +1 -0
  545. package/dist/generated/themes/TableRowBase.css.d.ts +1 -1
  546. package/dist/generated/themes/TableRowBase.css.js +1 -1
  547. package/dist/generated/themes/TableRowBase.css.js.map +1 -1
  548. package/dist/generated/themes/Tag.css.d.ts +1 -1
  549. package/dist/generated/themes/Tag.css.js +1 -1
  550. package/dist/generated/themes/Tag.css.js.map +1 -1
  551. package/dist/generated/themes/Text.css.d.ts +1 -1
  552. package/dist/generated/themes/Text.css.js +1 -1
  553. package/dist/generated/themes/Text.css.js.map +1 -1
  554. package/dist/generated/themes/TextArea.css.d.ts +1 -1
  555. package/dist/generated/themes/TextArea.css.js +1 -1
  556. package/dist/generated/themes/TextArea.css.js.map +1 -1
  557. package/dist/generated/themes/TimePicker.css.d.ts +1 -1
  558. package/dist/generated/themes/TimePicker.css.js +1 -1
  559. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  560. package/dist/generated/themes/TimePickerPopover.css.d.ts +1 -1
  561. package/dist/generated/themes/TimePickerPopover.css.js +1 -1
  562. package/dist/generated/themes/TimePickerPopover.css.js.map +1 -1
  563. package/dist/generated/themes/Toast.css.d.ts +1 -1
  564. package/dist/generated/themes/Toast.css.js +1 -1
  565. package/dist/generated/themes/Toast.css.js.map +1 -1
  566. package/dist/generated/themes/ToggleButton.css.d.ts +1 -1
  567. package/dist/generated/themes/ToggleButton.css.js +1 -1
  568. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  569. package/dist/generated/themes/Token.css.d.ts +1 -1
  570. package/dist/generated/themes/Token.css.js +1 -1
  571. package/dist/generated/themes/Token.css.js.map +1 -1
  572. package/dist/generated/themes/Tokenizer.css.d.ts +1 -1
  573. package/dist/generated/themes/Tokenizer.css.js +1 -1
  574. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  575. package/dist/generated/themes/TokenizerPopover.css.d.ts +1 -1
  576. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  577. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  578. package/dist/generated/themes/Toolbar.css.d.ts +1 -1
  579. package/dist/generated/themes/Toolbar.css.js +1 -1
  580. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  581. package/dist/generated/themes/ToolbarPopover.css.d.ts +1 -1
  582. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  583. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  584. package/dist/generated/themes/TreeItem.css.d.ts +1 -1
  585. package/dist/generated/themes/TreeItem.css.js +1 -1
  586. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  587. package/dist/generated/themes/ValueStateMessage.css.d.ts +1 -1
  588. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  589. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  590. package/dist/generated/themes/YearPicker.css.d.ts +1 -1
  591. package/dist/generated/themes/YearPicker.css.js +1 -1
  592. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  593. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +1 -1
  594. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  595. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  596. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +1 -1
  597. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  598. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  599. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +1 -1
  600. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  601. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  602. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +1 -1
  603. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  604. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  605. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  606. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  607. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  608. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  609. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  610. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  611. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  612. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  613. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  614. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  615. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  616. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  617. package/dist/vscode.html-custom-data.json +77 -11
  618. package/dist/web-types.json +177 -27
  619. package/package.json +13 -10
  620. package/src/CardHeaderTemplate.tsx +1 -2
  621. package/src/ColorPaletteTemplate.tsx +2 -2
  622. package/src/ColorPickerTemplate.tsx +37 -37
  623. package/src/NavigationMenuTemplate.tsx +1 -0
  624. package/src/SelectPopoverTemplate.tsx +106 -0
  625. package/src/SelectTemplate.tsx +68 -0
  626. package/src/SwitchTemplate.tsx +1 -7
  627. package/src/Table.hbs +1 -1
  628. package/src/TableCell.hbs +6 -5
  629. package/src/TableHeaderRow.hbs +4 -0
  630. package/src/TableRow.hbs +22 -3
  631. package/src/TableRowActionBase.hbs +17 -0
  632. package/src/TimePickerPopoverTemplate.tsx +48 -1
  633. package/src/TimePickerTemplate.tsx +7 -5
  634. package/src/ToastTemplate.tsx +6 -4
  635. package/src/TokenizerPopoverTemplate.tsx +0 -1
  636. package/src/ToolbarButtonTemplate.tsx +1 -0
  637. package/src/ToolbarPopoverButtonTemplate.tsx +1 -0
  638. package/src/ToolbarPopoverSelectTemplate.tsx +4 -0
  639. package/src/ToolbarSelectTemplate.tsx +4 -0
  640. package/src/ToolbarTemplate.tsx +1 -0
  641. package/src/features/ColorPaletteMoreColorsTemplate.tsx +2 -2
  642. package/src/i18n/messagebundle.properties +22 -6
  643. package/src/i18n/messagebundle_de.properties +1 -1
  644. package/src/i18n/messagebundle_en.properties +3 -1
  645. package/src/i18n/messagebundle_en_US_sappsd.properties +3 -1
  646. package/src/i18n/messagebundle_en_US_saprigi.properties +3 -1
  647. package/src/i18n/messagebundle_en_US_saptrc.properties +3 -1
  648. package/src/themes/ColorPicker.css +20 -4
  649. package/src/themes/FormItem.css +4 -5
  650. package/src/themes/Label.css +1 -1
  651. package/src/themes/NavigationMenuItem.css +3 -1
  652. package/src/themes/Switch.css +0 -9
  653. package/src/themes/TabInOverflow.css +6 -6
  654. package/src/themes/TableCellBase.css +1 -1
  655. package/src/themes/TableRow.css +96 -73
  656. package/src/themes/TableRowActionBase.css +13 -0
  657. package/src/themes/TableRowBase.css +14 -6
  658. package/src/themes/TimePicker.css +4 -0
  659. package/src/themes/TimePickerPopover.css +5 -0
  660. package/src/themes/Toolbar.css +13 -1
  661. package/src/themes/base/Switch-parameters.css +0 -1
  662. package/src/themes/base/TabContainer-parameters.css +2 -1
  663. package/src/themes/base/Table-parameters.css +3 -9
  664. package/src/themes/base/Toolbar-parameters.css +2 -1
  665. package/src/themes/base/sizes-parameters.css +6 -6
  666. package/src/themes/sap_fiori_3_hcb/TabContainer-parameters.css +2 -1
  667. package/src/themes/sap_fiori_3_hcw/TabContainer-parameters.css +2 -1
  668. package/src/themes/sap_horizon/RadioButton-parameters.css +5 -1
  669. package/src/themes/sap_horizon_dark/RadioButton-parameters.css +5 -1
  670. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -0
  671. package/src/themes/sap_horizon_hcb/RadioButton-parameters.css +5 -5
  672. package/src/themes/sap_horizon_hcb/TabContainer-parameters.css +2 -1
  673. package/src/themes/sap_horizon_hcw/RadioButton-parameters.css +5 -5
  674. package/src/themes/sap_horizon_hcw/TabContainer-parameters.css +2 -1
  675. package/vitest.config.js +9 -0
  676. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +0 -1
  677. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +0 -1
  678. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +0 -1
  679. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +0 -1
  680. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +0 -1
  681. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +0 -1
  682. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +0 -1
  683. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +0 -1
  684. package/dist/generated/templates/SelectPopoverTemplate.lit.d.ts +0 -3
  685. package/dist/generated/templates/SelectPopoverTemplate.lit.js +0 -19
  686. package/dist/generated/templates/SelectPopoverTemplate.lit.js.map +0 -1
  687. package/dist/generated/templates/SelectTemplate.lit.d.ts +0 -3
  688. package/dist/generated/templates/SelectTemplate.lit.js +0 -24
  689. package/dist/generated/templates/SelectTemplate.lit.js.map +0 -1
  690. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.d.ts +0 -2
  691. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +0 -3
  692. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +0 -1
  693. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.d.ts +0 -2
  694. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +0 -3
  695. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +0 -1
  696. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.d.ts +0 -2
  697. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +0 -3
  698. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +0 -1
  699. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.d.ts +0 -2
  700. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +0 -3
  701. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +0 -1
  702. package/src/Select.hbs +0 -51
  703. package/src/SelectPopover.hbs +0 -78
  704. package/src/themes/sap_horizon_dark_exp/Avatar-parameters.css +0 -54
  705. package/src/themes/sap_horizon_dark_exp/Breadcrumbs-parameters.css +0 -3
  706. package/src/themes/sap_horizon_dark_exp/Button-parameters.css +0 -17
  707. package/src/themes/sap_horizon_dark_exp/CalendarHeader-parameters.css +0 -19
  708. package/src/themes/sap_horizon_dark_exp/CalendarLegendItem-parameters.css +0 -6
  709. package/src/themes/sap_horizon_dark_exp/Card-parameters.css +0 -15
  710. package/src/themes/sap_horizon_dark_exp/Carousel-parameters.css +0 -5
  711. package/src/themes/sap_horizon_dark_exp/CheckBox-parameters.css +0 -44
  712. package/src/themes/sap_horizon_dark_exp/ColorPalette-parameters.css +0 -25
  713. package/src/themes/sap_horizon_dark_exp/ColorPicker-parameters.css +0 -12
  714. package/src/themes/sap_horizon_dark_exp/DatePicker-parameters.css +0 -6
  715. package/src/themes/sap_horizon_dark_exp/DayPicker-parameters.css +0 -68
  716. package/src/themes/sap_horizon_dark_exp/Dialog-parameters.css +0 -9
  717. package/src/themes/sap_horizon_dark_exp/FileUploader-parameters.css +0 -5
  718. package/src/themes/sap_horizon_dark_exp/GrowingButton-parameters.css +0 -6
  719. package/src/themes/sap_horizon_dark_exp/Icon-parameters.css +0 -3
  720. package/src/themes/sap_horizon_dark_exp/Input-parameters.css +0 -34
  721. package/src/themes/sap_horizon_dark_exp/InputIcon-parameters.css +0 -24
  722. package/src/themes/sap_horizon_dark_exp/Link-parameters.css +0 -15
  723. package/src/themes/sap_horizon_dark_exp/List-parameters.css +0 -5
  724. package/src/themes/sap_horizon_dark_exp/ListItemBase-parameters.css +0 -5
  725. package/src/themes/sap_horizon_dark_exp/Menu-parameters.css +0 -5
  726. package/src/themes/sap_horizon_dark_exp/MessageStrip-parameters.css +0 -5
  727. package/src/themes/sap_horizon_dark_exp/MonthPicker-parameters.css +0 -16
  728. package/src/themes/sap_horizon_dark_exp/MultiComboBox-parameters.css +0 -5
  729. package/src/themes/sap_horizon_dark_exp/Panel-parameters.css +0 -14
  730. package/src/themes/sap_horizon_dark_exp/PopupsCommon-parameters.css +0 -5
  731. package/src/themes/sap_horizon_dark_exp/RadioButton-parameters.css +0 -23
  732. package/src/themes/sap_horizon_dark_exp/RatingIndicator-parameters.css +0 -17
  733. package/src/themes/sap_horizon_dark_exp/SegmentedButtton-parameters.css +0 -13
  734. package/src/themes/sap_horizon_dark_exp/Select-parameters.css +0 -5
  735. package/src/themes/sap_horizon_dark_exp/SelectPopover-parameters.css +0 -4
  736. package/src/themes/sap_horizon_dark_exp/SliderBase-parameters.css +0 -72
  737. package/src/themes/sap_horizon_dark_exp/SplitButton-parameters.css +0 -31
  738. package/src/themes/sap_horizon_dark_exp/StepInput-parameters.css +0 -25
  739. package/src/themes/sap_horizon_dark_exp/Switch-parameters.css +0 -148
  740. package/src/themes/sap_horizon_dark_exp/TabContainer-parameters.css +0 -38
  741. package/src/themes/sap_horizon_dark_exp/Tag-parameters.css +0 -1
  742. package/src/themes/sap_horizon_dark_exp/TextArea-parameters.css +0 -45
  743. package/src/themes/sap_horizon_dark_exp/TimePicker-parameters.css +0 -6
  744. package/src/themes/sap_horizon_dark_exp/ToggleButton-parameters.css +0 -1
  745. package/src/themes/sap_horizon_dark_exp/Token-parameters.css +0 -28
  746. package/src/themes/sap_horizon_dark_exp/Tokenizer-parameters.css +0 -5
  747. package/src/themes/sap_horizon_dark_exp/ValueStateMessage-parameters.css +0 -12
  748. package/src/themes/sap_horizon_dark_exp/YearPicker-parameters.css +0 -15
  749. package/src/themes/sap_horizon_dark_exp/parameters-bundle.css +0 -57
  750. package/src/themes/sap_horizon_dark_exp/rtl-parameters.css +0 -6
  751. package/src/themes/sap_horizon_dark_exp/sizes-parameters.css +0 -52
  752. package/src/themes/sap_horizon_exp/Avatar-parameters.css +0 -54
  753. package/src/themes/sap_horizon_exp/AvatarGroup-parameters.css +0 -5
  754. package/src/themes/sap_horizon_exp/Breadcrumbs-parameters.css +0 -3
  755. package/src/themes/sap_horizon_exp/Button-parameters.css +0 -17
  756. package/src/themes/sap_horizon_exp/CalendarHeader-parameters.css +0 -19
  757. package/src/themes/sap_horizon_exp/Card-parameters.css +0 -15
  758. package/src/themes/sap_horizon_exp/Carousel-parameters.css +0 -5
  759. package/src/themes/sap_horizon_exp/CheckBox-parameters.css +0 -44
  760. package/src/themes/sap_horizon_exp/ColorPalette-parameters.css +0 -25
  761. package/src/themes/sap_horizon_exp/ColorPicker-parameters.css +0 -12
  762. package/src/themes/sap_horizon_exp/DatePicker-parameters.css +0 -6
  763. package/src/themes/sap_horizon_exp/DayPicker-parameters.css +0 -71
  764. package/src/themes/sap_horizon_exp/Dialog-parameters.css +0 -9
  765. package/src/themes/sap_horizon_exp/FileUploader-parameters.css +0 -5
  766. package/src/themes/sap_horizon_exp/GrowingButton-parameters.css +0 -6
  767. package/src/themes/sap_horizon_exp/Icon-parameters.css +0 -3
  768. package/src/themes/sap_horizon_exp/Input-parameters.css +0 -34
  769. package/src/themes/sap_horizon_exp/InputIcon-parameters.css +0 -24
  770. package/src/themes/sap_horizon_exp/Link-parameters.css +0 -15
  771. package/src/themes/sap_horizon_exp/List-parameters.css +0 -5
  772. package/src/themes/sap_horizon_exp/ListItemBase-parameters.css +0 -5
  773. package/src/themes/sap_horizon_exp/Menu-parameters.css +0 -5
  774. package/src/themes/sap_horizon_exp/MessageStrip-parameters.css +0 -5
  775. package/src/themes/sap_horizon_exp/MonthPicker-parameters.css +0 -16
  776. package/src/themes/sap_horizon_exp/MultiComboBox-parameters.css +0 -5
  777. package/src/themes/sap_horizon_exp/Panel-parameters.css +0 -14
  778. package/src/themes/sap_horizon_exp/PopupsCommon-parameters.css +0 -5
  779. package/src/themes/sap_horizon_exp/ProgressIndicator-parameters.css +0 -32
  780. package/src/themes/sap_horizon_exp/ProgressIndicatorLayout-parameters.css +0 -40
  781. package/src/themes/sap_horizon_exp/RadioButton-parameters.css +0 -23
  782. package/src/themes/sap_horizon_exp/RatingIndicator-parameters.css +0 -17
  783. package/src/themes/sap_horizon_exp/SegmentedButtton-parameters.css +0 -13
  784. package/src/themes/sap_horizon_exp/Select-parameters.css +0 -5
  785. package/src/themes/sap_horizon_exp/SelectPopover-parameters.css +0 -4
  786. package/src/themes/sap_horizon_exp/SliderBase-parameters.css +0 -71
  787. package/src/themes/sap_horizon_exp/SplitButton-parameters.css +0 -31
  788. package/src/themes/sap_horizon_exp/StepInput-parameters.css +0 -25
  789. package/src/themes/sap_horizon_exp/Switch-parameters.css +0 -150
  790. package/src/themes/sap_horizon_exp/TabContainer-parameters.css +0 -38
  791. package/src/themes/sap_horizon_exp/Tag-parameters.css +0 -1
  792. package/src/themes/sap_horizon_exp/TextArea-parameters.css +0 -45
  793. package/src/themes/sap_horizon_exp/TimePicker-parameters.css +0 -6
  794. package/src/themes/sap_horizon_exp/ToggleButton-parameters.css +0 -1
  795. package/src/themes/sap_horizon_exp/Token-parameters.css +0 -28
  796. package/src/themes/sap_horizon_exp/Tokenizer-parameters.css +0 -5
  797. package/src/themes/sap_horizon_exp/ValueStateMessage-parameters.css +0 -12
  798. package/src/themes/sap_horizon_exp/YearPicker-parameters.css +0 -15
  799. package/src/themes/sap_horizon_exp/parameters-bundle.css +0 -57
  800. package/src/themes/sap_horizon_exp/rtl-parameters.css +0 -6
  801. package/src/themes/sap_horizon_exp/sizes-parameters.css +0 -51
  802. package/src/themes/sap_horizon_hcb_exp/Avatar-parameters.css +0 -54
  803. package/src/themes/sap_horizon_hcb_exp/BusyIndicator-parameters.css +0 -5
  804. package/src/themes/sap_horizon_hcb_exp/Button-parameters.css +0 -9
  805. package/src/themes/sap_horizon_hcb_exp/CalendarHeader-parameters.css +0 -11
  806. package/src/themes/sap_horizon_hcb_exp/Card-parameters.css +0 -11
  807. package/src/themes/sap_horizon_hcb_exp/Carousel-parameters.css +0 -9
  808. package/src/themes/sap_horizon_hcb_exp/CheckBox-parameters.css +0 -45
  809. package/src/themes/sap_horizon_hcb_exp/ColorPicker-parameters.css +0 -10
  810. package/src/themes/sap_horizon_hcb_exp/DatePicker-parameters.css +0 -5
  811. package/src/themes/sap_horizon_hcb_exp/DayPicker-parameters.css +0 -70
  812. package/src/themes/sap_horizon_hcb_exp/FileUploader-parameters.css +0 -6
  813. package/src/themes/sap_horizon_hcb_exp/GrowingButton-parameters.css +0 -8
  814. package/src/themes/sap_horizon_hcb_exp/Input-parameters.css +0 -32
  815. package/src/themes/sap_horizon_hcb_exp/InputIcon-parameters.css +0 -11
  816. package/src/themes/sap_horizon_hcb_exp/Link-parameters.css +0 -11
  817. package/src/themes/sap_horizon_hcb_exp/ListItem-parameters.css +0 -3
  818. package/src/themes/sap_horizon_hcb_exp/Menu-parameters.css +0 -5
  819. package/src/themes/sap_horizon_hcb_exp/MessageStrip-parameters.css +0 -10
  820. package/src/themes/sap_horizon_hcb_exp/MonthPicker-parameters.css +0 -12
  821. package/src/themes/sap_horizon_hcb_exp/Panel-parameters.css +0 -10
  822. package/src/themes/sap_horizon_hcb_exp/PopupsCommon-parameters.css +0 -5
  823. package/src/themes/sap_horizon_hcb_exp/ProgressIndicator-parameters.css +0 -15
  824. package/src/themes/sap_horizon_hcb_exp/RadioButton-parameters.css +0 -26
  825. package/src/themes/sap_horizon_hcb_exp/RatingIndicator-parameters.css +0 -16
  826. package/src/themes/sap_horizon_hcb_exp/SegmentedButtton-parameters.css +0 -8
  827. package/src/themes/sap_horizon_hcb_exp/Select-parameters.css +0 -10
  828. package/src/themes/sap_horizon_hcb_exp/SliderBase-parameters.css +0 -78
  829. package/src/themes/sap_horizon_hcb_exp/SplitButton-parameters.css +0 -34
  830. package/src/themes/sap_horizon_hcb_exp/Switch-parameters.css +0 -144
  831. package/src/themes/sap_horizon_hcb_exp/TabContainer-parameters.css +0 -49
  832. package/src/themes/sap_horizon_hcb_exp/Tag-parameters.css +0 -1
  833. package/src/themes/sap_horizon_hcb_exp/TextArea-parameters.css +0 -42
  834. package/src/themes/sap_horizon_hcb_exp/TimePicker-parameters.css +0 -5
  835. package/src/themes/sap_horizon_hcb_exp/ToggleButton-parameters.css +0 -1
  836. package/src/themes/sap_horizon_hcb_exp/Token-parameters.css +0 -17
  837. package/src/themes/sap_horizon_hcb_exp/ValueStateMessage-parameters.css +0 -13
  838. package/src/themes/sap_horizon_hcb_exp/YearPicker-parameters.css +0 -12
  839. package/src/themes/sap_horizon_hcb_exp/parameters-bundle.css +0 -52
  840. package/src/themes/sap_horizon_hcb_exp/sizes-parameters.css +0 -16
  841. package/src/themes/sap_horizon_hcw_exp/Avatar-parameters.css +0 -54
  842. package/src/themes/sap_horizon_hcw_exp/BusyIndicator-parameters.css +0 -5
  843. package/src/themes/sap_horizon_hcw_exp/Button-parameters.css +0 -9
  844. package/src/themes/sap_horizon_hcw_exp/CalendarHeader-parameters.css +0 -11
  845. package/src/themes/sap_horizon_hcw_exp/Card-parameters.css +0 -11
  846. package/src/themes/sap_horizon_hcw_exp/Carousel-parameters.css +0 -9
  847. package/src/themes/sap_horizon_hcw_exp/CheckBox-parameters.css +0 -45
  848. package/src/themes/sap_horizon_hcw_exp/ColorPicker-parameters.css +0 -10
  849. package/src/themes/sap_horizon_hcw_exp/DatePicker-parameters.css +0 -5
  850. package/src/themes/sap_horizon_hcw_exp/DayPicker-parameters.css +0 -69
  851. package/src/themes/sap_horizon_hcw_exp/FileUploader-parameters.css +0 -6
  852. package/src/themes/sap_horizon_hcw_exp/GrowingButton-parameters.css +0 -8
  853. package/src/themes/sap_horizon_hcw_exp/Input-parameters.css +0 -32
  854. package/src/themes/sap_horizon_hcw_exp/InputIcon-parameters.css +0 -11
  855. package/src/themes/sap_horizon_hcw_exp/Link-parameters.css +0 -11
  856. package/src/themes/sap_horizon_hcw_exp/ListItem-parameters.css +0 -3
  857. package/src/themes/sap_horizon_hcw_exp/Menu-parameters.css +0 -5
  858. package/src/themes/sap_horizon_hcw_exp/MessageStrip-parameters.css +0 -10
  859. package/src/themes/sap_horizon_hcw_exp/MonthPicker-parameters.css +0 -12
  860. package/src/themes/sap_horizon_hcw_exp/Panel-parameters.css +0 -11
  861. package/src/themes/sap_horizon_hcw_exp/PopupsCommon-parameters.css +0 -5
  862. package/src/themes/sap_horizon_hcw_exp/RadioButton-parameters.css +0 -30
  863. package/src/themes/sap_horizon_hcw_exp/RatingIndicator-parameters.css +0 -16
  864. package/src/themes/sap_horizon_hcw_exp/SegmentedButtton-parameters.css +0 -8
  865. package/src/themes/sap_horizon_hcw_exp/Select-parameters.css +0 -10
  866. package/src/themes/sap_horizon_hcw_exp/SliderBase-parameters.css +0 -78
  867. package/src/themes/sap_horizon_hcw_exp/SplitButton-parameters.css +0 -34
  868. package/src/themes/sap_horizon_hcw_exp/Switch-parameters.css +0 -149
  869. package/src/themes/sap_horizon_hcw_exp/TabContainer-parameters.css +0 -49
  870. package/src/themes/sap_horizon_hcw_exp/Tag-parameters.css +0 -1
  871. package/src/themes/sap_horizon_hcw_exp/TextArea-parameters.css +0 -42
  872. package/src/themes/sap_horizon_hcw_exp/TimePicker-parameters.css +0 -5
  873. package/src/themes/sap_horizon_hcw_exp/ToggleButton-parameters.css +0 -1
  874. package/src/themes/sap_horizon_hcw_exp/Token-parameters.css +0 -17
  875. package/src/themes/sap_horizon_hcw_exp/ValueStateMessage-parameters.css +0 -13
  876. package/src/themes/sap_horizon_hcw_exp/YearPicker-parameters.css +0 -12
  877. package/src/themes/sap_horizon_hcw_exp/parameters-bundle.css +0 -52
  878. package/src/themes/sap_horizon_hcw_exp/sizes-parameters.css +0 -16
@@ -1,13 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@ui5/webcomponents-base/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ui5/webcomponents-base/jsx-runtime";
2
2
  import Label from "./Label.js";
3
3
  import Slider from "./Slider.js";
4
4
  import Input from "./Input.js";
5
+ import Button from "./Button.js";
5
6
  export default function ColorPickerTemplate() {
6
7
  return (_jsxs("section", { class: "ui5-color-picker-root", children: [_jsx("div", { class: "ui5-color-picker-main-color", style: { "background-color": `rgb(${this._mainValue.r}, ${this._mainValue.g}, ${this._mainValue.b})` }, onMouseDown: this._handleMouseDown, onMouseUp: this._handleMouseUp, onMouseMove: this._handleMouseMove, onMouseOut: this._handleMouseOut, children: _jsx("div", { class: "ui5-color-picker-circle", style: {
7
8
  left: `${this._selectedCoordinates.x}px`,
8
9
  top: `${this._selectedCoordinates.y}px`,
9
10
  } }) }), _jsxs("div", { class: "ui5-color-picker-sliders-wrapper", children: [_jsx(Slider, { disabled: this.inputsDisabled, class: "ui5-color-picker-hue-slider", min: 0, max: 360, step: 1, value: this._hue, accessibleName: this.hueSliderLabel, showTooltip: true, onInput: this._handleHueInput }), this._isDefaultPickerMode &&
10
- _jsx(Slider, { disabled: this.inputsDisabled, class: "ui5-color-picker-alpha-slider", min: 0, max: 1, step: 0.01, value: this._alpha, accessibleName: this.alphaSliderLabel, showTooltip: true, onInput: this._handleAlphaInputFromSlider })] }), _jsxs("div", { class: "ui5-color-picker-current-color", children: [_jsxs("div", { class: "ui5-color-picker-colors-wrapper", children: [_jsx("span", { class: "ui5-color-picker-white" }), _jsx("span", { class: "ui5-color-picker-color", children: _jsx("div", { class: "ui5-color-picker-color-inner", style: { "background-color": `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, ${this._alpha})` } }) })] }), _jsxs("div", { class: "ui5-color-picker-hex-input-wrapper", children: [_jsx(Label, { children: "Hex" }), _jsx(Input, { class: "ui5-color-picker-hex-input", value: this.hex, onKeyDown: this._onkeydown, accessibleName: this.hexInputLabel, onChange: this._handleHEXChange, valueState: this.hexInputErrorState })] })] }), this._isDefaultPickerMode &&
11
- _jsxs("div", { class: "ui5-color-picker-rgb-wrapper", "onui5-change": this._handleRGBInputsChange, children: [_jsxs("div", { class: "ui5-color-picker-rgb", children: [_jsx(Input, { id: "red", class: "ui5-color-picker-rgb-input", disabled: this.inputsDisabled, accessibleName: this.redInputLabel, value: String(this._value.r) }), _jsx(Label, { children: "R" })] }), _jsxs("div", { class: "ui5-color-picker-rgb", children: [_jsx(Input, { id: "green", class: "ui5-color-picker-rgb-input", disabled: this.inputsDisabled, accessibleName: this.greenInputLabel, value: String(this._value.g) }), _jsx(Label, { children: "G" })] }), _jsxs("div", { class: "ui5-color-picker-rgb", children: [_jsx(Input, { id: "blue", class: "ui5-color-picker-rgb-input", disabled: this.inputsDisabled, accessibleName: this.blueInputLabel, value: String(this._value.b) }), _jsx(Label, { children: "B" })] }), _jsxs("div", { class: "ui5-color-picker-rgb", children: [_jsx(Input, { id: "alpha", disabled: this.inputsDisabled, class: "ui5-color-picker-rgb-input", value: String(this._alpha), accessibleName: this.alphaInputLabel, onChange: this._handleAlphaChange }), _jsx(Label, { children: "A" })] })] })] }));
11
+ _jsx(Slider, { disabled: this.inputsDisabled, class: "ui5-color-picker-alpha-slider", min: 0, max: 1, step: 0.01, value: this._alpha, accessibleName: this.alphaSliderLabel, showTooltip: true, onInput: this._handleAlphaInput })] }), _jsxs("div", { class: "ui5-color-picker-current-color", children: [_jsxs("div", { class: "ui5-color-picker-colors-wrapper", children: [_jsx("span", { class: "ui5-color-picker-white" }), _jsx("span", { class: "ui5-color-picker-color", children: _jsx("div", { class: "ui5-color-picker-color-inner", style: { "background-color": this._colorValue.toRGBString() } }) })] }), _jsxs("div", { class: "ui5-color-picker-hex-input-wrapper", children: [_jsx(Label, { children: "Hex" }), _jsx(Input, { class: "ui5-color-picker-hex-input", value: this.HEX, onKeyDown: this._onkeydown, accessibleName: this.hexInputLabel, onChange: this._handleHEXChange, valueState: this.hexInputErrorState })] })] }), this._isDefaultPickerMode &&
12
+ _jsxs("div", { class: "ui5-color-channel-inputs-wrapper", "onui5-change": this._handleColorInputChange, children: [this.colorChannelInputs.map(input => _jsxs(_Fragment, { children: [_jsxs("div", { class: "ui5-color-channel", children: [_jsx(Input, { id: input.id, class: "ui5-color-channel-input", disabled: this.inputsDisabled, accessibleName: input.accessibleName, value: String(input.value) }), _jsx(Label, { children: input.label })] }), _jsx("div", { class: "ui5-color-channel-percentage-label", children: input.showPercentSymbol &&
13
+ _jsx(Label, { children: "%" }) })] })), _jsxs("div", { class: "ui5-color-channel", children: [_jsx(Input, { id: "alpha", disabled: this.inputsDisabled, class: "ui5-color-channel-input", value: String(this._alpha), accessibleName: this.alphaInputLabel, onChange: this._handleAlphaChange, onInput: this._handleAlphaInput }), _jsx(Label, { children: "A" })] }), _jsx("div", { children: _jsx(Button, { class: "ui5-color-channel-toggle", id: "toggle-picker-mode", icon: "expand", design: "Transparent", tooltip: this.toggleModeTooltip, onClick: this._togglePickerMode }) })] })] }));
12
14
  }
13
15
  //# sourceMappingURL=ColorPickerTemplate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerTemplate.js","sourceRoot":"","sources":["../src/ColorPickerTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,mBAAmB;IAC1C,OAAO,CACN,mBAAS,KAAK,EAAC,uBAAuB,aACrC,cACC,KAAK,EAAC,6BAA6B,EACnC,KAAK,EAAE,EAAE,kBAAkB,EAAE,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,EACtG,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,SAAS,EAAE,IAAI,CAAC,cAAc,EAC9B,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,UAAU,EAAE,IAAI,CAAC,eAAe,YAEhC,cACC,KAAK,EAAC,yBAAyB,EAC/B,KAAK,EAAE;wBACN,IAAI,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI;wBACxC,GAAG,EAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI;qBACvC,GACK,GACF,EAEN,eAAK,KAAK,EAAC,kCAAkC,aAC5C,KAAC,MAAM,IACN,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,KAAK,EAAC,6BAA6B,EACnC,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,IAAI,CAAC,IAAI,EAChB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC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AC,cAAc,EAC7B,cAAc,EAAE,IAAI,CAAC,aAAa,EAClC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3B,EACF,KAAC,KAAK,oBAAU,IACX,EACN,eAAK,KAAK,EAAC,sBAAsB,aAChC,KAAC,KAAK,IACL,EAAE,EAAC,OAAO,EACV,KAAK,EAAC,4BAA4B,EAClC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,cAAc,EAAE,IAAI,CAAC,eAAe,EACpC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3B,EACF,KAAC,KAAK,oBAAU,IACX,EACN,eAAK,KAAK,EAAC,sBAAsB,aAChC,KAAC,KAAK,IACL,EAAE,EAAC,MAAM,EACT,KAAK,EAAC,4BAA4B,EAClC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3B,EACF,KAAC,KAAK,oBAAU,IACX,EACN,eAAK,KAAK,EAAC,sBAAsB,aAChC,KAAC,KAAK,IACL,EAAE,EAAC,OAAO,EACV,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAC1B,cAAc,EAAE,IAAI,CAAC,eAAe,EACpC,QAAQ,EAAE,IAAI,CAAC,kBAAkB,GAChC,EACF,KAAC,KAAK,oBAAU,IACX,IACD,IAEE,CACV,CAAC;AACH,CAAC","sourcesContent":["import type ColorPicker from \"./ColorPicker.js\";\nimport Label from \"./Label.js\";\nimport Slider from \"./Slider.js\";\nimport Input from \"./Input.js\";\n\nexport default function ColorPickerTemplate(this: ColorPicker) {\n\treturn (\n\t\t<section class=\"ui5-color-picker-root\">\n\t\t\t<div\n\t\t\t\tclass=\"ui5-color-picker-main-color\"\n\t\t\t\tstyle={{ \"background-color\": `rgb(${this._mainValue.r}, ${this._mainValue.g}, ${this._mainValue.b})` }}\n\t\t\t\tonMouseDown={this._handleMouseDown}\n\t\t\t\tonMouseUp={this._handleMouseUp}\n\t\t\t\tonMouseMove={this._handleMouseMove}\n\t\t\t\tonMouseOut={this._handleMouseOut}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"ui5-color-picker-circle\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${this._selectedCoordinates.x}px`,\n\t\t\t\t\t\ttop: `${this._selectedCoordinates.y}px`,\n\t\t\t\t\t}}\n\t\t\t\t></div>\n\t\t\t</div>\n\n\t\t\t<div class=\"ui5-color-picker-sliders-wrapper\">\n\t\t\t\t<Slider\n\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\tclass=\"ui5-color-picker-hue-slider\"\n\t\t\t\t\tmin={0}\n\t\t\t\t\tmax={360}\n\t\t\t\t\tstep={1}\n\t\t\t\t\tvalue={this._hue}\n\t\t\t\t\taccessibleName={this.hueSliderLabel}\n\t\t\t\t\tshowTooltip={true}\n\t\t\t\t\tonInput={this._handleHueInput}\n\t\t\t\t/>\n\n\t\t\t\t{this._isDefaultPickerMode &&\n\t\t\t\t\t<Slider\n\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\tclass=\"ui5-color-picker-alpha-slider\"\n\t\t\t\t\t\tmin={0}\n\t\t\t\t\t\tmax={1}\n\t\t\t\t\t\tstep={0.01}\n\t\t\t\t\t\tvalue={this._alpha}\n\t\t\t\t\t\taccessibleName={this.alphaSliderLabel}\n\t\t\t\t\t\tshowTooltip={true}\n\t\t\t\t\t\tonInput={this._handleAlphaInputFromSlider}\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t</div>\n\n\t\t\t<div class=\"ui5-color-picker-current-color\">\n\t\t\t\t<div class=\"ui5-color-picker-colors-wrapper\">\n\t\t\t\t\t<span class=\"ui5-color-picker-white\"></span>\n\t\t\t\t\t<span class=\"ui5-color-picker-color\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-color-inner\"\n\t\t\t\t\t\t\tstyle={{ \"background-color\": `rgba(${this._value.r}, ${this._value.g}, ${this._value.b}, ${this._alpha})` }}\n\t\t\t\t\t\t></div>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"ui5-color-picker-hex-input-wrapper\">\n\t\t\t\t\t<Label>Hex</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tclass=\"ui5-color-picker-hex-input\"\n\t\t\t\t\t\tvalue={this.hex}\n\t\t\t\t\t\tonKeyDown={this._onkeydown}\n\t\t\t\t\t\taccessibleName={this.hexInputLabel}\n\t\t\t\t\t\tonChange={this._handleHEXChange}\n\t\t\t\t\t\tvalueState={this.hexInputErrorState}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{this._isDefaultPickerMode &&\n\t\t\t\t<div\n\t\t\t\t\tclass=\"ui5-color-picker-rgb-wrapper\"\n\t\t\t\t\tonui5-change={this._handleRGBInputsChange}\n\t\t\t\t>\n\t\t\t\t\t<div class=\"ui5-color-picker-rgb\">\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"red\"\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-rgb-input\"\n\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\taccessibleName={this.redInputLabel}\n\t\t\t\t\t\t\tvalue={String(this._value.r)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label>R</Label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ui5-color-picker-rgb\">\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"green\"\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-rgb-input\"\n\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\taccessibleName={this.greenInputLabel}\n\t\t\t\t\t\t\tvalue={String(this._value.g)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label>G</Label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ui5-color-picker-rgb\">\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"blue\"\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-rgb-input\"\n\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\taccessibleName={this.blueInputLabel}\n\t\t\t\t\t\t\tvalue={String(this._value.b)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label>B</Label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"ui5-color-picker-rgb\">\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"alpha\"\n\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-rgb-input\"\n\t\t\t\t\t\t\tvalue={String(this._alpha)}\n\t\t\t\t\t\t\taccessibleName={this.alphaInputLabel}\n\t\t\t\t\t\t\tonChange={this._handleAlphaChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label>A</Label>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</section>\n\t);\n}\n"]}
1
+ {"version":3,"file":"ColorPickerTemplate.js","sourceRoot":"","sources":["../src/ColorPickerTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,UAAU,mBAAmB;IAC1C,OAAO,CACN,mBAAS,KAAK,EAAC,uBAAuB,aACrC,cACC,KAAK,EAAC,6BAA6B,EACnC,KAAK,EAAE,EAAE,kBAAkB,EAAE,OAAO,IAAI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CAAC,eAAe,EACpC,QAAQ,EAAE,IAAI,CAAC,kBAAkB,EACjC,OAAO,EAAE,IAAI,CAAC,iBAAiB,GAC9B,EACF,KAAC,KAAK,oBAAU,IACX,EAEN,wBACC,KAAC,MAAM,IACN,KAAK,EAAC,0BAA0B,EAChC,EAAE,EAAC,oBAAoB,EACvB,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,aAAa,EACpB,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAC/B,OAAO,EAAE,IAAI,CAAC,iBAAiB,GAC9B,GACG,IACD,IAEE,CACV,CAAC;AACH,CAAC","sourcesContent":["import type ColorPicker from \"./ColorPicker.js\";\nimport Label from \"./Label.js\";\nimport Slider from \"./Slider.js\";\nimport Input from \"./Input.js\";\nimport Button from \"./Button.js\";\n\nexport default function ColorPickerTemplate(this: ColorPicker) {\n\treturn (\n\t\t<section class=\"ui5-color-picker-root\">\n\t\t\t<div\n\t\t\t\tclass=\"ui5-color-picker-main-color\"\n\t\t\t\tstyle={{ \"background-color\": `rgb(${this._mainValue.r}, ${this._mainValue.g}, ${this._mainValue.b})` }}\n\t\t\t\tonMouseDown={this._handleMouseDown}\n\t\t\t\tonMouseUp={this._handleMouseUp}\n\t\t\t\tonMouseMove={this._handleMouseMove}\n\t\t\t\tonMouseOut={this._handleMouseOut}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"ui5-color-picker-circle\"\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tleft: `${this._selectedCoordinates.x}px`,\n\t\t\t\t\t\ttop: `${this._selectedCoordinates.y}px`,\n\t\t\t\t\t}}\n\t\t\t\t></div>\n\t\t\t</div>\n\n\t\t\t<div class=\"ui5-color-picker-sliders-wrapper\">\n\t\t\t\t<Slider\n\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\tclass=\"ui5-color-picker-hue-slider\"\n\t\t\t\t\tmin={0}\n\t\t\t\t\tmax={360}\n\t\t\t\t\tstep={1}\n\t\t\t\t\tvalue={this._hue}\n\t\t\t\t\taccessibleName={this.hueSliderLabel}\n\t\t\t\t\tshowTooltip={true}\n\t\t\t\t\tonInput={this._handleHueInput}\n\t\t\t\t/>\n\n\t\t\t\t{this._isDefaultPickerMode &&\n\t\t\t\t\t<Slider\n\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\tclass=\"ui5-color-picker-alpha-slider\"\n\t\t\t\t\t\tmin={0}\n\t\t\t\t\t\tmax={1}\n\t\t\t\t\t\tstep={0.01}\n\t\t\t\t\t\tvalue={this._alpha}\n\t\t\t\t\t\taccessibleName={this.alphaSliderLabel}\n\t\t\t\t\t\tshowTooltip={true}\n\t\t\t\t\t\tonInput={this._handleAlphaInput}\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t</div>\n\n\t\t\t<div class=\"ui5-color-picker-current-color\">\n\t\t\t\t<div class=\"ui5-color-picker-colors-wrapper\">\n\t\t\t\t\t<span class=\"ui5-color-picker-white\"></span>\n\t\t\t\t\t<span class=\"ui5-color-picker-color\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"ui5-color-picker-color-inner\"\n\t\t\t\t\t\t\tstyle={{ \"background-color\": this._colorValue.toRGBString() }}\n\t\t\t\t\t\t></div>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"ui5-color-picker-hex-input-wrapper\">\n\t\t\t\t\t<Label>Hex</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tclass=\"ui5-color-picker-hex-input\"\n\t\t\t\t\t\tvalue={this.HEX}\n\t\t\t\t\t\tonKeyDown={this._onkeydown}\n\t\t\t\t\t\taccessibleName={this.hexInputLabel}\n\t\t\t\t\t\tonChange={this._handleHEXChange}\n\t\t\t\t\t\tvalueState={this.hexInputErrorState}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{this._isDefaultPickerMode &&\n\t\t\t\t<div\n\t\t\t\t\tclass=\"ui5-color-channel-inputs-wrapper\"\n\t\t\t\t\tonui5-change={this._handleColorInputChange}\n\t\t\t\t>\n\t\t\t\t\t{this.colorChannelInputs.map(input =>\n\t\t\t\t\t\t<><div class=\"ui5-color-channel\">\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tid={input.id}\n\t\t\t\t\t\t\t\tclass=\"ui5-color-channel-input\"\n\t\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\t\taccessibleName={input.accessibleName}\n\t\t\t\t\t\t\t\tvalue={String(input.value)} />\n\t\t\t\t\t\t\t<Label>{input.label}</Label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"ui5-color-channel-percentage-label\">\n\t\t\t\t\t\t\t{input.showPercentSymbol &&\n\t\t\t\t\t\t\t\t<Label>%</Label>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div></>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class=\"ui5-color-channel\">\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"alpha\"\n\t\t\t\t\t\t\tdisabled={this.inputsDisabled}\n\t\t\t\t\t\t\tclass=\"ui5-color-channel-input\"\n\t\t\t\t\t\t\tvalue={String(this._alpha)}\n\t\t\t\t\t\t\taccessibleName={this.alphaInputLabel}\n\t\t\t\t\t\t\tonChange={this._handleAlphaChange}\n\t\t\t\t\t\t\tonInput={this._handleAlphaInput}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label>A</Label>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclass=\"ui5-color-channel-toggle\"\n\t\t\t\t\t\t\tid=\"toggle-picker-mode\"\n\t\t\t\t\t\t\ticon=\"expand\"\n\t\t\t\t\t\t\tdesign=\"Transparent\"\n\t\t\t\t\t\t\ttooltip={this.toggleModeTooltip}\n\t\t\t\t\t\t\tonClick={this._togglePickerMode}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</section>\n\t);\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import Input from "./Input.js";
2
+ /**
3
+ * Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.
4
+ * Intended to be used for the DateTime components.
5
+ *
6
+ * @class
7
+ * @private
8
+ */
9
+ declare class DateTimeInput extends Input {
10
+ _shouldOpenValueStatePopover: boolean;
11
+ /**
12
+ * Prevents the value state message popover from appearing when a responsive popover (like time selection) is open
13
+ * since the responsive popover already includes the necessary information in its header.
14
+ *
15
+ * @protected
16
+ * @override
17
+ */
18
+ get hasValueStateMessage(): boolean;
19
+ }
20
+ export default DateTimeInput;
@@ -0,0 +1,44 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
8
+ // Styles
9
+ import Input from "./Input.js";
10
+ import { property } from "@ui5/webcomponents-base/dist/decorators.js";
11
+ /**
12
+ * Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.
13
+ * Intended to be used for the DateTime components.
14
+ *
15
+ * @class
16
+ * @private
17
+ */
18
+ let DateTimeInput = class DateTimeInput extends Input {
19
+ constructor() {
20
+ super(...arguments);
21
+ this._shouldOpenValueStatePopover = false;
22
+ }
23
+ /**
24
+ * Prevents the value state message popover from appearing when a responsive popover (like time selection) is open
25
+ * since the responsive popover already includes the necessary information in its header.
26
+ *
27
+ * @protected
28
+ * @override
29
+ */
30
+ get hasValueStateMessage() {
31
+ return this._shouldOpenValueStatePopover && super.hasValueStateMessage;
32
+ }
33
+ };
34
+ __decorate([
35
+ property({ noAttribute: true })
36
+ ], DateTimeInput.prototype, "_shouldOpenValueStatePopover", void 0);
37
+ DateTimeInput = __decorate([
38
+ customElement({
39
+ tag: "ui5-datetime-input",
40
+ })
41
+ ], DateTimeInput);
42
+ DateTimeInput.define();
43
+ export default DateTimeInput;
44
+ //# sourceMappingURL=DateTimeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimeInput.js","sourceRoot":"","sources":["../src/DateTimeInput.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AAErF,SAAS;AACT,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAEtE;;;;;;GAMG;AAKH,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,KAAK;IAAjC;;QAEC,iCAA4B,GAAG,KAAK,CAAC;IAYtC,CAAC;IAVA;;;;;;OAMG;IACH,IAAI,oBAAoB;QACvB,OAAO,IAAI,CAAC,4BAA4B,IAAI,KAAK,CAAC,oBAAoB,CAAC;IACxE,CAAC;CACD,CAAA;AAZA;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;mEACK;AAFhC,aAAa;IAJlB,aAAa,CAAC;QACd,GAAG,EAAE,oBAAoB;KACzB,CAAC;GAEI,aAAa,CAclB;AAED,aAAa,CAAC,MAAM,EAAE,CAAC;AAEvB,eAAe,aAAa,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\n\n// Styles\nimport Input from \"./Input.js\";\nimport { property } from \"@ui5/webcomponents-base/dist/decorators.js\";\n\n/**\n * Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.\n * Intended to be used for the DateTime components.\n *\n * @class\n * @private\n */\n@customElement({\n\ttag: \"ui5-datetime-input\",\n})\n\nclass DateTimeInput extends Input {\n\t@property({ noAttribute: true })\n\t_shouldOpenValueStatePopover = false;\n\n\t/**\n\t * Prevents the value state message popover from appearing when a responsive popover (like time selection) is open\n\t * since the responsive popover already includes the necessary information in its header.\n\t *\n\t * @protected\n\t * @override\n\t */\n\tget hasValueStateMessage() {\n\t\treturn this._shouldOpenValueStatePopover && super.hasValueStateMessage;\n\t}\n}\n\nDateTimeInput.define();\n\nexport default DateTimeInput;\n"]}
package/dist/Form.d.ts CHANGED
@@ -3,7 +3,6 @@ import type FormItemSpacing from "./types/FormItemSpacing.js";
3
3
  /**
4
4
  * Interface for components that can be slotted inside `ui5-form` as items.
5
5
  * @public
6
- * @experimental
7
6
  * @since 2.0.0
8
7
  */
9
8
  interface IFormItem extends UI5Element {
@@ -168,7 +167,6 @@ type ItemsInfo = {
168
167
  *
169
168
  * @public
170
169
  * @since 2.0.0
171
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
172
170
  * @extends UI5Element
173
171
  */
174
172
  declare class Form extends UI5Element {
package/dist/Form.js CHANGED
@@ -169,7 +169,6 @@ const DEFAULT_FORM_ITEM_LAYOUT_S = "1fr";
169
169
  *
170
170
  * @public
171
171
  * @since 2.0.0
172
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
173
172
  * @extends UI5Element
174
173
  */
175
174
  let Form = class Form extends UI5Element {
package/dist/Form.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,WAAW;A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;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACb;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACX;AAEhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACX;AA9HX,IAAI;IANT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;KACtB,CAAC;GACI,IAAI,CA0aT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,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 { getScopedVarName } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\n// Template\nimport FormTemplate from \"./FormTemplate.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\nimport type FormGroup from \"./FormGroup.js\";\n\nconst additionalStylesMap = new Map<string, string>();\n\nconst StepColumn = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 6,\n};\n\nconst breakpoints = [\"S\", \"M\", \"L\", \"Xl\"];\nconst MAX_FORM_ITEM_CELLS = 12;\nconst DEFAULT_FORM_ITEM_LAYOUT = \"4fr 8fr 0fr\";\nconst DEFAULT_FORM_ITEM_LAYOUT_S = \"1fr\";\n/**\n * Interface for components that can be slotted inside `ui5-form` as items.\n * @public\n * @experimental\n * @since 2.0.0\n */\ninterface IFormItem extends UI5Element {\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n\theaderText?: string;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\titems: Array<ItemsInfo>,\n\taccessibleNameRef: string | undefined\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The Form is a layout component that arranges labels and form fields (like input fields) pairs\n * into a specific number of columns.\n *\n * **Note:** The Form web component is a layout component, it isn't a replacement for the native `form` HTML element.\n * The Form web component does not provide any APIs for form submission.\n *\n * ### Structure\n *\n * - **Form** (`ui5-form`) is the top-level container component, responsible for the content layout and responsiveness.\n * - **FormGroup** (`ui5-form-group`) enables the grouping of the Form content.\n * - **FormItem** (`ui5-form-item`) is a pair of label and form fields and can be used directly in a Form, or as part of a FormGroup.\n *\n * The simplest Form (`ui5-form`) consists of a header area on top,\n * displaying a header text (see the `headingText` property) and content below - an arbitrary number of FormItems (ui5-form-item),\n * representing the pairs of label and form fields.\n *\n * And, there is also \"grouping\" available to assist the implementation of richer UIs.\n * This is enabled by the FormGroup (`ui5-form-group`) component.\n * In this case, the Form is structured into FormGroups and each FormGroup consists of FormItems.\n *\n * ### Responsiveness\n *\n * The Form component reacts and changes its layout on predefined breakpoints.\n * Depending on its size, the Form content (FormGroups and FormItems) gets divided into one or more columns as follows:\n * - **S** (< 600px) – 1 column is recommended (default: 1)\n * - **M** (600px - 1022px) – up to 2 columns are recommended (default: 1)\n * - **L** (1023px - 1439px) - up to 3 columns are recommended (default: 2)\n * - **XL** (> 1439px) – up to 6 columns are recommended (default: 3)\n *\n * To change the layout, use the `layout` property - f.e. layout=\"S1 M2 L3 XL6\".\n *\n * ### Groups\n *\n * To make better use of screen space, there is built-in logic to determine how many columns should a FormGroup occupy.\n *\n * - **Example #1** (perfect match):\n * 4 columns and 4 groups: each group will use 1 column.\n *\n * - **Example #2** (balanced distribution):\n * 4 columns and 2 groups: each group will use 2 columns.\n * 6 columns and 2 groups: each group will use 3 columns.\n *\n * - **Example #3** (unbalanced distribution):\n * 3 columns and 2 groups: the larger one will use 2 columns, the smaller 1 column.\n * 5 columns and 3 groups: two of the groups will use 2 columns each, the smallest 1 column.\n *\n * **Note:** The size of a group element is determined by the number of FormItems assigned to it.\n * In the case of equality, the first in the DOM will use more columns, and the last - fewer columns.\n *\n * - **Example #4** (more groups than columns):\n * 3 columns and 4 groups: each FormGroup uses only 1 column, the last FormGroup will wrap on the second row.\n *\n * ### Groups Column Span\n *\n * To influence the built-in group distribution, described in the previous section,\n * you can use the FormGroup's `columnSpan` property, that defines how many columns the group should expand to.\n *\n * ### Items Column Span\n *\n * FormItem's columnSpan property defines how many columns the form item should expand to inside a form group or the form.\n *\n * ### Items Label Span\n *\n * The placement of the labels depends on the size of the used column.\n * If there is enough space, the labels are next to their associated fields, otherwise - above the fields.\n * By default, the labels take 4/12 of the FormItem, leaving 8/12 parts to associated fields.\n * You can control what space the labels should take via the `labelSpan` property.\n *\n * **For example:** To always place the labels on top set: `labelSpan=\"S12 M12 L12 XL12\"` property.\n *\n * ### Items Empty Span\n *\n * By default, a form item spans 12 cells, fully divided between its label and field, with no empty space at the end:\n * - **Label:** occupies 4 cells.\n * - **Field:** occupies 8 cells.\n *\n * The `emptySpan` property provides additional layout flexibility by defining empty space at the form item’s end.\n *\n * **For example:** Setting \"S0 M0 L3 XL3\" (or just \"L3 XL3\") adjusts the layout as follows:\n * - **Label:** remains 4 cells.\n * - **Field:** is reduced to 5 cells.\n * - **Empty space:** 3 cells are added at the end.\n *\n * Greater values increase the empty space at the end of the form item, reducing the space available for the label and its field.\n * However, setting `emptySpan` to 1 cell is recommended and typically sufficient to achieve a balanced layout.\n *\n * ### Navigation flow\n *\n * The Form component supports two layout options for keyboard navigation:\n *\n * #### Simple form\n *\n * In this \"simple form\" layout, each `ui5-form-item` acts as a standalone group\n * with one item, so focus moves horizontally across the grid from one `ui5-form-item` to the next.\n * This layout is ideal for simpler forms and supports custom arrangements, e.g.,\n *\n * ```\n * | 1 | 2 |\n * | 3 |\n * | 4 | 5 |\n * ```\n *\n * #### Complex form\n *\n * In this layout, items are grouped into `ui5-form-group` elements, allowing more complex configurations:\n *\n * - **Single-Column Group**: Focus moves vertically down from one item to the next.\n * ```\n * | 1 |\n * | 2 |\n * | 3 |\n * ```\n *\n * - **Multi-Column Group**: Focus moves horizontally within each row, advancing to the next row after completing the current one.\n * ```\n * | 1 | 4 |\n * | 2 | 5 |\n * | 3 | 6 |\n * ```\n *\n * ### Keyboard Handling\n *\n * - [Tab] - Moves the focus to the next interactive element within the Form/FormGroup (if available) or to the next element in the tab chain outside the Form\n * - [Shift] + [Tab] - Moves the focus to the previous interactive element within the Form/FormGroup (if available) or to the previous element in the tab chain outside the Form\n * - [F6] - Moves the focus to the first interactive element of the next FormGroup (if available) or to the next element in the tab chain outside the Form\n * - [Shift] + [F6] - Moves the focus to the first interactive element of the previous FormGroup (if available) or to the previous element in the tab chain outside the Form\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/Form.js\";\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart header - Used to style the wrapper of the header.\n * @csspart layout - Used to style the element defining the form column layout.\n * @csspart column - Used to style a single column of the form column layout.\n *\n * @public\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form\",\n\trenderer: jsxRenderer,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n})\nclass Form extends UI5Element {\n\t/**\n\t * Defines the number of columns to distribute the form content by breakpoint.\n\t *\n\t * Supported values:\n\t * - `S` - 1 column by default (1 column is recommended)\n\t * - `M` - 1 column by default (up to 2 columns are recommended)\n\t * - `L` - 2 columns by default (up to 3 columns are recommended)\n\t * - `XL` - 3 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL3\"\n\t * @public\n\t */\n\t@property()\n\tlayout = \"S1 M1 L2 XL3\"\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a form item by breakpoint.\n\t *\n\t * By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,\n\t * and 12/12 in S size, e.g in S the label is on top of its associated field.\n\t *\n\t * The supported values are between 1 and 12. Greater the number, more space the label will use.\n\t *\n\t * **Note:** If \"12\" is set, the label will be displayed on top of its assosiated field.\n\t *\n\t * @default \"S12 M4 L4 XL4\"\n\t * @public\n\t */\n\t@property()\n\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\t/**\n\t * Defines the number of cells that are empty at the end of each form item, configurable by breakpoint.\n\t *\n\t * By default, a form item spans 12 cells, fully divided between its label (4 cells) and field (8 cells), with no empty space at the end.\n\t * The `emptySpan` provides additional layout flexibility by defining empty space at the form item’s end.\n\t *\n\t * **Note:**\n\t * - The maximum allowable empty space is 10 cells. At least 1 cell each must remain for the label and the field.\n\t * - When `emptySpan` is specified (greater than 0), ensure that the combined value of `emptySpan` and `labelSpan` does not exceed 11. This guarantees a minimum of 1 cell for the field.\n\t *\n\t * @default \"S0 M0 L0 XL0\"\n\t * @since 2.5.0\n\t * @public\n\t */\n\t@property()\n\temptySpan = \"S0 M0 L0 XL0\";\n\n\t/**\n\t * Defines the header text of the component.\n\t *\n\t * **Note:** The property gets overridden by the `header` slot.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines the vertical spacing between form items.\n\t *\n\t * **Note:** If the Form is meant to be switched between \"non-edit\" and \"edit\" modes,\n\t * we recommend using \"Large\" item spacing in \"non-edit\" mode, and \"Normal\" - for \"edit\" mode,\n\t * to avoid \"jumping\" effect, caused by the hight difference between texts in \"non-edit\" mode and the input fields in \"edit\" mode.\n\t *\n\t * @default \"Normal\"\n\t * @public\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\t/**\n\t * Defines the component header area.\n\t *\n\t * **Note:** When a `header` is provided, the `headerText` property is ignored.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the component content - FormGroups or FormItems.\n\t *\n\t * **Note:** Mixing FormGroups and standalone FormItems (not belonging to a group) is not supported.\n\t * Either use FormGroups and make sure all FormItems are part of a FormGroup, or use just FormItems without any FormGroups.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t})\n\titems!: Array<IFormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolumnsS = 1;\n\t@property({ type: Number })\n\tlabelSpanS = 12\n\t@property({ type: Number })\n\temptySpanS = 0\n\n\t@property({ type: Number })\n\tcolumnsM = 1;\n\t@property({ type: Number })\n\tlabelSpanM = 4;\n\t@property({ type: Number })\n\temptySpanM = 0\n\n\t@property({ type: Number })\n\tcolumnsL = 2;\n\t@property({ type: Number })\n\tlabelSpanL = 4;\n\t@property({ type: Number })\n\temptySpanL = 0\n\n\t@property({ type: Number })\n\tcolumnsXl = 3;\n\t@property({ type: Number })\n\tlabelSpanXl = 4;\n\t@property({ type: Number })\n\temptySpanXl = 0;\n\n\tonBeforeRendering() {\n\t\t// Parse the layout and set it to the FormGroups/FormItems.\n\t\tthis.setColumnLayout();\n\n\t\t// Parse the labelSpan and emptySpan and set it to the FormGroups/FormItems.\n\t\tthis.setFormItemLayout();\n\n\t\t// Define how many columns a group should take.\n\t\tthis.setGroupsColSpan();\n\t}\n\n\tonAfterRendering() {\n\t\t// Create additional CSS for number of columns that are not supported by default.\n\t\tthis.createAdditionalCSSStyleSheet();\n\n\t\tthis.setFastNavGroup();\n\t}\n\n\tsetColumnLayout() {\n\t\tconst layoutArr = this.layout.split(\" \");\n\t\tlayoutArr.forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.columnsS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.columnsM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.columnsL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.columnsXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tparseFormItemSpan() {\n\t\tthis.labelSpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.labelSpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.labelSpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.labelSpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.labelSpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\n\t\tthis.emptySpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.emptySpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.emptySpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.emptySpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.emptySpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tsetFormItemLayout() {\n\t\tthis.parseFormItemSpan();\n\n\t\t[\n\t\t\t{\n\t\t\t\tbreakpoint: \"S\",\n\t\t\t\tlabelSpan: this.labelSpanS,\n\t\t\t\temptySpan: this.emptySpanS,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"M\",\n\t\t\t\tlabelSpan: this.labelSpanM,\n\t\t\t\temptySpan: this.emptySpanM,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"L\",\n\t\t\t\tlabelSpan: this.labelSpanL,\n\t\t\t\temptySpan: this.emptySpanL,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"XL\",\n\t\t\t\tlabelSpan: this.labelSpanXl,\n\t\t\t\temptySpan: this.emptySpanXl,\n\t\t\t},\n\t\t].forEach(layout => {\n\t\t\tif (this.isValidFormItemLayout(layout.labelSpan, layout.emptySpan)) {\n\t\t\t\tconst formItemLayout = layout.labelSpan === MAX_FORM_ITEM_CELLS ? `1fr` : `${layout.labelSpan}fr ${MAX_FORM_ITEM_CELLS - (layout.labelSpan + layout.emptySpan)}fr ${layout.emptySpan}fr`;\n\t\t\t\tthis.style.setProperty(getScopedVarName(`--ui5-form-item-layout-${layout.breakpoint}`), formItemLayout);\n\t\t\t} else {\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\tconsole.warn(`Form :: invalid usage of emptySpan and/or labelSpan in ${layout.breakpoint} size. The labelSpan must be <=12 and when emptySpace is used - their combined values must not exceed 11.`)\n\t\t\t\tthis.style.setProperty(getScopedVarName(`--ui5-form-item-layout-${layout.breakpoint}`), layout.breakpoint === \"S\" ? DEFAULT_FORM_ITEM_LAYOUT_S : DEFAULT_FORM_ITEM_LAYOUT);\n\t\t\t}\n\t\t});\n\t}\n\n\tisValidFormItemLayout(labelSpan: number, emptySpan: number) {\n\t\treturn emptySpan === 0 ? labelSpan <= MAX_FORM_ITEM_CELLS : labelSpan + emptySpan <= MAX_FORM_ITEM_CELLS - 1;\n\t}\n\n\tsetFastNavGroup() {\n\t\tif (this.hasGroupItems) {\n\t\t\tthis.removeAttribute(\"data-sap-ui-fastnavgroup\");\n\t\t} else {\n\t\t\tthis.setAttribute(\"data-sap-ui-fastnavgroup\", \"true\");\n\t\t}\n\t}\n\n\tsetGroupsColSpan() {\n\t\tif (!this.hasGroupItems) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst itemsCount = this.items.length;\n\t\tconst sortedItems = [...this.items].sort((itemA: IFormItem, itemB: IFormItem) => {\n\t\t\treturn (itemB as FormGroup)?.items.length - (itemA as FormGroup)?.items.length;\n\t\t});\n\n\t\tsortedItems.forEach((item: IFormItem, idx: number) => {\n\t\t\titem.colsXl = this.getGroupsColSpan(this.columnsXl, itemsCount, idx, item);\n\t\t\titem.colsL = this.getGroupsColSpan(this.columnsL, itemsCount, idx, item);\n\t\t\titem.colsM = this.getGroupsColSpan(this.columnsM, itemsCount, idx, item);\n\t\t\titem.colsS = this.getGroupsColSpan(this.columnsS, itemsCount, idx, item);\n\t\t});\n\t}\n\n\tgetGroupsColSpan(cols: number, groups: number, index: number, group: IFormItem): number {\n\t\t// Case 0: column span is set from outside.\n\t\tif (group.columnSpan) {\n\t\t\treturn group.columnSpan;\n\t\t}\n\n\t\t// CASE 1: The number of available columns match the number of groups, or only 1 column is available - each group takes 1 column.\n\t\t// For example: 1 column - 1 group, 2 columns - 2 groups, 3 columns - 3 groups, 4columns - 4 groups\n\t\tif (cols === 1 || cols <= groups) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// CASE 2: The number of available columns IS multiple of the number of groups.\n\t\t// For example: 2 column - 1 group, 3 columns - 1 groups, 4 columns - 1 group, 4 columns - 2 groups\n\t\tif (cols % groups === 0) {\n\t\t\treturn cols / groups;\n\t\t}\n\n\t\t// CASE 3: The number of available columns IS NOT multiple of the number of groups.\n\t\tconst MIN_COL_SPAN = 1;\n\t\tconst delta = cols - groups;\n\n\t\t// 7 cols & 4 groups => 2, 2, 2, 1\n\t\tif (delta <= groups) {\n\t\t\treturn index < delta ? MIN_COL_SPAN + 1 : MIN_COL_SPAN;\n\t\t}\n\n\t\t// 7 cols & 3 groups => 3, 2, 2\n\t\treturn index === 0 ? MIN_COL_SPAN + (delta - groups) + 1 : MIN_COL_SPAN + 1;\n\t}\n\n\tget hasGroupItems(): boolean {\n\t\treturn this.items.some((item: IFormItem) => item.isGroup);\n\t}\n\n\tget hasHeader(): boolean {\n\t\treturn this.hasCustomHeader || !!this.headerText;\n\t}\n\n\tget hasCustomHeader(): boolean {\n\t\treturn !!this.header.length;\n\t}\n\n\tget effectiveАccessibleNameRef(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget effectiveAccessibleRole() {\n\t\treturn this.hasGroupItems ? \"region\" : \"form\";\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\tconst items = this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>));\n\t\t\tbreakpoints.forEach(breakpoint => {\n\t\t\t\tconst cols = ((groupItem[`cols${breakpoint}` as keyof IFormItem]) as number || 1);\n\t\t\t\tconst rows = Math.ceil(items.length / cols);\n\t\t\t\tconst total = cols * rows;\n\t\t\t\tconst lastRowColumns = (cols - (total - items.length) - 1); // all other indecies start from 0\n\t\t\t\tlet currentItem = 0;\n\n\t\t\t\tfor (let i = 0; i < total; i++) {\n\t\t\t\t\tconst column = Math.floor(i / rows);\n\t\t\t\t\tconst row = i % rows;\n\n\t\t\t\t\tif (row === rows - 1 && column > lastRowColumns) {\n\t\t\t\t\t\t// eslint-disable-next-line no-continue\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\titems[currentItem].item.style.setProperty(getScopedVarName(`--ui5-form-item-order-${breakpoint}`), `${column + row * cols}`);\n\t\t\t\t\tcurrentItem++;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\taccessibleNameRef: (groupItem as FormGroup).headerText ? `${groupItem._id}-group-header-text` : undefined,\n\t\t\t\titems: this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>)),\n\t\t\t};\n\t\t});\n\t}\n\n\tget itemsInfo(): Array<ItemsInfo> {\n\t\treturn this.getItemsInfo();\n\t}\n\n\tgetItemsInfo(items?: Array<IFormItem>): Array<ItemsInfo> {\n\t\treturn (items || this.items).map((item: IFormItem) => {\n\t\t\treturn {\n\t\t\t\titem,\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\t// TODO: remove classes and classMap after deleting the hbs template\n\t\t\t\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\n\t\t\t\tclassMap: {\n\t\t\t\t\t[`ui5-form-item-span-${item.columnSpan}`]: item.columnSpan !== undefined,\n\t\t\t\t},\n\t\t\t};\n\t\t});\n\t}\n\n\tcreateAdditionalCSSStyleSheet() {\n\t\t[\n\t\t\t{ breakpoint: \"S\", columns: this.columnsS },\n\t\t\t{ breakpoint: \"M\", columns: this.columnsM },\n\t\t\t{ breakpoint: \"L\", columns: this.columnsL },\n\t\t\t{ breakpoint: \"XL\", columns: this.columnsXl },\n\t\t].forEach(step => {\n\t\t\tconst additionalStyle: string | undefined = this.getAdditionalCSS(step.breakpoint, step.columns);\n\n\t\t\tif (additionalStyle) {\n\t\t\t\tthis.shadowRoot!.adoptedStyleSheets = [...this.shadowRoot!.adoptedStyleSheets, this.getCSSStyleSheet(additionalStyle)];\n\t\t\t}\n\t\t});\n\t}\n\n\tgetAdditionalCSS(step: string, colsNumber: number): string | undefined {\n\t\tif (StepColumn[step as keyof typeof StepColumn] >= colsNumber) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst key = `${step}-${colsNumber}`;\n\n\t\tif (!additionalStylesMap.has(key)) {\n\t\t\tlet containerQuery;\n\t\t\tlet supporedColumnsNumber = StepColumn.S;\n\t\t\tlet stepSpanCSS = \"\";\n\t\t\tlet cols = colsNumber;\n\n\t\t\tif (step === \"S\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.S;\n\t\t\t\tcontainerQuery = `@container (max-width: 599px) {`;\n\t\t\t} else if (step === \"M\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.M;\n\t\t\t\tcontainerQuery = `@container (width > 599px) and (width < 1024px) {`;\n\t\t\t} else if (step === \"L\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.L;\n\t\t\t\tcontainerQuery = `@container (width > 1023px) and (width < 1439px) {`;\n\t\t\t} else if (step === \"XL\") {\n\t\t\t\tcontainerQuery = `@container (min-width: 1440px) {`;\n\t\t\t\tsupporedColumnsNumber = StepColumn.XL;\n\t\t\t}\n\n\t\t\twhile (cols > supporedColumnsNumber) {\n\t\t\t\tstepSpanCSS += `\n\t\t\t\t:host([columns-${step.toLocaleLowerCase()}=\"${cols}\"]) .ui5-form-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols},\n\t\t\t\t.ui5-form-item-span-${cols} {\n\t\t\t\t\tgrid-column: span ${cols};\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols} .ui5-form-group-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\t\t\t\t`;\n\t\t\t\tcols--;\n\t\t\t}\n\n\t\t\tconst css = `${containerQuery}${stepSpanCSS}}`;\n\t\t\tadditionalStylesMap.set(key, css);\n\t\t}\n\n\t\treturn additionalStylesMap.get(key)!;\n\t}\n\n\tgetCSSStyleSheet(cssText: string): CSSStyleSheet {\n\t\tconst style = new CSSStyleSheet();\n\t\tstyle.replaceSync(cssText);\n\t\treturn style;\n\t}\n}\n\nForm.define();\n\nexport default Form;\nexport type {\n\tIFormItem,\n};\n"]}
1
+ {"version":3,"file":"Form.js","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,gBA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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACZ;AAEf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACb;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACb;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACX;AAEhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACX;AA9HX,IAAI;IANT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;KACtB,CAAC;GACI,IAAI,CA0aT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,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 { getScopedVarName } from \"@ui5/webcomponents-base/dist/CustomElementsScope.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\n// Template\nimport FormTemplate from \"./FormTemplate.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\nimport type FormGroup from \"./FormGroup.js\";\n\nconst additionalStylesMap = new Map<string, string>();\n\nconst StepColumn = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 6,\n};\n\nconst breakpoints = [\"S\", \"M\", \"L\", \"Xl\"];\nconst MAX_FORM_ITEM_CELLS = 12;\nconst DEFAULT_FORM_ITEM_LAYOUT = \"4fr 8fr 0fr\";\nconst DEFAULT_FORM_ITEM_LAYOUT_S = \"1fr\";\n\n/**\n * Interface for components that can be slotted inside `ui5-form` as items.\n * @public\n * @since 2.0.0\n */\ninterface IFormItem extends UI5Element {\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n\theaderText?: string;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\titems: Array<ItemsInfo>,\n\taccessibleNameRef: string | undefined\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The Form is a layout component that arranges labels and form fields (like input fields) pairs\n * into a specific number of columns.\n *\n * **Note:** The Form web component is a layout component, it isn't a replacement for the native `form` HTML element.\n * The Form web component does not provide any APIs for form submission.\n *\n * ### Structure\n *\n * - **Form** (`ui5-form`) is the top-level container component, responsible for the content layout and responsiveness.\n * - **FormGroup** (`ui5-form-group`) enables the grouping of the Form content.\n * - **FormItem** (`ui5-form-item`) is a pair of label and form fields and can be used directly in a Form, or as part of a FormGroup.\n *\n * The simplest Form (`ui5-form`) consists of a header area on top,\n * displaying a header text (see the `headingText` property) and content below - an arbitrary number of FormItems (ui5-form-item),\n * representing the pairs of label and form fields.\n *\n * And, there is also \"grouping\" available to assist the implementation of richer UIs.\n * This is enabled by the FormGroup (`ui5-form-group`) component.\n * In this case, the Form is structured into FormGroups and each FormGroup consists of FormItems.\n *\n * ### Responsiveness\n *\n * The Form component reacts and changes its layout on predefined breakpoints.\n * Depending on its size, the Form content (FormGroups and FormItems) gets divided into one or more columns as follows:\n * - **S** (< 600px) – 1 column is recommended (default: 1)\n * - **M** (600px - 1022px) – up to 2 columns are recommended (default: 1)\n * - **L** (1023px - 1439px) - up to 3 columns are recommended (default: 2)\n * - **XL** (> 1439px) – up to 6 columns are recommended (default: 3)\n *\n * To change the layout, use the `layout` property - f.e. layout=\"S1 M2 L3 XL6\".\n *\n * ### Groups\n *\n * To make better use of screen space, there is built-in logic to determine how many columns should a FormGroup occupy.\n *\n * - **Example #1** (perfect match):\n * 4 columns and 4 groups: each group will use 1 column.\n *\n * - **Example #2** (balanced distribution):\n * 4 columns and 2 groups: each group will use 2 columns.\n * 6 columns and 2 groups: each group will use 3 columns.\n *\n * - **Example #3** (unbalanced distribution):\n * 3 columns and 2 groups: the larger one will use 2 columns, the smaller 1 column.\n * 5 columns and 3 groups: two of the groups will use 2 columns each, the smallest 1 column.\n *\n * **Note:** The size of a group element is determined by the number of FormItems assigned to it.\n * In the case of equality, the first in the DOM will use more columns, and the last - fewer columns.\n *\n * - **Example #4** (more groups than columns):\n * 3 columns and 4 groups: each FormGroup uses only 1 column, the last FormGroup will wrap on the second row.\n *\n * ### Groups Column Span\n *\n * To influence the built-in group distribution, described in the previous section,\n * you can use the FormGroup's `columnSpan` property, that defines how many columns the group should expand to.\n *\n * ### Items Column Span\n *\n * FormItem's columnSpan property defines how many columns the form item should expand to inside a form group or the form.\n *\n * ### Items Label Span\n *\n * The placement of the labels depends on the size of the used column.\n * If there is enough space, the labels are next to their associated fields, otherwise - above the fields.\n * By default, the labels take 4/12 of the FormItem, leaving 8/12 parts to associated fields.\n * You can control what space the labels should take via the `labelSpan` property.\n *\n * **For example:** To always place the labels on top set: `labelSpan=\"S12 M12 L12 XL12\"` property.\n *\n * ### Items Empty Span\n *\n * By default, a form item spans 12 cells, fully divided between its label and field, with no empty space at the end:\n * - **Label:** occupies 4 cells.\n * - **Field:** occupies 8 cells.\n *\n * The `emptySpan` property provides additional layout flexibility by defining empty space at the form item’s end.\n *\n * **For example:** Setting \"S0 M0 L3 XL3\" (or just \"L3 XL3\") adjusts the layout as follows:\n * - **Label:** remains 4 cells.\n * - **Field:** is reduced to 5 cells.\n * - **Empty space:** 3 cells are added at the end.\n *\n * Greater values increase the empty space at the end of the form item, reducing the space available for the label and its field.\n * However, setting `emptySpan` to 1 cell is recommended and typically sufficient to achieve a balanced layout.\n *\n * ### Navigation flow\n *\n * The Form component supports two layout options for keyboard navigation:\n *\n * #### Simple form\n *\n * In this \"simple form\" layout, each `ui5-form-item` acts as a standalone group\n * with one item, so focus moves horizontally across the grid from one `ui5-form-item` to the next.\n * This layout is ideal for simpler forms and supports custom arrangements, e.g.,\n *\n * ```\n * | 1 | 2 |\n * | 3 |\n * | 4 | 5 |\n * ```\n *\n * #### Complex form\n *\n * In this layout, items are grouped into `ui5-form-group` elements, allowing more complex configurations:\n *\n * - **Single-Column Group**: Focus moves vertically down from one item to the next.\n * ```\n * | 1 |\n * | 2 |\n * | 3 |\n * ```\n *\n * - **Multi-Column Group**: Focus moves horizontally within each row, advancing to the next row after completing the current one.\n * ```\n * | 1 | 4 |\n * | 2 | 5 |\n * | 3 | 6 |\n * ```\n *\n * ### Keyboard Handling\n *\n * - [Tab] - Moves the focus to the next interactive element within the Form/FormGroup (if available) or to the next element in the tab chain outside the Form\n * - [Shift] + [Tab] - Moves the focus to the previous interactive element within the Form/FormGroup (if available) or to the previous element in the tab chain outside the Form\n * - [F6] - Moves the focus to the first interactive element of the next FormGroup (if available) or to the next element in the tab chain outside the Form\n * - [Shift] + [F6] - Moves the focus to the first interactive element of the previous FormGroup (if available) or to the previous element in the tab chain outside the Form\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/Form.js\";\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart header - Used to style the wrapper of the header.\n * @csspart layout - Used to style the element defining the form column layout.\n * @csspart column - Used to style a single column of the form column layout.\n *\n * @public\n * @since 2.0.0\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form\",\n\trenderer: jsxRenderer,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n})\nclass Form extends UI5Element {\n\t/**\n\t * Defines the number of columns to distribute the form content by breakpoint.\n\t *\n\t * Supported values:\n\t * - `S` - 1 column by default (1 column is recommended)\n\t * - `M` - 1 column by default (up to 2 columns are recommended)\n\t * - `L` - 2 columns by default (up to 3 columns are recommended)\n\t * - `XL` - 3 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL3\"\n\t * @public\n\t */\n\t@property()\n\tlayout = \"S1 M1 L2 XL3\"\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a form item by breakpoint.\n\t *\n\t * By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,\n\t * and 12/12 in S size, e.g in S the label is on top of its associated field.\n\t *\n\t * The supported values are between 1 and 12. Greater the number, more space the label will use.\n\t *\n\t * **Note:** If \"12\" is set, the label will be displayed on top of its assosiated field.\n\t *\n\t * @default \"S12 M4 L4 XL4\"\n\t * @public\n\t */\n\t@property()\n\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\t/**\n\t * Defines the number of cells that are empty at the end of each form item, configurable by breakpoint.\n\t *\n\t * By default, a form item spans 12 cells, fully divided between its label (4 cells) and field (8 cells), with no empty space at the end.\n\t * The `emptySpan` provides additional layout flexibility by defining empty space at the form item’s end.\n\t *\n\t * **Note:**\n\t * - The maximum allowable empty space is 10 cells. At least 1 cell each must remain for the label and the field.\n\t * - When `emptySpan` is specified (greater than 0), ensure that the combined value of `emptySpan` and `labelSpan` does not exceed 11. This guarantees a minimum of 1 cell for the field.\n\t *\n\t * @default \"S0 M0 L0 XL0\"\n\t * @since 2.5.0\n\t * @public\n\t */\n\t@property()\n\temptySpan = \"S0 M0 L0 XL0\";\n\n\t/**\n\t * Defines the header text of the component.\n\t *\n\t * **Note:** The property gets overridden by the `header` slot.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines the vertical spacing between form items.\n\t *\n\t * **Note:** If the Form is meant to be switched between \"non-edit\" and \"edit\" modes,\n\t * we recommend using \"Large\" item spacing in \"non-edit\" mode, and \"Normal\" - for \"edit\" mode,\n\t * to avoid \"jumping\" effect, caused by the hight difference between texts in \"non-edit\" mode and the input fields in \"edit\" mode.\n\t *\n\t * @default \"Normal\"\n\t * @public\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\t/**\n\t * Defines the component header area.\n\t *\n\t * **Note:** When a `header` is provided, the `headerText` property is ignored.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the component content - FormGroups or FormItems.\n\t *\n\t * **Note:** Mixing FormGroups and standalone FormItems (not belonging to a group) is not supported.\n\t * Either use FormGroups and make sure all FormItems are part of a FormGroup, or use just FormItems without any FormGroups.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t})\n\titems!: Array<IFormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolumnsS = 1;\n\t@property({ type: Number })\n\tlabelSpanS = 12\n\t@property({ type: Number })\n\temptySpanS = 0\n\n\t@property({ type: Number })\n\tcolumnsM = 1;\n\t@property({ type: Number })\n\tlabelSpanM = 4;\n\t@property({ type: Number })\n\temptySpanM = 0\n\n\t@property({ type: Number })\n\tcolumnsL = 2;\n\t@property({ type: Number })\n\tlabelSpanL = 4;\n\t@property({ type: Number })\n\temptySpanL = 0\n\n\t@property({ type: Number })\n\tcolumnsXl = 3;\n\t@property({ type: Number })\n\tlabelSpanXl = 4;\n\t@property({ type: Number })\n\temptySpanXl = 0;\n\n\tonBeforeRendering() {\n\t\t// Parse the layout and set it to the FormGroups/FormItems.\n\t\tthis.setColumnLayout();\n\n\t\t// Parse the labelSpan and emptySpan and set it to the FormGroups/FormItems.\n\t\tthis.setFormItemLayout();\n\n\t\t// Define how many columns a group should take.\n\t\tthis.setGroupsColSpan();\n\t}\n\n\tonAfterRendering() {\n\t\t// Create additional CSS for number of columns that are not supported by default.\n\t\tthis.createAdditionalCSSStyleSheet();\n\n\t\tthis.setFastNavGroup();\n\t}\n\n\tsetColumnLayout() {\n\t\tconst layoutArr = this.layout.split(\" \");\n\t\tlayoutArr.forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.columnsS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.columnsM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.columnsL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.columnsXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tparseFormItemSpan() {\n\t\tthis.labelSpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.labelSpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.labelSpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.labelSpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.labelSpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\n\t\tthis.emptySpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.emptySpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.emptySpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.emptySpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.emptySpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tsetFormItemLayout() {\n\t\tthis.parseFormItemSpan();\n\n\t\t[\n\t\t\t{\n\t\t\t\tbreakpoint: \"S\",\n\t\t\t\tlabelSpan: this.labelSpanS,\n\t\t\t\temptySpan: this.emptySpanS,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"M\",\n\t\t\t\tlabelSpan: this.labelSpanM,\n\t\t\t\temptySpan: this.emptySpanM,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"L\",\n\t\t\t\tlabelSpan: this.labelSpanL,\n\t\t\t\temptySpan: this.emptySpanL,\n\t\t\t},\n\t\t\t{\n\t\t\t\tbreakpoint: \"XL\",\n\t\t\t\tlabelSpan: this.labelSpanXl,\n\t\t\t\temptySpan: this.emptySpanXl,\n\t\t\t},\n\t\t].forEach(layout => {\n\t\t\tif (this.isValidFormItemLayout(layout.labelSpan, layout.emptySpan)) {\n\t\t\t\tconst formItemLayout = layout.labelSpan === MAX_FORM_ITEM_CELLS ? `1fr` : `${layout.labelSpan}fr ${MAX_FORM_ITEM_CELLS - (layout.labelSpan + layout.emptySpan)}fr ${layout.emptySpan}fr`;\n\t\t\t\tthis.style.setProperty(getScopedVarName(`--ui5-form-item-layout-${layout.breakpoint}`), formItemLayout);\n\t\t\t} else {\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\tconsole.warn(`Form :: invalid usage of emptySpan and/or labelSpan in ${layout.breakpoint} size. The labelSpan must be <=12 and when emptySpace is used - their combined values must not exceed 11.`)\n\t\t\t\tthis.style.setProperty(getScopedVarName(`--ui5-form-item-layout-${layout.breakpoint}`), layout.breakpoint === \"S\" ? DEFAULT_FORM_ITEM_LAYOUT_S : DEFAULT_FORM_ITEM_LAYOUT);\n\t\t\t}\n\t\t});\n\t}\n\n\tisValidFormItemLayout(labelSpan: number, emptySpan: number) {\n\t\treturn emptySpan === 0 ? labelSpan <= MAX_FORM_ITEM_CELLS : labelSpan + emptySpan <= MAX_FORM_ITEM_CELLS - 1;\n\t}\n\n\tsetFastNavGroup() {\n\t\tif (this.hasGroupItems) {\n\t\t\tthis.removeAttribute(\"data-sap-ui-fastnavgroup\");\n\t\t} else {\n\t\t\tthis.setAttribute(\"data-sap-ui-fastnavgroup\", \"true\");\n\t\t}\n\t}\n\n\tsetGroupsColSpan() {\n\t\tif (!this.hasGroupItems) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst itemsCount = this.items.length;\n\t\tconst sortedItems = [...this.items].sort((itemA: IFormItem, itemB: IFormItem) => {\n\t\t\treturn (itemB as FormGroup)?.items.length - (itemA as FormGroup)?.items.length;\n\t\t});\n\n\t\tsortedItems.forEach((item: IFormItem, idx: number) => {\n\t\t\titem.colsXl = this.getGroupsColSpan(this.columnsXl, itemsCount, idx, item);\n\t\t\titem.colsL = this.getGroupsColSpan(this.columnsL, itemsCount, idx, item);\n\t\t\titem.colsM = this.getGroupsColSpan(this.columnsM, itemsCount, idx, item);\n\t\t\titem.colsS = this.getGroupsColSpan(this.columnsS, itemsCount, idx, item);\n\t\t});\n\t}\n\n\tgetGroupsColSpan(cols: number, groups: number, index: number, group: IFormItem): number {\n\t\t// Case 0: column span is set from outside.\n\t\tif (group.columnSpan) {\n\t\t\treturn group.columnSpan;\n\t\t}\n\n\t\t// CASE 1: The number of available columns match the number of groups, or only 1 column is available - each group takes 1 column.\n\t\t// For example: 1 column - 1 group, 2 columns - 2 groups, 3 columns - 3 groups, 4columns - 4 groups\n\t\tif (cols === 1 || cols <= groups) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// CASE 2: The number of available columns IS multiple of the number of groups.\n\t\t// For example: 2 column - 1 group, 3 columns - 1 groups, 4 columns - 1 group, 4 columns - 2 groups\n\t\tif (cols % groups === 0) {\n\t\t\treturn cols / groups;\n\t\t}\n\n\t\t// CASE 3: The number of available columns IS NOT multiple of the number of groups.\n\t\tconst MIN_COL_SPAN = 1;\n\t\tconst delta = cols - groups;\n\n\t\t// 7 cols & 4 groups => 2, 2, 2, 1\n\t\tif (delta <= groups) {\n\t\t\treturn index < delta ? MIN_COL_SPAN + 1 : MIN_COL_SPAN;\n\t\t}\n\n\t\t// 7 cols & 3 groups => 3, 2, 2\n\t\treturn index === 0 ? MIN_COL_SPAN + (delta - groups) + 1 : MIN_COL_SPAN + 1;\n\t}\n\n\tget hasGroupItems(): boolean {\n\t\treturn this.items.some((item: IFormItem) => item.isGroup);\n\t}\n\n\tget hasHeader(): boolean {\n\t\treturn this.hasCustomHeader || !!this.headerText;\n\t}\n\n\tget hasCustomHeader(): boolean {\n\t\treturn !!this.header.length;\n\t}\n\n\tget effectiveАccessibleNameRef(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget effectiveAccessibleRole() {\n\t\treturn this.hasGroupItems ? \"region\" : \"form\";\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\tconst items = this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>));\n\t\t\tbreakpoints.forEach(breakpoint => {\n\t\t\t\tconst cols = ((groupItem[`cols${breakpoint}` as keyof IFormItem]) as number || 1);\n\t\t\t\tconst rows = Math.ceil(items.length / cols);\n\t\t\t\tconst total = cols * rows;\n\t\t\t\tconst lastRowColumns = (cols - (total - items.length) - 1); // all other indecies start from 0\n\t\t\t\tlet currentItem = 0;\n\n\t\t\t\tfor (let i = 0; i < total; i++) {\n\t\t\t\t\tconst column = Math.floor(i / rows);\n\t\t\t\t\tconst row = i % rows;\n\n\t\t\t\t\tif (row === rows - 1 && column > lastRowColumns) {\n\t\t\t\t\t\t// eslint-disable-next-line no-continue\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\titems[currentItem].item.style.setProperty(getScopedVarName(`--ui5-form-item-order-${breakpoint}`), `${column + row * cols}`);\n\t\t\t\t\tcurrentItem++;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\taccessibleNameRef: (groupItem as FormGroup).headerText ? `${groupItem._id}-group-header-text` : undefined,\n\t\t\t\titems: this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>)),\n\t\t\t};\n\t\t});\n\t}\n\n\tget itemsInfo(): Array<ItemsInfo> {\n\t\treturn this.getItemsInfo();\n\t}\n\n\tgetItemsInfo(items?: Array<IFormItem>): Array<ItemsInfo> {\n\t\treturn (items || this.items).map((item: IFormItem) => {\n\t\t\treturn {\n\t\t\t\titem,\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\t// TODO: remove classes and classMap after deleting the hbs template\n\t\t\t\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\n\t\t\t\tclassMap: {\n\t\t\t\t\t[`ui5-form-item-span-${item.columnSpan}`]: item.columnSpan !== undefined,\n\t\t\t\t},\n\t\t\t};\n\t\t});\n\t}\n\n\tcreateAdditionalCSSStyleSheet() {\n\t\t[\n\t\t\t{ breakpoint: \"S\", columns: this.columnsS },\n\t\t\t{ breakpoint: \"M\", columns: this.columnsM },\n\t\t\t{ breakpoint: \"L\", columns: this.columnsL },\n\t\t\t{ breakpoint: \"XL\", columns: this.columnsXl },\n\t\t].forEach(step => {\n\t\t\tconst additionalStyle: string | undefined = this.getAdditionalCSS(step.breakpoint, step.columns);\n\n\t\t\tif (additionalStyle) {\n\t\t\t\tthis.shadowRoot!.adoptedStyleSheets = [...this.shadowRoot!.adoptedStyleSheets, this.getCSSStyleSheet(additionalStyle)];\n\t\t\t}\n\t\t});\n\t}\n\n\tgetAdditionalCSS(step: string, colsNumber: number): string | undefined {\n\t\tif (StepColumn[step as keyof typeof StepColumn] >= colsNumber) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst key = `${step}-${colsNumber}`;\n\n\t\tif (!additionalStylesMap.has(key)) {\n\t\t\tlet containerQuery;\n\t\t\tlet supporedColumnsNumber = StepColumn.S;\n\t\t\tlet stepSpanCSS = \"\";\n\t\t\tlet cols = colsNumber;\n\n\t\t\tif (step === \"S\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.S;\n\t\t\t\tcontainerQuery = `@container (max-width: 599px) {`;\n\t\t\t} else if (step === \"M\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.M;\n\t\t\t\tcontainerQuery = `@container (width > 599px) and (width < 1024px) {`;\n\t\t\t} else if (step === \"L\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.L;\n\t\t\t\tcontainerQuery = `@container (width > 1023px) and (width < 1439px) {`;\n\t\t\t} else if (step === \"XL\") {\n\t\t\t\tcontainerQuery = `@container (min-width: 1440px) {`;\n\t\t\t\tsupporedColumnsNumber = StepColumn.XL;\n\t\t\t}\n\n\t\t\twhile (cols > supporedColumnsNumber) {\n\t\t\t\tstepSpanCSS += `\n\t\t\t\t:host([columns-${step.toLocaleLowerCase()}=\"${cols}\"]) .ui5-form-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols},\n\t\t\t\t.ui5-form-item-span-${cols} {\n\t\t\t\t\tgrid-column: span ${cols};\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols} .ui5-form-group-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\t\t\t\t`;\n\t\t\t\tcols--;\n\t\t\t}\n\n\t\t\tconst css = `${containerQuery}${stepSpanCSS}}`;\n\t\t\tadditionalStylesMap.set(key, css);\n\t\t}\n\n\t\treturn additionalStylesMap.get(key)!;\n\t}\n\n\tgetCSSStyleSheet(cssText: string): CSSStyleSheet {\n\t\tconst style = new CSSStyleSheet();\n\t\tstyle.replaceSync(cssText);\n\t\treturn style;\n\t}\n}\n\nForm.define();\n\nexport default Form;\nexport type {\n\tIFormItem,\n};\n"]}
@@ -26,7 +26,6 @@ import type FormItemSpacing from "./types/FormItemSpacing.js";
26
26
  * @public
27
27
  * @implements {IFormItem}
28
28
  * @since 2.0.0
29
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
30
29
  * @extends UI5Element
31
30
  */
32
31
  declare class FormGroup extends UI5Element implements IFormItem {
package/dist/FormGroup.js CHANGED
@@ -32,7 +32,6 @@ import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
32
32
  * @public
33
33
  * @implements {IFormItem}
34
34
  * @since 2.0.0
35
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
36
35
  * @extends UI5Element
37
36
  */
38
37
  let FormGroup = class FormGroup extends UI5Element {
@@ -1 +1 @@
1
- {"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../src/FormGroup.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAMnE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QA8BC;;WAEG;QAEH,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,WAAM,GAAG,CAAC,CAAC;QAGX,gBAAW,GAAyB,QAAQ,CAAC;IAe9C,CAAC;IAbA,iBAAiB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACzB,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAc,EAAE,EAAE;YACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,OAAO;QACV,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AArDA;IADC,QAAQ,EAAE;6CACS;AAUpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACP;AAUpB;IAJC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;KACf,CAAC;wCACsB;AAMxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAChB;AAGX;IADC,QAAQ,EAAE;8CACkC;AA9CxC,SAAS;IAJd,aAAa,CAAC;QACd,GAAG,EAAE,gBAAgB;QACrB,cAAc,EAAE,IAAI;KACpB,CAAC;GACI,SAAS,CA6Dd;AAED,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,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 slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\nimport type FormItem from \"./FormItem.js\";\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormGroup (ui5-form-group) represents a group inside the Form (ui5-form) component\n * and it consists of FormItem (ui5-form-item) components.\n *\n * The layout of the FormGroup is mostly defined and controlled by the overarching Form (ui5-form) component.\n * Still, one can influence the layout via the FormGroup's `columnSpan` property,\n * that defines how many columns the group should expand to.\n *\n * ### Usage\n *\n * Тhe FormGroup (ui5-form-group) allows to split a Form into groups,\n * e.g to group FormItems that logically belong together.\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n *\n * @public\n * @implements {IFormItem}\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form-group\",\n\tfastNavigation: true,\n})\nclass FormGroup extends UI5Element implements IFormItem {\n\t/**\n\t * Defines header text of the component.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines column span of the component,\n\t * e.g how many columns the group should span to.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the items of the component.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t})\n\titems!: Array<FormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolsS = 1;\n\n\t@property({ type: Number })\n\tcolsM = 1;\n\n\t@property({ type: Number })\n\tcolsL = 1;\n\n\t@property({ type: Number })\n\tcolsXl = 1;\n\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\tonBeforeRendering() {\n\t\tthis.processFormItems();\n\t}\n\n\tprocessFormItems() {\n\t\tthis.items.forEach((item: FormItem) => {\n\t\t\titem.itemSpacing = this.itemSpacing;\n\t\t});\n\t}\n\n\tget isGroup() {\n\t\treturn true;\n\t}\n}\n\nFormGroup.define();\n\nexport default FormGroup;\n"]}
1
+ {"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../src/FormGroup.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAMnE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAKH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QA8BC;;WAEG;QAEH,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,WAAM,GAAG,CAAC,CAAC;QAGX,gBAAW,GAAyB,QAAQ,CAAC;IAe9C,CAAC;IAbA,iBAAiB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACzB,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAc,EAAE,EAAE;YACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,OAAO;QACV,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AArDA;IADC,QAAQ,EAAE;6CACS;AAUpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACP;AAUpB;IAJC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;KACf,CAAC;wCACsB;AAMxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAChB;AAGX;IADC,QAAQ,EAAE;8CACkC;AA9CxC,SAAS;IAJd,aAAa,CAAC;QACd,GAAG,EAAE,gBAAgB;QACrB,cAAc,EAAE,IAAI;KACpB,CAAC;GACI,SAAS,CA6Dd;AAED,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,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 slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\nimport type FormItem from \"./FormItem.js\";\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormGroup (ui5-form-group) represents a group inside the Form (ui5-form) component\n * and it consists of FormItem (ui5-form-item) components.\n *\n * The layout of the FormGroup is mostly defined and controlled by the overarching Form (ui5-form) component.\n * Still, one can influence the layout via the FormGroup's `columnSpan` property,\n * that defines how many columns the group should expand to.\n *\n * ### Usage\n *\n * Тhe FormGroup (ui5-form-group) allows to split a Form into groups,\n * e.g to group FormItems that logically belong together.\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n *\n * @public\n * @implements {IFormItem}\n * @since 2.0.0\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form-group\",\n\tfastNavigation: true,\n})\nclass FormGroup extends UI5Element implements IFormItem {\n\t/**\n\t * Defines header text of the component.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines column span of the component,\n\t * e.g how many columns the group should span to.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the items of the component.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t})\n\titems!: Array<FormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolsS = 1;\n\n\t@property({ type: Number })\n\tcolsM = 1;\n\n\t@property({ type: Number })\n\tcolsL = 1;\n\n\t@property({ type: Number })\n\tcolsXl = 1;\n\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\tonBeforeRendering() {\n\t\tthis.processFormItems();\n\t}\n\n\tprocessFormItems() {\n\t\tthis.items.forEach((item: FormItem) => {\n\t\t\titem.itemSpacing = this.itemSpacing;\n\t\t});\n\t}\n\n\tget isGroup() {\n\t\treturn true;\n\t}\n}\n\nFormGroup.define();\n\nexport default FormGroup;\n"]}
@@ -25,7 +25,6 @@ import type FormItemSpacing from "./types/FormItemSpacing.js";
25
25
  * @implements {IFormItem}
26
26
  * @public
27
27
  * @since 2.0.0
28
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
29
28
  * @extends UI5Element
30
29
  */
31
30
  declare class FormItem extends UI5Element implements IFormItem {
package/dist/FormItem.js CHANGED
@@ -37,7 +37,6 @@ import FormItemCss from "./generated/themes/FormItem.css.js";
37
37
  * @implements {IFormItem}
38
38
  * @public
39
39
  * @since 2.0.0
40
- * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
41
40
  * @extends UI5Element
42
41
  */
43
42
  let FormItem = class FormItem extends UI5Element {
@@ -1 +1 @@
1
- {"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../src/FormItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAEnE,WAAW;AACX,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,SAAS;AACT,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAOH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAkCC;;WAEG;QAEH,gBAAW,GAAyB,QAAQ,CAAA;IAK7C,CAAC;IAHA,IAAI,OAAO;QACV,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AA9BA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACP;AAOpB;IADC,IAAI,EAAE;8CAC2B;AAYlC;IALC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;QACf,eAAe,EAAE,IAAI;KACrB,CAAC;yCAC2B;AAM7B;IADC,QAAQ,EAAE;6CACiC;AAtCvC,QAAQ;IANb,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;GACI,QAAQ,CA2Cb;AAED,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\n// Template\nimport FormItemTemplate from \"./FormItemTemplate.js\";\n\n// Styles\nimport FormItemCss from \"./generated/themes/FormItem.css.js\";\n\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormItem (ui5-form-item) represents pair of a label and\n * one or more components (text or text fields), associated to it.\n *\n * ### Usage\n *\n * The FormItem is being used in FormGroup (ui5-form-group) or directly in Form (ui5-form).\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart layout - Used to style the parent element of the label and content parts.\n * @csspart label - Used to style the label part of the form item.\n * @csspart content - Used to style the content part of the form item.\n *\n * @constructor\n * @implements {IFormItem}\n * @public\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form-item\",\n\trenderer: jsxRenderer,\n\tstyles: FormItemCss,\n\ttemplate: FormItemTemplate,\n})\nclass FormItem extends UI5Element implements IFormItem {\n\t/**\n\t * Defines the column span of the component,\n\t * e.g how many columns the component should span to.\n\t *\n\t * **Note:** The column span should be a number between 1 and the available columns of the FormGroup (when items are placed in a group)\n\t * or the Form. The available columns can be affected by the FormGroup#columnSpan and/or the Form#layout.\n\t * A number bigger than the available columns won't take effect.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the label of the component.\n\t * @public\n\t */\n\t@slot()\n\tlabelContent!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content of the component,\n\t * associated to `labelContent`.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t})\n\tcontent!: Array<HTMLElement>;\n\n\t/**\n\t * @private\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\"\n\n\tget isGroup() {\n\t\treturn false;\n\t}\n}\n\nFormItem.define();\n\nexport default FormItem;\n"]}
1
+ {"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../src/FormItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAEnE,WAAW;AACX,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAErD,SAAS;AACT,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAkCC;;WAEG;QAEH,gBAAW,GAAyB,QAAQ,CAAA;IAK7C,CAAC;IAHA,IAAI,OAAO;QACV,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AA9BA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACP;AAOpB;IADC,IAAI,EAAE;8CAC2B;AAYlC;IALC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;QACf,eAAe,EAAE,IAAI;KACrB,CAAC;yCAC2B;AAM7B;IADC,QAAQ,EAAE;6CACiC;AAtCvC,QAAQ;IANb,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;GACI,QAAQ,CA2Cb;AAED,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\n// Template\nimport FormItemTemplate from \"./FormItemTemplate.js\";\n\n// Styles\nimport FormItemCss from \"./generated/themes/FormItem.css.js\";\n\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormItem (ui5-form-item) represents pair of a label and\n * one or more components (text or text fields), associated to it.\n *\n * ### Usage\n *\n * The FormItem is being used in FormGroup (ui5-form-group) or directly in Form (ui5-form).\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart layout - Used to style the parent element of the label and content parts.\n * @csspart label - Used to style the label part of the form item.\n * @csspart content - Used to style the content part of the form item.\n *\n * @constructor\n * @implements {IFormItem}\n * @public\n * @since 2.0.0\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form-item\",\n\trenderer: jsxRenderer,\n\tstyles: FormItemCss,\n\ttemplate: FormItemTemplate,\n})\nclass FormItem extends UI5Element implements IFormItem {\n\t/**\n\t * Defines the column span of the component,\n\t * e.g how many columns the component should span to.\n\t *\n\t * **Note:** The column span should be a number between 1 and the available columns of the FormGroup (when items are placed in a group)\n\t * or the Form. The available columns can be affected by the FormGroup#columnSpan and/or the Form#layout.\n\t * A number bigger than the available columns won't take effect.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the label of the component.\n\t * @public\n\t */\n\t@slot()\n\tlabelContent!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content of the component,\n\t * associated to `labelContent`.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t})\n\tcontent!: Array<HTMLElement>;\n\n\t/**\n\t * @private\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\"\n\n\tget isGroup() {\n\t\treturn false;\n\t}\n}\n\nFormItem.define();\n\nexport default FormItem;\n"]}
package/dist/Input.d.ts CHANGED
@@ -288,6 +288,10 @@ declare class Input extends UI5Element implements SuggestionComponent, IFormInpu
288
288
  * @private
289
289
  */
290
290
  _accessibleLabelsRefTexts?: string;
291
+ /**
292
+ * @private
293
+ */
294
+ Suggestions?: InputSuggestions;
291
295
  /**
292
296
  * Defines the suggestion items.
293
297
  *
@@ -337,7 +341,6 @@ declare class Input extends UI5Element implements SuggestionComponent, IFormInpu
337
341
  _shouldAutocomplete?: boolean;
338
342
  _keyDown?: boolean;
339
343
  _isKeyNavigation?: boolean;
340
- Suggestions?: InputSuggestions;
341
344
  _selectedText?: string;
342
345
  _clearIconClicked?: boolean;
343
346
  _focusedAfterClear: boolean;
@@ -532,6 +535,7 @@ declare class Input extends UI5Element implements SuggestionComponent, IFormInpu
532
535
  * @param value the numeric value of Input of type "Number"
533
536
  */
534
537
  removeFractionalPart(value: string): string;
538
+ static SuggestionsClass?: typeof InputSuggestions;
535
539
  }
536
540
  export default Input;
537
541
  export type { InputAccInfo, IInputSuggestionItem, IInputSuggestionItemSelectable, InputSuggestionScrollEventDetail, InputSelectionChangeEventDetail, InputEventDetail, };
package/dist/Input.js CHANGED
@@ -17,7 +17,6 @@ import { getScopedVarName } from "@ui5/webcomponents-base/dist/CustomElementsSco
17
17
  import encodeXML from "@ui5/webcomponents-base/dist/sap/base/security/encodeXML.js";
18
18
  import { isPhone, isAndroid, } from "@ui5/webcomponents-base/dist/Device.js";
19
19
  import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js";
20
- import { getComponentFeature } from "@ui5/webcomponents-base/dist/FeaturesRegistry.js";
21
20
  import { isUp, isDown, isSpace, isEnter, isBackSpace, isDelete, isEscape, isTabNext, isPageUp, isPageDown, isHome, isEnd, } from "@ui5/webcomponents-base/dist/Keys.js";
22
21
  import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
23
22
  import { submitForm } from "@ui5/webcomponents-base/dist/features/InputElementsFormSupport.js";
@@ -739,10 +738,19 @@ let Input = Input_1 = class Input extends UI5Element {
739
738
  if (this.Suggestions) {
740
739
  return;
741
740
  }
742
- const Suggestions = getComponentFeature("InputSuggestions");
743
- if (Suggestions) {
741
+ const setup = (Suggestions) => {
744
742
  Suggestions.i18nBundle = Input_1.i18nBundle;
745
743
  this.Suggestions = new Suggestions(this, "suggestionItems", true, false);
744
+ };
745
+ // If the feature is preloaded (the user manually imported InputSuggestions.js), it is already available on the constructor
746
+ if (Input_1.SuggestionsClass) {
747
+ setup(Input_1.SuggestionsClass);
748
+ // If feature is not preloaded, load it dynamically
749
+ }
750
+ else {
751
+ import("./features/InputSuggestions.js").then(SuggestionsModule => {
752
+ setup(SuggestionsModule.default);
753
+ });
746
754
  }
747
755
  }
748
756
  acceptSuggestion(item, keyboardUsed) {
@@ -1209,6 +1217,9 @@ __decorate([
1209
1217
  __decorate([
1210
1218
  property({ noAttribute: true })
1211
1219
  ], Input.prototype, "_accessibleLabelsRefTexts", void 0);
1220
+ __decorate([
1221
+ property({ type: Object })
1222
+ ], Input.prototype, "Suggestions", void 0);
1212
1223
  __decorate([
1213
1224
  slot({ type: HTMLElement, "default": true })
1214
1225
  ], Input.prototype, "suggestionItems", void 0);
@@ -1237,7 +1248,6 @@ Input = Input_1 = __decorate([
1237
1248
  ValueStateMessageCss,
1238
1249
  SuggestionsCss,
1239
1250
  ],
1240
- features: ["InputSuggestions"],
1241
1251
  })
1242
1252
  /**
1243
1253
  * Fired when the input operation has finished by pressing Enter or on focusout.
@@ -1317,14 +1327,6 @@ Input = Input_1 = __decorate([
1317
1327
  bubbles: true,
1318
1328
  })
1319
1329
  ], Input);
1320
- // declare module "@ui5/webcomponents-base/jsx-runtime" {
1321
- // // eslint-disable-next-line @typescript-eslint/no-namespace
1322
- // namespace JSX {
1323
- // interface IntrinsicElements {
1324
- // "ui5-input": Input["_jsxProps"];
1325
- // }
1326
- // }
1327
- // }
1328
1330
  Input.define();
1329
1331
  export default Input;
1330
1332
  //# sourceMappingURL=Input.js.map