@ui5/webcomponents 1.13.3 → 1.14.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (615) hide show
  1. package/CHANGELOG.md +37 -2
  2. package/dist/Avatar.d.ts +3 -3
  3. package/dist/Avatar.js.map +1 -1
  4. package/dist/AvatarGroup.d.ts +2 -3
  5. package/dist/AvatarGroup.js.map +1 -1
  6. package/dist/Breadcrumbs.d.ts +2 -2
  7. package/dist/Breadcrumbs.js.map +1 -1
  8. package/dist/BusyIndicator.d.ts +1 -1
  9. package/dist/BusyIndicator.js.map +1 -1
  10. package/dist/Button.d.ts +1 -1
  11. package/dist/Button.js.map +1 -1
  12. package/dist/Calendar.d.ts +1 -1
  13. package/dist/Calendar.js.map +1 -1
  14. package/dist/CalendarHeader.d.ts +2 -2
  15. package/dist/CalendarHeader.js.map +1 -1
  16. package/dist/CardHeader.d.ts +1 -1
  17. package/dist/CardHeader.js +1 -1
  18. package/dist/CardHeader.js.map +1 -1
  19. package/dist/Carousel.d.ts +2 -2
  20. package/dist/Carousel.js.map +1 -1
  21. package/dist/CheckBox.d.ts +2 -2
  22. package/dist/CheckBox.js.map +1 -1
  23. package/dist/ComboBox.d.ts +4 -4
  24. package/dist/ComboBox.js.map +1 -1
  25. package/dist/DateComponentBase.d.ts +3 -3
  26. package/dist/DateComponentBase.js.map +1 -1
  27. package/dist/DatePicker.d.ts +1 -1
  28. package/dist/DatePicker.js.map +1 -1
  29. package/dist/DayPicker.d.ts +1 -1
  30. package/dist/DayPicker.js.map +1 -1
  31. package/dist/Dialog.d.ts +3 -1
  32. package/dist/Dialog.js +9 -5
  33. package/dist/Dialog.js.map +1 -1
  34. package/dist/FileUploader.d.ts +1 -1
  35. package/dist/FileUploader.js.map +1 -1
  36. package/dist/Icon.d.ts +1 -1
  37. package/dist/Icon.js.map +1 -1
  38. package/dist/Input.d.ts +2 -2
  39. package/dist/Input.js.map +1 -1
  40. package/dist/Label.d.ts +1 -7
  41. package/dist/Label.js +0 -9
  42. package/dist/Label.js.map +1 -1
  43. package/dist/Link.d.ts +2 -2
  44. package/dist/Link.js.map +1 -1
  45. package/dist/List.d.ts +4 -3
  46. package/dist/List.js +20 -2
  47. package/dist/List.js.map +1 -1
  48. package/dist/ListItem.d.ts +4 -4
  49. package/dist/ListItem.js.map +1 -1
  50. package/dist/MessageStrip.d.ts +3 -3
  51. package/dist/MessageStrip.js +8 -8
  52. package/dist/MessageStrip.js.map +1 -1
  53. package/dist/MultiComboBox.d.ts +4 -4
  54. package/dist/MultiComboBox.js.map +1 -1
  55. package/dist/Panel.d.ts +2 -2
  56. package/dist/Panel.js.map +1 -1
  57. package/dist/Popover.d.ts +8 -8
  58. package/dist/Popover.js +2 -2
  59. package/dist/Popover.js.map +1 -1
  60. package/dist/Popup.d.ts +1 -1
  61. package/dist/Popup.js +7 -3
  62. package/dist/Popup.js.map +1 -1
  63. package/dist/ProgressIndicator.d.ts +1 -1
  64. package/dist/ProgressIndicator.js.map +1 -1
  65. package/dist/RadioButton.d.ts +2 -2
  66. package/dist/RadioButton.js.map +1 -1
  67. package/dist/SegmentedButtonItem.d.ts +1 -1
  68. package/dist/SegmentedButtonItem.js.map +1 -1
  69. package/dist/Select.d.ts +1 -1
  70. package/dist/Select.js.map +1 -1
  71. package/dist/SplitButton.d.ts +1 -1
  72. package/dist/SplitButton.js.map +1 -1
  73. package/dist/StandardListItem.d.ts +2 -2
  74. package/dist/StandardListItem.js.map +1 -1
  75. package/dist/StepInput.d.ts +2 -2
  76. package/dist/StepInput.js.map +1 -1
  77. package/dist/SuggestionItem.d.ts +2 -2
  78. package/dist/SuggestionItem.js.map +1 -1
  79. package/dist/Switch.d.ts +1 -1
  80. package/dist/Switch.js.map +1 -1
  81. package/dist/Tab.d.ts +1 -1
  82. package/dist/Tab.js.map +1 -1
  83. package/dist/TabContainer.d.ts +6 -6
  84. package/dist/TabContainer.js +1 -1
  85. package/dist/TabContainer.js.map +1 -1
  86. package/dist/Table.d.ts +4 -4
  87. package/dist/Table.js.map +1 -1
  88. package/dist/TableCell.d.ts +14 -0
  89. package/dist/TableCell.js +19 -2
  90. package/dist/TableCell.js.map +1 -1
  91. package/dist/TableColumn.d.ts +1 -1
  92. package/dist/TableColumn.js.map +1 -1
  93. package/dist/TableGroupRow.d.ts +1 -1
  94. package/dist/TableGroupRow.js.map +1 -1
  95. package/dist/TableRow.d.ts +2 -2
  96. package/dist/TableRow.js +1 -1
  97. package/dist/TableRow.js.map +1 -1
  98. package/dist/TextArea.d.ts +1 -1
  99. package/dist/TextArea.js.map +1 -1
  100. package/dist/TimePickerBase.d.ts +1 -1
  101. package/dist/TimePickerBase.js.map +1 -1
  102. package/dist/Title.d.ts +2 -2
  103. package/dist/Title.js.map +1 -1
  104. package/dist/Toast.d.ts +1 -1
  105. package/dist/Toast.js.map +1 -1
  106. package/dist/Tokenizer.d.ts +1 -1
  107. package/dist/Tokenizer.js.map +1 -1
  108. package/dist/Tree.d.ts +2 -1
  109. package/dist/Tree.js +5 -0
  110. package/dist/Tree.js.map +1 -1
  111. package/dist/TreeItem.d.ts +1 -1
  112. package/dist/TreeItem.js.map +1 -1
  113. package/dist/TreeItemBase.d.ts +3 -3
  114. package/dist/TreeItemBase.js.map +1 -1
  115. package/dist/api.json +1 -1
  116. package/dist/assets/IgnoreCustomElements.2238457d.css +1 -0
  117. package/dist/assets/Label.95b96777.css +1 -0
  118. package/dist/assets/Tokenizer.09a50163.css +1 -0
  119. package/dist/assets/messagebundle_ar.79af67c0.js +1 -0
  120. package/dist/assets/messagebundle_bg.762bcd17.js +1 -0
  121. package/dist/assets/messagebundle_ca.408fb1e6.js +1 -0
  122. package/dist/assets/messagebundle_cs.89560d48.js +1 -0
  123. package/dist/assets/messagebundle_cy.af5eb0c4.js +1 -0
  124. package/dist/assets/messagebundle_da.37164a0f.js +1 -0
  125. package/dist/assets/messagebundle_de.e01539c8.js +1 -0
  126. package/dist/assets/messagebundle_el.fb7685a3.js +1 -0
  127. package/dist/assets/messagebundle_en.c44f1aa9.js +1 -0
  128. package/dist/assets/messagebundle_en_GB.2a910709.js +1 -0
  129. package/dist/assets/messagebundle_en_US_sappsd.aec484c1.js +1 -0
  130. package/dist/assets/{messagebundle_en_US_saprigi.8f67a54b.js → messagebundle_en_US_saprigi.f321a5ab.js} +1 -1
  131. package/dist/assets/messagebundle_en_US_saptrc.94f1e535.js +1 -0
  132. package/dist/assets/messagebundle_es.4c047282.js +1 -0
  133. package/dist/assets/messagebundle_es_MX.6b49ce4e.js +1 -0
  134. package/dist/assets/messagebundle_et.88bb961a.js +1 -0
  135. package/dist/assets/messagebundle_fi.b549b299.js +1 -0
  136. package/dist/assets/messagebundle_fr.f5c457c3.js +1 -0
  137. package/dist/assets/messagebundle_fr_CA.6289fadd.js +1 -0
  138. package/dist/assets/messagebundle_hi.f7be0b9a.js +1 -0
  139. package/dist/assets/messagebundle_hr.77e98c16.js +1 -0
  140. package/dist/assets/messagebundle_hu.b57f9066.js +1 -0
  141. package/dist/assets/messagebundle_it.31fa8b53.js +1 -0
  142. package/dist/assets/messagebundle_iw.443316ed.js +1 -0
  143. package/dist/assets/messagebundle_ja.74b06d37.js +1 -0
  144. package/dist/assets/messagebundle_kk.73efd728.js +1 -0
  145. package/dist/assets/messagebundle_ko.f3b32369.js +1 -0
  146. package/dist/assets/messagebundle_lt.65455dfe.js +1 -0
  147. package/dist/assets/messagebundle_lv.0c8602cf.js +1 -0
  148. package/dist/assets/messagebundle_ms.29617199.js +1 -0
  149. package/dist/assets/messagebundle_nl.8f0db1e8.js +1 -0
  150. package/dist/assets/messagebundle_no.21449f71.js +1 -0
  151. package/dist/assets/messagebundle_pl.3550da6c.js +1 -0
  152. package/dist/assets/messagebundle_pt.e53ae247.js +1 -0
  153. package/dist/assets/messagebundle_pt_PT.1b2444c9.js +1 -0
  154. package/dist/assets/messagebundle_ro.915e50eb.js +1 -0
  155. package/dist/assets/messagebundle_ru.49a1191e.js +1 -0
  156. package/dist/assets/messagebundle_sh.e46b398f.js +1 -0
  157. package/dist/assets/messagebundle_sk.8dbd5574.js +1 -0
  158. package/dist/assets/messagebundle_sl.1b1b7790.js +1 -0
  159. package/dist/assets/messagebundle_sv.a67b53be.js +1 -0
  160. package/dist/assets/messagebundle_th.b34a5bf2.js +1 -0
  161. package/dist/assets/messagebundle_tr.95abc23c.js +1 -0
  162. package/dist/assets/messagebundle_uk.00795c72.js +1 -0
  163. package/dist/assets/messagebundle_vi.2391fb9a.js +1 -0
  164. package/dist/assets/messagebundle_zh_CN.aaaf5d44.js +1 -0
  165. package/dist/assets/messagebundle_zh_TW.6e48da4d.js +1 -0
  166. package/dist/assets/{parameters-bundle.css.2480d334.js → parameters-bundle.css.0c0f77f7.js} +1 -1
  167. package/dist/assets/{parameters-bundle.css.64a1fcb3.js → parameters-bundle.css.49431a75.js} +1 -1
  168. package/dist/assets/{parameters-bundle.css.0c80e05a.js → parameters-bundle.css.4d5e6b22.js} +1 -1
  169. package/dist/assets/{parameters-bundle.css.4cf7b367.js → parameters-bundle.css.5a35203e.js} +1 -1
  170. package/dist/assets/parameters-bundle.css.6cfbdef7.js +1 -0
  171. package/dist/assets/parameters-bundle.css.7f80e0a9.js +1 -0
  172. package/dist/assets/{parameters-bundle.css.e59780e1.js → parameters-bundle.css.a20b2e10.js} +1 -1
  173. package/dist/assets/{parameters-bundle.css.a0b1bee1.js → parameters-bundle.css.a3056727.js} +1 -1
  174. package/dist/assets/{parameters-bundle.css.b06aacf3.js → parameters-bundle.css.a51d0093.js} +1 -1
  175. package/dist/assets/parameters-bundle.css.c948f166.js +1 -0
  176. package/dist/assets/{parameters-bundle.css.b8d253d9.js → parameters-bundle.css.c9ff28ae.js} +1 -1
  177. package/dist/assets/{parameters-bundle.css.691f8760.js → parameters-bundle.css.f81c3a09.js} +1 -1
  178. package/dist/assets/test/pages/{ComboBox.html.97b91fc4.js → ComboBox.html.2d8ba2b0.js} +1 -1
  179. package/dist/assets/test/pages/{Icon.html.d6401294.js → Icon.html.23e5ba67.js} +1 -1
  180. package/dist/assets/test/pages/{Label.html.3873878a.js → Label.html.09573306.js} +1 -1
  181. package/dist/assets/test/pages/{Popups.html.91d424bb.js → Popups.html.aee5c427.js} +1 -1
  182. package/dist/css/themes/FileUploader.css +1 -1
  183. package/dist/css/themes/Label.css +1 -1
  184. package/dist/css/themes/Popover.css +1 -1
  185. package/dist/css/themes/PopupsCommon.css +1 -1
  186. package/dist/css/themes/TextArea.css +1 -1
  187. package/dist/css/themes/Token.css +1 -1
  188. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  189. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  190. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  191. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  192. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  193. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  194. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  195. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  196. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  197. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  198. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  199. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  200. package/dist/custom-elements.json +1 -1
  201. package/dist/features/InputSuggestions.d.ts +2 -2
  202. package/dist/features/InputSuggestions.js.map +1 -1
  203. package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
  204. package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
  205. package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
  206. package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
  207. package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
  208. package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
  209. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  210. package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
  211. package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
  212. package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
  213. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
  214. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
  215. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
  216. package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
  217. package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
  218. package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
  219. package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
  220. package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
  221. package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
  222. package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
  223. package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
  224. package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
  225. package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
  226. package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
  227. package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
  228. package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
  229. package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
  230. package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
  231. package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
  232. package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
  233. package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
  234. package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
  235. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  236. package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
  237. package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
  238. package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
  239. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  240. package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
  241. package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
  242. package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
  243. package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
  244. package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
  245. package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
  246. package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
  247. package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
  248. package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
  249. package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
  250. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  251. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  252. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  253. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  254. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  255. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  256. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  257. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  258. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  259. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  260. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  261. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  262. package/dist/generated/i18n/i18n-defaults.d.ts +2 -1
  263. package/dist/generated/i18n/i18n-defaults.js +2 -1
  264. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  265. package/dist/generated/templates/LabelTemplate.lit.js +2 -2
  266. package/dist/generated/templates/LabelTemplate.lit.js.map +1 -1
  267. package/dist/generated/templates/TabInStripTemplate.lit.js +1 -1
  268. package/dist/generated/templates/TabInStripTemplate.lit.js.map +1 -1
  269. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -1
  270. package/dist/generated/templates/TabSeparatorInOverflowTemplate.lit.js.map +1 -1
  271. package/dist/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -1
  272. package/dist/generated/templates/TabSeparatorInStripTemplate.lit.js.map +1 -1
  273. package/dist/generated/templates/TabTemplate.lit.js +1 -1
  274. package/dist/generated/templates/TabTemplate.lit.js.map +1 -1
  275. package/dist/generated/themes/FileUploader.css.js +1 -1
  276. package/dist/generated/themes/FileUploader.css.js.map +1 -1
  277. package/dist/generated/themes/Label.css.js +1 -1
  278. package/dist/generated/themes/Label.css.js.map +1 -1
  279. package/dist/generated/themes/Popover.css.js +1 -1
  280. package/dist/generated/themes/Popover.css.js.map +1 -1
  281. package/dist/generated/themes/PopupsCommon.css.js +1 -1
  282. package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
  283. package/dist/generated/themes/TextArea.css.js +1 -1
  284. package/dist/generated/themes/TextArea.css.js.map +1 -1
  285. package/dist/generated/themes/Token.css.js +1 -1
  286. package/dist/generated/themes/Token.css.js.map +1 -1
  287. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  288. package/dist/generated/themes/sap_belize/parameters-bundle.css.js.map +1 -1
  289. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  290. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js.map +1 -1
  291. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  292. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js.map +1 -1
  293. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  294. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  295. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  296. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  297. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  298. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  299. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  300. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  301. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  302. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  303. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  304. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  305. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  306. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
  307. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  308. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  309. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  310. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  311. package/dist/i18n/messagebundle.properties +3 -0
  312. package/dist/i18n/messagebundle_ar.properties +2 -0
  313. package/dist/i18n/messagebundle_bg.properties +2 -0
  314. package/dist/i18n/messagebundle_ca.properties +2 -0
  315. package/dist/i18n/messagebundle_cs.properties +2 -0
  316. package/dist/i18n/messagebundle_cy.properties +2 -0
  317. package/dist/i18n/messagebundle_da.properties +2 -0
  318. package/dist/i18n/messagebundle_de.properties +2 -0
  319. package/dist/i18n/messagebundle_el.properties +2 -0
  320. package/dist/i18n/messagebundle_en.properties +2 -0
  321. package/dist/i18n/messagebundle_en_GB.properties +2 -0
  322. package/dist/i18n/messagebundle_en_US_sappsd.properties +2 -0
  323. package/dist/i18n/messagebundle_en_US_saprigi.properties +2 -0
  324. package/dist/i18n/messagebundle_en_US_saptrc.properties +2 -0
  325. package/dist/i18n/messagebundle_es.properties +2 -0
  326. package/dist/i18n/messagebundle_es_MX.properties +2 -0
  327. package/dist/i18n/messagebundle_et.properties +2 -0
  328. package/dist/i18n/messagebundle_fi.properties +2 -0
  329. package/dist/i18n/messagebundle_fr.properties +2 -0
  330. package/dist/i18n/messagebundle_fr_CA.properties +2 -0
  331. package/dist/i18n/messagebundle_hi.properties +2 -0
  332. package/dist/i18n/messagebundle_hr.properties +2 -0
  333. package/dist/i18n/messagebundle_hu.properties +2 -0
  334. package/dist/i18n/messagebundle_id.properties +2 -0
  335. package/dist/i18n/messagebundle_it.properties +2 -0
  336. package/dist/i18n/messagebundle_iw.properties +2 -0
  337. package/dist/i18n/messagebundle_ja.properties +2 -0
  338. package/dist/i18n/messagebundle_kk.properties +2 -0
  339. package/dist/i18n/messagebundle_ko.properties +2 -0
  340. package/dist/i18n/messagebundle_lt.properties +2 -0
  341. package/dist/i18n/messagebundle_lv.properties +2 -0
  342. package/dist/i18n/messagebundle_ms.properties +2 -0
  343. package/dist/i18n/messagebundle_nl.properties +2 -0
  344. package/dist/i18n/messagebundle_no.properties +2 -0
  345. package/dist/i18n/messagebundle_pl.properties +2 -0
  346. package/dist/i18n/messagebundle_pt.properties +2 -0
  347. package/dist/i18n/messagebundle_pt_PT.properties +2 -0
  348. package/dist/i18n/messagebundle_ro.properties +2 -0
  349. package/dist/i18n/messagebundle_ru.properties +2 -0
  350. package/dist/i18n/messagebundle_sh.properties +2 -0
  351. package/dist/i18n/messagebundle_sk.properties +2 -0
  352. package/dist/i18n/messagebundle_sl.properties +2 -0
  353. package/dist/i18n/messagebundle_sv.properties +2 -0
  354. package/dist/i18n/messagebundle_th.properties +2 -0
  355. package/dist/i18n/messagebundle_tr.properties +2 -0
  356. package/dist/i18n/messagebundle_uk.properties +2 -0
  357. package/dist/i18n/messagebundle_vi.properties +2 -0
  358. package/dist/i18n/messagebundle_zh_CN.properties +2 -0
  359. package/dist/i18n/messagebundle_zh_TW.properties +2 -0
  360. package/dist/test/pages/72override.html +1 -1
  361. package/dist/test/pages/AnimanitionOff.html +1 -1
  362. package/dist/test/pages/Avatar.html +1 -1
  363. package/dist/test/pages/AvatarGroup.html +1 -1
  364. package/dist/test/pages/Badge.html +1 -1
  365. package/dist/test/pages/Breadcrumbs.html +1 -1
  366. package/dist/test/pages/BusyIndicator.html +1 -1
  367. package/dist/test/pages/Button.html +1 -1
  368. package/dist/test/pages/Calendar.html +1 -1
  369. package/dist/test/pages/Card.html +1 -1
  370. package/dist/test/pages/Carousel.html +1 -1
  371. package/dist/test/pages/CheckBox.html +1 -1
  372. package/dist/test/pages/ColorPalette.html +1 -1
  373. package/dist/test/pages/ColorPalettePopover.html +1 -1
  374. package/dist/test/pages/ColorPicker.html +1 -1
  375. package/dist/test/pages/ComboBox.html +2 -2
  376. package/dist/test/pages/Components.html +1 -1
  377. package/dist/test/pages/CoreControls.html +1 -1
  378. package/dist/test/pages/CoreControls_exp.html +1 -1
  379. package/dist/test/pages/CustomCSS.html +1 -1
  380. package/dist/test/pages/DatePicker.html +1 -1
  381. package/dist/test/pages/DatePicker_test_page.html +1 -1
  382. package/dist/test/pages/DateRangePicker.html +1 -1
  383. package/dist/test/pages/DateTimePicker.html +1 -1
  384. package/dist/test/pages/DateTimePicker_Timezone.html +1 -1
  385. package/dist/test/pages/DayPicker.html +1 -1
  386. package/dist/test/pages/Dialog.html +1 -1
  387. package/dist/test/pages/DialogLifecycle.html +1 -1
  388. package/dist/test/pages/DialogSemantic.html +1 -1
  389. package/dist/test/pages/Eventing.html +1 -1
  390. package/dist/test/pages/F6Test1.html +1 -1
  391. package/dist/test/pages/F6Test2.html +1 -1
  392. package/dist/test/pages/F6Test3.html +1 -1
  393. package/dist/test/pages/F6Test4.html +1 -1
  394. package/dist/test/pages/F6Test5.html +1 -1
  395. package/dist/test/pages/F6Test6.html +1 -1
  396. package/dist/test/pages/F6Test7.html +1 -1
  397. package/dist/test/pages/FileUploader.html +1 -1
  398. package/dist/test/pages/FormComponents.html +5 -1
  399. package/dist/test/pages/FormSupport.html +1 -1
  400. package/dist/test/pages/HCB.html +1 -1
  401. package/dist/test/pages/Icon.html +2 -2
  402. package/dist/test/pages/Icon_and_theming.html +1 -1
  403. package/dist/test/pages/Icon_custom.html +1 -1
  404. package/dist/test/pages/Input.html +1 -1
  405. package/dist/test/pages/InputFieldLabels.html +1 -1
  406. package/dist/test/pages/InputFieldMinWidth.html +1 -1
  407. package/dist/test/pages/InputIcons.html +1 -1
  408. package/dist/test/pages/Input_quickview.html +1 -1
  409. package/dist/test/pages/InputsAlignment.html +1 -1
  410. package/dist/test/pages/InputsLazyLoading.html +1 -1
  411. package/dist/test/pages/ItemNavigation.html +1 -1
  412. package/dist/test/pages/Kitchen.html +1 -1
  413. package/dist/test/pages/Kitchen.openui5.html +1 -1
  414. package/dist/test/pages/Label.html +45 -42
  415. package/dist/test/pages/Link.html +1 -1
  416. package/dist/test/pages/List.html +1 -1
  417. package/dist/test/pages/ListGrowing_Button.html +1 -1
  418. package/dist/test/pages/ListGrowing_Scroll.html +1 -1
  419. package/dist/test/pages/List_keyboard_support.html +1 -1
  420. package/dist/test/pages/List_test_page.html +25 -1
  421. package/dist/test/pages/LitKeyFunction.html +1 -1
  422. package/dist/test/pages/MemoryLeak.html +1 -1
  423. package/dist/test/pages/Menu.html +1 -1
  424. package/dist/test/pages/MessagePage.html +1 -1
  425. package/dist/test/pages/MessageStrip.html +1 -1
  426. package/dist/test/pages/MultiComboBox.html +1 -1
  427. package/dist/test/pages/MultiInput.html +1 -1
  428. package/dist/test/pages/MultiInput_Suggestions.html +1 -1
  429. package/dist/test/pages/OpenUI5-second.html +1 -1
  430. package/dist/test/pages/OpenUI5.html +1 -1
  431. package/dist/test/pages/Panel.html +1 -1
  432. package/dist/test/pages/Popover.html +1 -1
  433. package/dist/test/pages/PopoverArrowBounds.html +1 -1
  434. package/dist/test/pages/Popups.html +2 -2
  435. package/dist/test/pages/ProgressIndicator.html +1 -1
  436. package/dist/test/pages/RTL.html +1 -1
  437. package/dist/test/pages/RadioButton.html +1 -1
  438. package/dist/test/pages/RangeSlider.html +1 -1
  439. package/dist/test/pages/RatingIndicator.html +1 -1
  440. package/dist/test/pages/ResizeHandler.html +1 -1
  441. package/dist/test/pages/ResponsivePopover.html +1 -1
  442. package/dist/test/pages/SegmentedButton.html +1 -1
  443. package/dist/test/pages/Select.html +1 -1
  444. package/dist/test/pages/Simple.html +1 -1
  445. package/dist/test/pages/Slider.html +1 -1
  446. package/dist/test/pages/SplitButton.html +1 -1
  447. package/dist/test/pages/StepInput.html +1 -1
  448. package/dist/test/pages/Switch.html +1 -1
  449. package/dist/test/pages/TabContainer.html +1 -1
  450. package/dist/test/pages/Table-perf-pure.html +1 -1
  451. package/dist/test/pages/Table-perf.html +1 -1
  452. package/dist/test/pages/Table.html +3 -3
  453. package/dist/test/pages/Table2.html +1 -1
  454. package/dist/test/pages/TableAllPopin.html +1 -1
  455. package/dist/test/pages/TableCustomStyling.html +1 -1
  456. package/dist/test/pages/TableGrouping.html +1 -1
  457. package/dist/test/pages/TableGrowingWithButton.html +1 -1
  458. package/dist/test/pages/TableGrowingWithScroll.html +1 -1
  459. package/dist/test/pages/TableSelection.html +1 -1
  460. package/dist/test/pages/TextArea.html +1 -1
  461. package/dist/test/pages/TimePicker.html +1 -1
  462. package/dist/test/pages/TimeSelection.html +1 -1
  463. package/dist/test/pages/Title.html +1 -1
  464. package/dist/test/pages/Toast.html +1 -1
  465. package/dist/test/pages/ToggleButton.html +1 -1
  466. package/dist/test/pages/Tokenizer.html +91 -0
  467. package/dist/test/pages/Tree.html +1 -1
  468. package/dist/test/pages/TreeDynamic.html +56 -0
  469. package/dist/test/pages/WheelSlider_Test_Page.html +1 -1
  470. package/dist/test/pages/base/AriaLabelHelper.html +1 -1
  471. package/dist/test/pages/base/DOMObserver.html +1 -1
  472. package/dist/test/pages/base/IconCollection.html +1 -1
  473. package/dist/test/pages/base/IconCollectionInCustomTheme.html +1 -1
  474. package/dist/test/pages/base/IgnoreCustomElements.html +26 -0
  475. package/dist/test/pages/base/InvisibleMessage.html +1 -1
  476. package/dist/test/pages/form.html +1 -1
  477. package/dist/test/pages/i18n-defaultLang.html +1 -1
  478. package/dist/test/pages/i18n-demo.html +1 -1
  479. package/package.json +7 -7
  480. package/src/Label.hbs +4 -6
  481. package/src/Tab.hbs +3 -1
  482. package/src/TabInStrip.hbs +0 -1
  483. package/src/TabSeparatorInOverflow.hbs +0 -1
  484. package/src/TabSeparatorInStrip.hbs +0 -1
  485. package/src/i18n/messagebundle.properties +3 -0
  486. package/src/i18n/messagebundle_ar.properties +2 -0
  487. package/src/i18n/messagebundle_bg.properties +2 -0
  488. package/src/i18n/messagebundle_ca.properties +2 -0
  489. package/src/i18n/messagebundle_cs.properties +2 -0
  490. package/src/i18n/messagebundle_cy.properties +2 -0
  491. package/src/i18n/messagebundle_da.properties +2 -0
  492. package/src/i18n/messagebundle_de.properties +2 -0
  493. package/src/i18n/messagebundle_el.properties +2 -0
  494. package/src/i18n/messagebundle_en.properties +2 -0
  495. package/src/i18n/messagebundle_en_GB.properties +2 -0
  496. package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
  497. package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
  498. package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
  499. package/src/i18n/messagebundle_es.properties +2 -0
  500. package/src/i18n/messagebundle_es_MX.properties +2 -0
  501. package/src/i18n/messagebundle_et.properties +2 -0
  502. package/src/i18n/messagebundle_fi.properties +2 -0
  503. package/src/i18n/messagebundle_fr.properties +2 -0
  504. package/src/i18n/messagebundle_fr_CA.properties +2 -0
  505. package/src/i18n/messagebundle_hi.properties +2 -0
  506. package/src/i18n/messagebundle_hr.properties +2 -0
  507. package/src/i18n/messagebundle_hu.properties +2 -0
  508. package/src/i18n/messagebundle_id.properties +2 -0
  509. package/src/i18n/messagebundle_it.properties +2 -0
  510. package/src/i18n/messagebundle_iw.properties +2 -0
  511. package/src/i18n/messagebundle_ja.properties +2 -0
  512. package/src/i18n/messagebundle_kk.properties +2 -0
  513. package/src/i18n/messagebundle_ko.properties +2 -0
  514. package/src/i18n/messagebundle_lt.properties +2 -0
  515. package/src/i18n/messagebundle_lv.properties +2 -0
  516. package/src/i18n/messagebundle_ms.properties +2 -0
  517. package/src/i18n/messagebundle_nl.properties +2 -0
  518. package/src/i18n/messagebundle_no.properties +2 -0
  519. package/src/i18n/messagebundle_pl.properties +2 -0
  520. package/src/i18n/messagebundle_pt.properties +2 -0
  521. package/src/i18n/messagebundle_pt_PT.properties +2 -0
  522. package/src/i18n/messagebundle_ro.properties +2 -0
  523. package/src/i18n/messagebundle_ru.properties +2 -0
  524. package/src/i18n/messagebundle_sh.properties +2 -0
  525. package/src/i18n/messagebundle_sk.properties +2 -0
  526. package/src/i18n/messagebundle_sl.properties +2 -0
  527. package/src/i18n/messagebundle_sv.properties +2 -0
  528. package/src/i18n/messagebundle_th.properties +2 -0
  529. package/src/i18n/messagebundle_tr.properties +2 -0
  530. package/src/i18n/messagebundle_uk.properties +2 -0
  531. package/src/i18n/messagebundle_vi.properties +2 -0
  532. package/src/i18n/messagebundle_zh_CN.properties +2 -0
  533. package/src/i18n/messagebundle_zh_TW.properties +2 -0
  534. package/src/themes/FileUploader.css +2 -0
  535. package/src/themes/Label.css +11 -28
  536. package/src/themes/Popover.css +26 -20
  537. package/src/themes/PopupsCommon.css +0 -1
  538. package/src/themes/TextArea.css +16 -7
  539. package/src/themes/Token.css +24 -5
  540. package/src/themes/base/Popover-parameters.css +5 -0
  541. package/src/themes/base/StepInput-parameters.css +0 -7
  542. package/src/themes/base/TextArea-parameters.css +0 -1
  543. package/src/themes/base/Token-parameters.css +5 -1
  544. package/src/themes/base/sizes-parameters.css +1 -0
  545. package/src/themes/sap_belize/parameters-bundle.css +1 -0
  546. package/src/themes/sap_belize_hcb/parameters-bundle.css +1 -0
  547. package/src/themes/sap_belize_hcw/parameters-bundle.css +1 -0
  548. package/src/themes/sap_fiori_3/parameters-bundle.css +1 -0
  549. package/src/themes/sap_fiori_3_dark/parameters-bundle.css +1 -0
  550. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -0
  551. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -0
  552. package/src/themes/sap_horizon/Switch-parameters.css +2 -2
  553. package/src/themes/sap_horizon/TextArea-parameters.css +0 -5
  554. package/src/themes/sap_horizon/Token-parameters.css +9 -2
  555. package/src/themes/sap_horizon/parameters-bundle.css +1 -0
  556. package/src/themes/sap_horizon_dark/Switch-parameters.css +2 -2
  557. package/src/themes/sap_horizon_dark/TextArea-parameters.css +0 -5
  558. package/src/themes/sap_horizon_dark/Token-parameters.css +9 -2
  559. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -0
  560. package/src/themes/sap_horizon_hcb/Switch-parameters.css +2 -2
  561. package/src/themes/sap_horizon_hcb/Token-parameters.css +4 -3
  562. package/src/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
  563. package/src/themes/sap_horizon_hcw/Switch-parameters.css +2 -2
  564. package/src/themes/sap_horizon_hcw/Token-parameters.css +4 -3
  565. package/src/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
  566. package/dist/assets/Label.b48eb771.css +0 -1
  567. package/dist/assets/messagebundle_ar.4a952712.js +0 -1
  568. package/dist/assets/messagebundle_bg.005d394d.js +0 -1
  569. package/dist/assets/messagebundle_ca.42a55677.js +0 -1
  570. package/dist/assets/messagebundle_cs.af423fbd.js +0 -1
  571. package/dist/assets/messagebundle_cy.dbe56ca5.js +0 -1
  572. package/dist/assets/messagebundle_da.8c1bf79d.js +0 -1
  573. package/dist/assets/messagebundle_de.33dc33ea.js +0 -1
  574. package/dist/assets/messagebundle_el.60b0af39.js +0 -1
  575. package/dist/assets/messagebundle_en.7bf1186a.js +0 -1
  576. package/dist/assets/messagebundle_en_GB.74ca8ab1.js +0 -1
  577. package/dist/assets/messagebundle_en_US_sappsd.4b5e22df.js +0 -1
  578. package/dist/assets/messagebundle_en_US_saptrc.1c1645fc.js +0 -1
  579. package/dist/assets/messagebundle_es.0cc30b6e.js +0 -1
  580. package/dist/assets/messagebundle_es_MX.af835417.js +0 -1
  581. package/dist/assets/messagebundle_et.f0b9692c.js +0 -1
  582. package/dist/assets/messagebundle_fi.ce799ebc.js +0 -1
  583. package/dist/assets/messagebundle_fr.138d08d9.js +0 -1
  584. package/dist/assets/messagebundle_fr_CA.21862365.js +0 -1
  585. package/dist/assets/messagebundle_hi.36d322e9.js +0 -1
  586. package/dist/assets/messagebundle_hr.aca7500d.js +0 -1
  587. package/dist/assets/messagebundle_hu.cd5bc60e.js +0 -1
  588. package/dist/assets/messagebundle_it.707234b5.js +0 -1
  589. package/dist/assets/messagebundle_iw.80b7ae6a.js +0 -1
  590. package/dist/assets/messagebundle_ja.54ced6c6.js +0 -1
  591. package/dist/assets/messagebundle_kk.29fafd2d.js +0 -1
  592. package/dist/assets/messagebundle_ko.8f74bc59.js +0 -1
  593. package/dist/assets/messagebundle_lt.d8c67fb7.js +0 -1
  594. package/dist/assets/messagebundle_lv.3a838a47.js +0 -1
  595. package/dist/assets/messagebundle_ms.57fb5eb8.js +0 -1
  596. package/dist/assets/messagebundle_nl.e091d15c.js +0 -1
  597. package/dist/assets/messagebundle_no.11207bec.js +0 -1
  598. package/dist/assets/messagebundle_pl.a642af11.js +0 -1
  599. package/dist/assets/messagebundle_pt.150a4c67.js +0 -1
  600. package/dist/assets/messagebundle_pt_PT.9c822d87.js +0 -1
  601. package/dist/assets/messagebundle_ro.8a4e217c.js +0 -1
  602. package/dist/assets/messagebundle_ru.3ab0178d.js +0 -1
  603. package/dist/assets/messagebundle_sh.67fd26db.js +0 -1
  604. package/dist/assets/messagebundle_sk.d5b20773.js +0 -1
  605. package/dist/assets/messagebundle_sl.2d887b8e.js +0 -1
  606. package/dist/assets/messagebundle_sv.e4cae15c.js +0 -1
  607. package/dist/assets/messagebundle_th.50b9123a.js +0 -1
  608. package/dist/assets/messagebundle_tr.6ea45efc.js +0 -1
  609. package/dist/assets/messagebundle_uk.ed0a7c66.js +0 -1
  610. package/dist/assets/messagebundle_vi.fd114413.js +0 -1
  611. package/dist/assets/messagebundle_zh_CN.0f26b4c2.js +0 -1
  612. package/dist/assets/messagebundle_zh_TW.26f10b28.js +0 -1
  613. package/dist/assets/parameters-bundle.css.0910d303.js +0 -1
  614. package/dist/assets/parameters-bundle.css.731f329b.js +0 -1
  615. package/dist/assets/parameters-bundle.css.8a87377e.js +0 -1
package/dist/Panel.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.js","sourceRoot":"","sources":["../src/Panel.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,mDAAmD,CAAC;AAC3D,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,aAAa,MAAM,4CAA4C,CAAC;A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EAAE,OAAO,EAAE,CAAC;yCACP;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;+CACpB;AAG3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;gDACnB;AAa5B;IADC,IAAI,EAAE;qCACqB;AA1HvB,KAAK;IAhBV,aAAa,CAAC;QACd,GAAG,EAAE,WAAW;QAChB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,aAAa;QACvB,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;KAC5B,CAAC;IACF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,KAAK,CAkUV;AAED,KAAK,CAAC,MAAM,EAAE,CAAC;AAEf,eAAe,KAAK,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport slideDown from \"@ui5/webcomponents-base/dist/animations/slideDown.js\";\nimport slideUp from \"@ui5/webcomponents-base/dist/animations/slideUp.js\";\nimport { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport AnimationMode from \"@ui5/webcomponents-base/dist/types/AnimationMode.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 \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport Button from \"./Button.js\";\nimport Icon from \"./Icon.js\";\nimport TitleLevel from \"./types/TitleLevel.js\";\nimport PanelAccessibleRole from \"./types/PanelAccessibleRole.js\";\nimport PanelTemplate from \"./generated/templates/PanelTemplate.lit.js\";\n\nimport { PANEL_ICON } from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport panelCss from \"./generated/themes/Panel.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-panel</code> component is a container which has a header and a\n * content area and is used\n * for grouping and displaying information. It can be collapsed to save space on the screen.\n *\n * <h3>Guidelines:</h3>\n * <ul>\n * <li>Nesting two or more panels is not recommended.</li>\n * <li>Do not stack too many panels on one page.</li>\n * </ul>\n *\n * <h3>Structure</h3>\n * The panel's header area consists of a title bar with a header text or custom header.\n * <br>\n * The header is clickable and can be used to toggle between the expanded and collapsed state. It includes an icon which rotates depending on the state.\n * <br>\n * The custom header can be set through the <code>header</code> slot and it may contain arbitraray content, such as: title, buttons or any other HTML elements.\n * <br>\n * The content area can contain an arbitrary set of controls.\n * <br><b>Note:</b> The custom header is not clickable out of the box, but in this case the icon is interactive and allows to show/hide the content area.\n *\n * <h3>Responsive Behavior</h3>\n * <ul>\n * <li>If the width of the panel is set to 100% (default), the panel and its children are\n * resized responsively,\n * depending on its parent container.</li>\n * <li>If the panel has a fixed height, it will take up the space even if the panel is\n * collapsed.</li>\n * <li>When the panel is expandable (the <code>fixed</code> property is set to <code>false</code>),\n * an arrow icon (pointing to the right) appears in front of the header.</li>\n * <li>When the animation is activated, expand/collapse uses a smooth animation to open or\n * close the content area.</li>\n * <li>When the panel expands/collapses, the arrow icon rotates 90 degrees\n * clockwise/counter-clockwise.</li>\n * </ul>\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-panel</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>header - Used to style the wrapper of the header</li>\n * <li>content - Used to style the wrapper of the content</li>\n * </ul>\n *\n * <h3>Keyboard Handling</h3>\n *\n * <h4>Fast Navigation</h4>\n * This component provides a build in fast navigation group which can be used via <code>F6 / Shift + F6</code> or <code> Ctrl + Alt(Option) + Down / Ctrl + Alt(Option) + Up</code>.\n * In order to use this functionality, you need to import the following module:\n * <code>import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"</code>\n * <br><br>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Panel\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Panel\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-panel\n * @public\n */\n@customElement({\n\ttag: \"ui5-panel\",\n\tfastNavigation: true,\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: PanelTemplate,\n\tstyles: panelCss,\n\tdependencies: [Button, Icon],\n})\n/**\n * Fired when the component is expanded/collapsed by user interaction.\n *\n * @event sap.ui.webc.main.Panel#toggle\n * @public\n */\n@event(\"toggle\")\nclass Panel extends UI5Element {\n\t/**\n\t * This property is used to set the header text of the component.\n\t * The text is visible in both expanded and collapsed states.\n\t * <br><br>\n\t * <b>Note:</b> This property is overridden by the <code>header</code> slot.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Panel.prototype.headerText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines whether the component is in a fixed state that is not\n\t * expandable/collapsible by user interaction.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.fixed\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfixed!: boolean;\n\n\t/**\n\t * Indicates whether the component is collapsed and only the header is displayed.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.collapsed\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed!: boolean;\n\n\t/**\n\t * Indicates whether the transition between the expanded and the collapsed state of the component is animated. By default the animation is enabled.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.noAnimation\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.16\n\t */\n\t@property({ type: Boolean })\n\tnoAnimation!: boolean;\n\n\t/**\n\t * Sets the accessible ARIA role of the component.\n\t * Depending on the usage, you can change the role from the default <code>Form</code>\n\t * to <code>Region</code> or <code>Complementary</code>.\n\t *\n\t * @type {sap.ui.webc.main.types.PanelAccessibleRole}\n\t * @name sap.ui.webc.main.Panel.prototype.accessibleRole\n\t * @defaultvalue \"Form\"\n\t * @public\n\t */\n\t@property({ type: PanelAccessibleRole, defaultValue: PanelAccessibleRole.Form })\n\taccessibleRole!: PanelAccessibleRole;\n\n\t/**\n\t * Defines the \"aria-level\" of component heading,\n\t * set by the <code>headerText</code>.\n\t * <br><br>\n\t * Available options are: <code>\"H6\"</code> to <code>\"H1\"</code>.\n\t * @type {sap.ui.webc.main.types.TitleLevel}\n\t * @name sap.ui.webc.main.Panel.prototype.headerLevel\n\t * @defaultvalue \"H2\"\n\t * @public\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\theaderLevel!: TitleLevel;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Panel.prototype.accessibleName\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * When set to <code>true</code>, the <code>accessibleName</code> property will be\n\t * applied not only on the panel root itself, but on its toggle button too.\n\t * <b>Note:</b> This property only has effect if <code>accessibleName</code> is set and a header slot is provided.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tuseAccessibleNameForToggleButton!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_hasHeader!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_contentExpanded!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_animationRunning!: boolean;\n\n\t/**\n\t * Defines the component header area.\n\t * <br><br>\n\t * <b>Note:</b> When a header is provided, the <code>headerText</code> property is ignored.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Panel.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content of the component.\n\t * The content is visible only when the component is expanded.\n\t *\n\t * @type {Node[]}\n\t * @name sap.ui.webc.main.Panel.prototype.default\n\t * @slot\n\t * @public\n\t */\n\n\tstatic i18nBundle: I18nBundle;\n\n\tonBeforeRendering() {\n\t\t// If the animation is running, it will set the content expanded state at the end\n\t\tif (!this._animationRunning) {\n\t\t\tthis._contentExpanded = !this.collapsed;\n\t\t}\n\n\t\tthis._hasHeader = !!this.header.length;\n\t}\n\n\tshouldToggle(element: HTMLElement): boolean {\n\t\tconst customContent = this.header.length;\n\t\tif (customContent) {\n\t\t\treturn element.classList.contains(\"ui5-panel-header-button\");\n\t\t}\n\t\treturn true;\n\t}\n\n\tshouldNotAnimate() {\n\t\treturn this.noAnimation || getAnimationMode() === AnimationMode.None;\n\t}\n\n\t_headerClick(e: MouseEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toggleOpen();\n\t}\n\n\t_toggleButtonClick(e: MouseEvent) {\n\t\tif (e.x === 0 && e.y === 0) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\t}\n\n\t_headerKeyDown(e: KeyboardEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_headerKeyUp(e: KeyboardEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._toggleOpen();\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\tthis._toggleOpen();\n\t\t}\n\t}\n\n\t_toggleOpen() {\n\t\tif (this.fixed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.collapsed = !this.collapsed;\n\n\t\tif (this.shouldNotAnimate()) {\n\t\t\tthis.fireEvent(\"toggle\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis._animationRunning = true;\n\n\t\tconst elements = this.getDomRef()!.querySelectorAll(\".ui5-panel-content\");\n\t\tconst animations: Array<Promise<void | Error>> = [];\n\n\t\t[].forEach.call(elements, oElement => {\n\t\t\tif (this.collapsed) {\n\t\t\t\tanimations.push(slideUp(oElement).promise());\n\t\t\t} else {\n\t\t\t\tanimations.push(slideDown(oElement).promise());\n\t\t\t}\n\t\t});\n\n\t\tPromise.all(animations).then(() => {\n\t\t\tthis._animationRunning = false;\n\t\t\tthis._contentExpanded = !this.collapsed;\n\t\t\tthis.fireEvent(\"toggle\");\n\t\t});\n\t}\n\n\t_headerOnTarget(target: HTMLElement) {\n\t\treturn target.classList.contains(\"sapMPanelWrappingDiv\");\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\theaderBtn: {\n\t\t\t\t\"ui5-panel-header-button-animated\": !this.shouldNotAnimate(),\n\t\t\t},\n\t\t};\n\t}\n\n\tget toggleButtonTitle() {\n\t\treturn Panel.i18nBundle.getText(PANEL_ICON);\n\t}\n\n\tget expanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\tget accRole() {\n\t\treturn this.accessibleRole.toLowerCase();\n\t}\n\n\tget effectiveAccessibleName() {\n\t\treturn typeof this.accessibleName === \"string\" && this.accessibleName.length ? this.accessibleName : undefined;\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"button\": {\n\t\t\t\t\"accessibilityAttributes\": {\n\t\t\t\t\t\"expanded\": this.expanded,\n\t\t\t\t},\n\t\t\t\t\"title\": this.toggleButtonTitle,\n\t\t\t\t\"ariaLabelButton\": !this.nonFocusableButton && this.useAccessibleNameForToggleButton ? this.effectiveAccessibleName : undefined,\n\t\t\t},\n\t\t\t\"ariaExpanded\": this.nonFixedInternalHeader ? this.expanded : undefined,\n\t\t\t\"ariaControls\": this.nonFixedInternalHeader ? `${this._id}-content` : undefined,\n\t\t\t\"ariaLabelledby\": this.nonFocusableButton ? this.ariaLabelledbyReference : undefined,\n\t\t\t\"role\": this.nonFixedInternalHeader ? \"button\" : undefined,\n\t\t};\n\t}\n\n\tget ariaLabelledbyReference() {\n\t\treturn (this.nonFocusableButton && this.headerText && !this.fixed) ? `${this._id}-header-title` : undefined;\n\t}\n\n\tget fixedPanelAriaLabelledbyReference() {\n\t\treturn this.fixed && !this.effectiveAccessibleName ? `${this._id}-header-title` : undefined;\n\t}\n\n\tget headerAriaLevel() {\n\t\treturn this.headerLevel.slice(1);\n\t}\n\n\tget headerTabIndex() {\n\t\treturn (this.header.length || this.fixed) ? \"-1\" : \"0\";\n\t}\n\n\tget headingWrapperAriaLevel() {\n\t\treturn !this._hasHeader ? this.headerAriaLevel : undefined;\n\t}\n\n\tget headingWrapperRole() {\n\t\treturn !this._hasHeader ? \"heading\" : undefined;\n\t}\n\n\tget nonFixedInternalHeader() {\n\t\treturn !this._hasHeader && !this.fixed;\n\t}\n\n\tget hasHeaderOrHeaderText() {\n\t\treturn this._hasHeader || this.headerText;\n\t}\n\n\tget nonFocusableButton() {\n\t\treturn !this.header.length;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\tdisplay: this._contentExpanded ? \"block\" : \"none\",\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic async onDefine() {\n\t\tPanel.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nPanel.define();\n\nexport default Panel;\n"]}
1
+ {"version":3,"file":"Panel.js","sourceRoot":"","sources":["../src/Panel.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,KAAK,MAAM,kDAAkD,CAAC;AACrE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,mDAAmD,CAAC;AAC3D,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,aAAa,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,SAAS;AACT,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AAiBH,IAAM,KAAK,aAAX,MAAM,KAAM,SAAQ,UAAU;IAwI7B,iBAAiB;QAChB,iFAAiF;QACjF,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC5B,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pB,aAAa,EAAE,IAAI;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,aAAa;QACvB,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;KAC5B,CAAC;IACF;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACV,KAAK,CAkUV;AAED,KAAK,CAAC,MAAM,EAAE,CAAC;AAEf,eAAe,KAAK,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport event from \"@ui5/webcomponents-base/dist/decorators/event.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport slideDown from \"@ui5/webcomponents-base/dist/animations/slideDown.js\";\nimport slideUp from \"@ui5/webcomponents-base/dist/animations/slideUp.js\";\nimport { isSpace, isEnter } from \"@ui5/webcomponents-base/dist/Keys.js\";\nimport AnimationMode from \"@ui5/webcomponents-base/dist/types/AnimationMode.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 \"@ui5/webcomponents-icons/dist/slim-arrow-right.js\";\nimport Button from \"./Button.js\";\nimport Icon from \"./Icon.js\";\nimport TitleLevel from \"./types/TitleLevel.js\";\nimport PanelAccessibleRole from \"./types/PanelAccessibleRole.js\";\nimport PanelTemplate from \"./generated/templates/PanelTemplate.lit.js\";\n\nimport { PANEL_ICON } from \"./generated/i18n/i18n-defaults.js\";\n\n// Styles\nimport panelCss from \"./generated/themes/Panel.css.js\";\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-panel</code> component is a container which has a header and a\n * content area and is used\n * for grouping and displaying information. It can be collapsed to save space on the screen.\n *\n * <h3>Guidelines:</h3>\n * <ul>\n * <li>Nesting two or more panels is not recommended.</li>\n * <li>Do not stack too many panels on one page.</li>\n * </ul>\n *\n * <h3>Structure</h3>\n * The panel's header area consists of a title bar with a header text or custom header.\n * <br>\n * The header is clickable and can be used to toggle between the expanded and collapsed state. It includes an icon which rotates depending on the state.\n * <br>\n * The custom header can be set through the <code>header</code> slot and it may contain arbitraray content, such as: title, buttons or any other HTML elements.\n * <br>\n * The content area can contain an arbitrary set of controls.\n * <br><b>Note:</b> The custom header is not clickable out of the box, but in this case the icon is interactive and allows to show/hide the content area.\n *\n * <h3>Responsive Behavior</h3>\n * <ul>\n * <li>If the width of the panel is set to 100% (default), the panel and its children are\n * resized responsively,\n * depending on its parent container.</li>\n * <li>If the panel has a fixed height, it will take up the space even if the panel is\n * collapsed.</li>\n * <li>When the panel is expandable (the <code>fixed</code> property is set to <code>false</code>),\n * an arrow icon (pointing to the right) appears in front of the header.</li>\n * <li>When the animation is activated, expand/collapse uses a smooth animation to open or\n * close the content area.</li>\n * <li>When the panel expands/collapses, the arrow icon rotates 90 degrees\n * clockwise/counter-clockwise.</li>\n * </ul>\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-panel</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>header - Used to style the wrapper of the header</li>\n * <li>content - Used to style the wrapper of the content</li>\n * </ul>\n *\n * <h3>Keyboard Handling</h3>\n *\n * <h4>Fast Navigation</h4>\n * This component provides a build in fast navigation group which can be used via <code>F6 / Shift + F6</code> or <code> Ctrl + Alt(Option) + Down / Ctrl + Alt(Option) + Up</code>.\n * In order to use this functionality, you need to import the following module:\n * <code>import \"@ui5/webcomponents-base/dist/features/F6Navigation.js\"</code>\n * <br><br>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Panel\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Panel\n * @extends sap.ui.webc.base.UI5Element\n * @tagname ui5-panel\n * @public\n */\n@customElement({\n\ttag: \"ui5-panel\",\n\tfastNavigation: true,\n\tlanguageAware: true,\n\trenderer: litRender,\n\ttemplate: PanelTemplate,\n\tstyles: panelCss,\n\tdependencies: [Button, Icon],\n})\n/**\n * Fired when the component is expanded/collapsed by user interaction.\n *\n * @event sap.ui.webc.main.Panel#toggle\n * @public\n */\n@event(\"toggle\")\nclass Panel extends UI5Element {\n\t/**\n\t * This property is used to set the header text of the component.\n\t * The text is visible in both expanded and collapsed states.\n\t * <br><br>\n\t * <b>Note:</b> This property is overridden by the <code>header</code> slot.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Panel.prototype.headerText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines whether the component is in a fixed state that is not\n\t * expandable/collapsible by user interaction.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.fixed\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tfixed!: boolean;\n\n\t/**\n\t * Indicates whether the component is collapsed and only the header is displayed.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.collapsed\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tcollapsed!: boolean;\n\n\t/**\n\t * Indicates whether the transition between the expanded and the collapsed state of the component is animated. By default the animation is enabled.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Panel.prototype.noAnimation\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.16\n\t */\n\t@property({ type: Boolean })\n\tnoAnimation!: boolean;\n\n\t/**\n\t * Sets the accessible ARIA role of the component.\n\t * Depending on the usage, you can change the role from the default <code>Form</code>\n\t * to <code>Region</code> or <code>Complementary</code>.\n\t *\n\t * @type {sap.ui.webc.main.types.PanelAccessibleRole}\n\t * @name sap.ui.webc.main.Panel.prototype.accessibleRole\n\t * @defaultvalue \"Form\"\n\t * @public\n\t */\n\t@property({ type: PanelAccessibleRole, defaultValue: PanelAccessibleRole.Form })\n\taccessibleRole!: `${PanelAccessibleRole}`;\n\n\t/**\n\t * Defines the \"aria-level\" of component heading,\n\t * set by the <code>headerText</code>.\n\t * <br><br>\n\t * Available options are: <code>\"H6\"</code> to <code>\"H1\"</code>.\n\t * @type {sap.ui.webc.main.types.TitleLevel}\n\t * @name sap.ui.webc.main.Panel.prototype.headerLevel\n\t * @defaultvalue \"H2\"\n\t * @public\n\t*/\n\t@property({ type: TitleLevel, defaultValue: TitleLevel.H2 })\n\theaderLevel!: `${TitleLevel}`;\n\n\t/**\n\t * Defines the accessible ARIA name of the component.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Panel.prototype.accessibleName\n\t * @defaultvalue \"\"\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property()\n\taccessibleName!: string;\n\n\t/**\n\t * When set to <code>true</code>, the <code>accessibleName</code> property will be\n\t * applied not only on the panel root itself, but on its toggle button too.\n\t * <b>Note:</b> This property only has effect if <code>accessibleName</code> is set and a header slot is provided.\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tuseAccessibleNameForToggleButton!: boolean;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\t_hasHeader!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_contentExpanded!: boolean;\n\n\t@property({ type: Boolean, noAttribute: true })\n\t_animationRunning!: boolean;\n\n\t/**\n\t * Defines the component header area.\n\t * <br><br>\n\t * <b>Note:</b> When a header is provided, the <code>headerText</code> property is ignored.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Panel.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot()\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content of the component.\n\t * The content is visible only when the component is expanded.\n\t *\n\t * @type {Node[]}\n\t * @name sap.ui.webc.main.Panel.prototype.default\n\t * @slot\n\t * @public\n\t */\n\n\tstatic i18nBundle: I18nBundle;\n\n\tonBeforeRendering() {\n\t\t// If the animation is running, it will set the content expanded state at the end\n\t\tif (!this._animationRunning) {\n\t\t\tthis._contentExpanded = !this.collapsed;\n\t\t}\n\n\t\tthis._hasHeader = !!this.header.length;\n\t}\n\n\tshouldToggle(element: HTMLElement): boolean {\n\t\tconst customContent = this.header.length;\n\t\tif (customContent) {\n\t\t\treturn element.classList.contains(\"ui5-panel-header-button\");\n\t\t}\n\t\treturn true;\n\t}\n\n\tshouldNotAnimate() {\n\t\treturn this.noAnimation || getAnimationMode() === AnimationMode.None;\n\t}\n\n\t_headerClick(e: MouseEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toggleOpen();\n\t}\n\n\t_toggleButtonClick(e: MouseEvent) {\n\t\tif (e.x === 0 && e.y === 0) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\t}\n\n\t_headerKeyDown(e: KeyboardEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t_headerKeyUp(e: KeyboardEvent) {\n\t\tif (!this.shouldToggle(e.target as HTMLElement)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isEnter(e)) {\n\t\t\tthis._toggleOpen();\n\t\t}\n\n\t\tif (isSpace(e)) {\n\t\t\tthis._toggleOpen();\n\t\t}\n\t}\n\n\t_toggleOpen() {\n\t\tif (this.fixed) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.collapsed = !this.collapsed;\n\n\t\tif (this.shouldNotAnimate()) {\n\t\t\tthis.fireEvent(\"toggle\");\n\t\t\treturn;\n\t\t}\n\n\t\tthis._animationRunning = true;\n\n\t\tconst elements = this.getDomRef()!.querySelectorAll(\".ui5-panel-content\");\n\t\tconst animations: Array<Promise<void | Error>> = [];\n\n\t\t[].forEach.call(elements, oElement => {\n\t\t\tif (this.collapsed) {\n\t\t\t\tanimations.push(slideUp(oElement).promise());\n\t\t\t} else {\n\t\t\t\tanimations.push(slideDown(oElement).promise());\n\t\t\t}\n\t\t});\n\n\t\tPromise.all(animations).then(() => {\n\t\t\tthis._animationRunning = false;\n\t\t\tthis._contentExpanded = !this.collapsed;\n\t\t\tthis.fireEvent(\"toggle\");\n\t\t});\n\t}\n\n\t_headerOnTarget(target: HTMLElement) {\n\t\treturn target.classList.contains(\"sapMPanelWrappingDiv\");\n\t}\n\n\tget classes() {\n\t\treturn {\n\t\t\theaderBtn: {\n\t\t\t\t\"ui5-panel-header-button-animated\": !this.shouldNotAnimate(),\n\t\t\t},\n\t\t};\n\t}\n\n\tget toggleButtonTitle() {\n\t\treturn Panel.i18nBundle.getText(PANEL_ICON);\n\t}\n\n\tget expanded() {\n\t\treturn !this.collapsed;\n\t}\n\n\tget accRole() {\n\t\treturn this.accessibleRole.toLowerCase();\n\t}\n\n\tget effectiveAccessibleName() {\n\t\treturn typeof this.accessibleName === \"string\" && this.accessibleName.length ? this.accessibleName : undefined;\n\t}\n\n\tget accInfo() {\n\t\treturn {\n\t\t\t\"button\": {\n\t\t\t\t\"accessibilityAttributes\": {\n\t\t\t\t\t\"expanded\": this.expanded,\n\t\t\t\t},\n\t\t\t\t\"title\": this.toggleButtonTitle,\n\t\t\t\t\"ariaLabelButton\": !this.nonFocusableButton && this.useAccessibleNameForToggleButton ? this.effectiveAccessibleName : undefined,\n\t\t\t},\n\t\t\t\"ariaExpanded\": this.nonFixedInternalHeader ? this.expanded : undefined,\n\t\t\t\"ariaControls\": this.nonFixedInternalHeader ? `${this._id}-content` : undefined,\n\t\t\t\"ariaLabelledby\": this.nonFocusableButton ? this.ariaLabelledbyReference : undefined,\n\t\t\t\"role\": this.nonFixedInternalHeader ? \"button\" : undefined,\n\t\t};\n\t}\n\n\tget ariaLabelledbyReference() {\n\t\treturn (this.nonFocusableButton && this.headerText && !this.fixed) ? `${this._id}-header-title` : undefined;\n\t}\n\n\tget fixedPanelAriaLabelledbyReference() {\n\t\treturn this.fixed && !this.effectiveAccessibleName ? `${this._id}-header-title` : undefined;\n\t}\n\n\tget headerAriaLevel() {\n\t\treturn this.headerLevel.slice(1);\n\t}\n\n\tget headerTabIndex() {\n\t\treturn (this.header.length || this.fixed) ? \"-1\" : \"0\";\n\t}\n\n\tget headingWrapperAriaLevel() {\n\t\treturn !this._hasHeader ? this.headerAriaLevel : undefined;\n\t}\n\n\tget headingWrapperRole() {\n\t\treturn !this._hasHeader ? \"heading\" : undefined;\n\t}\n\n\tget nonFixedInternalHeader() {\n\t\treturn !this._hasHeader && !this.fixed;\n\t}\n\n\tget hasHeaderOrHeaderText() {\n\t\treturn this._hasHeader || this.headerText;\n\t}\n\n\tget nonFocusableButton() {\n\t\treturn !this.header.length;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\tcontent: {\n\t\t\t\tdisplay: this._contentExpanded ? \"block\" : \"none\",\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic async onDefine() {\n\t\tPanel.i18nBundle = await getI18nBundle(\"@ui5/webcomponents\");\n\t}\n}\n\nPanel.define();\n\nexport default Panel;\n"]}
package/dist/Popover.d.ts CHANGED
@@ -14,7 +14,7 @@ type CalculatedPlacement = {
14
14
  arrow: ArrowPosition;
15
15
  top: number;
16
16
  left: number;
17
- placementType: PopoverPlacementType;
17
+ placementType: `${PopoverPlacementType}`;
18
18
  };
19
19
  /**
20
20
  * @class
@@ -91,7 +91,7 @@ declare class Popover extends Popup {
91
91
  * @defaultvalue "Right"
92
92
  * @public
93
93
  */
94
- placementType: PopoverPlacementType;
94
+ placementType: `${PopoverPlacementType}`;
95
95
  /**
96
96
  * Determines the horizontal alignment of the component.
97
97
  * <br><br>
@@ -108,7 +108,7 @@ declare class Popover extends Popup {
108
108
  * @defaultvalue "Center"
109
109
  * @public
110
110
  */
111
- horizontalAlign: PopoverHorizontalAlign;
111
+ horizontalAlign: `${PopoverHorizontalAlign}`;
112
112
  /**
113
113
  * Determines the vertical alignment of the component.
114
114
  * <br><br>
@@ -125,7 +125,7 @@ declare class Popover extends Popup {
125
125
  * @defaultvalue "Center"
126
126
  * @public
127
127
  */
128
- verticalAlign: PopoverVerticalAlign;
128
+ verticalAlign: `${PopoverVerticalAlign}`;
129
129
  /**
130
130
  * Defines whether the component should close when
131
131
  * clicking/tapping outside of the popover.
@@ -200,7 +200,7 @@ declare class Popover extends Popup {
200
200
  *
201
201
  * @private
202
202
  */
203
- actualPlacementType: PopoverPlacementType;
203
+ actualPlacementType: `${PopoverPlacementType}`;
204
204
  _maxHeight?: number;
205
205
  _maxWidth?: number;
206
206
  /**
@@ -254,7 +254,7 @@ declare class Popover extends Popup {
254
254
  * @private
255
255
  */
256
256
  _removeOpenedPopup(): void;
257
- shouldCloseDueToOverflow(placement: PopoverPlacementType, openerRect: DOMRect): boolean;
257
+ shouldCloseDueToOverflow(placement: `${PopoverPlacementType}`, openerRect: DOMRect): boolean;
258
258
  shouldCloseDueToNoOpener(openerRect: DOMRect): boolean;
259
259
  isOpenerOutsideViewport(openerRect: DOMRect): boolean;
260
260
  /**
@@ -294,7 +294,7 @@ declare class Popover extends Popup {
294
294
  * @private
295
295
  */
296
296
  fallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType | undefined;
297
- getActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType;
297
+ getActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): `${PopoverPlacementType}`;
298
298
  getVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number;
299
299
  getHorizontalTop(targetRect: DOMRect, popoverSize: PopoverSize): number;
300
300
  get isModal(): boolean;
@@ -322,7 +322,7 @@ declare class Popover extends Popup {
322
322
  * Hook for descendants to hide footer.
323
323
  */
324
324
  get _displayFooter(): boolean;
325
- get _actualHorizontalAlign(): PopoverHorizontalAlign;
325
+ get _actualHorizontalAlign(): "Left" | "Right" | PopoverHorizontalAlign.Left | PopoverHorizontalAlign.Right | "Center" | "Stretch";
326
326
  }
327
327
  declare const instanceOfPopover: (object: any) => object is Popover;
328
328
  export default Popover;
package/dist/Popover.js CHANGED
@@ -440,7 +440,7 @@ let Popover = Popover_1 = class Popover extends Popup {
440
440
  }
441
441
  getVerticalLeft(targetRect, popoverSize) {
442
442
  const horizontalAlign = this._actualHorizontalAlign;
443
- let left;
443
+ let left = 0;
444
444
  switch (horizontalAlign) {
445
445
  case PopoverHorizontalAlign.Center:
446
446
  case PopoverHorizontalAlign.Stretch:
@@ -456,7 +456,7 @@ let Popover = Popover_1 = class Popover extends Popup {
456
456
  return left;
457
457
  }
458
458
  getHorizontalTop(targetRect, popoverSize) {
459
- let top;
459
+ let top = 0;
460
460
  switch (this.verticalAlign) {
461
461
  case PopoverVerticalAlign.Center:
462
462
  case PopoverVerticalAlign.Stretch:
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,MAAM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,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 Popup from \"./Popup.js\";\nimport PopoverPlacementType from \"./types/PopoverPlacementType.js\";\nimport PopoverVerticalAlign from \"./types/PopoverVerticalAlign.js\";\nimport PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport { addOpenedPopover, removeOpenedPopover } from \"./popup-utils/PopoverRegistry.js\";\n\n// Template\nimport PopoverTemplate from \"./generated/templates/PopoverTemplate.lit.js\";\n// Styles\nimport browserScrollbarCSS from \"./generated/themes/BrowserScrollbar.css.js\";\nimport PopupsCommonCss from \"./generated/themes/PopupsCommon.css.js\";\nimport PopoverCss from \"./generated/themes/Popover.css.js\";\n\nconst ARROW_SIZE = 8;\n\ntype PopoverSize = {\n\twidth: number;\n\theight: number;\n}\n\ntype ArrowPosition = {\n\tx: number;\n\ty: number;\n}\n\ntype CalculatedPlacement = {\n\tarrow: ArrowPosition,\n\ttop: number,\n\tleft: number,\n\tplacementType: PopoverPlacementType,\n}\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-popover</code> component displays additional information for an object\n * in a compact way and without leaving the page.\n * The Popover can contain various UI elements, such as fields, tables, images, and charts.\n * It can also include actions in the footer.\n *\n * <h3>Structure</h3>\n *\n * The popover has three main areas:\n * <ul>\n * <li>Header (optional)</li>\n * <li>Content</li>\n * <li>Footer (optional)</li>\n * </ul>\n *\n * <b>Note:</b> The <code>ui5-popover</code> is closed when the user clicks\n * or taps outside the popover\n * or selects an action within the popover. You can prevent this with the\n * <code>modal</code> property.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-popover</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>header - Used to style the header of the component</li>\n * <li>content - Used to style the content of the component</li>\n * <li>footer - Used to style the footer of the component</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Popover.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Popover\n * @extends sap.ui.webc.main.Popup\n * @tagname ui5-popover\n * @since 1.0.0-rc.6\n * @public\n */\n@customElement({\n\ttag: \"ui5-popover\",\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPopupsCommonCss,\n\t\tPopoverCss,\n\t],\n\ttemplate: PopoverTemplate,\n})\nclass Popover extends Popup {\n\t/**\n\t * Defines the header text.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided, the <code>headerText</code> is ignored.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popover.prototype.headerText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Left</code></li>\n\t * <li><code>Right</code></li>\n\t * <li><code>Top</code></li>\n\t * <li><code>Bottom</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverPlacementType}\n\t * @name sap.ui.webc.main.Popover.prototype.placementType\n\t * @defaultvalue \"Right\"\n\t * @public\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tplacementType!: PopoverPlacementType;\n\n\t/**\n\t * Determines the horizontal alignment of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Center</code></li>\n\t * <li><code>Left</code></li>\n\t * <li><code>Right</code></li>\n\t * <li><code>Stretch</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverHorizontalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.horizontalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverHorizontalAlign, defaultValue: PopoverHorizontalAlign.Center })\n\thorizontalAlign!: PopoverHorizontalAlign;\n\n\t/**\n\t * Determines the vertical alignment of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Center</code></li>\n\t * <li><code>Top</code></li>\n\t * <li><code>Bottom</code></li>\n\t * <li><code>Stretch</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverVerticalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.verticalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverVerticalAlign, defaultValue: PopoverVerticalAlign.Center })\n\tverticalAlign!: PopoverVerticalAlign;\n\n\t/**\n\t * Defines whether the component should close when\n\t * clicking/tapping outside of the popover.\n\t * If enabled, it blocks any interaction with the background.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.modal\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tmodal!: boolean;\n\n\t/**\n\t * Defines whether the block layer will be shown if modal property is set to true.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideBackdrop\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.10\n\t */\n\t@property({ type: Boolean })\n\thideBackdrop!: boolean;\n\n\t/**\n\t * Determines whether the component arrow is hidden.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideArrow\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: Boolean })\n\thideArrow!: boolean;\n\n\t/**\n\t * Determines if there is no enough space, the component can be placed\n\t * over the target.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.allowTargetOverlap\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tallowTargetOverlap!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at\n\t * @public\n\t * @type {sap.ui.webc.base.types.DOMReference}\n\t * @name sap.ui.webc.main.Popover.prototype.opener\n\t * @defaultvalue undefined\n\t * @since 1.2.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines whether the content is scrollable.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Sets the X translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateX!: number;\n\n\t/**\n\t * Sets the Y translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateY!: number;\n\n\t/**\n\t * Returns the calculated placement depending on the free space\n\t *\n\t * @private\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tactualPlacementType!: PopoverPlacementType;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxHeight?: number;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxWidth?: number;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.footer\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tfooter!: Array<HTMLElement>;\n\n\t_opener?: HTMLElement;\n\t_openerRect?: DOMRect;\n\t_preventRepositionAndClose?: boolean;\n\t_top?: number;\n\t_left?: number;\n\t_oldPlacement?: CalculatedPlacement;\n\t_width?: string;\n\n\tstatic get VIEWPORT_MARGIN() {\n\t\treturn 10; // px\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonAfterRendering() {\n\t\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);\n\t\t\t}\n\n\t\t\tif (!opener) {\n\t\t\t\tconsole.warn(\"Valid opener id is required.\"); // eslint-disable-line\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.showAt(opener);\n\t\t} else if (this.isOpen() && !this.open) {\n\t\t\tthis.close();\n\t\t}\n\t}\n\n\tisOpenerClicked(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tif (target === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst ui5ElementTarget = target as UI5Element;\n\n\t\tif (ui5ElementTarget.getFocusDomRef && ui5ElementTarget.getFocusDomRef() === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn e.composedPath().indexOf(this._opener as EventTarget) > -1;\n\t}\n\n\t/**\n\t * Shows the popover.\n\t * @param {HTMLElement} opener the element that the popover is shown at\n\t * @param {boolean} [preventInitialFocus=false] prevents applying the focus inside the popover\n\t * @public\n\t * @async\n\t * @method\n\t * @name sap.ui.webc.main.Popover#showAt\n\t * @async\n\t * @returns {Promise} Resolved when the popover is open\n\t */\n\tasync showAt(opener: HTMLElement, preventInitialFocus = false) {\n\t\tif (!opener || this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._opener = opener;\n\t\tthis._openerRect = opener.getBoundingClientRect();\n\n\t\tawait super._open(preventInitialFocus);\n\t}\n\n\t/**\n\t * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)\n\t * @private\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopover(this);\n\t}\n\n\t/**\n\t * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)\n\t * @private\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopover(this);\n\t}\n\n\tshouldCloseDueToOverflow(placement: PopoverPlacementType, openerRect: DOMRect): boolean {\n\t\tconst threshold = 32;\n\t\tconst limits = {\n\t\t\t\"Right\": openerRect.right,\n\t\t\t\"Left\": openerRect.left,\n\t\t\t\"Top\": openerRect.top,\n\t\t\t\"Bottom\": openerRect.bottom,\n\t\t};\n\n\t\tconst closedPopupParent = getClosedPopupParent(this._opener!);\n\t\tlet overflowsBottom = false;\n\t\tlet overflowsTop = false;\n\n\t\tif ((closedPopupParent as Popover).showAt) {\n\t\t\tconst contentRect = (closedPopupParent as Popover).contentDOM.getBoundingClientRect();\n\t\t\toverflowsBottom = openerRect.top > (contentRect.top + contentRect.height);\n\t\t\toverflowsTop = (openerRect.top + openerRect.height) < contentRect.top;\n\t\t}\n\n\t\treturn (limits[placement] < 0 || (limits[placement] + threshold > (closedPopupParent as unknown as Window).innerHeight)) || overflowsBottom || overflowsTop;\n\t}\n\n\tshouldCloseDueToNoOpener(openerRect: DOMRect): boolean {\n\t\treturn openerRect.top === 0\n\t\t\t&& openerRect.bottom === 0\n\t\t\t&& openerRect.left === 0\n\t\t\t&& openerRect.right === 0;\n\t}\n\n\tisOpenerOutsideViewport(openerRect: DOMRect): boolean {\n\t\treturn openerRect.bottom < 0\n\t\t\t|| openerRect.top > window.innerHeight\n\t\t\t|| openerRect.right < 0\n\t\t\t|| openerRect.left > window.innerWidth;\n\t}\n\n\t/**\n\t * @override\n\t */\n\t_resize() {\n\t\tsuper._resize();\n\n\t\tif (this.opened) {\n\t\t\tthis.reposition();\n\t\t}\n\t}\n\n\treposition() {\n\t\tthis._show();\n\t}\n\n\t_show() {\n\t\tlet placement;\n\t\tconst popoverSize = this.getPopoverSize();\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()) {\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\n\t\tObject.assign(this.style, {\n\t\t\ttop: `${top}px`,\n\t\t\tleft: `${left}px`,\n\t\t});\n\t\tsuper._show();\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && this._width) {\n\t\t\tthis.style.width = this._width;\n\t\t}\n\t}\n\n\t/**\n\t * Adjust the desired top position to compensate for shift of the screen\n\t * caused by opened keyboard on iOS which affects all elements with position:fixed.\n\t * @private\n\t * @param {int} top The target top in px.\n\t * @returns {int} The adjusted top in px.\n\t */\n\t_adjustForIOSKeyboard(top: number): number {\n\t\tif (!isIOS()) {\n\t\t\treturn top;\n\t\t}\n\n\t\tconst actualTop = Math.ceil(this.getBoundingClientRect().top);\n\n\t\treturn top + (Number.parseInt(this.style.top || \"0\") - actualTop);\n\t}\n\n\tgetPopoverSize(): PopoverSize {\n\t\tif (!this.opened) {\n\t\t\tObject.assign(this.style, {\n\t\t\t\tdisplay: \"block\",\n\t\t\t\ttop: \"-10000px\",\n\t\t\t\tleft: \"-10000px\",\n\t\t\t});\n\t\t}\n\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\tget arrowDOM() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popover-arrow\")!;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tcalcPlacement(targetRect: DOMRect, popoverSize: PopoverSize): CalculatedPlacement {\n\t\tlet left = 0;\n\t\tlet top = 0;\n\t\tconst allowTargetOverlap = this.allowTargetOverlap;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tlet maxHeight = clientHeight;\n\t\tlet maxWidth = clientWidth;\n\n\t\tconst placementType = this.getActualPlacementType(targetRect, popoverSize);\n\n\t\tthis._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placementType, targetRect);\n\n\t\tconst isVertical = placementType === PopoverPlacementType.Top\n\t\t\t|| placementType === PopoverPlacementType.Bottom;\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && isVertical) {\n\t\t\tpopoverSize.width = targetRect.width;\n\t\t\tthis._width = `${targetRect.width}px`;\n\t\t} else if (this.verticalAlign === PopoverVerticalAlign.Stretch && !isVertical) {\n\t\t\tpopoverSize.height = targetRect.height;\n\t\t}\n\n\t\tconst arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;\n\n\t\t// calc popover positions\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxHeight = targetRect.top - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = targetRect.bottom + arrowOffset;\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\ttop = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);\n\t\t\t} else {\n\t\t\t\tmaxHeight = clientHeight - targetRect.bottom - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tleft = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxWidth = targetRect.left - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tleft = targetRect.left + targetRect.width + arrowOffset;\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\tleft = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);\n\t\t\t} else {\n\t\t\t\tmaxWidth = clientWidth - targetRect.right - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t// correct popover positions\n\t\tif (isVertical) {\n\t\t\tif (popoverSize.width > clientWidth || left < 0) {\n\t\t\t\tleft = 0;\n\t\t\t} else if (left + popoverSize.width > clientWidth) {\n\t\t\t\tleft -= left + popoverSize.width - clientWidth;\n\t\t\t}\n\t\t} else {\n\t\t\tif (popoverSize.height > clientHeight || top < 0) { // eslint-disable-line\n\t\t\t\ttop = 0;\n\t\t\t} else if (top + popoverSize.height > clientHeight) {\n\t\t\t\ttop -= top + popoverSize.height - clientHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis._maxHeight = Math.round(maxHeight - Popover.VIEWPORT_MARGIN);\n\t\tthis._maxWidth = Math.round(maxWidth - Popover.VIEWPORT_MARGIN);\n\n\t\tif (this._left === undefined || Math.abs(this._left - left) > 1.5) {\n\t\t\tthis._left = Math.round(left);\n\t\t}\n\n\t\tif (this._top === undefined || Math.abs(this._top - top) > 1.5) {\n\t\t\tthis._top = Math.round(top);\n\t\t}\n\n\t\tconst borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue(\"border-radius\"));\n\t\tconst arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);\n\n\t\treturn {\n\t\t\tarrow: arrowPos,\n\t\t\ttop: this._top,\n\t\t\tleft: this._left,\n\t\t\tplacementType,\n\t\t};\n\t}\n\n\t/**\n\t * Calculates the position for the arrow.\n\t * @private\n\t * @param targetRect BoundingClientRect of the target element\n\t * @param {{width: number, height: number}} popoverSize Width and height of the popover\n\t * @param left Left offset of the popover\n\t * @param top Top offset of the popover\n\t * @param isVertical If the popover is positioned vertically to the target element\n\t * @param {number} borderRadius Value of the border-radius property\n\t * @returns {{x: number, y: number}} Arrow's coordinates\n\t */\n\tgetArrowPosition(targetRect: DOMRect, popoverSize: PopoverSize, left: number, top: number, isVertical: boolean, borderRadius: number): ArrowPosition {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet arrowXCentered = horizontalAlign === PopoverHorizontalAlign.Center || horizontalAlign === PopoverHorizontalAlign.Stretch;\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Right && left <= targetRect.left) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Left && left + popoverSize.width >= targetRect.left + targetRect.width) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tlet arrowTranslateX = 0;\n\t\tif (isVertical && arrowXCentered) {\n\t\t\tarrowTranslateX = targetRect.left + targetRect.width / 2 - left - popoverSize.width / 2;\n\t\t}\n\n\t\tlet arrowTranslateY = 0;\n\t\tif (!isVertical) {\n\t\t\tarrowTranslateY = targetRect.top + targetRect.height / 2 - top - popoverSize.height / 2;\n\t\t}\n\n\t\t// Restricts the arrow's translate value along each dimension,\n\t\t// so that the arrow does not clip over the popover's rounded borders.\n\t\tconst safeRangeForArrowY = popoverSize.height / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateY = clamp(\n\t\t\tarrowTranslateY,\n\t\t\t-safeRangeForArrowY,\n\t\t\tsafeRangeForArrowY,\n\t\t);\n\n\t\tconst safeRangeForArrowX = popoverSize.width / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateX = clamp(\n\t\t\tarrowTranslateX,\n\t\t\t-safeRangeForArrowX,\n\t\t\tsafeRangeForArrowX,\n\t\t);\n\n\t\treturn {\n\t\t\tx: Math.round(arrowTranslateX),\n\t\t\ty: Math.round(arrowTranslateY),\n\t\t};\n\t}\n\n\t/**\n\t * Fallbacks to new placement, prioritizing <code>Left</code> and <code>Right</code> placements.\n\t * @private\n\t */\n\tfallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType | undefined {\n\t\tif (targetRect.left > popoverSize.width) {\n\t\t\treturn PopoverPlacementType.Left;\n\t\t}\n\n\t\tif (clientWidth - targetRect.right > targetRect.left) {\n\t\t\treturn PopoverPlacementType.Right;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom > popoverSize.height) {\n\t\t\treturn PopoverPlacementType.Bottom;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\treturn PopoverPlacementType.Top;\n\t\t}\n\t}\n\n\tgetActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType {\n\t\tconst placementType = this.placementType;\n\t\tlet actualPlacementType = placementType;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tif (targetRect.top < popoverSize.height\n\t\t\t\t&& targetRect.top < clientHeight - targetRect.bottom) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Bottom;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tif (clientHeight - targetRect.bottom < popoverSize.height\n\t\t\t\t&& clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Top;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tif (targetRect.left < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tif (clientWidth - targetRect.right < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn actualPlacementType;\n\t}\n\n\tgetVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet left;\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;\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"]}
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../src/Popover.ts"],"names":[],"mappings":";;;;;;;AACA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,MAAM,4CAA4C,CAAC;AAC/D,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,sBAAsB,MAAM,m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AE,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 Popup from \"./Popup.js\";\nimport PopoverPlacementType from \"./types/PopoverPlacementType.js\";\nimport PopoverVerticalAlign from \"./types/PopoverVerticalAlign.js\";\nimport PopoverHorizontalAlign from \"./types/PopoverHorizontalAlign.js\";\nimport { addOpenedPopover, removeOpenedPopover } from \"./popup-utils/PopoverRegistry.js\";\n\n// Template\nimport PopoverTemplate from \"./generated/templates/PopoverTemplate.lit.js\";\n// Styles\nimport browserScrollbarCSS from \"./generated/themes/BrowserScrollbar.css.js\";\nimport PopupsCommonCss from \"./generated/themes/PopupsCommon.css.js\";\nimport PopoverCss from \"./generated/themes/Popover.css.js\";\n\nconst ARROW_SIZE = 8;\n\ntype PopoverSize = {\n\twidth: number;\n\theight: number;\n}\n\ntype ArrowPosition = {\n\tx: number;\n\ty: number;\n}\n\ntype CalculatedPlacement = {\n\tarrow: ArrowPosition,\n\ttop: number,\n\tleft: number,\n\tplacementType: `${PopoverPlacementType}`,\n}\n\n/**\n * @class\n *\n * <h3 class=\"comment-api-title\">Overview</h3>\n *\n * The <code>ui5-popover</code> component displays additional information for an object\n * in a compact way and without leaving the page.\n * The Popover can contain various UI elements, such as fields, tables, images, and charts.\n * It can also include actions in the footer.\n *\n * <h3>Structure</h3>\n *\n * The popover has three main areas:\n * <ul>\n * <li>Header (optional)</li>\n * <li>Content</li>\n * <li>Footer (optional)</li>\n * </ul>\n *\n * <b>Note:</b> The <code>ui5-popover</code> is closed when the user clicks\n * or taps outside the popover\n * or selects an action within the popover. You can prevent this with the\n * <code>modal</code> property.\n *\n * <h3>CSS Shadow Parts</h3>\n *\n * <ui5-link target=\"_blank\" href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/::part\">CSS Shadow Parts</ui5-link> allow developers to style elements inside the Shadow DOM.\n * <br>\n * The <code>ui5-popover</code> exposes the following CSS Shadow Parts:\n * <ul>\n * <li>header - Used to style the header of the component</li>\n * <li>content - Used to style the content of the component</li>\n * <li>footer - Used to style the footer of the component</li>\n * </ul>\n *\n * <h3>ES6 Module Import</h3>\n *\n * <code>import \"@ui5/webcomponents/dist/Popover.js\";</code>\n *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Popover\n * @extends sap.ui.webc.main.Popup\n * @tagname ui5-popover\n * @since 1.0.0-rc.6\n * @public\n */\n@customElement({\n\ttag: \"ui5-popover\",\n\tstyles: [\n\t\tbrowserScrollbarCSS,\n\t\tPopupsCommonCss,\n\t\tPopoverCss,\n\t],\n\ttemplate: PopoverTemplate,\n})\nclass Popover extends Popup {\n\t/**\n\t * Defines the header text.\n\t * <br><br>\n\t * <b>Note:</b> If <code>header</code> slot is provided, the <code>headerText</code> is ignored.\n\t *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popover.prototype.headerText\n\t * @defaultvalue \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Determines on which side the component is placed at.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Left</code></li>\n\t * <li><code>Right</code></li>\n\t * <li><code>Top</code></li>\n\t * <li><code>Bottom</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverPlacementType}\n\t * @name sap.ui.webc.main.Popover.prototype.placementType\n\t * @defaultvalue \"Right\"\n\t * @public\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tplacementType!: `${PopoverPlacementType}`;\n\n\t/**\n\t * Determines the horizontal alignment of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Center</code></li>\n\t * <li><code>Left</code></li>\n\t * <li><code>Right</code></li>\n\t * <li><code>Stretch</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverHorizontalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.horizontalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverHorizontalAlign, defaultValue: PopoverHorizontalAlign.Center })\n\thorizontalAlign!: `${PopoverHorizontalAlign}`;\n\n\t/**\n\t * Determines the vertical alignment of the component.\n\t * <br><br>\n\t * Available options are:\n\t * <ul>\n\t * <li><code>Center</code></li>\n\t * <li><code>Top</code></li>\n\t * <li><code>Bottom</code></li>\n\t * <li><code>Stretch</code></li>\n\t * </ul>\n\t *\n\t * @type {sap.ui.webc.main.types.PopoverVerticalAlign}\n\t * @name sap.ui.webc.main.Popover.prototype.verticalAlign\n\t * @defaultvalue \"Center\"\n\t * @public\n\t */\n\t@property({ type: PopoverVerticalAlign, defaultValue: PopoverVerticalAlign.Center })\n\tverticalAlign!: `${PopoverVerticalAlign}`;\n\n\t/**\n\t * Defines whether the component should close when\n\t * clicking/tapping outside of the popover.\n\t * If enabled, it blocks any interaction with the background.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.modal\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tmodal!: boolean;\n\n\t/**\n\t * Defines whether the block layer will be shown if modal property is set to true.\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideBackdrop\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.10\n\t */\n\t@property({ type: Boolean })\n\thideBackdrop!: boolean;\n\n\t/**\n\t * Determines whether the component arrow is hidden.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.hideArrow\n\t * @defaultvalue false\n\t * @public\n\t * @since 1.0.0-rc.15\n\t */\n\t@property({ type: Boolean })\n\thideArrow!: boolean;\n\n\t/**\n\t * Determines if there is no enough space, the component can be placed\n\t * over the target.\n\t *\n\t * @type {boolean}\n\t * @name sap.ui.webc.main.Popover.prototype.allowTargetOverlap\n\t * @defaultvalue false\n\t * @public\n\t */\n\t@property({ type: Boolean })\n\tallowTargetOverlap!: boolean;\n\n\t/**\n\t * Defines the ID or DOM Reference of the element that the popover is shown at\n\t * @public\n\t * @type {sap.ui.webc.base.types.DOMReference}\n\t * @name sap.ui.webc.main.Popover.prototype.opener\n\t * @defaultvalue undefined\n\t * @since 1.2.0\n\t */\n\t@property({ validator: DOMReference })\n\topener?: HTMLElement | string;\n\n\t/**\n\t * Defines whether the content is scrollable.\n\t *\n\t * @type {boolean}\n\t * @defaultvalue false\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tdisableScrolling!: boolean;\n\n\t/**\n\t * Sets the X translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateX!: number;\n\n\t/**\n\t * Sets the Y translation of the arrow\n\t *\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 0, noAttribute: true })\n\tarrowTranslateY!: number;\n\n\t/**\n\t * Returns the calculated placement depending on the free space\n\t *\n\t * @private\n\t */\n\t@property({ type: PopoverPlacementType, defaultValue: PopoverPlacementType.Right })\n\tactualPlacementType!: `${PopoverPlacementType}`;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxHeight?: number;\n\n\t@property({ validator: Integer, noAttribute: true })\n\t_maxWidth?: number;\n\n\t/**\n\t * Defines the header HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.header\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the footer HTML Element.\n\t *\n\t * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popover.prototype.footer\n\t * @slot\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\tfooter!: Array<HTMLElement>;\n\n\t_opener?: HTMLElement;\n\t_openerRect?: DOMRect;\n\t_preventRepositionAndClose?: boolean;\n\t_top?: number;\n\t_left?: number;\n\t_oldPlacement?: CalculatedPlacement;\n\t_width?: string;\n\n\tstatic get VIEWPORT_MARGIN() {\n\t\treturn 10; // px\n\t}\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tonAfterRendering() {\n\t\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);\n\t\t\t}\n\n\t\t\tif (!opener) {\n\t\t\t\tconsole.warn(\"Valid opener id is required.\"); // eslint-disable-line\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.showAt(opener);\n\t\t} else if (this.isOpen() && !this.open) {\n\t\t\tthis.close();\n\t\t}\n\t}\n\n\tisOpenerClicked(e: MouseEvent) {\n\t\tconst target = e.target as HTMLElement;\n\t\tif (target === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\tconst ui5ElementTarget = target as UI5Element;\n\n\t\tif (ui5ElementTarget.getFocusDomRef && ui5ElementTarget.getFocusDomRef() === this._opener) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn e.composedPath().indexOf(this._opener as EventTarget) > -1;\n\t}\n\n\t/**\n\t * Shows the popover.\n\t * @param {HTMLElement} opener the element that the popover is shown at\n\t * @param {boolean} [preventInitialFocus=false] prevents applying the focus inside the popover\n\t * @public\n\t * @async\n\t * @method\n\t * @name sap.ui.webc.main.Popover#showAt\n\t * @async\n\t * @returns {Promise} Resolved when the popover is open\n\t */\n\tasync showAt(opener: HTMLElement, preventInitialFocus = false) {\n\t\tif (!opener || this.opened) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._opener = opener;\n\t\tthis._openerRect = opener.getBoundingClientRect();\n\n\t\tawait super._open(preventInitialFocus);\n\t}\n\n\t/**\n\t * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)\n\t * @private\n\t */\n\t_addOpenedPopup() {\n\t\taddOpenedPopover(this);\n\t}\n\n\t/**\n\t * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)\n\t * @private\n\t */\n\t_removeOpenedPopup() {\n\t\tremoveOpenedPopover(this);\n\t}\n\n\tshouldCloseDueToOverflow(placement: `${PopoverPlacementType}`, openerRect: DOMRect): boolean {\n\t\tconst threshold = 32;\n\t\tconst limits = {\n\t\t\t\"Right\": openerRect.right,\n\t\t\t\"Left\": openerRect.left,\n\t\t\t\"Top\": openerRect.top,\n\t\t\t\"Bottom\": openerRect.bottom,\n\t\t};\n\n\t\tconst closedPopupParent = getClosedPopupParent(this._opener!);\n\t\tlet overflowsBottom = false;\n\t\tlet overflowsTop = false;\n\n\t\tif ((closedPopupParent as Popover).showAt) {\n\t\t\tconst contentRect = (closedPopupParent as Popover).contentDOM.getBoundingClientRect();\n\t\t\toverflowsBottom = openerRect.top > (contentRect.top + contentRect.height);\n\t\t\toverflowsTop = (openerRect.top + openerRect.height) < contentRect.top;\n\t\t}\n\n\t\treturn (limits[placement] < 0 || (limits[placement] + threshold > (closedPopupParent as unknown as Window).innerHeight)) || overflowsBottom || overflowsTop;\n\t}\n\n\tshouldCloseDueToNoOpener(openerRect: DOMRect): boolean {\n\t\treturn openerRect.top === 0\n\t\t\t&& openerRect.bottom === 0\n\t\t\t&& openerRect.left === 0\n\t\t\t&& openerRect.right === 0;\n\t}\n\n\tisOpenerOutsideViewport(openerRect: DOMRect): boolean {\n\t\treturn openerRect.bottom < 0\n\t\t\t|| openerRect.top > window.innerHeight\n\t\t\t|| openerRect.right < 0\n\t\t\t|| openerRect.left > window.innerWidth;\n\t}\n\n\t/**\n\t * @override\n\t */\n\t_resize() {\n\t\tsuper._resize();\n\n\t\tif (this.opened) {\n\t\t\tthis.reposition();\n\t\t}\n\t}\n\n\treposition() {\n\t\tthis._show();\n\t}\n\n\t_show() {\n\t\tlet placement;\n\t\tconst popoverSize = this.getPopoverSize();\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()) {\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\n\t\tObject.assign(this.style, {\n\t\t\ttop: `${top}px`,\n\t\t\tleft: `${left}px`,\n\t\t});\n\t\tsuper._show();\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && this._width) {\n\t\t\tthis.style.width = this._width;\n\t\t}\n\t}\n\n\t/**\n\t * Adjust the desired top position to compensate for shift of the screen\n\t * caused by opened keyboard on iOS which affects all elements with position:fixed.\n\t * @private\n\t * @param {int} top The target top in px.\n\t * @returns {int} The adjusted top in px.\n\t */\n\t_adjustForIOSKeyboard(top: number): number {\n\t\tif (!isIOS()) {\n\t\t\treturn top;\n\t\t}\n\n\t\tconst actualTop = Math.ceil(this.getBoundingClientRect().top);\n\n\t\treturn top + (Number.parseInt(this.style.top || \"0\") - actualTop);\n\t}\n\n\tgetPopoverSize(): PopoverSize {\n\t\tif (!this.opened) {\n\t\t\tObject.assign(this.style, {\n\t\t\t\tdisplay: \"block\",\n\t\t\t\ttop: \"-10000px\",\n\t\t\t\tleft: \"-10000px\",\n\t\t\t});\n\t\t}\n\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\tget arrowDOM() {\n\t\treturn this.shadowRoot!.querySelector(\".ui5-popover-arrow\")!;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tcalcPlacement(targetRect: DOMRect, popoverSize: PopoverSize): CalculatedPlacement {\n\t\tlet left = 0;\n\t\tlet top = 0;\n\t\tconst allowTargetOverlap = this.allowTargetOverlap;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tlet maxHeight = clientHeight;\n\t\tlet maxWidth = clientWidth;\n\n\t\tconst placementType = this.getActualPlacementType(targetRect, popoverSize);\n\n\t\tthis._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placementType, targetRect);\n\n\t\tconst isVertical = placementType === PopoverPlacementType.Top\n\t\t\t|| placementType === PopoverPlacementType.Bottom;\n\n\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Stretch && isVertical) {\n\t\t\tpopoverSize.width = targetRect.width;\n\t\t\tthis._width = `${targetRect.width}px`;\n\t\t} else if (this.verticalAlign === PopoverVerticalAlign.Stretch && !isVertical) {\n\t\t\tpopoverSize.height = targetRect.height;\n\t\t}\n\n\t\tconst arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;\n\n\t\t// calc popover positions\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxHeight = targetRect.top - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tleft = this.getVerticalLeft(targetRect, popoverSize);\n\t\t\ttop = targetRect.bottom + arrowOffset;\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\ttop = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);\n\t\t\t} else {\n\t\t\t\tmaxHeight = clientHeight - targetRect.bottom - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tleft = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (!allowTargetOverlap) {\n\t\t\t\tmaxWidth = targetRect.left - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tleft = targetRect.left + targetRect.width + arrowOffset;\n\t\t\ttop = this.getHorizontalTop(targetRect, popoverSize);\n\n\t\t\tif (allowTargetOverlap) {\n\t\t\t\tleft = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);\n\t\t\t} else {\n\t\t\t\tmaxWidth = clientWidth - targetRect.right - arrowOffset;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t// correct popover positions\n\t\tif (isVertical) {\n\t\t\tif (popoverSize.width > clientWidth || left < 0) {\n\t\t\t\tleft = 0;\n\t\t\t} else if (left + popoverSize.width > clientWidth) {\n\t\t\t\tleft -= left + popoverSize.width - clientWidth;\n\t\t\t}\n\t\t} else {\n\t\t\tif (popoverSize.height > clientHeight || top < 0) { // eslint-disable-line\n\t\t\t\ttop = 0;\n\t\t\t} else if (top + popoverSize.height > clientHeight) {\n\t\t\t\ttop -= top + popoverSize.height - clientHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis._maxHeight = Math.round(maxHeight - Popover.VIEWPORT_MARGIN);\n\t\tthis._maxWidth = Math.round(maxWidth - Popover.VIEWPORT_MARGIN);\n\n\t\tif (this._left === undefined || Math.abs(this._left - left) > 1.5) {\n\t\t\tthis._left = Math.round(left);\n\t\t}\n\n\t\tif (this._top === undefined || Math.abs(this._top - top) > 1.5) {\n\t\t\tthis._top = Math.round(top);\n\t\t}\n\n\t\tconst borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue(\"border-radius\"));\n\t\tconst arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);\n\n\t\treturn {\n\t\t\tarrow: arrowPos,\n\t\t\ttop: this._top,\n\t\t\tleft: this._left,\n\t\t\tplacementType,\n\t\t};\n\t}\n\n\t/**\n\t * Calculates the position for the arrow.\n\t * @private\n\t * @param targetRect BoundingClientRect of the target element\n\t * @param {{width: number, height: number}} popoverSize Width and height of the popover\n\t * @param left Left offset of the popover\n\t * @param top Top offset of the popover\n\t * @param isVertical If the popover is positioned vertically to the target element\n\t * @param {number} borderRadius Value of the border-radius property\n\t * @returns {{x: number, y: number}} Arrow's coordinates\n\t */\n\tgetArrowPosition(targetRect: DOMRect, popoverSize: PopoverSize, left: number, top: number, isVertical: boolean, borderRadius: number): ArrowPosition {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet arrowXCentered = horizontalAlign === PopoverHorizontalAlign.Center || horizontalAlign === PopoverHorizontalAlign.Stretch;\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Right && left <= targetRect.left) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tif (horizontalAlign === PopoverHorizontalAlign.Left && left + popoverSize.width >= targetRect.left + targetRect.width) {\n\t\t\tarrowXCentered = true;\n\t\t}\n\n\t\tlet arrowTranslateX = 0;\n\t\tif (isVertical && arrowXCentered) {\n\t\t\tarrowTranslateX = targetRect.left + targetRect.width / 2 - left - popoverSize.width / 2;\n\t\t}\n\n\t\tlet arrowTranslateY = 0;\n\t\tif (!isVertical) {\n\t\t\tarrowTranslateY = targetRect.top + targetRect.height / 2 - top - popoverSize.height / 2;\n\t\t}\n\n\t\t// Restricts the arrow's translate value along each dimension,\n\t\t// so that the arrow does not clip over the popover's rounded borders.\n\t\tconst safeRangeForArrowY = popoverSize.height / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateY = clamp(\n\t\t\tarrowTranslateY,\n\t\t\t-safeRangeForArrowY,\n\t\t\tsafeRangeForArrowY,\n\t\t);\n\n\t\tconst safeRangeForArrowX = popoverSize.width / 2 - borderRadius - ARROW_SIZE / 2;\n\t\tarrowTranslateX = clamp(\n\t\t\tarrowTranslateX,\n\t\t\t-safeRangeForArrowX,\n\t\t\tsafeRangeForArrowX,\n\t\t);\n\n\t\treturn {\n\t\t\tx: Math.round(arrowTranslateX),\n\t\t\ty: Math.round(arrowTranslateY),\n\t\t};\n\t}\n\n\t/**\n\t * Fallbacks to new placement, prioritizing <code>Left</code> and <code>Right</code> placements.\n\t * @private\n\t */\n\tfallbackPlacement(clientWidth: number, clientHeight: number, targetRect: DOMRect, popoverSize: PopoverSize): PopoverPlacementType | undefined {\n\t\tif (targetRect.left > popoverSize.width) {\n\t\t\treturn PopoverPlacementType.Left;\n\t\t}\n\n\t\tif (clientWidth - targetRect.right > targetRect.left) {\n\t\t\treturn PopoverPlacementType.Right;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom > popoverSize.height) {\n\t\t\treturn PopoverPlacementType.Bottom;\n\t\t}\n\n\t\tif (clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\treturn PopoverPlacementType.Top;\n\t\t}\n\t}\n\n\tgetActualPlacementType(targetRect: DOMRect, popoverSize: PopoverSize): `${PopoverPlacementType}` {\n\t\tconst placementType = this.placementType;\n\t\tlet actualPlacementType = placementType;\n\n\t\tconst clientWidth = document.documentElement.clientWidth;\n\t\tconst clientHeight = document.documentElement.clientHeight;\n\n\t\tswitch (placementType) {\n\t\tcase PopoverPlacementType.Top:\n\t\t\tif (targetRect.top < popoverSize.height\n\t\t\t\t&& targetRect.top < clientHeight - targetRect.bottom) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Bottom;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Bottom:\n\t\t\tif (clientHeight - targetRect.bottom < popoverSize.height\n\t\t\t\t&& clientHeight - targetRect.bottom < targetRect.top) {\n\t\t\t\tactualPlacementType = PopoverPlacementType.Top;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Left:\n\t\t\tif (targetRect.left < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PopoverPlacementType.Right:\n\t\t\tif (clientWidth - targetRect.right < popoverSize.width) {\n\t\t\t\tactualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn actualPlacementType;\n\t}\n\n\tgetVerticalLeft(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tconst horizontalAlign = this._actualHorizontalAlign;\n\t\tlet left = 0;\n\n\t\tswitch (horizontalAlign) {\n\t\tcase PopoverHorizontalAlign.Center:\n\t\tcase PopoverHorizontalAlign.Stretch:\n\t\t\tleft = targetRect.left - (popoverSize.width - targetRect.width) / 2;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Left:\n\t\t\tleft = targetRect.left;\n\t\t\tbreak;\n\t\tcase PopoverHorizontalAlign.Right:\n\t\t\tleft = targetRect.right - popoverSize.width;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn left;\n\t}\n\n\tgetHorizontalTop(targetRect: DOMRect, popoverSize: PopoverSize): number {\n\t\tlet top = 0;\n\n\t\tswitch (this.verticalAlign) {\n\t\tcase PopoverVerticalAlign.Center:\n\t\tcase PopoverVerticalAlign.Stretch:\n\t\t\ttop = targetRect.top - (popoverSize.height - targetRect.height) / 2;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Top:\n\t\t\ttop = targetRect.top;\n\t\t\tbreak;\n\t\tcase PopoverVerticalAlign.Bottom:\n\t\t\ttop = targetRect.bottom - popoverSize.height;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn top;\n\t}\n\n\tget isModal() { // Required by Popup.js\n\t\treturn this.modal;\n\t}\n\n\tget shouldHideBackdrop() { // Required by Popup.js\n\t\treturn this.hideBackdrop;\n\t}\n\n\tget _ariaLabelledBy() { // Required by Popup.js\n\t\tif (!this._ariaLabel && this._displayHeader) {\n\t\t\treturn \"ui5-popup-header\";\n\t\t}\n\n\t\treturn undefined;\n\t}\n\n\tget styles() {\n\t\treturn {\n\t\t\t...super.styles,\n\t\t\troot: {\n\t\t\t\t\"max-height\": this._maxHeight ? `${this._maxHeight}px` : \"\",\n\t\t\t\t\"max-width\": this._maxWidth ? `${this._maxWidth}px` : \"\",\n\t\t\t},\n\t\t\tarrow: {\n\t\t\t\ttransform: `translate(${this.arrowTranslateX}px, ${this.arrowTranslateY}px)`,\n\t\t\t},\n\t\t};\n\t}\n\n\tget classes() {\n\t\tconst allClasses = super.classes;\n\t\tallClasses.root[\"ui5-popover-root\"] = true;\n\n\t\treturn allClasses;\n\t}\n\n\t/**\n\t * Hook for descendants to hide header.\n\t */\n\tget _displayHeader() {\n\t\treturn !!(this.header.length || this.headerText);\n\t}\n\n\t/**\n\t * Hook for descendants to hide footer.\n\t */\n\tget _displayFooter() {\n\t\treturn true;\n\t}\n\n\tget _actualHorizontalAlign() {\n\t\tif (this.effectiveDir === \"rtl\") {\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Left) {\n\t\t\t\treturn PopoverHorizontalAlign.Right;\n\t\t\t}\n\n\t\t\tif (this.horizontalAlign === PopoverHorizontalAlign.Right) {\n\t\t\t\treturn PopoverHorizontalAlign.Left;\n\t\t\t}\n\t\t}\n\n\t\treturn this.horizontalAlign;\n\t}\n}\n\nconst instanceOfPopover = (object: any): object is Popover => {\n\treturn \"showAt\" in object;\n};\n\nPopover.define();\n\nexport default Popover;\n\nexport { instanceOfPopover };\n"]}
package/dist/Popup.d.ts CHANGED
@@ -111,7 +111,7 @@ declare abstract class Popup extends UI5Element {
111
111
  * @public
112
112
  * @since 1.10.0
113
113
  */
114
- accessibleRole: PopupAccessibleRole;
114
+ accessibleRole: `${PopupAccessibleRole}`;
115
115
  /**
116
116
  * Defines the current media query size.
117
117
  *
package/dist/Popup.js CHANGED
@@ -12,7 +12,7 @@ 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 } from "@ui5/webcomponents-base/dist/Device.js";
15
+ import { isChrome, isSafari } 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";
@@ -143,7 +143,9 @@ let Popup = Popup_1 = class Popup extends UI5Element {
143
143
  }
144
144
  }
145
145
  _onmousedown(e) {
146
- this._root.removeAttribute("tabindex");
146
+ if (!isSafari()) { // TODO remove when adopting native dialog
147
+ this._root.removeAttribute("tabindex");
148
+ }
147
149
  if (this.shadowRoot.contains(e.target)) {
148
150
  this._shouldFocusRoot = true;
149
151
  }
@@ -152,7 +154,9 @@ let Popup = Popup_1 = class Popup extends UI5Element {
152
154
  }
153
155
  }
154
156
  _onmouseup() {
155
- this._root.tabIndex = -1;
157
+ if (!isSafari()) { // TODO remove when adopting native dialog
158
+ this._root.tabIndex = -1;
159
+ }
156
160
  if (this._shouldFocusRoot) {
157
161
  if (isChrome()) {
158
162
  this._root.focus();
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,MAAM,wCAAwC,CAAC;AAClE,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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AAE,EAAE,CAAC;gDACJ;AAgB3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,MAAM,EAAE,CAAC;6CAC7C;AASrC;IADC,QAAQ,EAAE;yCACS;AAMpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mDACG;AAG/B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDACA;AAY5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;8CACrB;AAU1B;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;sCACjB;AA1Hd,KAAK;IAnDnB,aAAa,CAAC;QACd,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,aAAa;QACvB,kBAAkB,EAAE,eAAe;QACnC,gBAAgB,EAAE,qBAAqB;KACvC,CAAC;IACF;;;;;;OAMG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;;;OAKG;;IACF,KAAK,CAAC,YAAY,CAAC;IAEpB;;;;;;;OAOG;;IACF,KAAK,CAAC,cAAc,EAAE;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC7B,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACD,KAAK,CA8fnB;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 } 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 * <h3 class=\"comment-api-title\">Overview</h3>\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 *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Popup\n * @extends sap.ui.webc.base.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. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#before-open\n * @allowPreventDefault\n */\n@event(\"before-open\")\n\n/**\n * Fired after the component is opened. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#after-open\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. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#before-close\n * @allowPreventDefault\n * @param {boolean} escPressed Indicates that <code>ESC</code> key has triggered the event.\n */\n@event(\"before-close\", {\n\tescPressed: { type: Boolean },\n})\n\n/**\n * Fired after the component is closed. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#after-close\n */\n@event(\"after-close\")\n\n/**\n * Fired whenever the popup content area is scrolled\n *\n * @private\n * @event sap.ui.webc.main.Popup#scroll\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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.initialFocus\n\t * @defaultvalue \"\"\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 * @type {boolean}\n\t * @name sap.ui.webc.main.Popup.prototype.preventFocusRestore\n\t * @defaultvalue 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 * @type {boolean}\n\t * @name sap.ui.webc.main.Popup.prototype.open\n\t * @defaultvalue 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 * @type {boolean}\n\t * @defaultvalue 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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleName\n\t * @defaultvalue 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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleNameRef\n\t * @defaultvalue \"\"\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. Available options are:\n\t * <ul>\n\t * <li><code>Dialog</code></li>\n\t * <li><code>None</code></li>\n\t * <li><code>AlertDialog</code></li>\n\t * </ul>\n\t * @type {sap.ui.webc.main.types.PopupAccessibleRole}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleRole\n\t * @defaultvalue \"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 *\n\t * @type {string}\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 *\n\t * @private\n\t * @type {boolean}\n\t * @defaultvalue 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 * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popup.prototype.default\n\t * @slot content\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\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.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\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\tthis._root.removeAttribute(\"tabindex\");\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\tthis._root.tabIndex = -1;\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({ focusVisible: true } as FocusOptions);\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({ focusVisible: true } as FocusOptions);\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 <code>initialFocus</code>, if provided,\n\t * or the first focusable element otherwise.\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.Popup#applyFocus\n\t * @async\n\t * @returns {Promise} Promise that resolves when the focus is applied\n\t */\n\tasync applyFocus() {\n\t\tawait this._waitForDomRef();\n\n\t\tconst element = (this.getRootNode() as Document).getElementById(this.initialFocus)\n\t\t\t|| document.getElementById(this.initialFocus)\n\t\t\t|| await getFirstFocusableElement(this)\n\t\t\t|| 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({ focusVisible: true } as FocusOptions);\n\t\t}\n\t}\n\n\t/**\n\t * Tells if the component is opened\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.Popup#isOpen\n\t * @returns {boolean}\n\t */\n\tisOpen() {\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\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/**\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 * @method\n\t * @name sap.ui.webc.main.Popup#close\n\t * @returns {void}\n\t */\n\tclose(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {\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({ focusVisible: true } as FocusOptions);\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {boolean}\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {boolean}\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {string | undefined}\n\t */\n\tabstract get _ariaLabelledBy(): string | undefined\n\n\t/**\n\t * Ensures ariaLabel is never null or empty string\n\t * @returns {string | undefined}\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,wCAAw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QAAQ,EAAE,aAAa;QACvB,kBAAkB,EAAE,eAAe;QACnC,gBAAgB,EAAE,qBAAqB;KACvC,CAAC;IACF;;;;;;OAMG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;;;OAKG;;IACF,KAAK,CAAC,YAAY,CAAC;IAEpB;;;;;;;OAOG;;IACF,KAAK,CAAC,cAAc,EAAE;QACtB,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC7B,CAAC;IAEF;;;;;OAKG;;IACF,KAAK,CAAC,aAAa,CAAC;IAErB;;;;;OAKG;;IACF,KAAK,CAAC,QAAQ,CAAC;GACD,KAAK,CAkgBnB;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 * <h3 class=\"comment-api-title\">Overview</h3>\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 *\n * @constructor\n * @author SAP SE\n * @alias sap.ui.webc.main.Popup\n * @extends sap.ui.webc.base.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. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#before-open\n * @allowPreventDefault\n */\n@event(\"before-open\")\n\n/**\n * Fired after the component is opened. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#after-open\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. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#before-close\n * @allowPreventDefault\n * @param {boolean} escPressed Indicates that <code>ESC</code> key has triggered the event.\n */\n@event(\"before-close\", {\n\tescPressed: { type: Boolean },\n})\n\n/**\n * Fired after the component is closed. <b>This event does not bubble.</b>\n *\n * @public\n * @event sap.ui.webc.main.Popup#after-close\n */\n@event(\"after-close\")\n\n/**\n * Fired whenever the popup content area is scrolled\n *\n * @private\n * @event sap.ui.webc.main.Popup#scroll\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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.initialFocus\n\t * @defaultvalue \"\"\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 * @type {boolean}\n\t * @name sap.ui.webc.main.Popup.prototype.preventFocusRestore\n\t * @defaultvalue 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 * @type {boolean}\n\t * @name sap.ui.webc.main.Popup.prototype.open\n\t * @defaultvalue 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 * @type {boolean}\n\t * @defaultvalue 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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleName\n\t * @defaultvalue 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 *\n\t * @type {string}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleNameRef\n\t * @defaultvalue \"\"\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. Available options are:\n\t * <ul>\n\t * <li><code>Dialog</code></li>\n\t * <li><code>None</code></li>\n\t * <li><code>AlertDialog</code></li>\n\t * </ul>\n\t * @type {sap.ui.webc.main.types.PopupAccessibleRole}\n\t * @name sap.ui.webc.main.Popup.prototype.accessibleRole\n\t * @defaultvalue \"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 *\n\t * @type {string}\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 *\n\t * @private\n\t * @type {boolean}\n\t * @defaultvalue 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 * @type {HTMLElement[]}\n\t * @name sap.ui.webc.main.Popup.prototype.default\n\t * @slot content\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\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.mediaRange = MediaRange.getCurrentRange(MediaRange.RANGESETS.RANGE_4STEPS, this.getDomRef()!.offsetWidth);\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()) { // TODO 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()) { // TODO 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({ focusVisible: true } as FocusOptions);\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({ focusVisible: true } as FocusOptions);\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 <code>initialFocus</code>, if provided,\n\t * or the first focusable element otherwise.\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.Popup#applyFocus\n\t * @async\n\t * @returns {Promise} Promise that resolves when the focus is applied\n\t */\n\tasync applyFocus() {\n\t\tawait this._waitForDomRef();\n\n\t\tconst element = (this.getRootNode() as Document).getElementById(this.initialFocus)\n\t\t\t|| document.getElementById(this.initialFocus)\n\t\t\t|| await getFirstFocusableElement(this)\n\t\t\t|| 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({ focusVisible: true } as FocusOptions);\n\t\t}\n\t}\n\n\t/**\n\t * Tells if the component is opened\n\t * @public\n\t * @method\n\t * @name sap.ui.webc.main.Popup#isOpen\n\t * @returns {boolean}\n\t */\n\tisOpen() {\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\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/**\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 * @method\n\t * @name sap.ui.webc.main.Popup#close\n\t * @returns {void}\n\t */\n\tclose(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {\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({ focusVisible: true } as FocusOptions);\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {boolean}\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {boolean}\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 *\n\t * @protected\n\t * @abstract\n\t * @returns {string | undefined}\n\t */\n\tabstract get _ariaLabelledBy(): string | undefined\n\n\t/**\n\t * Ensures ariaLabel is never null or empty string\n\t * @returns {string | undefined}\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"]}
@@ -84,7 +84,7 @@ declare class ProgressIndicator extends UI5Element {
84
84
  * @defaultvalue "None"
85
85
  * @public
86
86
  */
87
- valueState: ValueState;
87
+ valueState: `${ValueState}`;
88
88
  static i18nBundle: I18nBundle;
89
89
  _previousValue: number;
90
90
  _transitionDuration: number;