@openui5/sap.ui.mdc 1.103.0 → 1.105.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 (320) hide show
  1. package/.reuse/dep5 +18 -1
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +36 -3
  4. package/package.json +4 -4
  5. package/src/sap/ui/mdc/.library +1 -1
  6. package/src/sap/ui/mdc/ActionToolbar.js +3 -3
  7. package/src/sap/ui/mdc/AggregationBaseDelegate.js +1 -1
  8. package/src/sap/ui/mdc/Chart.js +49 -35
  9. package/src/sap/ui/mdc/ChartDelegate.js +2 -2
  10. package/src/sap/ui/mdc/ChartRenderer.js +1 -1
  11. package/src/sap/ui/mdc/Control.js +1 -1
  12. package/src/sap/ui/mdc/Delegate.js +2 -2
  13. package/src/sap/ui/mdc/Element.js +1 -1
  14. package/src/sap/ui/mdc/Field.js +2 -2
  15. package/src/sap/ui/mdc/FilterBar.js +3 -3
  16. package/src/sap/ui/mdc/FilterBarDelegate.js +2 -2
  17. package/src/sap/ui/mdc/FilterField.js +2 -2
  18. package/src/sap/ui/mdc/Link.js +76 -15
  19. package/src/sap/ui/mdc/LinkDelegate.js +83 -78
  20. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  21. package/src/sap/ui/mdc/Table.js +18 -6
  22. package/src/sap/ui/mdc/TableDelegate.js +27 -11
  23. package/src/sap/ui/mdc/ValueHelp.js +7 -7
  24. package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -2
  25. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +3 -3
  26. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
  27. package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +70 -0
  28. package/src/sap/ui/mdc/chart/ChartImplementationContainerRenderer.js +49 -0
  29. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  30. package/src/sap/ui/mdc/chart/ChartSettings.js +2 -2
  31. package/src/sap/ui/mdc/chart/ChartToolbar.js +24 -10
  32. package/src/sap/ui/mdc/chart/ChartTypeButton.js +2 -2
  33. package/src/sap/ui/mdc/chart/PropertyHelper.js +3 -3
  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 +1 -1
  38. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +1 -1
  39. package/src/sap/ui/mdc/condition/Operator.js +1 -1
  40. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
  41. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  42. package/src/sap/ui/mdc/designtime/Util.js +2 -2
  43. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +15 -4
  44. package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +2 -2
  45. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +5 -2
  46. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +2 -2
  47. package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +2 -2
  48. package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +2 -2
  49. package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +2 -2
  50. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +4 -3
  51. package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +2 -2
  52. package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +2 -2
  53. package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +2 -2
  54. package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +2 -2
  55. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +10 -8
  56. package/src/sap/ui/mdc/enum/PropagationReason.js +2 -2
  57. package/src/sap/ui/mdc/enum/SelectType.js +2 -2
  58. package/src/sap/ui/mdc/field/BoolFieldHelp.js +3 -3
  59. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +3 -3
  60. package/src/sap/ui/mdc/field/ConditionType.js +1 -1
  61. package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
  62. package/src/sap/ui/mdc/field/CustomFieldHelp.js +3 -3
  63. package/src/sap/ui/mdc/field/CustomFieldInfo.js +3 -3
  64. package/src/sap/ui/mdc/field/DefineConditionPanel.js +1 -1
  65. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  66. package/src/sap/ui/mdc/field/FieldBase.js +4 -5
  67. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +2 -2
  68. package/src/sap/ui/mdc/field/FieldHelpBase.js +3 -3
  69. package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +2 -2
  70. package/src/sap/ui/mdc/field/FieldInfoBase.js +30 -29
  71. package/src/sap/ui/mdc/field/FieldInput.js +3 -3
  72. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  73. package/src/sap/ui/mdc/field/FieldMultiInput.js +3 -3
  74. package/src/sap/ui/mdc/field/FieldValueHelp.js +3 -3
  75. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +3 -3
  76. package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +2 -2
  77. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -3
  78. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +3 -3
  79. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
  80. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +3 -3
  81. package/src/sap/ui/mdc/field/InParameter.js +3 -3
  82. package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
  83. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  84. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +2 -2
  85. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +3 -3
  86. package/src/sap/ui/mdc/field/OutParameter.js +3 -3
  87. package/src/sap/ui/mdc/field/TokenDisplay.js +3 -3
  88. package/src/sap/ui/mdc/field/TokenizerDisplay.js +3 -3
  89. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  90. package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
  91. package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
  92. package/src/sap/ui/mdc/field/content/DateContent.js +10 -2
  93. package/src/sap/ui/mdc/field/content/DateTimeContent.js +2 -2
  94. package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
  95. package/src/sap/ui/mdc/field/content/LinkContent.js +2 -2
  96. package/src/sap/ui/mdc/field/content/SearchContent.js +2 -2
  97. package/src/sap/ui/mdc/field/content/TimeContent.js +2 -2
  98. package/src/sap/ui/mdc/field/content/UnitContent.js +2 -2
  99. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +17 -4
  100. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +2 -2
  101. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +4 -4
  102. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +2 -2
  103. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +2 -2
  104. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +5 -5
  105. package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
  106. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +2 -2
  107. package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +2 -2
  108. package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +2 -2
  109. package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +2 -2
  110. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +3 -3
  111. package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +2 -2
  112. package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +2 -2
  113. package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +2 -2
  114. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
  115. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +3 -3
  116. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +2 -2
  117. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +2 -2
  118. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
  119. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +104 -131
  120. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +3 -3
  121. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +3 -3
  122. package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
  123. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +24 -20
  124. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +4 -5
  125. package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +2 -2
  126. package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -2
  127. package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
  128. package/src/sap/ui/mdc/flexibility/Table.flexibility.js +2 -2
  129. package/src/sap/ui/mdc/flexibility/Util.js +3 -3
  130. package/src/sap/ui/mdc/flexibility/xConfigFlex.js +2 -2
  131. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
  132. package/src/sap/ui/mdc/library.js +7 -2
  133. package/src/sap/ui/mdc/link/ContactDetails.js +3 -3
  134. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +3 -3
  135. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +3 -3
  136. package/src/sap/ui/mdc/link/ContactDetailsItem.js +3 -3
  137. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +3 -3
  138. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +2 -2
  139. package/src/sap/ui/mdc/link/Factory.js +3 -3
  140. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  141. package/src/sap/ui/mdc/link/LinkItem.js +3 -3
  142. package/src/sap/ui/mdc/link/Log.js +2 -2
  143. package/src/sap/ui/mdc/link/Panel.js +5 -4
  144. package/src/sap/ui/mdc/link/PanelItem.js +3 -3
  145. package/src/sap/ui/mdc/link/PanelRenderer.js +2 -2
  146. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +3 -3
  147. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +3 -3
  148. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +3 -3
  149. package/src/sap/ui/mdc/messagebundle.properties +9 -3
  150. package/src/sap/ui/mdc/messagebundle_ar.properties +5 -2
  151. package/src/sap/ui/mdc/messagebundle_bg.properties +5 -2
  152. package/src/sap/ui/mdc/messagebundle_ca.properties +5 -2
  153. package/src/sap/ui/mdc/messagebundle_cs.properties +8 -5
  154. package/src/sap/ui/mdc/messagebundle_cy.properties +5 -2
  155. package/src/sap/ui/mdc/messagebundle_da.properties +5 -2
  156. package/src/sap/ui/mdc/messagebundle_de.properties +5 -2
  157. package/src/sap/ui/mdc/messagebundle_el.properties +6 -3
  158. package/src/sap/ui/mdc/messagebundle_en.properties +5 -2
  159. package/src/sap/ui/mdc/messagebundle_en_GB.properties +5 -2
  160. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +5 -2
  161. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +5 -2
  162. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +5 -2
  163. package/src/sap/ui/mdc/messagebundle_es.properties +5 -2
  164. package/src/sap/ui/mdc/messagebundle_es_MX.properties +5 -2
  165. package/src/sap/ui/mdc/messagebundle_et.properties +5 -2
  166. package/src/sap/ui/mdc/messagebundle_fi.properties +5 -2
  167. package/src/sap/ui/mdc/messagebundle_fr.properties +9 -6
  168. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +5 -2
  169. package/src/sap/ui/mdc/messagebundle_hi.properties +5 -2
  170. package/src/sap/ui/mdc/messagebundle_hr.properties +8 -5
  171. package/src/sap/ui/mdc/messagebundle_hu.properties +6 -3
  172. package/src/sap/ui/mdc/messagebundle_id.properties +5 -2
  173. package/src/sap/ui/mdc/messagebundle_it.properties +49 -46
  174. package/src/sap/ui/mdc/messagebundle_iw.properties +6 -3
  175. package/src/sap/ui/mdc/messagebundle_ja.properties +5 -2
  176. package/src/sap/ui/mdc/messagebundle_kk.properties +5 -2
  177. package/src/sap/ui/mdc/messagebundle_ko.properties +8 -5
  178. package/src/sap/ui/mdc/messagebundle_lt.properties +5 -2
  179. package/src/sap/ui/mdc/messagebundle_lv.properties +5 -2
  180. package/src/sap/ui/mdc/messagebundle_ms.properties +5 -2
  181. package/src/sap/ui/mdc/messagebundle_nl.properties +5 -2
  182. package/src/sap/ui/mdc/messagebundle_no.properties +6 -3
  183. package/src/sap/ui/mdc/messagebundle_pl.properties +5 -2
  184. package/src/sap/ui/mdc/messagebundle_pt.properties +6 -3
  185. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +5 -2
  186. package/src/sap/ui/mdc/messagebundle_ro.properties +5 -2
  187. package/src/sap/ui/mdc/messagebundle_ru.properties +5 -2
  188. package/src/sap/ui/mdc/messagebundle_sh.properties +5 -2
  189. package/src/sap/ui/mdc/messagebundle_sk.properties +5 -2
  190. package/src/sap/ui/mdc/messagebundle_sl.properties +5 -2
  191. package/src/sap/ui/mdc/messagebundle_sv.properties +5 -2
  192. package/src/sap/ui/mdc/messagebundle_th.properties +14 -11
  193. package/src/sap/ui/mdc/messagebundle_tr.properties +5 -2
  194. package/src/sap/ui/mdc/messagebundle_uk.properties +6 -3
  195. package/src/sap/ui/mdc/messagebundle_vi.properties +5 -2
  196. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +6 -3
  197. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +5 -2
  198. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  199. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  200. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  201. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  202. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  203. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +2 -2
  204. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +3 -3
  205. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +2 -2
  206. package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +2 -2
  207. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +63 -39
  208. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
  209. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
  210. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +61 -229
  211. package/src/sap/ui/mdc/p13n/AdaptationProvider.js +3 -3
  212. package/src/sap/ui/mdc/p13n/Engine.js +3 -3
  213. package/src/sap/ui/mdc/p13n/FlexUtil.js +4 -4
  214. package/src/sap/ui/mdc/p13n/P13nBuilder.js +81 -6
  215. package/src/sap/ui/mdc/p13n/PersistenceProvider.js +26 -4
  216. package/src/sap/ui/mdc/p13n/PropertyHelper.js +3 -3
  217. package/src/sap/ui/mdc/p13n/StateUtil.js +4 -4
  218. package/src/sap/ui/mdc/p13n/UIManager.js +3 -3
  219. package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +3 -3
  220. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +3 -3
  221. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +31 -11
  222. package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +2 -2
  223. package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +2 -2
  224. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +3 -9
  225. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +39 -12
  226. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +2 -2
  227. package/src/sap/ui/mdc/p13n/panels/GroupView.js +2 -2
  228. package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +2 -2
  229. package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +2 -2
  230. package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +2 -2
  231. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  232. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +3 -3
  233. package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +2 -2
  234. package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +2 -2
  235. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +2 -2
  236. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +2 -2
  237. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +4 -5
  238. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +2 -2
  239. package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +4 -3
  240. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
  241. package/src/sap/ui/mdc/table/Column.js +29 -3
  242. package/src/sap/ui/mdc/table/CreationRow.js +3 -3
  243. package/src/sap/ui/mdc/table/GridTableType.js +7 -2
  244. package/src/sap/ui/mdc/table/PropertyHelper.js +29 -34
  245. package/src/sap/ui/mdc/table/ResponsiveTableType.js +4 -3
  246. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  247. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  248. package/src/sap/ui/mdc/table/TableSettings.js +2 -2
  249. package/src/sap/ui/mdc/table/TableTypeBase.js +5 -2
  250. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +4 -9
  251. package/src/sap/ui/mdc/table/menu/Item.js +3 -3
  252. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
  253. package/src/sap/ui/mdc/themes/base/Chart.less +28 -0
  254. package/src/sap/ui/mdc/themes/base/InfoPanel.less +0 -1
  255. package/src/sap/ui/mdc/util/Common.js +2 -2
  256. package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
  257. package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
  258. package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
  259. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  260. package/src/sap/ui/mdc/util/PropertyHelper.js +59 -55
  261. package/src/sap/ui/mdc/valuehelp/Dialog.js +5 -3
  262. package/src/sap/ui/mdc/valuehelp/Popover.js +36 -8
  263. package/src/sap/ui/mdc/valuehelp/base/Container.js +7 -7
  264. package/src/sap/ui/mdc/valuehelp/base/Content.js +7 -7
  265. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -3
  266. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +3 -3
  267. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -3
  268. package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -3
  269. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +3 -3
  270. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +3 -3
  271. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +27 -5
  272. package/src/sap/ui/mdc/valuehelp/content/MTable.js +4 -4
  273. package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
  274. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
  275. package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
  276. package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
  277. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
  278. package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +482 -0
  279. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +379 -267
  280. package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
  281. package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +41 -0
  282. package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
  283. package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
  284. package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
  285. package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
  286. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
  287. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
  288. package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
  289. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +100 -34
  290. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +3 -3
  291. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
  292. package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
  293. package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
  294. package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
  295. package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
  296. package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
  297. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
  298. package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
  299. package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
  300. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
  301. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +26 -16
  302. package/test/sap/ui/mdc/testutils/opa/p13n/Assertions.js +293 -2
  303. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -3
  304. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
  305. package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
  306. package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +256 -0
  307. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +179 -12
  308. package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
  309. package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
  310. package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
  311. package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
  312. package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
  313. package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
  314. package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
  315. package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +3 -3
  316. package/ui5.yaml +4 -1
  317. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
  318. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
  319. package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
  320. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -11,20 +11,19 @@ sap.ui.define([
11
11
  "sap/m/library",
12
12
  "sap/m/Text",
13
13
  "sap/ui/mdc/library",
14
- "sap/ui/mdc/odata/v4/ODataMetaModelUtil",
15
14
  "sap/base/Log",
16
15
  'sap/ui/mdc/util/FilterUtil',
17
16
  'sap/ui/mdc/odata/v4/util/DelegateUtil',
18
17
  "sap/ui/mdc/chart/ChartTypeButton",
19
18
  "sap/ui/mdc/chart/Item",
20
19
  "sap/ui/model/Sorter",
21
- "sap/m/VBox",
20
+ "sap/ui/mdc/chart/ChartImplementationContainer",
22
21
  "sap/ui/base/ManagedObjectObserver",
23
22
  "sap/ui/core/ResizeHandler",
24
23
  "sap/ui/mdc/p13n/panels/ChartItemPanel",
25
24
  "sap/m/MessageStrip",
26
25
  "../TypeUtil",
27
- "../FilterBarDelegate",
26
+ "sap/ui/mdc/FilterBarDelegate",
28
27
  "sap/ui/model/Filter",
29
28
  "sap/ui/mdc/odata/v4/ChartPropertyHelper",
30
29
  "sap/ui/thirdparty/jquery"
@@ -35,14 +34,13 @@ sap.ui.define([
35
34
  mobileLibrary,
36
35
  Text,
37
36
  MDCLib,
38
- ODataMetaModelUtil,
39
37
  Log,
40
38
  FilterUtil,
41
39
  DelegateUtil,
42
40
  ChartTypeButton,
43
41
  MDCChartItem,
44
42
  Sorter,
45
- VBox,
43
+ ChartImplementationContainer,
46
44
  ManagedObjectObserver,
47
45
  ResizeHandler,
48
46
  ChartItemPanel,
@@ -66,9 +64,6 @@ sap.ui.define([
66
64
  */
67
65
  var ChartDelegate = Object.assign({}, V4ChartDelegate);
68
66
 
69
- var FlexJustifyContent = mobileLibrary.FlexJustifyContent;
70
- var FlexAlignItems = mobileLibrary.FlexAlignItems;
71
-
72
67
  var mStateMap = new window.WeakMap();
73
68
  //var ChartLibrary;
74
69
  var Chart;
@@ -85,7 +80,9 @@ sap.ui.define([
85
80
  return mStateMap.get(oMDCChart);
86
81
  }
87
82
 
88
- Log.info("Couldn't get state for " + oMDCChart.getId());
83
+ if (oMDCChart){
84
+ Log.info("Couldn't get state for " + oMDCChart.getId());
85
+ }
89
86
  };
90
87
 
91
88
  ChartDelegate._setState = function(oMDCChart, oState) {
@@ -140,13 +137,15 @@ sap.ui.define([
140
137
 
141
138
  ChartDelegate._deleteState = function(oMDCChart) {
142
139
 
143
- if (this._getState(oMDCChart).vizTooltip) {
144
- this._getState(oMDCChart).vizTooltip.destroy();
145
- }
140
+ if (this._getState(oMDCChart)){
141
+ if (this._getState(oMDCChart).vizTooltip) {
142
+ this._getState(oMDCChart).vizTooltip.destroy();
143
+ }
146
144
 
147
- if (this._getState(oMDCChart).observer) {
148
- this._getState(oMDCChart).observer.disconnect();
149
- this._getState(oMDCChart).observer = null;
145
+ if (this._getState(oMDCChart).observer) {
146
+ this._getState(oMDCChart).observer.disconnect();
147
+ this._getState(oMDCChart).observer = null;
148
+ }
150
149
  }
151
150
 
152
151
  return mStateMap.delete(oMDCChart);
@@ -159,7 +158,9 @@ sap.ui.define([
159
158
  return mStateMap.get(oMDCChart).innerChart;
160
159
  }
161
160
 
162
- Log.info("Couldn't get state for " + oMDCChart.getId());
161
+ if (oMDCChart){
162
+ Log.info("Couldn't get state for " + oMDCChart.getId());
163
+ }
163
164
 
164
165
  return undefined;
165
166
 
@@ -178,7 +179,9 @@ sap.ui.define([
178
179
  return mStateMap.get(oMDCChart).innerStructure;
179
180
  }
180
181
 
181
- Log.info("Couldn't get state for " + oMDCChart.getId());
182
+ if (oMDCChart){
183
+ Log.info("Couldn't get state for " + oMDCChart.getId());
184
+ }
182
185
 
183
186
  return undefined;
184
187
  };
@@ -196,7 +199,9 @@ sap.ui.define([
196
199
  return mStateMap.get(oMDCChart).bindingInfo;
197
200
  }
198
201
 
199
- Log.info("Couldn't get state for " + oMDCChart.getId());
202
+ if (oMDCChart){
203
+ Log.info("Couldn't get state for " + oMDCChart.getId());
204
+ }
200
205
 
201
206
  return undefined;
202
207
  };
@@ -254,7 +259,11 @@ sap.ui.define([
254
259
  * @ui5-restricted Fiori Elements, sap.ui.mdc
255
260
  */
256
261
  ChartDelegate.zoomIn = function (oMDCChart, iValue) {
257
- this._getChart(oMDCChart).zoom({direction: "in"});
262
+ var oInnerChart = this._getChart(oMDCChart);
263
+
264
+ if (oInnerChart) {
265
+ oInnerChart.zoom({direction: "in"});
266
+ }
258
267
  };
259
268
 
260
269
  /**
@@ -267,7 +276,11 @@ sap.ui.define([
267
276
  * @ui5-restricted Fiori Elements, sap.ui.mdc
268
277
  */
269
278
  ChartDelegate.zoomOut = function (oMDCChart, iValue) {
270
- this._getChart(oMDCChart).zoom({direction: "out"});
279
+ var oInnerChart = this._getChart(oMDCChart);
280
+
281
+ if (oInnerChart) {
282
+ oInnerChart.zoom({direction: "out"});
283
+ }
271
284
  };
272
285
 
273
286
 
@@ -683,18 +696,16 @@ sap.ui.define([
683
696
 
684
697
  this._loadChart().then(function (aModules) {
685
698
 
686
- var sVBoxHeight = this._calculateInnerChartHeight(oMDCChart);
699
+ this._setInnerStructure(oMDCChart, new ChartImplementationContainer(oMDCChart.getId() + "--implementationContainer", {}));
687
700
 
688
- this._setInnerStructure(oMDCChart, new VBox({
689
- justifyContent: "Center",
690
- alignItems: "Center",
691
- height: sVBoxHeight,
692
- width: "100%"
693
- }));
694
701
  var oText = new Text();
695
702
  oText.setText(oMDCChart.getNoDataText());
696
703
 
697
- this._getInnerStructure(oMDCChart).addItem(oText);
704
+ oMDCChart.addStyleClass("sapUiMDCChartTempTextOuter");
705
+ this._getInnerStructure(oMDCChart).addStyleClass("sapUiMDCChartTempText");
706
+ this._getInnerStructure(oMDCChart).setContent(oText);
707
+
708
+ //oMDCChart.addStyleClass("sapUiMDCChartGrid");
698
709
 
699
710
  this._setUpChartObserver(oMDCChart);
700
711
 
@@ -866,16 +877,17 @@ sap.ui.define([
866
877
  return this._addCriticality(oItem).then(function(){
867
878
  this._getState(oItem.getParent()).aInSettings.push(oItem.getName());
868
879
 
869
- if (oItem.getType === "aggregatable") {
880
+ if (oItem.getType() === "aggregatable") {
870
881
 
871
882
  //Uses excact MDC CHart Item name
872
883
  this._getPropertyInfosByName(oItem.getName(), oItem.getParent()).then(function (oPropertyInfo) {
873
- for (var j = 0; j < this._getAdditionalColoringMeasuresForItem(oPropertyInfo); j++) {
884
+ this._getAdditionalColoringMeasuresForItem(oPropertyInfo).forEach(function(oMeasure){
874
885
 
875
- if (this._getState(oItem.getParent()).aColMeasures.indexOf(this._getAdditionalColoringMeasuresForItem(oPropertyInfo)[j]) == -1) {
876
- this._getState(oItem.getParent()).aColMeasures.push(this._getAdditionalColoringMeasuresForItem(oPropertyInfo)[j]);
886
+ if (this._getState(oItem.getParent()).aColMeasures && this._getState(oItem.getParent()).aColMeasures.indexOf(oMeasure) == -1) {
887
+ this._getState(oItem.getParent()).aColMeasures.push(oMeasure);
877
888
  }
878
- }
889
+ }.bind(this));
890
+
879
891
  }.bind(this));
880
892
  }
881
893
  }.bind(this));
@@ -1253,6 +1265,7 @@ sap.ui.define([
1253
1265
  this._setChart(oMDCChart, new Chart({
1254
1266
  id: oMDCChart.getId() + "--innerChart",
1255
1267
  chartType: "column",
1268
+ height: "100%",
1256
1269
  width: "100%",
1257
1270
  isAnalytical: true//,
1258
1271
  }));
@@ -1264,14 +1277,9 @@ sap.ui.define([
1264
1277
  //Initialize empty; will get filled later on
1265
1278
  this._getState(oMDCChart).inResultDimensions = [];
1266
1279
 
1267
- if (oMDCChart.getHeight()){
1268
- this._getChart(oMDCChart).setHeight(this._calculateInnerChartHeight(oMDCChart));
1269
- }
1270
-
1271
- //Set height correctly again if chart changes
1272
- ResizeHandler.register(oMDCChart, function(){
1273
- this.adjustChartHeight(oMDCChart);
1274
- }.bind(this));
1280
+ this._getInnerStructure(oMDCChart).removeStyleClass("sapUiMDCChartTempText");
1281
+ oMDCChart.removeStyleClass("sapUiMDCChartTempTextOuter");
1282
+ oMDCChart.addStyleClass("sapUiMDCChartGrid");
1275
1283
 
1276
1284
  var oState = this._getState(oMDCChart);
1277
1285
  oState.aColMeasures = [];
@@ -1289,10 +1297,10 @@ sap.ui.define([
1289
1297
  }
1290
1298
  }.bind(this));
1291
1299
 
1292
- this._getInnerStructure(oMDCChart).removeAllItems();
1293
- this._getInnerStructure(oMDCChart).setJustifyContent(FlexJustifyContent.Start);
1294
- this._getInnerStructure(oMDCChart).setAlignItems(FlexAlignItems.Stretch);
1295
- this._getInnerStructure(oMDCChart).addItem(this._getChart(oMDCChart));
1300
+ //this._getInnerStructure(oMDCChart).removeAllContent();
1301
+ //this._getInnerStructure(oMDCChart).setJustifyContent(FlexJustifyContent.Start);
1302
+ //this._getInnerStructure(oMDCChart).setAlignItems(FlexAlignItems.Stretch);
1303
+ this._getInnerStructure(oMDCChart).setContent(this._getChart(oMDCChart));
1296
1304
 
1297
1305
  oState.dataLoadedCallback = fnCallbackDataLoaded;
1298
1306
 
@@ -1331,61 +1339,20 @@ sap.ui.define([
1331
1339
  };
1332
1340
 
1333
1341
  /**
1334
- * Calculates the height of the inner chart in accoredance with the outer container.
1335
- * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1336
- * @returns {string} New height for the chart
1337
- * @experimental
1338
- * @private
1339
- * @ui5-restricted Fiori Elements, sap.ui.mdc
1340
- */
1341
- ChartDelegate._calculateInnerChartHeight = function(oMDCChart) {
1342
- var iTotalHeight = jQuery(oMDCChart.getDomRef()).height();
1343
- var iToolbarHeight = 0;
1344
- var oToolbar = oMDCChart.getAggregation("_toolbar");
1345
- var iBreadcrumbsHeight = 0;
1346
- var oBreadcrumbs = oMDCChart.getAggregation("_breadcrumbs");
1347
-
1348
- if (oToolbar){
1349
- iToolbarHeight = jQuery(oToolbar.getDomRef()).outerHeight(true);
1350
- }
1351
-
1352
- if (oBreadcrumbs){
1353
- iBreadcrumbsHeight = jQuery(oBreadcrumbs.getDomRef()).outerHeight(true);
1354
- }
1355
-
1356
- var iSubHeight = iBreadcrumbsHeight + iToolbarHeight;
1357
-
1358
- if (!iTotalHeight){
1359
- return "480px";
1360
- }
1361
-
1362
- return iTotalHeight - iSubHeight + "px";
1363
- };
1364
-
1365
- /**
1366
- * Adjusts the chart height to changed content strucutre, if needed.
1342
+ * Requests a toolbar update once the inner chart is ready.
1367
1343
  * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1368
1344
  * @experimental
1369
1345
  * @private
1370
1346
  * @ui5-restricted Fiori Elements, sap.ui.mdc
1371
1347
  */
1372
- ChartDelegate.adjustChartHeight = function(oMDCChart){
1373
- if (oMDCChart.getHeight() && this._getChart(oMDCChart)){
1374
- var sHeight = this._calculateInnerChartHeight(oMDCChart);
1348
+ ChartDelegate.requestToolbarUpdate = function(oMDCChart) {
1375
1349
 
1376
- this._getInnerStructure(oMDCChart).setHeight(sHeight);
1377
- this._getChart(oMDCChart).setHeight(sHeight);
1350
+ //Workaround as the sap.chart.Chart doesn't call renderComplete when no dimensions/measures are set up
1351
+ if (oMDCChart.getItems().length === 0) {
1352
+ oMDCChart._updateToolbar();
1353
+ return;
1378
1354
  }
1379
- };
1380
1355
 
1381
- /**
1382
- * Requests a toolbar update once the inner chart is ready.
1383
- * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1384
- * @experimental
1385
- * @private
1386
- * @ui5-restricted Fiori Elements, sap.ui.mdc
1387
- */
1388
- ChartDelegate.requestToolbarUpdate = function(oMDCChart) {
1389
1356
  this._getState(oMDCChart).toolbarUpdateRequested = true;
1390
1357
  };
1391
1358
 
@@ -1813,141 +1780,6 @@ sap.ui.define([
1813
1780
  });
1814
1781
  };
1815
1782
 
1816
- /**
1817
- * Returns the relevant property infos based on the metadata used with the MDC chart instance.
1818
- *
1819
- * @param {sap.ui.mdc.Chart} oMDCChart Reference to the MDC chart
1820
- * @returns {array} Array of the property infos to be used within MDC chart
1821
- * @experimental
1822
- * @private
1823
- * @ui5-restricted Fiori Elements, sap.ui.mdc
1824
- */
1825
- ChartDelegate.fetchProperties = function (oMDCChart) {
1826
-
1827
- var oModel = this._getModel(oMDCChart);
1828
- var pCreatePropertyInfos;
1829
-
1830
- if (!oModel) {
1831
- pCreatePropertyInfos = new Promise(function (resolve) {
1832
- oMDCChart.attachModelContextChange({
1833
- resolver: resolve
1834
- }, onModelContextChange, this);
1835
- }.bind(this)).then(function (oModel) {
1836
- return this._createPropertyInfos(oMDCChart.getDelegate().payload, oModel);
1837
- }.bind(this));
1838
- } else {
1839
- pCreatePropertyInfos = this._createPropertyInfos(oMDCChart.getDelegate().payload, oModel);
1840
- }
1841
-
1842
- return pCreatePropertyInfos.then(function (aProperties) {
1843
- if (oMDCChart.data) {
1844
- oMDCChart.data("$mdcChartPropertyInfo", aProperties);
1845
- }
1846
- return aProperties;
1847
- });
1848
- };
1849
-
1850
- function onModelContextChange(oEvent, oData) {
1851
- var oMDCChart = oEvent.getSource();
1852
- var oModel = this._getModel(oMDCChart);
1853
-
1854
- if (oModel) {
1855
- oMDCChart.detachModelContextChange(onModelContextChange);
1856
- oData.resolver(oModel);
1857
- }
1858
- }
1859
-
1860
- ChartDelegate._createPropertyInfos = function (oDelegatePayload, oModel) {
1861
- //var oMetadataInfo = oMDCChart.getDelegate().payload;
1862
- var aProperties = [];
1863
- var sEntitySetPath = "/" + oDelegatePayload.collectionName;
1864
- var oMetaModel = oModel.getMetaModel();
1865
-
1866
- return Promise.all([
1867
- oMetaModel.requestObject(sEntitySetPath + "/"), oMetaModel.requestObject(sEntitySetPath + "@")
1868
- ]).then(function (aResults) {
1869
- var oEntityType = aResults[0], mEntitySetAnnotations = aResults[1];
1870
- var oSortRestrictions = mEntitySetAnnotations["@Org.OData.Capabilities.V1.SortRestrictions"] || {};
1871
- var oSortRestrictionsInfo = ODataMetaModelUtil.getSortRestrictionsInfo(oSortRestrictions);
1872
- var oFilterRestrictions = mEntitySetAnnotations["@Org.OData.Capabilities.V1.FilterRestrictions"];
1873
- var oFilterRestrictionsInfo = ODataMetaModelUtil.getFilterRestrictionsInfo(oFilterRestrictions);
1874
-
1875
- for (var sKey in oEntityType) {
1876
- var oObj = oEntityType[sKey];
1877
-
1878
- if (oObj && oObj.$kind === "Property") {
1879
- // ignore (as for now) all complex properties
1880
- // not clear if they might be nesting (complex in complex)
1881
- // not clear how they are represented in non-filterable annotation
1882
- // etc.
1883
- if (oObj.$isCollection) {
1884
- //Log.warning("Complex property with type " + oObj.$Type + " has been ignored");
1885
- continue;
1886
- }
1887
-
1888
- var oPropertyAnnotations = oMetaModel.getObject(sEntitySetPath + "/" + sKey + "@");
1889
-
1890
- //TODO: Check what we want to do with properties neither aggregatable nor groupable
1891
- //Right now: skip them, since we can't create a chart from it
1892
- if (!oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"] && !oPropertyAnnotations["@Org.OData.Aggregation.V1.Groupable"]) {
1893
- continue;
1894
- }
1895
-
1896
- if (oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"]){
1897
- aProperties = aProperties.concat(this._createPropertyInfosForAggregatable(sKey, oPropertyAnnotations, oObj, oFilterRestrictionsInfo, oSortRestrictionsInfo));
1898
- }
1899
-
1900
- if (oPropertyAnnotations["@Org.OData.Aggregation.V1.Groupable"]) {
1901
-
1902
- aProperties.push({
1903
- name: sKey,
1904
- propertyPath: sKey,
1905
- label: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Label"] || sKey,
1906
- sortable: oSortRestrictionsInfo[sKey] ? oSortRestrictionsInfo[sKey].sortable : true,
1907
- filterable: oFilterRestrictionsInfo[sKey] ? oFilterRestrictionsInfo[sKey].filterable : true,
1908
- groupable: true,
1909
- aggregatable: false,
1910
- maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
1911
- sortKey: sKey,
1912
- dataType: oObj.$Type,
1913
- //formatOptions: null,
1914
- //constraints: {},
1915
- role: MDCLib.ChartItemRoleType.category, //standard, normally this should be interpreted from UI.Chart annotation
1916
- criticality: null ,//To be implemented by FE
1917
- textProperty: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"] ? oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Text"].$Path : null //To be implemented by FE
1918
- //textFormatter: string-> can be used to provide a custom formatter for the textProperty
1919
- });
1920
- }
1921
- }
1922
- }
1923
- return aProperties;
1924
- }.bind(this));
1925
- };
1926
-
1927
- ChartDelegate._createPropertyInfosForAggregatable = function(sKey, oPropertyAnnotations, oObj, oFilterRestrictionsInfo, oSortRestrictionsInfo) {
1928
- var aProperties = [];
1929
-
1930
- if (oPropertyAnnotations["@Org.OData.Aggregation.V1.SupportedAggregationMethods"]){
1931
- oPropertyAnnotations["@Org.OData.Aggregation.V1.SupportedAggregationMethods"].forEach(function(sAggregationMethod){
1932
- aProperties.push({
1933
- name: sAggregationMethod + sKey,
1934
- propertyPath: sKey,
1935
- label: oPropertyAnnotations["@com.sap.vocabularies.Common.v1.Label"] + " (" + sAggregationMethod + ")" || sKey + " (" + sAggregationMethod + ")" ,
1936
- sortable: oSortRestrictionsInfo[sKey] ? oSortRestrictionsInfo[sKey].sortable : true,
1937
- filterable: oFilterRestrictionsInfo[sKey] ? oFilterRestrictionsInfo[sKey].filterable : true,
1938
- groupable: false,
1939
- aggregatable: oPropertyAnnotations["@Org.OData.Aggregation.V1.Aggregatable"],
1940
- aggregationMethod: sAggregationMethod,
1941
- maxConditions: ODataMetaModelUtil.isMultiValueFilterExpression(oFilterRestrictionsInfo.propertyInfo[sKey]) ? -1 : 1,
1942
- dataType: oObj.$Type,
1943
- datapoint: null //To be implemented by FE
1944
- });
1945
- });
1946
- }
1947
-
1948
- return aProperties;
1949
- };
1950
-
1951
1783
  //Gets internal property infos by excact property name
1952
1784
  ChartDelegate._getPropertyInfosByName = function(sName, oMDCChart){
1953
1785
  return oMDCChart._getPropertyByNameAsync(sName);
@@ -1,8 +1,8 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
7
  "sap/ui/base/Object"
8
8
  ], function(BaseObject) {
@@ -1,5 +1,5 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
  */
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.mdc.p13n.AdaptationProvider
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.103.0
44
+ * @version 1.105.0
45
45
  *
46
46
  * @private
47
47
  * @ui5-restricted sap.ui.mdc
@@ -1,8 +1,8 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
7
  'sap/base/util/merge', 'sap/base/util/deepEqual','sap/ui/mdc/condition/FilterOperatorUtil', 'sap/base/Log'
8
8
  ], function (merge, deepEqual, FilterOperatorUtil, Log) {
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
 
97
97
  for (var sFieldPath in mNewConditionState) {
98
98
  var bValidProperty = FlexUtil._hasProperty(aPropertyInfo, sFieldPath);
99
- if (!bValidProperty) {
99
+ if (!bValidProperty && oAdaptationControl.isA("sap.ui.mdc.Control") && oAdaptationControl.isPropertyHelperFinal()) {
100
100
  Log.warning("property '" + sFieldPath + "' not supported");
101
101
  continue;
102
102
  }
@@ -1,8 +1,8 @@
1
- /*
2
- * ! OpenUI5
1
+ /*!
2
+ * OpenUI5
3
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
7
  "./PropertyHelper",
8
8
  "sap/m/Button",
@@ -10,8 +10,9 @@ sap.ui.define([
10
10
  "sap/m/Title",
11
11
  "sap/base/util/merge",
12
12
  "sap/m/MessageBox",
13
- "sap/ui/Device"
14
- ], function(P13nPropertyHelper, Button, Bar, Title, merge, MessageBox, Device) {
13
+ "sap/ui/Device",
14
+ "sap/ui/fl/write/api/FieldExtensibility"
15
+ ], function(P13nPropertyHelper, Button, Bar, Title, merge, MessageBox, Device, FieldExtensibility) {
15
16
  "use strict";
16
17
 
17
18
  var oRB = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
@@ -207,6 +208,7 @@ sap.ui.define([
207
208
  oPropertyHelper.getProperties().forEach(function(oProperty) {
208
209
 
209
210
  var mItem = {};
211
+ mItem.name = oProperty.name;
210
212
 
211
213
  if (bEnhance) {
212
214
  var bIsValid = fnEnhace(mItem, oProperty);
@@ -215,7 +217,6 @@ sap.ui.define([
215
217
  }
216
218
  }
217
219
 
218
- mItem.name = oProperty.name;
219
220
  mItem.label = oProperty.label || oProperty.name;
220
221
  mItem.tooltip = oProperty.tooltip;
221
222
 
@@ -310,6 +311,80 @@ sap.ui.define([
310
311
  mMap[oProp.name].position = iIndex;
311
312
  return mMap;
312
313
  }, {});
314
+ },
315
+
316
+ /**
317
+ *
318
+ * @param {object} oDialog AdaptFiltersDialog
319
+ *
320
+ * @returns {Promise} Promise resolving in the Dialog instance
321
+ */
322
+ addRTACustomFieldButton: function (oDialog) {
323
+
324
+ var bExtensibilityEnabled = false,
325
+ oDialogParent = oDialog.getParent();
326
+
327
+ return sap.ui.getCore().loadLibrary('sap.ui.rta', {
328
+ async: true
329
+ }).then(function() {
330
+ return new Promise(function(resolve) {
331
+ sap.ui.require([
332
+ "sap/ui/rta/Utils"
333
+ ], function(rtaUtils) {
334
+ var oHandleExtensibility = Promise.all([
335
+ rtaUtils.isServiceUpToDate(oDialogParent),
336
+ FieldExtensibility.isExtensibilityEnabled(oDialogParent)
337
+ ]);
338
+
339
+ return oHandleExtensibility.then(function (aResult) {
340
+ bExtensibilityEnabled = !!aResult[1];
341
+ })
342
+ .then(function() {
343
+ var oCustomHeader = oDialog.getCustomHeader(),
344
+ sId = oDialogParent && oDialogParent.getId ? oDialogParent.getId() : undefined,
345
+ oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
346
+
347
+ if (!oCustomHeader) {
348
+ var oBar = new Bar({
349
+ contentLeft: [
350
+ new Title({
351
+ text: oDialog.getTitle()
352
+ })
353
+ ]
354
+ });
355
+ oDialog.setCustomHeader(oBar);
356
+ oCustomHeader = oDialog.getCustomHeader();
357
+ }
358
+
359
+ if (bExtensibilityEnabled) {
360
+ oCustomHeader.addContentRight(new Button( sId + "-addCustomField", {
361
+ icon: "sap-icon://add",
362
+ enabled: bExtensibilityEnabled,
363
+ tooltip: oResourceBundle.getText("p13nDialog.rtaAddTooltip"),
364
+ press: function (oEvt) {
365
+ var sRtaStyleClassName = rtaUtils.getRtaStyleClassName(),
366
+ oAdaptDialog = oEvt.getSource().getParent().getParent(),
367
+ oControl = oAdaptDialog.getParent();
368
+
369
+ FieldExtensibility.onControlSelected(oControl).then(function (oRetVal) {
370
+ FieldExtensibility.getExtensionData().then(function (oExtensibilityInfo) {
371
+ FieldExtensibility.onTriggerCreateExtensionData(oExtensibilityInfo, sRtaStyleClassName);
372
+ oAdaptDialog.close(); // close as if there is newly created custom field, next time user tries to open it - it checks for service outdated and shows correct information
373
+ });
374
+ });
375
+
376
+ }
377
+ }));
378
+
379
+ oDialog.setCustomHeader(oCustomHeader);
380
+ resolve(oDialog);
381
+ }
382
+
383
+ });
384
+
385
+ });
386
+ });
387
+ });
313
388
  }
314
389
 
315
390
  };
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  oVM.setModel(oModel, Utils.VARIANT_MODEL_NAME);
84
84
  });
85
85
  this._oWrapper = new VerticalLayout(this.getId() + "--accWrapper", {
86
- visible: false,
86
+ visible: true,
87
87
  content: [
88
88
  oVM
89
89
  ]
@@ -101,6 +101,28 @@ sap.ui.define([
101
101
  return this;
102
102
  };
103
103
 
104
+ PersistenceProvider.prototype.addFor = function (sControlId) {
105
+ this.addAssociation("for", sControlId);
106
+
107
+ var oVM = sap.ui.getCore().byId(this.getId() + "--vm");
108
+ if (this.getMode() === mode.Transient && oVM) {
109
+ oVM.addFor(sControlId);
110
+ }
111
+
112
+ return this;
113
+ };
114
+
115
+ PersistenceProvider.prototype.removeFor = function (sControlId) {
116
+ this.removeAssociation("for", sControlId);
117
+
118
+ var oVM = sap.ui.getCore().byId(this.getId() + "--vm");
119
+ if (this.getMode() === mode.Transient && oVM) {
120
+ oVM.removeFor(sControlId);
121
+ }
122
+
123
+ return this;
124
+ };
125
+
104
126
  /**
105
127
  * Set the mode for the <code>PersistenceProvider</code>.
106
128
  *
@@ -109,13 +131,13 @@ sap.ui.define([
109
131
  * @ui5-restricted sap.fe
110
132
  * @MDC_PUBLIC_CANDIDATE
111
133
  */
112
- PersistenceProvider.prototype.setMode = function (bValue) {
134
+ PersistenceProvider.prototype.setMode = function (sValue) {
113
135
 
114
- if (this._bmodeLocked && bValue !== this.getMode()) {
136
+ if (this._bmodeLocked && sValue !== this.getMode()) {
115
137
  throw new Error("mode is a final property.");
116
138
  }
117
139
 
118
- this.setProperty("mode", bValue);
140
+ this.setProperty("mode", sValue);
119
141
 
120
142
  return this;
121
143
  };