@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 +1 -1
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +42 -39
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/Application.js +15 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -735,46 +735,49 @@ sap.ui.define([
|
|
|
735
735
|
|
|
736
736
|
// Logic to add cards to repository
|
|
737
737
|
onAddCardsToRepository: function(oEvent){
|
|
738
|
-
var
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
var
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
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
|
-
|
|
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
|
|
62
|
+
SHOW_ACTIVE_ITEMS=Skr\u00FDt rozpracovan\u00E9 polo\u017Eky
|
|
63
63
|
|
|
64
|
-
SHOW_ALL_ITEMS=Zobrazit
|
|
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=
|
|
70
|
+
MULTI_EDIT=Editar
|
|
71
71
|
|
|
72
72
|
MULTI_EDIT_DIALOG_TITLE=Editar ({0})
|
|
73
73
|
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
|
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=
|
|
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
|
|
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=
|
|
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.
|
|
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.
|
|
41
|
+
version: "1.108.45",
|
|
42
42
|
extensions: {
|
|
43
43
|
//Configuration used for rule loading of Support Assistant
|
|
44
44
|
"sap.ui.support": {
|