@sapui5/sap.suite.ui.generic.template 1.120.27 → 1.120.29

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 (120) 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/controller/ControllerImplementation.js +9 -7
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n.properties +1 -1
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +1 -1
  6. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +1 -1
  7. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +1 -1
  8. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +1 -1
  9. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +1 -1
  10. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +1 -1
  11. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +5 -5
  12. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +1 -1
  13. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +1 -1
  14. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +1 -1
  15. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +1 -1
  16. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +1 -1
  17. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +1 -1
  18. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +1 -1
  19. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +1 -1
  20. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +1 -1
  21. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +1 -1
  22. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +1 -1
  23. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +1 -1
  24. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +1 -1
  25. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +1 -1
  26. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +1 -1
  27. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +1 -1
  28. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +1 -1
  29. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +1 -1
  30. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +1 -1
  31. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +1 -1
  32. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +1 -1
  33. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +1 -1
  34. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +1 -1
  35. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +3 -3
  36. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +1 -1
  37. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +1 -1
  38. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +1 -1
  39. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +1 -1
  40. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +1 -1
  41. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +1 -1
  42. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +1 -1
  43. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +1 -1
  44. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +1 -1
  45. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +1 -1
  46. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +1 -1
  47. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +1 -1
  48. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +1 -1
  49. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  50. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  51. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +1 -1
  52. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -1
  53. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +6 -6
  54. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +2 -2
  55. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  56. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +83 -80
  57. package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +51 -0
  58. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +1 -1
  59. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +6 -0
  60. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +6 -0
  61. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +6 -0
  62. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +6 -0
  63. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +6 -0
  64. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +6 -0
  65. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +7 -1
  66. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +8 -2
  67. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +6 -0
  68. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +6 -0
  69. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +6 -0
  70. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +1 -1
  71. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +6 -0
  72. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +6 -0
  73. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +6 -0
  74. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +6 -0
  75. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +6 -0
  76. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +6 -0
  77. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +6 -0
  78. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +6 -0
  79. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +6 -0
  80. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +6 -0
  81. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +6 -0
  82. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +6 -0
  83. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +6 -0
  84. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +6 -0
  85. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +6 -0
  86. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +6 -0
  87. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +6 -0
  88. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +6 -0
  89. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +6 -0
  90. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +6 -0
  91. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +6 -0
  92. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +6 -0
  93. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +7 -1
  94. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +6 -0
  95. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +6 -0
  96. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +8 -2
  97. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +6 -0
  98. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +6 -0
  99. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +6 -0
  100. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +6 -0
  101. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +6 -0
  102. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +6 -0
  103. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +6 -0
  104. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +6 -0
  105. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +7 -1
  106. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +6 -0
  107. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +6 -0
  108. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  109. package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +1 -1
  110. package/src/sap/suite/ui/generic/template/QuickCreate/i18n/i18n_de.properties +1 -1
  111. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  112. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  113. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +29 -29
  114. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
  115. package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +1 -0
  116. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +1 -1
  117. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
  118. package/src/sap/suite/ui/generic/template/library.js +1 -1
  119. package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +66 -17
  120. package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +5 -4
@@ -13,13 +13,34 @@ sap.ui.define([
13
13
  * @private
14
14
  */
15
15
 
16
+ /**
17
+ * @typedef {Object} ChangeContent
18
+ *
19
+ * @property {object} parentPage - The parent page details
20
+ * @property {string} parentPage.component - The source page component where the new page will be added
21
+ * @property {string} parentPage.entitySet - The source page entityset name where the new page will be added
22
+ *
23
+ * @property {object} entityPropertyChange - The details of the configuration to be changed
24
+ * @property {string} entityPropertyChange.propertyPath - The property path where the change has to be added
25
+ * @property {string} entityPropertyChange.operation - The operation type
26
+ * @property {object} entityPropertyChange.propertyValue - The property details that has to be modified
27
+ *
28
+ */
29
+
30
+ /**
31
+ * @typedef {Object} Change
32
+ * @property {string} changeType - The app descriptor change type name
33
+ * @property {string} layer - The target layer, can have values "CUSTOMER", "CUSTOMER_BASE", "PARTNER" or "VENDOR"
34
+ * @property {() => ChangeContent} getContent - The content of the change
35
+ */
36
+ var GLOBAL_MANIFEST_CHANGE_COMPONENT = "sap.suite.ui.generic.template";
16
37
  var changePageConfiguration = {
17
38
  /**
18
39
  * @param {object} oManifest - Contains the existing Manifest of the application
19
- * @param {object} oChange - Contains the setting changes that the user wants to add to the oManifest
40
+ * @param {Change} oChange - Contains the setting changes that the user wants to add to the oManifest
20
41
  * The oChange for changePageConfiguration should have the following structure:
21
- *
22
- * {
42
+ * @example
43
+ * {
23
44
  * "changeType": "appdescr_ui_generic_app_changePageConfiguration", // the app descriptor change type name
24
45
  * "layer": Layer.CUSTOMER, // The target layer, can have values "CUSTOMER" , "CUSTOMER_BASE", "PARTNER" or "VENDOR"
25
46
  * "content": {
@@ -28,7 +49,7 @@ sap.ui.define([
28
49
  * "entitySet": "C_STTA_SalesOrder_WD_20" // source page entityset name where the new page will be added
29
50
  * },
30
51
  * "entityPropertyChange": { // details of the configuration to be changed
31
- * "propertyPath": "component/settings", // property pth where the change has to be added
52
+ * "propertyPath": "component/settings", // property path where the change has to be added
32
53
  * "operation": "UPSERT", // operation type
33
54
  * "propertyValue": { // contains the property details that has to be modified
34
55
  * "tableType": "ResponsiveTable"
@@ -36,6 +57,25 @@ sap.ui.define([
36
57
  * }
37
58
  * }
38
59
  * }
60
+ *
61
+ * @example
62
+ * {
63
+ * "changeType": "appdescr_ui_generic_app_changePageConfiguration", // the app descriptor change type name
64
+ * "layer": Layer.VENDOR, // The target layer, can have values "CUSTOMER" , "CUSTOMER_BASE", "PARTNER" or "VENDOR"
65
+ * "content": {
66
+ * "parentPage" : { // source page details
67
+ * "component": "sap.suite.ui.generic.template", // This is the global manifest change
68
+ * },
69
+ * "entityPropertyChange": { // details of the configuration to be changed
70
+ * "propertyPath": "settings", // property path where the change has to be added
71
+ * "operation": "UPSERT", // operation type
72
+ * "propertyValue": { // contains the property details that has to be modified
73
+ * "statePreservationMode": "persistence"
74
+ * }
75
+ * }
76
+ * }
77
+ * }
78
+ *
39
79
  * @returns {object} the updated oManifest containing the oChange settings
40
80
  * @protected
41
81
  */
@@ -45,21 +85,30 @@ sap.ui.define([
45
85
  MergerUtil.consistencyCheck(oChangeContent, "MODIFY");
46
86
  var sParentEntitySet = oChangeContent.parentPage.entitySet;
47
87
  var sParentComponent = oChangeContent.parentPage.component;
48
- var oPageStructure = MergerUtil.iterateAndFind(oManifest["sap.ui.generic.app"],sParentEntitySet, sParentComponent);
88
+ var oPageStructure;
89
+ if (sParentComponent === GLOBAL_MANIFEST_CHANGE_COMPONENT) {
90
+ oPageStructure = oManifest["sap.ui.generic.app"];
91
+ } else {
92
+ oPageStructure = MergerUtil.iterateAndFind(oManifest["sap.ui.generic.app"], sParentEntitySet, sParentComponent);
93
+ }
49
94
  var oPropertyChange = oChangeContent.entityPropertyChange;
50
-
51
- var aPropertyKeys = Object.keys(oPropertyChange.propertyValue);
52
- aPropertyKeys.forEach(function(sCurrentKey) {
95
+ if (typeof oPropertyChange.propertyValue !== "object" || oPropertyChange.propertyValue === null) {
53
96
  var aPropertyPath = oPropertyChange.propertyPath.split("/");
54
- aPropertyPath.push(sCurrentKey);
55
- var vVal = ObjectPath.get(aPropertyPath, oPageStructure);
56
- if (vVal && typeof vVal === "object") {
57
- var oPropertyPathContent = ObjectPath.create(aPropertyPath, oPageStructure);
58
- Object.assign(oPropertyPathContent, oPropertyChange.propertyValue[sCurrentKey]);
59
- } else {
60
- ObjectPath.set(aPropertyPath, oPropertyChange.propertyValue[sCurrentKey], oPageStructure);
61
- }
62
- });
97
+ ObjectPath.set(aPropertyPath, oPropertyChange.propertyValue, oPageStructure);
98
+ } else {
99
+ var aPropertyKeys = Object.keys(oPropertyChange.propertyValue);
100
+ aPropertyKeys.forEach(function (sCurrentKey) {
101
+ var aPropertyPath = oPropertyChange.propertyPath.split("/");
102
+ aPropertyPath.push(sCurrentKey);
103
+ var vVal = ObjectPath.get(aPropertyPath, oPageStructure);
104
+ if (vVal && typeof vVal === "object") {
105
+ var oPropertyPathContent = ObjectPath.create(aPropertyPath, oPageStructure);
106
+ Object.assign(oPropertyPathContent, oPropertyChange.propertyValue[sCurrentKey]);
107
+ } else {
108
+ ObjectPath.set(aPropertyPath, oPropertyChange.propertyValue[sCurrentKey], oPageStructure);
109
+ }
110
+ });
111
+ }
63
112
  return oManifest;
64
113
  }
65
114
  };
@@ -10,6 +10,7 @@ sap.ui.define([
10
10
  * This class holds the helper functions that are invoked from the manifestMergers
11
11
  * @private
12
12
  */
13
+ var GLOBAL_MANIFEST_CHANGE_COMPONENT = "sap.suite.ui.generic.template";
13
14
  var mergerUtil = {
14
15
 
15
16
  /**
@@ -75,12 +76,12 @@ sap.ui.define([
75
76
  if (!oChangeContent["parentPage"]) {
76
77
  throw new Error("Mandatory 'parentPage' parameter is not provided.");
77
78
  }
78
- if (!oChangeContent.parentPage.entitySet) {
79
- throw new Error("Mandatory 'parentPage.entitySet' parameter is not provided.");
80
- }
81
79
  if (!oChangeContent.parentPage.component) {
82
80
  throw new Error("Mandatory 'parentPage.component' parameter is not provided.");
83
81
  }
82
+ if (!oChangeContent.parentPage.entitySet && oChangeContent.parentPage.component !== GLOBAL_MANIFEST_CHANGE_COMPONENT) {
83
+ throw new Error("Mandatory 'parentPage.entitySet' parameter is not provided.");
84
+ }
84
85
  if (sMergerType === "ADD") {
85
86
 
86
87
  if (!oChangeContent.childPage.id) {
@@ -117,7 +118,7 @@ sap.ui.define([
117
118
  if (!oEntityPropertyChange.operation || oEntityPropertyChange.operation !== "UPSERT") {
118
119
  throw new Error("Invalid change format: The mandatory 'operation' is not defined or is not valid type. Please define the mandatory property 'operation' with type 'UPSERT");
119
120
  }
120
- if (!oEntityPropertyChange.propertyValue) {
121
+ if (!oEntityPropertyChange.propertyValue === undefined) {
121
122
  throw new Error("Invalid change format: The mandatory 'propertyValue' is not defined. Please define the mandatory property 'propertyValue'");
122
123
  }
123
124
  }