@sapui5/sap.suite.ui.generic.template 1.129.0 → 1.130.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.
- package/package.json +4 -3
- package/src/sap/suite/ui/generic/template/.library +5 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +22 -11
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +5 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +7 -8
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultipleViewsSingleTableMode.fragment.xml +4 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +90 -42
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/MultipleViewsSingleTableMode.fragment.xml +3 -0
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +379 -0
- package/src/sap/suite/ui/generic/template/designtime/{AnalyticalListPage.designtime.js → floorplans/AnalyticalListPage.designtime.js} +3 -3
- package/src/sap/suite/ui/generic/template/designtime/{ListReport.designtime.js → floorplans/ListReport.designtime.js} +3 -3
- package/src/sap/suite/ui/generic/template/designtime/{ObjectPage.designtime.js → floorplans/ObjectPage.designtime.js} +4 -5
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +119 -96
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +395 -0
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +12 -17
- package/src/sap/suite/ui/generic/template/fragments/MessagePage.controller.js +16 -0
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +16 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/Link.js +9 -2
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +8 -4
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +10 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +0 -42
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +11 -7
- package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +249 -0
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +64 -3
- package/src/sap/suite/ui/generic/template/lib/StableIdDefinition.js +7 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +210 -74
- package/src/sap/suite/ui/generic/template/lib/ai/ErrorExplanationHelper.js +47 -0
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +10 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +31 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +1 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +5 -3
- package/src/sap/suite/ui/generic/template/library.js +3 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/MultipleViewsSingleTableMode.fragment.xml +6 -2
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +28 -23
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +6 -6
- package/src/sap/suite/ui/generic/template/themes/base/base.less +0 -4
- package/ui5.yaml +1 -0
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u0911\u092C\u094D\u091C\u0947\u0915\u094D\u0
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u0938\u093E\u092E\u0917\u094D\u0930\u0940 \u0938\u094D\u0935\u093F\u091A
|
|
318
|
+
|
|
@@ -200,7 +200,7 @@ ST_CARD_NAVIGATION_FAILURE_INFO=Direktno usmjeravanje na detalje objekta nije mo
|
|
|
200
200
|
|
|
201
201
|
ST_EASY_FILTER_PROMPT_INFO=Filtriranje na osnovi upita kreira potpuno nove kriterije filtera. Generirani sadr\u017Eaj mo\u017Eda nije uvijek to\u010Dan. Razmislite o verifikaciji.
|
|
202
202
|
|
|
203
|
-
ST_EASY_FILTER_INPUT_PLACEHOLDER=Unesite svoj
|
|
203
|
+
ST_EASY_FILTER_INPUT_PLACEHOLDER=Unesite svoj query prirodnim jezikom kako biste filtrirali listu.
|
|
204
204
|
|
|
205
205
|
ST_EASY_FILTER_GO_BUTTON_TEXT=Idi
|
|
206
206
|
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=Kreiraj objekt
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=Nastavi
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=Prekida\u010D sadr\u017Eaja
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u041D\u044B\u0441\u0430\u043D \u0436\u0430\u
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u041C\u0430\u0437\u043C\u04B1\u043D \u049B\u043E\u0441\u049B\u044B\u0448\u044B
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u0421\u043E\u0437\u0434\u0430\u0458 \u043E\u
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u041F\u0440\u0435\u043A\u0438\u043D\u0443\u0432\u0430\u0447 \u0437\u0430 \u0441\u043E\u0434\u0440\u0436\u0438\u043D\u0430
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u044C \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u041A\u0440\u0435\u0438\u0440\u0430\u0458 \u
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u041D\u0430\u0441\u0442\u0430\u0432\u0438
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u041F\u0440\u043E\u043C\u0435\u043D\u0430 \u0441\u0430\u0434\u0440\u0436\u0430\u0458\u0430
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E2D\u0E2D\u0
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u0E01\u0E32\u0E23\u0E2A\u0E25\u0E31\u0E1A\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32
|
|
318
|
+
|
|
@@ -314,3 +314,5 @@ DIALOG_TITLE_NEW_ACTION_FOR_CREATE=\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0
|
|
|
314
314
|
|
|
315
315
|
DIALOG_ACTION_BUTTON_NEW_ACTION_FOR_CREATE=\u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438
|
|
316
316
|
|
|
317
|
+
CONTENT_SWITCH=\u041F\u0435\u0440\u0435\u043C\u0438\u043A\u0430\u0447 \u0432\u043C\u0456\u0441\u0442\u0443
|
|
318
|
+
|
|
@@ -2042,18 +2042,20 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2042
2042
|
}
|
|
2043
2043
|
|
|
2044
2044
|
function fnTransferMessageParametersToGlobalModelAndDisplayMessage(mParameters) {
|
|
2045
|
-
var sText, sDescription, sMessageType;
|
|
2045
|
+
var sText, sDescription, sMessageType, aAdditionalContent;
|
|
2046
2046
|
|
|
2047
2047
|
if (mParameters) {
|
|
2048
2048
|
sText = mParameters.text;
|
|
2049
2049
|
sMessageType = mParameters.messageType || IllustratedMessageType.ErrorScreen;
|
|
2050
2050
|
sDescription = mParameters.description;
|
|
2051
|
+
aAdditionalContent = mParameters.additionalContent;
|
|
2051
2052
|
}
|
|
2052
2053
|
|
|
2053
2054
|
oTemplateContract.oTemplatePrivateGlobalModel.setProperty("/generic/messagePage", {
|
|
2054
2055
|
text: sText,
|
|
2055
2056
|
messageType: sMessageType,
|
|
2056
|
-
description: sDescription
|
|
2057
|
+
description: sDescription,
|
|
2058
|
+
additionalContent: aAdditionalContent
|
|
2057
2059
|
});
|
|
2058
2060
|
|
|
2059
2061
|
if (oTemplateContract.oFlexibleColumnLayoutHandler){
|
|
@@ -3165,7 +3167,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3165
3167
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3166
3168
|
* @public
|
|
3167
3169
|
* @extends sap.ui.base.Object
|
|
3168
|
-
* @version 1.
|
|
3170
|
+
* @version 1.130.1
|
|
3169
3171
|
* @since 1.30.0
|
|
3170
3172
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3171
3173
|
*/
|
|
@@ -19,6 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
// library dependencies
|
|
20
20
|
"sap/f/library",
|
|
21
21
|
"sap/fe/placeholder/library",
|
|
22
|
+
"sap/fe/controls/library",
|
|
22
23
|
"sap/insights/library",
|
|
23
24
|
"sap/m/library",
|
|
24
25
|
"sap/suite/ui/microchart/library",
|
|
@@ -47,6 +48,7 @@ sap.ui.define([
|
|
|
47
48
|
dependencies: [
|
|
48
49
|
"sap.f",
|
|
49
50
|
"sap.fe.placeholder",
|
|
51
|
+
"sap.fe.controls",
|
|
50
52
|
"sap.insights",
|
|
51
53
|
"sap.m",
|
|
52
54
|
"sap.suite.ui.microchart",
|
|
@@ -62,7 +64,7 @@ sap.ui.define([
|
|
|
62
64
|
interfaces: [],
|
|
63
65
|
controls: [],
|
|
64
66
|
elements: [],
|
|
65
|
-
version: "1.
|
|
67
|
+
version: "1.130.1",
|
|
66
68
|
extensions: {
|
|
67
69
|
//Configuration used for rule loading of Support Assistant
|
|
68
70
|
"sap.ui.support": {
|
|
@@ -27,11 +27,15 @@
|
|
|
27
27
|
</SegmentedButton>
|
|
28
28
|
</template:then>
|
|
29
29
|
<template:else>
|
|
30
|
-
|
|
30
|
+
<core:InvisibleText id="{:= ${parameter>/stableId}.getStableId({type: 'QuickVariantSelection', subType: 'InvisibleText'})}"
|
|
31
|
+
text="{i18n>CONTENT_SWITCH}"/>
|
|
32
|
+
<Select id="{:= ${parameter>/stableId}.getStableId({type: 'QuickVariantSelection', subType: 'VariantSelect'})}"
|
|
31
33
|
selectedKey="{_templPriv>/alp/multipleViews/selectedKey}"
|
|
32
34
|
enabled="{= !${_templPriv>/alp/filterChanged} }"
|
|
33
35
|
autoAdjustWidth="true"
|
|
34
|
-
forceSelection="true"
|
|
36
|
+
forceSelection="true"
|
|
37
|
+
ariaLabelledBy="{:= ${parameter>/stableId}.getStableId({type: 'QuickVariantSelection', subType: 'InvisibleText'})}"
|
|
38
|
+
>
|
|
35
39
|
<items>
|
|
36
40
|
<template:repeat list="{parameter>/settings/quickVariantSelection/variants}" var="viewItem">
|
|
37
41
|
<core:Item id="{:= ${parameter>/stableId}.getStableId({type: 'AnalyticalListPageTable', subType: 'SegmentedButtonItem', sQuickVariantKey: ${viewItem>key}})}"
|
|
@@ -7,7 +7,7 @@ sap.ui.define([
|
|
|
7
7
|
var oLogger = new FeLogger("manifestMerger.ChangePageConfiguration").getLogger();
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* This class holds the function which will be invoked from the flex layer when the manifest.appdescr_variant has
|
|
10
|
+
* This class holds the function which will be invoked from the flex layer when the manifest.appdescr_variant has
|
|
11
11
|
* the changeType "appdescr_ui_generic_app_changePageConfiguration" to extend the Manifest settings
|
|
12
12
|
* @namespace sap.suite.ui.generic.template.manifestMerger.ChangePageConfiguration
|
|
13
13
|
* @private
|
|
@@ -15,18 +15,18 @@ sap.ui.define([
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @typedef {Object} ChangeContent
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* @property {object} parentPage - The parent page details
|
|
20
20
|
* @property {string} parentPage.component - The source page component where the new page will be added
|
|
21
21
|
* @property {string} parentPage.entitySet - The source page entityset name where the new page will be added
|
|
22
|
-
*
|
|
22
|
+
*
|
|
23
23
|
* @property {object} entityPropertyChange - The details of the configuration to be changed
|
|
24
24
|
* @property {string} entityPropertyChange.propertyPath - The property path where the change has to be added
|
|
25
25
|
* @property {string} entityPropertyChange.operation - The operation type
|
|
26
26
|
* @property {object} entityPropertyChange.propertyValue - The property details that has to be modified
|
|
27
|
-
*
|
|
27
|
+
*
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
/**
|
|
31
31
|
* @typedef {Object} Change
|
|
32
32
|
* @property {string} changeType - The app descriptor change type name
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @param {object} oManifest - Contains the existing Manifest of the application
|
|
40
40
|
* @param {Change} oChange - Contains the setting changes that the user wants to add to the oManifest
|
|
41
41
|
* The oChange for changePageConfiguration should have the following structure:
|
|
42
|
-
* @example
|
|
42
|
+
* @example
|
|
43
43
|
* {
|
|
44
44
|
* "changeType": "appdescr_ui_generic_app_changePageConfiguration", // the app descriptor change type name
|
|
45
45
|
* "layer": Layer.CUSTOMER, // The target layer, can have values "CUSTOMER" , "CUSTOMER_BASE", "PARTNER" or "VENDOR"
|
|
@@ -50,15 +50,15 @@ sap.ui.define([
|
|
|
50
50
|
* },
|
|
51
51
|
* "entityPropertyChange": { // details of the configuration to be changed
|
|
52
52
|
* "propertyPath": "component/settings", // property path where the change has to be added
|
|
53
|
-
* "operation": "UPSERT", // operation type
|
|
53
|
+
* "operation": "UPSERT", // operation type
|
|
54
54
|
* "propertyValue": { // contains the property details that has to be modified
|
|
55
55
|
* "tableType": "ResponsiveTable"
|
|
56
56
|
* }
|
|
57
57
|
* }
|
|
58
58
|
* }
|
|
59
59
|
* }
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
62
|
* {
|
|
63
63
|
* "changeType": "appdescr_ui_generic_app_changePageConfiguration", // the app descriptor change type name
|
|
64
64
|
* "layer": Layer.VENDOR, // The target layer, can have values "CUSTOMER" , "CUSTOMER_BASE", "PARTNER" or "VENDOR"
|
|
@@ -68,14 +68,14 @@ sap.ui.define([
|
|
|
68
68
|
* },
|
|
69
69
|
* "entityPropertyChange": { // details of the configuration to be changed
|
|
70
70
|
* "propertyPath": "settings", // property path where the change has to be added
|
|
71
|
-
* "operation": "UPSERT", // operation type
|
|
71
|
+
* "operation": "UPSERT", // operation type
|
|
72
72
|
* "propertyValue": { // contains the property details that has to be modified
|
|
73
73
|
* "statePreservationMode": "persistence"
|
|
74
74
|
* }
|
|
75
75
|
* }
|
|
76
76
|
* }
|
|
77
77
|
* }
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
79
|
* @returns {object} the updated oManifest containing the oChange settings
|
|
80
80
|
* @protected
|
|
81
81
|
*/
|
|
@@ -92,20 +92,25 @@ sap.ui.define([
|
|
|
92
92
|
oPageStructure = MergerUtil.iterateAndFind(oManifest["sap.ui.generic.app"], sParentEntitySet, sParentComponent);
|
|
93
93
|
}
|
|
94
94
|
var oPropertyChange = oChangeContent.entityPropertyChange;
|
|
95
|
-
|
|
96
|
-
aPropertyKeys.forEach(function(sCurrentKey) {
|
|
95
|
+
if (typeof oPropertyChange.propertyValue !== "object" || oPropertyChange.propertyValue === null) {
|
|
97
96
|
var aPropertyPath = oPropertyChange.propertyPath.split("/");
|
|
98
|
-
aPropertyPath.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
ObjectPath.
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
}
|
|
107
112
|
return oManifest;
|
|
108
113
|
}
|
|
109
114
|
};
|
|
110
115
|
return changePageConfiguration;
|
|
111
|
-
});
|
|
116
|
+
});
|
|
@@ -5,16 +5,16 @@ sap.ui.define([
|
|
|
5
5
|
|
|
6
6
|
var oLogger = new FeLogger("manifestMerger.MergerUil").getLogger();
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
* This class holds the helper functions that are invoked from the manifestMergers
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
var GLOBAL_MANIFEST_CHANGE_COMPONENT = "sap.suite.ui.generic.template";
|
|
13
13
|
var mergerUtil = {
|
|
14
14
|
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
16
|
* Iterate through the pages object to find the page map that matches sEntityKey and sPageComponent value
|
|
17
|
-
* @param {object} oPages - The pages object which is provided in the Manifest which will be iterated through
|
|
17
|
+
* @param {object} oPages - The pages object which is provided in the Manifest which will be iterated through
|
|
18
18
|
* to find the corresponding object which contains the keys entityset and component.name
|
|
19
19
|
* @param {string} sEntityKey - EntitySet name of the parent page where the user would like to add new changes
|
|
20
20
|
* @param {string} sPageComponent - Component name of parent page where the user would like to add new changes
|
|
@@ -63,8 +63,8 @@ sap.ui.define([
|
|
|
63
63
|
return oPageStructure;
|
|
64
64
|
},
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* Function used to check the consistency of the oChangeContent structure to ensure all the
|
|
66
|
+
/**
|
|
67
|
+
* Function used to check the consistency of the oChangeContent structure to ensure all the
|
|
68
68
|
* mandatory parameters are provided and are of valid type
|
|
69
69
|
* @param {object} oChangeContent - Contains the changes that the user wants to add to the oManifest
|
|
70
70
|
* @param {string} sMergerType - The type of merger operation that is being executed, can hold value "ADD" or "MODIFY"
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
if (!oEntityPropertyChange.operation || oEntityPropertyChange.operation !== "UPSERT") {
|
|
118
118
|
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
119
|
}
|
|
120
|
-
if (
|
|
120
|
+
if (oEntityPropertyChange.propertyValue === undefined) {
|
|
121
121
|
throw new Error("Invalid change format: The mandatory 'propertyValue' is not defined. Please define the mandatory property 'propertyValue'");
|
|
122
122
|
}
|
|
123
123
|
}
|