@sapui5/sap.suite.ui.generic.template 1.136.13 → 1.136.14

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.
Files changed (20) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/generic/template/.library +1 -1
  3. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +2 -2
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  5. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  6. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +1 -1
  7. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  8. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +1 -1
  9. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  10. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  11. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  12. package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +6 -1
  13. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
  14. package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +36 -8
  15. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +1 -1
  16. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +1 -1
  17. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +1 -1
  18. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +1 -1
  19. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +10 -25
  20. package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.136.13",
3
+ "version": "1.136.14",
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.136.13</version>
10
+ <version>1.136.14</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -208,9 +208,9 @@ NODATA_ADAPTFILTERDIALOG=Nessun dato
208
208
 
209
209
 
210
210
 
211
- NODATA_SMARTCHART_ALP=Per iniziare, impostare i filtri e selezionare "Avvio".
211
+ NODATA_SMARTCHART_ALP=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio".
212
212
 
213
- NODATA_SMARTTABLE_ALP=Per iniziare, impostare i filtri e selezionare "Avvio".
213
+ NODATA_SMARTTABLE_ALP=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio"
214
214
 
215
215
  MESSAGE_MULTIPLE_VALUES_L_FORM=Alcuni filtri non sono ril. per tab "{1}" ({0}). L\u2019impostazione di questi filtri non incide sui ris.
216
216
 
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.136.13"
11
+ "version": "1.136.14"
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.136.13"
11
+ "version": "1.136.14"
12
12
  },
13
13
  "title": "Canvas",
14
14
  "description": "Canvas Page",
@@ -61,7 +61,7 @@ MESSAGE_MULTIPLE_VALUES_S_FORM=Non \u00E8 possibile utilizzare i seguenti filtri
61
61
 
62
62
  OBJECT_NOT_EDITABLE=Impossibile modificare questo oggetto.
63
63
 
64
- NODATA_SMARTTABLE_LR=Per iniziare, impostare i filtri e selezionare "Avvio".
64
+ NODATA_SMARTTABLE_LR=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio".
65
65
 
66
66
  SEARCH_FILTERS_KEYBOARD_SHORTCUT_DESC=Avvio
67
67
 
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.136.13"
11
+ "version": "1.136.14"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -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.136.13"
9
+ "version": "1.136.14"
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.136.13"
9
+ "version": "1.136.14"
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.136.13"
9
+ "version": "1.136.14"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -214,7 +214,12 @@ sap.ui.define([
214
214
  }
215
215
  },
216
216
  "sap.uxap.ObjectPageSubSection": {
217
- actions: ["rename", "remove", "reveal"]
217
+ actions: ["rename", "remove", "reveal"],
218
+ aggregations: {
219
+ actions: {
220
+ actions: ["remove"]
221
+ }
222
+ }
218
223
  },
219
224
  "sap.ui.comp.smartform.SmartForm": { // not documented in allow list, but checked by RTA OPA test
220
225
  actions: ["localReset", "annotation"],
@@ -964,7 +964,7 @@ sap.ui.define([
964
964
  * @public
965
965
  * @extends sap.ui.core.UIComponent
966
966
  * @author SAP SE
967
- * @version 1.136.13
967
+ * @version 1.136.14
968
968
  * @name sap.suite.ui.generic.template.lib.AppComponent
969
969
  */
970
970
  var oAppComponent = 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();
@@ -444,7 +444,7 @@ RTA_SCROLLTHRESHOLD_FOR_TABLE_CONFIG=Ambang Batas Gulir
444
444
 
445
445
  RTA_SCROLLTHRESHOLD_DESC_FOR_TABLE_CONFIG=Tentukan Ambang Batas Gulir
446
446
 
447
- RTA_THRESHOLD_FOR_TABLE_CONFIG=Ambang
447
+ RTA_THRESHOLD_FOR_TABLE_CONFIG=Ambang Batas
448
448
 
449
449
  RTA_THRESHOLD_DESC_FOR_TABLE_CONFIG=Tentukan Ambang Batas
450
450
 
@@ -273,7 +273,7 @@ NOITEMS_LR_SMARTCHART=Non ci sono dati per i criteri filtro selezionati e view g
273
273
 
274
274
  NOITEMS_SMARTCHART_WITH_FILTER=DatiNonTrov;adatt.ParamFiltro.
275
275
 
276
- SMARTCHART_INITIAL_NODATA=Per iniziare, impostare i filtri e selezionare "Avvio".
276
+ SMARTCHART_INITIAL_NODATA=Per iniziare, imposta i filtri rilevanti e seleziona "Avvio".
277
277
 
278
278
  NOITEMS_LR_SMARTTABLE=Nessun dato trovato.
279
279
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  ST_GENERIC_DRAFT_WITH_ACTIVE_DOCUMENT_DELETED=\u0417\u043C\u0456\u043D\u0438 \u0432\u0456\u0434\u0445\u0438\u043B\u0435\u043D\u043E
3
3
 
4
- ST_GENERIC_DRAFT_WITHOUT_ACTIVE_DOCUMENT_DELETED=\u0427\u0435\u0440\u043D\u0435\u0442\u043A\u0443 \u0432\u0456\u0434\u0445\u0438\u043B\u0435\u043D\u043E
4
+ ST_GENERIC_DRAFT_WITHOUT_ACTIVE_DOCUMENT_DELETED=\u0427\u0435\u0440\u043D\u0435\u0442\u043A\u0443 \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u043E
5
5
 
6
6
  ST_GENERIC_UNKNOWN_NAVIGATION_TARGET=\u0426\u0456\u043B\u044C \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E.
7
7
 
@@ -113,7 +113,7 @@ ST_GENERIC_DELETE_TITLE_WITH_COUNT=\u5220\u9664 ({0})
113
113
 
114
114
  ST_GENERIC_LIST_TITLE=\u9879\u76EE
115
115
 
116
- ST_GENERIC_WARNING_TEXT=\u5C06\u4E0D\u4F1A\u5904\u7406\u6240\u9009\u9879\u76EE\u4E2D\u7684 {0} \u4E2A\u9879\u76EE\u3002
116
+ ST_GENERIC_WARNING_TEXT=\u6240\u9009\u9879\u76EE\u4E2D\u7684 {0} \u4E2A\u9879\u76EE\u5C06\u4E0D\u4F1A\u5904\u7406\u3002
117
117
 
118
118
  ST_GENERIC_DIALOG_CONTINUE_BUT=\u4ECD\u7136\u7EE7\u7EED
119
119
 
@@ -2212,25 +2212,6 @@ sap.ui.define(["sap/ui/base/Object",
2212
2212
  }) : Promise.reject();
2213
2213
  }
2214
2214
 
2215
- /**
2216
- * Calls state changer per each (template) component on url change.
2217
- * @param {Array<sap.suite.ui.generic.template.lib.StatePreserver>} aStateChangers array of StatePreserver instances
2218
- * @param {map} appStates map of appStates
2219
- * @param {boolean} bIsFCLMode optional, defined only in FLC
2220
- * @returns {boolean} returns true if url change can be handled by state changer,
2221
- * returns false in FCL, so the route-matched logic will continue as normal.
2222
- */
2223
- function fnGetIsStateChange(aStateChangers, appStates, bIsFCLMode) {
2224
- var bIsStateChangeResult = false;
2225
- for (var i = 0; i < aStateChangers.length; i++){
2226
- var oStateChanger = aStateChangers[i];
2227
- if (oStateChanger.isStateChange(appStates)){
2228
- bIsStateChangeResult = bIsFCLMode ? false : true;
2229
- }
2230
- }
2231
- return bIsStateChangeResult;
2232
- }
2233
-
2234
2215
  // Start: Handling url-changes
2235
2216
  /*
2236
2217
  * calls onActivate on the specified view, if it exists
@@ -2534,11 +2515,16 @@ sap.ui.define(["sap/ui/base/Object",
2534
2515
  fnNavigate(sTargetHash, true);
2535
2516
  return; // fnHandleRouteMatched will be called with the new url, so leave further processing to that call
2536
2517
  }
2537
- // State changers can interfere in FCL, for example between LR and OP when the search query is updated. In particular, it is necessary to skip the early return in FCL and display an error in case of 404.
2538
- // The last parameter will still trigger state changers (with possible side effects), but will never return true as a result.
2539
- var bIsStateChange = fnGetIsStateChange(oTemplateContract.aStateChangers, oCurrentIdentity.appStates, !!oTemplateContract.oFlexibleColumnLayoutHandler);
2540
2518
  // State changers may identify the hash change as something which can be handled by them internally. In this case we do not need to run the whole mechanism.
2541
2519
  // Since isStateChange is allowed to have side-effects we call all StateChangers.
2520
+ var bIsStateChange = false;
2521
+ for (var i = 0; i < oTemplateContract.aStateChangers.length; i++){
2522
+ var oStateChanger = oTemplateContract.aStateChangers[i];
2523
+ if (oStateChanger.isStateChange(oCurrentIdentity.appStates)){
2524
+ bIsStateChange = true;
2525
+ }
2526
+ }
2527
+
2542
2528
  if (bIsStateChange){
2543
2529
  oRoutingOptions = null;
2544
2530
  oCurrentHash.hash = sHash;
@@ -3123,8 +3109,7 @@ sap.ui.define(["sap/ui/base/Object",
3123
3109
  var fnPrepareHostView = testableHelper.testable(fnPrepareHostView, "prepareHostView");
3124
3110
  var fnPreloadComponent = testableHelper.testable(fnPreloadComponent, "preloadComponent");
3125
3111
  var fnGetRouteInfoByHash = testableHelper.testable(fnGetRouteInfoByHash, "getRouteInfoByHash");
3126
- var fnGetIsStateChange = testableHelper.testable(fnGetIsStateChange, "getIsStateChange");
3127
-
3112
+
3128
3113
  // Note: Function createHostView will be added by routingHelper.
3129
3114
  // Allow to mock this by unit tests
3130
3115
  testableHelper.testable(function(fnCreateHostView){
@@ -3221,7 +3206,7 @@ sap.ui.define(["sap/ui/base/Object",
3221
3206
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
3222
3207
  * @public
3223
3208
  * @extends sap.ui.base.Object
3224
- * @version 1.136.13
3209
+ * @version 1.136.14
3225
3210
  * @since 1.30.0
3226
3211
  * @alias sap.suite.ui.generic.template.lib.NavigationController
3227
3212
  */
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  interfaces: [],
67
67
  controls: [],
68
68
  elements: [],
69
- version: "1.136.13",
69
+ version: "1.136.14",
70
70
  extensions: {
71
71
  //Configuration used for rule loading of Support Assistant
72
72
  "sap.ui.support": {