@ui5/webcomponents 1.24.0-rc.4 → 2.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (735) hide show
  1. package/CHANGELOG.md +347 -0
  2. package/README.md +1 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/Badge.d.ts +1 -0
  5. package/dist/Badge.js +6 -0
  6. package/dist/Badge.js.map +1 -1
  7. package/dist/Bar.d.ts +73 -0
  8. package/dist/Bar.js +113 -0
  9. package/dist/Bar.js.map +1 -0
  10. package/dist/Breadcrumbs.d.ts +5 -5
  11. package/dist/Breadcrumbs.js +10 -14
  12. package/dist/Breadcrumbs.js.map +1 -1
  13. package/dist/BusyIndicator.d.ts +1 -1
  14. package/dist/BusyIndicator.js +5 -1
  15. package/dist/BusyIndicator.js.map +1 -1
  16. package/dist/Calendar.d.ts +5 -5
  17. package/dist/Calendar.js +7 -7
  18. package/dist/Calendar.js.map +1 -1
  19. package/dist/Card.d.ts +3 -13
  20. package/dist/Card.js +1 -1
  21. package/dist/Card.js.map +1 -1
  22. package/dist/CardHeader.d.ts +6 -8
  23. package/dist/CardHeader.js +11 -7
  24. package/dist/CardHeader.js.map +1 -1
  25. package/dist/Carousel.d.ts +17 -2
  26. package/dist/Carousel.js +17 -4
  27. package/dist/Carousel.js.map +1 -1
  28. package/dist/CheckBox.d.ts +1 -0
  29. package/dist/CheckBox.js +5 -0
  30. package/dist/CheckBox.js.map +1 -1
  31. package/dist/ColorPalette.d.ts +7 -7
  32. package/dist/ColorPalette.js +14 -17
  33. package/dist/ColorPalette.js.map +1 -1
  34. package/dist/ColorPalettePopover.d.ts +0 -16
  35. package/dist/ColorPalettePopover.js +0 -23
  36. package/dist/ColorPalettePopover.js.map +1 -1
  37. package/dist/ColorPicker.d.ts +3 -3
  38. package/dist/ColorPicker.js +23 -23
  39. package/dist/ColorPicker.js.map +1 -1
  40. package/dist/ComboBox.d.ts +1 -0
  41. package/dist/ComboBox.js +11 -10
  42. package/dist/ComboBox.js.map +1 -1
  43. package/dist/DatePicker.d.ts +3 -3
  44. package/dist/DatePicker.js +7 -10
  45. package/dist/DatePicker.js.map +1 -1
  46. package/dist/DateRangePicker.d.ts +2 -2
  47. package/dist/DateRangePicker.js +2 -2
  48. package/dist/DateRangePicker.js.map +1 -1
  49. package/dist/DateTimePicker.d.ts +3 -3
  50. package/dist/DateTimePicker.js +6 -10
  51. package/dist/DateTimePicker.js.map +1 -1
  52. package/dist/Dialog.d.ts +0 -1
  53. package/dist/Dialog.js +1 -3
  54. package/dist/Dialog.js.map +1 -1
  55. package/dist/FileUploader.d.ts +3 -3
  56. package/dist/FileUploader.js +11 -11
  57. package/dist/FileUploader.js.map +1 -1
  58. package/dist/Input.d.ts +2 -1
  59. package/dist/Input.js +12 -8
  60. package/dist/Input.js.map +1 -1
  61. package/dist/List.d.ts +18 -18
  62. package/dist/List.js +37 -37
  63. package/dist/List.js.map +1 -1
  64. package/dist/ListItem.d.ts +3 -3
  65. package/dist/ListItem.js +15 -15
  66. package/dist/ListItem.js.map +1 -1
  67. package/dist/Menu.d.ts +2 -1
  68. package/dist/Menu.js +11 -9
  69. package/dist/Menu.js.map +1 -1
  70. package/dist/MultiComboBox.d.ts +14 -14
  71. package/dist/MultiComboBox.js +63 -59
  72. package/dist/MultiComboBox.js.map +1 -1
  73. package/dist/MultiInput.d.ts +1 -0
  74. package/dist/MultiInput.js +5 -2
  75. package/dist/MultiInput.js.map +1 -1
  76. package/dist/NavigationMenu.js +5 -5
  77. package/dist/NavigationMenu.js.map +1 -1
  78. package/dist/Option.d.ts +0 -9
  79. package/dist/Option.js +0 -3
  80. package/dist/Option.js.map +1 -1
  81. package/dist/Popover.d.ts +9 -12
  82. package/dist/Popover.js +50 -49
  83. package/dist/Popover.js.map +1 -1
  84. package/dist/Popup.d.ts +2 -4
  85. package/dist/Popup.js +38 -22
  86. package/dist/Popup.js.map +1 -1
  87. package/dist/ProgressIndicator.d.ts +0 -7
  88. package/dist/ProgressIndicator.js +0 -6
  89. package/dist/ProgressIndicator.js.map +1 -1
  90. package/dist/RadioButton.d.ts +1 -0
  91. package/dist/RadioButton.js +5 -0
  92. package/dist/RadioButton.js.map +1 -1
  93. package/dist/ResponsivePopover.js +0 -6
  94. package/dist/ResponsivePopover.js.map +1 -1
  95. package/dist/Select.d.ts +5 -7
  96. package/dist/Select.js +17 -24
  97. package/dist/Select.js.map +1 -1
  98. package/dist/SliderBase.d.ts +1 -1
  99. package/dist/SliderBase.js +1 -1
  100. package/dist/SliderBase.js.map +1 -1
  101. package/dist/Tab.d.ts +23 -11
  102. package/dist/Tab.js +32 -28
  103. package/dist/Tab.js.map +1 -1
  104. package/dist/TabContainer.d.ts +41 -84
  105. package/dist/TabContainer.js +98 -161
  106. package/dist/TabContainer.js.map +1 -1
  107. package/dist/TabSeparator.d.ts +12 -7
  108. package/dist/TabSeparator.js +10 -12
  109. package/dist/TabSeparator.js.map +1 -1
  110. package/dist/TextArea.d.ts +4 -3
  111. package/dist/TextArea.js +8 -11
  112. package/dist/TextArea.js.map +1 -1
  113. package/dist/TimePickerBase.d.ts +9 -9
  114. package/dist/TimePickerBase.js +24 -24
  115. package/dist/TimePickerBase.js.map +1 -1
  116. package/dist/Toast.js +0 -2
  117. package/dist/Toast.js.map +1 -1
  118. package/dist/Tokenizer.d.ts +1 -0
  119. package/dist/Tokenizer.js +8 -6
  120. package/dist/Tokenizer.js.map +1 -1
  121. package/dist/Toolbar.d.ts +6 -7
  122. package/dist/Toolbar.js +14 -23
  123. package/dist/Toolbar.js.map +1 -1
  124. package/dist/ToolbarButton.d.ts +0 -1
  125. package/dist/ToolbarButton.js +1 -3
  126. package/dist/ToolbarButton.js.map +1 -1
  127. package/dist/ToolbarRegistry.d.ts +1 -2
  128. package/dist/ToolbarRegistry.js +1 -4
  129. package/dist/ToolbarRegistry.js.map +1 -1
  130. package/dist/Tree.d.ts +4 -4
  131. package/dist/Tree.js +6 -6
  132. package/dist/Tree.js.map +1 -1
  133. package/dist/TreeItemBase.d.ts +1 -1
  134. package/dist/TreeItemBase.js.map +1 -1
  135. package/dist/bundle.common.bootstrap.js.map +1 -1
  136. package/dist/bundle.esm.js.map +1 -1
  137. package/dist/css/themes/Avatar.css +1 -1
  138. package/dist/css/themes/AvatarGroup.css +1 -1
  139. package/dist/css/themes/Badge.css +1 -1
  140. package/dist/css/themes/Bar.css +1 -0
  141. package/dist/css/themes/Breadcrumbs.css +1 -1
  142. package/dist/css/themes/BusyIndicator.css +1 -1
  143. package/dist/css/themes/Button.css +1 -1
  144. package/dist/css/themes/Calendar.css +1 -1
  145. package/dist/css/themes/CalendarHeader.css +1 -1
  146. package/dist/css/themes/CalendarLegend.css +1 -1
  147. package/dist/css/themes/CalendarLegendItem.css +1 -1
  148. package/dist/css/themes/Card.css +1 -1
  149. package/dist/css/themes/CardHeader.css +1 -1
  150. package/dist/css/themes/Carousel.css +1 -1
  151. package/dist/css/themes/CheckBox.css +1 -1
  152. package/dist/css/themes/ColorPalette.css +1 -1
  153. package/dist/css/themes/ColorPaletteItem.css +1 -1
  154. package/dist/css/themes/ColorPalettePopover.css +1 -1
  155. package/dist/css/themes/ColorPicker.css +1 -1
  156. package/dist/css/themes/ComboBox.css +1 -1
  157. package/dist/css/themes/CustomListItem.css +1 -1
  158. package/dist/css/themes/DatePicker.css +1 -1
  159. package/dist/css/themes/DateTimePickerPopover.css +1 -1
  160. package/dist/css/themes/DayPicker.css +1 -1
  161. package/dist/css/themes/Dialog.css +1 -1
  162. package/dist/css/themes/FileUploader.css +1 -1
  163. package/dist/css/themes/GroupHeaderListItem.css +1 -1
  164. package/dist/css/themes/GrowingButton.css +1 -1
  165. package/dist/css/themes/Icon.css +1 -1
  166. package/dist/css/themes/Input.css +1 -1
  167. package/dist/css/themes/InputIcon.css +1 -1
  168. package/dist/css/themes/InputSharedStyles.css +1 -1
  169. package/dist/css/themes/Link.css +1 -1
  170. package/dist/css/themes/List.css +1 -1
  171. package/dist/css/themes/ListItem.css +1 -1
  172. package/dist/css/themes/ListItemBase.css +1 -1
  173. package/dist/css/themes/Menu.css +1 -1
  174. package/dist/css/themes/MenuListItem.css +1 -1
  175. package/dist/css/themes/MessageStrip.css +1 -1
  176. package/dist/css/themes/MonthPicker.css +1 -1
  177. package/dist/css/themes/MultiComboBox.css +1 -1
  178. package/dist/css/themes/MultiComboBoxPopover.css +1 -1
  179. package/dist/css/themes/MultiInput.css +1 -1
  180. package/dist/css/themes/NavigationMenu.css +1 -1
  181. package/dist/css/themes/Panel.css +1 -1
  182. package/dist/css/themes/Popover.css +1 -1
  183. package/dist/css/themes/Popup.css +1 -1
  184. package/dist/css/themes/PopupBlockLayer.css +1 -0
  185. package/dist/css/themes/PopupsCommon.css +1 -1
  186. package/dist/css/themes/ProgressIndicator.css +1 -1
  187. package/dist/css/themes/RadioButton.css +1 -1
  188. package/dist/css/themes/RangeSlider.css +1 -1
  189. package/dist/css/themes/RatingIndicator.css +1 -1
  190. package/dist/css/themes/ResponsivePopover.css +1 -1
  191. package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
  192. package/dist/css/themes/SegmentedButton.css +1 -1
  193. package/dist/css/themes/Select.css +1 -1
  194. package/dist/css/themes/SelectMenu.css +1 -1
  195. package/dist/css/themes/SelectPopover.css +1 -1
  196. package/dist/css/themes/SliderBase.css +1 -1
  197. package/dist/css/themes/SplitButton.css +1 -1
  198. package/dist/css/themes/StepInput.css +1 -1
  199. package/dist/css/themes/Switch.css +1 -1
  200. package/dist/css/themes/TabContainer.css +1 -1
  201. package/dist/css/themes/TabInOverflow.css +1 -1
  202. package/dist/css/themes/TabInStrip.css +1 -1
  203. package/dist/css/themes/TabSemanticIcon.css +1 -1
  204. package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
  205. package/dist/css/themes/TabSeparatorInStrip.css +1 -1
  206. package/dist/css/themes/Table.css +1 -1
  207. package/dist/css/themes/TableCell.css +1 -1
  208. package/dist/css/themes/TableColumn.css +1 -1
  209. package/dist/css/themes/TableGroupRow.css +1 -1
  210. package/dist/css/themes/TableRow.css +1 -1
  211. package/dist/css/themes/TextArea.css +1 -1
  212. package/dist/css/themes/TimePicker.css +1 -1
  213. package/dist/css/themes/Toast.css +1 -1
  214. package/dist/css/themes/ToggleButton.css +1 -1
  215. package/dist/css/themes/Token.css +1 -1
  216. package/dist/css/themes/Tokenizer.css +1 -1
  217. package/dist/css/themes/TokenizerPopover.css +1 -1
  218. package/dist/css/themes/Toolbar.css +1 -1
  219. package/dist/css/themes/ToolbarPopover.css +1 -1
  220. package/dist/css/themes/TreeItem.css +1 -1
  221. package/dist/css/themes/ValueStateMessage.css +1 -1
  222. package/dist/css/themes/WheelSlider.css +1 -1
  223. package/dist/css/themes/YearPicker.css +1 -1
  224. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  225. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  226. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  227. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  228. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  229. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  230. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  231. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  232. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  233. package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
  234. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  235. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  236. package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
  237. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  238. package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
  239. package/dist/custom-elements-internal.json +431 -481
  240. package/dist/custom-elements.json +281 -304
  241. package/dist/features/InputSuggestions.d.ts +2 -2
  242. package/dist/features/InputSuggestions.js +8 -7
  243. package/dist/features/InputSuggestions.js.map +1 -1
  244. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  245. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  246. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  247. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  248. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  249. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  250. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  251. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  252. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  253. package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
  254. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  255. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  256. package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
  257. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  258. package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
  259. package/dist/generated/json-imports/Themes.js +1 -1
  260. package/dist/generated/json-imports/Themes.js.map +1 -1
  261. package/dist/generated/json-imports/i18n.js +1 -1
  262. package/dist/generated/json-imports/i18n.js.map +1 -1
  263. package/dist/generated/templates/BarTemplate.lit.d.ts +4 -0
  264. package/dist/generated/templates/BarTemplate.lit.js +5 -0
  265. package/dist/generated/templates/BarTemplate.lit.js.map +1 -0
  266. package/dist/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -1
  267. package/dist/generated/templates/BreadcrumbsPopoverTemplate.lit.js.map +1 -1
  268. package/dist/generated/templates/BreadcrumbsTemplate.lit.js +2 -1
  269. package/dist/generated/templates/BreadcrumbsTemplate.lit.js.map +1 -1
  270. package/dist/generated/templates/CardHeaderTemplate.lit.js +2 -2
  271. package/dist/generated/templates/CardHeaderTemplate.lit.js.map +1 -1
  272. package/dist/generated/templates/CarouselTemplate.lit.js +1 -1
  273. package/dist/generated/templates/CarouselTemplate.lit.js.map +1 -1
  274. package/dist/generated/templates/ColorPaletteDialogTemplate.lit.js +2 -1
  275. package/dist/generated/templates/ColorPaletteDialogTemplate.lit.js.map +1 -1
  276. package/dist/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -1
  277. package/dist/generated/templates/ColorPalettePopoverTemplate.lit.js.map +1 -1
  278. package/dist/generated/templates/ColorPaletteTemplate.lit.js +2 -1
  279. package/dist/generated/templates/ColorPaletteTemplate.lit.js.map +1 -1
  280. package/dist/generated/templates/ColorPickerTemplate.lit.js +1 -1
  281. package/dist/generated/templates/ColorPickerTemplate.lit.js.map +1 -1
  282. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +2 -2
  283. package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
  284. package/dist/generated/templates/ComboBoxTemplate.lit.js +21 -2
  285. package/dist/generated/templates/ComboBoxTemplate.lit.js.map +1 -1
  286. package/dist/generated/templates/CustomListItemTemplate.lit.js +2 -2
  287. package/dist/generated/templates/CustomListItemTemplate.lit.js.map +1 -1
  288. package/dist/generated/templates/DatePickerInputTemplate.lit.d.ts +4 -0
  289. package/dist/generated/templates/DatePickerInputTemplate.lit.js +7 -0
  290. package/dist/generated/templates/DatePickerInputTemplate.lit.js.map +1 -0
  291. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js +1 -1
  292. package/dist/generated/templates/DatePickerPopoverTemplate.lit.js.map +1 -1
  293. package/dist/generated/templates/DatePickerTemplate.lit.js +5 -2
  294. package/dist/generated/templates/DatePickerTemplate.lit.js.map +1 -1
  295. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -1
  296. package/dist/generated/templates/DateTimePickerPopoverTemplate.lit.js.map +1 -1
  297. package/dist/generated/templates/DateTimePickerTemplate.lit.d.ts +4 -0
  298. package/dist/generated/templates/DateTimePickerTemplate.lit.js +13 -0
  299. package/dist/generated/templates/DateTimePickerTemplate.lit.js.map +1 -0
  300. package/dist/generated/templates/DialogTemplate.lit.js +1 -1
  301. package/dist/generated/templates/DialogTemplate.lit.js.map +1 -1
  302. package/dist/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -1
  303. package/dist/generated/templates/FileUploaderPopoverTemplate.lit.js.map +1 -1
  304. package/dist/generated/templates/FileUploaderTemplate.lit.js +6 -2
  305. package/dist/generated/templates/FileUploaderTemplate.lit.js.map +1 -1
  306. package/dist/generated/templates/InputPopoverTemplate.lit.js +2 -2
  307. package/dist/generated/templates/InputPopoverTemplate.lit.js.map +1 -1
  308. package/dist/generated/templates/InputTemplate.lit.js +22 -2
  309. package/dist/generated/templates/InputTemplate.lit.js.map +1 -1
  310. package/dist/generated/templates/ListItemTemplate.lit.js +2 -2
  311. package/dist/generated/templates/ListItemTemplate.lit.js.map +1 -1
  312. package/dist/generated/templates/ListTemplate.lit.js +2 -2
  313. package/dist/generated/templates/ListTemplate.lit.js.map +1 -1
  314. package/dist/generated/templates/MenuListItemTemplate.lit.js +2 -2
  315. package/dist/generated/templates/MenuListItemTemplate.lit.js.map +1 -1
  316. package/dist/generated/templates/MenuTemplate.lit.js +2 -2
  317. package/dist/generated/templates/MenuTemplate.lit.js.map +1 -1
  318. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +4 -4
  319. package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js.map +1 -1
  320. package/dist/generated/templates/MultiComboBoxTemplate.lit.js +28 -2
  321. package/dist/generated/templates/MultiComboBoxTemplate.lit.js.map +1 -1
  322. package/dist/generated/templates/MultiInputTemplate.lit.js +22 -2
  323. package/dist/generated/templates/MultiInputTemplate.lit.js.map +1 -1
  324. package/dist/generated/templates/NavigationMenuTemplate.lit.js +1 -1
  325. package/dist/generated/templates/NavigationMenuTemplate.lit.js.map +1 -1
  326. package/dist/generated/templates/PopoverTemplate.lit.js +1 -1
  327. package/dist/generated/templates/PopoverTemplate.lit.js.map +1 -1
  328. package/dist/generated/templates/PopupBlockLayerTemplate.lit.js +2 -2
  329. package/dist/generated/templates/PopupBlockLayerTemplate.lit.js.map +1 -1
  330. package/dist/generated/templates/PopupTemplate.lit.js +1 -1
  331. package/dist/generated/templates/PopupTemplate.lit.js.map +1 -1
  332. package/dist/generated/templates/ProgressIndicatorTemplate.lit.js +1 -1
  333. package/dist/generated/templates/ProgressIndicatorTemplate.lit.js.map +1 -1
  334. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +2 -2
  335. package/dist/generated/templates/ResponsivePopoverTemplate.lit.js.map +1 -1
  336. package/dist/generated/templates/SelectMenuTemplate.lit.js +1 -1
  337. package/dist/generated/templates/SelectMenuTemplate.lit.js.map +1 -1
  338. package/dist/generated/templates/SelectPopoverTemplate.lit.js +2 -2
  339. package/dist/generated/templates/SelectPopoverTemplate.lit.js.map +1 -1
  340. package/dist/generated/templates/SelectTemplate.lit.js +18 -2
  341. package/dist/generated/templates/SelectTemplate.lit.js.map +1 -1
  342. package/dist/generated/templates/StandardListItemTemplate.lit.js +2 -2
  343. package/dist/generated/templates/StandardListItemTemplate.lit.js.map +1 -1
  344. package/dist/generated/templates/SuggestionListItemTemplate.lit.js +2 -2
  345. package/dist/generated/templates/SuggestionListItemTemplate.lit.js.map +1 -1
  346. package/dist/generated/templates/TabContainerPopoverTemplate.lit.js +1 -1
  347. package/dist/generated/templates/TabContainerPopoverTemplate.lit.js.map +1 -1
  348. package/dist/generated/templates/TabContainerTemplate.lit.js +2 -1
  349. package/dist/generated/templates/TabContainerTemplate.lit.js.map +1 -1
  350. package/dist/generated/templates/TabInOverflowTemplate.lit.js +1 -1
  351. package/dist/generated/templates/TabInOverflowTemplate.lit.js.map +1 -1
  352. package/dist/generated/templates/TabInStripTemplate.lit.js +1 -1
  353. package/dist/generated/templates/TabInStripTemplate.lit.js.map +1 -1
  354. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -1
  355. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js.map +1 -1
  356. package/dist/generated/templates/TableTemplate.lit.js +1 -1
  357. package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
  358. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js +1 -1
  359. package/dist/generated/templates/TextAreaPopoverTemplate.lit.js.map +1 -1
  360. package/dist/generated/templates/TextAreaTemplate.lit.js +6 -2
  361. package/dist/generated/templates/TextAreaTemplate.lit.js.map +1 -1
  362. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js +2 -2
  363. package/dist/generated/templates/TimePickerPopoverTemplate.lit.js.map +1 -1
  364. package/dist/generated/templates/TimePickerTemplate.lit.js +2 -1
  365. package/dist/generated/templates/TimePickerTemplate.lit.js.map +1 -1
  366. package/dist/generated/templates/TokenizerPopoverTemplate.lit.js +1 -1
  367. package/dist/generated/templates/TokenizerPopoverTemplate.lit.js.map +1 -1
  368. package/dist/generated/templates/TokenizerTemplate.lit.js +10 -2
  369. package/dist/generated/templates/TokenizerTemplate.lit.js.map +1 -1
  370. package/dist/generated/templates/ToolbarPopoverTemplate.lit.js +1 -1
  371. package/dist/generated/templates/ToolbarPopoverTemplate.lit.js.map +1 -1
  372. package/dist/generated/templates/ToolbarTemplate.lit.js +2 -1
  373. package/dist/generated/templates/ToolbarTemplate.lit.js.map +1 -1
  374. package/dist/generated/templates/TreeItemBaseTemplate.lit.js +2 -2
  375. package/dist/generated/templates/TreeItemBaseTemplate.lit.js.map +1 -1
  376. package/dist/generated/templates/TreeItemCustomTemplate.lit.js +2 -2
  377. package/dist/generated/templates/TreeItemCustomTemplate.lit.js.map +1 -1
  378. package/dist/generated/templates/TreeItemTemplate.lit.js +2 -2
  379. package/dist/generated/templates/TreeItemTemplate.lit.js.map +1 -1
  380. package/dist/generated/templates/TreeTemplate.lit.js +1 -1
  381. package/dist/generated/templates/TreeTemplate.lit.js.map +1 -1
  382. package/dist/generated/themes/Avatar.css.js +1 -1
  383. package/dist/generated/themes/Avatar.css.js.map +1 -1
  384. package/dist/generated/themes/AvatarGroup.css.js +1 -1
  385. package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
  386. package/dist/generated/themes/Badge.css.js +1 -1
  387. package/dist/generated/themes/Badge.css.js.map +1 -1
  388. package/dist/generated/themes/Bar.css.js +9 -0
  389. package/dist/generated/themes/Bar.css.js.map +1 -0
  390. package/dist/generated/themes/Breadcrumbs.css.js +1 -1
  391. package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
  392. package/dist/generated/themes/BusyIndicator.css.js +1 -1
  393. package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
  394. package/dist/generated/themes/Button.css.js +1 -1
  395. package/dist/generated/themes/Button.css.js.map +1 -1
  396. package/dist/generated/themes/Calendar.css.js +1 -1
  397. package/dist/generated/themes/Calendar.css.js.map +1 -1
  398. package/dist/generated/themes/CalendarHeader.css.js +1 -1
  399. package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
  400. package/dist/generated/themes/CalendarLegend.css.js +1 -1
  401. package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
  402. package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
  403. package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
  404. package/dist/generated/themes/Card.css.js +1 -1
  405. package/dist/generated/themes/Card.css.js.map +1 -1
  406. package/dist/generated/themes/CardHeader.css.js +1 -1
  407. package/dist/generated/themes/CardHeader.css.js.map +1 -1
  408. package/dist/generated/themes/Carousel.css.js +1 -1
  409. package/dist/generated/themes/Carousel.css.js.map +1 -1
  410. package/dist/generated/themes/CheckBox.css.js +1 -1
  411. package/dist/generated/themes/CheckBox.css.js.map +1 -1
  412. package/dist/generated/themes/ColorPalette.css.js +1 -1
  413. package/dist/generated/themes/ColorPalette.css.js.map +1 -1
  414. package/dist/generated/themes/{ColorPaletteStaticArea.css.js → ColorPaletteDialog.css.js} +2 -2
  415. package/dist/generated/themes/ColorPaletteDialog.css.js.map +1 -0
  416. package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
  417. package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
  418. package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
  419. package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
  420. package/dist/generated/themes/ColorPicker.css.js +1 -1
  421. package/dist/generated/themes/ColorPicker.css.js.map +1 -1
  422. package/dist/generated/themes/ComboBox.css.js +1 -1
  423. package/dist/generated/themes/ComboBox.css.js.map +1 -1
  424. package/dist/generated/themes/CustomListItem.css.js +1 -1
  425. package/dist/generated/themes/CustomListItem.css.js.map +1 -1
  426. package/dist/generated/themes/DatePicker.css.js +1 -1
  427. package/dist/generated/themes/DatePicker.css.js.map +1 -1
  428. package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
  429. package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
  430. package/dist/generated/themes/DayPicker.css.js +1 -1
  431. package/dist/generated/themes/DayPicker.css.js.map +1 -1
  432. package/dist/generated/themes/Dialog.css.js +1 -1
  433. package/dist/generated/themes/Dialog.css.js.map +1 -1
  434. package/dist/generated/themes/FileUploader.css.js +1 -1
  435. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  436. package/dist/generated/themes/GroupHeaderListItem.css.js +1 -1
  437. package/dist/generated/themes/GroupHeaderListItem.css.js.map +1 -1
  438. package/dist/generated/themes/GrowingButton.css.js +1 -1
  439. package/dist/generated/themes/GrowingButton.css.js.map +1 -1
  440. package/dist/generated/themes/Icon.css.js +1 -1
  441. package/dist/generated/themes/Icon.css.js.map +1 -1
  442. package/dist/generated/themes/Input.css.js +1 -1
  443. package/dist/generated/themes/Input.css.js.map +1 -1
  444. package/dist/generated/themes/InputIcon.css.js +1 -1
  445. package/dist/generated/themes/InputIcon.css.js.map +1 -1
  446. package/dist/generated/themes/InputSharedStyles.css.js +1 -1
  447. package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
  448. package/dist/generated/themes/Link.css.js +1 -1
  449. package/dist/generated/themes/Link.css.js.map +1 -1
  450. package/dist/generated/themes/List.css.js +1 -1
  451. package/dist/generated/themes/List.css.js.map +1 -1
  452. package/dist/generated/themes/ListItem.css.js +1 -1
  453. package/dist/generated/themes/ListItem.css.js.map +1 -1
  454. package/dist/generated/themes/ListItemBase.css.js +1 -1
  455. package/dist/generated/themes/ListItemBase.css.js.map +1 -1
  456. package/dist/generated/themes/Menu.css.js +1 -1
  457. package/dist/generated/themes/Menu.css.js.map +1 -1
  458. package/dist/generated/themes/MenuListItem.css.js +1 -1
  459. package/dist/generated/themes/MenuListItem.css.js.map +1 -1
  460. package/dist/generated/themes/MessageStrip.css.js +1 -1
  461. package/dist/generated/themes/MessageStrip.css.js.map +1 -1
  462. package/dist/generated/themes/MonthPicker.css.js +1 -1
  463. package/dist/generated/themes/MonthPicker.css.js.map +1 -1
  464. package/dist/generated/themes/MultiComboBox.css.js +1 -1
  465. package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
  466. package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
  467. package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
  468. package/dist/generated/themes/MultiInput.css.js +1 -1
  469. package/dist/generated/themes/MultiInput.css.js.map +1 -1
  470. package/dist/generated/themes/NavigationMenu.css.js +1 -1
  471. package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
  472. package/dist/generated/themes/Panel.css.js +1 -1
  473. package/dist/generated/themes/Panel.css.js.map +1 -1
  474. package/dist/generated/themes/Popover.css.js +1 -1
  475. package/dist/generated/themes/Popover.css.js.map +1 -1
  476. package/dist/generated/themes/Popup.css.js +1 -1
  477. package/dist/generated/themes/Popup.css.js.map +1 -1
  478. package/dist/generated/themes/PopupBlockLayer.css.d.ts +3 -0
  479. package/dist/generated/themes/{PopupStaticAreaStyles.css.js → PopupBlockLayer.css.js} +2 -2
  480. package/dist/generated/themes/PopupBlockLayer.css.js.map +1 -0
  481. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  482. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  483. package/dist/generated/themes/ProgressIndicator.css.js +1 -1
  484. package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
  485. package/dist/generated/themes/RadioButton.css.js +1 -1
  486. package/dist/generated/themes/RadioButton.css.js.map +1 -1
  487. package/dist/generated/themes/RangeSlider.css.js +1 -1
  488. package/dist/generated/themes/RangeSlider.css.js.map +1 -1
  489. package/dist/generated/themes/RatingIndicator.css.js +1 -1
  490. package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
  491. package/dist/generated/themes/ResponsivePopover.css.js +1 -1
  492. package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
  493. package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
  494. package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
  495. package/dist/generated/themes/SegmentedButton.css.js +1 -1
  496. package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
  497. package/dist/generated/themes/Select.css.js +1 -1
  498. package/dist/generated/themes/Select.css.js.map +1 -1
  499. package/dist/generated/themes/SelectMenu.css.js +1 -1
  500. package/dist/generated/themes/SelectMenu.css.js.map +1 -1
  501. package/dist/generated/themes/SelectPopover.css.js +1 -1
  502. package/dist/generated/themes/SelectPopover.css.js.map +1 -1
  503. package/dist/generated/themes/SliderBase.css.js +1 -1
  504. package/dist/generated/themes/SliderBase.css.js.map +1 -1
  505. package/dist/generated/themes/SplitButton.css.js +1 -1
  506. package/dist/generated/themes/SplitButton.css.js.map +1 -1
  507. package/dist/generated/themes/StepInput.css.js +1 -1
  508. package/dist/generated/themes/StepInput.css.js.map +1 -1
  509. package/dist/generated/themes/Switch.css.js +1 -1
  510. package/dist/generated/themes/Switch.css.js.map +1 -1
  511. package/dist/generated/themes/TabContainer.css.js +1 -1
  512. package/dist/generated/themes/TabContainer.css.js.map +1 -1
  513. package/dist/generated/themes/TabInOverflow.css.js +1 -1
  514. package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
  515. package/dist/generated/themes/TabInStrip.css.js +1 -1
  516. package/dist/generated/themes/TabInStrip.css.js.map +1 -1
  517. package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
  518. package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
  519. package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
  520. package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
  521. package/dist/generated/themes/TabSeparatorInStrip.css.js +1 -1
  522. package/dist/generated/themes/TabSeparatorInStrip.css.js.map +1 -1
  523. package/dist/generated/themes/Table.css.js +1 -1
  524. package/dist/generated/themes/Table.css.js.map +1 -1
  525. package/dist/generated/themes/TableCell.css.js +1 -1
  526. package/dist/generated/themes/TableCell.css.js.map +1 -1
  527. package/dist/generated/themes/TableColumn.css.js +1 -1
  528. package/dist/generated/themes/TableColumn.css.js.map +1 -1
  529. package/dist/generated/themes/TableGroupRow.css.js +1 -1
  530. package/dist/generated/themes/TableGroupRow.css.js.map +1 -1
  531. package/dist/generated/themes/TableRow.css.js +1 -1
  532. package/dist/generated/themes/TableRow.css.js.map +1 -1
  533. package/dist/generated/themes/TextArea.css.js +1 -1
  534. package/dist/generated/themes/TextArea.css.js.map +1 -1
  535. package/dist/generated/themes/TimePicker.css.js +1 -1
  536. package/dist/generated/themes/TimePicker.css.js.map +1 -1
  537. package/dist/generated/themes/Toast.css.js +1 -1
  538. package/dist/generated/themes/Toast.css.js.map +1 -1
  539. package/dist/generated/themes/ToggleButton.css.js +1 -1
  540. package/dist/generated/themes/ToggleButton.css.js.map +1 -1
  541. package/dist/generated/themes/Token.css.js +1 -1
  542. package/dist/generated/themes/Token.css.js.map +1 -1
  543. package/dist/generated/themes/Tokenizer.css.js +1 -1
  544. package/dist/generated/themes/Tokenizer.css.js.map +1 -1
  545. package/dist/generated/themes/TokenizerPopover.css.js +1 -1
  546. package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
  547. package/dist/generated/themes/Toolbar.css.js +1 -1
  548. package/dist/generated/themes/Toolbar.css.js.map +1 -1
  549. package/dist/generated/themes/ToolbarPopover.css.js +1 -1
  550. package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
  551. package/dist/generated/themes/TreeItem.css.js +1 -1
  552. package/dist/generated/themes/TreeItem.css.js.map +1 -1
  553. package/dist/generated/themes/ValueStateMessage.css.js +1 -1
  554. package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
  555. package/dist/generated/themes/WheelSlider.css.js +1 -1
  556. package/dist/generated/themes/WheelSlider.css.js.map +1 -1
  557. package/dist/generated/themes/YearPicker.css.js +1 -1
  558. package/dist/generated/themes/YearPicker.css.js.map +1 -1
  559. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  560. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  561. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  562. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  563. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  564. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  565. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  566. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  567. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  568. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  569. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  570. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  571. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  572. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  573. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  574. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  575. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  576. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  577. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
  578. package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
  579. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  580. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  581. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  582. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  583. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
  584. package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
  585. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  586. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  587. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
  588. package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
  589. package/dist/types/BarDesign.d.ts +27 -0
  590. package/dist/types/BarDesign.js +29 -0
  591. package/dist/types/BarDesign.js.map +1 -0
  592. package/dist/types/{BreadcrumbsSeparatorStyle.d.ts → BreadcrumbsSeparator.d.ts} +3 -3
  593. package/dist/types/BreadcrumbsSeparator.js +39 -0
  594. package/dist/types/BreadcrumbsSeparator.js.map +1 -0
  595. package/dist/types/BusyIndicatorSize.d.ts +3 -3
  596. package/dist/types/BusyIndicatorSize.js +3 -3
  597. package/dist/types/BusyIndicatorSize.js.map +1 -1
  598. package/dist/types/{CarouselPageIndicatorStyle.d.ts → CarouselPageIndicatorType.d.ts} +3 -3
  599. package/dist/types/{CarouselPageIndicatorStyle.js → CarouselPageIndicatorType.js} +8 -8
  600. package/dist/types/CarouselPageIndicatorType.js.map +1 -0
  601. package/dist/types/{ListMode.d.ts → ListSelectionMode.d.ts} +8 -8
  602. package/dist/types/{ListMode.js → ListSelectionMode.js} +13 -13
  603. package/dist/types/ListSelectionMode.js.map +1 -0
  604. package/dist/types/{TabsOverflowMode.d.ts → OverflowMode.d.ts} +2 -2
  605. package/dist/types/{TabsOverflowMode.js → OverflowMode.js} +7 -7
  606. package/dist/types/OverflowMode.js.map +1 -0
  607. package/dist/types/PopoverHorizontalAlign.d.ts +4 -4
  608. package/dist/types/PopoverHorizontalAlign.js +4 -4
  609. package/dist/types/PopoverHorizontalAlign.js.map +1 -1
  610. package/dist/types/{PopoverPlacementType.d.ts → PopoverPlacement.d.ts} +7 -7
  611. package/dist/types/PopoverPlacement.js +29 -0
  612. package/dist/types/PopoverPlacement.js.map +1 -0
  613. package/dist/vscode.html-custom-data.json +76 -73
  614. package/dist/web-types.json +144 -121
  615. package/package-scripts.cjs +0 -1
  616. package/package.json +9 -9
  617. package/src/Bar.hbs +16 -0
  618. package/src/Breadcrumbs.hbs +3 -1
  619. package/src/BreadcrumbsPopover.hbs +3 -3
  620. package/src/CardHeader.hbs +3 -3
  621. package/src/Carousel.hbs +1 -0
  622. package/src/ColorPalette.hbs +5 -3
  623. package/src/ColorPaletteDialog.hbs +2 -0
  624. package/src/ColorPalettePopover.hbs +1 -1
  625. package/src/ColorPicker.hbs +3 -3
  626. package/src/ComboBox.hbs +2 -0
  627. package/src/ComboBoxPopover.hbs +5 -6
  628. package/src/DatePicker.hbs +2 -45
  629. package/src/DatePickerInput.hbs +45 -0
  630. package/src/DatePickerPopover.hbs +3 -3
  631. package/src/DateTimePicker.hbs +2 -0
  632. package/src/DateTimePickerPopover.hbs +1 -1
  633. package/src/FileUploader.hbs +2 -1
  634. package/src/FileUploaderPopover.hbs +2 -2
  635. package/src/Input.hbs +3 -1
  636. package/src/InputPopover.hbs +4 -4
  637. package/src/List.hbs +5 -6
  638. package/src/ListItem.hbs +1 -1
  639. package/src/Menu.hbs +3 -3
  640. package/src/MultiComboBox.hbs +2 -0
  641. package/src/MultiComboBoxPopover.hbs +6 -5
  642. package/src/NavigationMenu.hbs +1 -1
  643. package/src/Popup.hbs +2 -1
  644. package/src/PopupBlockLayer.hbs +2 -4
  645. package/src/ProgressIndicator.hbs +0 -1
  646. package/src/ResponsivePopover.hbs +1 -0
  647. package/src/Select.hbs +2 -0
  648. package/src/SelectMenu.hbs +4 -4
  649. package/src/SelectPopover.hbs +5 -5
  650. package/src/TabContainer.hbs +4 -2
  651. package/src/TabContainerPopover.hbs +4 -3
  652. package/src/TabInOverflow.hbs +1 -1
  653. package/src/TabInStrip.hbs +3 -3
  654. package/src/TabSeparatorInOverflow.hbs +1 -1
  655. package/src/Table.hbs +0 -1
  656. package/src/TextArea.hbs +2 -0
  657. package/src/TextAreaPopover.hbs +1 -1
  658. package/src/TimePicker.hbs +2 -0
  659. package/src/TimePickerPopover.hbs +6 -6
  660. package/src/Tokenizer.hbs +3 -1
  661. package/src/TokenizerPopover.hbs +3 -3
  662. package/src/Toolbar.hbs +3 -1
  663. package/src/ToolbarPopover.hbs +2 -2
  664. package/src/Tree.hbs +1 -1
  665. package/src/themes/Badge.css +2 -1
  666. package/src/themes/Bar.css +75 -0
  667. package/src/themes/Breadcrumbs.css +5 -5
  668. package/src/themes/BusyIndicator.css +18 -17
  669. package/src/themes/CardHeader.css +6 -4
  670. package/src/themes/Carousel.css +2 -1
  671. package/src/themes/CheckBox.css +11 -14
  672. package/src/themes/Dialog.css +2 -1
  673. package/src/themes/List.css +3 -3
  674. package/src/themes/ListItem.css +3 -3
  675. package/src/themes/Menu.css +1 -1
  676. package/src/themes/Popover.css +12 -12
  677. package/src/themes/Popup.css +5 -2
  678. package/src/themes/{PopupStaticAreaStyles.css → PopupBlockLayer.css} +6 -5
  679. package/src/themes/PopupsCommon.css +0 -1
  680. package/src/themes/ProgressIndicator.css +0 -4
  681. package/src/themes/RadioButton.css +4 -7
  682. package/src/themes/TabContainer.css +1 -0
  683. package/src/themes/TabInOverflow.css +1 -0
  684. package/src/themes/TabInStrip.css +8 -4
  685. package/src/themes/TabSeparatorInOverflow.css +2 -2
  686. package/src/themes/TabSeparatorInStrip.css +2 -2
  687. package/src/themes/TreeItem.css +2 -2
  688. package/src/themes/base/Bar-parameters.css +8 -0
  689. package/src/themes/base/RadioButton-parameters.css +0 -1
  690. package/src/themes/base/sizes-parameters.css +3 -0
  691. package/src/themes/sap_belize/parameters-bundle.css +2 -1
  692. package/src/themes/sap_belize_hcb/parameters-bundle.css +2 -1
  693. package/src/themes/sap_belize_hcw/parameters-bundle.css +2 -1
  694. package/src/themes/sap_fiori_3/parameters-bundle.css +2 -1
  695. package/src/themes/sap_fiori_3_dark/parameters-bundle.css +2 -1
  696. package/src/themes/sap_fiori_3_hcb/Bar-parameters.css +5 -0
  697. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +2 -1
  698. package/src/themes/sap_fiori_3_hcw/Bar-parameters.css +5 -0
  699. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  700. package/src/themes/sap_horizon/parameters-bundle.css +2 -1
  701. package/src/themes/sap_horizon_dark/CheckBox-parameters.css +1 -0
  702. package/src/themes/sap_horizon_dark/parameters-bundle.css +2 -1
  703. package/src/themes/sap_horizon_hcb/Bar-parameters.css +5 -0
  704. package/src/themes/sap_horizon_hcb/CheckBox-parameters.css +1 -0
  705. package/src/themes/sap_horizon_hcb/parameters-bundle.css +2 -1
  706. package/src/themes/sap_horizon_hcw/Bar-parameters.css +5 -0
  707. package/src/themes/sap_horizon_hcw/CheckBox-parameters.css +1 -0
  708. package/src/themes/sap_horizon_hcw/parameters-bundle.css +2 -1
  709. package/dist/Assets-static.d.ts +0 -4
  710. package/dist/Assets-static.js +0 -6
  711. package/dist/Assets-static.js.map +0 -1
  712. package/dist/css/themes/PopupStaticAreaStyles.css +0 -1
  713. package/dist/generated/json-imports/Themes-static.d.ts +0 -1
  714. package/dist/generated/json-imports/Themes-static.js +0 -45
  715. package/dist/generated/json-imports/Themes-static.js.map +0 -1
  716. package/dist/generated/json-imports/i18n-static.d.ts +0 -1
  717. package/dist/generated/json-imports/i18n-static.js +0 -168
  718. package/dist/generated/json-imports/i18n-static.js.map +0 -1
  719. package/dist/generated/themes/ColorPaletteStaticArea.css.js.map +0 -1
  720. package/dist/generated/themes/PopupStaticAreaStyles.css.js.map +0 -1
  721. package/dist/types/BreadcrumbsSeparatorStyle.js +0 -39
  722. package/dist/types/BreadcrumbsSeparatorStyle.js.map +0 -1
  723. package/dist/types/CarouselPageIndicatorStyle.js.map +0 -1
  724. package/dist/types/ListMode.js.map +0 -1
  725. package/dist/types/PopoverPlacementType.js +0 -29
  726. package/dist/types/PopoverPlacementType.js.map +0 -1
  727. package/dist/types/TabContainerBackgroundDesign.d.ts +0 -22
  728. package/dist/types/TabContainerBackgroundDesign.js +0 -24
  729. package/dist/types/TabContainerBackgroundDesign.js.map +0 -1
  730. package/dist/types/TabsOverflowMode.js.map +0 -1
  731. /package/dist/css/themes/{ColorPaletteStaticArea.css → ColorPaletteDialog.css} +0 -0
  732. /package/dist/generated/themes/{ColorPaletteStaticArea.css.d.ts → Bar.css.d.ts} +0 -0
  733. /package/dist/generated/themes/{PopupStaticAreaStyles.css.d.ts → ColorPaletteDialog.css.d.ts} +0 -0
  734. /package/src/themes/{ColorPaletteStaticArea.css → ColorPaletteDialog.css} +0 -0
  735. /package/src/themes/base/{PopupStaticAreaStyles-parameters.css → PopupBlockLayer-parameters.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E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"@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 * ### Overview\n *\n * The `ui5-popover` 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 * ### Structure\n *\n * The popover has three main areas:\n *\n * - Header (optional)\n * - Content\n * - Footer (optional)\n *\n * **Note:** The `ui5-popover` 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 * `modal` property.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Popover.js\";`\n *\n * **Note: ** We recommend placing popup-like components (`ui5-dialog` and `ui5-popover`)\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 * **Note:** We don't recommend nesting popup-like components (`ui5-dialog`, `ui5-popover`).\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 *\n\t * **Note:** If `header` slot is provided, the `headerText` is ignored.\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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\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 = Popover.VIEWPORT_MARGIN;\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 < Popover.VIEWPORT_MARGIN) {\n\t\t\t\tleft = Popover.VIEWPORT_MARGIN;\n\t\t\t} else if (left + popoverSize.width > clientWidth - Popover.VIEWPORT_MARGIN) {\n\t\t\t\tleft = clientWidth - Popover.VIEWPORT_MARGIN - popoverSize.width;\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 `Left` and `Right` 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 = Popover.VIEWPORT_MARGIN;\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/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,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;gDAC5C;AAOzB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;gDAC5C;AAOzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,gBAAgB,CAAC,GAAG,EAAE,CAAC;gDACjC;AAGxC;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;2CAChC;AAGpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;0CACjC;AAOnB;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;uCACA;AAO5B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;uCACA;AAhIvB,OAAO;IAVZ,aAAa,CAAC;QACd,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE;YACP,KAAK,CAAC,MAAM;YACZ,mBAAmB;YACnB,eAAe;YACf,UAAU;SACV;QACD,QAAQ,EAAE,eAAe;KACzB,CAAC;GACI,OAAO,CAysBZ;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 PopoverPlacement from \"./types/PopoverPlacement.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\tplacement: `${PopoverPlacement}`,\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The `ui5-popover` 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 * ### Structure\n *\n * The popover has three main areas:\n *\n * - Header (optional)\n * - Content\n * - Footer (optional)\n *\n * **Note:** The `ui5-popover` 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 * `modal` property.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/Popover.js\";`\n *\n * **Note: ** We recommend placing popup-like components (`ui5-dialog` and `ui5-popover`)\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 * **Note:** We don't recommend nesting popup-like components (`ui5-dialog`, `ui5-popover`).\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\tPopup.styles,\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 *\n\t * **Note:** If `header` slot is provided, the `headerText` is ignored.\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 * @default \"End\"\n\t * @public\n\t */\n\t@property({ type: PopoverPlacement, defaultValue: PopoverPlacement.End })\n\tplacement!: `${PopoverPlacement}`;\n\n\t/**\n\t * Determines the horizontal alignment of the component.\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 * @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 * @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 * @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 * @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 * @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 * @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 * @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 * @private\n\t */\n\t@property({ type: PopoverPlacement, defaultValue: PopoverPlacement.End })\n\tactualPlacement!: `${PopoverPlacement}`;\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 * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\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: `${PopoverPlacement}`, openerRect: DOMRect): boolean {\n\t\tconst threshold = 32;\n\t\tconst limits = {\n\t\t\t\"Start\": openerRect.right,\n\t\t\t\"End\": 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.actualPlacement = placement.placement;\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.actualPlacement === PopoverPlacement.End) {\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.actualPlacement === PopoverPlacement.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\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\tif (this.isConnected) {\n\t\t\tthis.setAttribute(\"popover\", \"manual\");\n\t\t\tthis.showPopover();\n\t\t}\n\n\t\tObject.assign(this.style, {\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 = Popover.VIEWPORT_MARGIN;\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 placement = this.getActualPlacement(targetRect, popoverSize);\n\n\t\tthis._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placement, targetRect);\n\n\t\tconst isVertical = placement === PopoverPlacement.Top\n\t\t\t|| placement === PopoverPlacement.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 (placement) {\n\t\tcase PopoverPlacement.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 PopoverPlacement.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 PopoverPlacement.Start:\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 PopoverPlacement.End:\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 < Popover.VIEWPORT_MARGIN) {\n\t\t\t\tleft = Popover.VIEWPORT_MARGIN;\n\t\t\t} else if (left + popoverSize.width > clientWidth - Popover.VIEWPORT_MARGIN) {\n\t\t\t\tleft = clientWidth - Popover.VIEWPORT_MARGIN - popoverSize.width;\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\tplacement,\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.End && left <= targetRect.left) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Start && 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 `Left` and `Right` placements.\n\t * @private\n\t */\n\tfallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacement | undefined {\n\t\tif (targetRect.left > popoverSize.width) {\n\t\t\treturn PopoverPlacement.Start;\n\t\t}\n\n\t\tif (clientWidth - targetRect.right > targetRect.left) {\n\t\t\treturn PopoverPlacement.End;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom > popoverSize.height) {\n\t\t\treturn PopoverPlacement.Bottom;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\treturn PopoverPlacement.Top;\n\t\t}\n\t}\n\n\tgetActualPlacement(targetRect: DOMRect, popoverSize: PopoverSize): `${PopoverPlacement}` {\n\t\tconst placement = this.placement;\n\t\tlet actualPlacement = placement;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tswitch (placement) {\n\t\tcase PopoverPlacement.Top:\n\t\t\tif (targetRect.top < popoverSize.height\n\t\t\t\t&& targetRect.top < clientHeight - targetRect.bottom) {\n\t\t\t\tactualPlacement = PopoverPlacement.Bottom;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacement.Bottom:\n\t\t\tif (clientHeight - targetRect.bottom < popoverSize.height\n\t\t\t\t&& clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\t\tactualPlacement = PopoverPlacement.Top;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacement.Start:\n\t\t\tif (targetRect.left < popoverSize.width) {\n\t\t\t\tactualPlacement = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placement;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacement.End:\n\t\t\tif (clientWidth - targetRect.right < popoverSize.width) {\n\t\t\t\tactualPlacement = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placement;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn actualPlacement;\n\t}\n\n\tgetVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet left = Popover.VIEWPORT_MARGIN;\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.Start:\n\t\t\tleft = targetRect.left;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.End:\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.Start) {\n\t\t\t\treturn PopoverHorizontalAlign.End;\n\t\t\t}\n\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.End) {\n\t\t\t\treturn PopoverHorizontalAlign.Start;\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
@@ -115,12 +115,12 @@ declare abstract class Popup extends UI5Element {
115
115
  _shouldFocusRoot?: boolean;
116
116
  _zIndex?: number;
117
117
  _focusedElementBeforeOpen?: HTMLElement | null;
118
+ _opening: boolean;
118
119
  constructor();
119
120
  onBeforeRendering(): void;
120
121
  onAfterRendering(): void;
121
122
  onEnterDOM(): void;
122
123
  onExitDOM(): void;
123
- get _displayProp(): string;
124
124
  _resize(): void;
125
125
  /**
126
126
  * Prevents the user from interacting with the content under the block layer
@@ -169,6 +169,7 @@ declare abstract class Popup extends UI5Element {
169
169
  */
170
170
  isOpen(): boolean;
171
171
  isFocusWithin(): boolean;
172
+ get _getBlockingLayer(): HTMLElement;
172
173
  /**
173
174
  * Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking
174
175
  * @protected
@@ -232,9 +233,6 @@ declare abstract class Popup extends UI5Element {
232
233
  get styles(): {
233
234
  root: {};
234
235
  content: {};
235
- blockLayer: {
236
- zIndex: string | number;
237
- };
238
236
  };
239
237
  get classes(): ClassMap;
240
238
  }
package/dist/Popup.js CHANGED
@@ -12,22 +12,21 @@ import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
12
12
  import property from "@ui5/webcomponents-base/dist/decorators/property.js";
13
13
  import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
14
14
  import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
15
- import { isChrome, isSafari } from "@ui5/webcomponents-base/dist/Device.js";
15
+ import { isChrome, isSafari, isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
16
16
  import { getFirstFocusableElement, getLastFocusableElement } from "@ui5/webcomponents-base/dist/util/FocusableElements.js";
17
17
  import { getEffectiveAriaLabelText } from "@ui5/webcomponents-base/dist/util/AriaLabelHelper.js";
18
18
  import getEffectiveScrollbarStyle from "@ui5/webcomponents-base/dist/util/getEffectiveScrollbarStyle.js";
19
19
  import { hasStyle, createStyle } from "@ui5/webcomponents-base/dist/ManagedStyles.js";
20
20
  import { isEnter, isTabPrevious } from "@ui5/webcomponents-base/dist/Keys.js";
21
- import { getNextZIndex, getFocusedElement, isFocusedElementWithinNode } from "@ui5/webcomponents-base/dist/util/PopupUtils.js";
21
+ import { getFocusedElement, isFocusedElementWithinNode } from "@ui5/webcomponents-base/dist/util/PopupUtils.js";
22
22
  import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
23
23
  import MediaRange from "@ui5/webcomponents-base/dist/MediaRange.js";
24
24
  import PopupTemplate from "./generated/templates/PopupTemplate.lit.js";
25
- import PopupBlockLayer from "./generated/templates/PopupBlockLayerTemplate.lit.js";
26
25
  import PopupAccessibleRole from "./types/PopupAccessibleRole.js";
27
26
  import { addOpenedPopup, removeOpenedPopup } from "./popup-utils/OpenedPopupsRegistry.js";
28
27
  // Styles
29
28
  import popupStlyes from "./generated/themes/Popup.css.js";
30
- import popupStaticAreaStyles from "./generated/themes/PopupStaticAreaStyles.css.js";
29
+ import popupBlockLayerStyles from "./generated/themes/PopupBlockLayer.css.js";
31
30
  import globalStyles from "./generated/themes/PopupGlobal.css.js";
32
31
  const createBlockingStyle = () => {
33
32
  if (!hasStyle("data-ui5-popup-scroll-blocker")) {
@@ -69,16 +68,33 @@ const pageScrollingBlockers = new Set();
69
68
  let Popup = Popup_1 = class Popup extends UI5Element {
70
69
  constructor() {
71
70
  super();
71
+ this._opening = false;
72
72
  this._resizeHandler = this._resize.bind(this);
73
+ this._getRealDomRef = () => {
74
+ return this.shadowRoot.querySelector("[root-element]");
75
+ };
73
76
  }
74
77
  onBeforeRendering() {
75
- this._blockLayerHidden = !this.isOpen() || !this.isTopModalPopup;
78
+ if (this._getBlockingLayer) {
79
+ if (!this.isOpen() || !this.isTopModalPopup) {
80
+ this._getBlockingLayer.hidePopover();
81
+ }
82
+ else if (!this.shouldHideBackdrop) {
83
+ this._getBlockingLayer.showPopover();
84
+ }
85
+ }
76
86
  }
77
87
  onAfterRendering() {
78
- this._updateMediaRange();
88
+ renderFinished().then(() => {
89
+ this._updateMediaRange();
90
+ });
79
91
  }
80
92
  onEnterDOM() {
93
+ this.setAttribute("popover", "manual");
81
94
  ResizeHandler.register(this, this._resizeHandler);
95
+ if (isDesktop()) {
96
+ this.setAttribute("desktop", "");
97
+ }
82
98
  }
83
99
  onExitDOM() {
84
100
  if (this.isOpen()) {
@@ -87,9 +103,6 @@ let Popup = Popup_1 = class Popup extends UI5Element {
87
103
  }
88
104
  ResizeHandler.deregister(this, this._resizeHandler);
89
105
  }
90
- get _displayProp() {
91
- return "block";
92
- }
93
106
  _resize() {
94
107
  this._updateMediaRange();
95
108
  }
@@ -231,32 +244,36 @@ let Popup = Popup_1 = class Popup extends UI5Element {
231
244
  isFocusWithin() {
232
245
  return isFocusedElementWithinNode(this._root);
233
246
  }
247
+ get _getBlockingLayer() {
248
+ return this.shadowRoot.querySelector(".ui5-block-layer");
249
+ }
234
250
  /**
235
251
  * Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking
236
252
  * @protected
237
253
  */
238
254
  async _open(preventInitialFocus) {
239
255
  const prevented = !this.fireEvent("before-open", {}, true, false);
240
- if (prevented) {
256
+ if (prevented || this._opening) {
241
257
  return;
242
258
  }
259
+ this._opening = true;
260
+ // Await render before trying to access the blocking layer
261
+ await renderFinished();
243
262
  if (this.isModal && !this.shouldHideBackdrop) {
244
263
  // create static area item ref for block layer
245
- this.getStaticAreaItemDomRef();
264
+ this._getBlockingLayer.showPopover();
246
265
  this._blockLayerHidden = false;
247
266
  Popup_1.blockPageScrolling(this);
248
267
  }
249
- this._zIndex = getNextZIndex();
250
- this.style.zIndex = this._zIndex?.toString() || "";
251
268
  this._focusedElementBeforeOpen = getFocusedElement();
252
269
  this._show();
253
270
  if (this.getDomRef()) {
254
271
  this._updateMediaRange();
255
272
  }
256
273
  this._addOpenedPopup();
274
+ this._opening = false;
257
275
  this.opened = true;
258
276
  this.open = true;
259
- await renderFinished();
260
277
  if (!this._disableInitialFocus && !preventInitialFocus) {
261
278
  await this.applyInitialFocus();
262
279
  }
@@ -286,6 +303,7 @@ let Popup = Popup_1 = class Popup extends UI5Element {
286
303
  }
287
304
  if (this.isModal) {
288
305
  this._blockLayerHidden = true;
306
+ this._getBlockingLayer.hidePopover();
289
307
  Popup_1.unblockPageScrolling(this);
290
308
  }
291
309
  this.hide();
@@ -322,14 +340,17 @@ let Popup = Popup_1 = class Popup extends UI5Element {
322
340
  * @protected
323
341
  */
324
342
  _show() {
325
- this.style.display = this._displayProp;
343
+ if (this.isConnected) {
344
+ this.setAttribute("popover", "manual");
345
+ this.showPopover();
346
+ }
326
347
  }
327
348
  /**
328
349
  * Sets "none" display to the popup
329
350
  * @protected
330
351
  */
331
352
  hide() {
332
- this.style.display = "none";
353
+ this.isConnected && this.hidePopover();
333
354
  }
334
355
  /**
335
356
  * Ensures ariaLabel is never null or empty string
@@ -354,9 +375,6 @@ let Popup = Popup_1 = class Popup extends UI5Element {
354
375
  return {
355
376
  root: {},
356
377
  content: {},
357
- blockLayer: {
358
- "zIndex": this._zIndex ? this._zIndex - 1 : "",
359
- },
360
378
  };
361
379
  }
362
380
  get classes() {
@@ -410,10 +428,8 @@ __decorate([
410
428
  Popup = Popup_1 = __decorate([
411
429
  customElement({
412
430
  renderer: litRender,
413
- styles: popupStlyes,
431
+ styles: [popupStlyes, popupBlockLayerStyles],
414
432
  template: PopupTemplate,
415
- staticAreaTemplate: PopupBlockLayer,
416
- staticAreaStyles: popupStaticAreaStyles,
417
433
  })
418
434
  /**
419
435
  * Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening. **This event does not bubble.**
package/dist/Popup.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.js","sourceRoot":"","sources":["../src/Popup.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AAC3H,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,0BAA0B,MAAM,iEAAiE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,iBAAiB,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,CAAC;GACD,KAAK,CAuenB;AAED,eAAe,KAAK,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport type { ClassMap } from \"@ui5/webcomponents-base/dist/types.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport { isChrome, isSafari } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport { getFirstFocusableElement, getLastFocusableElement } from \"@ui5/webcomponents-base/dist/util/FocusableElements.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport getEffectiveScrollbarStyle from \"@ui5/webcomponents-base/dist/util/getEffectiveScrollbarStyle.js\";\nimport { hasStyle, createStyle } from \"@ui5/webcomponents-base/dist/ManagedStyles.js\";\nimport { isEnter, isTabPrevious } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { getNextZIndex, getFocusedElement, isFocusedElementWithinNode } from \"@ui5/webcomponents-base/dist/util/PopupUtils.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport PopupTemplate from \"./generated/templates/PopupTemplate.lit.js\";\nimport PopupBlockLayer from \"./generated/templates/PopupBlockLayerTemplate.lit.js\";\nimport PopupAccessibleRole from \"./types/PopupAccessibleRole.js\";\nimport { addOpenedPopup, removeOpenedPopup } from \"./popup-utils/OpenedPopupsRegistry.js\";\n\n// Styles\nimport popupStlyes from \"./generated/themes/Popup.css.js\";\nimport popupStaticAreaStyles from \"./generated/themes/PopupStaticAreaStyles.css.js\";\nimport globalStyles from \"./generated/themes/PopupGlobal.css.js\";\n\nconst createBlockingStyle = (): void => {\n\tif (!hasStyle(\"data-ui5-popup-scroll-blocker\")) {\n\t\tcreateStyle(globalStyles, \"data-ui5-popup-scroll-blocker\");\n\t}\n};\n\ncreateBlockingStyle();\n\nconst pageScrollingBlockers = new Set<Popup>();\n\ntype PopupScrollEventDetail = {\n\tscrollTop: number;\n\ttargetRef: HTMLElement;\n}\n\ntype PopupBeforeCloseEventDetail = {\n\tescPressed: boolean;\n}\n\n/**\n * @class\n * ### Overview\n * Base class for all popup Web Components.\n *\n * If you need to create your own popup-like custom UI5 Web Components, it is highly recommended that you extend\n * at least Popup in order to have consistency with other popups in terms of modal behavior and z-index management.\n *\n * 1. The Popup class handles modality:\n * - The \"isModal\" getter can be overridden by derivatives to provide their own conditions when they are modal or not\n * - Derivatives may call the \"blockPageScrolling\" and \"unblockPageScrolling\" static methods to temporarily remove scrollbars on the html element\n * - Derivatives may call the \"open\" and \"close\" methods which handle focus, manage the popup registry and for modal popups, manage the blocking layer\n *\n * 2. Provides blocking layer (relevant for modal popups only):\n * - It is in the static area\n * - Controlled by the \"open\" and \"close\" methods\n *\n * 3. The Popup class \"traps\" focus:\n * - Derivatives may call the \"applyInitialFocus\" method (usually when opening, to transfer focus inside the popup)\n *\n * 4. The Popup class automatically assigns \"z-index\"\n * - Each time a popup is opened, it gets a higher than the previously opened popup z-index\n *\n * 5. The template of this component exposes two inline partials you can override in derivatives:\n * - beforeContent (upper part of the box, useful for header/title/close button)\n * - afterContent (lower part, useful for footer/action buttons)\n * @constructor\n * @extends UI5Element\n * @public\n */\n@customElement({\n\trenderer: litRender,\n\tstyles: popupStlyes,\n\ttemplate: PopupTemplate,\n\tstaticAreaTemplate: PopupBlockLayer,\n\tstaticAreaStyles: popupStaticAreaStyles,\n})\n/**\n * Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening. **This event does not bubble.**\n * @public\n * @allowPreventDefault\n */\n@event(\"before-open\")\n\n/**\n * Fired after the component is opened. **This event does not bubble.**\n * @public\n */\n@event(\"after-open\")\n\n/**\n * Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing. **This event does not bubble.**\n * @public\n * @allowPreventDefault\n * @param {boolean} escPressed Indicates that `ESC` key has triggered the event.\n */\n@event<PopupBeforeCloseEventDetail>(\"before-close\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\tescPressed: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\n\n/**\n * Fired after the component is closed. **This event does not bubble.**\n * @public\n */\n@event(\"after-close\")\n\n/**\n * Fired whenever the popup content area is scrolled\n * @private\n */\n@event(\"scroll\")\nabstract class Popup extends UI5Element {\n\t/**\n\t * Defines the ID of the HTML Element, which will get the initial focus.\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tinitialFocus!: string;\n\n\t/**\n\t * Defines if the focus should be returned to the previously focused element,\n\t * when the popup closes.\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.8\n\t*/\n\t@property({ type: Boolean })\n\tpreventFocusRestore!: boolean;\n\n\t/**\n\t * Indicates if the element is open\n\t * @public\n\t * @default false\n\t * @since 1.2.0\n\t */\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Indicates if the element is already open\n\t * @private\n\t * @default false\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\topened!: boolean;\n\n\t/**\n\t * Defines the accessible name of the component.\n\t * @default undefined\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ defaultValue: undefined })\n\taccessibleName?: string;\n\n\t/**\n\t * Defines the IDs of the elements that label the component.\n\t * @default \"\"\n\t * @public\n\t * @since 1.1.0\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t * Allows setting a custom role.\n\t * @default \"Dialog\"\n\t * @public\n\t * @since 1.10.0\n\t */\n\t@property({ type: PopupAccessibleRole, defaultValue: PopupAccessibleRole.Dialog })\n\taccessibleRole!: `${PopupAccessibleRole}`;\n\n\t/**\n\t * Defines the current media query size.\n\t * @private\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_disableInitialFocus!: boolean;\n\n\t@property({ type: Boolean })\n\t_blockLayerHidden!: boolean;\n\n\t/**\n\t * Indicates if the element is the top modal popup\n\t *\n\t * This property is calculated automatically\n\t * @private\n\t * @default false\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\tisTopModalPopup!: boolean;\n\n\t/**\n\t * Defines the content of the Popup.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>\n\n\t_resizeHandler: ResizeObserverCallback;\n\t_shouldFocusRoot?: boolean;\n\t_zIndex?: number;\n\t_focusedElementBeforeOpen?: HTMLElement | null;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._resizeHandler = this._resize.bind(this);\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._blockLayerHidden = !this.isOpen() || !this.isTopModalPopup;\n\t}\n\n\tonAfterRendering() {\n\t\tthis._updateMediaRange();\n\t}\n\n\tonEnterDOM() {\n\t\tResizeHandler.register(this, this._resizeHandler);\n\t}\n\n\tonExitDOM() {\n\t\tif (this.isOpen()) {\n\t\t\tPopup.unblockPageScrolling(this);\n\t\t\tthis._removeOpenedPopup();\n\t\t}\n\n\t\tResizeHandler.deregister(this, this._resizeHandler);\n\t}\n\n\tget _displayProp() {\n\t\treturn \"block\";\n\t}\n\n\t_resize() {\n\t\tthis._updateMediaRange();\n\t}\n\n\t/**\n\t * Prevents the user from interacting with the content under the block layer\n\t */\n\t_preventBlockLayerFocus(e: KeyboardEvent | MouseEvent) {\n\t\te.preventDefault();\n\t}\n\n\t/**\n\t * Temporarily removes scrollbars from the html element\n\t * @protected\n\t */\n\tstatic blockPageScrolling(popup: Popup) {\n\t\tpageScrollingBlockers.add(popup);\n\n\t\tif (pageScrollingBlockers.size !== 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tdocument.documentElement.classList.add(\"ui5-popup-scroll-blocker\");\n\t}\n\n\t/**\n\t * Restores scrollbars on the html element, if needed\n\t * @protected\n\t */\n\tstatic unblockPageScrolling(popup: Popup) {\n\t\tpageScrollingBlockers.delete(popup);\n\n\t\tif (pageScrollingBlockers.size !== 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tdocument.documentElement.classList.remove(\"ui5-popup-scroll-blocker\");\n\t}\n\n\t_scroll(e: Event) {\n\t\tthis.fireEvent<PopupScrollEventDetail>(\"scroll\", {\n\t\t\tscrollTop: (e.target as HTMLElement).scrollTop,\n\t\t\ttargetRef: e.target as HTMLElement,\n\t\t});\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tconst isTabOutAttempt = e.target === this._root && isTabPrevious(e);\n\t\t// if the popup is closed, focus is already moved, so Enter keydown may result in click on the newly focused element\n\t\tconst isEnterOnClosedPopupChild = isEnter(e) && !this.isOpen();\n\n\t\tif (isTabOutAttempt || isEnterOnClosedPopupChild) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onfocusout(e: FocusEvent) {\n\t\t// relatedTarget is the element, which will get focus. If no such element exists, focus the root.\n\t\t// This happens after the mouse is released in order to not interrupt text selection.\n\t\tif (!e.relatedTarget) {\n\t\t\tthis._shouldFocusRoot = true;\n\t\t}\n\t}\n\n\t_onmousedown(e: MouseEvent) {\n\t\tif (!isSafari()) { // Remove when adopting native dialog\n\t\t\tthis._root.removeAttribute(\"tabindex\");\n\t\t}\n\n\t\tif (this.shadowRoot!.contains(e.target as HTMLElement)) {\n\t\t\tthis._shouldFocusRoot = true;\n\t\t} else {\n\t\t\tthis._shouldFocusRoot = false;\n\t\t}\n\t}\n\n\t_onmouseup() {\n\t\tif (!isSafari()) { // Remove when adopting native dialog\n\t\t\tthis._root.tabIndex = -1;\n\t\t}\n\n\t\tif (this._shouldFocusRoot) {\n\t\t\tif (isChrome()) {\n\t\t\t\tthis._root.focus();\n\t\t\t}\n\t\t\tthis._shouldFocusRoot = false;\n\t\t}\n\t}\n\n\t/**\n\t * Focus trapping\n\t * @private\n\t */\n\tasync forwardToFirst() {\n\t\tconst firstFocusable = await getFirstFocusableElement(this);\n\n\t\tif (firstFocusable) {\n\t\t\tfirstFocusable.focus();\n\t\t} else {\n\t\t\tthis._root.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Focus trapping\n\t * @private\n\t */\n\tasync forwardToLast() {\n\t\tconst lastFocusable = await getLastFocusableElement(this);\n\n\t\tif (lastFocusable) {\n\t\t\tlastFocusable.focus();\n\t\t} else {\n\t\t\tthis._root.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Use this method to focus the element denoted by \"initialFocus\", if provided, or the first focusable element otherwise.\n\t * @protected\n\t */\n\tasync applyInitialFocus() {\n\t\tawait this.applyFocus();\n\t}\n\n\t/**\n\t * Focuses the element denoted by `initialFocus`, if provided,\n\t * or the first focusable element otherwise.\n\t * @public\n\t * @returns Promise that resolves when the focus is applied\n\t */\n\tasync applyFocus(): Promise<void> {\n\t\tawait this._waitForDomRef();\n\n\t\tif (this.getRootNode() === this) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet element;\n\n\t\tif (this.initialFocus) {\n\t\t\telement = (this.getRootNode() as Document).getElementById(this.initialFocus)\n\t\t\t|| document.getElementById(this.initialFocus);\n\t\t}\n\n\t\telement = element || await getFirstFocusableElement(this) || this._root; // in case of no focusable content focus the root\n\n\t\tif (element) {\n\t\t\tif (element === this._root) {\n\t\t\t\telement.tabIndex = -1;\n\t\t\t}\n\t\t\telement.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Tells if the component is opened\n\t * @public\n\t */\n\tisOpen() : boolean {\n\t\treturn this.opened;\n\t}\n\n\tisFocusWithin() {\n\t\treturn isFocusedElementWithinNode(this._root);\n\t}\n\n\t/**\n\t * Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking\n\t * @protected\n\t */\n\tasync _open(preventInitialFocus: boolean) {\n\t\tconst prevented = !this.fireEvent(\"before-open\", {}, true, false);\n\t\tif (prevented) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isModal && !this.shouldHideBackdrop) {\n\t\t\t// create static area item ref for block layer\n\t\t\tthis.getStaticAreaItemDomRef();\n\t\t\tthis._blockLayerHidden = false;\n\t\t\tPopup.blockPageScrolling(this);\n\t\t}\n\n\t\tthis._zIndex = getNextZIndex();\n\t\tthis.style.zIndex = this._zIndex?.toString() || \"\";\n\n\t\tthis._focusedElementBeforeOpen = getFocusedElement();\n\n\t\tthis._show();\n\n\t\tif (this.getDomRef()) {\n\t\t\tthis._updateMediaRange();\n\t\t}\n\n\t\tthis._addOpenedPopup();\n\n\t\tthis.opened = true;\n\t\tthis.open = true;\n\n\t\tawait renderFinished();\n\n\t\tif (!this._disableInitialFocus && !preventInitialFocus) {\n\t\t\tawait this.applyInitialFocus();\n\t\t}\n\n\t\tthis.fireEvent(\"after-open\", {}, false, false);\n\t}\n\n\t_updateMediaRange() {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\n\t}\n\n\t/**\n\t * Adds the popup to the \"opened popups registry\"\n\t * @protected\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopup(this);\n\t}\n\n\t/**\n\t * Closes the popup.\n\t * @public\n\t */\n\tclose(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false): void {\n\t\tif (!this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst prevented = !this.fireEvent<PopupBeforeCloseEventDetail>(\"before-close\", { escPressed }, true, false);\n\t\tif (prevented) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isModal) {\n\t\t\tthis._blockLayerHidden = true;\n\t\t\tPopup.unblockPageScrolling(this);\n\t\t}\n\n\t\tthis.hide();\n\t\tthis.opened = false;\n\t\tthis.open = false;\n\n\t\tif (!preventRegistryUpdate) {\n\t\t\tthis._removeOpenedPopup();\n\t\t}\n\n\t\tif (!this.preventFocusRestore && !preventFocusRestore) {\n\t\t\tthis.resetFocus();\n\t\t}\n\n\t\tthis.fireEvent(\"after-close\", {}, false, false);\n\t}\n\n\t/**\n\t * Removes the popup from the \"opened popups registry\"\n\t * @protected\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopup(this);\n\t}\n\n\t/**\n\t * Returns the focus to the previously focused element\n\t * @protected\n\t */\n\tresetFocus() {\n\t\tif (!this._focusedElementBeforeOpen) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusedElementBeforeOpen.focus();\n\t\tthis._focusedElementBeforeOpen = null;\n\t}\n\n\t/**\n\t * Sets \"block\" display to the popup. The property can be overriden by derivatives of Popup.\n\t * @protected\n\t */\n\t_show() {\n\t\tthis.style.display = this._displayProp;\n\t}\n\n\t/**\n\t * Sets \"none\" display to the popup\n\t * @protected\n\t */\n\thide() {\n\t\tthis.style.display = \"none\";\n\t}\n\n\t/**\n\t * Implement this getter with relevant logic regarding the modality of the popup (e.g. based on a public property)\n\t * @protected\n\t */\n\tabstract get isModal(): boolean\n\n\t/**\n\t * Implement this getter with relevant logic in order to hide the block layer (f.e. based on a public property)\n\t * @protected\n\t */\n\tabstract get shouldHideBackdrop(): boolean\n\n\t/**\n\t * Return the ID of an element in the shadow DOM that is going to label this popup\n\t * @protected\n\t */\n\tabstract get _ariaLabelledBy(): string | undefined\n\n\t/**\n\t * Ensures ariaLabel is never null or empty string\n\t * @protected\n\t */\n\tget _ariaLabel() {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget _root(): HTMLElement {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popup-root\")!;\n\t}\n\n\tget _role(): string | undefined {\n\t\treturn (this.accessibleRole === PopupAccessibleRole.None) ? undefined : this.accessibleRole.toLowerCase();\n\t}\n\n\tget _ariaModal(): string | undefined {\n\t\treturn this.accessibleRole === PopupAccessibleRole.None ? undefined : \"true\";\n\t}\n\n\tget contentDOM(): HTMLElement {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popup-content\")!;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\troot: {},\n\t\t\tcontent: {},\n\t\t\tblockLayer: {\n\t\t\t\t\"zIndex\": this._zIndex ? this._zIndex - 1 : \"\",\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes(): ClassMap {\n\t\treturn {\n\t\t\troot: {\n\t\t\t\t\"ui5-popup-root\": true,\n\t\t\t\t\"ui5-content-native-scrollbars\": getEffectiveScrollbarStyle(),\n\t\t\t},\n\t\t\tcontent: {\n\t\t\t\t\"ui5-popup-content\": true,\n\t\t\t},\n\t\t};\n\t}\n}\n\nexport default Popup;\n\nexport type {\n\tPopupScrollEventDetail,\n\tPopupBeforeCloseEventDetail,\n};\n"]}
1
+ {"version":3,"file":"Popup.js","sourceRoot":"","sources":["../src/Popup.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAE3E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AAC3H,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,OAAO,0BAA0B,MAAM,iEAAiE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,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CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;8CACrB;AAO1B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;sCACjB;AA9Fd,KAAK;IA9CnB,aAAa,CAAC;QACd,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,WAAW,EAAE,qBAAqB,CAAC;QAC5C,QAAQ,EAAE,aAAa;KACvB,CAAC;IACF;;;;OAIG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;OAGG;;IACF,KAAK,CAAC,YAAY,CAAC;IAEpB;;;;;OAKG;;IACF,KAAK,CAA8B,cAAc,EAAE;QACnD,MAAM,EAAE;YACP;;eAEG;YACH,UAAU,EAAE;gBACX,IAAI,EAAE,OAAO;aACb;SACD;KACD,CAAC;IAEF;;;OAGG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;OAGG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACD,KAAK,CA2fnB;AAED,eAAe,KAAK,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport { renderFinished } from \"@ui5/webcomponents-base/dist/Render.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport type { ClassMap } from \"@ui5/webcomponents-base/dist/types.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport { isChrome, isSafari, isDesktop } from \"@ui5/webcomponents-base/dist/Device.js\";\nimport { getFirstFocusableElement, getLastFocusableElement } from \"@ui5/webcomponents-base/dist/util/FocusableElements.js\";\nimport { getEffectiveAriaLabelText } from \"@ui5/webcomponents-base/dist/util/AriaLabelHelper.js\";\nimport getEffectiveScrollbarStyle from \"@ui5/webcomponents-base/dist/util/getEffectiveScrollbarStyle.js\";\nimport { hasStyle, createStyle } from \"@ui5/webcomponents-base/dist/ManagedStyles.js\";\nimport { isEnter, isTabPrevious } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport { getFocusedElement, isFocusedElementWithinNode } from \"@ui5/webcomponents-base/dist/util/PopupUtils.js\";\nimport ResizeHandler from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport type { ResizeObserverCallback } from \"@ui5/webcomponents-base/dist/delegate/ResizeHandler.js\";\nimport MediaRange from \"@ui5/webcomponents-base/dist/MediaRange.js\";\nimport PopupTemplate from \"./generated/templates/PopupTemplate.lit.js\";\nimport PopupAccessibleRole from \"./types/PopupAccessibleRole.js\";\nimport { addOpenedPopup, removeOpenedPopup } from \"./popup-utils/OpenedPopupsRegistry.js\";\n\n// Styles\nimport popupStlyes from \"./generated/themes/Popup.css.js\";\nimport popupBlockLayerStyles from \"./generated/themes/PopupBlockLayer.css.js\";\nimport globalStyles from \"./generated/themes/PopupGlobal.css.js\";\n\nconst createBlockingStyle = (): void => {\n\tif (!hasStyle(\"data-ui5-popup-scroll-blocker\")) {\n\t\tcreateStyle(globalStyles, \"data-ui5-popup-scroll-blocker\");\n\t}\n};\n\ncreateBlockingStyle();\n\nconst pageScrollingBlockers = new Set<Popup>();\n\ntype PopupScrollEventDetail = {\n\tscrollTop: number;\n\ttargetRef: HTMLElement;\n}\n\ntype PopupBeforeCloseEventDetail = {\n\tescPressed: boolean;\n}\n\n/**\n * @class\n * ### Overview\n * Base class for all popup Web Components.\n *\n * If you need to create your own popup-like custom UI5 Web Components, it is highly recommended that you extend\n * at least Popup in order to have consistency with other popups in terms of modal behavior and z-index management.\n *\n * 1. The Popup class handles modality:\n * - The \"isModal\" getter can be overridden by derivatives to provide their own conditions when they are modal or not\n * - Derivatives may call the \"blockPageScrolling\" and \"unblockPageScrolling\" static methods to temporarily remove scrollbars on the html element\n * - Derivatives may call the \"open\" and \"close\" methods which handle focus, manage the popup registry and for modal popups, manage the blocking layer\n *\n * 2. Provides blocking layer (relevant for modal popups only):\n * - It is in the static area\n * - Controlled by the \"open\" and \"close\" methods\n *\n * 3. The Popup class \"traps\" focus:\n * - Derivatives may call the \"applyInitialFocus\" method (usually when opening, to transfer focus inside the popup)\n *\n * 4. The Popup class automatically assigns \"z-index\"\n * - Each time a popup is opened, it gets a higher than the previously opened popup z-index\n *\n * 5. The template of this component exposes two inline partials you can override in derivatives:\n * - beforeContent (upper part of the box, useful for header/title/close button)\n * - afterContent (lower part, useful for footer/action buttons)\n * @constructor\n * @extends UI5Element\n * @public\n */\n@customElement({\n\trenderer: litRender,\n\tstyles: [popupStlyes, popupBlockLayerStyles],\n\ttemplate: PopupTemplate,\n})\n/**\n * Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening. **This event does not bubble.**\n * @public\n * @allowPreventDefault\n */\n@event(\"before-open\")\n\n/**\n * Fired after the component is opened. **This event does not bubble.**\n * @public\n */\n@event(\"after-open\")\n\n/**\n * Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing. **This event does not bubble.**\n * @public\n * @allowPreventDefault\n * @param {boolean} escPressed Indicates that `ESC` key has triggered the event.\n */\n@event<PopupBeforeCloseEventDetail>(\"before-close\", {\n\tdetail: {\n\t\t/**\n\t\t * @public\n\t\t */\n\t\tescPressed: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n})\n\n/**\n * Fired after the component is closed. **This event does not bubble.**\n * @public\n */\n@event(\"after-close\")\n\n/**\n * Fired whenever the popup content area is scrolled\n * @private\n */\n@event(\"scroll\")\nabstract class Popup extends UI5Element {\n\t/**\n\t * Defines the ID of the HTML Element, which will get the initial focus.\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\tinitialFocus!: string;\n\n\t/**\n\t * Defines if the focus should be returned to the previously focused element,\n\t * when the popup closes.\n\t * @default false\n\t * @public\n\t * @since 1.0.0-rc.8\n\t*/\n\t@property({ type: Boolean })\n\tpreventFocusRestore!: boolean;\n\n\t/**\n\t * Indicates if the element is open\n\t * @public\n\t * @default false\n\t * @since 1.2.0\n\t */\n\t@property({ type: Boolean })\n\topen!: boolean;\n\n\t/**\n\t * Indicates if the element is already open\n\t * @private\n\t * @default false\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\topened!: boolean;\n\n\t/**\n\t * Defines the accessible name of the component.\n\t * @default undefined\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ defaultValue: undefined })\n\taccessibleName?: string;\n\n\t/**\n\t * Defines the IDs of the elements that label the component.\n\t * @default \"\"\n\t * @public\n\t * @since 1.1.0\n\t */\n\t@property({ defaultValue: \"\" })\n\taccessibleNameRef!: string;\n\n\t/**\n\t * Allows setting a custom role.\n\t * @default \"Dialog\"\n\t * @public\n\t * @since 1.10.0\n\t */\n\t@property({ type: PopupAccessibleRole, defaultValue: PopupAccessibleRole.Dialog })\n\taccessibleRole!: `${PopupAccessibleRole}`;\n\n\t/**\n\t * Defines the current media query size.\n\t * @private\n\t */\n\t@property()\n\tmediaRange!: string;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_disableInitialFocus!: boolean;\n\n\t@property({ type: Boolean })\n\t_blockLayerHidden!: boolean;\n\n\t/**\n\t * Indicates if the element is the top modal popup\n\t *\n\t * This property is calculated automatically\n\t * @private\n\t * @default false\n\t */\n\t@property({ type: Boolean, noAttribute: true })\n\tisTopModalPopup!: boolean;\n\n\t/**\n\t * Defines the content of the Popup.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement, \"default\": true })\n\tcontent!: Array<HTMLElement>\n\n\t_resizeHandler: ResizeObserverCallback;\n\t_shouldFocusRoot?: boolean;\n\t_zIndex?: number;\n\t_focusedElementBeforeOpen?: HTMLElement | null;\n\t_opening = false;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._resizeHandler = this._resize.bind(this);\n\n\t\tthis._getRealDomRef = () => {\n\t\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\"[root-element]\")!;\n\t\t};\n\t}\n\n\tonBeforeRendering() {\n\t\tif (this._getBlockingLayer) {\n\t\t\tif (!this.isOpen() || !this.isTopModalPopup) {\n\t\t\t\tthis._getBlockingLayer.hidePopover();\n\t\t\t} else if (!this.shouldHideBackdrop) {\n\t\t\t\tthis._getBlockingLayer.showPopover();\n\t\t\t}\n\t\t}\n\t}\n\n\tonAfterRendering() {\n\t\trenderFinished().then(() => {\n\t\t\tthis._updateMediaRange();\n\t\t});\n\t}\n\n\tonEnterDOM() {\n\t\tthis.setAttribute(\"popover\", \"manual\");\n\t\tResizeHandler.register(this, this._resizeHandler);\n\t\tif (isDesktop()) {\n\t\t\tthis.setAttribute(\"desktop\", \"\");\n\t\t}\n\t}\n\n\tonExitDOM() {\n\t\tif (this.isOpen()) {\n\t\t\tPopup.unblockPageScrolling(this);\n\t\t\tthis._removeOpenedPopup();\n\t\t}\n\n\t\tResizeHandler.deregister(this, this._resizeHandler);\n\t}\n\n\t_resize() {\n\t\tthis._updateMediaRange();\n\t}\n\n\t/**\n\t * Prevents the user from interacting with the content under the block layer\n\t */\n\t_preventBlockLayerFocus(e: KeyboardEvent | MouseEvent) {\n\t\te.preventDefault();\n\t}\n\n\t/**\n\t * Temporarily removes scrollbars from the html element\n\t * @protected\n\t */\n\tstatic blockPageScrolling(popup: Popup) {\n\t\tpageScrollingBlockers.add(popup);\n\n\t\tif (pageScrollingBlockers.size !== 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tdocument.documentElement.classList.add(\"ui5-popup-scroll-blocker\");\n\t}\n\n\t/**\n\t * Restores scrollbars on the html element, if needed\n\t * @protected\n\t */\n\tstatic unblockPageScrolling(popup: Popup) {\n\t\tpageScrollingBlockers.delete(popup);\n\n\t\tif (pageScrollingBlockers.size !== 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tdocument.documentElement.classList.remove(\"ui5-popup-scroll-blocker\");\n\t}\n\n\t_scroll(e: Event) {\n\t\tthis.fireEvent<PopupScrollEventDetail>(\"scroll\", {\n\t\t\tscrollTop: (e.target as HTMLElement).scrollTop,\n\t\t\ttargetRef: e.target as HTMLElement,\n\t\t});\n\t}\n\n\t_onkeydown(e: KeyboardEvent) {\n\t\tconst isTabOutAttempt = e.target === this._root && isTabPrevious(e);\n\t\t// if the popup is closed, focus is already moved, so Enter keydown may result in click on the newly focused element\n\t\tconst isEnterOnClosedPopupChild = isEnter(e) && !this.isOpen();\n\n\t\tif (isTabOutAttempt || isEnterOnClosedPopupChild) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_onfocusout(e: FocusEvent) {\n\t\t// relatedTarget is the element, which will get focus. If no such element exists, focus the root.\n\t\t// This happens after the mouse is released in order to not interrupt text selection.\n\t\tif (!e.relatedTarget) {\n\t\t\tthis._shouldFocusRoot = true;\n\t\t}\n\t}\n\n\t_onmousedown(e: MouseEvent) {\n\t\tif (!isSafari()) { // Remove when adopting native dialog\n\t\t\tthis._root.removeAttribute(\"tabindex\");\n\t\t}\n\n\t\tif (this.shadowRoot!.contains(e.target as HTMLElement)) {\n\t\t\tthis._shouldFocusRoot = true;\n\t\t} else {\n\t\t\tthis._shouldFocusRoot = false;\n\t\t}\n\t}\n\n\t_onmouseup() {\n\t\tif (!isSafari()) { // Remove when adopting native dialog\n\t\t\tthis._root.tabIndex = -1;\n\t\t}\n\n\t\tif (this._shouldFocusRoot) {\n\t\t\tif (isChrome()) {\n\t\t\t\tthis._root.focus();\n\t\t\t}\n\t\t\tthis._shouldFocusRoot = false;\n\t\t}\n\t}\n\n\t/**\n\t * Focus trapping\n\t * @private\n\t */\n\tasync forwardToFirst() {\n\t\tconst firstFocusable = await getFirstFocusableElement(this);\n\n\t\tif (firstFocusable) {\n\t\t\tfirstFocusable.focus();\n\t\t} else {\n\t\t\tthis._root.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Focus trapping\n\t * @private\n\t */\n\tasync forwardToLast() {\n\t\tconst lastFocusable = await getLastFocusableElement(this);\n\n\t\tif (lastFocusable) {\n\t\t\tlastFocusable.focus();\n\t\t} else {\n\t\t\tthis._root.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Use this method to focus the element denoted by \"initialFocus\", if provided, or the first focusable element otherwise.\n\t * @protected\n\t */\n\tasync applyInitialFocus() {\n\t\tawait this.applyFocus();\n\t}\n\n\t/**\n\t * Focuses the element denoted by `initialFocus`, if provided,\n\t * or the first focusable element otherwise.\n\t * @public\n\t * @returns Promise that resolves when the focus is applied\n\t */\n\tasync applyFocus(): Promise<void> {\n\t\tawait this._waitForDomRef();\n\n\t\tif (this.getRootNode() === this) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet element;\n\n\t\tif (this.initialFocus) {\n\t\t\telement = (this.getRootNode() as Document).getElementById(this.initialFocus)\n\t\t\t|| document.getElementById(this.initialFocus);\n\t\t}\n\n\t\telement = element || await getFirstFocusableElement(this) || this._root; // in case of no focusable content focus the root\n\n\t\tif (element) {\n\t\t\tif (element === this._root) {\n\t\t\t\telement.tabIndex = -1;\n\t\t\t}\n\t\t\telement.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Tells if the component is opened\n\t * @public\n\t */\n\tisOpen() : boolean {\n\t\treturn this.opened;\n\t}\n\n\tisFocusWithin() {\n\t\treturn isFocusedElementWithinNode(this._root);\n\t}\n\n\tget _getBlockingLayer() {\n\t\treturn this.shadowRoot!.querySelector<HTMLElement>(\".ui5-block-layer\")!;\n\t}\n\n\t/**\n\t * Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking\n\t * @protected\n\t */\n\tasync _open(preventInitialFocus: boolean) {\n\t\tconst prevented = !this.fireEvent(\"before-open\", {}, true, false);\n\n\t\tif (prevented || this._opening) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._opening = true;\n\n\t\t// Await render before trying to access the blocking layer\n\t\tawait renderFinished();\n\n\t\tif (this.isModal && !this.shouldHideBackdrop) {\n\t\t\t// create static area item ref for block layer\n\t\t\tthis._getBlockingLayer.showPopover();\n\t\t\tthis._blockLayerHidden = false;\n\t\t\tPopup.blockPageScrolling(this);\n\t\t}\n\n\t\tthis._focusedElementBeforeOpen = getFocusedElement();\n\n\t\tthis._show();\n\n\t\tif (this.getDomRef()) {\n\t\t\tthis._updateMediaRange();\n\t\t}\n\n\t\tthis._addOpenedPopup();\n\n\t\tthis._opening = false;\n\t\tthis.opened = true;\n\t\tthis.open = true;\n\n\t\tif (!this._disableInitialFocus && !preventInitialFocus) {\n\t\t\tawait this.applyInitialFocus();\n\t\t}\n\n\t\tthis.fireEvent(\"after-open\", {}, false, false);\n\t}\n\n\t_updateMediaRange() {\n\t\tthis.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\n\t}\n\n\t/**\n\t * Adds the popup to the \"opened popups registry\"\n\t * @protected\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopup(this);\n\t}\n\n\t/**\n\t * Closes the popup.\n\t * @public\n\t */\n\tclose(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false): void {\n\t\tif (!this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst prevented = !this.fireEvent<PopupBeforeCloseEventDetail>(\"before-close\", { escPressed }, true, false);\n\t\tif (prevented) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isModal) {\n\t\t\tthis._blockLayerHidden = true;\n\t\t\tthis._getBlockingLayer.hidePopover();\n\t\t\tPopup.unblockPageScrolling(this);\n\t\t}\n\n\t\tthis.hide();\n\t\tthis.opened = false;\n\t\tthis.open = false;\n\n\t\tif (!preventRegistryUpdate) {\n\t\t\tthis._removeOpenedPopup();\n\t\t}\n\n\t\tif (!this.preventFocusRestore && !preventFocusRestore) {\n\t\t\tthis.resetFocus();\n\t\t}\n\n\t\tthis.fireEvent(\"after-close\", {}, false, false);\n\t}\n\n\t/**\n\t * Removes the popup from the \"opened popups registry\"\n\t * @protected\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopup(this);\n\t}\n\n\t/**\n\t * Returns the focus to the previously focused element\n\t * @protected\n\t */\n\tresetFocus() {\n\t\tif (!this._focusedElementBeforeOpen) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focusedElementBeforeOpen.focus();\n\t\tthis._focusedElementBeforeOpen = null;\n\t}\n\n\t/**\n\t * Sets \"block\" display to the popup. The property can be overriden by derivatives of Popup.\n\t * @protected\n\t */\n\t_show() {\n\t\tif (this.isConnected) {\n\t\t\tthis.setAttribute(\"popover\", \"manual\");\n\t\t\tthis.showPopover();\n\t\t}\n\t}\n\n\t/**\n\t * Sets \"none\" display to the popup\n\t * @protected\n\t */\n\thide() {\n\t\tthis.isConnected && this.hidePopover();\n\t}\n\n\t/**\n\t * Implement this getter with relevant logic regarding the modality of the popup (e.g. based on a public property)\n\t * @protected\n\t */\n\tabstract get isModal(): boolean\n\n\t/**\n\t * Implement this getter with relevant logic in order to hide the block layer (f.e. based on a public property)\n\t * @protected\n\t */\n\tabstract get shouldHideBackdrop(): boolean\n\n\t/**\n\t * Return the ID of an element in the shadow DOM that is going to label this popup\n\t * @protected\n\t */\n\tabstract get _ariaLabelledBy(): string | undefined\n\n\t/**\n\t * Ensures ariaLabel is never null or empty string\n\t * @protected\n\t */\n\tget _ariaLabel() {\n\t\treturn getEffectiveAriaLabelText(this);\n\t}\n\n\tget _root(): HTMLElement {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popup-root\")!;\n\t}\n\n\tget _role(): string | undefined {\n\t\treturn (this.accessibleRole === PopupAccessibleRole.None) ? undefined : this.accessibleRole.toLowerCase();\n\t}\n\n\tget _ariaModal(): string | undefined {\n\t\treturn this.accessibleRole === PopupAccessibleRole.None ? undefined : \"true\";\n\t}\n\n\tget contentDOM(): HTMLElement {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popup-content\")!;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\troot: {},\n\t\t\tcontent: {},\n\t\t};\n\t}\n\n\tget classes(): ClassMap {\n\t\treturn {\n\t\t\troot: {\n\t\t\t\t\"ui5-popup-root\": true,\n\t\t\t\t\"ui5-content-native-scrollbars\": getEffectiveScrollbarStyle(),\n\t\t\t},\n\t\t\tcontent: {\n\t\t\t\t\"ui5-popup-content\": true,\n\t\t\t},\n\t\t};\n\t}\n}\n\nexport default Popup;\n\nexport type {\n\tPopupScrollEventDetail,\n\tPopupBeforeCloseEventDetail,\n};\n"]}
@@ -29,12 +29,6 @@ declare class ProgressIndicator extends UI5Element {
29
29
  * @since 1.16.0
30
30
  */
31
31
  accessibleName: string;
32
- /**
33
- * Defines whether component is in disabled state.
34
- * @default false
35
- * @public
36
- */
37
- disabled: boolean;
38
32
  /**
39
33
  * Defines whether the component value is shown.
40
34
  * @default false
@@ -92,7 +86,6 @@ declare class ProgressIndicator extends UI5Element {
92
86
  get valueStateText(): string;
93
87
  get showIcon(): boolean;
94
88
  get valueStateIcon(): string;
95
- get _ariaDisabled(): true | undefined;
96
89
  static onDefine(): Promise<void>;
97
90
  }
98
91
  export default ProgressIndicator;
@@ -108,9 +108,6 @@ let ProgressIndicator = ProgressIndicator_1 = class ProgressIndicator extends UI
108
108
  get valueStateIcon() {
109
109
  return this.valueStateIconMappings()[this.valueState];
110
110
  }
111
- get _ariaDisabled() {
112
- return this.disabled || undefined;
113
- }
114
111
  static async onDefine() {
115
112
  ProgressIndicator_1.i18nBundle = await getI18nBundle("@ui5/webcomponents");
116
113
  }
@@ -118,9 +115,6 @@ let ProgressIndicator = ProgressIndicator_1 = class ProgressIndicator extends UI
118
115
  __decorate([
119
116
  property()
120
117
  ], ProgressIndicator.prototype, "accessibleName", void 0);
121
- __decorate([
122
- property({ type: Boolean })
123
- ], ProgressIndicator.prototype, "disabled", void 0);
124
118
  __decorate([
125
119
  property({ type: Boolean })
126
120
  ], ProgressIndicator.prototype, "hideValue", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressIndicator.js","sourceRoot":"","sources":["../src/ProgressIndicator.ts"],"names":[],"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;AAE3B,eAAe,iBAAiB,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport AnimationMode from \"@ui5/webcomponents-base/dist/types/AnimationMode.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport { getAnimationMode } from \"@ui5/webcomponents-base/dist/config/AnimationMode.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Icon from \"./Icon.js\";\nimport {\n\tVALUE_STATE_ERROR,\n\tVALUE_STATE_WARNING,\n\tVALUE_STATE_SUCCESS,\n\tVALUE_STATE_INFORMATION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport ProgressIndicatorTemplate from \"./generated/templates/ProgressIndicatorTemplate.lit.js\";\n\n// Styles\nimport ProgressIndicatorCss from \"./generated/themes/ProgressIndicator.css.js\";\n\n/**\n * @class\n *\n * ### Overview\n * Shows the progress of a process in a graphical way. To indicate the progress,\n * the inside of the component is filled with a color.\n *\n * ### Responsive Behavior\n * You can change the size of the Progress Indicator by changing its `width` or `height` CSS properties.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/ProgressIndicator.js\";`\n * @csspart bar - Used to style the main bar of the `ui5-progress-indicator`\n * @csspart remaining-bar - Used to style the remaining bar of the `ui5-progress-indicator`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.8\n */\n@customElement({\n\ttag: \"ui5-progress-indicator\",\n\trenderer: litRender,\n\tstyles: ProgressIndicatorCss,\n\ttemplate: ProgressIndicatorTemplate,\n\tdependencies: [Icon],\n})\n\nclass ProgressIndicator extends UI5Element {\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t * @default \"\"\n\t * @public\n\t * @since 1.16.0\n\t*/\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Defines whether component is in disabled state.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tdisabled!: boolean;\n\n\t/**\n\t * Defines whether the component value is shown.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideValue!: boolean;\n\n\t/**\n\t * Specifies the numerical value in percent for the length of the component.\n\t *\n\t * **Note:**\n\t * If a value greater than 100 is provided, the percentValue is set to 100. In other cases of invalid value, percentValue is set to its default of 0.\n\t * @default 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tvalue!: number;\n\n\t/**\n\t * Specifies the text value to be displayed in the bar.\n\t *\n\t * **Note:**\n\t *\n\t * - If there is no value provided or the value is empty, the default percentage value is shown.\n\t * - If `hideValue` property is `true` both the `displayValue` and `value` property values are not shown.\n\t * @default null\n\t * @public\n\t */\n\t@property({ defaultValue: null })\n\tdisplayValue?: string | null;\n\n\t/**\n\t * Defines the value state of the component.\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tvalueState!: `${ValueState}`;\n\n\tstatic i18nBundle: I18nBundle;\n\t_previousValue: number;\n\t_transitionDuration: number;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._previousValue = 0;\n\t\tthis._transitionDuration = 0;\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._transitionDuration = Math.abs(this._previousValue - this.validatedValue) * 20;\n\t\tthis._previousValue = this.validatedValue;\n\t}\n\n\tvalueStateTextMappings(): Record<string, string> {\n\t\treturn {\n\t\t\t\"Error\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_ERROR),\n\t\t\t\"Warning\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_WARNING),\n\t\t\t\"Success\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_SUCCESS),\n\t\t\t\"Information\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_INFORMATION),\n\t\t};\n\t}\n\n\tvalueStateIconMappings(): Record<string, string> {\n\t\treturn {\n\t\t\t\"Error\": \"status-negative\",\n\t\t\t\"Warning\": \"status-critical\",\n\t\t\t\"Success\": \"status-positive\",\n\t\t\t\"Information\": \"information\",\n\t\t};\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tbar: {\n\t\t\t\t\"width\": `${this.validatedValue}%`,\n\t\t\t\t\"transition-duration\": this.shouldAnimate ? `${this._transitionDuration}ms` : \"none\",\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\troot: {\n\t\t\t\t\"ui5-progress-indicator-max-value\": this.validatedValue === 100,\n\t\t\t\t\"ui5-progress-indicator-min-value\": this.validatedValue === 0,\n\t\t\t},\n\t\t};\n\t}\n\n\tget validatedValue() {\n\t\tif (this.value < 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (this.value > 100) {\n\t\t\treturn 100;\n\t\t}\n\n\t\treturn this.value;\n\t}\n\n\tget showValueInRemainingBar() {\n\t\treturn this.value <= 50;\n\t}\n\n\tget shouldAnimate() {\n\t\treturn getAnimationMode() !== AnimationMode.None;\n\t}\n\n\tget valueStateText() {\n\t\tconst percentValue = `${this.validatedValue}%`;\n\t\tconst valueText = this.valueStateTextMappings()[this.valueState];\n\n\t\treturn valueText ? `${percentValue} ${valueText}` : percentValue;\n\t}\n\n\tget showIcon() {\n\t\treturn this.valueState !== ValueState.None;\n\t}\n\n\tget valueStateIcon() {\n\t\treturn this.valueStateIconMappings()[this.valueState];\n\t}\n\n\tget _ariaDisabled() {\n\t\treturn this.disabled || undefined;\n\t}\n\n\tstatic async onDefine() {\n\t\tProgressIndicator.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nProgressIndicator.define();\n\nexport default ProgressIndicator;\n"]}
1
+ {"version":3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Element from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport AnimationMode from \"@ui5/webcomponents-base/dist/types/AnimationMode.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\nimport { getAnimationMode } from \"@ui5/webcomponents-base/dist/config/AnimationMode.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport type I18nBundle from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\nimport Icon from \"./Icon.js\";\nimport {\n\tVALUE_STATE_ERROR,\n\tVALUE_STATE_WARNING,\n\tVALUE_STATE_SUCCESS,\n\tVALUE_STATE_INFORMATION,\n} from \"./generated/i18n/i18n-defaults.js\";\n\n// Template\nimport ProgressIndicatorTemplate from \"./generated/templates/ProgressIndicatorTemplate.lit.js\";\n\n// Styles\nimport ProgressIndicatorCss from \"./generated/themes/ProgressIndicator.css.js\";\n\n/**\n * @class\n *\n * ### Overview\n * Shows the progress of a process in a graphical way. To indicate the progress,\n * the inside of the component is filled with a color.\n *\n * ### Responsive Behavior\n * You can change the size of the Progress Indicator by changing its `width` or `height` CSS properties.\n *\n * ### ES6 Module Import\n *\n * `import \"@ui5/webcomponents/dist/ProgressIndicator.js\";`\n * @csspart bar - Used to style the main bar of the `ui5-progress-indicator`\n * @csspart remaining-bar - Used to style the remaining bar of the `ui5-progress-indicator`\n * @constructor\n * @extends UI5Element\n * @public\n * @since 1.0.0-rc.8\n */\n@customElement({\n\ttag: \"ui5-progress-indicator\",\n\trenderer: litRender,\n\tstyles: ProgressIndicatorCss,\n\ttemplate: ProgressIndicatorTemplate,\n\tdependencies: [Icon],\n})\n\nclass ProgressIndicator extends UI5Element {\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t * @default \"\"\n\t * @public\n\t * @since 1.16.0\n\t*/\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * Defines whether the component value is shown.\n\t * @default false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\thideValue!: boolean;\n\n\t/**\n\t * Specifies the numerical value in percent for the length of the component.\n\t *\n\t * **Note:**\n\t * If a value greater than 100 is provided, the percentValue is set to 100. In other cases of invalid value, percentValue is set to its default of 0.\n\t * @default 0\n\t * @public\n\t */\n\t@property({ validator: Integer, defaultValue: 0 })\n\tvalue!: number;\n\n\t/**\n\t * Specifies the text value to be displayed in the bar.\n\t *\n\t * **Note:**\n\t *\n\t * - If there is no value provided or the value is empty, the default percentage value is shown.\n\t * - If `hideValue` property is `true` both the `displayValue` and `value` property values are not shown.\n\t * @default null\n\t * @public\n\t */\n\t@property({ defaultValue: null })\n\tdisplayValue?: string | null;\n\n\t/**\n\t * Defines the value state of the component.\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property({ type: ValueState, defaultValue: ValueState.None })\n\tvalueState!: `${ValueState}`;\n\n\tstatic i18nBundle: I18nBundle;\n\t_previousValue: number;\n\t_transitionDuration: number;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis._previousValue = 0;\n\t\tthis._transitionDuration = 0;\n\t}\n\n\tonBeforeRendering() {\n\t\tthis._transitionDuration = Math.abs(this._previousValue - this.validatedValue) * 20;\n\t\tthis._previousValue = this.validatedValue;\n\t}\n\n\tvalueStateTextMappings(): Record<string, string> {\n\t\treturn {\n\t\t\t\"Error\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_ERROR),\n\t\t\t\"Warning\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_WARNING),\n\t\t\t\"Success\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_SUCCESS),\n\t\t\t\"Information\": ProgressIndicator.i18nBundle.getText(VALUE_STATE_INFORMATION),\n\t\t};\n\t}\n\n\tvalueStateIconMappings(): Record<string, string> {\n\t\treturn {\n\t\t\t\"Error\": \"status-negative\",\n\t\t\t\"Warning\": \"status-critical\",\n\t\t\t\"Success\": \"status-positive\",\n\t\t\t\"Information\": \"information\",\n\t\t};\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tbar: {\n\t\t\t\t\"width\": `${this.validatedValue}%`,\n\t\t\t\t\"transition-duration\": this.shouldAnimate ? `${this._transitionDuration}ms` : \"none\",\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\troot: {\n\t\t\t\t\"ui5-progress-indicator-max-value\": this.validatedValue === 100,\n\t\t\t\t\"ui5-progress-indicator-min-value\": this.validatedValue === 0,\n\t\t\t},\n\t\t};\n\t}\n\n\tget validatedValue() {\n\t\tif (this.value < 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (this.value > 100) {\n\t\t\treturn 100;\n\t\t}\n\n\t\treturn this.value;\n\t}\n\n\tget showValueInRemainingBar() {\n\t\treturn this.value <= 50;\n\t}\n\n\tget shouldAnimate() {\n\t\treturn getAnimationMode() !== AnimationMode.None;\n\t}\n\n\tget valueStateText() {\n\t\tconst percentValue = `${this.validatedValue}%`;\n\t\tconst valueText = this.valueStateTextMappings()[this.valueState];\n\n\t\treturn valueText ? `${percentValue} ${valueText}` : percentValue;\n\t}\n\n\tget showIcon() {\n\t\treturn this.valueState !== ValueState.None;\n\t}\n\n\tget valueStateIcon() {\n\t\treturn this.valueStateIconMappings()[this.valueState];\n\t}\n\n\tstatic async onDefine() {\n\t\tProgressIndicator.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nProgressIndicator.define();\n\nexport default ProgressIndicator;\n"]}