@openui5/sap.ui.integration 1.120.10 → 1.121.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/.reuse/dep5 +23 -21
- package/THIRDPARTY.txt +6 -43
- 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 +14 -12
- package/src/sap/ui/integration/cards/AdaptiveContent.js +16 -16
- package/src/sap/ui/integration/cards/AnalyticalContent.js +37 -11
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +13 -4
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +9 -9
- package/src/sap/ui/integration/cards/CalendarContentRenderer.js +10 -7
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +11 -5
- package/src/sap/ui/integration/cards/Header.js +4 -4
- package/src/sap/ui/integration/cards/ListContent.js +8 -2
- package/src/sap/ui/integration/cards/ListContentRenderer.js +5 -3
- package/src/sap/ui/integration/cards/NumericHeader.js +4 -4
- package/src/sap/ui/integration/cards/ObjectContent.js +42 -5
- package/src/sap/ui/integration/cards/TableContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +4 -4
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/actions/BaseAction.js +4 -4
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/actions/ShowCardAction.js +3 -3
- 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/adaptivecards/overwrites/inputsGeneralOverwrites.js +3 -3
- package/src/sap/ui/integration/cards/data/CsrfToken.js +61 -0
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +33 -32
- package/src/sap/ui/integration/cards/filters/ComboBoxFilter.js +254 -0
- 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 +9 -3
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +16 -3
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/cards/list/MicrochartsResizeHelper.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +189 -84
- package/src/sap/ui/integration/controls/ActionsToolbar.js +12 -9
- package/src/sap/ui/integration/controls/BlockingMessage.js +93 -44
- package/src/sap/ui/integration/controls/ImageWithOverlay.js +199 -0
- package/src/sap/ui/integration/controls/ImageWithOverlayRenderer.js +36 -0
- package/src/sap/ui/integration/controls/LinkWithIcon.js +2 -2
- package/src/sap/ui/integration/controls/ListContentItem.js +10 -7
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +5 -4
- package/src/sap/ui/integration/controls/Microchart.js +4 -4
- package/src/sap/ui/integration/controls/MicrochartLegend.js +4 -4
- package/src/sap/ui/integration/controls/MicrochartLegendRenderer.js +3 -3
- package/src/sap/ui/integration/controls/ObjectStatus.js +3 -1
- package/src/sap/ui/integration/controls/Paginator.js +19 -11
- package/src/sap/ui/integration/controls/PaginatorRenderer.js +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +6 -4
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +8 -6
- 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/config/index.js +5 -16
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_mk.properties +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 +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +5 -3
- 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 +14 -6
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +27 -11
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +30 -17
- package/src/sap/ui/integration/editor/Editor.js +23 -25
- 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 +21 -18
- package/src/sap/ui/integration/editor/css/Editor.css +9 -7
- package/src/sap/ui/integration/editor/fields/BaseField.js +27 -7
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +5 -5
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +5 -5
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/GroupField.js +11 -13
- package/src/sap/ui/integration/editor/fields/IntegerField.js +5 -5
- package/src/sap/ui/integration/editor/fields/NumberField.js +5 -5
- package/src/sap/ui/integration/editor/fields/ObjectField.js +171 -13
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +2 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +4 -4
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +5 -5
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +2 -3
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +12 -8
- package/src/sap/ui/integration/editor/fields/viz/ImageSelect.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/IconFormatter.js +5 -5
- package/src/sap/ui/integration/library-bootstrap.js +21 -20
- package/src/sap/ui/integration/library.js +23 -8
- package/src/sap/ui/integration/messagebundle.properties +3 -3
- 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_cnr.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 +157 -0
- package/src/sap/ui/integration/messagebundle_en_GB.properties +2 -0
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +154 -152
- 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_mk.properties +4 -2
- 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_sr.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 +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 +198 -22
- package/src/sap/ui/integration/themes/base/ActionsStrip.less +6 -0
- package/src/sap/ui/integration/themes/base/AnalyticsCloudContent.less +2 -2
- package/src/sap/ui/integration/themes/base/Card.less +5 -0
- package/src/sap/ui/integration/themes/base/ImageWithOverlay.less +47 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +12 -0
- package/src/sap/ui/integration/themes/base/ObjectContent.less +20 -2
- package/src/sap/ui/integration/themes/base/{ObjectStatusIcons.less → ObjectStatus.less} +12 -8
- package/src/sap/ui/integration/themes/base/library.source.less +2 -1
- 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 +1 -1
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +4 -4
- package/src/sap/ui/integration/util/CardMerger.js +4 -4
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ComboBoxHelper.js +59 -0
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +130 -148
- package/src/sap/ui/integration/util/DataProvider.js +22 -9
- package/src/sap/ui/integration/util/DataProviderFactory.js +32 -12
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +3 -2
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.js +9 -34
- package/src/sap/ui/integration/util/HeaderFactory.js +6 -4
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +1 -1
- package/src/sap/ui/integration/util/Manifest.js +22 -7
- package/src/sap/ui/integration/util/ManifestResolver.js +3 -3
- package/src/sap/ui/integration/util/ParameterMap.js +5 -3
- package/src/sap/ui/integration/util/RequestDataProvider.js +27 -22
- 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 +1 -1
- package/src/sap/ui/integration/widgets/Card.js +47 -33
- package/src/sap/ui/integration/widgets/CardRenderer.js +6 -1
- package/src/sap-ui-integration.js +19 -17
- package/ui5.yaml +4 -0
- package/LICENSES/BSD-2-Clause.txt +0 -22
|
@@ -9,7 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
"sap/m/Input",
|
|
10
10
|
"sap/m/MultiInput",
|
|
11
11
|
"sap/m/Token",
|
|
12
|
-
"sap/ui/core/
|
|
12
|
+
"sap/ui/core/Element",
|
|
13
13
|
"sap/ui/integration/util/BindingHelper",
|
|
14
14
|
"sap/ui/core/ListItem",
|
|
15
15
|
"sap/base/util/ObjectPath",
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
Input,
|
|
30
30
|
MultiInput,
|
|
31
31
|
Token,
|
|
32
|
-
|
|
32
|
+
Element,
|
|
33
33
|
BindingHelper,
|
|
34
34
|
ListItem,
|
|
35
35
|
ObjectPath,
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
* @alias sap.ui.integration.editor.fields.BaseField
|
|
55
55
|
* @author SAP SE
|
|
56
56
|
* @since 1.83.0
|
|
57
|
-
* @version 1.
|
|
57
|
+
* @version 1.121.1
|
|
58
58
|
* @private
|
|
59
59
|
* @ui5-restricted
|
|
60
60
|
* @experimental since 1.83.0
|
|
@@ -184,12 +184,12 @@ sap.ui.define([
|
|
|
184
184
|
|
|
185
185
|
BaseField.prototype.getMessagestrip = function () {
|
|
186
186
|
var sMessageStripId = this.getAssociation("_messageStrip");
|
|
187
|
-
return
|
|
187
|
+
return Element.getElementById(sMessageStripId);
|
|
188
188
|
};
|
|
189
189
|
|
|
190
190
|
BaseField.prototype.getMessageIcon = function () {
|
|
191
191
|
var sMessageIconId = this.getAssociation("_messageIcon");
|
|
192
|
-
return
|
|
192
|
+
return Element.getElementById(sMessageIconId);
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
BaseField.prototype._removeValidationMessage = function () {
|
|
@@ -400,7 +400,7 @@ sap.ui.define([
|
|
|
400
400
|
};
|
|
401
401
|
|
|
402
402
|
BaseField.prototype._applyMessage = function () {
|
|
403
|
-
var oIcon =
|
|
403
|
+
var oIcon = Element.getElementById(this.getAssociation("_messageIcon"));
|
|
404
404
|
if (this.getAssociation("_messageIcon") && oIcon) {
|
|
405
405
|
var oIconDomRef = oIcon.getDomRef();
|
|
406
406
|
if (oIconDomRef) {
|
|
@@ -537,7 +537,7 @@ sap.ui.define([
|
|
|
537
537
|
}
|
|
538
538
|
oMessageStrip.getDomRef().style.width = width + "px";
|
|
539
539
|
};
|
|
540
|
-
oMessageStrip.
|
|
540
|
+
oMessageStrip.invalidate();
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
|
|
@@ -863,6 +863,26 @@ sap.ui.define([
|
|
|
863
863
|
return oItem;
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
+
// add model name into binding
|
|
867
|
+
// before:
|
|
868
|
+
// {
|
|
869
|
+
// "text": "{text}",
|
|
870
|
+
// "key": "{key}"
|
|
871
|
+
// }
|
|
872
|
+
// after:
|
|
873
|
+
// {
|
|
874
|
+
// "text": "{model>text}",
|
|
875
|
+
// "key": "{model>key}"
|
|
876
|
+
// }
|
|
877
|
+
BaseField.prototype.addModelPrefix = function (oConfig, sModelName) {
|
|
878
|
+
for (var key in oConfig) {
|
|
879
|
+
var sValue = oConfig[key];
|
|
880
|
+
sValue = "{" + sModelName + ">" + sValue.substring(1);
|
|
881
|
+
oConfig[key] = sValue;
|
|
882
|
+
}
|
|
883
|
+
return oConfig;
|
|
884
|
+
};
|
|
885
|
+
|
|
866
886
|
BaseField.prototype.getPopoverPlacement = function (oControl) {
|
|
867
887
|
var sPlacement = "Right";
|
|
868
888
|
var iX = oControl.getDomRef().getBoundingClientRect().x;
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/integration/editor/fields/BaseField",
|
|
8
8
|
"sap/m/DatePicker",
|
|
9
|
-
"sap/ui/core/date/UI5Date"
|
|
9
|
+
"sap/ui/core/date/UI5Date",
|
|
10
|
+
"sap/ui/model/type/Date"
|
|
10
11
|
], function (
|
|
11
|
-
BaseField, DatePicker, UI5Date
|
|
12
|
+
BaseField, DatePicker, UI5Date, DateType
|
|
12
13
|
) {
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ sap.ui.define([
|
|
|
18
19
|
* @alias sap.ui.integration.editor.fields.DateField
|
|
19
20
|
* @author SAP SE
|
|
20
21
|
* @since 1.83.0
|
|
21
|
-
* @version 1.
|
|
22
|
+
* @version 1.121.1
|
|
22
23
|
* @private
|
|
23
24
|
* @experimental since 1.83.0
|
|
24
25
|
* @ui5-restricted
|
|
@@ -42,8 +43,7 @@ sap.ui.define([
|
|
|
42
43
|
settings: {
|
|
43
44
|
value: {
|
|
44
45
|
path: "currentSettings>value",
|
|
45
|
-
type:
|
|
46
|
-
formatOptions: oformatter
|
|
46
|
+
type: new DateType(oformatter)
|
|
47
47
|
},
|
|
48
48
|
editable: oConfig.editable,
|
|
49
49
|
//width: "16rem",
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/integration/editor/fields/BaseField",
|
|
8
8
|
"sap/m/DateTimePicker",
|
|
9
|
-
"sap/ui/core/date/UI5Date"
|
|
9
|
+
"sap/ui/core/date/UI5Date",
|
|
10
|
+
"sap/ui/model/type/DateTime"
|
|
10
11
|
], function (
|
|
11
|
-
BaseField, DateTimePicker, UI5Date
|
|
12
|
+
BaseField, DateTimePicker, UI5Date, DateTimeType
|
|
12
13
|
) {
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
@@ -18,7 +19,7 @@ sap.ui.define([
|
|
|
18
19
|
* @alias sap.ui.integration.editor.fields.DateTimeField
|
|
19
20
|
* @author SAP SE
|
|
20
21
|
* @since 1.83.0
|
|
21
|
-
* @version 1.
|
|
22
|
+
* @version 1.121.1
|
|
22
23
|
* @private
|
|
23
24
|
* @experimental since 1.83.0
|
|
24
25
|
* @ui5-restricted
|
|
@@ -42,8 +43,7 @@ sap.ui.define([
|
|
|
42
43
|
settings: {
|
|
43
44
|
value: {
|
|
44
45
|
path: "currentSettings>value",
|
|
45
|
-
type:
|
|
46
|
-
formatOptions: oformatter
|
|
46
|
+
type: new DateTimeType(oformatter)
|
|
47
47
|
},
|
|
48
48
|
editable: oConfig.editable,
|
|
49
49
|
//width: "16rem",
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
+
"sap/ui/core/Element",
|
|
7
8
|
"sap/ui/integration/editor/fields/BaseField",
|
|
8
9
|
"sap/m/Panel",
|
|
9
10
|
"sap/m/IconTabBar",
|
|
10
11
|
"sap/m/IconTabFilter",
|
|
11
|
-
"sap/m/MessageStrip"
|
|
12
|
-
"sap/ui/core/Core"
|
|
12
|
+
"sap/m/MessageStrip"
|
|
13
13
|
], function (
|
|
14
|
+
Element,
|
|
14
15
|
BaseField,
|
|
15
16
|
Panel,
|
|
16
17
|
IconTabBar,
|
|
17
18
|
IconTabFilter,
|
|
18
|
-
MessageStrip
|
|
19
|
-
Core
|
|
19
|
+
MessageStrip
|
|
20
20
|
) {
|
|
21
21
|
"use strict";
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @alias sap.ui.integration.editor.fields.GroupField
|
|
27
27
|
* @author SAP SE
|
|
28
28
|
* @since 1.106.0
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.121.1
|
|
30
30
|
* @private
|
|
31
31
|
* @experimental since 1.106.0
|
|
32
32
|
* @ui5-restricted
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
}
|
|
73
73
|
var oMessageStrip = oControl._level === "1" && this.getParent().getParent() ? this.getParent().getParent().getAggregation("_messageStrip") : this.getParent().getAggregation("_messageStrip");
|
|
74
74
|
if (oMessageStrip === null) {
|
|
75
|
-
oMessageStrip =
|
|
75
|
+
oMessageStrip = Element.getElementById(this.getAssociation("_messageStrip"));
|
|
76
76
|
}
|
|
77
77
|
oControl.addContent(oMessageStrip);
|
|
78
78
|
oControl.focus();
|
|
@@ -161,7 +161,7 @@ sap.ui.define([
|
|
|
161
161
|
}
|
|
162
162
|
var oMessageStrip = oControl._messageStrip;
|
|
163
163
|
if (oControl._level !== "1" && oMessageStrip) {
|
|
164
|
-
oMessageStrip.
|
|
164
|
+
oMessageStrip.invalidate();
|
|
165
165
|
}
|
|
166
166
|
if (oControl.getExpanded()) {
|
|
167
167
|
// handle error message for sub panel/tab
|
|
@@ -200,8 +200,6 @@ sap.ui.define([
|
|
|
200
200
|
oControl.setBackgroundDesign("Transparent");
|
|
201
201
|
oControl.setHeaderBackgroundDesign("Transparent");
|
|
202
202
|
// oControl.setHeaderBackgroundDesign("Solid");
|
|
203
|
-
oControl.addStyleClass("sapUiIntegrationEditorSubGroup");
|
|
204
|
-
// oControl.addStyleClass("sapUiIntegrationEditorSubGroup").addStyleClass("cardEditorIconTabBarBG");
|
|
205
203
|
// handle messageStrip for tab filter
|
|
206
204
|
if (this.getMode() !== "translation") {
|
|
207
205
|
var oMessageStripOfTab = new MessageStrip({
|
|
@@ -218,7 +216,7 @@ sap.ui.define([
|
|
|
218
216
|
oControl._messageStrip = oMessageStripOfTab;
|
|
219
217
|
}
|
|
220
218
|
// oControl._cols = oConfig.cols || 2; //by default 2 cols
|
|
221
|
-
|
|
219
|
+
oIconTabFilter._level = oConfig.level || 0; //by default 0 level
|
|
222
220
|
}
|
|
223
221
|
};
|
|
224
222
|
|
|
@@ -267,7 +265,7 @@ sap.ui.define([
|
|
|
267
265
|
//handle error message for fields
|
|
268
266
|
var tMessageStrip = this.getParent().getParent().getAggregation("_messageStrip");
|
|
269
267
|
if (tMessageStrip === null) {
|
|
270
|
-
tMessageStrip =
|
|
268
|
+
tMessageStrip = Element.getElementById(this.getAssociation("_messageStrip"));
|
|
271
269
|
}
|
|
272
270
|
aItems[n].addContent(tMessageStrip);
|
|
273
271
|
}
|
|
@@ -279,7 +277,7 @@ sap.ui.define([
|
|
|
279
277
|
var sErrorType = "None";
|
|
280
278
|
for (var i = 0; i < oControl._subItems.length; i++) {
|
|
281
279
|
var sSettingsPath = oControl._subItems[i].settingspath;
|
|
282
|
-
var oItem =
|
|
280
|
+
var oItem = Element.getElementById(oControl._subItems[i].itemId);
|
|
283
281
|
if (oModel.getProperty(sSettingsPath + "/hasError") === true && oItem.getVisible()) {
|
|
284
282
|
bHasError = true;
|
|
285
283
|
var sType = oModel.getProperty(sSettingsPath + "/errorType");
|
|
@@ -324,7 +322,7 @@ sap.ui.define([
|
|
|
324
322
|
});
|
|
325
323
|
expandBTN.setEnabled(false);
|
|
326
324
|
expandBTN.addStyleClass("errorBTN").addStyleClass("errorBTNDisabled");
|
|
327
|
-
var iMessageStrip =
|
|
325
|
+
var iMessageStrip = Element.getElementById(this.getParameterId() + "_strip");
|
|
328
326
|
expandBTN.addEventDelegate({
|
|
329
327
|
onmouseover: function() {
|
|
330
328
|
iMessageStrip.setVisible(true);
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/integration/editor/fields/BaseField",
|
|
8
|
-
"sap/m/Input"
|
|
8
|
+
"sap/m/Input",
|
|
9
|
+
"sap/ui/model/type/Integer"
|
|
9
10
|
], function (
|
|
10
|
-
BaseField, Input
|
|
11
|
+
BaseField, Input, IntegerType
|
|
11
12
|
) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
@@ -17,7 +18,7 @@ sap.ui.define([
|
|
|
17
18
|
* @alias sap.ui.integration.editor.fields.IntegerField
|
|
18
19
|
* @author SAP SE
|
|
19
20
|
* @since 1.83.0
|
|
20
|
-
* @version 1.
|
|
21
|
+
* @version 1.121.1
|
|
21
22
|
* @private
|
|
22
23
|
* @experimental since 1.83.0
|
|
23
24
|
* @ui5-restricted
|
|
@@ -38,8 +39,7 @@ sap.ui.define([
|
|
|
38
39
|
settings: {
|
|
39
40
|
value: {
|
|
40
41
|
path: 'currentSettings>value',
|
|
41
|
-
type:
|
|
42
|
-
formatOptions: oFormatter
|
|
42
|
+
type: new IntegerType(oFormatter)
|
|
43
43
|
},
|
|
44
44
|
editable: oConfig.editable,
|
|
45
45
|
type: "Number",
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/integration/editor/fields/BaseField",
|
|
8
|
-
"sap/m/Input"
|
|
8
|
+
"sap/m/Input",
|
|
9
|
+
"sap/ui/model/type/Float"
|
|
9
10
|
], function (
|
|
10
|
-
BaseField, Input
|
|
11
|
+
BaseField, Input, FloatType
|
|
11
12
|
) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
@@ -17,7 +18,7 @@ sap.ui.define([
|
|
|
17
18
|
* @alias sap.ui.integration.editor.fields.NumberField
|
|
18
19
|
* @author SAP SE
|
|
19
20
|
* @since 1.83.0
|
|
20
|
-
* @version 1.
|
|
21
|
+
* @version 1.121.1
|
|
21
22
|
* @private
|
|
22
23
|
* @experimental since 1.83.0
|
|
23
24
|
* @ui5-restricted
|
|
@@ -37,8 +38,7 @@ sap.ui.define([
|
|
|
37
38
|
settings: {
|
|
38
39
|
value: {
|
|
39
40
|
path: 'currentSettings>value',
|
|
40
|
-
type:
|
|
41
|
-
formatOptions: oFormatter
|
|
41
|
+
type: new FloatType(oFormatter)
|
|
42
42
|
},
|
|
43
43
|
editable: oConfig.editable,
|
|
44
44
|
type: "Number"
|
|
@@ -36,7 +36,11 @@ sap.ui.define([
|
|
|
36
36
|
"sap/ui/integration/util/Utils",
|
|
37
37
|
"sap/m/table/columnmenu/Menu",
|
|
38
38
|
"sap/m/ComboBox",
|
|
39
|
-
"sap/ui/core/ListItem"
|
|
39
|
+
"sap/ui/core/ListItem",
|
|
40
|
+
"sap/ui/model/type/Integer",
|
|
41
|
+
"sap/ui/model/type/Float",
|
|
42
|
+
"sap/m/HBox",
|
|
43
|
+
"sap/ui/core/CustomData"
|
|
40
44
|
], function (
|
|
41
45
|
BaseField,
|
|
42
46
|
Text,
|
|
@@ -69,7 +73,11 @@ sap.ui.define([
|
|
|
69
73
|
Utils,
|
|
70
74
|
Menu,
|
|
71
75
|
ComboBox,
|
|
72
|
-
ListItem
|
|
76
|
+
ListItem,
|
|
77
|
+
IntegerType,
|
|
78
|
+
FloatType,
|
|
79
|
+
HBox,
|
|
80
|
+
CustomData
|
|
73
81
|
) {
|
|
74
82
|
"use strict";
|
|
75
83
|
var REGEXP_TRANSLATABLE = /\{\{(?!parameters.)(?!destinations.)([^\}\}]+)\}\}/g;
|
|
@@ -80,7 +88,7 @@ sap.ui.define([
|
|
|
80
88
|
* @alias sap.ui.integration.editor.fields.ObjectField
|
|
81
89
|
* @author SAP SE
|
|
82
90
|
* @since 1.100.0
|
|
83
|
-
* @version 1.
|
|
91
|
+
* @version 1.121.1
|
|
84
92
|
* @private
|
|
85
93
|
* @experimental since 1.100.0
|
|
86
94
|
* @ui5-restricted
|
|
@@ -434,6 +442,7 @@ sap.ui.define([
|
|
|
434
442
|
var oCellTemplate;
|
|
435
443
|
var oCellSettings;
|
|
436
444
|
var oCell = deepClone(oProperty.cell) || {};
|
|
445
|
+
oCell.values = oCell.values || oProperty.values;
|
|
437
446
|
delete oCell.type;
|
|
438
447
|
if (sCellType === "string" && oCell.values) {
|
|
439
448
|
sCellType = "ComboBox";
|
|
@@ -529,22 +538,23 @@ sap.ui.define([
|
|
|
529
538
|
oCellTemplate = new Link(oCellSettings);
|
|
530
539
|
break;
|
|
531
540
|
case "ComboBox":
|
|
541
|
+
var oItem = this.addModelPrefix(oCell.values.item, "settings");
|
|
532
542
|
oCellSettings = {
|
|
533
543
|
width: "100%",
|
|
534
544
|
selectedKey: sDefaultValue,
|
|
545
|
+
editable: false,
|
|
535
546
|
items: {
|
|
536
547
|
path: "settings>" + oCell.values.data.path,
|
|
537
|
-
template: new ListItem(
|
|
548
|
+
template: new ListItem(oItem)
|
|
538
549
|
}
|
|
539
550
|
};
|
|
540
551
|
if (oCell.values.sorter) {
|
|
541
552
|
oCellSettings.items.sorter = [new Sorter({
|
|
542
553
|
path: oCell.values.sorter
|
|
543
554
|
})];
|
|
555
|
+
delete oCell.values.sorter;
|
|
544
556
|
}
|
|
545
|
-
|
|
546
|
-
oCellSettings.change = oCell.change;
|
|
547
|
-
}
|
|
557
|
+
oCellSettings = merge(oCellSettings, oCell);
|
|
548
558
|
var oComboBoxSettingsModel = new JSONModel(oCell.values.data.json);
|
|
549
559
|
oCellTemplate = new ComboBox(oCellSettings);
|
|
550
560
|
oCellTemplate.setModel(oComboBoxSettingsModel,"settings");
|
|
@@ -559,6 +569,103 @@ sap.ui.define([
|
|
|
559
569
|
oCellSettings.tooltip = oCell.tooltip || oCellSettings.text;
|
|
560
570
|
oCellTemplate = new Input(oCellSettings);
|
|
561
571
|
break;
|
|
572
|
+
case "object":
|
|
573
|
+
oCellSettings = {
|
|
574
|
+
value: {
|
|
575
|
+
path: n,
|
|
576
|
+
formatter: function(vValue) {
|
|
577
|
+
if (!vValue || vValue === "") {
|
|
578
|
+
return undefined;
|
|
579
|
+
}
|
|
580
|
+
vValue = JSON.stringify(vValue, null, "\t");
|
|
581
|
+
if (typeof vValue === "object" && !vValue.length) {
|
|
582
|
+
vValue = vValue.replace(/\"\$\$([a-zA-Z]*)\$\$\"/g, function (s) {
|
|
583
|
+
return s.substring(3, s.length - 3);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
return vValue;
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
editable: false
|
|
590
|
+
};
|
|
591
|
+
oCellSettings = merge(oCellSettings, oCell);
|
|
592
|
+
oCellTemplate = new HBox({
|
|
593
|
+
items: [
|
|
594
|
+
new Input(oCellSettings),
|
|
595
|
+
new Button({
|
|
596
|
+
icon: "sap-icon://display",
|
|
597
|
+
customData: [
|
|
598
|
+
new CustomData({
|
|
599
|
+
key: "value",
|
|
600
|
+
value: sDefaultValue
|
|
601
|
+
})
|
|
602
|
+
],
|
|
603
|
+
press: function(oEvent) {
|
|
604
|
+
var oControl = oEvent.getSource();
|
|
605
|
+
if (!that._oObjectPropertyDetailsPopover) {
|
|
606
|
+
var oTextArea = new TextArea(sParameterId + "_control_objectproperty_details_popover_textarea", {
|
|
607
|
+
editable: false,
|
|
608
|
+
rows: 9
|
|
609
|
+
});
|
|
610
|
+
var oCloseButton = new Button(sParameterId + "_control_objectproperty_details_popover_close_btn", {
|
|
611
|
+
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_CLOSE"),
|
|
612
|
+
press: function () {
|
|
613
|
+
that._oObjectPropertyDetailsPopover.close();
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
that._oObjectPropertyDetailsPopover = new Popover(sParameterId + "_control_objectproperty_details_popover", {
|
|
617
|
+
placement: "Right",
|
|
618
|
+
contentWidth: "200px",
|
|
619
|
+
contentHeight: "240px",
|
|
620
|
+
modal: true,
|
|
621
|
+
title: oResourceBundle.getText("EDITOR_FIELD_OBJECT_PROPERTY_POPOVER_TITLE"),
|
|
622
|
+
content: [
|
|
623
|
+
new SimpleForm({
|
|
624
|
+
layout: "ResponsiveGridLayout",
|
|
625
|
+
labelSpanXL: 4,
|
|
626
|
+
labelSpanL: 4,
|
|
627
|
+
labelSpanM: 4,
|
|
628
|
+
//labelSpanS: "{= ${/editMode} === 'Properties' ? 4 : 12}",
|
|
629
|
+
labelSpanS: 12,
|
|
630
|
+
emptySpanXL: 1,
|
|
631
|
+
emptySpanL: 1,
|
|
632
|
+
emptySpanM: 1,
|
|
633
|
+
emptySpanS: 0,
|
|
634
|
+
columnsXL: 1,
|
|
635
|
+
columnsL: 1,
|
|
636
|
+
columnsM: 1,
|
|
637
|
+
content: [
|
|
638
|
+
oTextArea
|
|
639
|
+
]
|
|
640
|
+
})
|
|
641
|
+
],
|
|
642
|
+
footer: new OverflowToolbar({
|
|
643
|
+
content: [
|
|
644
|
+
new ToolbarSpacer(),
|
|
645
|
+
oCloseButton
|
|
646
|
+
]
|
|
647
|
+
})
|
|
648
|
+
}).addStyleClass("sapUiIntegrationEditorItemObjectFieldDetailsPopover");
|
|
649
|
+
that._oObjectPropertyDetailsPopover._oTextArea = oTextArea;
|
|
650
|
+
that._oObjectPropertyDetailsPopover._oCloseButton = oCloseButton;
|
|
651
|
+
}
|
|
652
|
+
var oCustomerData = oControl.getCustomData()[0];
|
|
653
|
+
var vValue = oCustomerData.getValue();
|
|
654
|
+
if (vValue) {
|
|
655
|
+
vValue = JSON.stringify(vValue, null, "\t");
|
|
656
|
+
if (typeof vValue === "object" && !vValue.length) {
|
|
657
|
+
vValue = vValue.replace(/\"\$\$([a-zA-Z]*)\$\$\"/g, function (s) {
|
|
658
|
+
return s.substring(3, s.length - 3);
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
that._oObjectPropertyDetailsPopover._oTextArea.setValue(vValue);
|
|
663
|
+
that._oObjectPropertyDetailsPopover.openBy(oControl);
|
|
664
|
+
}
|
|
665
|
+
})
|
|
666
|
+
]
|
|
667
|
+
});
|
|
668
|
+
break;
|
|
562
669
|
default:
|
|
563
670
|
oCellTemplate = new Text({
|
|
564
671
|
text: sDefaultValue,
|
|
@@ -847,6 +954,7 @@ sap.ui.define([
|
|
|
847
954
|
|
|
848
955
|
// save change
|
|
849
956
|
that.refreshValue();
|
|
957
|
+
that.updateTable();
|
|
850
958
|
};
|
|
851
959
|
|
|
852
960
|
ObjectField.prototype.onSelectionChange = function (oEvent) {
|
|
@@ -1083,6 +1191,10 @@ sap.ui.define([
|
|
|
1083
1191
|
});
|
|
1084
1192
|
aPropertyContentList.push(oLable);
|
|
1085
1193
|
var oValueControl;
|
|
1194
|
+
oProperty.values = oProperty.values || (oProperty.cell && oProperty.cell.values);
|
|
1195
|
+
if (oProperty.type === "string" && oProperty.values) {
|
|
1196
|
+
oProperty.type = "ComboBox";
|
|
1197
|
+
}
|
|
1086
1198
|
var oPropertySettings = deepClone(oProperty, 500);
|
|
1087
1199
|
delete oPropertySettings.type;
|
|
1088
1200
|
delete oPropertySettings.label;
|
|
@@ -1091,6 +1203,7 @@ sap.ui.define([
|
|
|
1091
1203
|
delete oPropertySettings.formatter;
|
|
1092
1204
|
delete oPropertySettings.column;
|
|
1093
1205
|
delete oPropertySettings.cell;
|
|
1206
|
+
delete oPropertySettings.values;
|
|
1094
1207
|
var oSettings;
|
|
1095
1208
|
switch (oProperty.type) {
|
|
1096
1209
|
case "boolean":
|
|
@@ -1125,8 +1238,7 @@ sap.ui.define([
|
|
|
1125
1238
|
oSettings = {
|
|
1126
1239
|
value: {
|
|
1127
1240
|
path: sPathPrefix + n,
|
|
1128
|
-
type:
|
|
1129
|
-
formatOptions: oProperty.formatter
|
|
1241
|
+
type: new IntegerType(oProperty.formatter)
|
|
1130
1242
|
},
|
|
1131
1243
|
visible: "{= ${/editMode} === 'Properties'}",
|
|
1132
1244
|
editable: oConfig.editable === false ? false : "{= ${" + sPathPrefix + "_dt/_editable} !== false}",
|
|
@@ -1140,8 +1252,7 @@ sap.ui.define([
|
|
|
1140
1252
|
oSettings = {
|
|
1141
1253
|
value: {
|
|
1142
1254
|
path: sPathPrefix + n,
|
|
1143
|
-
type:
|
|
1144
|
-
formatOptions: oProperty.formatter
|
|
1255
|
+
type: new FloatType(oProperty.formatter)
|
|
1145
1256
|
},
|
|
1146
1257
|
visible: "{= ${/editMode} === 'Properties'}",
|
|
1147
1258
|
editable: oConfig.editable === false ? false : "{= ${" + sPathPrefix + "_dt/_editable} !== false}",
|
|
@@ -1151,6 +1262,24 @@ sap.ui.define([
|
|
|
1151
1262
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1152
1263
|
oValueControl = new Input(sPropertyControlId, oSettings);
|
|
1153
1264
|
break;
|
|
1265
|
+
case "ComboBox":
|
|
1266
|
+
var oItem = this.addModelPrefix(oProperty.values.item, "settings");
|
|
1267
|
+
oSettings = {
|
|
1268
|
+
width: "100%",
|
|
1269
|
+
selectedKey: "{" + sPathPrefix + n + "}",
|
|
1270
|
+
visible: "{= ${/editMode} === 'Properties'}",
|
|
1271
|
+
editable: oConfig.editable === false ? false : "{= ${" + sPathPrefix + "_dt/_editable} !== false}",
|
|
1272
|
+
items: {
|
|
1273
|
+
path: "settings>" + oProperty.values.data.path,
|
|
1274
|
+
template: new ListItem(oItem)
|
|
1275
|
+
},
|
|
1276
|
+
change: fnChange
|
|
1277
|
+
};
|
|
1278
|
+
oSettings = merge(oSettings, oPropertySettings);
|
|
1279
|
+
oValueControl = new ComboBox(sPropertyControlId, oSettings);
|
|
1280
|
+
var oComboBoxSettingsModel = new JSONModel(oProperty.values.data.json);
|
|
1281
|
+
oValueControl.setModel(oComboBoxSettingsModel,"settings");
|
|
1282
|
+
break;
|
|
1154
1283
|
case "object":
|
|
1155
1284
|
oSettings = {
|
|
1156
1285
|
value: {
|
|
@@ -1170,7 +1299,31 @@ sap.ui.define([
|
|
|
1170
1299
|
},
|
|
1171
1300
|
visible: "{= ${/editMode} === 'Properties'}",
|
|
1172
1301
|
editable: oConfig.editable === false ? false : "{= ${" + sPathPrefix + "_dt/_editable} !== false}",
|
|
1173
|
-
change:
|
|
1302
|
+
change: function(oEvent) {
|
|
1303
|
+
var oControl = oEvent.getSource();
|
|
1304
|
+
var sValue = oEvent.getParameter("value");
|
|
1305
|
+
var oValueModel = oControl.getModel();
|
|
1306
|
+
if (!sValue || sValue === "") {
|
|
1307
|
+
oValueModel.setProperty(oControl.getBindingPath("value"), undefined);
|
|
1308
|
+
oValueModel.checkUpdate(true);
|
|
1309
|
+
oControl.setValueState("None");
|
|
1310
|
+
oControl.setValueStateText("");
|
|
1311
|
+
fnChange(oEvent);
|
|
1312
|
+
} else {
|
|
1313
|
+
try {
|
|
1314
|
+
var oValue = JSON.parse(sValue);
|
|
1315
|
+
oValueModel.setProperty(oControl.getBindingPath("value"), oValue);
|
|
1316
|
+
oValueModel.checkUpdate(true);
|
|
1317
|
+
oControl.setValueState("None");
|
|
1318
|
+
oControl.setValueStateText("");
|
|
1319
|
+
fnChange(oEvent);
|
|
1320
|
+
} catch (e) {
|
|
1321
|
+
var oResourceBundle = that.getResourceBundle();
|
|
1322
|
+
oControl.setValueState("Error");
|
|
1323
|
+
oControl.setValueStateText(oResourceBundle.getText("EDITOR_VAL_NOT_A_JSONOBJECT"));
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1174
1327
|
rows: 3
|
|
1175
1328
|
};
|
|
1176
1329
|
oSettings = merge(oSettings, oPropertySettings);
|
|
@@ -1267,7 +1420,12 @@ sap.ui.define([
|
|
|
1267
1420
|
var that = this;
|
|
1268
1421
|
var oConfig = that.getConfiguration();
|
|
1269
1422
|
var oControl = that.getAggregation("_field");
|
|
1270
|
-
var aContents = oControl.removeAllContent()
|
|
1423
|
+
var aContents = oControl.removeAllContent();
|
|
1424
|
+
for (var i = 0; i < aContents.length - 2; i++) {
|
|
1425
|
+
// destroy contents manually
|
|
1426
|
+
aContents[i].destroy();
|
|
1427
|
+
}
|
|
1428
|
+
aContents = aContents.slice(-2);
|
|
1271
1429
|
delete oConfig.properties;
|
|
1272
1430
|
that.parseValueProperties();
|
|
1273
1431
|
var fnChange = function() {
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @alias sap.ui.integration.editor.fields.ObjectListField
|
|
32
32
|
* @author SAP SE
|
|
33
33
|
* @since 1.100.0
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.121.1
|
|
35
35
|
* @private
|
|
36
36
|
* @experimental since 1.100.0
|
|
37
37
|
* @ui5-restricted
|
|
@@ -211,6 +211,7 @@ sap.ui.define([
|
|
|
211
211
|
that.refreshValue();
|
|
212
212
|
that._oObjectDetailsPopover.close();
|
|
213
213
|
that._positionCount++;
|
|
214
|
+
that.updateTable();
|
|
214
215
|
};
|
|
215
216
|
|
|
216
217
|
ObjectListField.prototype.refreshValue = function () {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/i18n/Localization",
|
|
8
9
|
"sap/ui/integration/editor/fields/BaseField",
|
|
9
10
|
"sap/m/Input",
|
|
10
11
|
"sap/m/Text",
|
|
@@ -19,9 +20,9 @@ sap.ui.define([
|
|
|
19
20
|
"sap/m/VBox",
|
|
20
21
|
"sap/base/util/each",
|
|
21
22
|
"sap/base/util/restricted/_debounce",
|
|
22
|
-
"sap/ui/core/Core",
|
|
23
23
|
"sap/base/util/deepClone"
|
|
24
24
|
], function (
|
|
25
|
+
Localization,
|
|
25
26
|
BaseField,
|
|
26
27
|
Input,
|
|
27
28
|
Text,
|
|
@@ -36,7 +37,6 @@ sap.ui.define([
|
|
|
36
37
|
VBox,
|
|
37
38
|
each,
|
|
38
39
|
_debounce,
|
|
39
|
-
Core,
|
|
40
40
|
deepClone
|
|
41
41
|
) {
|
|
42
42
|
"use strict";
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
* @alias sap.ui.integration.editor.fields.StringField
|
|
54
54
|
* @author SAP SE
|
|
55
55
|
* @since 1.83.0
|
|
56
|
-
* @version 1.
|
|
56
|
+
* @version 1.121.1
|
|
57
57
|
* @private
|
|
58
58
|
* @experimental since 1.83.0
|
|
59
59
|
* @ui5-restricted
|
|
@@ -236,7 +236,7 @@ sap.ui.define([
|
|
|
236
236
|
//add current change into translation texts
|
|
237
237
|
var oControl = oEvent.getSource();
|
|
238
238
|
var sValue = oControl.getValue();
|
|
239
|
-
var sLanguage =
|
|
239
|
+
var sLanguage = Localization.getLanguage().replaceAll('_', '-');
|
|
240
240
|
oControl.getParent().setTranslationValueInTexts(sLanguage, oConfig.manifestpath, sValue);
|
|
241
241
|
}
|
|
242
242
|
}
|