@openui5/sap.m 1.121.0 → 1.122.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 (441) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +4 -4
  3. package/src/sap/m/.library +1 -1
  4. package/src/sap/m/AccButton.js +1 -1
  5. package/src/sap/m/ActionListItem.js +1 -1
  6. package/src/sap/m/ActionSelect.js +1 -1
  7. package/src/sap/m/ActionSheet.js +1 -1
  8. package/src/sap/m/ActionTile.js +4 -3
  9. package/src/sap/m/ActionTileContent.js +8 -4
  10. package/src/sap/m/AdditionalTextButton.js +1 -1
  11. package/src/sap/m/App.js +1 -1
  12. package/src/sap/m/AssociativeOverflowToolbar.js +2 -2
  13. package/src/sap/m/Avatar.js +2 -2
  14. package/src/sap/m/Bar.js +1 -1
  15. package/src/sap/m/Breadcrumbs.js +1 -1
  16. package/src/sap/m/BusyDialog.js +3 -3
  17. package/src/sap/m/BusyIndicator.js +1 -1
  18. package/src/sap/m/Button.js +1 -1
  19. package/src/sap/m/Carousel.js +9 -1
  20. package/src/sap/m/CarouselLayout.js +1 -1
  21. package/src/sap/m/CheckBox.js +1 -1
  22. package/src/sap/m/ColorPalette.js +88 -16
  23. package/src/sap/m/ColorPalettePopover.js +11 -3
  24. package/src/sap/m/ColorPaletteRenderer.js +22 -5
  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 +4 -3
  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 +1 -1
  41. package/src/sap/m/DateRangeSelection.js +2 -2
  42. package/src/sap/m/DateTimeField.js +1 -1
  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 +1 -1
  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 +15 -3
  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 +21 -4
  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 +1 -1
  62. package/src/sap/m/FlexItemData.js +1 -1
  63. package/src/sap/m/FormattedText.js +1 -1
  64. package/src/sap/m/GenericTag.js +1 -1
  65. package/src/sap/m/GenericTile.js +6 -5
  66. package/src/sap/m/GroupHeaderListItem.js +1 -1
  67. package/src/sap/m/GrowingList.js +1 -1
  68. package/src/sap/m/HBox.js +1 -1
  69. package/src/sap/m/HeaderContainer.js +1 -3
  70. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  71. package/src/sap/m/IconTabBar.js +1 -1
  72. package/src/sap/m/IconTabBarSelectList.js +1 -1
  73. package/src/sap/m/IconTabFilter.js +28 -33
  74. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  75. package/src/sap/m/IconTabHeader.js +8 -1
  76. package/src/sap/m/IconTabSeparator.js +1 -1
  77. package/src/sap/m/IllustratedMessage.js +1 -1
  78. package/src/sap/m/IllustratedMessageType.js +1 -1
  79. package/src/sap/m/Illustration.js +1 -1
  80. package/src/sap/m/Image.js +1 -1
  81. package/src/sap/m/ImageContent.js +1 -1
  82. package/src/sap/m/Input.js +5 -3
  83. package/src/sap/m/InputBase.js +1 -1
  84. package/src/sap/m/InputListItem.js +1 -1
  85. package/src/sap/m/Label.js +1 -1
  86. package/src/sap/m/LightBox.js +1 -1
  87. package/src/sap/m/LightBoxItem.js +1 -1
  88. package/src/sap/m/Link.js +1 -1
  89. package/src/sap/m/LinkTileContent.js +1 -1
  90. package/src/sap/m/List.js +1 -1
  91. package/src/sap/m/ListBase.js +1 -1
  92. package/src/sap/m/ListItemBase.js +1 -1
  93. package/src/sap/m/MaskEnabler.js +1 -1
  94. package/src/sap/m/MaskInput.js +1 -1
  95. package/src/sap/m/MaskInputRule.js +1 -1
  96. package/src/sap/m/Menu.js +1 -1
  97. package/src/sap/m/MenuButton.js +1 -2
  98. package/src/sap/m/MenuItem.js +1 -1
  99. package/src/sap/m/MenuListItem.js +1 -1
  100. package/src/sap/m/MessageItem.js +1 -1
  101. package/src/sap/m/MessageListItem.js +1 -1
  102. package/src/sap/m/MessagePage.js +1 -1
  103. package/src/sap/m/MessagePopover.js +1 -1
  104. package/src/sap/m/MessagePopoverItem.js +1 -1
  105. package/src/sap/m/MessageStrip.js +1 -1
  106. package/src/sap/m/MessageToast.js +1 -1
  107. package/src/sap/m/MessageView.js +2 -2
  108. package/src/sap/m/MultiComboBox.js +1 -1
  109. package/src/sap/m/MultiEditField.js +1 -1
  110. package/src/sap/m/MultiInput.js +16 -5
  111. package/src/sap/m/NavContainer.js +1 -3
  112. package/src/sap/m/NewsContent.js +1 -1
  113. package/src/sap/m/NotificationList.js +1 -1
  114. package/src/sap/m/NotificationListBase.js +1 -1
  115. package/src/sap/m/NotificationListGroup.js +5 -10
  116. package/src/sap/m/NotificationListItem.js +1 -1
  117. package/src/sap/m/NumericContent.js +1 -1
  118. package/src/sap/m/NumericInput.js +1 -1
  119. package/src/sap/m/ObjectAttribute.js +1 -1
  120. package/src/sap/m/ObjectHeader.js +1 -1
  121. package/src/sap/m/ObjectIdentifier.js +1 -1
  122. package/src/sap/m/ObjectListItem.js +1 -1
  123. package/src/sap/m/ObjectMarker.js +1 -1
  124. package/src/sap/m/ObjectNumber.js +1 -1
  125. package/src/sap/m/ObjectStatus.js +1 -1
  126. package/src/sap/m/OverflowToolbar.js +1 -1
  127. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  128. package/src/sap/m/OverflowToolbarButton.js +1 -1
  129. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  130. package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
  131. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  132. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  133. package/src/sap/m/P13nColumnsItem.js +1 -1
  134. package/src/sap/m/P13nColumnsPanel.js +1 -1
  135. package/src/sap/m/P13nConditionPanel.js +1 -1
  136. package/src/sap/m/P13nDialog.js +1 -1
  137. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  138. package/src/sap/m/P13nDimMeasurePanel.js +1 -1
  139. package/src/sap/m/P13nFilterItem.js +1 -1
  140. package/src/sap/m/P13nFilterPanel.js +1 -1
  141. package/src/sap/m/P13nGroupItem.js +1 -1
  142. package/src/sap/m/P13nGroupPanel.js +1 -1
  143. package/src/sap/m/P13nItem.js +1 -1
  144. package/src/sap/m/P13nPanel.js +1 -1
  145. package/src/sap/m/P13nSelectionItem.js +1 -1
  146. package/src/sap/m/P13nSelectionPanel.js +1 -1
  147. package/src/sap/m/P13nSortItem.js +1 -1
  148. package/src/sap/m/P13nSortPanel.js +1 -1
  149. package/src/sap/m/PDFViewer.js +2 -2
  150. package/src/sap/m/Page.js +1 -1
  151. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  152. package/src/sap/m/PagingButton.js +1 -1
  153. package/src/sap/m/Panel.js +1 -1
  154. package/src/sap/m/PlanningCalendar.js +165 -73
  155. package/src/sap/m/PlanningCalendarHeader.js +9 -2
  156. package/src/sap/m/PlanningCalendarLegend.js +1 -1
  157. package/src/sap/m/PlanningCalendarRow.js +1 -1
  158. package/src/sap/m/PlanningCalendarView.js +1 -1
  159. package/src/sap/m/Popover.js +1 -1
  160. package/src/sap/m/ProgressIndicator.js +1 -1
  161. package/src/sap/m/PullToRefresh.js +1 -1
  162. package/src/sap/m/QuickView.js +1 -1
  163. package/src/sap/m/QuickViewBase.js +1 -1
  164. package/src/sap/m/QuickViewCard.js +1 -1
  165. package/src/sap/m/QuickViewGroup.js +1 -1
  166. package/src/sap/m/QuickViewGroupElement.js +1 -1
  167. package/src/sap/m/QuickViewPage.js +1 -1
  168. package/src/sap/m/RadioButton.js +1 -1
  169. package/src/sap/m/RadioButtonGroup.js +2 -3
  170. package/src/sap/m/RangeSlider.js +1 -1
  171. package/src/sap/m/RatingIndicator.js +1 -1
  172. package/src/sap/m/ResponsivePopover.js +1 -1
  173. package/src/sap/m/ResponsiveScale.js +1 -1
  174. package/src/sap/m/ScrollBar.js +1 -1
  175. package/src/sap/m/ScrollContainer.js +1 -1
  176. package/src/sap/m/SearchField.js +1 -1
  177. package/src/sap/m/SegmentedButton.js +1 -1
  178. package/src/sap/m/SegmentedButtonItem.js +1 -1
  179. package/src/sap/m/Select.js +1 -1
  180. package/src/sap/m/SelectDialog.js +1 -4
  181. package/src/sap/m/SelectDialogBase.js +1 -1
  182. package/src/sap/m/SelectList.js +1 -1
  183. package/src/sap/m/SelectionDetails.js +1 -1
  184. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  185. package/src/sap/m/SelectionDetailsItem.js +1 -1
  186. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  187. package/src/sap/m/Shell.js +1 -1
  188. package/src/sap/m/SimpleFixFlex.js +1 -1
  189. package/src/sap/m/SinglePlanningCalendar.js +1 -1
  190. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  191. package/src/sap/m/SinglePlanningCalendarGrid.js +15 -26
  192. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +18 -3
  193. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  194. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  195. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  196. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  197. package/src/sap/m/SlideTile.js +1 -1
  198. package/src/sap/m/Slider.js +1 -1
  199. package/src/sap/m/SliderTooltip.js +1 -1
  200. package/src/sap/m/SliderTooltipBase.js +1 -1
  201. package/src/sap/m/SliderTooltipContainer.js +1 -1
  202. package/src/sap/m/SplitApp.js +1 -1
  203. package/src/sap/m/SplitButton.js +1 -1
  204. package/src/sap/m/SplitContainer.js +1 -1
  205. package/src/sap/m/StandardDynamicDateOption.js +1 -1
  206. package/src/sap/m/StandardListItem.js +1 -1
  207. package/src/sap/m/StandardTile.js +1 -1
  208. package/src/sap/m/StandardTreeItem.js +1 -1
  209. package/src/sap/m/StepInput.js +1 -1
  210. package/src/sap/m/SuggestionItem.js +1 -1
  211. package/src/sap/m/SuggestionsPopover.js +1 -1
  212. package/src/sap/m/Switch.js +1 -1
  213. package/src/sap/m/TabContainer.js +1 -1
  214. package/src/sap/m/TabContainerItem.js +1 -1
  215. package/src/sap/m/TabStrip.js +13 -6
  216. package/src/sap/m/TabStripItem.js +1 -1
  217. package/src/sap/m/Table.js +2 -3
  218. package/src/sap/m/TablePersoController.js +1 -1
  219. package/src/sap/m/TablePersoDialog.js +1 -1
  220. package/src/sap/m/TablePersoProvider.js +1 -1
  221. package/src/sap/m/TableSelectDialog.js +1 -4
  222. package/src/sap/m/Text.js +1 -1
  223. package/src/sap/m/TextArea.js +5 -6
  224. package/src/sap/m/Tile.js +1 -1
  225. package/src/sap/m/TileAttribute.js +4 -3
  226. package/src/sap/m/TileContainer.js +1 -1
  227. package/src/sap/m/TileContent.js +1 -1
  228. package/src/sap/m/TimePicker.js +1 -1
  229. package/src/sap/m/TimePickerClock.js +1 -1
  230. package/src/sap/m/TimePickerClocks.js +1 -1
  231. package/src/sap/m/TimePickerInputs.js +1 -1
  232. package/src/sap/m/TimePickerInternals.js +1 -1
  233. package/src/sap/m/TimePickerSlider.js +1 -1
  234. package/src/sap/m/TimePickerSliders.js +1 -1
  235. package/src/sap/m/Title.js +1 -1
  236. package/src/sap/m/TitlePropagationSupport.js +1 -1
  237. package/src/sap/m/ToggleButton.js +1 -1
  238. package/src/sap/m/Token.js +1 -1
  239. package/src/sap/m/Tokenizer.js +16 -3
  240. package/src/sap/m/Toolbar.js +3 -3
  241. package/src/sap/m/ToolbarLayoutData.js +1 -1
  242. package/src/sap/m/ToolbarSeparator.js +1 -1
  243. package/src/sap/m/ToolbarSpacer.js +1 -1
  244. package/src/sap/m/Tree.js +1 -1
  245. package/src/sap/m/TreeItemBase.js +1 -1
  246. package/src/sap/m/UploadCollection.js +1 -1
  247. package/src/sap/m/UploadCollectionItem.js +1 -1
  248. package/src/sap/m/UploadCollectionParameter.js +1 -1
  249. package/src/sap/m/UploadCollectionRenderer.js +1 -1
  250. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  251. package/src/sap/m/VBox.js +1 -1
  252. package/src/sap/m/ValueStateHeader.js +2 -1
  253. package/src/sap/m/VariantItem.js +5 -1
  254. package/src/sap/m/VariantManagement.js +98 -53
  255. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  256. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  257. package/src/sap/m/ViewSettingsDialog.js +1 -1
  258. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  259. package/src/sap/m/ViewSettingsItem.js +1 -1
  260. package/src/sap/m/VisibleItem.js +1 -1
  261. package/src/sap/m/WheelSlider.js +1 -1
  262. package/src/sap/m/WheelSliderContainer.js +1 -1
  263. package/src/sap/m/Wizard.js +1 -1
  264. package/src/sap/m/WizardProgressNavigator.js +1 -1
  265. package/src/sap/m/WizardStep.js +1 -1
  266. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  267. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  268. package/src/sap/m/changeHandler/CombineButtons.js +2 -6
  269. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  270. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
  271. package/src/sap/m/changeHandler/SplitMenuButton.js +2 -6
  272. package/src/sap/m/designtime/messagebundle_mk.properties +1 -1
  273. package/src/sap/m/library.js +32 -6
  274. package/src/sap/m/messagebundle.properties +12 -3
  275. package/src/sap/m/messagebundle_ar.properties +20 -5
  276. package/src/sap/m/messagebundle_bg.properties +20 -5
  277. package/src/sap/m/messagebundle_ca.properties +21 -6
  278. package/src/sap/m/messagebundle_cnr.properties +20 -5
  279. package/src/sap/m/messagebundle_cs.properties +21 -6
  280. package/src/sap/m/messagebundle_cy.properties +21 -6
  281. package/src/sap/m/messagebundle_da.properties +25 -10
  282. package/src/sap/m/messagebundle_de.properties +24 -9
  283. package/src/sap/m/messagebundle_el.properties +38 -23
  284. package/src/sap/m/messagebundle_en.properties +15 -1136
  285. package/src/sap/m/messagebundle_en_GB.properties +21 -6
  286. package/src/sap/m/messagebundle_en_US_saprigi.properties +6 -3
  287. package/src/sap/m/messagebundle_es.properties +20 -5
  288. package/src/sap/m/messagebundle_es_MX.properties +22 -7
  289. package/src/sap/m/messagebundle_et.properties +20 -5
  290. package/src/sap/m/messagebundle_fi.properties +21 -6
  291. package/src/sap/m/messagebundle_fr.properties +21 -6
  292. package/src/sap/m/messagebundle_fr_CA.properties +23 -8
  293. package/src/sap/m/messagebundle_hi.properties +21 -6
  294. package/src/sap/m/messagebundle_hr.properties +22 -7
  295. package/src/sap/m/messagebundle_hu.properties +26 -11
  296. package/src/sap/m/messagebundle_id.properties +21 -6
  297. package/src/sap/m/messagebundle_it.properties +20 -5
  298. package/src/sap/m/messagebundle_iw.properties +21 -6
  299. package/src/sap/m/messagebundle_ja.properties +20 -5
  300. package/src/sap/m/messagebundle_kk.properties +21 -6
  301. package/src/sap/m/messagebundle_ko.properties +20 -5
  302. package/src/sap/m/messagebundle_lt.properties +21 -6
  303. package/src/sap/m/messagebundle_lv.properties +20 -5
  304. package/src/sap/m/messagebundle_mk.properties +30 -15
  305. package/src/sap/m/messagebundle_ms.properties +21 -6
  306. package/src/sap/m/messagebundle_nl.properties +20 -5
  307. package/src/sap/m/messagebundle_no.properties +20 -5
  308. package/src/sap/m/messagebundle_pl.properties +22 -7
  309. package/src/sap/m/messagebundle_pt.properties +20 -5
  310. package/src/sap/m/messagebundle_pt_PT.properties +20 -5
  311. package/src/sap/m/messagebundle_ro.properties +21 -6
  312. package/src/sap/m/messagebundle_ru.properties +20 -5
  313. package/src/sap/m/messagebundle_sh.properties +20 -5
  314. package/src/sap/m/messagebundle_sk.properties +22 -7
  315. package/src/sap/m/messagebundle_sl.properties +22 -7
  316. package/src/sap/m/messagebundle_sr.properties +20 -5
  317. package/src/sap/m/messagebundle_sv.properties +21 -6
  318. package/src/sap/m/messagebundle_th.properties +20 -5
  319. package/src/sap/m/messagebundle_tr.properties +20 -5
  320. package/src/sap/m/messagebundle_uk.properties +21 -6
  321. package/src/sap/m/messagebundle_vi.properties +21 -6
  322. package/src/sap/m/messagebundle_zh_CN.properties +20 -5
  323. package/src/sap/m/messagebundle_zh_TW.properties +21 -6
  324. package/src/sap/m/p13n/AbstractContainer.js +2 -2
  325. package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
  326. package/src/sap/m/p13n/BasePanel.js +1 -1
  327. package/src/sap/m/p13n/Container.js +1 -1
  328. package/src/sap/m/p13n/Engine.js +11 -3
  329. package/src/sap/m/p13n/FilterController.js +1 -1
  330. package/src/sap/m/p13n/FilterPanel.js +1 -1
  331. package/src/sap/m/p13n/GroupController.js +1 -1
  332. package/src/sap/m/p13n/GroupPanel.js +1 -1
  333. package/src/sap/m/p13n/Popup.js +1 -1
  334. package/src/sap/m/p13n/QueryPanel.js +7 -4
  335. package/src/sap/m/p13n/SelectionController.js +1 -1
  336. package/src/sap/m/p13n/SelectionPanel.js +1 -1
  337. package/src/sap/m/p13n/SortController.js +1 -1
  338. package/src/sap/m/p13n/SortPanel.js +1 -1
  339. package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
  340. package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
  341. package/src/sap/m/p13n/modules/UIManager.js +1 -1
  342. package/src/sap/m/plugins/CellSelector.js +615 -183
  343. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  344. package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
  345. package/src/sap/m/plugins/CopyProvider.js +2 -2
  346. package/src/sap/m/plugins/DataStateIndicator.js +1 -1
  347. package/src/sap/m/plugins/PasteProvider.js +1 -1
  348. package/src/sap/m/plugins/PluginBase.js +1 -1
  349. package/src/sap/m/semantic/AddAction.js +1 -1
  350. package/src/sap/m/semantic/CancelAction.js +1 -1
  351. package/src/sap/m/semantic/DeleteAction.js +1 -1
  352. package/src/sap/m/semantic/DetailPage.js +1 -1
  353. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  354. package/src/sap/m/semantic/EditAction.js +1 -1
  355. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  356. package/src/sap/m/semantic/FilterAction.js +1 -1
  357. package/src/sap/m/semantic/FilterSelect.js +1 -1
  358. package/src/sap/m/semantic/FlagAction.js +1 -1
  359. package/src/sap/m/semantic/ForwardAction.js +1 -1
  360. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  361. package/src/sap/m/semantic/GroupAction.js +1 -1
  362. package/src/sap/m/semantic/GroupSelect.js +1 -1
  363. package/src/sap/m/semantic/MainAction.js +1 -1
  364. package/src/sap/m/semantic/MasterPage.js +1 -1
  365. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  366. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  367. package/src/sap/m/semantic/NegativeAction.js +1 -1
  368. package/src/sap/m/semantic/OpenInAction.js +1 -1
  369. package/src/sap/m/semantic/PositiveAction.js +1 -1
  370. package/src/sap/m/semantic/PrintAction.js +1 -1
  371. package/src/sap/m/semantic/SaveAction.js +1 -1
  372. package/src/sap/m/semantic/Segment.js +1 -1
  373. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  374. package/src/sap/m/semantic/SemanticButton.js +1 -1
  375. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  376. package/src/sap/m/semantic/SemanticControl.js +1 -1
  377. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  378. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  379. package/src/sap/m/semantic/SemanticPage.js +1 -1
  380. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  381. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  382. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  383. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  384. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  385. package/src/sap/m/semantic/ShareMenu.js +1 -1
  386. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  387. package/src/sap/m/semantic/SortAction.js +1 -1
  388. package/src/sap/m/semantic/SortSelect.js +1 -1
  389. package/src/sap/m/table/ColumnWidthController.js +1 -1
  390. package/src/sap/m/table/Util.js +15 -2
  391. package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
  392. package/src/sap/m/table/columnmenu/Entry.js +1 -1
  393. package/src/sap/m/table/columnmenu/Item.js +1 -1
  394. package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
  395. package/src/sap/m/table/columnmenu/Menu.js +1 -1
  396. package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
  397. package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
  398. package/src/sap/m/table/columnmenu/QuickActionItem.js +24 -1
  399. package/src/sap/m/table/columnmenu/QuickGroup.js +3 -3
  400. package/src/sap/m/table/columnmenu/QuickGroupItem.js +2 -7
  401. package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
  402. package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
  403. package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
  404. package/src/sap/m/table/columnmenu/QuickTotalItem.js +2 -7
  405. package/src/sap/m/themes/base/CellSelector.less +9 -5
  406. package/src/sap/m/themes/base/ColorPalette.less +28 -15
  407. package/src/sap/m/themes/base/DateTimePicker.less +0 -1
  408. package/src/sap/m/themes/base/Dialog.less +1 -0
  409. package/src/sap/m/themes/base/FeedInput.less +0 -4
  410. package/src/sap/m/themes/base/GenericTile.less +7 -1
  411. package/src/sap/m/themes/base/IconTabBar.less +41 -74
  412. package/src/sap/m/themes/base/IllustratedMessage.less +29 -21
  413. package/src/sap/m/themes/base/MenuButton.less +2 -2
  414. package/src/sap/m/themes/base/MultiComboBox.less +4 -2
  415. package/src/sap/m/themes/base/ObjectMarker.less +6 -0
  416. package/src/sap/m/themes/base/Page.less +5 -0
  417. package/src/sap/m/themes/base/Panel.less +1 -0
  418. package/src/sap/m/themes/base/RadioButton.less +4 -0
  419. package/src/sap/m/themes/base/RadioButtonGroup.less +24 -2
  420. package/src/sap/m/themes/base/UploadCollection.less +0 -1
  421. package/src/sap/m/themes/base/UploadSet.less +5 -0
  422. package/src/sap/m/themes/base/VariantManagement.less +5 -0
  423. package/src/sap/m/themes/base/ViewSettingsDialog.less +2 -1
  424. package/src/sap/m/themes/base/illustrations/{sapIllus-Dot-SimpleCheckmark.svg → sapIllus-Dot-SimpleCheckMark.svg} +1 -1
  425. package/src/sap/m/upload/ActionsPlaceholder.js +1 -1
  426. package/src/sap/m/upload/Column.js +1 -1
  427. package/src/sap/m/upload/FilePreviewDialog.js +4 -3
  428. package/src/sap/m/upload/UploadSet.js +1 -1
  429. package/src/sap/m/upload/UploadSetItem.js +5 -3
  430. package/src/sap/m/upload/UploadSetRenderer.js +1 -1
  431. package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
  432. package/src/sap/m/upload/UploadSetwithTable.js +1 -1
  433. package/src/sap/m/upload/UploadSetwithTableItem.js +1 -1
  434. package/src/sap/m/upload/UploaderTableItem.js +1 -1
  435. package/src/sap/m/upload/p13n/PersManager.js +1 -1
  436. package/src/sap/m/upload/p13n/mediator/BaseMediator.js +1 -1
  437. package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +1 -1
  438. package/src/sap/m/upload/p13n/mediator/FilterMediator.js +1 -1
  439. package/src/sap/m/upload/p13n/mediator/GroupMediator.js +1 -1
  440. package/src/sap/m/upload/p13n/mediator/SortMediator.js +1 -1
  441. package/src/sap/m/upload/p13n/modules/PersPopupManager.js +1 -1
package/THIRDPARTY.txt CHANGED
@@ -461,7 +461,7 @@ License: Apache-2.0
461
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
462
462
  Contained in: lib/jsdoc/ui5/plugin.js
463
463
 
464
- Component: SAP Theming Base Content, version: 11.10.0
464
+ Component: SAP Theming Base Content, version: 11.12.0
465
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
466
466
  License: Apache-2.0
467
467
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.m",
3
- "version": "1.121.0",
3
+ "version": "1.122.0",
4
4
  "description": "OpenUI5 UI Library sap.m",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,8 +14,8 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.121.0",
18
- "@openui5/sap.ui.layout": "1.121.0",
19
- "@openui5/sap.ui.unified": "1.121.0"
17
+ "@openui5/sap.ui.core": "1.122.0",
18
+ "@openui5/sap.ui.layout": "1.122.0",
19
+ "@openui5/sap.ui.unified": "1.122.0"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.121.0</version>
9
+ <version>1.122.0</version>
10
10
 
11
11
  <documentation>The main UI5 control library, with responsive controls that can be used in touch devices as well as desktop browsers.</documentation>
12
12
 
@@ -21,7 +21,7 @@ sap.ui.define(['./Button','./AccButtonRenderer'],
21
21
  * @extends sap.m.Button
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.121.0
24
+ * @version 1.122.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -31,7 +31,7 @@ sap.ui.define(['./ListItemBase', './library', './ActionListItemRenderer'],
31
31
  * @extends sap.m.ListItemBase
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.121.0
34
+ * @version 1.122.0
35
35
  *
36
36
  * @constructor
37
37
  * @public
@@ -20,7 +20,7 @@ sap.ui.define(['./Select', "sap/ui/core/Element", 'sap/ui/core/InvisibleText', '
20
20
  * @extends sap.m.Select
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.121.0
23
+ * @version 1.122.0
24
24
  *
25
25
  * @constructor
26
26
  * @public
@@ -76,7 +76,7 @@ sap.ui.define([
76
76
  * @extends sap.ui.core.Control
77
77
  *
78
78
  * @author SAP SE
79
- * @version 1.121.0
79
+ * @version 1.122.0
80
80
  *
81
81
  * @constructor
82
82
  * @public
@@ -31,10 +31,11 @@ sap.ui.define([
31
31
  * @extends sap.m.GenericTile
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.121.0
35
- * @since 1.107.0
34
+ * @version 1.122.0
36
35
  *
37
- * @private
36
+ * @public
37
+ * @experimental since 1.122
38
+ * @since 1.122
38
39
  * @alias sap.m.ActionTile
39
40
  */
40
41
 
@@ -27,10 +27,11 @@ sap.ui.define([
27
27
  * @extends sap.m.TileContent
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.121.0
31
- * @since 1.107.0
30
+ * @version 1.122.0
31
+ * @since 1.122
32
32
  *
33
- * @private
33
+ * @public
34
+ * @experimental since 1.122
34
35
  * @alias sap.m.ActionTileContent
35
36
  */
36
37
 
@@ -38,6 +39,9 @@ sap.ui.define([
38
39
  metadata: {
39
40
  library: "sap.m",
40
41
  aggregations : {
42
+ /**
43
+ * Holds detail of an attribute used in the ActionTile.
44
+ */
41
45
  attributes: { type: "sap.m.TileAttribute", multiple: true, singularName: "attribute"}
42
46
  },
43
47
  events: {
@@ -72,7 +76,7 @@ sap.ui.define([
72
76
  *
73
77
  * @since 1.121
74
78
  */
75
- link: { type: "sap.m.link" }
79
+ link: { type: "sap.m.Link" }
76
80
  }
77
81
  }
78
82
  }
@@ -21,7 +21,7 @@ sap.ui.define(['./Button','./AdditionalTextButtonRenderer'],
21
21
  * @extends sap.m.Button
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.121.0
24
+ * @version 1.122.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
package/src/sap/m/App.js CHANGED
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @extends sap.m.NavContainer
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.121.0
52
+ * @version 1.122.0
53
53
  *
54
54
  * @constructor
55
55
  * @public
@@ -20,7 +20,7 @@ sap.ui.define(['sap/base/Log', './OverflowToolbar', './OverflowToolbarRenderer',
20
20
  * @extends sap.m.OverflowToolbar
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.121.0
23
+ * @version 1.122.0
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -83,7 +83,7 @@ sap.ui.define(['sap/base/Log', './OverflowToolbar', './OverflowToolbarRenderer',
83
83
 
84
84
  AssociativeOverflowToolbar.prototype.exit = function () {
85
85
  OverflowToolbar.prototype.exit.apply(this, arguments);
86
- return this._callToolbarMethod('destroyContent', [true]);
86
+ this._callToolbarMethod('destroyContent', [true]);
87
87
  };
88
88
 
89
89
  AssociativeOverflowToolbar.prototype.indexOfContent = function(oControl) {
@@ -85,7 +85,7 @@ sap.ui.define([
85
85
  * @extends sap.ui.core.Control
86
86
  *
87
87
  * @author SAP SE
88
- * @version 1.121.0
88
+ * @version 1.122.0
89
89
  *
90
90
  * @constructor
91
91
  * @public
@@ -768,7 +768,7 @@ sap.ui.define([
768
768
  var iAvatarWidth = $this[0].offsetWidth,
769
769
  iInitialsHolderWidth = this.$oInitialsHolder[0].offsetWidth;
770
770
 
771
- if (iInitialsHolderWidth > iAvatarWidth) {
771
+ if (iInitialsHolderWidth >= iAvatarWidth) {
772
772
  this._wideInitialsIcon();
773
773
  }
774
774
  }
package/src/sap/m/Bar.js CHANGED
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @implements sap.m.IBar
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.121.0
60
+ * @version 1.122.0
61
61
  *
62
62
  * @constructor
63
63
  * @public
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  * @implements sap.m.IBreadcrumbs, sap.m.IOverflowToolbarContent, sap.ui.core.IShrinkable
73
73
  *
74
74
  * @author SAP SE
75
- * @version 1.121.0
75
+ * @version 1.122.0
76
76
  *
77
77
  * @constructor
78
78
  * @public
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides control sap.m.BusyDialog.
8
- sap.ui.define(['./library', 'sap/ui/core/Control', 'sap/m/Dialog', 'sap/m/BusyIndicator', 'sap/m/Label', 'sap/m/Button', "sap/base/Log", 'sap/ui/core/Core', 'sap/ui/core/InvisibleText', "sap/ui/core/Lib"],
9
- function(library, Control, Dialog, BusyIndicator, Label, Button, Log, Core, InvisibleText, Library) {
8
+ sap.ui.define(['./library', 'sap/ui/core/Control', 'sap/m/Dialog', 'sap/m/BusyIndicator', 'sap/m/Label', 'sap/m/Button', "sap/base/Log", 'sap/ui/core/InvisibleText', "sap/ui/core/Lib"],
9
+ function(library, Control, Dialog, BusyIndicator, Label, Button, Log, InvisibleText, Library) {
10
10
  "use strict";
11
11
 
12
12
  // shortcut for sap.m.TitleAlignment
@@ -46,7 +46,7 @@ sap.ui.define(['./library', 'sap/ui/core/Control', 'sap/m/Dialog', 'sap/m/BusyIn
46
46
  * @extends sap.ui.core.Control
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.121.0
49
+ * @version 1.122.0
50
50
  *
51
51
  * @public
52
52
  * @alias sap.m.BusyDialog
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.core.Control
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.121.0
49
+ * @version 1.122.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  * @mixes sap.ui.core.ContextMenuSupport
99
99
  *
100
100
  * @author SAP SE
101
- * @version 1.121.0
101
+ * @version 1.122.0
102
102
  *
103
103
  * @constructor
104
104
  * @public
@@ -132,7 +132,7 @@ sap.ui.define([
132
132
  * @extends sap.ui.core.Control
133
133
  *
134
134
  * @author SAP SE
135
- * @version 1.121.0
135
+ * @version 1.122.0
136
136
  *
137
137
  * @constructor
138
138
  * @public
@@ -966,6 +966,14 @@ sap.ui.define([
966
966
  if (!this._bDragging || this._bDragCanceled || oEvent.isMarked("delayedMouseEvent")) {
967
967
  return;
968
968
  }
969
+
970
+ const sTargetTag = oEvent.target.tagName.toLowerCase();
971
+ const bIsEditable = oEvent.target.isContentEditable;
972
+
973
+ if (sTargetTag === "input" || sTargetTag === "textarea" || sTargetTag === "select" || bIsEditable) {
974
+ return;
975
+ }
976
+
969
977
  // mark the event for components that need to know if the event was handled by the carousel
970
978
  oEvent.setMarked();
971
979
 
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/base/ManagedObject", "./library"], function (ManagedObjec
17
17
  * Applies a <code>sap.m.CarouselLayout</code> to a provided DOM element or Control.
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.121.0
20
+ * @version 1.122.0
21
21
  *
22
22
  * @extends sap.ui.base.ManagedObject
23
23
  *
@@ -95,7 +95,7 @@ sap.ui.define([
95
95
  * @borrows sap.ui.core.ISemanticFormContent.getFormRenderAsControl as #getFormRenderAsControl
96
96
  *
97
97
  * @author SAP SE
98
- * @version 1.121.0
98
+ * @version 1.122.0
99
99
  *
100
100
  * @constructor
101
101
  * @public
@@ -57,6 +57,8 @@ sap.ui.define([
57
57
  // The name of the class, corresponding to a single color item
58
58
  var CSS_CLASS_SWATCH = "sapMColorPaletteSquare";
59
59
 
60
+ var CSS_CLASS_REGION = "sapMColorPaletteContent";
61
+
60
62
  // Defines the exact count of swatches per row
61
63
  var SWATCHES_PER_ROW = 5;
62
64
 
@@ -106,7 +108,7 @@ sap.ui.define([
106
108
  * To prevent this, apps using the <code>ColorPalette</code> should also load the <code>sap.ui.unified</code> library in advance.
107
109
  *
108
110
  * @extends sap.ui.core.Control
109
- * @version 1.121.0
111
+ * @version 1.122.0
110
112
  *
111
113
  * @constructor
112
114
  * @public
@@ -139,7 +141,14 @@ sap.ui.define([
139
141
  "dimgray",
140
142
  "black"
141
143
  ]
142
- }
144
+ },
145
+
146
+ /**
147
+ * The last selected color in the ColorPalette.
148
+ * @since 1.122
149
+ * @experimental Since 1.122, this property is in a beta state.
150
+ */
151
+ selectedColor: { type: "sap.ui.core.CSSColor", defaultValue: null }
143
152
  },
144
153
 
145
154
  aggregations: {
@@ -153,6 +162,8 @@ sap.ui.define([
153
162
  events: {
154
163
  /**
155
164
  * Fired when the user selects a color.
165
+ * Note: The <code>selectedColor</code> property is updated after the event is fired.
166
+ * Use the event parameter <code>value</code> to retrieve the new value for <code>selectedColor</code>.
156
167
  */
157
168
  colorSelect: {
158
169
  parameters: {
@@ -254,6 +265,12 @@ sap.ui.define([
254
265
 
255
266
  // Queue of recently used colors
256
267
  this._recentColors = [];
268
+
269
+ // If the last selected color is found in the main ColorPalette.
270
+ this._bMainRegionSelection = true;
271
+
272
+ // If "Default Color" was selected
273
+ this._bDefaultColorSelected = false;
257
274
  };
258
275
 
259
276
  ColorPalette.prototype.exit = function () {
@@ -288,7 +305,7 @@ sap.ui.define([
288
305
  * Sets a default displayMode.
289
306
  * @param {sap.ui.unified.ColorPickerDisplayMode} oDisplayMode the color
290
307
  * @private
291
- * @return {this} <code>this</code> for method chaining
308
+ * @returns {this} Reference to <code>this</code> for method chaining
292
309
  */
293
310
  ColorPalette.prototype._setDisplayMode = function (oDisplayMode) {
294
311
  var oColorPicker = this._getColorPicker();
@@ -308,16 +325,23 @@ sap.ui.define([
308
325
  };
309
326
 
310
327
  ColorPalette.prototype.ontap = function (oEvent) {
311
- var $Target = jQuery(oEvent.target),
328
+ var oTarget = oEvent.target,
312
329
  sColor,
313
- $Swatch;
330
+ oSwatch,
331
+ oRegion,
332
+ sRegion;
333
+
334
+ oSwatch = oTarget.closest("." + CSS_CLASS_SWATCH);
335
+ oRegion = oTarget.closest("." + CSS_CLASS_REGION);
314
336
 
315
- $Swatch = $Target.closest("." + CSS_CLASS_SWATCH);
316
- if (!$Swatch.length) {
337
+ if (!(oSwatch && oRegion)) {
317
338
  return;
318
339
  }
319
340
 
320
- sColor = $Swatch.attr("data-sap-ui-color");
341
+ sColor = oSwatch.getAttribute("data-sap-ui-color");
342
+ sRegion = oRegion.getAttribute("data-sap-ui-region");
343
+ this._bMainRegionSelection = sRegion === "main-colors-palette";
344
+
321
345
  this._fireColorSelect(sColor, false, oEvent);
322
346
  };
323
347
 
@@ -330,6 +354,7 @@ sap.ui.define([
330
354
  }
331
355
 
332
356
  if (oElementInfo.bIsDefaultColorButton) {
357
+ this._bMainRegionSelection = false;
333
358
  this._fireColorSelect(this._getDefaultColor(), true, oEvent);
334
359
  return;
335
360
  }
@@ -357,6 +382,10 @@ sap.ui.define([
357
382
  ColorPalette.prototype.pushToRecentColors = function (sColor) {
358
383
  var iIndexOfColor = this._recentColors.indexOf(sColor);
359
384
 
385
+ if (!sColor) {
386
+ return;
387
+ }
388
+
360
389
  if (iIndexOfColor > -1){
361
390
  this._recentColors.splice(iIndexOfColor,1);
362
391
  } else if (this._recentColors.length === 5) {
@@ -372,7 +401,7 @@ sap.ui.define([
372
401
  * Sets a selected color for the ColorPicker control.
373
402
  * @param {sap.ui.core.CSSColor} color the selected color
374
403
  * @public
375
- * @return {this} <code>this</code> for method chaining
404
+ * @returns {this} Reference to <code>this</code> for method chaining
376
405
  */
377
406
  ColorPalette.prototype.setColorPickerSelectedColor = function (color) {
378
407
  if (!CSSColor.isValid(color)) {
@@ -390,6 +419,7 @@ sap.ui.define([
390
419
  text: oLibraryResourceBundle.getText("COLOR_PALETTE_DEFAULT_COLOR"),
391
420
  visible: this._getShowDefaultColorButton(),
392
421
  press: function (oEvent) {
422
+ this._bMainRegionSelection = false;
393
423
  this._fireColorSelect(this._getDefaultColor(), true, oEvent);
394
424
  }.bind(this)
395
425
  });
@@ -404,7 +434,7 @@ sap.ui.define([
404
434
  * Sets a default color.
405
435
  * @param {sap.ui.core.CSSColor} color the color
406
436
  * @private
407
- * @return {this} <code>this</code> for method chaining
437
+ * @returns {this} Reference to <code>this</code> for method chaining
408
438
  */
409
439
  ColorPalette.prototype._setDefaultColor = function (color) {
410
440
  if (!CSSColor.isValid(color)) {
@@ -414,7 +444,6 @@ sap.ui.define([
414
444
  return this;
415
445
  };
416
446
 
417
-
418
447
  ColorPalette.prototype._getShowDefaultColorButton = function () {
419
448
  return this._bShowDefaultColorButton;
420
449
  };
@@ -494,6 +523,24 @@ sap.ui.define([
494
523
  return this.getAggregation("_moreColorsButton");
495
524
  };
496
525
 
526
+ /**
527
+ * Returns <code>true</code> if the selected color is in the main Color Palette region
528
+ * @private
529
+ * @returns {boolean} <code>true</code> if the selected color is in the main region
530
+ */
531
+ ColorPalette.prototype._isSelectedInMainRegion = function() {
532
+ return this._bMainRegionSelection;
533
+ };
534
+
535
+ /**
536
+ * Returns <code>true</code> if the selected color is in the Recent Colors region
537
+ * @private
538
+ * @returns {boolean} <code>true</code> if the selected color is in the Recent Colors region
539
+ */
540
+ ColorPalette.prototype._isSelectedInRecentColors = function() {
541
+ return !(this._bDefaultColorSelected || this._bMainRegionSelection);
542
+ };
543
+
497
544
  /**
498
545
  * Opens a color picker in a Dialog.
499
546
  * The function assumes that there is a "more colors.." button visible.
@@ -544,6 +591,7 @@ sap.ui.define([
544
591
  press: function (oEvent) {
545
592
  oDialog.close();
546
593
  if (oDialog._oColorPicker.getColorString()) {
594
+ this._bMainRegionSelection = false;
547
595
  this._fireColorSelect(oDialog._oColorPicker.getColorString(), false, oEvent);
548
596
  }
549
597
  }.bind(this)
@@ -571,6 +619,28 @@ sap.ui.define([
571
619
  oFirstSwatchElement.focus();
572
620
  };
573
621
 
622
+ /**
623
+ * Focuses the selected or first available element in the palette.
624
+ * @private
625
+ */
626
+ ColorPalette.prototype._focusSelectedElement = function () {
627
+ var oSelectedElement,
628
+ oFirstRecentSwatch = this._getAllRecentColorSwatches()[0];
629
+
630
+ if (!this.getSelectedColor() || this._bDefaultColorSelected) {
631
+ this._focusFirstElement();
632
+ return;
633
+ }
634
+
635
+ if (this._bMainRegionSelection){
636
+ oSelectedElement = this._getAllPaletteColorSwatches().find((oDomRefs) => oDomRefs.classList.contains("sapMColorPaletteSquareSelected"));
637
+ } else {
638
+ oSelectedElement = oFirstRecentSwatch;
639
+ }
640
+
641
+ oSelectedElement ? oSelectedElement.focus() : this._focusFirstElement();
642
+ };
643
+
574
644
  /**
575
645
  * Helper function to fire the event "colorSelect"
576
646
  * @param {sap.ui.core.CSSColor} color the color
@@ -580,6 +650,8 @@ sap.ui.define([
580
650
  */
581
651
  ColorPalette.prototype._fireColorSelect = function (color, defaultAction, oOriginalEvent) {
582
652
  this.fireColorSelect({value: color, defaultAction: defaultAction, _originalEvent: oOriginalEvent});
653
+ this._bDefaultColorSelected = defaultAction;
654
+ this.setSelectedColor(color);
583
655
  this.pushToRecentColors(color);
584
656
  };
585
657
 
@@ -848,7 +920,7 @@ sap.ui.define([
848
920
  * Analyzes if given DOM element is one of the <code>ColorPalette</code> artifacts (Default Color, More Colors,
849
921
  * swatch color).
850
922
  * @param {Element} oElement DOM Element
851
- * @return {{bIsDefaultColorButton: *, bIsMoreColorsButton: boolean|*, bIsASwatch: boolean|*}} result
923
+ * @returns {{bIsDefaultColorButton: *, bIsMoreColorsButton: boolean|*, bIsASwatch: boolean|*}} result
852
924
  * @private
853
925
  */
854
926
  ColorPalette.prototype._getElementInfo = function (oElement) {
@@ -923,7 +995,7 @@ sap.ui.define([
923
995
 
924
996
  /**
925
997
  * Returns the number of columns defined.
926
- * @return {*}
998
+ * @returns {int} The number of columns.
927
999
  */
928
1000
  ItemNavigationHomeEnd.prototype.getColumns = function() {
929
1001
  return this.iColumns;
@@ -1065,7 +1137,7 @@ sap.ui.define([
1065
1137
  /**
1066
1138
  * Analyzes the given item and produces information about its position.
1067
1139
  * @param {number} iIndex the item given by its position
1068
- * @return {{bIsLastItem: boolean, bIsInTheLastColumn: boolean, bNextRowExists: boolean|*, bItemSameColumnNextRowExists: boolean|*}}
1140
+ * @returns {{bIsLastItem: boolean, bIsInTheLastColumn: boolean, bNextRowExists: boolean|*, bItemSameColumnNextRowExists: boolean|*}}
1069
1141
  * @private
1070
1142
  */
1071
1143
  ItemNavigationHomeEnd.prototype._getItemInfo = function(iIndex) {
@@ -1093,7 +1165,7 @@ sap.ui.define([
1093
1165
 
1094
1166
  /**
1095
1167
  * Calculates the index of the first item in the last row.
1096
- * @return {int} the index(zero based) of the first/last item in the row.
1168
+ * @returns {int} the index(zero based) of the first/last item in the row.
1097
1169
  * @private
1098
1170
  */
1099
1171
  ItemNavigationHomeEnd.prototype._getIndexOfTheFirstItemInLastRow = function () {
@@ -1149,7 +1221,7 @@ sap.ui.define([
1149
1221
  /**
1150
1222
  * Returns a named color for given color. For example - "gold" for input "#FFB200".
1151
1223
  * @param {string} sColor the given color
1152
- * @return {string|undefined} The named color, if such can really corresponds to the input color, or undefined otherwise.
1224
+ * @returns {string|undefined} The named color, if such can really correspond to the input color, or <code>undefined</code> otherwise.
1153
1225
  */
1154
1226
  getNamedColor: function (sColor) {
1155
1227
  var sHexColor = "";
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * A thin wrapper over {@link sap.m.ColorPalette} allowing the latter to be used in a popover.
40
40
  *
41
41
  * @extends sap.ui.core.Control
42
- * @version 1.121.0
42
+ * @version 1.122.0
43
43
  *
44
44
  * @public
45
45
  * @since 1.54
@@ -81,6 +81,13 @@ sap.ui.define([
81
81
  ]
82
82
  },
83
83
 
84
+ /**
85
+ * The last selected color in the ColorPalette.
86
+ * @since 1.122
87
+ * @experimental Since 1.122, this property is in a beta state.
88
+ */
89
+ selectedColor: { type: "sap.ui.core.CSSColor", defaultValue: null },
90
+
84
91
  /**
85
92
  * Indicates if the button for default color selection is available.
86
93
  */
@@ -193,6 +200,7 @@ sap.ui.define([
193
200
  var FORWARDABLE = {
194
201
  COLOR_PALETTE_PROPS: {
195
202
  colors: "setColors",
203
+ selectedColor: "setSelectedColor",
196
204
  defaultColor: "_setDefaultColor",
197
205
  showDefaultColorButton: "_setShowDefaultColorButton",
198
206
  showMoreColorsButton: "_setShowMoreColorsButton",
@@ -230,7 +238,7 @@ sap.ui.define([
230
238
  * On table or desktop devices, the popover is positioned relative to the given <code>oControl</code>
231
239
  * parameter. On phones, it is shown full screen, the <code>oControl</code> parameter is ignored.
232
240
  *
233
- * @param {sap.ui.core.Control} oCpntrol
241
+ * @param {sap.ui.core.Control} oControl
234
242
  * When displayed on a tablet or desktop device, the <code>ColorPalettePopover</code> is positioned
235
243
  * relative to this control
236
244
  * @returns {sap.ui.core.Control}
@@ -299,7 +307,7 @@ sap.ui.define([
299
307
  showCloseButton: false,
300
308
  title: oLibraryResourceBundle.getText("COLOR_PALETTE_TITLE"),
301
309
  content: oColorPalette,
302
- afterOpen: oColorPalette._focusFirstElement.bind(oColorPalette)
310
+ afterOpen: oColorPalette._focusSelectedElement.bind(oColorPalette)
303
311
 
304
312
  }).addStyleClass("sapMColorPaletteContainer");
305
313