@openui5/sap.m 1.129.0 → 1.130.1

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 (478) 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 +89 -19
  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 +15 -4
  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 +12 -1
  164. package/src/sap/m/PlanningCalendarLegendRenderer.js +10 -4
  165. package/src/sap/m/PlanningCalendarRow.js +1 -1
  166. package/src/sap/m/PlanningCalendarView.js +1 -1
  167. package/src/sap/m/Popover.js +1 -1
  168. package/src/sap/m/ProgressIndicator.js +1 -1
  169. package/src/sap/m/PullToRefresh.js +1 -1
  170. package/src/sap/m/QuickView.js +1 -1
  171. package/src/sap/m/QuickViewBase.js +1 -1
  172. package/src/sap/m/QuickViewCard.js +1 -1
  173. package/src/sap/m/QuickViewGroup.js +1 -1
  174. package/src/sap/m/QuickViewGroupElement.js +1 -1
  175. package/src/sap/m/QuickViewPage.js +1 -1
  176. package/src/sap/m/RadioButton.js +1 -1
  177. package/src/sap/m/RadioButtonGroup.js +1 -1
  178. package/src/sap/m/RangeSlider.js +1 -1
  179. package/src/sap/m/RatingIndicator.js +1 -1
  180. package/src/sap/m/ResponsivePopover.js +1 -1
  181. package/src/sap/m/ResponsiveScale.js +1 -1
  182. package/src/sap/m/ScrollBar.js +1 -1
  183. package/src/sap/m/ScrollContainer.js +1 -1
  184. package/src/sap/m/SearchField.js +1 -1
  185. package/src/sap/m/SegmentedButton.js +1 -1
  186. package/src/sap/m/SegmentedButtonItem.js +1 -1
  187. package/src/sap/m/Select.js +22 -6
  188. package/src/sap/m/SelectDialog.js +1 -1
  189. package/src/sap/m/SelectDialogBase.js +1 -1
  190. package/src/sap/m/SelectList.js +1 -1
  191. package/src/sap/m/SelectionDetails.js +1 -1
  192. package/src/sap/m/SelectionDetailsFacade.js +2 -2
  193. package/src/sap/m/SelectionDetailsItem.js +1 -1
  194. package/src/sap/m/SelectionDetailsItemLine.js +1 -1
  195. package/src/sap/m/Shell.js +1 -1
  196. package/src/sap/m/SimpleFixFlex.js +1 -1
  197. package/src/sap/m/SinglePlanningCalendar.js +1 -1
  198. package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
  199. package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
  200. package/src/sap/m/SinglePlanningCalendarMonthGrid.js +2 -2
  201. package/src/sap/m/SinglePlanningCalendarMonthGridRenderer.js +11 -4
  202. package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
  203. package/src/sap/m/SinglePlanningCalendarView.js +1 -1
  204. package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
  205. package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
  206. package/src/sap/m/SlideTile.js +1 -2
  207. package/src/sap/m/Slider.js +2 -1
  208. package/src/sap/m/SliderTooltip.js +1 -1
  209. package/src/sap/m/SliderTooltipBase.js +1 -1
  210. package/src/sap/m/SliderTooltipContainer.js +1 -1
  211. package/src/sap/m/SplitApp.js +1 -1
  212. package/src/sap/m/SplitButton.js +1 -1
  213. package/src/sap/m/SplitContainer.js +1 -1
  214. package/src/sap/m/StandardDynamicDateOption.js +371 -30
  215. package/src/sap/m/StandardListItem.js +1 -1
  216. package/src/sap/m/StandardTile.js +1 -1
  217. package/src/sap/m/StandardTreeItem.js +1 -1
  218. package/src/sap/m/StepInput.js +1 -1
  219. package/src/sap/m/SuggestionItem.js +1 -1
  220. package/src/sap/m/SuggestionsPopover.js +1 -1
  221. package/src/sap/m/Switch.js +1 -1
  222. package/src/sap/m/TabContainer.js +39 -44
  223. package/src/sap/m/TabContainerItem.js +40 -1
  224. package/src/sap/m/TabStrip.js +1 -1
  225. package/src/sap/m/TabStripItem.js +1 -1
  226. package/src/sap/m/Table.js +2 -4
  227. package/src/sap/m/TablePersoController.js +1 -1
  228. package/src/sap/m/TablePersoDialog.js +1 -1
  229. package/src/sap/m/TablePersoProvider.js +1 -1
  230. package/src/sap/m/TableSelectDialog.js +99 -29
  231. package/src/sap/m/Text.js +15 -3
  232. package/src/sap/m/TextArea.js +1 -1
  233. package/src/sap/m/Tile.js +1 -1
  234. package/src/sap/m/TileContainer.js +1 -1
  235. package/src/sap/m/TileContent.js +3 -3
  236. package/src/sap/m/TileInfo.js +1 -1
  237. package/src/sap/m/TimePicker.js +1 -1
  238. package/src/sap/m/TimePickerClock.js +1 -1
  239. package/src/sap/m/TimePickerClocks.js +1 -1
  240. package/src/sap/m/TimePickerInputs.js +1 -1
  241. package/src/sap/m/TimePickerInternals.js +1 -1
  242. package/src/sap/m/TimePickerSlider.js +1 -1
  243. package/src/sap/m/TimePickerSliders.js +1 -1
  244. package/src/sap/m/Title.js +1 -1
  245. package/src/sap/m/TitlePropagationSupport.js +1 -1
  246. package/src/sap/m/ToggleButton.js +1 -1
  247. package/src/sap/m/Token.js +1 -1
  248. package/src/sap/m/Tokenizer.js +1 -1
  249. package/src/sap/m/Toolbar.js +1 -1
  250. package/src/sap/m/ToolbarLayoutData.js +1 -1
  251. package/src/sap/m/ToolbarSeparator.js +1 -1
  252. package/src/sap/m/ToolbarSpacer.js +1 -1
  253. package/src/sap/m/Tree.js +1 -1
  254. package/src/sap/m/TreeItemBase.js +1 -1
  255. package/src/sap/m/UploadCollection.js +1 -1
  256. package/src/sap/m/UploadCollectionItem.js +1 -1
  257. package/src/sap/m/UploadCollectionParameter.js +1 -1
  258. package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
  259. package/src/sap/m/VBox.js +1 -1
  260. package/src/sap/m/ValueStateHeader.js +1 -1
  261. package/src/sap/m/ViewSettingsCustomItem.js +1 -1
  262. package/src/sap/m/ViewSettingsCustomTab.js +1 -1
  263. package/src/sap/m/ViewSettingsDialog.js +1 -1
  264. package/src/sap/m/ViewSettingsFilterItem.js +1 -1
  265. package/src/sap/m/ViewSettingsItem.js +1 -1
  266. package/src/sap/m/VisibleItem.js +1 -1
  267. package/src/sap/m/WheelSlider.js +1 -1
  268. package/src/sap/m/WheelSliderContainer.js +1 -1
  269. package/src/sap/m/Wizard.js +1 -1
  270. package/src/sap/m/WizardProgressNavigator.js +1 -1
  271. package/src/sap/m/WizardStep.js +1 -1
  272. package/src/sap/m/_thirdparty/purify.js +632 -697
  273. package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
  274. package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
  275. package/src/sap/m/changeHandler/CombineButtons.js +1 -1
  276. package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
  277. package/src/sap/m/changeHandler/SelectIconTabBarFilter.js +1 -1
  278. package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
  279. package/src/sap/m/designtime/messagebundle_da.properties +2 -2
  280. package/src/sap/m/designtime/messagebundle_mk.properties +3 -3
  281. package/src/sap/m/inputUtils/ListHelpers.js +4 -0
  282. package/src/sap/m/library.js +111 -6
  283. package/src/sap/m/messagebundle.properties +39 -28
  284. package/src/sap/m/messagebundle_ar.properties +26 -10
  285. package/src/sap/m/messagebundle_bg.properties +29 -13
  286. package/src/sap/m/messagebundle_ca.properties +21 -5
  287. package/src/sap/m/messagebundle_cnr.properties +23 -7
  288. package/src/sap/m/messagebundle_cs.properties +23 -7
  289. package/src/sap/m/messagebundle_cy.properties +30 -14
  290. package/src/sap/m/messagebundle_da.properties +34 -18
  291. package/src/sap/m/messagebundle_de.properties +21 -5
  292. package/src/sap/m/messagebundle_el.properties +22 -6
  293. package/src/sap/m/messagebundle_en.properties +22 -20
  294. package/src/sap/m/messagebundle_en_GB.properties +21 -5
  295. package/src/sap/m/messagebundle_en_US_saprigi.properties +22 -6
  296. package/src/sap/m/messagebundle_es.properties +25 -9
  297. package/src/sap/m/messagebundle_es_MX.properties +22 -6
  298. package/src/sap/m/messagebundle_et.properties +21 -5
  299. package/src/sap/m/messagebundle_fi.properties +22 -6
  300. package/src/sap/m/messagebundle_fr.properties +34 -18
  301. package/src/sap/m/messagebundle_fr_CA.properties +20 -4
  302. package/src/sap/m/messagebundle_hi.properties +23 -7
  303. package/src/sap/m/messagebundle_hr.properties +76 -60
  304. package/src/sap/m/messagebundle_hu.properties +21 -5
  305. package/src/sap/m/messagebundle_id.properties +23 -7
  306. package/src/sap/m/messagebundle_it.properties +25 -9
  307. package/src/sap/m/messagebundle_iw.properties +21 -5
  308. package/src/sap/m/messagebundle_ja.properties +23 -7
  309. package/src/sap/m/messagebundle_kk.properties +23 -7
  310. package/src/sap/m/messagebundle_ko.properties +23 -7
  311. package/src/sap/m/messagebundle_lt.properties +21 -5
  312. package/src/sap/m/messagebundle_lv.properties +22 -6
  313. package/src/sap/m/messagebundle_mk.properties +28 -12
  314. package/src/sap/m/messagebundle_ms.properties +22 -6
  315. package/src/sap/m/messagebundle_nl.properties +23 -7
  316. package/src/sap/m/messagebundle_no.properties +23 -7
  317. package/src/sap/m/messagebundle_pl.properties +21 -5
  318. package/src/sap/m/messagebundle_pt.properties +21 -5
  319. package/src/sap/m/messagebundle_pt_PT.properties +21 -5
  320. package/src/sap/m/messagebundle_ro.properties +22 -6
  321. package/src/sap/m/messagebundle_ru.properties +23 -7
  322. package/src/sap/m/messagebundle_sh.properties +23 -7
  323. package/src/sap/m/messagebundle_sk.properties +23 -7
  324. package/src/sap/m/messagebundle_sl.properties +23 -7
  325. package/src/sap/m/messagebundle_sr.properties +23 -7
  326. package/src/sap/m/messagebundle_sv.properties +26 -10
  327. package/src/sap/m/messagebundle_th.properties +24 -8
  328. package/src/sap/m/messagebundle_tr.properties +22 -6
  329. package/src/sap/m/messagebundle_uk.properties +22 -6
  330. package/src/sap/m/messagebundle_vi.properties +26 -10
  331. package/src/sap/m/messagebundle_zh_CN.properties +23 -7
  332. package/src/sap/m/messagebundle_zh_TW.properties +21 -5
  333. package/src/sap/m/p13n/AbstractContainer.js +2 -2
  334. package/src/sap/m/p13n/AbstractContainerItem.js +2 -2
  335. package/src/sap/m/p13n/BasePanel.js +1 -1
  336. package/src/sap/m/p13n/Container.js +1 -1
  337. package/src/sap/m/p13n/Engine.js +1 -1
  338. package/src/sap/m/p13n/FilterController.js +1 -1
  339. package/src/sap/m/p13n/FilterPanel.js +1 -1
  340. package/src/sap/m/p13n/GroupController.js +1 -1
  341. package/src/sap/m/p13n/GroupPanel.js +1 -1
  342. package/src/sap/m/p13n/MessageStrip.js +1 -1
  343. package/src/sap/m/p13n/Popup.js +1 -1
  344. package/src/sap/m/p13n/QueryPanel.js +1 -1
  345. package/src/sap/m/p13n/SelectionController.js +1 -1
  346. package/src/sap/m/p13n/SelectionPanel.js +1 -1
  347. package/src/sap/m/p13n/SortController.js +1 -1
  348. package/src/sap/m/p13n/SortPanel.js +1 -1
  349. package/src/sap/m/p13n/modules/DefaultProviderRegistry.js +1 -1
  350. package/src/sap/m/p13n/modules/StateHandlerRegistry.js +1 -1
  351. package/src/sap/m/p13n/modules/UIManager.js +1 -1
  352. package/src/sap/m/plugins/CellSelector.js +10 -6
  353. package/src/sap/m/plugins/ColumnResizer.js +1 -1
  354. package/src/sap/m/plugins/ContextMenuSetting.js +1 -1
  355. package/src/sap/m/plugins/CopyProvider.js +1 -1
  356. package/src/sap/m/plugins/DataStateIndicator.js +3 -2
  357. package/src/sap/m/plugins/PasteProvider.js +1 -1
  358. package/src/sap/m/plugins/PluginBase.js +1 -1
  359. package/src/sap/m/plugins/UploadSetwithTable.js +54 -12
  360. package/src/sap/m/semantic/AddAction.js +1 -1
  361. package/src/sap/m/semantic/CancelAction.js +1 -1
  362. package/src/sap/m/semantic/DeleteAction.js +1 -1
  363. package/src/sap/m/semantic/DetailPage.js +1 -1
  364. package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
  365. package/src/sap/m/semantic/EditAction.js +1 -1
  366. package/src/sap/m/semantic/FavoriteAction.js +1 -1
  367. package/src/sap/m/semantic/FilterAction.js +1 -1
  368. package/src/sap/m/semantic/FilterSelect.js +1 -1
  369. package/src/sap/m/semantic/FlagAction.js +1 -1
  370. package/src/sap/m/semantic/ForwardAction.js +1 -1
  371. package/src/sap/m/semantic/FullscreenPage.js +1 -1
  372. package/src/sap/m/semantic/GroupAction.js +1 -1
  373. package/src/sap/m/semantic/GroupSelect.js +1 -1
  374. package/src/sap/m/semantic/MainAction.js +1 -1
  375. package/src/sap/m/semantic/MasterPage.js +1 -1
  376. package/src/sap/m/semantic/MessagesIndicator.js +1 -1
  377. package/src/sap/m/semantic/MultiSelectAction.js +1 -1
  378. package/src/sap/m/semantic/NegativeAction.js +1 -1
  379. package/src/sap/m/semantic/OpenInAction.js +1 -1
  380. package/src/sap/m/semantic/PositiveAction.js +1 -1
  381. package/src/sap/m/semantic/PrintAction.js +1 -1
  382. package/src/sap/m/semantic/SaveAction.js +1 -1
  383. package/src/sap/m/semantic/Segment.js +1 -1
  384. package/src/sap/m/semantic/SegmentedContainer.js +1 -1
  385. package/src/sap/m/semantic/SemanticButton.js +1 -1
  386. package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
  387. package/src/sap/m/semantic/SemanticControl.js +1 -1
  388. package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
  389. package/src/sap/m/semantic/SemanticOverflowToolbarToggleButton.js +1 -1
  390. package/src/sap/m/semantic/SemanticPage.js +1 -1
  391. package/src/sap/m/semantic/SemanticSelect.js +1 -1
  392. package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
  393. package/src/sap/m/semantic/SendEmailAction.js +1 -1
  394. package/src/sap/m/semantic/SendMessageAction.js +1 -1
  395. package/src/sap/m/semantic/ShareInJamAction.js +1 -1
  396. package/src/sap/m/semantic/ShareMenu.js +1 -1
  397. package/src/sap/m/semantic/ShareMenuPage.js +1 -1
  398. package/src/sap/m/semantic/SortAction.js +1 -1
  399. package/src/sap/m/semantic/SortSelect.js +1 -1
  400. package/src/sap/m/table/ColumnWidthController.js +1 -1
  401. package/src/sap/m/table/Util.js +1 -1
  402. package/src/sap/m/table/columnmenu/ActionItem.js +1 -1
  403. package/src/sap/m/table/columnmenu/Entry.js +1 -1
  404. package/src/sap/m/table/columnmenu/Item.js +1 -1
  405. package/src/sap/m/table/columnmenu/ItemBase.js +1 -1
  406. package/src/sap/m/table/columnmenu/Menu.js +1 -1
  407. package/src/sap/m/table/columnmenu/MenuBase.js +1 -1
  408. package/src/sap/m/table/columnmenu/QuickAction.js +1 -1
  409. package/src/sap/m/table/columnmenu/QuickActionBase.js +1 -1
  410. package/src/sap/m/table/columnmenu/QuickActionItem.js +1 -1
  411. package/src/sap/m/table/columnmenu/QuickGroup.js +1 -1
  412. package/src/sap/m/table/columnmenu/QuickGroupItem.js +1 -1
  413. package/src/sap/m/table/columnmenu/QuickSort.js +1 -1
  414. package/src/sap/m/table/columnmenu/QuickSortItem.js +1 -1
  415. package/src/sap/m/table/columnmenu/QuickTotal.js +1 -1
  416. package/src/sap/m/table/columnmenu/QuickTotalItem.js +1 -1
  417. package/src/sap/m/themes/base/Breadcrumbs.less +5 -0
  418. package/src/sap/m/themes/base/Carousel.less +21 -7
  419. package/src/sap/m/themes/base/ColumnListItem.less +29 -22
  420. package/src/sap/m/themes/base/ColumnResizer.less +4 -4
  421. package/src/sap/m/themes/base/DisplayListItem.less +5 -10
  422. package/src/sap/m/themes/base/DynamicDateRange.less +3 -1
  423. package/src/sap/m/themes/base/GroupHeaderListItem.less +11 -15
  424. package/src/sap/m/themes/base/IconTabBar.less +168 -134
  425. package/src/sap/m/themes/base/IconTabBarSelectList.less +22 -25
  426. package/src/sap/m/themes/base/Illustration.less +26 -10
  427. package/src/sap/m/themes/base/InputListItem.less +16 -17
  428. package/src/sap/m/themes/base/Label.less +32 -81
  429. package/src/sap/m/themes/base/Link.less +16 -17
  430. package/src/sap/m/themes/base/ObjectStatus.less +29 -0
  431. package/src/sap/m/themes/base/RatingIndicator.less +2 -2
  432. package/src/sap/m/themes/base/StandardListItem.less +21 -0
  433. package/src/sap/m/themes/base/TabContainer.less +1 -1
  434. package/src/sap/m/themes/base/Table.less +9 -1
  435. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-BeforeSearch.svg +10 -0
  436. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoActivities.svg +23 -0
  437. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoData.svg +9 -0
  438. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoEntries.svg +12 -0
  439. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoMail.svg +10 -0
  440. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoNotifications.svg +10 -0
  441. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoSavedItems.svg +9 -0
  442. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-NoTasks.svg +20 -0
  443. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessBalloon.svg +19 -0
  444. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-SuccessCheckMark.svg +7 -0
  445. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToLoad.svg +10 -0
  446. package/src/sap/m/themes/base/illustrations/sapIllus-Dot-UnableToUpload.svg +10 -0
  447. package/src/sap/m/upload/ActionsPlaceholder.js +12 -2
  448. package/src/sap/m/upload/Column.js +1 -1
  449. package/src/sap/m/upload/FilePreviewDialog.js +1 -2
  450. package/src/sap/m/upload/UploadItem.js +1 -1
  451. package/src/sap/m/upload/UploadItemConfiguration.js +1 -1
  452. package/src/sap/m/upload/UploadSet.js +6 -3
  453. package/src/sap/m/upload/UploadSetItem.js +1 -1
  454. package/src/sap/m/upload/UploadSetToolbarPlaceholder.js +1 -1
  455. package/src/sap/m/upload/UploaderTableItem.js +7 -10
  456. package/src/sap/m/upload/UploadSetwithTable.js +0 -1607
  457. package/src/sap/m/upload/UploadSetwithTableItem.js +0 -344
  458. package/src/sap/m/upload/UploadSetwithTableItemRenderer.js +0 -23
  459. package/src/sap/m/upload/UploadSetwithTableRenderer.js +0 -31
  460. package/src/sap/m/upload/p13n/PersManager.js +0 -253
  461. package/src/sap/m/upload/p13n/flexibility/UploadSetwithTable.flexibility.js +0 -32
  462. package/src/sap/m/upload/p13n/handlers/BaseConfigHandler.js +0 -44
  463. package/src/sap/m/upload/p13n/handlers/ChangeHandler.js +0 -98
  464. package/src/sap/m/upload/p13n/handlers/ColumnConfigHandler.js +0 -57
  465. package/src/sap/m/upload/p13n/handlers/ColumnsStateChangeHandler.js +0 -43
  466. package/src/sap/m/upload/p13n/handlers/FilterConfigHandler.js +0 -71
  467. package/src/sap/m/upload/p13n/handlers/FilterStateChangeHandler.js +0 -65
  468. package/src/sap/m/upload/p13n/handlers/GroupConfigHandler.js +0 -57
  469. package/src/sap/m/upload/p13n/handlers/GroupStateChangeHandler.js +0 -46
  470. package/src/sap/m/upload/p13n/handlers/SortConfigHandler.js +0 -57
  471. package/src/sap/m/upload/p13n/handlers/SortStateChangeHandler.js +0 -48
  472. package/src/sap/m/upload/p13n/mediator/BaseMediator.js +0 -183
  473. package/src/sap/m/upload/p13n/mediator/ColumnsMediator.js +0 -211
  474. package/src/sap/m/upload/p13n/mediator/FilterMediator.js +0 -199
  475. package/src/sap/m/upload/p13n/mediator/GroupMediator.js +0 -193
  476. package/src/sap/m/upload/p13n/mediator/SortMediator.js +0 -201
  477. package/src/sap/m/upload/p13n/modules/CustomDataConfig.js +0 -100
  478. package/src/sap/m/upload/p13n/modules/PersPopupManager.js +0 -76
@@ -1,344 +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
- // Provides control sap.m.upload.UploadSetwithTableItem.
8
- sap.ui.define([
9
- "sap/m/ColumnListItem",
10
- "sap/ui/core/IconPool",
11
- "sap/m/upload/UploadSetwithTableItemRenderer",
12
- "sap/base/Log",
13
- "sap/ui/core/Lib"
14
- ], function (ColumnListItem, IconPool, UploadSetwithTableItemRenderer, Log, Library) {
15
- "use strict";
16
-
17
- /**
18
- * Constructor for a new UploadSetwithTableItem.
19
- *
20
- * @param {string} [sId] Id for the new control, it is generated automatically if no ID is provided.
21
- * @param {object} [mSettings] Initial settings for the new control.
22
- * @class
23
- * <code>sap.m.UploadSetwithTableItem</code> represents one item to be uploaded using the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. This control can be used with the cells aggregation to create rows for the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. The columns aggregation of the sap.m.upload.UploadSetwithTable should match with the cells aggregation.
24
- *
25
- * <b>Note:</b> This control should only be used within the {@link sap.m.upload.UploadSetwithTable UploadSetwithTable} control. The inherited counter property of sap.m.ListItemBase is not supported.
26
- * @extends sap.m.ColumnListItem
27
- * @author SAP SE
28
- * @constructor
29
- * @public
30
- * @deprecated as of version 1.124, replaced by {@link sap.m.upload.UploadItem}
31
- * @version 1.129.0
32
- * @alias sap.m.upload.UploadSetwithTableItem
33
- */
34
- var UploadSetwithTableItem = ColumnListItem.extend("sap.m.upload.UploadSetwithTableItem", {
35
- metadata: {
36
- library: "sap.m",
37
- properties: {
38
- /**
39
- * Specifies the name of the uploaded file.
40
- */
41
- fileName: {type: "string", defaultValue: null},
42
- /**
43
- * Specifies the MIME type of the file.
44
- */
45
- mediaType: {type: "string", defaultValue: null},
46
- /**
47
- * Specifies the URL where the file is located.
48
- */
49
- url: {type: "string", defaultValue: null},
50
- /**
51
- * URL where the uploaded files are stored. If empty, uploadUrl from the uploader is considered.
52
- */
53
- uploadUrl: {type: "string", defaultValue: null},
54
- /**
55
- * State of the item relevant to its upload process.
56
- */
57
- uploadState: {type: "sap.m.UploadState", defaultValue: null},
58
- /**
59
- * Specifies whether the item can be previewed.
60
- */
61
- previewable: {type: "boolean", defaultValue: true},
62
- /**
63
- * Specifies file size of the item in bytes.
64
- */
65
- fileSize: {type: "float", defaultValue: 0}
66
- },
67
- aggregations: {
68
- /**
69
- * Header fields to be included in the header section of an XMLHttpRequest (XHR) request
70
- */
71
- headerFields: {type: "sap.ui.core.Item", multiple: true, singularName: "headerField"}
72
- }
73
- },
74
- renderer: UploadSetwithTableItemRenderer
75
- });
76
-
77
- /* ================== */
78
- /* Lifecycle handling */
79
- /* ================== */
80
-
81
- UploadSetwithTableItem.prototype.init = function () {
82
- ColumnListItem.prototype.init.apply(this, arguments);
83
- this._oFileObject = null;
84
- this._fFileSize = null;
85
- // Restriction flags
86
- this._bFileTypeRestricted = false;
87
- this._bNameLengthRestricted = false;
88
- this._bSizeRestricted = false;
89
- this._bMediaTypeRestricted = false;
90
- this._oRb = Library.getResourceBundleFor("sap.m");
91
- this._oCloudFileInfo = null;
92
- };
93
-
94
- UploadSetwithTableItem.prototype.onBeforeRendering = function () {
95
- ColumnListItem.prototype.onBeforeRendering.apply(this, arguments);
96
- };
97
-
98
- UploadSetwithTableItem.prototype.onAfterRendering = function() {
99
- ColumnListItem.prototype.onAfterRendering.call(this);
100
- };
101
-
102
- UploadSetwithTableItem.prototype.exit = function() {
103
- ColumnListItem.prototype.exit.call(this);
104
- };
105
-
106
- /* ===================== */
107
- /* Overriden API methods */
108
- /* ===================== */
109
-
110
- UploadSetwithTableItem.prototype.setFileName = function (sFileName) {
111
- if (this.getFileName() !== sFileName) {
112
- this.setProperty("fileName", sFileName, true);
113
- // File name related controls available no sooner than a parent is set
114
- if (this.getParent()) {
115
- this._checkNameLengthRestriction(this.getParent().getMaxFileNameLength());
116
- this._checkTypeRestriction(this.getParent().getFileTypes());
117
- }
118
- }
119
-
120
- return this;
121
- };
122
-
123
- /* ============== */
124
- /* Public methods */
125
- /* ============== */
126
-
127
- /**
128
- * Returns file object.
129
- *
130
- * @public
131
- * @returns {File|Blob} File object.
132
- *
133
- */
134
- UploadSetwithTableItem.prototype.getFileObject = function () {
135
- return this._oFileObject;
136
- };
137
-
138
- /**
139
- * Previews pressed file.
140
- * @public
141
- */
142
- UploadSetwithTableItem.prototype.openPreview = function () {
143
- this.getParent()?._openFilePreview(this);
144
- };
145
-
146
- /**
147
- * Downloads the item. Only possible when the item has a valid URL specified in the <code>url</code> property.
148
- * @param {boolean} bAskForLocation Whether to ask for a location where to download the file or not.
149
- * @public
150
- * @returns {boolean} <code>true</code> if download is possible, <code>false</code> otherwise.
151
- */
152
- UploadSetwithTableItem.prototype.download = function (bAskForLocation) {
153
- var oParent = this.getParent();
154
- if (!oParent) {
155
- Log.warning("Download cannot proceed without a parent association.");
156
- return false;
157
- }
158
-
159
- return oParent._getActiveUploader ? oParent._getActiveUploader().download(this, [], bAskForLocation) : false;
160
- };
161
-
162
- /**
163
- * Validates if the item is restricted, to check if it is restricted for the file type, media type, maximum file name length and maximum file size limit.
164
- *
165
- * @public
166
- * @returns {boolean} <code>true</code> if item is restricted, <code>false</code> otherwise.
167
- *
168
- */
169
- UploadSetwithTableItem.prototype.isRestricted = function () {
170
- return this._isRestricted();
171
- };
172
-
173
- /**
174
- * Returns the details of the file selected from the CloudFilePicker control.
175
- * @returns {sap.suite.ui.commons.CloudFileInfo} oCloudFileInfo Specifies the details of the file selected from the cloudFilePicker control.
176
- * @public
177
- */
178
- UploadSetwithTableItem.prototype.getCloudFileInfo = function() {
179
- return this._oCloudFileInfo;
180
- };
181
-
182
- /* =============== */
183
- /* Private methods */
184
- /* =============== */
185
-
186
- UploadSetwithTableItem._getIconByMimeType = function(sMimeType, fileName) {
187
-
188
- if (sMimeType) {
189
- return IconPool.getIconForMimeType(sMimeType);
190
- } else {
191
- return UploadSetwithTableItem._getIconByFileType(fileName);
192
- }
193
- };
194
-
195
- UploadSetwithTableItem._getIconByFileType = function (fileName) {
196
- var sFileExtension = UploadSetwithTableItem._splitFileName(fileName).extension;
197
- if (!sFileExtension) {
198
- return "sap-icon://document";
199
- }
200
-
201
- switch (sFileExtension.toLowerCase()) {
202
- case "bmp" :
203
- case "jpg" :
204
- case "jpeg" :
205
- case "png" :
206
- return UploadSetwithTableItem.IMAGE_FILE_ICON;
207
- case "csv" :
208
- case "xls" :
209
- case "xlsx" :
210
- return "sap-icon://excel-attachment";
211
- case "doc" :
212
- case "docx" :
213
- case "odt" :
214
- return "sap-icon://doc-attachment";
215
- case "pdf" :
216
- return "sap-icon://pdf-attachment";
217
- case "ppt" :
218
- case "pptx" :
219
- return "sap-icon://ppt-attachment";
220
- case "txt" :
221
- return "sap-icon://document-text";
222
- default :
223
- return "sap-icon://document";
224
- }
225
- };
226
-
227
- UploadSetwithTableItem._splitFileName = function (sFileName, bWithDot) {
228
- var oResult = {};
229
- var oRegex = /(?:\.([^.]+))?$/;
230
- var aFileExtension = oRegex.exec(sFileName);
231
- if (!aFileExtension[0]) {
232
- aFileExtension[0] = "";
233
- oResult.name = sFileName;
234
- } else {
235
- oResult.name = sFileName ? sFileName.slice(0, sFileName.indexOf(aFileExtension[0])) : "";
236
- }
237
- if (bWithDot) {
238
- oResult.extension = aFileExtension[0];
239
- } else {
240
- oResult.extension = aFileExtension[1];
241
- }
242
- return oResult;
243
- };
244
-
245
- UploadSetwithTableItem.prototype._setFileObject = function (oFileObject) {
246
- this._oFileObject = oFileObject;
247
- if (oFileObject) {
248
- this._fFileSize = oFileObject.size / UploadSetwithTableItem.MEGABYTE;
249
- this.setFileSize(oFileObject.size);
250
- this.setMediaType(oFileObject.type);
251
- } else {
252
- this._fFileSize = null;
253
- this.setMediaType(null);
254
- }
255
- if (this.getParent()) {
256
- this._checkSizeRestriction(this.getParent().getMaxFileSize());
257
- this._checkMediaTypeRestriction(this.getParent().getMediaTypes());
258
- }
259
- };
260
-
261
- /**
262
- * Checks if and how compliance with the file name length restriction changed for this item.
263
- * @param {int} iMaxLength Maximum length of file name.
264
- * @private
265
- */
266
- UploadSetwithTableItem.prototype._checkNameLengthRestriction = function (iMaxLength) {
267
- var bRestricted = (iMaxLength && !!this.getFileName() && this.getFileName().length > iMaxLength);
268
- if (bRestricted !== this._bNameLengthRestricted) {
269
- this._bNameLengthRestricted = bRestricted;
270
- this.invalidate();
271
- if (bRestricted && this.getParent()) {
272
- this.getParent().fireFileNameLengthExceeded({item: this});
273
- }
274
- }
275
- };
276
-
277
- /**
278
- * Checks if and how compliance with the file size restriction changed for this item.
279
- * @param {float} fMaxSize Maximum file size allowed in megabytes.
280
- * @private
281
- */
282
- UploadSetwithTableItem.prototype._checkSizeRestriction = function (fMaxSize) {
283
- var bRestricted = (fMaxSize && this._fFileSize > fMaxSize);
284
- if (bRestricted !== this._bSizeRestricted) {
285
- this._bSizeRestricted = bRestricted;
286
- this.invalidate();
287
- if (bRestricted && this.getParent()) {
288
- this.getParent().fireFileSizeExceeded({item: this});
289
- }
290
- }
291
- };
292
-
293
- /**
294
- * Checks if and how compliance with the mime type restriction changed for this item.
295
- * @param {string[]} aTypes List of allowed mime types.
296
- * @private
297
- */
298
- UploadSetwithTableItem.prototype._checkMediaTypeRestriction = function (aTypes) {
299
- var bRestricted = (!!aTypes && (aTypes.length > 0) && !!this.getMediaType() && aTypes.indexOf(this.getMediaType()) === -1);
300
- if (bRestricted !== this._bMediaTypeRestricted) {
301
- this._bMediaTypeRestricted = bRestricted;
302
- this.invalidate();
303
- if (bRestricted && this.getParent()) {
304
- this.getParent().fireMediaTypeMismatch({item: this});
305
- }
306
- }
307
- };
308
-
309
- /**
310
- * Checks if and how compliance with the file type restriction changed for this item.
311
- * @param {string[]} aTypes List of allowed file types.
312
- * @private
313
- */
314
- UploadSetwithTableItem.prototype._checkTypeRestriction = function (aTypes) {
315
- var oFile = UploadSetwithTableItem._splitFileName(this.getFileName()),
316
- bRestricted =
317
- (!!this.getFileName() && !!aTypes && (aTypes.length > 0)
318
- && oFile.extension && aTypes.indexOf(oFile.extension.toLowerCase()) === -1);
319
- if (bRestricted !== this._bFileTypeRestricted) {
320
- this._bFileTypeRestricted = bRestricted;
321
- this.invalidate();
322
- if (bRestricted && this.getParent()) {
323
- this.getParent().fireFileTypeMismatch({item: this});
324
- }
325
- }
326
- };
327
-
328
- UploadSetwithTableItem.prototype._isRestricted = function () {
329
- return this._bFileTypeRestricted || this._bNameLengthRestricted || this._bSizeRestricted || this._bMediaTypeRestricted;
330
- };
331
-
332
- /**
333
- * @param {suite.ui.commons.CloudFileInfo} oCloudFileInfo info the file selected from the CloudFilePicker control.
334
- * @private
335
- */
336
- UploadSetwithTableItem.prototype._setCloudFileInfo = function(oCloudFileInfo) {
337
- this._oCloudFileInfo = oCloudFileInfo;
338
- };
339
-
340
- UploadSetwithTableItem.IMAGE_FILE_ICON = "sap-icon://card";
341
- UploadSetwithTableItem.MEGABYTE = 1048576;
342
-
343
- return UploadSetwithTableItem;
344
- });
@@ -1,23 +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/core/Renderer", "sap/m/ColumnListItemRenderer", "sap/m/ListItemBaseRenderer"], function (Renderer, ColumnListItemRenderer) {
8
- "use strict";
9
-
10
- /**
11
- * UploadSetwithTableItem renderer.
12
- * @namespace
13
- */
14
- var UploadSetwithTableItemRenderer = Renderer.extend(ColumnListItemRenderer);
15
- UploadSetwithTableItemRenderer.apiVersion = 2;
16
-
17
- UploadSetwithTableItemRenderer.render = function(rm, oLI) {
18
- oLI.addStyleClass("SapMUSTI");
19
- ColumnListItemRenderer.render.apply(this, arguments);
20
- };
21
- // enable in-place DOM patching
22
- return UploadSetwithTableItemRenderer;
23
- }, /* bExport= */ true);
@@ -1,31 +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/core/Renderer", "sap/m/TableRenderer", "sap/m/Table"
8
- ], function (Renderer, TableRenderer, Table) {
9
- "use strict";
10
-
11
- /**
12
- * UploadSetwithTable renderer.
13
- * @namespace
14
- */
15
- var UploadSetwithTableRenderer = Renderer.extend(TableRenderer);
16
- UploadSetwithTableRenderer.apiVersion = 2; // enable in-place DOM patching
17
-
18
-
19
- /**
20
- * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
21
- *
22
- * @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the render output buffer.
23
- * @param {sap.m.upload.UploadSetwithTable} oControl an object representation of the control that should be rendered.
24
- */
25
- UploadSetwithTableRenderer.render = function (oRm, oControl) {
26
- oControl.addStyleClass("sapMUST");
27
- TableRenderer.render.apply(this,arguments);
28
- };
29
-
30
- return UploadSetwithTableRenderer;
31
- });
@@ -1,253 +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/ui/base/Object",
10
- "sap/base/Log",
11
- "sap/m/upload/p13n/modules/PersPopupManager",
12
- "sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
13
- "sap/m/upload/p13n/mediator/SortMediator",
14
- "sap/m/upload/p13n/mediator/GroupMediator",
15
- "sap/ui/fl/apply/api/ControlVariantApplyAPI",
16
- "sap/ui/fl/Utils"
17
- ],
18
- function (
19
- BaseObject,
20
- Log,
21
- PersPopupManager,
22
- ControlPersonalizationWriteAPI,
23
- SortMediator,
24
- GroupMediator,
25
- ControlVariantApplyAPI,
26
- Utils
27
- ) {
28
- "use strict";
29
- // Storage for mediators
30
- const _mRegistry = new WeakMap();
31
-
32
- //Singleton storage
33
- let oPersManager;
34
- let pRuntimeAPI;
35
-
36
- const _requireFlexRuntimeAPI = function () {
37
- if (!pRuntimeAPI) {
38
- pRuntimeAPI = new Promise(function (resolve, reject) {
39
- sap.ui.require(
40
- ["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"],
41
- function (FlexRuntimeInfoAPI) {
42
- resolve(FlexRuntimeInfoAPI);
43
- },
44
- reject
45
- );
46
- });
47
- }
48
- return pRuntimeAPI;
49
- };
50
-
51
- /**
52
- * @class
53
- * The <code>PersonalizationManager</code> entity provides robust personalization capabilities for controlling instances, including:
54
- *
55
- * <ul>
56
- * <li>Initialization of <code>sap.m.p13n.Popup</code> for user interaction</li>
57
- * <li>Storage of personalization states, with the flexibility to choose the preferred persistence layer</li>
58
- * <li>Application of states, taking into consideration the chosen persistence layer</li>
59
- * </ul>
60
- *
61
- * PersonalizationManager is essential when enabling personalization for uploadSetTable
62
- * Various mediators implementations can be employed for the registration process, such as:
63
- *
64
- * <ul>
65
- * <li>{@link sap.m.upload.p13n.mediator.ColumnsMediator ColumnsMediator}: To manage a list of selectable,visible and ordering of entries</li>
66
- * <li>{@link sap.m.upload.p13n.mediator.SortMediator SortMediator}: To organize a list of sortable properties</li>
67
- * <li>{@link sap.m.upload.p13n.mediator.GroupMediator GroupMediator}: To define groupable properties</li>
68
- * </ul>
69
- *
70
- * Additionally, it can be effectively used in conjunction with <code>sap.ui.fl.variants.VariantManagement</code> to persist a state within variants, utilizing <code>sap.ui.fl</code> capabilities.
71
- *
72
- * @alias sap.m.upload.p13n.PersManager
73
- * @extends sap.ui.base.Object
74
- * @author SAP SE
75
- * @version 1.129.0
76
- * @experimental
77
- * @internal
78
- * @private
79
- *
80
- */
81
- const PersManager = BaseObject.extend("sap.m.upload.p13n.PersManager", {
82
- constructor: function () {
83
- BaseObject.call(this);
84
- this.oPersPopupManager = PersPopupManager.getInstance();
85
- }
86
- });
87
-
88
- /**
89
- * Registers upload set table inside perso manager registry
90
- * @param {sap.m.upload.UploadSetwithTable} oControl upload set table that needs to be registered
91
- * @param {object} oConfig metadata and mediators that will control the panel.
92
- */
93
- PersManager.prototype.register = function (oControl, oConfig) {
94
- if (!oControl) {
95
- throw Error("Please provide control for which will be performed adaptation");
96
- }
97
- if (!oConfig?.mediators || oConfig.mediators.length === 0) {
98
- throw Error(
99
- "Please provide at least a configuration 'mediator' containing a map of key-value pairs (key + Mediator class) in order to register adaptation."
100
- );
101
- }
102
- const oRegisteredEntry = this._getRegisterEntry(oControl);
103
- if (oRegisteredEntry) {
104
- this.deregister(oRegisteredEntry);
105
- }
106
- const oEntry = this._registerControl(oControl);
107
- Object.entries(oConfig.mediators).forEach(([sKey, oValue]) => {
108
- oEntry.mediators[sKey] = oValue;
109
- });
110
- if (oControl.getEnableVariantManagement() && Utils.getAppComponentForControl(oControl)) {
111
- //In case when control is just initialized and initial changes are not available to it register the control
112
- ControlVariantApplyAPI.attachVariantApplied({
113
- selector: oControl,
114
- vmControlId: oControl._getVariantManagementControl().getId(),
115
- callAfterInitialVariant: true,
116
- callback: () => {
117
- PersManager.getInstance().applyStateChange(oControl);
118
- ControlVariantApplyAPI.detachVariantApplied({
119
- selector: oControl,
120
- vmControlId: oControl._getVariantManagementControl().getId()
121
- });
122
- }
123
- });
124
- }
125
- };
126
- /**
127
- * Upload set table that needs to be deregistered
128
- * @param {sap.m.upload.UploadSetwithTable} oControl upload set table that needs to be deregistered
129
- *
130
- */
131
- PersManager.prototype.deregister = function (oControl) {
132
- const oRegisteredEntry = this._getRegisterEntry(oControl);
133
- if (!oRegisteredEntry) {
134
- return;
135
- }
136
- Object.keys(oRegisteredEntry.mediators).forEach((sKey) => {
137
- const oMediator = oRegisteredEntry.mediators[sKey];
138
- oMediator.destroy();
139
- delete oRegisteredEntry.mediators[sKey];
140
- });
141
-
142
- _mRegistry.delete(oControl);
143
- };
144
-
145
- PersManager.prototype._registerControl = function (oControl) {
146
- const oEntry = {
147
- mediators: {},
148
- activeP13n: null
149
- };
150
- _mRegistry.set(oControl, oEntry);
151
- return oEntry;
152
- };
153
-
154
- PersManager.prototype._getRegisterEntry = function (oControl) {
155
- return _mRegistry.get(oControl);
156
- };
157
-
158
- PersManager.prototype.destroy = function () {
159
- oPersManager = null;
160
- _mRegistry.delete(this);
161
- };
162
-
163
-
164
- /**
165
- * Returns the singleton instance of PersManager
166
- * @internal
167
- * @private
168
- * @returns {object} returns object of PersManager
169
- */
170
-
171
- PersManager.getInstance = function () {
172
- if (!oPersManager) {
173
- oPersManager = new PersManager();
174
- }
175
- return oPersManager;
176
- };
177
-
178
- PersManager.prototype.show = function (oControl, vPanels) {
179
- const aPanels = vPanels instanceof Array ? vPanels : [vPanels];
180
- if (!this.verifyMediators(oControl, aPanels)) {
181
- return;
182
- }
183
- const oEntry = this._getRegisterEntry(oControl);
184
- if (oEntry.activeP13n) {
185
- return;
186
- }
187
- oEntry.activeP13n = true;
188
- this.oPersPopupManager.openP13nPopup(
189
- oControl,
190
- oEntry.mediators,
191
- aPanels,
192
- function (bIsOk) {
193
- let aChanges = [];
194
- if (bIsOk) {
195
- aPanels.forEach((sPanelKey) => {
196
- aChanges = aChanges.concat(oEntry.mediators[sPanelKey].getChanges());
197
- });
198
- }
199
- if (aChanges.length) {
200
- this.addChangesToFlex(aChanges);
201
- }
202
- oEntry.activeP13n = false;
203
- }.bind(this)
204
- );
205
- };
206
-
207
- PersManager.prototype.verifyMediators = function (oControl, aPanels) {
208
- const oEntry = this._getRegisterEntry(oControl);
209
- if (!oEntry || !aPanels || !(aPanels instanceof Array) || !aPanels?.length) {
210
- return false;
211
- }
212
- return aPanels.every((sKey) => {
213
- if (!oEntry.mediators[sKey]) {
214
- Log.error(`No mediator registered yet for ${oControl.getId()} and key: ${sKey}`);
215
- return false;
216
- }
217
- return true;
218
- });
219
- };
220
-
221
- PersManager.prototype.addChangesToFlex = function (aChanges) {
222
- ControlPersonalizationWriteAPI.add({
223
- changes: aChanges
224
- });
225
- };
226
-
227
- PersManager.prototype.waitForChanges = function (oControl) {
228
- return _requireFlexRuntimeAPI().then((FlexRuntimeInfoAPI) => {
229
- return FlexRuntimeInfoAPI.waitForChanges({ element: oControl });
230
- });
231
- };
232
-
233
- PersManager.prototype.applyStateChange = function (oControl) {
234
- const oRegistryEntry = this._getRegisterEntry(oControl);
235
- if (!oRegistryEntry?.mediators) {
236
- return;
237
- }
238
- const oSorters = [];
239
- Object.entries(oRegistryEntry.mediators).forEach(([sKey, oMediator]) => {
240
- if (oMediator instanceof SortMediator || oMediator instanceof GroupMediator) {
241
- oMediator.applyStateToTable(oSorters);
242
- } else {
243
- oMediator.applyStateToTable();
244
- }
245
- });
246
- const aSorters = Object.values(oSorters);
247
- if (oControl.getBinding("items")) {
248
- oControl.getBinding("items").sort(aSorters.length ? aSorters : null);
249
- }
250
- };
251
- return PersManager;
252
- }
253
- );
@@ -1,32 +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/handlers/ChangeHandler",
10
- "sap/m/upload/p13n/handlers/ColumnsStateChangeHandler",
11
- "sap/m/upload/p13n/handlers/SortStateChangeHandler",
12
- "sap/m/upload/p13n/handlers/GroupStateChangeHandler",
13
- "sap/m/upload/p13n/handlers/FilterStateChangeHandler"
14
- ],
15
- function (
16
- ChangeHandler,
17
- ColumnsStateChangeHandler,
18
- SortStateChangeHandler,
19
- GroupStateChangeHandler,
20
- FilterStateChangeHandler
21
- ) {
22
- "use strict";
23
-
24
- return {
25
- uploadSetTableColumnsStateChange: ChangeHandler.create(ColumnsStateChangeHandler),
26
- uploadSetTableSortStateChange: ChangeHandler.create(SortStateChangeHandler),
27
- uploadSetTableGroupStateChange: ChangeHandler.create(GroupStateChangeHandler),
28
- uploadSetTableFilterStateChange: ChangeHandler.create(FilterStateChangeHandler)
29
- };
30
- },
31
- /* bExport= */ true
32
- );