@openui5/sap.m 1.133.0 → 1.134.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 (450) hide show
  1. package/.reuse/dep5 +0 -7
  2. package/THIRDPARTY.txt +1 -22
  3. package/package.json +4 -4
  4. package/src/sap/m/.library +1 -1
  5. package/src/sap/m/AccButton.js +1 -1
  6. package/src/sap/m/ActionListItem.js +1 -1
  7. package/src/sap/m/ActionSelect.js +1 -1
  8. package/src/sap/m/ActionSheet.js +1 -1
  9. package/src/sap/m/ActionTile.js +1 -1
  10. package/src/sap/m/ActionTileContent.js +20 -1
  11. package/src/sap/m/AdditionalTextButton.js +1 -1
  12. package/src/sap/m/App.js +1 -1
  13. package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
  14. package/src/sap/m/Avatar.js +1 -1
  15. package/src/sap/m/Bar.js +1 -1
  16. package/src/sap/m/Breadcrumbs.js +1 -1
  17. package/src/sap/m/BusyDialog.js +1 -1
  18. package/src/sap/m/BusyIndicator.js +1 -1
  19. package/src/sap/m/Button.js +2 -2
  20. package/src/sap/m/Carousel.js +1 -1
  21. package/src/sap/m/CarouselLayout.js +1 -1
  22. package/src/sap/m/CheckBox.js +1 -1
  23. package/src/sap/m/ColorPalette.js +20 -7
  24. package/src/sap/m/ColorPalettePopover.js +1 -1
  25. package/src/sap/m/Column.js +1 -1
  26. package/src/sap/m/ColumnHeaderPopover.js +1 -1
  27. package/src/sap/m/ColumnListItem.js +1 -1
  28. package/src/sap/m/ColumnPopoverActionItem.js +1 -1
  29. package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
  30. package/src/sap/m/ColumnPopoverItem.js +1 -1
  31. package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
  32. package/src/sap/m/ColumnPopoverSortItem.js +1 -1
  33. package/src/sap/m/ComboBox.js +1 -1
  34. package/src/sap/m/ComboBoxBase.js +1 -1
  35. package/src/sap/m/ComboBoxTextField.js +1 -1
  36. package/src/sap/m/ContentConfig.js +1 -1
  37. package/src/sap/m/CustomListItem.js +1 -1
  38. package/src/sap/m/CustomTile.js +1 -1
  39. package/src/sap/m/CustomTreeItem.js +1 -1
  40. package/src/sap/m/DatePicker.js +14 -6
  41. package/src/sap/m/DateRangeSelection.js +12 -23
  42. package/src/sap/m/DateTimeField.js +15 -2
  43. package/src/sap/m/DateTimeInput.js +1 -1
  44. package/src/sap/m/DateTimePicker.js +1 -1
  45. package/src/sap/m/Dialog.js +11 -25
  46. package/src/sap/m/DisplayListItem.js +1 -1
  47. package/src/sap/m/DraftIndicator.js +1 -1
  48. package/src/sap/m/DynamicDate.js +1 -1
  49. package/src/sap/m/DynamicDateOption.js +1 -1
  50. package/src/sap/m/DynamicDateRange.js +1 -1
  51. package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
  52. package/src/sap/m/ExpandableText.js +1 -1
  53. package/src/sap/m/FacetFilter.js +1 -1
  54. package/src/sap/m/FacetFilterItem.js +1 -1
  55. package/src/sap/m/FacetFilterList.js +1 -1
  56. package/src/sap/m/FeedContent.js +1 -1
  57. package/src/sap/m/FeedInput.js +1 -1
  58. package/src/sap/m/FeedListItem.js +1 -1
  59. package/src/sap/m/FeedListItemAction.js +1 -1
  60. package/src/sap/m/Fiori20Adapter.js +2 -2
  61. package/src/sap/m/FlexBox.js +24 -2
  62. package/src/sap/m/FlexBoxRenderer.js +16 -0
  63. package/src/sap/m/FlexItemData.js +1 -1
  64. package/src/sap/m/FormattedText.js +12 -3
  65. package/src/sap/m/GenericTag.js +1 -1
  66. package/src/sap/m/GenericTile.js +33 -2
  67. package/src/sap/m/GenericTileRenderer.js +1 -1
  68. package/src/sap/m/GroupHeaderListItem.js +1 -1
  69. package/src/sap/m/GrowingList.js +1 -1
  70. package/src/sap/m/HBox.js +1 -1
  71. package/src/sap/m/HeaderContainer.js +1 -1
  72. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  73. package/src/sap/m/IconTabBar.js +1 -1
  74. package/src/sap/m/IconTabBarSelectList.js +1 -1
  75. package/src/sap/m/IconTabFilter.js +1 -1
  76. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  77. package/src/sap/m/IconTabHeader.js +1 -1
  78. package/src/sap/m/IconTabSeparator.js +1 -1
  79. package/src/sap/m/IllustratedMessage.js +1 -1
  80. package/src/sap/m/Illustration.js +1 -1
  81. package/src/sap/m/Image.js +1 -1
  82. package/src/sap/m/ImageContent.js +1 -1
  83. package/src/sap/m/Input.js +1 -1
  84. package/src/sap/m/InputBase.js +1 -1
  85. package/src/sap/m/InputListItem.js +1 -1
  86. package/src/sap/m/Label.js +1 -1
  87. package/src/sap/m/LightBox.js +1 -1
  88. package/src/sap/m/LightBoxItem.js +1 -1
  89. package/src/sap/m/Link.js +1 -1
  90. package/src/sap/m/LinkTileContent.js +1 -1
  91. package/src/sap/m/List.js +1 -1
  92. package/src/sap/m/ListBase.js +5 -3
  93. package/src/sap/m/ListItemBase.js +1 -1
  94. package/src/sap/m/MaskEnabler.js +1 -1
  95. package/src/sap/m/MaskInput.js +1 -1
  96. package/src/sap/m/MaskInputRule.js +1 -1
  97. package/src/sap/m/Menu.js +1 -1
  98. package/src/sap/m/MenuButton.js +1 -1
  99. package/src/sap/m/MenuItem.js +1 -1
  100. package/src/sap/m/MenuItemGroup.js +1 -1
  101. package/src/sap/m/MenuListItem.js +1 -1
  102. package/src/sap/m/MessageItem.js +1 -1
  103. package/src/sap/m/MessageListItem.js +7 -3
  104. package/src/sap/m/MessageListItemRenderer.js +34 -0
  105. package/src/sap/m/MessagePage.js +1 -1
  106. package/src/sap/m/MessagePopover.js +1 -1
  107. package/src/sap/m/MessagePopoverItem.js +1 -1
  108. package/src/sap/m/MessageStrip.js +1 -1
  109. package/src/sap/m/MessageToast.js +1 -1
  110. package/src/sap/m/MessageView.js +22 -6
  111. package/src/sap/m/MultiComboBox.js +1 -1
  112. package/src/sap/m/MultiEditField.js +1 -1
  113. package/src/sap/m/MultiInput.js +9 -4
  114. package/src/sap/m/NavContainer.js +1 -1
  115. package/src/sap/m/NewsContent.js +1 -1
  116. package/src/sap/m/NotificationList.js +1 -1
  117. package/src/sap/m/NotificationListBase.js +1 -1
  118. package/src/sap/m/NotificationListGroup.js +1 -1
  119. package/src/sap/m/NotificationListItem.js +1 -1
  120. package/src/sap/m/NumericContent.js +1 -1
  121. package/src/sap/m/NumericInput.js +1 -1
  122. package/src/sap/m/ObjectAttribute.js +1 -1
  123. package/src/sap/m/ObjectHeader.js +1 -1
  124. package/src/sap/m/ObjectIdentifier.js +1 -1
  125. package/src/sap/m/ObjectListItem.js +1 -1
  126. package/src/sap/m/ObjectMarker.js +1 -1
  127. package/src/sap/m/ObjectNumber.js +1 -1
  128. package/src/sap/m/ObjectStatus.js +1 -1
  129. package/src/sap/m/OverflowToolbar.js +1 -1
  130. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  131. package/src/sap/m/OverflowToolbarButton.js +1 -1
  132. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  133. package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
  134. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  135. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  136. package/src/sap/m/P13nColumnsItem.js +1 -1
  137. package/src/sap/m/P13nColumnsPanel.js +1 -1
  138. package/src/sap/m/P13nConditionPanel.js +1 -1
  139. package/src/sap/m/P13nDialog.js +1 -1
  140. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  141. package/src/sap/m/P13nDimMeasurePanel.js +1 -1
  142. package/src/sap/m/P13nFilterItem.js +1 -1
  143. package/src/sap/m/P13nFilterPanel.js +1 -1
  144. package/src/sap/m/P13nGroupItem.js +1 -1
  145. package/src/sap/m/P13nGroupPanel.js +1 -1
  146. package/src/sap/m/P13nItem.js +1 -1
  147. package/src/sap/m/P13nPanel.js +1 -1
  148. package/src/sap/m/P13nSelectionItem.js +1 -1
  149. package/src/sap/m/P13nSelectionPanel.js +1 -1
  150. package/src/sap/m/P13nSortItem.js +1 -1
  151. package/src/sap/m/P13nSortPanel.js +1 -1
  152. package/src/sap/m/PDFViewer.js +1 -1
  153. package/src/sap/m/Page.js +1 -1
  154. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  155. package/src/sap/m/PagingButton.js +1 -1
  156. package/src/sap/m/Panel.js +1 -1
  157. package/src/sap/m/PlanningCalendar.js +1 -1
  158. package/src/sap/m/PlanningCalendarHeader.js +1 -1
  159. package/src/sap/m/PlanningCalendarLegend.js +1 -1
  160. package/src/sap/m/PlanningCalendarRow.js +1 -1
  161. package/src/sap/m/PlanningCalendarView.js +1 -1
  162. package/src/sap/m/Popover.js +1 -1
  163. package/src/sap/m/ProgressIndicator.js +1 -1
  164. package/src/sap/m/PullToRefresh.js +1 -1
  165. package/src/sap/m/QuickView.js +1 -1
  166. package/src/sap/m/QuickViewBase.js +1 -1
  167. package/src/sap/m/QuickViewCard.js +1 -1
  168. package/src/sap/m/QuickViewGroup.js +1 -1
  169. package/src/sap/m/QuickViewGroupElement.js +1 -1
  170. package/src/sap/m/QuickViewPage.js +1 -1
  171. package/src/sap/m/RadioButton.js +1 -1
  172. package/src/sap/m/RadioButtonGroup.js +1 -1
  173. package/src/sap/m/RangeSlider.js +1 -1
  174. package/src/sap/m/RatingIndicator.js +1 -1
  175. package/src/sap/m/ResponsivePopover.js +1 -1
  176. package/src/sap/m/ResponsiveScale.js +1 -1
  177. package/src/sap/m/ScrollBar.js +1 -1
  178. package/src/sap/m/ScrollContainer.js +1 -1
  179. package/src/sap/m/SearchField.js +1 -1
  180. package/src/sap/m/SegmentedButton.js +1 -1
  181. package/src/sap/m/SegmentedButtonItem.js +1 -1
  182. package/src/sap/m/Select.js +3 -3
  183. package/src/sap/m/SelectDialog.js +4 -2
  184. package/src/sap/m/SelectDialogBase.js +1 -1
  185. package/src/sap/m/SelectList.js +1 -1
  186. package/src/sap/m/SelectionDetails.js +1 -1
  187. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  188. package/src/sap/m/SelectionDetailsItem.js +1 -1
  189. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  190. package/src/sap/m/Shell.js +1 -1
  191. package/src/sap/m/SimpleFixFlex.js +1 -1
  192. package/src/sap/m/SinglePlanningCalendar.js +1 -1
  193. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  194. package/src/sap/m/SinglePlanningCalendarGrid.js +43 -41
  195. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +2 -1
  196. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  197. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  198. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  199. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  200. package/src/sap/m/SlideTile.js +5 -5
  201. package/src/sap/m/Slider.js +1 -1
  202. package/src/sap/m/SliderTooltip.js +1 -1
  203. package/src/sap/m/SliderTooltipBase.js +1 -1
  204. package/src/sap/m/SliderTooltipContainer.js +1 -1
  205. package/src/sap/m/SplitApp.js +1 -1
  206. package/src/sap/m/SplitButton.js +1 -1
  207. package/src/sap/m/SplitContainer.js +1 -1
  208. package/src/sap/m/StandardDynamicDateOption.js +23 -6
  209. package/src/sap/m/StandardListItem.js +1 -1
  210. package/src/sap/m/StandardTile.js +1 -1
  211. package/src/sap/m/StandardTreeItem.js +1 -1
  212. package/src/sap/m/StepInput.js +1 -1
  213. package/src/sap/m/SuggestionItem.js +1 -1
  214. package/src/sap/m/SuggestionsPopover.js +1 -1
  215. package/src/sap/m/Switch.js +1 -1
  216. package/src/sap/m/TabContainer.js +1 -1
  217. package/src/sap/m/TabContainerItem.js +1 -1
  218. package/src/sap/m/TabStrip.js +1 -1
  219. package/src/sap/m/TabStripItem.js +1 -1
  220. package/src/sap/m/Table.js +1 -1
  221. package/src/sap/m/TablePersoController.js +1 -1
  222. package/src/sap/m/TablePersoDialog.js +1 -1
  223. package/src/sap/m/TablePersoProvider.js +1 -1
  224. package/src/sap/m/TableSelectDialog.js +3 -1
  225. package/src/sap/m/Text.js +1 -1
  226. package/src/sap/m/TextArea.js +1 -1
  227. package/src/sap/m/Tile.js +1 -1
  228. package/src/sap/m/TileContainer.js +1 -1
  229. package/src/sap/m/TileContent.js +1 -1
  230. package/src/sap/m/TileInfo.js +1 -1
  231. package/src/sap/m/TimePicker.js +3 -3
  232. package/src/sap/m/TimePickerClock.js +85 -176
  233. package/src/sap/m/TimePickerClockRenderer.js +67 -63
  234. package/src/sap/m/TimePickerClocks.js +105 -49
  235. package/src/sap/m/TimePickerInputs.js +4 -1
  236. package/src/sap/m/TimePickerInternals.js +1 -1
  237. package/src/sap/m/TimePickerSlider.js +1 -1
  238. package/src/sap/m/TimePickerSliders.js +1 -1
  239. package/src/sap/m/Title.js +1 -1
  240. package/src/sap/m/TitlePropagationSupport.js +1 -1
  241. package/src/sap/m/ToggleButton.js +1 -1
  242. package/src/sap/m/Token.js +1 -1
  243. package/src/sap/m/Tokenizer.js +1 -1
  244. package/src/sap/m/Toolbar.js +38 -5
  245. package/src/sap/m/ToolbarLayoutData.js +1 -1
  246. package/src/sap/m/ToolbarSeparator.js +1 -1
  247. package/src/sap/m/ToolbarSpacer.js +1 -1
  248. package/src/sap/m/Tree.js +1 -1
  249. package/src/sap/m/TreeItemBase.js +1 -1
  250. package/src/sap/m/UploadCollection.js +1 -1
  251. package/src/sap/m/UploadCollectionItem.js +1 -1
  252. package/src/sap/m/UploadCollectionParameter.js +1 -1
  253. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  254. package/src/sap/m/VBox.js +1 -1
  255. package/src/sap/m/ValueStateHeader.js +1 -1
  256. package/src/sap/m/VariantManagement.js +4 -0
  257. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  258. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  259. package/src/sap/m/ViewSettingsDialog.js +1 -1
  260. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  261. package/src/sap/m/ViewSettingsItem.js +1 -1
  262. package/src/sap/m/VisibleItem.js +1 -1
  263. package/src/sap/m/WheelSlider.js +1 -1
  264. package/src/sap/m/WheelSliderContainer.js +1 -1
  265. package/src/sap/m/Wizard.js +1 -1
  266. package/src/sap/m/WizardProgressNavigator.js +1 -1
  267. package/src/sap/m/WizardStep.js +1 -1
  268. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  269. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  270. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  271. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  272. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
  273. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  274. package/src/sap/m/delegate/ValueStateMessage.js +0 -6
  275. package/src/sap/m/library.js +2 -2
  276. package/src/sap/m/messagebundle.properties +13 -7
  277. package/src/sap/m/messagebundle_ar.properties +11 -1
  278. package/src/sap/m/messagebundle_bg.properties +28 -18
  279. package/src/sap/m/messagebundle_ca.properties +11 -1
  280. package/src/sap/m/messagebundle_cnr.properties +12 -2
  281. package/src/sap/m/messagebundle_cs.properties +13 -3
  282. package/src/sap/m/messagebundle_cy.properties +12 -2
  283. package/src/sap/m/messagebundle_da.properties +11 -1
  284. package/src/sap/m/messagebundle_de.properties +11 -1
  285. package/src/sap/m/messagebundle_el.properties +13 -3
  286. package/src/sap/m/messagebundle_en.properties +8 -4
  287. package/src/sap/m/messagebundle_en_GB.properties +12 -2
  288. package/src/sap/m/messagebundle_en_US_saprigi.properties +10 -4
  289. package/src/sap/m/messagebundle_es.properties +12 -2
  290. package/src/sap/m/messagebundle_es_MX.properties +21 -11
  291. package/src/sap/m/messagebundle_et.properties +10 -0
  292. package/src/sap/m/messagebundle_fi.properties +11 -1
  293. package/src/sap/m/messagebundle_fr.properties +12 -2
  294. package/src/sap/m/messagebundle_fr_CA.properties +11 -1
  295. package/src/sap/m/messagebundle_hi.properties +11 -1
  296. package/src/sap/m/messagebundle_hr.properties +12 -2
  297. package/src/sap/m/messagebundle_hu.properties +13 -3
  298. package/src/sap/m/messagebundle_id.properties +12 -2
  299. package/src/sap/m/messagebundle_it.properties +12 -2
  300. package/src/sap/m/messagebundle_iw.properties +11 -1
  301. package/src/sap/m/messagebundle_ja.properties +11 -1
  302. package/src/sap/m/messagebundle_kk.properties +17 -7
  303. package/src/sap/m/messagebundle_ko.properties +12 -2
  304. package/src/sap/m/messagebundle_lt.properties +13 -3
  305. package/src/sap/m/messagebundle_lv.properties +12 -2
  306. package/src/sap/m/messagebundle_mk.properties +11 -1
  307. package/src/sap/m/messagebundle_ms.properties +12 -2
  308. package/src/sap/m/messagebundle_nl.properties +11 -1
  309. package/src/sap/m/messagebundle_no.properties +11 -1
  310. package/src/sap/m/messagebundle_pl.properties +11 -1
  311. package/src/sap/m/messagebundle_pt.properties +11 -1
  312. package/src/sap/m/messagebundle_pt_PT.properties +11 -1
  313. package/src/sap/m/messagebundle_ro.properties +11 -1
  314. package/src/sap/m/messagebundle_ru.properties +11 -1
  315. package/src/sap/m/messagebundle_sh.properties +12 -2
  316. package/src/sap/m/messagebundle_sk.properties +11 -1
  317. package/src/sap/m/messagebundle_sl.properties +19 -9
  318. package/src/sap/m/messagebundle_sr.properties +12 -2
  319. package/src/sap/m/messagebundle_sv.properties +7 -3
  320. package/src/sap/m/messagebundle_th.properties +11 -1
  321. package/src/sap/m/messagebundle_tr.properties +11 -1
  322. package/src/sap/m/messagebundle_uk.properties +11 -1
  323. package/src/sap/m/messagebundle_vi.properties +13 -3
  324. package/src/sap/m/messagebundle_zh_CN.properties +11 -1
  325. package/src/sap/m/messagebundle_zh_TW.properties +11 -1
  326. package/src/sap/m/p13n/AbstractContainer.js +2 -2
  327. package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
  328. package/src/sap/m/p13n/BasePanel.js +3 -2
  329. package/src/sap/m/p13n/Container.js +1 -1
  330. package/src/sap/m/p13n/Engine.js +13 -4
  331. package/src/sap/m/p13n/FilterController.js +1 -1
  332. package/src/sap/m/p13n/FilterPanel.js +1 -1
  333. package/src/sap/m/p13n/GroupController.js +1 -1
  334. package/src/sap/m/p13n/GroupPanel.js +1 -1
  335. package/src/sap/m/p13n/MessageStrip.js +1 -1
  336. package/src/sap/m/p13n/Popup.js +1 -1
  337. package/src/sap/m/p13n/QueryPanel.js +1 -1
  338. package/src/sap/m/p13n/SelectionController.js +12 -2
  339. package/src/sap/m/p13n/SelectionPanel.js +1 -1
  340. package/src/sap/m/p13n/SortController.js +1 -1
  341. package/src/sap/m/p13n/SortPanel.js +1 -1
  342. package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
  343. package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
  344. package/src/sap/m/p13n/modules/UIManager.js +1 -1
  345. package/src/sap/m/plugins/CellSelector.js +1 -1
  346. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  347. package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
  348. package/src/sap/m/plugins/CopyProvider.js +1 -1
  349. package/src/sap/m/plugins/DataStateIndicator.js +1 -1
  350. package/src/sap/m/plugins/PasteProvider.js +1 -1
  351. package/src/sap/m/plugins/PluginBase.js +1 -1
  352. package/src/sap/m/plugins/UploadSetwithTable.js +412 -400
  353. package/src/sap/m/semantic/AddAction.js +1 -1
  354. package/src/sap/m/semantic/CancelAction.js +1 -1
  355. package/src/sap/m/semantic/DeleteAction.js +1 -1
  356. package/src/sap/m/semantic/DetailPage.js +1 -1
  357. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  358. package/src/sap/m/semantic/EditAction.js +1 -1
  359. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  360. package/src/sap/m/semantic/FilterAction.js +1 -1
  361. package/src/sap/m/semantic/FilterSelect.js +1 -1
  362. package/src/sap/m/semantic/FlagAction.js +1 -1
  363. package/src/sap/m/semantic/ForwardAction.js +1 -1
  364. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  365. package/src/sap/m/semantic/GroupAction.js +1 -1
  366. package/src/sap/m/semantic/GroupSelect.js +1 -1
  367. package/src/sap/m/semantic/MainAction.js +1 -1
  368. package/src/sap/m/semantic/MasterPage.js +1 -1
  369. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  370. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  371. package/src/sap/m/semantic/NegativeAction.js +1 -1
  372. package/src/sap/m/semantic/OpenInAction.js +1 -1
  373. package/src/sap/m/semantic/PositiveAction.js +1 -1
  374. package/src/sap/m/semantic/PrintAction.js +1 -1
  375. package/src/sap/m/semantic/SaveAction.js +1 -1
  376. package/src/sap/m/semantic/Segment.js +1 -1
  377. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  378. package/src/sap/m/semantic/SemanticButton.js +1 -1
  379. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  380. package/src/sap/m/semantic/SemanticControl.js +1 -1
  381. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  382. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  383. package/src/sap/m/semantic/SemanticPage.js +1 -1
  384. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  385. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  386. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  387. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  388. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  389. package/src/sap/m/semantic/ShareMenu.js +1 -1
  390. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  391. package/src/sap/m/semantic/SortAction.js +1 -1
  392. package/src/sap/m/semantic/SortSelect.js +1 -1
  393. package/src/sap/m/table/ColumnWidthController.js +17 -2
  394. package/src/sap/m/table/Util.js +1 -1
  395. package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
  396. package/src/sap/m/table/columnmenu/Entry.js +1 -1
  397. package/src/sap/m/table/columnmenu/Item.js +1 -1
  398. package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
  399. package/src/sap/m/table/columnmenu/Menu.js +19 -8
  400. package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
  401. package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
  402. package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
  403. package/src/sap/m/table/columnmenu/QuickActionItem.js +3 -2
  404. package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
  405. package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
  406. package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
  407. package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
  408. package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
  409. package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
  410. package/src/sap/m/themes/base/ActionTile.less +3 -3
  411. package/src/sap/m/themes/base/GenericTile.less +18 -16
  412. package/src/sap/m/themes/base/ImageContent.less +1 -1
  413. package/src/sap/m/themes/base/MessageToast.less +3 -3
  414. package/src/sap/m/themes/base/MessageView.less +19 -3
  415. package/src/sap/m/themes/base/NumericContent.less +4 -4
  416. package/src/sap/m/themes/base/ObjectStatus.less +29 -29
  417. package/src/sap/m/themes/base/SinglePlanningCalendarMonthGrid.less +10 -2
  418. package/src/sap/m/themes/base/SplitButton.less +7 -3
  419. package/src/sap/m/themes/base/StandardTile.less +15 -15
  420. package/src/sap/m/themes/base/StandardTreeItem.less +1 -1
  421. package/src/sap/m/themes/base/StepInput.less +5 -2
  422. package/src/sap/m/themes/base/SuggestionsPopover.less +18 -16
  423. package/src/sap/m/themes/base/Switch.less +41 -98
  424. package/src/sap/m/themes/base/TabContainer.less +13 -10
  425. package/src/sap/m/themes/base/TabStrip.less +78 -46
  426. package/src/sap/m/themes/base/Table.less +53 -44
  427. package/src/sap/m/themes/base/TablePersoDialog.less +20 -20
  428. package/src/sap/m/themes/base/Text.less +22 -17
  429. package/src/sap/m/themes/base/TextArea.less +45 -17
  430. package/src/sap/m/themes/base/Tile.less +11 -15
  431. package/src/sap/m/themes/base/TileContainer.less +30 -37
  432. package/src/sap/m/themes/base/TileContent.less +2 -1
  433. package/src/sap/m/themes/base/TimePickerClock.less +231 -5
  434. package/src/sap/m/themes/base/TimePickerClocks.less +4 -0
  435. package/src/sap/m/themes/base/ToggleButton.less +40 -31
  436. package/src/sap/m/themes/base/ValueStateMessage.less +1 -0
  437. package/src/sap/m/themes/base/ViewSettingsDialog.less +30 -8
  438. package/src/sap/m/themes/base/WheelSlider.less +121 -43
  439. package/src/sap/m/themes/base/WheelSliderContainer.less +12 -5
  440. package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
  441. package/src/sap/m/upload/Column.js +1 -1
  442. package/src/sap/m/upload/FilePreviewDialog.js +5 -4
  443. package/src/sap/m/upload/FilterPanel.js +1 -0
  444. package/src/sap/m/upload/UploadItem.js +52 -1
  445. package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
  446. package/src/sap/m/upload/UploadSet.js +1 -1
  447. package/src/sap/m/upload/UploadSetItem.js +1 -1
  448. package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
  449. package/src/sap/m/upload/UploaderTableItem.js +39 -1
  450. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
@@ -86,7 +86,7 @@ function(
86
86
  * @extends sap.m.InputBase
87
87
  *
88
88
  * @author SAP SE
89
- * @version 1.133.0
89
+ * @version 1.134.0
90
90
  *
91
91
  * @constructor
92
92
  * @public
package/src/sap/m/Tile.js CHANGED
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.core.Control
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.133.0
38
+ * @version 1.134.0
39
39
  *
40
40
  * @constructor
41
41
  * @public
@@ -48,7 +48,7 @@ function(
48
48
  * @extends sap.ui.core.Control
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.133.0
51
+ * @version 1.134.0
52
52
  *
53
53
  * @constructor
54
54
  * @public
@@ -24,7 +24,7 @@ sap.ui.define(['./library', "sap/base/i18n/Localization", 'sap/ui/core/library',
24
24
  * @extends sap.ui.core.Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @since 1.34.0
29
29
  *
30
30
  * @public
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @class This element is used within the GenericTile control that generates a combination of an icon and a text to create a TileInfo
18
18
  * @extends sap.ui.core.Element
19
19
  * @author SAP SE
20
- * @version 1.133.0
20
+ * @version 1.134.0
21
21
  * @constructor
22
22
  * @public
23
23
  * @since 1.124
@@ -181,7 +181,7 @@ function(
181
181
  * @extends sap.m.DateTimeField
182
182
  *
183
183
  * @author SAP SE
184
- * @version 1.133.0
184
+ * @version 1.134.0
185
185
  *
186
186
  * @constructor
187
187
  * @public
@@ -679,6 +679,7 @@ function(
679
679
  }
680
680
 
681
681
  oClocks._setTimeValues(oDateValue, TimePickerInternals._isHoursValue24(this._$input.val(), iIndexOfHH, iIndexOfH));
682
+ oClocks.prepareForOpen();
682
683
 
683
684
  /* Mark input as active */
684
685
  this.$().addClass(InputBase.ICON_PRESSED_CSS_CLASS);
@@ -694,9 +695,9 @@ function(
694
695
  var oClocks = this._getClocks();
695
696
 
696
697
  if (oClocks) {
697
- oClocks.showFirstClock();
698
698
  oClocks._focusActiveButton();
699
699
  }
700
+
700
701
  this.fireAfterValueHelpOpen();
701
702
  };
702
703
 
@@ -708,7 +709,6 @@ function(
708
709
  */
709
710
  TimePicker.prototype.onAfterClose = function() {
710
711
  this.$().removeClass(InputBase.ICON_PRESSED_CSS_CLASS);
711
- this._getClocks().showFirstClock(); // prepare for the next opening
712
712
  this.fireAfterValueHelpClose();
713
713
  };
714
714
 
@@ -15,9 +15,7 @@ sap.ui.define([
15
15
  function(Control, Configuration, TimePickerClockRenderer, Device, ControlBehavior, jQuery) {
16
16
  "use strict";
17
17
 
18
- var ANIMATION_DURATION_MAX = 200, // total animation duration, without the delay before firing the event
19
- ANIMATION_DELAY_EVENT = 100, // delay before firing the event
20
- LONG_TOUCH_DURATION = 1000; // duration for long-touch interaction
18
+ var LONG_TOUCH_DURATION = 1000; // duration for long-touch interaction
21
19
 
22
20
  /**
23
21
  * Constructor for a new <code>TimePickerClock</code>.
@@ -30,7 +28,7 @@ sap.ui.define([
30
28
  * @extends sap.ui.core.Control
31
29
  *
32
30
  * @author SAP SE
33
- * @version 1.133.0
31
+ * @version 1.134.0
34
32
  *
35
33
  * @constructor
36
34
  * @private
@@ -45,42 +43,49 @@ sap.ui.define([
45
43
  * If set to <code>true</code>, the clock is interactive.
46
44
  */
47
45
  enabled : {type : "boolean", group : "Misc", defaultValue : true},
46
+
48
47
  /**
49
48
  * Minimum item value for the outer circle.
50
49
  */
51
50
  itemMin: {type: "int", group: "Data", defaultValue: -1},
51
+
52
52
  /**
53
53
  * Maximum item value for the outer circle.
54
54
  */
55
55
  itemMax: {type: "int", group: "Data", defaultValue: -1},
56
- /**
57
- * If set to <code>true</code>, an inner circle is displayed. The first item value of the inner circle will be itemMax + 1
58
- */
59
- innerItems: {type: "boolean", group: "Appearance", defaultValue: false},
56
+
60
57
  /**
61
58
  * Label of the clock dial - for example, 'Hours', 'Minutes', or 'Seconds'.
62
59
  */
63
60
  label: {type: "string", group: "Appearance", defaultValue: null},
61
+
64
62
  /**
65
63
  * If set to <code>true</code>, a surrounding circle with markers (dots) will be displayed
66
64
  * (for example, on the 'Minutes' clock-dial, markers represent minutes)
67
65
  */
68
66
  fractions: {type: "boolean", group: "Appearance", defaultValue: true},
67
+
69
68
  /**
70
- * If provided, this will replace the last item displayed. If there is only one (outer) circle,
71
- * the last item from outer circle will be replaced; if there is an inner circle too, the last
72
- * item of inner circle will be replaced. Usually, the last item '24' is replaced with '0'.
69
+ * If provided, this will replace the last item displayed. Usually, the last item '24' or '60' is replaced with '0'.
73
70
  * Do not replace the last item if <code>support2400</code> is set to <code>true</code>.
74
71
  */
75
72
  lastItemReplacement: {type: "int", group: "Data", defaultValue: -1},
73
+
76
74
  /**
77
75
  * Prepend with zero flag. If <code>true</code>, values less than 10 will be prepend with 0.
78
76
  */
79
77
  prependZero: {type: "boolean", group: "Appearance", defaultValue: false},
78
+
80
79
  /**
81
80
  * The currently selected value of the clock.
82
81
  */
83
82
  selectedValue: {type: "int", group: "Data", defaultValue: -1},
83
+
84
+ /**
85
+ * The currently hovered value of the clock.
86
+ */
87
+ hoveredValue: {type: "int", group: "Data", defaultValue: -1},
88
+
84
89
  /**
85
90
  * The step for displaying of one unit of items.
86
91
  * 1 means 1/60 of the circle.
@@ -88,6 +93,7 @@ sap.ui.define([
88
93
  * For hours the display step must be set to 1.
89
94
  */
90
95
  displayStep: {type: "int", group: "Data", defaultValue: 5},
96
+
91
97
  /**
92
98
  * The step for selection of items.
93
99
  * 1 means 1 unit:
@@ -95,6 +101,7 @@ sap.ui.define([
95
101
  * - if the clock displays minutes/seconds - 1 unit = 1 minute/second
96
102
  */
97
103
  valueStep: {type: "int", group: "Data", defaultValue: 1},
104
+
98
105
  /**
99
106
  * Allows to set a value of 24:00, used to indicate the end of the day.
100
107
  * Works only with HH or H formats. Don't use it together with am/pm.
@@ -110,7 +117,24 @@ sap.ui.define([
110
117
  *
111
118
  * - on both device types, if there is a keyboard attached: 24 or 00 can be typed directly.
112
119
  */
113
- support2400: {type: "boolean", group: "Misc", defaultValue: false}
120
+ support2400: {type: "boolean", group: "Misc", defaultValue: false},
121
+
122
+ /**
123
+ * When set to <code>true</code>, the clock will be displayed without the animation.
124
+ */
125
+ skipAnimation: {type: "boolean", group: "Misc", defaultValue: false},
126
+
127
+ /**
128
+ * When set to <code>true</code>, the clock will fade in from transparent to full opacity, otherwise it will be hidden.
129
+ * If the skipAnimation property is set to <code>true</code>, the clock will fade in without the animation, otherwise
130
+ * the fade in will be animated.
131
+ */
132
+ fadeIn: {type: "boolean", group: "Misc", defaultValue: false},
133
+
134
+ /**
135
+ * When set to <code>true</code>, the clock will fade out to transparent
136
+ */
137
+ fadeOut: {type: "boolean", group: "Misc", defaultValue: false}
114
138
  },
115
139
  events: {
116
140
  /**
@@ -147,8 +171,7 @@ sap.ui.define([
147
171
  */
148
172
  TimePickerClock.prototype.init = function() {
149
173
  this._onMouseWheel = this._onMouseWheel.bind(this);
150
- this._iHoveredValue = -1;
151
- this._iPrevHoveredValue = -1;
174
+ this._bFinalChange = false;
152
175
  };
153
176
 
154
177
  /**
@@ -197,7 +220,6 @@ sap.ui.define([
197
220
  this.invalidate();
198
221
  };
199
222
 
200
-
201
223
  /**
202
224
  * Value setter.
203
225
  *
@@ -206,7 +228,7 @@ sap.ui.define([
206
228
  */
207
229
  TimePickerClock.prototype.setSelectedValue = function(iValue) {
208
230
  var iReplacement = this.getLastItemReplacement(),
209
- iMaxValue = this.getItemMax() * (this.getInnerItems() ? 2 : 1);
231
+ iMaxValue = this.getItemMax();
210
232
 
211
233
  if (!this.getSupport2400()) {
212
234
  if (iValue === 0) {
@@ -218,12 +240,12 @@ sap.ui.define([
218
240
  }
219
241
 
220
242
  this.setProperty("selectedValue", iValue);
221
- this.fireChange({value: iValue, stringValue: this._getStringValue(iValue), finalChange: false});
243
+ this.fireChange({value: iValue, stringValue: this._getStringValue(iValue), finalChange: this._bFinalChange});
244
+ this._bFinalChange = false;
222
245
 
223
246
  return this;
224
247
  };
225
248
 
226
-
227
249
  /**
228
250
  * Value getter.
229
251
  *
@@ -231,10 +253,9 @@ sap.ui.define([
231
253
  */
232
254
  TimePickerClock.prototype.getSelectedValue = function() {
233
255
  var iValue = this.getProperty("selectedValue"),
234
- iReplacement = this.getLastItemReplacement(),
235
- iMaxValue = this.getItemMax() * (this.getInnerItems() ? 2 : 1);
256
+ iReplacement = this.getLastItemReplacement();
236
257
 
237
- if (this.getSupport2400() && this._get24HoursVisible() && iValue === iMaxValue && iReplacement !== -1) {
258
+ if (this.getSupport2400() && this._get24HoursVisible() && iValue === this.getItemMax() && iReplacement !== -1) {
238
259
  iValue = iReplacement;
239
260
  }
240
261
 
@@ -388,12 +409,7 @@ sap.ui.define([
388
409
  * @private
389
410
  */
390
411
  TimePickerClock.prototype._onMouseOut = function(oEvent) {
391
- var sId = this.getId(),
392
- oNumber = document.getElementById(sId + "-" + this._iHoveredValue);
393
-
394
- oNumber && oNumber.classList.remove("sapMTPCNumberHover");
395
- this._iHoveredValue = -1;
396
- this._iPrevHoveredValue = -1;
412
+ this.setHoveredValue(-1);
397
413
  };
398
414
 
399
415
  /**
@@ -405,9 +421,8 @@ sap.ui.define([
405
421
  TimePickerClock.prototype.modifyValue = function(bIncreaseValue) {
406
422
  var iSelectedValue = this.getSelectedValue(),
407
423
  iReplacementValue = this.getLastItemReplacement(),
408
- bInnerItems = this.getInnerItems(),
409
424
  iMin = this.getItemMin(),
410
- iMax = this.getItemMax() * (bInnerItems ? 2 : 1),
425
+ iMax = this.getItemMax(),
411
426
  iStep = this.getValueStep(),
412
427
  iNewSelectedValue;
413
428
 
@@ -465,7 +480,7 @@ sap.ui.define([
465
480
  */
466
481
  TimePickerClock.prototype._onTouchStart = function(oEvent) {
467
482
  this._cancelTouchOut = false;
468
- if (!this.getEnabled()) {
483
+ if (!this.getEnabled() || (oEvent.type === "mousedown" && oEvent.button !== 0) || this.getFadeOut()) {
469
484
  return;
470
485
  }
471
486
 
@@ -489,10 +504,9 @@ sap.ui.define([
489
504
  * @private
490
505
  */
491
506
  TimePickerClock.prototype._onTouchMove = function(oEvent) {
492
- var sId,
493
- iDisplayStep,
494
- oNumber;
495
-
507
+ if (this.getFadeOut()) {
508
+ return;
509
+ }
496
510
  oEvent.preventDefault();
497
511
  if (this._mouseOrTouchDown) {
498
512
  this._x = oEvent.type === "touchmove" ? oEvent.touches[0].pageX : oEvent.pageX;
@@ -513,18 +527,6 @@ sap.ui.define([
513
527
  this._x = oEvent.pageX;
514
528
  this._y = oEvent.pageY;
515
529
  this._calculatePosition(this._x, this._y);
516
- iDisplayStep = this.getDisplayStep();
517
- if (iDisplayStep > 1) {
518
- this._iHoveredValue = Math.round(this._iHoveredValue / iDisplayStep) * iDisplayStep;
519
- }
520
- if (this.getEnabled() && this._iHoveredValue !== this._iPrevHoveredValue) {
521
- sId = this.getId();
522
- oNumber = document.getElementById(sId + "-" + this._iPrevHoveredValue);
523
- oNumber && oNumber.classList.remove("sapMTPCNumberHover");
524
- this._iPrevHoveredValue = this._iHoveredValue;
525
- oNumber = document.getElementById(sId + "-" + this._iPrevHoveredValue);
526
- oNumber && oNumber.classList.add("sapMTPCNumberHover");
527
- }
528
530
  }
529
531
  };
530
532
 
@@ -535,10 +537,7 @@ sap.ui.define([
535
537
  * @private
536
538
  */
537
539
  TimePickerClock.prototype._onTouchEnd = function(oEvent) {
538
- var oAnimationMode = ControlBehavior.getAnimationMode(),
539
- bSkipAnimation = oAnimationMode === Configuration.AnimationMode.none || oAnimationMode === Configuration.AnimationMode.minimal;
540
-
541
- if (!this._mouseOrTouchDown) {
540
+ if (!this._mouseOrTouchDown || this.getFadeOut()) {
542
541
  return;
543
542
  }
544
543
 
@@ -554,7 +553,8 @@ sap.ui.define([
554
553
  }
555
554
 
556
555
  if (!this._cancelTouchOut) {
557
- this._changeValueAnimation(this._iSelectedValue, bSkipAnimation);
556
+ this._bFinalChange = true;
557
+ this.setSelectedValue(this._iSelectedValue);
558
558
  }
559
559
  };
560
560
 
@@ -584,18 +584,6 @@ sap.ui.define([
584
584
  }.bind(this), LONG_TOUCH_DURATION);
585
585
  };
586
586
 
587
- /**
588
- * Returns real maximum value of the clock items depending on existing of inner items.
589
- *
590
- * @returns {int} The real maximum value
591
- * @private
592
- */
593
- TimePickerClock.prototype._getMaxValue = function() {
594
- var iItemMax = this.getItemMax();
595
-
596
- return this.getInnerItems() ? iItemMax * 2 : iItemMax;
597
- };
598
-
599
587
  /**
600
588
  * Toggles 24 and 0 values when a clock has <code>support2400</code> property set.
601
589
  *
@@ -618,53 +606,22 @@ sap.ui.define([
618
606
  };
619
607
 
620
608
  /**
621
- * Does the animation between the old and the new value of the clock. Can be skipped with setting the second parameter to true.
609
+ * Returns the number of items in the clock.
622
610
  *
623
- * @param {int} iNewValue the new value that must be set
624
- * @param {boolean} bSkipAnimation whether to skip the animation
625
611
  * @private
626
612
  */
627
- TimePickerClock.prototype._changeValueAnimation = function(iNewValue, bSkipAnimation) {
628
- var iOldValue = this._iMovSelectedValue,
629
- bInnerItems = this.getInnerItems(),
630
- iMax = this.getItemMax() * (bInnerItems ? 2 : 1),
631
- iPath1,
632
- iPath2,
633
- iDelay,
634
- iFirstSelected = iOldValue,
635
- iLastSelected = iNewValue,
636
- iDirection = 1;
637
-
638
- if (!bSkipAnimation) {
639
- // do the animation here
640
- if (iFirstSelected < iLastSelected) {
641
- iPath1 = iLastSelected - iFirstSelected;
642
- iPath2 = iMax - iPath1;
643
- if (iPath2 < iPath1) {
644
- iFirstSelected += iMax;
645
- iDirection = -1;
646
- }
647
- } else {
648
- iPath1 = iFirstSelected - iLastSelected;
649
- iPath2 = iMax - iPath1;
650
- if (iPath2 < iPath1) {
651
- iLastSelected += iMax;
652
- } else {
653
- iDirection = -1;
654
- }
655
- }
613
+ TimePickerClock.prototype._getItemsCount = function(bForceRealCount) {
614
+ return this.getItemMax() - this.getItemMin() + 1;
615
+ };
656
616
 
657
- if (iFirstSelected === iLastSelected) {
658
- iDelay = 0;
659
- } else {
660
- iDelay = Math.ceil(ANIMATION_DURATION_MAX / Math.abs(iFirstSelected - iLastSelected));
661
- }
662
- this._animationInProgress = true;
663
- _selectNextNumber(this, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, this.getSupport2400(), this._get24HoursVisible());
664
- } else {
665
- this.setSelectedValue(iNewValue);
666
- this.fireChange({value: iNewValue, stringValue: this._getStringValue(iNewValue), finalChange: true});
667
- }
617
+ /**
618
+ * Returns the angle step for the clock.
619
+ *
620
+ * @private
621
+ */
622
+ TimePickerClock.prototype._getAngleStep = function(bForceRealAngle) {
623
+ const iItemsCount = this._getItemsCount();
624
+ return iItemsCount === 12 ? 6 : 360 / this._getItemsCount();
668
625
  };
669
626
 
670
627
  /**
@@ -673,8 +630,13 @@ sap.ui.define([
673
630
  * @private
674
631
  */
675
632
  TimePickerClock.prototype._calculateDimensions = function() {
676
- var oCover = this._getClockCoverContainerDomRef(),
677
- scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
633
+ const oCover = this._getClockCoverContainerDomRef();
634
+
635
+ if (!oCover) {
636
+ return;
637
+ }
638
+
639
+ const scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
678
640
  scrollTop = window.pageYOffset || document.documentElement.scrollTop,
679
641
  iRadius = Math.round(oCover.offsetHeight / 2),
680
642
  iDotHeight = jQuery('.sapMTPCDot').first().outerHeight(true),
@@ -687,10 +649,8 @@ sap.ui.define([
687
649
  'centerY': iRadius,
688
650
  'dotHeight': iDotHeight,
689
651
  'numberHeight': iNumberHeight,
690
- 'outerMax': iRadius,
691
- 'outerMin': iRadius - iNumberHeight,
692
- 'innerMax': iRadius - iNumberHeight - 1,
693
- 'innerMin': iRadius - iNumberHeight * 2 - 1,
652
+ 'radiusMax': iRadius,
653
+ 'radiusMin': iRadius - iNumberHeight * 1.6 - 1,
694
654
  'offsetX': oOffset.left + scrollLeft,
695
655
  'offsetY': oOffset.top + scrollTop
696
656
  };
@@ -706,19 +666,16 @@ sap.ui.define([
706
666
  TimePickerClock.prototype._calculatePosition = function(iX, iY) {
707
667
  var iItemMax = this.getItemMax(),
708
668
  iReplacement = this.getLastItemReplacement(),
709
- iStep = this.getValueStep(),
669
+ iValueStep = this.getValueStep(),
710
670
  iDx = iX - this._dimensionParameters.offsetX + 1 - this._dimensionParameters.radius,
711
671
  iDy = iY - this._dimensionParameters.offsetY + 1 - this._dimensionParameters.radius,
712
672
  iMod = iDx >= 0 ? 0 : 180,
713
673
  iAngle = (Math.atan(iDy / iDx) * 180 / Math.PI) + 90 + iMod,
714
- iAngleStep = 360 / iItemMax * iStep,
715
- bInnerItems = this.getInnerItems(),
674
+ iAngleStep = this._getAngleStep(true),
716
675
  iRadius = Math.sqrt(iDx * iDx + iDy * iDy),
717
- iFinalAngle = Math.round((iAngle === 0 ? 360 : iAngle) / iAngleStep) * iAngleStep,
718
- bIsOuter = iRadius <= this._dimensionParameters.outerMax && iRadius > (bInnerItems ? this._dimensionParameters.outerMin : this._dimensionParameters.innerMin),
719
- bIsInner = bInnerItems && iRadius <= this._dimensionParameters.innerMax && iRadius > this._dimensionParameters.innerMin,
720
- bIsOuterHover = iRadius <= this._dimensionParameters.outerMax && iRadius > this._dimensionParameters.outerMin,
721
- bIsInnerHover = bIsInner,
676
+ iFinalAngle = Math.round((iAngle === 0 ? 360 : iAngle) / iAngleStep / iValueStep) * iAngleStep * iValueStep,
677
+ bIsInActiveZone = iRadius <= this._dimensionParameters.radiusMax && iRadius > this._dimensionParameters.radiusMin,
678
+ iMultiplier = 360 / this._getItemsCount() / iAngleStep,
722
679
  bSupport2400 = this.getSupport2400(),
723
680
  bIs24HoursVisible = this._get24HoursVisible();
724
681
 
@@ -727,10 +684,10 @@ sap.ui.define([
727
684
  }
728
685
 
729
686
  // selected item calculations
730
- if (bIsInner || bIsOuter) {
731
- this._iSelectedValue = (iFinalAngle / iAngleStep) * iStep;
732
- if (bIsInner) {
733
- this._iSelectedValue += iItemMax;
687
+ if (bIsInActiveZone) {
688
+ this._iSelectedValue = Math.round((iFinalAngle / iAngleStep / iMultiplier / iValueStep)) * iValueStep;
689
+ if (this._iSelectedValue === 0 && iReplacement === -1) {
690
+ this._iSelectedValue = iItemMax;
734
691
  }
735
692
  if (bSupport2400 && !bIs24HoursVisible && this._iSelectedValue === 24) {
736
693
  this._iSelectedValue = 0;
@@ -739,16 +696,12 @@ sap.ui.define([
739
696
  this._iSelectedValue = -1;
740
697
  }
741
698
 
742
- // hover simulation calculations
743
- if (bIsInnerHover || bIsOuterHover) {
744
- this._iHoveredValue = bSupport2400 && !bIs24HoursVisible && this._iSelectedValue === 0 ? 24 : this._iSelectedValue;
745
- } else {
746
- this._iHoveredValue = -1;
747
- }
748
-
749
- if (this._iSelectedValue === this._getMaxValue() && iReplacement !== -1) {
699
+ if (this._iSelectedValue === iItemMax && iReplacement !== -1) {
750
700
  this._iSelectedValue = iReplacement;
751
701
  }
702
+
703
+ // hover simulation calculations
704
+ this.setHoveredValue(bIsInActiveZone ? this._iSelectedValue : -1);
752
705
  };
753
706
 
754
707
  /**
@@ -767,50 +720,6 @@ sap.ui.define([
767
720
  return this;
768
721
  };
769
722
 
770
- /**
771
- * Does the animation between old and new selected values.
772
- *
773
- * @param {sap.m.TimePickerClock} oClock clock object
774
- * @param {int} iFirstSelected first/current value to move from
775
- * @param {int} iLastSelected last value to move to
776
- * @param {int} iDirection direction of the animation
777
- * @param {int} iMax max clock value
778
- * @param {int} iNewValue new value
779
- * @param {int} iDelay delay of the single step
780
- * @param {boolean} bSupport2400 <code>true</code> when the clock has <code>support2400</code> property set
781
- * @param {boolean} bIs24HoursVisible is "24" visible or not
782
- */
783
- function _selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible) {
784
- var iCurrent;
785
-
786
- if (iFirstSelected === iLastSelected) {
787
- oClock._animationInProgress = false;
788
- }
789
-
790
- iCurrent = iFirstSelected > iMax ? iFirstSelected - iMax : iFirstSelected;
791
- if (bSupport2400) {
792
- if (iCurrent === 24 && !bIs24HoursVisible) {
793
- iCurrent = 0;
794
- } else if (iCurrent === 0 && bIs24HoursVisible) {
795
- iCurrent = 24;
796
- }
797
- }
798
-
799
- oClock.setSelectedValue(iCurrent);
800
-
801
- if (iFirstSelected !== iLastSelected) {
802
- iFirstSelected += iDirection;
803
- setTimeout(function() {
804
- _selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible);
805
- }, iDelay);
806
- } else {
807
- // the new value is set, fire event
808
- setTimeout(function() {
809
- oClock.fireChange({value: iNewValue, stringValue: oClock._getStringValue(iNewValue), finalChange: true});
810
- }, ANIMATION_DELAY_EVENT);
811
- }
812
- }
813
-
814
723
  return TimePickerClock;
815
724
 
816
725
  });