@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
@@ -9,14 +9,6 @@ sap.ui.define([
9
9
  ], function (Core) {
10
10
  "use strict";
11
11
 
12
- /**
13
- * @namespace
14
- * @name sap.ui.mdc.mixin
15
- * @private
16
- * @experimental As of version 1.82.0
17
- * @ui5-restricted sap.ui.mdc
18
- */
19
-
20
12
  /**
21
13
  * Enhances a given control prototype with consolidated handling for external IFilter integration
22
14
  *
@@ -25,7 +17,7 @@ sap.ui.define([
25
17
  * <ul>
26
18
  * <li><code>setFilter</code> - The setter for the <code>filter</code> association</li>
27
19
  * <li><code>_validateFilter</code> - Validates the provided <code>IFilter</code> control instance and may return an error</li>
28
- * <li><code>checkAndRebind</code> - Executes a the <code>rebind</code> method for the given control instance.</li>
20
+ * <li><code>rebind</code> - Executes a the <code>rebind</code> method for the given control instance.</li>
29
21
  * </ul>
30
22
  *
31
23
  * To use the FilterIntegrationMixin, the implementing Control requires the <code>filter</code> associaton.
@@ -33,7 +25,7 @@ sap.ui.define([
33
25
  * Additionally, the following methods are necessary to be implemented:
34
26
  *
35
27
  * <ul>
36
- * <li><code>rebind</code></li>
28
+ * <li><code>_rebind</code></li>
37
29
  * <li><code>isFilteringEnabled</code></li>
38
30
  * </ul>
39
31
  *
@@ -51,7 +43,7 @@ sap.ui.define([
51
43
  * </ul>
52
44
  *
53
45
  * @author SAP SE
54
- * @version 1.97.1
46
+ * @version 1.100.0
55
47
  * @alias sap.ui.mdc.mixin.FilterIntegrationMixin
56
48
  * @namespace
57
49
  * @since 1.82.0
@@ -94,7 +86,7 @@ sap.ui.define([
94
86
  };
95
87
 
96
88
  function onSearch(oEvent) {
97
- this.rebind();
89
+ this._rebind();
98
90
  if (this._onFilterSearch) {
99
91
  this._onFilterSearch(oEvent);
100
92
  }
@@ -180,8 +172,13 @@ sap.ui.define([
180
172
 
181
173
  /**
182
174
  * Executes a rebind considering the provided external and inbuilt filtering.
175
+ *
176
+ * @private
177
+ * @ui5-restricted sap.fe
178
+ * MDC_PUBLIC_CANDIDATE
179
+ * @since 1.98
183
180
  */
184
- FilterIntegrationMixin.checkAndRebind = function() {
181
+ FilterIntegrationMixin.rebind = function() {
185
182
 
186
183
  if (this.bIsDestroyed) {
187
184
  return;
@@ -209,7 +206,7 @@ sap.ui.define([
209
206
  pOuterFilterSearch,
210
207
  pInnerFilterSearch
211
208
  ]).then(function() {
212
- this.rebind();
209
+ this._rebind();
213
210
  }.bind(this), function(){
214
211
 
215
212
  //TODO:
@@ -219,7 +216,7 @@ sap.ui.define([
219
216
  } else {
220
217
 
221
218
  //No Filter source provided --> rebind immediately
222
- this.rebind();
219
+ this._rebind();
223
220
  }
224
221
 
225
222
  };
@@ -228,7 +225,7 @@ sap.ui.define([
228
225
 
229
226
  this.setFilter = FilterIntegrationMixin.setFilter;
230
227
  this._validateFilter = FilterIntegrationMixin._validateFilter;
231
- this.checkAndRebind = FilterIntegrationMixin.checkAndRebind;
228
+ this.rebind = FilterIntegrationMixin.rebind;
232
229
  };
233
230
 
234
- }, /* bExport= */ true);
231
+ });
@@ -13,7 +13,7 @@ sap.ui.define(
13
13
  * Calling any of the enhanced methods after control exit will result in a no-op.
14
14
  *
15
15
  * @author SAP SE
16
- * @version 1.97.1
16
+ * @version 1.100.0
17
17
  * @alias sap.ui.mdc.mixin.PromiseMixin
18
18
  * @namespace
19
19
  * @since 1.85.0
@@ -89,6 +89,5 @@ sap.ui.define(
89
89
  this._retrievePromises = _noop(PromiseMixin.retrievePromises);
90
90
  this.exit = PromiseMixin.exit(this.exit);
91
91
  };
92
- },
93
- /* bExport= */ true
92
+ }
94
93
  );
@@ -0,0 +1,348 @@
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
+
7
+ sap.ui.define(["sap/base/util/Deferred", "sap/ui/mdc/util/loadModules", "sap/base/Log"], function (Deferred, loadModules, Log) {
8
+ "use strict";
9
+
10
+ /**
11
+ * Enhances a given control prototype with consolidated asynchronous handling for providing a PropertyHelper
12
+ *
13
+ * The following methods are available:
14
+ *
15
+ * <ul>
16
+ * <li><code>initPropertyHelper</code> - Loads and initializes the property helper related to the enhanced control.</li>
17
+ * <li><code>awaitPropertyHelper</code> - Provides access to the property helper initialization <code>Promise</code>.</li>
18
+ * <li><code>finalizePropertyHelper</code> - Finalizes the propertyHelper fetching all available propertyInfo via a given control delegate.</li>
19
+ * <li><code>isPropertyHelperFinal</code> - Indicates if the propertyHelper for this control allready contains all available propertyInfo.</li>
20
+ * <li><code>getPropertyHelper</code> - Returns the property helper instance, if available.</li>
21
+ * </ul>
22
+ *
23
+ * Additionally, the following methods are wrapped:
24
+ *
25
+ * <ul>
26
+ * <li><code>applySettings</code></li>
27
+ * <li><code>exit</code></li>
28
+ * <li><code>init</code></li>
29
+ * </ul>
30
+ *
31
+ * @author SAP SE
32
+ * @version 1.100.0
33
+ * @alias sap.ui.mdc.mixin.PropertyHelperMixin
34
+ * @namespace
35
+ * @since 1.100.0
36
+ * @private
37
+ * @experimental
38
+ * @ui5-restricted sap.ui.mdc
39
+ */
40
+ var PropertyHelperMixin = {};
41
+
42
+ PropertyHelperMixin.init = function (fnInit) {
43
+ return function () {
44
+
45
+ this._oPropertyHelper = null;
46
+ this._oPropertyHelperDeferred = new Deferred();
47
+ this._oApplySettingsDeferred = new Deferred();
48
+
49
+ this._bPropertyHelperFinal = false;
50
+ this._bPropertyHelperInitializing = false;
51
+ this._sPropertyInfoStore = null;
52
+
53
+ if (fnInit) {
54
+ fnInit.apply(this, arguments);
55
+ }
56
+
57
+ };
58
+ };
59
+
60
+ PropertyHelperMixin.applySettings = function (fnApplySettings) {
61
+ return function () {
62
+ if (fnApplySettings) {
63
+ fnApplySettings.apply(this, arguments);
64
+ }
65
+ this._oApplySettingsDeferred.resolve(this); // We want to make sure all other initial properties are set before initializing propertyHelper (e.g. delegate)
66
+ return this;
67
+ };
68
+ };
69
+
70
+ /**
71
+ * Loads and initializes the property helper related to the enhanced control.
72
+ *
73
+ * @protected
74
+ * @param {sap.ui.mdc.util.PropertyHelper} [PropertyHelperClass] Custom property helper class
75
+ * @param {object[]} [aProperties] optional set of initial properties
76
+ * @param {object[]} [bFinal] flag for mark the propertyHelper as final
77
+ * @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
78
+ */
79
+ PropertyHelperMixin.initPropertyHelper = function(PropertyHelperClass, aProperties, bFinal) {
80
+ if (PropertyHelperClass) {
81
+ this._setPropertyHelperClass(PropertyHelperClass);
82
+ }
83
+
84
+ return _createOrUpdatePropertyHelper.call(this, aProperties, bFinal);
85
+ };
86
+
87
+ /**
88
+ * Provide a new set of properties for the propertyHelper.
89
+ *
90
+ * @protected
91
+ * @param {object[]} [aProperties] optional set of initial properties
92
+ * @param {object[]} [bFinal] flag for mark the propertyHelper as final
93
+ * @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
94
+ * @throws exception if propertyHelper is already marked as final
95
+ */
96
+ PropertyHelperMixin.updatePropertyHelper = function(aProperties, bFinal) {
97
+ return _createOrUpdatePropertyHelper.call(this, aProperties, bFinal);
98
+ };
99
+
100
+ /**
101
+ * Finalize the propertyHelper using the control's delegate.
102
+ *
103
+ * @protected
104
+ * @param {object[]} [aProperties] optional set of initial properties
105
+ * @param {object[]} [bFinal] flag for mark the propertyHelper as final
106
+ * @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
107
+ */
108
+ PropertyHelperMixin.finalizePropertyHelper = function() {
109
+ this._pHelperFinalizationPromise = this._pHelperFinalizationPromise || _getDelegateProperties(this).then(function (aResult) {
110
+ return _createOrUpdatePropertyHelper.call(this, aResult, true);
111
+ }.bind(this));
112
+ return this._pHelperFinalizationPromise;
113
+ };
114
+
115
+ /**
116
+ * Indicates if the control's propertyHelper already contains all available properties
117
+ *
118
+ * @protected
119
+ * @returns {boolean} Returns a <code>boolean</code> indicating the propertyHelper's final state
120
+ */
121
+ PropertyHelperMixin.isPropertyHelperFinal = function() {
122
+ return this._bPropertyHelperFinal;
123
+ };
124
+
125
+ /**
126
+ * Provides access to the property helper initialization <code>Promise</code>.
127
+ *
128
+ * @protected
129
+ * @returns {Promise<sap.ui.mdc.util.PropertyHelper>} Returns a <code>Promise</code> that resolves with the property helper
130
+ */
131
+ PropertyHelperMixin.awaitPropertyHelper = function() {
132
+ return this._oPropertyHelperDeferred.promise;
133
+ };
134
+
135
+ /**
136
+ * Returns the property helper instance, if available.
137
+ *
138
+ * @protected
139
+ * @returns {sap.ui.mdc.util.PropertyHelper} The property helper
140
+ */
141
+ PropertyHelperMixin.getPropertyHelper = function() {
142
+ return this._oPropertyHelper;
143
+ };
144
+
145
+ PropertyHelperMixin.exit = function (fnExit) {
146
+ return function () {
147
+ this._oPropertyHelper = null;
148
+ this._oPropertyHelperDeferred = null;
149
+ this._oApplySettingsDeferred = null;
150
+ this._bPropertyHelperFinal = null;
151
+ this._bPropertyHelperInitializing = null;
152
+ this._pHelperFinalizationPromise = null;
153
+ this._oPropertyHelperClass = null;
154
+ this._sPropertyInfoStore = null;
155
+
156
+ if (this._oPropertyInfoStoreMutatorOverride) {
157
+ this[this._oPropertyInfoStoreMutatorOverride.key] = this._oPropertyInfoStoreMutatorOverride.mutator;
158
+ this._oPropertyInfoStoreMutatorOverride = null;
159
+ }
160
+
161
+ if (fnExit) {
162
+ fnExit.apply(this, arguments);
163
+ }
164
+ };
165
+ };
166
+
167
+ /**
168
+ * Controls may provide a property identifier representing a propertyInfo store for this control.
169
+ * This should be called as early as possible as the given property's mutator is overriden.
170
+ * @private
171
+ * @param {string} sPropertyName Name of the property containing propertyInfo for this control
172
+ *
173
+ */
174
+ PropertyHelperMixin._setupPropertyInfoStore = function(sPropertyName) {
175
+ var oProperties = this.getMetadata().getAllProperties();
176
+ var oPropertyInfoProperty = oProperties && oProperties[sPropertyName];
177
+ if (!oPropertyInfoProperty) {
178
+ throw new Error("PropertyHelperMixin: Property '" + sPropertyName + "' not found.");
179
+ }
180
+ var oJSONKeys = this.getMetadata().getJSONKeys()[sPropertyName];
181
+ this._oPropertyInfoStoreMutatorOverride = {key: oJSONKeys._sMutator, mutator: this[oJSONKeys._sMutator]};
182
+
183
+ this[oJSONKeys._sMutator] = function () {
184
+ this._oPropertyInfoStoreMutatorOverride.mutator.apply(this, arguments);
185
+ if (!this._bPropertyHelperFinal) {
186
+ _createOrUpdatePropertyHelper.call(this, this[oJSONKeys._sGetter](), false);
187
+ }
188
+ return this;
189
+ };
190
+ this._sPropertyInfoStore = sPropertyName;
191
+ };
192
+
193
+ // Should ideally be called already during init for controls featuring a propertyInfo property (auto-initalization of PH after applySettings).
194
+ PropertyHelperMixin._setPropertyHelperClass = function (PropertyHelperClass) {
195
+ if (this._oPropertyHelper || this._bPropertyHelperInitializing) {
196
+ throw new Error("PropertyHelper already initializing/ed.");
197
+ }
198
+
199
+ if (PropertyHelperClass && (!PropertyHelperClass.getMetadata || !PropertyHelperClass.getMetadata().isA("sap.ui.mdc.util.PropertyHelper"))) {
200
+ throw new Error("The custom property helper class must be sap.ui.mdc.util.PropertyHelper or a subclass of it.");
201
+ }
202
+ this._oPropertyHelperClass = PropertyHelperClass;
203
+ };
204
+
205
+ PropertyHelperMixin._getPropertyByName = function(sName) {
206
+ return this._oPropertyHelper && this._oPropertyHelper.getProperty(sName);
207
+ };
208
+
209
+ PropertyHelperMixin._getPropertyByNameAsync = function(sName) {
210
+ var oProperty = this._oPropertyHelper && this._oPropertyHelper.getProperty(sName);
211
+
212
+ if (!oProperty) {
213
+ return this.finalizePropertyHelper().then(function (oPropertyHelper) {
214
+ return oPropertyHelper.getProperty(sName);
215
+ });
216
+ }
217
+ return Promise.resolve(oProperty);
218
+ };
219
+
220
+ function _createOrUpdatePropertyHelper(aProperties, bFinal) {
221
+ if (!this.bIsDestroyed) {
222
+ if (this._bPropertyHelperInitializing && typeof aProperties !== "undefined") {
223
+ return this._oPropertyHelperDeferred.promise.then(function () {
224
+ return _updatePropertyHelper.call(this, aProperties, bFinal);
225
+ }.bind(this));
226
+ }
227
+
228
+ if (this._oPropertyHelper && typeof aProperties !== "undefined") {
229
+ _updatePropertyHelper.call(this, aProperties, bFinal);
230
+ }
231
+ if (!this._oPropertyHelper) {
232
+ _createPropertyHelper.call(this, aProperties, bFinal);
233
+ }
234
+ }
235
+ return this._oPropertyHelperDeferred && this._oPropertyHelperDeferred.promise;
236
+ }
237
+
238
+ function _createPropertyHelper (aProperties, bFinal) {
239
+ this._bPropertyHelperInitializing = true;
240
+
241
+ if (bFinal || !aProperties) { // also fall back to delegate if no initial properties given
242
+ bFinal = true;
243
+ this._pHelperFinalizationPromise = this._oPropertyHelperDeferred.promise;
244
+ }
245
+
246
+ var oDelegate;
247
+
248
+ // we need to initialize the delegate for extensions or ph overrides first
249
+ return this._oApplySettingsDeferred.promise.then(function () {
250
+ return this.initControlDelegate();
251
+ }.bind(this)).then(function (oControlDelegate) {
252
+ oDelegate = oControlDelegate;
253
+ return bFinal ? _getDelegateProperties(this) : aProperties;
254
+ }.bind(this)).then(function(aProperties) {
255
+ if (this.bIsDestroyed) {
256
+ return [];
257
+ }
258
+ var aResult = [aProperties];
259
+ if (oDelegate && typeof oDelegate.fetchPropertyExtensions === "function") {
260
+ return oDelegate.fetchPropertyExtensions(this, aProperties).then(function(mExtensions) {
261
+ return aResult.concat(mExtensions);
262
+ });
263
+ }
264
+ return aResult.concat(undefined);
265
+ }.bind(this)).then(function(aResult) {
266
+ if (this.bIsDestroyed) {
267
+ return [];
268
+ }
269
+ return fetchPropertyHelperClass(this, oDelegate, aResult[0], aResult[1]).then(function(PropertyHelper) {
270
+ return aResult.concat(PropertyHelper);
271
+ });
272
+ }.bind(this)).then(function(aResult) {
273
+ if (this.bIsDestroyed) {
274
+ return undefined;
275
+ }
276
+
277
+ var aProperties = aResult[0];
278
+ var mExtensions = aResult[1];
279
+ var PropertyHelper = aResult[2];
280
+ this._oPropertyHelper = new PropertyHelper(aProperties, mExtensions, this, undefined, undefined);
281
+ this._bPropertyHelperInitializing = false;
282
+ if (bFinal) {
283
+ this._bPropertyHelperFinal = true;
284
+ }
285
+ return this._oPropertyHelperDeferred.resolve(this._oPropertyHelper);
286
+ }.bind(this)).catch(function (oError) {
287
+ return this._oPropertyHelperDeferred && this._oPropertyHelperDeferred.reject(oError);
288
+ }.bind(this));
289
+ }
290
+
291
+ function _updatePropertyHelper(aProperties, bFinal) {
292
+ if (this._bPropertyHelperFinal) {
293
+ throw new Error("This property helper is already final and cannot be updated further.");
294
+ }
295
+ this._oPropertyHelper.setProperties(aProperties);
296
+ this._bPropertyHelperFinal = bFinal || this._bPropertyHelperFinal;
297
+ return this._oPropertyHelper;
298
+ }
299
+
300
+ // use delegate for final properties
301
+ function _getDelegateProperties (oControl) {
302
+ return oControl.initControlDelegate().then(function () {
303
+ return oControl.getControlDelegate(oControl).fetchProperties(oControl); // not using arg as some unit tests override "getControlDelegate"
304
+
305
+
306
+ });
307
+ }
308
+
309
+ function fetchPropertyHelperClass(oControl, oDelegate, aProperties) {
310
+ if (oDelegate && typeof oDelegate.getPropertyHelperClass === "function") {
311
+ var oDelegatePropertyHelperClass = oDelegate.getPropertyHelperClass();
312
+ var sBaseClass = oControl._oPropertyHelperClass ? oControl._oPropertyHelperClass.getMetadata().getName() : "sap.ui.mdc.util.PropertyHelper";
313
+
314
+ if (!oDelegatePropertyHelperClass || !oDelegatePropertyHelperClass.getMetadata || !oDelegatePropertyHelperClass.getMetadata().isA(sBaseClass)) {
315
+ throw new Error("The property helper class must be " + sBaseClass + " or a subclass of it.");
316
+ }
317
+ return Promise.resolve(oDelegatePropertyHelperClass);
318
+ }
319
+
320
+ if (oControl._oPropertyHelperClass) {
321
+ return Promise.resolve(oControl._oPropertyHelperClass);
322
+ }
323
+
324
+ return loadModules("sap/ui/mdc/util/PropertyHelper").then(function(aResult) {
325
+ return aResult[0];
326
+ });
327
+ }
328
+
329
+ return function () {
330
+ this.init = PropertyHelperMixin.init(this.init);
331
+ this.exit = PropertyHelperMixin.exit(this.exit);
332
+ this.applySettings = PropertyHelperMixin.applySettings(this.applySettings);
333
+
334
+
335
+ this.initPropertyHelper = PropertyHelperMixin.initPropertyHelper;
336
+ this.awaitPropertyHelper = PropertyHelperMixin.awaitPropertyHelper;
337
+ this.getPropertyHelper = PropertyHelperMixin.getPropertyHelper;
338
+
339
+ this.finalizePropertyHelper = PropertyHelperMixin.finalizePropertyHelper;
340
+ this.isPropertyHelperFinal = PropertyHelperMixin.isPropertyHelperFinal;
341
+
342
+ this._getPropertyByName = PropertyHelperMixin._getPropertyByName;
343
+ this._getPropertyByNameAsync = PropertyHelperMixin._getPropertyByNameAsync;
344
+ this._setPropertyHelperClass = PropertyHelperMixin._setPropertyHelperClass;
345
+ this._setupPropertyInfoStore = PropertyHelperMixin._setupPropertyInfoStore;
346
+
347
+ };
348
+ });
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  *
30
30
  * Falls back to 'object' if type cannot be found.
31
31
  *
32
- * @param {string} sType Given model specific type
32
+ * @param {string} sDataType Given model specific type
33
33
  * @returns {string} primitive type name
34
34
  */
35
35
  getPrimitiveType: function (sDataType) {
@@ -124,4 +124,4 @@ sap.ui.define([
124
124
 
125
125
  return TypeUtil;
126
126
 
127
- }, /* bExport= */ true);
127
+ });