@openui5/sap.ui.integration 1.92.0 → 1.93.3
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 +5 -0
- package/THIRDPARTY.txt +10 -1
- package/package.json +3 -3
- 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 +16 -18
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- 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 +2 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +1 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +21 -10
- package/src/sap/ui/integration/cards/Filter.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +126 -0
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +19 -8
- package/src/sap/ui/integration/cards/ListContentRenderer.js +19 -9
- package/src/sap/ui/integration/cards/NumericHeader.js +1 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.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/controls/ActionsStrip.js +184 -0
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +3 -1
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +93 -3
- 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/designtime/baseEditor/BaseEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +5 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +8 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +5 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.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/numberEditor/NumberEditor.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/AppConfig.js +0 -69
- 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/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/CardEditor.js +36 -14
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardResourceBundles.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/BaseField.js +27 -15
- package/src/sap/ui/integration/designtime/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/IntegerField.js +3 -2
- package/src/sap/ui/integration/designtime/editor/fields/ListField.js +60 -60
- package/src/sap/ui/integration/designtime/editor/fields/NumberField.js +3 -2
- package/src/sap/ui/integration/designtime/editor/fields/Settings.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/StringField.js +3 -4
- package/src/sap/ui/integration/designtime/editor/fields/viz/ColorSelect.js +2 -1
- package/src/sap/ui/integration/designtime/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/designtime/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/library.js +4 -4
- package/src/sap/ui/integration/messagebundle_ar.properties +69 -55
- package/src/sap/ui/integration/messagebundle_bg.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ca.properties +69 -55
- package/src/sap/ui/integration/messagebundle_cs.properties +69 -55
- package/src/sap/ui/integration/messagebundle_cy.properties +69 -55
- package/src/sap/ui/integration/messagebundle_da.properties +69 -55
- package/src/sap/ui/integration/messagebundle_de.properties +69 -55
- package/src/sap/ui/integration/messagebundle_el.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_GB.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +69 -55
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +69 -55
- package/src/sap/ui/integration/messagebundle_es.properties +69 -55
- package/src/sap/ui/integration/messagebundle_es_MX.properties +69 -55
- package/src/sap/ui/integration/messagebundle_et.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_hu.properties +69 -55
- package/src/sap/ui/integration/messagebundle_id.properties +69 -55
- package/src/sap/ui/integration/messagebundle_it.properties +69 -55
- package/src/sap/ui/integration/messagebundle_iw.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ja.properties +69 -55
- package/src/sap/ui/integration/messagebundle_kk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ko.properties +69 -55
- package/src/sap/ui/integration/messagebundle_lt.properties +69 -55
- package/src/sap/ui/integration/messagebundle_lv.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ms.properties +69 -55
- package/src/sap/ui/integration/messagebundle_nl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_no.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pt.properties +69 -55
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ro.properties +69 -55
- package/src/sap/ui/integration/messagebundle_ru.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sh.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sl.properties +69 -55
- package/src/sap/ui/integration/messagebundle_sv.properties +69 -55
- package/src/sap/ui/integration/messagebundle_th.properties +69 -55
- package/src/sap/ui/integration/messagebundle_tr.properties +69 -55
- package/src/sap/ui/integration/messagebundle_uk.properties +69 -55
- package/src/sap/ui/integration/messagebundle_vi.properties +69 -55
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +69 -55
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +69 -55
- 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/schemas/sap-card.json +248 -155
- package/src/sap/ui/integration/themes/base/CalendarContent.less +4 -2
- package/src/sap/ui/integration/themes/base/ListContentItem.less +92 -19
- package/src/sap/ui/integration/themes/base/Microchart.less +1 -1
- package/src/sap/ui/integration/thirdparty/webcomponents/bundle.es5.js +1 -1
- package/src/sap/ui/integration/thirdparty/webcomponents/bundle.esm.js +1 -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 +2 -2
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +12 -7
- package/src/sap/ui/integration/util/CardActions.js +5 -2
- 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/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/FilterBarFactory.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 +6 -4
- 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/Utils.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +20 -15
- package/src/sap/ui/integration/widgets/CardRenderer.js +12 -8
- package/src/sap/ui/integration/util/FooterFactory.js +0 -114
|
@@ -86,75 +86,6 @@ sap.ui.define(function () {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"appDataSources": {
|
|
90
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES}",
|
|
91
|
-
"type": "complexMap",
|
|
92
|
-
"itemLabel": "{key}",
|
|
93
|
-
"addItemLabel": "{i18n>CARD_EDITOR.APP.DATASOURCE}",
|
|
94
|
-
"path": "/sap.app/dataSources",
|
|
95
|
-
"template": {
|
|
96
|
-
"key": {
|
|
97
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.KEY}",
|
|
98
|
-
"type": "string",
|
|
99
|
-
"path": "key",
|
|
100
|
-
"validators": {
|
|
101
|
-
"keyPattern": {
|
|
102
|
-
"type": "pattern",
|
|
103
|
-
"config": {
|
|
104
|
-
"pattern": "^[a-zA-Z0-9_\\.\\-]*$"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"uri": {
|
|
110
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.URI}",
|
|
111
|
-
"type": "string",
|
|
112
|
-
"path": "uri"
|
|
113
|
-
},
|
|
114
|
-
"type": {
|
|
115
|
-
"label": "{i18n>CARD_EDITOR.LABEL.TYPE}",
|
|
116
|
-
"type": "select",
|
|
117
|
-
"items": [
|
|
118
|
-
{ "key": "OData" },
|
|
119
|
-
{ "key": "ODataAnnotation" },
|
|
120
|
-
{ "key": "INA" },
|
|
121
|
-
{ "key": "XML" },
|
|
122
|
-
{ "key": "JSON" },
|
|
123
|
-
{ "key": "FHIR" }
|
|
124
|
-
],
|
|
125
|
-
"defaultValue": "OData",
|
|
126
|
-
"path": "type"
|
|
127
|
-
},
|
|
128
|
-
"odataVersion": {
|
|
129
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.SETTINGS.ODATAVERSION}",
|
|
130
|
-
"type": "select",
|
|
131
|
-
"items": [
|
|
132
|
-
{ "key": "2.0" },
|
|
133
|
-
{ "key": "4.0" }
|
|
134
|
-
],
|
|
135
|
-
"defaultValue": "2.0",
|
|
136
|
-
"path": "settings/odataVersion",
|
|
137
|
-
"visible": "{= ${type} === 'OData' || ${type} === 'ODataAnnotation'}"
|
|
138
|
-
},
|
|
139
|
-
"localUri": {
|
|
140
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.SETTINGS.LOCALURI}",
|
|
141
|
-
"type": "string",
|
|
142
|
-
"path": "settings/localUri",
|
|
143
|
-
"visible": "{= ${type} === 'OData' || ${type} === 'ODataAnnotation'}"
|
|
144
|
-
},
|
|
145
|
-
"annotations": {
|
|
146
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.SETTINGS.ANNOTATIONS}",
|
|
147
|
-
"type": "list",
|
|
148
|
-
"path": "settings/annotations",
|
|
149
|
-
"visible": "{= ${type} === 'OData' || ${type} === 'ODataAnnotation'}"
|
|
150
|
-
},
|
|
151
|
-
"maxAge": {
|
|
152
|
-
"label": "{i18n>CARD_EDITOR.APP.DATASOURCES.SETTINGS.MAXAGE}",
|
|
153
|
-
"type": "number",
|
|
154
|
-
"path": "settings/maxAge"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
89
|
"mobile": {
|
|
159
90
|
"tags": ["app"],
|
|
160
91
|
"label": "{i18n>CARD_EDITOR.APP.MOBILE}",
|
|
@@ -99,7 +99,8 @@ sap.ui.define([
|
|
|
99
99
|
}
|
|
100
100
|
var REGEXP_TRANSLATABLE = /\{\{(?!parameters.)(?!destinations.)([^\}\}]+)\}\}/g,
|
|
101
101
|
CONTEXT_TIMEOUT = 5000,
|
|
102
|
-
oResourceBundle = Core.getLibraryResourceBundle("sap.ui.integration")
|
|
102
|
+
oResourceBundle = Core.getLibraryResourceBundle("sap.ui.integration"),
|
|
103
|
+
MessageStripId = "__strip0";
|
|
103
104
|
/* hide multi language function since there has a translation issue in Portal
|
|
104
105
|
aLanguageList = LoaderExtensions.loadResource("sap/ui/integration/designtime/editor/languages.json", {
|
|
105
106
|
dataType: "json",
|
|
@@ -119,7 +120,7 @@ sap.ui.define([
|
|
|
119
120
|
* @extends sap.ui.core.Control
|
|
120
121
|
*
|
|
121
122
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
123
|
+
* @version 1.93.3
|
|
123
124
|
* @constructor
|
|
124
125
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
125
126
|
* @since 1.83
|
|
@@ -1110,9 +1111,9 @@ sap.ui.define([
|
|
|
1110
1111
|
});
|
|
1111
1112
|
|
|
1112
1113
|
this._aFieldReadyPromise.push(oField._readyPromise);
|
|
1113
|
-
//listen to changes on the settings
|
|
1114
|
-
var
|
|
1115
|
-
|
|
1114
|
+
//listen to value changes on the settings
|
|
1115
|
+
var oValueBinding = this._settingsModel.bindProperty(oConfig._settingspath + "/value");
|
|
1116
|
+
oValueBinding.attachChange(function () {
|
|
1116
1117
|
if (!this._bIgnoreUpdates) {
|
|
1117
1118
|
oConfig._changed = true;
|
|
1118
1119
|
if (oConfig._dependentFields && oConfig._dependentFields.length > 0) {
|
|
@@ -1121,9 +1122,19 @@ sap.ui.define([
|
|
|
1121
1122
|
this._updatePreview();
|
|
1122
1123
|
}
|
|
1123
1124
|
}.bind(this));
|
|
1125
|
+
if (oField.isFilterBackend()) {
|
|
1126
|
+
//listen to suggest value changes on the settings if current field support filter backend feature
|
|
1127
|
+
var oSuggestValueBinding = this._settingsModel.bindProperty(oConfig._settingspath + "/suggestValue");
|
|
1128
|
+
oSuggestValueBinding.attachChange(function () {
|
|
1129
|
+
var oConfigTemp = merge({}, oConfig);
|
|
1130
|
+
oConfigTemp._cancel = false;
|
|
1131
|
+
this._addValueListModel(oConfigTemp, oField, true);
|
|
1132
|
+
}.bind(this));
|
|
1133
|
+
}
|
|
1124
1134
|
this._addValueListModel(oConfig, oField);
|
|
1125
1135
|
oField._cols = oConfig.cols || 2; //by default 2 cols
|
|
1126
1136
|
oField._oProviderCard = this._oProviderCard;
|
|
1137
|
+
oField.setAssociation("_messageStrip", this.getAggregation("_messageStrip"));
|
|
1127
1138
|
return oField;
|
|
1128
1139
|
};
|
|
1129
1140
|
|
|
@@ -1148,6 +1159,8 @@ sap.ui.define([
|
|
|
1148
1159
|
return;
|
|
1149
1160
|
}
|
|
1150
1161
|
//add group property "Selected" to each record for MultiComboBox in ListField
|
|
1162
|
+
//user configration of the field since its value maybe changed
|
|
1163
|
+
var oFieldConfig = oField.getConfiguration();
|
|
1151
1164
|
if (oConfig.type === "string[]") {
|
|
1152
1165
|
var sPath = oConfig.values.data.path;
|
|
1153
1166
|
if (sPath && sPath !== "/") {
|
|
@@ -1162,7 +1175,7 @@ sap.ui.define([
|
|
|
1162
1175
|
if (Array.isArray(oResult)) {
|
|
1163
1176
|
for (var n in oResult) {
|
|
1164
1177
|
var sKey = oField.getKeyFromItem(oResult[n]);
|
|
1165
|
-
if (Array.isArray(
|
|
1178
|
+
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 && includes(oFieldConfig.value, sKey)) {
|
|
1166
1179
|
oResult[n].Selected = oResourceBundle.getText("CARDEDITOR_ITEM_SELECTED");
|
|
1167
1180
|
} else {
|
|
1168
1181
|
oResult[n].Selected = oResourceBundle.getText("CARDEDITOR_ITEM_UNSELECTED");
|
|
@@ -1173,7 +1186,7 @@ sap.ui.define([
|
|
|
1173
1186
|
} else if (Array.isArray(oData)) {
|
|
1174
1187
|
for (var n in oData) {
|
|
1175
1188
|
var sKey = oField.getKeyFromItem(oData[n]);
|
|
1176
|
-
if (Array.isArray(
|
|
1189
|
+
if (Array.isArray(oFieldConfig.value) && oFieldConfig.value.length > 0 && includes(oFieldConfig.value, sKey)) {
|
|
1177
1190
|
oData[n].Selected = oResourceBundle.getText("CARDEDITOR_ITEM_SELECTED");
|
|
1178
1191
|
} else {
|
|
1179
1192
|
oData[n].Selected = oResourceBundle.getText("CARDEDITOR_ITEM_UNSELECTED");
|
|
@@ -1262,7 +1275,7 @@ sap.ui.define([
|
|
|
1262
1275
|
if (!bIgnore) {
|
|
1263
1276
|
var sData = JSON.stringify(oConfig.values.data);
|
|
1264
1277
|
if (sData) {
|
|
1265
|
-
var destParamRegExp = /parameters\.([^\}\}]+)|destinations\.([^\}\}]+)|\{items\>[\/?\w+]+\}
|
|
1278
|
+
var destParamRegExp = /parameters\.([^\}\}]+)|destinations\.([^\}\}]+)|\{items\>[\/?\w+]+\}/g,
|
|
1266
1279
|
aResult = sData.match(destParamRegExp);
|
|
1267
1280
|
if (aResult) {
|
|
1268
1281
|
//add the field to dependency to either the parameter or destination
|
|
@@ -1276,12 +1289,6 @@ sap.ui.define([
|
|
|
1276
1289
|
sDependentPath = sDependentPath + aResult[i].replace(".", "/") + sValueKey;
|
|
1277
1290
|
} else if (aResult[i].indexOf("{items>") === 0) {
|
|
1278
1291
|
sDependentPath = sDependentPath + "parameters/" + aResult[i].slice(7, -1);
|
|
1279
|
-
} else if (aResult[i].indexOf("{currentSettings>") === 0) {
|
|
1280
|
-
if (aResult[i].endsWith("suggestValue}")) {
|
|
1281
|
-
sDependentPath = sDependentPath + "parameters/" + oConfig._settingspath.substring(oConfig._settingspath.lastIndexOf("/") + 1) + "/value";
|
|
1282
|
-
} else {
|
|
1283
|
-
sDependentPath = sDependentPath + "parameters/" + aResult[i].slice(17, -1);
|
|
1284
|
-
}
|
|
1285
1292
|
}
|
|
1286
1293
|
var oItem = this._mItemsByPaths[sDependentPath];
|
|
1287
1294
|
if (oItem) {
|
|
@@ -1338,6 +1345,17 @@ sap.ui.define([
|
|
|
1338
1345
|
items: {
|
|
1339
1346
|
path: "items>/form/items"
|
|
1340
1347
|
}
|
|
1348
|
+
},
|
|
1349
|
+
expand: function (oEvent) {
|
|
1350
|
+
var oControl = oEvent.getSource();
|
|
1351
|
+
if (!oEvent.mParameters.expand && oControl.getParent().getAggregation("_messageStrip") !== null) {
|
|
1352
|
+
MessageStripId = oControl.getParent().getAggregation("_messageStrip").getId();
|
|
1353
|
+
}
|
|
1354
|
+
if (oEvent.mParameters.expand) {
|
|
1355
|
+
var oMessageStrip = Core.byId(MessageStripId);
|
|
1356
|
+
oControl.addContent(oMessageStrip);
|
|
1357
|
+
oControl.focus();
|
|
1358
|
+
}
|
|
1341
1359
|
}
|
|
1342
1360
|
});
|
|
1343
1361
|
this.addAggregation("_formContent", oPanel);
|
|
@@ -1696,6 +1714,10 @@ sap.ui.define([
|
|
|
1696
1714
|
if (oPreview) {
|
|
1697
1715
|
oPreview.destroy();
|
|
1698
1716
|
}
|
|
1717
|
+
var oMessageStrip = Core.byId(MessageStripId);
|
|
1718
|
+
if (oMessageStrip) {
|
|
1719
|
+
oMessageStrip.destroy();
|
|
1720
|
+
}
|
|
1699
1721
|
this._manifestModel = null;
|
|
1700
1722
|
this._originalManifestModel = null;
|
|
1701
1723
|
this._settingsModel = null;
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @alias sap.ui.integration.designtime.editor.fields.BaseField
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @since 1.83.0
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.93.3
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted
|
|
49
49
|
* @experimental since 1.83.0
|
|
@@ -96,6 +96,11 @@ sap.ui.define([
|
|
|
96
96
|
type: "sap.ui.core.Icon",
|
|
97
97
|
multiple: false,
|
|
98
98
|
visibility: "hidden"
|
|
99
|
+
},
|
|
100
|
+
_messageStrip: {
|
|
101
|
+
type: "sap.m.MessageStrip",
|
|
102
|
+
multiple: false,
|
|
103
|
+
visibility: "hidden"
|
|
99
104
|
}
|
|
100
105
|
},
|
|
101
106
|
events: {
|
|
@@ -190,6 +195,11 @@ sap.ui.define([
|
|
|
190
195
|
}.bind(this));
|
|
191
196
|
};
|
|
192
197
|
|
|
198
|
+
BaseField.prototype.getMessagestrip = function () {
|
|
199
|
+
var sMessageStripId = this.getAssociation("_messageStrip");
|
|
200
|
+
return Core.byId(sMessageStripId);
|
|
201
|
+
};
|
|
202
|
+
|
|
193
203
|
BaseField.prototype.setConfiguration = function (oConfig, bSuppress) {
|
|
194
204
|
if (oConfig !== this.getConfiguration()) {
|
|
195
205
|
//sanitize configuration
|
|
@@ -480,7 +490,7 @@ sap.ui.define([
|
|
|
480
490
|
|
|
481
491
|
BaseField.prototype.onAfterRendering = function () {
|
|
482
492
|
this._applyMessage();
|
|
483
|
-
var oMessageStrip = this.
|
|
493
|
+
var oMessageStrip = this.getMessagestrip();
|
|
484
494
|
if (oMessageStrip && oMessageStrip.getDomRef()) {
|
|
485
495
|
oMessageStrip.getDomRef().style.opacity = "0";
|
|
486
496
|
}
|
|
@@ -514,7 +524,7 @@ sap.ui.define([
|
|
|
514
524
|
if (bFromDataRequest) {
|
|
515
525
|
this._messageFrom = "request";
|
|
516
526
|
}
|
|
517
|
-
var oMessageStrip = this.
|
|
527
|
+
var oMessageStrip = this.getMessagestrip();
|
|
518
528
|
if (oField.setValueState) {
|
|
519
529
|
this._message.atControl = true;
|
|
520
530
|
if (oField.setShowValueStateMessage) {
|
|
@@ -524,8 +534,6 @@ sap.ui.define([
|
|
|
524
534
|
oField.setValueStateText(sMessage);
|
|
525
535
|
} else if (oMessageStrip && oMessageStrip.getVisible()) {
|
|
526
536
|
this._showMessage();
|
|
527
|
-
} else {
|
|
528
|
-
MessageToast.show(sMessage);
|
|
529
537
|
}
|
|
530
538
|
this._applyMessage();
|
|
531
539
|
};
|
|
@@ -534,7 +542,7 @@ sap.ui.define([
|
|
|
534
542
|
if (!this.getParent()) {
|
|
535
543
|
return;
|
|
536
544
|
}
|
|
537
|
-
var oMessageStrip = this.
|
|
545
|
+
var oMessageStrip = this.getMessagestrip();
|
|
538
546
|
if (this._message) {
|
|
539
547
|
if ((bFromDataRequest && this._messageFrom === "request")
|
|
540
548
|
|| (!bFromDataRequest && this._messageFrom === "validation")) {
|
|
@@ -573,10 +581,10 @@ sap.ui.define([
|
|
|
573
581
|
oField.setValueStateText("");
|
|
574
582
|
}
|
|
575
583
|
this._message = null;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
584
|
+
}
|
|
585
|
+
if (!this._message && bFromDataRequest && bTriggerValidationAgain) {
|
|
586
|
+
//check validations
|
|
587
|
+
this._triggerValidation(this.getConfiguration().value);
|
|
580
588
|
}
|
|
581
589
|
}
|
|
582
590
|
};
|
|
@@ -594,7 +602,7 @@ sap.ui.define([
|
|
|
594
602
|
if (!this.getParent()) {
|
|
595
603
|
return;
|
|
596
604
|
}
|
|
597
|
-
var oMessageStrip = this.
|
|
605
|
+
var oMessageStrip = this.getMessagestrip();
|
|
598
606
|
if (this._message && oMessageStrip) {
|
|
599
607
|
oMessageStrip.applySettings({
|
|
600
608
|
type: this._message.enum,
|
|
@@ -611,15 +619,18 @@ sap.ui.define([
|
|
|
611
619
|
oMessageStrip.getDomRef().style.marginTop = "0";
|
|
612
620
|
oMessageStrip.getDomRef().style.marginLeft = "0";
|
|
613
621
|
}
|
|
614
|
-
|
|
622
|
+
var width = oField.getDomRef().offsetWidth - 5;
|
|
623
|
+
if (width < 100) {
|
|
624
|
+
width = oField.getParent().getDomRef().offsetWidth - 35;
|
|
625
|
+
}
|
|
626
|
+
oMessageStrip.getDomRef().style.width = width + "px";
|
|
615
627
|
};
|
|
616
628
|
oMessageStrip.rerender();
|
|
617
629
|
}
|
|
618
630
|
};
|
|
619
631
|
|
|
620
632
|
BaseField.prototype._hideMessage = function () {
|
|
621
|
-
var oMessageStrip = this.
|
|
622
|
-
|
|
633
|
+
var oMessageStrip = this.getMessagestrip();
|
|
623
634
|
var oField = this.getAggregation("_field"),
|
|
624
635
|
bFocusInField = oField.getDomRef().contains(window.document.activeElement);
|
|
625
636
|
if (oMessageStrip) {
|
|
@@ -896,7 +907,8 @@ sap.ui.define([
|
|
|
896
907
|
};
|
|
897
908
|
|
|
898
909
|
//check if need to filter backend by input, used for ComoboBox in StringField and MultiComboBox in ListField
|
|
899
|
-
BaseField.prototype.isFilterBackend = function (
|
|
910
|
+
BaseField.prototype.isFilterBackend = function () {
|
|
911
|
+
var oConfig = this.getConfiguration();
|
|
900
912
|
var bIsFilterBackend = false;
|
|
901
913
|
if (oConfig && oConfig.values && oConfig.values.data) {
|
|
902
914
|
if (oConfig.values.data.request && oConfig.values.data.request.parameters && oConfig.values.data.request.parameters.$filter && oConfig.values.data.request.parameters.$filter.indexOf("{currentSettings>suggestValue}") > -1) {
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @alias sap.ui.integration.designtime.editor.fields.IntegerField
|
|
18
18
|
* @author SAP SE
|
|
19
19
|
* @since 1.83.0
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.93.3
|
|
21
21
|
* @private
|
|
22
22
|
* @experimental since 1.83.0
|
|
23
23
|
* @ui5-restricted
|
|
@@ -45,7 +45,8 @@ sap.ui.define([
|
|
|
45
45
|
oSource.getBinding("value").setValue(oSource.getValue());
|
|
46
46
|
oSource.getBinding("value").checkUpdate();
|
|
47
47
|
},
|
|
48
|
-
editable: oConfig.editable
|
|
48
|
+
editable: oConfig.editable,
|
|
49
|
+
type: "Number"
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
52
|
}
|