@sapui5/sap.suite.ui.generic.template 1.120.39 → 1.120.40

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.120.39",
3
+ "version": "1.120.40",
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.120.39</version>
10
+ <version>1.120.40</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.120.39"
11
+ "version": "1.120.40"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -0,0 +1,11 @@
1
+ // This class contains behaviour information about the Canvas floorplan which can be used by the framework even before an instance of the Canvas has been created
2
+ // Canvas does not have a specific placeholder pattern like LR/OP, so we display the standard placeholder.
3
+ // The routing helper calls the Fiori-defined placeholder for all floor plans; therefore, we introduce the code below with an empty object
4
+ // to prevent a 404 error.
5
+ // In the future, if we introduce an extension to display a placeholder, this code can be reused for that purpose.
6
+
7
+ sap.ui.define(["sap/ui/core/mvc/XMLView"], function(XMLView){
8
+ "use strict";
9
+
10
+ return {};
11
+ });
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.120.39"
11
+ "version": "1.120.40"
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.120.39"
11
+ "version": "1.120.40"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -327,7 +327,9 @@ sap.ui.define([
327
327
  };
328
328
 
329
329
  return new Promise(function(fnResolve) {
330
- fnFetchDefaultValues(oSmartTable).then(function (oDefaultValues) {
330
+ fnWaitUntilSmartTableReceivesBindingContext(oSmartTable).then(function () {
331
+ return fnFetchDefaultValues(oSmartTable);
332
+ }).then(function (oDefaultValues) {
331
333
  // In cases of user input then create a new empty row
332
334
  if (bIsOnUserInput) {
333
335
  createInactiveLineItem(oItemsBinding, oDefaultValues, true);
@@ -456,6 +458,31 @@ sap.ui.define([
456
458
  }
457
459
  });
458
460
  }
461
+
462
+ /**
463
+ * If the smart table has the binding context, it immediately returns
464
+ * Otherwise, it waits until the smart table receives a binding context and returns.
465
+ * @param {*} oSmartTable
466
+ */
467
+ function fnWaitUntilSmartTableReceivesBindingContext(oSmartTable) {
468
+ if (oSmartTable.getBindingContext()) {
469
+ return Promise.resolve();
470
+ }
471
+ return new Promise(function(fnResolve) {
472
+ function fnModelContextChangeHandler (oEvent) {
473
+ // If binding context is not received yet, just ignore it (return the function)
474
+ // and wait for the next "modelContextChange" event
475
+ if (!oSmartTable.getBindingContext()) {
476
+ return;
477
+ }
478
+ // Once binding context is received, detach the event and resolve the promise
479
+ oSmartTable.detachEvent("modelContextChange", fnModelContextChangeHandler);
480
+ fnResolve();
481
+ }
482
+ oSmartTable.attachEvent("modelContextChange", fnModelContextChangeHandler);
483
+ });
484
+ }
485
+
459
486
  //Based on the table type, this method invokes the appropriate method to update table rows
460
487
  function fnUpdateTableRows(oTable) {
461
488
  if (controlHelper.isMTable(oTable)) {
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.120.39"
9
+ "version": "1.120.40"
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.120.39"
9
+ "version": "1.120.40"
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.120.39"
9
+ "version": "1.120.40"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -213,7 +213,12 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
213
213
  }
214
214
  },
215
215
  "sap.uxap.ObjectPageSubSection": {
216
- actions: ["rename", "remove", "reveal"]
216
+ actions: ["rename", "remove", "reveal"],
217
+ aggregations: {
218
+ actions: {
219
+ actions: ["remove"]
220
+ }
221
+ }
217
222
  },
218
223
  "sap.ui.comp.smartform.SmartForm": { // not documented in allow list, but checked by RTA OPA test
219
224
  actions: ["localReset"],
@@ -939,7 +939,7 @@ sap.ui.define([
939
939
  * @extends sap.ui.core.UIComponent
940
940
  * @abstract
941
941
  * @author SAP SE
942
- * @version 1.120.39
942
+ * @version 1.120.40
943
943
  * @name sap.suite.ui.generic.template.lib.AppComponent
944
944
  */
945
945
  return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
@@ -3094,7 +3094,7 @@ sap.ui.define(["sap/ui/base/Object",
3094
3094
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
3095
3095
  * @public
3096
3096
  * @extends sap.ui.base.Object
3097
- * @version 1.120.39
3097
+ * @version 1.120.40
3098
3098
  * @since 1.30.0
3099
3099
  * @alias sap.suite.ui.generic.template.lib.NavigationController
3100
3100
  */
@@ -60,7 +60,7 @@ sap.ui.define([
60
60
  interfaces: [],
61
61
  controls: [],
62
62
  elements: [],
63
- version: "1.120.39",
63
+ version: "1.120.40",
64
64
  extensions: {
65
65
  //Configuration used for rule loading of Support Assistant
66
66
  "sap.ui.support": {