@openui5/sap.ui.mdc 1.100.0 → 1.102.1

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 (223) hide show
  1. package/.eslintrc.json +19 -0
  2. package/THIRDPARTY.txt +5 -5
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +1 -1
  6. package/src/sap/ui/mdc/Chart.js +28 -46
  7. package/src/sap/ui/mdc/ChartDelegate.js +10 -0
  8. package/src/sap/ui/mdc/Control.js +1 -1
  9. package/src/sap/ui/mdc/Element.js +1 -1
  10. package/src/sap/ui/mdc/Field.js +9 -2
  11. package/src/sap/ui/mdc/FilterBar.js +1 -1
  12. package/src/sap/ui/mdc/FilterField.js +2 -2
  13. package/src/sap/ui/mdc/Link.js +1 -1
  14. package/src/sap/ui/mdc/LinkDelegate.js +7 -5
  15. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  16. package/src/sap/ui/mdc/Table.js +313 -424
  17. package/src/sap/ui/mdc/TableDelegate.js +92 -39
  18. package/src/sap/ui/mdc/ValueHelp.js +147 -634
  19. package/src/sap/ui/mdc/ValueHelpDelegate.js +159 -7
  20. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
  21. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
  22. package/src/sap/ui/mdc/chart/ChartToolbar.js +8 -3
  23. package/src/sap/ui/mdc/chart/ChartTypeButton.js +11 -2
  24. package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +2 -0
  25. package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
  26. package/src/sap/ui/mdc/condition/Condition.js +14 -9
  27. package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
  28. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  29. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  30. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +14 -10
  31. package/src/sap/ui/mdc/condition/Operator.js +95 -15
  32. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
  33. package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
  34. package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
  35. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
  36. package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
  37. package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
  38. package/src/sap/ui/mdc/enum/SelectType.js +3 -0
  39. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  40. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
  41. package/src/sap/ui/mdc/field/ConditionType.js +59 -21
  42. package/src/sap/ui/mdc/field/ConditionsType.js +7 -2
  43. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  44. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  45. package/src/sap/ui/mdc/field/DefineConditionPanel.js +15 -19
  46. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +3 -3
  47. package/src/sap/ui/mdc/field/FieldBase.js +29 -13
  48. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
  49. package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
  50. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  51. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  52. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  53. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  54. package/src/sap/ui/mdc/field/FieldValueHelp.js +6 -4
  55. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  56. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
  57. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +7 -1
  58. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
  59. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
  60. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  61. package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
  62. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  63. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  64. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  65. package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
  66. package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
  67. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  68. package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
  69. package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
  70. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +90 -69
  71. package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
  72. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  73. package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
  74. package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
  75. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +41 -11
  76. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +37 -5
  77. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +4 -41
  78. package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
  79. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +2 -2
  80. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  81. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  82. package/src/sap/ui/mdc/library.js +21 -25
  83. package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
  84. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  85. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  86. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  87. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  88. package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +26 -0
  89. package/src/sap/ui/mdc/link/Factory.js +1 -1
  90. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  91. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  92. package/src/sap/ui/mdc/link/Panel.js +196 -24
  93. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  94. package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
  95. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  96. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  97. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  98. package/src/sap/ui/mdc/messagebundle.properties +9 -5
  99. package/src/sap/ui/mdc/messagebundle_ar.properties +9 -7
  100. package/src/sap/ui/mdc/messagebundle_bg.properties +7 -5
  101. package/src/sap/ui/mdc/messagebundle_ca.properties +7 -5
  102. package/src/sap/ui/mdc/messagebundle_cs.properties +7 -5
  103. package/src/sap/ui/mdc/messagebundle_cy.properties +7 -5
  104. package/src/sap/ui/mdc/messagebundle_da.properties +7 -5
  105. package/src/sap/ui/mdc/messagebundle_de.properties +7 -5
  106. package/src/sap/ui/mdc/messagebundle_el.properties +6 -4
  107. package/src/sap/ui/mdc/messagebundle_en.properties +7 -5
  108. package/src/sap/ui/mdc/messagebundle_en_GB.properties +7 -5
  109. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -5
  110. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +7 -5
  111. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -5
  112. package/src/sap/ui/mdc/messagebundle_es.properties +7 -5
  113. package/src/sap/ui/mdc/messagebundle_es_MX.properties +7 -5
  114. package/src/sap/ui/mdc/messagebundle_et.properties +7 -5
  115. package/src/sap/ui/mdc/messagebundle_fi.properties +7 -5
  116. package/src/sap/ui/mdc/messagebundle_fr.properties +7 -5
  117. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +7 -5
  118. package/src/sap/ui/mdc/messagebundle_hi.properties +7 -5
  119. package/src/sap/ui/mdc/messagebundle_hr.properties +7 -5
  120. package/src/sap/ui/mdc/messagebundle_hu.properties +7 -5
  121. package/src/sap/ui/mdc/messagebundle_id.properties +7 -5
  122. package/src/sap/ui/mdc/messagebundle_it.properties +7 -5
  123. package/src/sap/ui/mdc/messagebundle_iw.properties +6 -4
  124. package/src/sap/ui/mdc/messagebundle_ja.properties +8 -6
  125. package/src/sap/ui/mdc/messagebundle_kk.properties +7 -5
  126. package/src/sap/ui/mdc/messagebundle_ko.properties +6 -4
  127. package/src/sap/ui/mdc/messagebundle_lt.properties +7 -5
  128. package/src/sap/ui/mdc/messagebundle_lv.properties +7 -5
  129. package/src/sap/ui/mdc/messagebundle_ms.properties +7 -5
  130. package/src/sap/ui/mdc/messagebundle_nl.properties +7 -5
  131. package/src/sap/ui/mdc/messagebundle_no.properties +7 -5
  132. package/src/sap/ui/mdc/messagebundle_pl.properties +7 -5
  133. package/src/sap/ui/mdc/messagebundle_pt.properties +13 -11
  134. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +7 -5
  135. package/src/sap/ui/mdc/messagebundle_ro.properties +7 -5
  136. package/src/sap/ui/mdc/messagebundle_ru.properties +7 -5
  137. package/src/sap/ui/mdc/messagebundle_sh.properties +10 -8
  138. package/src/sap/ui/mdc/messagebundle_sk.properties +7 -5
  139. package/src/sap/ui/mdc/messagebundle_sl.properties +8 -6
  140. package/src/sap/ui/mdc/messagebundle_sv.properties +8 -6
  141. package/src/sap/ui/mdc/messagebundle_th.properties +7 -5
  142. package/src/sap/ui/mdc/messagebundle_tr.properties +10 -8
  143. package/src/sap/ui/mdc/messagebundle_uk.properties +7 -5
  144. package/src/sap/ui/mdc/messagebundle_vi.properties +7 -5
  145. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -5
  146. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +7 -5
  147. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +4 -11
  148. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  149. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  150. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  151. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +10 -4
  152. package/src/sap/ui/mdc/odata/TypeUtil.js +1 -0
  153. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
  154. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
  155. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +18 -33
  156. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +63 -3
  157. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +76 -3
  158. package/src/sap/ui/mdc/p13n/Engine.js +154 -54
  159. package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -14
  160. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  161. package/src/sap/ui/mdc/p13n/StateUtil.js +30 -51
  162. package/src/sap/ui/mdc/p13n/UIManager.js +6 -2
  163. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -178
  164. package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +15 -12
  165. package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
  166. package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +73 -14
  167. package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +42 -18
  168. package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
  169. package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
  170. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
  171. package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
  172. package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
  173. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +24 -6
  174. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
  175. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
  176. package/src/sap/ui/mdc/table/Column.js +271 -132
  177. package/src/sap/ui/mdc/table/CreationRow.js +3 -1
  178. package/src/sap/ui/mdc/table/GridTableType.js +0 -5
  179. package/src/sap/ui/mdc/table/PropertyHelper.js +80 -158
  180. package/src/sap/ui/mdc/table/ResponsiveTableType.js +64 -44
  181. package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
  182. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  183. package/src/sap/ui/mdc/table/TableSettings.js +10 -22
  184. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  185. package/src/sap/ui/mdc/table/menu/Item.js +78 -0
  186. package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
  187. package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
  188. package/src/sap/ui/mdc/themes/base/Chart.less +9 -0
  189. package/src/sap/ui/mdc/themes/base/InfoPanel.less +1 -0
  190. package/src/sap/ui/mdc/ui/Container.js +0 -0
  191. package/src/sap/ui/mdc/util/DateUtil.js +30 -5
  192. package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
  193. package/src/sap/ui/mdc/util/IdentifierUtil.js +3 -3
  194. package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
  195. package/src/sap/ui/mdc/util/PropertyHelper.js +5 -1
  196. package/src/sap/ui/mdc/valuehelp/Dialog.js +291 -66
  197. package/src/sap/ui/mdc/valuehelp/Popover.js +4 -3
  198. package/src/sap/ui/mdc/valuehelp/base/Container.js +71 -52
  199. package/src/sap/ui/mdc/valuehelp/base/Content.js +57 -24
  200. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  201. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +193 -280
  202. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +6 -6
  203. package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
  204. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
  205. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +4 -4
  206. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +65 -59
  207. package/src/sap/ui/mdc/valuehelp/content/MTable.js +95 -182
  208. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
  209. package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +4 -5
  210. package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
  211. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
  212. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
  213. package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
  214. package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
  215. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +103 -122
  216. package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
  217. package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
  218. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
  219. package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
  220. package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
  221. package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
  222. package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
  223. package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
package/.eslintrc.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "overrides": [
3
+ /*
4
+ * Productive code, sample and unit test code of sap.ui.mdc has been cleaned up.
5
+ * No more references to the global jQuery allowed
6
+ */
7
+ {
8
+ "files": [
9
+ "src/**/*.js",
10
+ "test/sap/ui/mdc/demokit/**/*.js",
11
+ "test/sap/ui/mdc/integration/**/*.js",
12
+ "test/sap/ui/mdc/qunit/**/*.js"
13
+ ],
14
+ "globals": {
15
+ "jQuery": "off"
16
+ }
17
+ }
18
+ ]
19
+ }
package/THIRDPARTY.txt CHANGED
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
400
400
 
401
401
  Library: sap.ui.webc.common:
402
402
 
403
- Component: UI5 Web Components, version: 1.0.0-rc.12
403
+ Component: UI5 Web Components, version: 1.1.2
404
404
  Copyright: SAP
405
405
  License: Apache-2.0
406
406
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
411
411
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
412
412
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
413
413
 
414
- Component: lit-html, version: 1.4.1
414
+ Component: lit-html, version: 2.0.1
415
415
  Copyright: Google LLC
416
416
  License: BSD-3-Clause
417
417
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
420
420
 
421
421
  Library: sap.ui.webc.fiori:
422
422
 
423
- Component: UI5 Web Components, version: 1.0.0-rc.12
423
+ Component: UI5 Web Components, version: 1.1.2
424
424
  Copyright: SAP
425
425
  License: Apache-2.0
426
426
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
429
429
 
430
430
  Library: sap.ui.webc.main:
431
431
 
432
- Component: UI5 Web Components, version: 1.0.0-rc.12
432
+ Component: UI5 Web Components, version: 1.1.2
433
433
  Copyright: SAP
434
434
  License: Apache-2.0
435
435
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -450,7 +450,7 @@ License: Apache-2.0
450
450
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
451
  Contained in: lib/jsdoc/ui5/plugin.js
452
452
 
453
- Component: SAP Theming Base Content, version: 11.1.36-SNAPSHOT
453
+ Component: SAP Theming Base Content, version: 11.1.39
454
454
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
455
455
  License: Apache-2.0
456
456
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.mdc",
3
- "version": "1.100.0",
3
+ "version": "1.102.1",
4
4
  "description": "OpenUI5 UI Library sap.ui.mdc",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,8 +14,8 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.100.0",
18
- "@openui5/sap.ui.core": "1.100.0",
19
- "@openui5/sap.ui.layout": "1.100.0"
17
+ "@openui5/sap.m": "1.102.1",
18
+ "@openui5/sap.ui.core": "1.102.1",
19
+ "@openui5/sap.ui.layout": "1.102.1"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.100.0</version>
9
+ <version>1.102.1</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.mdc</documentation>
12
12
 
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
32
32
  * @extends sap.m.OverflowToolbar
33
33
  * @author SAP SE
34
- * @version 1.100.0
34
+ * @version 1.102.1
35
35
  * @constructor
36
36
  * @private
37
37
  * @since 1.58
@@ -21,6 +21,7 @@ sap.ui.define([
21
21
  "sap/ui/mdc/p13n/subcontroller/ChartItemController",
22
22
  "sap/ui/mdc/p13n/subcontroller/FilterController",
23
23
  "sap/ui/mdc/p13n/subcontroller/SortController",
24
+ "sap/ui/mdc/p13n/subcontroller/ChartTypeController",
24
25
  "sap/ui/base/ManagedObjectObserver",
25
26
  "sap/ui/mdc/chart/DrillBreadcrumbs",
26
27
  "sap/ui/mdc/actiontoolbar/ActionToolbarAction",
@@ -43,6 +44,7 @@ sap.ui.define([
43
44
  ChartItemController,
44
45
  FilterController,
45
46
  SortController,
47
+ ChartTypeController,
46
48
  ManagedObjectObserver,
47
49
  Breadcrumbs,
48
50
  ActionToolbarAction,
@@ -60,7 +62,7 @@ sap.ui.define([
60
62
  * @class The Chart control creates a chart based on metadata and the configuration specified.
61
63
  * @extends sap.ui.mdc.Control
62
64
  * @author SAP SE
63
- * @version 1.100.0
65
+ * @version 1.102.1
64
66
  * @constructor
65
67
  * @experimental As of version ...
66
68
  * @private
@@ -383,6 +385,7 @@ sap.ui.define([
383
385
  }
384
386
  if (mKeys.Type) {
385
387
  this._typeBtnActive = true;
388
+ aSortedKeys.push("Type");
386
389
  } else {
387
390
  this._typeBtnActive = false;
388
391
  }
@@ -405,7 +408,8 @@ sap.ui.define([
405
408
  var mRegistryOptions = {
406
409
  Item: ChartItemController,
407
410
  Sort: SortController,
408
- Filter: FilterController
411
+ Filter: FilterController,
412
+ Type: ChartTypeController
409
413
  };
410
414
 
411
415
  if (aMode && aMode.length > 0) {
@@ -686,10 +690,6 @@ sap.ui.define([
686
690
 
687
691
  var oBindingInfo = this.getControlDelegate()._getBindingInfo(this);
688
692
 
689
- if (oBindingInfo) {
690
- oBindingInfo.sorter = this._getSorters();
691
- }
692
-
693
693
  this.getControlDelegate().updateBindingInfo(this, oBindingInfo); //Applies filters
694
694
  this.getControlDelegate().rebind(this, oBindingInfo);
695
695
  };
@@ -1057,6 +1057,10 @@ sap.ui.define([
1057
1057
  if (aP13nMode.indexOf("Filter") > -1) {
1058
1058
  oState.filter = this.getFilterConditions();
1059
1059
  }
1060
+
1061
+ if (aP13nMode.indexOf("Type") > -1) {
1062
+ oState.chartType = this.getChartType();
1063
+ }
1060
1064
  }
1061
1065
 
1062
1066
  return oState;
@@ -1092,46 +1096,6 @@ sap.ui.define([
1092
1096
  return this.getSortConditions() ? this.getSortConditions().sorters : [];
1093
1097
  };
1094
1098
 
1095
- /**
1096
- * Returns sorters available for the data
1097
- *
1098
- * @returns {array} Array containing available sorters
1099
- *
1100
- * @experimental
1101
- * @private
1102
- * @ui5-restricted sap.ui.mdc
1103
- */
1104
- Chart.prototype._getSorters = function () {
1105
- var aSorters;
1106
- var aSorterProperties = this.getSortConditions() ? this.getSortConditions().sorters : [];
1107
-
1108
- aSorterProperties.forEach(function (oSortProp) {
1109
-
1110
- var oMDCItem = this.getItems().find(function (oProp) {
1111
- return oProp.getName() === oSortProp.name;
1112
- });
1113
-
1114
- //Ignore not visible Items
1115
- if (!oMDCItem) {
1116
- return;
1117
- }
1118
-
1119
- //TODO: Check for inResultDimensions
1120
- var oSorter = this.getControlDelegate().getSorterForItem(oMDCItem, oSortProp);
1121
-
1122
- if (aSorters) {
1123
- aSorters.push(oSorter);
1124
- } else {
1125
- aSorters = [
1126
- oSorter
1127
- ];//[] has special meaning in sorting
1128
- }
1129
- }.bind(this));
1130
-
1131
- return aSorters;
1132
-
1133
- };
1134
-
1135
1099
  /**
1136
1100
  * Returns the fetched properties from the delegate
1137
1101
  *
@@ -1153,6 +1117,24 @@ sap.ui.define([
1153
1117
  return !!this._typeBtnActive;
1154
1118
  };
1155
1119
 
1120
+ /**
1121
+ * Sets the <code>noDataText</code> property.
1122
+ * <code>noDataText</code> is displayed if the chart has no data to show.
1123
+ * @param {string} sText New value for <code>noDataText</code>
1124
+ * @returns {sap.ui.mdc.Chart} Reference to the <code>Chart</code>
1125
+ */
1126
+ Chart.prototype.setNoDataText = function(sText) {
1127
+ this.setProperty("noDataText", sText);
1128
+
1129
+ try {
1130
+ this.getControlDelegate().setNoDataText(this, sText);
1131
+ } catch (error) {
1132
+ //Nothing to do here as this is done during init
1133
+ }
1134
+
1135
+ return this;
1136
+ };
1137
+
1156
1138
  /**
1157
1139
  * Callback for when fuilters changed
1158
1140
  * Activates the overlay on the MDC Chart
@@ -463,6 +463,16 @@ sap.ui.define([
463
463
  return Promise.resolve(true);
464
464
  };
465
465
 
466
+
467
+ /**
468
+ * Sets a "No Data" text for the inner chart.
469
+ * @param {sap.ui.mdc.Chart} oMDCChart Reference to mdc chart
470
+ * @param {string} sText Text to show when there is no data displayed on the chart
471
+ */
472
+ ChartDelegate.setNoDataText = function(oMDCChart, sText) {
473
+
474
+ };
475
+
466
476
  /**
467
477
  * Returns the relevant propery infos based on the metadata used with the MDC chart instance.
468
478
  *
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Control
21
21
  * @abstract
22
22
  * @author SAP SE
23
- * @version 1.100.0
23
+ * @version 1.102.1
24
24
  * @alias sap.ui.mdc.Control
25
25
  *
26
26
  * @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.core.Element
21
21
  * @abstract
22
22
  * @author SAP SE
23
- * @version 1.100.0
23
+ * @version 1.102.1
24
24
  * @alias sap.ui.mdc.Element
25
25
  *
26
26
  * @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
@@ -46,12 +46,12 @@ sap.ui.define([
46
46
  * @implements sap.ui.core.IFormContent
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.100.0
49
+ * @version 1.102.1
50
50
  *
51
51
  * @constructor
52
52
  * @alias sap.ui.mdc.Field
53
53
  * @author SAP SE
54
- * @version 1.100.0
54
+ * @version 1.102.1
55
55
  * @since 1.54.0
56
56
  * @experimental As of version 1.54
57
57
  *
@@ -166,6 +166,13 @@ sap.ui.define([
166
166
  !deepEqual(oDataType.getConstraints(), oBindingInfo.type.getConstraints()) ||
167
167
  oDataType._bCreatedByOperator !== oBindingInfo.type._bCreatedByOperator)) {
168
168
  this._oContentFactory.setDataType(oBindingInfo.type);
169
+ if (oBindingInfo.type.isA("sap.ui.model.CompositeType") && oBindingInfo.parts) {
170
+ var aTypes = [];
171
+ for (var i = 0; i < oBindingInfo.parts.length; i++) {
172
+ aTypes.push(oBindingInfo.parts[i].type);
173
+ }
174
+ this._oContentFactory.setCompositeTypes(aTypes);
175
+ }
169
176
  this._oContentFactory.updateConditionType();
170
177
  this.invalidate(); // as new inner control might be needed
171
178
  }
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
22
22
  * @extends sap.ui.mdc.filterbar.FilterBarBase
23
23
  * @author SAP SE
24
- * @version 1.100.0
24
+ * @version 1.102.1
25
25
  * @constructor
26
26
  * @experimental As of version 1.61
27
27
  * @private
@@ -33,12 +33,12 @@ sap.ui.define([
33
33
  * @extends sap.ui.mdc.field.FieldBase
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.100.0
36
+ * @version 1.102.1
37
37
  *
38
38
  * @constructor
39
39
  * @alias sap.ui.mdc.FilterField
40
40
  * @author SAP SE
41
- * @version 1.100.0
41
+ * @version 1.102.1
42
42
  * @since 1.48.0
43
43
  *
44
44
  * @experimental As of version 1.48
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.ui.mdc.field.FieldInfoBase
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.100.0
48
+ * @version 1.102.1
49
49
  *
50
50
  * @constructor
51
51
  * @alias sap.ui.mdc.Link
@@ -6,15 +6,17 @@
6
6
  sap.ui.define(['sap/ui/mdc/BaseDelegate'], function(BaseDelegate) {
7
7
  "use strict";
8
8
  /**
9
- * @class Base delegate for {@link sap.ui.mdc.Link}. Extend this object in your project to use all functionalities of the {@link sap.ui.mdc.Link}.
9
+ * Base delegate for {@link sap.ui.mdc.Link}. Extend this object in your project to use all functionalities of the {@link sap.ui.mdc.Link}.
10
10
  * <b>Note:</b>
11
- * The class is experimental and the API/behaviour is not finalized and hence this should not be used for productive usage.
11
+ * The delegate is experimental and the API/behaviour is not finalized and hence this should not be used for productive usage.
12
12
  * @author SAP SE
13
- * @private
14
- * @ui5-restricted sap.ui.mdc, sap.fe
13
+ * @namespace
14
+ * @alias module:sap/ui/mdc/LinkDelegate
15
+ * @extends module:sap/ui/mdc/BaseDelegate
15
16
  * @experimental As of version 1.74
16
17
  * @since 1.74
17
- * @alias sap.ui.mdc.LinkDelegate
18
+ * @private
19
+ * @ui5-restricted sap.ui.mdc, sap.fe
18
20
  * @MDC_PUBLIC_CANDIDATE
19
21
  */
20
22
  var LinkDelegate = Object.assign({}, BaseDelegate, {
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @constructor
36
36
  * @alias sap.ui.mdc.MultiValueField
37
37
  * @author SAP SE
38
- * @version 1.100.0
38
+ * @version 1.102.1
39
39
  * @since 1.93.0
40
40
  *
41
41
  * @private