@openui5/sap.m 1.95.0 → 1.96.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 (462) hide show
  1. package/.reuse/dep5 +10 -5
  2. package/THIRDPARTY.txt +17 -8
  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/App.js +1 -1
  10. package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
  11. package/src/sap/m/Avatar.js +1 -1
  12. package/src/sap/m/Bar.js +1 -1
  13. package/src/sap/m/Breadcrumbs.js +1 -1
  14. package/src/sap/m/BusyDialog.js +1 -1
  15. package/src/sap/m/BusyIndicator.js +1 -1
  16. package/src/sap/m/Button.js +1 -1
  17. package/src/sap/m/Carousel.js +1 -1
  18. package/src/sap/m/CarouselLayout.js +1 -1
  19. package/src/sap/m/CheckBox.js +1 -1
  20. package/src/sap/m/ColorPalette.js +7 -11
  21. package/src/sap/m/ColorPalettePopover.js +1 -6
  22. package/src/sap/m/Column.js +6 -1
  23. package/src/sap/m/ColumnHeaderPopover.js +1 -1
  24. package/src/sap/m/ColumnListItem.js +1 -1
  25. package/src/sap/m/ColumnPopoverActionItem.js +1 -1
  26. package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
  27. package/src/sap/m/ColumnPopoverItem.js +1 -1
  28. package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
  29. package/src/sap/m/ColumnPopoverSortItem.js +1 -1
  30. package/src/sap/m/ComboBox.js +1 -1
  31. package/src/sap/m/ComboBoxBase.js +1 -1
  32. package/src/sap/m/ComboBoxTextField.js +1 -1
  33. package/src/sap/m/CustomDynamicDateOption.js +9 -1
  34. package/src/sap/m/CustomListItem.js +1 -1
  35. package/src/sap/m/CustomTile.js +1 -1
  36. package/src/sap/m/CustomTreeItem.js +1 -1
  37. package/src/sap/m/DatePicker.js +6 -9
  38. package/src/sap/m/DateRangeSelection.js +6 -9
  39. package/src/sap/m/DateTimeField.js +1 -1
  40. package/src/sap/m/DateTimeInput.js +1 -1
  41. package/src/sap/m/DateTimePicker.js +6 -9
  42. package/src/sap/m/Dialog.js +16 -37
  43. package/src/sap/m/DisplayListItem.js +1 -1
  44. package/src/sap/m/DraftIndicator.js +1 -1
  45. package/src/sap/m/DynamicDate.js +1 -1
  46. package/src/sap/m/DynamicDateOption.js +3 -2
  47. package/src/sap/m/DynamicDateRange.js +7 -4
  48. package/src/sap/m/DynamicDateUtil.js +6 -3
  49. package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
  50. package/src/sap/m/ExpandableText.js +1 -1
  51. package/src/sap/m/FacetFilter.js +1 -1
  52. package/src/sap/m/FacetFilterItem.js +1 -1
  53. package/src/sap/m/FacetFilterList.js +1 -1
  54. package/src/sap/m/FeedContent.js +1 -1
  55. package/src/sap/m/FeedInput.js +1 -1
  56. package/src/sap/m/FeedListItem.js +1 -1
  57. package/src/sap/m/FeedListItemAction.js +1 -1
  58. package/src/sap/m/Fiori20Adapter.js +2 -2
  59. package/src/sap/m/FlexBox.js +1 -1
  60. package/src/sap/m/FlexItemData.js +1 -1
  61. package/src/sap/m/FormattedText.js +1 -1
  62. package/src/sap/m/GenericTag.js +1 -1
  63. package/src/sap/m/GenericTile.js +215 -56
  64. package/src/sap/m/GenericTileRenderer.js +218 -83
  65. package/src/sap/m/GroupHeaderListItem.js +1 -1
  66. package/src/sap/m/GrowingList.js +1 -1
  67. package/src/sap/m/HBox.js +1 -1
  68. package/src/sap/m/HeaderContainer.js +1 -1
  69. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  70. package/src/sap/m/IconTabBar.js +7 -1
  71. package/src/sap/m/IconTabBarSelectList.js +1 -1
  72. package/src/sap/m/IconTabFilter.js +1 -1
  73. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  74. package/src/sap/m/IconTabHeader.js +13 -4
  75. package/src/sap/m/IconTabSeparator.js +1 -1
  76. package/src/sap/m/Image.js +1 -1
  77. package/src/sap/m/ImageContent.js +1 -1
  78. package/src/sap/m/Input.js +17 -7
  79. package/src/sap/m/InputBase.js +4 -2
  80. package/src/sap/m/InputListItem.js +1 -1
  81. package/src/sap/m/Label.js +1 -1
  82. package/src/sap/m/LightBox.js +1 -1
  83. package/src/sap/m/LightBoxItem.js +1 -1
  84. package/src/sap/m/Link.js +1 -1
  85. package/src/sap/m/List.js +1 -1
  86. package/src/sap/m/ListBase.js +1 -1
  87. package/src/sap/m/ListItemBase.js +2 -2
  88. package/src/sap/m/MaskEnabler.js +106 -4
  89. package/src/sap/m/MaskInput.js +19 -4
  90. package/src/sap/m/MaskInputRule.js +1 -1
  91. package/src/sap/m/Menu.js +8 -6
  92. package/src/sap/m/MenuButton.js +1 -1
  93. package/src/sap/m/MenuItem.js +1 -1
  94. package/src/sap/m/MenuListItem.js +1 -1
  95. package/src/sap/m/MessageItem.js +1 -1
  96. package/src/sap/m/MessageListItem.js +1 -1
  97. package/src/sap/m/MessagePage.js +1 -1
  98. package/src/sap/m/MessagePopover.js +1 -1
  99. package/src/sap/m/MessagePopoverItem.js +1 -1
  100. package/src/sap/m/MessageStrip.js +7 -3
  101. package/src/sap/m/MessageStripRenderer.js +2 -2
  102. package/src/sap/m/MessageToast.js +1 -1
  103. package/src/sap/m/MessageView.js +1 -1
  104. package/src/sap/m/MultiComboBox.js +333 -114
  105. package/src/sap/m/MultiEditField.js +1 -1
  106. package/src/sap/m/MultiInput.js +3 -3
  107. package/src/sap/m/NavContainer.js +13 -5
  108. package/src/sap/m/NewsContent.js +19 -10
  109. package/src/sap/m/NewsContentRenderer.js +1 -2
  110. package/src/sap/m/NotificationList.js +1 -1
  111. package/src/sap/m/NotificationListBase.js +1 -1
  112. package/src/sap/m/NotificationListGroup.js +1 -1
  113. package/src/sap/m/NotificationListItem.js +1 -1
  114. package/src/sap/m/NumericContent.js +1 -1
  115. package/src/sap/m/NumericContentRenderer.js +34 -17
  116. package/src/sap/m/ObjectAttribute.js +46 -5
  117. package/src/sap/m/ObjectHeader.js +1 -1
  118. package/src/sap/m/ObjectIdentifier.js +1 -1
  119. package/src/sap/m/ObjectListItem.js +1 -1
  120. package/src/sap/m/ObjectMarker.js +1 -1
  121. package/src/sap/m/ObjectNumber.js +1 -1
  122. package/src/sap/m/ObjectStatus.js +1 -1
  123. package/src/sap/m/ObjectStatusRenderer.js +4 -1
  124. package/src/sap/m/OverflowToolbar.js +3 -5
  125. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  126. package/src/sap/m/OverflowToolbarButton.js +4 -2
  127. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  128. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  129. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  130. package/src/sap/m/P13nColumnsItem.js +1 -1
  131. package/src/sap/m/P13nColumnsPanel.js +3 -3
  132. package/src/sap/m/P13nConditionPanel.js +22 -52
  133. package/src/sap/m/P13nDialog.js +1 -1
  134. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  135. package/src/sap/m/P13nDimMeasurePanel.js +3 -3
  136. package/src/sap/m/P13nFilterItem.js +1 -1
  137. package/src/sap/m/P13nFilterPanel.js +1 -3
  138. package/src/sap/m/P13nGroupItem.js +1 -1
  139. package/src/sap/m/P13nGroupPanel.js +1 -3
  140. package/src/sap/m/P13nItem.js +1 -1
  141. package/src/sap/m/P13nPanel.js +1 -1
  142. package/src/sap/m/P13nSelectionItem.js +1 -1
  143. package/src/sap/m/P13nSelectionPanel.js +1 -1
  144. package/src/sap/m/P13nSortItem.js +1 -1
  145. package/src/sap/m/P13nSortPanel.js +1 -3
  146. package/src/sap/m/PDFViewer.js +1 -1
  147. package/src/sap/m/Page.js +1 -1
  148. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  149. package/src/sap/m/PagingButton.js +1 -1
  150. package/src/sap/m/Panel.js +1 -1
  151. package/src/sap/m/PlanningCalendar.js +46 -31
  152. package/src/sap/m/PlanningCalendarHeader.js +1 -6
  153. package/src/sap/m/PlanningCalendarLegend.js +1 -6
  154. package/src/sap/m/PlanningCalendarLegendRenderer.js +0 -5
  155. package/src/sap/m/PlanningCalendarRow.js +1 -1
  156. package/src/sap/m/PlanningCalendarView.js +1 -6
  157. package/src/sap/m/Popover.js +1 -1
  158. package/src/sap/m/PopoverRenderer.js +3 -2
  159. package/src/sap/m/ProgressIndicator.js +1 -1
  160. package/src/sap/m/PullToRefresh.js +1 -1
  161. package/src/sap/m/QuickView.js +1 -1
  162. package/src/sap/m/QuickViewBase.js +1 -1
  163. package/src/sap/m/QuickViewCard.js +1 -1
  164. package/src/sap/m/QuickViewGroup.js +1 -1
  165. package/src/sap/m/QuickViewGroupElement.js +1 -1
  166. package/src/sap/m/QuickViewPage.js +1 -1
  167. package/src/sap/m/RadioButton.js +1 -1
  168. package/src/sap/m/RadioButtonGroup.js +1 -1
  169. package/src/sap/m/RangeSlider.js +1 -1
  170. package/src/sap/m/RatingIndicator.js +1 -1
  171. package/src/sap/m/ResponsivePopover.js +1 -1
  172. package/src/sap/m/ResponsiveScale.js +1 -1
  173. package/src/sap/m/ScrollBar.js +1 -1
  174. package/src/sap/m/ScrollContainer.js +1 -1
  175. package/src/sap/m/SearchField.js +2 -33
  176. package/src/sap/m/SegmentedButton.js +1 -1
  177. package/src/sap/m/SegmentedButtonItem.js +1 -1
  178. package/src/sap/m/SegmentedButtonRenderer.js +6 -0
  179. package/src/sap/m/Select.js +3 -4
  180. package/src/sap/m/SelectDialog.js +1 -1
  181. package/src/sap/m/SelectDialogBase.js +1 -1
  182. package/src/sap/m/SelectList.js +1 -1
  183. package/src/sap/m/SelectRenderer.js +10 -1
  184. package/src/sap/m/SelectionDetails.js +7 -9
  185. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  186. package/src/sap/m/SelectionDetailsItem.js +8 -4
  187. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  188. package/src/sap/m/Shell.js +1 -1
  189. package/src/sap/m/SimpleFixFlex.js +1 -1
  190. package/src/sap/m/SinglePlanningCalendar.js +7 -10
  191. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  192. package/src/sap/m/SinglePlanningCalendarGrid.js +1 -6
  193. package/src/sap/m/SinglePlanningCalendarGridRenderer.js +17 -7
  194. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -6
  195. package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +4 -6
  196. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -6
  197. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  198. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -6
  199. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -6
  200. package/src/sap/m/SlideTile.js +31 -3
  201. package/src/sap/m/SlideTileRenderer.js +9 -0
  202. package/src/sap/m/Slider.js +1 -1
  203. package/src/sap/m/SliderTooltip.js +1 -1
  204. package/src/sap/m/SliderTooltipBase.js +1 -1
  205. package/src/sap/m/SliderTooltipContainer.js +1 -1
  206. package/src/sap/m/SplitApp.js +1 -1
  207. package/src/sap/m/SplitButton.js +1 -1
  208. package/src/sap/m/SplitButtonRenderer.js +5 -1
  209. package/src/sap/m/SplitContainer.js +10 -4
  210. package/src/sap/m/StandardDynamicDateOption.js +6 -3
  211. package/src/sap/m/StandardListItem.js +11 -18
  212. package/src/sap/m/StandardTile.js +1 -1
  213. package/src/sap/m/StandardTreeItem.js +1 -1
  214. package/src/sap/m/StepInput.js +7 -9
  215. package/src/sap/m/SuggestionItem.js +1 -7
  216. package/src/sap/m/SuggestionsPopover.js +44 -1
  217. package/src/sap/m/Switch.js +9 -1
  218. package/src/sap/m/TabContainer.js +1 -1
  219. package/src/sap/m/TabContainerItem.js +1 -1
  220. package/src/sap/m/TabStrip.js +1 -1
  221. package/src/sap/m/TabStripItem.js +1 -1
  222. package/src/sap/m/Table.js +1 -1
  223. package/src/sap/m/TablePersoController.js +1 -1
  224. package/src/sap/m/TablePersoDialog.js +1 -1
  225. package/src/sap/m/TablePersoProvider.js +1 -1
  226. package/src/sap/m/TableSelectDialog.js +1 -1
  227. package/src/sap/m/Text.js +1 -1
  228. package/src/sap/m/TextArea.js +1 -1
  229. package/src/sap/m/Tile.js +1 -1
  230. package/src/sap/m/TileContainer.js +1 -1
  231. package/src/sap/m/TileContent.js +22 -4
  232. package/src/sap/m/TileContentRenderer.js +73 -5
  233. package/src/sap/m/TimePicker.js +1 -1
  234. package/src/sap/m/TimePickerClock.js +1 -1
  235. package/src/sap/m/TimePickerClocks.js +1 -1
  236. package/src/sap/m/TimePickerInputs.js +1 -1
  237. package/src/sap/m/TimePickerInternals.js +1 -1
  238. package/src/sap/m/TimePickerSlider.js +1 -1
  239. package/src/sap/m/TimePickerSliders.js +1 -1
  240. package/src/sap/m/Title.js +1 -1
  241. package/src/sap/m/TitlePropagationSupport.js +1 -1
  242. package/src/sap/m/ToggleButton.js +1 -1
  243. package/src/sap/m/Token.js +1 -1
  244. package/src/sap/m/Tokenizer.js +2 -1
  245. package/src/sap/m/Toolbar.js +1 -1
  246. package/src/sap/m/ToolbarLayoutData.js +1 -1
  247. package/src/sap/m/ToolbarSeparator.js +1 -1
  248. package/src/sap/m/ToolbarSpacer.js +1 -1
  249. package/src/sap/m/Tree.js +1 -1
  250. package/src/sap/m/TreeItemBase.js +1 -1
  251. package/src/sap/m/UploadCollection.js +1 -6
  252. package/src/sap/m/UploadCollectionItem.js +1 -1
  253. package/src/sap/m/UploadCollectionParameter.js +1 -1
  254. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  255. package/src/sap/m/VBox.js +1 -1
  256. package/src/sap/m/ValueStateHeader.js +1 -1
  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 +2 -1
  266. package/src/sap/m/WizardProgressNavigator.js +1 -1
  267. package/src/sap/m/WizardProgressNavigatorRenderer.js +3 -2
  268. package/src/sap/m/WizardStep.js +1 -1
  269. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  270. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  271. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  272. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  273. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +24 -15
  274. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  275. package/src/sap/m/delegate/DateNavigation.js +4 -5
  276. package/src/sap/m/designtime/IconTabBar.designtime.js +4 -1
  277. package/src/sap/m/designtime/MenuButton.designtime.js +3 -0
  278. package/src/sap/m/designtime/messagebundle_ar.properties +3 -3
  279. package/src/sap/m/designtime/messagebundle_bg.properties +3 -3
  280. package/src/sap/m/designtime/messagebundle_ca.properties +3 -3
  281. package/src/sap/m/designtime/messagebundle_cs.properties +3 -3
  282. package/src/sap/m/designtime/messagebundle_cy.properties +3 -3
  283. package/src/sap/m/designtime/messagebundle_da.properties +3 -3
  284. package/src/sap/m/designtime/messagebundle_de.properties +5 -5
  285. package/src/sap/m/designtime/messagebundle_el.properties +3 -3
  286. package/src/sap/m/designtime/messagebundle_en_US_saprigi.properties +6 -0
  287. package/src/sap/m/designtime/messagebundle_es.properties +3 -3
  288. package/src/sap/m/designtime/messagebundle_es_MX.properties +3 -3
  289. package/src/sap/m/designtime/messagebundle_et.properties +3 -3
  290. package/src/sap/m/designtime/messagebundle_fi.properties +3 -3
  291. package/src/sap/m/designtime/messagebundle_fr.properties +3 -3
  292. package/src/sap/m/designtime/messagebundle_fr_CA.properties +3 -3
  293. package/src/sap/m/designtime/messagebundle_hi.properties +3 -3
  294. package/src/sap/m/designtime/messagebundle_hr.properties +3 -3
  295. package/src/sap/m/designtime/messagebundle_hu.properties +3 -3
  296. package/src/sap/m/designtime/messagebundle_id.properties +3 -3
  297. package/src/sap/m/designtime/messagebundle_it.properties +3 -3
  298. package/src/sap/m/designtime/messagebundle_iw.properties +3 -3
  299. package/src/sap/m/designtime/messagebundle_ja.properties +3 -3
  300. package/src/sap/m/designtime/messagebundle_kk.properties +3 -3
  301. package/src/sap/m/designtime/messagebundle_ko.properties +3 -3
  302. package/src/sap/m/designtime/messagebundle_lt.properties +3 -3
  303. package/src/sap/m/designtime/messagebundle_lv.properties +3 -3
  304. package/src/sap/m/designtime/messagebundle_ms.properties +3 -3
  305. package/src/sap/m/designtime/messagebundle_nl.properties +3 -3
  306. package/src/sap/m/designtime/messagebundle_no.properties +3 -3
  307. package/src/sap/m/designtime/messagebundle_pl.properties +3 -3
  308. package/src/sap/m/designtime/messagebundle_pt.properties +3 -3
  309. package/src/sap/m/designtime/messagebundle_pt_PT.properties +3 -3
  310. package/src/sap/m/designtime/messagebundle_ro.properties +3 -3
  311. package/src/sap/m/designtime/messagebundle_ru.properties +3 -3
  312. package/src/sap/m/designtime/messagebundle_sh.properties +3 -3
  313. package/src/sap/m/designtime/messagebundle_sk.properties +3 -3
  314. package/src/sap/m/designtime/messagebundle_sl.properties +3 -3
  315. package/src/sap/m/designtime/messagebundle_sv.properties +3 -3
  316. package/src/sap/m/designtime/messagebundle_th.properties +3 -3
  317. package/src/sap/m/designtime/messagebundle_tr.properties +3 -3
  318. package/src/sap/m/designtime/messagebundle_uk.properties +3 -3
  319. package/src/sap/m/designtime/messagebundle_vi.properties +3 -3
  320. package/src/sap/m/designtime/messagebundle_zh_CN.properties +3 -3
  321. package/src/sap/m/designtime/messagebundle_zh_TW.properties +3 -3
  322. package/src/sap/m/flexibility/MenuButton.flexibility.js +1 -0
  323. package/src/sap/m/inputUtils/ListHelpers.js +16 -3
  324. package/src/sap/m/library.js +58 -31
  325. package/src/sap/m/messagebundle.properties +47 -3
  326. package/src/sap/m/messagebundle_ar.properties +5 -3
  327. package/src/sap/m/messagebundle_bg.properties +5 -3
  328. package/src/sap/m/messagebundle_ca.properties +5 -3
  329. package/src/sap/m/messagebundle_cs.properties +5 -3
  330. package/src/sap/m/messagebundle_cy.properties +5 -3
  331. package/src/sap/m/messagebundle_da.properties +5 -3
  332. package/src/sap/m/messagebundle_de.properties +5 -3
  333. package/src/sap/m/messagebundle_el.properties +5 -3
  334. package/src/sap/m/messagebundle_en.properties +2 -0
  335. package/src/sap/m/messagebundle_en_GB.properties +3 -1
  336. package/src/sap/m/messagebundle_en_US_sappsd.properties +17 -1
  337. package/src/sap/m/messagebundle_en_US_saprigi.properties +39 -3
  338. package/src/sap/m/messagebundle_en_US_saptrc.properties +3 -1
  339. package/src/sap/m/messagebundle_es.properties +5 -3
  340. package/src/sap/m/messagebundle_es_MX.properties +5 -3
  341. package/src/sap/m/messagebundle_et.properties +5 -3
  342. package/src/sap/m/messagebundle_fi.properties +5 -3
  343. package/src/sap/m/messagebundle_fr.properties +10 -8
  344. package/src/sap/m/messagebundle_fr_CA.properties +6 -4
  345. package/src/sap/m/messagebundle_hi.properties +5 -3
  346. package/src/sap/m/messagebundle_hr.properties +5 -3
  347. package/src/sap/m/messagebundle_hu.properties +5 -3
  348. package/src/sap/m/messagebundle_id.properties +5 -3
  349. package/src/sap/m/messagebundle_it.properties +5 -3
  350. package/src/sap/m/messagebundle_iw.properties +5 -3
  351. package/src/sap/m/messagebundle_ja.properties +5 -3
  352. package/src/sap/m/messagebundle_kk.properties +5 -3
  353. package/src/sap/m/messagebundle_ko.properties +5 -3
  354. package/src/sap/m/messagebundle_lt.properties +5 -3
  355. package/src/sap/m/messagebundle_lv.properties +5 -3
  356. package/src/sap/m/messagebundle_ms.properties +5 -3
  357. package/src/sap/m/messagebundle_nl.properties +5 -3
  358. package/src/sap/m/messagebundle_no.properties +5 -3
  359. package/src/sap/m/messagebundle_pl.properties +5 -3
  360. package/src/sap/m/messagebundle_pt.properties +5 -3
  361. package/src/sap/m/messagebundle_pt_PT.properties +5 -3
  362. package/src/sap/m/messagebundle_ro.properties +5 -3
  363. package/src/sap/m/messagebundle_ru.properties +5 -3
  364. package/src/sap/m/messagebundle_sh.properties +5 -3
  365. package/src/sap/m/messagebundle_sk.properties +5 -3
  366. package/src/sap/m/messagebundle_sl.properties +5 -3
  367. package/src/sap/m/messagebundle_sv.properties +5 -3
  368. package/src/sap/m/messagebundle_th.properties +5 -3
  369. package/src/sap/m/messagebundle_tr.properties +5 -3
  370. package/src/sap/m/messagebundle_uk.properties +5 -3
  371. package/src/sap/m/messagebundle_vi.properties +5 -3
  372. package/src/sap/m/messagebundle_zh_CN.properties +5 -3
  373. package/src/sap/m/messagebundle_zh_TW.properties +5 -3
  374. package/src/sap/m/p13n/AbstractContainer.js +243 -0
  375. package/src/sap/m/p13n/AbstractContainerItem.js +94 -0
  376. package/src/sap/m/p13n/BasePanel.js +643 -0
  377. package/src/sap/m/p13n/Container.js +239 -0
  378. package/src/sap/m/p13n/GroupPanel.js +119 -0
  379. package/src/sap/m/p13n/QueryPanel.js +312 -0
  380. package/src/sap/m/p13n/SelectionPanel.js +403 -0
  381. package/src/sap/m/p13n/SortPanel.js +139 -0
  382. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  383. package/src/sap/m/plugins/DataStateIndicator.js +1 -1
  384. package/src/sap/m/plugins/PasteProvider.js +1 -1
  385. package/src/sap/m/plugins/PluginBase.js +1 -1
  386. package/src/sap/m/routing/TargetHandler.js +9 -4
  387. package/src/sap/m/semantic/AddAction.js +1 -1
  388. package/src/sap/m/semantic/CancelAction.js +1 -1
  389. package/src/sap/m/semantic/DeleteAction.js +1 -1
  390. package/src/sap/m/semantic/DetailPage.js +1 -1
  391. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  392. package/src/sap/m/semantic/EditAction.js +1 -1
  393. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  394. package/src/sap/m/semantic/FilterAction.js +1 -1
  395. package/src/sap/m/semantic/FilterSelect.js +1 -1
  396. package/src/sap/m/semantic/FlagAction.js +1 -1
  397. package/src/sap/m/semantic/ForwardAction.js +1 -1
  398. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  399. package/src/sap/m/semantic/GroupAction.js +1 -1
  400. package/src/sap/m/semantic/GroupSelect.js +1 -1
  401. package/src/sap/m/semantic/MainAction.js +1 -1
  402. package/src/sap/m/semantic/MasterPage.js +1 -1
  403. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  404. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  405. package/src/sap/m/semantic/NegativeAction.js +1 -1
  406. package/src/sap/m/semantic/OpenInAction.js +1 -1
  407. package/src/sap/m/semantic/PositiveAction.js +1 -1
  408. package/src/sap/m/semantic/PrintAction.js +1 -1
  409. package/src/sap/m/semantic/SaveAction.js +1 -1
  410. package/src/sap/m/semantic/Segment.js +1 -1
  411. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  412. package/src/sap/m/semantic/SemanticButton.js +1 -1
  413. package/src/sap/m/semantic/SemanticConfiguration.js +3 -5
  414. package/src/sap/m/semantic/SemanticControl.js +1 -1
  415. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  416. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  417. package/src/sap/m/semantic/SemanticPage.js +1 -1
  418. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  419. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  420. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  421. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  422. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  423. package/src/sap/m/semantic/ShareMenu.js +1 -1
  424. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  425. package/src/sap/m/semantic/SortAction.js +1 -1
  426. package/src/sap/m/semantic/SortSelect.js +1 -1
  427. package/src/sap/m/table/Util.js +192 -0
  428. package/src/sap/m/themes/base/AbstractContainer.less +17 -0
  429. package/src/sap/m/themes/base/Carousel.less +37 -2
  430. package/src/sap/m/themes/base/Dialog.less +11 -5
  431. package/src/sap/m/themes/base/GenericTile.less +386 -17
  432. package/src/sap/m/themes/base/IconTabBar.less +13 -7
  433. package/src/sap/m/themes/base/IconTabBarSelectList.less +4 -2
  434. package/src/sap/m/themes/base/InputBase.less +0 -24
  435. package/src/sap/m/themes/base/Label.less +6 -0
  436. package/src/sap/m/themes/base/ListItemBase.less +4 -2
  437. package/src/sap/m/themes/base/MultiComboBox.less +17 -0
  438. package/src/sap/m/themes/base/NewsContent.less +7 -1
  439. package/src/sap/m/themes/base/NotificationListBase.less +1 -1
  440. package/src/sap/m/themes/base/NumericContent.less +87 -0
  441. package/src/sap/m/themes/base/ObjectNumber.less +10 -2
  442. package/src/sap/m/themes/base/ObjectStatus.less +5 -1
  443. package/src/sap/m/themes/base/P13nContainer.less +17 -0
  444. package/src/sap/m/themes/base/P13nDialog.less +4 -0
  445. package/src/sap/m/themes/base/SearchField.less +21 -14
  446. package/src/sap/m/themes/base/SegmentedButton.less +1 -1
  447. package/src/sap/m/themes/base/SinglePlanningCalendarGrid.less +1 -2
  448. package/src/sap/m/themes/base/SlideTile.less +15 -0
  449. package/src/sap/m/themes/base/StandardListItem.less +1 -1
  450. package/src/sap/m/themes/base/Table.less +9 -8
  451. package/src/sap/m/themes/base/Text.less +6 -0
  452. package/src/sap/m/themes/base/TileContent.less +4 -0
  453. package/src/sap/m/themes/base/Token.less +0 -3
  454. package/src/sap/m/themes/base/library.source.less +4 -0
  455. package/src/sap/m/themes/base/p13n.Container.less +17 -0
  456. package/src/sap/m/themes/base/p13n.QueryPanel.less +7 -0
  457. package/src/sap/m/themes/base/p13n.SelectionPanel.less +32 -0
  458. package/src/sap/m/themes/sap_hcb/InputBase.less +25 -0
  459. package/src/sap/m/upload/UploadSet.js +14 -18
  460. package/src/sap/m/upload/UploadSetItem.js +7 -2
  461. package/ui5.yaml +4 -1
  462. package/src/sap/m/ios7.js +0 -199
@@ -86,7 +86,7 @@ function(
86
86
  *
87
87
  * @extends sap.ui.core.Control
88
88
  * @author SAP SE
89
- * @version 1.95.0
89
+ * @version 1.96.0
90
90
  *
91
91
  * @constructor
92
92
  * @public
@@ -2138,11 +2138,16 @@ function(
2138
2138
  * @param {object} mSettings Object containing the aggregation name
2139
2139
  * @param {string} mSettings.aggregation The aggregation name to decide on which column/container the placeholder should be shown
2140
2140
  *
2141
- * @public
2141
+ * @private
2142
+ * @ui5-restricted SAPUI5 Distribution libraries only
2142
2143
  * @since 1.91
2143
2144
  */
2144
2145
  SplitContainer.prototype.showPlaceholder = function(mSettings) {
2145
- switch (mSettings.aggregation) {
2146
+ if (!sap.ui.getCore().getConfiguration().getPlaceholder()) {
2147
+ return;
2148
+ }
2149
+
2150
+ switch (mSettings && mSettings.aggregation) {
2146
2151
  case "masterPages":
2147
2152
  return this.getAggregation("_navMaster").showPlaceholder(mSettings);
2148
2153
  default:
@@ -2156,7 +2161,8 @@ function(
2156
2161
  * @param {object} mSettings Object containing the aggregation name
2157
2162
  * @param {string} mSettings.aggregation The aggregation name to decide on which column/container the placeholder should be hidden
2158
2163
  *
2159
- * @public
2164
+ * @private
2165
+ * @ui5-restricted SAP internal apps
2160
2166
  * @since 1.91
2161
2167
  */
2162
2168
  SplitContainer.prototype.hidePlaceholder = function(mSettings) {
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/Element', './DynamicDateOption', './Label', './StepI
21
21
  * @extends sap.m.DynamicDateOption
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.95.0
24
+ * @version 1.96.0
25
25
  *
26
26
  * @public
27
27
  * @alias sap.m.StandardDynamicDateOption
@@ -497,9 +497,12 @@ sap.ui.define(['sap/ui/core/Element', './DynamicDateOption', './Label', './StepI
497
497
  oDate = UniversalDateUtils.getMonthStartDate(oDate);
498
498
  return UniversalDateUtils.getRange(0, "MONTH", oDate);
499
499
  case "DATE":
500
- return [oValue.values[0], oValue.values[0]];
500
+ return UniversalDateUtils.getRange(0, "DAY", UniversalDate.getInstance(oValue.values[0]));
501
501
  case "DATERANGE":
502
- return oValue.values.slice(0);
502
+ var oStart = UniversalDate.getInstance(oValue.values[0]);
503
+ var oEnd = UniversalDate.getInstance(oValue.values[1]);
504
+
505
+ return [UniversalDateUtils.resetStartTime(oStart), UniversalDateUtils.resetEndTime(oEnd)];
503
506
  case "TODAY":
504
507
  return UniversalDateUtils.ranges.today();
505
508
  case "YESTERDAY":
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.m.ListItemBase
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.95.0
41
+ * @version 1.96.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -282,6 +282,8 @@ sap.ui.define([
282
282
  StandardListItem._themeInfo = {};
283
283
  }
284
284
 
285
+ var fBaseFontSize = parseFloat(library.BaseFontSize) || 16;
286
+
285
287
  if (!StandardListItem._themeInfo.sFontFamily || bThemeChanged) {
286
288
  StandardListItem._themeInfo.sFontFamily = ThemeParameters.get({
287
289
  name: "sapUiFontFamily"
@@ -289,33 +291,24 @@ sap.ui.define([
289
291
  }
290
292
 
291
293
  if (!StandardListItem._themeInfo.sFontStyleInfoStateInverted || bThemeChanged) {
292
- StandardListItem._themeInfo.sFontStyleInfoStateInverted = "bold " + (ThemeParameters.get({
294
+ StandardListItem._themeInfo.sFontStyleInfoStateInverted = "bold " + parseFloat(ThemeParameters.get({
293
295
  name: "sapMFontSmallSize"
294
- }) || "0.75rem") + " " + StandardListItem._themeInfo.sFontFamily;
296
+ }) || "0.75rem") * fBaseFontSize + "px " + StandardListItem._themeInfo.sFontFamily;
295
297
  }
296
298
 
297
299
  if (!StandardListItem._themeInfo.sFontStyle || bThemeChanged) {
298
- StandardListItem._themeInfo.sFontStyle = (ThemeParameters.get({
300
+ StandardListItem._themeInfo.sFontStyle = parseFloat(ThemeParameters.get({
299
301
  name: "sapMFontMediumSize"
300
- }) || "0.875rem") + " " + StandardListItem._themeInfo.sFontFamily;
301
- }
302
-
303
- if (!StandardListItem._themeInfo.iBaseFontSize || bThemeChanged) {
304
- StandardListItem._themeInfo.iBaseFontSize = parseInt(library.BaseFontSize) || 16;
302
+ }) || "0.875rem") * fBaseFontSize + "px " + StandardListItem._themeInfo.sFontFamily;
305
303
  }
306
304
 
307
- if (!StandardListItem._oCanvas) {
308
- StandardListItem._oCanvas = document.createElement("canvas");
309
- StandardListItem._oCtx = StandardListItem._oCanvas.getContext("2d");
305
+ if (!StandardListItem._oCtx) {
306
+ StandardListItem._oCtx = document.createElement("canvas").getContext("2d");
310
307
  }
311
308
 
312
- if (this.getInfoStateInverted()) {
313
- StandardListItem._oCtx.font = StandardListItem._themeInfo.sFontStyleInfoStateInverted || "";
314
- } else {
315
- StandardListItem._oCtx.font = StandardListItem._themeInfo.sFontStyle || "";
316
- }
309
+ StandardListItem._oCtx.font = StandardListItem._themeInfo[this.getInfoStateInverted() ? "sFontStyleInfoStateInverted" : "sFontStyle"];
317
310
 
318
- return Math.ceil(StandardListItem._oCtx.measureText(this.getInfo()).width) / StandardListItem._themeInfo.iBaseFontSize;
311
+ return Math.ceil(StandardListItem._oCtx.measureText(this.getInfo()).width) / fBaseFontSize;
319
312
  };
320
313
 
321
314
  /**
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.m.Tile
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.95.0
43
+ * @version 1.96.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.m.TreeItemBase
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.95.0
29
+ * @version 1.96.0
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -130,7 +130,7 @@ function(
130
130
  * @implements sap.ui.core.IFormContent
131
131
  *
132
132
  * @author SAP SE
133
- * @version 1.95.0
133
+ * @version 1.96.0
134
134
  *
135
135
  * @constructor
136
136
  * @public
@@ -1605,15 +1605,13 @@ function(
1605
1605
  }
1606
1606
  }.bind(this),
1607
1607
  oncontextmenu: function (oEvent) {
1608
- if (!Device.os.android) {
1609
- // Context menu is shown on "long-touch"
1610
- // so prevent of showing it while "long-touching" on the button
1611
- oEvent.stopImmediatePropagation(true);
1612
- if (oEvent.originalEvent && oEvent.originalEvent.cancelable) {
1613
- oEvent.preventDefault();
1614
- }
1615
- oEvent.stopPropagation();
1608
+ // Context menu is shown on "long-touch"
1609
+ // so prevent of showing it while "long-touching" on the button
1610
+ oEvent.stopImmediatePropagation(true);
1611
+ if (oEvent.originalEvent && oEvent.originalEvent.cancelable) {
1612
+ oEvent.preventDefault();
1616
1613
  }
1614
+ oEvent.stopPropagation();
1617
1615
  },
1618
1616
  ontouchend: function(oEvent) {
1619
1617
  if (Device.system.phone || Device.system.tablet) {
@@ -22,7 +22,7 @@ sap.ui.define(['./library', 'sap/ui/core/Item', 'sap/ui/core/IconPool'],
22
22
  * @extends sap.ui.core.Item
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.95.0
25
+ * @version 1.96.0
26
26
  * @since 1.34
27
27
  *
28
28
  * @constructor
@@ -147,11 +147,5 @@ sap.ui.define(['./library', 'sap/ui/core/Item', 'sap/ui/core/IconPool'],
147
147
  return this.getText();
148
148
  };
149
149
 
150
- // Suppress invalidate of the parent input field by property changes.
151
- SuggestionItem.prototype.invalidate = function() {
152
- return undefined;
153
- };
154
-
155
150
  return SuggestionItem;
156
-
157
151
  });
@@ -60,7 +60,7 @@ sap.ui.define([
60
60
  * @alias sap.m.SuggestionsPopover
61
61
  *
62
62
  * @author SAP SE
63
- * @version 1.95.0
63
+ * @version 1.96.0
64
64
  */
65
65
  var SuggestionsPopover = EventProvider.extend("sap.m.SuggestionsPopover", /** @lends sap.m.SuggestionsPopover.prototype */ {
66
66
 
@@ -443,6 +443,7 @@ sap.ui.define([
443
443
  if (oItem) {
444
444
  oItem.addStyleClass("sapMLIBFocused");
445
445
  oList.addStyleClass("sapMListFocus");
446
+ this.updateListDataAttributes(oList);
446
447
  } else if (this.getValueStateActiveState()) {
447
448
  oValueStateHeader.addStyleClass("sapMPseudoFocus");
448
449
  } else {
@@ -450,6 +451,48 @@ sap.ui.define([
450
451
  }
451
452
  };
452
453
 
454
+ /**
455
+ * Updates the data-sap-ui-* attributes of the list items.
456
+ *
457
+ * @private
458
+ * @param {sap.m.List} oList The suggestions list.
459
+ */
460
+ SuggestionsPopover.prototype.updateListDataAttributes = function (oList) {
461
+ if (!oList) {
462
+ return;
463
+ }
464
+
465
+ var aVisibleItems = oList.getVisibleItems();
466
+
467
+ if (!aVisibleItems) {
468
+ return;
469
+ }
470
+
471
+ aVisibleItems.forEach(function (oItem) {
472
+ var oItemDomRef = oItem.getDomRef();
473
+
474
+ if (oItemDomRef && oItemDomRef.hasAttribute("data-sap-ui-first-suggestion-item")) {
475
+ oItemDomRef.removeAttribute("data-sap-ui-first-suggestion-item");
476
+ }
477
+
478
+ if (oItemDomRef && oItemDomRef.hasAttribute("data-sap-ui-last-suggestion-item")) {
479
+ oItemDomRef.removeAttribute("data-sap-ui-last-suggestion-item");
480
+ }
481
+ });
482
+
483
+ if (aVisibleItems[0]) {
484
+ var oFirstVisibleItemDomRef = aVisibleItems[0].getDomRef();
485
+
486
+ oFirstVisibleItemDomRef && oFirstVisibleItemDomRef.setAttribute("data-sap-ui-first-suggestion-item", "");
487
+ }
488
+
489
+ if (aVisibleItems[aVisibleItems.length - 1]) {
490
+ var oLastVisibleItemDomRef = aVisibleItems[aVisibleItems.length - 1].getDomRef();
491
+
492
+ oLastVisibleItemDomRef && oLastVisibleItemDomRef.setAttribute("data-sap-ui-last-suggestion-item", "");
493
+ }
494
+ };
495
+
453
496
  /**
454
497
  * Handles the navigation inside the list.
455
498
  *
@@ -48,7 +48,7 @@ function(
48
48
  * @extends sap.ui.core.Control
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.95.0
51
+ * @version 1.96.0
52
52
  *
53
53
  * @constructor
54
54
  * @public
@@ -145,6 +145,11 @@ function(
145
145
  iPosition = Switch._ONPOSITION;
146
146
  }
147
147
 
148
+ // fix handle movement when the switch is shorter (no label) in some themes | BCP: 2170252080
149
+ if (iPosition > this._iNoLabelFix) {
150
+ iPosition = this._iNoLabelFix;
151
+ }
152
+
148
153
  if (this._iCurrentPosition === iPosition) {
149
154
  return;
150
155
  }
@@ -267,6 +272,9 @@ function(
267
272
 
268
273
  // add active state
269
274
  this.$("switch").addClass(CSS_CLASS + "Pressed");
275
+
276
+ // necessary for fixing handle movement when the switch is shorter (no label) in some themes | BCP: 2170252080
277
+ this._iNoLabelFix = parseInt(getComputedStyle(this.getDomRef("switch")).outlineOffset);
270
278
  };
271
279
 
272
280
  /**
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * @extends sap.ui.core.Control
67
67
  *
68
68
  * @author SAP SE
69
- * @version 1.95.0
69
+ * @version 1.96.0
70
70
  *
71
71
  * @constructor
72
72
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element',
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.95.0
26
+ * @version 1.96.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -73,7 +73,7 @@ function(
73
73
  * space is exceeded, a horizontal scrollbar appears.
74
74
  *
75
75
  * @extends sap.ui.core.Control
76
- * @version 1.95.0
76
+ * @version 1.96.0
77
77
  *
78
78
  * @constructor
79
79
  * @private
@@ -25,7 +25,7 @@ sap.ui.define(["./library", "sap/ui/core/Item", "sap/ui/base/ManagedObject", "sa
25
25
  * @extends sap.ui.core.Item
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.95.0
28
+ * @version 1.96.0
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @extends sap.m.ListBase
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.95.0
68
+ * @version 1.96.0
69
69
  *
70
70
  * @constructor
71
71
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @class Table Personalization Controller
39
39
  * @extends sap.ui.base.ManagedObject
40
40
  * @author SAP
41
- * @version 1.95.0
41
+ * @version 1.96.0
42
42
  * @alias sap.m.TablePersoController
43
43
  */
44
44
  var TablePersoController = ManagedObject.extend("sap.m.TablePersoController", /** @lends sap.m.TablePersoController */
@@ -87,7 +87,7 @@ sap.ui.define([
87
87
  * @class Table Personalization Dialog
88
88
  * @extends sap.ui.base.ManagedObject
89
89
  * @author SAP
90
- * @version 1.95.0
90
+ * @version 1.96.0
91
91
  * @alias sap.m.TablePersoDialog
92
92
  */
93
93
  var TablePersoDialog = ManagedObject.extend("sap.m.TablePersoDialog", /** @lends sap.m.TablePersoDialog */
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/base/ManagedObject', "sap/base/Log"],
21
21
  * @extends sap.ui.base.ManagedObject
22
22
  * @abstract
23
23
  * @author SAP
24
- * @version 1.95.0
24
+ * @version 1.96.0
25
25
  * @alias sap.m.TablePersoProvider
26
26
  */
27
27
  var TablePersoProvider = ManagedObject.extend("sap.m.TablePersoProvider", /** @lends sap.m.TablePersoProvider */
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  * When using the <code>sap.m.TableSelectDialog</code> in SAP Quartz themes, the breakpoints and layout paddings could be determined by the dialog's width. To enable this concept and add responsive paddings to an element of the control, you have to add the following classes depending on your use case: <code>sapUiResponsivePadding--header</code>, <code>sapUiResponsivePadding--subHeader</code>, <code>sapUiResponsivePadding--content</code>, <code>sapUiResponsivePadding--footer</code>.
99
99
  * @extends sap.m.SelectDialogBase
100
100
  * @author SAP SE
101
- * @version 1.95.0
101
+ * @version 1.96.0
102
102
  *
103
103
  * @constructor
104
104
  * @public
package/src/sap/m/Text.js CHANGED
@@ -54,7 +54,7 @@ function(library, Core, Control, coreLibrary, Device, HyphenationSupport, TextRe
54
54
  * @implements sap.ui.core.IShrinkable, sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent
55
55
  *
56
56
  * @author SAP SE
57
- * @version 1.95.0
57
+ * @version 1.96.0
58
58
  *
59
59
  * @constructor
60
60
  * @public
@@ -82,7 +82,7 @@ function(
82
82
  * @extends sap.m.InputBase
83
83
  *
84
84
  * @author SAP SE
85
- * @version 1.95.0
85
+ * @version 1.96.0
86
86
  *
87
87
  * @constructor
88
88
  * @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.95.0
38
+ * @version 1.96.0
39
39
  *
40
40
  * @constructor
41
41
  * @public
@@ -44,7 +44,7 @@ function(
44
44
  * @extends sap.ui.core.Control
45
45
  *
46
46
  * @author SAP SE
47
- * @version 1.95.0
47
+ * @version 1.96.0
48
48
  *
49
49
  * @constructor
50
50
  * @public
@@ -4,10 +4,12 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(['./library', 'sap/ui/core/Control', './TileContentRenderer'],
8
- function(library, Control, TileContentRenderer) {
7
+ sap.ui.define(['./library', 'sap/ui/core/library', 'sap/ui/core/Control', './TileContentRenderer'],
8
+ function(library, Core, Control, TileContentRenderer) {
9
9
  "use strict";
10
10
 
11
+ var Priority = Core.Priority;
12
+
11
13
  /**
12
14
  * Constructor for a new sap.m.TileContent control.
13
15
  *
@@ -18,7 +20,7 @@ sap.ui.define(['./library', 'sap/ui/core/Control', './TileContentRenderer'],
18
20
  * @extends sap.ui.core.Control
19
21
  *
20
22
  * @author SAP SE
21
- * @version 1.95.0
23
+ * @version 1.96.0
22
24
  * @since 1.34.0
23
25
  *
24
26
  * @public
@@ -54,7 +56,12 @@ sap.ui.define(['./library', 'sap/ui/core/Control', './TileContentRenderer'],
54
56
  /**
55
57
  * Frame types: 1x1, 2x1, and auto.
56
58
  */
57
- "frameType" : {type : "sap.m.FrameType", group : "Appearance", defaultValue : "Auto"}
59
+ "frameType" : {type : "sap.m.FrameType", group : "Appearance", defaultValue : "Auto"},
60
+ /**
61
+ * Adds a priority badge before the content. Works only in Generic Tile ActionMode.
62
+ * @experimental Since 1.96
63
+ */
64
+ "priority" : {type: "sap.ui.core.Priority", group: "Misc", defaultValue: Priority.None}
58
65
  },
59
66
  defaultAggregation : "content",
60
67
  aggregations : {
@@ -229,5 +236,16 @@ sap.ui.define(['./library', 'sap/ui/core/Control', './TileContentRenderer'],
229
236
  return this;
230
237
  };
231
238
 
239
+ /**
240
+ * Returns priority text from resource bundle
241
+ * @param {string} sPriority The priority value
242
+ * @returns {string} The priority text
243
+ * @private
244
+ */
245
+ TileContent.prototype._getPriorityText = function(sPriority) {
246
+ var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle('sap.m');
247
+ return oResourceBundle.getText('ACTION_PRIORITY_' + sPriority.toUpperCase());
248
+ };
249
+
232
250
  return TileContent;
233
251
  });
@@ -4,10 +4,14 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(["sap/base/security/encodeCSS"],
8
- function(encodeCSS) {
7
+ sap.ui.define(["./library", "sap/base/security/encodeCSS", "sap/m/GenericTile", "sap/ui/core/library"],
8
+ function(library, encodeCSS, GenericTile, Core) {
9
9
  "use strict";
10
10
 
11
+ var GenericTileMode = library.GenericTileMode,
12
+ FrameType = library.FrameType,
13
+ Priority = Core.Priority;
14
+
11
15
  /**
12
16
  * TileContent renderer.
13
17
  * @namespace
@@ -57,8 +61,41 @@ sap.ui.define(["sap/base/security/encodeCSS"],
57
61
  return;
58
62
  }
59
63
 
60
- var oContent = oControl.getContent();
64
+ var oContent = oControl.getContent(),
65
+ oPriority = oControl.getPriority(),
66
+ oTile = oControl.getParent(),
67
+ bIsActionMode = oTile instanceof GenericTile && oTile.getMode() === GenericTileMode.ActionMode && oTile.getFrameType() === FrameType.TwoByOne,
68
+ bRenderPriority = bIsActionMode && oPriority && oPriority !== Priority.None;
69
+
61
70
  if (oContent) {
71
+ if (bRenderPriority) {
72
+ oRm.openStart("div", oControl.getId() + "-content-container");
73
+ oRm.class("sapMTileContainer");
74
+ oRm.openEnd();
75
+ //Priority Container
76
+ oRm.openStart("div", oControl.getId() + "-priority");
77
+ oRm.class("sapMTilePriority");
78
+ oRm.class(oPriority);
79
+ oRm.openEnd();
80
+ //Inner Container
81
+ oRm.openStart("div", oControl.getId() + "-priority-content");
82
+ oRm.class("sapMTilePriorityCnt");
83
+ oRm.openEnd();
84
+ //Border
85
+ oRm.openStart("div", oControl.getId() + "-priority-border");
86
+ oRm.class("sapMTilePriorityBorder");
87
+ oRm.openEnd();
88
+ oRm.close("div");
89
+ //Value
90
+ oRm.openStart("span", oControl.getId() + "-priority-value");
91
+ oRm.class("sapMTilePriorityValue");
92
+ oRm.openEnd();
93
+ oRm.text(oControl._getPriorityText(oPriority));
94
+ oRm.close("span");
95
+ oRm.close("div");
96
+ oRm.close("div");
97
+ }
98
+
62
99
  oRm.openStart("div", oControl.getId() + "-content");
63
100
  oRm.class("sapMTileCntContent");
64
101
  oRm.openEnd();
@@ -67,6 +104,10 @@ sap.ui.define(["sap/base/security/encodeCSS"],
67
104
  }
68
105
  oRm.renderControl(oContent);
69
106
  oRm.close("div");
107
+
108
+ if (bRenderPriority) {
109
+ oRm.close("div");
110
+ }
70
111
  }
71
112
  };
72
113
 
@@ -83,8 +124,16 @@ sap.ui.define(["sap/base/security/encodeCSS"],
83
124
  return;
84
125
  }
85
126
 
86
- var sColorClass = "sapMTileCntFooterTextColor" + oControl.getFooterColor();
87
- var sFooterTxt = oControl._getFooterText(oRm, oControl);
127
+ var sColorClass = "sapMTileCntFooterTextColor" + oControl.getFooterColor(),
128
+ sFooterTxt = oControl._getFooterText(oRm, oControl),
129
+ oTile = oControl.getParent();
130
+
131
+ if (oTile instanceof GenericTile && (oTile._isNavigateActionEnabled() || oTile._isActionMode())) {
132
+ oRm.openStart("div", oTile.getId() + "-footer-container");
133
+ oRm.class("sapMTileFtrCnt");
134
+ oRm.openEnd();
135
+ }
136
+
88
137
  // footer text div
89
138
  oRm.openStart("div", oControl.getId() + "-footer-text");
90
139
  oRm.class("sapMTileCntFtrTxt");
@@ -92,6 +141,25 @@ sap.ui.define(["sap/base/security/encodeCSS"],
92
141
  oRm.openEnd();
93
142
  oRm.text(sFooterTxt);
94
143
  oRm.close("div");
144
+
145
+ if (oTile instanceof GenericTile && oTile._isActionMode()) {
146
+ //Render Action Buttons, only in ActionMode and in TwoByOne frame type
147
+ oRm.openStart("div", oTile.getId() + "-actionButtons");
148
+ oRm.class("sapMGTActionModeContainer");
149
+ oRm.openEnd();
150
+ oTile.getActionButtons().forEach(function (oActionButton) {
151
+ oRm.renderControl(oActionButton);
152
+ });
153
+ oRm.close("div");
154
+ oRm.close("div");
155
+ } else if (oTile instanceof GenericTile && oTile._isNavigateActionEnabled()) {
156
+ oRm.openStart("div", oTile.getId() + "-navigateActionContainer");
157
+ oRm.class("sapMTileNavContainer");
158
+ oRm.openEnd();
159
+ oRm.renderControl(oTile._getNavigateAction());
160
+ oRm.close("div");
161
+ oRm.close("div");
162
+ }
95
163
  };
96
164
 
97
165
  return TileContentRenderer;
@@ -140,7 +140,7 @@ function(
140
140
  * @extends sap.m.DateTimeField
141
141
  *
142
142
  * @author SAP SE
143
- * @version 1.95.0
143
+ * @version 1.96.0
144
144
  *
145
145
  * @constructor
146
146
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.95.0
29
+ * @version 1.96.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.core.Control
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.95.0
53
+ * @version 1.96.0
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @extends sap.ui.core.Control
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.95.0
52
+ * @version 1.96.0
53
53
  *
54
54
  * @constructor
55
55
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @extends sap.ui.core.Control
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.95.0
43
+ * @version 1.96.0
44
44
  *
45
45
  * @constructor
46
46
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Control
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.95.0
30
+ * @version 1.96.0
31
31
  *
32
32
  * @constructor
33
33
  * @private
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.core.Control
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.95.0
53
+ * @version 1.96.0
54
54
  *
55
55
  * @constructor
56
56
  * @public