@sapui5/sap.suite.ui.generic.template 1.124.0 → 1.124.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.124.0",
3
+ "version": "1.124.1",
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.124.0</version>
10
+ <version>1.124.1</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.124.0"
11
+ "version": "1.124.1"
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.124.0"
11
+ "version": "1.124.1"
12
12
  },
13
13
  "title": "Canvas",
14
14
  "description": "Canvas Page",
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.124.0"
11
+ "version": "1.124.1"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -2584,6 +2584,10 @@ sap.ui.define([
2584
2584
  oTemplateUtils.oCommonEventHandlers.handleUploadComplete(oEvent);
2585
2585
  },
2586
2586
 
2587
+ handleTypeMismatch: function(oEvent) {
2588
+ oTemplateUtils.oCommonEventHandlers.handleTypeMismatch(oEvent);
2589
+ },
2590
+
2587
2591
  removeStream: function(oEvent) {
2588
2592
  oTemplateUtils.oCommonEventHandlers.removeStream(oEvent);
2589
2593
  },
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.124.0"
9
+ "version": "1.124.1"
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.124.0"
9
+ "version": "1.124.1"
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.124.0"
9
+ "version": "1.124.1"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -79,6 +79,7 @@
79
79
  sendXHR="true" useMultipart="false" sameFilenameAllowed="true" uploadOnChange="false" httpRequestMethod="Put"
80
80
  uploadUrl="{parts: [{path: 'entitySet>'}, {path: 'dataField>'}], formatter: 'AHStream.getURLForStream'}"
81
81
  change="._templateEventHandlers.uploadStream" uploadComplete="._templateEventHandlers.handleUploadComplete"
82
+ typeMissmatch="._templateEventHandlers.handleTypeMismatch"
82
83
  visible="{parts: [{path:'parameter>/isDraftEnabled'}, {path: 'entitySet>'}], formatter: 'AHStream.getFileUploaderVisibility'}"
83
84
  mimeType="{parts: [{path: 'entitySet>'}], formatter: 'AHStream.getAcceptableMimeTypes'}"
84
85
  ariaLabelledBy="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageSection', subType: 'FileUploaderLabel', sFacet: ${facetId>id}})}">
@@ -919,7 +919,7 @@ sap.ui.define([
919
919
  * @extends sap.ui.core.UIComponent
920
920
  * @abstract
921
921
  * @author SAP SE
922
- * @version 1.124.0
922
+ * @version 1.124.1
923
923
  * @name sap.suite.ui.generic.template.lib.AppComponent
924
924
  */
925
925
  var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
@@ -1998,6 +1998,11 @@ sap.ui.define(["sap/ui/base/Object",
1998
1998
  }
1999
1999
  }
2000
2000
 
2001
+ function handleTypeMismatch(){
2002
+ var sMessageText = oCommonUtils.getText("ST_STREAM_TYPE_MISMATCH");
2003
+ oServices.oApplication.showMessageToast(sMessageText);
2004
+ }
2005
+
2001
2006
  function removeStream(oEvent){
2002
2007
  var oSource = oEvent.getSource();
2003
2008
  var aPath = [oController.getView().getBindingContext().sPath + "/$value"];
@@ -2683,6 +2688,7 @@ sap.ui.define(["sap/ui/base/Object",
2683
2688
  uploadStream: uploadStream,
2684
2689
  removeStream: removeStream,
2685
2690
  handleUploadComplete: handleUploadComplete,
2691
+ handleTypeMismatch: handleTypeMismatch,
2686
2692
  evaluateParameters: fnEvaluateParameters,
2687
2693
  onBeforeExport: fnOnBeforeExport,
2688
2694
  handleSideEffectForField: fnHandleSideEffectForField,
@@ -67,6 +67,9 @@ ST_UNSAVED_CHANGES_TITLE=Unsaved Changes
67
67
  # XTIT, 30
68
68
  ST_STREAM_OPEN_FILE=Open File
69
69
 
70
+ # XMSG
71
+ ST_STREAM_TYPE_MISMATCH=Selected file type is not supported.
72
+
70
73
  #XFLD: this text will be used to add additional information to the draft type in the list report for locked objects or objects with unsaved changes it will read like "Unsaved Changes by User" the "Unsaved Changes" part is provided by the control itself
71
74
  ST_DRAFT_OWNER=by {0}
72
75
 
@@ -3055,7 +3055,7 @@ sap.ui.define(["sap/ui/base/Object",
3055
3055
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
3056
3056
  * @public
3057
3057
  * @extends sap.ui.base.Object
3058
- * @version 1.124.0
3058
+ * @version 1.124.1
3059
3059
  * @since 1.30.0
3060
3060
  * @alias sap.suite.ui.generic.template.lib.NavigationController
3061
3061
  */
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  interfaces: [],
63
63
  controls: [],
64
64
  elements: [],
65
- version: "1.124.0",
65
+ version: "1.124.1",
66
66
  extensions: {
67
67
  //Configuration used for rule loading of Support Assistant
68
68
  "sap.ui.support": {