@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
@@ -25,25 +25,23 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
25
25
  _ResponsivePopoverCommon = _interopRequireDefault(_ResponsivePopoverCommon);
26
26
  _TabLayout = _interopRequireDefault(_TabLayout);
27
27
  _TabsOverflowMode = _interopRequireDefault(_TabsOverflowMode);
28
-
29
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
-
31
29
  // Templates
30
+
32
31
  // Styles
32
+
33
33
  const tabStyles = [];
34
34
  const staticAreaTabStyles = [];
35
+
35
36
  /**
36
37
  * @public
37
38
  */
38
-
39
39
  const metadata = {
40
40
  tag: "ui5-tabcontainer",
41
41
  languageAware: true,
42
42
  managedSlots: true,
43
43
  fastNavigation: true,
44
- slots:
45
- /** @lends sap.ui.webcomponents.main.TabContainer.prototype */
46
- {
44
+ slots: /** @lends sap.ui.webcomponents.main.TabContainer.prototype */{
47
45
  /**
48
46
  * Defines the tabs.
49
47
  * <br><br>
@@ -62,7 +60,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
62
60
  slots: false
63
61
  }
64
62
  },
65
-
66
63
  /**
67
64
  * Defines the button which will open the overflow menu. If nothing is provided to this slot,
68
65
  * the default button will be used.
@@ -75,7 +72,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
75
72
  overflowButton: {
76
73
  type: HTMLElement
77
74
  },
78
-
79
75
  /**
80
76
  * Defines the button which will open the start overflow menu if available. If nothing is provided to this slot,
81
77
  * the default button will be used.
@@ -89,9 +85,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
89
85
  type: HTMLElement
90
86
  }
91
87
  },
92
- properties:
93
- /** @lends sap.ui.webcomponents.main.TabContainer.prototype */
94
- {
88
+ properties: /** @lends sap.ui.webcomponents.main.TabContainer.prototype */{
95
89
  /**
96
90
  * Defines whether the tabs are in a fixed state that is not
97
91
  * expandable/collapsible by user interaction.
@@ -103,7 +97,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
103
97
  fixed: {
104
98
  type: Boolean
105
99
  },
106
-
107
100
  /**
108
101
  * Defines whether the tab content is collapsed.
109
102
  *
@@ -114,7 +107,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
114
107
  collapsed: {
115
108
  type: Boolean
116
109
  },
117
-
118
110
  /**
119
111
  * Defines the placement of the tab strip relative to the actual tabs' content.
120
112
  * <br><br>
@@ -138,7 +130,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
138
130
  type: _TabContainerTabsPlacement.default,
139
131
  defaultValue: _TabContainerTabsPlacement.default.Top
140
132
  },
141
-
142
133
  /**
143
134
  * Defines whether the overflow select list is displayed.
144
135
  * <br><br>
@@ -154,7 +145,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
154
145
  showOverflow: {
155
146
  type: Boolean
156
147
  },
157
-
158
148
  /**
159
149
  * Defines the alignment of the content and the <code>additionalText</code> of a tab.
160
150
  *
@@ -178,7 +168,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
178
168
  type: String,
179
169
  defaultValue: _TabLayout.default.Standard
180
170
  },
181
-
182
171
  /**
183
172
  * Defines the overflow mode of the tab strip. If you have a large number of tabs, only the tabs that can fit on screen will be visible.
184
173
  * All other tabs that can 't fit on the screen are available in an overflow tab "More".
@@ -204,7 +193,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
204
193
  type: _TabsOverflowMode.default,
205
194
  defaultValue: _TabsOverflowMode.default.End
206
195
  },
207
-
208
196
  /**
209
197
  * Defines the current media query size.
210
198
  *
@@ -240,9 +228,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
240
228
  multiple: true
241
229
  }
242
230
  },
243
- events:
244
- /** @lends sap.ui.webcomponents.main.TabContainer.prototype */
245
- {
231
+ events: /** @lends sap.ui.webcomponents.main.TabContainer.prototype */{
246
232
  /**
247
233
  * Fired when a tab is selected.
248
234
  *
@@ -263,6 +249,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
263
249
  }
264
250
  }
265
251
  };
252
+
266
253
  /**
267
254
  * @class
268
255
  *
@@ -318,56 +305,45 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
318
305
  * @tagname ui5-tabcontainer
319
306
  * @public
320
307
  */
321
-
322
308
  class TabContainer extends _UI5Element.default {
323
309
  static get metadata() {
324
310
  return metadata;
325
311
  }
326
-
327
312
  static get styles() {
328
313
  return [tabStyles, _TabContainer.default];
329
314
  }
330
-
331
315
  static get staticAreaStyles() {
332
316
  return [_ResponsivePopoverCommon.default, staticAreaTabStyles];
333
317
  }
334
-
335
318
  static get render() {
336
319
  return _LitRenderer.default;
337
320
  }
338
-
339
321
  static get template() {
340
322
  return _TabContainerTemplate.default;
341
323
  }
342
-
343
324
  static get staticAreaTemplate() {
344
325
  return _TabContainerPopoverTemplate.default;
345
326
  }
346
-
347
327
  static registerTabStyles(styles) {
348
328
  tabStyles.push(styles);
349
329
  }
350
-
351
330
  static registerStaticAreaTabStyles(styles) {
352
331
  staticAreaTabStyles.push(styles);
353
332
  }
354
-
355
333
  constructor() {
356
334
  super();
357
- this._handleResize = this._handleResize.bind(this); // Init ItemNavigation
335
+ this._handleResize = this._handleResize.bind(this);
358
336
 
337
+ // Init ItemNavigation
359
338
  this._itemNavigation = new _ItemNavigation.default(this, {
360
339
  getItemsCallback: () => this._getFocusableTabs()
361
340
  });
362
341
  }
363
-
364
342
  onBeforeRendering() {
365
343
  // update selected tab
366
344
  this._allItemsAndSubItems = this._getAllSubItems(this.items);
367
-
368
345
  if (this._allItemsAndSubItems.length) {
369
346
  const selectedTabs = this._allItemsAndSubItems.filter(tab => tab.selected);
370
-
371
347
  if (selectedTabs.length) {
372
348
  this._selectedTab = selectedTabs[0];
373
349
  } else {
@@ -375,13 +351,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
375
351
  this._selectedTab._selected = true;
376
352
  }
377
353
  }
378
-
379
354
  this._setItemsExternalProperties(this.items);
380
-
381
355
  if (!this._animationRunning) {
382
356
  this._contentCollapsed = this.collapsed;
383
357
  }
384
-
385
358
  if (this.showOverflow) {
386
359
  console.warn(`The "show-overflow" property is deprecated and will be removed in a future release.`); // eslint-disable-line
387
360
  }
@@ -392,44 +365,32 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
392
365
  item._tabInStripDomRef = this.getDomRef().querySelector(`*[data-ui5-stable="${item.stableDomRef}"]`);
393
366
  });
394
367
  }
395
-
396
368
  onEnterDOM() {
397
369
  _ResizeHandler.default.register(this._getHeader(), this._handleResize);
398
370
  }
399
-
400
371
  onExitDOM() {
401
372
  _ResizeHandler.default.deregister(this._getHeader(), this._handleResize);
402
373
  }
403
-
404
374
  async _handleResize() {
405
375
  if (this.responsivePopover && this.responsivePopover.opened) {
406
376
  this.responsivePopover.close();
407
377
  }
408
-
409
378
  this._updateMediaRange();
410
-
411
379
  await (0, _Render.renderFinished)(); // await the tab container to have rendered its representation of tabs
412
-
413
380
  this._setItemsForStrip();
414
381
  }
415
-
416
382
  _updateMediaRange() {
417
383
  this.mediaRange = _MediaRange.default.getCurrentRange(_MediaRange.default.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
418
384
  }
419
-
420
385
  _setItemsExternalProperties(items) {
421
386
  items.filter(item => !item.isSeparator).forEach((item, index, arr) => {
422
387
  item._isInline = this.tabLayout === _TabLayout.default.Inline;
423
388
  item._mixedMode = this.mixedMode;
424
389
  item._posinset = index + 1;
425
390
  item._setsize = arr.length;
426
-
427
391
  item._getTabContainerHeaderItemCallback = _ => this.getDomRef().querySelector(`#${item._id}`);
428
-
429
392
  item._itemSelectCallback = this._onItemSelect.bind(this);
430
-
431
393
  item._getRealDomRef = () => this.getDomRef().querySelector(`*[data-ui5-stable=${item.stableDomRef}]`);
432
-
433
394
  item._realTab = this._selectedTab;
434
395
  item._isTopLevelTab = this.items.some(i => i === item);
435
396
  walk(items, tab => {
@@ -437,80 +398,59 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
437
398
  });
438
399
  });
439
400
  }
440
-
441
401
  async _onTabStripClick(event) {
442
402
  const tab = getTab(event.target);
443
-
444
403
  if (!tab || tab._realTab.disabled) {
445
404
  return;
446
405
  }
447
-
448
406
  event.preventDefault();
449
407
  event.stopPropagation();
450
-
451
408
  if (event.target.hasAttribute("ui5-button")) {
452
409
  this._onTabExpandButtonClick(event);
453
-
454
410
  return;
455
411
  }
456
-
457
412
  if (!tab._realTab._hasOwnContent && tab._realTab.tabs.length) {
458
413
  this._overflowItems = tab._realTab.subTabs;
459
-
460
414
  this._addStyleIndent(this._overflowItems);
461
-
462
415
  this.responsivePopover = await this._respPopover();
463
-
464
416
  if (this.responsivePopover.opened) {
465
417
  this.responsivePopover.close();
466
418
  } else {
467
419
  this._setInitialFocus(this._getSelectedInPopover());
468
420
  }
469
-
470
421
  this.responsivePopover.showAt(tab);
471
422
  return;
472
423
  }
473
-
474
424
  this._onHeaderItemSelect(tab);
475
425
  }
476
-
477
426
  async _onTabExpandButtonClick(event) {
478
427
  event.stopPropagation();
479
428
  event.preventDefault();
480
429
  let button = event.target;
481
430
  let tabInstance = button.tab;
482
-
483
431
  if (tabInstance) {
484
432
  tabInstance.focus();
485
433
  }
486
-
487
434
  if (event.type === "keydown" && !event.target._realTab.isSingleClickArea) {
488
435
  button = event.target.querySelectorAll(".ui5-tab-expand-button")[0];
489
436
  tabInstance = event.target._realTab;
490
- } // if clicked between the expand button and the tab
491
-
437
+ }
492
438
 
439
+ // if clicked between the expand button and the tab
493
440
  if (!tabInstance) {
494
441
  this._onHeaderItemSelect(button.parentElement);
495
-
496
442
  return;
497
443
  }
498
-
499
444
  this._overflowItems = tabInstance.subTabs;
500
-
501
445
  this._addStyleIndent(this._overflowItems);
502
-
503
446
  this.responsivePopover = await this._respPopover();
504
-
505
447
  if (this.responsivePopover.opened) {
506
448
  this.responsivePopover.close();
507
449
  } else {
508
450
  this._setInitialFocus(this._getSelectedInPopover());
509
451
  }
510
-
511
452
  this.responsivePopover.showAt(button);
512
453
  }
513
-
514
454
  _setInitialFocus(selectedInPopover) {
515
455
  if (selectedInPopover.length) {
516
456
  this.responsivePopover.initialFocus = selectedInPopover[0].id;
@@ -518,14 +458,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
518
458
  this.responsivePopover.initialFocus = this.responsivePopover.content[0].items.filter(item => item.classList.contains("ui5-tab-overflow-item"))[0].id;
519
459
  }
520
460
  }
521
-
522
461
  _onTabStripKeyDown(event) {
523
462
  const tab = getTab(event.target);
524
-
525
463
  if (!tab || tab._realTab.disabled) {
526
464
  return;
527
465
  }
528
-
529
466
  if ((0, _Keys.isEnter)(event)) {
530
467
  if (tab._realTab.isSingleClickArea) {
531
468
  this._onTabStripClick(event);
@@ -533,7 +470,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
533
470
  this._onHeaderItemSelect(tab);
534
471
  }
535
472
  }
536
-
537
473
  if ((0, _Keys.isSpace)(event)) {
538
474
  event.preventDefault(); // prevent scrolling
539
475
  }
@@ -542,23 +478,18 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
542
478
  if (tab._realTab.requiresExpandButton) {
543
479
  this._onTabExpandButtonClick(event);
544
480
  }
545
-
546
481
  if (tab._realTab.isSingleClickArea) {
547
482
  this._onTabStripClick(event);
548
483
  }
549
484
  }
550
485
  }
551
-
552
486
  _onTabStripKeyUp(event) {
553
487
  const tab = getTab(event.target);
554
-
555
488
  if (!tab || tab._realTab.disabled) {
556
489
  return;
557
490
  }
558
-
559
491
  if ((0, _Keys.isSpace)(event)) {
560
492
  event.preventDefault();
561
-
562
493
  if (tab._realTab.isSingleClickArea) {
563
494
  this._onTabStripClick(event);
564
495
  } else {
@@ -566,41 +497,30 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
566
497
  }
567
498
  }
568
499
  }
569
-
570
500
  _onHeaderItemSelect(tab) {
571
501
  if (!tab.hasAttribute("disabled")) {
572
502
  this._onItemSelect(tab);
573
-
574
503
  if (!this.isModeStartAndEnd) {
575
504
  this._setItemsForStrip();
576
505
  }
577
506
  }
578
507
  }
579
-
580
508
  async _onOverflowListItemClick(event) {
581
509
  event.preventDefault(); // cancel the item selection
582
-
583
510
  const {
584
511
  item
585
512
  } = event.detail;
586
-
587
513
  this._onItemSelect(item);
588
-
589
514
  await this.responsivePopover.close();
590
-
591
515
  this._setItemsForStrip();
592
-
593
516
  const selectedTopLevel = this._getRootTab(this._selectedTab);
594
-
595
517
  selectedTopLevel.focus();
596
518
  }
597
-
598
519
  _getAllSubItems(items, result = [], level = 1) {
599
520
  items.forEach(item => {
600
521
  if (item.hasAttribute("ui5-tab") || item.hasAttribute("ui5-tab-separator")) {
601
522
  item._level = level;
602
523
  result.push(item);
603
-
604
524
  if (item.subTabs) {
605
525
  this._getAllSubItems(item.subTabs, result, level + 1);
606
526
  }
@@ -608,41 +528,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
608
528
  });
609
529
  return result;
610
530
  }
611
-
612
531
  _onItemSelect(target) {
613
532
  const selectedIndex = findIndex(this._allItemsAndSubItems, item => item.__id === target.id);
614
533
  const selectedTabIndex = findIndex(this._allItemsAndSubItems, item => item.__id === target.id);
615
- const selectedTab = this._allItemsAndSubItems[selectedIndex]; // update selected items
534
+ const selectedTab = this._allItemsAndSubItems[selectedIndex];
616
535
 
536
+ // update selected items
617
537
  this._allItemsAndSubItems.forEach((item, index) => {
618
538
  const selected = selectedIndex === index;
619
539
  item.selected = selected;
620
-
621
540
  if (item._selected) {
622
541
  item._selected = false;
623
542
  }
624
543
  });
625
-
626
544
  if (this.fixed) {
627
545
  this.selectTab(selectedTab, selectedTabIndex);
628
546
  return;
629
547
  }
630
-
631
548
  if (!this.animate) {
632
549
  this.toggle(selectedTab);
633
550
  this.selectTab(selectedTab, selectedTabIndex);
634
551
  return;
635
552
  }
636
-
637
553
  this.toggleAnimated(selectedTab);
638
554
  this.selectTab(selectedTab, selectedTabIndex);
639
555
  }
640
-
641
556
  async toggleAnimated(selectedTab) {
642
557
  const content = this.shadowRoot.querySelector(".ui5-tc__content");
643
558
  let animationPromise = null;
644
559
  this._animationRunning = true;
645
-
646
560
  if (selectedTab === this._selectedTab) {
647
561
  // click on already selected tab - animate both directions
648
562
  this.collapsed = !this.collapsed;
@@ -652,12 +566,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
652
566
  animationPromise = this.collapsed ? this.slideContentDown(content) : Promise.resolve();
653
567
  this.collapsed = false;
654
568
  }
655
-
656
569
  await animationPromise;
657
570
  this._contentCollapsed = this.collapsed;
658
571
  this._animationRunning = false;
659
572
  }
660
-
661
573
  toggle(selectedTab) {
662
574
  if (selectedTab === this._selectedTab) {
663
575
  this.collapsed = !this.collapsed;
@@ -665,7 +577,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
665
577
  this.collapsed = false;
666
578
  }
667
579
  }
668
-
669
580
  selectTab(selectedTab, selectedTabIndex) {
670
581
  // select the tab
671
582
  this._selectedTab = selectedTab;
@@ -674,25 +585,21 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
674
585
  tabIndex: selectedTabIndex
675
586
  });
676
587
  }
677
-
678
588
  slideContentDown(element) {
679
589
  return (0, _slideDown.default)({
680
590
  element
681
591
  }).promise();
682
592
  }
683
-
684
593
  slideContentUp(element) {
685
594
  return (0, _slideUp.default)({
686
595
  element
687
596
  }).promise();
688
597
  }
689
-
690
598
  async _onOverflowClick(event) {
691
599
  if (event.target.classList.contains("ui5-tc__overflow")) {
692
600
  // the empty area in the overflow was clicked
693
601
  return;
694
602
  }
695
-
696
603
  const overflow = event.currentTarget;
697
604
  const isEndOverflow = overflow.classList.contains("ui5-tc__overflow--end");
698
605
  const isStartOverflow = overflow.classList.contains("ui5-tc__overflow--start");
@@ -705,23 +612,17 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
705
612
  }
706
613
  });
707
614
  let button;
708
-
709
615
  if (isEndOverflow) {
710
616
  button = this.overflowButton[0] || overflow.querySelector("[ui5-button]");
711
617
  this._overflowItems = items;
712
-
713
618
  this._addStyleIndent(this._overflowItems);
714
619
  }
715
-
716
620
  if (isStartOverflow) {
717
621
  button = this.startOverflowButton[0] || overflow.querySelector("[ui5-button]");
718
622
  this._overflowItems = items;
719
-
720
623
  this._addStyleIndent(this._overflowItems);
721
624
  }
722
-
723
625
  this.responsivePopover = await this._respPopover();
724
-
725
626
  if (this.responsivePopover.opened) {
726
627
  this.responsivePopover.close();
727
628
  } else {
@@ -729,350 +630,268 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
729
630
  await this.responsivePopover.showAt(button);
730
631
  }
731
632
  }
732
-
733
633
  _getSelectedInPopover() {
734
634
  return this.responsivePopover.content[0].items.filter(item => item._realTab && item._realTab.selected);
735
635
  }
736
-
737
636
  _addStyleIndent(tabs) {
738
637
  const extraIndent = this._getAllSubItems(tabs).filter(tab => !tab.isSeparator).some(tab => tab.design !== _SemanticColor.default.Default && tab.design !== _SemanticColor.default.Neutral);
739
-
740
638
  walk(tabs, tab => {
741
639
  let level = tab._level - 1;
742
-
743
640
  if (tab.isSeparator) {
744
641
  level += 1;
745
642
  }
746
-
747
643
  tab._style = {
748
644
  "--_ui5-tab-indentation-level": level,
749
645
  "--_ui5-tab-extra-indent": extraIndent ? 1 : null
750
646
  };
751
647
  });
752
648
  }
753
-
754
649
  async _onOverflowKeyDown(event) {
755
650
  const isEndOverflow = event.currentTarget.classList.contains("ui5-tc__overflow--end");
756
651
  const isStartOverflow = event.currentTarget.classList.contains("ui5-tc__overflow--start");
757
-
758
652
  if ((0, _Keys.isDown)(event) || isStartOverflow && (0, _Keys.isLeft)(event) || isEndOverflow && (0, _Keys.isRight)(event)) {
759
653
  await this._onOverflowClick(event);
760
654
  }
761
655
  }
762
-
763
656
  _setItemsForStrip() {
764
657
  const tabStrip = this._getTabStrip();
765
-
766
658
  let allItemsWidth = 0;
767
-
768
659
  if (!this._selectedTab) {
769
660
  return;
770
661
  }
662
+ const itemsDomRefs = this.items.map(item => item.getTabInStripDomRef());
771
663
 
772
- const itemsDomRefs = this.items.map(item => item.getTabInStripDomRef()); // make sure the overflows are hidden
773
-
664
+ // make sure the overflows are hidden
774
665
  this._getStartOverflow().setAttribute("hidden", "");
666
+ this._getEndOverflow().setAttribute("hidden", "");
775
667
 
776
- this._getEndOverflow().setAttribute("hidden", ""); // show all tabs
777
-
778
-
668
+ // show all tabs
779
669
  for (let i = 0; i < itemsDomRefs.length; i++) {
780
670
  itemsDomRefs[i].removeAttribute("hidden");
781
671
  itemsDomRefs[i].removeAttribute("start-overflow");
782
672
  itemsDomRefs[i].removeAttribute("end-overflow");
783
673
  }
784
-
785
674
  itemsDomRefs.forEach(item => {
786
675
  allItemsWidth += this._getItemWidth(item);
787
676
  });
788
677
  const hasOverflow = tabStrip.offsetWidth < allItemsWidth;
789
-
790
678
  if (!hasOverflow) {
791
679
  this._closeRespPopover();
792
-
793
680
  return;
794
681
  }
795
-
796
682
  if (this.isModeStartAndEnd) {
797
683
  this._updateStartAndEndOverflow(itemsDomRefs);
798
-
799
684
  this._updateOverflowCounters();
800
685
  } else {
801
686
  this._updateEndOverflow(itemsDomRefs);
802
687
  }
803
-
804
688
  this._itemNavigation._init();
805
-
806
689
  this._itemNavigation.setCurrentItem(this._getRootTab(this._selectedTab));
807
690
  }
808
-
809
691
  _getRootTab(tab) {
810
692
  while (tab.hasAttribute("ui5-tab")) {
811
693
  if (tab.parentElement.hasAttribute("ui5-tabcontainer")) {
812
694
  break;
813
695
  }
814
-
815
696
  tab = tab.parentElement;
816
697
  }
817
-
818
698
  return tab;
819
699
  }
820
-
821
700
  _updateEndOverflow(itemsDomRefs) {
822
701
  // show end overflow
823
702
  this._getEndOverflow().removeAttribute("hidden");
824
-
825
703
  const selectedTab = this._getRootTab(this._selectedTab);
826
-
827
704
  const selectedTabDomRef = selectedTab.getTabInStripDomRef();
828
-
829
705
  const containerWidth = this._getTabStrip().offsetWidth;
830
-
831
706
  const selectedItemIndexAndWidth = this._getSelectedItemIndexAndWidth(itemsDomRefs, selectedTabDomRef);
832
-
833
707
  const lastVisibleTabIndex = this._findLastVisibleItem(itemsDomRefs, containerWidth, selectedItemIndexAndWidth.width);
834
-
835
708
  for (let i = lastVisibleTabIndex + 1; i < itemsDomRefs.length; i++) {
836
709
  itemsDomRefs[i].setAttribute("hidden", "");
837
710
  itemsDomRefs[i].setAttribute("end-overflow", "");
838
711
  }
839
-
840
712
  this._endOverflowText = this.overflowButtonText;
841
713
  }
842
-
843
714
  _updateStartAndEndOverflow(itemsDomRefs) {
844
715
  let containerWidth = this._getTabStrip().offsetWidth;
845
-
846
716
  const selectedTab = this._getRootTab(this._selectedTab);
847
-
848
717
  const selectedTabDomRef = selectedTab.getTabInStripDomRef();
849
-
850
718
  const selectedItemIndexAndWidth = this._getSelectedItemIndexAndWidth(itemsDomRefs, selectedTabDomRef);
851
-
852
719
  const hasStartOverflow = this._hasStartOverflow(containerWidth, itemsDomRefs, selectedItemIndexAndWidth);
853
-
854
720
  const hasEndOverflow = this._hasEndOverflow(containerWidth, itemsDomRefs, selectedItemIndexAndWidth);
855
-
856
721
  let firstVisible;
857
- let lastVisible; // has "end", but no "start" overflow
722
+ let lastVisible;
858
723
 
724
+ // has "end", but no "start" overflow
859
725
  if (!hasStartOverflow) {
860
726
  // show "end" overflow
861
- this._getEndOverflow().removeAttribute("hidden"); // width is changed
862
-
863
-
727
+ this._getEndOverflow().removeAttribute("hidden");
728
+ // width is changed
864
729
  containerWidth = this._getTabStrip().offsetWidth;
865
730
  lastVisible = this._findLastVisibleItem(itemsDomRefs, containerWidth, selectedItemIndexAndWidth.width);
866
-
867
731
  for (let i = lastVisible + 1; i < itemsDomRefs.length; i++) {
868
732
  itemsDomRefs[i].setAttribute("hidden", "");
869
733
  itemsDomRefs[i].setAttribute("end-overflow", "");
870
734
  }
871
-
872
735
  return;
873
- } // has "start", but no "end" overflow
874
-
736
+ }
875
737
 
738
+ // has "start", but no "end" overflow
876
739
  if (!hasEndOverflow) {
877
740
  // show "start" overflow
878
- this._getStartOverflow().removeAttribute("hidden"); // width is changed
879
-
880
-
741
+ this._getStartOverflow().removeAttribute("hidden");
742
+ // width is changed
881
743
  containerWidth = this._getTabStrip().offsetWidth;
882
744
  firstVisible = this._findFirstVisibleItem(itemsDomRefs, containerWidth, selectedItemIndexAndWidth.width);
883
-
884
745
  for (let i = firstVisible - 1; i >= 0; i--) {
885
746
  itemsDomRefs[i].setAttribute("hidden", "");
886
747
  itemsDomRefs[i].setAttribute("start-overflow", "");
887
748
  }
888
-
889
749
  return;
890
- } // show "start" overflow
891
-
892
-
893
- this._getStartOverflow().removeAttribute("hidden"); // show "end" overflow
894
-
895
-
896
- this._getEndOverflow().removeAttribute("hidden"); // width is changed
897
-
750
+ }
898
751
 
752
+ // show "start" overflow
753
+ this._getStartOverflow().removeAttribute("hidden");
754
+ // show "end" overflow
755
+ this._getEndOverflow().removeAttribute("hidden");
756
+ // width is changed
899
757
  containerWidth = this._getTabStrip().offsetWidth;
900
758
  firstVisible = this._findFirstVisibleItem(itemsDomRefs, containerWidth, selectedItemIndexAndWidth.width, selectedItemIndexAndWidth.index - 1);
901
759
  lastVisible = this._findLastVisibleItem(itemsDomRefs, containerWidth, selectedItemIndexAndWidth.width, firstVisible);
902
-
903
760
  for (let i = firstVisible - 1; i >= 0; i--) {
904
761
  itemsDomRefs[i].setAttribute("hidden", "");
905
762
  itemsDomRefs[i].setAttribute("start-overflow", "");
906
763
  }
907
-
908
764
  for (let i = lastVisible + 1; i < itemsDomRefs.length; i++) {
909
765
  itemsDomRefs[i].setAttribute("hidden", "");
910
766
  itemsDomRefs[i].setAttribute("end-overflow", "");
911
767
  }
912
768
  }
913
-
914
769
  _hasStartOverflow(containerWidth, itemsDomRefs, selectedItemIndexAndWidth) {
915
770
  if (selectedItemIndexAndWidth.index === 0) {
916
771
  return false;
917
772
  }
918
-
919
773
  let leftItemsWidth = 0;
920
-
921
774
  for (let i = selectedItemIndexAndWidth.index - 1; i >= 0; i--) {
922
775
  leftItemsWidth += this._getItemWidth(itemsDomRefs[i]);
923
776
  }
777
+ let hasStartOverflow = containerWidth < leftItemsWidth + selectedItemIndexAndWidth.width;
924
778
 
925
- let hasStartOverflow = containerWidth < leftItemsWidth + selectedItemIndexAndWidth.width; // if there is no "start" overflow, it has "end" overflow
779
+ // if there is no "start" overflow, it has "end" overflow
926
780
  // check it again with the "end" overflow
927
-
928
781
  if (!hasStartOverflow) {
929
782
  this._getEndOverflow().removeAttribute("hidden");
930
-
931
783
  containerWidth = this._getTabStrip().offsetWidth;
932
784
  hasStartOverflow = containerWidth < leftItemsWidth + selectedItemIndexAndWidth.width;
933
-
934
785
  this._getEndOverflow().setAttribute("hidden", "");
935
786
  }
936
-
937
787
  return hasStartOverflow;
938
788
  }
939
-
940
789
  _hasEndOverflow(containerWidth, itemsDomRefs, selectedItemIndexAndWidth) {
941
790
  if (selectedItemIndexAndWidth.index >= itemsDomRefs.length) {
942
791
  return false;
943
792
  }
944
-
945
793
  let rightItemsWidth = 0;
946
-
947
794
  for (let i = selectedItemIndexAndWidth.index; i < itemsDomRefs.length; i++) {
948
795
  rightItemsWidth += this._getItemWidth(itemsDomRefs[i]);
949
796
  }
797
+ let hasEndOverflow = containerWidth < rightItemsWidth + selectedItemIndexAndWidth.width;
950
798
 
951
- let hasEndOverflow = containerWidth < rightItemsWidth + selectedItemIndexAndWidth.width; // if there is no "end" overflow, it has "start" overflow
799
+ // if there is no "end" overflow, it has "start" overflow
952
800
  // check it again with the "start" overflow
953
-
954
801
  if (!hasEndOverflow) {
955
802
  this._getStartOverflow().removeAttribute("hidden");
956
-
957
803
  containerWidth = this._getTabStrip().offsetWidth;
958
804
  hasEndOverflow = containerWidth < rightItemsWidth + selectedItemIndexAndWidth.width;
959
-
960
805
  this._getStartOverflow().setAttribute("hidden", "");
961
806
  }
962
-
963
807
  return hasEndOverflow;
964
808
  }
965
-
966
809
  _getItemWidth(itemDomRef) {
967
810
  const styles = window.getComputedStyle(itemDomRef);
968
811
  const margins = Number.parseInt(styles.marginLeft) + Number.parseInt(styles.marginRight);
969
812
  return itemDomRef.offsetWidth + margins;
970
813
  }
971
-
972
814
  _getSelectedItemIndexAndWidth(itemsDomRefs, selectedTabDomRef) {
973
815
  let index = itemsDomRefs.indexOf(selectedTabDomRef);
974
816
  let width = selectedTabDomRef.offsetWidth;
975
817
  let selectedSeparator;
976
-
977
818
  if (itemsDomRefs[index - 1] && itemsDomRefs[index - 1].isSeparator) {
978
819
  selectedSeparator = itemsDomRefs[index - 1];
979
820
  width += this._getItemWidth(selectedSeparator);
980
821
  }
822
+ itemsDomRefs.splice(index, 1);
981
823
 
982
- itemsDomRefs.splice(index, 1); // if previous item is a separator - remove it
983
-
824
+ // if previous item is a separator - remove it
984
825
  if (selectedSeparator) {
985
826
  itemsDomRefs.splice(index - 1, 1);
986
827
  index--;
987
828
  }
988
-
989
829
  return {
990
830
  index,
991
831
  width
992
832
  };
993
833
  }
994
-
995
834
  _findFirstVisibleItem(itemsDomRefs, containerWidth, selectedItemWidth, startIndex) {
996
835
  if (startIndex === undefined) {
997
836
  startIndex = itemsDomRefs.length - 1;
998
837
  }
999
-
1000
838
  let lastVisible = startIndex + 1;
1001
-
1002
839
  for (let index = startIndex; index >= 0; index--) {
1003
840
  const itemWidth = this._getItemWidth(itemsDomRefs[index]);
1004
-
1005
841
  if (containerWidth < selectedItemWidth + itemWidth) {
1006
842
  break;
1007
843
  }
1008
-
1009
844
  selectedItemWidth += itemWidth;
1010
845
  lastVisible = index;
1011
846
  }
1012
-
1013
847
  return lastVisible;
1014
848
  }
1015
-
1016
849
  _findLastVisibleItem(itemsDomRefs, containerWidth, selectedItemWidth, startIndex) {
1017
850
  startIndex = startIndex || 0;
1018
851
  let lastVisibleIndex = startIndex - 1;
1019
852
  let index = startIndex;
1020
-
1021
853
  for (; index < itemsDomRefs.length; index++) {
1022
854
  const itemWidth = this._getItemWidth(itemsDomRefs[index]);
1023
-
1024
855
  if (containerWidth < selectedItemWidth + itemWidth) {
1025
856
  break;
1026
857
  }
1027
-
1028
858
  selectedItemWidth += itemWidth;
1029
859
  lastVisibleIndex = index;
1030
- } // if prev item is separator - hide it
1031
-
860
+ }
1032
861
 
862
+ // if prev item is separator - hide it
1033
863
  const prevItem = itemsDomRefs[index - 1];
1034
-
1035
864
  if (prevItem && prevItem.isSeparator) {
1036
865
  lastVisibleIndex -= 1;
1037
866
  }
1038
-
1039
867
  return lastVisibleIndex;
1040
868
  }
1041
-
1042
869
  get isModeStartAndEnd() {
1043
870
  return this.tabsOverflowMode === _TabsOverflowMode.default.StartAndEnd;
1044
871
  }
1045
-
1046
872
  _updateOverflowCounters() {
1047
873
  let startOverflowItemsCount = 0;
1048
874
  let endOverflowItemsCount = 0;
1049
-
1050
875
  this._getTabs().map(tab => tab.getTabInStripDomRef()).forEach(tab => {
1051
876
  if (tab.hasAttribute("start-overflow")) {
1052
877
  startOverflowItemsCount++;
1053
878
  }
1054
-
1055
879
  if (tab.hasAttribute("end-overflow")) {
1056
880
  endOverflowItemsCount++;
1057
881
  }
1058
882
  });
1059
-
1060
883
  this._startOverflowText = `+${startOverflowItemsCount}`;
1061
884
  this._endOverflowText = `+${endOverflowItemsCount}`;
1062
885
  }
1063
-
1064
886
  async _closeRespPopover() {
1065
887
  this.responsivePopover = await this._respPopover();
1066
888
  this.responsivePopover.close();
1067
889
  }
1068
-
1069
890
  _getFocusableTabs() {
1070
891
  if (!this.getDomRef()) {
1071
892
  return [];
1072
893
  }
1073
-
1074
894
  const focusableTabs = [];
1075
-
1076
895
  if (!this._getStartOverflow().hasAttribute("hidden")) {
1077
896
  if (this._getCustomStartOverflowBtnDOM()) {
1078
897
  focusableTabs.push(this._getCustomStartOverflowBtnDOM());
@@ -1080,13 +899,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
1080
899
  focusableTabs.push(this._getStartOverflowBtnDOM());
1081
900
  }
1082
901
  }
1083
-
1084
902
  this._getTabs().forEach(tab => {
1085
903
  if (tab.getTabInStripDomRef() && !tab.getTabInStripDomRef().hasAttribute("hidden")) {
1086
904
  focusableTabs.push(tab);
1087
905
  }
1088
906
  });
1089
-
1090
907
  if (!this._getEndOverflow().hasAttribute("hidden")) {
1091
908
  if (this._getCustomEndOverflowBtnDOM()) {
1092
909
  focusableTabs.push(this._getCustomEndOverflowBtnDOM());
@@ -1094,51 +911,39 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
1094
911
  focusableTabs.push(this._getEndOverflowBtnDOM());
1095
912
  }
1096
913
  }
1097
-
1098
914
  return focusableTabs;
1099
915
  }
1100
-
1101
916
  _getHeader() {
1102
917
  return this.shadowRoot.querySelector(`#${this._id}-header`);
1103
918
  }
1104
-
1105
919
  _getTabs() {
1106
920
  return this.items.filter(item => !item.isSeparator);
1107
921
  }
1108
-
1109
922
  _getTabStrip() {
1110
923
  return this.shadowRoot.querySelector(`#${this._id}-tabStrip`);
1111
924
  }
1112
-
1113
925
  _getStartOverflow() {
1114
926
  return this.shadowRoot.querySelector(".ui5-tc__overflow--start");
1115
927
  }
1116
-
1117
928
  _getEndOverflow() {
1118
929
  return this.shadowRoot.querySelector(".ui5-tc__overflow--end");
1119
930
  }
1120
-
1121
931
  _getCustomStartOverflowBtnDOM() {
1122
932
  return this.shadowRoot.querySelector("slot[name=startOverflowButton]");
1123
933
  }
1124
-
1125
934
  _getStartOverflowBtnDOM() {
1126
935
  return this._getStartOverflow().querySelector("[ui5-button]");
1127
936
  }
1128
-
1129
937
  _getCustomEndOverflowBtnDOM() {
1130
938
  return this.shadowRoot.querySelector("slot[name=overflowButton]");
1131
939
  }
1132
-
1133
940
  _getEndOverflowBtnDOM() {
1134
941
  return this._getEndOverflow().querySelector("[ui5-button]");
1135
942
  }
1136
-
1137
943
  async _respPopover() {
1138
944
  const staticAreaItem = await this.getStaticAreaItemDomRef();
1139
945
  return staticAreaItem.querySelector(`#${this._id}-overflowMenu`);
1140
946
  }
1141
-
1142
947
  get classes() {
1143
948
  return {
1144
949
  root: {
@@ -1162,101 +967,76 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
1162
967
  }
1163
968
  };
1164
969
  }
1165
-
1166
970
  get mixedMode() {
1167
971
  return this.items.some(item => item.icon) && this.items.some(item => item.text);
1168
972
  }
1169
-
1170
973
  get textOnly() {
1171
974
  return this.items.every(item => !item.icon);
1172
975
  }
1173
-
1174
976
  get withAdditionalText() {
1175
977
  return this.items.some(item => !!item.additionalText);
1176
978
  }
1177
-
1178
979
  get standardTabLayout() {
1179
980
  return this.tabLayout === _TabLayout.default.Standard;
1180
981
  }
1181
-
1182
982
  get previousIconACCName() {
1183
983
  return TabContainer.i18nBundle.getText(_i18nDefaults.TABCONTAINER_PREVIOUS_ICON_ACC_NAME);
1184
984
  }
1185
-
1186
985
  get nextIconACCName() {
1187
986
  return TabContainer.i18nBundle.getText(_i18nDefaults.TABCONTAINER_NEXT_ICON_ACC_NAME);
1188
987
  }
1189
-
1190
988
  get overflowMenuTitle() {
1191
989
  return TabContainer.i18nBundle.getText(_i18nDefaults.TABCONTAINER_OVERFLOW_MENU_TITLE);
1192
990
  }
1193
-
1194
991
  get tabsAtTheBottom() {
1195
992
  return this.tabsPlacement === _TabContainerTabsPlacement.default.Bottom;
1196
993
  }
1197
-
1198
994
  get overflowMenuIcon() {
1199
995
  return this.tabsAtTheBottom ? "slim-arrow-up" : "slim-arrow-down";
1200
996
  }
1201
-
1202
997
  get overflowButtonText() {
1203
998
  return TabContainer.i18nBundle.getText(_i18nDefaults.TABCONTAINER_END_OVERFLOW);
1204
999
  }
1205
-
1206
1000
  get popoverCancelButtonText() {
1207
1001
  return TabContainer.i18nBundle.getText(_i18nDefaults.TABCONTAINER_POPOVER_CANCEL_BUTTON);
1208
1002
  }
1209
-
1210
1003
  get animate() {
1211
1004
  return (0, _AnimationMode2.getAnimationMode)() !== _AnimationMode.default.None;
1212
1005
  }
1213
-
1214
1006
  static get dependencies() {
1215
1007
  return [_Button.default, _Icon.default, _List.default, _ResponsivePopover.default];
1216
1008
  }
1217
-
1218
1009
  static async onDefine() {
1219
1010
  TabContainer.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
1220
1011
  }
1221
-
1222
1012
  }
1223
-
1224
1013
  const isTabDiv = el => el.localName === "div" && el.getAttribute("role") === "tab";
1225
-
1226
1014
  const getTab = el => {
1227
1015
  while (el) {
1228
1016
  if (isTabDiv(el)) {
1229
1017
  return el;
1230
1018
  }
1231
-
1232
1019
  el = el.parentElement;
1233
1020
  }
1234
-
1235
1021
  return false;
1236
1022
  };
1237
-
1238
1023
  const findIndex = (arr, predicate) => {
1239
1024
  for (let i = 0; i < arr.length; i++) {
1240
1025
  const result = predicate(arr[i]);
1241
-
1242
1026
  if (result) {
1243
1027
  return i;
1244
1028
  }
1245
1029
  }
1246
-
1247
1030
  return -1;
1248
1031
  };
1249
-
1250
1032
  const walk = (tabs, callback) => {
1251
1033
  [...tabs].forEach(tab => {
1252
1034
  callback(tab);
1253
-
1254
1035
  if (tab.subTabs) {
1255
1036
  walk(tab.subTabs, callback);
1256
1037
  }
1257
1038
  });
1258
1039
  };
1259
-
1260
1040
  TabContainer.define();
1261
1041
  var _default = TabContainer;
1262
1042
  _exports.default = _default;