@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
@@ -8,9 +8,11 @@ sap.ui.define([
8
8
  'sap/m/DynamicDateOption',
9
9
  'sap/m/DynamicDateValueHelpUIType',
10
10
  'sap/m/Input',
11
- 'sap/m/DatePicker',
12
11
  'sap/ui/mdc/condition/Operator',
12
+ "sap/ui/mdc/enum/BaseType",
13
+ 'sap/ui/mdc/enum/FieldDisplay',
13
14
  'sap/ui/mdc/util/DateUtil',
15
+ 'sap/ui/mdc/util/loadModules',
14
16
  'sap/ui/model/json/JSONModel',
15
17
  'sap/ui/model/FormatException',
16
18
  'sap/ui/model/ParseException',
@@ -20,9 +22,11 @@ sap.ui.define([
20
22
  DynamicDateOption,
21
23
  DynamicDateValueHelpUIType,
22
24
  Input,
23
- DatePicker,
24
25
  Operator,
26
+ BaseType,
27
+ FieldDisplay,
25
28
  DateUtil,
29
+ loadModules,
26
30
  JSONModel,
27
31
  FormatException,
28
32
  ParseException,
@@ -32,6 +36,8 @@ sap.ui.define([
32
36
  "use strict";
33
37
 
34
38
  var ValueState = coreLibrary.ValueState;
39
+ var DatePicker;
40
+ var DateTimePicker;
35
41
 
36
42
  /**
37
43
  * Constructor for a new OperatorDynamicDateOption.
@@ -45,7 +51,7 @@ sap.ui.define([
45
51
  * @extends sap.m.DynamicDateOption
46
52
  *
47
53
  * @author SAP SE
48
- * @version 1.97.1
54
+ * @version 1.100.0
49
55
  *
50
56
  * @private
51
57
  * @ui5-restricted sap.ui.mdc
@@ -61,20 +67,25 @@ sap.ui.define([
61
67
  /**
62
68
  * Operator used in the corresponding filter field.
63
69
  *
64
- * <b>Note:</b> A condition must be an instance of {@link sap.ui.mdc.condition.Operator Operator}.
70
+ * <b>Note:</b> An operator must be an instance of {@link sap.ui.mdc.condition.Operator Operator}.
65
71
  */
66
72
  operator: { type: "object" },
67
73
  /**
68
74
  * Data type of the corresponding filter field.
69
75
  *
70
- * <b>Note:</b> A condition must be an instance of {@link sap.ui.model.Type Type}.
76
+ * <b>Note:</b> A type must be an instance of {@link sap.ui.model.Type Type}.
71
77
  */
72
- type: { type: "object" }
78
+ type: { type: "object" },
79
+ /**
80
+ * Basic type of the corresponding filter field.
81
+ */
82
+ baseType: { type: "sap.ui.mdc.enum.BaseType" }
73
83
  }
74
84
  }
75
85
  });
76
86
 
77
87
  OperatorDynamicDateOption.prototype.exit = function() {
88
+ DynamicDateOption.prototype.exit.apply(this, arguments);
78
89
  if (this._oModel) {
79
90
  this._oModel.destroy();
80
91
  this._oModel = undefined;
@@ -90,6 +101,31 @@ sap.ui.define([
90
101
  // _removeControls.call(this);
91
102
  };
92
103
 
104
+ OperatorDynamicDateOption.prototype.applySettings = function() {
105
+ DynamicDateOption.prototype.applySettings.apply(this, arguments);
106
+
107
+ // load needed pickers
108
+ // TODO: request in DateContent to be sure that loaded? But needed only on opening, so async loading on initialization should be ok
109
+ var aModules = [];
110
+ var sBaseType = this.getBaseType();
111
+ if (sBaseType === BaseType.DateTime && !DateTimePicker) {
112
+ aModules.push("sap/m/DateTimePicker");
113
+ } else if (!DatePicker) {
114
+ aModules.push("sap/m/DatePicker");
115
+ }
116
+
117
+ if (aModules.length > 0) {
118
+ return loadModules(aModules).then(function (aModules) {
119
+ if (sBaseType === BaseType.DateTime) {
120
+ DateTimePicker = aModules[0];
121
+ } else {
122
+ DatePicker = aModules[0];
123
+ }
124
+ });
125
+ }
126
+
127
+ };
128
+
93
129
  OperatorDynamicDateOption.prototype.validateProperty = function(sPropertyName, oValue) {
94
130
 
95
131
  if (sPropertyName === "operator" && oValue && (typeof oValue !== "object" || !oValue.isA || !oValue.isA("sap.ui.mdc.condition.Operator"))) {
@@ -104,13 +140,6 @@ sap.ui.define([
104
140
 
105
141
  };
106
142
 
107
- OperatorDynamicDateOption.prototype.getKey = function() {
108
-
109
- var oOperator = this.getOperator();
110
- return oOperator.name;
111
-
112
- };
113
-
114
143
  OperatorDynamicDateOption.prototype.isRange = function() {
115
144
 
116
145
  var oOperator = this.getOperator();
@@ -130,15 +159,22 @@ sap.ui.define([
130
159
  if (!this._aUITypes) {
131
160
  var oOperator = this.getOperator();
132
161
  var oType = this.getType();
162
+ var sBaseType = this.getBaseType();
133
163
  this._aUITypes = [];
134
164
 
135
165
  for (var i = 0; i < oOperator.valueTypes.length; i++) {
136
166
  var vType = oOperator.valueTypes[i];
137
167
  if (vType === Operator.ValueType.Self) {
168
+ var sType;
169
+ if (sBaseType === BaseType.DateTime) {
170
+ sType = "datetime";
171
+ } else {
172
+ sType = "date";
173
+ }
138
174
  this._aUITypes.push(new DynamicDateValueHelpUIType({
139
- type: "date"
175
+ type: sType
140
176
  }));
141
- } else if (vType === Operator.ValueType.Static) {
177
+ } else if (!vType || vType === Operator.ValueType.Static) {
142
178
  continue;
143
179
  } else {
144
180
  oType = oOperator._createLocalType(vType, oType);
@@ -187,8 +223,12 @@ sap.ui.define([
187
223
 
188
224
  for (var i = 0; i < oOperator.valueTypes.length; i++) {
189
225
  var vType = oOperator.valueTypes[i];
226
+ var sBaseType = this.getBaseType();
190
227
  var oDate;
191
228
 
229
+ if (!vType) {
230
+ continue;
231
+ }
192
232
  if (!oControl.aControlsByParameters[sKey][i]) {
193
233
  if (oOperator.createControl) {
194
234
  // use internal model to bind the control
@@ -221,12 +261,18 @@ sap.ui.define([
221
261
  // TODO: DatePicker or Calendar?
222
262
  // convert internal value to date
223
263
  if (oValue && oValue.values[i]) {
224
- oDate = DateUtil.typeToUniversalDate(oValue.values[i], oType);
264
+ oDate = DateUtil.typeToUniversalDate(oValue.values[i], oType, sBaseType);
225
265
  oDate = DateUtil.utcToLocal(oDate);
226
266
  }
227
267
  var oFormatOptions = oType.getFormatOptions();
228
268
 
229
- var oDatePicker = new DatePicker(sControlId + "-" + i, {
269
+ var Picker;
270
+ if (sBaseType === BaseType.DateTime) {
271
+ Picker = DateTimePicker;
272
+ } else {
273
+ Picker = DatePicker;
274
+ }
275
+ var oDatePicker = new Picker(sControlId + "-" + i, {
230
276
  dateValue: oDate,
231
277
  displayFormat: oFormatOptions.style || oFormatOptions.pattern,
232
278
  displayFormatType: oFormatOptions.calendarType,
@@ -235,8 +281,11 @@ sap.ui.define([
235
281
  oControl.aControlsByParameters[sKey].push(oDatePicker);
236
282
  } else if (typeof vType === "object"){
237
283
  // just use Input
284
+ oType = oOperator._createLocalType(oOperator.valueTypes[i], oType);
285
+ // format value to String using type
286
+ var sValue = oType.formatValue(oValue && oValue.values[i], "string");
238
287
  var oInput = new Input(sControlId + "-" + i, {
239
- value: oValue && oValue.values[i],
288
+ value: sValue,
240
289
  change: fnChangeHandler
241
290
  });
242
291
  oControl.aControlsByParameters[sKey].push(oInput);
@@ -311,9 +360,13 @@ sap.ui.define([
311
360
  var oResult = {operator: sKey, values: []};
312
361
  var oOperator = this.getOperator();
313
362
  var oType = this.getType();
363
+ var sBaseType = this.getBaseType();
314
364
  var sControlId = oControl.getId();
315
365
 
316
366
  for (var i = 0; i < oOperator.valueTypes.length; i++) {
367
+ if (!oOperator.valueTypes[i]) {
368
+ continue;
369
+ }
317
370
  var oInputControl = oControl.aControlsByParameters[sKey][i];
318
371
  if (oInputControl) {
319
372
  var vValue;
@@ -329,7 +382,7 @@ sap.ui.define([
329
382
  if (vValue) {
330
383
  // parse to Types format
331
384
  vValue = DateUtil.localToUtc(vValue);
332
- vValue = DateUtil.universalDateToType(vValue, oType);
385
+ vValue = DateUtil.universalDateToType(vValue, oType, sBaseType);
333
386
  }
334
387
  } else {
335
388
  vValue = oInputControl.getValue();
@@ -365,21 +418,22 @@ sap.ui.define([
365
418
  OperatorDynamicDateOption.prototype.toDates = function(oValue) {
366
419
  var oOperator = this.getOperator();
367
420
  var oType = this.getType();
421
+ var sBaseType = this.getBaseType();
368
422
  var aRange;
369
423
  var i = 0;
370
424
 
371
425
  if (oOperator.isA("sap.ui.mdc.condition.RangeOperator")) {
372
- aRange = oOperator._getRange(oValue && oValue.values, oType);
426
+ aRange = oOperator._getRange(oValue && oValue.values, oType, sBaseType);
373
427
  // convert to local date
374
428
  for (i = 0; i < aRange.length; i++) {
375
- aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType);
429
+ aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType, sBaseType);
376
430
  aRange[i] = DateUtil.utcToLocal(aRange[i]);
377
431
  }
378
432
  } else if (oOperator.valueTypes[0] === Operator.ValueType.Self) {
379
433
  aRange = oValue.values;
380
434
  for (i = 0; i < aRange.length; i++) {
381
435
  if (aRange[i]) {
382
- aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType);
436
+ aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType, sBaseType);
383
437
  aRange[i] = DateUtil.utcToLocal(aRange[i]);
384
438
  }
385
439
  }
@@ -398,7 +452,7 @@ sap.ui.define([
398
452
  OperatorDynamicDateOption.prototype.format = function(oValue) {
399
453
  var oOperator = this.getOperator();
400
454
  var oType = this.getType();
401
- return oOperator.format(oValue, oType);
455
+ return oOperator.format(oValue, oType, FieldDisplay.Value);
402
456
  };
403
457
 
404
458
  OperatorDynamicDateOption.prototype.parse = function(sValue) {
@@ -408,7 +462,7 @@ sap.ui.define([
408
462
  if (sValue && oOperator.parse(sValue)) {
409
463
  var oResult = {};
410
464
  oResult.operator = this.getKey();
411
- oResult.values = oOperator.parse(sValue, oType);
465
+ oResult.values = oOperator.parse(sValue, oType, FieldDisplay.Value);
412
466
  return oResult;
413
467
  }
414
468
  };
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @param {int[]|function} [oConfiguration.defaultValues] Array of values for the defaults of <code>RangeOperators</code> parameter. This can be a function, which returns the array of values. If not used the default for the values is 1.
34
34
  * @constructor
35
35
  * @author SAP SE
36
- * @version 1.97.1
36
+ * @version 1.100.0
37
37
  * @private
38
38
  * @ui5-restricted sap.fe
39
39
  * @MDC_PUBLIC_CANDIDATE
@@ -87,12 +87,12 @@ sap.ui.define([
87
87
  }
88
88
  });
89
89
 
90
- RangeOperator.prototype.getModelFilter = function(oCondition, sFieldPath, oType, bCaseSensitive) {
91
- var aRange = this._getRange(oCondition.values, oType);
90
+ RangeOperator.prototype.getModelFilter = function(oCondition, sFieldPath, oType, bCaseSensitive, sBaseType) {
91
+ var aRange = this._getRange(oCondition.values, oType, sBaseType);
92
92
  return new Filter({ path: sFieldPath, operator: "BT", value1: aRange[0], value2: aRange[1] });
93
93
  };
94
94
 
95
- RangeOperator.prototype._getRange = function(aValues, oType) {
95
+ RangeOperator.prototype._getRange = function(aValues, oType, sBaseType) {
96
96
  var aRange;
97
97
  if (aValues) {
98
98
  if (aValues.length === 2) {
@@ -107,7 +107,7 @@ sap.ui.define([
107
107
  for (var i = 0; i < 2; i++) {
108
108
  //the calcRange result must be converted from local time to UTC and into the correct type format.
109
109
  aRange[i].oDate = DateUtil.localToUtc(aRange[i].oDate);
110
- aRange[i] = DateUtil.universalDateToType(aRange[i], oType);
110
+ aRange[i] = DateUtil.universalDateToType(aRange[i], oType, sBaseType);
111
111
  }
112
112
 
113
113
  return aRange;
@@ -0,0 +1,63 @@
1
+ /*
2
+ * ! OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+ sap.ui.define([], function () {
7
+ "use strict";
8
+
9
+ function getDefaultDesginTime() {
10
+ return {
11
+ actions: {},
12
+ aggregations: {},
13
+ description: "{description}",
14
+ name: "{name}",
15
+ properties: {}
16
+ };
17
+ }
18
+
19
+ // Returns the designTime metadata for the control. By default all the properties/aggregations which are not part of the allowed list array will be ignored from RTA/DTA
20
+ function enhanceDesignTimeMetadata(aAllowed, sKey, oDesignTime) {
21
+ var bAllowed = aAllowed.includes(sKey);
22
+ var oObject = bAllowed && oDesignTime[sKey] || {};
23
+ if (!Object.keys(oObject).length) {
24
+ oObject[sKey] = {
25
+ ignore: !bAllowed
26
+ };
27
+ Object.assign(oDesignTime, oObject);
28
+ }
29
+ }
30
+
31
+ return {
32
+ getDesignTime: function(ControlClass, aAllowedProperties, aAllowedAggregations, oDesignTime) {
33
+ // Check if designTime is provided and has all the necessary attributes.
34
+ oDesignTime = oDesignTime ? oDesignTime : getDefaultDesginTime();
35
+ oDesignTime.actions = oDesignTime.actions ? oDesignTime.actions : {};
36
+ oDesignTime.properties = oDesignTime.properties ? oDesignTime.properties : {};
37
+ oDesignTime.aggregations = oDesignTime.aggregations ? oDesignTime.aggregations : {};
38
+
39
+ var oControlMetadata = ControlClass.getMetadata(),
40
+ // array containing all allowed control properties. Update the aAllowedProperties to enable a property for DTA
41
+ aAllowedProperties = aAllowedProperties ? aAllowedProperties : [],
42
+ // array containing all allowed control aggregations. Update the aAllowedAggregations to enable an aggregation for DTA
43
+ aAllowedAggregations = aAllowedAggregations ? aAllowedAggregations : [],
44
+ // array containing all control properties
45
+ aAllProperties = Object.keys(oControlMetadata.getAllProperties()).concat(Object.keys(oControlMetadata.getAllPrivateProperties())),
46
+ // array containing all control aggregations
47
+ aAllAggregations = Object.keys(oControlMetadata.getAllAggregations()).concat(Object.keys(oControlMetadata.getAllPrivateAggregations()));
48
+
49
+ // populate the oDesignTime.properties with the control properties (allowed/disallowed). By default all properties are ignored.
50
+ aAllProperties.forEach(function(sPropertyName) {
51
+ enhanceDesignTimeMetadata(aAllowedProperties, sPropertyName, oDesignTime.properties);
52
+ });
53
+
54
+ // populate the oDesignTime.aggregations with the control aggregations (allowed/disallowed). By default all aggregations are ignored.
55
+ aAllAggregations.forEach(function(sAggregationName) {
56
+ enhanceDesignTimeMetadata(aAllowedAggregations, sAggregationName, oDesignTime.aggregations);
57
+ });
58
+
59
+ return oDesignTime;
60
+ }
61
+ };
62
+
63
+ });
@@ -3,41 +3,34 @@
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
- sap.ui.define([], function () {
6
+ sap.ui.define([
7
+ "sap/ui/mdc/ActionToolbar",
8
+ "../Util"
9
+ ], function (ActionToolbar, Util) {
7
10
  "use strict";
8
11
 
9
12
  var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
10
13
 
11
- return {
12
- aggregations: {
13
- content: {
14
- ignore: true
15
- },
16
- // ActionToolbarActions
14
+ var oDesignTime = {
15
+ description: "{description}",
16
+ name: "{name}",
17
+ aggregations: {},
18
+ properties: {},
17
19
  actions: {
18
- ignore: true
19
- },
20
- begin: {
21
- ignore: true
22
- },
23
- between: {
24
- ignore: true
25
- },
26
- end: {
27
- ignore: true
20
+ settings: {
21
+ name: oResourceBundle.getText("actiontoolbar.RTA_SETTINGS_NAME"),
22
+ handler: function (oControl, mPropertyBag) {
23
+ return sap.ui.mdc.p13n.Engine.getInstance().getRTASettingsActionHandler(oControl, mPropertyBag, "actionsKey").then(function(aChanges){
24
+ return aChanges;
25
+ });
26
+ },
27
+ CAUTION_variantIndependent: true
28
+ }
28
29
  }
29
- },
30
- actions: {
31
- settings: {
32
- name: oResourceBundle.getText("actiontoolbar.RTA_SETTINGS_NAME"),
33
- handler: function (oControl, mPropertyBag) {
34
- return sap.ui.mdc.p13n.Engine.getInstance().getRTASettingsActionHandler(oControl, mPropertyBag, "actionsKey").then(function(aChanges){
35
- return aChanges;
36
- });
37
- },
38
- CAUTION_variantIndependent: true
39
- }
40
- }
41
- };
30
+ },
31
+ aAllowedAggregations = [],
32
+ aAllProperties = [];
33
+
34
+ return Util.getDesignTime(ActionToolbar, aAllProperties, aAllowedAggregations, oDesignTime);
42
35
 
43
36
  });
@@ -4,15 +4,93 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
-
8
- ], function () {
7
+ "sap/ui/mdc/p13n/Engine"
8
+ ], function (Engine) {
9
9
  "use strict";
10
10
 
11
11
  return {
12
- name: "{name}",
13
- description: "{description}",
14
12
  actions: {
15
- //TBD: keyuser support
13
+ settings: function () {
14
+ //RTA expects the settings to be returned as function
15
+ return {
16
+ handler: function (oControl, mPropertyBag) {
17
+ return Engine.getInstance().getRTASettingsActionHandler(oControl, mPropertyBag, oControl.getP13nMode());
18
+ }
19
+ };
20
+ }
21
+ },
22
+ properties: {
23
+ width: {
24
+ ignore: true
25
+ },
26
+ height: {
27
+ ignore: true
28
+ },
29
+ delegate: {
30
+ ignore: true
31
+ },
32
+ header: {
33
+ ignore: true
34
+ },
35
+ noDataText: {
36
+ ignore: true
37
+ },
38
+ p13nMode: {
39
+ ignore: true
40
+ },
41
+ legendVisible: {
42
+ ignore: true
43
+ },
44
+ ignoreToolbarActions: {
45
+ ignore: true
46
+ },
47
+ minWidth: {
48
+ ignore: true
49
+ },
50
+ minHeight: {
51
+ ignore: true
52
+ },
53
+ sortConditions: {
54
+ ignore: true
55
+ },
56
+ filterConditions: {
57
+ ignore: true
58
+ },
59
+ showChartTooltip: {
60
+ ignore: true
61
+ },
62
+ autoBindOnInit: {
63
+ ignore: true
64
+ },
65
+ chartType: {
66
+ ignore: true
67
+ },
68
+ showSelectionDetails: {
69
+ ignore: true
70
+ },
71
+ propertyInfo: {
72
+ ignore: true
73
+ }
74
+ },
75
+ aggregations: {
76
+ items: {
77
+ ignore: true
78
+ },
79
+ actions: {
80
+ ignore: true
81
+ },
82
+ selectionDetailsActions: {
83
+ ignore: true
84
+ },
85
+ _toolbar: {
86
+ ignore: false
87
+ },
88
+ _breadcrumbs: {
89
+ ignore: true
90
+ },
91
+ _innerChart: {
92
+ ignore: true
93
+ }
16
94
  }
17
95
  };
18
96
 
@@ -3,12 +3,14 @@
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
- sap.ui.define([
7
- ], function () {
6
+
7
+ sap.ui.define(['sap/ui/fl/Utils', 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI'], function(Utils, FlexRuntimeInfoAPI) {
8
8
  "use strict";
9
9
 
10
+ var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
11
+
10
12
  return {
11
- properties: {
13
+ properties: {
12
14
  value: {
13
15
  ignore: true
14
16
  },
@@ -16,6 +18,80 @@ sap.ui.define([
16
18
  additionalValue: {
17
19
  ignore: true
18
20
  }
19
- }
20
- };
21
+ },
22
+ getStableElements: function(oField) {
23
+ if (!oField.getFieldInfo()) {
24
+ return [];
25
+ }
26
+ var oFieldInfo = oField.getFieldInfo();
27
+ var oControl = typeof oFieldInfo.getSourceControl() === "string" ? sap.ui.getCore().byId(oFieldInfo.getSourceControl()) : oFieldInfo.getSourceControl();
28
+ if (!oControl) {
29
+ oControl = oField;
30
+ }
31
+ var oAppComponent = Utils.getAppComponentForControl(oControl) || Utils.getAppComponentForControl(oField);
32
+ var sStableID = oFieldInfo._createPanelId(Utils, FlexRuntimeInfoAPI);
33
+
34
+ return [
35
+ {
36
+ id: sStableID,
37
+ appComponent: oAppComponent
38
+ }
39
+ ];
40
+ },
41
+ actions: {
42
+ settings: function(oField) {
43
+ if (!oField.getFieldInfo()) {
44
+ return {};
45
+ }
46
+
47
+ return {
48
+ name: oResourceBundle.getText("info.POPOVER_DEFINE_LINKS"),
49
+ handler: function (oControl, mPropertyBag) {
50
+ var oFieldInfo = oControl.getFieldInfo();
51
+ return oFieldInfo.getContent().then(function(oPanel) {
52
+ oFieldInfo.addDependent(oPanel);
53
+ // wait for createItem changes
54
+ return FlexRuntimeInfoAPI.waitForChanges({
55
+ element: oPanel
56
+ }).then(function() {
57
+ var oEngine = sap.ui.mdc.p13n.Engine.getInstance();
58
+ mPropertyBag.fnAfterClose = function() {
59
+ oPanel.destroy();
60
+ };
61
+ var fnGetChanges = function() {
62
+ return oEngine.getRTASettingsActionHandler(oPanel, mPropertyBag, "LinkItems").then(function(aChanges) {
63
+ aChanges.forEach(function(oChange) {
64
+ var oSelectorElement = oChange.selectorElement;
65
+ delete oChange.selectorElement;
66
+
67
+ var oAppComponent = Utils.getAppComponentForControl(oControl) || Utils.getAppComponentForControl(oField);
68
+ oChange.selectorControl = {
69
+ id: oSelectorElement.getId(),
70
+ controlType: oSelectorElement === oPanel ? "sap.ui.mdc.link.Panel" : "sap.ui.mdc.link.PanelItem",
71
+ appComponent: oAppComponent
72
+ };
73
+ });
74
+ return aChanges;
75
+ });
76
+ };
77
+ var aPanelItems = oPanel.getItems();
78
+
79
+ if (aPanelItems.length > 0) {
80
+ // wait for hideItem / revealItem changes
81
+ return FlexRuntimeInfoAPI.waitForChanges({
82
+ selectors: aPanelItems
83
+ }).then(function() {
84
+ return fnGetChanges();
85
+ });
86
+ } else {
87
+ return fnGetChanges();
88
+ }
89
+ });
90
+ });
91
+ },
92
+ CAUTION_variantIndependent: true
93
+ };
94
+ }
95
+ }
96
+ };
21
97
  });
@@ -23,6 +23,9 @@ sap.ui.define([], function() {
23
23
  filterConditions: {
24
24
  ignore: true
25
25
  },
26
+ propertyInfo: {
27
+ ignore: true
28
+ },
26
29
  suspendSelection: {
27
30
  ignore: true
28
31
  }
@@ -5,7 +5,9 @@
5
5
  */
6
6
 
7
7
  // Provides the Design Time Metadata for the sap.ui.mdc.Link
8
- sap.ui.define([], function() {
8
+ sap.ui.define([
9
+ "sap/ui/thirdparty/jquery"
10
+ ], function(jQuery) {
9
11
  "use strict";
10
12
 
11
13
  return {