@openui5/sap.ui.webc.main 1.111.1 → 1.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/package.json +3 -3
  2. package/src/sap/ui/webc/main/.library +1 -1
  3. package/src/sap/ui/webc/main/Avatar.js +1 -1
  4. package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
  5. package/src/sap/ui/webc/main/Badge.js +1 -1
  6. package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
  7. package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
  8. package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
  9. package/src/sap/ui/webc/main/Button.js +1 -1
  10. package/src/sap/ui/webc/main/Calendar.js +1 -1
  11. package/src/sap/ui/webc/main/CalendarDate.js +1 -1
  12. package/src/sap/ui/webc/main/Card.js +1 -1
  13. package/src/sap/ui/webc/main/CardHeader.js +1 -1
  14. package/src/sap/ui/webc/main/Carousel.js +1 -1
  15. package/src/sap/ui/webc/main/CheckBox.js +1 -1
  16. package/src/sap/ui/webc/main/ColorPalette.js +1 -1
  17. package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
  18. package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
  19. package/src/sap/ui/webc/main/ColorPicker.js +1 -1
  20. package/src/sap/ui/webc/main/ComboBox.js +1 -1
  21. package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
  22. package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
  23. package/src/sap/ui/webc/main/CustomListItem.js +1 -1
  24. package/src/sap/ui/webc/main/DatePicker.js +2 -2
  25. package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
  26. package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
  27. package/src/sap/ui/webc/main/Dialog.js +1 -1
  28. package/src/sap/ui/webc/main/FileUploader.js +1 -1
  29. package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
  30. package/src/sap/ui/webc/main/Icon.js +5 -11
  31. package/src/sap/ui/webc/main/Input.js +1 -1
  32. package/src/sap/ui/webc/main/Label.js +1 -1
  33. package/src/sap/ui/webc/main/Link.js +1 -1
  34. package/src/sap/ui/webc/main/List.js +1 -1
  35. package/src/sap/ui/webc/main/Menu.js +1 -1
  36. package/src/sap/ui/webc/main/MenuItem.js +1 -1
  37. package/src/sap/ui/webc/main/MessageStrip.js +1 -1
  38. package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
  39. package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
  40. package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
  41. package/src/sap/ui/webc/main/MultiInput.js +1 -1
  42. package/src/sap/ui/webc/main/Option.js +1 -1
  43. package/src/sap/ui/webc/main/Panel.js +1 -1
  44. package/src/sap/ui/webc/main/Popover.js +1 -1
  45. package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
  46. package/src/sap/ui/webc/main/RadioButton.js +1 -1
  47. package/src/sap/ui/webc/main/RangeSlider.js +1 -1
  48. package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
  49. package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
  50. package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
  51. package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
  52. package/src/sap/ui/webc/main/Select.js +1 -1
  53. package/src/sap/ui/webc/main/Slider.js +1 -1
  54. package/src/sap/ui/webc/main/SplitButton.js +1 -1
  55. package/src/sap/ui/webc/main/StandardListItem.js +1 -1
  56. package/src/sap/ui/webc/main/StepInput.js +1 -1
  57. package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
  58. package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
  59. package/src/sap/ui/webc/main/Switch.js +1 -1
  60. package/src/sap/ui/webc/main/Tab.js +1 -1
  61. package/src/sap/ui/webc/main/TabContainer.js +1 -1
  62. package/src/sap/ui/webc/main/TabSeparator.js +1 -1
  63. package/src/sap/ui/webc/main/Table.js +1 -1
  64. package/src/sap/ui/webc/main/TableCell.js +1 -1
  65. package/src/sap/ui/webc/main/TableColumn.js +1 -1
  66. package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
  67. package/src/sap/ui/webc/main/TableRow.js +1 -1
  68. package/src/sap/ui/webc/main/TextArea.js +1 -1
  69. package/src/sap/ui/webc/main/TimePicker.js +2 -2
  70. package/src/sap/ui/webc/main/Title.js +1 -1
  71. package/src/sap/ui/webc/main/Toast.js +1 -1
  72. package/src/sap/ui/webc/main/ToggleButton.js +1 -1
  73. package/src/sap/ui/webc/main/Token.js +1 -1
  74. package/src/sap/ui/webc/main/Tree.js +1 -1
  75. package/src/sap/ui/webc/main/TreeItem.js +1 -1
  76. package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
  77. package/src/sap/ui/webc/main/library.config.js +6 -0
  78. package/src/sap/ui/webc/main/library.js +2 -2
  79. package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
  80. package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
  81. package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
  82. package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
  83. package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
  84. package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
  85. package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
  86. package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
  87. package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
  88. package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
  89. package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
  90. package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
  91. package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
  92. package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
  93. package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
  94. package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
  95. package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
  96. package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
  97. package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
  98. package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
  99. package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
  100. package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
  101. package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
  102. package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
  103. package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
  104. package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
  105. package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
  106. package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
  107. package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
  108. package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
  109. package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
  110. package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
  111. package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
  112. package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
  113. package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
  114. package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
  115. package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
  116. package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
  117. package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
  118. package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
  119. package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
  120. package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
  121. package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
  122. package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
  123. package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
  124. package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
  125. package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
  126. package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
  127. package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
  128. package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
  129. package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
  130. package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
  131. package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
  132. package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
  133. package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
  134. package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
  135. package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
  136. package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
  137. package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
  138. package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
  139. package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
  140. package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
  141. package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
  142. package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
  143. package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
  144. package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
  145. package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
  146. package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
  147. package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
  148. package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
  149. package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
  150. package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
  151. package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
  152. package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
  153. package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
  154. package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
  155. package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
  156. package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
  157. package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
  158. package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
  159. package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
  160. package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
  161. package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
  162. package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
  163. package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
  164. package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
  165. package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
  166. package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
  167. package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
  168. package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
  169. package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
  170. package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
  171. package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
  172. package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
  173. package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
  174. package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
  175. package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
  176. package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
  177. package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
  178. package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
  179. package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
  180. package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
  181. package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
  182. package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
  183. package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
  184. package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
  185. package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
  186. package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
  187. package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
  188. package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
  189. package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
  190. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
  191. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
  192. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
  193. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
  194. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
  195. package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
  196. package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
  197. package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
  198. package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
  199. package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
  200. package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
  201. package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
  202. package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
  203. package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
  204. package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
  205. package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
  206. package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
  207. package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
  208. package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
  209. package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
  210. package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
  211. package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
  212. package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
  213. package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
  214. package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
  215. package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
  216. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
  217. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
  218. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
  219. package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
  220. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
  221. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
  222. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
  223. package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
  224. package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
  225. package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
  226. package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
  227. package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
  228. package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
  229. package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
  230. package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
  231. package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
  232. package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
  233. package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
  234. package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
  235. package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
  236. package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
  237. package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
  238. package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
  239. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
  240. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
  241. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
  242. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
  243. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
  244. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
  245. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
  246. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
  247. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
  248. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
  249. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
  250. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
  251. package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
  252. package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
  253. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
  254. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
  255. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
  256. package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
  257. package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
  258. package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
  259. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
  260. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
  261. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
  262. package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
  263. package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
  264. package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
  265. package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
  266. package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
  267. package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
  268. package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
  269. package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
  270. package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
  271. package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
  272. package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
  273. package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
  274. package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
  275. package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
  276. package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
  277. package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
  278. package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
  279. package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
  280. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
  281. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
  282. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
  283. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
  284. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
  285. package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
  286. package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
  287. package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
  288. package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
  289. package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
  290. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
  291. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
  292. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
  293. package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
  294. package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
  295. package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
  296. package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
  297. package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
  298. package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
  299. package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
  300. package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
  301. package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
  302. package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
  303. package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
  304. package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
  305. package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
  306. package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
  307. package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
  308. package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
  309. package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
  310. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
  311. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
  312. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
  313. package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
  314. package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
  315. package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
  316. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
  317. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
  318. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
  319. package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
  320. package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
  321. package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
  322. package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
  323. package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
  324. package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
  325. package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
  326. package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
  327. package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
  328. package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
  329. package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
  330. package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
  331. package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
  332. package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
  333. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
  334. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
  335. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
  336. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
  337. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
  338. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
  339. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
  340. package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
  341. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
  342. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
  343. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
  344. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
  345. package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
  346. package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
  347. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
  348. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
  349. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
  350. package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
  351. package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
  352. package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
  353. package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
  354. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
  355. package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
  356. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
  357. package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
  358. package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
  359. package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
  360. package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
  361. package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
  362. package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
  363. package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
  364. package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
  365. package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
  366. package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
  367. package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
  368. package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
  369. package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
  370. package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
  371. package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
  372. package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
  373. package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
  374. package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
  375. package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
  376. package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
  377. package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
  378. package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
  379. package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
  380. package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
  381. package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
  382. package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
  383. package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
  384. package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
  385. package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
  386. package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
  387. package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
  388. package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
  389. package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
  390. package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
  391. package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
  392. package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
  393. package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
  394. package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
  395. package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
  396. package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
  397. package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
  398. package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
  399. package/ui5.yaml +1 -1
@@ -15,21 +15,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
15
15
  _BrowserScrollbar = _interopRequireDefault(_BrowserScrollbar);
16
16
  _PopupsCommon = _interopRequireDefault(_PopupsCommon);
17
17
  _Popover = _interopRequireDefault(_Popover);
18
-
19
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
19
  // Template
20
+
22
21
  // Styles
22
+
23
23
  const ARROW_SIZE = 8;
24
+
24
25
  /**
25
26
  * @public
26
27
  */
27
-
28
28
  const metadata = {
29
29
  tag: "ui5-popover",
30
- properties:
31
- /** @lends sap.ui.webcomponents.main.Popover.prototype */
32
- {
30
+ properties: /** @lends sap.ui.webcomponents.main.Popover.prototype */{
33
31
  /**
34
32
  * Defines the header text.
35
33
  * <br><br>
@@ -42,7 +40,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
42
40
  headerText: {
43
41
  type: String
44
42
  },
45
-
46
43
  /**
47
44
  * Determines on which side the component is placed at.
48
45
  * <br><br>
@@ -62,7 +59,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
62
59
  type: _PopoverPlacementType.default,
63
60
  defaultValue: _PopoverPlacementType.default.Right
64
61
  },
65
-
66
62
  /**
67
63
  * Determines the horizontal alignment of the component.
68
64
  * <br><br>
@@ -82,7 +78,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
82
78
  type: _PopoverHorizontalAlign.default,
83
79
  defaultValue: _PopoverHorizontalAlign.default.Center
84
80
  },
85
-
86
81
  /**
87
82
  * Determines the vertical alignment of the component.
88
83
  * <br><br>
@@ -102,7 +97,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
102
97
  type: _PopoverVerticalAlign.default,
103
98
  defaultValue: _PopoverVerticalAlign.default.Center
104
99
  },
105
-
106
100
  /**
107
101
  * Defines whether the component should close when
108
102
  * clicking/tapping outside of the popover.
@@ -115,7 +109,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
115
109
  modal: {
116
110
  type: Boolean
117
111
  },
118
-
119
112
  /**
120
113
  * Defines whether the block layer will be shown if modal property is set to true.
121
114
  * @type {boolean}
@@ -126,7 +119,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
126
119
  hideBackdrop: {
127
120
  type: Boolean
128
121
  },
129
-
130
122
  /**
131
123
  * Determines whether the component arrow is hidden.
132
124
  *
@@ -138,7 +130,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
138
130
  hideArrow: {
139
131
  type: Boolean
140
132
  },
141
-
142
133
  /**
143
134
  * Determines if there is no enough space, the component can be placed
144
135
  * over the target.
@@ -150,7 +141,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
150
141
  allowTargetOverlap: {
151
142
  type: Boolean
152
143
  },
153
-
154
144
  /**
155
145
  * Defines the opener id of the element that the popover is shown at
156
146
  * @public
@@ -161,7 +151,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
161
151
  opener: {
162
152
  type: String
163
153
  },
164
-
165
154
  /**
166
155
  * Defines whether the content is scrollable.
167
156
  *
@@ -172,7 +161,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
172
161
  disableScrolling: {
173
162
  type: Boolean
174
163
  },
175
-
176
164
  /**
177
165
  * Sets the X translation of the arrow
178
166
  *
@@ -183,7 +171,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
183
171
  defaultValue: 0,
184
172
  noAttribute: true
185
173
  },
186
-
187
174
  /**
188
175
  * Sets the Y translation of the arrow
189
176
  *
@@ -194,7 +181,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
194
181
  defaultValue: 0,
195
182
  noAttribute: true
196
183
  },
197
-
198
184
  /**
199
185
  * Returns the calculated placement depending on the free space
200
186
  *
@@ -214,9 +200,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
214
200
  }
215
201
  },
216
202
  managedSlots: true,
217
- slots:
218
- /** @lends sap.ui.webcomponents.main.Popover.prototype */
219
- {
203
+ slots: /** @lends sap.ui.webcomponents.main.Popover.prototype */{
220
204
  /**
221
205
  * Defines the header HTML Element.
222
206
  *
@@ -227,7 +211,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
227
211
  header: {
228
212
  type: HTMLElement
229
213
  },
230
-
231
214
  /**
232
215
  * Defines the footer HTML Element.
233
216
  *
@@ -239,10 +222,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
239
222
  type: HTMLElement
240
223
  }
241
224
  },
242
- events:
243
- /** @lends sap.ui.webcomponents.main.Popover.prototype */
244
- {}
225
+ events: /** @lends sap.ui.webcomponents.main.Popover.prototype */{}
245
226
  };
227
+
246
228
  /**
247
229
  * @class
248
230
  *
@@ -290,24 +272,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
290
272
  * @since 1.0.0-rc.6
291
273
  * @public
292
274
  */
293
-
294
275
  class Popover extends _Popup.default {
295
276
  constructor() {
296
277
  super();
297
278
  }
298
-
299
279
  static get metadata() {
300
280
  return metadata;
301
281
  }
302
-
303
282
  static get styles() {
304
283
  return [_BrowserScrollbar.default, _PopupsCommon.default, _Popover.default];
305
284
  }
306
-
307
285
  static get template() {
308
286
  return _PopoverTemplate.default;
309
287
  }
310
-
311
288
  static get VIEWPORT_MARGIN() {
312
289
  return 10; // px
313
290
  }
@@ -315,23 +292,20 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
315
292
  onAfterRendering() {
316
293
  if (!this.isOpen() && this.open) {
317
294
  const opener = document.getElementById(this.opener);
318
-
319
295
  if (!opener) {
320
296
  console.warn("Valid opener id is required."); // eslint-disable-line
321
-
322
297
  return;
323
298
  }
324
-
325
299
  this.showAt(opener);
326
300
  } else if (this.isOpen() && !this.open) {
327
301
  this.close();
328
302
  }
329
303
  }
330
-
331
304
  isOpenerClicked(event) {
332
305
  const target = event.target;
333
306
  return target === this._opener || target.getFocusDomRef && target.getFocusDomRef() === this._opener || event.composedPath().indexOf(this._opener) > -1;
334
307
  }
308
+
335
309
  /**
336
310
  * Shows the popover.
337
311
  * @param {HTMLElement} opener the element that the popover is shown at
@@ -340,36 +314,30 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
340
314
  * @async
341
315
  * @returns {Promise} Resolved when the popover is open
342
316
  */
343
-
344
-
345
317
  async showAt(opener, preventInitialFocus = false) {
346
318
  if (!opener || this.opened) {
347
319
  return;
348
320
  }
349
-
350
321
  this._opener = opener;
351
322
  this._openerRect = opener.getBoundingClientRect();
352
323
  await super._open(preventInitialFocus);
353
324
  }
325
+
354
326
  /**
355
327
  * Override for the _addOpenedPopup hook, which would otherwise just call addOpenedPopup(this)
356
328
  * @private
357
329
  */
358
-
359
-
360
330
  _addOpenedPopup() {
361
331
  (0, _PopoverRegistry.addOpenedPopover)(this);
362
332
  }
333
+
363
334
  /**
364
335
  * Override for the _removeOpenedPopup hook, which would otherwise just call removeOpenedPopup(this)
365
336
  * @private
366
337
  */
367
-
368
-
369
338
  _removeOpenedPopup() {
370
339
  (0, _PopoverRegistry.removeOpenedPopover)(this);
371
340
  }
372
-
373
341
  shouldCloseDueToOverflow(placement, openerRect) {
374
342
  const threshold = 32;
375
343
  const limits = {
@@ -381,54 +349,43 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
381
349
  const closedPopupParent = (0, _PopupUtils.getClosedPopupParent)(this._opener);
382
350
  let overflowsBottom = false;
383
351
  let overflowsTop = false;
384
-
385
352
  if (closedPopupParent.showAt) {
386
353
  const contentRect = closedPopupParent.contentDOM.getBoundingClientRect();
387
354
  overflowsBottom = openerRect.top > contentRect.top + contentRect.height;
388
355
  overflowsTop = openerRect.top + openerRect.height < contentRect.top;
389
356
  }
390
-
391
357
  return limits[placement] < 0 || limits[placement] + threshold > closedPopupParent.innerHeight || overflowsBottom || overflowsTop;
392
358
  }
393
-
394
359
  shouldCloseDueToNoOpener(openerRect) {
395
360
  return openerRect.top === 0 && openerRect.bottom === 0 && openerRect.left === 0 && openerRect.right === 0;
396
361
  }
397
-
398
362
  isOpenerOutsideViewport(openerRect) {
399
363
  return openerRect.bottom < 0 || openerRect.top > window.innerHeight || openerRect.right < 0 || openerRect.left > window.innerWidth;
400
364
  }
365
+
401
366
  /**
402
367
  * @override
403
368
  */
404
-
405
-
406
369
  _resize() {
407
370
  super._resize();
408
-
409
371
  if (this.opened) {
410
372
  this.reposition();
411
373
  }
412
374
  }
413
-
414
375
  reposition() {
415
376
  this._show();
416
377
  }
417
-
418
378
  _show() {
419
379
  let placement;
420
380
  const popoverSize = this.getPopoverSize();
421
-
422
381
  if (popoverSize.width === 0 || popoverSize.height === 0) {
423
382
  // size can not be determined properly at this point, popover will be shown with the next reposition
424
383
  return;
425
384
  }
426
-
427
385
  if (this.isOpen()) {
428
386
  // update opener rect if it was changed during the popover being opened
429
387
  this._openerRect = this._opener.getBoundingClientRect();
430
388
  }
431
-
432
389
  if (this.shouldCloseDueToNoOpener(this._openerRect) && this.isFocusWithin()) {
433
390
  // reuse the old placement as the opener is not available,
434
391
  // but keep the popover open as the focus is within
@@ -436,27 +393,20 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
436
393
  } else {
437
394
  placement = this.calcPlacement(this._openerRect, popoverSize);
438
395
  }
439
-
440
396
  const stretching = this.horizontalAlign === _PopoverHorizontalAlign.default.Stretch;
441
-
442
397
  if (this._preventRepositionAndClose || this.isOpenerOutsideViewport(this._openerRect)) {
443
398
  return this.close();
444
399
  }
445
-
446
400
  this._oldPlacement = placement;
447
401
  this.actualPlacementType = placement.placementType;
448
402
  let left = (0, _clamp.default)(this._left, Popover.VIEWPORT_MARGIN, document.documentElement.clientWidth - popoverSize.width - Popover.VIEWPORT_MARGIN);
449
-
450
403
  if (this.actualPlacementType === _PopoverPlacementType.default.Right) {
451
404
  left = Math.max(left, this._left);
452
405
  }
453
-
454
406
  let top = (0, _clamp.default)(this._top, Popover.VIEWPORT_MARGIN, document.documentElement.clientHeight - popoverSize.height - Popover.VIEWPORT_MARGIN);
455
-
456
407
  if (this.actualPlacementType === _PopoverPlacementType.default.Bottom) {
457
408
  top = Math.max(top, this._top);
458
409
  }
459
-
460
410
  this.arrowTranslateX = placement.arrow.x;
461
411
  this.arrowTranslateY = placement.arrow.y;
462
412
  top = this._adjustForIOSKeyboard(top);
@@ -464,13 +414,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
464
414
  top: `${top}px`,
465
415
  left: `${left}px`
466
416
  });
467
-
468
417
  super._show();
469
-
470
418
  if (stretching && this._width) {
471
419
  this.style.width = this._width;
472
420
  }
473
421
  }
422
+
474
423
  /**
475
424
  * Adjust the desired top position to compensate for shift of the screen
476
425
  * caused by opened keyboard on iOS which affects all elements with position:fixed.
@@ -478,17 +427,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
478
427
  * @param {int} top The target top in px.
479
428
  * @returns {int} The adjusted top in px.
480
429
  */
481
-
482
-
483
430
  _adjustForIOSKeyboard(top) {
484
431
  if (!(0, _Device.isIOS)()) {
485
432
  return top;
486
433
  }
487
-
488
434
  const actualTop = Math.ceil(this.getBoundingClientRect().top);
489
435
  return top + (Number.parseInt(this.style.top || "0") - actualTop);
490
436
  }
491
-
492
437
  getPopoverSize() {
493
438
  if (!this.opened) {
494
439
  Object.assign(this.style, {
@@ -497,24 +442,21 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
497
442
  left: "-10000px"
498
443
  });
499
444
  }
500
-
501
445
  const rect = this.getBoundingClientRect(),
502
- width = rect.width,
503
- height = rect.height;
446
+ width = rect.width,
447
+ height = rect.height;
504
448
  return {
505
449
  width,
506
450
  height
507
451
  };
508
452
  }
509
-
510
453
  get arrowDOM() {
511
454
  return this.shadowRoot.querySelector(".ui5-popover-arrow");
512
455
  }
456
+
513
457
  /**
514
458
  * @private
515
459
  */
516
-
517
-
518
460
  calcPlacement(targetRect, popoverSize) {
519
461
  let left = 0;
520
462
  let top = 0;
@@ -526,63 +468,51 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
526
468
  const placementType = this.getActualPlacementType(targetRect, popoverSize);
527
469
  this._preventRepositionAndClose = this.shouldCloseDueToNoOpener(targetRect) || this.shouldCloseDueToOverflow(placementType, targetRect);
528
470
  const isVertical = placementType === _PopoverPlacementType.default.Top || placementType === _PopoverPlacementType.default.Bottom;
529
-
530
471
  if (this.horizontalAlign === _PopoverHorizontalAlign.default.Stretch && isVertical) {
531
472
  popoverSize.width = targetRect.width;
532
473
  this._width = `${targetRect.width}px`;
533
474
  } else if (this.verticalAlign === _PopoverVerticalAlign.default.Stretch && !isVertical) {
534
475
  popoverSize.height = targetRect.height;
535
476
  }
477
+ const arrowOffset = this.hideArrow ? 0 : ARROW_SIZE;
536
478
 
537
- const arrowOffset = this.hideArrow ? 0 : ARROW_SIZE; // calc popover positions
538
-
479
+ // calc popover positions
539
480
  switch (placementType) {
540
481
  case _PopoverPlacementType.default.Top:
541
482
  left = this.getVerticalLeft(targetRect, popoverSize);
542
483
  top = Math.max(targetRect.top - popoverSize.height - arrowOffset, 0);
543
-
544
484
  if (!allowTargetOverlap) {
545
485
  maxHeight = targetRect.top - arrowOffset;
546
486
  }
547
-
548
487
  break;
549
-
550
488
  case _PopoverPlacementType.default.Bottom:
551
489
  left = this.getVerticalLeft(targetRect, popoverSize);
552
490
  top = targetRect.bottom + arrowOffset;
553
-
554
491
  if (allowTargetOverlap) {
555
492
  top = Math.max(Math.min(top, clientHeight - popoverSize.height), 0);
556
493
  } else {
557
494
  maxHeight = clientHeight - targetRect.bottom - arrowOffset;
558
495
  }
559
-
560
496
  break;
561
-
562
497
  case _PopoverPlacementType.default.Left:
563
498
  left = Math.max(targetRect.left - popoverSize.width - arrowOffset, 0);
564
499
  top = this.getHorizontalTop(targetRect, popoverSize);
565
-
566
500
  if (!allowTargetOverlap) {
567
501
  maxWidth = targetRect.left - arrowOffset;
568
502
  }
569
-
570
503
  break;
571
-
572
504
  case _PopoverPlacementType.default.Right:
573
505
  left = targetRect.left + targetRect.width + arrowOffset;
574
506
  top = this.getHorizontalTop(targetRect, popoverSize);
575
-
576
507
  if (allowTargetOverlap) {
577
508
  left = Math.max(Math.min(left, clientWidth - popoverSize.width), 0);
578
509
  } else {
579
510
  maxWidth = clientWidth - targetRect.right - arrowOffset;
580
511
  }
581
-
582
512
  break;
583
- } // correct popover positions
584
-
513
+ }
585
514
 
515
+ // correct popover positions
586
516
  if (isVertical) {
587
517
  if (popoverSize.width > clientWidth || left < 0) {
588
518
  left = 0;
@@ -597,18 +527,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
597
527
  top -= top + popoverSize.height - clientHeight;
598
528
  }
599
529
  }
600
-
601
530
  this._maxHeight = Math.round(maxHeight - Popover.VIEWPORT_MARGIN);
602
531
  this._maxWidth = Math.round(maxWidth - Popover.VIEWPORT_MARGIN);
603
-
604
532
  if (this._left === undefined || Math.abs(this._left - left) > 1.5) {
605
533
  this._left = Math.round(left);
606
534
  }
607
-
608
535
  if (this._top === undefined || Math.abs(this._top - top) > 1.5) {
609
536
  this._top = Math.round(top);
610
537
  }
611
-
612
538
  const borderRadius = Number.parseInt(window.getComputedStyle(this).getPropertyValue("border-radius"));
613
539
  const arrowPos = this.getArrowPosition(targetRect, popoverSize, left, top, isVertical, borderRadius);
614
540
  return {
@@ -618,6 +544,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
618
544
  placementType
619
545
  };
620
546
  }
547
+
621
548
  /**
622
549
  * Calculates the position for the arrow.
623
550
  * @private
@@ -629,36 +556,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
629
556
  * @param {number} borderRadius Value of the border-radius property
630
557
  * @returns {{x: number, y: number}} Arrow's coordinates
631
558
  */
632
-
633
-
634
559
  getArrowPosition(targetRect, {
635
560
  width,
636
561
  height
637
562
  }, left, top, isVertical, borderRadius) {
638
563
  let arrowXCentered = this.horizontalAlign === _PopoverHorizontalAlign.default.Center || this.horizontalAlign === _PopoverHorizontalAlign.default.Stretch;
639
-
640
564
  if (this.horizontalAlign === _PopoverHorizontalAlign.default.Right && left <= targetRect.left) {
641
565
  arrowXCentered = true;
642
566
  }
643
-
644
567
  if (this.horizontalAlign === _PopoverHorizontalAlign.default.Left && left + width >= targetRect.left + targetRect.width) {
645
568
  arrowXCentered = true;
646
569
  }
647
-
648
570
  let arrowTranslateX = 0;
649
-
650
571
  if (isVertical && arrowXCentered) {
651
572
  arrowTranslateX = targetRect.left + targetRect.width / 2 - left - width / 2;
652
573
  }
653
-
654
574
  let arrowTranslateY = 0;
655
-
656
575
  if (!isVertical) {
657
576
  arrowTranslateY = targetRect.top + targetRect.height / 2 - top - height / 2;
658
- } // Restricts the arrow's translate value along each dimension,
659
- // so that the arrow does not clip over the popover's rounded borders.
660
-
577
+ }
661
578
 
579
+ // Restricts the arrow's translate value along each dimension,
580
+ // so that the arrow does not clip over the popover's rounded borders.
662
581
  const safeRangeForArrowY = height / 2 - borderRadius - ARROW_SIZE / 2;
663
582
  arrowTranslateY = (0, _clamp.default)(arrowTranslateY, -safeRangeForArrowY, safeRangeForArrowY);
664
583
  const safeRangeForArrowX = width / 2 - borderRadius - ARROW_SIZE / 2;
@@ -668,137 +587,108 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
668
587
  y: Math.round(arrowTranslateY)
669
588
  };
670
589
  }
590
+
671
591
  /**
672
592
  * Fallbacks to new placement, prioritizing <code>Left</code> and <code>Right</code> placements.
673
593
  * @private
674
594
  */
675
-
676
-
677
595
  fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) {
678
596
  if (targetRect.left > popoverSize.width) {
679
597
  return _PopoverPlacementType.default.Left;
680
598
  }
681
-
682
599
  if (clientWidth - targetRect.right > targetRect.left) {
683
600
  return _PopoverPlacementType.default.Right;
684
601
  }
685
-
686
602
  if (clientHeight - targetRect.bottom > popoverSize.height) {
687
603
  return _PopoverPlacementType.default.Bottom;
688
604
  }
689
-
690
605
  if (clientHeight - targetRect.bottom < targetRect.top) {
691
606
  return _PopoverPlacementType.default.Top;
692
607
  }
693
608
  }
694
-
695
609
  getActualPlacementType(targetRect, popoverSize) {
696
610
  const placementType = this.placementType;
697
611
  let actualPlacementType = placementType;
698
612
  const clientWidth = document.documentElement.clientWidth;
699
613
  const clientHeight = document.documentElement.clientHeight;
700
-
701
614
  switch (placementType) {
702
615
  case _PopoverPlacementType.default.Top:
703
616
  if (targetRect.top < popoverSize.height && targetRect.top < clientHeight - targetRect.bottom) {
704
617
  actualPlacementType = _PopoverPlacementType.default.Bottom;
705
618
  }
706
-
707
619
  break;
708
-
709
620
  case _PopoverPlacementType.default.Bottom:
710
621
  if (clientHeight - targetRect.bottom < popoverSize.height && clientHeight - targetRect.bottom < targetRect.top) {
711
622
  actualPlacementType = _PopoverPlacementType.default.Top;
712
623
  }
713
-
714
624
  break;
715
-
716
625
  case _PopoverPlacementType.default.Left:
717
626
  if (targetRect.left < popoverSize.width) {
718
627
  actualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;
719
628
  }
720
-
721
629
  break;
722
-
723
630
  case _PopoverPlacementType.default.Right:
724
631
  if (clientWidth - targetRect.right < popoverSize.width) {
725
632
  actualPlacementType = this.fallbackPlacement(clientWidth, clientHeight, targetRect, popoverSize) || placementType;
726
633
  }
727
-
728
634
  break;
729
635
  }
730
-
731
636
  return actualPlacementType;
732
637
  }
733
-
734
638
  getVerticalLeft(targetRect, popoverSize) {
735
639
  let left;
736
-
737
640
  switch (this.horizontalAlign) {
738
641
  case _PopoverHorizontalAlign.default.Center:
739
642
  case _PopoverHorizontalAlign.default.Stretch:
740
643
  left = targetRect.left - (popoverSize.width - targetRect.width) / 2;
741
644
  break;
742
-
743
645
  case _PopoverHorizontalAlign.default.Left:
744
646
  left = targetRect.left;
745
647
  break;
746
-
747
648
  case _PopoverHorizontalAlign.default.Right:
748
649
  left = targetRect.right - popoverSize.width;
749
650
  break;
750
651
  }
751
-
752
652
  return left;
753
653
  }
754
-
755
654
  getHorizontalTop(targetRect, popoverSize) {
756
655
  let top;
757
-
758
656
  switch (this.verticalAlign) {
759
657
  case _PopoverVerticalAlign.default.Center:
760
658
  case _PopoverVerticalAlign.default.Stretch:
761
659
  top = targetRect.top - (popoverSize.height - targetRect.height) / 2;
762
660
  break;
763
-
764
661
  case _PopoverVerticalAlign.default.Top:
765
662
  top = targetRect.top;
766
663
  break;
767
-
768
664
  case _PopoverVerticalAlign.default.Bottom:
769
665
  top = targetRect.bottom - popoverSize.height;
770
666
  break;
771
667
  }
772
-
773
668
  return top;
774
669
  }
775
-
776
670
  get isModal() {
777
671
  // Required by Popup.js
778
672
  return this.modal;
779
673
  }
780
-
781
674
  get shouldHideBackdrop() {
782
675
  // Required by Popup.js
783
676
  return this.hideBackdrop;
784
677
  }
785
-
786
678
  get _ariaLabelledBy() {
787
679
  // Required by Popup.js
788
680
  if (!this._ariaLabel && this._displayHeader) {
789
681
  return "ui5-popup-header";
790
682
  }
791
-
792
683
  return undefined;
793
684
  }
794
-
795
685
  get _ariaModal() {
796
686
  // Required by Popup.js
797
687
  return true;
798
688
  }
799
-
800
689
  get styles() {
801
- return { ...super.styles,
690
+ return {
691
+ ...super.styles,
802
692
  root: {
803
693
  "max-height": `${this._maxHeight}px`,
804
694
  "max-width": `${this._maxWidth}px`
@@ -808,31 +698,26 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
808
698
  }
809
699
  };
810
700
  }
811
-
812
701
  get classes() {
813
702
  const allClasses = super.classes;
814
703
  allClasses.root["ui5-popover-root"] = true;
815
704
  return allClasses;
816
705
  }
706
+
817
707
  /**
818
708
  * Hook for descendants to hide header.
819
709
  */
820
-
821
-
822
710
  get _displayHeader() {
823
711
  return this.header.length || this.headerText;
824
712
  }
713
+
825
714
  /**
826
715
  * Hook for descendants to hide footer.
827
716
  */
828
-
829
-
830
717
  get _displayFooter() {
831
718
  return true;
832
719
  }
833
-
834
720
  }
835
-
836
721
  Popover.define();
837
722
  var _default = Popover;
838
723
  _exports.default = _default;