@sapui5/sap.suite.ui.generic.template 1.108.43 → 1.108.45

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.108.43",
3
+ "version": "1.108.45",
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.108.43</version>
10
+ <version>1.108.45</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -735,46 +735,49 @@ sap.ui.define([
735
735
 
736
736
  // Logic to add cards to repository
737
737
  onAddCardsToRepository: function(oEvent){
738
- var oPresentationControlHandler = oState.oPresentationControlHandler;
739
- var oModel = oPresentationControlHandler.getModel();
740
- var sEntitySet = oPresentationControlHandler.getEntitySet();
741
- var oEntitySet = oModel.getMetaModel().getODataEntitySet(sEntitySet);
742
- var oEntityType = oModel.getMetaModel().getODataEntityType(oEntitySet.entityType);
743
- var oComponent = oController.getOwnerComponent();
744
- var oRb = oComponent.getModel("i18n").getResourceBundle();
745
- var bIsSimpleColumnsApplied = checkSimpleTableColumns(oEntityType);
746
- var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
747
- var tableFiltersActive = oTemplatePrivateModel.getProperty("/listReport/tableFiltersActive");
748
- if (oState.oSmartFilterbar.getUiState().getSemanticDates() || tableFiltersActive || !bIsSimpleColumnsApplied) {
749
- var oModel = new JSONModel({
750
- items: [
751
- {text: oRb.getText("ST_CARDS_INFO_TEXT_2")},
752
- {text: oRb.getText("ST_CARDS_INFO_TEXT_3")},
753
- {text: oRb.getText("ST_CARDS_INFO_TEXT_4")}
754
- ]
755
- });
756
- fnOpenCardMessagesDialog(oModel);
757
- } else {
758
- var oView = oController.getView();
759
- var oCardDefinition = {};
760
- oCardDefinition['currentControlHandler'] = oPresentationControlHandler;
761
- oCardDefinition['component'] = oComponent;
762
- oCardDefinition['view'] = oView;
763
- oCardDefinition['entitySet'] = oEntitySet;
764
- oCardDefinition['entityType'] = oEntityType;
765
- oCardDefinition['oSmartFilterbar'] = oState.oSmartFilterbar;
766
- var oInsightsInstance = oTemplatePrivateModel.getProperty("/listReport/oInsightsInstance");
767
- var vDraftState = oTemplatePrivateModel.getProperty("/listReport/vDraftState");
768
- if (vDraftState && Number(vDraftState)) {
769
- oCardDefinition['oFECustomFilterData'] = {
770
- "name": "IsActiveEntity",
771
- "value": vDraftState
772
- };
738
+ var oSource = oEvent.getSource();
739
+ oTemplateUtils.oServices.oApplication.performAfterSideEffectExecution(function(){
740
+ var oPresentationControlHandler = oState.oPresentationControlHandler;
741
+ var oModel = oPresentationControlHandler.getModel();
742
+ var sEntitySet = oPresentationControlHandler.getEntitySet();
743
+ var oEntitySet = oModel.getMetaModel().getODataEntitySet(sEntitySet);
744
+ var oEntityType = oModel.getMetaModel().getODataEntityType(oEntitySet.entityType);
745
+ var oComponent = oController.getOwnerComponent();
746
+ var oRb = oComponent.getModel("i18n").getResourceBundle();
747
+ var bIsSimpleColumnsApplied = checkSimpleTableColumns(oEntityType);
748
+ var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
749
+ var tableFiltersActive = oTemplatePrivateModel.getProperty("/listReport/tableFiltersActive");
750
+ if (oState.oSmartFilterbar.getUiState().getSemanticDates() || tableFiltersActive || !bIsSimpleColumnsApplied) {
751
+ var oModel = new JSONModel({
752
+ items: [
753
+ {text: oRb.getText("ST_CARDS_INFO_TEXT_2")},
754
+ {text: oRb.getText("ST_CARDS_INFO_TEXT_3")},
755
+ {text: oRb.getText("ST_CARDS_INFO_TEXT_4")}
756
+ ]
757
+ });
758
+ fnOpenCardMessagesDialog(oModel);
759
+ } else {
760
+ var oView = oController.getView();
761
+ var oCardDefinition = {};
762
+ oCardDefinition.currentControlHandler = oPresentationControlHandler;
763
+ oCardDefinition.component = oComponent;
764
+ oCardDefinition.view = oView;
765
+ oCardDefinition.entitySet = oEntitySet;
766
+ oCardDefinition.entityType = oEntityType;
767
+ oCardDefinition.oSmartFilterbar = oState.oSmartFilterbar;
768
+ var oInsightsInstance = oTemplatePrivateModel.getProperty("/listReport/oInsightsInstance");
769
+ var vDraftState = oTemplatePrivateModel.getProperty("/listReport/vDraftState");
770
+ if (vDraftState && Number(vDraftState)) {
771
+ oCardDefinition.oFECustomFilterData = {
772
+ name: "IsActiveEntity",
773
+ value: vDraftState
774
+ };
775
+ }
776
+ AddCardsHelper.showColumnsForCardGeneration(oCardDefinition, oSource, oTemplateUtils).then(function(oCardManifest){
777
+ oInsightsInstance.showCardPreview(oCardManifest);
778
+ });
773
779
  }
774
- AddCardsHelper.showColumnsForCardGeneration(oCardDefinition, oEvent.getSource()).then(function (oCardManifest){
775
- oInsightsInstance.showCardPreview(oCardManifest);
776
- });
777
- }
780
+ }, true);
778
781
  },
779
782
 
780
783
  onBeforeRebindChart: function (oEvent) {
@@ -59,9 +59,9 @@ GROUP=Seskupit
59
59
 
60
60
  COLUMNS=Sloupce
61
61
 
62
- SHOW_ACTIVE_ITEMS=Skr\u00FDt navrhovan\u00E9 hodnoty
62
+ SHOW_ACTIVE_ITEMS=Skr\u00FDt rozpracovan\u00E9 polo\u017Eky
63
63
 
64
- SHOW_ALL_ITEMS=Zobrazit navrhovan\u00E9 hodnoty
64
+ SHOW_ALL_ITEMS=Zobrazit rozpracovan\u00E9 polo\u017Eky
65
65
 
66
66
  MESSAGE_SINGLE_VALUE_L_FORM=Filtr "{0}" nen\u00ED relevantn\u00ED pro z\u00E1lo\u017Eku "{1}". Nastaven\u00ED tohoto filtru nem\u00E1 vliv na v\u00FDsledky.
67
67
 
@@ -67,7 +67,7 @@ MESSAGE_SINGLE_VALUE_L_FORM=O filtro "{0}" n\u00E3o \u00E9 relevante para a fich
67
67
 
68
68
  MESSAGE_SINGLE_VALUE_S_FORM=N\u00E3o \u00E9 poss\u00EDvel filtrar por "{0}" na ficha "{1}".
69
69
 
70
- MULTI_EDIT=Processar
70
+ MULTI_EDIT=Editar
71
71
 
72
72
  MULTI_EDIT_DIALOG_TITLE=Editar ({0})
73
73
 
@@ -160,7 +160,7 @@ OBJECT_CREATED=Objeto criado.
160
160
 
161
161
  DELETE_WITH_OBJECTINFO=Eliminar este objeto ({1} {2})?
162
162
 
163
- DELETE_WITH_OBJECTTITLE=Eliminar objeto {0}?
163
+ DELETE_WITH_OBJECTTITLE=Excluir objeto {0}?
164
164
 
165
165
  SHOW_SIDE_CONTENT=Exibir detalhes
166
166
 
@@ -856,7 +856,7 @@ sap.ui.define([
856
856
  * @extends sap.ui.core.UIComponent
857
857
  * @abstract
858
858
  * @author SAP SE
859
- * @version 1.108.43
859
+ * @version 1.108.45
860
860
  * @name sap.suite.ui.generic.template.lib.AppComponent
861
861
  */
862
862
  return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
@@ -103,26 +103,32 @@ sap.ui.define(["sap/ui/base/Object",
103
103
  }
104
104
 
105
105
  // Executes fnFunction as soon as all side-effects have been executed.
106
+ // Note that the execution of fnFunction is asynchronous even if no side-effects are executed.
106
107
  // If vBusyCheck is truthy the execution is supressed in case that the app is still busy.
107
108
  // If vBusyCheck is even a function, this function is called in case the app is still busy.
109
+ // Returns a Promise which is resolved when fnFunction was executed (and resolves to the return value of fnFunction).
110
+ // The Promise is rejected if execution of fnFunction was supressed.
108
111
  function fnPerformAfterSideEffectExecution(fnFunction, vBusyCheck){
112
+ return Promise.resolve().then(fnPerformAfterSideEffectExecutionImpl.bind(null, fnFunction, vBusyCheck));
113
+ }
114
+
115
+ // Like fnPerformAfterSideEffectExecution, but possibly synchronous
116
+ function fnPerformAfterSideEffectExecutionImpl(fnFunction, vBusyCheck){
109
117
  if (bIsWaitingForSideEffectExecution){
110
- return; // do not let two operation wait for side effect execution
118
+ return Promise.reject(); // do not let two operation wait for side effect execution
111
119
  }
112
120
  var aRunningSideEffectExecutions = oTemplateContract.aRunningSideEffectExecutions.filter(function(oEntry){return !!oEntry;});
113
121
  if (aRunningSideEffectExecutions.length){
114
122
  bIsWaitingForSideEffectExecution = true;
115
- Promise.all(aRunningSideEffectExecutions).then(function(){
123
+ return Promise.all(aRunningSideEffectExecutions).then(function(){
116
124
  bIsWaitingForSideEffectExecution = false;
117
- fnPerformAfterSideEffectExecution(fnFunction, vBusyCheck);
125
+ return fnPerformAfterSideEffectExecutionImpl(fnFunction, vBusyCheck);
118
126
  });
119
- } else if (vBusyCheck && oTemplateContract.oBusyHelper.isBusy()){
120
- if (typeof vBusyCheck === "function"){
121
- vBusyCheck();
122
- }
123
- } else {
124
- fnFunction();
125
127
  }
128
+ if (vBusyCheck && oTemplateContract.oBusyHelper.isBusy()){
129
+ return Promise.reject(typeof vBusyCheck === "function" ? vBusyCheck() : undefined);
130
+ }
131
+ return fnFunction();
126
132
  }
127
133
 
128
134
  function fnMakeBusyAware(oControl) {
@@ -27,13 +27,13 @@ ST_SUCCESS=Berhasil
27
27
 
28
28
  ST_CHANGES_APPLIED=Perubahan Anda telah diterapkan.
29
29
 
30
- DATA_LOSS_MESSAGE=Entri Anda akan hilang saat keluar dari halaman ini.
30
+ DATA_LOSS_MESSAGE=Entri Anda akan hilang jika Anda meninggalkan halaman ini.
31
31
 
32
32
  DATA_LOSS_GENERAL_MESSAGE=Entri Anda akan hilang jika melanjutkannya.
33
33
 
34
34
  PROCEED=Lanjutkan
35
35
 
36
- DATA_LOSS_LEAVE_BTN=Tinggalkan Halaman
36
+ DATA_LOSS_LEAVE_BTN=Keluar Halaman
37
37
 
38
38
  DATA_LOSS_DISCARD_CHANGES=Buang Perubahan
39
39
 
@@ -41,7 +41,7 @@ ST_KEEP_DRAFT_BTN=Simpan Konsep
41
41
 
42
42
  ST_DISCARD_DRAFT_BTN=Buang Konsep
43
43
 
44
- ST_UNSAVED_CHANGES_TITLE=Perubahan Belum Tersimpan
44
+ ST_UNSAVED_CHANGES_TITLE=Perubahan Belum Disimpan
45
45
 
46
46
  ST_STREAM_OPEN_FILE=Buka File
47
47
 
@@ -244,7 +244,7 @@ ST_GENERIC_DELETE_SELECTED=Eliminar este objeto?
244
244
 
245
245
  DELETE_WITH_OBJECTINFO=Eliminar este objeto ({1} {2})?
246
246
 
247
- DELETE_WITH_OBJECTTITLE=Eliminar objeto {0}?
247
+ DELETE_WITH_OBJECTTITLE=Excluir objeto {0}?
248
248
 
249
249
  ST_GENERIC_OBJECT_DELETED=O objeto foi exclu\u00EDdo.
250
250
 
@@ -2981,7 +2981,7 @@ sap.ui.define(["sap/ui/base/Object",
2981
2981
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
2982
2982
  * @public
2983
2983
  * @extends sap.ui.base.Object
2984
- * @version 1.108.43
2984
+ * @version 1.108.45
2985
2985
  * @since 1.30.0
2986
2986
  * @alias sap.suite.ui.generic.template.lib.NavigationController
2987
2987
  */
@@ -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.108.43",
41
+ version: "1.108.45",
42
42
  extensions: {
43
43
  //Configuration used for rule loading of Support Assistant
44
44
  "sap.ui.support": {