@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.133.1
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 +2 -2
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +0 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +7 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +3 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +11 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +82 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +55 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +74 -17
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +22 -11
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +142 -38
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +43 -19
- package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +18 -18
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +19 -16
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +10 -7
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +32 -44
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +47 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
- package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +3 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +15 -19
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +3 -0
- package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +2 -3
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +13 -1
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +41 -36
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +5 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +11 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +9 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +92 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +3 -0
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/base/i18n/Formatting",
|
|
3
|
+
"sap/ui/core/Locale",
|
|
4
|
+
"sap/ui/core/format/DateFormat",
|
|
5
|
+
"sap/ui/core/format/NumberFormat",
|
|
6
|
+
"sap/ui/core/message/MessageType",
|
|
7
|
+
"sap/m/RatingIndicator",
|
|
8
|
+
"sap/suite/ui/generic/template/genericUtilities/FeLogger",
|
|
9
|
+
"sap/suite/ui/generic/template/genericUtilities/testableHelper",
|
|
10
|
+
"sap/suite/ui/generic/template/genericUtilities/utils"
|
|
11
|
+
], function (
|
|
12
|
+
Formatting,
|
|
13
|
+
Locale,
|
|
14
|
+
DateFormat,
|
|
15
|
+
NumberFormat,
|
|
16
|
+
MessageType,
|
|
17
|
+
RatingIndicator,
|
|
18
|
+
FeLogger,
|
|
19
|
+
testableHelper,
|
|
20
|
+
utils
|
|
21
|
+
) {
|
|
3
22
|
"use strict";
|
|
4
23
|
|
|
5
24
|
var oLogger = new FeLogger("js.RuntimeFormatters").getLogger();
|
|
@@ -89,6 +108,34 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
89
108
|
return "None";
|
|
90
109
|
}
|
|
91
110
|
|
|
111
|
+
/** Utility methods */
|
|
112
|
+
var oLocale;
|
|
113
|
+
var oCurrencyFormatter;
|
|
114
|
+
var oDateTimeFormatter;
|
|
115
|
+
|
|
116
|
+
function getFormatLocale() {
|
|
117
|
+
if (!oLocale) {
|
|
118
|
+
oLocale = new Locale(Formatting.getLanguageTag());
|
|
119
|
+
}
|
|
120
|
+
return oLocale;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
function getCurrencyFormatter() {
|
|
125
|
+
if (!oCurrencyFormatter) {
|
|
126
|
+
oCurrencyFormatter = NumberFormat.getCurrencyInstance();
|
|
127
|
+
}
|
|
128
|
+
return oCurrencyFormatter;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
function getDateTimeFormatter() {
|
|
133
|
+
if (!oDateTimeFormatter) {
|
|
134
|
+
oDateTimeFormatter = DateFormat.getDateTimeInstance();
|
|
135
|
+
}
|
|
136
|
+
return oDateTimeFormatter;
|
|
137
|
+
}
|
|
138
|
+
|
|
92
139
|
// Expose selected private static functions to unit tests
|
|
93
140
|
/* eslint-disable */
|
|
94
141
|
var getLineItemQualifier = testableHelper.testableStatic(getLineItemQualifier, "RuntimeFormatters_getLineItemQualifier");
|
|
@@ -167,29 +214,25 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
167
214
|
// ii. if the Property TargetValue is not a Path (i.e. 'Decimal') then we get the value from the control's Custom Data
|
|
168
215
|
// iii. if neither i. or ii. apply then we use the default max value for the sap.m.RatingIndicator control
|
|
169
216
|
formatRatingIndicatorFooterText: function (value, targetValue) {
|
|
170
|
-
if (value) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
}
|
|
217
|
+
if (!value) {
|
|
218
|
+
return "";
|
|
219
|
+
}
|
|
220
|
+
var oResBundle = this.getModel("i18n").getResourceBundle();
|
|
221
|
+
targetValue = targetValue
|
|
222
|
+
|| this.data("Footer")
|
|
223
|
+
|| RatingIndicator.getMetadata().getPropertyDefaults().maxValue;
|
|
224
|
+
|
|
225
|
+
return oResBundle.getText("RATING_INDICATOR_FOOTER", [value, targetValue]);
|
|
181
226
|
},
|
|
182
227
|
|
|
183
228
|
// returns the text for the Rating Indicator aggregated count (e.g. (243))
|
|
184
|
-
formatRatingIndicatorAggregateCount: function (
|
|
229
|
+
formatRatingIndicatorAggregateCount: function (vValue) {
|
|
185
230
|
var oResBundle = this.getModel("i18n").getResourceBundle();
|
|
186
|
-
var sText;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
sText = oResBundle.getText("RATING_INDICATOR_AGGREGATE_COUNT", [
|
|
191
|
-
} else {
|
|
192
|
-
sText = "";
|
|
231
|
+
var sText = "";
|
|
232
|
+
// If the input value is not provided, try to get value from "AggregateCount" custom data
|
|
233
|
+
vValue = vValue || this.data("AggregateCount");
|
|
234
|
+
if (vValue) {
|
|
235
|
+
sText = oResBundle.getText("RATING_INDICATOR_AGGREGATE_COUNT", [vValue]);
|
|
193
236
|
}
|
|
194
237
|
|
|
195
238
|
return sText;
|
|
@@ -213,7 +256,7 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
213
256
|
var oControl = this;
|
|
214
257
|
var oResourceBundle = oControl.getModel("i18n").getResourceBundle();
|
|
215
258
|
var aCustomData = oControl.getCustomData();
|
|
216
|
-
var oLocale =
|
|
259
|
+
var oLocale = getFormatLocale();
|
|
217
260
|
sValue = NumberFormat.getInstance(oLocale).format(sValue);
|
|
218
261
|
sTarget = sTarget || aCustomData.filter(function (oObject) {
|
|
219
262
|
if (oObject.getKey() === "Target") {
|
|
@@ -252,6 +295,19 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
252
295
|
}
|
|
253
296
|
|
|
254
297
|
return sDisplayValue;
|
|
298
|
+
},
|
|
299
|
+
formatDate: function (oDate) {
|
|
300
|
+
return getDateTimeFormatter().format(oDate);
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
* Formats the given amount and currency
|
|
304
|
+
*
|
|
305
|
+
* @param {number|string} vAmount
|
|
306
|
+
* @param {string} sCurrency
|
|
307
|
+
* @returns {string}
|
|
308
|
+
*/
|
|
309
|
+
formatCurrency: function (vAmount, sCurrency) {
|
|
310
|
+
return getCurrencyFormatter().format(vAmount, sCurrency);
|
|
255
311
|
}
|
|
256
312
|
};
|
|
257
313
|
|
|
@@ -951,7 +951,7 @@ sap.ui.define([
|
|
|
951
951
|
* @public
|
|
952
952
|
* @extends sap.ui.core.UIComponent
|
|
953
953
|
* @author SAP SE
|
|
954
|
-
* @version 1.
|
|
954
|
+
* @version 1.133.1
|
|
955
955
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
956
956
|
*/
|
|
957
957
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
sap.ui.define(["sap/ui/base/Object", "sap/ui/model/Filter", "sap/ui/model/FilterOperator", "sap/base/util/extend", "sap/suite/ui/generic/template/lib/MessageUtils", "sap/ui/model/json/JSONModel",
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
"sap/suite/ui/generic/template/genericUtilities/controlHelper", "sap/ui/core/message/MessageType",
|
|
14
|
+
"sap/suite/ui/generic/template/genericUtilities/FeLogger"
|
|
15
|
+
], function(BaseObject, Filter, FilterOperator, extend, MessageUtils, JSONModel, controlHelper, MessageType, FeLogger) {
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
18
|
+
var oFeLogger = new FeLogger("lib.CRUDActionHandler");
|
|
19
|
+
var oLogger = oFeLogger.getLogger();
|
|
20
|
+
oLogger.setLevel(oFeLogger.Level.ALL);
|
|
21
|
+
|
|
17
22
|
// A Filter that filters for messages that are at least of severity warning
|
|
18
23
|
var oAtLeastWarningFilter = new Filter({
|
|
19
24
|
filters: [new Filter({
|
|
@@ -229,7 +234,11 @@
|
|
|
229
234
|
// Performs an Activate/Save resp. Apply operation when all prerequisites are given
|
|
230
235
|
function fnPrepareAndRunSaveOperation(bIsActivation, fnOperation){
|
|
231
236
|
oTemplateContract.oApplicationProxy.performAfterSideEffectExecution(function(){
|
|
232
|
-
fnBeforeOperation(bIsActivation)
|
|
237
|
+
fnBeforeOperation(bIsActivation)
|
|
238
|
+
.then(fnOperation)
|
|
239
|
+
.catch(function(){
|
|
240
|
+
oLogger.info("Can't proceed with 'Save' as 'fnBeforeOperation' checks have failed");
|
|
241
|
+
});
|
|
233
242
|
}, true);
|
|
234
243
|
}
|
|
235
244
|
|
|
@@ -984,7 +984,16 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
984
984
|
onSemanticObjectLinkNavigationPressed : oController._templateEventHandlers.onSemanticObjectLinkNavigationPressed.bind(oController._templateEventHandlers),
|
|
985
985
|
onDataFieldWithIntentBasedNavigation : oController._templateEventHandlers.onDataFieldWithIntentBasedNavigation.bind(oController._templateEventHandlers),
|
|
986
986
|
onDataFieldWithEmail: oController._templateEventHandlers.onDataFieldWithEmail.bind(oController._templateEventHandlers),
|
|
987
|
-
onTeamsCollabOptionPress: onTeamsCollabOptionPress.bind(this)
|
|
987
|
+
onTeamsCollabOptionPress: onTeamsCollabOptionPress.bind(this),
|
|
988
|
+
onContactDetails: onContactDetails.bind(this),
|
|
989
|
+
// Ignoring the below events since quick view forms don't handle side effects. Handle them if support is added in the future.
|
|
990
|
+
onSmartFieldModeToggled: Function.prototype,
|
|
991
|
+
onSmartFieldModelValueChanged: Function.prototype,
|
|
992
|
+
// Ignoring this event as SmartMultiInput isn't rendered in the quick view smart form.
|
|
993
|
+
submitChangesForSmartMultiInput: Function.prototype,
|
|
994
|
+
// Handle the event only if it's supported in the current floor plan.
|
|
995
|
+
onDataFieldWithNavigationPath: oController._templateEventHandlers.onDataFieldWithNavigationPath?.bind(oController._templateEventHandlers) || Function.prototype,
|
|
996
|
+
onSmartFieldPress: oController._templateEventHandlers.onSmartFieldPress?.bind(oController._templateEventHandlers) || Function.prototype
|
|
988
997
|
},
|
|
989
998
|
onInit : function() {},
|
|
990
999
|
onExit : function() {},
|
|
@@ -1098,6 +1107,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1098
1107
|
oMainNavigation.setDescription(oTexts.secondText);
|
|
1099
1108
|
}
|
|
1100
1109
|
sTitle = oTexts.firstText;
|
|
1110
|
+
if (sTextArrangement && oTexts.secondText) {
|
|
1111
|
+
sTitle = oTexts.firstText + " " + oTexts.secondText;
|
|
1112
|
+
}
|
|
1101
1113
|
}
|
|
1102
1114
|
}
|
|
1103
1115
|
fnRenderTeamsCollabOptionsOnContactCard(oEntityType, oEventParameters, aTeamsCollabOptions, oControl, sControlBindingContextPath);
|
|
@@ -263,7 +263,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
263
263
|
var iEntitySetName = sSmartControlId.indexOf("::" + oComponent.getEntitySet() + "--") + 2; //Ensure only Entity set is picked up for processing
|
|
264
264
|
var sI18nKey = sSmartControlId.substring(iEntitySetName, sSmartControlId.lastIndexOf("::")),
|
|
265
265
|
sI18nKey = sI18nKey.replace(/--/g, "|").replace(/::/g, "|"); //sId = "STTA_C_MP_Product|to_ProductText|com.sap.vocabularies.UI.v1.LineItem"
|
|
266
|
-
|
|
266
|
+
|
|
267
267
|
return sI18nKey;
|
|
268
268
|
}
|
|
269
269
|
|
|
@@ -311,9 +311,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
311
311
|
|
|
312
312
|
/*
|
|
313
313
|
* Sets the enabled value for Toolbar buttons
|
|
314
|
-
*
|
|
315
|
-
* Currently, the property applicablePath (resp. sap:applicable-path) is only evaluated for buttons in header and
|
|
316
|
-
* footer (influencing the visibility) and for toolbar buttons which require a context (influencing the enablement).
|
|
314
|
+
*
|
|
315
|
+
* Currently, the property applicablePath (resp. sap:applicable-path) is only evaluated for buttons in header and
|
|
316
|
+
* footer (influencing the visibility) and for toolbar buttons which require a context (influencing the enablement).
|
|
317
317
|
* For static toolbar buttons (i.e. toolbar buttons that do not require a selection) the property is ignored.
|
|
318
318
|
* TO DO : make sure the properties applicablePath/sap:applicable-path influence the visibility of static toolbar buttons as well
|
|
319
319
|
*
|
|
@@ -368,11 +368,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
368
368
|
oComponentUtils.getTemplatePrivateModel().setProperty("/listReport/multiEditEnabled", aContexts.filter(fnIsContextEditable).length > 0);
|
|
369
369
|
}
|
|
370
370
|
if (oEnabledPromise){
|
|
371
|
-
// check if "enabled" is bound to the path '/generic/controlProperties/' in the model - otherwise it's bound to another path or has a hard coded true/false
|
|
371
|
+
// check if "enabled" is bound to the path '/generic/controlProperties/' in the model - otherwise it's bound to another path or has a hard coded true/false
|
|
372
372
|
if (oEnabledPromise && !/generic\/controlProperties/.test(oButton.getBindingPath("enabled"))) {
|
|
373
373
|
oEnabledPromise = null;
|
|
374
374
|
bEnabled = oButton.getEnabled();
|
|
375
|
-
}
|
|
375
|
+
}
|
|
376
376
|
}
|
|
377
377
|
return {
|
|
378
378
|
enabledPromise: oEnabledPromise,
|
|
@@ -568,21 +568,21 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
568
568
|
// This method is invoked twice in ALP. Once for smart table and once again for smart chart.
|
|
569
569
|
// In the first iteration (smart table actions), the calculated enablement value is stored on "mBreakoutActionEnabled".
|
|
570
570
|
// In the second iteration (smart chart actions), the enablement should be calculated only for the chart actions (oBreakoutAction.filter = "chart").
|
|
571
|
-
// As the previously calculated value for the table actions should be retained, the value stored on "mBreakoutActionEnabled" is used as the default value.
|
|
571
|
+
// As the previously calculated value for the table actions should be retained, the value stored on "mBreakoutActionEnabled" is used as the default value.
|
|
572
572
|
var bDefaultValue = !bIsAnalyticalListPage || !!mBreakOutActionEnabled[sControlId].enabled;
|
|
573
573
|
var bEnabled = fnIsBreakoutActionEnabled(oBreakoutAction, aContexts, oModel, oControl, bDefaultValue, bIsAnalyticalListPage);
|
|
574
|
-
|
|
574
|
+
|
|
575
575
|
mBreakOutActionEnabled[sControlId] = {
|
|
576
576
|
enabled: bEnabled
|
|
577
|
-
};
|
|
577
|
+
};
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
|
|
580
580
|
/**
|
|
581
581
|
* This method analyzes the applicable contexts and tells whether the breakout action should be enabled.
|
|
582
|
-
*
|
|
583
|
-
* If the context based analysis is not required (i.e the action doesn't require selection),
|
|
582
|
+
*
|
|
583
|
+
* If the context based analysis is not required (i.e the action doesn't require selection),
|
|
584
584
|
* it will simply return the default value <code>bDefaultValue</code>.
|
|
585
|
-
*
|
|
585
|
+
*
|
|
586
586
|
* @param {object} oBreakoutAction Manifest information about the breakout action
|
|
587
587
|
* @param {Array<sap.ui.model.Context>} aContexts Applicable contexts
|
|
588
588
|
* @param {sap.ui.model.Model} oModel Model of the smart control
|
|
@@ -603,14 +603,14 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
603
603
|
// check if applicablePath is true for this context
|
|
604
604
|
var oObject = oModel.getObject(oContext.getPath() + oApplicablePathInfo.navigationPath);
|
|
605
605
|
return oObject[oApplicablePathInfo.property] === true;
|
|
606
|
-
});
|
|
606
|
+
});
|
|
607
607
|
} else {
|
|
608
608
|
bEnabled = bEnabled || (bFilterIsChart ? controlHelper.isSmartChart(oControl) : controlHelper.isSmartTable(oControl));
|
|
609
609
|
}
|
|
610
610
|
} else if (controlHelper.isSmartChart(oControl)) {
|
|
611
611
|
//table button chart ondata received
|
|
612
612
|
// For LR/OP, directly evaluate the drill stack filters and enable the action accordingly.
|
|
613
|
-
// For ALP, evaluate the drill stack filters only when oBreakoutAction.filter is "chart" and skip the evaluation for table based actions.
|
|
613
|
+
// For ALP, evaluate the drill stack filters only when oBreakoutAction.filter is "chart" and skip the evaluation for table based actions.
|
|
614
614
|
if (!bIsAnalyticalListPage || bFilterIsChart) {
|
|
615
615
|
// If enabled Selection is made on the chart but drilldown is performed later.
|
|
616
616
|
bEnabled = oControl.getDrillStackFilters().length > 0;
|
|
@@ -621,7 +621,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return bEnabled;
|
|
624
|
-
|
|
624
|
+
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
function fnUpdateBreakoutEnablement(mBreakOutActionEnabled, mBreakoutActions, aContexts, oModel, sSelectedTabKey, oControl) {
|
|
@@ -853,13 +853,13 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
853
853
|
|
|
854
854
|
/**
|
|
855
855
|
* Provides the Navigation Context about the smart link clicked by the user
|
|
856
|
-
*
|
|
856
|
+
*
|
|
857
857
|
* @param {Array} aKeys - Array of Navigation Key Properties Object
|
|
858
858
|
* @param {object} oResponse - response of oDataModel's GET request
|
|
859
859
|
* @returns {string} route string for Context Navigation
|
|
860
860
|
* @private
|
|
861
861
|
*/
|
|
862
|
-
|
|
862
|
+
|
|
863
863
|
function fnMergeNavigationKeyPropertiesWithValues(aKeys, oResponse) {
|
|
864
864
|
var sKeySeparator, sRoute;
|
|
865
865
|
for (var i = 0, ilength = aKeys.length; i < ilength; i++) {
|
|
@@ -929,7 +929,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
929
929
|
|
|
930
930
|
/**
|
|
931
931
|
* Provides the information about the smart link clicked by user
|
|
932
|
-
*
|
|
932
|
+
*
|
|
933
933
|
* @param {*} oEvent beforePopoverOpens event
|
|
934
934
|
* @returns {object} oSourceInfo - object contains the smart link info
|
|
935
935
|
* oSourceInfo.smartLink - The clicked smart link
|
|
@@ -941,9 +941,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
941
941
|
oSmartLink = Element.getElementById(sSmartLinkId),
|
|
942
942
|
oOwnerControl = getOwnerControl(oSmartLink, true),
|
|
943
943
|
oSourceInfo = Object.create(null);
|
|
944
|
-
|
|
944
|
+
|
|
945
945
|
oSourceInfo.smartLink = oSmartLink;
|
|
946
|
-
|
|
946
|
+
|
|
947
947
|
if (controlHelper.isSmartTable(oOwnerControl)) {
|
|
948
948
|
var oSmartTableHandler = oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oOwnerControl);
|
|
949
949
|
oSourceInfo.smartTable = oOwnerControl;
|
|
@@ -1026,7 +1026,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1026
1026
|
// call extension
|
|
1027
1027
|
oController.adaptNavigationParameterExtension(oSelectionVariant, oObjectInfo);
|
|
1028
1028
|
sSelectionVariantPrepared = oSelectionVariant.toJSONString();
|
|
1029
|
-
}
|
|
1029
|
+
}
|
|
1030
1030
|
delete oEventParameters.semanticAttributes;
|
|
1031
1031
|
oNavigationHandler.processBeforeSmartLinkPopoverOpens(oEventParameters, sSelectionVariantPrepared);
|
|
1032
1032
|
}
|
|
@@ -1050,7 +1050,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1050
1050
|
var sOwnerComponentEntitySet = oController.getOwnerComponent().getEntitySet();
|
|
1051
1051
|
if (controlHelper.isSemanticObjectController(oControl) || controlHelper.isSmartTable(oControl)) {
|
|
1052
1052
|
sControlEntitySet = oControl.getEntitySet();
|
|
1053
|
-
} else {
|
|
1053
|
+
} else {
|
|
1054
1054
|
// When navigation from table is triggered from an OP Table, oControl is not a smart table but a link or a button in the table.
|
|
1055
1055
|
var oOwnerControl = getOwnerControl(oControl);
|
|
1056
1056
|
var oParentControl = oOwnerControl && oOwnerControl.getParent();
|
|
@@ -1112,7 +1112,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1112
1112
|
fnHandleMandatoryField("HasActiveEntity");
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
|
|
1115
|
+
|
|
1116
1116
|
function isMultiViewMultiEntity() {
|
|
1117
1117
|
return !!(oComponentUtils && oComponentUtils.getSettings() && oComponentUtils.getSettings().quickVariantSelectionX);
|
|
1118
1118
|
}
|
|
@@ -1437,7 +1437,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1437
1437
|
// add the value to the model
|
|
1438
1438
|
var sSemObj = aInternalLinks[j].semanticObject;
|
|
1439
1439
|
var sAction = aInternalLinks[j].action;
|
|
1440
|
-
|
|
1440
|
+
|
|
1441
1441
|
var oSemObjProp = oTemplatePrivateModel.getProperty("/generic/supportedIntents/" + sSemObj); if (!oSemObjProp) { // no semantic object in the model yet
|
|
1442
1442
|
oSupportedIntents[sSemObj] = {};
|
|
1443
1443
|
oSupportedIntents[sSemObj][sAction] =
|
|
@@ -1458,7 +1458,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1458
1458
|
});
|
|
1459
1459
|
});
|
|
1460
1460
|
});
|
|
1461
|
-
|
|
1461
|
+
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
1464
|
|
|
@@ -1632,10 +1632,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
1634
|
/**
|
|
1635
|
-
* While exporting data from a table, this function removes the technical properties
|
|
1636
|
-
* (like "IsActiveEntity", "HasActiveEntity") and adds the actual value of "Editing Status" select box
|
|
1637
|
-
* into the exported file.
|
|
1638
|
-
*
|
|
1635
|
+
* While exporting data from a table, this function removes the technical properties
|
|
1636
|
+
* (like "IsActiveEntity", "HasActiveEntity") and adds the actual value of "Editing Status" select box
|
|
1637
|
+
* into the exported file.
|
|
1638
|
+
*
|
|
1639
1639
|
* @param {sap.ui.export.util.Filter[]} aFilterSettings Filters in the exported file
|
|
1640
1640
|
*/
|
|
1641
1641
|
function fnTransformTechnicalPropsOnExportedFile (aFilterSettings) {
|
|
@@ -1650,7 +1650,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1650
1650
|
// Find the technical props for the selected draft state value
|
|
1651
1651
|
var sDraftStateValue = oEditStateControl.getSelectedKey(),
|
|
1652
1652
|
aTechnicalProps = oDraftStateToTechnicalProps[sDraftStateValue];
|
|
1653
|
-
|
|
1653
|
+
|
|
1654
1654
|
aTechnicalProps.forEach(function (oTechnicalProp){
|
|
1655
1655
|
// Find the index of filter settings to be removed
|
|
1656
1656
|
var iIndexOfFilterSettingsToBeRemoved = aFilterSettings.findIndex(function (oFilterSettings){
|
|
@@ -1664,7 +1664,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1664
1664
|
aFilterSettings.splice(iIndexOfFilterSettingsToBeRemoved, 1);
|
|
1665
1665
|
}
|
|
1666
1666
|
});
|
|
1667
|
-
|
|
1667
|
+
|
|
1668
1668
|
//Create a new filter with the value retrieved from "editStateFilter" select control
|
|
1669
1669
|
var sEditStateLabel = oEditStateControl.getLabels().at(0).getText(),
|
|
1670
1670
|
sEditStateValue = oEditStateControl.getSelectedItem().getText(),
|
|
@@ -1676,9 +1676,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
1678
|
/**
|
|
1679
|
-
* This method reads the values of analytical parameters from the smart filter bar
|
|
1679
|
+
* This method reads the values of analytical parameters from the smart filter bar
|
|
1680
1680
|
* and adds them to the list of filters in the exported file
|
|
1681
|
-
*
|
|
1681
|
+
*
|
|
1682
1682
|
* @param {sap.ui.comp.smarttable.SmartTable} oSmartTable The smart table which has the data to be exported
|
|
1683
1683
|
* @param {sap.ui.export.util.Filter[]} aFilterSettings Current filters in the exported file
|
|
1684
1684
|
*/
|
|
@@ -1780,7 +1780,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1780
1780
|
}, fnReject);
|
|
1781
1781
|
});
|
|
1782
1782
|
};
|
|
1783
|
-
|
|
1783
|
+
|
|
1784
1784
|
var fnIsFieldModified = function(oSourceControl) {
|
|
1785
1785
|
var oInnerControl = oSourceControl.getFirstInnerControl && oSourceControl.getFirstInnerControl();
|
|
1786
1786
|
if (oInnerControl.getValue() !== oInnerControl.getLastValue()) {
|
|
@@ -1805,7 +1805,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1805
1805
|
if (!fnIsFieldModified(oSourceControl)) {
|
|
1806
1806
|
mAdditionalParameters.callPreparationOnly = true;
|
|
1807
1807
|
}
|
|
1808
|
-
fnCallExecuteSideEffect();
|
|
1808
|
+
fnCallExecuteSideEffect();
|
|
1809
1809
|
// Resolve the promise and exit the loop for Inactive transient row
|
|
1810
1810
|
return fnResolve();
|
|
1811
1811
|
}
|
|
@@ -2006,6 +2006,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2006
2006
|
var bSetToDirty = oResponseContext && (!oResponse.actionContext || sResponseContextPath !== oResponse.actionContext.getPath());
|
|
2007
2007
|
if (bSetToDirty) {
|
|
2008
2008
|
oServices.oViewDependencyHelper.setMeToDirty(oController.getOwnerComponent(), sEntitySet, false, sResponseContextPath === "/undefined" || aContexts.length > 1);
|
|
2009
|
+
if (oCustomData.ActionType === "determining") {
|
|
2010
|
+
// Determining action detected. This type of action can activate draft.
|
|
2011
|
+
// As activated draft is different object it also necessary to refresh parent page (LR).
|
|
2012
|
+
oServices.oViewDependencyHelper.setParentToDirty(oController.getOwnerComponent(), sEntitySet, 1);
|
|
2013
|
+
}
|
|
2009
2014
|
}
|
|
2010
2015
|
}
|
|
2011
2016
|
});
|
|
@@ -81,6 +81,10 @@ sap.ui.define([
|
|
|
81
81
|
var sRet = (bIsPopoverOpen && sMsgId && aControlIds && oCurrentMessageSupportFunctions) ? oCurrentMessageSupportFunctions.getSubtitle(sMsgId, sAdditionalText) : sAdditionalText;
|
|
82
82
|
return sRet;
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
function getDescription(sMsgId, aControlIds, sAdditionalText, bIsPopoverOpen){
|
|
86
|
+
return (bIsPopoverOpen && sMsgId && aControlIds && oCurrentMessageSupportFunctions) ? oCurrentMessageSupportFunctions.getDescription(sMsgId, sAdditionalText) : sAdditionalText;
|
|
87
|
+
}
|
|
84
88
|
|
|
85
89
|
// function that determines whether we are currently in the Non-draft create case
|
|
86
90
|
var getIsNonDraftCreate = (bIsODataBased && !bIsDraftEnabled) ? oUiModel.getProperty.bind(oUiModel, "/createMode") : function(){ return false; };
|
|
@@ -101,8 +105,10 @@ sap.ui.define([
|
|
|
101
105
|
ErrorExplanationHelper.generateErrorExplanation(oEvent, oController, oTemplateUtils);
|
|
102
106
|
},
|
|
103
107
|
getSubtitle: getSubtitle,
|
|
108
|
+
getDescription: getDescription,
|
|
104
109
|
titlePressed: function (oEvent) { // the user wants to navigate from the message to the corresponding control
|
|
105
110
|
MessageUtils.navigateFromMessageTitleEvent(oTemplateUtils, oEvent, oComponent, bIsDraftEnabled, sCurrentBindingPath);
|
|
111
|
+
oMessagePopover.close();
|
|
106
112
|
}
|
|
107
113
|
}).then(function (oMPopover) {
|
|
108
114
|
oMessagePopover = oMPopover;
|
|
@@ -79,7 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
|
|
80
80
|
// This is the public method that can be used to set or remove the message which is currently displayed for a tab or a collection of tabs.
|
|
81
81
|
// oMessage: The object which represents the message that should currently be displayed. If it is faulty no message should be shown for the specified tabs.
|
|
82
|
-
// Otherwise it should be an object containing properties message (text of the message) and type (instance of sap
|
|
82
|
+
// Otherwise it should be an object containing properties message (text of the message) and type (instance of sap/ui/core/message/MessageType).
|
|
83
83
|
// vTab: Specifies the affected tabs: faulty -> all tabs affected, string -> identifies the affected tab, array -> lists the affected tabs
|
|
84
84
|
// If more than one tab is specified in this way these tabs will be considered to belong together for the close feature of the message strip.
|
|
85
85
|
// This means, that the message will be removed for all these tabs when the user closes the message strip.
|
|
@@ -3,6 +3,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3
3
|
"sap/base/i18n/Formatting",
|
|
4
4
|
"sap/m/Button",
|
|
5
5
|
"sap/m/Dialog",
|
|
6
|
+
"sap/m/IllustratedMessageType",
|
|
6
7
|
"sap/m/ProgressIndicator",
|
|
7
8
|
"sap/m/Text",
|
|
8
9
|
"sap/m/library",
|
|
@@ -13,7 +14,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
13
14
|
"sap/ui/model/FilterOperator",
|
|
14
15
|
"sap/ui/model/json/JSONModel",
|
|
15
16
|
"sap/suite/ui/generic/template/genericUtilities/testableHelper"
|
|
16
|
-
], function (BaseObject, extend, Formatting, Button, Dialog, ProgressIndicator, Text, mobileLibrary, DateFormat, coreLibrary,
|
|
17
|
+
], function (BaseObject, extend, Formatting, Button, Dialog, IllustratedMessageType, ProgressIndicator, Text, mobileLibrary, DateFormat, coreLibrary,
|
|
17
18
|
Messaging, Filter, FilterOperator, JSONModel, testableHelper) {
|
|
18
19
|
"use strict";
|
|
19
20
|
|
|
@@ -63,8 +64,6 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
63
64
|
var ButtonType = mobileLibrary.ButtonType;
|
|
64
65
|
// Shortcut for sap.m.DialogType
|
|
65
66
|
var DialogType = mobileLibrary.DialogType;
|
|
66
|
-
// Shortcut for sap.m.IllustratedMessageType
|
|
67
|
-
var IllustratedMessageType = mobileLibrary.IllustratedMessageType;
|
|
68
67
|
// Shortcut for sap.ui.core.ValueState
|
|
69
68
|
var ValueState = coreLibrary.ValueState;
|
|
70
69
|
// Shortcut for getting i18n text
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
sap.ui.define([
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/core/mvc/ViewType",
|
|
2
3
|
"sap/ui/core/Component",
|
|
3
4
|
"sap/ui/core/UIComponent",
|
|
4
5
|
"sap/ui/model/json/JSONModel",
|
|
@@ -18,7 +19,7 @@ sap.ui.define(["sap/ui/core/library",
|
|
|
18
19
|
"sap/m/IllustratedMessageType",
|
|
19
20
|
"sap/ui/core/Element"
|
|
20
21
|
], function (
|
|
21
|
-
|
|
22
|
+
ViewType,
|
|
22
23
|
Component,
|
|
23
24
|
UIComponent,
|
|
24
25
|
JSONModel,
|
|
@@ -41,8 +42,6 @@ sap.ui.define(["sap/ui/core/library",
|
|
|
41
42
|
"use strict";
|
|
42
43
|
var sClassName = "lib.TemplateComponent";
|
|
43
44
|
var oLogger = new FeLogger(sClassName).getLogger();
|
|
44
|
-
// shortcut for sap.ui.core.mvc.ViewType
|
|
45
|
-
var ViewType = coreLibrary.mvc.ViewType;
|
|
46
45
|
|
|
47
46
|
// This method enhances the i18n model which has been attached to the template component via the manifest.
|
|
48
47
|
// For this purpose the following enhancement chain is built:
|
|
@@ -511,6 +511,9 @@ RTA_CONFIGURATION_TITLE_TABLE=Configure Table
|
|
|
511
511
|
# XTIT: Title text on Configurations dialog for List Report
|
|
512
512
|
RTA_CONFIGURATION_TITLE_LIST_REPORT=Configure List Report
|
|
513
513
|
|
|
514
|
+
# XTIT: Title text on Configurations dialog for List Report
|
|
515
|
+
RTA_CONFIGURATION_TITLE_ANALYTICAL_LIST_PAGE=Configure Analytical List Page
|
|
516
|
+
|
|
514
517
|
# XTIT: Title text on Configurations dialog for Filter Bar
|
|
515
518
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Configure Filter Bar
|
|
516
519
|
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=\u062A\u0643\u0648\u064A\u0646 \u062A\u0642\
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=\u062A\u0643\u0648\u064A\u0646 \u0634\u0631\u064A\u0637 \u0639\u0648\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=\u062A\u0643\u0648\u064A\u0646 \u0635\u0641\u062D\u0629 \u0627\u0644\u0643\u0627\u0626\u0646
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=\u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u0637\u0628\u064A\u0642 \u0628\u0639\u0636 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0625\u0644\u0627 \u0639\u0644\u0649 \u0623\u0646\u0648\u0627\u0639 \u062C\u062F\u0627\u0648\u0644 \u0645\u0639\u064A\u0646\u0629. \u0648\u0644\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0645\u0631\u0626\u064A\u0629 \u0625\u0644\u0627 \u0628\u0639\u062F \u0625\u0639\u0627\u062F\u0629 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u062A\u0637\u0628\u064A\u0642.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=\u0625\u0644\u063A\u0627\u0621
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u043B\u0435\u043D\u0442\u0430 \u0437\u0430 \u0444\u0438\u043B\u0442\u0440\u0438\u0440\u0430\u043D\u0435
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u0437\u0430 \u043E\u0431\u0435\u043A\u0442
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=\u041D\u044F\u043A\u043E\u0438 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0431\u044A\u0434\u0430\u0442 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0441\u0430\u043C\u043E \u0437\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438 \u0432\u0438\u0434\u043E\u0432\u0435 \u0442\u0430\u0431\u043B\u0438\u0446\u0438. \u041F\u0440\u043E\u043C\u0435\u043D\u0438\u0442\u0435 \u0449\u0435 \u0431\u044A\u0434\u0430\u0442 \u0432\u0438\u0434\u0438\u043C\u0438 \u0441\u043B\u0435\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435 \u043D\u0430 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u0442\u043E.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=\u041E\u0442\u043C\u044F\u043D\u0430
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Configurar informe de llista
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Configurar la barra de filtres
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Configurar p\u00E0gina d'objecte
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=Algunes opcions nom\u00E9s es poden aplicar a determinats tipus de taules. Les modificacions nom\u00E9s seran visibles despr\u00E9s de tornar a carregar l'aplicaci\u00F3.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Cancel\u00B7lar
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Konfiguri\u0161i izvje\u0161taj liste
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Konfiguri\u0161i traku filtera
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Konfiguri\u0161i stranicu objekta
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=Neka pode\u0161avanja se mogu primijeniti samo na odre\u0111ene tipove tabela. Promjene \u0107e biti vidljive samo nakon \u0161to se aplikacija ponovo u\u010Dita.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Odustani
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Konfigurovat v\u00FDkaz seznamu
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Konfigurovat panel filtrov\u00E1n\u00ED
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Konfigurovat str\u00E1nku objektu
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=N\u011Bkter\u00E1 nastaven\u00ED lze pou\u017E\u00EDt pouze pro ur\u010Dit\u00E9 typy tabulek. Zm\u011Bny budou viditeln\u00E9 a\u017E po op\u011Btovn\u00E9m na\u010Dten\u00ED aplikace.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Zru\u0161it
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Ffurfweddu Adroddiad Rhestr
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Ffurfweddu Bar Hidlo
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Ffurfweddu Tudalen Gwrthrych
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=Gall rhai gosodiadau ond cael eu rhoi ar waith i fathau penodol o dablau. Dim ond ar \u00F4l i'r rhaglen ail-lwytho y bydd y newidiadau ar gael i'w gweld.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Canslo
|
|
@@ -334,6 +334,8 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Konfigurer listerapport
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Konfigurer filterlinje
|
|
336
336
|
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Konfigurer objektside
|
|
338
|
+
|
|
337
339
|
RTA_CONFIGURATION_INFO_MESSAGE=Nogle indstillinger kan kun anvendes til bestemte tabeltyper. \u00C6ndringer vil f\u00F8rst v\u00E6re synlige, efter applikationen genindl\u00E6ses.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Annuller
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
ST_GENERIC_DRAFT_WITH_ACTIVE_DOCUMENT_DELETED
|
|
2
|
+
ST_GENERIC_DRAFT_WITH_ACTIVE_DOCUMENT_DELETED=Die \u00C4nderungen wurden verworfen.
|
|
3
3
|
|
|
4
|
-
ST_GENERIC_DRAFT_WITHOUT_ACTIVE_DOCUMENT_DELETED=Entwurf wurde verworfen.
|
|
4
|
+
ST_GENERIC_DRAFT_WITHOUT_ACTIVE_DOCUMENT_DELETED=Der Entwurf wurde verworfen.
|
|
5
5
|
|
|
6
6
|
ST_GENERIC_UNKNOWN_NAVIGATION_TARGET=Das Ziel wurde nicht gefunden.
|
|
7
7
|
|
|
@@ -334,7 +334,9 @@ RTA_CONFIGURATION_TITLE_LIST_REPORT=Listenreport konfigurieren
|
|
|
334
334
|
|
|
335
335
|
RTA_CONFIGURATION_TITLE_FILTER_BAR=Filterleiste konfigurieren
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
RTA_CONFIGURATION_TITLE_OBJECT_PAGE=Objektseite konfigurieren
|
|
338
|
+
|
|
339
|
+
RTA_CONFIGURATION_INFO_MESSAGE=Einige Einstellungen k\u00F6nnen nur auf bestimmte Tabellentypen angewandt werden. \u00C4nderungen sind erst sichtbar, nachdem die Anwendung neu geladen wurde.
|
|
338
340
|
|
|
339
341
|
RTA_CONFIGURATION_CANCEL=Abbrechen
|
|
340
342
|
|