@ui5/webcomponents 1.21.0 → 1.22.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (797) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/Avatar.d.ts +16 -47
  4. package/dist/Avatar.js +4 -12
  5. package/dist/Avatar.js.map +1 -1
  6. package/dist/AvatarGroup.d.ts +13 -30
  7. package/dist/AvatarGroup.js +11 -15
  8. package/dist/AvatarGroup.js.map +1 -1
  9. package/dist/Badge.d.ts +61 -20
  10. package/dist/Badge.js +98 -12
  11. package/dist/Badge.js.map +1 -1
  12. package/dist/Breadcrumbs.d.ts +4 -16
  13. package/dist/Breadcrumbs.js +16 -6
  14. package/dist/Breadcrumbs.js.map +1 -1
  15. package/dist/BreadcrumbsItem.d.ts +4 -18
  16. package/dist/BreadcrumbsItem.js +1 -6
  17. package/dist/BreadcrumbsItem.js.map +1 -1
  18. package/dist/BusyIndicator.d.ts +6 -24
  19. package/dist/BusyIndicator.js +2 -4
  20. package/dist/BusyIndicator.js.map +1 -1
  21. package/dist/Button.d.ts +20 -48
  22. package/dist/Button.js +3 -15
  23. package/dist/Button.js.map +1 -1
  24. package/dist/Calendar.d.ts +7 -18
  25. package/dist/Calendar.js +19 -19
  26. package/dist/Calendar.js.map +1 -1
  27. package/dist/CalendarDate.d.ts +2 -7
  28. package/dist/CalendarDate.js +1 -5
  29. package/dist/CalendarDate.js.map +1 -1
  30. package/dist/CalendarHeader.d.ts +8 -9
  31. package/dist/CalendarHeader.js.map +1 -1
  32. package/dist/CalendarPart.d.ts +1 -4
  33. package/dist/CalendarPart.js +7 -5
  34. package/dist/CalendarPart.js.map +1 -1
  35. package/dist/Card.d.ts +5 -19
  36. package/dist/Card.js +1 -5
  37. package/dist/Card.js.map +1 -1
  38. package/dist/CardHeader.d.ts +14 -38
  39. package/dist/CardHeader.js +6 -18
  40. package/dist/CardHeader.js.map +1 -1
  41. package/dist/Carousel.d.ts +17 -58
  42. package/dist/Carousel.js +7 -19
  43. package/dist/Carousel.js.map +1 -1
  44. package/dist/CheckBox.d.ts +14 -49
  45. package/dist/CheckBox.js +3 -15
  46. package/dist/CheckBox.js.map +1 -1
  47. package/dist/ColorPalette.d.ts +6 -18
  48. package/dist/ColorPalette.js +4 -6
  49. package/dist/ColorPalette.js.map +1 -1
  50. package/dist/ColorPaletteItem.d.ts +10 -14
  51. package/dist/ColorPaletteItem.js +2 -5
  52. package/dist/ColorPaletteItem.js.map +1 -1
  53. package/dist/ColorPalettePopover.d.ts +17 -32
  54. package/dist/ColorPalettePopover.js +8 -13
  55. package/dist/ColorPalettePopover.js.map +1 -1
  56. package/dist/ColorPicker.d.ts +6 -8
  57. package/dist/ColorPicker.js +1 -5
  58. package/dist/ColorPicker.js.map +1 -1
  59. package/dist/ComboBox.d.ts +16 -58
  60. package/dist/ComboBox.js +5 -9
  61. package/dist/ComboBox.js.map +1 -1
  62. package/dist/ComboBoxGroupItem.d.ts +3 -8
  63. package/dist/ComboBoxGroupItem.js +2 -5
  64. package/dist/ComboBoxGroupItem.js.map +1 -1
  65. package/dist/ComboBoxItem.d.ts +4 -11
  66. package/dist/ComboBoxItem.js +2 -5
  67. package/dist/ComboBoxItem.js.map +1 -1
  68. package/dist/CustomListItem.d.ts +9 -27
  69. package/dist/CustomListItem.js +8 -24
  70. package/dist/CustomListItem.js.map +1 -1
  71. package/dist/DateComponentBase.d.ts +9 -18
  72. package/dist/DateComponentBase.js +2 -3
  73. package/dist/DateComponentBase.js.map +1 -1
  74. package/dist/DatePicker.d.ts +44 -75
  75. package/dist/DatePicker.js +46 -44
  76. package/dist/DatePicker.js.map +1 -1
  77. package/dist/DateRangePicker.d.ts +10 -24
  78. package/dist/DateRangePicker.js +5 -16
  79. package/dist/DateRangePicker.js.map +1 -1
  80. package/dist/DateTimePicker.d.ts +7 -9
  81. package/dist/DateTimePicker.js +5 -5
  82. package/dist/DateTimePicker.js.map +1 -1
  83. package/dist/DayPicker.d.ts +42 -35
  84. package/dist/DayPicker.js +35 -27
  85. package/dist/DayPicker.js.map +1 -1
  86. package/dist/Dialog.d.ts +11 -40
  87. package/dist/Dialog.js +6 -19
  88. package/dist/Dialog.js.map +1 -1
  89. package/dist/FileUploader.d.ts +11 -39
  90. package/dist/FileUploader.js +7 -9
  91. package/dist/FileUploader.js.map +1 -1
  92. package/dist/GroupHeaderListItem.d.ts +6 -18
  93. package/dist/GroupHeaderListItem.js +5 -5
  94. package/dist/GroupHeaderListItem.js.map +1 -1
  95. package/dist/Icon.d.ts +12 -34
  96. package/dist/Icon.js +4 -15
  97. package/dist/Icon.js.map +1 -1
  98. package/dist/Input.d.ts +38 -84
  99. package/dist/Input.js +20 -22
  100. package/dist/Input.js.map +1 -1
  101. package/dist/Interfaces.d.ts +115 -133
  102. package/dist/Interfaces.js +1 -193
  103. package/dist/Interfaces.js.map +1 -1
  104. package/dist/Label.d.ts +8 -25
  105. package/dist/Label.js +4 -13
  106. package/dist/Label.js.map +1 -1
  107. package/dist/Link.d.ts +13 -42
  108. package/dist/Link.js +18 -9
  109. package/dist/Link.js.map +1 -1
  110. package/dist/List.d.ts +14 -50
  111. package/dist/List.js +21 -13
  112. package/dist/List.js.map +1 -1
  113. package/dist/ListItem.d.ts +10 -32
  114. package/dist/ListItem.js +2 -4
  115. package/dist/ListItem.js.map +1 -1
  116. package/dist/ListItemBase.d.ts +3 -9
  117. package/dist/ListItemBase.js +1 -3
  118. package/dist/ListItemBase.js.map +1 -1
  119. package/dist/Menu.d.ts +10 -33
  120. package/dist/Menu.js +21 -16
  121. package/dist/Menu.js.map +1 -1
  122. package/dist/MenuItem.d.ts +11 -32
  123. package/dist/MenuItem.js +1 -5
  124. package/dist/MenuItem.js.map +1 -1
  125. package/dist/MessageStrip.d.ts +10 -28
  126. package/dist/MessageStrip.js +5 -5
  127. package/dist/MessageStrip.js.map +1 -1
  128. package/dist/MonthPicker.d.ts +8 -13
  129. package/dist/MonthPicker.js +6 -13
  130. package/dist/MonthPicker.js.map +1 -1
  131. package/dist/MultiComboBox.d.ts +19 -70
  132. package/dist/MultiComboBox.js +8 -24
  133. package/dist/MultiComboBox.js.map +1 -1
  134. package/dist/MultiComboBoxGroupItem.d.ts +2 -8
  135. package/dist/MultiComboBoxGroupItem.js +1 -5
  136. package/dist/MultiComboBoxGroupItem.js.map +1 -1
  137. package/dist/MultiComboBoxItem.d.ts +4 -8
  138. package/dist/MultiComboBoxItem.js +2 -5
  139. package/dist/MultiComboBoxItem.js.map +1 -1
  140. package/dist/MultiInput.d.ts +9 -16
  141. package/dist/MultiInput.js +4 -7
  142. package/dist/MultiInput.js.map +1 -1
  143. package/dist/NavigationMenu.d.ts +36 -0
  144. package/dist/NavigationMenu.js +123 -0
  145. package/dist/NavigationMenu.js.map +1 -0
  146. package/dist/NavigationMenuItem.d.ts +67 -0
  147. package/dist/NavigationMenuItem.js +51 -0
  148. package/dist/NavigationMenuItem.js.map +1 -0
  149. package/dist/Option.d.ts +11 -28
  150. package/dist/Option.js +2 -6
  151. package/dist/Option.js.map +1 -1
  152. package/dist/Panel.d.ts +16 -52
  153. package/dist/Panel.js +4 -15
  154. package/dist/Panel.js.map +1 -1
  155. package/dist/Popover.d.ts +22 -62
  156. package/dist/Popover.js +12 -27
  157. package/dist/Popover.js.map +1 -1
  158. package/dist/Popup.d.ts +10 -46
  159. package/dist/Popup.js +10 -20
  160. package/dist/Popup.js.map +1 -1
  161. package/dist/ProgressIndicator.d.ts +8 -22
  162. package/dist/ProgressIndicator.js +2 -5
  163. package/dist/ProgressIndicator.js.map +1 -1
  164. package/dist/RadioButton.d.ts +13 -40
  165. package/dist/RadioButton.js +1 -5
  166. package/dist/RadioButton.js.map +1 -1
  167. package/dist/RangeSlider.d.ts +12 -27
  168. package/dist/RangeSlider.js +10 -21
  169. package/dist/RangeSlider.js.map +1 -1
  170. package/dist/RatingIndicator.d.ts +11 -27
  171. package/dist/RatingIndicator.js +1 -5
  172. package/dist/RatingIndicator.js.map +1 -1
  173. package/dist/ResponsivePopover.d.ts +8 -29
  174. package/dist/ResponsivePopover.js +7 -27
  175. package/dist/ResponsivePopover.js.map +1 -1
  176. package/dist/SegmentedButton.d.ts +13 -28
  177. package/dist/SegmentedButton.js +13 -14
  178. package/dist/SegmentedButton.js.map +1 -1
  179. package/dist/SegmentedButtonItem.d.ts +9 -19
  180. package/dist/SegmentedButtonItem.js +2 -5
  181. package/dist/SegmentedButtonItem.js.map +1 -1
  182. package/dist/Select.d.ts +15 -66
  183. package/dist/Select.js +18 -20
  184. package/dist/Select.js.map +1 -1
  185. package/dist/SelectMenu.d.ts +3 -10
  186. package/dist/SelectMenu.js +2 -4
  187. package/dist/SelectMenu.js.map +1 -1
  188. package/dist/SelectMenuOption.d.ts +12 -32
  189. package/dist/SelectMenuOption.js +11 -23
  190. package/dist/SelectMenuOption.js.map +1 -1
  191. package/dist/Slider.d.ts +5 -18
  192. package/dist/Slider.js +4 -15
  193. package/dist/Slider.js.map +1 -1
  194. package/dist/SliderBase.d.ts +11 -32
  195. package/dist/SliderBase.js +22 -17
  196. package/dist/SliderBase.js.map +1 -1
  197. package/dist/SplitButton.d.ts +25 -48
  198. package/dist/SplitButton.js +6 -14
  199. package/dist/SplitButton.js.map +1 -1
  200. package/dist/StandardListItem.d.ts +23 -58
  201. package/dist/StandardListItem.js +15 -22
  202. package/dist/StandardListItem.js.map +1 -1
  203. package/dist/StepInput.d.ts +20 -51
  204. package/dist/StepInput.js +7 -9
  205. package/dist/StepInput.js.map +1 -1
  206. package/dist/SuggestionGroupItem.d.ts +5 -9
  207. package/dist/SuggestionGroupItem.js +2 -5
  208. package/dist/SuggestionGroupItem.js.map +1 -1
  209. package/dist/SuggestionItem.d.ts +15 -27
  210. package/dist/SuggestionItem.js +2 -5
  211. package/dist/SuggestionItem.js.map +1 -1
  212. package/dist/SuggestionListItem.d.ts +7 -20
  213. package/dist/SuggestionListItem.js +4 -15
  214. package/dist/SuggestionListItem.js.map +1 -1
  215. package/dist/Switch.d.ts +16 -48
  216. package/dist/Switch.js +6 -17
  217. package/dist/Switch.js.map +1 -1
  218. package/dist/Tab.d.ts +10 -33
  219. package/dist/Tab.js +3 -7
  220. package/dist/Tab.js.map +1 -1
  221. package/dist/TabContainer.d.ts +21 -87
  222. package/dist/TabContainer.js +14 -23
  223. package/dist/TabContainer.js.map +1 -1
  224. package/dist/TabSeparator.d.ts +3 -8
  225. package/dist/TabSeparator.js +2 -7
  226. package/dist/TabSeparator.js.map +1 -1
  227. package/dist/Table.d.ts +18 -64
  228. package/dist/Table.js +13 -16
  229. package/dist/Table.js.map +1 -1
  230. package/dist/TableCell.d.ts +2 -17
  231. package/dist/TableCell.js +2 -14
  232. package/dist/TableCell.js.map +1 -1
  233. package/dist/TableColumn.d.ts +7 -26
  234. package/dist/TableColumn.js +3 -14
  235. package/dist/TableColumn.js.map +1 -1
  236. package/dist/TableGroupRow.d.ts +6 -28
  237. package/dist/TableGroupRow.js +3 -15
  238. package/dist/TableGroupRow.js.map +1 -1
  239. package/dist/TableRow.d.ts +11 -33
  240. package/dist/TableRow.js +4 -18
  241. package/dist/TableRow.js.map +1 -1
  242. package/dist/TextArea.d.ts +20 -61
  243. package/dist/TextArea.js +3 -16
  244. package/dist/TextArea.js.map +1 -1
  245. package/dist/TimePicker.d.ts +5 -15
  246. package/dist/TimePicker.js +2 -7
  247. package/dist/TimePicker.js.map +1 -1
  248. package/dist/TimePickerBase.d.ts +15 -51
  249. package/dist/TimePickerBase.js +23 -39
  250. package/dist/TimePickerBase.js.map +1 -1
  251. package/dist/TimePickerClock.d.ts +49 -89
  252. package/dist/TimePickerClock.js +38 -33
  253. package/dist/TimePickerClock.js.map +1 -1
  254. package/dist/TimePickerInternals.d.ts +16 -27
  255. package/dist/TimePickerInternals.js +9 -12
  256. package/dist/TimePickerInternals.js.map +1 -1
  257. package/dist/TimeSelection.d.ts +16 -23
  258. package/dist/TimeSelection.js +2 -5
  259. package/dist/TimeSelection.js.map +1 -1
  260. package/dist/TimeSelectionClocks.d.ts +16 -19
  261. package/dist/TimeSelectionClocks.js +14 -17
  262. package/dist/TimeSelectionClocks.js.map +1 -1
  263. package/dist/TimeSelectionInputs.d.ts +12 -16
  264. package/dist/TimeSelectionInputs.js +11 -15
  265. package/dist/TimeSelectionInputs.js.map +1 -1
  266. package/dist/Title.d.ts +7 -21
  267. package/dist/Title.js +5 -15
  268. package/dist/Title.js.map +1 -1
  269. package/dist/Toast.d.ts +12 -26
  270. package/dist/Toast.js +5 -5
  271. package/dist/Toast.js.map +1 -1
  272. package/dist/ToggleButton.d.ts +2 -7
  273. package/dist/ToggleButton.js +1 -4
  274. package/dist/ToggleButton.js.map +1 -1
  275. package/dist/ToggleSpinButton.d.ts +5 -15
  276. package/dist/ToggleSpinButton.js +1 -4
  277. package/dist/ToggleSpinButton.js.map +1 -1
  278. package/dist/Token.d.ts +13 -27
  279. package/dist/Token.js +2 -7
  280. package/dist/Token.js.map +1 -1
  281. package/dist/Tokenizer.d.ts +7 -11
  282. package/dist/Tokenizer.js +1 -5
  283. package/dist/Tokenizer.js.map +1 -1
  284. package/dist/Toolbar.d.ts +7 -26
  285. package/dist/Toolbar.js +4 -8
  286. package/dist/Toolbar.js.map +1 -1
  287. package/dist/ToolbarButton.d.ts +11 -34
  288. package/dist/ToolbarButton.js +1 -6
  289. package/dist/ToolbarButton.js.map +1 -1
  290. package/dist/ToolbarItem.d.ts +5 -28
  291. package/dist/ToolbarItem.js +1 -11
  292. package/dist/ToolbarItem.js.map +1 -1
  293. package/dist/ToolbarRegistry.d.ts +3 -3
  294. package/dist/ToolbarRegistry.js.map +1 -1
  295. package/dist/ToolbarSelect.d.ts +8 -27
  296. package/dist/ToolbarSelect.js +4 -10
  297. package/dist/ToolbarSelect.js.map +1 -1
  298. package/dist/ToolbarSelectOption.d.ts +2 -11
  299. package/dist/ToolbarSelectOption.js +1 -5
  300. package/dist/ToolbarSelectOption.js.map +1 -1
  301. package/dist/ToolbarSeparator.d.ts +1 -5
  302. package/dist/ToolbarSeparator.js +1 -5
  303. package/dist/ToolbarSeparator.js.map +1 -1
  304. package/dist/ToolbarSpacer.d.ts +2 -8
  305. package/dist/ToolbarSpacer.js +1 -5
  306. package/dist/ToolbarSpacer.js.map +1 -1
  307. package/dist/Tree.d.ts +12 -36
  308. package/dist/Tree.js +28 -14
  309. package/dist/Tree.js.map +1 -1
  310. package/dist/TreeItem.d.ts +8 -25
  311. package/dist/TreeItem.js +5 -16
  312. package/dist/TreeItem.js.map +1 -1
  313. package/dist/TreeItemBase.d.ts +12 -38
  314. package/dist/TreeItemBase.js +2 -9
  315. package/dist/TreeItemBase.js.map +1 -1
  316. package/dist/TreeItemCustom.d.ts +6 -22
  317. package/dist/TreeItemCustom.js +5 -16
  318. package/dist/TreeItemCustom.js.map +1 -1
  319. package/dist/WheelSlider.d.ts +9 -23
  320. package/dist/WheelSlider.js +11 -11
  321. package/dist/WheelSlider.js.map +1 -1
  322. package/dist/YearPicker.d.ts +14 -12
  323. package/dist/YearPicker.js +12 -12
  324. package/dist/YearPicker.js.map +1 -1
  325. package/dist/bundle.esm.js.map +1 -1
  326. package/dist/css/themes/Avatar.css +1 -1
  327. package/dist/css/themes/AvatarGroup.css +1 -1
  328. package/dist/css/themes/Badge.css +1 -1
  329. package/dist/css/themes/Breadcrumbs.css +1 -1
  330. package/dist/css/themes/BusyIndicator.css +1 -1
  331. package/dist/css/themes/Button.css +1 -1
  332. package/dist/css/themes/Calendar.css +1 -1
  333. package/dist/css/themes/CalendarHeader.css +1 -1
  334. package/dist/css/themes/Card.css +1 -1
  335. package/dist/css/themes/CardHeader.css +1 -1
  336. package/dist/css/themes/Carousel.css +1 -1
  337. package/dist/css/themes/CheckBox.css +1 -1
  338. package/dist/css/themes/ColorPalette.css +1 -1
  339. package/dist/css/themes/ColorPaletteItem.css +1 -1
  340. package/dist/css/themes/ColorPalettePopover.css +1 -1
  341. package/dist/css/themes/ColorPicker.css +1 -1
  342. package/dist/css/themes/ComboBox.css +1 -1
  343. package/dist/css/themes/CustomListItem.css +1 -1
  344. package/dist/css/themes/DatePicker.css +1 -1
  345. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  346. package/dist/css/themes/DayPicker.css +1 -1
  347. package/dist/css/themes/Dialog.css +1 -1
  348. package/dist/css/themes/FileUploader.css +1 -1
  349. package/dist/css/themes/GroupHeaderListItem.css +1 -1
  350. package/dist/css/themes/GrowingButton.css +1 -1
  351. package/dist/css/themes/Icon.css +1 -1
  352. package/dist/css/themes/Input.css +1 -1
  353. package/dist/css/themes/InputIcon.css +1 -1
  354. package/dist/css/themes/InputSharedStyles.css +1 -1
  355. package/dist/css/themes/Link.css +1 -1
  356. package/dist/css/themes/List.css +1 -1
  357. package/dist/css/themes/ListItem.css +1 -1
  358. package/dist/css/themes/ListItemBase.css +1 -1
  359. package/dist/css/themes/Menu.css +1 -1
  360. package/dist/css/themes/MessageStrip.css +1 -1
  361. package/dist/css/themes/MonthPicker.css +1 -1
  362. package/dist/css/themes/MultiComboBox.css +1 -1
  363. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  364. package/dist/css/themes/MultiInput.css +1 -1
  365. package/dist/css/themes/NavigationMenu.css +1 -0
  366. package/dist/css/themes/Panel.css +1 -1
  367. package/dist/css/themes/Popover.css +1 -1
  368. package/dist/css/themes/PopupsCommon.css +1 -1
  369. package/dist/css/themes/ProgressIndicator.css +1 -1
  370. package/dist/css/themes/RadioButton.css +1 -1
  371. package/dist/css/themes/RangeSlider.css +1 -1
  372. package/dist/css/themes/RatingIndicator.css +1 -1
  373. package/dist/css/themes/ResponsivePopover.css +1 -1
  374. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  375. package/dist/css/themes/SegmentedButton.css +1 -1
  376. package/dist/css/themes/Select.css +1 -1
  377. package/dist/css/themes/SelectMenu.css +1 -1
  378. package/dist/css/themes/SelectPopover.css +1 -1
  379. package/dist/css/themes/SliderBase.css +1 -1
  380. package/dist/css/themes/SplitButton.css +1 -1
  381. package/dist/css/themes/StepInput.css +1 -1
  382. package/dist/css/themes/Switch.css +1 -1
  383. package/dist/css/themes/TabContainer.css +1 -1
  384. package/dist/css/themes/TabInOverflow.css +1 -1
  385. package/dist/css/themes/TabInStrip.css +1 -1
  386. package/dist/css/themes/TabSemanticIcon.css +1 -1
  387. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  388. package/dist/css/themes/Table.css +1 -1
  389. package/dist/css/themes/TableCell.css +1 -1
  390. package/dist/css/themes/TableColumn.css +1 -1
  391. package/dist/css/themes/TableGroupRow.css +1 -1
  392. package/dist/css/themes/TableRow.css +1 -1
  393. package/dist/css/themes/TextArea.css +1 -1
  394. package/dist/css/themes/TimePicker.css +1 -1
  395. package/dist/css/themes/Toast.css +1 -1
  396. package/dist/css/themes/ToggleButton.css +1 -1
  397. package/dist/css/themes/Token.css +1 -1
  398. package/dist/css/themes/Tokenizer.css +1 -1
  399. package/dist/css/themes/TokenizerPopover.css +1 -1
  400. package/dist/css/themes/Toolbar.css +1 -1
  401. package/dist/css/themes/ToolbarPopover.css +1 -1
  402. package/dist/css/themes/TreeItem.css +1 -1
  403. package/dist/css/themes/ValueStateMessage.css +1 -1
  404. package/dist/css/themes/WheelSlider.css +1 -1
  405. package/dist/css/themes/YearPicker.css +1 -1
  406. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  407. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  408. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  409. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  410. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  411. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  412. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  413. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  414. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  415. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  416. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  417. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  418. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  419. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  420. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  421. package/dist/custom-elements-internal.json +20999 -0
  422. package/dist/custom-elements.json +16118 -1
  423. package/dist/features/InputSuggestions.d.ts +10 -10
  424. package/dist/features/InputSuggestions.js +1 -2
  425. package/dist/features/InputSuggestions.js.map +1 -1
  426. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  427. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  428. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  429. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  430. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  431. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  432. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  433. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  434. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  435. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  436. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  437. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  438. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  439. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  440. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  441. package/dist/generated/i18n/i18n-defaults.d.ts +9 -2
  442. package/dist/generated/i18n/i18n-defaults.js +9 -2
  443. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  444. package/dist/generated/templates/BadgeTemplate.lit.js +8 -3
  445. package/dist/generated/templates/BadgeTemplate.lit.js.map +1 -1
  446. package/dist/generated/templates/NavigationMenuTemplate.lit.d.ts +4 -0
  447. package/dist/generated/templates/NavigationMenuTemplate.lit.js +21 -0
  448. package/dist/generated/templates/NavigationMenuTemplate.lit.js.map +1 -0
  449. package/dist/generated/themes/Avatar.css.js +1 -1
  450. package/dist/generated/themes/Avatar.css.js.map +1 -1
  451. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  452. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  453. package/dist/generated/themes/Badge.css.js +1 -1
  454. package/dist/generated/themes/Badge.css.js.map +1 -1
  455. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  456. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  457. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  458. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  459. package/dist/generated/themes/Button.css.js +1 -1
  460. package/dist/generated/themes/Button.css.js.map +1 -1
  461. package/dist/generated/themes/Calendar.css.js +1 -1
  462. package/dist/generated/themes/Calendar.css.js.map +1 -1
  463. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  464. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  465. package/dist/generated/themes/Card.css.js +1 -1
  466. package/dist/generated/themes/Card.css.js.map +1 -1
  467. package/dist/generated/themes/CardHeader.css.js +1 -1
  468. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  469. package/dist/generated/themes/Carousel.css.js +1 -1
  470. package/dist/generated/themes/Carousel.css.js.map +1 -1
  471. package/dist/generated/themes/CheckBox.css.js +1 -1
  472. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  473. package/dist/generated/themes/ColorPalette.css.js +1 -1
  474. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  475. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  476. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  477. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  478. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  479. package/dist/generated/themes/ColorPicker.css.js +1 -1
  480. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  481. package/dist/generated/themes/ComboBox.css.js +1 -1
  482. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  483. package/dist/generated/themes/CustomListItem.css.js +1 -1
  484. package/dist/generated/themes/CustomListItem.css.js.map +1 -1
  485. package/dist/generated/themes/DatePicker.css.js +1 -1
  486. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  487. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  488. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  489. package/dist/generated/themes/DayPicker.css.js +1 -1
  490. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  491. package/dist/generated/themes/Dialog.css.js +1 -1
  492. package/dist/generated/themes/Dialog.css.js.map +1 -1
  493. package/dist/generated/themes/FileUploader.css.js +1 -1
  494. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  495. package/dist/generated/themes/GroupHeaderListItem.css.js +1 -1
  496. package/dist/generated/themes/GroupHeaderListItem.css.js.map +1 -1
  497. package/dist/generated/themes/GrowingButton.css.js +1 -1
  498. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  499. package/dist/generated/themes/Icon.css.js +1 -1
  500. package/dist/generated/themes/Icon.css.js.map +1 -1
  501. package/dist/generated/themes/Input.css.js +1 -1
  502. package/dist/generated/themes/Input.css.js.map +1 -1
  503. package/dist/generated/themes/InputIcon.css.js +1 -1
  504. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  505. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  506. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  507. package/dist/generated/themes/Link.css.js +1 -1
  508. package/dist/generated/themes/Link.css.js.map +1 -1
  509. package/dist/generated/themes/List.css.js +1 -1
  510. package/dist/generated/themes/List.css.js.map +1 -1
  511. package/dist/generated/themes/ListItem.css.js +1 -1
  512. package/dist/generated/themes/ListItem.css.js.map +1 -1
  513. package/dist/generated/themes/ListItemBase.css.js +1 -1
  514. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  515. package/dist/generated/themes/Menu.css.js +1 -1
  516. package/dist/generated/themes/Menu.css.js.map +1 -1
  517. package/dist/generated/themes/MessageStrip.css.js +1 -1
  518. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  519. package/dist/generated/themes/MonthPicker.css.js +1 -1
  520. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  521. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  522. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  523. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  524. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  525. package/dist/generated/themes/MultiInput.css.js +1 -1
  526. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  527. package/dist/generated/themes/NavigationMenu.css.d.ts +3 -0
  528. package/dist/generated/themes/NavigationMenu.css.js +9 -0
  529. package/dist/generated/themes/NavigationMenu.css.js.map +1 -0
  530. package/dist/generated/themes/Panel.css.js +1 -1
  531. package/dist/generated/themes/Panel.css.js.map +1 -1
  532. package/dist/generated/themes/Popover.css.js +1 -1
  533. package/dist/generated/themes/Popover.css.js.map +1 -1
  534. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  535. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  536. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  537. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  538. package/dist/generated/themes/RadioButton.css.js +1 -1
  539. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  540. package/dist/generated/themes/RangeSlider.css.js +1 -1
  541. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  542. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  543. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  544. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  545. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  546. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  547. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  548. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  549. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  550. package/dist/generated/themes/Select.css.js +1 -1
  551. package/dist/generated/themes/Select.css.js.map +1 -1
  552. package/dist/generated/themes/SelectMenu.css.js +1 -1
  553. package/dist/generated/themes/SelectMenu.css.js.map +1 -1
  554. package/dist/generated/themes/SelectPopover.css.js +1 -1
  555. package/dist/generated/themes/SelectPopover.css.js.map +1 -1
  556. package/dist/generated/themes/SliderBase.css.js +1 -1
  557. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  558. package/dist/generated/themes/SplitButton.css.js +1 -1
  559. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  560. package/dist/generated/themes/StepInput.css.js +1 -1
  561. package/dist/generated/themes/StepInput.css.js.map +1 -1
  562. package/dist/generated/themes/Switch.css.js +1 -1
  563. package/dist/generated/themes/Switch.css.js.map +1 -1
  564. package/dist/generated/themes/TabContainer.css.js +1 -1
  565. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  566. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  567. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  568. package/dist/generated/themes/TabInStrip.css.js +1 -1
  569. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  570. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  571. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  572. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  573. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  574. package/dist/generated/themes/Table.css.js +1 -1
  575. package/dist/generated/themes/Table.css.js.map +1 -1
  576. package/dist/generated/themes/TableCell.css.js +1 -1
  577. package/dist/generated/themes/TableCell.css.js.map +1 -1
  578. package/dist/generated/themes/TableColumn.css.js +1 -1
  579. package/dist/generated/themes/TableColumn.css.js.map +1 -1
  580. package/dist/generated/themes/TableGroupRow.css.js +1 -1
  581. package/dist/generated/themes/TableGroupRow.css.js.map +1 -1
  582. package/dist/generated/themes/TableRow.css.js +1 -1
  583. package/dist/generated/themes/TableRow.css.js.map +1 -1
  584. package/dist/generated/themes/TextArea.css.js +1 -1
  585. package/dist/generated/themes/TextArea.css.js.map +1 -1
  586. package/dist/generated/themes/TimePicker.css.js +1 -1
  587. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  588. package/dist/generated/themes/Toast.css.js +1 -1
  589. package/dist/generated/themes/Toast.css.js.map +1 -1
  590. package/dist/generated/themes/ToggleButton.css.js +1 -1
  591. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  592. package/dist/generated/themes/Token.css.js +1 -1
  593. package/dist/generated/themes/Token.css.js.map +1 -1
  594. package/dist/generated/themes/Tokenizer.css.js +1 -1
  595. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  596. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  597. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  598. package/dist/generated/themes/Toolbar.css.js +1 -1
  599. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  600. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  601. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  602. package/dist/generated/themes/TreeItem.css.js +1 -1
  603. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  604. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  605. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  606. package/dist/generated/themes/WheelSlider.css.js +1 -1
  607. package/dist/generated/themes/WheelSlider.css.js.map +1 -1
  608. package/dist/generated/themes/YearPicker.css.js +1 -1
  609. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  610. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  611. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  612. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  613. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  614. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  615. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  616. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  617. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  618. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  619. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  620. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  621. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  622. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  623. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  624. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  625. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  626. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  627. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  628. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  629. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  630. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  631. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  632. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  633. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  634. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  635. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  636. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  637. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  638. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  639. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  640. package/dist/types/AvatarColorScheme.d.ts +0 -15
  641. package/dist/types/AvatarColorScheme.js +0 -15
  642. package/dist/types/AvatarColorScheme.js.map +1 -1
  643. package/dist/types/AvatarGroupType.d.ts +0 -6
  644. package/dist/types/AvatarGroupType.js +0 -6
  645. package/dist/types/AvatarGroupType.js.map +1 -1
  646. package/dist/types/AvatarShape.d.ts +0 -6
  647. package/dist/types/AvatarShape.js +0 -6
  648. package/dist/types/AvatarShape.js.map +1 -1
  649. package/dist/types/AvatarSize.d.ts +0 -9
  650. package/dist/types/AvatarSize.js +0 -9
  651. package/dist/types/AvatarSize.js.map +1 -1
  652. package/dist/types/BackgroundDesign.d.ts +0 -7
  653. package/dist/types/BackgroundDesign.js +0 -7
  654. package/dist/types/BackgroundDesign.js.map +1 -1
  655. package/dist/types/BadgeDesign.d.ts +49 -0
  656. package/dist/types/BadgeDesign.js +51 -0
  657. package/dist/types/BadgeDesign.js.map +1 -0
  658. package/dist/types/BorderDesign.d.ts +0 -6
  659. package/dist/types/BorderDesign.js +0 -6
  660. package/dist/types/BorderDesign.js.map +1 -1
  661. package/dist/types/BreadcrumbsDesign.d.ts +0 -6
  662. package/dist/types/BreadcrumbsDesign.js +0 -6
  663. package/dist/types/BreadcrumbsDesign.js.map +1 -1
  664. package/dist/types/BreadcrumbsSeparatorStyle.d.ts +0 -10
  665. package/dist/types/BreadcrumbsSeparatorStyle.js +0 -10
  666. package/dist/types/BreadcrumbsSeparatorStyle.js.map +1 -1
  667. package/dist/types/BusyIndicatorSize.d.ts +0 -7
  668. package/dist/types/BusyIndicatorSize.js +0 -7
  669. package/dist/types/BusyIndicatorSize.js.map +1 -1
  670. package/dist/types/ButtonDesign.d.ts +0 -10
  671. package/dist/types/ButtonDesign.js +0 -10
  672. package/dist/types/ButtonDesign.js.map +1 -1
  673. package/dist/types/ButtonType.d.ts +0 -7
  674. package/dist/types/ButtonType.js +0 -7
  675. package/dist/types/ButtonType.js.map +1 -1
  676. package/dist/types/CalendarPickersMode.d.ts +6 -10
  677. package/dist/types/CalendarPickersMode.js +6 -10
  678. package/dist/types/CalendarPickersMode.js.map +1 -1
  679. package/dist/types/CalendarSelectionMode.d.ts +0 -7
  680. package/dist/types/CalendarSelectionMode.js +0 -7
  681. package/dist/types/CalendarSelectionMode.js.map +1 -1
  682. package/dist/types/CarouselArrowsPlacement.d.ts +0 -6
  683. package/dist/types/CarouselArrowsPlacement.js +0 -6
  684. package/dist/types/CarouselArrowsPlacement.js.map +1 -1
  685. package/dist/types/CarouselPageIndicatorStyle.d.ts +0 -6
  686. package/dist/types/CarouselPageIndicatorStyle.js +0 -6
  687. package/dist/types/CarouselPageIndicatorStyle.js.map +1 -1
  688. package/dist/types/ComboBoxFilter.d.ts +0 -8
  689. package/dist/types/ComboBoxFilter.js +0 -8
  690. package/dist/types/ComboBoxFilter.js.map +1 -1
  691. package/dist/types/HasPopup.d.ts +0 -9
  692. package/dist/types/HasPopup.js +0 -9
  693. package/dist/types/HasPopup.js.map +1 -1
  694. package/dist/types/IconDesign.d.ts +0 -12
  695. package/dist/types/IconDesign.js +0 -12
  696. package/dist/types/IconDesign.js.map +1 -1
  697. package/dist/types/InputType.d.ts +0 -10
  698. package/dist/types/InputType.js +0 -10
  699. package/dist/types/InputType.js.map +1 -1
  700. package/dist/types/LinkDesign.d.ts +0 -7
  701. package/dist/types/LinkDesign.js +0 -7
  702. package/dist/types/LinkDesign.js.map +1 -1
  703. package/dist/types/ListGrowingMode.d.ts +0 -7
  704. package/dist/types/ListGrowingMode.js +0 -7
  705. package/dist/types/ListGrowingMode.js.map +1 -1
  706. package/dist/types/ListItemType.d.ts +0 -8
  707. package/dist/types/ListItemType.js +0 -8
  708. package/dist/types/ListItemType.js.map +1 -1
  709. package/dist/types/ListMode.d.ts +0 -11
  710. package/dist/types/ListMode.js +0 -11
  711. package/dist/types/ListMode.js.map +1 -1
  712. package/dist/types/ListSeparators.d.ts +0 -7
  713. package/dist/types/ListSeparators.js +0 -7
  714. package/dist/types/ListSeparators.js.map +1 -1
  715. package/dist/types/MessageStripDesign.d.ts +0 -8
  716. package/dist/types/MessageStripDesign.js +0 -8
  717. package/dist/types/MessageStripDesign.js.map +1 -1
  718. package/dist/types/PanelAccessibleRole.d.ts +0 -7
  719. package/dist/types/PanelAccessibleRole.js +0 -7
  720. package/dist/types/PanelAccessibleRole.js.map +1 -1
  721. package/dist/types/PopoverHorizontalAlign.d.ts +0 -8
  722. package/dist/types/PopoverHorizontalAlign.js +0 -8
  723. package/dist/types/PopoverHorizontalAlign.js.map +1 -1
  724. package/dist/types/PopoverPlacementType.d.ts +0 -8
  725. package/dist/types/PopoverPlacementType.js +0 -8
  726. package/dist/types/PopoverPlacementType.js.map +1 -1
  727. package/dist/types/PopoverVerticalAlign.d.ts +0 -8
  728. package/dist/types/PopoverVerticalAlign.js +0 -8
  729. package/dist/types/PopoverVerticalAlign.js.map +1 -1
  730. package/dist/types/PopupAccessibleRole.d.ts +0 -7
  731. package/dist/types/PopupAccessibleRole.js +0 -7
  732. package/dist/types/PopupAccessibleRole.js.map +1 -1
  733. package/dist/types/Priority.d.ts +0 -8
  734. package/dist/types/Priority.js +0 -8
  735. package/dist/types/Priority.js.map +1 -1
  736. package/dist/types/SegmentedButtonMode.d.ts +0 -6
  737. package/dist/types/SegmentedButtonMode.js +0 -6
  738. package/dist/types/SegmentedButtonMode.js.map +1 -1
  739. package/dist/types/SemanticColor.d.ts +0 -9
  740. package/dist/types/SemanticColor.js +0 -9
  741. package/dist/types/SemanticColor.js.map +1 -1
  742. package/dist/types/SwitchDesign.d.ts +0 -6
  743. package/dist/types/SwitchDesign.js +0 -6
  744. package/dist/types/SwitchDesign.js.map +1 -1
  745. package/dist/types/TabContainerBackgroundDesign.d.ts +0 -7
  746. package/dist/types/TabContainerBackgroundDesign.js +0 -7
  747. package/dist/types/TabContainerBackgroundDesign.js.map +1 -1
  748. package/dist/types/TabContainerTabsPlacement.d.ts +0 -6
  749. package/dist/types/TabContainerTabsPlacement.js +0 -6
  750. package/dist/types/TabContainerTabsPlacement.js.map +1 -1
  751. package/dist/types/TabLayout.d.ts +0 -6
  752. package/dist/types/TabLayout.js +0 -6
  753. package/dist/types/TabLayout.js.map +1 -1
  754. package/dist/types/TableColumnPopinDisplay.d.ts +0 -6
  755. package/dist/types/TableColumnPopinDisplay.js +0 -6
  756. package/dist/types/TableColumnPopinDisplay.js.map +1 -1
  757. package/dist/types/TableGrowingMode.d.ts +0 -7
  758. package/dist/types/TableGrowingMode.js +0 -7
  759. package/dist/types/TableGrowingMode.js.map +1 -1
  760. package/dist/types/TableMode.d.ts +0 -7
  761. package/dist/types/TableMode.js +0 -7
  762. package/dist/types/TableMode.js.map +1 -1
  763. package/dist/types/TableRowType.d.ts +0 -6
  764. package/dist/types/TableRowType.js +0 -6
  765. package/dist/types/TableRowType.js.map +1 -1
  766. package/dist/types/TabsOverflowMode.d.ts +0 -6
  767. package/dist/types/TabsOverflowMode.js +0 -6
  768. package/dist/types/TabsOverflowMode.js.map +1 -1
  769. package/dist/types/TitleLevel.d.ts +0 -10
  770. package/dist/types/TitleLevel.js +0 -10
  771. package/dist/types/TitleLevel.js.map +1 -1
  772. package/dist/types/ToastPlacement.d.ts +0 -13
  773. package/dist/types/ToastPlacement.js +0 -13
  774. package/dist/types/ToastPlacement.js.map +1 -1
  775. package/dist/types/ToolbarAlign.d.ts +2 -9
  776. package/dist/types/ToolbarAlign.js +2 -9
  777. package/dist/types/ToolbarAlign.js.map +1 -1
  778. package/dist/types/ToolbarItemOverflowBehavior.d.ts +1 -9
  779. package/dist/types/ToolbarItemOverflowBehavior.js +1 -9
  780. package/dist/types/ToolbarItemOverflowBehavior.js.map +1 -1
  781. package/dist/types/WrappingType.d.ts +0 -6
  782. package/dist/types/WrappingType.js +0 -6
  783. package/dist/types/WrappingType.js.map +1 -1
  784. package/package.json +9 -9
  785. package/src/Badge.hbs +26 -5
  786. package/src/NavigationMenu.hbs +159 -0
  787. package/src/i18n/messagebundle.properties +22 -1
  788. package/src/themes/Badge.css +505 -39
  789. package/src/themes/NavigationMenu.css +69 -0
  790. package/src/themes/base/Badge-parameters.css +106 -3
  791. package/src/themes/sap_belize/BusyIndicator-parameters.css +5 -0
  792. package/src/themes/sap_belize/parameters-bundle.css +1 -1
  793. package/src/themes/sap_horizon/Badge-parameters.css +3 -5
  794. package/src/themes/sap_horizon_dark/Badge-parameters.css +3 -5
  795. package/src/themes/sap_horizon_hcb/Badge-parameters.css +108 -5
  796. package/src/themes/sap_horizon_hcw/Badge-parameters.css +108 -2
  797. package/dist/api.json +0 -1
package/dist/Popover.js CHANGED
@@ -51,17 +51,6 @@ const ARROW_SIZE = 8;
51
51
  * or selects an action within the popover. You can prevent this with the
52
52
  * <code>modal</code> property.
53
53
  *
54
- * <h3>CSS Shadow Parts</h3>
55
- *
56
- * <ui5-link target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/CSS/::part">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.
57
- * <br>
58
- * The <code>ui5-popover</code> exposes the following CSS Shadow Parts:
59
- * <ul>
60
- * <li>header - Used to style the header of the component</li>
61
- * <li>content - Used to style the content of the component</li>
62
- * <li>footer - Used to style the footer of the component</li>
63
- * </ul>
64
- *
65
54
  * <h3>ES6 Module Import</h3>
66
55
  *
67
56
  * <code>import "@ui5/webcomponents/dist/Popover.js";</code>
@@ -74,12 +63,12 @@ const ARROW_SIZE = 8;
74
63
  * <b>Note:</b> We don't recommend nesting popup-like components (<code>ui5-dialog</code>, <code>ui5-popover</code>).
75
64
  *
76
65
  * @constructor
77
- * @author SAP SE
78
- * @alias sap.ui.webc.main.Popover
79
- * @extends sap.ui.webc.main.Popup
80
- * @tagname ui5-popover
66
+ * @extends Popup
81
67
  * @since 1.0.0-rc.6
82
68
  * @public
69
+ * @csspart header - Used to style the header of the component
70
+ * @csspart content - Used to style the content of the component
71
+ * @csspart footer - Used to style the footer of the component
83
72
  */
84
73
  let Popover = Popover_1 = class Popover extends Popup {
85
74
  static get VIEWPORT_MARGIN() {
@@ -121,14 +110,10 @@ let Popover = Popover_1 = class Popover extends Popup {
121
110
  }
122
111
  /**
123
112
  * Shows the popover.
124
- * @param {HTMLElement} opener the element that the popover is shown at
125
- * @param {boolean} [preventInitialFocus=false] prevents applying the focus inside the popover
113
+ * @param opener the element that the popover is shown at
114
+ * @param [preventInitialFocus=false] prevents applying the focus inside the popover
126
115
  * @public
127
- * @async
128
- * @method
129
- * @name sap.ui.webc.main.Popover#showAt
130
- * @async
131
- * @returns {Promise} Resolved when the popover is open
116
+ * @returns Resolved when the popover is open
132
117
  */
133
118
  async showAt(opener, preventInitialFocus = false) {
134
119
  if (!opener || this.opened) {
@@ -247,8 +232,8 @@ let Popover = Popover_1 = class Popover extends Popup {
247
232
  * Adjust the desired top position to compensate for shift of the screen
248
233
  * caused by opened keyboard on iOS which affects all elements with position:fixed.
249
234
  * @private
250
- * @param {int} top The target top in px.
251
- * @returns {int} The adjusted top in px.
235
+ * @param top The target top in px.
236
+ * @returns The adjusted top in px.
252
237
  */
253
238
  _adjustForIOSKeyboard(top) {
254
239
  if (!isIOS()) {
@@ -379,12 +364,12 @@ let Popover = Popover_1 = class Popover extends Popup {
379
364
  * Calculates the position for the arrow.
380
365
  * @private
381
366
  * @param targetRect BoundingClientRect of the target element
382
- * @param {{width: number, height: number}} popoverSize Width and height of the popover
367
+ * @param popoverSize Width and height of the popover
383
368
  * @param left Left offset of the popover
384
369
  * @param top Top offset of the popover
385
370
  * @param isVertical If the popover is positioned vertically to the target element
386
- * @param {number} borderRadius Value of the border-radius property
387
- * @returns {{x: number, y: number}} Arrow's coordinates
371
+ * @param borderRadius Value of the border-radius property
372
+ * @returns Arrow's coordinates
388
373
  */
389
374
  getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius) {
390
375
  const horizontalAlign = this._actualHorizontalAlign;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,MAAM,4CAA4C,CAAC;AAC/D,OAAO,wBAAwB,MAAM,+DAA+D,CAAC;AACrG,OAAO,gBAAgB,MAAM,uDAAuD,CAAC;AACrF,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEzF,WAAW;AACX,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,SAAS;AACT,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,UAAU,MAAM,mCAA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E,WAAW,EAAE,CAAC;uCACA;AAtKvB,OAAO;IATZ,aAAa,CAAC;QACd,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE;YACP,mBAAmB;YACnB,eAAe;YACf,UAAU;SACV;QACD,QAAQ,EAAE,eAAe;KACzB,CAAC;GACI,OAAO,CAkvBZ;AAED,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAqB,EAAE;IAC5D,OAAO,QAAQ,IAAI,MAAM,CAAC;AAC3B,CAAC,CAAC;AAEF,OAAO,CAAC,MAAM,EAAE,CAAC;AAEjB,eAAe,OAAO,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import type 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 Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport { isIOS } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport DOMReference from \"@ui5/webcomponents-base/dist/types/DOMReference.js\";\nimport { getClosedPopupParent } from \"@ui5/webcomponents-base/dist/util/PopupUtils.js\";\nimport clamp from \"@ui5/webcomponents-base/dist/util/clamp.js\";\nimport isElementContainingBlock from \"@ui5/webcomponents-base/dist/util/isElementContainingBlock.js\";\nimport getParentElement from \"@ui5/webcomponents-base/dist/util/getParentElement.js\";\nimport Popup from \"./Popup.js\";\nimport type { PopupBeforeCloseEventDetail as PopoverBeforeCloseEventDetail } from \"./Popup.js\";\nimport PopoverPlacementType from \"./types/PopoverPlacementType.js\";\nimport PopoverVerticalAlign from \"./types/PopoverVerticalAlign.js\";\nimport PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport { addOpenedPopover, removeOpenedPopover } from \"./popup-utils/PopoverRegistry.js\";\n\n// Template\nimport PopoverTemplate from \"./generated/templates/PopoverTemplate.lit.js\";\n// Styles\nimport browserScrollbarCSS from \"./generated/themes/BrowserScrollbar.css.js\";\nimport PopupsCommonCss from \"./generated/themes/PopupsCommon.css.js\";\nimport PopoverCss from \"./generated/themes/Popover.css.js\";\n\nconst ARROW_SIZE = 8;\n\ntype PopoverSize = {\n\twidth: number;\n\theight: number;\n}\n\ntype ArrowPosition = {\n\tx: number;\n\ty: number;\n}\n\ntype CalculatedPlacement = {\n\tarrow: ArrowPosition,\n\ttop: number,\n\tleft: number,\n\tplacementType: `${PopoverPlacementType}`,\n}\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-popover</code> component displays additional information for an object\n * in a compact way and without leaving the page.\n * The Popover can contain various UI elements, such as fields, tables, images, and charts.\n * It can also include actions in the footer.\n *\n * <h3>Structure</h3>\n *\n * The popover has three main areas:\n * <ul>\n * <li>Header (optional)</li>\n * <li>Content</li>\n * <li>Footer (optional)</li>\n * </ul>\n *\n * <b>Note:</b> The <code>ui5-popover</code> is closed when the user clicks\n * or taps outside the popover\n * or selects an action within the popover. You can prevent this with the\n * <code>modal</code> property.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-popover</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>header - Used to style the header of the component</li>\n * <li>content - Used to style the content of the component</li>\n * <li>footer - Used to style the footer of the component</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Popover.js\";</code>\n *\n * <b>Note: </b> We recommend placing popup-like components (<code>ui5-dialog</code> and <code>ui5-popover</code>)\n * outside any other components. Preferably, the popup-like components should be placed\n * in an upper level HTML element. Otherwise, in some cases the parent HTML elements can break\n * the position and/or z-index management of the popup-like components.\n *\n * <b>Note:</b> We don't recommend nesting popup-like components (<code>ui5-dialog</code>, <code>ui5-popover</code>).\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Popover\n * @extends sap.ui.webc.main.Popup\n * @tagname ui5-popover\n * @since 1.0.0-rc.6\n * @public\n */\n@customElement({\n\ttag: \"ui5-popover\",\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPopupsCommonCss,\n\t\tPopoverCss,\n\t],\n\ttemplate: PopoverTemplate,\n})\nclass Popover extends Popup {\n\t/**\n\t * Defines the header text.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided, the <code>headerText</code> is ignored.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popover.prototype.headerText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverPlacementType}\n\t * @name sap.ui.webc.main.Popover.prototype.placementType\n\t * @defaultvalue \"Right\"\n\t * @public\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tplacementType!: `${PopoverPlacementType}`;\n\n\t/**\n\t * Determines the horizontal alignment of the component.\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverHorizontalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.horizontalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverHorizontalAlign, defaultValue: PopoverHorizontalAlign.Center })\n\thorizontalAlign!: `${PopoverHorizontalAlign}`;\n\n\t/**\n\t * Determines the vertical alignment of the component.\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverVerticalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.verticalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverVerticalAlign, defaultValue: PopoverVerticalAlign.Center })\n\tverticalAlign!: `${PopoverVerticalAlign}`;\n\n\t/**\n\t * Defines whether the component should close when\n\t * clicking/tapping outside of the popover.\n\t * If enabled, it blocks any interaction with the background.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.modal\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tmodal!: boolean;\n\n\t/**\n\t * Defines whether the block layer will be shown if modal property is set to true.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideBackdrop\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.10\n\t */\n\t@property({ type: Boolean })\n\thideBackdrop!: boolean;\n\n\t/**\n\t * Determines whether the component arrow is hidden.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideArrow\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: Boolean })\n\thideArrow!: boolean;\n\n\t/**\n\t * Determines if there is no enough space, the component can be placed\n\t * over the target.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.allowTargetOverlap\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tallowTargetOverlap!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at\n\t * @public\n\t * @type {sap.ui.webc.base.types.DOMReference}\n\t * @name sap.ui.webc.main.Popover.prototype.opener\n\t * @defaultvalue undefined\n\t * @since 1.2.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines whether the content is scrollable.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Sets the X translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateX!: number;\n\n\t/**\n\t * Sets the Y translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateY!: number;\n\n\t/**\n\t * Returns the calculated placement depending on the free space\n\t *\n\t * @private\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tactualPlacementType!: `${PopoverPlacementType}`;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxHeight?: number;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxWidth?: number;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.footer\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tfooter!: Array<HTMLElement>;\n\n\t_opener?: HTMLElement;\n\t_openerRect?: DOMRect;\n\t_preventRepositionAndClose?: boolean;\n\t_top?: number;\n\t_left?: number;\n\t_oldPlacement?: CalculatedPlacement;\n\t_width?: string;\n\n\tstatic get VIEWPORT_MARGIN() {\n\t\treturn 10; // px\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonAfterRendering() {\n\t\tsuper.onAfterRendering();\n\n\t\tif (!this.isOpen() && this.open) {\n\t\t\tlet opener;\n\n\t\t\tif (this.opener instanceof HTMLElement) {\n\t\t\t\topener = this.opener;\n\t\t\t} else if (typeof this.opener === \"string\") {\n\t\t\t\topener = (this.getRootNode() as Document).getElementById(this.opener) || document.getElementById(this.opener);\n\t\t\t}\n\n\t\t\tif (!opener) {\n\t\t\t\tconsole.warn(\"Valid opener id is required.\"); // eslint-disable-line\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.showAt(opener);\n\t\t} else if (this.isOpen() && !this.open) {\n\t\t\tthis.close();\n\t\t}\n\t}\n\n\tisOpenerClicked(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tif (target === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst ui5ElementTarget = target as UI5Element;\n\n\t\tif (ui5ElementTarget.getFocusDomRef && ui5ElementTarget.getFocusDomRef() === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn e.composedPath().indexOf(this._opener as EventTarget) > -1;\n\t}\n\n\t/**\n\t * Shows the popover.\n\t * @param {HTMLElement} opener the element that the popover is shown at\n\t * @param {boolean} [preventInitialFocus=false] prevents applying the focus inside the popover\n\t * @public\n\t * @async\n\t * @method\n\t * @name sap.ui.webc.main.Popover#showAt\n\t * @async\n\t * @returns {Promise} Resolved when the popover is open\n\t */\n\tasync showAt(opener: HTMLElement, preventInitialFocus = false) {\n\t\tif (!opener || this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._opener = opener;\n\t\tthis._openerRect = opener.getBoundingClientRect();\n\n\t\tawait super._open(preventInitialFocus);\n\t}\n\n\t/**\n\t * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)\n\t * @private\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopover(this);\n\t}\n\n\t/**\n\t * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)\n\t * @private\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopover(this);\n\t}\n\n\tshouldCloseDueToOverflow(placement: `${PopoverPlacementType}`, openerRect: DOMRect): boolean {\n\t\tconst threshold = 32;\n\t\tconst limits = {\n\t\t\t\"Right\": openerRect.right,\n\t\t\t\"Left\": openerRect.left,\n\t\t\t\"Top\": openerRect.top,\n\t\t\t\"Bottom\": openerRect.bottom,\n\t\t};\n\n\t\tconst closedPopupParent = getClosedPopupParent(this._opener!);\n\t\tlet overflowsBottom = false;\n\t\tlet overflowsTop = false;\n\n\t\tif ((closedPopupParent as Popover).showAt) {\n\t\t\tconst contentRect = (closedPopupParent as Popover).contentDOM.getBoundingClientRect();\n\t\t\toverflowsBottom = openerRect.top > (contentRect.top + contentRect.height);\n\t\t\toverflowsTop = (openerRect.top + openerRect.height) < contentRect.top;\n\t\t}\n\n\t\treturn (limits[placement] < 0 || (limits[placement] + threshold > (closedPopupParent as unknown as Window).innerHeight)) || overflowsBottom || overflowsTop;\n\t}\n\n\tshouldCloseDueToNoOpener(openerRect: DOMRect): boolean {\n\t\treturn openerRect.top === 0\n\t\t\t&& openerRect.bottom === 0\n\t\t\t&& openerRect.left === 0\n\t\t\t&& openerRect.right === 0;\n\t}\n\n\tisOpenerOutsideViewport(openerRect: DOMRect): boolean {\n\t\treturn openerRect.bottom < 0\n\t\t\t|| openerRect.top > window.innerHeight\n\t\t\t|| openerRect.right < 0\n\t\t\t|| openerRect.left > window.innerWidth;\n\t}\n\n\t/**\n\t * @override\n\t */\n\t_resize() {\n\t\tsuper._resize();\n\n\t\tif (this.opened) {\n\t\t\tthis.reposition();\n\t\t}\n\t}\n\n\treposition() {\n\t\tthis._show();\n\t}\n\n\t_show() {\n\t\tif (!this.opened) {\n\t\t\tthis._showOutsideViewport();\n\t\t}\n\n\t\tconst popoverSize = this.getPopoverSize();\n\t\tlet placement;\n\n\t\tif (popoverSize.width === 0 || popoverSize.height === 0) {\n\t\t\t// size can not be determined properly at this point, popover will be shown with the next reposition\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isOpen()) {\n\t\t\t// update opener rect if it was changed during the popover being opened\n\t\t\tthis._openerRect = this._opener!.getBoundingClientRect();\n\t\t}\n\n\t\tif (this.shouldCloseDueToNoOpener(this._openerRect!) && this.isFocusWithin() && this._oldPlacement) {\n\t\t\t// reuse the old placement as the opener is not available,\n\t\t\t// but keep the popover open as the focus is within\n\t\t\tplacement = this._oldPlacement;\n\t\t} else {\n\t\t\tplacement = this.calcPlacement(this._openerRect!, popoverSize);\n\t\t}\n\n\t\tif (this._preventRepositionAndClose || this.isOpenerOutsideViewport(this._openerRect!)) {\n\t\t\treturn this.close();\n\t\t}\n\n\t\tthis._oldPlacement = placement;\n\t\tthis.actualPlacementType = placement.placementType;\n\n\t\tlet left = clamp(\n\t\t\tthis._left!,\n\t\t\tPopover.VIEWPORT_MARGIN,\n\t\t\tdocument.documentElement.clientWidth - popoverSize.width - Popover.VIEWPORT_MARGIN,\n\t\t);\n\n\t\tif (this.actualPlacementType === PopoverPlacementType.Right) {\n\t\t\tleft = Math.max(left, this._left!);\n\t\t}\n\n\t\tlet top = clamp(\n\t\t\tthis._top!,\n\t\t\tPopover.VIEWPORT_MARGIN,\n\t\t\tdocument.documentElement.clientHeight - popoverSize.height - Popover.VIEWPORT_MARGIN,\n\t\t);\n\n\t\tif (this.actualPlacementType === PopoverPlacementType.Bottom) {\n\t\t\ttop = Math.max(top, this._top!);\n\t\t}\n\n\t\tthis.arrowTranslateX = placement.arrow.x;\n\t\tthis.arrowTranslateY = placement.arrow.y;\n\n\t\ttop = this._adjustForIOSKeyboard(top);\n\t\tconst containingBlockClientLocation = this._getContainingBlockClientLocation();\n\t\tleft -= containingBlockClientLocation.left;\n\t\ttop -= containingBlockClientLocation.top;\n\n\t\tObject.assign(this.style, {\n\t\t\ttop: `${top}px`,\n\t\t\tleft: `${left}px`,\n\t\t});\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && this._width) {\n\t\t\tthis.style.width = this._width;\n\t\t}\n\t}\n\n\t/**\n\t * Adjust the desired top position to compensate for shift of the screen\n\t * caused by opened keyboard on iOS which affects all elements with position:fixed.\n\t * @private\n\t * @param {int} top The target top in px.\n\t * @returns {int} The adjusted top in px.\n\t */\n\t_adjustForIOSKeyboard(top: number): number {\n\t\tif (!isIOS()) {\n\t\t\treturn top;\n\t\t}\n\n\t\tconst actualTop = Math.ceil(this.getBoundingClientRect().top);\n\n\t\treturn top + (Number.parseInt(this.style.top || \"0\") - actualTop);\n\t}\n\n\t_getContainingBlockClientLocation() {\n\t\tlet parentElement = getParentElement(this);\n\n\t\twhile (parentElement) {\n\t\t\tif (isElementContainingBlock(parentElement)) {\n\t\t\t\treturn parentElement.getBoundingClientRect();\n\t\t\t}\n\n\t\t\tparentElement = getParentElement(parentElement);\n\t\t}\n\n\t\treturn { left: 0, top: 0 };\n\t}\n\n\tgetPopoverSize(): PopoverSize {\n\t\tconst rect = this.getBoundingClientRect(),\n\t\t\twidth = rect.width,\n\t\t\theight = rect.height;\n\n\t\treturn { width, height };\n\t}\n\n\t_showOutsideViewport() {\n\t\tObject.assign(this.style, {\n\t\t\tdisplay: this._displayProp,\n\t\t\ttop: \"-10000px\",\n\t\t\tleft: \"-10000px\",\n\t\t});\n\t}\n\n\tget arrowDOM() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popover-arrow\")!;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tcalcPlacement(targetRect: DOMRect, popoverSize: PopoverSize): CalculatedPlacement {\n\t\tlet left = 0;\n\t\tlet top = 0;\n\t\tconst allowTargetOverlap = this.allowTargetOverlap;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tlet maxHeight = clientHeight;\n\t\tlet maxWidth = clientWidth;\n\n\t\tconst placementType = this.getActualPlacementType(targetRect, popoverSize);\n\n\t\tthis._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placementType, targetRect);\n\n\t\tconst isVertical = placementType === PopoverPlacementType.Top\n\t\t\t|| placementType === PopoverPlacementType.Bottom;\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && isVertical) {\n\t\t\tpopoverSize.width = targetRect.width;\n\t\t\tthis._width = `${targetRect.width}px`;\n\t\t} else if (this.verticalAlign === PopoverVerticalAlign.Stretch && !isVertical) {\n\t\t\tpopoverSize.height = targetRect.height;\n\t\t}\n\n\t\tconst arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;\n\n\t\t// calc popover positions\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxHeight = targetRect.top - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = targetRect.bottom + arrowOffset;\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\ttop = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);\n\t\t\t} else {\n\t\t\t\tmaxHeight = clientHeight - targetRect.bottom - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tleft = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxWidth = targetRect.left - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tleft = targetRect.left + targetRect.width + arrowOffset;\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\tleft = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);\n\t\t\t} else {\n\t\t\t\tmaxWidth = clientWidth - targetRect.right - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t// correct popover positions\n\t\tif (isVertical) {\n\t\t\tif (popoverSize.width > clientWidth || left < 0) {\n\t\t\t\tleft = 0;\n\t\t\t} else if (left + popoverSize.width > clientWidth) {\n\t\t\t\tleft -= left + popoverSize.width - clientWidth;\n\t\t\t}\n\t\t} else {\n\t\t\tif (popoverSize.height > clientHeight || top < 0) { // eslint-disable-line\n\t\t\t\ttop = 0;\n\t\t\t} else if (top + popoverSize.height > clientHeight) {\n\t\t\t\ttop -= top + popoverSize.height - clientHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis._maxHeight = Math.round(maxHeight - Popover.VIEWPORT_MARGIN);\n\t\tthis._maxWidth = Math.round(maxWidth - Popover.VIEWPORT_MARGIN);\n\n\t\tif (this._left === undefined || Math.abs(this._left - left) > 1.5) {\n\t\t\tthis._left = Math.round(left);\n\t\t}\n\n\t\tif (this._top === undefined || Math.abs(this._top - top) > 1.5) {\n\t\t\tthis._top = Math.round(top);\n\t\t}\n\n\t\tconst borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue(\"border-radius\"));\n\t\tconst arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);\n\n\t\treturn {\n\t\t\tarrow: arrowPos,\n\t\t\ttop: this._top,\n\t\t\tleft: this._left,\n\t\t\tplacementType,\n\t\t};\n\t}\n\n\t/**\n\t * Calculates the position for the arrow.\n\t * @private\n\t * @param targetRect BoundingClientRect of the target element\n\t * @param {{width: number, height: number}} popoverSize Width and height of the popover\n\t * @param left Left offset of the popover\n\t * @param top Top offset of the popover\n\t * @param isVertical If the popover is positioned vertically to the target element\n\t * @param {number} borderRadius Value of the border-radius property\n\t * @returns {{x: number, y: number}} Arrow's coordinates\n\t */\n\tgetArrowPosition(targetRect: DOMRect, popoverSize: PopoverSize, left: number, top: number, isVertical: boolean, borderRadius: number): ArrowPosition {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet arrowXCentered = horizontalAlign === PopoverHorizontalAlign.Center || horizontalAlign === PopoverHorizontalAlign.Stretch;\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Right && left <= targetRect.left) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Left && left + popoverSize.width >= targetRect.left + targetRect.width) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tlet arrowTranslateX = 0;\n\t\tif (isVertical && arrowXCentered) {\n\t\t\tarrowTranslateX = targetRect.left + targetRect.width / 2 - left - popoverSize.width / 2;\n\t\t}\n\n\t\tlet arrowTranslateY = 0;\n\t\tif (!isVertical) {\n\t\t\tarrowTranslateY = targetRect.top + targetRect.height / 2 - top - popoverSize.height / 2;\n\t\t}\n\n\t\t// Restricts the arrow's translate value along each dimension,\n\t\t// so that the arrow does not clip over the popover's rounded borders.\n\t\tconst safeRangeForArrowY = popoverSize.height / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateY = clamp(\n\t\t\tarrowTranslateY,\n\t\t\t-safeRangeForArrowY,\n\t\t\tsafeRangeForArrowY,\n\t\t);\n\n\t\tconst safeRangeForArrowX = popoverSize.width / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateX = clamp(\n\t\t\tarrowTranslateX,\n\t\t\t-safeRangeForArrowX,\n\t\t\tsafeRangeForArrowX,\n\t\t);\n\n\t\treturn {\n\t\t\tx: Math.round(arrowTranslateX),\n\t\t\ty: Math.round(arrowTranslateY),\n\t\t};\n\t}\n\n\t/**\n\t * Fallbacks to new placement, prioritizing <code>Left</code> and <code>Right</code> placements.\n\t * @private\n\t */\n\tfallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType | undefined {\n\t\tif (targetRect.left > popoverSize.width) {\n\t\t\treturn PopoverPlacementType.Left;\n\t\t}\n\n\t\tif (clientWidth - targetRect.right > targetRect.left) {\n\t\t\treturn PopoverPlacementType.Right;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom > popoverSize.height) {\n\t\t\treturn PopoverPlacementType.Bottom;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\treturn PopoverPlacementType.Top;\n\t\t}\n\t}\n\n\tgetActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): `${PopoverPlacementType}` {\n\t\tconst placementType = this.placementType;\n\t\tlet actualPlacementType = placementType;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tif (targetRect.top < popoverSize.height\n\t\t\t\t&& targetRect.top < clientHeight - targetRect.bottom) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Bottom;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tif (clientHeight - targetRect.bottom < popoverSize.height\n\t\t\t\t&& clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Top;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tif (targetRect.left < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tif (clientWidth - targetRect.right < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn actualPlacementType;\n\t}\n\n\tgetVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet left = 0;\n\n\t\tswitch (horizontalAlign) {\n\t\tcase PopoverHorizontalAlign.Center:\n\t\tcase PopoverHorizontalAlign.Stretch:\n\t\t\tleft = targetRect.left - (popoverSize.width - targetRect.width) / 2;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Left:\n\t\t\tleft = targetRect.left;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Right:\n\t\t\tleft = targetRect.right - popoverSize.width;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn left;\n\t}\n\n\tgetHorizontalTop(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tlet top = 0;\n\n\t\tswitch (this.verticalAlign) {\n\t\tcase PopoverVerticalAlign.Center:\n\t\tcase PopoverVerticalAlign.Stretch:\n\t\t\ttop = targetRect.top - (popoverSize.height - targetRect.height) / 2;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Top:\n\t\t\ttop = targetRect.top;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Bottom:\n\t\t\ttop = targetRect.bottom - popoverSize.height;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn top;\n\t}\n\n\tget isModal() { // Required by Popup.js\n\t\treturn this.modal;\n\t}\n\n\tget shouldHideBackdrop() { // Required by Popup.js\n\t\treturn this.hideBackdrop;\n\t}\n\n\tget _ariaLabelledBy() { // Required by Popup.js\n\t\tif (!this._ariaLabel && this._displayHeader) {\n\t\t\treturn \"ui5-popup-header\";\n\t\t}\n\n\t\treturn undefined;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\t...super.styles,\n\t\t\troot: {\n\t\t\t\t\"max-height\": this._maxHeight ? `${this._maxHeight}px` : \"\",\n\t\t\t\t\"max-width\": this._maxWidth ? `${this._maxWidth}px` : \"\",\n\t\t\t},\n\t\t\tarrow: {\n\t\t\t\ttransform: `translate(${this.arrowTranslateX}px, ${this.arrowTranslateY}px)`,\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes() {\n\t\tconst allClasses = super.classes;\n\t\tallClasses.root[\"ui5-popover-root\"] = true;\n\n\t\treturn allClasses;\n\t}\n\n\t/**\n\t * Hook for descendants to hide header.\n\t */\n\tget _displayHeader() {\n\t\treturn !!(this.header.length || this.headerText);\n\t}\n\n\t/**\n\t * Hook for descendants to hide footer.\n\t */\n\tget _displayFooter() {\n\t\treturn true;\n\t}\n\n\tget _actualHorizontalAlign() {\n\t\tif (this.effectiveDir === \"rtl\") {\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Left) {\n\t\t\t\treturn PopoverHorizontalAlign.Right;\n\t\t\t}\n\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Right) {\n\t\t\t\treturn PopoverHorizontalAlign.Left;\n\t\t\t}\n\t\t}\n\n\t\treturn this.horizontalAlign;\n\t}\n}\n\nconst instanceOfPopover = (object: any): object is Popover => {\n\treturn \"showAt\" in object;\n};\n\nPopover.define();\n\nexport default Popover;\n\nexport { instanceOfPopover };\n\nexport type {\n\tPopoverBeforeCloseEventDetail,\n};\n"]}
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,MAAM,4CAA4C,CAAC;AAC/D,OAAO,wBAAwB,MAAM,+DAA+D,CAAC;AACrG,OAAO,gBAAgB,MAAM,uDAAuD,CAAC;AACrF,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEzF,WAAW;AACX,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,SAAS;AACT,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAE3D,MAAM,UAAU,GAAG,CAAC,CAAC;AAmBrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAUH,IAAM,OAAO,eAAb,MAAM,OAAQ,SAAQ,KAAK;IAuJ1B,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qtBZ;AAED,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAqB,EAAE;IAC5D,OAAO,QAAQ,IAAI,MAAM,CAAC;AAC3B,CAAC,CAAC;AAEF,OAAO,CAAC,MAAM,EAAE,CAAC;AAEjB,eAAe,OAAO,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import type 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 Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport { isIOS } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport DOMReference from \"@ui5/webcomponents-base/dist/types/DOMReference.js\";\nimport { getClosedPopupParent } from \"@ui5/webcomponents-base/dist/util/PopupUtils.js\";\nimport clamp from \"@ui5/webcomponents-base/dist/util/clamp.js\";\nimport isElementContainingBlock from \"@ui5/webcomponents-base/dist/util/isElementContainingBlock.js\";\nimport getParentElement from \"@ui5/webcomponents-base/dist/util/getParentElement.js\";\nimport Popup from \"./Popup.js\";\nimport type { PopupBeforeCloseEventDetail as PopoverBeforeCloseEventDetail } from \"./Popup.js\";\nimport PopoverPlacementType from \"./types/PopoverPlacementType.js\";\nimport PopoverVerticalAlign from \"./types/PopoverVerticalAlign.js\";\nimport PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport { addOpenedPopover, removeOpenedPopover } from \"./popup-utils/PopoverRegistry.js\";\n\n// Template\nimport PopoverTemplate from \"./generated/templates/PopoverTemplate.lit.js\";\n// Styles\nimport browserScrollbarCSS from \"./generated/themes/BrowserScrollbar.css.js\";\nimport PopupsCommonCss from \"./generated/themes/PopupsCommon.css.js\";\nimport PopoverCss from \"./generated/themes/Popover.css.js\";\n\nconst ARROW_SIZE = 8;\n\ntype PopoverSize = {\n\twidth: number;\n\theight: number;\n}\n\ntype ArrowPosition = {\n\tx: number;\n\ty: number;\n}\n\ntype CalculatedPlacement = {\n\tarrow: ArrowPosition,\n\ttop: number,\n\tleft: number,\n\tplacementType: `${PopoverPlacementType}`,\n}\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-popover</code> component displays additional information for an object\n * in a compact way and without leaving the page.\n * The Popover can contain various UI elements, such as fields, tables, images, and charts.\n * It can also include actions in the footer.\n *\n * <h3>Structure</h3>\n *\n * The popover has three main areas:\n * <ul>\n * <li>Header (optional)</li>\n * <li>Content</li>\n * <li>Footer (optional)</li>\n * </ul>\n *\n * <b>Note:</b> The <code>ui5-popover</code> is closed when the user clicks\n * or taps outside the popover\n * or selects an action within the popover. You can prevent this with the\n * <code>modal</code> property.\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Popover.js\";</code>\n *\n * <b>Note: </b> We recommend placing popup-like components (<code>ui5-dialog</code> and <code>ui5-popover</code>)\n * outside any other components. Preferably, the popup-like components should be placed\n * in an upper level HTML element. Otherwise, in some cases the parent HTML elements can break\n * the position and/or z-index management of the popup-like components.\n *\n * <b>Note:</b> We don't recommend nesting popup-like components (<code>ui5-dialog</code>, <code>ui5-popover</code>).\n *\n * @constructor\n * @extends Popup\n * @since 1.0.0-rc.6\n * @public\n * @csspart header - Used to style the header of the component\n * @csspart content - Used to style the content of the component\n * @csspart footer - Used to style the footer of the component\n */\n@customElement({\n\ttag: \"ui5-popover\",\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPopupsCommonCss,\n\t\tPopoverCss,\n\t],\n\ttemplate: PopoverTemplate,\n})\nclass Popover extends Popup {\n\t/**\n\t * Defines the header text.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided, the <code>headerText</code> is ignored.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t *\n\t * @default \"Right\"\n\t * @public\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tplacementType!: `${PopoverPlacementType}`;\n\n\t/**\n\t * Determines the horizontal alignment of the component.\n\t *\n\t * @default \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverHorizontalAlign, defaultValue: PopoverHorizontalAlign.Center })\n\thorizontalAlign!: `${PopoverHorizontalAlign}`;\n\n\t/**\n\t * Determines the vertical alignment of the component.\n\t *\n\t * @default \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverVerticalAlign, defaultValue: PopoverVerticalAlign.Center })\n\tverticalAlign!: `${PopoverVerticalAlign}`;\n\n\t/**\n\t * Defines whether the component should close when\n\t * clicking/tapping outside of the popover.\n\t * If enabled, it blocks any interaction with the background.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tmodal!: boolean;\n\n\t/**\n\t * Defines whether the block layer will be shown if modal property is set to true.\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.10\n\t */\n\t@property({ type: Boolean })\n\thideBackdrop!: boolean;\n\n\t/**\n\t * Determines whether the component arrow is hidden.\n\t *\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: Boolean })\n\thideArrow!: boolean;\n\n\t/**\n\t * Determines if there is no enough space, the component can be placed\n\t * over the target.\n\t *\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tallowTargetOverlap!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at\n\t * @public\n\t * @default undefined\n\t * @since 1.2.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines whether the content is scrollable.\n\t *\n\t * @default false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Sets the X translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateX!: number;\n\n\t/**\n\t * Sets the Y translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateY!: number;\n\n\t/**\n\t * Returns the calculated placement depending on the free space\n\t *\n\t * @private\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tactualPlacementType!: `${PopoverPlacementType}`;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxHeight?: number;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxWidth?: number;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tfooter!: Array<HTMLElement>;\n\n\t_opener?: HTMLElement;\n\t_openerRect?: DOMRect;\n\t_preventRepositionAndClose?: boolean;\n\t_top?: number;\n\t_left?: number;\n\t_oldPlacement?: CalculatedPlacement;\n\t_width?: string;\n\n\tstatic get VIEWPORT_MARGIN() {\n\t\treturn 10; // px\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonAfterRendering() {\n\t\tsuper.onAfterRendering();\n\n\t\tif (!this.isOpen() && this.open) {\n\t\t\tlet opener;\n\n\t\t\tif (this.opener instanceof HTMLElement) {\n\t\t\t\topener = this.opener;\n\t\t\t} else if (typeof this.opener === \"string\") {\n\t\t\t\topener = (this.getRootNode() as Document).getElementById(this.opener) || document.getElementById(this.opener);\n\t\t\t}\n\n\t\t\tif (!opener) {\n\t\t\t\tconsole.warn(\"Valid opener id is required.\"); // eslint-disable-line\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.showAt(opener);\n\t\t} else if (this.isOpen() && !this.open) {\n\t\t\tthis.close();\n\t\t}\n\t}\n\n\tisOpenerClicked(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tif (target === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst ui5ElementTarget = target as UI5Element;\n\n\t\tif (ui5ElementTarget.getFocusDomRef && ui5ElementTarget.getFocusDomRef() === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn e.composedPath().indexOf(this._opener as EventTarget) > -1;\n\t}\n\n\t/**\n\t * Shows the popover.\n\t * @param opener the element that the popover is shown at\n\t * @param [preventInitialFocus=false] prevents applying the focus inside the popover\n\t * @public\n\t * @returns Resolved when the popover is open\n\t */\n\tasync showAt(opener: HTMLElement, preventInitialFocus = false): Promise<void> {\n\t\tif (!opener || this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._opener = opener;\n\t\tthis._openerRect = opener.getBoundingClientRect();\n\n\t\tawait super._open(preventInitialFocus);\n\t}\n\n\t/**\n\t * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)\n\t * @private\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopover(this);\n\t}\n\n\t/**\n\t * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)\n\t * @private\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopover(this);\n\t}\n\n\tshouldCloseDueToOverflow(placement: `${PopoverPlacementType}`, openerRect: DOMRect): boolean {\n\t\tconst threshold = 32;\n\t\tconst limits = {\n\t\t\t\"Right\": openerRect.right,\n\t\t\t\"Left\": openerRect.left,\n\t\t\t\"Top\": openerRect.top,\n\t\t\t\"Bottom\": openerRect.bottom,\n\t\t};\n\n\t\tconst closedPopupParent = getClosedPopupParent(this._opener!);\n\t\tlet overflowsBottom = false;\n\t\tlet overflowsTop = false;\n\n\t\tif ((closedPopupParent as Popover).showAt) {\n\t\t\tconst contentRect = (closedPopupParent as Popover).contentDOM.getBoundingClientRect();\n\t\t\toverflowsBottom = openerRect.top > (contentRect.top + contentRect.height);\n\t\t\toverflowsTop = (openerRect.top + openerRect.height) < contentRect.top;\n\t\t}\n\n\t\treturn (limits[placement] < 0 || (limits[placement] + threshold > (closedPopupParent as unknown as Window).innerHeight)) || overflowsBottom || overflowsTop;\n\t}\n\n\tshouldCloseDueToNoOpener(openerRect: DOMRect): boolean {\n\t\treturn openerRect.top === 0\n\t\t\t&& openerRect.bottom === 0\n\t\t\t&& openerRect.left === 0\n\t\t\t&& openerRect.right === 0;\n\t}\n\n\tisOpenerOutsideViewport(openerRect: DOMRect): boolean {\n\t\treturn openerRect.bottom < 0\n\t\t\t|| openerRect.top > window.innerHeight\n\t\t\t|| openerRect.right < 0\n\t\t\t|| openerRect.left > window.innerWidth;\n\t}\n\n\t/**\n\t * @override\n\t */\n\t_resize() {\n\t\tsuper._resize();\n\n\t\tif (this.opened) {\n\t\t\tthis.reposition();\n\t\t}\n\t}\n\n\treposition() {\n\t\tthis._show();\n\t}\n\n\t_show() {\n\t\tif (!this.opened) {\n\t\t\tthis._showOutsideViewport();\n\t\t}\n\n\t\tconst popoverSize = this.getPopoverSize();\n\t\tlet placement;\n\n\t\tif (popoverSize.width === 0 || popoverSize.height === 0) {\n\t\t\t// size can not be determined properly at this point, popover will be shown with the next reposition\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isOpen()) {\n\t\t\t// update opener rect if it was changed during the popover being opened\n\t\t\tthis._openerRect = this._opener!.getBoundingClientRect();\n\t\t}\n\n\t\tif (this.shouldCloseDueToNoOpener(this._openerRect!) && this.isFocusWithin() && this._oldPlacement) {\n\t\t\t// reuse the old placement as the opener is not available,\n\t\t\t// but keep the popover open as the focus is within\n\t\t\tplacement = this._oldPlacement;\n\t\t} else {\n\t\t\tplacement = this.calcPlacement(this._openerRect!, popoverSize);\n\t\t}\n\n\t\tif (this._preventRepositionAndClose || this.isOpenerOutsideViewport(this._openerRect!)) {\n\t\t\treturn this.close();\n\t\t}\n\n\t\tthis._oldPlacement = placement;\n\t\tthis.actualPlacementType = placement.placementType;\n\n\t\tlet left = clamp(\n\t\t\tthis._left!,\n\t\t\tPopover.VIEWPORT_MARGIN,\n\t\t\tdocument.documentElement.clientWidth - popoverSize.width - Popover.VIEWPORT_MARGIN,\n\t\t);\n\n\t\tif (this.actualPlacementType === PopoverPlacementType.Right) {\n\t\t\tleft = Math.max(left, this._left!);\n\t\t}\n\n\t\tlet top = clamp(\n\t\t\tthis._top!,\n\t\t\tPopover.VIEWPORT_MARGIN,\n\t\t\tdocument.documentElement.clientHeight - popoverSize.height - Popover.VIEWPORT_MARGIN,\n\t\t);\n\n\t\tif (this.actualPlacementType === PopoverPlacementType.Bottom) {\n\t\t\ttop = Math.max(top, this._top!);\n\t\t}\n\n\t\tthis.arrowTranslateX = placement.arrow.x;\n\t\tthis.arrowTranslateY = placement.arrow.y;\n\n\t\ttop = this._adjustForIOSKeyboard(top);\n\t\tconst containingBlockClientLocation = this._getContainingBlockClientLocation();\n\t\tleft -= containingBlockClientLocation.left;\n\t\ttop -= containingBlockClientLocation.top;\n\n\t\tObject.assign(this.style, {\n\t\t\ttop: `${top}px`,\n\t\t\tleft: `${left}px`,\n\t\t});\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && this._width) {\n\t\t\tthis.style.width = this._width;\n\t\t}\n\t}\n\n\t/**\n\t * Adjust the desired top position to compensate for shift of the screen\n\t * caused by opened keyboard on iOS which affects all elements with position:fixed.\n\t * @private\n\t * @param top The target top in px.\n\t * @returns The adjusted top in px.\n\t */\n\t_adjustForIOSKeyboard(top: number): number {\n\t\tif (!isIOS()) {\n\t\t\treturn top;\n\t\t}\n\n\t\tconst actualTop = Math.ceil(this.getBoundingClientRect().top);\n\n\t\treturn top + (Number.parseInt(this.style.top || \"0\") - actualTop);\n\t}\n\n\t_getContainingBlockClientLocation() {\n\t\tlet parentElement = getParentElement(this);\n\n\t\twhile (parentElement) {\n\t\t\tif (isElementContainingBlock(parentElement)) {\n\t\t\t\treturn parentElement.getBoundingClientRect();\n\t\t\t}\n\n\t\t\tparentElement = getParentElement(parentElement);\n\t\t}\n\n\t\treturn { left: 0, top: 0 };\n\t}\n\n\tgetPopoverSize(): PopoverSize {\n\t\tconst rect = this.getBoundingClientRect(),\n\t\t\twidth = rect.width,\n\t\t\theight = rect.height;\n\n\t\treturn { width, height };\n\t}\n\n\t_showOutsideViewport() {\n\t\tObject.assign(this.style, {\n\t\t\tdisplay: this._displayProp,\n\t\t\ttop: \"-10000px\",\n\t\t\tleft: \"-10000px\",\n\t\t});\n\t}\n\n\tget arrowDOM() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popover-arrow\")!;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tcalcPlacement(targetRect: DOMRect, popoverSize: PopoverSize): CalculatedPlacement {\n\t\tlet left = 0;\n\t\tlet top = 0;\n\t\tconst allowTargetOverlap = this.allowTargetOverlap;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tlet maxHeight = clientHeight;\n\t\tlet maxWidth = clientWidth;\n\n\t\tconst placementType = this.getActualPlacementType(targetRect, popoverSize);\n\n\t\tthis._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placementType, targetRect);\n\n\t\tconst isVertical = placementType === PopoverPlacementType.Top\n\t\t\t|| placementType === PopoverPlacementType.Bottom;\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && isVertical) {\n\t\t\tpopoverSize.width = targetRect.width;\n\t\t\tthis._width = `${targetRect.width}px`;\n\t\t} else if (this.verticalAlign === PopoverVerticalAlign.Stretch && !isVertical) {\n\t\t\tpopoverSize.height = targetRect.height;\n\t\t}\n\n\t\tconst arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;\n\n\t\t// calc popover positions\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxHeight = targetRect.top - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = targetRect.bottom + arrowOffset;\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\ttop = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);\n\t\t\t} else {\n\t\t\t\tmaxHeight = clientHeight - targetRect.bottom - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tleft = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxWidth = targetRect.left - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tleft = targetRect.left + targetRect.width + arrowOffset;\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\tleft = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);\n\t\t\t} else {\n\t\t\t\tmaxWidth = clientWidth - targetRect.right - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t// correct popover positions\n\t\tif (isVertical) {\n\t\t\tif (popoverSize.width > clientWidth || left < 0) {\n\t\t\t\tleft = 0;\n\t\t\t} else if (left + popoverSize.width > clientWidth) {\n\t\t\t\tleft -= left + popoverSize.width - clientWidth;\n\t\t\t}\n\t\t} else {\n\t\t\tif (popoverSize.height > clientHeight || top < 0) { // eslint-disable-line\n\t\t\t\ttop = 0;\n\t\t\t} else if (top + popoverSize.height > clientHeight) {\n\t\t\t\ttop -= top + popoverSize.height - clientHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis._maxHeight = Math.round(maxHeight - Popover.VIEWPORT_MARGIN);\n\t\tthis._maxWidth = Math.round(maxWidth - Popover.VIEWPORT_MARGIN);\n\n\t\tif (this._left === undefined || Math.abs(this._left - left) > 1.5) {\n\t\t\tthis._left = Math.round(left);\n\t\t}\n\n\t\tif (this._top === undefined || Math.abs(this._top - top) > 1.5) {\n\t\t\tthis._top = Math.round(top);\n\t\t}\n\n\t\tconst borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue(\"border-radius\"));\n\t\tconst arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);\n\n\t\treturn {\n\t\t\tarrow: arrowPos,\n\t\t\ttop: this._top,\n\t\t\tleft: this._left,\n\t\t\tplacementType,\n\t\t};\n\t}\n\n\t/**\n\t * Calculates the position for the arrow.\n\t * @private\n\t * @param targetRect BoundingClientRect of the target element\n\t * @param popoverSize Width and height of the popover\n\t * @param left Left offset of the popover\n\t * @param top Top offset of the popover\n\t * @param isVertical If the popover is positioned vertically to the target element\n\t * @param borderRadius Value of the border-radius property\n\t * @returns Arrow's coordinates\n\t */\n\tgetArrowPosition(targetRect: DOMRect, popoverSize: PopoverSize, left: number, top: number, isVertical: boolean, borderRadius: number): ArrowPosition {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet arrowXCentered = horizontalAlign === PopoverHorizontalAlign.Center || horizontalAlign === PopoverHorizontalAlign.Stretch;\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Right && left <= targetRect.left) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Left && left + popoverSize.width >= targetRect.left + targetRect.width) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tlet arrowTranslateX = 0;\n\t\tif (isVertical && arrowXCentered) {\n\t\t\tarrowTranslateX = targetRect.left + targetRect.width / 2 - left - popoverSize.width / 2;\n\t\t}\n\n\t\tlet arrowTranslateY = 0;\n\t\tif (!isVertical) {\n\t\t\tarrowTranslateY = targetRect.top + targetRect.height / 2 - top - popoverSize.height / 2;\n\t\t}\n\n\t\t// Restricts the arrow's translate value along each dimension,\n\t\t// so that the arrow does not clip over the popover's rounded borders.\n\t\tconst safeRangeForArrowY = popoverSize.height / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateY = clamp(\n\t\t\tarrowTranslateY,\n\t\t\t-safeRangeForArrowY,\n\t\t\tsafeRangeForArrowY,\n\t\t);\n\n\t\tconst safeRangeForArrowX = popoverSize.width / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateX = clamp(\n\t\t\tarrowTranslateX,\n\t\t\t-safeRangeForArrowX,\n\t\t\tsafeRangeForArrowX,\n\t\t);\n\n\t\treturn {\n\t\t\tx: Math.round(arrowTranslateX),\n\t\t\ty: Math.round(arrowTranslateY),\n\t\t};\n\t}\n\n\t/**\n\t * Fallbacks to new placement, prioritizing <code>Left</code> and <code>Right</code> placements.\n\t * @private\n\t */\n\tfallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType | undefined {\n\t\tif (targetRect.left > popoverSize.width) {\n\t\t\treturn PopoverPlacementType.Left;\n\t\t}\n\n\t\tif (clientWidth - targetRect.right > targetRect.left) {\n\t\t\treturn PopoverPlacementType.Right;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom > popoverSize.height) {\n\t\t\treturn PopoverPlacementType.Bottom;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\treturn PopoverPlacementType.Top;\n\t\t}\n\t}\n\n\tgetActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): `${PopoverPlacementType}` {\n\t\tconst placementType = this.placementType;\n\t\tlet actualPlacementType = placementType;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tif (targetRect.top < popoverSize.height\n\t\t\t\t&& targetRect.top < clientHeight - targetRect.bottom) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Bottom;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tif (clientHeight - targetRect.bottom < popoverSize.height\n\t\t\t\t&& clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Top;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tif (targetRect.left < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tif (clientWidth - targetRect.right < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn actualPlacementType;\n\t}\n\n\tgetVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet left = 0;\n\n\t\tswitch (horizontalAlign) {\n\t\tcase PopoverHorizontalAlign.Center:\n\t\tcase PopoverHorizontalAlign.Stretch:\n\t\t\tleft = targetRect.left - (popoverSize.width - targetRect.width) / 2;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Left:\n\t\t\tleft = targetRect.left;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Right:\n\t\t\tleft = targetRect.right - popoverSize.width;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn left;\n\t}\n\n\tgetHorizontalTop(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tlet top = 0;\n\n\t\tswitch (this.verticalAlign) {\n\t\tcase PopoverVerticalAlign.Center:\n\t\tcase PopoverVerticalAlign.Stretch:\n\t\t\ttop = targetRect.top - (popoverSize.height - targetRect.height) / 2;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Top:\n\t\t\ttop = targetRect.top;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Bottom:\n\t\t\ttop = targetRect.bottom - popoverSize.height;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn top;\n\t}\n\n\tget isModal() { // Required by Popup.js\n\t\treturn this.modal;\n\t}\n\n\tget shouldHideBackdrop() { // Required by Popup.js\n\t\treturn this.hideBackdrop;\n\t}\n\n\tget _ariaLabelledBy() { // Required by Popup.js\n\t\tif (!this._ariaLabel && this._displayHeader) {\n\t\t\treturn \"ui5-popup-header\";\n\t\t}\n\n\t\treturn undefined;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\t...super.styles,\n\t\t\troot: {\n\t\t\t\t\"max-height\": this._maxHeight ? `${this._maxHeight}px` : \"\",\n\t\t\t\t\"max-width\": this._maxWidth ? `${this._maxWidth}px` : \"\",\n\t\t\t},\n\t\t\tarrow: {\n\t\t\t\ttransform: `translate(${this.arrowTranslateX}px, ${this.arrowTranslateY}px)`,\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes() {\n\t\tconst allClasses = super.classes;\n\t\tallClasses.root[\"ui5-popover-root\"] = true;\n\n\t\treturn allClasses;\n\t}\n\n\t/**\n\t * Hook for descendants to hide header.\n\t */\n\tget _displayHeader() {\n\t\treturn !!(this.header.length || this.headerText);\n\t}\n\n\t/**\n\t * Hook for descendants to hide footer.\n\t */\n\tget _displayFooter() {\n\t\treturn true;\n\t}\n\n\tget _actualHorizontalAlign() {\n\t\tif (this.effectiveDir === \"rtl\") {\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Left) {\n\t\t\t\treturn PopoverHorizontalAlign.Right;\n\t\t\t}\n\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Right) {\n\t\t\t\treturn PopoverHorizontalAlign.Left;\n\t\t\t}\n\t\t}\n\n\t\treturn this.horizontalAlign;\n\t}\n}\n\nconst instanceOfPopover = (object: any): object is Popover => {\n\treturn \"showAt\" in object;\n};\n\nPopover.define();\n\nexport default Popover;\n\nexport { instanceOfPopover };\n\nexport type {\n\tPopoverBeforeCloseEventDetail,\n};\n"]}
package/dist/Popup.d.ts CHANGED
@@ -37,27 +37,21 @@ type PopupBeforeCloseEventDetail = {
37
37
  * - afterContent (lower part, useful for footer/action buttons)
38
38
  *
39
39
  * @constructor
40
- * @author SAP SE
41
- * @alias sap.ui.webc.main.Popup
42
- * @extends sap.ui.webc.base.UI5Element
40
+ * @extends UI5Element
43
41
  * @public
44
42
  */
45
43
  declare abstract class Popup extends UI5Element {
46
44
  /**
47
45
  * Defines the ID of the HTML Element, which will get the initial focus.
48
46
  *
49
- * @type {string}
50
- * @name sap.ui.webc.main.Popup.prototype.initialFocus
51
- * @defaultvalue ""
47
+ * @default ""
52
48
  * @public
53
49
  */
54
50
  initialFocus: string;
55
51
  /**
56
52
  * Defines if the focus should be returned to the previously focused element,
57
53
  * when the popup closes.
58
- * @type {boolean}
59
- * @name sap.ui.webc.main.Popup.prototype.preventFocusRestore
60
- * @defaultvalue false
54
+ * @default false
61
55
  * @public
62
56
  * @since 1.0.0-rc.8
63
57
  */
@@ -65,25 +59,20 @@ declare abstract class Popup extends UI5Element {
65
59
  /**
66
60
  * Indicates if the element is open
67
61
  * @public
68
- * @type {boolean}
69
- * @name sap.ui.webc.main.Popup.prototype.open
70
- * @defaultvalue false
62
+ * @default false
71
63
  * @since 1.2.0
72
64
  */
73
65
  open: boolean;
74
66
  /**
75
67
  * Indicates if the element is already open
76
68
  * @private
77
- * @type {boolean}
78
- * @defaultvalue false
69
+ * @default false
79
70
  */
80
71
  opened: boolean;
81
72
  /**
82
73
  * Defines the accessible name of the component.
83
74
  *
84
- * @type {string}
85
- * @name sap.ui.webc.main.Popup.prototype.accessibleName
86
- * @defaultvalue undefined
75
+ * @default undefined
87
76
  * @public
88
77
  * @since 1.0.0-rc.15
89
78
  */
@@ -91,9 +80,7 @@ declare abstract class Popup extends UI5Element {
91
80
  /**
92
81
  * Defines the IDs of the elements that label the component.
93
82
  *
94
- * @type {string}
95
- * @name sap.ui.webc.main.Popup.prototype.accessibleNameRef
96
- * @defaultvalue ""
83
+ * @default ""
97
84
  * @public
98
85
  * @since 1.1.0
99
86
  */
@@ -101,9 +88,7 @@ declare abstract class Popup extends UI5Element {
101
88
  /**
102
89
  * Allows setting a custom role.
103
90
  *
104
- * @type {sap.ui.webc.main.types.PopupAccessibleRole}
105
- * @name sap.ui.webc.main.Popup.prototype.accessibleRole
106
- * @defaultvalue "Dialog"
91
+ * @default "Dialog"
107
92
  * @public
108
93
  * @since 1.10.0
109
94
  */
@@ -111,7 +96,6 @@ declare abstract class Popup extends UI5Element {
111
96
  /**
112
97
  * Defines the current media query size.
113
98
  *
114
- * @type {string}
115
99
  * @private
116
100
  */
117
101
  mediaRange: string;
@@ -126,15 +110,11 @@ declare abstract class Popup extends UI5Element {
126
110
  * This property is calculated automatically
127
111
  *
128
112
  * @private
129
- * @type {boolean}
130
- * @defaultvalue false
113
+ * @default false
131
114
  */
132
115
  isTopModalPopup: boolean;
133
116
  /**
134
117
  * Defines the content of the Popup.
135
- * @type {HTMLElement[]}
136
- * @name sap.ui.webc.main.Popup.prototype.default
137
- * @slot content
138
118
  * @public
139
119
  */
140
120
  content: Array<HTMLElement>;
@@ -187,18 +167,12 @@ declare abstract class Popup extends UI5Element {
187
167
  * Focuses the element denoted by <code>initialFocus</code>, if provided,
188
168
  * or the first focusable element otherwise.
189
169
  * @public
190
- * @method
191
- * @name sap.ui.webc.main.Popup#applyFocus
192
- * @async
193
- * @returns {Promise} Promise that resolves when the focus is applied
170
+ * @returns Promise that resolves when the focus is applied
194
171
  */
195
172
  applyFocus(): Promise<void>;
196
173
  /**
197
174
  * Tells if the component is opened
198
175
  * @public
199
- * @method
200
- * @name sap.ui.webc.main.Popup#isOpen
201
- * @returns {boolean}
202
176
  */
203
177
  isOpen(): boolean;
204
178
  isFocusWithin(): boolean;
@@ -216,9 +190,6 @@ declare abstract class Popup extends UI5Element {
216
190
  /**
217
191
  * Closes the popup.
218
192
  * @public
219
- * @method
220
- * @name sap.ui.webc.main.Popup#close
221
- * @returns {void}
222
193
  */
223
194
  close(escPressed?: boolean, preventRegistryUpdate?: boolean, preventFocusRestore?: boolean): void;
224
195
  /**
@@ -245,29 +216,22 @@ declare abstract class Popup extends UI5Element {
245
216
  * Implement this getter with relevant logic regarding the modality of the popup (e.g. based on a public property)
246
217
  *
247
218
  * @protected
248
- * @abstract
249
- * @returns {boolean}
250
219
  */
251
220
  abstract get isModal(): boolean;
252
221
  /**
253
222
  * Implement this getter with relevant logic in order to hide the block layer (f.e. based on a public property)
254
223
  *
255
224
  * @protected
256
- * @abstract
257
- * @returns {boolean}
258
225
  */
259
226
  abstract get shouldHideBackdrop(): boolean;
260
227
  /**
261
228
  * Return the ID of an element in the shadow DOM that is going to label this popup
262
229
  *
263
230
  * @protected
264
- * @abstract
265
- * @returns {string | undefined}
266
231
  */
267
232
  abstract get _ariaLabelledBy(): string | undefined;
268
233
  /**
269
234
  * Ensures ariaLabel is never null or empty string
270
- * @returns {string | undefined}
271
235
  * @protected
272
236
  */
273
237
  get _ariaLabel(): string | undefined;
package/dist/Popup.js CHANGED
@@ -64,9 +64,7 @@ const pageScrollingBlockers = new Set();
64
64
  * - afterContent (lower part, useful for footer/action buttons)
65
65
  *
66
66
  * @constructor
67
- * @author SAP SE
68
- * @alias sap.ui.webc.main.Popup
69
- * @extends sap.ui.webc.base.UI5Element
67
+ * @extends UI5Element
70
68
  * @public
71
69
  */
72
70
  let Popup = Popup_1 = class Popup extends UI5Element {
@@ -204,10 +202,7 @@ let Popup = Popup_1 = class Popup extends UI5Element {
204
202
  * Focuses the element denoted by <code>initialFocus</code>, if provided,
205
203
  * or the first focusable element otherwise.
206
204
  * @public
207
- * @method
208
- * @name sap.ui.webc.main.Popup#applyFocus
209
- * @async
210
- * @returns {Promise} Promise that resolves when the focus is applied
205
+ * @returns Promise that resolves when the focus is applied
211
206
  */
212
207
  async applyFocus() {
213
208
  await this._waitForDomRef();
@@ -230,9 +225,6 @@ let Popup = Popup_1 = class Popup extends UI5Element {
230
225
  /**
231
226
  * Tells if the component is opened
232
227
  * @public
233
- * @method
234
- * @name sap.ui.webc.main.Popup#isOpen
235
- * @returns {boolean}
236
228
  */
237
229
  isOpen() {
238
230
  return this.opened;
@@ -284,9 +276,6 @@ let Popup = Popup_1 = class Popup extends UI5Element {
284
276
  /**
285
277
  * Closes the popup.
286
278
  * @public
287
- * @method
288
- * @name sap.ui.webc.main.Popup#close
289
- * @returns {void}
290
279
  */
291
280
  close(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {
292
281
  if (!this.opened) {
@@ -345,7 +334,6 @@ let Popup = Popup_1 = class Popup extends UI5Element {
345
334
  }
346
335
  /**
347
336
  * Ensures ariaLabel is never null or empty string
348
- * @returns {string | undefined}
349
337
  * @protected
350
338
  */
351
339
  get _ariaLabel() {
@@ -432,7 +420,6 @@ Popup = Popup_1 = __decorate([
432
420
  * Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening. <b>This event does not bubble.</b>
433
421
  *
434
422
  * @public
435
- * @event sap.ui.webc.main.Popup#before-open
436
423
  * @allowPreventDefault
437
424
  */
438
425
  ,
@@ -441,7 +428,6 @@ Popup = Popup_1 = __decorate([
441
428
  * Fired after the component is opened. <b>This event does not bubble.</b>
442
429
  *
443
430
  * @public
444
- * @event sap.ui.webc.main.Popup#after-open
445
431
  */
446
432
  ,
447
433
  event("after-open")
@@ -449,19 +435,24 @@ Popup = Popup_1 = __decorate([
449
435
  * Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing. <b>This event does not bubble.</b>
450
436
  *
451
437
  * @public
452
- * @event sap.ui.webc.main.Popup#before-close
453
438
  * @allowPreventDefault
454
439
  * @param {boolean} escPressed Indicates that <code>ESC</code> key has triggered the event.
455
440
  */
456
441
  ,
457
442
  event("before-close", {
458
- escPressed: { type: Boolean },
443
+ detail: {
444
+ /**
445
+ * @public
446
+ */
447
+ escPressed: {
448
+ type: Boolean,
449
+ },
450
+ },
459
451
  })
460
452
  /**
461
453
  * Fired after the component is closed. <b>This event does not bubble.</b>
462
454
  *
463
455
  * @public
464
- * @event sap.ui.webc.main.Popup#after-close
465
456
  */
466
457
  ,
467
458
  event("after-close")
@@ -469,7 +460,6 @@ Popup = Popup_1 = __decorate([
469
460
  * Fired whenever the popup content area is scrolled
470
461
  *
471
462
  * @private
472
- * @event sap.ui.webc.main.Popup#scroll
473
463
  */
474
464
  ,
475
465
  event("scroll")