@sapui5/sap.suite.ui.generic.template 1.117.1 → 1.117.4
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 +1 -1
- package/src/sap/suite/ui/generic/template/.library +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/i18n/i18n.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +1 -1
- 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/fragments/TableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/jsonHelper.js +5 -2
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/ViewDependencyHelper.js +4 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +2 -2
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -91,7 +91,7 @@ MESSAGE_MULTIPLE_VALUES_S_FORM=You can''t use the following filters on the \"{1}
|
|
|
91
91
|
# YMSG, 100: used to show error message while editing a non editable object
|
|
92
92
|
OBJECT_NOT_EDITABLE=This object cannot be edited.
|
|
93
93
|
|
|
94
|
-
# XMSG,
|
|
94
|
+
# XMSG, 80: No data text for on load of smart table
|
|
95
95
|
NODATA_SMARTTABLE_LR=To start, set the relevant filters and choose "Go".
|
|
96
96
|
|
|
97
97
|
#------------template controller reuse texts---------------------
|
|
@@ -1394,7 +1394,7 @@ sap.ui.define([
|
|
|
1394
1394
|
text: "{= ${ui>/createMode} ? ${i18n>CREATE} : ${i18n>SAVE}}",
|
|
1395
1395
|
type: sEmphasiedButtonType,
|
|
1396
1396
|
press: "cmd:Save",
|
|
1397
|
-
visible: !(!oDevice.system.desktop && (oDevice.system.tablet || oDevice.system.phone)) && "{ui>/editable}",
|
|
1397
|
+
visible: oComponentUtils.isDraftEnabled() ? !(!oDevice.system.desktop && (oDevice.system.tablet || oDevice.system.phone)) && "{ui>/editable}" : "{ui>/editable}",
|
|
1398
1398
|
isStandardAction: true,
|
|
1399
1399
|
determining: true
|
|
1400
1400
|
}
|
|
@@ -248,9 +248,9 @@
|
|
|
248
248
|
<template:with path="dataFieldTarget>Value" helper="AHModel.resolvePath" var="dataFieldTargetValue">
|
|
249
249
|
<Column
|
|
250
250
|
id="{:= ${parameter>/stableId}.getStableId({type: 'TableColumn', subType: 'DataFieldForAnnotation', sSmartTableId: ${smartTableId>id}, sTarget: ${dataField>Target/AnnotationPath}})}"
|
|
251
|
-
width="{parts: [{path: 'dataFieldTarget>'}, {path: 'dataField>'}, {path: 'listEntitySet>'},
|
|
251
|
+
width="{parts: [{path: 'dataFieldTarget>'}, {path: 'dataField>'}, {path: 'listEntitySet>'}, {path: 'dataField>Target/AnnotationPath'}, {path: 'appSettings>/enableAutoColumnWidthForSmartTable'}], formatter: 'AH.getDefaultWidthForTableColumn'}"
|
|
252
252
|
visible="true"
|
|
253
|
-
importance="{
|
|
253
|
+
importance="{path: 'dataField>', formatter: 'AH.getImportanceForTableColumns'}">
|
|
254
254
|
<customData>
|
|
255
255
|
<core:CustomData key="p13nData" value="{parts: [{path: 'listEntitySet>'}, {path: 'dataField>'}, {path: 'dataFieldTarget>'}, {path: 'dataFieldTargetValue>'}, {path: 'dataField>Target/AnnotationPath'}], formatter: 'AH.createP13NColumnForIndicator'}" />
|
|
256
256
|
</customData>
|
|
@@ -33,8 +33,11 @@ sap.ui.define(["sap/ui/core/date/UI5Date"], function(UI5Date) {
|
|
|
33
33
|
// Thus a map: <property name> -> getStringifiable(<property value>) is created and added to oReplacement (in case it is not empty) as property 'childProps'.
|
|
34
34
|
var oChildProps = Object.create(null);
|
|
35
35
|
for (var sProperty in vObject){
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
var vValue = vObject[sProperty];
|
|
37
|
+
if (typeof vValue !== "function"){ // Ignore functions because they can anyway not be serialized. Note that this is necessary as vObject is an instance of UI5Date which has functions as enumerable properties.
|
|
38
|
+
oChildProps[sProperty] = getStringifiable(vValue);
|
|
39
|
+
oReplacement.childProps = oChildProps; // Note that this is only effective when being called the first time
|
|
40
|
+
}
|
|
38
41
|
}
|
|
39
42
|
aReplaces.push(oReplacement);
|
|
40
43
|
return;
|
|
@@ -853,7 +853,7 @@ sap.ui.define([
|
|
|
853
853
|
* @extends sap.ui.core.UIComponent
|
|
854
854
|
* @abstract
|
|
855
855
|
* @author SAP SE
|
|
856
|
-
* @version 1.117.
|
|
856
|
+
* @version 1.117.4
|
|
857
857
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
858
858
|
*/
|
|
859
859
|
return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -2124,8 +2124,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2124
2124
|
}, oState).then(function(aResponses) {
|
|
2125
2125
|
if (aResponses) {
|
|
2126
2126
|
aResponses.some(function(oResponse){
|
|
2127
|
-
|
|
2128
|
-
|
|
2127
|
+
var sResponsePath = oResponse.context && oResponse.context.getPath();
|
|
2128
|
+
if (oResponse.response && oResponse.context && (!oResponse.actionContext || sResponsePath !== oResponse.actionContext.getPath())) {
|
|
2129
|
+
oServices.oViewDependencyHelper.setMeToDirty(oController.getOwnerComponent(), sEntitySet, false, sResponsePath === "/undefined" || (mParams.contexts && mParams.contexts.length > 1));
|
|
2129
2130
|
return true;
|
|
2130
2131
|
}
|
|
2131
2132
|
});
|
|
@@ -1843,9 +1843,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1843
1843
|
var oResponse = aResponses[0];
|
|
1844
1844
|
// For some apps the context object is placed inside the response object of the Response.
|
|
1845
1845
|
var oResponseContext = (oResponse.response && oResponse.response.context) || oResponse.context;
|
|
1846
|
-
var
|
|
1846
|
+
var sResponseContextPath = oResponseContext && oResponseContext.getPath();
|
|
1847
|
+
var bSetToDirty = oResponseContext && (!oResponse.actionContext || sResponseContextPath !== oResponse.actionContext.getPath());
|
|
1847
1848
|
if (bSetToDirty) {
|
|
1848
|
-
oServices.oViewDependencyHelper.setMeToDirty(oController.getOwnerComponent(), sEntitySet);
|
|
1849
|
+
oServices.oViewDependencyHelper.setMeToDirty(oController.getOwnerComponent(), sEntitySet, false, sResponseContextPath === "/undefined" || aContexts.length > 1);
|
|
1849
1850
|
}
|
|
1850
1851
|
}
|
|
1851
1852
|
});
|
|
@@ -40,12 +40,13 @@ sap.ui.define(["sap/ui/base/Object", "sap/suite/ui/generic/template/js/Annotatio
|
|
|
40
40
|
* Sets the specified page to dirty
|
|
41
41
|
* @param {Object} oComponent - the component that shall be set to dirty
|
|
42
42
|
* @param {String} sEntitySet - only this navigation property is set to dirty. The app will navigate to the object page of that entity set
|
|
43
|
-
* @param {boolean} bLeaveAppExpected - if this parameter is truthy it is expected that the app will be left (but may be restarted in keep-alive scenarios).
|
|
43
|
+
* @param {boolean} bLeaveAppExpected - if this parameter is truthy it is expected that the app will be left (but may be restarted in keep-alive scenarios).
|
|
44
|
+
* @param {boolean} bNoNavigation - if this parameter is truthy navigation to object page of sEntitySet will not happen (this is the case when there is more than one affected instance, since in this case we would not know where to navigate)
|
|
44
45
|
*/
|
|
45
|
-
function setMeToDirty(oComponent, sEntitySet, bLeaveAppExpected) {
|
|
46
|
+
function setMeToDirty(oComponent, sEntitySet, bLeaveAppExpected, bNoNavigation) {
|
|
46
47
|
if (sEntitySet) {
|
|
47
48
|
var oRegistryEntry = oTemplateContract.componentRegistry[oComponent.getId()];
|
|
48
|
-
var bNavigationWillLeavePage = bLeaveAppExpected || oTemplateContract.oNavigationControllerProxy.navigationWillLeavePage(oTemplateContract.mRoutingTree[oRegistryEntry.route], sEntitySet);
|
|
49
|
+
var bNavigationWillLeavePage = bLeaveAppExpected || (!bNoNavigation && oTemplateContract.oNavigationControllerProxy.navigationWillLeavePage(oTemplateContract.mRoutingTree[oRegistryEntry.route], sEntitySet));
|
|
49
50
|
var mRefreshInfos = oRegistryEntry.mRefreshInfos;
|
|
50
51
|
mRefreshInfos[sEntitySet] = true;
|
|
51
52
|
if (!bNavigationWillLeavePage && oRegistryEntry.utils.isComponentActive()){
|
|
@@ -374,7 +374,7 @@ ST_NAV_ERROR_NOT_AUTHORIZED_DESC=Navigation to this application is not supported
|
|
|
374
374
|
#YMSG: Default title for unnamed objects
|
|
375
375
|
NEW_OBJECT=Unnamed Object
|
|
376
376
|
|
|
377
|
-
# XFLD,
|
|
377
|
+
# XFLD,40: used in object page table when no items available in and no filter applied.
|
|
378
378
|
NOITEMS_SMARTTABLE=No items available.
|
|
379
379
|
|
|
380
380
|
# XFLD,100: used in object page table when no items available in and filters applied.
|
|
@@ -392,7 +392,7 @@ NOITEMS_LR_SMARTCHART=There is no data for the selected filter criteria and char
|
|
|
392
392
|
# XFLD,80: used in object page chart when no data found in and filters applied.
|
|
393
393
|
NOITEMS_SMARTCHART_WITH_FILTER=No data found. Try adjusting the filter parameters.
|
|
394
394
|
|
|
395
|
-
# XFLD,
|
|
395
|
+
# XFLD,80: used in list report page chart when chart is not initialized.
|
|
396
396
|
SMARTCHART_INITIAL_NODATA=To start, set the relevant filters and choose "Go".
|
|
397
397
|
|
|
398
398
|
# XFLD,30: used in list report page table when no data found in and no filter applied.
|
|
@@ -3046,7 +3046,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3046
3046
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3047
3047
|
* @public
|
|
3048
3048
|
* @extends sap.ui.base.Object
|
|
3049
|
-
* @version 1.117.
|
|
3049
|
+
* @version 1.117.4
|
|
3050
3050
|
* @since 1.30.0
|
|
3051
3051
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3052
3052
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/core/library','sap/fe/placeholder/lib
|
|
|
38
38
|
interfaces: [],
|
|
39
39
|
controls: [],
|
|
40
40
|
elements: [],
|
|
41
|
-
version: "1.117.
|
|
41
|
+
version: "1.117.4",
|
|
42
42
|
extensions: {
|
|
43
43
|
//Configuration used for rule loading of Support Assistant
|
|
44
44
|
"sap.ui.support": {
|