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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/package.json +3 -3
  2. package/src/sap/ui/webc/main/.library +1 -1
  3. package/src/sap/ui/webc/main/Avatar.js +1 -1
  4. package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
  5. package/src/sap/ui/webc/main/Badge.js +1 -1
  6. package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
  7. package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
  8. package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
  9. package/src/sap/ui/webc/main/Button.js +1 -1
  10. package/src/sap/ui/webc/main/Calendar.js +1 -1
  11. package/src/sap/ui/webc/main/CalendarDate.js +1 -1
  12. package/src/sap/ui/webc/main/Card.js +1 -1
  13. package/src/sap/ui/webc/main/CardHeader.js +1 -1
  14. package/src/sap/ui/webc/main/Carousel.js +1 -1
  15. package/src/sap/ui/webc/main/CheckBox.js +1 -1
  16. package/src/sap/ui/webc/main/ColorPalette.js +1 -1
  17. package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
  18. package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
  19. package/src/sap/ui/webc/main/ColorPicker.js +1 -1
  20. package/src/sap/ui/webc/main/ComboBox.js +1 -1
  21. package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
  22. package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
  23. package/src/sap/ui/webc/main/CustomListItem.js +1 -1
  24. package/src/sap/ui/webc/main/DatePicker.js +2 -2
  25. package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
  26. package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
  27. package/src/sap/ui/webc/main/Dialog.js +1 -1
  28. package/src/sap/ui/webc/main/FileUploader.js +1 -1
  29. package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
  30. package/src/sap/ui/webc/main/Icon.js +5 -11
  31. package/src/sap/ui/webc/main/Input.js +1 -1
  32. package/src/sap/ui/webc/main/Label.js +1 -1
  33. package/src/sap/ui/webc/main/Link.js +1 -1
  34. package/src/sap/ui/webc/main/List.js +1 -1
  35. package/src/sap/ui/webc/main/Menu.js +1 -1
  36. package/src/sap/ui/webc/main/MenuItem.js +1 -1
  37. package/src/sap/ui/webc/main/MessageStrip.js +1 -1
  38. package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
  39. package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
  40. package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
  41. package/src/sap/ui/webc/main/MultiInput.js +1 -1
  42. package/src/sap/ui/webc/main/Option.js +1 -1
  43. package/src/sap/ui/webc/main/Panel.js +1 -1
  44. package/src/sap/ui/webc/main/Popover.js +1 -1
  45. package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
  46. package/src/sap/ui/webc/main/RadioButton.js +1 -1
  47. package/src/sap/ui/webc/main/RangeSlider.js +1 -1
  48. package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
  49. package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
  50. package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
  51. package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
  52. package/src/sap/ui/webc/main/Select.js +1 -1
  53. package/src/sap/ui/webc/main/Slider.js +1 -1
  54. package/src/sap/ui/webc/main/SplitButton.js +1 -1
  55. package/src/sap/ui/webc/main/StandardListItem.js +1 -1
  56. package/src/sap/ui/webc/main/StepInput.js +1 -1
  57. package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
  58. package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
  59. package/src/sap/ui/webc/main/Switch.js +1 -1
  60. package/src/sap/ui/webc/main/Tab.js +1 -1
  61. package/src/sap/ui/webc/main/TabContainer.js +1 -1
  62. package/src/sap/ui/webc/main/TabSeparator.js +1 -1
  63. package/src/sap/ui/webc/main/Table.js +1 -1
  64. package/src/sap/ui/webc/main/TableCell.js +1 -1
  65. package/src/sap/ui/webc/main/TableColumn.js +1 -1
  66. package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
  67. package/src/sap/ui/webc/main/TableRow.js +1 -1
  68. package/src/sap/ui/webc/main/TextArea.js +1 -1
  69. package/src/sap/ui/webc/main/TimePicker.js +2 -2
  70. package/src/sap/ui/webc/main/Title.js +1 -1
  71. package/src/sap/ui/webc/main/Toast.js +1 -1
  72. package/src/sap/ui/webc/main/ToggleButton.js +1 -1
  73. package/src/sap/ui/webc/main/Token.js +1 -1
  74. package/src/sap/ui/webc/main/Tree.js +1 -1
  75. package/src/sap/ui/webc/main/TreeItem.js +1 -1
  76. package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
  77. package/src/sap/ui/webc/main/library.config.js +6 -0
  78. package/src/sap/ui/webc/main/library.js +2 -2
  79. package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
  80. package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
  81. package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
  82. package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
  83. package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
  84. package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
  85. package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
  86. package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
  87. package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
  88. package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
  89. package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
  90. package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
  91. package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
  92. package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
  93. package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
  94. package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
  95. package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
  96. package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
  97. package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
  98. package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
  99. package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
  100. package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
  101. package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
  102. package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
  103. package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
  104. package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
  105. package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
  106. package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
  107. package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
  108. package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
  109. package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
  110. package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
  111. package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
  112. package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
  113. package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
  114. package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
  115. package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
  116. package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
  117. package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
  118. package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
  119. package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
  120. package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
  121. package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
  122. package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
  123. package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
  124. package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
  125. package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
  126. package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
  127. package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
  128. package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
  129. package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
  130. package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
  131. package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
  132. package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
  133. package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
  134. package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
  135. package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
  136. package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
  137. package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
  138. package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
  139. package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
  140. package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
  141. package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
  142. package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
  143. package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
  144. package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
  145. package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
  146. package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
  147. package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
  148. package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
  149. package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
  150. package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
  151. package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
  152. package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
  153. package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
  154. package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
  155. package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
  156. package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
  157. package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
  158. package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
  159. package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
  160. package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
  161. package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
  162. package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
  163. package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
  164. package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
  165. package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
  166. package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
  167. package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
  168. package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
  169. package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
  170. package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
  171. package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
  172. package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
  173. package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
  174. package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
  175. package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
  176. package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
  177. package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
  178. package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
  179. package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
  180. package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
  181. package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
  182. package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
  183. package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
  184. package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
  185. package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
  186. package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
  187. package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
  188. package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
  189. package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
  190. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
  191. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
  192. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
  193. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
  194. package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
  195. package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
  196. package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
  197. package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
  198. package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
  199. package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
  200. package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
  201. package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
  202. package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
  203. package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
  204. package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
  205. package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
  206. package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
  207. package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
  208. package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
  209. package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
  210. package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
  211. package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
  212. package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
  213. package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
  214. package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
  215. package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
  216. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
  217. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
  218. package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
  219. package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
  220. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
  221. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
  222. package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
  223. package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
  224. package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
  225. package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
  226. package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
  227. package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
  228. package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
  229. package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
  230. package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
  231. package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
  232. package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
  233. package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
  234. package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
  235. package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
  236. package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
  237. package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
  238. package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
  239. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
  240. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
  241. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
  242. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
  243. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
  244. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
  245. package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
  246. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
  247. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
  248. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
  249. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
  250. package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
  251. package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
  252. package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
  253. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
  254. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
  255. package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
  256. package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
  257. package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
  258. package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
  259. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
  260. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
  261. package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
  262. package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
  263. package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
  264. package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
  265. package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
  266. package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
  267. package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
  268. package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
  269. package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
  270. package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
  271. package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
  272. package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
  273. package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
  274. package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
  275. package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
  276. package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
  277. package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
  278. package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
  279. package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
  280. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
  281. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
  282. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
  283. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
  284. package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
  285. package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
  286. package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
  287. package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
  288. package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
  289. package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
  290. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
  291. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
  292. package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
  293. package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
  294. package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
  295. package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
  296. package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
  297. package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
  298. package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
  299. package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
  300. package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
  301. package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
  302. package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
  303. package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
  304. package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
  305. package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
  306. package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
  307. package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
  308. package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
  309. package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
  310. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
  311. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
  312. package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
  313. package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
  314. package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
  315. package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
  316. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
  317. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
  318. package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
  319. package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
  320. package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
  321. package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
  322. package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
  323. package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
  324. package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
  325. package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
  326. package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
  327. package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
  328. package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
  329. package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
  330. package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
  331. package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
  332. package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
  333. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
  334. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
  335. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
  336. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
  337. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
  338. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
  339. package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
  340. package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
  341. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
  342. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
  343. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
  344. package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
  345. package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
  346. package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
  347. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
  348. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
  349. package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
  350. package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
  351. package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
  352. package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
  353. package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
  354. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
  355. package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
  356. package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
  357. package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
  358. package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
  359. package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
  360. package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
  361. package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
  362. package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
  363. package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
  364. package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
  365. package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
  366. package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
  367. package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
  368. package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
  369. package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
  370. package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
  371. package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
  372. package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
  373. package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
  374. package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
  375. package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
  376. package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
  377. package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
  378. package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
  379. package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
  380. package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
  381. package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
  382. package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
  383. package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
  384. package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
  385. package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
  386. package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
  387. package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
  388. package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
  389. package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
  390. package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
  391. package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
  392. package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
  393. package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
  394. package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
  395. package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
  396. package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
  397. package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
  398. package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
  399. package/ui5.yaml +1 -1
@@ -15,17 +15,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
15
15
  _CalendarPart = _interopRequireDefault(_CalendarPart);
16
16
  _DayPickerTemplate = _interopRequireDefault(_DayPickerTemplate);
17
17
  _DayPicker = _interopRequireDefault(_DayPicker);
18
-
19
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
-
21
19
  /**
22
20
  * @public
23
21
  */
24
22
  const metadata = {
25
23
  tag: "ui5-daypicker",
26
- properties:
27
- /** @lends sap.ui.webcomponents.main.DayPicker.prototype */
28
- {
24
+ properties: /** @lends sap.ui.webcomponents.main.DayPicker.prototype */{
29
25
  /**
30
26
  * An array of UTC timestamps representing the selected date or dates depending on the capabilities of the picker component.
31
27
  * @type {Array}
@@ -36,7 +32,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
36
32
  multiple: true,
37
33
  compareValues: true
38
34
  },
39
-
40
35
  /**
41
36
  * Defines the type of selection used in the day picker component.
42
37
  * Accepted property values are:<br>
@@ -53,7 +48,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
53
48
  type: _CalendarSelectionMode.default,
54
49
  defaultValue: _CalendarSelectionMode.default.Single
55
50
  },
56
-
57
51
  /**
58
52
  * Defines the visibility of the week numbers column.
59
53
  * <br><br>
@@ -69,7 +63,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
69
63
  hideWeekNumbers: {
70
64
  type: Boolean
71
65
  },
72
-
73
66
  /**
74
67
  * @type {Object}
75
68
  * @private
@@ -82,7 +75,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
82
75
  type: Object,
83
76
  multiple: true
84
77
  },
85
-
86
78
  /**
87
79
  * When set, the component will skip all work in onBeforeRendering and will not automatically set the focus on itself
88
80
  * @type {boolean}
@@ -92,7 +84,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
92
84
  type: Boolean,
93
85
  noAttribute: true
94
86
  },
95
-
96
87
  /**
97
88
  * When selectionMode="Range" and the first day in the range is selected, this is the currently hovered (when using mouse) or focused (when using keyboard) day by the user
98
89
  * @private
@@ -101,16 +92,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
101
92
  type: String
102
93
  }
103
94
  },
104
- events:
105
- /** @lends sap.ui.webcomponents.main.DayPicker.prototype */
106
- {
95
+ events: /** @lends sap.ui.webcomponents.main.DayPicker.prototype */{
107
96
  /**
108
97
  * Fired when the selected date(s) change
109
98
  * @public
110
99
  * @event
111
100
  */
112
101
  change: {},
113
-
114
102
  /**
115
103
  * Fired when the timestamp changes (user navigates with the keyboard) or clicks with the mouse
116
104
  * @public
@@ -119,10 +107,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
119
107
  navigate: {}
120
108
  }
121
109
  };
122
-
123
110
  const isBetween = (x, num1, num2) => x > Math.min(num1, num2) && x < Math.max(num1, num2);
124
-
125
111
  const DAYS_IN_WEEK = 7;
112
+
126
113
  /**
127
114
  * @class
128
115
  *
@@ -135,84 +122,59 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
135
122
  * @tagname ui5-daypicker
136
123
  * @public
137
124
  */
138
-
139
125
  class DayPicker extends _CalendarPart.default {
140
126
  static get metadata() {
141
127
  return metadata;
142
128
  }
143
-
144
129
  static get template() {
145
130
  return _DayPickerTemplate.default;
146
131
  }
147
-
148
132
  static get styles() {
149
133
  return _DayPicker.default;
150
134
  }
151
-
152
135
  onBeforeRendering() {
153
136
  const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
154
-
155
137
  this._buildWeeks(localeData);
156
-
157
138
  this._buildDayNames(localeData);
158
139
  }
140
+
159
141
  /**
160
142
  * Builds the _weeks object that represents the month
161
143
  * @param localeData
162
144
  * @private
163
145
  */
164
-
165
-
166
146
  _buildWeeks(localeData) {
167
147
  if (this._hidden) {
168
148
  return; // Optimization to not do any work unless the current picker
169
149
  }
170
150
 
171
151
  this._weeks = [];
172
-
173
152
  const firstDayOfWeek = this._getFirstDayOfWeek();
174
-
175
153
  const monthsNames = localeData.getMonths("wide", this._primaryCalendarType);
176
154
  const secondaryMonthsNames = this.hasSecondaryCalendarType && localeData.getMonths("wide", this.secondaryCalendarType);
177
155
  const nonWorkingDayLabel = DayPicker.i18nBundle.getText(_i18nDefaults.DAY_PICKER_NON_WORKING_DAY);
178
156
  const todayLabel = DayPicker.i18nBundle.getText(_i18nDefaults.DAY_PICKER_TODAY);
179
-
180
157
  const tempDate = this._getFirstDay(); // date that will be changed by 1 day 42 times
181
-
182
-
183
158
  const todayDate = _CalendarDate.default.fromLocalJSDate(new Date(), this._primaryCalendarType); // current day date - calculate once
184
-
185
-
186
159
  const calendarDate = this._calendarDate; // store the _calendarDate value as this getter is expensive and degrades IE11 perf
187
-
188
160
  const minDate = this._minDate; // store the _minDate (expensive getter)
189
-
190
161
  const maxDate = this._maxDate; // store the _maxDate (expensive getter)
191
162
 
192
163
  const tempSecondDate = this.hasSecondaryCalendarType && this._getSecondaryDay(tempDate);
193
-
194
164
  let week = [];
195
-
196
165
  for (let i = 0; i < DAYS_IN_WEEK * 6; i++) {
197
166
  // always show 6 weeks total, 42 days to avoid jumping
198
167
  const timestamp = tempDate.valueOf() / 1000; // no need to round because CalendarDate does it
199
168
 
200
169
  let dayOfTheWeek = tempDate.getDay() - firstDayOfWeek;
201
-
202
170
  if (dayOfTheWeek < 0) {
203
171
  dayOfTheWeek += DAYS_IN_WEEK;
204
172
  }
205
-
206
173
  const isFocused = tempDate.getMonth() === calendarDate.getMonth() && tempDate.getDate() === calendarDate.getDate();
207
-
208
174
  const isSelected = this._isDaySelected(timestamp);
209
-
210
175
  const isSelectedBetween = this._isDayInsideSelectionRange(timestamp);
211
-
212
176
  const isOtherMonth = tempDate.getMonth() !== calendarDate.getMonth();
213
-
214
177
  const isWeekend = this._isWeekend(tempDate);
215
-
216
178
  const isDisabled = tempDate.valueOf() < minDate.valueOf() || tempDate.valueOf() > maxDate.valueOf();
217
179
  const isToday = tempDate.isSame(todayDate);
218
180
  const isFirstDayOfWeek = tempDate.getDay() === firstDayOfWeek;
@@ -233,41 +195,31 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
233
195
  ariaDisabled: isOtherMonth ? "true" : undefined,
234
196
  disabled: isDisabled
235
197
  };
236
-
237
198
  if (isFirstDayOfWeek) {
238
199
  day.classes += " ui5-dp-firstday";
239
200
  }
240
-
241
201
  if (isSelected) {
242
202
  day.classes += " ui5-dp-item--selected";
243
203
  }
244
-
245
204
  if (isSelectedBetween) {
246
205
  day.classes += " ui5-dp-item--selected-between";
247
206
  }
248
-
249
207
  if (isToday) {
250
208
  day.classes += " ui5-dp-item--now";
251
209
  }
252
-
253
210
  if (isOtherMonth) {
254
211
  day.classes += " ui5-dp-item--othermonth";
255
212
  }
256
-
257
213
  if (isWeekend) {
258
214
  day.classes += " ui5-dp-item--weeekend";
259
215
  }
260
-
261
216
  if (isDisabled) {
262
217
  day.classes += " ui5-dp-item--disabled";
263
218
  }
264
-
265
219
  if (this.hasSecondaryCalendarType) {
266
220
  day.classes += " ui5-dp-item--withsecondtype";
267
221
  }
268
-
269
222
  week.push(day);
270
-
271
223
  if (dayOfTheWeek === DAYS_IN_WEEK - 1) {
272
224
  // 0-indexed so 6 is the last day of the week
273
225
  week.unshift({
@@ -275,28 +227,23 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
275
227
  isHidden: this.shouldHideWeekNumbers
276
228
  });
277
229
  }
278
-
279
230
  if (week.length === DAYS_IN_WEEK + 1) {
280
231
  // 7 entries for each day + 1 for the week numbers
281
232
  this._weeks.push(week);
282
-
283
233
  week = [];
284
234
  }
285
-
286
235
  tempDate.setDate(tempDate.getDate() + 1);
287
-
288
236
  if (this.hasSecondaryCalendarType) {
289
237
  tempSecondDate.setDate(tempSecondDate.getDate() + 1);
290
238
  }
291
239
  }
292
240
  }
241
+
293
242
  /**
294
243
  * Builds the dayNames object (header of the month)
295
244
  * @param localeData
296
245
  * @private
297
246
  */
298
-
299
-
300
247
  _buildDayNames(localeData) {
301
248
  if (this._hidden) {
302
249
  return; // Optimization to not do any work unless the current picker
@@ -307,108 +254,90 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
307
254
  const aDayNamesAbbreviated = localeData.getDays("abbreviated", this._primaryCalendarType);
308
255
  let dayName;
309
256
  this._dayNames = [];
310
-
311
257
  this._dayNames.push({
312
258
  classes: "ui5-dp-dayname",
313
259
  name: DayPicker.i18nBundle.getText(_i18nDefaults.DAY_PICKER_WEEK_NUMBER_TEXT)
314
260
  });
315
-
316
261
  for (let i = 0; i < DAYS_IN_WEEK; i++) {
317
262
  dayOfTheWeek = i + this._getFirstDayOfWeek();
318
-
319
263
  if (dayOfTheWeek > DAYS_IN_WEEK - 1) {
320
264
  // 0-indexed so index of 6 is the maximum allowed
321
265
  dayOfTheWeek -= DAYS_IN_WEEK;
322
266
  }
323
-
324
267
  dayName = {
325
268
  name: aDayNamesWide[dayOfTheWeek],
326
269
  ultraShortName: aDayNamesAbbreviated[dayOfTheWeek],
327
270
  classes: "ui5-dp-dayname"
328
271
  };
329
-
330
272
  this._dayNames.push(dayName);
331
273
  }
332
-
333
274
  this._dayNames[1].classes += " ui5-dp-firstday";
334
-
335
275
  if (this.shouldHideWeekNumbers) {
336
276
  this._dayNames.shift();
337
277
  }
338
278
  }
339
-
340
279
  onAfterRendering() {
341
280
  if (this._autoFocus && !this._hidden) {
342
281
  this.focus();
343
282
  }
344
283
  }
345
-
346
284
  _onfocusin() {
347
285
  this._autoFocus = true;
348
286
  }
349
-
350
287
  _onfocusout() {
351
288
  this._autoFocus = false;
352
289
  }
290
+
353
291
  /**
354
292
  * Tells if the day is selected (dark blue)
355
293
  * @param timestamp
356
294
  * @returns {boolean}
357
295
  * @private
358
296
  */
359
-
360
-
361
297
  _isDaySelected(timestamp) {
362
298
  if (this.selectionMode === _CalendarSelectionMode.default.Single) {
363
299
  return timestamp === this.selectedDates[0];
364
- } // Multiple, Range
365
-
300
+ }
366
301
 
302
+ // Multiple, Range
367
303
  return this.selectedDates.includes(timestamp);
368
304
  }
305
+
369
306
  /**
370
307
  * Tells if the day is inside a selection range (light blue)
371
308
  * @param timestamp
372
309
  * @returns {*}
373
310
  * @private
374
311
  */
375
-
376
-
377
312
  _isDayInsideSelectionRange(timestamp) {
378
313
  // No selection at all (or not in range selection mode)
379
314
  if (this.selectionMode !== _CalendarSelectionMode.default.Range || !this.selectedDates.length) {
380
315
  return false;
381
- } // Only one date selected - the user is hovering with the mouse or navigating with the keyboard to select the second one
382
-
316
+ }
383
317
 
318
+ // Only one date selected - the user is hovering with the mouse or navigating with the keyboard to select the second one
384
319
  if (this.selectedDates.length === 1 && this._secondTimestamp) {
385
320
  return isBetween(timestamp, this.selectedDates[0], this._secondTimestamp);
386
- } // Two dates selected - stable range
387
-
321
+ }
388
322
 
323
+ // Two dates selected - stable range
389
324
  return isBetween(timestamp, this.selectedDates[0], this.selectedDates[1]);
390
325
  }
326
+
391
327
  /**
392
328
  * Selects/deselects a day
393
329
  * @param event
394
330
  * @param isShift true if the user did Click+Shift or Enter+Shift (but not Space+Shift)
395
331
  * @private
396
332
  */
397
-
398
-
399
333
  _selectDate(event, isShift) {
400
334
  const target = event.target;
401
-
402
335
  if (!this._isDayPressed(target)) {
403
336
  return;
404
337
  }
405
-
406
338
  const timestamp = this._getTimestampFromDom(target);
407
-
408
339
  this._safelySetTimestamp(timestamp);
409
-
410
340
  this._updateSecondTimestamp();
411
-
412
341
  if (this.selectionMode === _CalendarSelectionMode.default.Single) {
413
342
  this.selectedDates = [timestamp];
414
343
  } else if (this.selectionMode === _CalendarSelectionMode.default.Multiple) {
@@ -420,31 +349,26 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
420
349
  } else {
421
350
  this.selectedDates = this.selectedDates.length === 1 ? [...this.selectedDates, timestamp] : [timestamp];
422
351
  }
423
-
424
352
  this.fireEvent("change", {
425
353
  timestamp: this.timestamp,
426
354
  dates: this.selectedDates
427
355
  });
428
356
  }
357
+
429
358
  /**
430
359
  * Selects/deselects the whole row (week)
431
360
  * @param event
432
361
  * @private
433
362
  */
434
-
435
-
436
363
  _selectWeek(event) {
437
364
  this._weeks.forEach(week => {
438
365
  const dayInThisWeek = week.findIndex(item => {
439
366
  const date = _CalendarDate.default.fromTimestamp(parseInt(item.timestamp) * 1000);
440
-
441
367
  return date.getMonth() === this._calendarDate.getMonth() && date.getDate() === this._calendarDate.getDate();
442
368
  }) !== -1;
443
-
444
369
  if (dayInThisWeek) {
445
370
  // The current day is in this week
446
371
  const notAllDaysOfThisWeekSelected = week.some(item => item.timestamp && !this.selectedDates.includes(parseInt(item.timestamp)));
447
-
448
372
  if (notAllDaysOfThisWeekSelected) {
449
373
  // even if one day is not selected, select the whole week
450
374
  week.filter(item => item.timestamp).forEach(item => {
@@ -458,13 +382,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
458
382
  }
459
383
  }
460
384
  });
461
-
462
385
  this.fireEvent("change", {
463
386
  timestamp: this.timestamp,
464
387
  dates: this.selectedDates
465
388
  });
466
389
  }
467
-
468
390
  _toggleTimestampInSelection(timestamp) {
469
391
  if (this.selectedDates.includes(timestamp)) {
470
392
  this._removeTimestampFromSelection(timestamp);
@@ -472,30 +394,26 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
472
394
  this._addTimestampToSelection(timestamp);
473
395
  }
474
396
  }
475
-
476
397
  _addTimestampToSelection(timestamp) {
477
398
  if (!this.selectedDates.includes(timestamp)) {
478
399
  this.selectedDates = [...this.selectedDates, timestamp];
479
400
  }
480
401
  }
481
-
482
402
  _removeTimestampFromSelection(timestamp) {
483
403
  this.selectedDates = this.selectedDates.filter(value => value !== timestamp);
484
404
  }
405
+
485
406
  /**
486
407
  * When at least one day is selected and the user pressed shift
487
408
  * @param timestamp
488
409
  * @private
489
410
  */
490
-
491
-
492
411
  _multipleSelection(timestamp) {
493
412
  const min = Math.min(...this.selectedDates);
494
413
  const max = Math.max(...this.selectedDates);
495
414
  let start;
496
415
  let end;
497
416
  let toggle = false;
498
-
499
417
  if (timestamp < min) {
500
418
  start = timestamp;
501
419
  end = min;
@@ -503,7 +421,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
503
421
  // inside the current range - toggle all between the selected and focused
504
422
  const distanceToMin = Math.abs(timestamp - min);
505
423
  const distanceToMax = Math.abs(timestamp - max);
506
-
507
424
  if (distanceToMin < distanceToMax) {
508
425
  start = timestamp;
509
426
  end = max;
@@ -511,40 +428,32 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
511
428
  start = min;
512
429
  end = timestamp;
513
430
  }
514
-
515
431
  toggle = true;
516
432
  } else {
517
433
  start = max;
518
434
  end = timestamp;
519
435
  }
520
-
521
436
  const startDate = _CalendarDate.default.fromTimestamp(start * 1000);
522
-
523
437
  const endDate = _CalendarDate.default.fromTimestamp(end * 1000);
524
-
525
438
  while (startDate.valueOf() <= endDate.valueOf()) {
526
439
  this[toggle ? "_toggleTimestampInSelection" : "_addTimestampToSelection"](startDate.valueOf() / 1000);
527
440
  startDate.setDate(startDate.getDate() + 1);
528
441
  }
529
442
  }
443
+
530
444
  /**
531
445
  * Set the hovered day as the _secondTimestamp
532
446
  * @param event
533
447
  * @private
534
448
  */
535
-
536
-
537
449
  _onmouseover(event) {
538
450
  const hoveredItem = event.target.closest(".ui5-dp-item");
539
-
540
451
  if (hoveredItem && this.selectionMode === _CalendarSelectionMode.default.Range && this.selectedDates.length === 1) {
541
452
  this._secondTimestamp = this._getTimestampFromDom(hoveredItem);
542
453
  }
543
454
  }
544
-
545
455
  _onkeydown(event) {
546
456
  let preventDefault = true;
547
-
548
457
  if ((0, _Keys.isEnter)(event) || (0, _Keys.isEnterShift)(event)) {
549
458
  this._selectDate(event, (0, _Keys.isEnterShift)(event));
550
459
  } else if ((0, _Keys.isSpace)(event) || (0, _Keys.isSpaceShift)(event)) {
@@ -574,23 +483,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
574
483
  } else if ((0, _Keys.isHomeCtrl)(event)) {
575
484
  const tempDate = new _CalendarDate.default(this._calendarDate, this._primaryCalendarType);
576
485
  tempDate.setDate(1); // Set the first day of the month
577
-
578
486
  this._setTimestamp(tempDate.valueOf() / 1000);
579
487
  } else if ((0, _Keys.isEndCtrl)(event)) {
580
488
  const tempDate = new _CalendarDate.default(this._calendarDate, this._primaryCalendarType);
581
489
  tempDate.setMonth(tempDate.getMonth() + 1);
582
490
  tempDate.setDate(0); // Set the last day of the month (0th day of next month)
583
-
584
491
  this._setTimestamp(tempDate.valueOf() / 1000);
585
492
  } else {
586
493
  preventDefault = false;
587
494
  }
588
-
589
495
  if (preventDefault) {
590
496
  event.preventDefault();
591
497
  }
592
498
  }
593
-
594
499
  _onkeyup(event) {
595
500
  // Even if Space+Shift was pressed, ignore the shift unless in Multiple selection
596
501
  if ((0, _Keys.isSpace)(event) || (0, _Keys.isSpaceShift)(event) && this.selectionMode !== _CalendarSelectionMode.default.Multiple) {
@@ -599,180 +504,152 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
599
504
  this._selectWeek(event);
600
505
  }
601
506
  }
507
+
602
508
  /**
603
509
  * Click is the same as Enter: Click+Shift has the same effect as Enter+Shift
604
510
  * @param event
605
511
  * @private
606
512
  */
607
-
608
-
609
513
  _onclick(event) {
610
514
  this._selectDate(event, event.shiftKey);
611
515
  }
516
+
612
517
  /**
613
518
  * One Home or End, move the focus to the first or last item in the row
614
519
  * @param homePressed
615
520
  * @private
616
521
  */
617
-
618
-
619
522
  _onHomeOrEnd(homePressed) {
620
523
  this._weeks.forEach(week => {
621
524
  const dayInThisWeek = week.findIndex(item => {
622
525
  const date = _CalendarDate.default.fromTimestamp(parseInt(item.timestamp) * 1000);
623
-
624
526
  return date.getMonth() === this._calendarDate.getMonth() && date.getDate() === this._calendarDate.getDate();
625
527
  }) !== -1;
626
-
627
528
  if (dayInThisWeek) {
628
529
  // The current day is in this week
629
530
  const index = homePressed ? 1 : 7; // select the first (if Home) or last (if End) day of the week
630
-
631
531
  this._setTimestamp(parseInt(week[index].timestamp));
632
532
  }
633
533
  });
634
534
  }
535
+
635
536
  /**
636
537
  * Called from Calendar.js
637
538
  * @protected
638
539
  */
639
-
640
-
641
540
  _hasPreviousPage() {
642
541
  return !(this._calendarDate.getMonth() === this._minDate.getMonth() && this._calendarDate.getYear() === this._minDate.getYear());
643
542
  }
543
+
644
544
  /**
645
545
  * Called from Calendar.js
646
546
  * @protected
647
547
  */
648
-
649
-
650
548
  _hasNextPage() {
651
549
  return !(this._calendarDate.getMonth() === this._maxDate.getMonth() && this._calendarDate.getYear() === this._maxDate.getYear());
652
550
  }
551
+
653
552
  /**
654
553
  * Called from Calendar.js
655
554
  * Same as PageUp
656
555
  * @protected
657
556
  */
658
-
659
-
660
557
  _showPreviousPage() {
661
558
  this._modifyTimestampBy(-1, "month");
662
559
  }
560
+
663
561
  /**
664
562
  * Called from Calendar.js
665
563
  * Same as PageDown
666
564
  * @protected
667
565
  */
668
-
669
-
670
566
  _showNextPage() {
671
567
  this._modifyTimestampBy(1, "month");
672
568
  }
569
+
673
570
  /**
674
571
  * Modifies the timestamp by a certain amount of days/months/years
675
572
  * @param amount
676
573
  * @param unit
677
574
  * @private
678
575
  */
679
-
680
-
681
576
  _modifyTimestampBy(amount, unit) {
682
577
  // Modify the current timestamp
683
578
  this._safelyModifyTimestampBy(amount, unit);
579
+ this._updateSecondTimestamp();
684
580
 
685
- this._updateSecondTimestamp(); // Notify the calendar to update its timestamp
686
-
687
-
581
+ // Notify the calendar to update its timestamp
688
582
  this.fireEvent("navigate", {
689
583
  timestamp: this.timestamp
690
584
  });
691
585
  }
586
+
692
587
  /**
693
588
  * Sets the timestamp to an absolute value
694
589
  * @param value
695
590
  * @private
696
591
  */
697
-
698
-
699
592
  _setTimestamp(value) {
700
593
  this._safelySetTimestamp(value);
701
-
702
594
  this._updateSecondTimestamp();
703
-
704
595
  this.fireEvent("navigate", {
705
596
  timestamp: this.timestamp
706
597
  });
707
598
  }
599
+
708
600
  /**
709
601
  * During range selection, when the user is navigating with the keyboard, the currently focused day is considered the "second day"
710
602
  * @private
711
603
  */
712
-
713
-
714
604
  _updateSecondTimestamp() {
715
605
  if (this.selectionMode === _CalendarSelectionMode.default.Range && this.selectedDates.length === 1) {
716
606
  this._secondTimestamp = this.timestamp;
717
607
  }
718
608
  }
719
-
720
609
  get shouldHideWeekNumbers() {
721
610
  if (this._primaryCalendarType !== _CalendarType.default.Gregorian) {
722
611
  return true;
723
612
  }
724
-
725
613
  return this.hideWeekNumbers;
726
614
  }
727
-
728
615
  get hasSecondaryCalendarType() {
729
616
  return !!this.secondaryCalendarType;
730
617
  }
731
-
732
618
  _isWeekend(oDate) {
733
619
  const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
734
620
  const iWeekDay = oDate.getDay(),
735
- iWeekendStart = localeData.getWeekendStart(),
736
- iWeekendEnd = localeData.getWeekendEnd();
621
+ iWeekendStart = localeData.getWeekendStart(),
622
+ iWeekendEnd = localeData.getWeekendEnd();
737
623
  return iWeekDay >= iWeekendStart && iWeekDay <= iWeekendEnd || iWeekendEnd < iWeekendStart && (iWeekDay >= iWeekendStart || iWeekDay <= iWeekendEnd);
738
624
  }
739
-
740
625
  _isDayPressed(target) {
741
626
  const targetParent = target.parentNode;
742
627
  return target.className.indexOf("ui5-dp-item") > -1 || targetParent && targetParent.classList && targetParent.classList.contains("ui5-dp-item");
743
628
  }
744
-
745
629
  _getSecondaryDay(tempDate) {
746
630
  return new _CalendarDate.default(tempDate, this.secondaryCalendarType);
747
631
  }
748
-
749
632
  _getFirstDay() {
750
633
  let daysFromPreviousMonth;
634
+ const firstDayOfWeek = this._getFirstDayOfWeek();
751
635
 
752
- const firstDayOfWeek = this._getFirstDayOfWeek(); // determine weekday of first day in month
753
-
754
-
636
+ // determine weekday of first day in month
755
637
  const firstDay = new _CalendarDate.default(this._calendarDate, this._primaryCalendarType);
756
638
  firstDay.setDate(1);
757
639
  daysFromPreviousMonth = firstDay.getDay() - firstDayOfWeek;
758
-
759
640
  if (daysFromPreviousMonth < 0) {
760
641
  daysFromPreviousMonth = 7 + daysFromPreviousMonth;
761
642
  }
762
-
763
643
  if (daysFromPreviousMonth > 0) {
764
644
  firstDay.setDate(1 - daysFromPreviousMonth);
765
645
  }
766
-
767
646
  return firstDay;
768
647
  }
769
-
770
648
  _getFirstDayOfWeek() {
771
649
  const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
772
650
  const confFirstDayOfWeek = (0, _FormatSettings.getFirstDayOfWeek)();
773
651
  return Number.isInteger(confFirstDayOfWeek) ? confFirstDayOfWeek : localeData.getFirstDayOfWeek();
774
652
  }
775
-
776
653
  get styles() {
777
654
  return {
778
655
  wrapper: {
@@ -784,13 +661,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/locale/getLocale",
784
661
  }
785
662
  };
786
663
  }
787
-
788
664
  get ariaRoledescription() {
789
665
  return this.hasSecondaryCalendarType ? `${this._primaryCalendarType} calendar with secondary ${this.secondaryCalendarType} calendar` : `${this._primaryCalendarType} calendar`;
790
666
  }
791
-
792
667
  }
793
-
794
668
  DayPicker.define();
795
669
  var _default = DayPicker;
796
670
  _exports.default = _default;