@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.134.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 (181) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/generic/template/.library +1 -1
  3. package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +0 -4
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +7 -2
  6. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
  7. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
  8. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +3 -4
  9. package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
  10. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n.properties +7 -7
  11. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  12. package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
  13. package/src/sap/suite/ui/generic/template/Canvas/extensionAPI/ExtensionAPI.js +11 -3
  14. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  15. package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
  16. package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +2 -0
  17. package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +13 -11
  18. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +3 -3
  19. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  20. package/src/sap/suite/ui/generic/template/ListReport/view/ListReport.view.xml +1 -1
  21. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
  22. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -1
  23. package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
  24. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +11 -8
  25. package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +82 -12
  26. package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +1 -0
  27. package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/DraftTransactionController.js +8 -10
  28. package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +36 -16
  29. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +59 -10
  30. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
  31. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
  32. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
  33. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
  34. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
  35. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
  36. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
  37. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
  38. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
  39. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
  40. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
  41. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
  42. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
  43. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
  44. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
  45. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
  46. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
  47. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
  48. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
  49. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
  50. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
  51. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
  52. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
  53. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
  54. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
  55. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
  56. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
  57. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
  58. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
  59. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
  60. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
  61. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
  62. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
  63. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
  64. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
  65. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
  66. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
  67. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
  68. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
  69. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
  70. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
  71. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
  72. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
  73. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
  74. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
  75. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
  76. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
  77. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
  78. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
  79. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  80. package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +233 -125
  81. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Facet.fragment.xml +32 -27
  82. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +8 -12
  83. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  84. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  85. package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +74 -17
  86. package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +44 -16
  87. package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +142 -38
  88. package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +71 -46
  89. package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +21 -19
  90. package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +22 -17
  91. package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +14 -8
  92. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +32 -44
  93. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +47 -2
  94. package/src/sap/suite/ui/generic/template/detailTemplates/DiscardEditHandler.js +13 -0
  95. package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
  96. package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -0
  97. package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +4 -4
  98. package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
  99. package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
  100. package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +4 -3
  101. package/src/sap/suite/ui/generic/template/fragments/SmartControlContextMenu.fragment.xml +1 -1
  102. package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
  103. package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
  104. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
  105. package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +3 -1
  106. package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +78 -25
  107. package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +4 -1
  108. package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +2 -3
  109. package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
  110. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -2
  111. package/src/sap/suite/ui/generic/template/lib/Application.js +2 -0
  112. package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
  113. package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +13 -1
  114. package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +41 -36
  115. package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +13 -2
  116. package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +1 -0
  117. package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +124 -2
  118. package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
  119. package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
  120. package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
  121. package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +39 -2
  122. package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +3 -4
  123. package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +20 -11
  124. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +4 -0
  125. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +6 -2
  126. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +6 -2
  127. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +5 -1
  128. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +5 -1
  129. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +4 -0
  130. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +5 -1
  131. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +9 -5
  132. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +6 -2
  133. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +6 -2
  134. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +6 -2
  135. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +11 -0
  136. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +6 -2
  137. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +9 -0
  138. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +8 -4
  139. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +4 -0
  140. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +6 -2
  141. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +5 -1
  142. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +6 -2
  143. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +6 -2
  144. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +4 -0
  145. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +5 -1
  146. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +6 -2
  147. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +5 -1
  148. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +6 -2
  149. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +4 -0
  150. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +5 -1
  151. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +5 -1
  152. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +5 -1
  153. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +6 -2
  154. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +7 -3
  155. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +6 -2
  156. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +5 -1
  157. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +7 -3
  158. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +6 -2
  159. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +4 -0
  160. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +6 -2
  161. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +6 -2
  162. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +6 -2
  163. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +6 -2
  164. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +5 -1
  165. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +4 -0
  166. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +6 -2
  167. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +5 -1
  168. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +6 -2
  169. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +5 -1
  170. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +5 -1
  171. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +6 -2
  172. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +7 -3
  173. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +5 -1
  174. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +6 -2
  175. package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
  176. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +32 -20
  177. package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +92 -1
  178. package/src/sap/suite/ui/generic/template/library.js +1 -1
  179. package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
  180. package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +3 -0
  181. package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
@@ -6,11 +6,14 @@
6
6
  */
7
7
  // Provides the design time metadata for the sap.suite.ui.generic.template.ListReport component
8
8
 
9
- sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"],
10
- function (designtimeHelper) {
9
+ sap.ui.define([
10
+ "sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
11
+ "sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
12
+ ],
13
+ function (designtimeHelper, designtimeUtils) {
11
14
  "use strict";
12
15
 
13
- // allow list for designtime adaptation / level-0.
16
+ // allow list for designtime adaptation / level-0.
14
17
  var mAllowLevel0 = {
15
18
  "sap.f.DynamicPage": {
16
19
  properties: ["fitContent"]
@@ -23,7 +26,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
23
26
  actions: ["settings"]
24
27
  },
25
28
  "sap.m.Table": {
26
- properties: ["popinLayout", "includeItemInSelection", "growingThreshold"]
29
+ properties: ["popinLayout", "includeItemInSelection", "growingThreshold", "rememberSelections"]
27
30
  },
28
31
  "sap.m.Column": {
29
32
  properties: ["width", "hAlign"]
@@ -62,8 +65,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
62
65
  properties: ["scrollThreshold"]
63
66
  }
64
67
  };
65
-
66
- // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
68
+
69
+ // grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
67
70
  var mGreyLevel0 = {
68
71
  "sap.f.DynamicPage": {
69
72
  properties: ["headerExpanded"]
@@ -72,7 +75,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
72
75
  properties: ["width"]
73
76
  },
74
77
  "sap.ui.comp.smartfilterbar.SmartFilterBar": {
75
- properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "useDateRangeType", "filterBarExpanded", "showGoOnFB"]
78
+ properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "filterBarExpanded", "showGoOnFB"]
76
79
  },
77
80
  "sap.m.Label": { // not created by us, but by SFB
78
81
  properties: ["width", "wrapping"]
@@ -120,8 +123,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
120
123
  properties: ["type"]
121
124
  }
122
125
  };
123
-
124
- // allow list for key user adaptation.
126
+
127
+ // allow list for key user adaptation.
125
128
  var mAllowKeyUser = {
126
129
  "sap.ui.comp.smartform.SmartForm": { // used in multiedit dialog
127
130
  aggregations: {
@@ -143,7 +146,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
143
146
  },
144
147
  "sap.m.MenuButton": { // used for create and create with filters and possibly created by combining of buttons
145
148
  actions: ["split", "rename", "remove"]
146
- },
149
+ },
147
150
  "sap.m.Button": {
148
151
  actions: ["remove", "reveal", "rename"]
149
152
  },
@@ -154,7 +157,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
154
157
  actions: ["compVariant"] // allows to adapt filters (same as adapt filters for end user)
155
158
  },
156
159
  "sap.ui.comp.smartfilterbar.SmartFilterBar": {
157
- actions: ["compVariant"] // allows to adapt filters (same as adapt filters for end user)
160
+ // compVariant - allows to adapt filters (same as adapt filters for end user)
161
+ // annotation - allows to change text arrangement
162
+ actions: ["compVariant", "annotation"]
158
163
  },
159
164
  "sap.ui.comp.smarttable.SmartTable": {
160
165
  actions: ["compVariant"] // allows table personalization (same as for end user)
@@ -166,7 +171,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
166
171
  actions: ["rename"]
167
172
  }
168
173
  };
169
-
174
+
170
175
  // allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
171
176
  // this mode is indicated by url parameter fiori-tools-rta-mode=true
172
177
  var mAllowVariantManagement = {
@@ -189,8 +194,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
189
194
  // there's no reliable way to differentiate designtime adaptation and key user adaptation. However
190
195
  // - property changes are possible only in designtime adaptation
191
196
  // - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
192
- const sRtaModeValue = designtimeHelper.getRtaModeValue();
193
- const mAllow = sRtaModeValue === designtimeHelper.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
194
- return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
195
- });
196
-
197
+ const sRtaModeValue = designtimeUtils.getRtaModeValue();
198
+ const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
199
+ return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
200
+ });
201
+
@@ -6,8 +6,11 @@
6
6
  */
7
7
  // Provides the design time metadata for the sap.suite.ui.generic.template.ObjectPage component
8
8
 
9
- sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"],
10
- function (designtimeHelper) {
9
+ sap.ui.define([
10
+ "sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
11
+ "sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
12
+ ],
13
+ function (designtimeHelper, designtimeUtils) {
11
14
  "use strict";
12
15
 
13
16
  // allow list for designtime adaptation / level-0.
@@ -40,7 +43,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
40
43
  actions: ["settings"]
41
44
  },
42
45
  "sap.m.Table": {
43
- properties: ["growingThreshold", "popinLayout", "includeItemInSelection"] // growingThreshold should not be possible in single section with single subsection
46
+ properties: ["growingThreshold", "popinLayout", "includeItemInSelection", "rememberSelections"] // growingThreshold should not be possible in single section with single subsection
44
47
  },
45
48
  "sap.m.Column": {
46
49
  properties: ["width", "hAlign"]
@@ -223,7 +226,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
223
226
  actions: ["rename", "remove", "reveal"]
224
227
  },
225
228
  "sap.ui.comp.smartform.SmartForm": { // not documented in allow list, but checked by RTA OPA test
226
- actions: ["localReset"],
229
+ actions: ["localReset", "annotation"],
227
230
  aggregations: {
228
231
  groups: {
229
232
  actions: ["move", "createContainer", "remove"] // actually, only move seems to be checked, but createContainer is needed to achieve the correct index in context menu
@@ -252,6 +255,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
252
255
  },
253
256
  "sap.m.Title": {
254
257
  actions: ["rename"]
258
+ },
259
+ "sap.ui.comp.smartfield.SmartField": {
260
+ actions: ["annotation"] // Allows to change text arrangement
255
261
  }
256
262
  };
257
263
 
@@ -274,8 +280,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
274
280
  // there's no reliable way to differentiate designtime adaptation and key user adaptation. However
275
281
  // - property changes are possible only in designtime adaptation
276
282
  // - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
277
- const sRtaModeValue = designtimeHelper.getRtaModeValue();
278
- const mAllow = sRtaModeValue === designtimeHelper.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
279
- return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
283
+ const sRtaModeValue = designtimeUtils.getRtaModeValue();
284
+ const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
285
+ return designtimeHelper.getViewDesignTime(mAllow);
280
286
 
281
- });
287
+ });
@@ -56,7 +56,6 @@ sap.ui.define([
56
56
  var mControlInfo = {};
57
57
  var aViews = [];
58
58
  // var oLogger = new FeLogger("designtime.utils.designTimeHelper").getLogger();
59
- var RTA_MODE_URL_PARAM_KEY = "fiori-tools-rta-mode";
60
59
  var oMutationObserver;
61
60
  /**
62
61
  * get effective designtime for all controls on current active view
@@ -127,15 +126,6 @@ sap.ui.define([
127
126
  function fnStopMutationObserver() {
128
127
  oMutationObserver && oMutationObserver.disconnect();
129
128
  }
130
- /**
131
- * Parses the URL parameters and returns the value of RTA mode URL parameter (fiori-tools-rta-mode)
132
- * @returns {string | null} A promise which returns a value of RTA mode
133
- */
134
- function getRtaModeValue() {
135
- const oUrlParams = new URLSearchParams(window.location.search);
136
- const sRtaModeValue = oUrlParams.get(RTA_MODE_URL_PARAM_KEY);
137
- return sRtaModeValue;
138
- }
139
129
 
140
130
  /*
141
131
  * Returns the branch of the control tree as an array ordered from bottom to top, if the control is relevant (i.e. direct part of a template view). I.e. the first entry of the array is the
@@ -334,7 +324,7 @@ sap.ui.define([
334
324
  return oResult;
335
325
  }
336
326
 
337
- function getViewDesignTime(mAllow, sFioriToolsRtaMode) {
327
+ function getViewDesignTime(mAllow) {
338
328
  return loadBaseDesigntime().then(function () {
339
329
 
340
330
  // provide propagation function for all controls contained allowing only what we want to allow
@@ -347,32 +337,35 @@ sap.ui.define([
347
337
  var oReducedDesigntime = oElement.getMetadata().getElementName && getReducedDesignTime(oElement, mAllow[oElement.getMetadata().getElementName()]);
348
338
 
349
339
  var oCustomDesigntime = {};
350
- if (sFioriToolsRtaMode === FioriToolsRtaMode.ForAdaptation) {
351
- switch (oElement.getMetadata().getElementName()) {
352
- // objectpagelayout
353
- case "sap.uxap.ObjectPageLayout":
354
- oCustomDesigntime = ObjectPageLayoutDesigntimeHelper.getDesigntime(
355
- oElement
356
- );
357
- break;
358
- case "sap.ui.comp.smartfilterbar.SmartFilterBar":
359
- oCustomDesigntime = SmartFilterBarDesigntimeHelper.getDesigntime(
360
- oElement
361
- );
362
- break;
363
- case "sap.ui.comp.smarttable.SmartTable":
364
- oCustomDesigntime = SmartTableDesigntimeHelper.getDesigntime(
365
- oElement
366
- );
367
- break;
368
- case "sap.f.DynamicPage":
369
- oCustomDesigntime = DynamicPageDesigntimeHelper.getDesigntime(
370
- oElement
371
- );
372
- break;
373
- default:
374
- break;
375
- }
340
+ switch (oElement.getMetadata().getElementName()) {
341
+ case "sap.uxap.ObjectPageLayout":
342
+ oCustomDesigntime = ObjectPageLayoutDesigntimeHelper.getDesigntime(
343
+ oElement
344
+ );
345
+ break;
346
+ case "sap.ui.comp.smartfilterbar.SmartFilterBar":
347
+ case "sap.suite.ui.generic.template.AnalyticalListPage.control.SmartFilterBarExt":
348
+ case "sap.suite.ui.generic.template.AnalyticalListPage.control.visualfilterbar.SmartVisualFilterBar":
349
+ oCustomDesigntime = SmartFilterBarDesigntimeHelper.getDesigntime(
350
+ oElement
351
+ );
352
+ break;
353
+ case "sap.ui.comp.smarttable.SmartTable":
354
+ case "sap.ui.table.Table":
355
+ case "sap.m.Table":
356
+ case "sap.ui.table.AnalyticalTable":
357
+ oCustomDesigntime = SmartTableDesigntimeHelper.getDesigntime(
358
+ oElement
359
+ );
360
+ break;
361
+ case "sap.f.DynamicPage":
362
+ oCustomDesigntime = DynamicPageDesigntimeHelper.getDesigntime(
363
+ oElement
364
+ );
365
+ break;
366
+ default:
367
+ break;
368
+
376
369
  }
377
370
  return merge(oReducedDesigntime, oCustomDesigntime);
378
371
  }
@@ -418,16 +411,11 @@ sap.ui.define([
418
411
  }
419
412
  });
420
413
  }
421
- const FioriToolsRtaMode = {
422
- True: "true",
423
- ForAdaptation: "forAdaptation"
424
- };
414
+
425
415
 
426
416
  return {
427
417
  getMergedAllowList: deepMergeWithArray,
428
418
  getViewDesignTime: getViewDesignTime,
429
- getRtaModeValue: getRtaModeValue,
430
- stopMutationObserver: fnStopMutationObserver,
431
- FioriToolsRtaMode
419
+ stopMutationObserver: fnStopMutationObserver
432
420
  };
433
421
  });
@@ -353,6 +353,7 @@ sap.ui.define([
353
353
  * @property {DesigntimeSetting[]} [writeObject] - An array of DesigntimeSetting objects.
354
354
  * @property {string} [writeObjectFor] - The value of the setting for which the Object should be constructed.
355
355
  * @property {boolean} [skipChange] - Indicates if the change should be skipped.
356
+ * @property {boolean} [keyUser] - Indicates if the setting is allowed for key user.
356
357
 
357
358
  * @typedef {string | boolean | string[] } PropertyValue
358
359
 
@@ -455,7 +456,16 @@ sap.ui.define([
455
456
  return oSupportedGlobalManifestSettings;
456
457
  }
457
458
 
458
- function getAllowedDesigntimeSettings(oControl, aDesigntimeSettings) {
459
+ /**
460
+ * Retrieves the allowed designtime settings for the given control based on the floorplan component name.
461
+ * If the control is not restricted to a specific component, all settings are returned.
462
+ * If the control is restricted to a specific component, only the settings for that component are returned.
463
+ * @param {sap.ui.core.Control} oControl - The control.
464
+ * @param {DesigntimeSetting[]} aDesigntimeSettings - The array of designtime settings.
465
+ * @returns {DesigntimeSetting[]} - The allowed designtime settings.
466
+ */
467
+
468
+ function filterDesigntimeSettingsByFloorPlan(oControl, aDesigntimeSettings) {
459
469
  const sComponentName = getOwnerComponentFor(oControl).getMetadata().getComponentName();
460
470
  return aDesigntimeSettings.filter(oSetting => !oSetting.restrictedTo || oSetting.restrictedTo.includes(sComponentName));
461
471
  }
@@ -466,6 +476,38 @@ sap.ui.define([
466
476
  getChanges = testableHelper.testableStatic(getChanges, "getChanges");
467
477
  getChangeStructure = testableHelper.testableStatic(getChangeStructure, "getChangeStructure");
468
478
 
479
+ /**
480
+ * Parses the URL parameters and returns the value of RTA mode URL parameter (fiori-tools-rta-mode)
481
+ * @returns {string | null} A promise which returns a value of RTA mode
482
+ */
483
+ function getRtaModeValue() {
484
+ var RTA_MODE_URL_PARAM_KEY = "fiori-tools-rta-mode";
485
+
486
+ const oUrlParams = new URLSearchParams(window.location.search);
487
+ const sRtaModeValue = oUrlParams.get(RTA_MODE_URL_PARAM_KEY);
488
+ return sRtaModeValue;
489
+ }
490
+
491
+ const FioriToolsRtaMode = {
492
+ True: "true",
493
+ ForAdaptation: "forAdaptation"
494
+ };
495
+
496
+ /**
497
+ * Returns the allowed designtime settings based on the adaptation mode.
498
+ * If the adaptation mode is not set, only key user settings are returned.
499
+ * If the adaptation mode is set, all settings are returned.
500
+ *
501
+ * @param {DesigntimeSetting[]} aDesigntimeSettings
502
+ * @returns {DesigntimeSetting[]}
503
+ */
504
+ function getAllowedDesigntimeSettingsBasedOnAdaptationMode(aDesigntimeSettings) {
505
+ if (!getRtaModeValue()) {
506
+ return aDesigntimeSettings.filter(oSetting => oSetting.keyUser);
507
+ }
508
+ return aDesigntimeSettings;
509
+ }
510
+
469
511
  return {
470
512
  openAdaptionDialog: fnOpenAdaptionDialog,
471
513
  getSettings,
@@ -476,6 +518,9 @@ sap.ui.define([
476
518
  SettingScope,
477
519
  ChangeType,
478
520
  getSupportedGlobalManifestSettings,
479
- getAllowedDesigntimeSettings
521
+ filterDesigntimeSettingsByFloorPlan,
522
+ getRtaModeValue,
523
+ FioriToolsRtaMode,
524
+ getAllowedDesigntimeSettingsBasedOnAdaptationMode
480
525
  };
481
526
  });
@@ -171,6 +171,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
171
171
  var fnSuccess = function(){ // what to do if cancellation was successfull
172
172
  fnCancellationResult = fnResolve; // now the end of the process is considered as a resolve
173
173
  fnAfterCancellation(); // perform the after cancel navigation
174
+ fnDisplayDiscardMessage();//display a discard draft message
174
175
  fnCleanUpAfterCancellation(); // clean up the state of this class
175
176
  if (fnSetFocus){
176
177
  oTemplateUtils.oServices.oApplication.setNextFocus(fnSetFocus);
@@ -188,6 +189,18 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
188
189
  });
189
190
  oBusyHelper.setBusy(oCancellationPromise);
190
191
  };
192
+ //This function is responsible for showing the "Draft Discarded" or "Changes Discarded" confirmation text
193
+ function fnDisplayDiscardMessage() {
194
+ fnNeedsConfirmation().then(function (bNeedsConfirmation) { //checks if changes are made in the draft
195
+ if (bNeedsConfirmation) { // Ensure this is a boolean check
196
+ if (oUiModel.getProperty("/createMode")) { //if it is a "Create Draft"
197
+ oTemplateUtils.oServices.oApplication.showMessageToast(oTemplateUtils.oCommonUtils.getText("ST_GENERIC_DRAFT_WITHOUT_ACTIVE_DOCUMENT_DELETED"));
198
+ } else {
199
+ oTemplateUtils.oServices.oApplication.showMessageToast(oTemplateUtils.oCommonUtils.getText("ST_GENERIC_DRAFT_WITH_ACTIVE_DOCUMENT_DELETED"));//if it is an "Edit Draft"
200
+ }
201
+ }
202
+ });
203
+ }
191
204
  fnNeedsConfirmation().then(function (bNeedsConfirmation) {
192
205
  if (oCancelButton && bNeedsConfirmation){
193
206
  fnCancellationConfirmed = fnExecuteCancellation;
@@ -2,26 +2,24 @@
2
2
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
3
3
  template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper'}">
4
4
 
5
- <template:with path="dataField>Action"
6
- helper="AHModel.gotoFunctionImport"
7
- var="action">
8
- <Button id="{parts: [{path: 'dataField>'}, {path: 'facet>'}], formatter: 'AH.getStableIdPartForDatafieldActionButton'}::Determining"
9
- type="{path:'dataField>', formatter: 'AH.buildExpressionForButtonCriticality'}"
10
- text="{= ${path: 'dataField>Label', formatter: 'AHModel.format'}}"
11
- visible="{parts: [{path: 'parameter>/treeNode'}, {path: 'action>sap:applicable-path'}, {path: 'dataField>'}], formatter: 'AH.actionControlDetermining'}"
5
+ <template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
6
+ <Button id="{parts: [{path: 'dataField>'}, {path: 'facet>'}], formatter: 'AH.getStableIdPartForDatafieldActionButton'}::Determining"
7
+ type="{path:'dataField>', formatter: 'AH.buildExpressionForButtonCriticality'}" text="{= ${path: 'dataField>Label', formatter: 'AHModel.format'}}"
8
+ visible="{parts: [{path: 'parameter>/treeNode'}, {path: 'action>sap:applicable-path'}, {path: 'dataField>'}], formatter: 'AH.actionControlDetermining'}"
12
9
  press="{parts: [{path: 'parameter>/settings'}, {path: 'dataField>'}, {path: 'parameter>/manifest'}, {value: 'true'}], formatter: 'AH.getAnnotatedActionPress'}">
13
- <customData>
14
- <core:CustomData key="Action" value="{path: 'dataField>Action', formatter: 'AHModel.format'}" />
15
- <core:CustomData key="Label" value="{path: 'dataField>Label', formatter: 'AHModel.format'}" />
16
- <template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation'}">
17
- <core:CustomData key="SemanticObject" value="{path: 'dataField>SemanticObject', formatter: 'AHModel.format'}" />
18
- <core:CustomData key="RequiresContext" value="{path: 'dataField>RequiresContext', formatter: 'AHModel.format'}" />
19
- </template:if>
20
- <template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
21
- <core:CustomData key="ActionFor" value="{action>sap:action-for}" />
22
- </template:with>
23
- </customData>
24
- </Button>
25
- </template:with>
10
+ <customData>
11
+ <core:CustomData key="Action" value="{path: 'dataField>Action', formatter: 'AHModel.format'}" />
12
+ <core:CustomData key="Label" value="{path: 'dataField>Label', formatter: 'AHModel.format'}" />
13
+ <core:CustomData key="ActionType" value="determining" />
14
+ <template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation'}">
15
+ <core:CustomData key="SemanticObject" value="{path: 'dataField>SemanticObject', formatter: 'AHModel.format'}" />
16
+ <core:CustomData key="RequiresContext" value="{path: 'dataField>RequiresContext', formatter: 'AHModel.format'}" />
17
+ </template:if>
18
+ <template:with path="dataField>Action" helper="AHModel.gotoFunctionImport" var="action">
19
+ <core:CustomData key="ActionFor" value="{action>sap:action-for}" />
20
+ </template:with>
21
+ </customData>
22
+ </Button>
23
+ </template:with>
26
24
 
27
25
  </core:FragmentDefinition>
@@ -4,6 +4,7 @@
4
4
  ariaLabelledBy="objectNoDataText unsavedPopoverText lockedPopoverText objectChangedText"
5
5
  contentWidth="15.625rem"
6
6
  verticalScrolling="false"
7
+ placement="Auto"
7
8
  class="sapSmartTemplatesListReportPopover sapUiContentPadding">
8
9
  <endButton>
9
10
  <Button icon="sap-icon://decline" tooltip="{i18n>CLOSE}" press="closeDraftAdminPopover" />
@@ -27,7 +27,7 @@
27
27
  <smartField:SmartField value="{path: 'dataField>Value', formatter: 'AHModel.simplePath'}" editable="false" contextEditable="false" fetchValueListReadOnly="false"
28
28
  ariaLabelledBy="{columnId>id}">
29
29
  <smartField:configuration>
30
- <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
30
+ <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
31
31
  </smartField:configuration>
32
32
  <template:if test="{= ${dataField>Criticality}}">
33
33
  <smartField:controlProposal>
@@ -55,7 +55,7 @@
55
55
  <core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
56
56
  </smartField:customData>
57
57
  <smartField:configuration>
58
- <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {value: ''}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
58
+ <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
59
59
  </smartField:configuration>
60
60
  </smartField:SmartField>
61
61
  </template:elseif>
@@ -84,7 +84,7 @@
84
84
  <RatingIndicator
85
85
  enabled="true" editable="false" maxValue="{path: 'dataFieldTarget>TargetValue', formatter: 'AHModel.format'}"
86
86
  binding="{= ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/') > -1 ? '{' + ${path: 'dataField>Target/AnnotationPath'}.slice(0, ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/')) + '}' : null}"
87
- value="{path: 'dataFieldTarget>Value', formatter: 'AHModel.format'}" width="16px" />
87
+ value="{path: 'dataFieldTarget>Value', formatter: 'AHModel.format'}" iconSize="16px" />
88
88
  </template:with>
89
89
  </template:elseif>
90
90
  <template:elseif test="{= ${dataFieldTarget>Visualization/EnumMember} === 'com.sap.vocabularies.UI.v1.VisualizationType/Progress'}">
@@ -99,7 +99,7 @@
99
99
  state="{path:'dataFieldTarget>', formatter: 'AH.buildExpressionForProgressIndicatorCriticality'}">
100
100
  <customData>
101
101
  <core:CustomData key="Target" value="{= ${path: 'dataFieldTarget>TargetValue', formatter: 'AHModel.format'} }" />
102
- <core:CustomData key="UoM" value="{= ${path: 'valueProperty>Org.OData.Measures.V1.Unit', formatter: 'AHModel.format'} }" />
102
+ <core:CustomData key="UoM" value="{= ${path: 'value>Org.OData.Measures.V1.Unit', formatter: 'AHModel.format'} }" />
103
103
  </customData>
104
104
  </ProgressIndicator>
105
105
  </template:with>
@@ -18,7 +18,7 @@
18
18
  </sfi:semanticObjectController>
19
19
  <sfi:configuration>
20
20
  <sfi:Configuration
21
- displayBehaviour="{parts: [{path: 'dataPoint>'}, {path: 'annotation>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
21
+ displayBehaviour="{parts: [{path: 'dataPoint>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
22
22
  </sfi:configuration>
23
23
  <template:if test="{= ${dataPoint>Criticality} }">
24
24
  <sfi:controlProposal>
@@ -77,7 +77,7 @@
77
77
  editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
78
78
  <sfi:configuration>
79
79
  <sfi:Configuration
80
- displayBehaviour="{parts: [{path: 'dataField>'}, {value: ''}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
80
+ displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
81
81
  </sfi:configuration>
82
82
  <sfi:customData>
83
83
  <core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
@@ -113,7 +113,7 @@
113
113
  </sfi:semanticObjectController>
114
114
  <sfi:configuration>
115
115
  <sfi:Configuration
116
- displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'annotation>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
116
+ displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
117
117
  </sfi:configuration>
118
118
  <template:if test="{= ${dataField>Criticality} }">
119
119
  <sfi:controlProposal>
@@ -2,16 +2,17 @@
2
2
  xmlns="sap.m"
3
3
  xmlns:core="sap.ui.core">
4
4
  <MessagePopover groupItems="true" items="{msg>/}" activeTitlePress="titlePressed" beforeOpen="beforeOpen" afterClose="afterClose" >
5
- <MessageItem description="{msg>description}" type="{msg>type}" title="{msg>message}"
5
+ <MessageItem type="{msg>type}" title="{msg>message}"
6
6
  subtitle="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>additionalText'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getSubtitle'}"
7
+ description="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'msg>description'}, {path: 'helper>/isPopoverOpen'}, {path: 'helper>/heartBeat'}], formatter: '.getDescription'}"
7
8
  longtextUrl="{msg>descriptionUrl}"
8
- markupDescription="{helper>/isAIErrorExplanationEnabled}"
9
+ markupDescription="{= ${helper>/isAIErrorExplanationEnabled} }"
9
10
  activeTitle="{parts:[{path: 'msg>id'}, {path: 'msg>controlIds'}, {path: 'helper>/isPopoverOpen'}], formatter: '.isPositionable'}"
10
11
  groupName="{= ${helper>/messageToGroupName}[${msg>id}] }">
11
12
  <Link
12
13
  text="{i18n>ST_AI_EE_BUTTON_LABEL}"
13
14
  icon="sap-icon://ai"
14
- visible="{helper>/isAIErrorExplanationEnabled}"
15
+ visible="{= ${helper>/isAIErrorExplanationEnabled} }"
15
16
  press="generateErrorExplanation">
16
17
  <customData>
17
18
  <core:CustomData key="message" value="{msg>message}" />
@@ -1,6 +1,6 @@
1
1
  <core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
2
2
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
3
- template:require="{StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
3
+ template:require="{StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper', AH: 'sap/suite/ui/generic/template/js/AnnotationHelper'}">
4
4
 
5
5
  <template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="contextMenuId">
6
6
  <template:if test="{= ${contextMenuId>}.buildStableId({type: 'SmartControl', subType: 'ContextMenu', sSmartTableId: ${smartControlId>id}})}" />
@@ -12,7 +12,7 @@
12
12
  <smartField:SmartField value="{path: 'dataField>Value', formatter: 'AHModel.simplePath'}" editable="{= ${parameter>/treeNode/level} > 0 ? '{ui>/editable}' : 'false'}" contextEditable="{= ${parameter>/treeNode/level} > 0}" fetchValueListReadOnly="{= ${parameter>/treeNode/level} > 0}"
13
13
  ariaLabelledBy="{columnId>id}">
14
14
  <smartField:configuration>
15
- <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
15
+ <smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
16
16
  </smartField:configuration>
17
17
  <template:if test="{= ${dataField>Criticality}}">
18
18
  <smartField:controlProposal>
@@ -128,7 +128,7 @@
128
128
  </smartField:customData>
129
129
  <smartField:configuration>
130
130
  <smartField:Configuration
131
- displayBehaviour="{parts: [{path: 'dataField>'}, {value: ''}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
131
+ displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
132
132
  </smartField:configuration>
133
133
  </smartField:SmartField>
134
134
  </template:elseif>
@@ -123,7 +123,7 @@
123
123
  </smartField:customData>
124
124
  <smartField:configuration>
125
125
  <smartField:Configuration
126
- displayBehaviour="{parts: [{path: 'dataField>'}, {value: ''}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
126
+ displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
127
127
  </smartField:configuration>
128
128
  </smartField:SmartField>
129
129
  </table:template>
@@ -105,8 +105,10 @@ sap.ui.define([
105
105
  oControl.attachAfterVariantInitialise(function() {
106
106
  //set currentVariantId only when sVariantId is not standard (as it might be overriding existing
107
107
  //different currentVariantId) or smartTable's (oControl) currentVariantId is not equal to sVariantId.
108
- if (sVariantId !== '*standard*' && oControl.getCurrentVariantId && oControl.getCurrentVariantId() !== sVariantId) {
109
- oControl.setCurrentVariantId(sVariantId);
108
+ if (sVariantId !== '*standard*') {
109
+ if (oControl.getCurrentVariantId && oControl.getCurrentVariantId() !== sVariantId) {
110
+ oControl.setCurrentVariantId(sVariantId);
111
+ }
110
112
  oSmartVariantManagement.setModified(false);
111
113
  }
112
114
  });
@@ -204,10 +204,12 @@ sap.ui.define([
204
204
  }
205
205
  var sRet = aFiltersForProperty.map(function (oFilter) {
206
206
  var bCaseSensitive = true;
207
+ // Define the date range operations that need date formatting
208
+ var dateRangeOperations = ["DATE", "DATERANGE", "DATETIMERANGE", "FROM", "TO"];
207
209
  if (oFilter.bCaseSensitive === undefined) {
208
210
  bCaseSensitive = true;
209
211
  }
210
- if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation !== "DATE") {
212
+ if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && !dateRangeOperations.includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
211
213
  if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
212
214
  oParams.bIsStatic = true;
213
215
  return;