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

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.41",
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.41</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.41"
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.41"
12
12
  },
13
13
  "title": "Canvas",
14
14
  "description": "Canvas Page",
@@ -59,7 +59,7 @@ MESSAGE_MULTIPLE_VALUES_S_FORM=Non \u00E8 possibile utilizzare i seguenti filtri
59
59
 
60
60
  OBJECT_NOT_EDITABLE=Impossibile modificare questo oggetto.
61
61
 
62
- NODATA_SMARTTABLE_LR=Per iniziare, impostare i filtri e selezionare "Avvio".
62
+ NODATA_SMARTTABLE_LR=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio".
63
63
 
64
64
 
65
65
  CANCEL_AND_DISCARD=Scartare questa bozza?
@@ -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.41"
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)) {
@@ -15,7 +15,7 @@ SAVED_VERSION=Vers\u00E3o gravada
15
15
 
16
16
  DRAFT_VERSION=Esbo\u00E7o
17
17
 
18
- SAVE=Gravar
18
+ SAVE=Salvar
19
19
 
20
20
  SAVE_AND_EDIT=Salvar e editar
21
21
 
@@ -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.41"
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.41"
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.41"
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.41
943
943
  * @name sap.suite.ui.generic.template.lib.AppComponent
944
944
  */
945
945
  return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
@@ -1,5 +1,5 @@
1
- sap.ui.define(["sap/ui/base/Object",
2
- "sap/base/util/extend",
1
+ sap.ui.define(["sap/ui/base/Object",
2
+ "sap/base/util/extend",
3
3
  "sap/suite/ui/generic/template/lib/CRUDHelper",
4
4
  "sap/suite/ui/generic/template/lib/MessageUtils"
5
5
  ], function (BaseObject, extend, CRUDHelper, MessageUtils) {
@@ -7,7 +7,7 @@ sap.ui.define(["sap/ui/base/Object",
7
7
 
8
8
  function getMethods(oTemplateContract) {
9
9
 
10
- var fnOnDiscardOrKeepDraftConfirmed,
10
+ var fnOnDiscardOrKeepDraftConfirmed,
11
11
  fnOnDiscardOrKeepDraftCancel;
12
12
 
13
13
  function getSelectedKey(oKeepDiscardPopup) {
@@ -22,6 +22,22 @@ sap.ui.define(["sap/ui/base/Object",
22
22
  firstListItemOption.focus();
23
23
  }
24
24
 
25
+ function checkIfNavigationIsExplace() {
26
+ var UShellContainer = sap.ui.require("sap/ushell/Container");
27
+ if (!UShellContainer) {
28
+ return Promise.resolve(false); // No UShell container, assume inplace navigation
29
+ }
30
+
31
+ return UShellContainer.getServiceAsync("FioriElements").then(function(oFioriElementsService) {
32
+ if (oFioriElementsService && typeof oFioriElementsService.isExplaceNavigation === "function") {
33
+ return oFioriElementsService.isExplaceNavigation();
34
+ }
35
+ return false; // API not available, default to inplace behavior
36
+ }).catch(function() {
37
+ return false; // Service not available or error, default to inplace behavior
38
+ });
39
+ }
40
+
25
41
  /*
26
42
  ShowDiscardDraftPopUp
27
43
  */
@@ -29,7 +45,7 @@ sap.ui.define(["sap/ui/base/Object",
29
45
  fnOnDiscardOrKeepDraftConfirmed = onDiscardOrKeepDraftConfirmed;
30
46
  fnOnDiscardOrKeepDraftCancel = onDiscardOrKeepDraftCancel;
31
47
 
32
- var oDraftPopup,
48
+ var oDraftPopup,
33
49
  oComponent = getComponent(),
34
50
  oController = oComponent.oController;
35
51
  var sFragmentname = "sap.suite.ui.generic.template.ObjectPage.view.fragments.DraftConfirmationPopup";
@@ -134,13 +150,25 @@ sap.ui.define(["sap/ui/base/Object",
134
150
  function fnPerformAfterDiscardOrKeepDraftImpl(fnPositive, fnNegative, sMode, bIsTechnical) {
135
151
  var sEnableDiscardDraftConfirmation = oTemplateContract.oNavigationControllerProxy.isDiscardDraftConfirmationNeeded();
136
152
  var bNeedsPopup = ((sEnableDiscardDraftConfirmation === "always" && sMode.startsWith("Leave")) || (sEnableDiscardDraftConfirmation === "restricted" && sMode === "LeavePage")) && isObjectEditable();
137
- if (bNeedsPopup) {
138
- fnDiscardOrKeepDraftConfirmation(fnPositive, fnNegative, sMode);
139
- } else {
153
+
154
+ if (!bNeedsPopup) {
140
155
  fnPositive();
156
+ return;
141
157
  }
158
+
159
+ // Check if navigation will be explace and skip popup if so
160
+ checkIfNavigationIsExplace().then(function(bIsExplace) {
161
+ if (bIsExplace) {
162
+ fnPositive(); // Skip popup for explace navigation
163
+ } else {
164
+ fnDiscardOrKeepDraftConfirmation(fnPositive, fnNegative, sMode);
165
+ }
166
+ }).catch(function() {
167
+ // Fallback: show popup as before if API check fails
168
+ fnDiscardOrKeepDraftConfirmation(fnPositive, fnNegative, sMode);
169
+ });
142
170
  }
143
-
171
+
144
172
  function getComponent() {
145
173
  var oComponent;
146
174
  var oCurrentIdentity = oTemplateContract.oNavigationControllerProxy.getCurrentIdentity();
@@ -264,7 +264,7 @@ NOITEMS_LR_SMARTCHART=Non ci sono dati per i criteri filtro selezionati e view g
264
264
 
265
265
  NOITEMS_SMARTCHART_WITH_FILTER=DatiNonTrov;adatt.ParamFiltro.
266
266
 
267
- SMARTCHART_INITIAL_NODATA=Per iniziare, impostare i filtri e selezionare "Avvio".
267
+ SMARTCHART_INITIAL_NODATA=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio".
268
268
 
269
269
  NOITEMS_LR_SMARTTABLE=Nessun dato trovato.
270
270
 
@@ -109,7 +109,7 @@ ST_GENERIC_DELETE_TITLE_WITH_COUNT=\u5220\u9664 ({0})
109
109
 
110
110
  ST_GENERIC_LIST_TITLE=\u9879\u76EE
111
111
 
112
- ST_GENERIC_WARNING_TEXT=\u5C06\u4E0D\u4F1A\u5904\u7406\u6240\u9009\u9879\u76EE\u4E2D\u7684 {0} \u4E2A\u9879\u76EE\u3002
112
+ ST_GENERIC_WARNING_TEXT=\u6240\u9009\u9879\u76EE\u4E2D\u7684 {0} \u4E2A\u9879\u76EE\u5C06\u4E0D\u4F1A\u5904\u7406\u3002
113
113
 
114
114
  ST_GENERIC_DIALOG_CONTINUE_BUT=\u4ECD\u7136\u7EE7\u7EED
115
115
 
@@ -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.41
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.41",
64
64
  extensions: {
65
65
  //Configuration used for rule loading of Support Assistant
66
66
  "sap.ui.support": {