@openui5/sap.m 1.129.0 → 1.130.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 (477) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +4 -4
  3. package/src/sap/m/.library +2 -4
  4. package/src/sap/m/AccButton.js +1 -1
  5. package/src/sap/m/ActionListItem.js +1 -1
  6. package/src/sap/m/ActionSelect.js +1 -1
  7. package/src/sap/m/ActionSheet.js +1 -1
  8. package/src/sap/m/ActionTile.js +7 -8
  9. package/src/sap/m/ActionTileContent.js +1 -2
  10. package/src/sap/m/AdditionalTextButton.js +1 -1
  11. package/src/sap/m/App.js +1 -1
  12. package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
  13. package/src/sap/m/Avatar.js +30 -11
  14. package/src/sap/m/AvatarRenderer.js +8 -4
  15. package/src/sap/m/Bar.js +1 -1
  16. package/src/sap/m/Breadcrumbs.js +8 -2
  17. package/src/sap/m/BreadcrumbsRenderer.js +1 -1
  18. package/src/sap/m/BusyDialog.js +1 -1
  19. package/src/sap/m/BusyIndicator.js +1 -1
  20. package/src/sap/m/Button.js +1 -1
  21. package/src/sap/m/Carousel.js +31 -30
  22. package/src/sap/m/CarouselLayout.js +1 -1
  23. package/src/sap/m/CarouselRenderer.js +5 -5
  24. package/src/sap/m/CheckBox.js +13 -1
  25. package/src/sap/m/CheckBoxRenderer.js +40 -29
  26. package/src/sap/m/ColorPalette.js +1 -1
  27. package/src/sap/m/ColorPalettePopover.js +1 -1
  28. package/src/sap/m/Column.js +1 -1
  29. package/src/sap/m/ColumnHeaderPopover.js +1 -1
  30. package/src/sap/m/ColumnListItem.js +1 -1
  31. package/src/sap/m/ColumnPopoverActionItem.js +1 -1
  32. package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
  33. package/src/sap/m/ColumnPopoverItem.js +1 -1
  34. package/src/sap/m/ColumnPopoverSelectListItem.js +1 -1
  35. package/src/sap/m/ColumnPopoverSortItem.js +1 -1
  36. package/src/sap/m/ComboBox.js +1 -1
  37. package/src/sap/m/ComboBoxBase.js +1 -1
  38. package/src/sap/m/ComboBoxTextField.js +1 -1
  39. package/src/sap/m/ContentConfig.js +1 -1
  40. package/src/sap/m/CustomListItem.js +1 -1
  41. package/src/sap/m/CustomTile.js +1 -1
  42. package/src/sap/m/CustomTreeItem.js +1 -1
  43. package/src/sap/m/DatePicker.js +1 -1
  44. package/src/sap/m/DateRangeSelection.js +2 -2
  45. package/src/sap/m/DateTimeField.js +1 -1
  46. package/src/sap/m/DateTimeInput.js +1 -1
  47. package/src/sap/m/DateTimePicker.js +1 -1
  48. package/src/sap/m/Dialog.js +1 -1
  49. package/src/sap/m/DisplayListItem.js +1 -1
  50. package/src/sap/m/DraftIndicator.js +1 -1
  51. package/src/sap/m/DynamicDate.js +1 -1
  52. package/src/sap/m/DynamicDateFormat.js +14 -0
  53. package/src/sap/m/DynamicDateOption.js +1 -1
  54. package/src/sap/m/DynamicDateRange.js +76 -7
  55. package/src/sap/m/DynamicDateUtil.js +28 -0
  56. package/src/sap/m/DynamicDateValueHelpUIType.js +8 -3
  57. package/src/sap/m/ExpandableText.js +1 -1
  58. package/src/sap/m/FacetFilter.js +1 -1
  59. package/src/sap/m/FacetFilterItem.js +1 -1
  60. package/src/sap/m/FacetFilterList.js +1 -1
  61. package/src/sap/m/FeedContent.js +1 -1
  62. package/src/sap/m/FeedInput.js +1 -1
  63. package/src/sap/m/FeedListItem.js +1 -1
  64. package/src/sap/m/FeedListItemAction.js +1 -1
  65. package/src/sap/m/Fiori20Adapter.js +2 -2
  66. package/src/sap/m/FlexBox.js +1 -1
  67. package/src/sap/m/FlexItemData.js +1 -1
  68. package/src/sap/m/FormattedText.js +1 -1
  69. package/src/sap/m/GenericTag.js +1 -1
  70. package/src/sap/m/GenericTile.js +7 -19
  71. package/src/sap/m/GroupHeaderListItem.js +1 -1
  72. package/src/sap/m/GrowingList.js +1 -1
  73. package/src/sap/m/HBox.js +1 -1
  74. package/src/sap/m/HeaderContainer.js +1 -2
  75. package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
  76. package/src/sap/m/IconTabBar.js +1 -1
  77. package/src/sap/m/IconTabBarSelectList.js +1 -1
  78. package/src/sap/m/IconTabFilter.js +1 -1
  79. package/src/sap/m/IconTabFilterExpandButtonBadge.js +1 -1
  80. package/src/sap/m/IconTabHeader.js +1 -1
  81. package/src/sap/m/IconTabSeparator.js +1 -1
  82. package/src/sap/m/IllustratedMessage.js +1 -1
  83. package/src/sap/m/Illustration.js +1 -1
  84. package/src/sap/m/Image.js +1 -1
  85. package/src/sap/m/ImageContent.js +1 -1
  86. package/src/sap/m/Input.js +7 -4
  87. package/src/sap/m/InputBase.js +15 -3
  88. package/src/sap/m/InputListItem.js +8 -2
  89. package/src/sap/m/InputListItemRenderer.js +16 -6
  90. package/src/sap/m/Label.js +14 -3
  91. package/src/sap/m/LabelRenderer.js +48 -5
  92. package/src/sap/m/LightBox.js +1 -1
  93. package/src/sap/m/LightBoxItem.js +1 -1
  94. package/src/sap/m/Link.js +15 -3
  95. package/src/sap/m/LinkTileContent.js +1 -1
  96. package/src/sap/m/List.js +1 -1
  97. package/src/sap/m/ListBase.js +4 -4
  98. package/src/sap/m/ListItemBase.js +1 -1
  99. package/src/sap/m/MaskEnabler.js +1 -1
  100. package/src/sap/m/MaskInput.js +1 -1
  101. package/src/sap/m/MaskInputRule.js +1 -1
  102. package/src/sap/m/Menu.js +24 -6
  103. package/src/sap/m/MenuButton.js +1 -1
  104. package/src/sap/m/MenuItem.js +1 -1
  105. package/src/sap/m/MenuItemGroup.js +1 -1
  106. package/src/sap/m/MenuListItem.js +1 -1
  107. package/src/sap/m/MessageItem.js +1 -1
  108. package/src/sap/m/MessageListItem.js +1 -1
  109. package/src/sap/m/MessagePage.js +1 -1
  110. package/src/sap/m/MessagePopover.js +1 -1
  111. package/src/sap/m/MessagePopoverItem.js +1 -1
  112. package/src/sap/m/MessageStrip.js +1 -1
  113. package/src/sap/m/MessageToast.js +1 -1
  114. package/src/sap/m/MessageView.js +6 -2
  115. package/src/sap/m/MultiComboBox.js +1 -1
  116. package/src/sap/m/MultiEditField.js +1 -1
  117. package/src/sap/m/MultiInput.js +1 -1
  118. package/src/sap/m/NavContainer.js +1 -1
  119. package/src/sap/m/NewsContent.js +1 -1
  120. package/src/sap/m/NotificationList.js +1 -1
  121. package/src/sap/m/NotificationListBase.js +1 -1
  122. package/src/sap/m/NotificationListGroup.js +1 -1
  123. package/src/sap/m/NotificationListItem.js +1 -1
  124. package/src/sap/m/NumericContent.js +1 -1
  125. package/src/sap/m/NumericInput.js +1 -1
  126. package/src/sap/m/ObjectAttribute.js +1 -1
  127. package/src/sap/m/ObjectHeader.js +1 -1
  128. package/src/sap/m/ObjectIdentifier.js +1 -1
  129. package/src/sap/m/ObjectListItem.js +1 -1
  130. package/src/sap/m/ObjectMarker.js +1 -1
  131. package/src/sap/m/ObjectNumber.js +1 -1
  132. package/src/sap/m/ObjectStatus.js +14 -3
  133. package/src/sap/m/OverflowToolbar.js +1 -1
  134. package/src/sap/m/OverflowToolbarAssociativePopover.js +1 -1
  135. package/src/sap/m/OverflowToolbarButton.js +1 -1
  136. package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
  137. package/src/sap/m/OverflowToolbarMenuButton.js +1 -1
  138. package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
  139. package/src/sap/m/P13nAnyFilterItem.js +1 -1
  140. package/src/sap/m/P13nColumnsItem.js +1 -1
  141. package/src/sap/m/P13nColumnsPanel.js +1 -1
  142. package/src/sap/m/P13nConditionPanel.js +1 -1
  143. package/src/sap/m/P13nDialog.js +1 -1
  144. package/src/sap/m/P13nDimMeasureItem.js +1 -1
  145. package/src/sap/m/P13nDimMeasurePanel.js +1 -1
  146. package/src/sap/m/P13nFilterItem.js +1 -1
  147. package/src/sap/m/P13nFilterPanel.js +1 -1
  148. package/src/sap/m/P13nGroupItem.js +1 -1
  149. package/src/sap/m/P13nGroupPanel.js +1 -1
  150. package/src/sap/m/P13nItem.js +1 -1
  151. package/src/sap/m/P13nPanel.js +1 -1
  152. package/src/sap/m/P13nSelectionItem.js +1 -1
  153. package/src/sap/m/P13nSelectionPanel.js +1 -1
  154. package/src/sap/m/P13nSortItem.js +1 -1
  155. package/src/sap/m/P13nSortPanel.js +1 -1
  156. package/src/sap/m/PDFViewer.js +1 -1
  157. package/src/sap/m/Page.js +1 -1
  158. package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
  159. package/src/sap/m/PagingButton.js +1 -1
  160. package/src/sap/m/Panel.js +1 -1
  161. package/src/sap/m/PlanningCalendar.js +1 -1
  162. package/src/sap/m/PlanningCalendarHeader.js +1 -1
  163. package/src/sap/m/PlanningCalendarLegend.js +1 -1
  164. package/src/sap/m/PlanningCalendarRow.js +1 -1
  165. package/src/sap/m/PlanningCalendarView.js +1 -1
  166. package/src/sap/m/Popover.js +1 -1
  167. package/src/sap/m/ProgressIndicator.js +1 -1
  168. package/src/sap/m/PullToRefresh.js +1 -1
  169. package/src/sap/m/QuickView.js +1 -1
  170. package/src/sap/m/QuickViewBase.js +1 -1
  171. package/src/sap/m/QuickViewCard.js +1 -1
  172. package/src/sap/m/QuickViewGroup.js +1 -1
  173. package/src/sap/m/QuickViewGroupElement.js +1 -1
  174. package/src/sap/m/QuickViewPage.js +1 -1
  175. package/src/sap/m/RadioButton.js +1 -1
  176. package/src/sap/m/RadioButtonGroup.js +1 -1
  177. package/src/sap/m/RangeSlider.js +1 -1
  178. package/src/sap/m/RatingIndicator.js +1 -1
  179. package/src/sap/m/ResponsivePopover.js +1 -1
  180. package/src/sap/m/ResponsiveScale.js +1 -1
  181. package/src/sap/m/ScrollBar.js +1 -1
  182. package/src/sap/m/ScrollContainer.js +1 -1
  183. package/src/sap/m/SearchField.js +1 -1
  184. package/src/sap/m/SegmentedButton.js +1 -1
  185. package/src/sap/m/SegmentedButtonItem.js +1 -1
  186. package/src/sap/m/Select.js +22 -6
  187. package/src/sap/m/SelectDialog.js +1 -1
  188. package/src/sap/m/SelectDialogBase.js +1 -1
  189. package/src/sap/m/SelectList.js +1 -1
  190. package/src/sap/m/SelectionDetails.js +1 -1
  191. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  192. package/src/sap/m/SelectionDetailsItem.js +1 -1
  193. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  194. package/src/sap/m/Shell.js +1 -1
  195. package/src/sap/m/SimpleFixFlex.js +1 -1
  196. package/src/sap/m/SinglePlanningCalendar.js +1 -1
  197. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  198. package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
  199. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
  200. package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +11 -4
  201. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  202. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  203. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  204. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  205. package/src/sap/m/SlideTile.js +1 -2
  206. package/src/sap/m/Slider.js +2 -1
  207. package/src/sap/m/SliderTooltip.js +1 -1
  208. package/src/sap/m/SliderTooltipBase.js +1 -1
  209. package/src/sap/m/SliderTooltipContainer.js +1 -1
  210. package/src/sap/m/SplitApp.js +1 -1
  211. package/src/sap/m/SplitButton.js +1 -1
  212. package/src/sap/m/SplitContainer.js +1 -1
  213. package/src/sap/m/StandardDynamicDateOption.js +354 -27
  214. package/src/sap/m/StandardListItem.js +1 -1
  215. package/src/sap/m/StandardTile.js +1 -1
  216. package/src/sap/m/StandardTreeItem.js +1 -1
  217. package/src/sap/m/StepInput.js +1 -1
  218. package/src/sap/m/SuggestionItem.js +1 -1
  219. package/src/sap/m/SuggestionsPopover.js +1 -1
  220. package/src/sap/m/Switch.js +1 -1
  221. package/src/sap/m/TabContainer.js +39 -44
  222. package/src/sap/m/TabContainerItem.js +40 -1
  223. package/src/sap/m/TabStrip.js +1 -1
  224. package/src/sap/m/TabStripItem.js +1 -1
  225. package/src/sap/m/Table.js +2 -4
  226. package/src/sap/m/TablePersoController.js +1 -1
  227. package/src/sap/m/TablePersoDialog.js +1 -1
  228. package/src/sap/m/TablePersoProvider.js +1 -1
  229. package/src/sap/m/TableSelectDialog.js +99 -29
  230. package/src/sap/m/Text.js +15 -3
  231. package/src/sap/m/TextArea.js +1 -1
  232. package/src/sap/m/Tile.js +1 -1
  233. package/src/sap/m/TileContainer.js +1 -1
  234. package/src/sap/m/TileContent.js +3 -3
  235. package/src/sap/m/TileInfo.js +1 -1
  236. package/src/sap/m/TimePicker.js +1 -1
  237. package/src/sap/m/TimePickerClock.js +1 -1
  238. package/src/sap/m/TimePickerClocks.js +1 -1
  239. package/src/sap/m/TimePickerInputs.js +1 -1
  240. package/src/sap/m/TimePickerInternals.js +1 -1
  241. package/src/sap/m/TimePickerSlider.js +1 -1
  242. package/src/sap/m/TimePickerSliders.js +1 -1
  243. package/src/sap/m/Title.js +1 -1
  244. package/src/sap/m/TitlePropagationSupport.js +1 -1
  245. package/src/sap/m/ToggleButton.js +1 -1
  246. package/src/sap/m/Token.js +1 -1
  247. package/src/sap/m/Tokenizer.js +1 -1
  248. package/src/sap/m/Toolbar.js +1 -1
  249. package/src/sap/m/ToolbarLayoutData.js +1 -1
  250. package/src/sap/m/ToolbarSeparator.js +1 -1
  251. package/src/sap/m/ToolbarSpacer.js +1 -1
  252. package/src/sap/m/Tree.js +1 -1
  253. package/src/sap/m/TreeItemBase.js +1 -1
  254. package/src/sap/m/UploadCollection.js +1 -1
  255. package/src/sap/m/UploadCollectionItem.js +1 -1
  256. package/src/sap/m/UploadCollectionParameter.js +1 -1
  257. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  258. package/src/sap/m/VBox.js +1 -1
  259. package/src/sap/m/ValueStateHeader.js +1 -1
  260. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  261. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  262. package/src/sap/m/ViewSettingsDialog.js +1 -1
  263. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  264. package/src/sap/m/ViewSettingsItem.js +1 -1
  265. package/src/sap/m/VisibleItem.js +1 -1
  266. package/src/sap/m/WheelSlider.js +1 -1
  267. package/src/sap/m/WheelSliderContainer.js +1 -1
  268. package/src/sap/m/Wizard.js +1 -1
  269. package/src/sap/m/WizardProgressNavigator.js +1 -1
  270. package/src/sap/m/WizardStep.js +1 -1
  271. package/src/sap/m/_thirdparty/purify.js +632 -697
  272. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  273. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  274. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  275. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  276. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
  277. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  278. package/src/sap/m/designtime/messagebundle_da.properties +2 -2
  279. package/src/sap/m/designtime/messagebundle_mk.properties +3 -3
  280. package/src/sap/m/inputUtils/ListHelpers.js +4 -0
  281. package/src/sap/m/library.js +111 -6
  282. package/src/sap/m/messagebundle.properties +39 -28
  283. package/src/sap/m/messagebundle_ar.properties +26 -10
  284. package/src/sap/m/messagebundle_bg.properties +29 -13
  285. package/src/sap/m/messagebundle_ca.properties +21 -5
  286. package/src/sap/m/messagebundle_cnr.properties +23 -7
  287. package/src/sap/m/messagebundle_cs.properties +23 -7
  288. package/src/sap/m/messagebundle_cy.properties +30 -14
  289. package/src/sap/m/messagebundle_da.properties +34 -18
  290. package/src/sap/m/messagebundle_de.properties +21 -5
  291. package/src/sap/m/messagebundle_el.properties +22 -6
  292. package/src/sap/m/messagebundle_en.properties +22 -20
  293. package/src/sap/m/messagebundle_en_GB.properties +21 -5
  294. package/src/sap/m/messagebundle_en_US_saprigi.properties +22 -6
  295. package/src/sap/m/messagebundle_es.properties +25 -9
  296. package/src/sap/m/messagebundle_es_MX.properties +22 -6
  297. package/src/sap/m/messagebundle_et.properties +21 -5
  298. package/src/sap/m/messagebundle_fi.properties +22 -6
  299. package/src/sap/m/messagebundle_fr.properties +34 -18
  300. package/src/sap/m/messagebundle_fr_CA.properties +20 -4
  301. package/src/sap/m/messagebundle_hi.properties +23 -7
  302. package/src/sap/m/messagebundle_hr.properties +76 -60
  303. package/src/sap/m/messagebundle_hu.properties +21 -5
  304. package/src/sap/m/messagebundle_id.properties +23 -7
  305. package/src/sap/m/messagebundle_it.properties +25 -9
  306. package/src/sap/m/messagebundle_iw.properties +21 -5
  307. package/src/sap/m/messagebundle_ja.properties +23 -7
  308. package/src/sap/m/messagebundle_kk.properties +23 -7
  309. package/src/sap/m/messagebundle_ko.properties +23 -7
  310. package/src/sap/m/messagebundle_lt.properties +21 -5
  311. package/src/sap/m/messagebundle_lv.properties +22 -6
  312. package/src/sap/m/messagebundle_mk.properties +28 -12
  313. package/src/sap/m/messagebundle_ms.properties +22 -6
  314. package/src/sap/m/messagebundle_nl.properties +23 -7
  315. package/src/sap/m/messagebundle_no.properties +23 -7
  316. package/src/sap/m/messagebundle_pl.properties +21 -5
  317. package/src/sap/m/messagebundle_pt.properties +21 -5
  318. package/src/sap/m/messagebundle_pt_PT.properties +21 -5
  319. package/src/sap/m/messagebundle_ro.properties +22 -6
  320. package/src/sap/m/messagebundle_ru.properties +23 -7
  321. package/src/sap/m/messagebundle_sh.properties +23 -7
  322. package/src/sap/m/messagebundle_sk.properties +23 -7
  323. package/src/sap/m/messagebundle_sl.properties +23 -7
  324. package/src/sap/m/messagebundle_sr.properties +23 -7
  325. package/src/sap/m/messagebundle_sv.properties +26 -10
  326. package/src/sap/m/messagebundle_th.properties +24 -8
  327. package/src/sap/m/messagebundle_tr.properties +22 -6
  328. package/src/sap/m/messagebundle_uk.properties +22 -6
  329. package/src/sap/m/messagebundle_vi.properties +26 -10
  330. package/src/sap/m/messagebundle_zh_CN.properties +23 -7
  331. package/src/sap/m/messagebundle_zh_TW.properties +21 -5
  332. package/src/sap/m/p13n/AbstractContainer.js +2 -2
  333. package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
  334. package/src/sap/m/p13n/BasePanel.js +1 -1
  335. package/src/sap/m/p13n/Container.js +1 -1
  336. package/src/sap/m/p13n/Engine.js +1 -1
  337. package/src/sap/m/p13n/FilterController.js +1 -1
  338. package/src/sap/m/p13n/FilterPanel.js +1 -1
  339. package/src/sap/m/p13n/GroupController.js +1 -1
  340. package/src/sap/m/p13n/GroupPanel.js +1 -1
  341. package/src/sap/m/p13n/MessageStrip.js +1 -1
  342. package/src/sap/m/p13n/Popup.js +1 -1
  343. package/src/sap/m/p13n/QueryPanel.js +1 -1
  344. package/src/sap/m/p13n/SelectionController.js +1 -1
  345. package/src/sap/m/p13n/SelectionPanel.js +1 -1
  346. package/src/sap/m/p13n/SortController.js +1 -1
  347. package/src/sap/m/p13n/SortPanel.js +1 -1
  348. package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
  349. package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
  350. package/src/sap/m/p13n/modules/UIManager.js +1 -1
  351. package/src/sap/m/plugins/CellSelector.js +10 -6
  352. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  353. package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
  354. package/src/sap/m/plugins/CopyProvider.js +1 -1
  355. package/src/sap/m/plugins/DataStateIndicator.js +3 -2
  356. package/src/sap/m/plugins/PasteProvider.js +1 -1
  357. package/src/sap/m/plugins/PluginBase.js +1 -1
  358. package/src/sap/m/plugins/UploadSetwithTable.js +54 -12
  359. package/src/sap/m/semantic/AddAction.js +1 -1
  360. package/src/sap/m/semantic/CancelAction.js +1 -1
  361. package/src/sap/m/semantic/DeleteAction.js +1 -1
  362. package/src/sap/m/semantic/DetailPage.js +1 -1
  363. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  364. package/src/sap/m/semantic/EditAction.js +1 -1
  365. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  366. package/src/sap/m/semantic/FilterAction.js +1 -1
  367. package/src/sap/m/semantic/FilterSelect.js +1 -1
  368. package/src/sap/m/semantic/FlagAction.js +1 -1
  369. package/src/sap/m/semantic/ForwardAction.js +1 -1
  370. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  371. package/src/sap/m/semantic/GroupAction.js +1 -1
  372. package/src/sap/m/semantic/GroupSelect.js +1 -1
  373. package/src/sap/m/semantic/MainAction.js +1 -1
  374. package/src/sap/m/semantic/MasterPage.js +1 -1
  375. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  376. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  377. package/src/sap/m/semantic/NegativeAction.js +1 -1
  378. package/src/sap/m/semantic/OpenInAction.js +1 -1
  379. package/src/sap/m/semantic/PositiveAction.js +1 -1
  380. package/src/sap/m/semantic/PrintAction.js +1 -1
  381. package/src/sap/m/semantic/SaveAction.js +1 -1
  382. package/src/sap/m/semantic/Segment.js +1 -1
  383. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  384. package/src/sap/m/semantic/SemanticButton.js +1 -1
  385. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  386. package/src/sap/m/semantic/SemanticControl.js +1 -1
  387. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  388. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  389. package/src/sap/m/semantic/SemanticPage.js +1 -1
  390. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  391. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  392. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  393. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  394. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  395. package/src/sap/m/semantic/ShareMenu.js +1 -1
  396. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  397. package/src/sap/m/semantic/SortAction.js +1 -1
  398. package/src/sap/m/semantic/SortSelect.js +1 -1
  399. package/src/sap/m/table/ColumnWidthController.js +1 -1
  400. package/src/sap/m/table/Util.js +1 -1
  401. package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
  402. package/src/sap/m/table/columnmenu/Entry.js +1 -1
  403. package/src/sap/m/table/columnmenu/Item.js +1 -1
  404. package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
  405. package/src/sap/m/table/columnmenu/Menu.js +1 -1
  406. package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
  407. package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
  408. package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
  409. package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
  410. package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
  411. package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
  412. package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
  413. package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
  414. package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
  415. package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
  416. package/src/sap/m/themes/base/Breadcrumbs.less +5 -0
  417. package/src/sap/m/themes/base/Carousel.less +21 -7
  418. package/src/sap/m/themes/base/ColumnListItem.less +29 -22
  419. package/src/sap/m/themes/base/ColumnResizer.less +4 -4
  420. package/src/sap/m/themes/base/DisplayListItem.less +5 -10
  421. package/src/sap/m/themes/base/DynamicDateRange.less +3 -1
  422. package/src/sap/m/themes/base/GroupHeaderListItem.less +11 -15
  423. package/src/sap/m/themes/base/IconTabBar.less +168 -134
  424. package/src/sap/m/themes/base/IconTabBarSelectList.less +22 -25
  425. package/src/sap/m/themes/base/Illustration.less +26 -10
  426. package/src/sap/m/themes/base/InputListItem.less +16 -17
  427. package/src/sap/m/themes/base/Label.less +32 -81
  428. package/src/sap/m/themes/base/Link.less +16 -17
  429. package/src/sap/m/themes/base/ObjectStatus.less +29 -0
  430. package/src/sap/m/themes/base/RatingIndicator.less +2 -2
  431. package/src/sap/m/themes/base/StandardListItem.less +21 -0
  432. package/src/sap/m/themes/base/TabContainer.less +1 -1
  433. package/src/sap/m/themes/base/Table.less +10 -2
  434. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-BeforeSearch.svg +10 -0
  435. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoActivities.svg +23 -0
  436. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoData.svg +9 -0
  437. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoEntries.svg +12 -0
  438. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoMail.svg +10 -0
  439. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoNotifications.svg +10 -0
  440. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoSavedItems.svg +9 -0
  441. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoTasks.svg +20 -0
  442. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessBalloon.svg +19 -0
  443. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessCheckMark.svg +7 -0
  444. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToLoad.svg +10 -0
  445. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToUpload.svg +10 -0
  446. package/src/sap/m/upload/ActionsPlaceholder.js +12 -2
  447. package/src/sap/m/upload/Column.js +1 -1
  448. package/src/sap/m/upload/FilePreviewDialog.js +1 -2
  449. package/src/sap/m/upload/UploadItem.js +1 -1
  450. package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
  451. package/src/sap/m/upload/UploadSet.js +6 -3
  452. package/src/sap/m/upload/UploadSetItem.js +1 -1
  453. package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
  454. package/src/sap/m/upload/UploaderTableItem.js +7 -10
  455. package/src/sap/m/upload/UploadSetwithTable.js +0 -1607
  456. package/src/sap/m/upload/UploadSetwithTableItem.js +0 -344
  457. package/src/sap/m/upload/UploadSetwithTableItemRenderer.js +0 -23
  458. package/src/sap/m/upload/UploadSetwithTableRenderer.js +0 -31
  459. package/src/sap/m/upload/p13n/PersManager.js +0 -253
  460. package/src/sap/m/upload/p13n/flexibility/UploadSetwithTable.flexibility.js +0 -32
  461. package/src/sap/m/upload/p13n/handlers/BaseConfigHandler.js +0 -44
  462. package/src/sap/m/upload/p13n/handlers/ChangeHandler.js +0 -98
  463. package/src/sap/m/upload/p13n/handlers/ColumnConfigHandler.js +0 -57
  464. package/src/sap/m/upload/p13n/handlers/ColumnsStateChangeHandler.js +0 -43
  465. package/src/sap/m/upload/p13n/handlers/FilterConfigHandler.js +0 -71
  466. package/src/sap/m/upload/p13n/handlers/FilterStateChangeHandler.js +0 -65
  467. package/src/sap/m/upload/p13n/handlers/GroupConfigHandler.js +0 -57
  468. package/src/sap/m/upload/p13n/handlers/GroupStateChangeHandler.js +0 -46
  469. package/src/sap/m/upload/p13n/handlers/SortConfigHandler.js +0 -57
  470. package/src/sap/m/upload/p13n/handlers/SortStateChangeHandler.js +0 -48
  471. package/src/sap/m/upload/p13n/mediator/BaseMediator.js +0 -183
  472. package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +0 -211
  473. package/src/sap/m/upload/p13n/mediator/FilterMediator.js +0 -199
  474. package/src/sap/m/upload/p13n/mediator/GroupMediator.js +0 -193
  475. package/src/sap/m/upload/p13n/mediator/SortMediator.js +0 -201
  476. package/src/sap/m/upload/p13n/modules/CustomDataConfig.js +0 -100
  477. package/src/sap/m/upload/p13n/modules/PersPopupManager.js +0 -76
@@ -1,183 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2024 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(["sap/ui/base/Object", "sap/ui/core/mvc/XMLView"], function (BaseObject, View) {
8
- "use strict";
9
- /**
10
- * Constructor for a new <code>BaseMediator</code>.
11
- *
12
- *
13
- * @param {object} [mSettings] Initial settings for the new control
14
- * @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
15
- * @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
16
- * @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
17
- * @class
18
- * The <code>BaseMediator</code> entity serves as a base class to create control-specific personalization implementations.
19
- *
20
- * @extends sap.ui.base.Object
21
- *
22
- * @author SAP SE
23
- * @version 1.129.0
24
- *
25
- * @public
26
- * @experimental since 1.120
27
- * @since 1.120
28
- * @alias sap.m.upload.p13n.mediator.BaseMediator
29
- */
30
-
31
- const BaseMediator = BaseObject.extend("sap.m.upload.p13n.mediator.BaseMediator", {
32
- constructor: function (mSettings) {
33
- BaseObject.call(this);
34
- if (!mSettings?.control) {
35
- throw Error('Please provide "control" for personalization');
36
- }
37
- this._oControl = mSettings.control;
38
- if (!mSettings?.targetAggregation) {
39
- throw Error('Please provide "targetAggregation" for personalization');
40
- }
41
- this._sTargetAggregation = mSettings.targetAggregation;
42
- if (!mSettings?.p13nMetadataTarget) {
43
- throw Error('Please provide "p13nMetadataTarget" for personalization');
44
- }
45
- this._sP13nMetadataTarget = mSettings.p13nMetadataTarget;
46
- }
47
- });
48
-
49
- /**
50
- *
51
- * Returns the control instance that has been set
52
- * @returns {sap.m.upload.UploadSetwithTable} returns the upload set table control
53
- * @public
54
- */
55
- BaseMediator.prototype.getControl = function () {
56
- return this._oControl;
57
- };
58
-
59
- /**
60
- *
61
- * Returns the target aggregation that has been set
62
- * @returns {string} returns the target aggregation
63
- */
64
-
65
- BaseMediator.prototype.getTargetAggregation = function () {
66
- return this._sTargetAggregation;
67
- };
68
-
69
-
70
- /**
71
- *
72
- * Returns the target metadata that as been set
73
- * @returns {string} returns the p13 target metadata
74
- */
75
-
76
- BaseMediator.prototype.getP13nMetadataTarget = function () {
77
- return this._sP13nMetadataTarget;
78
- };
79
-
80
- /**
81
- *
82
- * Abstract method for constructing a panel and populating it with data specific to that panel.
83
- *
84
- * @name sap.m.upload.p13n.mediator.BaseMediator.prototype.createPanel
85
- * @function
86
- * @protected
87
- * @returns {Promise} returns a promise with the resolved p13 panel.
88
- *
89
- */
90
-
91
- /**
92
- *
93
- * Abstract method to obtain changes by comparing the old and current states.
94
- *
95
- * @name sap.m.upload.p13n.mediator.BaseMediator.prototype.getChanges
96
- * @function
97
- * @protected
98
- * @returns {Array} returns array of delta changes
99
- *
100
- */
101
-
102
- /**
103
- *
104
- *
105
- * An abstract method for applying changes to the upload set table.
106
- * Essentially, these changes should be applied after the current data becomes available.
107
- *
108
- * @name sap.m.upload.p13n.mediator.BaseMediator.prototype.applyStateToTable
109
- * @function
110
- * @protected
111
- *
112
- */
113
-
114
-
115
- /**
116
- *
117
- * Gets the view for the particular control
118
- * @returns {object} returns the view object
119
- * @public
120
- *
121
- */
122
-
123
- BaseMediator.prototype.getView = function () {
124
- return this.getControlOfType(this.getControl(), View);
125
- };
126
-
127
- /**
128
- * Helper method to get control view
129
- * @private
130
- */
131
-
132
- BaseMediator.prototype.getControlOfType = function (oControl, oType) {
133
- if (oControl instanceof oType) {
134
- return oControl;
135
- }
136
- if (oControl && typeof oControl["getParent" === "function"]) {
137
- return this.getControlOfType(oControl.getParent(), oType);
138
- }
139
- return undefined;
140
- };
141
-
142
- /**
143
- *
144
- * Converts the array of objects with key properties to map and adds addIndex
145
- * @param {Array} aArray expects array of objects with key property
146
- * @param {boolean} addIndex expects a boolean in case index needs to be added
147
- * @returns {object} returns the converted object with key as value of key property inside the object
148
- * @internal
149
- *
150
- */
151
-
152
- BaseMediator.prototype.arrayToMap = function (aArray, addIndex = false) {
153
- return aArray.reduce(function (mMap, oProp, iIndex) {
154
- mMap[oProp.key] = oProp;
155
- if (addIndex) {
156
- mMap[oProp.key].index = iIndex;
157
- }
158
- return mMap;
159
- }, {});
160
- };
161
-
162
- /**
163
- *
164
- * Creates a change that can later be handeled by the flexibility layer to apply and revert the change.
165
- * @param {string} sChangeType expects the name of change which will be later handled in change handlers.
166
- * @param {*} oContent expects the changed content which is delta for the specific panel.
167
- * @returns {object} returns the change object.
168
- * @public
169
- */
170
-
171
- BaseMediator.prototype.createChange = function (sChangeType, oContent) {
172
- oContent.targetAggregation = this.getTargetAggregation();
173
- return {
174
- selectorElement: this.getControl(),
175
- changeSpecificData: {
176
- changeType: sChangeType,
177
- content: oContent
178
- }
179
- };
180
- };
181
-
182
- return BaseMediator;
183
- });
@@ -1,211 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2024 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
- [
9
- "sap/base/i18n/Localization",
10
- "sap/m/upload/p13n/mediator/BaseMediator",
11
- "sap/m/p13n/SelectionPanel",
12
- "sap/m/upload/p13n/modules/CustomDataConfig",
13
- "sap/ui/core/Locale",
14
- "sap/base/util/deepEqual"
15
- ],
16
- function(Localization, BaseMediator, SelectionPanel, CustomDataConfig, Locale, deepEqual) {
17
- "use strict";
18
-
19
- /**
20
- * Constructor for a new <code>ColumnsMediator</code>.
21
- *
22
- * @param {object} [mSettings] Initial settings for the new control
23
- * @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
24
- * @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
25
- * @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
26
- *
27
- * @class
28
- * The <code>ColumnsMediator</code> entity serves as a class which handles columns panel related logic.
29
- *
30
- * @extends sap.m.upload.p13n.mediator.BaseMediator
31
- *
32
- * @author SAP SE
33
- * @version 1.129.0
34
- * @private
35
- * @experimental
36
- * @internal
37
- * @alias sap.m.upload.p13n.mediator.ColumnsMediator
38
- */
39
-
40
- const ColumnsMediator = BaseMediator.extend("sap.m.upload.p13n.mediator.ColumnsMediator", {
41
- constructor: function (mSettings) {
42
- BaseMediator.call(this, mSettings);
43
- }
44
- });
45
-
46
- ColumnsMediator.prototype.createPanel = function () {
47
- return Promise.resolve(this.createUi(this.getPanelData()));
48
- };
49
-
50
- ColumnsMediator.prototype.createUi = function (aPanelData) {
51
- this._oPanel = new SelectionPanel({ enableCount: true, showHeader: true });
52
- this._oPanel.setP13nData(aPanelData);
53
- return this._oPanel;
54
- };
55
-
56
- ColumnsMediator.prototype.getPanelData = function () {
57
- const mCurrentState = this.arrayToMap(this.getCurrentState(), true);
58
- const aPanelState = [],
59
- oMetadata = this.getControl()._getP13nMetadata();
60
- oMetadata[this.getP13nMetadataTarget()].forEach((oMetadataItem) => {
61
- aPanelState.push({
62
- key: oMetadataItem.key,
63
- label: oMetadataItem.label || oMetadataItem.key,
64
- tooltip: oMetadataItem.tooltip,
65
- index: mCurrentState[oMetadataItem.key] ? mCurrentState[oMetadataItem.key].index : undefined,
66
- visible: !!mCurrentState[oMetadataItem.key]
67
- });
68
- });
69
-
70
- // Sort panel config
71
- const sLocale = new Locale(Localization.getLanguageTag()).toString(),
72
- oCollator = window.Intl.Collator(sLocale, {});
73
- aPanelState.sort((mItem1, mItem2) => {
74
- if (mItem1.visible && mItem2.visible) {
75
- return (mItem1.index || 0) - (mItem2.index || 0);
76
- }
77
- if (mItem1.visible) {
78
- return -1;
79
- }
80
- if (mItem2.visible) {
81
- return 1;
82
- }
83
- return oCollator.compare(mItem1.label, mItem2.label);
84
- });
85
- aPanelState.forEach((oItem) => delete oItem.index);
86
- return aPanelState;
87
- };
88
-
89
- ColumnsMediator.prototype.getCurrentState = function () {
90
- const oState = [],
91
- aAggregateItems = this.getControl().getAggregation(this.getTargetAggregation()) || [],
92
- oView = this.getView();
93
- aAggregateItems.forEach((oItem, iIndex) => {
94
- const sKey = oView ? oView.getLocalId(oItem.getId()) : oItem.getId();
95
- oState[sKey] = { key: sKey, index: iIndex, visible: oItem.getVisible() };
96
- });
97
-
98
- const oCustomConfig = CustomDataConfig.read(this.getControl()) || {};
99
- const oFlexConfig = oCustomConfig.hasOwnProperty("aggregations")
100
- ? oCustomConfig.aggregations[this.getTargetAggregation()]
101
- : {};
102
-
103
-
104
- for (const sKey in oFlexConfig) {
105
- const { index, visible = true } = oFlexConfig[sKey];
106
- if (!oState[sKey]) {
107
- continue;
108
- }
109
- if (index !== undefined) {
110
- oState[sKey].index = index;
111
- }
112
- oState[sKey].visible = visible;
113
- }
114
- const aState = Object.values(oState)
115
- .filter((oItem) => oItem.visible)
116
- .sort((oItem1, oItem2) => {
117
- return oItem1.index - oItem2.index;
118
- });
119
-
120
- return aState.map((oItem) => ({ key: oItem.key }));
121
- };
122
-
123
- ColumnsMediator.prototype._getP13nData = function () {
124
- return this._oPanel ? this._oPanel.getP13nData() : {};
125
- };
126
-
127
- ColumnsMediator.prototype.getChanges = function () {
128
- const aChanges = [],
129
- aCurrentState = this.getCurrentState(),
130
- aP13nData = this._getP13nData(),
131
- aNextState = aP13nData.filter((oEntry) => !!oEntry.visible).map((oEntry) => ({ key: oEntry.key }));
132
-
133
- if (deepEqual(aCurrentState, aNextState)) {
134
- return aChanges;
135
- }
136
-
137
- // Calculate inserts, delete and move actions
138
- const aDeleted = this._getDeletes(aCurrentState, aNextState),
139
- aInserted = this._getInserts(aCurrentState, aNextState),
140
- aMoved = this._getMove(aCurrentState, aNextState, aDeleted, aInserted);
141
-
142
- aChanges.push(
143
- this.createChange("uploadSetTableColumnsStateChange", { deleted: aDeleted, moved: aMoved, inserted: aInserted })
144
- );
145
- return aChanges;
146
- };
147
-
148
- ColumnsMediator.prototype._getDeletes = function (aCurrentState, aNextState) {
149
- const aResult = [],
150
- mNextState = this.arrayToMap(aNextState);
151
-
152
- aCurrentState.forEach((oState, iIndex) => {
153
- if (!mNextState[oState.key]) {
154
- aResult.push({ key: oState.key, prevIndex: iIndex });
155
- }
156
- });
157
- return aResult;
158
- };
159
-
160
- ColumnsMediator.prototype._getInserts = function (aCurrentState, aNextState) {
161
- const aResult = [],
162
- mCurrentState = this.arrayToMap(aCurrentState);
163
-
164
- aNextState.forEach((oState, iIndex) => {
165
- if (!mCurrentState[oState.key]) {
166
- aResult.push({ key: oState.key, index: iIndex });
167
- }
168
- });
169
- return aResult;
170
- };
171
-
172
- ColumnsMediator.prototype._getMove = function (aCurrentState, aNextState) {
173
- const aResult = [],
174
- mNextState = this.arrayToMap(aNextState, true);
175
-
176
- aCurrentState.forEach((oState, iIndex) => {
177
- if (mNextState[oState.key] && mNextState[oState.key].index !== iIndex) {
178
- aResult.push({ key: oState.key, index: mNextState[oState.key].index, prevIndex: iIndex });
179
- }
180
- });
181
- return aResult;
182
- };
183
-
184
- ColumnsMediator.prototype.applyStateToTable = function () {
185
- const aState = this.getCurrentState(),
186
- oView = this.getView();
187
-
188
- this.getControl()
189
- .getColumns()
190
- .forEach((oCol) => {
191
- oCol.setVisible(false);
192
- });
193
- const oColMap = this.getControl()
194
- .getColumns()
195
- .reduce((oInit, oCol) => {
196
- const sKey = oView ? oView.getLocalId(oCol.getId()) : oCol.getId();
197
- oInit[sKey] = oCol;
198
- return oInit;
199
- }, {});
200
-
201
- aState.forEach((oCol, iIndex) => {
202
- if (oColMap[oCol.key]) {
203
- oColMap[oCol.key].setVisible(true);
204
- oColMap[oCol.key].setOrder(iIndex);
205
- }
206
- });
207
- };
208
-
209
- return ColumnsMediator;
210
- }
211
- );
@@ -1,199 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2024 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
- [
9
- "sap/m/upload/p13n/mediator/BaseMediator",
10
- "sap/m/upload/FilterPanel",
11
- "sap/m/upload/p13n/modules/CustomDataConfig",
12
- "sap/base/util/deepEqual",
13
- "sap/ui/model/Filter",
14
- "sap/ui/model/FilterType"
15
- ],
16
- function (BaseMediator, FilterPanel, CustomDataConfig, deepEqual, Filter, FilterType) {
17
- "use strict";
18
-
19
- /**
20
- * Constructor for a new <code>FilterMediator</code>.
21
- *
22
- * @param {object} [mSettings] Initial settings for the new control
23
- * @param {sap.ui.core.Control} mSettings.control The control instance that is personalized by this mediator
24
- * @param {string} mSettings.targetAggregation The name of the aggregation that is now managed by this mediator
25
- * @param {string} mSettings.p13nMetadataTarget The name of the personalization metadata target that is now managed by this mediator
26
- *
27
- * @class
28
- * The <code>FilterMediator</code> entity serves as a class which handles filter panel related logic.
29
- *
30
- * @extends sap.m.upload.p13n.mediator.BaseMediator
31
- *
32
- * @author SAP SE
33
- * @version 1.129.0
34
- * @private
35
- * @experimental
36
- * @internal
37
- * @alias sap.m.upload.p13n.mediator.FilterMediator
38
- */
39
-
40
- const FilterMediator = BaseMediator.extend("sap.m.upload.p13n.mediator.FilterMediator", {
41
- constructor: function (mSettings) {
42
- BaseMediator.call(this, mSettings);
43
- }
44
- });
45
-
46
- FilterMediator.prototype.createPanel = function () {
47
- return Promise.resolve(this.createUi(this.getPanelData()));
48
- };
49
-
50
- FilterMediator.prototype.createUi = function (aPanelData) {
51
- const oMetadata = this.getControl()._getP13nMetadata();
52
- this._oPanel = new FilterPanel({ fields: oMetadata[this.getP13nMetadataTarget()] });
53
- this._oPanel.setP13nData(aPanelData);
54
- return this._oPanel;
55
- };
56
-
57
- FilterMediator.prototype.getPanelData = function () {
58
- const aCurrentState = this.getCurrentState(),
59
- aPanelState = [],
60
- mMetadata = this.getControl()
61
- ._getP13nMetadata()
62
- [this.getP13nMetadataTarget()].reduce((mMap, oProp) => {
63
- mMap[oProp.path] = oProp;
64
- return mMap;
65
- }, {});
66
-
67
- aCurrentState.forEach((oEntry) => {
68
- if (!mMetadata[oEntry.path]) {
69
- return;
70
- }
71
- aPanelState.push({
72
- name: oEntry.key,
73
- path: oEntry.path,
74
- operator: oEntry.operator,
75
- value: oEntry.value
76
- });
77
- });
78
-
79
- return aPanelState;
80
- };
81
-
82
- FilterMediator.prototype.getCurrentState = function () {
83
- const oCustomConfig = CustomDataConfig.read(this.getControl()) || {};
84
- const oFilterConditions =
85
- oCustomConfig.hasOwnProperty("properties") && oCustomConfig.properties[this.getTargetAggregation()]
86
- ? oCustomConfig.properties[this.getTargetAggregation()]
87
- : {};
88
-
89
- const aState = Object.values(oFilterConditions)
90
- // .filter((oItem) => oItem.sorted)
91
- .sort((oItem1, oItem2) => {
92
- return oItem1.index - oItem2.index;
93
- });
94
-
95
- return aState.map((oItem) => ({ key: oItem.key, path: oItem.path, operator: oItem.operator, value: oItem.value }));
96
- };
97
-
98
- FilterMediator.prototype.getChanges = function () {
99
- const aChanges = [],
100
- aCurrentState = this.getCurrentState(),
101
- aP13nData = this._getP13nData(),
102
- aNextState = aP13nData
103
- // .filter((oEntry) => !!oEntry.sorted)
104
- .map((oEntry) => ({ key: oEntry.name, path: oEntry.path, operator: oEntry.operator, value: oEntry.value }));
105
-
106
- if (deepEqual(aCurrentState, aNextState)) {
107
- return aChanges;
108
- }
109
-
110
- const aDeleted = this._getDeletes(aCurrentState, aNextState),
111
- aInserted = this._getInserts(aCurrentState, aNextState),
112
- aMoved = this._getMove(aCurrentState, aNextState, aDeleted, aInserted);
113
-
114
-
115
- aChanges.push(
116
- this.createChange("uploadSetTableFilterStateChange", { deleted: aDeleted, moved: aMoved, inserted: aInserted })
117
- );
118
-
119
- return aChanges;
120
- };
121
-
122
- FilterMediator.prototype._getP13nData = function () {
123
- return this._oPanel ? this._oPanel.getP13nData() : {};
124
- };
125
-
126
- FilterMediator.prototype._getDeletes = function (aCurrentState, aNextState) {
127
- const aResult = [],
128
- mNextState = this.arrayToMap(aNextState);
129
-
130
- aCurrentState.forEach((oState, iIndex) => {
131
- if (!mNextState[oState.key]) {
132
- aResult.push({
133
- key: oState.key,
134
- prevIndex: iIndex,
135
- prevPath: oState.path,
136
- prevOperator: oState.operator,
137
- prevValue: oState.value
138
- });
139
- }
140
- });
141
- return aResult;
142
- };
143
-
144
- FilterMediator.prototype._getInserts = function (aCurrentState, aNextState) {
145
- const aResult = [],
146
- mCurrentState = this.arrayToMap(aCurrentState);
147
-
148
- aNextState.forEach((oState, iIndex) => {
149
- if (!mCurrentState[oState.key]) {
150
- aResult.push({
151
- key: oState.key,
152
- index: iIndex,
153
- path: oState.path,
154
- operator: oState.operator,
155
- value: oState.value
156
- });
157
- }
158
- });
159
- return aResult;
160
- };
161
-
162
- FilterMediator.prototype._getMove = function (aCurrentState, aNextState) {
163
- const aResult = [],
164
- mNextState = this.arrayToMap(aNextState, true),
165
- aProperties = ["path", "operator", "value"];
166
-
167
- aCurrentState.forEach((oState, iIndex) => {
168
- if (
169
- mNextState[oState.key] &&
170
- (mNextState[oState.key].index !== iIndex || !aProperties.every((sEntry) => mNextState[oState.key][sEntry] === oState[sEntry]))
171
- ) {
172
- aResult.push({
173
- key: oState.key,
174
- index: mNextState[oState.key].index,
175
- prevIndex: iIndex,
176
- path: mNextState[oState.key].path,
177
- prevPath: oState.path,
178
- operator: mNextState[oState.key].operator,
179
- prevOperator: oState.operator,
180
- value: mNextState[oState.key].value,
181
- prevValue: oState.value
182
- });
183
- }
184
- });
185
- return aResult;
186
- };
187
-
188
- FilterMediator.prototype.applyStateToTable = function (oSorters = {}) {
189
- const aState = this.getCurrentState(),
190
- aFilters = aState.map((oEntry) => new Filter(oEntry.path, oEntry.operator, oEntry.value));
191
-
192
- if (this.getControl().getBinding("items")){
193
- this.getControl().getBinding("items").filter(aFilters.length ? new Filter(aFilters, true) : null, FilterType.Control);
194
- }
195
- };
196
-
197
- return FilterMediator;
198
- }
199
- );