@openui5/sap.ui.integration 1.108.1 → 1.109.0
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/THIRDPARTY.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +2 -2
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +2 -2
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +5 -2
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +73 -24
- package/src/sap/ui/integration/cards/BaseListContent.js +51 -2
- package/src/sap/ui/integration/cards/CalendarContent.js +3 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +29 -2
- package/src/sap/ui/integration/cards/ListContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/NumericHeader.js +2 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +29 -2
- package/src/sap/ui/integration/cards/TableContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContentRenderer.js +7 -3
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +1 -1
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/LinkWithIcon.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/Paginator.js +24 -20
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +5 -9
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +2 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +3 -8
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +5 -7
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +2 -4
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +2 -4
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +4 -14
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +3 -5
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +12 -4
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +70 -26
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +12 -12
- package/src/sap/ui/integration/editor/Editor.js +13 -17
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +4 -5
- package/src/sap/ui/integration/editor/Extension.js +1 -1
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -1
- package/src/sap/ui/integration/editor/fields/BaseField.js +1 -1
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/GroupField.js +1 -1
- package/src/sap/ui/integration/editor/fields/IntegerField.js +1 -1
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +4 -6
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +6 -8
- package/src/sap/ui/integration/editor/fields/StringListField.js +7 -9
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +1 -1
- package/src/sap/ui/integration/formatters/DateTimeFormatter.js +11 -6
- package/src/sap/ui/integration/library.js +25 -3
- package/src/sap/ui/integration/messagebundle.properties +3 -0
- package/src/sap/ui/integration/messagebundle_ar.properties +2 -0
- package/src/sap/ui/integration/messagebundle_bg.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ca.properties +2 -0
- package/src/sap/ui/integration/messagebundle_cs.properties +2 -0
- package/src/sap/ui/integration/messagebundle_cy.properties +2 -0
- package/src/sap/ui/integration/messagebundle_da.properties +2 -0
- package/src/sap/ui/integration/messagebundle_de.properties +2 -0
- package/src/sap/ui/integration/messagebundle_el.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_GB.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +2 -0
- package/src/sap/ui/integration/messagebundle_es.properties +2 -0
- package/src/sap/ui/integration/messagebundle_es_MX.properties +2 -0
- package/src/sap/ui/integration/messagebundle_et.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_hu.properties +2 -0
- package/src/sap/ui/integration/messagebundle_id.properties +2 -0
- package/src/sap/ui/integration/messagebundle_it.properties +2 -0
- package/src/sap/ui/integration/messagebundle_iw.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ja.properties +2 -0
- package/src/sap/ui/integration/messagebundle_kk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ko.properties +2 -0
- package/src/sap/ui/integration/messagebundle_lt.properties +2 -0
- package/src/sap/ui/integration/messagebundle_lv.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ms.properties +2 -0
- package/src/sap/ui/integration/messagebundle_nl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_no.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pt.properties +2 -0
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ro.properties +2 -0
- package/src/sap/ui/integration/messagebundle_ru.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sh.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sl.properties +2 -0
- package/src/sap/ui/integration/messagebundle_sv.properties +2 -0
- package/src/sap/ui/integration/messagebundle_th.properties +2 -0
- package/src/sap/ui/integration/messagebundle_tr.properties +2 -0
- package/src/sap/ui/integration/messagebundle_uk.properties +2 -0
- package/src/sap/ui/integration/messagebundle_vi.properties +2 -0
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +2 -0
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +2 -0
- package/src/sap/ui/integration/model/ContextModel.js +2 -2
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/model/PagingModelListBinding.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +58 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +10 -2
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +3 -1
- package/src/sap/ui/integration/util/CardObserver.js +39 -9
- package/src/sap/ui/integration/util/ContentFactory.js +43 -44
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -1
- package/src/sap/ui/integration/util/DataProviderFactory.js +1 -1
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Forms.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +1 -1
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +35 -5
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +8 -9
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +113 -138
- package/src/sap/ui/integration/widgets/CardRenderer.js +8 -2
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/integration/library",
|
|
8
9
|
"sap/ui/core/Control",
|
|
9
10
|
"sap/m/HBox",
|
|
10
11
|
"sap/m/Image",
|
|
@@ -14,10 +15,12 @@ sap.ui.define([
|
|
|
14
15
|
"sap/ui/dom/includeStylesheet",
|
|
15
16
|
"sap/ui/integration/util/CardMerger"
|
|
16
17
|
], function (
|
|
17
|
-
Control, HBox, Image, ToggleButton, Card, Core, includeStylesheet, CardMerger
|
|
18
|
+
library, Control, HBox, Image, ToggleButton, Card, Core, includeStylesheet, CardMerger
|
|
18
19
|
) {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
22
|
+
var CardDataMode = library.CardDataMode;
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
25
|
* Constructor for a new <code>Preview</code> that show a image, abstract live preview
|
|
23
26
|
*
|
|
@@ -26,7 +29,7 @@ sap.ui.define([
|
|
|
26
29
|
* @alias sap.ui.integration.designtime.editor.CardPreview
|
|
27
30
|
* @author SAP SE
|
|
28
31
|
* @since 1.83.0
|
|
29
|
-
* @version 1.
|
|
32
|
+
* @version 1.109.0
|
|
30
33
|
* @private
|
|
31
34
|
* @experimental since 1.83.0
|
|
32
35
|
* @ui5-restricted
|
|
@@ -56,6 +59,7 @@ sap.ui.define([
|
|
|
56
59
|
if (oControl._getCurrentMode() === "None") {
|
|
57
60
|
oRm.openStart("div", oControl);
|
|
58
61
|
oRm.openEnd();
|
|
62
|
+
oRm.close("div");
|
|
59
63
|
return;
|
|
60
64
|
}
|
|
61
65
|
oRm.openStart("div", oControl);
|
|
@@ -74,9 +78,11 @@ sap.ui.define([
|
|
|
74
78
|
}
|
|
75
79
|
oRm.openEnd();
|
|
76
80
|
oRm.openStart("div", oControl.getId() + "-before");
|
|
77
|
-
oRm.class("before");
|
|
78
81
|
oRm.attr("tabindex", "-1");
|
|
79
|
-
|
|
82
|
+
if (!oControl.getSettings().preview.interactive) {
|
|
83
|
+
oRm.class("before");
|
|
84
|
+
oRm.style("z-index", oControl.getParent()._iZIndex + 1);
|
|
85
|
+
}
|
|
80
86
|
oRm.openEnd();
|
|
81
87
|
oRm.close("div");
|
|
82
88
|
oRm.renderControl(oControl._getCardPreview());
|
|
@@ -85,9 +91,11 @@ sap.ui.define([
|
|
|
85
91
|
oRm.openEnd();
|
|
86
92
|
oRm.close("div");
|
|
87
93
|
// TODO unsupported DOM structure: button is not a child of the root element
|
|
88
|
-
if (oControl._getModes().indexOf("Live") > -1 && oControl._getModes().indexOf("Abstract") > -1)
|
|
94
|
+
if ((oControl._getModes().indexOf("Live") > -1 && oControl._getModes().indexOf("Abstract") > -1)
|
|
95
|
+
|| (oControl._getModes().indexOf("Mock") > -1 && oControl._getModes().indexOf("Abstract") > -1)) {
|
|
89
96
|
oRm.renderControl(oControl._getModeToggleButton());
|
|
90
97
|
}
|
|
98
|
+
oRm.close("div");
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
101
|
});
|
|
@@ -134,7 +142,7 @@ sap.ui.define([
|
|
|
134
142
|
CardPreview.prototype.onAfterRendering = function () {
|
|
135
143
|
var oPreview = this.getAggregation("cardPreview"),
|
|
136
144
|
sModes = this._getModes();
|
|
137
|
-
if (sModes.indexOf("Live") > -1 && oPreview && oPreview.getDomRef() && oPreview.getDomRef().getElementsByClassName("sapVizFrame")) {
|
|
145
|
+
if ((sModes.indexOf("Live") > -1 || sModes.indexOf("Mock") > -1) && oPreview && oPreview.getDomRef() && oPreview.getDomRef().getElementsByClassName("sapVizFrame")) {
|
|
138
146
|
window.setTimeout(function() {
|
|
139
147
|
try {
|
|
140
148
|
var vizFrameId = oPreview.getDomRef().getElementsByClassName("sapVizFrame")[0].id;
|
|
@@ -160,7 +168,7 @@ sap.ui.define([
|
|
|
160
168
|
} else {
|
|
161
169
|
oPreview = this._getCardPlaceholderPreview();
|
|
162
170
|
}
|
|
163
|
-
} else if (this._getCurrentMode() === "Live") {
|
|
171
|
+
} else if (this._getCurrentMode() === "Live" || this._getCurrentMode() === "Mock") {
|
|
164
172
|
oPreview = this._getCardRealPreview();
|
|
165
173
|
}
|
|
166
174
|
if (oPreview) {
|
|
@@ -260,7 +268,7 @@ sap.ui.define([
|
|
|
260
268
|
};
|
|
261
269
|
|
|
262
270
|
if (!this._oCardPlaceholder) {
|
|
263
|
-
this._oCardPlaceholder = new Card();
|
|
271
|
+
this._oCardPlaceholder = new Card({dataMode: CardDataMode.Active});
|
|
264
272
|
this._oCardPlaceholder._setPreviewMode(true);
|
|
265
273
|
}
|
|
266
274
|
this._oCardPlaceholder.setManifest(placeholder);
|
|
@@ -274,11 +282,11 @@ sap.ui.define([
|
|
|
274
282
|
*/
|
|
275
283
|
CardPreview.prototype.getTransformContentInfo = function () {
|
|
276
284
|
return {
|
|
277
|
-
transformStyle: "scale3d(0.
|
|
278
|
-
transformFactor: 0.
|
|
285
|
+
transformStyle: "scale3d(0.45, 0.45, 1)",
|
|
286
|
+
transformFactor: 0.45,
|
|
279
287
|
transformOriginStyle: "0 0",
|
|
280
|
-
widthStyle: "
|
|
281
|
-
heightStyle: "
|
|
288
|
+
widthStyle: "400px + 10rem",
|
|
289
|
+
heightStyle: "700px - 1.5rem",
|
|
282
290
|
zIndex: this.getParent()._iZIndex
|
|
283
291
|
};
|
|
284
292
|
};
|
|
@@ -288,8 +296,11 @@ sap.ui.define([
|
|
|
288
296
|
*/
|
|
289
297
|
CardPreview.prototype._getCardRealPreview = function () {
|
|
290
298
|
if (!this._oCardPreview) {
|
|
291
|
-
this._oCardPreview = new Card();
|
|
299
|
+
this._oCardPreview = new Card({dataMode: CardDataMode.Active});
|
|
292
300
|
this._oCardPreview.setBaseUrl(this.getCard().getBaseUrl());
|
|
301
|
+
if (this._currentMode === "Mock") {
|
|
302
|
+
this._oCardPreview.setProperty("useMockData", true);
|
|
303
|
+
}
|
|
293
304
|
}
|
|
294
305
|
this._initalChanges = this._initalChanges || this._oCardPreview.getManifestChanges() || [];
|
|
295
306
|
var aChanges = this._initalChanges.concat([this.getParent().getCurrentSettings()]);
|
|
@@ -334,25 +345,34 @@ sap.ui.define([
|
|
|
334
345
|
*/
|
|
335
346
|
CardPreview.prototype._getModes = function () {
|
|
336
347
|
var mSettings = this.getSettings();
|
|
337
|
-
//default setting -
|
|
348
|
+
//default setting - abstract preview
|
|
338
349
|
mSettings.preview = mSettings.preview || {};
|
|
339
350
|
mSettings.preview.modes = mSettings.preview.modes || "Abstract";
|
|
351
|
+
// Mock mode is only used for Component Card now, replace it with "Live" for other Cards
|
|
352
|
+
var sType = this.getCard().getManifestEntry("/sap.card/type");
|
|
353
|
+
if (sType !== "Component") {
|
|
354
|
+
mSettings.preview.modes = mSettings.preview.modes.replace("Mock", "Live");
|
|
355
|
+
}
|
|
340
356
|
return mSettings.preview.modes;
|
|
341
357
|
};
|
|
342
358
|
|
|
343
359
|
/**
|
|
344
|
-
* returns the current mode of the preview, "Abstract" or "Live"
|
|
360
|
+
* returns the current mode of the preview, "Abstract" or "Live" or "Mock"
|
|
345
361
|
*/
|
|
346
362
|
CardPreview.prototype._getCurrentMode = function () {
|
|
347
363
|
var sModes = this._getModes();
|
|
348
364
|
if (!this._currentMode) {
|
|
349
365
|
switch (sModes) {
|
|
350
|
-
case "AbstractLive":
|
|
351
366
|
case "Abstract":
|
|
367
|
+
case "AbstractLive":
|
|
368
|
+
case "AbstractMock":
|
|
352
369
|
this._currentMode = "Abstract"; break;
|
|
353
|
-
case "LiveAbstract":
|
|
354
370
|
case "Live":
|
|
371
|
+
case "LiveAbstract":
|
|
355
372
|
this._currentMode = "Live"; break;
|
|
373
|
+
case "Mock":
|
|
374
|
+
case "MockAbstract":
|
|
375
|
+
this._currentMode = "Mock"; break;
|
|
356
376
|
default: this._currentMode = "None";
|
|
357
377
|
}
|
|
358
378
|
}
|
|
@@ -360,17 +380,19 @@ sap.ui.define([
|
|
|
360
380
|
};
|
|
361
381
|
|
|
362
382
|
/**
|
|
363
|
-
* toggles the current mode from "Abstract" to "Live" and vice versa
|
|
383
|
+
* toggles the current mode from "Abstract" to "Live" or "Mock" and vice versa
|
|
364
384
|
*/
|
|
365
385
|
CardPreview.prototype._toggleCurrentMode = function () {
|
|
366
386
|
var sModes = this._getModes();
|
|
367
387
|
if (sModes.indexOf("Live") > -1 && sModes.indexOf("Abstract") > -1) {
|
|
368
388
|
this._currentMode = this._getCurrentMode() === "Abstract" ? "Live" : "Abstract";
|
|
389
|
+
} else if (sModes.indexOf("Mock") > -1 && sModes.indexOf("Abstract") > -1) {
|
|
390
|
+
this._currentMode = this._getCurrentMode() === "Abstract" ? "Mock" : "Abstract";
|
|
369
391
|
}
|
|
370
392
|
};
|
|
371
393
|
|
|
372
394
|
/**
|
|
373
|
-
* toggles the current mode from "Abstract" to "Live" and vice versa
|
|
395
|
+
* toggles the current mode from "Abstract" to "Live" or "Mock" and vice versa
|
|
374
396
|
* @returns {sap.m.ToggleButton}
|
|
375
397
|
*/
|
|
376
398
|
CardPreview.prototype._getModeToggleButton = function () {
|
|
@@ -401,9 +423,12 @@ sap.ui.define([
|
|
|
401
423
|
if (currentMode === "Abstract") {
|
|
402
424
|
tb.setIcon("sap-icon://media-play");
|
|
403
425
|
tb.setPressed(false);
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
426
|
+
if (this._getModes().indexOf("Mock") > -1) {
|
|
427
|
+
tb.setTooltip(oBundle.getText("CARDEDITOR_PREVIEW_BTN_MOCKPREVIEW"));
|
|
428
|
+
} else {
|
|
429
|
+
tb.setTooltip(oBundle.getText("CARDEDITOR_PREVIEW_BTN_LIVEPREVIEW"));
|
|
430
|
+
}
|
|
431
|
+
} else if (currentMode === "Live" || currentMode === "Mock") {
|
|
407
432
|
tb.setIcon("sap-icon://media-pause");
|
|
408
433
|
tb.setPressed(true);
|
|
409
434
|
tb.setTooltip(oBundle.getText("CARDEDITOR_PREVIEW_BTN_SAMPLEPREVIEW"));
|
|
@@ -430,15 +455,34 @@ sap.ui.define([
|
|
|
430
455
|
yiq = (r * 299 + g * 587 + b * 114) / 1000;
|
|
431
456
|
return (yiq <= 128);
|
|
432
457
|
}
|
|
458
|
+
|
|
459
|
+
CardPreview.prototype.onfocusin = function (oEvent) {
|
|
460
|
+
if (!this.getSettings().preview.interactive) {
|
|
461
|
+
if (!this._focusinByTabPrevious && oEvent.srcControl !== this._oModeToggleButton) {
|
|
462
|
+
if (this._oModeToggleButton) {
|
|
463
|
+
this._oModeToggleButton.focus();
|
|
464
|
+
} else {
|
|
465
|
+
this.getDomRef("after").focus();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
this._focusinByTabPrevious = false;
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
|
|
433
472
|
CardPreview.prototype.onsaptabnext = function (oEvent) {
|
|
434
|
-
if (
|
|
435
|
-
this.
|
|
473
|
+
if (!this.getSettings().preview.interactive) {
|
|
474
|
+
if (oEvent.srcControl !== this._oModeToggleButton) {
|
|
475
|
+
this.getDomRef("after").focus();
|
|
476
|
+
}
|
|
436
477
|
}
|
|
437
478
|
};
|
|
438
479
|
|
|
439
480
|
CardPreview.prototype.onsaptabprevious = function (oEvent) {
|
|
440
|
-
if (
|
|
441
|
-
this.
|
|
481
|
+
if (!this.getSettings().preview.interactive) {
|
|
482
|
+
this._focusinByTabPrevious = true;
|
|
483
|
+
if (!this._oModeToggleButton || oEvent.srcControl === this._oModeToggleButton) {
|
|
484
|
+
this.getDomRef("before").focus();
|
|
485
|
+
}
|
|
442
486
|
}
|
|
443
487
|
};
|
|
444
488
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.sapUiIntegrationDTPreview {
|
|
2
|
-
padding:
|
|
2
|
+
padding: 0.5rem;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
min-width: calc(190px + 5rem);
|
|
5
5
|
width: calc(190px + 5rem);
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
.sapUiIntegrationDTPreview>.before {
|
|
25
25
|
position: absolute;
|
|
26
26
|
min-width: calc(190px + 5rem);
|
|
27
|
-
height: calc(350px -
|
|
27
|
+
height: calc(350px - 2.2rem);
|
|
28
28
|
background-color: rgba(222, 222, 222, 0.5); /* background-color needed for blocking */
|
|
29
29
|
opacity: 0.01;
|
|
30
|
-
margin: -
|
|
30
|
+
margin: -0.5rem;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.sapUiIntegrationDTPreview.sapUiIntegrationDTPreviewDark {
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.sapUiIntegrationDTPreview .sapFCard.sapUiIntegrationDTPreviewScale {
|
|
47
|
-
transform: scale3d(0.
|
|
47
|
+
transform: scale3d(0.45, 0.45, 1);
|
|
48
48
|
transform-origin: 0 0;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
51
|
-
position: absolute
|
|
49
|
+
width: calc(400px + 10rem) !important;
|
|
50
|
+
height: calc(700px - 1.5rem) !important;
|
|
51
|
+
position: absolute;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.sapUiIntegrationDTPreview .sapFCard.sapUiIntegrationDTPreviewScaleSpec {
|
|
55
|
-
transform: scale3d(0.
|
|
55
|
+
transform: scale3d(0.45, 0.45, 1);
|
|
56
56
|
transform-origin: 100% 0;
|
|
57
|
-
width:
|
|
58
|
-
height:
|
|
57
|
+
width: calc(400px + 10rem) !important;
|
|
58
|
+
height: calc(700px - 1.5rem) !important;
|
|
59
59
|
position: absolute
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewButton {
|
|
63
63
|
position: absolute !important;
|
|
64
|
-
margin: calc(
|
|
64
|
+
margin: calc(350px - 2.8rem) 0 0 calc(95px + 1rem) !important;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewButtonSpec {
|
|
68
68
|
position: absolute !important;
|
|
69
|
-
margin:
|
|
69
|
+
margin:calc(350px - 2.8rem) calc(95px + 1rem) 0 0 !important
|
|
70
70
|
}
|
|
@@ -37,7 +37,6 @@ sap.ui.define([
|
|
|
37
37
|
"sap/m/FormattedText",
|
|
38
38
|
"sap/m/MessageStrip",
|
|
39
39
|
"sap/m/ToolbarSpacer",
|
|
40
|
-
"sap/base/util/includes",
|
|
41
40
|
"sap/ui/model/resource/ResourceModel",
|
|
42
41
|
"./Manifest",
|
|
43
42
|
"./Merger",
|
|
@@ -81,7 +80,6 @@ sap.ui.define([
|
|
|
81
80
|
FormattedText,
|
|
82
81
|
MessageStrip,
|
|
83
82
|
Separator,
|
|
84
|
-
includes,
|
|
85
83
|
ResourceModel,
|
|
86
84
|
EditorManifest,
|
|
87
85
|
Merger,
|
|
@@ -139,7 +137,7 @@ sap.ui.define([
|
|
|
139
137
|
* @extends sap.ui.core.Control
|
|
140
138
|
*
|
|
141
139
|
* @author SAP SE
|
|
142
|
-
* @version 1.
|
|
140
|
+
* @version 1.109.0
|
|
143
141
|
* @constructor
|
|
144
142
|
* @since 1.94
|
|
145
143
|
* @private
|
|
@@ -237,14 +235,12 @@ sap.ui.define([
|
|
|
237
235
|
var oPreview = oControl.getAggregation("_preview");
|
|
238
236
|
var bShowPreview = oControl.getMode() !== "translation" && oControl.hasPreview();
|
|
239
237
|
var sPreviewPosition = oControl.getPreviewPosition();
|
|
240
|
-
if (bShowPreview
|
|
241
|
-
&& (sPreviewPosition === "top" || sPreviewPosition === "bottom")) {
|
|
238
|
+
if (bShowPreview && (sPreviewPosition === "top" || sPreviewPosition === "bottom")) {
|
|
242
239
|
oRm.openStart("div", oControl);
|
|
243
240
|
oRm.openEnd();
|
|
244
241
|
//render the additional content if alignment of it is "top"
|
|
245
242
|
if (oControl.isReady() && sPreviewPosition === "top") {
|
|
246
243
|
oRm.renderControl(oPreview);
|
|
247
|
-
oRm.close("div");
|
|
248
244
|
}
|
|
249
245
|
}
|
|
250
246
|
if (bShowPreview && sPreviewPosition === "left") {
|
|
@@ -253,10 +249,8 @@ sap.ui.define([
|
|
|
253
249
|
oRm.openEnd();
|
|
254
250
|
if (oControl.isReady()){
|
|
255
251
|
oRm.renderControl(oPreview);
|
|
256
|
-
oRm.close("div");
|
|
257
252
|
}
|
|
258
|
-
} else if (bShowPreview
|
|
259
|
-
&& (sPreviewPosition === "bottom" || sPreviewPosition === "top")) {
|
|
253
|
+
} else if (bShowPreview && (sPreviewPosition === "top" || sPreviewPosition === "bottom")) {
|
|
260
254
|
oRm.openStart("div");
|
|
261
255
|
oRm.class("sapUiIntegrationEditor");
|
|
262
256
|
oRm.openEnd();
|
|
@@ -861,9 +855,11 @@ sap.ui.define([
|
|
|
861
855
|
}
|
|
862
856
|
}
|
|
863
857
|
oRm.close("div");
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
858
|
+
if (bShowPreview && (sPreviewPosition === "top" || sPreviewPosition === "bottom")) {
|
|
859
|
+
//render the additional content if alignment of it is "bottom"
|
|
860
|
+
if (sPreviewPosition === "bottom") {
|
|
861
|
+
oRm.renderControl(oPreview);
|
|
862
|
+
}
|
|
867
863
|
oRm.close("div");
|
|
868
864
|
}
|
|
869
865
|
}
|
|
@@ -893,7 +889,7 @@ sap.ui.define([
|
|
|
893
889
|
* @experimental since 1.94
|
|
894
890
|
* @public
|
|
895
891
|
* @author SAP SE
|
|
896
|
-
* @version 1.
|
|
892
|
+
* @version 1.109.0
|
|
897
893
|
* @borrows sap.ui.integration.editor.Editor#getParameters as getParameters
|
|
898
894
|
* @borrows sap.ui.integration.editor.Editor#resolveDestination as resolveDestination
|
|
899
895
|
* @borrows sap.ui.integration.editor.Editor#request as request
|
|
@@ -1570,7 +1566,7 @@ sap.ui.define([
|
|
|
1570
1566
|
});
|
|
1571
1567
|
// delete translation texts if uuid not included in value list
|
|
1572
1568
|
for (var uuid in mResult.texts[language][key]) {
|
|
1573
|
-
if (!includes(
|
|
1569
|
+
if (!aUUIDs.includes(uuid)) {
|
|
1574
1570
|
delete mResult.texts[language][key][uuid];
|
|
1575
1571
|
}
|
|
1576
1572
|
}
|
|
@@ -2219,7 +2215,7 @@ sap.ui.define([
|
|
|
2219
2215
|
if (Array.isArray(oResult)) {
|
|
2220
2216
|
for (var n in oResult) {
|
|
2221
2217
|
var sKey = oField.getKeyFromItem(oResult[n]);
|
|
2222
|
-
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 &&
|
|
2218
|
+
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 && oFieldConfig.value.includes(sKey)) {
|
|
2223
2219
|
oResult[n].Selected = this._oResourceBundle.getText("EDITOR_ITEM_SELECTED");
|
|
2224
2220
|
} else {
|
|
2225
2221
|
oResult[n].Selected = this._oResourceBundle.getText("EDITOR_ITEM_UNSELECTED");
|
|
@@ -2230,7 +2226,7 @@ sap.ui.define([
|
|
|
2230
2226
|
} else if (Array.isArray(oData)) {
|
|
2231
2227
|
for (var n in oData) {
|
|
2232
2228
|
var sKey = oField.getKeyFromItem(oData[n]);
|
|
2233
|
-
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 &&
|
|
2229
|
+
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 && oFieldConfig.value.includes(sKey)) {
|
|
2234
2230
|
oData[n].Selected = this._oResourceBundle.getText("EDITOR_ITEM_SELECTED");
|
|
2235
2231
|
} else {
|
|
2236
2232
|
oData[n].Selected = this._oResourceBundle.getText("EDITOR_ITEM_UNSELECTED");
|
|
@@ -2714,7 +2710,7 @@ sap.ui.define([
|
|
|
2714
2710
|
aFallbacks.push(sLanguage.substring(0, sLanguage.indexOf("-")));
|
|
2715
2711
|
}
|
|
2716
2712
|
//add en into fallbacks
|
|
2717
|
-
if (!includes(
|
|
2713
|
+
if (!aFallbacks.includes("en")) {
|
|
2718
2714
|
aFallbacks.push("en");
|
|
2719
2715
|
}
|
|
2720
2716
|
// load the ResourceBundle relative to the manifest
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/base/util/LoaderExtensions",
|
|
9
|
-
"sap/base/i18n/ResourceBundle"
|
|
10
|
-
|
|
11
|
-
], function (LoaderExtensions, ResourceBundle, includes) {
|
|
9
|
+
"sap/base/i18n/ResourceBundle"
|
|
10
|
+
], function (LoaderExtensions, ResourceBundle) {
|
|
12
11
|
"use strict";
|
|
13
12
|
|
|
14
13
|
/**
|
|
@@ -16,7 +15,7 @@ sap.ui.define([
|
|
|
16
15
|
* @alias sap.ui.integration.editor.EditorResourceBundles
|
|
17
16
|
* @author SAP SE
|
|
18
17
|
* @since 1.94.0
|
|
19
|
-
* @version 1.
|
|
18
|
+
* @version 1.109.0
|
|
20
19
|
* @private
|
|
21
20
|
* @experimental since 1.94.0
|
|
22
21
|
* @ui5-restricted
|
|
@@ -45,7 +44,7 @@ sap.ui.define([
|
|
|
45
44
|
aFallbacks.push(p.substring(0, p.indexOf("-")));
|
|
46
45
|
}
|
|
47
46
|
//add en into fallbacks
|
|
48
|
-
if (!includes(
|
|
47
|
+
if (!aFallbacks.includes("en")) {
|
|
49
48
|
aFallbacks.push("en");
|
|
50
49
|
}
|
|
51
50
|
oResourceBundleTemp = ResourceBundle.create({
|
|
@@ -37,7 +37,6 @@ sap.ui.define([
|
|
|
37
37
|
"sap/ui/model/Sorter",
|
|
38
38
|
"sap/ui/core/CustomData",
|
|
39
39
|
"sap/ui/integration/editor/EditorResourceBundles",
|
|
40
|
-
"sap/base/util/includes",
|
|
41
40
|
"sap/ui/integration/util/Utils"
|
|
42
41
|
], function (
|
|
43
42
|
BaseField,
|
|
@@ -72,7 +71,6 @@ sap.ui.define([
|
|
|
72
71
|
Sorter,
|
|
73
72
|
CustomData,
|
|
74
73
|
EditorResourceBundles,
|
|
75
|
-
includes,
|
|
76
74
|
Utils
|
|
77
75
|
) {
|
|
78
76
|
"use strict";
|
|
@@ -84,7 +82,7 @@ sap.ui.define([
|
|
|
84
82
|
* @alias sap.ui.integration.editor.fields.ObjectField
|
|
85
83
|
* @author SAP SE
|
|
86
84
|
* @since 1.100.0
|
|
87
|
-
* @version 1.
|
|
85
|
+
* @version 1.109.0
|
|
88
86
|
* @private
|
|
89
87
|
* @experimental since 1.100.0
|
|
90
88
|
* @ui5-restricted
|
|
@@ -1504,7 +1502,7 @@ sap.ui.define([
|
|
|
1504
1502
|
var sTranslateText = that.getTranslationValueInTexts(oTempTranslatedValue.key, sUUID, sProperty);
|
|
1505
1503
|
if (sTranslateText) {
|
|
1506
1504
|
oTempTranslatedValue.value = sTranslateText;
|
|
1507
|
-
if (
|
|
1505
|
+
if (Array.isArray(that._oUpdatedTranslations[sTranslationKey]) && that._oUpdatedTranslations[sTranslationKey].includes(oTempTranslatedValue.key)) {
|
|
1508
1506
|
oTempTranslatedValue.value = that.getTranslationValueInTexts(oTempTranslatedValue.key, sUUID, sProperty);
|
|
1509
1507
|
oTempTranslatedValue.status = oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_LISTITEM_GROUP_UPDATED");
|
|
1510
1508
|
} else {
|
|
@@ -1628,7 +1626,7 @@ sap.ui.define([
|
|
|
1628
1626
|
if (aUpdatedLanguages.length > 0) {
|
|
1629
1627
|
that._oUpdatedTranslations = that._oUpdatedTranslations || {};
|
|
1630
1628
|
that._oUpdatedTranslations[sTranslationKey] = aUpdatedLanguages;
|
|
1631
|
-
if (includes(
|
|
1629
|
+
if (aUpdatedLanguages.includes(sCurrentLanugae)) {
|
|
1632
1630
|
bUpdateDependentFieldsAndPreview = true;
|
|
1633
1631
|
}
|
|
1634
1632
|
}
|
|
@@ -1824,7 +1822,7 @@ sap.ui.define([
|
|
|
1824
1822
|
var oData = oModel.getProperty(sPath);
|
|
1825
1823
|
var oNewData = [];
|
|
1826
1824
|
for (var i = 0; i < oData.length; i++) {
|
|
1827
|
-
if (includes(
|
|
1825
|
+
if (aSelectedIndexs.includes(i + "")) {
|
|
1828
1826
|
that.deleteTranslationValueInTexts(undefined, oData[i]._dt._uuid);
|
|
1829
1827
|
} else {
|
|
1830
1828
|
oNewData.push(oData[i]);
|
|
@@ -26,8 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
"sap/ui/integration/editor/EditorResourceBundles",
|
|
27
27
|
"sap/base/util/deepClone",
|
|
28
28
|
"sap/ui/model/Sorter",
|
|
29
|
-
|
|
30
|
-
"sap/base/util/includes",
|
|
29
|
+
"sap/m/GroupHeaderListItem",
|
|
31
30
|
"sap/ui/core/CustomData"
|
|
32
31
|
], function (
|
|
33
32
|
BaseField,
|
|
@@ -52,7 +51,6 @@ sap.ui.define([
|
|
|
52
51
|
deepClone,
|
|
53
52
|
Sorter,
|
|
54
53
|
GroupHeaderListItem,
|
|
55
|
-
includes,
|
|
56
54
|
CustomData
|
|
57
55
|
) {
|
|
58
56
|
"use strict";
|
|
@@ -69,7 +67,7 @@ sap.ui.define([
|
|
|
69
67
|
* @alias sap.ui.integration.editor.fields.StringField
|
|
70
68
|
* @author SAP SE
|
|
71
69
|
* @since 1.83.0
|
|
72
|
-
* @version 1.
|
|
70
|
+
* @version 1.109.0
|
|
73
71
|
* @private
|
|
74
72
|
* @experimental since 1.83.0
|
|
75
73
|
* @ui5-restricted
|
|
@@ -93,7 +91,7 @@ sap.ui.define([
|
|
|
93
91
|
// filter out TODAY_ISO NOW_ISO LOCALE
|
|
94
92
|
aResult = aResult.filter(function (oResult) {
|
|
95
93
|
var oParameter = oResult.substring(11);
|
|
96
|
-
return !includes(
|
|
94
|
+
return !aSpecParameters.includes(oParameter);
|
|
97
95
|
});
|
|
98
96
|
}
|
|
99
97
|
if (aResult && aResult.length > 0) {
|
|
@@ -428,12 +426,12 @@ sap.ui.define([
|
|
|
428
426
|
var sTranslateText = oField.getTranslationValueInTexts(translatedValue.key, oConfig.manifestpath);
|
|
429
427
|
if (sTranslateText) {
|
|
430
428
|
translatedValue.value = sTranslateText;
|
|
431
|
-
if (
|
|
429
|
+
if (Array.isArray(that._aUpdatedLanguages) && !that._aUpdatedLanguages.includes(translatedValue.key)) {
|
|
432
430
|
translatedValue.originValue = translatedValue.value;
|
|
433
431
|
}
|
|
434
432
|
} else if (oConfig._beforeLayerChange) {
|
|
435
433
|
translatedValue.value = oConfig._beforeLayerChange;
|
|
436
|
-
if (
|
|
434
|
+
if (Array.isArray(that._aUpdatedLanguages) && !that._aUpdatedLanguages.includes(translatedValue.key)) {
|
|
437
435
|
translatedValue.originValue = translatedValue.value;
|
|
438
436
|
}
|
|
439
437
|
}
|
|
@@ -452,7 +450,7 @@ sap.ui.define([
|
|
|
452
450
|
if (aTempTranslatedLanguages) {
|
|
453
451
|
//check the updated language list, update the data model
|
|
454
452
|
aTempTranslatedLanguages.forEach(function (translatedValue) {
|
|
455
|
-
if (
|
|
453
|
+
if (Array.isArray(that._aUpdatedLanguages) && that._aUpdatedLanguages.includes(translatedValue.key)) {
|
|
456
454
|
translatedValue.value = oField.getTranslationValueInTexts(translatedValue.key, oConfig.manifestpath);
|
|
457
455
|
translatedValue.status = oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_LISTITEM_GROUP_UPDATED");
|
|
458
456
|
}
|