@openui5/sap.m 1.98.0 → 1.99.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 (537) hide show
  1. package/package.json +4 -4
  2. package/src/sap/m/.library +1 -1
  3. package/src/sap/m/AccButton.js +1 -1
  4. package/src/sap/m/ActionListItem.js +2 -2
  5. package/src/sap/m/ActionListItemRenderer.js +1 -1
  6. package/src/sap/m/ActionSelect.js +1 -1
  7. package/src/sap/m/ActionSelectRenderer.js +1 -1
  8. package/src/sap/m/ActionSheet.js +2 -2
  9. package/src/sap/m/ActionSheetRenderer.js +1 -1
  10. package/src/sap/m/App.js +1 -1
  11. package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
  12. package/src/sap/m/Avatar.js +21 -4
  13. package/src/sap/m/AvatarRenderer.js +6 -1
  14. package/src/sap/m/BadgeCustomData.js +6 -4
  15. package/src/sap/m/Bar.js +1 -1
  16. package/src/sap/m/BarRenderer.js +6 -6
  17. package/src/sap/m/Breadcrumbs.js +2 -1
  18. package/src/sap/m/BusyDialog.js +1 -1
  19. package/src/sap/m/BusyIndicator.js +1 -1
  20. package/src/sap/m/BusyIndicatorRenderer.js +1 -1
  21. package/src/sap/m/Button.js +1 -1
  22. package/src/sap/m/ButtonRenderer.js +3 -3
  23. package/src/sap/m/Carousel.js +19 -17
  24. package/src/sap/m/CarouselLayout.js +1 -1
  25. package/src/sap/m/CarouselRenderer.js +6 -2
  26. package/src/sap/m/CheckBox.js +1 -1
  27. package/src/sap/m/CheckBoxRenderer.js +1 -1
  28. package/src/sap/m/ColorPalette.js +1 -1
  29. package/src/sap/m/ColorPalettePopover.js +1 -1
  30. package/src/sap/m/Column.js +1 -1
  31. package/src/sap/m/ColumnHeaderPopover.js +1 -1
  32. package/src/sap/m/ColumnListItem.js +1 -1
  33. package/src/sap/m/ColumnListItemRenderer.js +1 -1
  34. package/src/sap/m/ColumnPopoverActionItem.js +1 -1
  35. package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
  36. package/src/sap/m/ColumnPopoverItem.js +1 -1
  37. package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
  38. package/src/sap/m/ColumnPopoverSortItem.js +1 -1
  39. package/src/sap/m/ComboBox.js +2 -2
  40. package/src/sap/m/ComboBoxBase.js +2 -2
  41. package/src/sap/m/ComboBoxBaseRenderer.js +2 -2
  42. package/src/sap/m/ComboBoxRenderer.js +4 -4
  43. package/src/sap/m/ComboBoxTextField.js +1 -1
  44. package/src/sap/m/ComboBoxTextFieldRenderer.js +2 -2
  45. package/src/sap/m/CustomDynamicDateOption.js +1 -1
  46. package/src/sap/m/CustomListItem.js +1 -1
  47. package/src/sap/m/CustomListItemRenderer.js +1 -1
  48. package/src/sap/m/CustomTile.js +1 -1
  49. package/src/sap/m/CustomTileRenderer.js +1 -1
  50. package/src/sap/m/CustomTreeItem.js +1 -1
  51. package/src/sap/m/CustomTreeItemRenderer.js +1 -1
  52. package/src/sap/m/DatePicker.js +1 -1
  53. package/src/sap/m/DatePickerRenderer.js +1 -5
  54. package/src/sap/m/DateRangeSelection.js +2 -2
  55. package/src/sap/m/DateRangeSelectionRenderer.js +1 -1
  56. package/src/sap/m/DateTimeField.js +12 -3
  57. package/src/sap/m/DateTimeInput.js +1 -1
  58. package/src/sap/m/DateTimePicker.js +309 -52
  59. package/src/sap/m/DateTimePickerRenderer.js +40 -0
  60. package/src/sap/m/Dialog.js +1 -1
  61. package/src/sap/m/DialogRenderer.js +1 -1
  62. package/src/sap/m/DisplayListItem.js +1 -1
  63. package/src/sap/m/DisplayListItemRenderer.js +1 -1
  64. package/src/sap/m/DraftIndicator.js +1 -1
  65. package/src/sap/m/DraftIndicatorRenderer.js +1 -1
  66. package/src/sap/m/DynamicDate.js +3 -3
  67. package/src/sap/m/DynamicDateFormat.js +26 -0
  68. package/src/sap/m/DynamicDateOption.js +134 -9
  69. package/src/sap/m/DynamicDateRange.js +69 -31
  70. package/src/sap/m/DynamicDateRangeRenderer.js +1 -1
  71. package/src/sap/m/DynamicDateUtil.js +9 -1
  72. package/src/sap/m/DynamicDateValueHelpUIType.js +1 -1
  73. package/src/sap/m/ExpandableText.js +1 -1
  74. package/src/sap/m/FacetFilter.js +1 -1
  75. package/src/sap/m/FacetFilterItem.js +1 -1
  76. package/src/sap/m/FacetFilterItemRenderer.js +1 -1
  77. package/src/sap/m/FacetFilterList.js +2 -2
  78. package/src/sap/m/FacetFilterRenderer.js +10 -10
  79. package/src/sap/m/FeedContent.js +2 -2
  80. package/src/sap/m/FeedInput.js +1 -1
  81. package/src/sap/m/FeedInputRenderer.js +1 -1
  82. package/src/sap/m/FeedListItem.js +6 -6
  83. package/src/sap/m/FeedListItemAction.js +1 -1
  84. package/src/sap/m/FeedListItemRenderer.js +2 -2
  85. package/src/sap/m/Fiori20Adapter.js +2 -2
  86. package/src/sap/m/FlexBox.js +1 -1
  87. package/src/sap/m/FlexItemData.js +1 -1
  88. package/src/sap/m/FormattedText.js +4 -1
  89. package/src/sap/m/GenericTag.js +1 -1
  90. package/src/sap/m/GenericTile.js +14 -12
  91. package/src/sap/m/GenericTileRenderer.js +7 -4
  92. package/src/sap/m/GroupHeaderListItem.js +1 -1
  93. package/src/sap/m/GroupHeaderListItemRenderer.js +2 -2
  94. package/src/sap/m/GrowingEnablement.js +14 -0
  95. package/src/sap/m/GrowingList.js +1 -1
  96. package/src/sap/m/HBox.js +1 -1
  97. package/src/sap/m/HBoxRenderer.js +1 -1
  98. package/src/sap/m/HeaderContainer.js +71 -16
  99. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  100. package/src/sap/m/HeaderContainerRenderer.js +1 -1
  101. package/src/sap/m/HyphenationSupport.js +1 -1
  102. package/src/sap/m/IconTabBar.js +1 -1
  103. package/src/sap/m/IconTabBarDragAndDropUtil.js +2 -2
  104. package/src/sap/m/IconTabBarSelectList.js +1 -1
  105. package/src/sap/m/IconTabFilter.js +1 -1
  106. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  107. package/src/sap/m/IconTabHeader.js +3 -3
  108. package/src/sap/m/IconTabHeaderRenderer.js +1 -1
  109. package/src/sap/m/IconTabSeparator.js +1 -1
  110. package/src/sap/m/IllustratedMessage.js +11 -8
  111. package/src/sap/m/IllustratedMessageRenderer.js +5 -5
  112. package/src/sap/m/IllustratedMessageType.js +26 -2
  113. package/src/sap/m/Illustration.js +1 -1
  114. package/src/sap/m/IllustrationRenderer.js +4 -2
  115. package/src/sap/m/Image.js +1 -1
  116. package/src/sap/m/ImageContent.js +2 -2
  117. package/src/sap/m/ImageRenderer.js +1 -1
  118. package/src/sap/m/Input.js +5 -6
  119. package/src/sap/m/InputBase.js +6 -8
  120. package/src/sap/m/InputBaseRenderer.js +53 -38
  121. package/src/sap/m/InputListItem.js +1 -1
  122. package/src/sap/m/InputListItemRenderer.js +1 -1
  123. package/src/sap/m/InputRenderer.js +12 -9
  124. package/src/sap/m/Label.js +3 -3
  125. package/src/sap/m/LabelRenderer.js +1 -1
  126. package/src/sap/m/LightBox.js +5 -5
  127. package/src/sap/m/LightBoxItem.js +2 -3
  128. package/src/sap/m/LightBoxRenderer.js +1 -1
  129. package/src/sap/m/Link.js +2 -2
  130. package/src/sap/m/LinkRenderer.js +1 -1
  131. package/src/sap/m/List.js +1 -1
  132. package/src/sap/m/ListBase.js +15 -6
  133. package/src/sap/m/ListBaseRenderer.js +16 -16
  134. package/src/sap/m/ListItemBase.js +2 -2
  135. package/src/sap/m/ListItemBaseRenderer.js +23 -23
  136. package/src/sap/m/MaskEnabler.js +11 -11
  137. package/src/sap/m/MaskInput.js +9 -1
  138. package/src/sap/m/MaskInputRenderer.js +9 -43
  139. package/src/sap/m/MaskInputRule.js +5 -5
  140. package/src/sap/m/Menu.js +1 -1
  141. package/src/sap/m/MenuButton.js +1 -1
  142. package/src/sap/m/MenuButtonRenderer.js +1 -1
  143. package/src/sap/m/MenuItem.js +1 -1
  144. package/src/sap/m/MenuListItem.js +1 -1
  145. package/src/sap/m/MenuListItemRenderer.js +2 -2
  146. package/src/sap/m/MessageItem.js +1 -1
  147. package/src/sap/m/MessageListItem.js +1 -1
  148. package/src/sap/m/MessagePage.js +1 -1
  149. package/src/sap/m/MessagePageRenderer.js +1 -1
  150. package/src/sap/m/MessagePopover.js +5 -2
  151. package/src/sap/m/MessagePopoverItem.js +1 -1
  152. package/src/sap/m/MessagePopoverRenderer.js +1 -1
  153. package/src/sap/m/MessageStrip.js +1 -1
  154. package/src/sap/m/MessageStripRenderer.js +1 -1
  155. package/src/sap/m/MessageToast.js +1 -1
  156. package/src/sap/m/MessageView.js +3 -3
  157. package/src/sap/m/MultiComboBox.js +3 -3
  158. package/src/sap/m/MultiComboBoxRenderer.js +4 -4
  159. package/src/sap/m/MultiEditField.js +1 -1
  160. package/src/sap/m/MultiInput.js +40 -23
  161. package/src/sap/m/NavContainer.js +1 -1
  162. package/src/sap/m/NavContainerRenderer.js +1 -1
  163. package/src/sap/m/NewsContent.js +2 -2
  164. package/src/sap/m/NotificationList.js +1 -1
  165. package/src/sap/m/NotificationListBase.js +1 -1
  166. package/src/sap/m/NotificationListGroup.js +1 -1
  167. package/src/sap/m/NotificationListGroupRenderer.js +1 -1
  168. package/src/sap/m/NotificationListItem.js +1 -1
  169. package/src/sap/m/NotificationListItemRenderer.js +1 -1
  170. package/src/sap/m/NotificationListRenderer.js +2 -2
  171. package/src/sap/m/NumericContent.js +2 -2
  172. package/src/sap/m/NumericContentRenderer.js +10 -10
  173. package/src/sap/m/NumericInput.js +1 -1
  174. package/src/sap/m/ObjectAttribute.js +1 -1
  175. package/src/sap/m/ObjectAttributeRenderer.js +1 -1
  176. package/src/sap/m/ObjectHeader.js +20 -7
  177. package/src/sap/m/ObjectHeaderRenderer.js +3 -3
  178. package/src/sap/m/ObjectIdentifier.js +1 -1
  179. package/src/sap/m/ObjectIdentifierRenderer.js +1 -1
  180. package/src/sap/m/ObjectListItem.js +1 -1
  181. package/src/sap/m/ObjectListItemRenderer.js +2 -2
  182. package/src/sap/m/ObjectMarker.js +2 -2
  183. package/src/sap/m/ObjectMarkerRenderer.js +1 -1
  184. package/src/sap/m/ObjectNumber.js +1 -1
  185. package/src/sap/m/ObjectNumberRenderer.js +1 -2
  186. package/src/sap/m/ObjectStatus.js +1 -1
  187. package/src/sap/m/ObjectStatusRenderer.js +1 -1
  188. package/src/sap/m/OverflowToolbar.js +19 -3
  189. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  190. package/src/sap/m/OverflowToolbarButton.js +1 -1
  191. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  192. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  193. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  194. package/src/sap/m/P13nColumnsItem.js +1 -1
  195. package/src/sap/m/P13nColumnsPanel.js +1 -1
  196. package/src/sap/m/P13nConditionPanel.js +2 -2
  197. package/src/sap/m/P13nDialog.js +1 -1
  198. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  199. package/src/sap/m/P13nDimMeasurePanel.js +1 -1
  200. package/src/sap/m/P13nFilterItem.js +1 -1
  201. package/src/sap/m/P13nFilterPanel.js +1 -1
  202. package/src/sap/m/P13nGroupItem.js +1 -1
  203. package/src/sap/m/P13nGroupPanel.js +3 -3
  204. package/src/sap/m/P13nItem.js +1 -1
  205. package/src/sap/m/P13nPanel.js +1 -1
  206. package/src/sap/m/P13nSelectionItem.js +1 -1
  207. package/src/sap/m/P13nSelectionPanel.js +1 -1
  208. package/src/sap/m/P13nSortItem.js +1 -1
  209. package/src/sap/m/P13nSortPanel.js +1 -1
  210. package/src/sap/m/PDFViewer.js +5 -4
  211. package/src/sap/m/Page.js +1 -1
  212. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  213. package/src/sap/m/PagingButton.js +1 -1
  214. package/src/sap/m/Panel.js +1 -1
  215. package/src/sap/m/PanelRenderer.js +1 -1
  216. package/src/sap/m/PlanningCalendar.js +2 -1
  217. package/src/sap/m/PlanningCalendarHeader.js +1 -1
  218. package/src/sap/m/PlanningCalendarLegend.js +1 -1
  219. package/src/sap/m/PlanningCalendarRow.js +1 -1
  220. package/src/sap/m/PlanningCalendarView.js +1 -1
  221. package/src/sap/m/Popover.js +12 -1
  222. package/src/sap/m/PopoverRenderer.js +1 -1
  223. package/src/sap/m/ProgressIndicator.js +3 -3
  224. package/src/sap/m/ProgressIndicatorRenderer.js +1 -1
  225. package/src/sap/m/PullToRefresh.js +1 -1
  226. package/src/sap/m/PullToRefreshRenderer.js +2 -2
  227. package/src/sap/m/QuickView.js +1 -1
  228. package/src/sap/m/QuickViewBase.js +1 -1
  229. package/src/sap/m/QuickViewCard.js +1 -1
  230. package/src/sap/m/QuickViewCardRenderer.js +1 -1
  231. package/src/sap/m/QuickViewGroup.js +1 -1
  232. package/src/sap/m/QuickViewGroupElement.js +1 -1
  233. package/src/sap/m/QuickViewPage.js +1 -1
  234. package/src/sap/m/QuickViewPageRenderer.js +1 -1
  235. package/src/sap/m/RadioButton.js +1 -1
  236. package/src/sap/m/RadioButtonGroup.js +1 -1
  237. package/src/sap/m/RadioButtonRenderer.js +1 -1
  238. package/src/sap/m/RangeSlider.js +4 -5
  239. package/src/sap/m/RangeSliderRenderer.js +5 -5
  240. package/src/sap/m/RatingIndicator.js +1 -1
  241. package/src/sap/m/RatingIndicatorRenderer.js +1 -1
  242. package/src/sap/m/ResponsivePopover.js +1 -1
  243. package/src/sap/m/ResponsivePopoverRenderer.js +1 -1
  244. package/src/sap/m/ResponsiveScale.js +1 -1
  245. package/src/sap/m/ScrollBar.js +2 -2
  246. package/src/sap/m/ScrollBarRenderer.js +1 -1
  247. package/src/sap/m/ScrollContainer.js +1 -1
  248. package/src/sap/m/ScrollContainerRenderer.js +1 -1
  249. package/src/sap/m/SearchField.js +2 -2
  250. package/src/sap/m/SegmentedButton.js +5 -1
  251. package/src/sap/m/SegmentedButtonItem.js +1 -1
  252. package/src/sap/m/SegmentedButtonRenderer.js +1 -1
  253. package/src/sap/m/Select.js +3 -4
  254. package/src/sap/m/SelectDialog.js +1 -1
  255. package/src/sap/m/SelectDialogBase.js +1 -1
  256. package/src/sap/m/SelectList.js +4 -3
  257. package/src/sap/m/SelectListRenderer.js +5 -5
  258. package/src/sap/m/SelectRenderer.js +5 -5
  259. package/src/sap/m/SelectionDetails.js +1 -1
  260. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  261. package/src/sap/m/SelectionDetailsItem.js +1 -1
  262. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  263. package/src/sap/m/SelectionDetailsRenderer.js +1 -1
  264. package/src/sap/m/Shell.js +1 -1
  265. package/src/sap/m/ShellRenderer.js +1 -1
  266. package/src/sap/m/SimpleFixFlex.js +1 -1
  267. package/src/sap/m/SimpleFixFlexRenderer.js +1 -1
  268. package/src/sap/m/SinglePlanningCalendar.js +21 -2
  269. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  270. package/src/sap/m/SinglePlanningCalendarGrid.js +29 -20
  271. package/src/sap/m/SinglePlanningCalendarGridRenderer.js +6 -5
  272. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
  273. package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +1 -1
  274. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  275. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  276. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  277. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  278. package/src/sap/m/SlideTile.js +1 -1
  279. package/src/sap/m/SlideTileRenderer.js +1 -1
  280. package/src/sap/m/Slider.js +1 -1
  281. package/src/sap/m/SliderRenderer.js +9 -9
  282. package/src/sap/m/SliderTooltip.js +3 -3
  283. package/src/sap/m/SliderTooltipBase.js +1 -1
  284. package/src/sap/m/SliderTooltipBaseRenderer.js +2 -2
  285. package/src/sap/m/SliderTooltipContainer.js +2 -2
  286. package/src/sap/m/SliderTooltipContainerRenderer.js +1 -1
  287. package/src/sap/m/SliderTooltipRenderer.js +1 -1
  288. package/src/sap/m/SplitApp.js +1 -1
  289. package/src/sap/m/SplitButton.js +3 -1
  290. package/src/sap/m/SplitButtonRenderer.js +1 -1
  291. package/src/sap/m/SplitContainer.js +21 -28
  292. package/src/sap/m/StandardDynamicDateOption.js +129 -8
  293. package/src/sap/m/StandardListItem.js +1 -1
  294. package/src/sap/m/StandardListItemRenderer.js +8 -8
  295. package/src/sap/m/StandardTile.js +1 -1
  296. package/src/sap/m/StandardTileRenderer.js +1 -1
  297. package/src/sap/m/StandardTreeItem.js +1 -1
  298. package/src/sap/m/StepInput.js +1 -1
  299. package/src/sap/m/SuggestionItem.js +1 -1
  300. package/src/sap/m/SuggestionsPopover.js +2 -9
  301. package/src/sap/m/Switch.js +1 -1
  302. package/src/sap/m/SwitchRenderer.js +3 -3
  303. package/src/sap/m/TabContainer.js +1 -1
  304. package/src/sap/m/TabContainerItem.js +1 -3
  305. package/src/sap/m/TabContainerRenderer.js +2 -2
  306. package/src/sap/m/TabStrip.js +1 -1
  307. package/src/sap/m/TabStripItem.js +1 -1
  308. package/src/sap/m/TabStripRenderer.js +1 -1
  309. package/src/sap/m/Table.js +8 -7
  310. package/src/sap/m/TablePersoController.js +1 -1
  311. package/src/sap/m/TablePersoDialog.js +1 -1
  312. package/src/sap/m/TablePersoProvider.js +1 -1
  313. package/src/sap/m/TableRenderer.js +1 -1
  314. package/src/sap/m/TableSelectDialog.js +16 -16
  315. package/src/sap/m/Text.js +1 -1
  316. package/src/sap/m/TextArea.js +1 -1
  317. package/src/sap/m/TextAreaRenderer.js +1 -1
  318. package/src/sap/m/Tile.js +1 -1
  319. package/src/sap/m/TileContainer.js +1 -1
  320. package/src/sap/m/TileContainerRenderer.js +1 -1
  321. package/src/sap/m/TileContent.js +4 -4
  322. package/src/sap/m/TileContentRenderer.js +3 -3
  323. package/src/sap/m/TileRenderer.js +1 -1
  324. package/src/sap/m/TimePicker.js +2 -2
  325. package/src/sap/m/TimePickerClock.js +5 -6
  326. package/src/sap/m/TimePickerClockRenderer.js +1 -1
  327. package/src/sap/m/TimePickerClocks.js +6 -5
  328. package/src/sap/m/TimePickerClocksRenderer.js +3 -3
  329. package/src/sap/m/TimePickerInputs.js +1 -1
  330. package/src/sap/m/TimePickerInputsRenderer.js +1 -1
  331. package/src/sap/m/TimePickerInternals.js +7 -5
  332. package/src/sap/m/TimePickerRenderer.js +3 -13
  333. package/src/sap/m/TimePickerSlider.js +2 -2
  334. package/src/sap/m/TimePickerSliderRenderer.js +2 -2
  335. package/src/sap/m/TimePickerSliders.js +7 -5
  336. package/src/sap/m/TimePickerSlidersRenderer.js +1 -1
  337. package/src/sap/m/Title.js +1 -5
  338. package/src/sap/m/TitlePropagationSupport.js +1 -1
  339. package/src/sap/m/TitleRenderer.js +1 -1
  340. package/src/sap/m/ToggleButton.js +1 -1
  341. package/src/sap/m/Token.js +1 -2
  342. package/src/sap/m/TokenRenderer.js +21 -3
  343. package/src/sap/m/Tokenizer.js +3 -4
  344. package/src/sap/m/TokenizerRenderer.js +40 -6
  345. package/src/sap/m/Toolbar.js +5 -5
  346. package/src/sap/m/ToolbarLayoutData.js +1 -1
  347. package/src/sap/m/ToolbarRenderer.js +3 -3
  348. package/src/sap/m/ToolbarSeparator.js +1 -1
  349. package/src/sap/m/ToolbarSpacer.js +1 -1
  350. package/src/sap/m/Tree.js +1 -1
  351. package/src/sap/m/TreeItemBase.js +6 -6
  352. package/src/sap/m/TreeItemBaseRenderer.js +2 -2
  353. package/src/sap/m/TreeRenderer.js +2 -2
  354. package/src/sap/m/UploadCollection.js +1 -1
  355. package/src/sap/m/UploadCollectionItem.js +1 -1
  356. package/src/sap/m/UploadCollectionParameter.js +1 -1
  357. package/src/sap/m/UploadCollectionRenderer.js +1 -1
  358. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  359. package/src/sap/m/VBox.js +1 -1
  360. package/src/sap/m/VBoxRenderer.js +1 -1
  361. package/src/sap/m/ValueStateHeader.js +1 -1
  362. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  363. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  364. package/src/sap/m/ViewSettingsDialog.js +14 -14
  365. package/src/sap/m/ViewSettingsDialogRenderer.js +1 -1
  366. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  367. package/src/sap/m/ViewSettingsItem.js +1 -1
  368. package/src/sap/m/VisibleItem.js +1 -1
  369. package/src/sap/m/WheelSlider.js +1 -1
  370. package/src/sap/m/WheelSliderContainer.js +1 -1
  371. package/src/sap/m/WheelSliderContainerRenderer.js +1 -1
  372. package/src/sap/m/WheelSliderRenderer.js +2 -2
  373. package/src/sap/m/Wizard.js +1 -1
  374. package/src/sap/m/WizardProgressNavigator.js +1 -1
  375. package/src/sap/m/WizardStep.js +1 -1
  376. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  377. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  378. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  379. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  380. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
  381. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  382. package/src/sap/m/designtime/ListBase.designtime.js +26 -0
  383. package/src/sap/m/library.js +39 -9
  384. package/src/sap/m/messagebundle.properties +54 -6
  385. package/src/sap/m/messagebundle_ar.properties +33 -5
  386. package/src/sap/m/messagebundle_bg.properties +62 -34
  387. package/src/sap/m/messagebundle_ca.properties +33 -5
  388. package/src/sap/m/messagebundle_cs.properties +33 -5
  389. package/src/sap/m/messagebundle_cy.properties +33 -5
  390. package/src/sap/m/messagebundle_da.properties +34 -6
  391. package/src/sap/m/messagebundle_de.properties +33 -5
  392. package/src/sap/m/messagebundle_el.properties +35 -7
  393. package/src/sap/m/messagebundle_en.properties +31 -3
  394. package/src/sap/m/messagebundle_en_GB.properties +31 -3
  395. package/src/sap/m/messagebundle_en_US_sappsd.properties +33 -3
  396. package/src/sap/m/messagebundle_en_US_saprigi.properties +277 -58
  397. package/src/sap/m/messagebundle_en_US_saptrc.properties +31 -3
  398. package/src/sap/m/messagebundle_es.properties +33 -5
  399. package/src/sap/m/messagebundle_es_MX.properties +33 -5
  400. package/src/sap/m/messagebundle_et.properties +33 -5
  401. package/src/sap/m/messagebundle_fi.properties +35 -7
  402. package/src/sap/m/messagebundle_fr.properties +44 -16
  403. package/src/sap/m/messagebundle_fr_CA.properties +33 -5
  404. package/src/sap/m/messagebundle_hi.properties +33 -5
  405. package/src/sap/m/messagebundle_hr.properties +33 -5
  406. package/src/sap/m/messagebundle_hu.properties +34 -6
  407. package/src/sap/m/messagebundle_id.properties +34 -6
  408. package/src/sap/m/messagebundle_it.properties +33 -5
  409. package/src/sap/m/messagebundle_iw.properties +33 -5
  410. package/src/sap/m/messagebundle_ja.properties +37 -9
  411. package/src/sap/m/messagebundle_kk.properties +33 -5
  412. package/src/sap/m/messagebundle_ko.properties +33 -5
  413. package/src/sap/m/messagebundle_lt.properties +33 -5
  414. package/src/sap/m/messagebundle_lv.properties +33 -5
  415. package/src/sap/m/messagebundle_ms.properties +33 -5
  416. package/src/sap/m/messagebundle_nl.properties +34 -6
  417. package/src/sap/m/messagebundle_no.properties +33 -5
  418. package/src/sap/m/messagebundle_pl.properties +33 -5
  419. package/src/sap/m/messagebundle_pt.properties +56 -28
  420. package/src/sap/m/messagebundle_pt_PT.properties +34 -6
  421. package/src/sap/m/messagebundle_ro.properties +33 -5
  422. package/src/sap/m/messagebundle_ru.properties +33 -5
  423. package/src/sap/m/messagebundle_sh.properties +33 -5
  424. package/src/sap/m/messagebundle_sk.properties +33 -5
  425. package/src/sap/m/messagebundle_sl.properties +33 -5
  426. package/src/sap/m/messagebundle_sv.properties +33 -5
  427. package/src/sap/m/messagebundle_th.properties +41 -13
  428. package/src/sap/m/messagebundle_tr.properties +33 -5
  429. package/src/sap/m/messagebundle_uk.properties +33 -5
  430. package/src/sap/m/messagebundle_vi.properties +33 -5
  431. package/src/sap/m/messagebundle_zh_CN.properties +33 -5
  432. package/src/sap/m/messagebundle_zh_TW.properties +33 -5
  433. package/src/sap/m/p13n/AbstractContainer.js +15 -8
  434. package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
  435. package/src/sap/m/p13n/BasePanel.js +6 -6
  436. package/src/sap/m/p13n/Container.js +10 -11
  437. package/src/sap/m/p13n/GroupPanel.js +5 -5
  438. package/src/sap/m/p13n/Popup.js +1 -1
  439. package/src/sap/m/p13n/QueryPanel.js +59 -28
  440. package/src/sap/m/p13n/SelectionPanel.js +2 -2
  441. package/src/sap/m/p13n/SortPanel.js +6 -6
  442. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  443. package/src/sap/m/plugins/DataStateIndicator.js +1 -1
  444. package/src/sap/m/plugins/PasteProvider.js +1 -1
  445. package/src/sap/m/plugins/PluginBase.js +1 -1
  446. package/src/sap/m/rules/MessagePage.support.js +1 -1
  447. package/src/sap/m/semantic/AddAction.js +1 -1
  448. package/src/sap/m/semantic/CancelAction.js +1 -1
  449. package/src/sap/m/semantic/DeleteAction.js +1 -1
  450. package/src/sap/m/semantic/DetailPage.js +1 -1
  451. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  452. package/src/sap/m/semantic/EditAction.js +1 -1
  453. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  454. package/src/sap/m/semantic/FilterAction.js +1 -1
  455. package/src/sap/m/semantic/FilterSelect.js +1 -1
  456. package/src/sap/m/semantic/FlagAction.js +1 -1
  457. package/src/sap/m/semantic/ForwardAction.js +1 -1
  458. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  459. package/src/sap/m/semantic/GroupAction.js +1 -1
  460. package/src/sap/m/semantic/GroupSelect.js +1 -1
  461. package/src/sap/m/semantic/MainAction.js +1 -1
  462. package/src/sap/m/semantic/MasterPage.js +1 -1
  463. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  464. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  465. package/src/sap/m/semantic/NegativeAction.js +1 -1
  466. package/src/sap/m/semantic/OpenInAction.js +1 -1
  467. package/src/sap/m/semantic/PositiveAction.js +1 -1
  468. package/src/sap/m/semantic/PrintAction.js +1 -1
  469. package/src/sap/m/semantic/SaveAction.js +1 -1
  470. package/src/sap/m/semantic/Segment.js +1 -1
  471. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  472. package/src/sap/m/semantic/SemanticButton.js +1 -1
  473. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  474. package/src/sap/m/semantic/SemanticControl.js +1 -1
  475. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  476. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  477. package/src/sap/m/semantic/SemanticPage.js +1 -1
  478. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  479. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  480. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  481. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  482. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  483. package/src/sap/m/semantic/ShareMenu.js +1 -1
  484. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  485. package/src/sap/m/semantic/SortAction.js +1 -1
  486. package/src/sap/m/semantic/SortSelect.js +1 -1
  487. package/src/sap/m/table/Util.js +1 -1
  488. package/src/sap/m/table/{ActionItem.js → columnmenu/ActionItem.js} +9 -10
  489. package/src/sap/m/table/{ColumnMenuEntry.js → columnmenu/Entry.js} +16 -16
  490. package/src/sap/m/table/{Item.js → columnmenu/Item.js} +8 -8
  491. package/src/sap/m/table/{ItemBase.js → columnmenu/ItemBase.js} +11 -12
  492. package/src/sap/m/table/{ColumnMenu.js → columnmenu/Menu.js} +65 -66
  493. package/src/sap/m/table/columnmenu/MenuRenderer.js +81 -0
  494. package/src/sap/m/table/{QuickAction.js → columnmenu/QuickAction.js} +9 -8
  495. package/src/sap/m/table/columnmenu/QuickActionBase.js +54 -0
  496. package/src/sap/m/table/columnmenu/QuickActionItem.js +51 -0
  497. package/src/sap/m/table/columnmenu/QuickGroup.js +133 -0
  498. package/src/sap/m/table/columnmenu/QuickGroupItem.js +47 -0
  499. package/src/sap/m/table/columnmenu/QuickSort.js +80 -0
  500. package/src/sap/m/table/columnmenu/QuickSortItem.js +117 -0
  501. package/src/sap/m/table/columnmenu/QuickTotal.js +142 -0
  502. package/src/sap/m/table/columnmenu/QuickTotalItem.js +47 -0
  503. package/src/sap/m/themes/base/AbstractContainer.less +2 -3
  504. package/src/sap/m/themes/base/Carousel.less +5 -0
  505. package/src/sap/m/themes/base/CheckBox.less +0 -4
  506. package/src/sap/m/themes/base/ColumnMenu.less +5 -9
  507. package/src/sap/m/themes/base/DateTimePicker.less +147 -1
  508. package/src/sap/m/themes/base/DynamicDateRange.less +3 -1
  509. package/src/sap/m/themes/base/FeedListItem.less +1 -1
  510. package/src/sap/m/themes/base/GenericTile.less +35 -0
  511. package/src/sap/m/themes/base/HeaderContainer.less +25 -0
  512. package/src/sap/m/themes/base/IllustratedMessage.less +16 -16
  513. package/src/sap/m/themes/base/NewsContent.less +7 -0
  514. package/src/sap/m/themes/base/TileContent.less +4 -0
  515. package/src/sap/m/themes/base/illustrations/{sapIllus-Dialog-SimpleCheckmark.svg → sapIllus-Dialog-SimpleCheckMark.svg} +1 -1
  516. package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessBalloon.svg +16 -0
  517. package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessCheckMark.svg +8 -0
  518. package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-SuccessHighFive.svg +45 -0
  519. package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-UnableToLoadImage.svg +38 -0
  520. package/src/sap/m/themes/base/illustrations/{sapIllus-Scene-SimpleCheckmark.svg → sapIllus-Scene-SimpleCheckMark.svg} +1 -1
  521. package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessBalloon.svg +33 -0
  522. package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessCheckMark.svg +43 -0
  523. package/src/sap/m/themes/base/illustrations/sapIllus-Scene-SuccessHighFive.svg +27 -0
  524. package/src/sap/m/themes/base/illustrations/sapIllus-Scene-UnableToLoadImage.svg +35 -0
  525. package/src/sap/m/themes/base/illustrations/{sapIllus-Spot-SimpleCheckmark.svg → sapIllus-Spot-SimpleCheckMark.svg} +1 -1
  526. package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessBalloon.svg +19 -0
  527. package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessCheckMark.svg +7 -0
  528. package/src/sap/m/themes/base/illustrations/sapIllus-Spot-SuccessHighFive.svg +31 -0
  529. package/src/sap/m/themes/base/illustrations/sapIllus-Spot-UnableToLoadImage.svg +36 -0
  530. package/src/sap/m/upload/UploadSet.js +104 -34
  531. package/src/sap/m/upload/UploadSetItem.js +4 -4
  532. package/src/sap/m/upload/UploadSetRenderer.js +1 -1
  533. package/src/sap/m/table/ColumnMenuRenderer.js +0 -82
  534. package/src/sap/m/table/QuickActionBase.js +0 -53
  535. package/src/sap/m/themes/base/illustrations/sapIllus-Dialog-NewMail.svg +0 -21
  536. package/src/sap/m/themes/base/illustrations/sapIllus-Scene-NewMail.svg +0 -54
  537. package/src/sap/m/themes/base/illustrations/sapIllus-Spot-NewMail.svg +0 -18
@@ -4,34 +4,33 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/m/table/ColumnMenuEntry"
7
+ "sap/m/table/columnmenu/Entry"
8
8
  ], function(
9
- ColumnMenuEntry
9
+ Entry
10
10
  ) {
11
11
  "use strict";
12
12
 
13
13
  /**
14
14
  * Constructor for a new ItemBase.
15
15
  *
16
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
17
- * @param {object} [mSettings] Initial settings for the new control
16
+ * @param {string} [sId] ID for the new ItemBase, generated automatically if no ID is given
17
+ * @param {object} [mSettings] Initial settings for the new ItemBase
18
18
  *
19
19
  * @class
20
- * The ItemBase control serves as a base class for menu items for the sap.m.table.ColumnMenu.
21
- * This base class is faceless and should be inherited by controls, which intend to be menu items
22
- * for the sap.m.table.ColumnMenu.
20
+ * The ItemBase serves as a base class for menu items for the sap.m.table.columnmenu.Menu.
21
+ * This base class is faceless and should be inherited by menu items for the sap.m.table.columnmenu.Menu.
23
22
  *
24
- * @extends sap.m.table.ColumnMenuEntry
23
+ * @extends sap.m.table.columnmenu.Entry
25
24
  *
26
25
  * @author SAP SE
27
- * @version 1.98.0
26
+ * @version 1.99.0
28
27
  *
29
28
  * @private
30
29
  * @experimental
31
30
  *
32
- * @alias sap.m.table.ItemBase
31
+ * @alias sap.m.table.columnmenu.ItemBase
33
32
  */
34
- var ItemBase = ColumnMenuEntry.extend("sap.m.table.ItemBase", {
33
+ var ItemBase = Entry.extend("sap.m.table.columnmenu.ItemBase", {
35
34
  metadata: {
36
35
  "abstract": true,
37
36
  library: "sap.m"
@@ -50,7 +49,7 @@ sap.ui.define([
50
49
  * This method can be used to retrieve the effective items of the item.
51
50
  *
52
51
  * This method allows subclasses to return composition of other items, if they contain multiple items or controls.
53
- * @returns {Array<sap.m.table.ItemBase>} A composition of effective items
52
+ * @returns {sap.m.table.columnmenu.ItemBase[]} A composition of effective items
54
53
  *
55
54
  * @protected
56
55
  */
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  "sap/base/strings/capitalize",
16
16
  "sap/m/p13n/AbstractContainerItem",
17
17
  "sap/m/p13n/Container",
18
- "sap/m/table/ColumnMenuRenderer"
18
+ "sap/m/table/columnmenu/MenuRenderer"
19
19
  ], function (
20
20
  ResponsivePopover,
21
21
  Button,
@@ -28,20 +28,20 @@ sap.ui.define([
28
28
  capitalize,
29
29
  AbstractContainerItem,
30
30
  Container,
31
- ColumnMenuRenderer
31
+ MenuRenderer
32
32
  ) {
33
33
  "use strict";
34
34
 
35
35
  /**
36
- * Constructor for a new ColumnMenu.
36
+ * Constructor for a new Menu.
37
37
  *
38
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
39
- * @param {object} [mSettings] Initial settings for the new control
38
+ * @param {string} [sId] ID for the new Menu, generated automatically if no ID is given
39
+ * @param {object} [mSettings] Initial settings for the new Menu
40
40
  *
41
41
  * @class
42
- * This control is a popover, intended to be used by a table.
42
+ * This Menu is a popover, intended to be used by a table.
43
43
  * It serves as a entry point for the table personalization via the column headers.
44
- * The ColumnMenu is separated into two sections: quick actions and menu items.
44
+ * The Menu is separated into two sections: quick actions and menu items.
45
45
  *
46
46
  * The top section of the popover contains contextual quick actions for the column the menu was triggered from.
47
47
  * The lower section contains menu items, which consist of generic and global table settings.
@@ -52,22 +52,22 @@ sap.ui.define([
52
52
  * @extends sap.ui.core.Control
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.98.0
55
+ * @version 1.99.0
56
56
  *
57
57
  * @private
58
58
  * @experimental
59
59
  *
60
- * @alias sap.m.table.ColumnMenu
60
+ * @alias sap.m.table.columnmenu.Menu
61
61
  */
62
- var ColumnMenu = Control.extend("sap.m.table.ColumnMenu", {
62
+ var Menu = Control.extend("sap.m.table.columnmenu.Menu", {
63
63
  metadata: {
64
64
  library: "sap.m",
65
65
  interfaces: ["sap.ui.core.IColumnHeaderMenu"],
66
66
  aggregations: {
67
- quickActions: { type: "sap.m.table.QuickActionBase" },
68
- items: { type: "sap.m.table.ItemBase" },
69
- _quickActions: { type: "sap.m.table.QuickActionBase", visibility: "hidden" },
70
- _items: { type: "sap.m.table.ItemBase", visibility: "hidden" }
67
+ quickActions: { type: "sap.m.table.columnmenu.QuickActionBase" },
68
+ items: { type: "sap.m.table.columnmenu.ItemBase" },
69
+ _quickActions: { type: "sap.m.table.columnmenu.QuickActionBase", visibility: "hidden" },
70
+ _items: { type: "sap.m.table.columnmenu.ItemBase", visibility: "hidden" }
71
71
  }
72
72
  }
73
73
  });
@@ -75,7 +75,7 @@ sap.ui.define([
75
75
  var DEFAULT_KEY = "$default";
76
76
  var ARIA_POPUP_TYPE = sap.ui.core.aria.HasPopup.Dialog;
77
77
 
78
- ColumnMenu.prototype.applySettings = function (mSettings) {
78
+ Menu.prototype.applySettings = function (mSettings) {
79
79
  // Only works in JS views, but that's fine. This is only convenience for controls.
80
80
  if (mSettings) {
81
81
  this._addAllToPrivateAggregation(mSettings, "_quickActions");
@@ -90,7 +90,7 @@ sap.ui.define([
90
90
  * @param {sap.ui.core.Control | HTMLElement} oAnchor This is the control or HTMLElement, where the popover will be placed at.
91
91
  * @public
92
92
  */
93
- ColumnMenu.prototype.openBy = function(oAnchor) {
93
+ Menu.prototype.openBy = function(oAnchor) {
94
94
  if (!this.getParent()) {
95
95
  Core.getUIArea(Core.getStaticAreaRef()).addContent(this, true);
96
96
  }
@@ -111,7 +111,7 @@ sap.ui.define([
111
111
  * @public
112
112
  * @since 1.98.0
113
113
  */
114
- ColumnMenu.prototype.getAriaHasPopupType = function () {
114
+ Menu.prototype.getAriaHasPopupType = function () {
115
115
  return ARIA_POPUP_TYPE;
116
116
  };
117
117
 
@@ -120,14 +120,14 @@ sap.ui.define([
120
120
  *
121
121
  * @public
122
122
  */
123
- ColumnMenu.prototype.close = function () {
123
+ Menu.prototype.close = function () {
124
124
  this._previousView = null;
125
125
  if (this._oPopover) {
126
126
  this._oPopover.close();
127
127
  }
128
128
  };
129
129
 
130
- ColumnMenu.prototype.exit = function () {
130
+ Menu.prototype.exit = function () {
131
131
  Control.prototype.exit.apply(this, arguments);
132
132
  if (this._oPopover) {
133
133
  delete this._oPopover;
@@ -137,7 +137,7 @@ sap.ui.define([
137
137
  }
138
138
  };
139
139
 
140
- ColumnMenu.prototype._addAllToPrivateAggregation = function (mSettings, sAggregationName) {
140
+ Menu.prototype._addAllToPrivateAggregation = function (mSettings, sAggregationName) {
141
141
  if (mSettings[sAggregationName]) {
142
142
  mSettings[sAggregationName].forEach(function (oItem) {
143
143
  this.addAggregation(sAggregationName, oItem);
@@ -146,7 +146,7 @@ sap.ui.define([
146
146
  }
147
147
  };
148
148
 
149
- ColumnMenu.prototype._initPopover = function () {
149
+ Menu.prototype._initPopover = function () {
150
150
  if (this._oPopover) {
151
151
  return;
152
152
  }
@@ -172,7 +172,7 @@ sap.ui.define([
172
172
  }
173
173
  };
174
174
 
175
- ColumnMenu.prototype._initItemsContainer = function () {
175
+ Menu.prototype._initItemsContainer = function () {
176
176
  var aControlMenuItems = (this.getAggregation("_items") || []).reduce(function (aItems, oItem) {
177
177
  return aItems.concat(oItem.getEffectiveItems());
178
178
  }, []);
@@ -194,7 +194,7 @@ sap.ui.define([
194
194
  }.bind(this));
195
195
  };
196
196
 
197
- var AssociativeControl = Control.extend("sap.m.table.AssociativeControl", {
197
+ var AssociativeControl = Control.extend("sap.m.table.columnmenu.AssociativeControl", {
198
198
  metadata: {
199
199
  "final": true,
200
200
  properties: {
@@ -216,45 +216,45 @@ sap.ui.define([
216
216
  }
217
217
  });
218
218
 
219
- ColumnMenu.prototype._addView = function (oColumnMenuItem) {
219
+ Menu.prototype._addView = function (oMenuItem) {
220
220
  var oItem = new AbstractContainerItem({
221
221
  content: new AssociativeControl({
222
- control: oColumnMenuItem.getContent(),
222
+ control: oMenuItem.getContent(),
223
223
  height: true
224
224
  }),
225
- key: oColumnMenuItem.getId(),
226
- text: oColumnMenuItem.getLabel(),
227
- icon: oColumnMenuItem.getIcon()
225
+ key: oMenuItem.getId(),
226
+ text: oMenuItem.getLabel(),
227
+ icon: oMenuItem.getIcon()
228
228
  });
229
229
 
230
230
  this._oItemsContainer.addView(oItem);
231
- this._setItemVisibility(oColumnMenuItem, oColumnMenuItem.getVisible());
231
+ this._setItemVisibility(oMenuItem, oMenuItem.getVisible());
232
232
  };
233
233
 
234
- ColumnMenu.prototype._createItemsContainer = function () {
235
- var oColumnMenu = this;
234
+ Menu.prototype._createItemsContainer = function () {
235
+ var oMenu = this;
236
236
 
237
237
  this._oBtnCancel = new Button({
238
238
  text: this._getResourceText("table.COLUMNMENU_CANCEL"),
239
239
  press: function () {
240
- var sKey = oColumnMenu._oItemsContainer.getCurrentViewKey();
241
- if (oColumnMenu._fireEvent(Core.byId(sKey), "cancel")) {
242
- oColumnMenu.close();
243
- oColumnMenu.exit();
240
+ var sKey = oMenu._oItemsContainer.getCurrentViewKey();
241
+ if (oMenu._fireEvent(Core.byId(sKey), "cancel")) {
242
+ oMenu.close();
243
+ oMenu.exit();
244
244
  }
245
245
  }
246
246
  });
247
247
  this._oBtnOk = new Button({
248
248
  text: this._getResourceText("table.COLUMNMENU_CONFIRM"),
249
249
  press: function () {
250
- var sKey = oColumnMenu._oItemsContainer.getCurrentViewKey();
251
- if (oColumnMenu._fireEvent(Core.byId(sKey), "confirm")) {
252
- oColumnMenu.close();
250
+ var sKey = oMenu._oItemsContainer.getCurrentViewKey();
251
+ if (oMenu._fireEvent(Core.byId(sKey), "confirm")) {
252
+ oMenu.close();
253
253
  }
254
254
  }
255
255
  });
256
256
 
257
- oColumnMenu._oItemsContainer = new Container({
257
+ oMenu._oItemsContainer = new Container({
258
258
  listLayout: true,
259
259
  defaultView: DEFAULT_KEY,
260
260
  footer: new Toolbar({
@@ -268,9 +268,9 @@ sap.ui.define([
268
268
  var mParameters = oEvent.getParameters();
269
269
 
270
270
  if (mParameters.target !== "$default") {
271
- var oContainerItem = oColumnMenu._oItemsContainer.getView(mParameters.target);
272
- var oColumnMenuItem = oColumnMenu._getItemFromContainerItem(oContainerItem);
273
- if (oColumnMenuItem && oColumnMenuItem.firePress && !oColumnMenu._fireEvent(oColumnMenuItem, "press")) {
271
+ var oContainerItem = oMenu._oItemsContainer.getView(mParameters.target);
272
+ var oColumnMenuItem = oMenu._getItemFromContainerItem(oContainerItem);
273
+ if (oColumnMenuItem && oColumnMenuItem.firePress && !oMenu._fireEvent(oColumnMenuItem, "press")) {
274
274
  oEvent.preventDefault();
275
275
  return;
276
276
  }
@@ -280,49 +280,48 @@ sap.ui.define([
280
280
  var mParameters = oEvent.getParameters();
281
281
  this.oLayout.setShowFooter(mParameters.target !== "$default");
282
282
 
283
- oColumnMenu._previousView = mParameters.source;
283
+ oMenu._previousView = mParameters.source;
284
284
  if (mParameters.target !== "$default") {
285
- var oContainerItem = oColumnMenu._oItemsContainer.getView(mParameters.target);
285
+ var oContainerItem = oMenu._oItemsContainer.getView(mParameters.target);
286
286
  if (oContainerItem) {
287
- var oItem = oColumnMenu._getItemFromContainerItem(oContainerItem);
288
- oColumnMenu._updateButtonState(oItem);
289
- } else {
290
- var oContainerItem = oColumnMenu._oItemsContainer.getView(mParameters.target);
291
- var oItem = oColumnMenu._getItemFromContainerItem(oContainerItem);
292
- oItem && oItem.focus();
293
- this._oPopover && this._oPopover.invalidate();
287
+ var oItem = oMenu._getItemFromContainerItem(oContainerItem);
288
+ oMenu._updateButtonState(oItem);
289
+ oMenu._focusItem();
294
290
  }
291
+ } else {
292
+ oMenu._focusItem();
293
+ this._oPopover && this._oPopover.invalidate();
295
294
  }
296
295
  }
297
296
  });
298
- oColumnMenu._oItemsContainer.getHeader().addContentRight(new Button({
297
+ oMenu._oItemsContainer.getHeader().addContentRight(new Button({
299
298
  text: this._getResourceText("table.COLUMNMENU_RESET"),
300
299
  press: function () {
301
- oColumnMenu._fireEvent(Core.byId(oColumnMenu._oItemsContainer.getCurrentViewKey()), "reset", false);
300
+ oMenu._fireEvent(Core.byId(oMenu._oItemsContainer.getCurrentViewKey()), "reset", false);
302
301
  }
303
302
  }));
304
- this._oPopover.addDependent(oColumnMenu._oItemsContainer);
305
- oColumnMenu.addDependent(oColumnMenu._oItemsContainer);
303
+ this._oPopover.addDependent(oMenu._oItemsContainer);
304
+ oMenu.addDependent(oMenu._oItemsContainer);
306
305
  };
307
306
 
308
- ColumnMenu.prototype._fireEvent = function (oColumnMenuEntry, sEventType, bAllowPreventDefault) {
309
- var fnHook = oColumnMenuEntry["on" + capitalize(sEventType)];
307
+ Menu.prototype._fireEvent = function (oEntry, sEventType, bAllowPreventDefault) {
308
+ var fnHook = oEntry["on" + capitalize(sEventType)];
310
309
  if (bAllowPreventDefault !== false) {
311
310
  var oEvent = jQuery.Event(sEventType);
312
- fnHook.call(oColumnMenuEntry, oEvent);
311
+ fnHook.call(oEntry, oEvent);
313
312
  return !oEvent.isDefaultPrevented();
314
313
  } else {
315
- fnHook.call(oColumnMenuEntry);
314
+ fnHook.call(oEntry);
316
315
  return true;
317
316
  }
318
317
  };
319
318
 
320
- ColumnMenu.prototype._getResourceText = function(sText, vValue) {
319
+ Menu.prototype._getResourceText = function(sText, vValue) {
321
320
  this.oResourceBundle = this.oResourceBundle ? this.oResourceBundle : sap.ui.getCore().getLibraryResourceBundle("sap.m");
322
321
  return sText ? this.oResourceBundle.getText(sText, vValue) : this.oResourceBundle;
323
322
  };
324
323
 
325
- ColumnMenu.prototype._getItemFromContainerItem = function (oContainerItem) {
324
+ Menu.prototype._getItemFromContainerItem = function (oContainerItem) {
326
325
  // Low performance as linear search has to be done
327
326
  var oItem = this.getAggregation("_items") && this.getAggregation("_items").find(function(item) {
328
327
  return item.getId() == oContainerItem.getKey();
@@ -335,14 +334,14 @@ sap.ui.define([
335
334
  return oItem;
336
335
  };
337
336
 
338
- ColumnMenu.prototype._updateButtonState = function (oItem) {
337
+ Menu.prototype._updateButtonState = function (oItem) {
339
338
  this._oItemsContainer.getHeader().getContentRight()[0].setEnabled(oItem.getButtonSettings()["reset"]["enabled"]);
340
339
  this._oItemsContainer.getHeader().getContentRight()[0].setVisible(oItem.getButtonSettings()["reset"]["visible"]);
341
340
  this._oBtnOk.setVisible(oItem.getButtonSettings()["confirm"]["visible"]);
342
341
  this._oBtnCancel.setVisible(oItem.getButtonSettings()["cancel"]["visible"]);
343
342
  };
344
343
 
345
- ColumnMenu.prototype._focusItem = function () {
344
+ Menu.prototype._focusItem = function () {
346
345
  if (this._previousView == DEFAULT_KEY) {
347
346
  this._oItemsContainer._getNavBackBtn().focus();
348
347
  } else {
@@ -353,7 +352,7 @@ sap.ui.define([
353
352
  }
354
353
  };
355
354
 
356
- ColumnMenu.prototype._focusInitialQuickAction = function () {
355
+ Menu.prototype._focusInitialQuickAction = function () {
357
356
  // Does not work with content, which contains multiple items
358
357
  if (this.getItems().length == 0 && !this.getAggregation("_items")) {
359
358
  var aQuickActions = [];
@@ -366,7 +365,7 @@ sap.ui.define([
366
365
  }
367
366
  };
368
367
 
369
- ColumnMenu.prototype._setItemVisibility = function (oItem, bVisible) {
368
+ Menu.prototype._setItemVisibility = function (oItem, bVisible) {
370
369
  var oList = this._oItemsContainer._getNavigationList().getItems();
371
370
  var oListItem = oList.find(function (oListItem) {
372
371
  return oListItem._key == oItem.getId();
@@ -374,5 +373,5 @@ sap.ui.define([
374
373
  oListItem && oListItem.setVisible(bVisible);
375
374
  };
376
375
 
377
- return ColumnMenu;
376
+ return Menu;
378
377
  });
@@ -0,0 +1,81 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+ sap.ui.define([], function () {
7
+ "use strict";
8
+
9
+ var MenuRenderer = {
10
+ apiVersion: 2
11
+ };
12
+
13
+ MenuRenderer.render = function (oRm, oMenu) {
14
+ oRm.openStart("div", oMenu);
15
+ oRm.class("sapMTCMenu");
16
+
17
+ oRm.openEnd();
18
+ this.renderQuickActions(oRm, oMenu);
19
+ this.renderItems(oRm, oMenu);
20
+ oRm.close("div");
21
+ };
22
+
23
+ MenuRenderer.renderQuickActions = function (oRm, oMenu) {
24
+ if (oMenu.getQuickActions().length === 0 && !oMenu.getAggregation("_quickActions")) {
25
+ return;
26
+ }
27
+
28
+ oRm.openStart("div", oMenu.getId() + "-quickActions");
29
+ if (oMenu._oItemsContainer) {
30
+ if (oMenu._oItemsContainer.getCurrentViewKey() === "$default") {
31
+ oRm.class("sapMTCMenuQAList");
32
+ } else {
33
+ oRm.class("sapMTCMenuQAListHidden");
34
+ }
35
+ } else {
36
+ oRm.class("sapMTCMenuQAList");
37
+ }
38
+ oRm.openEnd();
39
+
40
+ var aQuickActions = (oMenu.getAggregation("_quickActions") || []).concat(oMenu.getQuickActions());
41
+ aQuickActions.forEach(function (oQuickAction) {
42
+ oQuickAction.getEffectiveQuickActions().forEach(function (oQuickAction) {
43
+ this.renderQuickAction(oRm, oQuickAction);
44
+ }, this);
45
+ }, this);
46
+
47
+ oRm.close("div");
48
+ };
49
+
50
+ MenuRenderer.renderQuickAction = function (oRm, oQuickAction) {
51
+ oRm.openStart("div", oQuickAction);
52
+ oRm.class("sapMTCMenuQAction");
53
+ oRm.openEnd();
54
+ // Label
55
+ oRm.openStart("div");
56
+ oRm.class("sapMTCMenuQALabel");
57
+ oRm.openEnd();
58
+ oRm.text(oQuickAction.getLabel());
59
+ oRm.close("div");
60
+ // Content
61
+ oRm.openStart("div");
62
+ oRm.openEnd();
63
+ oRm.renderControl(oQuickAction.getContent());
64
+ oRm.close("div");
65
+ oRm.close("div");
66
+ };
67
+
68
+ MenuRenderer.renderItems = function (oRm, oMenu) {
69
+ if (oMenu.getItems().length === 0 && !oMenu.getAggregation("_items")) {
70
+ return;
71
+ }
72
+
73
+ oRm.openStart("div");
74
+ oRm.class("sapMTCMenuContainerWrapper");
75
+ oRm.openEnd();
76
+ oRm.renderControl(oMenu._oItemsContainer);
77
+ oRm.close("div");
78
+ };
79
+
80
+ return MenuRenderer;
81
+ });
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/m/table/QuickActionBase"
8
+ "sap/m/table/columnmenu/QuickActionBase"
9
9
  ], function (
10
10
  QuickActionBase
11
11
  ) {
@@ -14,24 +14,25 @@ sap.ui.define([
14
14
  /**
15
15
  * Constructor for a new QuickAction.
16
16
  *
17
- * @param {string} [sId] ID for the new control, generated automatically if no ID is given
18
- * @param {object} [mSettings] Initial settings for the new control
17
+ * @param {string} [sId] ID for the new QuickAction, generated automatically if no ID is given
18
+ * @param {object} [mSettings] Initial settings for the new QuickAction
19
19
  *
20
20
  * @class
21
- * This control serves as a quick action for sap.m.table.ColumnMenu.
21
+ * The QuickAction serves as a quick action for sap.m.table.columnmenu.Menu.
22
22
  * It can be used to specify control- and application specific quick actions.
23
23
  *
24
- * @extends sap.m.table.QuickActionBase
24
+ * @extends sap.m.table.columnmenu.QuickActionBase
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.98.0
27
+ * @version 1.99.0
28
28
  *
29
29
  * @private
30
+ * @since 1.99
30
31
  * @experimental
31
32
  *
32
- * @alias sap.m.table.QuickAction
33
+ * @alias sap.m.table.columnmenu.QuickAction
33
34
  */
34
- var QuickAction = QuickActionBase.extend("sap.m.table.QuickAction", {
35
+ var QuickAction = QuickActionBase.extend("sap.m.table.columnmenu.QuickAction", {
35
36
  metadata: {
36
37
  library: "sap.m",
37
38
  properties: {
@@ -0,0 +1,54 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+ sap.ui.define([
7
+ "sap/m/table/columnmenu/Entry"
8
+ ], function(
9
+ Entry
10
+ ) {
11
+ "use strict";
12
+
13
+ /**
14
+ * Constructor for a new QuickActionBase.
15
+ *
16
+ * @param {string} [sId] ID for the new QuickActionBase, generated automatically if no ID is given
17
+ * @param {object} [mSettings] Initial settings for the new QuickActionBase
18
+ *
19
+ * @class
20
+ * The QuickActionBase serves as a base class for quick actions.
21
+ * This base class is faceless and should be inherited by elements which intend to serve as quick actions for the sap.m.table.columnmenu.Menu.
22
+ *
23
+ * @extends sap.m.table.columnmenu.Entry
24
+ *
25
+ * @author SAP SE
26
+ * @version 1.99.0
27
+ *
28
+ * @private
29
+ * @experimental
30
+ *
31
+ * @alias sap.m.table.columnmenu.QuickActionBase
32
+ */
33
+ var QuickActionBase = Entry.extend("sap.m.table.columnmenu.QuickActionBase", {
34
+ metadata: {
35
+ "abstract": true,
36
+ library: "sap.m"
37
+ }
38
+ });
39
+
40
+ /**
41
+ * This method can be used to retrieve the effective quick actions.
42
+ *
43
+ * Subclasses can implement this method, if there are compositions of other quick actions.
44
+ * @returns {sap.m.table.columnmenu.QuickActionBase[]} The effective quick actions
45
+ *
46
+ * @virtual
47
+ * @public
48
+ */
49
+ QuickActionBase.prototype.getEffectiveQuickActions = function() {
50
+ return [this];
51
+ };
52
+
53
+ return QuickActionBase;
54
+ });
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define([
8
+ "sap/ui/core/Element"
9
+ ], function (
10
+ Element
11
+ ) {
12
+ "use strict";
13
+
14
+ /**
15
+ * Constructor for a new QuickActionItem.
16
+ *
17
+ * @param {string} [sId] ID for the new QuickActionItem, generated automatically if no ID is given
18
+ * @param {object} [mSettings] Initial settings for the new QuickActionItem
19
+ *
20
+ * @class
21
+ * This element serves as a quick action item.
22
+ * It can be used to specify control- and application specific quick action items.
23
+ *
24
+ * @extends sap.ui.core.Element
25
+ *
26
+ * @author SAP SE
27
+ * @version 1.99.0
28
+ *
29
+ * @private
30
+ * @experimental
31
+ *
32
+ * @alias sap.m.table.columnmenu.QuickActionItem
33
+ */
34
+ var QuickActionItem = Element.extend("sap.m.table.columnmenu.QuickActionItem", {
35
+ metadata: {
36
+ library: "sap.m",
37
+ properties: {
38
+ /**
39
+ * The property name
40
+ */
41
+ key: { type: "string" },
42
+ /**
43
+ * Defines the text for the label.
44
+ */
45
+ label: { type: "string" }
46
+ }
47
+ }
48
+ });
49
+
50
+ return QuickActionItem;
51
+ });