@sapui5/sap.suite.ui.generic.template 1.126.0 → 1.127.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 (196) 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/control/SmartKpiTag.js +1 -1
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +2 -2
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +1 -1
  6. package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +17 -15
  7. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +0 -1
  8. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +8 -13
  9. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DynamicDateRangeController.js +4 -5
  10. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -1
  11. package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +12 -1
  12. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +2 -2
  13. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  14. package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +11 -11
  15. package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +6 -6
  16. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  17. package/src/sap/suite/ui/generic/template/ListReport/Component.js +9 -1
  18. package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +65 -40
  19. package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +12 -1
  20. package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +3 -3
  21. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +16 -0
  22. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +12 -0
  23. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +12 -0
  24. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +12 -0
  25. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +12 -0
  26. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +12 -0
  27. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +13 -1
  28. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +12 -0
  29. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +12 -0
  30. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +12 -0
  31. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +12 -0
  32. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +12 -0
  33. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +12 -0
  34. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +12 -0
  35. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +12 -0
  36. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +12 -0
  37. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +12 -0
  38. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +12 -0
  39. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +12 -0
  40. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +12 -0
  41. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +12 -0
  42. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +12 -0
  43. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +12 -0
  44. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +12 -0
  45. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +12 -0
  46. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +12 -0
  47. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +12 -0
  48. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +12 -0
  49. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +12 -0
  50. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +12 -0
  51. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +12 -0
  52. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +12 -0
  53. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +12 -0
  54. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +12 -0
  55. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +12 -0
  56. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +12 -0
  57. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +12 -0
  58. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +12 -0
  59. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +12 -0
  60. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +12 -0
  61. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +12 -0
  62. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +12 -0
  63. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +12 -0
  64. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +12 -0
  65. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +13 -1
  66. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +12 -0
  67. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +12 -0
  68. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +13 -1
  69. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +12 -0
  70. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +12 -0
  71. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  72. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +18 -3
  73. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +6 -1
  74. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -3
  75. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +26 -19
  76. package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageStripHelper.js +3 -4
  77. package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +12 -15
  78. package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +5 -6
  79. package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +12 -1
  80. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +4 -1
  81. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  82. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
  83. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
  84. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +1 -1
  85. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +2 -5
  86. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  87. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  88. package/src/sap/suite/ui/generic/template/designtime/utils/DesigntimeHandler.js +4 -2
  89. package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +27 -10
  90. package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +0 -2
  91. package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +0 -1
  92. package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +24 -0
  93. package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +2 -2
  94. package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
  95. package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
  96. package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +1 -1
  97. package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +1 -1
  98. package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +0 -1
  99. package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +3 -3
  100. package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
  101. package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
  102. package/src/sap/suite/ui/generic/template/genericUtilities/AjaxHelper.js +57 -47
  103. package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +1 -1
  104. package/src/sap/suite/ui/generic/template/genericUtilities/FeLogger.js +0 -1
  105. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +12 -11
  106. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +26 -20
  107. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +3 -3
  108. package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +6 -6
  109. package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +59 -51
  110. package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +3 -3
  111. package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +3 -3
  112. package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +39 -33
  113. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +79 -53
  114. package/src/sap/suite/ui/generic/template/lib/Application.js +1 -4
  115. package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +21 -21
  116. package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +34 -19
  117. package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +63 -11
  118. package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +1 -1
  119. package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +11 -12
  120. package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +2 -2
  121. package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +6 -6
  122. package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +5 -7
  123. package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +1 -0
  124. package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +323 -0
  125. package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +77 -0
  126. package/src/sap/suite/ui/generic/template/lib/ai/JouleContextProvider.js +56 -0
  127. package/src/sap/suite/ui/generic/template/lib/filterHelper.js +38 -1
  128. package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +16 -3
  129. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +8 -0
  130. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +8 -0
  131. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +8 -0
  132. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +8 -0
  133. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +8 -0
  134. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +8 -0
  135. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +13 -5
  136. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +10 -2
  137. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +8 -0
  138. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +8 -0
  139. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +8 -0
  140. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +8 -0
  141. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +8 -0
  142. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +8 -0
  143. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +8 -0
  144. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +8 -0
  145. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +8 -0
  146. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +8 -0
  147. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +8 -0
  148. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +8 -0
  149. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +8 -0
  150. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +8 -0
  151. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +8 -0
  152. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +8 -0
  153. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +8 -0
  154. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +8 -0
  155. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +8 -0
  156. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +8 -0
  157. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +8 -0
  158. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +8 -0
  159. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +8 -0
  160. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +8 -0
  161. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +8 -0
  162. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +8 -0
  163. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +8 -0
  164. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +8 -0
  165. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +8 -0
  166. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +8 -0
  167. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +8 -0
  168. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +8 -0
  169. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +13 -5
  170. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +8 -0
  171. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +8 -0
  172. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +8 -0
  173. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +8 -0
  174. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +9 -1
  175. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +8 -0
  176. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +8 -0
  177. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +8 -0
  178. package/src/sap/suite/ui/generic/template/lib/info/SmartTableInfo.js +26 -2
  179. package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +10 -29
  180. package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +3 -3
  181. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
  182. package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +2 -1
  183. package/src/sap/suite/ui/generic/template/library.js +1 -1
  184. package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +1 -1
  185. package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
  186. package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +1 -1
  187. package/src/sap/suite/ui/generic/template/themes/base/base.less +4 -0
  188. package/src/sap/suite/ui/generic/template/themes/sap_hcb/ALPConstants.less +47 -0
  189. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base.less +7 -0
  190. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_AnalyticalListPage.less +475 -0
  191. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ListReport.less +33 -0
  192. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +391 -0
  193. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickCreate.less +96 -0
  194. package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickView.less +108 -0
  195. package/src/sap/suite/ui/generic/template/themes/sap_hcb/library.source.less +24 -7
  196. package/ui5.yaml +1 -1
@@ -134,7 +134,7 @@
134
134
  <sfi:SmartField
135
135
  value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
136
136
  visible="{path: 'dataField>', formatter: 'AH.getVisibiltyBasedOnImportanceAndHidden'}"
137
- editable="{ui>/editable}" press="._templateEventHandlers.onDataFieldWithNavigationPath">
137
+ editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
138
138
  <sfi:customData>
139
139
  <core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
140
140
  <core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
@@ -184,7 +184,7 @@
184
184
  textLabel="{path: 'dataField>', formatter: 'AH.getDataFieldLabel'}"
185
185
  fetchValueListReadOnly="{parts:[{path: 'parameter>/entityType'},{path: 'dataField>'}], formatter: 'AH.getValueListReadOnly'}"
186
186
  modeToggled="._templateEventHandlers.onSmartFieldModeToggled"
187
- press="{parts:[{path: 'parameter>/entityType'},{path: 'dataField>'}], formatter: 'AH.checkIsEmailAddress'}"
187
+ linkPress="{parts:[{path: 'parameter>/entityType'},{path: 'dataField>'}], formatter: 'AH.checkIsEmailAddress'}"
188
188
  changeModelValue="._templateEventHandlers.onSmartFieldModelValueChanged">
189
189
  <sfi:customData>
190
190
  <core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
@@ -198,7 +198,7 @@
198
198
  <sfi:controlProposal>
199
199
  <sfi:ControlProposal>
200
200
  <sfi:objectStatus>
201
- <sfi:ObjectStatus criticality="{path: 'dataField>Criticality', formatter: 'AHModel.simplePath'}"
201
+ <sfi:ObjectStatus criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
202
202
  criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"/>
203
203
  </sfi:objectStatus>
204
204
  </sfi:ControlProposal>
@@ -18,7 +18,7 @@
18
18
  <smartField:controlProposal>
19
19
  <smartField:ControlProposal>
20
20
  <smartField:objectStatus>
21
- <smartField:ObjectStatus criticality="{path: 'dataField>Criticality', formatter: 'AHModel.simplePath'}"
21
+ <smartField:ObjectStatus criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
22
22
  criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"
23
23
  ariaLabelledBy="{columnId>id}"/>
24
24
  </smartField:objectStatus>
@@ -121,7 +121,7 @@
121
121
  <!-- ObjectPage Self-Linking -->
122
122
  <smartField:SmartField
123
123
  value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
124
- editable="{ui>/editable}" press="._templateEventHandlers.onDataFieldWithNavigationPath"
124
+ editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath"
125
125
  ariaLabelledBy="{columnId>id}">
126
126
  <smartField:customData>
127
127
  <core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
@@ -116,7 +116,7 @@
116
116
  <table:template>
117
117
  <smartField:SmartField
118
118
  value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
119
- editable="{ui>/editable}" press="._templateEventHandlers.onDataFieldWithNavigationPath">
119
+ editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
120
120
  <smartField:customData>
121
121
  <core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
122
122
  </smartField:customData>
@@ -18,19 +18,23 @@ sap.ui.define([
18
18
 
19
19
  /**
20
20
  * A convenient method to make XMLHTTPRequest with different types of http methods, with a few settings.
21
- * @param setting an object expects following
21
+ * @param {object} mSettings an object expects following
22
22
  * {
23
- * url @type (boolean): Resource url
24
- * async @type (boolean): whether request is async or not; default value is true
25
- * type @type (string): method type; GET, PUT, POST, DELETE, PATCH
26
- * dtatType @type (string):(string): text, json, xml
27
- * data @type (object or string) : to be passed to server, only valid when request is not GET
28
- * }
29
- * @returns response object if async is false, promise if async is true (default).
23
+ * @param {string} mSettings.url
24
+ * Resource url
25
+ * @param {boolean} [mSettings.async=true]
26
+ * whether request is async or not; default value is true
27
+ * @param {string} mSettings.type
28
+ * HTTP method type; GET, PUT, POST, DELETE, PATCH
29
+ * @param {string} mSettings.dataType
30
+ * text, json, xml
31
+ * @param {object|string} mSettings.data
32
+ * data to be passed to server, only valid when request is not GET
33
+ * @returns {object|Promise<object>} response object if async is false, promise if async is true (default).
30
34
  * promise is resolved or rejected with a response object with following fields:-
31
35
  * {
32
36
  * request @type (XMLHttpRequest): xhr request
33
- * sucess @type (boolean): flag which tells request is successful or not
37
+ * success @type (boolean): flag which tells request is successful or not
34
38
  * statusCode @type (Number): statusCode returned by server
35
39
  * data @type (undefined or document or json or string): data returned by server if request is successfull
36
40
  * textStatus @type (string): text status of request like success, error, timeout, aborted
@@ -114,8 +118,8 @@ sap.ui.define([
114
118
  };
115
119
  /**
116
120
  * Returns getJson object asynchronously from server using xhr
117
- * @param url: Resource location
118
- * @returns promise which is resolved with json Object or rejected with error
121
+ * @param {string} url: Resource location
122
+ * @returns {Promise} promise which is resolved with json Object or rejected with error
119
123
  */
120
124
  ajaxHelper.getJSON = function (url) {
121
125
  return new Promise(function (resolve, reject){
@@ -128,17 +132,19 @@ sap.ui.define([
128
132
  };
129
133
  /**
130
134
  * Makes synchronous XHR call
131
- * @param setting an object, expects following
135
+ * @param {object} mSettinga an object, expects following
136
+ * @param {string} mSettings.url
137
+ * url to be hit
138
+ * @param {string} mSettings.type
139
+ * HTTP method type; GET, PUT, POST, DELETE, PATCH
140
+ * @param {string} mSettings.dataType
141
+ * text, json, xml
142
+ * @param {object|string} mSettings.data
143
+ * data to be passed to server, only valid when request is not GET
144
+ * @returns {object} response object with following fields
132
145
  * {
133
- * url @type (boolean): url to be hit
134
- * type @type (string): method type; GET, PUT, POST, DELETE, PATCH
135
- * dtatType @type (string):(string): text, json, xml
136
- * data @type (object or string) : to be passed to server, only valid when request is not GET
137
- * }
138
- * @returns response object with following fields
139
- = * {
140
146
  * request @type (XMLHttpRequest): xhr request
141
- * sucess @type (boolean): flag which tells request is successful or not
147
+ * success @type (boolean): flag which tells request is successful or not
142
148
  * statusCode @type (Number): statusCode returned by server
143
149
  * data @type (undefined or document or json or string): data returned by server if request is successfull
144
150
  * textStatus @type (string): text status of request like success, error, timeout, aborted
@@ -155,11 +161,11 @@ sap.ui.define([
155
161
 
156
162
  /**
157
163
  * Returns the JSON object synchronously based on the passed resource URI
158
- * @param url: Resource location
159
- * @returns response object which with following properties
164
+ * @param {string} url: Resource location
165
+ * @returns {object} response object which with following properties
160
166
  = * {
161
167
  * request @type (XMLHttpRequest): xhr request
162
- * sucess @type (boolean): flag which tells request is successful or not
168
+ * success @type (boolean): flag which tells request is successful or not
163
169
  * statusCode @type (Number): statusCode returned by server
164
170
  * data @type (undefined or document or json or string): data returned by server if request is successfull
165
171
  * textStatus @type (string): text status of request like success, error, timeout, aborted
@@ -171,10 +177,10 @@ sap.ui.define([
171
177
  };
172
178
 
173
179
  /**
174
- * Handel the scenario when we get response from server
175
- * @param {XMLHTTPReques load event} event
176
- * @param {mSettings} settings passed while calling ajaxHelper.ajax function
177
- * @returns prepare and returns whole response object which is
180
+ * Handle the scenario when we get response from server
181
+ * @param {ProgressEvent} XMLHttpRequest load event object
182
+ * @param {object} mSettings settings passed while calling ajaxHelper.ajax function
183
+ * @returns {object} prepare and returns whole response object which is
178
184
  * in turn returned by calling function.
179
185
  * this function sets all the fields in response object which is
180
186
  * returned by AjaxHelper.ajax function.
@@ -185,7 +191,7 @@ sap.ui.define([
185
191
  * At the end we prepare response object with following fields:
186
192
  * {
187
193
  * request @type (XMLHttpRequest): xhr request
188
- * sucess @type (boolean): flag which tells request is successful or not
194
+ * success @type (boolean): flag which tells request is successful or not
189
195
  * statusCode @type (Number): statusCode returned by server
190
196
  * data @type (undefined or document or json or string): data returned by server if request is successfull
191
197
  * textStatus @type (string): text status of request like success, error, timeout, aborted
@@ -253,9 +259,9 @@ sap.ui.define([
253
259
  }
254
260
 
255
261
  /**
256
- * Handel Error event and perpare a Error response
257
- * @param {XMLHTTPReques error event} event
258
- * @returns response object with following field set
262
+ * Handle Error event and perpare a Error response
263
+ * @param {ProgressEvent} event XMLHTTPRequest error event
264
+ * @returns {object} response object with following field set
259
265
  * {
260
266
  * statusCode
261
267
  * XHRRequest
@@ -273,10 +279,10 @@ sap.ui.define([
273
279
  return response;
274
280
  }
275
281
  /**
276
- * Handel abort event and perpare a abort response
277
- * @param {XMLHTTPReques error event} event
278
- * @returns response object with following field set
279
- * * {
282
+ * Handle abort event and prepare an abort response
283
+ * @param {ProgressEVent} event XMLHTTPRequest abort event
284
+ * @returns {object} response object with following field set
285
+ * {
280
286
  * statusCode
281
287
  * XHRRequest
282
288
  * textStatus
@@ -291,16 +297,18 @@ sap.ui.define([
291
297
  response.textStatus = "aborted";
292
298
  return response;
293
299
  }
300
+
294
301
  /**
295
302
  *
296
- * @param @type:(string) xmlString
297
- * @returns {
298
- * data: json object
299
- * success : boolean
300
- * textStatus: if any error then error status
301
- * error : if any error
302
- * }
303
- */
303
+ * @param {string} jsonString
304
+ * @returns {object} Object with the following properties
305
+ * {
306
+ * data: json object
307
+ * success : boolean
308
+ * textStatus: if any error then error status
309
+ * error : if any error
310
+ * }
311
+ */
304
312
  function parseJson(jsonString) {
305
313
  var response = {};
306
314
  try {
@@ -314,8 +322,9 @@ sap.ui.define([
314
322
  }
315
323
  /**
316
324
  *
317
- * @param @type:(string) xmlString
318
- * @returns {
325
+ * @param {string} xmlString
326
+ * @returns {object} Object with the following properties
327
+ * {
319
328
  * data: XML document
320
329
  * success : boolean
321
330
  * textStatus: if any error then error status
@@ -335,8 +344,9 @@ sap.ui.define([
335
344
  return response;
336
345
  }
337
346
  /**
338
- * encodes the data in url encode formate
339
- * @param {javascript object} data
347
+ * encodes the data in url encode format
348
+ * @param {object} data
349
+ * @returns {string}
340
350
  */
341
351
  function encodeData(data){
342
352
  var params;
@@ -96,7 +96,7 @@ sap.ui.define([
96
96
  /**
97
97
  * Factory function to generate control wrapper object based on control type
98
98
  *
99
- * @param {sap.ui.core.control} oControl - control a wrapper should be provided for
99
+ * @param {sap.ui.core.Control} oControl - control a wrapper should be provided for
100
100
  * @param {object} [mParams] - map with any additional parameters passed to constructor of wrapper
101
101
  * @return {object} wrapper object for the control
102
102
  */
@@ -2,7 +2,6 @@
2
2
  * Fiori Element logger which prefix Fiori Elements for the log along with component
3
3
  */
4
4
  /* eslint-disable no-alert */
5
- /* global Promise */
6
5
  sap.ui.define([
7
6
  "sap/ui/base/Object",
8
7
  "sap/base/Log",
@@ -2,16 +2,6 @@ sap.ui.define([
2
2
  ], function () {
3
3
  "use strict";
4
4
 
5
- /**
6
- * Constructor for SmartFilterBarWrapper
7
- * @param {sap.ui.comp.smartfilterbar.SmartFilterBar} vTarget - The SmartFilterBar control
8
- * or the Id of control for which this wrapper is created
9
- * @param {object} oFactory - the controlStateWrapperFactory
10
- * @param {object} mParams
11
- * @param mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
12
- * (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
13
- * @returns
14
- */
15
5
 
16
6
 
17
7
  // deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button (does not contain a state from SFB point of view - however, we remember whether it was pressed once
@@ -20,7 +10,18 @@ sap.ui.define([
20
10
  var dataPropertyNameCustom = "sap.suite.ui.generic.template.customData",
21
11
  dataPropertyNameExtension = "sap.suite.ui.generic.template.extensionData",
22
12
  dataPropertyNameGeneric = "sap.suite.ui.generic.template.genericData";
23
-
13
+
14
+ /**
15
+ * Constructor for SmartFilterBarWrapper
16
+ * @param {sap.ui.comp.smartfilterbar.SmartFilterBar} vTarget - The SmartFilterBar control
17
+ * or the Id of control for which this wrapper is created
18
+ * @param {object} oFactory - the controlStateWrapperFactory
19
+ * @param {object} mParams
20
+ * @param {Object} mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
21
+ * (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
22
+ * @returns {object}
23
+ * @alias sap.suite.ui.generic.template.genericUtilities.controlStateWrapperFactory.SmartFilterBarWrapper
24
+ */
24
25
  function SmartFilterBarWrapper(vTarget, oFactory, mParams) {
25
26
  var bIsApplying = false;
26
27
  var aBasicFilters = [];
@@ -5,13 +5,13 @@ sap.ui.define([
5
5
  /**
6
6
  * Constructor for SmartTableChartCommon
7
7
  * ...
8
- * @param {object} mParams
8
+ * @param {object} mParams
9
9
  * @param mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
10
- * (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
11
- * @returns
10
+ * (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
11
+ * @returns {object}
12
12
  */
13
13
 
14
- // deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button
14
+ // deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button
15
15
  // (does not contain a state from SFB point of view - however, we remember whether it was pressed once
16
16
  // to restore data - this information is not considered being part of SFB)
17
17
  function SmartTableChartCommon(vTarget, oController, oFactory, sInitializationEvent) {
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  function fnSetState(oState) {
45
45
  if (oState) {
46
46
  if (!oState.oUiState) {
47
- // Legacy handling for state without additional level oUiState (created with 1.99.0 - 1.99.3). Could be relevant on LR and OP, and independent of VM
47
+ // Legacy handling for state without additional level oUiState (created with 1.99.0 - 1.99.3). Could be relevant on LR and OP, and independent of VM
48
48
  oState = {
49
49
  oUiState: oState
50
50
  };
@@ -90,32 +90,38 @@ sap.ui.define([
90
90
  function fnGetState() {
91
91
  if (bSmartControlInitialized) {
92
92
  if (oVariantManagementStateWrapper) {
93
- // oVariantManagementStateWrapper would be undefined only in cases SmartControl is not yet initialized
94
- // or VariantManagement is not enabled.
93
+ // oVariantManagementStateWrapper would be undefined only in cases SmartControl is not yet initialized
94
+ // or VariantManagement is not enabled.
95
95
  return oVariantManagementStateWrapper.getState();
96
96
  }
97
-
97
+
98
98
  if (oSmartControlStateWrapper && !bVariantManagementActive) {
99
- // VariantManagement is not turned on & SmartControlStateWrapper instance
99
+ // VariantManagement is not turned on & SmartControlStateWrapper instance
100
100
  return oSmartControlStateWrapper.getState();
101
101
  }
102
102
  }
103
-
104
- // Control is not available and StateWrapper is not initialized
103
+
104
+ // Control is not available and StateWrapper is not initialized
105
105
  return oPreliminaryState;
106
106
  }
107
107
 
108
108
  function fnSetState(oState) {
109
109
  oPreliminaryState = oState;
110
110
  oControlAssignedPromise.then(function () {
111
- // map legacy states - before separating VM state from state of managed control, inner state information
112
- // (presentation variant and selection variant) were put as oUiState on the same level as VM state
111
+ // map legacy states - before separating VM state from state of managed control, inner state information
112
+ // (presentation variant and selection variant) were put as oUiState on the same level as VM state
113
113
  // information (variant id and dirty indicator), now they are contained in map managedControlStates
114
- if (oState && oState.oUiState && !oState.managedControlStates){
115
- oState.managedControlStates = Object.create(null);
116
- oState.managedControlStates[oSmartControlStateWrapper.getLocalId()] = {oUiState: oState.oUiState};
117
- oState.modified = oState.bVariantModified;
118
- oState.variantId = oState.sVariantId;
114
+ if (oState){
115
+ if (oState.oUiState && !oState.managedControlStates) {
116
+ oState.managedControlStates = Object.create(null);
117
+ oState.managedControlStates[oSmartControlStateWrapper.getLocalId()] = {oUiState: oState.oUiState};
118
+ }
119
+ if (oState.bVariantModified !== undefined) {
120
+ oState.modified = oState.bVariantModified;
121
+ }
122
+ if (oState.sVariantId !== undefined) {
123
+ oState.variantId = oState.sVariantId;
124
+ }
119
125
  }
120
126
 
121
127
  if (bVariantManagementActive) {
@@ -124,7 +130,7 @@ sap.ui.define([
124
130
  return;
125
131
  }
126
132
 
127
- // SmartTable/Chart shall be used
133
+ // SmartTable/Chart shall be used
128
134
  oSmartControlStateWrapper.setState(oPreliminaryState);
129
135
  });
130
136
  }
@@ -155,7 +161,7 @@ sap.ui.define([
155
161
  // in each case) -thus, we better create and return a vm wrapper here, passing the inner wrapper (the same, we would create in the other cases).
156
162
  // Additionally, this simplifies the adaptation to the change of format (formerly, variant data and control data were mixed on same level)
157
163
 
158
- // to identify the situation, check properties smartVariant and useVariantManagement. (In LR/ALP, we could directly check component settings controlling these properties, but not
164
+ // to identify the situation, check properties smartVariant and useVariantManagement. (In LR/ALP, we could directly check component settings controlling these properties, but not
159
165
  // in OP, as they could be different per section. Checking control's properties would also incorporate UI changes, however, these properties are anyway not allowed to be changed.)
160
166
  // values: smartVariant useVariantManagement
161
167
  // a) null false on LR currently: truthy (id of VM) and true - but PageVM is not created, and thus being ignored => adapt how properties are set in xml
@@ -9,10 +9,10 @@ sap.ui.define([
9
9
  * @param {object} oController - the controller of the current component
10
10
  * @param {object} oFactory - the controlStateWrapperFactory
11
11
  * @param {object} mParams
12
- * @param mParams.managedControlWrappers - array of controlStateWrappers for controls handled by the SVM
12
+ * @param {array} mParams.managedControlWrappers - array of controlStateWrappers for controls handled by the SVM
13
13
  * (currently also including SFB wrapper - to be removed)
14
- * @param mParams.dynamicPageWrapper - dynamicPageWrapper instance handled by SVM
15
- * @returns
14
+ * @param {Object} mParams.dynamicPageWrapper - dynamicPageWrapper instance handled by SVM
15
+ * @returns {object}
16
16
  */
17
17
 
18
18
  function SmartVariantManagementWrapper(vTarget, oController, oFactory, mParams) {
@@ -192,10 +192,9 @@ sap.ui.define([
192
192
  */
193
193
  function getFilterInfoForPropertyFilters(oParams, sProperty, aFiltersForProperty, sLogicalOperator) {
194
194
  var oValue1, oValue2, sOperator, oProperty = metadataAnalyser.getPropertyMetadata(oParams.oMetaModel, oParams.sEntityTypeName, sProperty);
195
- // for navigation properties
196
- sProperty = sProperty.replaceAll("/", ".");
195
+ var sPropertyForFilterData = sProperty.replaceAll("/", ".");
197
196
  // If Custom filter is implemented date field for smart filter bar then we make static tile
198
- if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && !oParams.oFilterData[sProperty]) {
197
+ if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && !oParams.oFilterData[sPropertyForFilterData]) {
199
198
  oParams.bIsStatic = true;
200
199
  return {
201
200
  stringRep: "",
@@ -207,12 +206,12 @@ sap.ui.define([
207
206
  if (oFilter.bCaseSensitive === undefined) {
208
207
  bCaseSensitive = true;
209
208
  }
210
- if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sProperty].conditionTypeInfo && oParams.oFilterData[sProperty].conditionTypeInfo.data.operation !== "DATE") {
211
- if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sProperty].conditionTypeInfo.data.operation)) {
209
+ if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation !== "DATE") {
210
+ if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
212
211
  oParams.bIsStatic = true;
213
212
  return;
214
213
  }
215
- var oValue = getSematicDateFormat(oParams.oFilterData[sProperty], oProperty.type);
214
+ var oValue = getSematicDateFormat(oParams.oFilterData[sPropertyForFilterData], oProperty.type);
216
215
  oValue1 = oValue.oValue1;
217
216
  oValue2 = oValue.oValue2;
218
217
  sOperator = oValue.operator;
@@ -280,6 +279,7 @@ sap.ui.define([
280
279
  sFilterParams = oParams.bIsStatic ? "" : sFilterParams;
281
280
  return sFilterParams;
282
281
  }
282
+ testableHelper.testableStatic(getFilterInfoForPropertyFilters, "filterHelper_getFilterInfoForPropertyFilters");
283
283
  testableHelper.testableStatic(getFilterString, "filterHelper_getFilterString");
284
284
  return {
285
285
  getFilterParams: getFilterParams