@openui5/sap.ui.mdc 1.96.2 → 1.98.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 (329) hide show
  1. package/.reuse/dep5 +26 -31
  2. package/THIRDPARTY.txt +15 -21
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +2 -2
  5. package/src/sap/ui/mdc/ActionToolbar.js +3 -8
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +2 -2
  8. package/src/sap/ui/mdc/Chart.js +1017 -1797
  9. package/src/sap/ui/mdc/ChartDelegate.js +430 -271
  10. package/src/sap/ui/mdc/ChartRenderer.js +74 -78
  11. package/src/sap/ui/mdc/Control.js +2 -2
  12. package/src/sap/ui/mdc/Delegate.js +1 -1
  13. package/src/sap/ui/mdc/Element.js +2 -2
  14. package/src/sap/ui/mdc/Field.js +4 -3
  15. package/src/sap/ui/mdc/FilterBar.js +4 -3
  16. package/src/sap/ui/mdc/FilterBarDelegate.js +1 -1
  17. package/src/sap/ui/mdc/FilterField.js +26 -9
  18. package/src/sap/ui/mdc/Link.js +5 -4
  19. package/src/sap/ui/mdc/LinkDelegate.js +2 -2
  20. package/src/sap/ui/mdc/MultiValueField.js +3 -2
  21. package/src/sap/ui/mdc/Table.js +174 -142
  22. package/src/sap/ui/mdc/TableDelegate.js +31 -16
  23. package/src/sap/ui/mdc/ValueHelp.js +52 -16
  24. package/src/sap/ui/mdc/ValueHelpDelegate.js +21 -1
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  26. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  27. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +9 -9
  28. package/src/sap/ui/mdc/chart/ChartSettings.js +1 -1
  29. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +11 -11
  30. package/src/sap/ui/mdc/chart/ChartTypeButton.js +49 -53
  31. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +4 -4
  32. package/src/sap/ui/mdc/chart/DrillStackHandler.js +39 -250
  33. package/src/sap/ui/mdc/chart/Item.js +63 -93
  34. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +4 -4
  35. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +18 -22
  36. package/src/sap/ui/mdc/condition/Condition.js +2 -2
  37. package/src/sap/ui/mdc/condition/ConditionConverter.js +2 -2
  38. package/src/sap/ui/mdc/condition/ConditionModel.js +2 -2
  39. package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +1 -1
  40. package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
  41. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +7 -3
  42. package/src/sap/ui/mdc/condition/Operator.js +10 -10
  43. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
  44. package/src/sap/ui/mdc/condition/RangeOperator.js +2 -2
  45. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +1 -1
  46. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +78 -6
  47. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +97 -0
  48. package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
  49. package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
  50. package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
  51. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -1
  52. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +4 -1
  53. package/src/sap/ui/mdc/designtime/library.designtime.js +1 -1
  54. package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +1 -1
  55. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +1 -1
  56. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +1 -1
  57. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
  58. package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +1 -1
  59. package/src/sap/ui/mdc/enum/BaseType.js +1 -1
  60. package/src/sap/ui/mdc/enum/ConditionValidated.js +1 -1
  61. package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
  62. package/src/sap/ui/mdc/enum/EditMode.js +1 -1
  63. package/src/sap/ui/mdc/enum/FieldDisplay.js +1 -1
  64. package/src/sap/ui/mdc/enum/OutParameterMode.js +1 -1
  65. package/src/sap/ui/mdc/enum/PersistenceMode.js +1 -1
  66. package/src/sap/ui/mdc/enum/SelectType.js +1 -1
  67. package/src/sap/ui/mdc/field/BoolFieldHelp.js +2 -2
  68. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +2 -2
  69. package/src/sap/ui/mdc/field/ConditionType.js +8 -8
  70. package/src/sap/ui/mdc/field/ConditionsType.js +8 -8
  71. package/src/sap/ui/mdc/field/CustomFieldHelp.js +2 -2
  72. package/src/sap/ui/mdc/field/CustomFieldInfo.js +2 -2
  73. package/src/sap/ui/mdc/field/DefineConditionPanel.js +59 -22
  74. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
  75. package/src/sap/ui/mdc/field/FieldBase.js +84 -53
  76. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
  77. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +1 -4
  78. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  79. package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +1 -1
  80. package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -2
  81. package/src/sap/ui/mdc/field/FieldInput.js +2 -2
  82. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +2 -2
  83. package/src/sap/ui/mdc/field/FieldInputRenderer.js +1 -1
  84. package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
  85. package/src/sap/ui/mdc/field/FieldMultiInputRenderer.js +1 -1
  86. package/src/sap/ui/mdc/field/FieldValueHelp.js +8 -8
  87. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +2 -2
  88. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +21 -1
  89. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +2 -2
  90. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
  91. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -2
  92. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -2
  93. package/src/sap/ui/mdc/field/InParameter.js +2 -2
  94. package/src/sap/ui/mdc/field/ListFieldHelp.js +11 -3
  95. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +2 -2
  96. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +1 -1
  97. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -2
  98. package/src/sap/ui/mdc/field/OutParameter.js +2 -2
  99. package/src/sap/ui/mdc/field/ValueHelpPanel.js +3 -2
  100. package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
  101. package/src/sap/ui/mdc/field/content/ContentFactory.js +24 -22
  102. package/src/sap/ui/mdc/field/content/DateContent.js +129 -3
  103. package/src/sap/ui/mdc/field/content/DateTimeContent.js +10 -2
  104. package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
  105. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  106. package/src/sap/ui/mdc/field/content/SearchContent.js +1 -1
  107. package/src/sap/ui/mdc/field/content/TimeContent.js +9 -2
  108. package/src/sap/ui/mdc/field/content/UnitContent.js +24 -5
  109. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +326 -141
  110. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  111. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
  112. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +2 -2
  113. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -1
  114. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -1
  115. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +9 -3
  116. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +1 -1
  117. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -1
  118. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +1 -1
  119. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +1 -1
  120. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +4 -2
  121. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +8 -2
  122. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  123. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +7 -7
  124. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +1 -1
  125. package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +1 -1
  126. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +3 -3
  127. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +1 -1
  128. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +2 -2
  129. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +1 -1
  130. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
  131. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +1 -1
  132. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +5 -4
  133. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
  134. package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
  135. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
  136. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +10 -4
  137. package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +1 -1
  138. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
  139. package/src/sap/ui/mdc/flexibility/SortFlex.js +3 -3
  140. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +1 -1
  141. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
  142. package/src/sap/ui/mdc/library.js +50 -39
  143. package/src/sap/ui/mdc/link/ContactDetails.js +2 -2
  144. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +2 -2
  145. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +2 -2
  146. package/src/sap/ui/mdc/link/ContactDetailsItem.js +2 -2
  147. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +2 -2
  148. package/src/sap/ui/mdc/link/Factory.js +3 -3
  149. package/src/sap/ui/mdc/link/FakeFlpConnector.js +2 -2
  150. package/src/sap/ui/mdc/link/LinkItem.js +2 -2
  151. package/src/sap/ui/mdc/link/Log.js +1 -1
  152. package/src/sap/ui/mdc/link/Panel.js +141 -179
  153. package/src/sap/ui/mdc/link/PanelItem.js +2 -2
  154. package/src/sap/ui/mdc/link/PanelListItem.js +2 -2
  155. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +2 -2
  156. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +2 -2
  157. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +2 -2
  158. package/src/sap/ui/mdc/messagebundle.properties +19 -4
  159. package/src/sap/ui/mdc/messagebundle_ar.properties +13 -4
  160. package/src/sap/ui/mdc/messagebundle_bg.properties +11 -2
  161. package/src/sap/ui/mdc/messagebundle_ca.properties +11 -2
  162. package/src/sap/ui/mdc/messagebundle_cs.properties +26 -17
  163. package/src/sap/ui/mdc/messagebundle_cy.properties +11 -2
  164. package/src/sap/ui/mdc/messagebundle_da.properties +18 -9
  165. package/src/sap/ui/mdc/messagebundle_de.properties +11 -2
  166. package/src/sap/ui/mdc/messagebundle_el.properties +12 -3
  167. package/src/sap/ui/mdc/messagebundle_en.properties +11 -2
  168. package/src/sap/ui/mdc/messagebundle_en_GB.properties +11 -2
  169. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +17 -0
  170. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -19
  171. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +17 -0
  172. package/src/sap/ui/mdc/messagebundle_es.properties +12 -3
  173. package/src/sap/ui/mdc/messagebundle_es_MX.properties +24 -15
  174. package/src/sap/ui/mdc/messagebundle_et.properties +11 -2
  175. package/src/sap/ui/mdc/messagebundle_fi.properties +17 -8
  176. package/src/sap/ui/mdc/messagebundle_fr.properties +15 -6
  177. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +11 -2
  178. package/src/sap/ui/mdc/messagebundle_hi.properties +12 -3
  179. package/src/sap/ui/mdc/messagebundle_hr.properties +11 -2
  180. package/src/sap/ui/mdc/messagebundle_hu.properties +11 -2
  181. package/src/sap/ui/mdc/messagebundle_id.properties +11 -2
  182. package/src/sap/ui/mdc/messagebundle_it.properties +26 -17
  183. package/src/sap/ui/mdc/messagebundle_iw.properties +12 -3
  184. package/src/sap/ui/mdc/messagebundle_ja.properties +11 -2
  185. package/src/sap/ui/mdc/messagebundle_kk.properties +11 -2
  186. package/src/sap/ui/mdc/messagebundle_ko.properties +15 -6
  187. package/src/sap/ui/mdc/messagebundle_lt.properties +11 -2
  188. package/src/sap/ui/mdc/messagebundle_lv.properties +11 -2
  189. package/src/sap/ui/mdc/messagebundle_ms.properties +11 -2
  190. package/src/sap/ui/mdc/messagebundle_nl.properties +16 -7
  191. package/src/sap/ui/mdc/messagebundle_no.properties +19 -10
  192. package/src/sap/ui/mdc/messagebundle_pl.properties +12 -3
  193. package/src/sap/ui/mdc/messagebundle_pt.properties +18 -9
  194. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +11 -2
  195. package/src/sap/ui/mdc/messagebundle_ro.properties +11 -2
  196. package/src/sap/ui/mdc/messagebundle_ru.properties +11 -2
  197. package/src/sap/ui/mdc/messagebundle_sh.properties +11 -2
  198. package/src/sap/ui/mdc/messagebundle_sk.properties +11 -2
  199. package/src/sap/ui/mdc/messagebundle_sl.properties +11 -2
  200. package/src/sap/ui/mdc/messagebundle_sv.properties +13 -4
  201. package/src/sap/ui/mdc/messagebundle_th.properties +11 -2
  202. package/src/sap/ui/mdc/messagebundle_tr.properties +11 -2
  203. package/src/sap/ui/mdc/messagebundle_uk.properties +12 -3
  204. package/src/sap/ui/mdc/messagebundle_vi.properties +11 -2
  205. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +11 -2
  206. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +11 -2
  207. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +3 -4
  208. package/src/sap/ui/mdc/mixin/DelegateMixin.js +3 -3
  209. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +17 -12
  210. package/src/sap/ui/mdc/mixin/PromiseMixin.js +3 -4
  211. package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
  212. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +1 -1
  213. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +30 -484
  214. package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +6 -6
  215. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +1 -1
  216. package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +1 -1
  217. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +1 -1
  218. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
  219. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +158 -114
  220. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -2
  221. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
  222. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
  223. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +137 -49
  224. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  225. package/src/sap/ui/mdc/p13n/Engine.js +56 -19
  226. package/src/sap/ui/mdc/p13n/FlexUtil.js +12 -119
  227. package/src/sap/ui/mdc/p13n/P13nBuilder.js +3 -3
  228. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +22 -11
  229. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  230. package/src/sap/ui/mdc/p13n/StateUtil.js +41 -7
  231. package/src/sap/ui/mdc/p13n/UIManager.js +16 -13
  232. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +5 -2
  233. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +10 -7
  234. package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +3 -3
  235. package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
  236. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +1 -1
  237. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +20 -4
  238. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +1 -1
  239. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1093 -49
  240. package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
  241. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
  242. package/src/sap/ui/mdc/p13n/panels/ListView.js +7 -3
  243. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +1 -1
  244. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +1 -1
  245. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
  246. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -6
  247. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  248. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +157 -12
  249. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +16 -27
  250. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +7 -6
  251. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +1 -1
  252. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +7 -6
  253. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
  254. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
  255. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +11 -18
  256. package/src/sap/ui/mdc/table/Column.js +36 -11
  257. package/src/sap/ui/mdc/table/CreationRow.js +15 -14
  258. package/src/sap/ui/mdc/table/GridTableType.js +14 -14
  259. package/src/sap/ui/mdc/table/PropertyHelper.js +65 -28
  260. package/src/sap/ui/mdc/table/ResponsiveTableType.js +27 -30
  261. package/src/sap/ui/mdc/table/RowSettings.js +8 -6
  262. package/src/sap/ui/mdc/table/TableSettings.js +1 -1
  263. package/src/sap/ui/mdc/table/TableTypeBase.js +7 -7
  264. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +16 -72
  265. package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
  266. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  267. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +12 -1
  268. package/src/sap/ui/mdc/themes/base/library.source.less +2 -1
  269. package/src/sap/ui/mdc/ui/Container.js +3 -3
  270. package/src/sap/ui/mdc/ui/ContainerItem.js +3 -3
  271. package/src/sap/ui/mdc/util/Common.js +2 -2
  272. package/src/sap/ui/mdc/util/DateUtil.js +2 -2
  273. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  274. package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
  275. package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
  276. package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
  277. package/src/sap/ui/mdc/util/PropertyHelper.js +149 -326
  278. package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
  279. package/src/sap/ui/mdc/util/loadModules.js +1 -1
  280. package/src/sap/ui/mdc/valuehelp/Dialog.js +13 -9
  281. package/src/sap/ui/mdc/valuehelp/Popover.js +15 -3
  282. package/src/sap/ui/mdc/valuehelp/base/Container.js +34 -2
  283. package/src/sap/ui/mdc/valuehelp/base/Content.js +37 -6
  284. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -2
  285. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +44 -16
  286. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -2
  287. package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -2
  288. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +29 -33
  289. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +12 -6
  290. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +44 -9
  291. package/src/sap/ui/mdc/valuehelp/content/MTable.js +58 -27
  292. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -1
  293. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  294. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  295. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  296. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  297. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  298. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  299. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
  300. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +5 -5
  301. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  302. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  303. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  304. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  305. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  306. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +365 -236
  307. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  308. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  309. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  310. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  311. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  312. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  313. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  314. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  315. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  316. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  317. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  318. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  319. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  320. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  321. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  322. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  323. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  324. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  325. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1171
  326. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
  327. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
  328. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
  329. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -14,9 +14,10 @@ sap.ui.define([
14
14
  "sap/ui/core/library",
15
15
  "sap/ui/mdc/p13n/StateUtil",
16
16
  "sap/ui/core/Element",
17
- "sap/ui/mdc/p13n/DefaultProviderRegistry",
18
- "sap/ui/mdc/p13n/UIManager"
19
- ], function (AdaptationProvider, merge, Log, PropertyHelper, FlexModificationHandler, MessageStrip, coreLibrary, StateUtil, Element, DefaultProviderRegistry, UIManager) {
17
+ "sap/ui/mdc/p13n/modules/DefaultProviderRegistry",
18
+ "sap/ui/mdc/p13n/UIManager",
19
+ "sap/ui/mdc/p13n/modules/StateHandlerRegistry"
20
+ ], function (AdaptationProvider, merge, Log, PropertyHelper, FlexModificationHandler, MessageStrip, coreLibrary, StateUtil, Element, DefaultProviderRegistry, UIManager, StateHandlerRegistry) {
20
21
  "use strict";
21
22
 
22
23
  var ERROR_INSTANCING = "Engine: This class is a singleton. Please use the getInstance() method instead.";
@@ -39,7 +40,7 @@ sap.ui.define([
39
40
  * @extends sap.ui.base.Object
40
41
  *
41
42
  * @author SAP SE
42
- * @version 1.96.2
43
+ * @version 1.98.0
43
44
  *
44
45
  * @private
45
46
  * @ui5-restricted sap.ui.mdc
@@ -56,12 +57,16 @@ sap.ui.define([
56
57
  }
57
58
 
58
59
  this._aRegistry = [];
60
+ this._aStateHandlers = [];
59
61
 
60
62
  //Default Provider Registry to be used for internal PersistenceProvider functionality access
61
63
  this.defaultProviderRegistry = DefaultProviderRegistry.getInstance();
62
64
 
63
65
  //UIManager to be used for p13n UI creation
64
66
  this.uimanager = UIManager.getInstance(this);
67
+
68
+ //Default state Handler Registry to be used for state event handling
69
+ this.stateHandlerRegistry = StateHandlerRegistry.getInstance();
65
70
  }
66
71
  });
67
72
 
@@ -187,7 +192,7 @@ sap.ui.define([
187
192
  return this.initAdaptation(vControl, sKey).then(function(){
188
193
 
189
194
  var oController = this.getController(vControl, sKey);
190
- var mchangeOperations = oController.getChangeOperations();
195
+ var mChangeOperations = oController.getChangeOperations();
191
196
 
192
197
  var oRegistryEntry = this._getRegistryEntry(vControl);
193
198
  var oCurrentState = oController.getCurrentState();
@@ -198,9 +203,9 @@ sap.ui.define([
198
203
  applyAbsolute: bApplyAbsolute,
199
204
  changedState: aNewState,
200
205
  control: oController.getAdaptationControl(),
201
- changeOperations: mchangeOperations,
206
+ changeOperations: mChangeOperations,
202
207
  deltaAttributes: ["name"],
203
- propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.getName()};})
208
+ propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.name};})
204
209
  };
205
210
 
206
211
  //Only execute change calculation in case there is a difference (--> example: press 'Ok' without a difference)
@@ -230,12 +235,22 @@ sap.ui.define([
230
235
 
231
236
  aKeys = aKeys instanceof Array ? aKeys : [aKeys];
232
237
 
238
+ var aSelectors = [];
239
+
240
+ aKeys.forEach(function(sKey) {
241
+ aSelectors = aSelectors.concat(this.getController(oControl, sKey).getSelectorForReset());
242
+ }.bind(this));
243
+
233
244
  var oResetConfig = {
245
+ selectors: aSelectors,
234
246
  selector: oControl
235
247
  };
236
248
 
237
249
  var oModificationSetting = this._determineModification(oControl);
238
250
  return oModificationSetting.handler.reset(oResetConfig, oModificationSetting.payload).then(function(){
251
+ //trigger statehandlerregistry notification
252
+ this.stateHandlerRegistry.fireChange(oControl);
253
+
239
254
  //Re-Init housekeeping after update
240
255
  return this.initAdaptation(oControl, aKeys).then(function(oPropertyHelper){
241
256
  aKeys.forEach(function(sKey){
@@ -283,7 +298,11 @@ sap.ui.define([
283
298
  Engine.prototype._processChanges = function(vControl, aChanges) {
284
299
  if (aChanges instanceof Array && aChanges.length > 0) {
285
300
  var oModificationSetting = this._determineModification(vControl);
286
- return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload);
301
+ return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
302
+ .then(function(aChanges){
303
+ this.stateHandlerRegistry.fireChange(Engine.getControlInstance(vControl));
304
+ return aChanges;
305
+ }.bind(this));
287
306
  } else {
288
307
  return Promise.resolve([]);
289
308
  }
@@ -306,9 +325,10 @@ sap.ui.define([
306
325
  var fResolveRTA;
307
326
 
308
327
  //var aVMs = Engine.hasForReference(oControl, "sap.ui.fl.variants.VariantManagement");
328
+ // TODO: clarify if we need this error handling / what to do with the Link if we want to keep it
309
329
  var aPVs = Engine.hasForReference(oControl, "sap.ui.mdc.p13n.PersistenceProvider");
310
330
 
311
- if (aPVs.length > 0) {
331
+ if (aPVs.length > 0 && !oControl.isA("sap.ui.mdc.link.Panel")) {
312
332
  return Promise.reject("Please do not use a PeristenceProvider in RTA.");
313
333
  }
314
334
 
@@ -319,7 +339,10 @@ sap.ui.define([
319
339
  fResolveRTA = resolve;
320
340
  });
321
341
 
322
- oModificationHandler.processChanges = fResolveRTA;
342
+ oModificationHandler.processChanges = function(aChanges) {
343
+ fResolveRTA(aChanges);
344
+ return Promise.resolve(aChanges);
345
+ };
323
346
 
324
347
  this._setModificationHandler(oControl, oModificationHandler);
325
348
 
@@ -329,6 +352,9 @@ sap.ui.define([
329
352
  oCustomHeader.getContentRight()[0].setVisible(false);
330
353
  }
331
354
  oContainer.addStyleClass(mPropertyBag.styleClass);
355
+ if (mPropertyBag.fnAfterClose instanceof Function) {
356
+ oContainer.attachAfterClose(mPropertyBag.fnAfterClose);
357
+ }
332
358
  });
333
359
 
334
360
  oRTAPromise.then(function(){
@@ -598,7 +624,8 @@ sap.ui.define([
598
624
  *
599
625
  * @returns {object} The requested UI settings of the control instance and provided keys
600
626
  */
601
- Engine.prototype.getUISettings = function(vControl, aKeys) {
627
+ Engine.prototype.getUISettings = function(vControl, vKeys) {
628
+ var aKeys = Array.isArray(vKeys) ? vKeys : [vKeys];
602
629
  this.verifyController(vControl, aKeys);
603
630
  var oPropertyHelper = this._getRegistryEntry(vControl).helper;
604
631
  var mUiSettings = {};
@@ -607,6 +634,8 @@ sap.ui.define([
607
634
  var oController = this.getController(vControl, sKey);
608
635
  var pAdaptationUI = oController.getAdaptationUI(oPropertyHelper);
609
636
  //Check faceless controller implementations and skip them
637
+
638
+ //TODO: error handling for non promises
610
639
  if (pAdaptationUI instanceof Promise){
611
640
  mUiSettings[sKey] = {};
612
641
  mUiSettings[sKey] = {
@@ -954,27 +983,27 @@ sap.ui.define([
954
983
  * @param {object[]} [aCustomPropertyInfo] A custom set of propertyinfo.
955
984
  *
956
985
  */
957
- Engine.prototype._retrievePropertyHelper = function(vControl, aCustomPropertyInfo){
986
+ Engine.prototype._retrievePropertyHelper = function (vControl, aCustomPropertyInfo) {
958
987
 
959
988
  var oRegistryEntry = this._getRegistryEntry(vControl);
960
989
  var oControl = Engine.getControlInstance(vControl);
961
990
 
962
991
  if (aCustomPropertyInfo) {
963
- if (oRegistryEntry.helper){
992
+ if (oRegistryEntry.helper) {
964
993
  oRegistryEntry.helper.destroy();
965
994
  }
966
995
  oRegistryEntry.helper = new PropertyHelper(aCustomPropertyInfo);
967
996
  return Promise.resolve(oRegistryEntry.helper);
968
- }
997
+ }
969
998
 
970
999
  if (oRegistryEntry.helper) {
971
1000
  return Promise.resolve(oRegistryEntry.helper);
972
1001
  }
973
1002
 
974
- return oControl.initPropertyHelper().then(function(oPropertyHelper){
1003
+ return oControl.initPropertyHelper().then(function (oPropertyHelper) {
975
1004
  oRegistryEntry.helper = oPropertyHelper;
976
1005
  return oPropertyHelper;
977
- }, function(sHelperError){
1006
+ }, function (sHelperError) {
978
1007
  throw new Error(sHelperError);
979
1008
  });
980
1009
  };
@@ -998,11 +1027,17 @@ sap.ui.define([
998
1027
  * This method can be used for debugging to retrieve the complete registry.
999
1028
  */
1000
1029
  Engine.prototype._getRegistry = function() {
1001
- var oRegistry = {};
1030
+ var oRegistry = {
1031
+ stateHandlerRegistry: this.stateHandlerRegistry,
1032
+ defaultProviderRegistry: this.defaultProviderRegistry,
1033
+ controlRegistry: {}
1034
+ };
1035
+
1002
1036
  this._aRegistry.forEach(function(sKey){
1003
1037
  var oControl = sap.ui.getCore().byId(sKey);
1004
- oRegistry[sKey] = _mRegistry.get(oControl);
1038
+ oRegistry.controlRegistry[sKey] = _mRegistry.get(oControl);
1005
1039
  });
1040
+
1006
1041
  return oRegistry;
1007
1042
  };
1008
1043
 
@@ -1017,6 +1052,8 @@ sap.ui.define([
1017
1052
  _mRegistry.delete(this);
1018
1053
  this.defaultProviderRegistry.destroy();
1019
1054
  this.defaultProviderRegistry = null;
1055
+ this.stateHandlerRegistry.destroy();
1056
+ this.stateHandlerRegistry = null;
1020
1057
  this.uimanager.destroy();
1021
1058
  this.uimanager = null;
1022
1059
  };
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -10,101 +10,6 @@ sap.ui.define([
10
10
 
11
11
  var FlexUtil = {
12
12
 
13
- /**
14
- * Generates a set of changes based on the given arrays for a specified control
15
- *
16
- * @public
17
- *
18
- * @param {object} mDeltaInfo Map containing the necessary information to calculate the diff as change objects
19
- * @param {array} mDeltaInfo.existingState An array describing the control state before a adaptation
20
- * @param {array} mDeltaInfo.changedState An array describing the control state after a certain adaptation
21
- * @param {object} mDeltaInfo.control Control instance which is being used to generate the changes
22
- * @param {object} mDeltaInfo.changeOperations Map containing the changeOperations for the given Control instance
23
- * @param {string} mDeltaInfo.changeOperations.add Name of the control specific 'add' changehandler
24
- * @param {string} mDeltaInfo.changeOperations.remove Name of the control specific 'remove' changehandler
25
- * @param {string} [mDeltaInfo.changeOperations.move] Name of the control specific 'move' changehandler
26
- * @param {string} [mDeltaInfo.generator] Name of the change generator (E.g. the namespace of the UI creating the change object)
27
- *
28
- * @returns {array} Array containing the delta based created changes
29
- */
30
- getArrayDeltaChanges: function (mDeltaInfo) {
31
-
32
- var aExistingArray = mDeltaInfo.existingState;
33
- var aChangedArray = mDeltaInfo.changedState;
34
- var oControl = mDeltaInfo.control;
35
- var sInsertOperation = mDeltaInfo.changeOperations.add;
36
- var sRemoveOperation = mDeltaInfo.changeOperations.remove;
37
- var sMoveOperation = mDeltaInfo.changeOperations.move;
38
- var sGenerator = mDeltaInfo.generator;
39
-
40
- var aDeltaAttributes = mDeltaInfo.deltaAttributes || [];
41
-
42
- var fnSymbol = function(o) {
43
- var sDiff = "";
44
- aDeltaAttributes.forEach(function(sAttribute){
45
- sDiff = sDiff + o[sAttribute];
46
- });
47
- return sDiff;
48
- };
49
-
50
- var aResults = diff(aExistingArray, aChangedArray, fnSymbol);
51
- // Function to match field with exising field in the given array
52
- var fMatch = function (oField, aArray) {
53
- return aArray.filter(function (oExistingField) {
54
- return oExistingField && (oExistingField.name === oField.name);
55
- })[0];
56
- };
57
-
58
- var aChanges = [];
59
- var aProcessedArray = aExistingArray.slice(0);
60
-
61
- aResults.forEach(function (oResult) {
62
- // Begin --> hack for handling result returned by diff
63
- if (oResult.type === "delete" && aProcessedArray[oResult.index] === undefined) {
64
- aProcessedArray.splice(oResult.index, 1);
65
- return;
66
- }
67
-
68
- var oProp, oExistingProp, iLength;
69
- if (oResult.type === "insert") {
70
- oExistingProp = fMatch(aChangedArray[oResult.index], aProcessedArray);
71
- if (oExistingProp) {
72
- oExistingProp.index = aProcessedArray.indexOf(oExistingProp);
73
- aProcessedArray.splice(oExistingProp.index, 1, undefined);
74
- aChanges.push(FlexUtil.createAddRemoveChange(oControl, sRemoveOperation, FlexUtil._getChangeContent(oExistingProp, aDeltaAttributes), sGenerator));
75
- }
76
- }
77
- // End hack
78
- oProp = oResult.type === "delete" ? aProcessedArray[oResult.index] : aChangedArray[oResult.index];
79
- oProp.index = oResult.index;
80
- if (oResult.type === "delete") {
81
- aProcessedArray.splice(oProp.index, 1);
82
- } else {
83
- aProcessedArray.splice(oProp.index, 0, oProp);
84
- }
85
- // Move operation shows up as insert followed by delete OR delete followed by insert
86
- if (sMoveOperation) {
87
- iLength = aChanges.length;
88
- // Get the last added change
89
- if (iLength) {
90
- oExistingProp = aChanges[iLength - 1];
91
- oExistingProp = oExistingProp ? oExistingProp.changeSpecificData.content : undefined;
92
- }
93
- // Matching property exists with a different index --> then this is a move operation
94
- if (oExistingProp && oExistingProp.name === oProp.name && oResult.index != oExistingProp.index) {
95
- // remove the last insert/delete operation
96
- aChanges.pop();
97
- aChanges.push(FlexUtil.createMoveChange(oExistingProp.id, oExistingProp.name, oResult.index, sMoveOperation, oControl, sMoveOperation !== "moveSort", sGenerator));
98
- return;
99
- }
100
- }
101
-
102
- aChanges.push(FlexUtil.createAddRemoveChange(oControl, oResult.type === "delete" ? sRemoveOperation : sInsertOperation, FlexUtil._getChangeContent(oProp, aDeltaAttributes), sGenerator));
103
-
104
- });
105
- return aChanges;
106
- },
107
-
108
13
  getPropertySetterChanges: function(mDeltaInfo) {
109
14
  var oControl = mDeltaInfo.control;
110
15
  var aExistingState = mDeltaInfo.existingState;
@@ -124,7 +29,7 @@ sap.ui.define([
124
29
  var vNewValue = oItem[sSetAttribute];
125
30
  var bValueChanged = vOldValue !== vNewValue;
126
31
  if (bValueChanged) {
127
- aSetterChanges.push(this.createAddRemoveChange(oControl, sOperation, {
32
+ aSetterChanges.push(this.createChange(oControl, sOperation, {
128
33
  name: oItem.name,
129
34
  value: oItem[sSetAttribute]
130
35
  }));
@@ -193,7 +98,14 @@ sap.ui.define([
193
98
  Log.warning("property '" + sFieldPath + "' not supported");
194
99
  continue;
195
100
  }
196
- aConditionChanges = aConditionChanges.concat(FlexUtil._diffConditionPath(sFieldPath, mNewConditionState[sFieldPath], mPreviousConditionState[sFieldPath], oAdaptationControl));
101
+
102
+ var aFilterConditionChanges = FlexUtil._diffConditionPath(sFieldPath, mNewConditionState[sFieldPath], mPreviousConditionState[sFieldPath], oAdaptationControl);
103
+
104
+ if (oAdaptationControl && oAdaptationControl.createPropertyInfoChanges && (aFilterConditionChanges.length > 0)) {
105
+ aFilterConditionChanges = oAdaptationControl.createPropertyInfoChanges(sFieldPath).concat(aFilterConditionChanges);
106
+ }
107
+
108
+ aConditionChanges = aConditionChanges.concat(aFilterConditionChanges);
197
109
  }
198
110
 
199
111
  return aConditionChanges;
@@ -274,7 +186,8 @@ sap.ui.define([
274
186
 
275
187
  return aChanges;
276
188
  },
277
- createAddRemoveChange: function(oControl, sOperation, oContent){
189
+
190
+ createChange: function(oControl, sOperation, oContent){
278
191
  var oAddRemoveChange = {
279
192
  selectorElement: oControl,
280
193
  changeSpecificData: {
@@ -285,26 +198,6 @@ sap.ui.define([
285
198
  return oAddRemoveChange;
286
199
  },
287
200
 
288
- createMoveChange: function (sId, sPropertyName, iNewIndex, sMoveOperation, oControl, bPersistId) {
289
- var oMoveChange = {
290
- selectorElement: oControl,
291
- changeSpecificData: {
292
- changeType: sMoveOperation,
293
- content: {
294
- id: sId,
295
- name: sPropertyName,
296
- index: iNewIndex
297
- }
298
- }
299
- };
300
-
301
- if (!bPersistId) {
302
- delete oMoveChange.changeSpecificData.content.id;
303
- }
304
-
305
- return oMoveChange;
306
- },
307
-
308
201
  createConditionChange: function(sChangeType, oControl, sFieldPath, oCondition) {
309
202
  var oConditionChange = {
310
203
  selectorElement: oControl,
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -196,7 +196,7 @@ sap.ui.define([
196
196
  prepareAdaptationData: function(vProperties, fnEnhace, bGroupData) {
197
197
 
198
198
  var oPropertyHelper =
199
- vProperties && vProperties.getProperties instanceof Function ?
199
+ vProperties && vProperties.getProperties instanceof Function ?
200
200
  vProperties : new P13nPropertyHelper(vProperties);
201
201
 
202
202
  var aItems = [];
@@ -216,7 +216,7 @@ sap.ui.define([
216
216
  }
217
217
 
218
218
  mItem.name = oProperty.name;
219
- mItem.label = oProperty.getLabel() || oProperty.name;
219
+ mItem.label = oProperty.label || oProperty.name;
220
220
  mItem.tooltip = oProperty.tooltip;
221
221
 
222
222
  if (mItemsGrouped) {
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/ui/core/Control", "sap/ui/fl/variants/VariantManagement", "sap/ui/fl/Utils", "sap/ui/mdc/enum/PersistenceMode"
8
- ], function(CoreControl, VariantManagement, Utils, mode) {
7
+ "sap/ui/core/Control", "sap/ui/fl/variants/VariantManagement", "sap/ui/fl/Utils", "sap/ui/mdc/enum/PersistenceMode", "sap/ui/layout/VerticalLayout"
8
+ ], function(CoreControl, VariantManagement, Utils, mode, VerticalLayout) {
9
9
  "use strict";
10
10
 
11
11
  /**
@@ -78,12 +78,23 @@ sap.ui.define([
78
78
  this._bmodeLocked = true;
79
79
 
80
80
  if (this.getMode() === mode.Transient) {
81
- this._oVM = new VariantManagement(this.getId() + "--vm", {"for": this.getAssociation("for")});
81
+ var oVM = new VariantManagement(this.getId() + "--vm", {"for": this.getAssociation("for")});
82
82
  this._oModelPromise.then(function (oModel) {
83
- this._oVM.setModel(oModel, Utils.VARIANT_MODEL_NAME);
84
- }.bind(this));
83
+ oVM.setModel(oModel, Utils.VARIANT_MODEL_NAME);
84
+ });
85
+ this._oWrapper = new VerticalLayout(this.getId() + "--accWrapper", {
86
+ content: [
87
+ oVM
88
+ ]
89
+ });
90
+
91
+ this._oWrapper.onAfterRendering = function() {
92
+ VerticalLayout.prototype.onAfterRendering.apply(this, arguments);
93
+ this.getDomRef().setAttribute("aria-hidden", true);
94
+ };
95
+
85
96
  var oStatic = sap.ui.getCore().getUIArea(sap.ui.getCore().getStaticAreaRef());
86
- oStatic.addContent(this._oVM);
97
+ oStatic.addContent(this._oWrapper);
87
98
  }
88
99
 
89
100
  return this;
@@ -109,12 +120,12 @@ sap.ui.define([
109
120
  };
110
121
 
111
122
  PersistenceProvider.prototype.exit = function () {
112
- if (this._oVM) {
123
+ if (this._oWrapper) {
113
124
  var oStatic = sap.ui.getCore().getUIArea(sap.ui.getCore().getStaticAreaRef());
114
- oStatic.removeContent(this._oVM);
125
+ oStatic.removeContent(this._oWrapper);
115
126
 
116
- this._oVM.destroy();
117
- this._oVM = null;
127
+ this._oWrapper.destroy();
128
+ this._oWrapper = null;
118
129
  }
119
130
 
120
131
  this._oModelPromise = null;
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.mdc.util.PropertyHelper
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.96.2
32
+ * @version 1.98.0
33
33
  *
34
34
  * @private
35
35
  * @experimental
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -79,6 +79,16 @@ sap.ui.define([
79
79
  * Country: {
80
80
  * aggregated: false
81
81
  * }
82
+ * },
83
+ * //The supplementaryConfig can be used to modify control specific attributes, for example the column width in the Table
84
+ * supplementaryConfig: {
85
+ * aggregations: {
86
+ * columns: {
87
+ * Category: {
88
+ * width: "150px"
89
+ * }
90
+ * }
91
+ * }
82
92
  * }
83
93
  * }
84
94
  *
@@ -108,6 +118,32 @@ sap.ui.define([
108
118
  });
109
119
  },
110
120
 
121
+ /**
122
+ * Attaches an event handler to the <code>StateUtil</code>.
123
+ * The event handler may be fired every time a user triggers a personalization change for a control instance during runtime.
124
+ *
125
+ * @private
126
+ * @ui5-restricted sap.fe
127
+ * @MDC_PUBLIC_CANDIDATE
128
+ * @param {function} fnListener fnFunction The handler function to call when the event occurs
129
+ */
130
+ attachStateChange: function(fnListener) {
131
+ sap.ui.mdc.p13n.Engine.getInstance().stateHandlerRegistry.attachChange(fnListener);
132
+ },
133
+
134
+ /**
135
+ * Removes a previously attached state change event handler from the <code>StateUtil</code> class.
136
+ * The passed parameters must match those used for registration with {@link StateUtil#attachChange} beforehand.
137
+ *
138
+ * @private
139
+ * @ui5-restricted sap.fe
140
+ * @MDC_PUBLIC_CANDIDATE
141
+ * @param {function} fnListener fnFunction The handler function to detach from the event
142
+ */
143
+ detachStateChange: function(fnListener) {
144
+ sap.ui.mdc.p13n.Engine.getInstance().stateHandlerRegistry.detachChange(fnListener);
145
+ },
146
+
111
147
  _externalizeKeys: function(oInternalState) {
112
148
  var mKeysForState = {
113
149
  Sort: "sorters",
@@ -115,7 +151,8 @@ sap.ui.define([
115
151
  Aggregate: "aggregations",
116
152
  Filter: "filter",
117
153
  Item: "items",
118
- Column: "items"
154
+ Column: "items",
155
+ ColumnWidth: "supplementaryConfig"
119
156
  };
120
157
  var oTransformedState = {};
121
158
 
@@ -124,10 +161,6 @@ sap.ui.define([
124
161
  var sTransformedKey = sExternalKey || sProvidedEngineKey;//no external key --> provide internal key
125
162
  oTransformedState[sTransformedKey] = oInternalState[sProvidedEngineKey];
126
163
  });
127
- //TODO: Remove once the stateUtil for columnWidth is introduced
128
- if (oTransformedState.ColumnWidth) {
129
- delete oTransformedState.ColumnWidth;
130
- }
131
164
  return oTransformedState;
132
165
  },
133
166
 
@@ -137,7 +170,8 @@ sap.ui.define([
137
170
  groupLevels: ["Group"],
138
171
  aggregations: ["Aggregate"],
139
172
  filter: ["Filter"],
140
- items: ["Item", "Column"]
173
+ items: ["Item", "Column"],
174
+ supplementaryConfig: ["ColumnWidth"]
141
175
  };
142
176
 
143
177
  var oTransformedState = {};
@@ -1,16 +1,17 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
8
  "sap/ui/base/Object",
9
9
  "sap/ui/mdc/p13n/P13nBuilder",
10
- "sap/ui/mdc/p13n/panels/Wrapper",
10
+ "sap/m/p13n/Container",
11
+ "sap/m/p13n/AbstractContainerItem",
11
12
  "sap/base/util/UriParameters",
12
13
  "sap/base/Log"
13
- ], function (BaseObject, P13nBuilder, Wrapper, SAPUriParameters, Log) {
14
+ ], function (BaseObject, P13nBuilder, P13nContainer, AbstractContainerItem, SAPUriParameters, Log) {
14
15
  "use strict";
15
16
 
16
17
  var ERROR_INSTANCING = "UIManager: This class is a singleton and should not be used without an AdaptationProvider. Please use 'sap.ui.mdc.p13n.Engine.getInstance().uimanager' instead";
@@ -31,7 +32,7 @@ sap.ui.define([
31
32
  * @extends sap.ui.base.Object
32
33
  *
33
34
  * @author SAP SE
34
- * @version 1.96.2
35
+ * @version 1.98.0
35
36
  *
36
37
  * @private
37
38
  * @ui5-restricted sap.ui.mdc
@@ -141,7 +142,7 @@ sap.ui.define([
141
142
  var bWrapperUsed = aKeys.length > 1;
142
143
  var oAdaptationUI;
143
144
  var oContent = oP13nControl.getContent()[0];
144
- if (bWrapperUsed && oContent.isA("sap.ui.mdc.p13n.panels.Wrapper") && oContent.getView(sKey)) {
145
+ if (bWrapperUsed && oContent.isA("sap.m.p13n.Container") && oContent.getView(sKey)) {
145
146
  oAdaptationUI = oContent.getView(sKey).getContent();
146
147
  } else {
147
148
  oAdaptationUI = oContent;
@@ -206,11 +207,15 @@ sap.ui.define([
206
207
  }.bind(this));
207
208
 
208
209
  return Promise.all(aPAdaptationUI).then(function(aUIs){
209
- var oPopupContent = bUseP13nContainer ? new Wrapper() : aUIs[0].panel;
210
+ var oPopupContent = bUseP13nContainer ? new P13nContainer() : aUIs[0].panel;
210
211
  if (bUseP13nContainer) {
211
212
  aUIs.forEach(function(mUI){
212
213
  if (mUI.panel) {
213
- oPopupContent.addPanel(mUI.panel, mUI.key, mUI.tab);
214
+ oPopupContent.addView(new AbstractContainerItem({
215
+ key: mUI.key,
216
+ text: mUI.tab,
217
+ content: mUI.panel
218
+ }));
214
219
  }
215
220
  });
216
221
  oPopupContent.switchView(aUIs[0].key);
@@ -359,7 +364,7 @@ sap.ui.define([
359
364
 
360
365
  var mSettings = Object.assign({
361
366
  verticalScrolling: true,
362
- reset: mUISettings.reset,
367
+ reset: mUISettings.reset || {},
363
368
  afterClose: function(oEvt) {
364
369
  var oDialog = oEvt.getSource();
365
370
  if (oDialog) {
@@ -370,11 +375,9 @@ sap.ui.define([
370
375
  }, mUISettings.containerSettings);
371
376
 
372
377
  if (mUISettings.resetEnabled){
373
- mSettings.reset = {
374
- onExecute: function() {
375
- this.oAdaptationProvider.reset(oControl, aKeys);
376
- }.bind(this)
377
- };
378
+ mSettings.reset.onExecute = function() {
379
+ this.oAdaptationProvider.reset(oControl, aKeys);
380
+ }.bind(this);
378
381
  }
379
382
 
380
383
  mSettings.confirm = {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -54,8 +54,11 @@ sap.ui.define([
54
54
 
55
55
  FlexModificationHandler.prototype.reset = function(mPropertyBag, oModificationPayload){
56
56
  var sPersistenceMode = oModificationPayload.mode;
57
+
57
58
  var bIsGlobal = sPersistenceMode === mode.Global;
58
- return bIsGlobal ? FlexUtil.reset.call(this, mPropertyBag) : FlexUtil.restore.call(this, mPropertyBag);
59
+ var bIsAutoGlobal = !oModificationPayload.hasVM && oModificationPayload.hasPP && sPersistenceMode === mode.Auto;
60
+
61
+ return (bIsGlobal || bIsAutoGlobal) ? FlexUtil.reset.call(this, mPropertyBag) : FlexUtil.restore.call(this, mPropertyBag);
59
62
  };
60
63
 
61
64
  FlexModificationHandler.prototype.isModificationSupported = function(mPropertyBag, oModificationPayload){