@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.117.1",
3
+ "version": "1.117.4",
4
4
  "description": "SAPUI5 Library sap.suite.ui.generic.template",
5
5
  "keywords": [
6
6
  "sapui5",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.117.1</version>
10
+ <version>1.117.4</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.117.1"
11
+ "version": "1.117.4"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.117.1"
11
+ "version": "1.117.4"
12
12
  },
13
13
  "title": "Canvas",
14
14
  "description": "Canvas Page",
@@ -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,60: No data text for on load of smart table
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---------------------
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.117.1"
11
+ "version": "1.117.4"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.117.1"
9
+ "version": "1.117.4"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -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
  }
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.117.1"
9
+ "version": "1.117.4"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.117.1"
9
+ "version": "1.117.4"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -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>'}, {path: 'dataField>Target/AnnotationPath'}, {path: 'appSettings>/enableAutoColumnWidthForSmartTable'}], formatter: 'AH.getDefaultWidthForTableColumn'}"
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="{= ${path: 'dataField>', formatter: 'AHgetImportanceForTableColumns'}}">
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
- oChildProps[sProperty] = getStringifiable(vObject[sProperty]);
37
- oReplacement.childProps = oChildProps; // Note that this is only effective when being called the first time
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.1
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
- if (oResponse.response && oResponse.context && (!oResponse.actionContext || oResponse.actionContext && oResponse.context.getPath() !== oResponse.actionContext.getPath())) {
2128
- oServices.oViewDependencyHelper.setMeToDirty(oController.getOwnerComponent(), sEntitySet);
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 bSetToDirty = oResponseContext && (!oResponse.actionContext || oResponseContext.getPath() !== oResponse.actionContext.getPath());
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,30: used in object page table when no items available in and no filter applied.
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,60: used in list report page chart when chart is not initialized.
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.1
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.1",
41
+ version: "1.117.4",
42
42
  extensions: {
43
43
  //Configuration used for rule loading of Support Assistant
44
44
  "sap.ui.support": {