@openui5/sap.ui.webc.main 1.111.0 → 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
@@ -7,17 +7,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
7
7
  _exports.default = void 0;
8
8
  _Integer = _interopRequireDefault(_Integer);
9
9
  _TimePickerBase = _interopRequireDefault(_TimePickerBase);
10
-
11
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
11
  /**
14
12
  * @private
15
13
  */
16
14
  const metadata = {
17
15
  tag: "ui5-duration-picker",
18
- properties:
19
- /** @lends sap.ui.webcomponents.main.DurationPicker.prototype */
20
- {
16
+ properties: /** @lends sap.ui.webcomponents.main.DurationPicker.prototype */{
21
17
  /**
22
18
  * Defines a formatted time value.
23
19
  *
@@ -29,7 +25,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
29
25
  type: String,
30
26
  defaultValue: "00:00:00"
31
27
  },
32
-
33
28
  /**
34
29
  * Defines the selection step for the minutes
35
30
  * @type {Integer}
@@ -41,7 +36,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
41
36
  type: _Integer.default,
42
37
  defaultValue: 1
43
38
  },
44
-
45
39
  /**
46
40
  * Defines the selection step for the seconds
47
41
  * @type {Integer}
@@ -53,7 +47,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
53
47
  type: _Integer.default,
54
48
  defaultValue: 1
55
49
  },
56
-
57
50
  /**
58
51
  * Defines a formatted maximal time that the user will be able to adjust.
59
52
  *
@@ -65,7 +58,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
65
58
  type: String,
66
59
  defaultValue: "23:59:59"
67
60
  },
68
-
69
61
  /**
70
62
  * Defines whether a slider for seconds will be available. By default there are sliders for hours, minutes and seconds.
71
63
  * @type {boolean}
@@ -75,7 +67,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
75
67
  hideSeconds: {
76
68
  type: Boolean
77
69
  },
78
-
79
70
  /**
80
71
  * Defines whether the slider for minutes will be available. By default there are sliders for hours, minutes and seconds.
81
72
  * @type {boolean}
@@ -86,7 +77,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
86
77
  hideMinutes: {
87
78
  type: Boolean
88
79
  },
89
-
90
80
  /**
91
81
  * Defines whether the slider for hours will be available. By default there are sliders for hours, minutes and seconds.
92
82
  * @type {boolean}
@@ -99,17 +89,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
99
89
  }
100
90
  }
101
91
  };
102
-
103
92
  const getNearestValue = (x, step, max) => {
104
93
  const down = Math.floor(x / step) * step; // closest value rounded down to the step
105
-
106
94
  const up = Math.ceil(x / step) * step; // closest value rounded up to the step
107
-
108
95
  if (up > max || x - down < up - x) {
109
96
  // if the rounded-up value is more than max, or x is closer to the rounded-down value, return down
110
97
  return down;
111
98
  }
112
-
113
99
  return up; // x is closer to the rounded-up value and it is not
114
100
  };
115
101
 
@@ -117,6 +103,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
117
103
  number = parseInt(number);
118
104
  return number < 9 ? `0${number}` : `${number}`;
119
105
  };
106
+
120
107
  /**
121
108
  * @class
122
109
  *
@@ -175,119 +162,96 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
175
162
  * @tagname ui5-duration-picker
176
163
  * @private
177
164
  */
178
-
179
-
180
165
  class DurationPicker extends _TimePickerBase.default {
181
166
  static get metadata() {
182
167
  return metadata;
183
168
  }
169
+
184
170
  /**
185
171
  * In order to keep the existing behavior (although not consistent with the other picker components), we enforce limits and step on each change and initially
186
172
  */
187
-
188
-
189
173
  onBeforeRendering() {
190
174
  const value = this.value;
191
-
192
175
  if (this.isValid(value)) {
193
176
  this.value = this.normalizeValue(value);
194
177
  }
195
178
  }
179
+
196
180
  /**
197
181
  * In order to keep the existing behavior (although not consistent with the other picker components), we do not update "value" on input, only fire event
198
182
  * @override
199
183
  */
200
-
201
-
202
184
  async _handleInputLiveChange(event) {
203
185
  const value = event.target.value;
204
186
  const valid = this.isValid(value);
205
-
206
187
  this._updateValueState(); // Change the value state to Error/None, but only if needed
207
-
208
-
209
188
  this.fireEvent("input", {
210
189
  value,
211
190
  valid
212
191
  });
213
192
  }
214
-
215
193
  get _formatPattern() {
216
194
  return "HH:mm:ss";
217
195
  }
196
+
218
197
  /**
219
198
  * The "value" property might be "02:03" (HH:ss) or just "12"(ss) but the ui5-time-selection component requires a value compliant with _formatPattern
220
199
  * We split the value and shift up to 3 times, filling the values for the configured units (based on hideHours, hideMinutes, hideSeconds)
221
200
  * @override
222
201
  */
223
-
224
-
225
202
  get _effectiveValue() {
226
203
  return this.isValid(this.value) ? this._toFullFormat(this.value) : "00:00:00";
227
204
  }
228
-
229
205
  get _timeSelectionValue() {
230
206
  return this._effectiveValue;
231
207
  }
208
+
232
209
  /**
233
210
  * @override
234
211
  */
235
-
236
-
237
212
  get openIconName() {
238
213
  return "fob-watch";
239
214
  }
215
+
240
216
  /**
241
217
  * Transforms the value to HH:mm:ss format to be compatible with time manipulation logic (keyboard handling, time selection component)
242
218
  * @private
243
219
  */
244
-
245
-
246
220
  _toFullFormat(value) {
247
221
  let hours = "00",
248
- minutes = "00",
249
- seconds = "00";
222
+ minutes = "00",
223
+ seconds = "00";
250
224
  const parts = value.split(":");
251
-
252
225
  if (parts.length && !this.hideHours) {
253
226
  hours = parts.shift();
254
227
  }
255
-
256
228
  if (parts.length && !this.hideMinutes) {
257
229
  minutes = parts.shift();
258
230
  }
259
-
260
231
  if (parts.length && !this.hideSeconds) {
261
232
  seconds = parts.shift();
262
233
  }
263
-
264
234
  return `${hours}:${minutes}:${seconds}`;
265
235
  }
236
+
266
237
  /**
267
238
  * Transforms the value from HH:mm:ss format to the needed partial format (f.e. HH:ss or mm or ss) to be displayed in the input
268
239
  * @private
269
240
  */
270
-
271
-
272
241
  _toPartialFormat(value) {
273
242
  const parts = value.split(":");
274
243
  const newParts = [];
275
-
276
244
  if (!this.hideHours) {
277
245
  newParts.push(parts[0]);
278
246
  }
279
-
280
247
  if (!this.hideMinutes) {
281
248
  newParts.push(parts[1]);
282
249
  }
283
-
284
250
  if (!this.hideSeconds) {
285
251
  newParts.push(parts[2]);
286
252
  }
287
-
288
253
  return newParts.join(":");
289
254
  }
290
-
291
255
  _enforceLimitsAndStep(fullFormatValue) {
292
256
  let [hours, minutes, seconds] = fullFormatValue.split(":");
293
257
  hours = Math.min(hours, this.maxHours);
@@ -297,15 +261,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
297
261
  seconds = getNearestValue(seconds, this.secondsStep, this.maxSeconds);
298
262
  return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`;
299
263
  }
264
+
300
265
  /**
301
266
  * @override
302
267
  */
303
-
304
-
305
268
  normalizeValue(value) {
306
269
  let fullFormatValue = this._toFullFormat(value); // transform to full format (HH:mm:ss) if not already in this format, in order to normalize the value
307
-
308
-
309
270
  fullFormatValue = this._enforceLimitsAndStep(fullFormatValue);
310
271
  return this._toPartialFormat(fullFormatValue); // finally transform back to the needed format for the input
311
272
  }
@@ -313,19 +274,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
313
274
  get maxHours() {
314
275
  return parseInt(this.maxValue.split(":")[0]);
315
276
  }
316
-
317
277
  get maxMinutes() {
318
278
  return parseInt(this.maxValue.split(":")[1]);
319
279
  }
320
-
321
280
  get maxSeconds() {
322
281
  return parseInt(this.maxValue.split(":")[2]);
323
282
  }
324
-
325
283
  get dateAriaDescription() {
326
284
  return DurationPicker.i18nBundle.getText(_i18nDefaults.DURATION_INPUT_DESCRIPTION);
327
285
  }
328
-
329
286
  get accInfo() {
330
287
  return {
331
288
  "ariaRoledescription": this.dateAriaDescription,
@@ -336,9 +293,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
336
293
  "ariaExpanded": this.isOpen()
337
294
  };
338
295
  }
339
-
340
296
  }
341
-
342
297
  DurationPicker.define();
343
298
  var _default = DurationPicker;
344
299
  _exports.default = _default;
@@ -16,10 +16,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
16
16
  _FileUploader = _interopRequireDefault(_FileUploader);
17
17
  _ResponsivePopoverCommon = _interopRequireDefault(_ResponsivePopoverCommon);
18
18
  _ValueStateMessage = _interopRequireDefault(_ValueStateMessage);
19
-
20
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
20
  // Template
21
+
23
22
  // Styles
24
23
 
25
24
  /**
@@ -28,9 +27,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
28
27
  const metadata = {
29
28
  tag: "ui5-file-uploader",
30
29
  languageAware: true,
31
- properties:
32
- /** @lends sap.ui.webcomponents.main.FileUploader.prototype */
33
- {
30
+ properties: /** @lends sap.ui.webcomponents.main.FileUploader.prototype */{
34
31
  /**
35
32
  * Comma-separated list of file types that the component should accept.
36
33
  * <br><br>
@@ -42,7 +39,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
42
39
  accept: {
43
40
  type: String
44
41
  },
45
-
46
42
  /**
47
43
  * If set to "true", the input field of component will not be rendered. Only the default slot that is passed will be rendered.
48
44
  * @type {boolean}
@@ -52,7 +48,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
52
48
  hideInput: {
53
49
  type: Boolean
54
50
  },
55
-
56
51
  /**
57
52
  * Defines whether the component is in disabled state.
58
53
  * <br><br>
@@ -65,7 +60,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
65
60
  disabled: {
66
61
  type: Boolean
67
62
  },
68
-
69
63
  /**
70
64
  * Allows multiple files to be chosen.
71
65
  * @type {boolean}
@@ -75,7 +69,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
75
69
  multiple: {
76
70
  type: Boolean
77
71
  },
78
-
79
72
  /**
80
73
  * Determines the name with which the component will be submitted in an HTML form.
81
74
  *
@@ -95,7 +88,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
95
88
  name: {
96
89
  type: String
97
90
  },
98
-
99
91
  /**
100
92
  * Defines a short hint intended to aid the user with data entry when the component has no value.
101
93
  * @type {string}
@@ -105,7 +97,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
105
97
  placeholder: {
106
98
  type: String
107
99
  },
108
-
109
100
  /**
110
101
  * Defines the name/names of the file/files to upload.
111
102
  * @type {string}
@@ -115,7 +106,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
115
106
  value: {
116
107
  type: String
117
108
  },
118
-
119
109
  /**
120
110
  * Defines the value state of the component.
121
111
  * <br><br>
@@ -136,7 +126,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
136
126
  type: _ValueState.default,
137
127
  defaultValue: _ValueState.default.None
138
128
  },
139
-
140
129
  /**
141
130
  * @private
142
131
  */
@@ -145,9 +134,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
145
134
  }
146
135
  },
147
136
  managedSlots: true,
148
- slots:
149
- /** @lends sap.ui.webcomponents.main.FileUploader.prototype */
150
- {
137
+ slots: /** @lends sap.ui.webcomponents.main.FileUploader.prototype */{
151
138
  /**
152
139
  * By default the component contains a single input field. With this slot you can pass any content that you wish to add. See the samples for more information.
153
140
  *
@@ -159,7 +146,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
159
146
  propertyName: "content",
160
147
  type: HTMLElement
161
148
  },
162
-
163
149
  /**
164
150
  * Defines the value state message that will be displayed as pop up under the component.
165
151
  * <br><br>
@@ -176,7 +162,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
176
162
  valueStateMessage: {
177
163
  type: HTMLElement
178
164
  },
179
-
180
165
  /**
181
166
  * The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit,
182
167
  * when <code>name</code> property is set.
@@ -188,9 +173,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
188
173
  type: HTMLElement
189
174
  }
190
175
  },
191
- events:
192
- /** @lends sap.ui.webcomponents.main.FileUploader.prototype */
193
- {
176
+ events: /** @lends sap.ui.webcomponents.main.FileUploader.prototype */{
194
177
  /**
195
178
  * Event is fired when the value of the file path has been changed.
196
179
  * <b>Note:</b> Keep in mind that because of the HTML input element of type file, the event is also fired in Chrome browser when the Cancel button of the uploads window is pressed.
@@ -208,6 +191,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
208
191
  }
209
192
  }
210
193
  };
194
+
211
195
  /**
212
196
  * @class
213
197
  *
@@ -236,113 +220,89 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
236
220
  * @tagname ui5-file-uploader
237
221
  * @public
238
222
  */
239
-
240
223
  class FileUploader extends _UI5Element.default {
241
224
  static get formAssociated() {
242
225
  return true;
243
226
  }
244
-
245
227
  static get metadata() {
246
228
  return metadata;
247
229
  }
248
-
249
230
  static get render() {
250
231
  return _LitRenderer.default;
251
232
  }
252
-
253
233
  static get styles() {
254
234
  return _FileUploader.default;
255
235
  }
256
-
257
236
  static get template() {
258
237
  return _FileUploaderTemplate.default;
259
238
  }
260
-
261
239
  static get staticAreaTemplate() {
262
240
  return _FileUploaderPopoverTemplate.default;
263
241
  }
264
-
265
242
  static get staticAreaStyles() {
266
243
  return [_ResponsivePopoverCommon.default, _ValueStateMessage.default];
267
244
  }
268
-
269
245
  constructor() {
270
246
  super();
271
247
  this._internals = this.attachInternals && this.attachInternals();
272
248
  }
273
-
274
249
  _onmouseover() {
275
250
  this.content.forEach(item => {
276
251
  item.classList.add("ui5_hovered");
277
252
  });
278
253
  }
279
-
280
254
  _onmouseout() {
281
255
  this.content.forEach(item => {
282
256
  item.classList.remove("ui5_hovered");
283
257
  });
284
258
  }
285
-
286
259
  _onclick(event) {
287
260
  if (event.isMarked === "button") {
288
261
  this._input.click(event);
289
262
  }
290
263
  }
291
-
292
264
  _onkeydown(event) {
293
265
  if ((0, _Keys.isEnter)(event)) {
294
266
  this._input.click(event);
295
-
296
267
  event.preventDefault();
297
268
  }
298
269
  }
299
-
300
270
  _onkeyup(event) {
301
271
  if ((0, _Keys.isSpace)(event)) {
302
272
  this._input.click(event);
303
-
304
273
  event.preventDefault();
305
274
  }
306
275
  }
307
-
308
276
  _onfocusin() {
309
277
  this.focused = true;
310
278
  }
311
-
312
279
  _onfocusout() {
313
280
  this.focused = false;
314
281
  }
282
+
315
283
  /**
316
284
  * FileList of all selected files.
317
285
  * @readonly
318
286
  * @type { FileList }
319
287
  * @public
320
288
  */
321
-
322
-
323
289
  get files() {
324
290
  if (this._input) {
325
291
  return this._input.files;
326
292
  }
327
-
328
293
  return FileUploader._emptyFilesList;
329
294
  }
330
-
331
295
  onBeforeRendering() {
332
296
  this._enableFormSupport();
333
297
  }
334
-
335
298
  onAfterRendering() {
336
299
  if (!this.value) {
337
300
  this._input.value = "";
338
301
  }
339
-
340
302
  this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);
341
303
  }
342
-
343
304
  _enableFormSupport() {
344
305
  const FormSupport = (0, _FeaturesRegistry.getFeature)("FormSupport");
345
-
346
306
  if (FormSupport) {
347
307
  if (this._canUseNativeFormSupport) {
348
308
  this._setFormValue();
@@ -358,28 +318,22 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
358
318
 
359
319
  _onChange(event) {
360
320
  this._updateValue(event.target.files);
361
-
362
321
  this.fireEvent("change", {
363
322
  files: event.target.files
364
323
  });
365
324
  }
366
-
367
325
  _updateValue(files) {
368
326
  this.value = Array.from(files).reduce((acc, currFile) => {
369
327
  return `${acc}"${currFile.name}" `;
370
328
  }, "");
371
329
  }
372
-
373
330
  _setFormValue() {
374
331
  const formData = new FormData();
375
-
376
332
  for (let i = 0; i < this.files.length; i++) {
377
333
  formData.append(this.name, this.files[i]);
378
334
  }
379
-
380
335
  this._internals.setFormValue(formData);
381
336
  }
382
-
383
337
  toggleValueStatePopover(open) {
384
338
  if (open) {
385
339
  this.openValueStatePopover();
@@ -387,72 +341,58 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
387
341
  this.closeValueStatePopover();
388
342
  }
389
343
  }
390
-
391
344
  async openValueStatePopover() {
392
345
  const popover = await this._getPopover();
393
-
394
346
  if (popover) {
395
347
  popover.showAt(this);
396
348
  }
397
349
  }
398
-
399
350
  async closeValueStatePopover() {
400
351
  const popover = await this._getPopover();
401
-
402
352
  if (popover) {
403
353
  popover.close();
404
354
  }
405
355
  }
406
-
407
356
  async _getPopover() {
408
357
  const staticAreaItem = await this.getStaticAreaItemDomRef();
409
358
  return staticAreaItem.querySelector(".ui5-valuestatemessage-popover");
410
359
  }
360
+
411
361
  /**
412
362
  * in case when the component is not placed in the DOM, return empty FileList, like native input would do
413
363
  * @private
414
364
  */
415
-
416
-
417
365
  static get _emptyFilesList() {
418
366
  if (!this.emptyInput) {
419
367
  this.emptyInput = document.createElement("input");
420
368
  this.emptyInput.type = "file";
421
369
  }
422
-
423
370
  return this.emptyInput.files;
424
371
  }
425
-
426
372
  get browseText() {
427
373
  return FileUploader.i18nBundle.getText(_i18nDefaults.FILEUPLOAD_BROWSE);
428
374
  }
429
-
430
375
  get titleText() {
431
376
  return FileUploader.i18nBundle.getText(_i18nDefaults.FILEUPLOADER_TITLE);
432
377
  }
433
-
434
378
  get _canUseNativeFormSupport() {
435
379
  return this._internals && this._internals.setFormValue;
436
380
  }
437
-
438
381
  get _keepInputInShadowDOM() {
439
382
  // only put input in the light dom when ui5-file-uploader is placed inside form and there is no support for form elements
440
383
  return this._canUseNativeFormSupport || !this.name;
441
384
  }
442
-
443
385
  get _input() {
444
386
  return this.shadowRoot.querySelector("input[type=file]") || this.querySelector("input[type=file][data-ui5-form-support]");
445
387
  }
388
+
446
389
  /**
447
390
  * Determines input helper type in forms.
448
391
  * @private
449
392
  */
450
-
451
-
452
393
  get _type() {
453
394
  return "file";
454
395
  }
455
-
456
396
  get valueStateTextMappings() {
457
397
  return {
458
398
  "Success": FileUploader.i18nBundle.getText(_i18nDefaults.VALUE_STATE_SUCCESS),
@@ -461,35 +401,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
461
401
  "Warning": FileUploader.i18nBundle.getText(_i18nDefaults.VALUE_STATE_WARNING)
462
402
  };
463
403
  }
464
-
465
404
  get valueStateText() {
466
405
  return this.valueStateTextMappings[this.valueState];
467
406
  }
468
-
469
407
  get hasValueState() {
470
408
  return this.valueState !== _ValueState.default.None;
471
409
  }
472
-
473
410
  get hasValueStateText() {
474
411
  return this.hasValueState && this.valueState !== _ValueState.default.Success;
475
412
  }
476
-
477
413
  get valueStateMessageText() {
478
414
  return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
479
415
  }
480
-
481
416
  get shouldDisplayDefaultValueStateMessage() {
482
417
  return !this.valueStateMessage.length && this.hasValueStateText;
483
418
  }
484
-
485
419
  get shouldOpenValueStateMessagePopover() {
486
420
  return this.focused && this.hasValueStateText && !this.hideInput;
487
421
  }
422
+
488
423
  /**
489
424
  * This method is relevant for sap_horizon theme only
490
425
  */
491
-
492
-
493
426
  get _valueStateMessageInputIcon() {
494
427
  const iconPerValueState = {
495
428
  Error: "error",
@@ -499,7 +432,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
499
432
  };
500
433
  return this.valueState !== _ValueState.default.None ? iconPerValueState[this.valueState] : "";
501
434
  }
502
-
503
435
  get classes() {
504
436
  return {
505
437
  popoverValueState: {
@@ -511,7 +443,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
511
443
  }
512
444
  };
513
445
  }
514
-
515
446
  get styles() {
516
447
  return {
517
448
  popoverHeader: {
@@ -519,21 +450,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
519
450
  }
520
451
  };
521
452
  }
522
-
523
453
  get ui5Input() {
524
454
  return this.shadowRoot.querySelector(".ui5-file-uploader-input");
525
455
  }
526
-
527
456
  static get dependencies() {
528
457
  return [_Input.default, _Popover.default, _Icon.default];
529
458
  }
530
-
531
459
  static async onDefine() {
532
460
  FileUploader.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
533
461
  }
534
-
535
462
  }
536
-
537
463
  FileUploader.define();
538
464
  var _default = FileUploader;
539
465
  _exports.default = _default;