@openui5/sap.ui.mdc 1.92.0 → 1.95.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 (220) hide show
  1. package/.reuse/dep5 +1 -6
  2. package/THIRDPARTY.txt +4 -10
  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/AggregationBaseDelegate.js +2 -1
  7. package/src/sap/ui/mdc/Chart.js +14 -6
  8. package/src/sap/ui/mdc/ChartDelegate.js +1 -1
  9. package/src/sap/ui/mdc/ChartNew.js +104 -32
  10. package/src/sap/ui/mdc/Control.js +1 -1
  11. package/src/sap/ui/mdc/Element.js +2 -2
  12. package/src/sap/ui/mdc/Field.js +15 -2
  13. package/src/sap/ui/mdc/FilterBar.js +11 -1
  14. package/src/sap/ui/mdc/FilterField.js +28 -4
  15. package/src/sap/ui/mdc/Link.js +2 -2
  16. package/src/sap/ui/mdc/MultiValueField.js +406 -0
  17. package/src/sap/ui/mdc/Table.js +166 -102
  18. package/src/sap/ui/mdc/TableDelegate.js +30 -21
  19. package/src/sap/ui/mdc/ValueHelp.js +1459 -0
  20. package/src/sap/ui/mdc/ValueHelpDelegate.js +41 -0
  21. package/src/sap/ui/mdc/chart/ToolbarHandler.js +233 -223
  22. package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
  23. package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +9 -18
  24. package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
  25. package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +1 -1
  26. package/src/sap/ui/mdc/chartNew/ItemNew.js +1 -1
  27. package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
  28. package/src/sap/ui/mdc/condition/Condition.js +2 -2
  29. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  30. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  31. package/src/sap/ui/mdc/condition/FilterConverter.js +27 -15
  32. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +15 -9
  33. package/src/sap/ui/mdc/condition/Operator.js +13 -8
  34. package/src/sap/ui/mdc/condition/RangeOperator.js +3 -6
  35. package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -0
  36. package/src/sap/ui/mdc/enum/SelectType.js +43 -0
  37. package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
  38. package/src/sap/ui/mdc/field/ConditionFieldHelp.js +5 -4
  39. package/src/sap/ui/mdc/field/ConditionType.js +69 -33
  40. package/src/sap/ui/mdc/field/ConditionsType.js +4 -3
  41. package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
  42. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  43. package/src/sap/ui/mdc/field/DefineConditionPanel.js +38 -24
  44. package/src/sap/ui/mdc/field/FieldBase.js +106 -42
  45. package/src/sap/ui/mdc/field/FieldBaseDelegate.js +25 -2
  46. package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
  47. package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
  48. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  49. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  50. package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
  51. package/src/sap/ui/mdc/field/FieldValueHelp.js +55 -33
  52. package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
  53. package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
  54. package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +52 -32
  55. package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +8 -10
  56. package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -1
  57. package/src/sap/ui/mdc/field/InParameter.js +1 -1
  58. package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
  59. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  60. package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +49 -0
  61. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +70 -0
  62. package/src/sap/ui/mdc/field/OutParameter.js +1 -1
  63. package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
  64. package/src/sap/ui/mdc/field/content/ContentFactory.js +2 -2
  65. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +146 -76
  66. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +52 -0
  67. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +4 -20
  68. package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +9 -3
  69. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  70. package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +55 -39
  71. package/src/sap/ui/mdc/flexibility/AggregateFlex.js +31 -22
  72. package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +33 -29
  73. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +10 -5
  74. package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +18 -6
  75. package/src/sap/ui/mdc/flexibility/ColumnFlex.js +15 -4
  76. package/src/sap/ui/mdc/flexibility/ConditionFlex.js +92 -79
  77. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  78. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  79. package/src/sap/ui/mdc/flexibility/GroupFlex.js +70 -52
  80. package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +184 -115
  81. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +59 -41
  82. package/src/sap/ui/mdc/flexibility/SortFlex.js +72 -54
  83. package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -1
  84. package/src/sap/ui/mdc/library.js +618 -7
  85. package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
  86. package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
  87. package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
  88. package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
  89. package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
  90. package/src/sap/ui/mdc/link/Factory.js +1 -1
  91. package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
  92. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  93. package/src/sap/ui/mdc/link/Panel.js +1 -1
  94. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  95. package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
  96. package/src/sap/ui/mdc/link/SelectionDialog.js +1 -1
  97. package/src/sap/ui/mdc/link/SelectionDialogItem.js +1 -1
  98. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  99. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  100. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  101. package/src/sap/ui/mdc/messagebundle.properties +20 -8
  102. package/src/sap/ui/mdc/messagebundle_ar.properties +16 -6
  103. package/src/sap/ui/mdc/messagebundle_bg.properties +15 -5
  104. package/src/sap/ui/mdc/messagebundle_ca.properties +15 -5
  105. package/src/sap/ui/mdc/messagebundle_cs.properties +17 -7
  106. package/src/sap/ui/mdc/messagebundle_cy.properties +15 -5
  107. package/src/sap/ui/mdc/messagebundle_da.properties +15 -5
  108. package/src/sap/ui/mdc/messagebundle_de.properties +23 -13
  109. package/src/sap/ui/mdc/messagebundle_el.properties +16 -6
  110. package/src/sap/ui/mdc/messagebundle_en.properties +14 -4
  111. package/src/sap/ui/mdc/messagebundle_en_GB.properties +15 -5
  112. package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +12 -4
  113. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -1
  114. package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +12 -4
  115. package/src/sap/ui/mdc/messagebundle_es.properties +40 -30
  116. package/src/sap/ui/mdc/messagebundle_es_MX.properties +15 -5
  117. package/src/sap/ui/mdc/messagebundle_et.properties +15 -5
  118. package/src/sap/ui/mdc/messagebundle_fi.properties +16 -6
  119. package/src/sap/ui/mdc/messagebundle_fr.properties +27 -17
  120. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +15 -5
  121. package/src/sap/ui/mdc/messagebundle_hi.properties +13 -3
  122. package/src/sap/ui/mdc/messagebundle_hr.properties +15 -5
  123. package/src/sap/ui/mdc/messagebundle_hu.properties +16 -6
  124. package/src/sap/ui/mdc/messagebundle_id.properties +14 -4
  125. package/src/sap/ui/mdc/messagebundle_it.properties +38 -28
  126. package/src/sap/ui/mdc/messagebundle_iw.properties +15 -5
  127. package/src/sap/ui/mdc/messagebundle_ja.properties +16 -6
  128. package/src/sap/ui/mdc/messagebundle_kk.properties +15 -5
  129. package/src/sap/ui/mdc/messagebundle_ko.properties +13 -3
  130. package/src/sap/ui/mdc/messagebundle_lt.properties +15 -5
  131. package/src/sap/ui/mdc/messagebundle_lv.properties +15 -5
  132. package/src/sap/ui/mdc/messagebundle_ms.properties +13 -3
  133. package/src/sap/ui/mdc/messagebundle_nl.properties +16 -6
  134. package/src/sap/ui/mdc/messagebundle_no.properties +22 -12
  135. package/src/sap/ui/mdc/messagebundle_pl.properties +19 -9
  136. package/src/sap/ui/mdc/messagebundle_pt.properties +15 -5
  137. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +14 -4
  138. package/src/sap/ui/mdc/messagebundle_ro.properties +18 -8
  139. package/src/sap/ui/mdc/messagebundle_ru.properties +15 -5
  140. package/src/sap/ui/mdc/messagebundle_sh.properties +15 -5
  141. package/src/sap/ui/mdc/messagebundle_sk.properties +16 -6
  142. package/src/sap/ui/mdc/messagebundle_sl.properties +15 -5
  143. package/src/sap/ui/mdc/messagebundle_sv.properties +16 -6
  144. package/src/sap/ui/mdc/messagebundle_th.properties +19 -9
  145. package/src/sap/ui/mdc/messagebundle_tr.properties +15 -5
  146. package/src/sap/ui/mdc/messagebundle_uk.properties +16 -6
  147. package/src/sap/ui/mdc/messagebundle_vi.properties +15 -5
  148. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +13 -3
  149. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +13 -3
  150. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  151. package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
  152. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +28 -16
  153. package/src/sap/ui/mdc/mixin/PromiseMixin.js +94 -0
  154. package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +9 -8
  155. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +5 -5
  156. package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
  157. package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +9 -0
  158. package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +88 -80
  159. package/src/sap/ui/mdc/odata/v4/TableDelegate.js +37 -10
  160. package/src/sap/ui/mdc/odata/v4/TypeUtil.js +17 -0
  161. package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
  162. package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +45 -53
  163. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +302 -179
  164. package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
  165. package/src/sap/ui/mdc/p13n/Engine.js +21 -16
  166. package/src/sap/ui/mdc/p13n/P13nBuilder.js +5 -59
  167. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  168. package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
  169. package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +130 -53
  170. package/src/sap/ui/mdc/p13n/panels/BasePanel.js +16 -7
  171. package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
  172. package/src/sap/ui/mdc/p13n/panels/ListView.js +58 -2
  173. package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +17 -10
  174. package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +6 -1
  175. package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
  176. package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
  177. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +10 -11
  178. package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +13 -1
  179. package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
  180. package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +11 -2
  181. package/src/sap/ui/mdc/table/Column.js +21 -4
  182. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  183. package/src/sap/ui/mdc/table/PropertyHelper.js +176 -4
  184. package/src/sap/ui/mdc/table/ResponsiveTableType.js +11 -1
  185. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  186. package/src/sap/ui/mdc/table/TableSettings.js +4 -49
  187. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  188. package/src/sap/ui/mdc/themes/base/FieldBase.less +4 -0
  189. package/src/sap/ui/mdc/themes/base/FilterBar.less +2 -2
  190. package/src/sap/ui/mdc/themes/base/GroupView.less +2 -2
  191. package/src/sap/ui/mdc/themes/base/ListView.less +2 -2
  192. package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +56 -21
  193. package/src/sap/ui/mdc/ui/Container.js +3 -3
  194. package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
  195. package/src/sap/ui/mdc/util/Common.js +26 -0
  196. package/src/sap/ui/mdc/util/FilterUtil.js +68 -16
  197. package/src/sap/ui/mdc/util/IdentifierUtil.js +4 -0
  198. package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
  199. package/src/sap/ui/mdc/util/PropertyHelper.js +27 -2
  200. package/src/sap/ui/mdc/valuehelp/Dialog.js +475 -0
  201. package/src/sap/ui/mdc/valuehelp/Popover.js +346 -0
  202. package/src/sap/ui/mdc/valuehelp/base/Container.js +440 -0
  203. package/src/sap/ui/mdc/valuehelp/base/Content.js +442 -0
  204. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +96 -0
  205. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +537 -0
  206. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +105 -0
  207. package/src/sap/ui/mdc/valuehelp/content/Bool.js +232 -0
  208. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +250 -0
  209. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +504 -0
  210. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +619 -0
  211. package/src/sap/ui/mdc/valuehelp/content/MTable.js +881 -0
  212. package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -2
  213. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
  214. package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
  215. package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
  216. package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
  217. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +256 -94
  218. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
  219. package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
  220. package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
package/.reuse/dep5 CHANGED
@@ -309,7 +309,7 @@ License: MIT
309
309
  Comment: these files belong to: lodash
310
310
 
311
311
  Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
312
- Copyright: 2018 Mathias Nater
312
+ Copyright: 2021 Mathias Nater
313
313
  License: MIT
314
314
  Comment: these files belong to: Hyphenopoly
315
315
 
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
347
347
  License: BSD-2-Clause
348
348
  Comment: these files belong to: Esprima
349
349
 
350
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
351
- Copyright: 2006 Google Inc.
352
- License: Apache-2.0
353
- Comment: these files belong to: google-code-prettify
354
-
355
350
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
356
351
  Copyright: 2006-2020, Ivan Sagalaev
357
352
  License: BSD-3-Clause
package/THIRDPARTY.txt CHANGED
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.ui.codeeditor:
8
8
 
9
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.4
9
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
10
10
  Copyright: 2010, Ajax.org B.V.
11
11
  License: BSD-3-Clause
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -279,8 +279,8 @@ License: MIT
279
279
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
280
280
  Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
281
281
 
282
- Component: Hyphenopoly, version: 2.4.0
283
- Copyright: 2018 Mathias Nater
282
+ Component: Hyphenopoly, version: 3.4.0
283
+ Copyright: 2021 Mathias Nater
284
284
  License: MIT
285
285
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
286
286
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
@@ -324,12 +324,6 @@ License: BSD-2-Clause
324
324
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
325
325
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
326
326
 
327
- Component: google-code-prettify, version: 20130304
328
- Copyright: 2006 Google Inc.
329
- License: Apache-2.0
330
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
331
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
332
-
333
327
  Component: highlight.js, version: 10.4.1
334
328
  Copyright: 2006-2020, Ivan Sagalaev
335
329
  License: BSD-3-Clause
@@ -376,7 +370,7 @@ License: Unicode-DFS-2015
376
370
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
377
371
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
378
372
 
379
- Component: Adaptive Cards, version: 1.2.3
373
+ Component: Adaptive Cards, version: 2.9.0
380
374
  Copyright: 2017 Microsoft
381
375
  License: MIT
382
376
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.mdc",
3
- "version": "1.92.0",
3
+ "version": "1.95.0",
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.92.0",
18
- "@openui5/sap.ui.core": "1.92.0",
19
- "@openui5/sap.ui.layout": "1.92.0"
17
+ "@openui5/sap.m": "1.95.0",
18
+ "@openui5/sap.ui.core": "1.95.0",
19
+ "@openui5/sap.ui.layout": "1.95.0"
20
20
  }
21
21
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.92.0</version>
9
+ <version>1.95.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.ui.mdc</documentation>
12
12
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
22
22
  * @extends sap.m.OverflowToolbar
23
23
  * @author SAP SE
24
- * @version 1.92.0
24
+ * @version 1.95.0
25
25
  * @constructor
26
26
  * @private
27
27
  * @experimental
@@ -98,7 +98,8 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
98
98
 
99
99
  return {
100
100
  validation: sValidation,
101
- message: "Please provide a meaningful message here."
101
+ /* Please provide a meaningful message here. */
102
+ message: undefined
102
103
  };
103
104
  }
104
105
 
@@ -69,7 +69,7 @@ sap.ui.define([
69
69
  * @class The Chart control creates a chart based on metadata and the configuration specified.
70
70
  * @extends sap.ui.mdc.Control
71
71
  * @author SAP SE
72
- * @version 1.92.0
72
+ * @version 1.95.0
73
73
  * @constructor
74
74
  * @experimental As of version 1.61
75
75
  * @private
@@ -350,6 +350,7 @@ sap.ui.define([
350
350
  var _onSelectionMode = function(vValue) {
351
351
 
352
352
  if (!this.oChartPromise) {
353
+ this._bNeedSelectionModeSet = true;
353
354
  return;
354
355
  }
355
356
 
@@ -477,7 +478,10 @@ sap.ui.define([
477
478
  this._mStoredActions = aActions;
478
479
 
479
480
  //Toolbar needs settings to be applied before creation to read properties like header/title
480
- ToolbarHandler.createToolbar(this, aActions, true);
481
+ if (!this._oToolbarHandler) {
482
+ this._oToolbarHandler = new ToolbarHandler();
483
+ }
484
+ this._oToolbarHandler.createToolbar(this, aActions, true);
481
485
  this._createTempNoData();
482
486
  }
483
487
 
@@ -561,10 +565,14 @@ sap.ui.define([
561
565
 
562
566
  .then(function createDrillBreadcrumbs(oInnerChart) {
563
567
 
568
+ if (!this._oToolbarHandler) {
569
+ this._oToolbarHandler = new ToolbarHandler();
570
+ }
571
+
564
572
  if (this.getAutoBindOnInit()){
565
- ToolbarHandler.createToolbar(this, aActions);
573
+ this._oToolbarHandler.createToolbar(this, aActions);
566
574
  } else {
567
- ToolbarHandler.updateToolbar(this);
575
+ this._oToolbarHandler.updateToolbar(this);
568
576
  }
569
577
 
570
578
  this._createDrillBreadcrumbs();
@@ -583,7 +591,7 @@ sap.ui.define([
583
591
 
584
592
  }.bind(this));
585
593
 
586
- if (!mSettings || mSettings.selectionMode === undefined) {
594
+ if (!mSettings || mSettings.selectionMode === undefined || this._bNeedSelectionModeSet) {
587
595
  _onSelectionMode.apply(this);
588
596
  }
589
597
 
@@ -627,7 +635,7 @@ sap.ui.define([
627
635
  };
628
636
 
629
637
  Chart.prototype._onDataLoadComplete = function(mEventParams) {
630
- if (mEventParams.mParameters.reason === "change" && !mEventParams.mParameters.detailedReason) {
638
+ if ((mEventParams.mParameters.reason === "change" || mEventParams.mParameters.reason === "filter" ) && !mEventParams.mParameters.detailedReason) {
631
639
  this.setBusy(false);
632
640
  }
633
641
  };
@@ -176,7 +176,7 @@ sap.ui.define([
176
176
  }
177
177
 
178
178
  var aPropertiesMetadata = oFilter.getPropertyInfoSet ? oFilter.getPropertyInfoSet() : null;
179
- var oFilterInfo = FilterUtil.getFilterInfo(oFilter, mConditions, aPropertiesMetadata);
179
+ var oFilterInfo = FilterUtil.getFilterInfo(ChartDelegate.getTypeUtil(), mConditions, aPropertiesMetadata);
180
180
  oBindingInfo.filters = oFilterInfo.filters;
181
181
  }
182
182
  }
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @class The Chart control creates a chart based on metadata and the configuration specified.
58
58
  * @extends sap.ui.mdc.Control
59
59
  * @author SAP SE
60
- * @version 1.92.0
60
+ * @version 1.95.0
61
61
  * @constructor
62
62
  * @experimental As of version ...
63
63
  * @private
@@ -316,15 +316,61 @@ sap.ui.define([
316
316
  Chart.prototype.init = function () {
317
317
  this._oManagedObjectModel = new ManagedObjectModel(this);
318
318
  this.setModel(this._oManagedObjectModel, "$mdcChart");
319
+ this._bNewP13n = true;//TODO: remove with migration
320
+ Control.prototype.init.apply(this, arguments);
321
+ };
319
322
 
320
- this.getEngine().registerAdaptation(this, {
321
- controller: {
322
- Item: ChartItemController,
323
- Sort: SortController
323
+ Chart.prototype.setP13nMode = function(aMode) {
324
+ var aSortedKeys = null;
325
+ if (aMode && aMode.length > 1){
326
+ aSortedKeys = [];
327
+ var mKeys = aMode.reduce(function(mMap, sKey, iIndex){
328
+ mMap[sKey] = true;
329
+ return mMap;
330
+ }, {});
331
+
332
+ //as the p13nMode has no strict order we need to ensure the order of tabs here
333
+ if (mKeys.Item) {
334
+ aSortedKeys.push("Item");
324
335
  }
325
- });
336
+ if (mKeys.Sort) {
337
+ aSortedKeys.push("Sort");
338
+ }
339
+ if (mKeys.Type) {
340
+ this._typeBtnActive = true;
341
+ } else {
342
+ this._typeBtnActive = false;
343
+ }
344
+ } else {
345
+ aSortedKeys = aMode;
346
+ }
347
+
348
+ this.setProperty("p13nMode", aSortedKeys, true);
349
+
350
+ this._updateAdaptation(this.getP13nMode());
351
+
352
+ return this;
353
+ };
354
+
355
+ Chart.prototype._updateAdaptation = function(aMode) {
356
+ var oRegisterConfig = {
357
+ controller: {}
358
+ };
359
+
360
+ var mRegistryOptions = {
361
+ Item: ChartItemController,
362
+ Sort: SortController
363
+ };
364
+
365
+ if (aMode && aMode.length > 0) {
366
+ aMode.forEach(function(sMode){
367
+ var sKey = sMode;
368
+ oRegisterConfig.controller[sKey] = mRegistryOptions[sMode];
369
+ });
370
+
371
+ this.getEngine().registerAdaptation(this, oRegisterConfig);
372
+ }
326
373
 
327
- Control.prototype.init.apply(this, arguments);
328
374
  };
329
375
 
330
376
  /**
@@ -481,16 +527,21 @@ sap.ui.define([
481
527
  * @param {object} oChange the change object from the ManagedObjectModel observer
482
528
  */
483
529
  Chart.prototype._propagateItemChangeToInnerChart = function (oChange) {
530
+
531
+ if (this._bIsDestroyed){
532
+ return; //Don't propagate changes when CHart is destroyed
533
+ }
534
+
484
535
  this.setBusy(true);
485
536
  switch (oChange.mutation) {
486
537
 
487
538
  case "insert":
488
539
  var iIndex = this.getItems().indexOf(oChange.child);
489
540
 
490
- this.getControlDelegate().insertItemToInnerChart(oChange.child, iIndex);
541
+ this.getControlDelegate().insertItemToInnerChart(this, oChange.child, iIndex);
491
542
  break;
492
543
  case "remove":
493
- this.getControlDelegate().removeItemFromInnerChart(oChange.child);
544
+ this.getControlDelegate().removeItemFromInnerChart(this, oChange.child);
494
545
  break;
495
546
  default:
496
547
  Log.error("Unknown mutation on MDC Chart Item Aggregation. This will not sync to inner chart!");
@@ -524,7 +575,7 @@ sap.ui.define([
524
575
 
525
576
  this.setBusy(true);
526
577
 
527
- if (!this.getControlDelegate().getInnerChartBound()) {
578
+ if (!this.getControlDelegate().getInnerChartBound(this)) {
528
579
  this._createContentfromPropertyInfos();
529
580
  return;
530
581
  }
@@ -549,8 +600,7 @@ sap.ui.define([
549
600
  */
550
601
  Chart.prototype._createToolbar = function () {
551
602
  var toolbar = new ChartToolbar(this.getId() + "--toolbar", {
552
- design: "Transparent",
553
- actions: this._aInitialToolbarActions
603
+ design: "Transparent"
554
604
  });
555
605
 
556
606
  toolbar.createToolbarContent(this);
@@ -558,6 +608,16 @@ sap.ui.define([
558
608
  this.setAggregation("_toolbar", toolbar);
559
609
  };
560
610
 
611
+ /**
612
+ * Gets initial actions for toolbar as they cannot not be forwarded on init due to sorting issues
613
+ * @returns {array} intial actions
614
+ *
615
+ * @private
616
+ */
617
+ Chart.prototype._getInitialToolbarActions = function() {
618
+ return this._aInitialToolbarActions ? this._aInitialToolbarActions : [];
619
+ };
620
+
561
621
  /**
562
622
  * Calls the update function on the toolbar, if toolbar exists
563
623
  *
@@ -579,7 +639,7 @@ sap.ui.define([
579
639
  */
580
640
  Chart.prototype._getInnerChart = function () {
581
641
  if (this._bInnerChartReady) {
582
- return this.getControlDelegate().getInnerChart();
642
+ return this.getControlDelegate().getInnerChart(this);
583
643
  } else {
584
644
  Log.error("Trying to acces inner chart while inner chart is not yet initialized!");
585
645
  }
@@ -643,7 +703,7 @@ sap.ui.define([
643
703
  iValue = 10;
644
704
  }
645
705
 
646
- this.getControlDelegate().zoomIn(iValue);
706
+ this.getControlDelegate().zoomIn(this, iValue);
647
707
  };
648
708
 
649
709
  /**
@@ -659,7 +719,7 @@ sap.ui.define([
659
719
  iValue = 10;
660
720
  }
661
721
 
662
- this.getControlDelegate().zoomOut(iValue);
722
+ this.getControlDelegate().zoomOut(this, iValue);
663
723
  };
664
724
 
665
725
  /**
@@ -676,11 +736,11 @@ sap.ui.define([
676
736
  * @ui5-restricted sap.ui.mdc, sap.fe
677
737
  */
678
738
  Chart.prototype.getZoomState = function () {
679
- return this.getControlDelegate().getZoomState();
739
+ return this.getControlDelegate().getZoomState(this);
680
740
  };
681
741
 
682
742
  Chart.prototype.getSelectionHandler = function () {
683
- return this.getControlDelegate().getInnerChartSelectionHandler();
743
+ return this.getControlDelegate().getInnerChartSelectionHandler(this);
684
744
  };
685
745
 
686
746
  /**
@@ -697,7 +757,7 @@ sap.ui.define([
697
757
 
698
758
  //Skip if no control delegate; gets propagated by _propagatePropertiesToInnerChart after init
699
759
  try {
700
- this.getControlDelegate().setLegendVisible(bVisible);
760
+ this.getControlDelegate().setLegendVisible(this, bVisible);
701
761
  } catch (e) {
702
762
  Log.info("Trying to set legend visiblity for Chart before delegate was initialized");
703
763
  }
@@ -716,7 +776,7 @@ sap.ui.define([
716
776
 
717
777
  //Skip if no control delegate; gets propagated by _propagatePropertiesToInnerChart after init
718
778
  try {
719
- this.getControlDelegate().setChartTooltipVisibility(bValue);
779
+ this.getControlDelegate().setChartTooltipVisibility(this, bValue);
720
780
  } catch (e) {
721
781
  Log.info("Trying to set tooltip visibility before delegate was initialized");
722
782
  }
@@ -724,6 +784,12 @@ sap.ui.define([
724
784
  return this;
725
785
  };
726
786
 
787
+ Chart.prototype.destroy = function() {
788
+ this._bIsDestroyed = true;
789
+
790
+ Control.prototype.destroy.apply(this, arguments);
791
+ };
792
+
727
793
  /**
728
794
  * shows the drill-down popover for selection a dimension to drill down to.
729
795
  * @param {sap.m.Button} oDrillBtn reference to the drill down button for loacation of the popover
@@ -783,7 +849,7 @@ sap.ui.define([
783
849
  var mInfo;
784
850
 
785
851
  try {
786
- mInfo = this.getControlDelegate().getChartTypeInfo();
852
+ mInfo = this.getControlDelegate().getChartTypeInfo(this);
787
853
  } catch (error) {
788
854
  //Inner chart is not yet ready
789
855
  if (!mInfo) {
@@ -807,7 +873,7 @@ sap.ui.define([
807
873
  * @ui5-restricted Fiori Elements
808
874
  */
809
875
  Chart.prototype.getAvailableChartTypes = function () {
810
- return this.getControlDelegate().getAvailableChartTypes();
876
+ return this.getControlDelegate().getAvailableChartTypes(this);
811
877
  };
812
878
 
813
879
 
@@ -820,7 +886,7 @@ sap.ui.define([
820
886
  this.setProperty("chartType", sChartType);
821
887
 
822
888
  try {
823
- this.getControlDelegate().setChartType(sChartType);
889
+ this.getControlDelegate().setChartType(this, sChartType);
824
890
  } catch (e) {
825
891
  Log.info("Trying to set chart type for Chart before delegate was initialized");
826
892
  }
@@ -848,15 +914,18 @@ sap.ui.define([
848
914
  * @private
849
915
  */
850
916
  //TODO: Pass this as an callback function to the delegate instead of calling it form the delegate directly
851
- Chart.prototype._innerChartDataLoadComplete = function () {
852
- this.setBusy(false);
853
- this._renderOverlay(false);
917
+ Chart.prototype._innerChartDataLoadComplete = function (mArguments) {
918
+ if (this.getControlDelegate().checkEventForDataLoaded(mArguments)){
919
+ this.setBusy(false);
920
+ this._renderOverlay(false);
854
921
 
855
- this._updateToolbar();
922
+ this._updateToolbar();
923
+
924
+ this.fireEvent("innerChartLoadedData ", {
925
+ innerChart: this.getControlDelegate().getInnerChart(this)
926
+ });
927
+ }
856
928
 
857
- this.fireEvent("innerChartLoadedData ", {
858
- innerChart: this.getControlDelegate().getInnerChart()
859
- });
860
929
  };
861
930
 
862
931
  /**
@@ -972,6 +1041,9 @@ sap.ui.define([
972
1041
 
973
1042
  };
974
1043
 
1044
+ Chart.prototype._getTypeBtnActive = function(){
1045
+ return !!this._typeBtnActive;
1046
+ };
975
1047
 
976
1048
  /**
977
1049
  * Callback for when fuilters changed
@@ -984,7 +1056,7 @@ sap.ui.define([
984
1056
  * @ui5-restricted Fiori Elements, sap.ui.mdc
985
1057
  */
986
1058
  Chart.prototype._onFiltersChanged = function(oEvent) {
987
- if (this._bInnerChartReady && this.getControlDelegate() && this.getControlDelegate().getInnerChartBound() && oEvent.getParameter("conditionsBased")) {
1059
+ if (this._bInnerChartReady && this.getControlDelegate() && this.getControlDelegate().getInnerChartBound(this) && oEvent.getParameter("conditionsBased")) {
988
1060
  this._renderOverlay(true);
989
1061
  }
990
1062
  };
@@ -999,9 +1071,9 @@ sap.ui.define([
999
1071
  */
1000
1072
  Chart.prototype._renderOverlay = function(bShow) {
1001
1073
 
1002
- if (this.getControlDelegate().getInnerChart()) {
1074
+ if (this.getControlDelegate().getInnerChart(this)) {
1003
1075
 
1004
- var $this = this.getControlDelegate().getInnerChart().$(), $overlay = $this.find(".sapUiMdcChartOverlay");
1076
+ var $this = this.getControlDelegate().getInnerChart(this).$(), $overlay = $this.find(".sapUiMdcChartOverlay");
1005
1077
  if (bShow && $overlay.length === 0) {
1006
1078
  $overlay = jQuery("<div>").addClass("sapUiOverlay sapUiMdcChartOverlay").css("z-index", "1");
1007
1079
  $this.append($overlay);
@@ -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.92.0
23
+ * @version 1.95.0
24
24
  * @alias sap.ui.mdc.Control
25
25
  *
26
26
  * @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
@@ -4,7 +4,7 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin"
7
+ "sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin"
8
8
  ], function(CoreElement, DelegateMixin, AdaptationMixin) {
9
9
  "use strict";
10
10
 
@@ -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.92.0
23
+ * @version 1.95.0
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.92.0
49
+ * @version 1.95.0
50
50
  *
51
51
  * @constructor
52
52
  * @alias sap.ui.mdc.Field
53
53
  * @author SAP SE
54
- * @version 1.92.0
54
+ * @version 1.95.0
55
55
  * @since 1.54.0
56
56
  * @experimental As of version 1.54
57
57
  *
@@ -211,6 +211,18 @@ sap.ui.define([
211
211
 
212
212
  };
213
213
 
214
+ Field.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
215
+
216
+ if (sPropertyName === "value" && this._bParseError && deepEqual(this.getValue(), this.validateProperty(sPropertyName, oValue))) {
217
+ // in parse error and same value - no update on property - so remove error here
218
+ this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates (additionalValue will follow)
219
+ this._bParseError = false;
220
+ }
221
+
222
+ return FieldBase.prototype.setProperty.apply(this, arguments);
223
+
224
+ };
225
+
214
226
  /**
215
227
  * This property must not be set for the <code>Field</code>
216
228
  *
@@ -408,6 +420,7 @@ sap.ui.define([
408
420
  if (this._bTypeInitialized && this._oContentFactory.getUnitOriginalType()) {
409
421
  // internal type already created, initialize it too
410
422
  this.getControlDelegate().initializeInternalUnitType(this.getPayload(), this._oContentFactory.getDataType(), this._oTypeInitialization);
423
+ this.getControlDelegate().initializeInternalUnitType(this.getPayload(), this._oContentFactory.getUnitType(), this._oTypeInitialization);
411
424
  }
412
425
  }
413
426
 
@@ -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.92.0
24
+ * @version 1.95.0
25
25
  * @constructor
26
26
  * @experimental As of version 1.61
27
27
  * @private
@@ -232,6 +232,16 @@ sap.ui.define([
232
232
  return oState;
233
233
  };
234
234
 
235
+ /**
236
+ * Sets the focus to the first filter in error state.
237
+ * @private
238
+ * @ui5-restricted sap.fe
239
+ * @returns {sap.ui.mdc.FilterField} Returns the first filter field in error state
240
+ */
241
+ FilterBarBase.prototype.setFocusOnFirstErroneousField = function() {
242
+ return this._setFocusOnFirstErroneousField();
243
+ };
244
+
235
245
  return FilterBar;
236
246
 
237
247
  });
@@ -6,11 +6,13 @@
6
6
  sap.ui.define([
7
7
  'sap/ui/mdc/field/FieldBase',
8
8
  'sap/ui/mdc/field/FieldBaseRenderer',
9
- 'sap/base/util/merge'
9
+ 'sap/base/util/merge',
10
+ 'sap/base/util/deepEqual'
10
11
  ], function(
11
12
  FieldBase,
12
13
  FieldBaseRenderer,
13
- merge
14
+ merge,
15
+ deepEqual
14
16
  ) {
15
17
  "use strict";
16
18
 
@@ -29,12 +31,12 @@ sap.ui.define([
29
31
  * @extends sap.ui.mdc.field.FieldBase
30
32
  *
31
33
  * @author SAP SE
32
- * @version 1.92.0
34
+ * @version 1.95.0
33
35
  *
34
36
  * @constructor
35
37
  * @alias sap.ui.mdc.FilterField
36
38
  * @author SAP SE
37
- * @version 1.92.0
39
+ * @version 1.95.0
38
40
  * @since 1.48.0
39
41
  *
40
42
  * @experimental As of version 1.48
@@ -127,6 +129,28 @@ sap.ui.define([
127
129
 
128
130
  };
129
131
 
132
+ FilterField.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
133
+
134
+ if (sPropertyName === "conditions" && this._bParseError && deepEqual(this.getConditions(), this.validateProperty(sPropertyName, oValue))) {
135
+ // in parse error and same Conditions - no update on property - so remove error here
136
+ // As ConditionModel triggers checkUpdate in forced mode on addCondition, setConditions... also unchanged conditions will be updated
137
+ // So e.g. if a variant is applied an error will be removed.
138
+ if (this._oContentFactory.getBoundProperty()) { // single value case
139
+ this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates (additionalValue will follow)
140
+ } else { // Multi value case - don't update tokens, initialize value
141
+ var oContent = this._getContent()[0];
142
+ if (oContent && oContent.setValue) {
143
+ oContent.setValue(); // TODO: custom controls with different property?
144
+ }
145
+ this._removeUIMessage();
146
+ }
147
+ this._bParseError = false;
148
+ }
149
+
150
+ return FieldBase.prototype.setProperty.apply(this, arguments);
151
+
152
+ };
153
+
130
154
  FilterField.prototype._fireChange = function(aConditions, bValid, vWrongValue, oPromise) {
131
155
 
132
156
  var vValue;
@@ -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.92.0
48
+ * @version 1.95.0
49
49
  *
50
50
  * @constructor
51
51
  * @alias sap.ui.mdc.Link
@@ -191,7 +191,7 @@ sap.ui.define([
191
191
  /**
192
192
  * Checks if a given {@link sap.ui.mdc.LinkDelegate.LinkType} contains a directLink value.
193
193
  * @param {sap.ui.mdc.LinkDelegate.LinkType} oLinkType the <code>LinkType</code> which should be checked
194
- * @returns {Boolean} bHasDirectLink
194
+ * @returns {boolean} bHasDirectLink
195
195
  * @private
196
196
  */
197
197
  Link.prototype._linkTypeHasDirectLink = function(oLinkType) {