@openui5/sap.ui.mdc 1.97.1 → 1.100.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 (296) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +6 -3
  6. package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
  7. package/src/sap/ui/mdc/BaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +1128 -1806
  9. package/src/sap/ui/mdc/ChartDelegate.js +454 -250
  10. package/src/sap/ui/mdc/ChartRenderer.js +73 -77
  11. package/src/sap/ui/mdc/Control.js +11 -6
  12. package/src/sap/ui/mdc/Element.js +10 -6
  13. package/src/sap/ui/mdc/Field.js +19 -4
  14. package/src/sap/ui/mdc/FilterBar.js +3 -2
  15. package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
  16. package/src/sap/ui/mdc/FilterField.js +50 -9
  17. package/src/sap/ui/mdc/Link.js +25 -6
  18. package/src/sap/ui/mdc/LinkDelegate.js +3 -3
  19. package/src/sap/ui/mdc/MultiValueField.js +30 -6
  20. package/src/sap/ui/mdc/Table.js +151 -102
  21. package/src/sap/ui/mdc/TableDelegate.js +68 -13
  22. package/src/sap/ui/mdc/ValueHelp.js +26 -11
  23. package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -1
  24. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
  26. package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
  27. package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +60 -17
  28. package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
  29. package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +10 -10
  30. package/src/sap/ui/mdc/chart/DrillStackHandler.js +43 -254
  31. package/src/sap/ui/mdc/chart/Item.js +62 -92
  32. package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
  33. package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
  34. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  35. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  36. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  37. package/src/sap/ui/mdc/condition/FilterConverter.js +4 -2
  38. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +388 -67
  39. package/src/sap/ui/mdc/condition/Operator.js +4 -2
  40. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
  41. package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
  42. package/src/sap/ui/mdc/designtime/Util.js +63 -0
  43. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
  44. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +83 -5
  45. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
  46. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
  47. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
  48. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +35 -8
  49. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  50. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  51. package/src/sap/ui/mdc/field/ConditionType.js +17 -6
  52. package/src/sap/ui/mdc/field/ConditionsType.js +2 -1
  53. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  54. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  55. package/src/sap/ui/mdc/field/DefineConditionPanel.js +88 -29
  56. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +77 -20
  57. package/src/sap/ui/mdc/field/FieldBase.js +93 -16
  58. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
  59. package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
  60. package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
  61. package/src/sap/ui/mdc/field/FieldInfoBase.js +24 -10
  62. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  63. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  64. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  65. package/src/sap/ui/mdc/field/FieldValueHelp.js +5 -2
  66. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  67. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
  68. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
  69. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
  70. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
  71. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
  72. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  73. package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
  74. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  75. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  76. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  77. package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
  78. package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
  79. package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
  80. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
  81. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  82. package/src/sap/ui/mdc/field/content/ContentFactory.js +10 -6
  83. package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
  84. package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
  85. package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
  86. package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
  87. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +285 -208
  88. package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
  89. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
  90. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +132 -56
  91. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  92. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
  93. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
  94. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
  95. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +43 -19
  96. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
  97. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  98. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
  99. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
  100. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
  101. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
  102. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +47 -10
  103. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
  104. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  105. package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
  106. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +0 -1
  107. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
  108. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +27 -0
  109. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  110. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
  111. package/src/sap/ui/mdc/library.js +54 -44
  112. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  113. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  114. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  115. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  116. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  117. package/src/sap/ui/mdc/link/Factory.js +2 -2
  118. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  119. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  120. package/src/sap/ui/mdc/link/Log.js +1 -1
  121. package/src/sap/ui/mdc/link/Panel.js +140 -177
  122. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  123. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  124. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  125. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  126. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  127. package/src/sap/ui/mdc/messagebundle.properties +57 -2
  128. package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
  129. package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
  130. package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
  131. package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
  132. package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
  133. package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
  134. package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
  135. package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
  136. package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
  137. package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
  138. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
  139. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
  140. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
  141. package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
  142. package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
  143. package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
  144. package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
  145. package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
  146. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
  147. package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
  148. package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
  149. package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
  150. package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
  151. package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
  152. package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
  153. package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
  154. package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
  155. package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
  156. package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
  157. package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
  158. package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
  159. package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
  160. package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
  161. package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
  162. package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
  163. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
  164. package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
  165. package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
  166. package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
  167. package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
  168. package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
  169. package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
  170. package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
  171. package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
  172. package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
  173. package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
  174. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
  175. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
  176. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +30 -15
  177. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -142
  178. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -17
  179. package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
  180. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +348 -0
  181. package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
  182. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
  183. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +106 -0
  184. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
  185. package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
  186. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +117 -123
  187. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +3 -5
  188. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
  189. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
  190. package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +459 -351
  191. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
  192. package/src/sap/ui/mdc/p13n/Engine.js +51 -30
  193. package/src/sap/ui/mdc/p13n/FlexUtil.js +6 -118
  194. package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
  195. package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
  196. package/src/sap/ui/mdc/p13n/StateUtil.js +24 -6
  197. package/src/sap/ui/mdc/p13n/UIManager.js +20 -19
  198. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
  199. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +19 -12
  200. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
  201. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
  202. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
  203. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1094 -49
  204. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
  205. package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
  206. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +108 -0
  207. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
  208. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -7
  209. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
  210. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
  211. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
  212. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +22 -11
  213. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +174 -0
  214. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +12 -19
  215. package/src/sap/ui/mdc/table/Column.js +12 -12
  216. package/src/sap/ui/mdc/table/CreationRow.js +11 -11
  217. package/src/sap/ui/mdc/table/GridTableType.js +80 -33
  218. package/src/sap/ui/mdc/table/PropertyHelper.js +63 -19
  219. package/src/sap/ui/mdc/table/ResponsiveTableType.js +94 -23
  220. package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
  221. package/src/sap/ui/mdc/table/RowSettings.js +45 -4
  222. package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
  223. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
  224. package/src/sap/ui/mdc/themes/base/Chart.less +2 -0
  225. package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
  226. package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
  227. package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
  228. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +16 -4
  229. package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
  230. package/src/sap/ui/mdc/util/Common.js +1 -1
  231. package/src/sap/ui/mdc/util/DateUtil.js +33 -8
  232. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  233. package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
  234. package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
  235. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  236. package/src/sap/ui/mdc/util/PropertyHelper.js +243 -87
  237. package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
  238. package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
  239. package/src/sap/ui/mdc/valuehelp/Popover.js +6 -3
  240. package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
  241. package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
  242. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
  243. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +5 -4
  244. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
  245. package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
  246. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
  247. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +23 -14
  248. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +46 -17
  249. package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -27
  250. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  251. package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
  252. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
  253. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
  254. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
  255. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
  256. package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
  257. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +291 -0
  258. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
  259. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -9
  260. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
  261. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
  262. package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
  263. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
  264. package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
  265. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +264 -139
  266. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
  267. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
  268. package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
  269. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
  270. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
  271. package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
  272. package/src/sap/ui/mdc/ChartNew.js +0 -1114
  273. package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
  274. package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
  275. package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
  276. package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
  277. package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
  278. package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
  279. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
  280. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
  281. package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
  282. package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
  283. package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
  284. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +0 -150
  285. package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
  286. package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
  287. package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
  288. package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
  289. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +0 -39
  290. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
  291. package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
  292. package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -404
  293. package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
  294. package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
  295. package/src/sap/ui/mdc/ui/Container.js +0 -240
  296. package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
@@ -14,9 +14,9 @@ sap.ui.define([
14
14
  * modules such as the UIManager and the DefaultProviderRegistry.
15
15
  *
16
16
  * @author SAP SE
17
- * @private
18
17
  * @since 1.90
19
18
  * @experimental As of version 1.90
19
+ * @private
20
20
  * @ui5-restricted sap.ui.mdc
21
21
  * @alias sap.ui.mdc.p13n.AdaptationProvider
22
22
  */
@@ -32,15 +32,16 @@ sap.ui.define([
32
32
  var oEngine;
33
33
 
34
34
  /**
35
- * Constructor for a new Engine. The Engine should always be accessed
36
- * via 'getInstance' and not by creating a new instance of it. The class should only be used
37
- * to create derivations.
35
+ * Constructor for a new Engine.
36
+ *
37
+ * The Engine should always be accessed via 'getInstance' and not by creating a new instance of it.
38
+ * The class should only be used to create derivations.
38
39
  *
39
40
  * @class
40
- * @extends sap.ui.base.Object
41
+ * @extends sap.ui.mdc.p13n.AdaptationProvider
41
42
  *
42
43
  * @author SAP SE
43
- * @version 1.97.1
44
+ * @version 1.100.0
44
45
  *
45
46
  * @private
46
47
  * @ui5-restricted sap.ui.mdc
@@ -192,7 +193,7 @@ sap.ui.define([
192
193
  return this.initAdaptation(vControl, sKey).then(function(){
193
194
 
194
195
  var oController = this.getController(vControl, sKey);
195
- var mchangeOperations = oController.getChangeOperations();
196
+ var mChangeOperations = oController.getChangeOperations();
196
197
 
197
198
  var oRegistryEntry = this._getRegistryEntry(vControl);
198
199
  var oCurrentState = oController.getCurrentState();
@@ -203,7 +204,7 @@ sap.ui.define([
203
204
  applyAbsolute: bApplyAbsolute,
204
205
  changedState: aNewState,
205
206
  control: oController.getAdaptationControl(),
206
- changeOperations: mchangeOperations,
207
+ changeOperations: mChangeOperations,
207
208
  deltaAttributes: ["name"],
208
209
  propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.name};})
209
210
  };
@@ -235,7 +236,14 @@ sap.ui.define([
235
236
 
236
237
  aKeys = aKeys instanceof Array ? aKeys : [aKeys];
237
238
 
239
+ var aSelectors = [];
240
+
241
+ aKeys.forEach(function(sKey) {
242
+ aSelectors = aSelectors.concat(this.getController(oControl, sKey).getSelectorForReset());
243
+ }.bind(this));
244
+
238
245
  var oResetConfig = {
246
+ selectors: aSelectors,
239
247
  selector: oControl
240
248
  };
241
249
 
@@ -293,7 +301,11 @@ sap.ui.define([
293
301
  var oModificationSetting = this._determineModification(vControl);
294
302
  return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
295
303
  .then(function(aChanges){
296
- this.stateHandlerRegistry.fireChange(Engine.getControlInstance(vControl));
304
+ var oControl = Engine.getControlInstance(vControl);
305
+ this.stateHandlerRegistry.fireChange(oControl);
306
+ if (oControl._onChangeAppliance instanceof Function) {
307
+ oControl._onChangeAppliance.call(oControl);
308
+ }
297
309
  return aChanges;
298
310
  }.bind(this));
299
311
  } else {
@@ -318,9 +330,10 @@ sap.ui.define([
318
330
  var fResolveRTA;
319
331
 
320
332
  //var aVMs = Engine.hasForReference(oControl, "sap.ui.fl.variants.VariantManagement");
333
+ // TODO: clarify if we need this error handling / what to do with the Link if we want to keep it
321
334
  var aPVs = Engine.hasForReference(oControl, "sap.ui.mdc.p13n.PersistenceProvider");
322
335
 
323
- if (aPVs.length > 0) {
336
+ if (aPVs.length > 0 && !oControl.isA("sap.ui.mdc.link.Panel")) {
324
337
  return Promise.reject("Please do not use a PeristenceProvider in RTA.");
325
338
  }
326
339
 
@@ -344,6 +357,9 @@ sap.ui.define([
344
357
  oCustomHeader.getContentRight()[0].setVisible(false);
345
358
  }
346
359
  oContainer.addStyleClass(mPropertyBag.styleClass);
360
+ if (mPropertyBag.fnAfterClose instanceof Function) {
361
+ oContainer.attachAfterClose(mPropertyBag.fnAfterClose);
362
+ }
347
363
  });
348
364
 
349
365
  oRTAPromise.then(function(){
@@ -377,15 +393,14 @@ sap.ui.define([
377
393
 
378
394
  return Promise.resolve()
379
395
  .then(function() {
380
- if (oRegistryEntry) {
381
- var oModificationHandler = this.getModificationHandler(vControl);
382
- return oModificationHandler.enhanceConfig(oControl, mEnhanceConfig)
383
- .then(function(oConfig){
396
+ var oModificationHandler = this.getModificationHandler(vControl);
397
+ return oModificationHandler.enhanceConfig(oControl, mEnhanceConfig)
398
+ .then(function(oConfig){
399
+ if (oRegistryEntry) {
400
+ //to simplify debugging
384
401
  oRegistryEntry.xConfig = oConfig;
385
- });
386
- } else {
387
- throw new Error("The control instance needs to be registered to use xConfig!");
388
- }
402
+ }
403
+ });
389
404
  }.bind(this));
390
405
  };
391
406
 
@@ -544,7 +559,7 @@ sap.ui.define([
544
559
  * @private
545
560
  *
546
561
  * @param {sap.ui.mdc.Control} vControl The registered control instance
547
- * @param {string} sKey The key for the according Controller
562
+ * @param {string|string[]} aKeys The key for the according Controller
548
563
  * @param {Object[]} aCustomInfo A custom set of propertyinfos as base to create the UI
549
564
  *
550
565
  * @returns {Promise} A Promise resolving after the adaptation housekeeping has been initialized.
@@ -609,11 +624,12 @@ sap.ui.define([
609
624
  * and the set of provided registered keys.
610
625
  *
611
626
  * @param {sap.ui.mdc.Control} vControl The registered Control instance.
612
- * @param {string|array} vKey A key as string or an array of keys
627
+ * @param {string|array} vKeys A key as string or an array of keys
613
628
  *
614
629
  * @returns {object} The requested UI settings of the control instance and provided keys
615
630
  */
616
- Engine.prototype.getUISettings = function(vControl, aKeys) {
631
+ Engine.prototype.getUISettings = function(vControl, vKeys) {
632
+ var aKeys = Array.isArray(vKeys) ? vKeys : [vKeys];
617
633
  this.verifyController(vControl, aKeys);
618
634
  var oPropertyHelper = this._getRegistryEntry(vControl).helper;
619
635
  var mUiSettings = {};
@@ -622,6 +638,8 @@ sap.ui.define([
622
638
  var oController = this.getController(vControl, sKey);
623
639
  var pAdaptationUI = oController.getAdaptationUI(oPropertyHelper);
624
640
  //Check faceless controller implementations and skip them
641
+
642
+ //TODO: error handling for non promises
625
643
  if (pAdaptationUI instanceof Promise){
626
644
  mUiSettings[sKey] = {};
627
645
  mUiSettings[sKey] = {
@@ -743,6 +761,9 @@ sap.ui.define([
743
761
  var sHandlerMode = aPersistenceProvider ? aPersistenceProvider[0].getMode() : "Standard";
744
762
 
745
763
  var mHandlerMode = {
764
+ //During preprocessing, it might be necessary to calculate the modification handler instance
765
+ //without an initialized control instance --> use flex as default
766
+ undefined: FlexModificationHandler,
746
767
  Global: FlexModificationHandler,
747
768
  Transient: FlexModificationHandler,
748
769
  Standard: FlexModificationHandler,
@@ -792,8 +813,8 @@ sap.ui.define([
792
813
  * Determines and registeres the ModificationHandler per control instance
793
814
  *
794
815
  * @private
795
- * @param {String} sControlId The control id
796
- * @param {String} sAncestorControlId The control ancestor id
816
+ * @param {string} sControlId The control id
817
+ * @param {string} sAncestorControlId The control ancestor id
797
818
  *
798
819
  * @returns {boolean} Returns whether an according ancestor could be found.
799
820
  */
@@ -913,7 +934,7 @@ sap.ui.define([
913
934
  /**
914
935
  * Reads the current state of the subcontrollers and triggers a state appliance
915
936
  *
916
- * @param {sap.ui.mdc.Control} vControl The registered Control instance.
937
+ * @param {sap.ui.mdc.Control} oControl The registered Control instance.
917
938
  * @param {array} aKeys An array of keys
918
939
  * @returns {Promise} A Promise resolving after all p13n changes have been calculated and processed
919
940
  */
@@ -969,27 +990,27 @@ sap.ui.define([
969
990
  * @param {object[]} [aCustomPropertyInfo] A custom set of propertyinfo.
970
991
  *
971
992
  */
972
- Engine.prototype._retrievePropertyHelper = function(vControl, aCustomPropertyInfo){
993
+ Engine.prototype._retrievePropertyHelper = function (vControl, aCustomPropertyInfo) {
973
994
 
974
995
  var oRegistryEntry = this._getRegistryEntry(vControl);
975
996
  var oControl = Engine.getControlInstance(vControl);
976
997
 
977
998
  if (aCustomPropertyInfo) {
978
- if (oRegistryEntry.helper){
999
+ if (oRegistryEntry.helper) {
979
1000
  oRegistryEntry.helper.destroy();
980
1001
  }
981
1002
  oRegistryEntry.helper = new PropertyHelper(aCustomPropertyInfo);
982
1003
  return Promise.resolve(oRegistryEntry.helper);
983
- }
1004
+ }
984
1005
 
985
1006
  if (oRegistryEntry.helper) {
986
1007
  return Promise.resolve(oRegistryEntry.helper);
987
1008
  }
988
1009
 
989
- return oControl.initPropertyHelper().then(function(oPropertyHelper){
1010
+ return oControl.initPropertyHelper().then(function (oPropertyHelper) {
990
1011
  oRegistryEntry.helper = oPropertyHelper;
991
1012
  return oPropertyHelper;
992
- }, function(sHelperError){
1013
+ }, function (sHelperError) {
993
1014
  throw new Error(sHelperError);
994
1015
  });
995
1016
  };
@@ -1008,9 +1029,9 @@ sap.ui.define([
1008
1029
  };
1009
1030
 
1010
1031
  /**
1011
- * @private
1012
- *
1013
1032
  * This method can be used for debugging to retrieve the complete registry.
1033
+ *
1034
+ * @private
1014
1035
  */
1015
1036
  Engine.prototype._getRegistry = function() {
1016
1037
  var oRegistry = {
@@ -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,9 @@ 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
+ aConditionChanges = aConditionChanges.concat(aFilterConditionChanges);
197
104
  }
198
105
 
199
106
  return aConditionChanges;
@@ -274,7 +181,8 @@ sap.ui.define([
274
181
 
275
182
  return aChanges;
276
183
  },
277
- createAddRemoveChange: function(oControl, sOperation, oContent){
184
+
185
+ createChange: function(oControl, sOperation, oContent){
278
186
  var oAddRemoveChange = {
279
187
  selectorElement: oControl,
280
188
  changeSpecificData: {
@@ -285,26 +193,6 @@ sap.ui.define([
285
193
  return oAddRemoveChange;
286
194
  },
287
195
 
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
196
  createConditionChange: function(sChangeType, oControl, sFieldPath, oCondition) {
309
197
  var oConditionChange = {
310
198
  selectorElement: oControl,
@@ -31,8 +31,8 @@ sap.ui.define([
31
31
  * @param {object} oP13nUI Control displayed in the content area
32
32
  * @param {object} mDialogSettings Settings to overwrite popover default properties, such as: <code>contentHeight</code>
33
33
  * @param {object} [mDialogSettings.reset] Reset settings for the custom header creation
34
- * @param {Function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
35
- * @param {String} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
34
+ * @param {function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
35
+ * @param {string} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
36
36
  *
37
37
  * @returns {Promise} promise resolving in the Popover instance
38
38
  */
@@ -76,8 +76,8 @@ sap.ui.define([
76
76
  * @param {object} oP13nUI Control displayed in the content area
77
77
  * @param {object} mDialogSettings Settings to overwrite dialog default properties, such as: <code>contentHeight</code>
78
78
  * @param {object} [mDialogSettings.reset] Reset settings for the custom header creation
79
- * @param {Function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
80
- * @param {String} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
79
+ * @param {function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
80
+ * @param {string} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
81
81
  *
82
82
  * @returns {Promise} Promise resolving in the Dialog instance
83
83
  */
@@ -149,9 +149,9 @@ sap.ui.define([
149
149
  /**
150
150
  *
151
151
  * @param {object} mSettings Settings object to create a customHeader including a reset Button
152
- * @param {String} mSettings.title Title for the custom reset header
152
+ * @param {string} mSettings.title Title for the custom reset header
153
153
  * @param {function} mSettings.reset Control specific reset handling
154
- * @param {String} [mSettings.warningText] Text which is displayed prior to executing to reset execution
154
+ * @param {string} [mSettings.warningText] Text which is displayed prior to executing to reset execution
155
155
  *
156
156
  * @returns {sap.m.Bar} The created custom header Bar
157
157
  */
@@ -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 = [];
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @param {object[]} aProperties
18
18
  * The properties to process in this helper
19
- * @param {object<string, object>} [mExtensions]
19
+ * @param {Object<string, object>} [mExtensions]
20
20
  * Key-value map, where the key is the name of the property and the value is the extension containing mode-specific information.
21
21
  * The extension of a property is stored in a reserved <code>extension</code> attribute and its attributes must be specified with
22
22
  * <code>mExtensionAttributeMetadata</code>.
@@ -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.97.1
32
+ * @version 1.100.0
33
33
  *
34
34
  * @private
35
35
  * @experimental
@@ -43,6 +43,10 @@ sap.ui.define([
43
43
  * <li><code>aggregated</code> - Set to <code>false</code> to remove an aggregation.</li>
44
44
  * </ul>
45
45
  *
46
+ * <b>Note:</b>To improve the performance, you should avoid additional calls of the control’s delegate.
47
+ * To do this, the <code>propertyInfo</code> property of the relevant control can be enriched with the properties used in the provided state.
48
+ *
49
+ *
46
50
  * @private
47
51
  * @ui5-restricted sap.fe
48
52
  * @MDC_PUBLIC_CANDIDATE
@@ -79,6 +83,16 @@ sap.ui.define([
79
83
  * Country: {
80
84
  * aggregated: false
81
85
  * }
86
+ * },
87
+ * //The supplementaryConfig can be used to modify control specific attributes, for example the column width in the Table
88
+ * supplementaryConfig: {
89
+ * aggregations: {
90
+ * columns: {
91
+ * Category: {
92
+ * width: "150px"
93
+ * }
94
+ * }
95
+ * }
82
96
  * }
83
97
  * }
84
98
  *
@@ -112,6 +126,9 @@ sap.ui.define([
112
126
  * Attaches an event handler to the <code>StateUtil</code>.
113
127
  * The event handler may be fired every time a user triggers a personalization change for a control instance during runtime.
114
128
  *
129
+ * @private
130
+ * @ui5-restricted sap.fe
131
+ * @MDC_PUBLIC_CANDIDATE
115
132
  * @param {function} fnListener fnFunction The handler function to call when the event occurs
116
133
  */
117
134
  attachStateChange: function(fnListener) {
@@ -122,6 +139,9 @@ sap.ui.define([
122
139
  * Removes a previously attached state change event handler from the <code>StateUtil</code> class.
123
140
  * The passed parameters must match those used for registration with {@link StateUtil#attachChange} beforehand.
124
141
  *
142
+ * @private
143
+ * @ui5-restricted sap.fe
144
+ * @MDC_PUBLIC_CANDIDATE
125
145
  * @param {function} fnListener fnFunction The handler function to detach from the event
126
146
  */
127
147
  detachStateChange: function(fnListener) {
@@ -135,7 +155,8 @@ sap.ui.define([
135
155
  Aggregate: "aggregations",
136
156
  Filter: "filter",
137
157
  Item: "items",
138
- Column: "items"
158
+ Column: "items",
159
+ ColumnWidth: "supplementaryConfig"
139
160
  };
140
161
  var oTransformedState = {};
141
162
 
@@ -144,10 +165,6 @@ sap.ui.define([
144
165
  var sTransformedKey = sExternalKey || sProvidedEngineKey;//no external key --> provide internal key
145
166
  oTransformedState[sTransformedKey] = oInternalState[sProvidedEngineKey];
146
167
  });
147
- //TODO: Remove once the stateUtil for columnWidth is introduced
148
- if (oTransformedState.ColumnWidth) {
149
- delete oTransformedState.ColumnWidth;
150
- }
151
168
  return oTransformedState;
152
169
  },
153
170
 
@@ -157,7 +174,8 @@ sap.ui.define([
157
174
  groupLevels: ["Group"],
158
175
  aggregations: ["Aggregate"],
159
176
  filter: ["Filter"],
160
- items: ["Item", "Column"]
177
+ items: ["Item", "Column"],
178
+ supplementaryConfig: ["ColumnWidth"]
161
179
  };
162
180
 
163
181
  var oTransformedState = {};
@@ -10,8 +10,9 @@ sap.ui.define([
10
10
  "sap/m/p13n/Container",
11
11
  "sap/m/p13n/AbstractContainerItem",
12
12
  "sap/base/util/UriParameters",
13
- "sap/base/Log"
14
- ], function (BaseObject, P13nBuilder, P13nContainer, AbstractContainerItem, SAPUriParameters, Log) {
13
+ "sap/base/Log",
14
+ "sap/ui/thirdparty/jquery"
15
+ ], function (BaseObject, P13nBuilder, P13nContainer, AbstractContainerItem, SAPUriParameters, Log, jQuery) {
15
16
  "use strict";
16
17
 
17
18
  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";
@@ -20,7 +21,7 @@ sap.ui.define([
20
21
  var oUIManager;
21
22
 
22
23
  //Used for experimental features (such as livemode)
23
- var oURLParams = new SAPUriParameters(window.location.search);
24
+ var oURLParams = SAPUriParameters.fromQuery(window.location.search);
24
25
 
25
26
  /**
26
27
  * Constructor for a new UIManager.
@@ -32,7 +33,7 @@ sap.ui.define([
32
33
  * @extends sap.ui.base.Object
33
34
  *
34
35
  * @author SAP SE
35
- * @version 1.97.1
36
+ * @version 1.100.0
36
37
  *
37
38
  * @private
38
39
  * @ui5-restricted sap.ui.mdc
@@ -73,7 +74,7 @@ sap.ui.define([
73
74
  this.bLiveMode = false;
74
75
 
75
76
  //!!!Warning: experimental and only for testing purposes!!!----------
76
- if (oURLParams.getAll("sap-ui-xx-p13nLiveMode")[0] === "true"){
77
+ if (oURLParams.get("sap-ui-xx-p13nLiveMode") === "true"){
77
78
  this.bLiveMode = true;
78
79
  Log.warning("Please note that the p13n liveMode is experimental");
79
80
  }
@@ -101,7 +102,7 @@ sap.ui.define([
101
102
  * @ui5-restricted sap.ui.mdc
102
103
  *
103
104
  * @param {sap.ui.mdc.Control} vControl The registered control instance
104
- * @param {string} sKey The key for the according Controller
105
+ * @param {string|string[]} vKey The key for the according Controller
105
106
  * @param {Object[]} aCustomInfo A custom set of propertyinfos as base to create the UI
106
107
  *
107
108
  * @returns {Promise} A Promise resolving in the P13n UI.
@@ -157,8 +158,8 @@ sap.ui.define([
157
158
  *
158
159
  * @private
159
160
  *
160
- * @param {sap.ui.mdc.Control} vControl The registered control instance.
161
- * @param {string} aKeys The registerd key to get the corresponding Controller.
161
+ * @param {sap.ui.mdc.Control} oControl The registered control instance.
162
+ * @param {string} aKeys The registered key to get the corresponding Controller.
162
163
  *
163
164
  * @returns {Promise} A Promise resolving in the according container
164
165
  * (Depending on the Controllers livemode config).
@@ -233,9 +234,10 @@ sap.ui.define([
233
234
  *
234
235
  * @private
235
236
  *
236
- * @param {sap.ui.mdc.Control} vControl The registered control instance.
237
- * @param {string} sKey The registerd key to get the corresponding Controller.
238
- * @param {sap.ui.core.Control} oPanel The control instance which is set in the content area of the container.
237
+ * @param {sap.ui.mdc.Control} oControl The registered control instance.
238
+ * @param {string[]} aKeys The registered keys to get the corresponding Controller.
239
+ * @param {*} oPopupContent
240
+ * @param {*} oUISettings
239
241
  *
240
242
  * @returns {Promise} Returns a Promise resolving in the container instance
241
243
  */
@@ -297,9 +299,10 @@ sap.ui.define([
297
299
  *
298
300
  * @private
299
301
  *
300
- * @param {sap.ui.mdc.Control} vControl The registered control instance.
301
- * @param {string} sKey The registerd key to get the corresponding Controller.
302
+ * @param {sap.ui.mdc.Control} oControl The registered control instance.
303
+ * @param {string[]} aKeys The registerd key to get the corresponding Controller.
302
304
  * @param {sap.ui.core.Control} oPanel The control instance which is set in the content area of the container.
305
+ * @param {object} mUISettings
303
306
  *
304
307
  * @returns {sap.m.ResponsivePopover} The popover instance.
305
308
  */
@@ -364,7 +367,7 @@ sap.ui.define([
364
367
 
365
368
  var mSettings = Object.assign({
366
369
  verticalScrolling: true,
367
- reset: mUISettings.reset,
370
+ reset: mUISettings.reset || {},
368
371
  afterClose: function(oEvt) {
369
372
  var oDialog = oEvt.getSource();
370
373
  if (oDialog) {
@@ -375,11 +378,9 @@ sap.ui.define([
375
378
  }, mUISettings.containerSettings);
376
379
 
377
380
  if (mUISettings.resetEnabled){
378
- mSettings.reset = {
379
- onExecute: function() {
380
- this.oAdaptationProvider.reset(oControl, aKeys);
381
- }.bind(this)
382
- };
381
+ mSettings.reset.onExecute = function() {
382
+ this.oAdaptationProvider.reset(oControl, aKeys);
383
+ }.bind(this);
383
384
  }
384
385
 
385
386
  mSettings.confirm = {
@@ -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){