@openui5/sap.ui.integration 1.114.0 → 1.115.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/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +0 -6
- package/package.json +6 -6
- package/src/sap/ui/integration/.library +1 -1
- 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 +1 -1
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +13 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +40 -8
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +2 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +207 -8
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +4 -6
- package/src/sap/ui/integration/cards/Header.js +2 -2
- package/src/sap/ui/integration/cards/ListContent.js +18 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +2 -2
- package/src/sap/ui/integration/cards/ObjectContent.js +51 -11
- package/src/sap/ui/integration/cards/TableContent.js +19 -2
- package/src/sap/ui/integration/cards/TableContentRenderer.js +2 -2
- package/src/sap/ui/integration/cards/TimelineContent.js +17 -1
- package/src/sap/ui/integration/cards/TimelineContentRenderer.js +1 -1
- 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 +2 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +6 -137
- 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 +10 -4
- package/src/sap/ui/integration/cards/list/MicrochartsResizeHelper.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/BlockingMessage.js +2 -2
- package/src/sap/ui/integration/controls/LinkWithIcon.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +7 -2
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +2 -2
- 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/ObjectStatus.js +1 -1
- package/src/sap/ui/integration/controls/Paginator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
- 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 +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +4 -5
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/Card.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +2 -2
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +41 -9
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +18 -14
- package/src/sap/ui/integration/editor/Editor.js +3 -2
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- 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/css/Editor.css +1 -3
- 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 +6 -6
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +29 -8
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -1
- 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/library.js +2 -2
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- 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 +51 -11
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +40 -17
- package/src/sap/ui/integration/util/BindingResolver.js +3 -18
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- 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/DateRangeHelper.js +211 -0
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +2 -2
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.js +65 -21
- 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 +3 -88
- 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 +1 -1
- package/src/sap/ui/integration/util/Validators.js +7 -1
- package/src/sap/ui/integration/widgets/Card.js +34 -8
|
@@ -50,7 +50,7 @@ sap.ui.define([
|
|
|
50
50
|
* @extends sap.ui.integration.editor.Editor
|
|
51
51
|
*
|
|
52
52
|
* @author SAP SE
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.115.0
|
|
54
54
|
* @constructor
|
|
55
55
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
56
56
|
* @since 1.83
|
|
@@ -142,7 +142,7 @@ sap.ui.define([
|
|
|
142
142
|
if (!instance) { //not a card instance, but a string
|
|
143
143
|
//could be a card dom element id
|
|
144
144
|
var element = document.getElementById(vCardIdOrSettings);
|
|
145
|
-
if (element && element.tagName && element.tagName === "ui-integration-card") {
|
|
145
|
+
if (element && element.tagName && element.tagName.toUpperCase() === "ui-integration-card".toUpperCase()) {
|
|
146
146
|
instance = element._getControl();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @alias sap.ui.integration.designtime.editor.CardPreview
|
|
31
31
|
* @author SAP SE
|
|
32
32
|
* @since 1.83.0
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.115.0
|
|
34
34
|
* @private
|
|
35
35
|
* @experimental since 1.83.0
|
|
36
36
|
* @ui5-restricted
|
|
@@ -107,9 +107,9 @@ sap.ui.define([
|
|
|
107
107
|
oRm.renderControl(oControl._getResizeToggleButton());
|
|
108
108
|
}
|
|
109
109
|
if (sPreviewPosition === "top" || sPreviewPosition === "bottom") {
|
|
110
|
-
document.body.style.setProperty("--sapUiIntegrationEditorPreviewWidth", oControl.
|
|
111
|
-
document.body.style.setProperty("--sapUiIntegrationEditorPreviewHeight", oControl.getParentHeight());
|
|
110
|
+
document.body.style.setProperty("--sapUiIntegrationEditorPreviewWidth", oControl.getEditor().getWidth());
|
|
112
111
|
}
|
|
112
|
+
document.body.style.setProperty("--sapUiIntegrationEditorPreviewHeight", oControl.getEditor().getHeight());
|
|
113
113
|
oRm.close("div");
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -154,6 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
Control.prototype.destroy.apply(this, arguments);
|
|
155
155
|
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewWidth");
|
|
156
156
|
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewHeight");
|
|
157
|
+
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewCardHeight");
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
CardPreview.prototype.onAfterRendering = function () {
|
|
@@ -191,17 +192,22 @@ sap.ui.define([
|
|
|
191
192
|
}
|
|
192
193
|
if (oPreview) {
|
|
193
194
|
this.setAggregation("cardPreview", oPreview);
|
|
195
|
+
oPreview.removeStyleClass("sapUiIntegrationDTPreviewNoScale");
|
|
196
|
+
oPreview.removeStyleClass("sapUiIntegrationDTPreviewScaleBasic");
|
|
197
|
+
oPreview.removeStyleClass("withScale");
|
|
198
|
+
oPreview.removeStyleClass("withScaleSpec");
|
|
194
199
|
if (!this.getSettings().preview || this.getSettings().preview.scaled !== false) {
|
|
195
|
-
oPreview.removeStyleClass("sapUiIntegrationDTPreviewScale");
|
|
196
|
-
oPreview.removeStyleClass("sapUiIntegrationDTPreviewScaleSpec");
|
|
197
200
|
var sLanguge = Core.getConfiguration().getLanguage().replaceAll('_', '-');
|
|
198
201
|
if (this._getCurrentSize() !== "Full") {
|
|
202
|
+
oPreview.addStyleClass("sapUiIntegrationDTPreviewScaleBasic");
|
|
199
203
|
if (sLanguge.startsWith("ar") || sLanguge.startsWith("he")) {
|
|
200
204
|
// for the languages "ar-SA"(Arabic) and "he-IL"(Hebrew) which write from right to left, use spec style
|
|
201
|
-
oPreview.addStyleClass("
|
|
205
|
+
oPreview.addStyleClass("withScaleSpec");
|
|
202
206
|
} else {
|
|
203
|
-
oPreview.addStyleClass("
|
|
207
|
+
oPreview.addStyleClass("withScale");
|
|
204
208
|
}
|
|
209
|
+
} else {
|
|
210
|
+
oPreview.addStyleClass("sapUiIntegrationDTPreviewNoScale");
|
|
205
211
|
}
|
|
206
212
|
} else {
|
|
207
213
|
oPreview.addStyleClass("sapUiIntegrationDTPreviewNoScale");
|
|
@@ -229,6 +235,7 @@ sap.ui.define([
|
|
|
229
235
|
* returns the real scaled instance of the card
|
|
230
236
|
*/
|
|
231
237
|
CardPreview.prototype._getCardRealPreview = function () {
|
|
238
|
+
var that = this;
|
|
232
239
|
if (!this._oCardPreview) {
|
|
233
240
|
var bReadonly = !this.getSettings().preview.interactive;
|
|
234
241
|
this._oCardPreview = new Card({
|
|
@@ -240,6 +247,22 @@ sap.ui.define([
|
|
|
240
247
|
if (bReadonly) {
|
|
241
248
|
this._oCardPreview.onfocusin = this._onfocusin.bind(this);
|
|
242
249
|
}
|
|
250
|
+
// for some Cards, such as component Card, need to reset the Card height for css since the Card Content
|
|
251
|
+
// will not trigger onAfterRendering of the Card after loaded, then the height value may be wrong
|
|
252
|
+
this._oCardPreview.attachEvent("_ready", function () {
|
|
253
|
+
var oCardContent = this._oCardPreview.getCardContent();
|
|
254
|
+
if (oCardContent) {
|
|
255
|
+
oCardContent.addEventDelegate({
|
|
256
|
+
"onAfterRendering": function() {
|
|
257
|
+
this._resetHeight();
|
|
258
|
+
}
|
|
259
|
+
}, this);
|
|
260
|
+
}
|
|
261
|
+
}.bind(this));
|
|
262
|
+
this._oCardPreview.onAfterRendering = function () {
|
|
263
|
+
Card.prototype.onAfterRendering.call(this);
|
|
264
|
+
that._resetHeight();
|
|
265
|
+
};
|
|
243
266
|
}
|
|
244
267
|
if (this._currentMode === "MockData") {
|
|
245
268
|
this._oCardPreview.setProperty("useMockData", true);
|
|
@@ -260,6 +283,17 @@ sap.ui.define([
|
|
|
260
283
|
return this._oCardPreview;
|
|
261
284
|
};
|
|
262
285
|
|
|
286
|
+
CardPreview.prototype._resetHeight = function () {
|
|
287
|
+
var oCardDom = this._oCardPreview.getDomRef();
|
|
288
|
+
if (oCardDom && this._getCurrentSize() !== "Full" ) {
|
|
289
|
+
var sHeight = oCardDom.offsetHeight;
|
|
290
|
+
document.body.style.setProperty("--sapUiIntegrationEditorPreviewCardHeight", sHeight + "px");
|
|
291
|
+
document.body.style.setProperty("--sapUiIntegrationEditorPreviewHeight", (sHeight * 0.45 + 56) + "px");
|
|
292
|
+
} else {
|
|
293
|
+
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewCardHeight");
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
|
|
263
297
|
/**
|
|
264
298
|
* returns the image placeholder is the preview.src is maintained
|
|
265
299
|
*/
|
|
@@ -444,11 +478,9 @@ sap.ui.define([
|
|
|
444
478
|
if (this._currentSize === "Normal") {
|
|
445
479
|
this.getEditor().setWidth(this.getParentWidth());
|
|
446
480
|
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewWidth");
|
|
447
|
-
document.body.style.removeProperty("--sapUiIntegrationEditorPreviewHeight");
|
|
448
481
|
} else {
|
|
449
482
|
this.getEditor().setWidth("0");
|
|
450
483
|
document.body.style.setProperty("--sapUiIntegrationEditorPreviewWidth", this.getParentWidth());
|
|
451
|
-
document.body.style.setProperty("--sapUiIntegrationEditorPreviewHeight", this.getParentHeight());
|
|
452
484
|
}
|
|
453
485
|
};
|
|
454
486
|
|
|
@@ -53,30 +53,34 @@
|
|
|
53
53
|
width: var(--sapUiIntegrationEditorPreviewWidth, calc(400px + 10rem)) !important;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.sapUiIntegrationDTPreview .
|
|
57
|
-
transform: scale3d(0.45, 0.45, 1);
|
|
58
|
-
transform-origin: 0 0;
|
|
56
|
+
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewScaleBasic {
|
|
59
57
|
width: calc(400px + 10rem) !important;
|
|
60
|
-
height: calc(700px - 1.5rem) !important;
|
|
58
|
+
min-height: calc(700px - 1.5rem) !important;
|
|
61
59
|
position: absolute;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
|
-
.sapUiIntegrationDTPreview .
|
|
62
|
+
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewScaleBasic.withScale {
|
|
63
|
+
transform: scale3d(0.45, 0.45, 1);
|
|
64
|
+
transform-origin: 0 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewScaleBasic.withScaleSpec {
|
|
65
68
|
transform: scale3d(0.45, 0.45, 1);
|
|
66
69
|
transform-origin: 100% 0;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewNoScale {
|
|
73
|
+
min-height: 350px !important;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewModeButton {
|
|
73
77
|
position: absolute !important;
|
|
74
|
-
margin: calc(350px -
|
|
78
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) 0 0 calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 8rem) !important;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewModeButtonSpec {
|
|
78
82
|
position: absolute !important;
|
|
79
|
-
margin: calc(350px -
|
|
83
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 8rem) 0 0 !important
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewModeButtonFull {
|
|
@@ -97,12 +101,12 @@
|
|
|
97
101
|
|
|
98
102
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButton {
|
|
99
103
|
position: absolute !important;
|
|
100
|
-
margin: calc(350px -
|
|
104
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) 0 0 calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 5rem) !important;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButtonSpec {
|
|
104
108
|
position: absolute !important;
|
|
105
|
-
margin: calc(350px -
|
|
109
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 5rem) 0 0 !important
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButtonFull {
|
|
@@ -115,12 +119,12 @@
|
|
|
115
119
|
|
|
116
120
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButtonOnly {
|
|
117
121
|
position: absolute !important;
|
|
118
|
-
margin: calc(350px -
|
|
122
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) 0 0 calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 6.5rem) !important;
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButtonOnlySpec {
|
|
122
126
|
position: absolute !important;
|
|
123
|
-
margin: calc(350px -
|
|
127
|
+
margin: calc(var(--sapUiIntegrationEditorPreviewCardHeight, calc((350px - 3.3rem) / 0.45)) * 0.45 + 0.5rem) calc(var(--sapUiIntegrationEditorPreviewWidth, calc(190px + 15.5rem))/2 - 6.5rem) 0 0 !important
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
.sapUiIntegrationDTPreview .sapUiIntegrationDTPreviewResizeButtonOnlyFull {
|
|
@@ -137,7 +137,7 @@ sap.ui.define([
|
|
|
137
137
|
* @extends sap.ui.core.Control
|
|
138
138
|
*
|
|
139
139
|
* @author SAP SE
|
|
140
|
-
* @version 1.
|
|
140
|
+
* @version 1.115.0
|
|
141
141
|
* @constructor
|
|
142
142
|
* @since 1.94
|
|
143
143
|
* @private
|
|
@@ -892,7 +892,7 @@ sap.ui.define([
|
|
|
892
892
|
* @experimental since 1.94
|
|
893
893
|
* @public
|
|
894
894
|
* @author SAP SE
|
|
895
|
-
* @version 1.
|
|
895
|
+
* @version 1.115.0
|
|
896
896
|
* @borrows sap.ui.integration.editor.Editor#getParameters as getParameters
|
|
897
897
|
* @borrows sap.ui.integration.editor.Editor#resolveDestination as resolveDestination
|
|
898
898
|
* @borrows sap.ui.integration.editor.Editor#request as request
|
|
@@ -3060,6 +3060,7 @@ sap.ui.define([
|
|
|
3060
3060
|
if (sValue) {
|
|
3061
3061
|
this.setProperty("height", sValue);
|
|
3062
3062
|
document.body.style.setProperty("--sapUiIntegrationEditorFormHeight", sValue);
|
|
3063
|
+
document.body.style.setProperty("--sapUiIntegrationEditorPreviewHeight", sValue);
|
|
3063
3064
|
}
|
|
3064
3065
|
};
|
|
3065
3066
|
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
* @alias sap.ui.integration.editor.EditorResourceBundles
|
|
19
19
|
* @author SAP SE
|
|
20
20
|
* @since 1.94.0
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.115.0
|
|
22
22
|
* @private
|
|
23
23
|
*/
|
|
24
24
|
var EditorResourceBundles = ManagedObject.extend("sap.ui.integration.editor.EditorResourceBundles", {
|
|
@@ -262,15 +262,13 @@
|
|
|
262
262
|
|
|
263
263
|
.sapUiIntegrationEditor .sapUiIntegrationEditorItem .sapUiIntegrationEditorItemObjectFieldTable .sapMTBStandard,
|
|
264
264
|
.sapUiIntegrationEditor .sapUiIntegrationEditorItem .sapUiIntegrationEditorItemObjectListFieldTable .sapMTBStandard {
|
|
265
|
-
|
|
266
|
-
margin-bottom: 0px !important;
|
|
265
|
+
margin-bottom: 0px !important;
|
|
267
266
|
padding-left: 0.25rem !important;
|
|
268
267
|
}
|
|
269
268
|
|
|
270
269
|
.sapUiIntegrationEditor .sapUiIntegrationEditorItem .sapUiIntegrationEditorItemObjectFieldTable .sapMTB,
|
|
271
270
|
.sapUiIntegrationEditor .sapUiIntegrationEditorItem .sapUiIntegrationEditorItemObjectListFieldTable .sapMTB{
|
|
272
271
|
height: 2rem !important;
|
|
273
|
-
border: solid 0.0625rem #d9d9d9;
|
|
274
272
|
}
|
|
275
273
|
|
|
276
274
|
.sapUiIntegrationEditorPopover .sapUiIntegrationEditorDescriptionText {
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
* @alias sap.ui.integration.editor.fields.ObjectField
|
|
81
81
|
* @author SAP SE
|
|
82
82
|
* @since 1.100.0
|
|
83
|
-
* @version 1.
|
|
83
|
+
* @version 1.115.0
|
|
84
84
|
* @private
|
|
85
85
|
* @experimental since 1.100.0
|
|
86
86
|
* @ui5-restricted
|
|
@@ -1250,7 +1250,7 @@ sap.ui.define([
|
|
|
1250
1250
|
}
|
|
1251
1251
|
var oLanguage = {
|
|
1252
1252
|
"key": p,
|
|
1253
|
-
"
|
|
1253
|
+
"description": oResourceBundleTemp.language,
|
|
1254
1254
|
"value": sTranslatedValue,
|
|
1255
1255
|
"originValue": sOriginValue,
|
|
1256
1256
|
"editable": true
|
|
@@ -1267,7 +1267,7 @@ sap.ui.define([
|
|
|
1267
1267
|
for (var p in aEditorResourceBundles) {
|
|
1268
1268
|
aOriginTranslatedValues.push({
|
|
1269
1269
|
"key": p,
|
|
1270
|
-
"
|
|
1270
|
+
"description": aEditorResourceBundles[p].language,
|
|
1271
1271
|
"value": sKey,
|
|
1272
1272
|
"originValue": sKey,
|
|
1273
1273
|
"editable": true
|
|
@@ -1518,7 +1518,7 @@ sap.ui.define([
|
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
if (oTempTranslatedValue.key === oResourceBundle.sLocale.replaceAll('_', '-')) {
|
|
1521
|
-
oTempTranslatedValue.
|
|
1521
|
+
oTempTranslatedValue.description += " (" + oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_CURRENTLANGUAGE") + ")";
|
|
1522
1522
|
aTempTranslatedLanguages.unshift(oTempTranslatedValue);
|
|
1523
1523
|
} else {
|
|
1524
1524
|
aTempTranslatedLanguages.push(oTempTranslatedValue);
|
|
@@ -1584,7 +1584,7 @@ sap.ui.define([
|
|
|
1584
1584
|
new VBox({
|
|
1585
1585
|
items: [
|
|
1586
1586
|
new Text({
|
|
1587
|
-
text: "{languages>
|
|
1587
|
+
text: "{languages>description}"
|
|
1588
1588
|
}),
|
|
1589
1589
|
new Input({
|
|
1590
1590
|
value: "{languages>value}",
|
|
@@ -1596,7 +1596,7 @@ sap.ui.define([
|
|
|
1596
1596
|
customData: [
|
|
1597
1597
|
new CustomData({
|
|
1598
1598
|
key: "{languages>key}",
|
|
1599
|
-
value: "{languages>
|
|
1599
|
+
value: "{languages>description}"
|
|
1600
1600
|
})
|
|
1601
1601
|
]
|
|
1602
1602
|
}),
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* @alias sap.ui.integration.editor.fields.StringField
|
|
66
66
|
* @author SAP SE
|
|
67
67
|
* @since 1.83.0
|
|
68
|
-
* @version 1.
|
|
68
|
+
* @version 1.115.0
|
|
69
69
|
* @private
|
|
70
70
|
* @experimental since 1.83.0
|
|
71
71
|
* @ui5-restricted
|
|
@@ -79,6 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
|
|
80
80
|
StringField.prototype.initVisualization = function (oConfig) {
|
|
81
81
|
var oVisualization = oConfig.visualization;
|
|
82
|
+
var oItem;
|
|
82
83
|
if (!oVisualization) {
|
|
83
84
|
// check if value contains {{parameters.XX}} syntax
|
|
84
85
|
var aResult = oConfig.value ? oConfig.value.match(REGEXP_PARAMETERS) : undefined;
|
|
@@ -162,7 +163,7 @@ sap.ui.define([
|
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
165
|
} else if (oConfig.enum) {
|
|
165
|
-
|
|
166
|
+
oItem = new ListItem({
|
|
166
167
|
key: {
|
|
167
168
|
path: "currentSettings>"
|
|
168
169
|
},
|
|
@@ -188,7 +189,7 @@ sap.ui.define([
|
|
|
188
189
|
}
|
|
189
190
|
};
|
|
190
191
|
} else if (oConfig.values) {
|
|
191
|
-
|
|
192
|
+
oItem = this.formatListItem(oConfig.values.item);
|
|
192
193
|
if (!oConfig.values.item.key) {
|
|
193
194
|
oConfig.values.item.key = oConfig.values.item.text;
|
|
194
195
|
}
|
|
@@ -284,6 +285,26 @@ sap.ui.define([
|
|
|
284
285
|
}
|
|
285
286
|
} else if (oVisualization.type === "TextArea") {
|
|
286
287
|
oVisualization.type = "sap/m/TextArea";
|
|
288
|
+
} else if (oVisualization.type === "Select" && oConfig.values) {
|
|
289
|
+
oItem = this.formatListItem(oConfig.values.item);
|
|
290
|
+
var oSettings = Object.assign({
|
|
291
|
+
selectedKey: {
|
|
292
|
+
path: 'currentSettings>value'
|
|
293
|
+
},
|
|
294
|
+
forceSelection: false,
|
|
295
|
+
editable: oConfig.editable,
|
|
296
|
+
visible: oConfig.visible,
|
|
297
|
+
showSecondaryValues: false,
|
|
298
|
+
width: "100%",
|
|
299
|
+
items: {
|
|
300
|
+
path: '',
|
|
301
|
+
template: oItem
|
|
302
|
+
}
|
|
303
|
+
}, oVisualization.settings || {});
|
|
304
|
+
oVisualization = {
|
|
305
|
+
type: Select,
|
|
306
|
+
settings: oSettings
|
|
307
|
+
};
|
|
287
308
|
}
|
|
288
309
|
this._visualization = oVisualization;
|
|
289
310
|
this.attachAfterInit(this._afterInit);
|
|
@@ -369,7 +390,7 @@ sap.ui.define([
|
|
|
369
390
|
}
|
|
370
391
|
var oLanguage = {
|
|
371
392
|
"key": p,
|
|
372
|
-
"
|
|
393
|
+
"description": oResourceBundleTemp.language,
|
|
373
394
|
"value": sTranslatedValue,
|
|
374
395
|
"originValue": sOriginValue,
|
|
375
396
|
"editable": true
|
|
@@ -475,7 +496,7 @@ sap.ui.define([
|
|
|
475
496
|
new VBox({
|
|
476
497
|
items: [
|
|
477
498
|
new Text({
|
|
478
|
-
text: "{languages>
|
|
499
|
+
text: "{languages>description}"
|
|
479
500
|
}),
|
|
480
501
|
new Input({
|
|
481
502
|
value: "{languages>value}",
|
|
@@ -487,7 +508,7 @@ sap.ui.define([
|
|
|
487
508
|
customData: [
|
|
488
509
|
new CustomData({
|
|
489
510
|
key: "{languages>key}",
|
|
490
|
-
value: "{languages>
|
|
511
|
+
value: "{languages>description}"
|
|
491
512
|
})
|
|
492
513
|
]
|
|
493
514
|
}),
|
|
@@ -513,8 +534,8 @@ sap.ui.define([
|
|
|
513
534
|
}).addStyleClass("sapMHeaderTitle"),
|
|
514
535
|
new VBox({
|
|
515
536
|
items: [
|
|
516
|
-
new Text(sParameterId + "
|
|
517
|
-
text: "{languages>/currentLanguage/
|
|
537
|
+
new Text(sParameterId + "_translation_popover_currentlanguage_description_label", {
|
|
538
|
+
text: "{languages>/currentLanguage/description}"
|
|
518
539
|
}),
|
|
519
540
|
new Input(sParameterId + "_translation_popover_currentlanguage_value_input", {
|
|
520
541
|
value: "{languages>/currentLanguage/value}",
|
|
@@ -24,13 +24,13 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.integration
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.115.0
|
|
28
28
|
* @since 1.62
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
32
32
|
name: "sap.ui.integration",
|
|
33
|
-
version: "1.
|
|
33
|
+
version: "1.115.0",
|
|
34
34
|
dependencies: [
|
|
35
35
|
"sap.ui.core",
|
|
36
36
|
"sap.f",
|