@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
@@ -18,15 +18,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
18
18
  _CalendarSelectionMode = _interopRequireDefault(_CalendarSelectionMode);
19
19
  _CalendarTemplate = _interopRequireDefault(_CalendarTemplate);
20
20
  _Calendar = _interopRequireDefault(_Calendar);
21
-
22
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
24
  // Default calendar for bundling
25
+
29
26
  // Template
27
+
30
28
  // Styles
31
29
 
32
30
  /**
@@ -35,9 +33,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
35
33
  const metadata = {
36
34
  tag: "ui5-calendar",
37
35
  fastNavigation: true,
38
- properties:
39
- /** @lends sap.ui.webcomponents.main.Calendar.prototype */
40
- {
36
+ properties: /** @lends sap.ui.webcomponents.main.Calendar.prototype */{
41
37
  /**
42
38
  * Defines the type of selection used in the calendar component.
43
39
  * Accepted property values are:<br>
@@ -54,7 +50,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
54
50
  type: _CalendarSelectionMode.default,
55
51
  defaultValue: _CalendarSelectionMode.default.Single
56
52
  },
57
-
58
53
  /**
59
54
  * Defines the visibility of the week numbers column.
60
55
  * <br><br>
@@ -69,7 +64,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
69
64
  hideWeekNumbers: {
70
65
  type: Boolean
71
66
  },
72
-
73
67
  /**
74
68
  * Which picker is currently visible to the user: day/month/year
75
69
  */
@@ -91,9 +85,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
91
85
  }
92
86
  },
93
87
  managedSlots: true,
94
- slots:
95
- /** @lends sap.ui.webcomponents.main.Calendar.prototype */
96
- {
88
+ slots: /** @lends sap.ui.webcomponents.main.Calendar.prototype */{
97
89
  /**
98
90
  * Defines the selected date or dates (depending on the <code>selectionMode</code> property) for this calendar as instances of <code>ui5-date</code>
99
91
  *
@@ -107,9 +99,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
107
99
  invalidateOnChildChange: true
108
100
  }
109
101
  },
110
- events:
111
- /** @lends sap.ui.webcomponents.main.Calendar.prototype */
112
- {
102
+ events: /** @lends sap.ui.webcomponents.main.Calendar.prototype */{
113
103
  /**
114
104
  * Fired when the selected dates change.
115
105
  * <b>Note:</b> If you call <code>preventDefault()</code> for this event, the component will not
@@ -135,6 +125,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
135
125
  "show-year-press": {}
136
126
  }
137
127
  };
128
+
138
129
  /**
139
130
  * @class
140
131
  *
@@ -249,65 +240,56 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
249
240
  * @public
250
241
  * @since 1.0.0-rc.11
251
242
  */
252
-
253
243
  class Calendar extends _CalendarPart.default {
254
244
  static get metadata() {
255
245
  return metadata;
256
246
  }
257
-
258
247
  static get template() {
259
248
  return _CalendarTemplate.default;
260
249
  }
261
-
262
250
  static get styles() {
263
251
  return _Calendar.default;
264
252
  }
253
+
265
254
  /**
266
255
  * @private
267
256
  */
268
-
269
-
270
257
  get _selectedDatesTimestamps() {
271
258
  return this.dates.map(date => {
272
259
  const value = date.value;
273
260
  return value && !!this.getFormat().parse(value) ? this._getTimeStampFromString(value) / 1000 : undefined;
274
261
  }).filter(date => !!date);
275
262
  }
263
+
276
264
  /**
277
265
  * @private
278
266
  */
279
-
280
-
281
267
  _setSelectedDates(selectedDates) {
282
268
  const selectedValues = selectedDates.map(timestamp => this.getFormat().format(new Date(timestamp * 1000), true)); // Format as UTC
269
+ const valuesInDOM = [...this.dates].map(dateElement => dateElement.value);
283
270
 
284
- const valuesInDOM = [...this.dates].map(dateElement => dateElement.value); // Remove all elements for dates that are no longer selected
285
-
271
+ // Remove all elements for dates that are no longer selected
286
272
  this.dates.filter(dateElement => !selectedValues.includes(dateElement.value)).forEach(dateElement => {
287
273
  this.removeChild(dateElement);
288
- }); // Create tags for the selected dates that don't already exist in DOM
274
+ });
289
275
 
276
+ // Create tags for the selected dates that don't already exist in DOM
290
277
  selectedValues.filter(value => !valuesInDOM.includes(value)).forEach(value => {
291
278
  const dateElement = document.createElement(CalendarDateComponent.default.getMetadata().getTag());
292
279
  dateElement.value = value;
293
280
  this.appendChild(dateElement);
294
281
  });
295
282
  }
296
-
297
283
  async onAfterRendering() {
298
284
  await (0, _Render.renderFinished)(); // Await for the current picker to render and then ask if it has previous/next pages
299
-
300
285
  this._previousButtonDisabled = !this._currentPickerDOM._hasPreviousPage();
301
286
  this._nextButtonDisabled = !this._currentPickerDOM._hasNextPage();
302
-
303
287
  const yearFormat = _DateFormat.default.getDateInstance({
304
288
  format: "y",
305
289
  calendarType: this.primaryCalendarType
306
290
  });
307
-
308
291
  const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
309
292
  this._headerMonthButtonText = localeData.getMonthsStandAlone("wide", this.primaryCalendarType)[this._calendarDate.getMonth()];
310
-
311
293
  if (this._currentPicker === "year") {
312
294
  const rangeStart = new _CalendarDate.default(this._calendarDate, this._primaryCalendarType);
313
295
  const rangeEnd = new _CalendarDate.default(this._calendarDate, this._primaryCalendarType);
@@ -318,61 +300,51 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
318
300
  this._headerYearButtonText = String(yearFormat.format(this._localDate, true));
319
301
  }
320
302
  }
303
+
321
304
  /**
322
305
  * The user clicked the "month" button in the header
323
306
  */
324
-
325
-
326
307
  onHeaderShowMonthPress(event) {
327
308
  this._currentPickerDOM._autoFocus = false;
328
309
  this._currentPicker = "month";
329
310
  this.fireEvent("show-month-press", event);
330
311
  }
312
+
331
313
  /**
332
314
  * The user clicked the "year" button in the header
333
315
  */
334
-
335
-
336
316
  onHeaderShowYearPress(event) {
337
317
  this._currentPickerDOM._autoFocus = false;
338
318
  this._currentPicker = "year";
339
319
  this.fireEvent("show-year-press", event);
340
320
  }
341
-
342
321
  get _currentPickerDOM() {
343
322
  return this.shadowRoot.querySelector(`[ui5-${this._currentPicker}picker]`);
344
323
  }
324
+
345
325
  /**
346
326
  * The year clicked the "Previous" button in the header
347
327
  */
348
-
349
-
350
328
  onHeaderPreviousPress() {
351
329
  this._currentPickerDOM._showPreviousPage();
352
330
  }
331
+
353
332
  /**
354
333
  * The year clicked the "Next" button in the header
355
334
  */
356
-
357
-
358
335
  onHeaderNextPress() {
359
336
  this._currentPickerDOM._showNextPage();
360
337
  }
361
-
362
338
  get secondaryCalendarTypeButtonText() {
363
339
  if (!this.secondaryCalendarType) {
364
340
  return;
365
341
  }
366
-
367
342
  const localDate = new Date(this._timestamp * 1000);
368
-
369
343
  const secondYearFormat = _DateFormat.default.getDateInstance({
370
344
  format: "y",
371
345
  calendarType: this.secondaryCalendarType
372
346
  });
373
-
374
347
  const secondMonthInfo = this._getDisplayedSecondaryMonthText();
375
-
376
348
  const secondYearText = secondYearFormat.format(localDate, true);
377
349
  return {
378
350
  yearButtonText: secondYearText,
@@ -380,39 +352,30 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
380
352
  monthButtonInfo: secondMonthInfo.info
381
353
  };
382
354
  }
383
-
384
355
  _getDisplayedSecondaryMonthText() {
385
356
  const month = this._getDisplayedSecondaryMonths();
386
-
387
357
  const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
388
358
  const pattern = localeData.getIntervalPattern();
389
359
  const secondaryMonthsNames = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)()).getMonthsStandAlone("abbreviated", this.secondaryCalendarType);
390
360
  const secondaryMonthsNamesWide = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)()).getMonthsStandAlone("wide", this.secondaryCalendarType);
391
-
392
361
  if (month.startMonth === month.endMonth) {
393
362
  return {
394
363
  text: localeData.getMonths("abbreviated", this.secondaryCalendarType)[month.startMonth],
395
364
  textInfo: localeData.getMonths("wide", this.secondaryCalendarType)[month.startMonth]
396
365
  };
397
366
  }
398
-
399
367
  return {
400
368
  text: pattern.replace(/\{0\}/, secondaryMonthsNames[month.startMonth]).replace(/\{1\}/, secondaryMonthsNames[month.endMonth]),
401
369
  textInfo: pattern.replace(/\{0\}/, secondaryMonthsNamesWide[month.startMonth]).replace(/\{1\}/, secondaryMonthsNamesWide[month.endMonth])
402
370
  };
403
371
  }
404
-
405
372
  _getDisplayedSecondaryMonths() {
406
373
  const localDate = new Date(this._timestamp * 1000);
407
-
408
374
  let firstDate = _CalendarDate.default.fromLocalJSDate(localDate, this._primaryCalendarType);
409
-
410
375
  firstDate.setDate(1);
411
376
  firstDate = new _CalendarDate.default(firstDate, this.secondaryCalendarType);
412
377
  const startMonth = firstDate.getMonth();
413
-
414
378
  let lastDate = _CalendarDate.default.fromLocalJSDate(localDate, this._primaryCalendarType);
415
-
416
379
  lastDate.setDate(this._getDaysInMonth(lastDate));
417
380
  lastDate = new _CalendarDate.default(lastDate, this.secondaryCalendarType);
418
381
  const endMonth = lastDate.getMonth();
@@ -421,7 +384,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
421
384
  endMonth
422
385
  };
423
386
  }
424
-
425
387
  _getDaysInMonth(date) {
426
388
  const tempCalendarDate = new _CalendarDate.default(date);
427
389
  tempCalendarDate.setDate(1);
@@ -429,35 +391,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
429
391
  tempCalendarDate.setDate(0);
430
392
  return tempCalendarDate.getDate();
431
393
  }
394
+
432
395
  /**
433
396
  * The month button is hidden when the month picker or year picker is shown
434
397
  * @returns {boolean}
435
398
  * @private
436
399
  */
437
-
438
-
439
400
  get _isHeaderMonthButtonHidden() {
440
401
  return this._currentPicker === "month" || this._currentPicker === "year";
441
402
  }
442
-
443
403
  get _isDayPickerHidden() {
444
404
  return this._currentPicker !== "day";
445
405
  }
446
-
447
406
  get _isMonthPickerHidden() {
448
407
  return this._currentPicker !== "month";
449
408
  }
450
-
451
409
  get _isYearPickerHidden() {
452
410
  return this._currentPicker !== "year";
453
411
  }
454
-
455
412
  onSelectedDatesChange(event) {
456
413
  const timestamp = event.detail.timestamp;
457
414
  const selectedDates = event.detail.dates;
458
415
  const datesValues = selectedDates.map(ts => {
459
416
  const calendarDate = _CalendarDate.default.fromTimestamp(ts * 1000, this._primaryCalendarType);
460
-
461
417
  return this.getFormat().format(calendarDate.toUTCJSDate(), true);
462
418
  });
463
419
  this.timestamp = timestamp;
@@ -466,65 +422,54 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/dates/Cale
466
422
  dates: [...selectedDates],
467
423
  values: datesValues
468
424
  }, true);
469
-
470
425
  if (!defaultPrevented) {
471
426
  this._setSelectedDates(selectedDates);
472
427
  }
473
428
  }
474
-
475
429
  onSelectedMonthChange(event) {
476
430
  this.timestamp = event.detail.timestamp;
477
431
  this._currentPicker = "day";
478
432
  this._currentPickerDOM._autoFocus = true;
479
433
  }
480
-
481
434
  onSelectedYearChange(event) {
482
435
  this.timestamp = event.detail.timestamp;
483
436
  this._currentPicker = "day";
484
437
  this._currentPickerDOM._autoFocus = true;
485
438
  }
486
-
487
439
  onNavigate(event) {
488
440
  this.timestamp = event.detail.timestamp;
489
441
  }
490
-
491
442
  _onkeydown(event) {
492
443
  if ((0, _Keys.isF4)(event) && this._currentPicker !== "month") {
493
444
  this._currentPicker = "month";
494
445
  }
495
-
496
446
  if ((0, _Keys.isF4Shift)(event) && this._currentPicker !== "year") {
497
447
  this._currentPicker = "year";
498
448
  }
499
449
  }
450
+
500
451
  /**
501
452
  * Returns an array of UTC timestamps, representing the selected dates.
502
453
  * @protected
503
454
  * @deprecated
504
455
  */
505
-
506
-
507
456
  get selectedDates() {
508
457
  return this._selectedDatesTimestamps;
509
458
  }
459
+
510
460
  /**
511
461
  * Creates instances of <code>ui5-date</code> inside this <code>ui5-calendar</code> with values, equal to the provided UTC timestamps
512
462
  * @protected
513
463
  * @deprecated
514
464
  * @param selectedDates Array of UTC timestamps
515
465
  */
516
-
517
-
518
466
  set selectedDates(selectedDates) {
519
467
  this._setSelectedDates(selectedDates);
520
468
  }
521
-
522
469
  static get dependencies() {
523
470
  return [CalendarDateComponent.default, _CalendarHeader.default, _DayPicker.default, _MonthPicker.default, _YearPicker.default];
524
471
  }
525
-
526
472
  }
527
-
528
473
  Calendar.define();
529
474
  var _default = Calendar;
530
475
  _exports.default = _default;
@@ -6,17 +6,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
6
6
  });
7
7
  _exports.default = void 0;
8
8
  _UI5Element = _interopRequireDefault(_UI5Element);
9
-
10
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
10
  /**
13
11
  * @public
14
12
  */
15
13
  const metadata = {
16
14
  tag: "ui5-date",
17
- properties:
18
- /** @lends sap.ui.webcomponents.main.CalendarDate.prototype */
19
- {
15
+ properties: /** @lends sap.ui.webcomponents.main.CalendarDate.prototype */{
20
16
  /**
21
17
  * The date formatted according to the <code>formatPattern</code> property of the <code>ui5-calendar</code> that hosts the component
22
18
  *
@@ -28,6 +24,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
28
24
  }
29
25
  }
30
26
  };
27
+
31
28
  /**
32
29
  * @class
33
30
  *
@@ -43,14 +40,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
43
40
  * @implements sap.ui.webcomponents.main.ICalendarDate
44
41
  * @public
45
42
  */
46
-
47
43
  class CalendarDate extends _UI5Element.default {
48
44
  static get metadata() {
49
45
  return metadata;
50
46
  }
51
-
52
47
  }
53
-
54
48
  CalendarDate.define();
55
49
  var _default = CalendarDate;
56
50
  _exports.default = _default;
@@ -12,10 +12,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
12
12
  _Icon = _interopRequireDefault(_Icon);
13
13
  _CalendarHeaderTemplate = _interopRequireDefault(_CalendarHeaderTemplate);
14
14
  _CalendarHeader = _interopRequireDefault(_CalendarHeader);
15
-
16
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
16
  // Styles
17
+
19
18
  const metadata = {
20
19
  tag: "ui5-calendar-header",
21
20
  languageAware: true,
@@ -28,7 +27,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
28
27
  timestamp: {
29
28
  type: _Integer.default
30
29
  },
31
-
32
30
  /**
33
31
  * Already normalized by Calendar
34
32
  * @type {CalendarType}
@@ -37,7 +35,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
37
35
  primaryCalendarType: {
38
36
  type: _CalendarType.default
39
37
  },
40
-
41
38
  /**
42
39
  * Already normalized by Calendar
43
40
  * @sience 1.0.0-rc.16
@@ -48,7 +45,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
48
45
  secondaryCalendarType: {
49
46
  type: _CalendarType.default
50
47
  },
51
-
52
48
  /**
53
49
  * Stores information for month button for secondary calendar type
54
50
  * @type {Object}
@@ -83,100 +79,79 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
83
79
  "show-year-press": {}
84
80
  }
85
81
  };
86
-
87
82
  class CalendarHeader extends _UI5Element.default {
88
83
  static get metadata() {
89
84
  return metadata;
90
85
  }
91
-
92
86
  static get render() {
93
87
  return _LitRenderer.default;
94
88
  }
95
-
96
89
  static get template() {
97
90
  return _CalendarHeaderTemplate.default;
98
91
  }
99
-
100
92
  static get styles() {
101
93
  return _CalendarHeader.default;
102
94
  }
103
-
104
95
  static get dependencies() {
105
96
  return [_Icon.default];
106
97
  }
107
-
108
98
  static async onDefine() {
109
99
  CalendarHeader.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
110
100
  }
111
-
112
101
  constructor() {
113
102
  super();
114
103
  }
115
-
116
104
  onBeforeRendering() {
117
105
  this._prevButtonText = CalendarHeader.i18nBundle.getText(_i18nDefaults.CALENDAR_HEADER_PREVIOUS_BUTTON);
118
106
  this._nextButtonText = CalendarHeader.i18nBundle.getText(_i18nDefaults.CALENDAR_HEADER_NEXT_BUTTON);
119
-
120
107
  if (this.hasSecondaryCalendarType) {
121
108
  this._secondMonthButtonText = this.buttonTextForSecondaryCalendarType.monthButtonText;
122
109
  this._secondYearButtonText = this.buttonTextForSecondaryCalendarType.yearButtonText;
123
110
  }
124
111
  }
125
-
126
112
  onPrevButtonClick(event) {
127
113
  this.fireEvent("previous-press", event);
128
114
  }
129
-
130
115
  onNextButtonClick(event) {
131
116
  this.fireEvent("next-press", event);
132
117
  }
133
-
134
118
  onMonthButtonClick(event) {
135
119
  this.fireEvent("show-month-press", event);
136
120
  }
137
-
138
121
  onMonthButtonKeyDown(event) {
139
122
  if ((0, _Keys.isSpace)(event)) {
140
123
  event.preventDefault();
141
124
  }
142
-
143
125
  if ((0, _Keys.isEnter)(event)) {
144
126
  this.fireEvent("show-month-press", event);
145
127
  }
146
128
  }
147
-
148
129
  onMonthButtonKeyUp(event) {
149
130
  if ((0, _Keys.isSpace)(event)) {
150
131
  event.preventDefault();
151
132
  this.fireEvent("show-month-press", event);
152
133
  }
153
134
  }
154
-
155
135
  onYearButtonClick(event) {
156
136
  this.fireEvent("show-year-press", event);
157
137
  }
158
-
159
138
  onYearButtonKeyDown(event) {
160
139
  if ((0, _Keys.isSpace)(event)) {
161
140
  event.preventDefault();
162
141
  }
163
-
164
142
  if ((0, _Keys.isEnter)(event)) {
165
143
  this.fireEvent("show-year-press", event);
166
144
  }
167
145
  }
168
-
169
146
  onYearButtonKeyUp(event) {
170
147
  if ((0, _Keys.isSpace)(event)) {
171
148
  event.preventDefault();
172
149
  this.fireEvent("show-year-press", event);
173
150
  }
174
151
  }
175
-
176
152
  get hasSecondaryCalendarType() {
177
153
  return !!this.secondaryCalendarType;
178
154
  }
179
-
180
155
  get classes() {
181
156
  return {
182
157
  prevButton: {
@@ -189,15 +164,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
189
164
  }
190
165
  };
191
166
  }
192
-
193
167
  get accInfo() {
194
168
  return {
195
169
  ariaLabelMonthButton: this.hasSecondaryCalendarType ? `${this._monthButtonText}, ${this.buttonTextForSecondaryCalendarType.info}` : `${this._monthButtonText}`
196
170
  };
197
171
  }
198
-
199
172
  }
200
-
201
173
  CalendarHeader.define();
202
174
  var _default = CalendarHeader;
203
175
  _exports.default = _default;
@@ -10,16 +10,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
10
10
  _modifyDateBy = _interopRequireDefault(_modifyDateBy);
11
11
  _getTodayUTCTimestamp = _interopRequireDefault(_getTodayUTCTimestamp);
12
12
  _DateComponentBase = _interopRequireDefault(_DateComponentBase);
13
-
14
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
14
  /**
17
15
  * @public
18
16
  */
19
17
  const metadata = {
20
- properties:
21
- /** @lends sap.ui.webcomponents.main.CalendarPart.prototype */
22
- {
18
+ properties: /** @lends sap.ui.webcomponents.main.CalendarPart.prototype */{
23
19
  /**
24
20
  * The timestamp of the currently focused date. Set this property to move the component's focus to a certain date.
25
21
  * <b>Node:</b> Timestamp is 10-digit Integer representing the seconds (not milliseconds) since the Unix Epoch.
@@ -31,6 +27,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
31
27
  }
32
28
  }
33
29
  };
30
+
34
31
  /**
35
32
  * @class
36
33
  *
@@ -44,90 +41,73 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/types/Integer", "s
44
41
  * @extends DateComponentBase
45
42
  * @public
46
43
  */
47
-
48
44
  class CalendarPart extends _DateComponentBase.default {
49
45
  static get metadata() {
50
46
  return metadata;
51
47
  }
52
-
53
48
  get _minTimestamp() {
54
49
  return this._minDate.valueOf() / 1000;
55
50
  }
56
-
57
51
  get _maxTimestamp() {
58
52
  return this._maxDate.valueOf() / 1000;
59
53
  }
54
+
60
55
  /**
61
56
  * Returns the effective timestamp to be used by the respective calendar part
62
57
  * @protected
63
58
  */
64
-
65
-
66
59
  get _timestamp() {
67
60
  let timestamp = this.timestamp !== undefined ? this.timestamp : (0, _getTodayUTCTimestamp.default)(this._primaryCalendarType);
68
-
69
61
  if (timestamp < this._minTimestamp || timestamp > this._maxTimestamp) {
70
62
  timestamp = this._minTimestamp;
71
63
  }
72
-
73
64
  return timestamp;
74
65
  }
75
-
76
66
  get _localDate() {
77
67
  return new Date(this._timestamp * 1000);
78
68
  }
69
+
79
70
  /**
80
71
  * Returns a CalendarDate instance, representing the _timestamp getter - this date is central to all components' rendering logic
81
72
  * @protected
82
73
  */
83
-
84
-
85
74
  get _calendarDate() {
86
75
  return _CalendarDate.default.fromTimestamp(this._localDate.getTime(), this._primaryCalendarType);
87
76
  }
77
+
88
78
  /**
89
79
  * Change a timestamp and enforce limits
90
80
  *
91
81
  * @param timestamp
92
82
  * @protected
93
83
  */
94
-
95
-
96
84
  _safelySetTimestamp(timestamp) {
97
85
  const min = this._minDate.valueOf() / 1000;
98
86
  const max = this._maxDate.valueOf() / 1000;
99
-
100
87
  if (timestamp < min) {
101
88
  timestamp = min;
102
89
  }
103
-
104
90
  if (timestamp > max) {
105
91
  timestamp = max;
106
92
  }
107
-
108
93
  this.timestamp = timestamp;
109
94
  }
95
+
110
96
  /**
111
97
  * Modify a timestamp by a certain amount of days/months/years and enforce limits
112
98
  * @param amount
113
99
  * @param unit
114
100
  * @protected
115
101
  */
116
-
117
-
118
102
  _safelyModifyTimestampBy(amount, unit) {
119
103
  const newDate = (0, _modifyDateBy.default)(this._calendarDate, amount, unit);
120
-
121
104
  this._safelySetTimestamp(newDate.valueOf() / 1000);
122
105
  }
123
-
124
106
  _getTimestampFromDom(domNode) {
125
107
  const oMonthDomRef = domNode.getAttribute("data-sap-timestamp");
126
108
  return parseInt(oMonthDomRef);
127
109
  }
128
-
129
110
  }
130
-
131
111
  var _default = CalendarPart;
132
112
  _exports.default = _default;
133
113
  });