@ui5/webcomponents 2.0.0-rc.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (902) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/README.md +1 -4
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/Avatar.d.ts +13 -18
  5. package/dist/Avatar.js +77 -17
  6. package/dist/Avatar.js.map +1 -1
  7. package/dist/AvatarGroup.d.ts +1 -1
  8. package/dist/AvatarGroup.js +21 -3
  9. package/dist/AvatarGroup.js.map +1 -1
  10. package/dist/Bar.d.ts +1 -1
  11. package/dist/Bar.js +7 -2
  12. package/dist/Bar.js.map +1 -1
  13. package/dist/Breadcrumbs.d.ts +1 -1
  14. package/dist/Breadcrumbs.js +25 -5
  15. package/dist/Breadcrumbs.js.map +1 -1
  16. package/dist/BreadcrumbsItem.d.ts +3 -3
  17. package/dist/BreadcrumbsItem.js +1 -1
  18. package/dist/BreadcrumbsItem.js.map +1 -1
  19. package/dist/BusyIndicator.d.ts +5 -5
  20. package/dist/BusyIndicator.js +33 -5
  21. package/dist/BusyIndicator.js.map +1 -1
  22. package/dist/Button.d.ts +9 -9
  23. package/dist/Button.js +107 -7
  24. package/dist/Button.js.map +1 -1
  25. package/dist/Calendar.d.ts +46 -7
  26. package/dist/Calendar.js +143 -16
  27. package/dist/Calendar.js.map +1 -1
  28. package/dist/CalendarDate.d.ts +1 -0
  29. package/dist/CalendarDate.js +11 -0
  30. package/dist/CalendarDate.js.map +1 -1
  31. package/dist/CalendarDateRange.d.ts +1 -0
  32. package/dist/CalendarDateRange.js +18 -0
  33. package/dist/CalendarDateRange.js.map +1 -1
  34. package/dist/CalendarLegend.js +24 -0
  35. package/dist/CalendarLegend.js.map +1 -1
  36. package/dist/CalendarLegendItem.d.ts +2 -2
  37. package/dist/CalendarLegendItem.js +16 -2
  38. package/dist/CalendarLegendItem.js.map +1 -1
  39. package/dist/CalendarPart.js +1 -2
  40. package/dist/CalendarPart.js.map +1 -1
  41. package/dist/Card.d.ts +4 -4
  42. package/dist/Card.js.map +1 -1
  43. package/dist/CardHeader.d.ts +6 -6
  44. package/dist/CardHeader.js +20 -2
  45. package/dist/CardHeader.js.map +1 -1
  46. package/dist/Carousel.d.ts +9 -9
  47. package/dist/Carousel.js +104 -14
  48. package/dist/Carousel.js.map +1 -1
  49. package/dist/CheckBox.d.ts +9 -9
  50. package/dist/CheckBox.js +85 -3
  51. package/dist/CheckBox.js.map +1 -1
  52. package/dist/ColorPalette.d.ts +2 -4
  53. package/dist/ColorPalette.js +34 -17
  54. package/dist/ColorPalette.js.map +1 -1
  55. package/dist/ColorPaletteItem.d.ts +3 -3
  56. package/dist/ColorPaletteItem.js +37 -5
  57. package/dist/ColorPaletteItem.js.map +1 -1
  58. package/dist/ColorPalettePopover.js +30 -4
  59. package/dist/ColorPalettePopover.js.map +1 -1
  60. package/dist/ColorPicker.d.ts +3 -3
  61. package/dist/ColorPicker.js +49 -8
  62. package/dist/ColorPicker.js.map +1 -1
  63. package/dist/ComboBox.d.ts +12 -11
  64. package/dist/ComboBox.js +108 -12
  65. package/dist/ComboBox.js.map +1 -1
  66. package/dist/ComboBoxItem.d.ts +4 -4
  67. package/dist/ComboBoxItem.js +18 -0
  68. package/dist/ComboBoxItem.js.map +1 -1
  69. package/dist/ComboBoxItemGroup.d.ts +2 -2
  70. package/dist/ComboBoxItemGroup.js +9 -1
  71. package/dist/ComboBoxItemGroup.js.map +1 -1
  72. package/dist/DateComponentBase.d.ts +3 -3
  73. package/dist/DateComponentBase.js +20 -3
  74. package/dist/DateComponentBase.js.map +1 -1
  75. package/dist/DatePicker.d.ts +7 -7
  76. package/dist/DatePicker.js +58 -4
  77. package/dist/DatePicker.js.map +1 -1
  78. package/dist/DateRangePicker.d.ts +2 -2
  79. package/dist/DateRangePicker.js +11 -4
  80. package/dist/DateRangePicker.js.map +1 -1
  81. package/dist/DateTimePicker.js +25 -2
  82. package/dist/DateTimePicker.js.map +1 -1
  83. package/dist/DayPicker.js +52 -18
  84. package/dist/DayPicker.js.map +1 -1
  85. package/dist/Dialog.d.ts +2 -2
  86. package/dist/Dialog.js +48 -2
  87. package/dist/Dialog.js.map +1 -1
  88. package/dist/DropIndicator.js +31 -4
  89. package/dist/DropIndicator.js.map +1 -1
  90. package/dist/FileUploader.d.ts +5 -5
  91. package/dist/FileUploader.js +43 -2
  92. package/dist/FileUploader.js.map +1 -1
  93. package/dist/Filters.js +2 -2
  94. package/dist/Filters.js.map +1 -1
  95. package/dist/Form.d.ts +5 -3
  96. package/dist/Form.js +65 -15
  97. package/dist/Form.js.map +1 -1
  98. package/dist/FormGroup.d.ts +4 -3
  99. package/dist/FormGroup.js +19 -11
  100. package/dist/FormGroup.js.map +1 -1
  101. package/dist/FormItem.d.ts +2 -1
  102. package/dist/FormItem.js +15 -5
  103. package/dist/FormItem.js.map +1 -1
  104. package/dist/Icon.d.ts +5 -5
  105. package/dist/Icon.js +38 -6
  106. package/dist/Icon.js.map +1 -1
  107. package/dist/Input.d.ts +34 -39
  108. package/dist/Input.js +197 -78
  109. package/dist/Input.js.map +1 -1
  110. package/dist/Label.d.ts +3 -3
  111. package/dist/Label.js +30 -2
  112. package/dist/Label.js.map +1 -1
  113. package/dist/Link.d.ts +19 -19
  114. package/dist/Link.js +59 -8
  115. package/dist/Link.js.map +1 -1
  116. package/dist/List.d.ts +17 -17
  117. package/dist/List.js +73 -12
  118. package/dist/List.js.map +1 -1
  119. package/dist/ListItem.d.ts +10 -4
  120. package/dist/ListItem.js +63 -6
  121. package/dist/ListItem.js.map +1 -1
  122. package/dist/ListItemBase.d.ts +3 -3
  123. package/dist/ListItemBase.js +41 -1
  124. package/dist/ListItemBase.js.map +1 -1
  125. package/dist/ListItemCustom.d.ts +2 -2
  126. package/dist/ListItemCustom.js +10 -0
  127. package/dist/ListItemCustom.js.map +1 -1
  128. package/dist/ListItemGroup.d.ts +4 -4
  129. package/dist/ListItemGroup.js +9 -1
  130. package/dist/ListItemGroup.js.map +1 -1
  131. package/dist/ListItemGroupHeader.d.ts +2 -2
  132. package/dist/ListItemGroupHeader.js.map +1 -1
  133. package/dist/ListItemStandard.d.ts +14 -24
  134. package/dist/ListItemStandard.js +48 -15
  135. package/dist/ListItemStandard.js.map +1 -1
  136. package/dist/Menu.d.ts +23 -9
  137. package/dist/Menu.js +49 -15
  138. package/dist/Menu.js.map +1 -1
  139. package/dist/MenuItem.d.ts +20 -20
  140. package/dist/MenuItem.js +42 -8
  141. package/dist/MenuItem.js.map +1 -1
  142. package/dist/MenuSeparator.d.ts +25 -0
  143. package/dist/MenuSeparator.js +59 -0
  144. package/dist/MenuSeparator.js.map +1 -0
  145. package/dist/MessageStrip.d.ts +1 -0
  146. package/dist/MessageStrip.js +46 -6
  147. package/dist/MessageStrip.js.map +1 -1
  148. package/dist/MonthPicker.js +14 -7
  149. package/dist/MonthPicker.js.map +1 -1
  150. package/dist/MultiComboBox.d.ts +30 -23
  151. package/dist/MultiComboBox.js +206 -109
  152. package/dist/MultiComboBox.js.map +1 -1
  153. package/dist/MultiComboBoxItem.js +8 -0
  154. package/dist/MultiComboBoxItem.js.map +1 -1
  155. package/dist/MultiComboBoxItemGroup.d.ts +2 -2
  156. package/dist/MultiComboBoxItemGroup.js +1 -1
  157. package/dist/MultiComboBoxItemGroup.js.map +1 -1
  158. package/dist/MultiInput.d.ts +4 -4
  159. package/dist/MultiInput.js +18 -2
  160. package/dist/MultiInput.js.map +1 -1
  161. package/dist/NavigationMenuItem.d.ts +5 -5
  162. package/dist/NavigationMenuItem.js.map +1 -1
  163. package/dist/Option.d.ts +14 -8
  164. package/dist/Option.js +4 -1
  165. package/dist/Option.js.map +1 -1
  166. package/dist/OptionCustom.d.ts +12 -6
  167. package/dist/OptionCustom.js +4 -1
  168. package/dist/OptionCustom.js.map +1 -1
  169. package/dist/Panel.d.ts +7 -7
  170. package/dist/Panel.js +64 -4
  171. package/dist/Panel.js.map +1 -1
  172. package/dist/Popover.d.ts +2 -2
  173. package/dist/Popover.js +71 -11
  174. package/dist/Popover.js.map +1 -1
  175. package/dist/Popup.d.ts +5 -5
  176. package/dist/Popup.js +46 -4
  177. package/dist/Popup.js.map +1 -1
  178. package/dist/ProgressIndicator.d.ts +4 -4
  179. package/dist/ProgressIndicator.js +24 -4
  180. package/dist/ProgressIndicator.js.map +1 -1
  181. package/dist/RadioButton.d.ts +11 -11
  182. package/dist/RadioButton.js +78 -5
  183. package/dist/RadioButton.js.map +1 -1
  184. package/dist/RangeSlider.js +22 -3
  185. package/dist/RangeSlider.js.map +1 -1
  186. package/dist/RatingIndicator.d.ts +6 -6
  187. package/dist/RatingIndicator.js +55 -6
  188. package/dist/RatingIndicator.js.map +1 -1
  189. package/dist/ResponsivePopover.js +19 -0
  190. package/dist/ResponsivePopover.js.map +1 -1
  191. package/dist/SegmentedButton.d.ts +2 -0
  192. package/dist/SegmentedButton.js +15 -3
  193. package/dist/SegmentedButton.js.map +1 -1
  194. package/dist/SegmentedButtonItem.d.ts +9 -9
  195. package/dist/SegmentedButtonItem.js +49 -7
  196. package/dist/SegmentedButtonItem.js.map +1 -1
  197. package/dist/Select.d.ts +8 -9
  198. package/dist/Select.js +60 -11
  199. package/dist/Select.js.map +1 -1
  200. package/dist/Slider.js +9 -2
  201. package/dist/Slider.js.map +1 -1
  202. package/dist/SliderBase.d.ts +4 -4
  203. package/dist/SliderBase.js +61 -7
  204. package/dist/SliderBase.js.map +1 -1
  205. package/dist/SpecialCalendarDate.d.ts +11 -4
  206. package/dist/SpecialCalendarDate.js +23 -5
  207. package/dist/SpecialCalendarDate.js.map +1 -1
  208. package/dist/SplitButton.d.ts +3 -3
  209. package/dist/SplitButton.js +54 -4
  210. package/dist/SplitButton.js.map +1 -1
  211. package/dist/StepInput.d.ts +8 -8
  212. package/dist/StepInput.js +70 -19
  213. package/dist/StepInput.js.map +1 -1
  214. package/dist/SuggestionItem.d.ts +16 -60
  215. package/dist/SuggestionItem.js +26 -27
  216. package/dist/SuggestionItem.js.map +1 -1
  217. package/dist/SuggestionItemCustom.d.ts +31 -0
  218. package/dist/SuggestionItemCustom.js +48 -0
  219. package/dist/SuggestionItemCustom.js.map +1 -0
  220. package/dist/SuggestionItemGroup.d.ts +19 -0
  221. package/dist/SuggestionItemGroup.js +35 -0
  222. package/dist/SuggestionItemGroup.js.map +1 -0
  223. package/dist/SuggestionListItem.d.ts +1 -1
  224. package/dist/Switch.d.ts +17 -17
  225. package/dist/Switch.js +40 -2
  226. package/dist/Switch.js.map +1 -1
  227. package/dist/Tab.d.ts +10 -10
  228. package/dist/Tab.js +41 -2
  229. package/dist/Tab.js.map +1 -1
  230. package/dist/TabContainer.d.ts +6 -6
  231. package/dist/TabContainer.js +81 -16
  232. package/dist/TabContainer.js.map +1 -1
  233. package/dist/Table.d.ts +23 -7
  234. package/dist/Table.js +71 -5
  235. package/dist/Table.js.map +1 -1
  236. package/dist/TableCell.d.ts +1 -0
  237. package/dist/TableCell.js +1 -0
  238. package/dist/TableCell.js.map +1 -1
  239. package/dist/TableCellBase.d.ts +2 -0
  240. package/dist/TableCellBase.js +7 -0
  241. package/dist/TableCellBase.js.map +1 -1
  242. package/dist/TableGrowing.d.ts +6 -5
  243. package/dist/TableGrowing.js +27 -1
  244. package/dist/TableGrowing.js.map +1 -1
  245. package/dist/TableHeaderCell.d.ts +1 -0
  246. package/dist/TableHeaderCell.js +42 -5
  247. package/dist/TableHeaderCell.js.map +1 -1
  248. package/dist/TableHeaderRow.d.ts +1 -0
  249. package/dist/TableHeaderRow.js +11 -0
  250. package/dist/TableHeaderRow.js.map +1 -1
  251. package/dist/TableNavigation.d.ts +3 -1
  252. package/dist/TableNavigation.js +25 -9
  253. package/dist/TableNavigation.js.map +1 -1
  254. package/dist/TableRow.d.ts +9 -0
  255. package/dist/TableRow.js +38 -0
  256. package/dist/TableRow.js.map +1 -1
  257. package/dist/TableRowBase.d.ts +3 -2
  258. package/dist/TableRowBase.js +16 -9
  259. package/dist/TableRowBase.js.map +1 -1
  260. package/dist/TableSelection.d.ts +27 -0
  261. package/dist/TableSelection.js +160 -6
  262. package/dist/TableSelection.js.map +1 -1
  263. package/dist/TableUtils.d.ts +7 -0
  264. package/dist/TableUtils.js +14 -0
  265. package/dist/TableUtils.js.map +1 -0
  266. package/dist/Tag.d.ts +2 -2
  267. package/dist/Tag.js +64 -6
  268. package/dist/Tag.js.map +1 -1
  269. package/dist/Text.js +10 -2
  270. package/dist/Text.js.map +1 -1
  271. package/dist/TextArea.d.ts +9 -9
  272. package/dist/TextArea.js +97 -7
  273. package/dist/TextArea.js.map +1 -1
  274. package/dist/TimePicker.d.ts +9 -9
  275. package/dist/TimePicker.js +41 -4
  276. package/dist/TimePicker.js.map +1 -1
  277. package/dist/TimePickerClock.d.ts +1 -1
  278. package/dist/TimePickerClock.js +121 -14
  279. package/dist/TimePickerClock.js.map +1 -1
  280. package/dist/TimePickerInternals.d.ts +4 -4
  281. package/dist/TimePickerInternals.js +33 -11
  282. package/dist/TimePickerInternals.js.map +1 -1
  283. package/dist/TimeSelectionClocks.js +15 -0
  284. package/dist/TimeSelectionClocks.js.map +1 -1
  285. package/dist/TimeSelectionInputs.d.ts +2 -2
  286. package/dist/TimeSelectionInputs.js +6 -3
  287. package/dist/TimeSelectionInputs.js.map +1 -1
  288. package/dist/Title.d.ts +1 -1
  289. package/dist/Title.js +20 -3
  290. package/dist/Title.js.map +1 -1
  291. package/dist/Toast.d.ts +1 -7
  292. package/dist/Toast.js +52 -23
  293. package/dist/Toast.js.map +1 -1
  294. package/dist/ToggleButton.js +9 -0
  295. package/dist/ToggleButton.js.map +1 -1
  296. package/dist/ToggleSpinButton.d.ts +1 -1
  297. package/dist/ToggleSpinButton.js +22 -4
  298. package/dist/ToggleSpinButton.js.map +1 -1
  299. package/dist/Token.d.ts +2 -2
  300. package/dist/Token.js +49 -1
  301. package/dist/Token.js.map +1 -1
  302. package/dist/Tokenizer.d.ts +2 -1
  303. package/dist/Tokenizer.js +73 -10
  304. package/dist/Tokenizer.js.map +1 -1
  305. package/dist/Toolbar.d.ts +6 -6
  306. package/dist/Toolbar.js +23 -8
  307. package/dist/Toolbar.js.map +1 -1
  308. package/dist/ToolbarButton.d.ts +11 -11
  309. package/dist/ToolbarButton.js +39 -6
  310. package/dist/ToolbarButton.js.map +1 -1
  311. package/dist/ToolbarItem.d.ts +1 -1
  312. package/dist/ToolbarItem.js +18 -2
  313. package/dist/ToolbarItem.js.map +1 -1
  314. package/dist/ToolbarSelect.d.ts +5 -5
  315. package/dist/ToolbarSelect.js +16 -4
  316. package/dist/ToolbarSelect.js.map +1 -1
  317. package/dist/ToolbarSelectOption.js +9 -0
  318. package/dist/ToolbarSelectOption.js.map +1 -1
  319. package/dist/ToolbarSeparator.js +4 -0
  320. package/dist/ToolbarSeparator.js.map +1 -1
  321. package/dist/ToolbarSpacer.js +1 -2
  322. package/dist/ToolbarSpacer.js.map +1 -1
  323. package/dist/Tree.d.ts +12 -12
  324. package/dist/Tree.js +11 -2
  325. package/dist/Tree.js.map +1 -1
  326. package/dist/TreeItem.d.ts +5 -5
  327. package/dist/TreeItem.js +1 -1
  328. package/dist/TreeItem.js.map +1 -1
  329. package/dist/TreeItemBase.d.ts +5 -5
  330. package/dist/TreeItemBase.js +61 -6
  331. package/dist/TreeItemBase.js.map +1 -1
  332. package/dist/TreeItemCustom.js +9 -0
  333. package/dist/TreeItemCustom.js.map +1 -1
  334. package/dist/YearPicker.js +14 -7
  335. package/dist/YearPicker.js.map +1 -1
  336. package/dist/bundle.common.bootstrap.d.ts +1 -1
  337. package/dist/bundle.esm.d.ts +3 -1
  338. package/dist/bundle.esm.js +4 -0
  339. package/dist/bundle.esm.js.map +1 -1
  340. package/dist/css/themes/Avatar.css +1 -1
  341. package/dist/css/themes/AvatarGroup.css +1 -1
  342. package/dist/css/themes/Bar.css +1 -1
  343. package/dist/css/themes/Breadcrumbs.css +1 -1
  344. package/dist/css/themes/BusyIndicator.css +1 -1
  345. package/dist/css/themes/Button.css +1 -1
  346. package/dist/css/themes/Calendar.css +1 -1
  347. package/dist/css/themes/CalendarHeader.css +1 -1
  348. package/dist/css/themes/CalendarLegend.css +1 -1
  349. package/dist/css/themes/CalendarLegendItem.css +1 -1
  350. package/dist/css/themes/Card.css +1 -1
  351. package/dist/css/themes/CardHeader.css +1 -1
  352. package/dist/css/themes/Carousel.css +1 -1
  353. package/dist/css/themes/CheckBox.css +1 -1
  354. package/dist/css/themes/ColorPalette.css +1 -1
  355. package/dist/css/themes/ColorPaletteItem.css +1 -1
  356. package/dist/css/themes/ColorPalettePopover.css +1 -1
  357. package/dist/css/themes/ColorPicker.css +1 -1
  358. package/dist/css/themes/ComboBox.css +1 -1
  359. package/dist/css/themes/DatePicker.css +1 -1
  360. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  361. package/dist/css/themes/DayPicker.css +1 -1
  362. package/dist/css/themes/Dialog.css +1 -1
  363. package/dist/css/themes/FileUploader.css +1 -1
  364. package/dist/css/themes/Form.css +1 -1
  365. package/dist/css/themes/FormItem.css +1 -1
  366. package/dist/css/themes/FormLabelSpan.css +1 -1
  367. package/dist/css/themes/GrowingButton.css +1 -1
  368. package/dist/css/themes/Icon.css +1 -1
  369. package/dist/css/themes/Input.css +1 -1
  370. package/dist/css/themes/InputIcon.css +1 -1
  371. package/dist/css/themes/InputSharedStyles.css +1 -1
  372. package/dist/css/themes/Link.css +1 -1
  373. package/dist/css/themes/List.css +1 -1
  374. package/dist/css/themes/ListItem.css +1 -1
  375. package/dist/css/themes/ListItemBase.css +1 -1
  376. package/dist/css/themes/ListItemCustom.css +1 -1
  377. package/dist/css/themes/ListItemGroup.css +1 -1
  378. package/dist/css/themes/ListItemGroupHeader.css +1 -1
  379. package/dist/css/themes/ListItemIcon.css +1 -1
  380. package/dist/css/themes/Menu.css +1 -1
  381. package/dist/css/themes/MenuItem.css +1 -1
  382. package/dist/css/themes/MenuSeparator.css +1 -0
  383. package/dist/css/themes/MessageStrip.css +1 -1
  384. package/dist/css/themes/MonthPicker.css +1 -1
  385. package/dist/css/themes/MultiComboBox.css +1 -1
  386. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  387. package/dist/css/themes/MultiInput.css +1 -1
  388. package/dist/css/themes/NavigationMenu.css +1 -1
  389. package/dist/css/themes/NavigationMenuItem.css +1 -1
  390. package/dist/css/themes/OptionBase.css +1 -1
  391. package/dist/css/themes/Panel.css +1 -1
  392. package/dist/css/themes/Popover.css +1 -1
  393. package/dist/css/themes/PopupsCommon.css +1 -1
  394. package/dist/css/themes/ProgressIndicator.css +1 -1
  395. package/dist/css/themes/RadioButton.css +1 -1
  396. package/dist/css/themes/RangeSlider.css +1 -1
  397. package/dist/css/themes/RatingIndicator.css +1 -1
  398. package/dist/css/themes/ResponsivePopover.css +1 -1
  399. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  400. package/dist/css/themes/SegmentedButton.css +1 -1
  401. package/dist/css/themes/SegmentedButtonItem.css +1 -1
  402. package/dist/css/themes/Select.css +1 -1
  403. package/dist/css/themes/SliderBase.css +1 -1
  404. package/dist/css/themes/SplitButton.css +1 -1
  405. package/dist/css/themes/StepInput.css +1 -1
  406. package/dist/css/themes/SuggestionItem.css +1 -0
  407. package/dist/css/themes/SuggestionItemCustom.css +1 -0
  408. package/dist/css/themes/Suggestions.css +1 -1
  409. package/dist/css/themes/Switch.css +1 -1
  410. package/dist/css/themes/TabContainer.css +1 -1
  411. package/dist/css/themes/TabInOverflow.css +1 -1
  412. package/dist/css/themes/TabInStrip.css +1 -1
  413. package/dist/css/themes/TabSemanticIcon.css +1 -1
  414. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  415. package/dist/css/themes/Table.css +1 -1
  416. package/dist/css/themes/TableCellBase.css +1 -1
  417. package/dist/css/themes/TableHeaderRow.css +1 -1
  418. package/dist/css/themes/TableRow.css +1 -1
  419. package/dist/css/themes/TableRowBase.css +1 -1
  420. package/dist/css/themes/Tag.css +1 -1
  421. package/dist/css/themes/Text.css +1 -1
  422. package/dist/css/themes/TextArea.css +1 -1
  423. package/dist/css/themes/TimePicker.css +1 -1
  424. package/dist/css/themes/Toast.css +1 -1
  425. package/dist/css/themes/ToggleButton.css +1 -1
  426. package/dist/css/themes/Token.css +1 -1
  427. package/dist/css/themes/Tokenizer.css +1 -1
  428. package/dist/css/themes/TokenizerPopover.css +1 -1
  429. package/dist/css/themes/Toolbar.css +1 -1
  430. package/dist/css/themes/ToolbarPopover.css +1 -1
  431. package/dist/css/themes/TreeItem.css +1 -1
  432. package/dist/css/themes/ValueStateMessage.css +1 -1
  433. package/dist/css/themes/YearPicker.css +1 -1
  434. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  435. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  436. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  437. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  438. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  439. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  440. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  441. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  442. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  443. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  444. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  445. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  446. package/dist/custom-elements-internal.json +1748 -1765
  447. package/dist/custom-elements.json +1476 -1532
  448. package/dist/features/InputSuggestions.d.ts +22 -48
  449. package/dist/features/InputSuggestions.js +63 -106
  450. package/dist/features/InputSuggestions.js.map +1 -1
  451. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  452. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  453. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  454. package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
  455. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  456. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  457. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  458. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  459. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  460. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  461. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  462. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  463. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  464. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  465. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  466. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  467. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  468. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  469. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  470. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  471. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  472. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  473. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  474. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  475. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  476. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  477. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  478. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  479. package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
  480. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  481. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  482. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  483. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  484. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  485. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  486. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  487. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  488. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  489. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  490. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  491. package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
  492. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  493. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  494. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  495. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  496. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  497. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  498. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  499. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  500. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  501. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  502. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  503. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  504. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  505. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  506. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  507. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  508. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  509. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  510. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  511. package/dist/generated/templates/AvatarTemplate.lit.js +1 -1
  512. package/dist/generated/templates/AvatarTemplate.lit.js.map +1 -1
  513. package/dist/generated/templates/CalendarHeaderTemplate.lit.d.ts +1 -1
  514. package/dist/generated/templates/CalendarHeaderTemplate.lit.js +3 -3
  515. package/dist/generated/templates/CalendarHeaderTemplate.lit.js.map +1 -1
  516. package/dist/generated/templates/CalendarTemplate.lit.js +4 -2
  517. package/dist/generated/templates/CalendarTemplate.lit.js.map +1 -1
  518. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
  519. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
  520. package/dist/generated/templates/ComboBoxTemplate.lit.js +1 -1
  521. package/dist/generated/templates/ComboBoxTemplate.lit.js.map +1 -1
  522. package/dist/generated/templates/InputPopoverTemplate.lit.js +8 -12
  523. package/dist/generated/templates/InputPopoverTemplate.lit.js.map +1 -1
  524. package/dist/generated/templates/InputTemplate.lit.js +8 -12
  525. package/dist/generated/templates/InputTemplate.lit.js.map +1 -1
  526. package/dist/generated/templates/ListItemStandardTemplate.lit.js +18 -20
  527. package/dist/generated/templates/ListItemStandardTemplate.lit.js.map +1 -1
  528. package/dist/generated/templates/MenuSeparatorTemplate.lit.d.ts +4 -0
  529. package/dist/generated/templates/MenuSeparatorTemplate.lit.js +5 -0
  530. package/dist/generated/templates/MenuSeparatorTemplate.lit.js.map +1 -0
  531. package/dist/generated/templates/MessageStripTemplate.lit.js +1 -1
  532. package/dist/generated/templates/MessageStripTemplate.lit.js.map +1 -1
  533. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +11 -11
  534. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js.map +1 -1
  535. package/dist/generated/templates/MultiComboBoxTemplate.lit.js +11 -11
  536. package/dist/generated/templates/MultiComboBoxTemplate.lit.js.map +1 -1
  537. package/dist/generated/templates/MultiInputTemplate.lit.js +7 -11
  538. package/dist/generated/templates/MultiInputTemplate.lit.js.map +1 -1
  539. package/dist/generated/templates/SuggestionItemCustomTemplate.lit.d.ts +4 -0
  540. package/dist/generated/templates/SuggestionItemCustomTemplate.lit.js +5 -0
  541. package/dist/generated/templates/SuggestionItemCustomTemplate.lit.js.map +1 -0
  542. package/dist/generated/templates/SuggestionItemGroupTemplate.lit.d.ts +4 -0
  543. package/dist/generated/templates/SuggestionItemGroupTemplate.lit.js +8 -0
  544. package/dist/generated/templates/SuggestionItemGroupTemplate.lit.js.map +1 -0
  545. package/dist/generated/templates/SuggestionItemTemplate.lit.d.ts +4 -0
  546. package/dist/generated/templates/SuggestionItemTemplate.lit.js +6 -0
  547. package/dist/generated/templates/SuggestionItemTemplate.lit.js.map +1 -0
  548. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +21 -23
  549. package/dist/generated/templates/SuggestionListItemTemplate.lit.js.map +1 -1
  550. package/dist/generated/templates/TabContainerTemplate.lit.js +2 -2
  551. package/dist/generated/templates/TabContainerTemplate.lit.js.map +1 -1
  552. package/dist/generated/templates/TableHeaderRowTemplate.lit.js +2 -2
  553. package/dist/generated/templates/TableHeaderRowTemplate.lit.js.map +1 -1
  554. package/dist/generated/templates/TableRowTemplate.lit.js +6 -5
  555. package/dist/generated/templates/TableRowTemplate.lit.js.map +1 -1
  556. package/dist/generated/templates/TableTemplate.lit.js +6 -6
  557. package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
  558. package/dist/generated/templates/ToastTemplate.lit.js +1 -1
  559. package/dist/generated/templates/ToastTemplate.lit.js.map +1 -1
  560. package/dist/generated/themes/Avatar.css.js +1 -1
  561. package/dist/generated/themes/Avatar.css.js.map +1 -1
  562. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  563. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  564. package/dist/generated/themes/Bar.css.js +1 -1
  565. package/dist/generated/themes/Bar.css.js.map +1 -1
  566. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  567. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  568. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  569. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  570. package/dist/generated/themes/Button.css.js +1 -1
  571. package/dist/generated/themes/Button.css.js.map +1 -1
  572. package/dist/generated/themes/Calendar.css.js +1 -1
  573. package/dist/generated/themes/Calendar.css.js.map +1 -1
  574. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  575. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  576. package/dist/generated/themes/CalendarLegend.css.js +1 -1
  577. package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
  578. package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
  579. package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
  580. package/dist/generated/themes/Card.css.js +1 -1
  581. package/dist/generated/themes/Card.css.js.map +1 -1
  582. package/dist/generated/themes/CardHeader.css.js +1 -1
  583. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  584. package/dist/generated/themes/Carousel.css.js +1 -1
  585. package/dist/generated/themes/Carousel.css.js.map +1 -1
  586. package/dist/generated/themes/CheckBox.css.js +1 -1
  587. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  588. package/dist/generated/themes/ColorPalette.css.js +1 -1
  589. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  590. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  591. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  592. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  593. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  594. package/dist/generated/themes/ColorPicker.css.js +1 -1
  595. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  596. package/dist/generated/themes/ComboBox.css.js +1 -1
  597. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  598. package/dist/generated/themes/DatePicker.css.js +1 -1
  599. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  600. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  601. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  602. package/dist/generated/themes/DayPicker.css.js +1 -1
  603. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  604. package/dist/generated/themes/Dialog.css.js +1 -1
  605. package/dist/generated/themes/Dialog.css.js.map +1 -1
  606. package/dist/generated/themes/FileUploader.css.js +1 -1
  607. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  608. package/dist/generated/themes/Form.css.js +1 -1
  609. package/dist/generated/themes/Form.css.js.map +1 -1
  610. package/dist/generated/themes/FormItem.css.js +1 -1
  611. package/dist/generated/themes/FormItem.css.js.map +1 -1
  612. package/dist/generated/themes/FormLabelSpan.css.js +1 -1
  613. package/dist/generated/themes/FormLabelSpan.css.js.map +1 -1
  614. package/dist/generated/themes/GrowingButton.css.js +1 -1
  615. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  616. package/dist/generated/themes/Icon.css.js +1 -1
  617. package/dist/generated/themes/Icon.css.js.map +1 -1
  618. package/dist/generated/themes/Input.css.js +1 -1
  619. package/dist/generated/themes/Input.css.js.map +1 -1
  620. package/dist/generated/themes/InputIcon.css.js +1 -1
  621. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  622. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  623. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  624. package/dist/generated/themes/Link.css.js +1 -1
  625. package/dist/generated/themes/Link.css.js.map +1 -1
  626. package/dist/generated/themes/List.css.js +1 -1
  627. package/dist/generated/themes/List.css.js.map +1 -1
  628. package/dist/generated/themes/ListItem.css.js +1 -1
  629. package/dist/generated/themes/ListItem.css.js.map +1 -1
  630. package/dist/generated/themes/ListItemBase.css.js +1 -1
  631. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  632. package/dist/generated/themes/ListItemCustom.css.js +1 -1
  633. package/dist/generated/themes/ListItemCustom.css.js.map +1 -1
  634. package/dist/generated/themes/ListItemGroup.css.js +1 -1
  635. package/dist/generated/themes/ListItemGroup.css.js.map +1 -1
  636. package/dist/generated/themes/ListItemGroupHeader.css.js +1 -1
  637. package/dist/generated/themes/ListItemGroupHeader.css.js.map +1 -1
  638. package/dist/generated/themes/ListItemIcon.css.js +1 -1
  639. package/dist/generated/themes/ListItemIcon.css.js.map +1 -1
  640. package/dist/generated/themes/Menu.css.js +1 -1
  641. package/dist/generated/themes/Menu.css.js.map +1 -1
  642. package/dist/generated/themes/MenuItem.css.js +1 -1
  643. package/dist/generated/themes/MenuItem.css.js.map +1 -1
  644. package/dist/generated/themes/MenuSeparator.css.d.ts +3 -0
  645. package/dist/generated/themes/MenuSeparator.css.js +9 -0
  646. package/dist/generated/themes/MenuSeparator.css.js.map +1 -0
  647. package/dist/generated/themes/MessageStrip.css.js +1 -1
  648. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  649. package/dist/generated/themes/MonthPicker.css.js +1 -1
  650. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  651. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  652. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  653. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  654. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  655. package/dist/generated/themes/MultiInput.css.js +1 -1
  656. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  657. package/dist/generated/themes/NavigationMenu.css.js +1 -1
  658. package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
  659. package/dist/generated/themes/NavigationMenuItem.css.js +1 -1
  660. package/dist/generated/themes/NavigationMenuItem.css.js.map +1 -1
  661. package/dist/generated/themes/OptionBase.css.js +1 -1
  662. package/dist/generated/themes/OptionBase.css.js.map +1 -1
  663. package/dist/generated/themes/Panel.css.js +1 -1
  664. package/dist/generated/themes/Panel.css.js.map +1 -1
  665. package/dist/generated/themes/Popover.css.js +1 -1
  666. package/dist/generated/themes/Popover.css.js.map +1 -1
  667. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  668. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  669. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  670. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  671. package/dist/generated/themes/RadioButton.css.js +1 -1
  672. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  673. package/dist/generated/themes/RangeSlider.css.js +1 -1
  674. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  675. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  676. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  677. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  678. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  679. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  680. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  681. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  682. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  683. package/dist/generated/themes/SegmentedButtonItem.css.js +1 -1
  684. package/dist/generated/themes/SegmentedButtonItem.css.js.map +1 -1
  685. package/dist/generated/themes/Select.css.js +1 -1
  686. package/dist/generated/themes/Select.css.js.map +1 -1
  687. package/dist/generated/themes/SliderBase.css.js +1 -1
  688. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  689. package/dist/generated/themes/SplitButton.css.js +1 -1
  690. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  691. package/dist/generated/themes/StepInput.css.js +1 -1
  692. package/dist/generated/themes/StepInput.css.js.map +1 -1
  693. package/dist/generated/themes/SuggestionItem.css.d.ts +3 -0
  694. package/dist/generated/themes/SuggestionItem.css.js +9 -0
  695. package/dist/generated/themes/SuggestionItem.css.js.map +1 -0
  696. package/dist/generated/themes/SuggestionItemCustom.css.d.ts +3 -0
  697. package/dist/generated/themes/SuggestionItemCustom.css.js +9 -0
  698. package/dist/generated/themes/SuggestionItemCustom.css.js.map +1 -0
  699. package/dist/generated/themes/Suggestions.css.js +1 -1
  700. package/dist/generated/themes/Suggestions.css.js.map +1 -1
  701. package/dist/generated/themes/Switch.css.js +1 -1
  702. package/dist/generated/themes/Switch.css.js.map +1 -1
  703. package/dist/generated/themes/TabContainer.css.js +1 -1
  704. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  705. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  706. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  707. package/dist/generated/themes/TabInStrip.css.js +1 -1
  708. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  709. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  710. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  711. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  712. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  713. package/dist/generated/themes/Table.css.js +1 -1
  714. package/dist/generated/themes/Table.css.js.map +1 -1
  715. package/dist/generated/themes/TableCellBase.css.js +1 -1
  716. package/dist/generated/themes/TableCellBase.css.js.map +1 -1
  717. package/dist/generated/themes/TableHeaderRow.css.js +1 -1
  718. package/dist/generated/themes/TableHeaderRow.css.js.map +1 -1
  719. package/dist/generated/themes/TableRow.css.js +1 -1
  720. package/dist/generated/themes/TableRow.css.js.map +1 -1
  721. package/dist/generated/themes/TableRowBase.css.js +1 -1
  722. package/dist/generated/themes/TableRowBase.css.js.map +1 -1
  723. package/dist/generated/themes/Tag.css.js +1 -1
  724. package/dist/generated/themes/Tag.css.js.map +1 -1
  725. package/dist/generated/themes/Text.css.js +1 -1
  726. package/dist/generated/themes/Text.css.js.map +1 -1
  727. package/dist/generated/themes/TextArea.css.js +1 -1
  728. package/dist/generated/themes/TextArea.css.js.map +1 -1
  729. package/dist/generated/themes/TimePicker.css.js +1 -1
  730. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  731. package/dist/generated/themes/Toast.css.js +1 -1
  732. package/dist/generated/themes/Toast.css.js.map +1 -1
  733. package/dist/generated/themes/ToggleButton.css.js +1 -1
  734. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  735. package/dist/generated/themes/Token.css.js +1 -1
  736. package/dist/generated/themes/Token.css.js.map +1 -1
  737. package/dist/generated/themes/Tokenizer.css.js +1 -1
  738. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  739. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  740. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  741. package/dist/generated/themes/Toolbar.css.js +1 -1
  742. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  743. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  744. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  745. package/dist/generated/themes/TreeItem.css.js +1 -1
  746. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  747. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  748. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  749. package/dist/generated/themes/YearPicker.css.js +1 -1
  750. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  751. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  752. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  753. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  754. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  755. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  756. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  757. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  758. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  759. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  760. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  761. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  762. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  763. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  764. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  765. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  766. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  767. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  768. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  769. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  770. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  771. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  772. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  773. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  774. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  775. package/dist/types/IconMode.d.ts +4 -4
  776. package/dist/types/IconMode.js +4 -4
  777. package/dist/types/IconMode.js.map +1 -1
  778. package/dist/types/{ListSeparators.d.ts → ListSeparator.d.ts} +3 -2
  779. package/dist/types/{ListSeparators.js → ListSeparator.js} +9 -8
  780. package/dist/types/ListSeparator.js.map +1 -0
  781. package/dist/vscode.html-custom-data.json +64 -80
  782. package/dist/web-types.json +511 -518
  783. package/package.json +11 -9
  784. package/src/Avatar.hbs +1 -1
  785. package/src/Calendar.hbs +3 -19
  786. package/src/CalendarHeader.hbs +10 -10
  787. package/src/ComboBoxPopover.hbs +1 -1
  788. package/src/InputPopover.hbs +1 -22
  789. package/src/ListItemStandard.hbs +3 -9
  790. package/src/MenuSeparator.hbs +6 -0
  791. package/src/MessageStrip.hbs +1 -1
  792. package/src/MultiComboBox.hbs +1 -0
  793. package/src/MultiComboBoxPopover.hbs +14 -7
  794. package/src/SuggestionItem.hbs +14 -0
  795. package/src/SuggestionItemCustom.hbs +5 -0
  796. package/src/SuggestionItemGroup.hbs +1 -0
  797. package/src/TabContainer.hbs +2 -2
  798. package/src/Table.hbs +6 -12
  799. package/src/TableHeaderRow.hbs +2 -1
  800. package/src/TableRow.hbs +6 -2
  801. package/src/Toast.hbs +1 -1
  802. package/src/i18n/messagebundle_ar.properties +15 -2
  803. package/src/i18n/messagebundle_bg.properties +15 -2
  804. package/src/i18n/messagebundle_ca.properties +31 -18
  805. package/src/i18n/messagebundle_cnr.properties +15 -2
  806. package/src/i18n/messagebundle_cs.properties +15 -2
  807. package/src/i18n/messagebundle_cy.properties +25 -12
  808. package/src/i18n/messagebundle_da.properties +15 -2
  809. package/src/i18n/messagebundle_de.properties +18 -5
  810. package/src/i18n/messagebundle_el.properties +15 -2
  811. package/src/i18n/messagebundle_en.properties +15 -2
  812. package/src/i18n/messagebundle_en_GB.properties +15 -2
  813. package/src/i18n/messagebundle_en_US_saprigi.properties +15 -2
  814. package/src/i18n/messagebundle_es.properties +15 -2
  815. package/src/i18n/messagebundle_es_MX.properties +18 -5
  816. package/src/i18n/messagebundle_et.properties +15 -2
  817. package/src/i18n/messagebundle_fi.properties +15 -2
  818. package/src/i18n/messagebundle_fr.properties +33 -20
  819. package/src/i18n/messagebundle_fr_CA.properties +33 -20
  820. package/src/i18n/messagebundle_hi.properties +15 -2
  821. package/src/i18n/messagebundle_hr.properties +15 -2
  822. package/src/i18n/messagebundle_hu.properties +15 -2
  823. package/src/i18n/messagebundle_id.properties +15 -2
  824. package/src/i18n/messagebundle_it.properties +19 -6
  825. package/src/i18n/messagebundle_iw.properties +17 -4
  826. package/src/i18n/messagebundle_ja.properties +15 -2
  827. package/src/i18n/messagebundle_kk.properties +19 -6
  828. package/src/i18n/messagebundle_ko.properties +18 -5
  829. package/src/i18n/messagebundle_lt.properties +15 -2
  830. package/src/i18n/messagebundle_lv.properties +15 -2
  831. package/src/i18n/messagebundle_mk.properties +15 -2
  832. package/src/i18n/messagebundle_ms.properties +15 -2
  833. package/src/i18n/messagebundle_nl.properties +15 -2
  834. package/src/i18n/messagebundle_no.properties +15 -2
  835. package/src/i18n/messagebundle_pl.properties +15 -2
  836. package/src/i18n/messagebundle_pt.properties +15 -2
  837. package/src/i18n/messagebundle_pt_PT.properties +15 -2
  838. package/src/i18n/messagebundle_ro.properties +15 -2
  839. package/src/i18n/messagebundle_ru.properties +15 -2
  840. package/src/i18n/messagebundle_sh.properties +15 -2
  841. package/src/i18n/messagebundle_sk.properties +15 -2
  842. package/src/i18n/messagebundle_sl.properties +15 -2
  843. package/src/i18n/messagebundle_sr.properties +15 -2
  844. package/src/i18n/messagebundle_sv.properties +15 -2
  845. package/src/i18n/messagebundle_th.properties +16 -3
  846. package/src/i18n/messagebundle_tr.properties +16 -3
  847. package/src/i18n/messagebundle_uk.properties +16 -3
  848. package/src/i18n/messagebundle_vi.properties +15 -2
  849. package/src/i18n/messagebundle_zh_CN.properties +15 -2
  850. package/src/i18n/messagebundle_zh_TW.properties +15 -2
  851. package/src/themes/Calendar.css +6 -5
  852. package/src/themes/CheckBox.css +3 -8
  853. package/src/themes/Link.css +2 -2
  854. package/src/themes/ListItem.css +9 -13
  855. package/src/themes/MenuItem.css +0 -4
  856. package/src/themes/MenuSeparator.css +11 -0
  857. package/src/themes/SegmentedButtonItem.css +2 -1
  858. package/src/themes/SuggestionItem.css +14 -0
  859. package/src/themes/SuggestionItemCustom.css +3 -0
  860. package/src/themes/Suggestions.css +0 -5
  861. package/src/themes/TabContainer.css +1 -1
  862. package/src/themes/Table.css +3 -2
  863. package/src/themes/TableRow.css +15 -1
  864. package/src/themes/Tag.css +5 -75
  865. package/src/themes/TextArea.css +2 -2
  866. package/src/themes/base/CheckBox-parameters.css +2 -4
  867. package/src/themes/base/Table-parameters.css +1 -0
  868. package/src/themes/base/Tag-parameters.css +2 -1
  869. package/src/themes/base/sizes-parameters.css +1 -2
  870. package/src/themes/sap_fiori_3/CheckBox-parameters.css +0 -3
  871. package/src/themes/sap_fiori_3/Tag-parameters.css +5 -0
  872. package/src/themes/sap_fiori_3/parameters-bundle.css +1 -1
  873. package/src/themes/sap_fiori_3_dark/CheckBox-parameters.css +0 -3
  874. package/src/themes/sap_fiori_3_hcb/CheckBox-parameters.css +1 -0
  875. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  876. package/src/themes/sap_fiori_3_hcb/sizes-parameters.css +4 -0
  877. package/src/themes/sap_fiori_3_hcw/CheckBox-parameters.css +1 -0
  878. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  879. package/src/themes/sap_fiori_3_hcw/sizes-parameters.css +4 -0
  880. package/src/themes/sap_horizon/CheckBox-parameters.css +0 -1
  881. package/src/themes/sap_horizon/RatingIndicator-parameters.css +5 -3
  882. package/src/themes/sap_horizon/sizes-parameters.css +3 -0
  883. package/src/themes/sap_horizon_dark/CheckBox-parameters.css +0 -1
  884. package/src/themes/sap_horizon_dark/RatingIndicator-parameters.css +5 -3
  885. package/src/themes/sap_horizon_dark/sizes-parameters.css +3 -0
  886. package/src/themes/sap_horizon_exp/CheckBox-parameters.css +0 -1
  887. package/src/themes/sap_horizon_hcb/CheckBox-parameters.css +1 -1
  888. package/src/themes/sap_horizon_hcb/RatingIndicator-parameters.css +5 -3
  889. package/src/themes/sap_horizon_hcb/sizes-parameters.css +4 -0
  890. package/src/themes/sap_horizon_hcw/CheckBox-parameters.css +1 -1
  891. package/src/themes/sap_horizon_hcw/RatingIndicator-parameters.css +5 -3
  892. package/src/themes/sap_horizon_hcw/sizes-parameters.css +4 -0
  893. package/dist/CalendarHeader.d.ts +0 -80
  894. package/dist/CalendarHeader.js +0 -160
  895. package/dist/CalendarHeader.js.map +0 -1
  896. package/dist/SuggestionGroupItem.d.ts +0 -28
  897. package/dist/SuggestionGroupItem.js +0 -43
  898. package/dist/SuggestionGroupItem.js.map +0 -1
  899. package/dist/styles/Icon.css +0 -33
  900. package/dist/styles/Icon.module.css +0 -33
  901. package/dist/types/ListSeparators.js.map +0 -1
  902. package/src/styles/Icon.module.css +0 -1
package/dist/Form.js CHANGED
@@ -9,13 +9,11 @@ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement
9
9
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
10
10
  import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
11
11
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
12
- import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
13
12
  // Template
14
13
  import FormTemplate from "./generated/templates/FormTemplate.lit.js";
15
14
  // Styles
16
15
  import FormCss from "./generated/themes/Form.css.js";
17
16
  import Title from "./Title.js";
18
- import FormItemSpacing from "./types/FormItemSpacing.js";
19
17
  const additionalStylesMap = new Map();
20
18
  const StepColumn = {
21
19
  "S": 1,
@@ -107,9 +105,61 @@ const StepColumn = {
107
105
  *
108
106
  * @public
109
107
  * @since 2.0.0
108
+ * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
110
109
  * @extends UI5Element
111
110
  */
112
111
  let Form = class Form extends UI5Element {
112
+ constructor() {
113
+ super(...arguments);
114
+ /**
115
+ * Defines the number of columns to distribute the form content by breakpoint.
116
+ *
117
+ * Supported values:
118
+ * - `S` - 1 column by default (1 column is recommended)
119
+ * - `M` - 1 column by default (up to 2 columns are recommended)
120
+ * - `L` - 2 columns by default (up to 3 columns are recommended)
121
+ * - `XL` - 2 columns by default (up to 6 columns are recommended)
122
+ *
123
+ * @default "S1 M1 L2 XL2"
124
+ * @public
125
+ */
126
+ this.layout = "S1 M1 L2 XL2";
127
+ /**
128
+ * Defines the width proportion of the labels and fields of a FormItem by breakpoint.
129
+ *
130
+ * By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,
131
+ * and 12/12 in S size, e.g in S the label is on top of its associated field.
132
+ *
133
+ * The supported values are between 1 and 12. Greater the number, more space the label will use.
134
+ *
135
+ * **Note:** If "12" is set, the label will be displayed on top of its assosiated field.
136
+ * @default "S12 M4 L4 XL4"
137
+ * @public
138
+ */
139
+ this.labelSpan = "S12 M4 L4 XL4";
140
+ /**
141
+ * Defines the vertical spacing between form items.
142
+ *
143
+ * **Note:** If the Form is meant to be switched between "non-edit" and "edit" modes,
144
+ * we recommend using "Large" item spacing in "non-edit" mode, and "Normal" - for "edit" mode,
145
+ * to avoid "jumping" effect, caused by the hight difference between texts in "non-edit" mode and the input fields in "edit" mode.
146
+ *
147
+ * @default "Normal"
148
+ * @public
149
+ */
150
+ this.itemSpacing = "Normal";
151
+ /**
152
+ * @private
153
+ */
154
+ this.columnsS = 1;
155
+ this.labelSpanS = 12;
156
+ this.columnsM = 1;
157
+ this.labelSpanM = 4;
158
+ this.columnsL = 2;
159
+ this.labelSpanL = 4;
160
+ this.columnsXl = 2;
161
+ this.labelSpanXl = 4;
162
+ }
113
163
  onBeforeRendering() {
114
164
  // Parse the layout and set it to the FormGroups/FormItems.
115
165
  this.setColumnLayout();
@@ -251,7 +301,7 @@ let Form = class Form extends UI5Element {
251
301
  const key = `${step}-${colsNumber}`;
252
302
  if (!additionalStylesMap.has(key)) {
253
303
  let containerQuery;
254
- let supporedColumnsNumber;
304
+ let supporedColumnsNumber = StepColumn.S;
255
305
  let stepSpanCSS = "";
256
306
  let cols = colsNumber;
257
307
  if (step === "S") {
@@ -275,7 +325,7 @@ let Form = class Form extends UI5Element {
275
325
  :host([columns-${step.toLocaleLowerCase()}="${cols}"]) .ui5-form-layout {
276
326
  grid-template-columns: repeat(${cols}, 1fr);
277
327
  }
278
-
328
+
279
329
  .ui5-form-column-span${step}-${cols},
280
330
  .ui5-form-item-span-${cols} {
281
331
  grid-column: span ${cols};
@@ -299,16 +349,16 @@ let Form = class Form extends UI5Element {
299
349
  }
300
350
  };
301
351
  __decorate([
302
- property({ type: String, defaultValue: "S1 M1 L2 XL2" })
352
+ property()
303
353
  ], Form.prototype, "layout", void 0);
304
354
  __decorate([
305
- property({ type: String, defaultValue: "S12 M4 L4 XL4" })
355
+ property()
306
356
  ], Form.prototype, "labelSpan", void 0);
307
357
  __decorate([
308
358
  property()
309
359
  ], Form.prototype, "headerText", void 0);
310
360
  __decorate([
311
- property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })
361
+ property()
312
362
  ], Form.prototype, "itemSpacing", void 0);
313
363
  __decorate([
314
364
  slot({ type: HTMLElement })
@@ -322,28 +372,28 @@ __decorate([
322
372
  })
323
373
  ], Form.prototype, "items", void 0);
324
374
  __decorate([
325
- property({ validator: Integer, defaultValue: 1 })
375
+ property({ type: Number })
326
376
  ], Form.prototype, "columnsS", void 0);
327
377
  __decorate([
328
- property({ validator: Integer, defaultValue: 12 })
378
+ property({ type: Number })
329
379
  ], Form.prototype, "labelSpanS", void 0);
330
380
  __decorate([
331
- property({ validator: Integer, defaultValue: 1 })
381
+ property({ type: Number })
332
382
  ], Form.prototype, "columnsM", void 0);
333
383
  __decorate([
334
- property({ validator: Integer, defaultValue: 4 })
384
+ property({ type: Number })
335
385
  ], Form.prototype, "labelSpanM", void 0);
336
386
  __decorate([
337
- property({ validator: Integer, defaultValue: 2 })
387
+ property({ type: Number })
338
388
  ], Form.prototype, "columnsL", void 0);
339
389
  __decorate([
340
- property({ validator: Integer, defaultValue: 4 })
390
+ property({ type: Number })
341
391
  ], Form.prototype, "labelSpanL", void 0);
342
392
  __decorate([
343
- property({ validator: Integer, defaultValue: 2 })
393
+ property({ type: Number })
344
394
  ], Form.prototype, "columnsXl", void 0);
345
395
  __decorate([
346
- property({ validator: Integer, defaultValue: 4 })
396
+ property({ type: Number })
347
397
  ], Form.prototype, "labelSpanXl", void 0);
348
398
  Form = __decorate([
349
399
  customElement({
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,MA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EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;sCAChC;AAElB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCAC9B;AAGpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;sCAChC;AAElB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCAC9B;AAGpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;uCAC/B;AAEnB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;yCAC7B;AApGhB,IAAI;IAPT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,IAAI,CAwTT;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 slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\n\n// Template\nimport FormTemplate from \"./generated/templates/FormTemplate.lit.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport Title from \"./Title.js\";\nimport 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\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 HTMLElement {\n\tlabelSpan: string\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\tclasses: string,\n\titems: Array<ItemsInfo>,\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n\tclasses: string,\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 * ### 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: 2)\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 * ### 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: litRender,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n\tdependencies: [Title],\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` - 2 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL2\"\n\t * @public\n\t */\n\t@property({ type: String, defaultValue: \"S1 M1 L2 XL2\" })\n\tlayout!: string;\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a FormItem 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 * @default \"S12 M4 L4 XL4\"\n\t * @public\n\t */\n\t@property({ type: String, defaultValue: \"S12 M4 L4 XL4\" })\n\tlabelSpan!: string;\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 \"\"\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({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })\n\titemSpacing!: `${FormItemSpacing}`;\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({ validator: Integer, defaultValue: 1 })\n\tcolumnsS!: number;\n\t@property({ validator: Integer, defaultValue: 12 })\n\tlabelSpanS!: number;\n\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolumnsM!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanM!: number;\n\n\t@property({ validator: Integer, defaultValue: 2 })\n\tcolumnsL!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanL!: number;\n\n\t@property({ validator: Integer, defaultValue: 2 })\n\tcolumnsXl!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanXl!: number;\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 set it to the FormGroups/FormItems.\n\t\tthis.setLabelSpan();\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\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\tsetLabelSpan() {\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.items.forEach((item: IFormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\n\t\t\titem.itemSpacing = this.itemSpacing;\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 ariaLabelledByID(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\tclasses: `ui5-form-column-spanL-${groupItem.colsL} ui5-form-column-spanXL-${groupItem.colsXl} ui5-form-column-spanM-${groupItem.colsM} ui5-form-column-spanS-${groupItem.colsS}`,\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\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\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!: number;\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\t\t\t\t\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 {\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,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,WAAW;AACX,OAAO,YAAY,MAAM,2CAA2C,CAAC;AAErE,SAAS;AACT,OAAO,OAAO,MAAM,gCAAgC,CAAC;AAErD,OAAO,KAAK,MAAM,YAAY,CAAC;AAI/B,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAkB,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ADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACb;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACX;AApGX,IAAI;IAPT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,IAAI,CAwTT;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 slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\n// Template\nimport FormTemplate from \"./generated/templates/FormTemplate.lit.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport Title from \"./Title.js\";\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\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 HTMLElement {\n\tlabelSpan: string\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\tclasses: string,\n\titems: Array<ItemsInfo>,\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n\tclasses: string,\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 * ### 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: 2)\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 * ### 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: litRender,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n\tdependencies: [Title],\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` - 2 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL2\"\n\t * @public\n\t */\n\t@property()\n\tlayout = \"S1 M1 L2 XL2\"\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a FormItem 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 * @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 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\n\t@property({ type: Number })\n\tcolumnsM = 1;\n\t@property({ type: Number })\n\tlabelSpanM = 4;\n\n\t@property({ type: Number })\n\tcolumnsL = 2;\n\t@property({ type: Number })\n\tlabelSpanL = 4;\n\n\t@property({ type: Number })\n\tcolumnsXl = 2;\n\t@property({ type: Number })\n\tlabelSpanXl = 4;\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 set it to the FormGroups/FormItems.\n\t\tthis.setLabelSpan();\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\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\tsetLabelSpan() {\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.items.forEach((item: IFormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\n\t\t\titem.itemSpacing = this.itemSpacing;\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 ariaLabelledByID(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\tclasses: `ui5-form-column-spanL-${groupItem.colsL} ui5-form-column-spanXL-${groupItem.colsXl} ui5-form-column-spanM-${groupItem.colsM} ui5-form-column-spanS-${groupItem.colsS}`,\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\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\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 {\n\tIFormItem,\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type FormItem from "./FormItem.js";
3
3
  import type { IFormItem } from "./Form.js";
4
- import FormItemSpacing from "./types/FormItemSpacing.js";
4
+ import type FormItemSpacing from "./types/FormItemSpacing.js";
5
5
  /**
6
6
  * @class
7
7
  *
@@ -26,16 +26,17 @@ import 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.
29
30
  * @extends UI5Element
30
31
  */
31
32
  declare class FormGroup extends UI5Element implements IFormItem {
32
33
  /**
33
34
  * Defines header text of the component.
34
35
  *
35
- * @default ""
36
+ * @default undefined
36
37
  * @public
37
38
  */
38
- headerText: string;
39
+ headerText?: string;
39
40
  /**
40
41
  * Defines column span of the component,
41
42
  * e.g how many columns the group should span to.
package/dist/FormGroup.js CHANGED
@@ -5,11 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
8
- import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
9
8
  import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
10
9
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
11
10
  import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
12
- import FormItemSpacing from "./types/FormItemSpacing.js";
13
11
  /**
14
12
  * @class
15
13
  *
@@ -34,9 +32,22 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
34
32
  * @public
35
33
  * @implements {IFormItem}
36
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.
37
36
  * @extends UI5Element
38
37
  */
39
38
  let FormGroup = class FormGroup extends UI5Element {
39
+ constructor() {
40
+ super(...arguments);
41
+ /**
42
+ * @private
43
+ */
44
+ this.colsS = 1;
45
+ this.colsM = 1;
46
+ this.colsL = 1;
47
+ this.colsXl = 1;
48
+ this.itemSpacing = "Normal";
49
+ this.labelSpan = "S12 M4 L4 XL4";
50
+ }
40
51
  onBeforeRendering() {
41
52
  this.processFormItems();
42
53
  }
@@ -54,7 +65,7 @@ __decorate([
54
65
  property()
55
66
  ], FormGroup.prototype, "headerText", void 0);
56
67
  __decorate([
57
- property({ validator: Integer, defaultValue: undefined })
68
+ property({ type: Number })
58
69
  ], FormGroup.prototype, "columnSpan", void 0);
59
70
  __decorate([
60
71
  slot({
@@ -63,23 +74,20 @@ __decorate([
63
74
  })
64
75
  ], FormGroup.prototype, "items", void 0);
65
76
  __decorate([
66
- property({ validator: Integer, defaultValue: 1 })
77
+ property({ type: Number })
67
78
  ], FormGroup.prototype, "colsS", void 0);
68
79
  __decorate([
69
- property({ validator: Integer, defaultValue: 1 })
80
+ property({ type: Number })
70
81
  ], FormGroup.prototype, "colsM", void 0);
71
82
  __decorate([
72
- property({ validator: Integer, defaultValue: 1 })
83
+ property({ type: Number })
73
84
  ], FormGroup.prototype, "colsL", void 0);
74
85
  __decorate([
75
- property({ validator: Integer, defaultValue: 1 })
86
+ property({ type: Number })
76
87
  ], FormGroup.prototype, "colsXl", void 0);
77
88
  __decorate([
78
- property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })
89
+ property()
79
90
  ], FormGroup.prototype, "itemSpacing", void 0);
80
- __decorate([
81
- property({ type: String, defaultValue: "S12 M4 L4 XL4" })
82
- ], FormGroup.prototype, "labelSpan", void 0);
83
91
  FormGroup = __decorate([
84
92
  customElement("ui5-form-group")
85
93
  ], FormGroup);
@@ -1 +1 @@
1
- {"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../src/FormGroup.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAInE,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAmDjC,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,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,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;AAzDA;IADC,QAAQ,EAAE;6CACS;AAUpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;6CACtC;AAUpB;IAJC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;KACf,CAAC;wCACsB;AAMxB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCACnC;AAGf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCACnC;AAGf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCACnC;AAGf;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;yCAClC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,CAAC,MAAM,EAAE,CAAC;8CACvC;AAGnC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;4CACvC;AAjDd,SAAS;IADd,aAAa,CAAC,gBAAgB,CAAC;GAC1B,SAAS,CAiEd;AAED,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.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 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(\"ui5-form-group\")\nclass FormGroup extends UI5Element implements IFormItem {\n\t/**\n\t * Defines header text of the component.\n\t *\n\t * @default \"\"\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({ validator: Integer, defaultValue: undefined })\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({ validator: Integer, defaultValue: 1 })\n\tcolsS!: number;\n\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolsM!: number;\n\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolsL!: number;\n\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolsXl!: number;\n\n\t@property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })\n\titemSpacing!: `${FormItemSpacing}`;\n\n\t@property({ type: String, defaultValue: \"S12 M4 L4 XL4\" })\n\tlabelSpan!: string;\n\n\tonBeforeRendering() {\n\t\tthis.processFormItems();\n\t}\n\n\tprocessFormItems() {\n\t\tthis.items.forEach((item: FormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\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;;;;;;;;;;;;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AAC;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(\"ui5-form-group\")\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\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\tonBeforeRendering() {\n\t\tthis.processFormItems();\n\t}\n\n\tprocessFormItems() {\n\t\tthis.items.forEach((item: FormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\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,6 +1,6 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type { IFormItem } from "./Form.js";
3
- import FormItemSpacing from "./types/FormItemSpacing.js";
3
+ import type FormItemSpacing from "./types/FormItemSpacing.js";
4
4
  /**
5
5
  * @class
6
6
  *
@@ -25,6 +25,7 @@ import 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.
28
29
  * @extends UI5Element
29
30
  */
30
31
  declare class FormItem extends UI5Element implements IFormItem {
package/dist/FormItem.js CHANGED
@@ -9,12 +9,10 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
9
9
  import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
10
10
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
11
11
  import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
12
- import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
13
12
  // Template
14
13
  import FormItemTemplate from "./generated/templates/FormItemTemplate.lit.js";
15
14
  // Styles
16
15
  import FormItemCss from "./generated/themes/FormItem.css.js";
17
- import FormItemSpacing from "./types/FormItemSpacing.js";
18
16
  /**
19
17
  * @class
20
18
  *
@@ -39,15 +37,27 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
39
37
  * @implements {IFormItem}
40
38
  * @public
41
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.
42
41
  * @extends UI5Element
43
42
  */
44
43
  let FormItem = class FormItem extends UI5Element {
44
+ constructor() {
45
+ super(...arguments);
46
+ /**
47
+ * @private
48
+ */
49
+ this.labelSpan = "S12 M4 L4 XL4";
50
+ /**
51
+ * @private
52
+ */
53
+ this.itemSpacing = "Normal";
54
+ }
45
55
  get isGroup() {
46
56
  return false;
47
57
  }
48
58
  };
49
59
  __decorate([
50
- property({ validator: Integer, defaultValue: undefined })
60
+ property({ type: Number })
51
61
  ], FormItem.prototype, "columnSpan", void 0);
52
62
  __decorate([
53
63
  slot()
@@ -60,10 +70,10 @@ __decorate([
60
70
  })
61
71
  ], FormItem.prototype, "content", void 0);
62
72
  __decorate([
63
- property({ type: String, defaultValue: "S12 M4 L4 XL4" })
73
+ property()
64
74
  ], FormItem.prototype, "labelSpan", void 0);
65
75
  __decorate([
66
- property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })
76
+ property()
67
77
  ], FormItem.prototype, "itemSpacing", void 0);
68
78
  FormItem = __decorate([
69
79
  customElement({
@@ -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,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AAEpE,WAAW;AACX,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAE7E,SAAS;AACT,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAG7D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAOH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IA8ChC,IAAI,OAAO;QACV,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AApCA;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;4CACtC;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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;2CACvC;AAMnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,CAAC,MAAM,EAAE,CAAC;6CACvC;AA5C9B,QAAQ;IANb,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;GACI,QAAQ,CAiDb;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 litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\n\n// Template\nimport FormItemTemplate from \"./generated/templates/FormItemTemplate.lit.js\";\n\n// Styles\nimport FormItemCss from \"./generated/themes/FormItem.css.js\";\n\nimport type { IFormItem } from \"./Form.js\";\nimport 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: litRender,\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({ validator: Integer, defaultValue: undefined })\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({ type: String, defaultValue: \"S12 M4 L4 XL4\" })\n\tlabelSpan!: string;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })\n\titemSpacing!: `${FormItemSpacing}`;\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,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAEnE,WAAW;AACX,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAE7E,SAAS;AACT,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAOH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAkCC;;WAEG;QAEH,cAAS,GAAG,eAAe,CAAC;QAE5B;;WAEG;QAEH,gBAAW,GAAyB,QAAQ,CAAA;IAK7C,CAAC;IAHA,IAAI,OAAO;QACV,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AApCA;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;2CACiB;AAM5B;IADC,QAAQ,EAAE;6CACiC;AA5CvC,QAAQ;IANb,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;GACI,QAAQ,CAiDb;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 litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\n// Template\nimport FormItemTemplate from \"./generated/templates/FormItemTemplate.lit.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: litRender,\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\tlabelSpan = \"S12 M4 L4 XL4\";\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/Icon.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
2
2
  import type { I18nText } from "@ui5/webcomponents-base/dist/i18nBundle.js";
3
- import IconDesign from "./types/IconDesign.js";
3
+ import type IconDesign from "./types/IconDesign.js";
4
4
  import IconMode from "./types/IconMode.js";
5
5
  /**
6
6
  * Interface for components that represent an icon, usable in numerous higher-order components
@@ -108,20 +108,20 @@ declare class Icon extends UI5Element implements IIcon {
108
108
  *
109
109
  * Example:
110
110
  * `name='business-suite/3d'`, `name='business-suite/1x2-grid-layout'`, `name='business-suite/4x4-grid-layout'`.
111
- * @default ""
111
+ * @default undefined
112
112
  * @public
113
113
  */
114
- name: string;
114
+ name?: string;
115
115
  /**
116
116
  * Defines the text alternative of the component.
117
117
  * If not provided a default text alternative will be set, if present.
118
118
  *
119
119
  * **Note:** Every icon should have a text alternative in order to
120
120
  * calculate its accessible name.
121
- * @default ""
121
+ * @default undefined
122
122
  * @public
123
123
  */
124
- accessibleName: string;
124
+ accessibleName?: string;
125
125
  /**
126
126
  * Defines whether the component should have a tooltip.
127
127
  *
package/dist/Icon.js CHANGED
@@ -15,7 +15,6 @@ import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
15
15
  import { isSpace, isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
16
16
  import executeTemplate from "@ui5/webcomponents-base/dist/renderer/executeTemplate.js";
17
17
  import IconTemplate from "./generated/templates/IconTemplate.lit.js";
18
- import IconDesign from "./types/IconDesign.js";
19
18
  import IconMode from "./types/IconMode.js";
20
19
  // Styles
21
20
  import iconCss from "./generated/themes/Icon.css.js";
@@ -91,6 +90,39 @@ const ICON_NOT_FOUND = "ICON_NOT_FOUND";
91
90
  * @public
92
91
  */
93
92
  let Icon = class Icon extends UI5Element {
93
+ constructor() {
94
+ super(...arguments);
95
+ /**
96
+ * Defines the component semantic design.
97
+ * @default "Default"
98
+ * @public
99
+ * @since 1.9.2
100
+ */
101
+ this.design = "Default";
102
+ /**
103
+ * Defines whether the component should have a tooltip.
104
+ *
105
+ * **Note:** The tooltip text should be provided via the `accessible-name` property.
106
+ * @default false
107
+ * @public
108
+ */
109
+ this.showTooltip = false;
110
+ /**
111
+ * Defines the mode of the component.
112
+ * @default "Image"
113
+ * @public
114
+ * @since 2.0.0
115
+ */
116
+ this.mode = "Image";
117
+ /**
118
+ * @private
119
+ */
120
+ this.pathData = [];
121
+ /**
122
+ * @private
123
+ */
124
+ this.invalid = false;
125
+ }
94
126
  _onkeydown(e) {
95
127
  if (this.mode !== IconMode.Interactive) {
96
128
  return;
@@ -181,7 +213,7 @@ let Icon = class Icon extends UI5Element {
181
213
  }
182
214
  };
183
215
  __decorate([
184
- property({ type: IconDesign, defaultValue: IconDesign.Default })
216
+ property()
185
217
  ], Icon.prototype, "design", void 0);
186
218
  __decorate([
187
219
  property()
@@ -193,19 +225,19 @@ __decorate([
193
225
  property({ type: Boolean })
194
226
  ], Icon.prototype, "showTooltip", void 0);
195
227
  __decorate([
196
- property({ type: IconMode, defaultValue: IconMode.Image })
228
+ property()
197
229
  ], Icon.prototype, "mode", void 0);
198
230
  __decorate([
199
- property({ multiple: true })
231
+ property({ type: Array })
200
232
  ], Icon.prototype, "pathData", void 0);
201
233
  __decorate([
202
- property({ type: Object, defaultValue: undefined, noAttribute: true })
234
+ property({ type: Object, noAttribute: true })
203
235
  ], Icon.prototype, "accData", void 0);
204
236
  __decorate([
205
237
  property({ type: Boolean })
206
238
  ], Icon.prototype, "invalid", void 0);
207
239
  __decorate([
208
- property({ noAttribute: true, defaultValue: undefined })
240
+ property({ noAttribute: true })
209
241
  ], Icon.prototype, "effectiveAccessibleName", void 0);
210
242
  Icon = __decorate([
211
243
  customElement({