@openui5/sap.ui.integration 1.128.0 → 1.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +1 -1
- package/package.json +7 -7
- 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 +13 -1
- package/src/sap/ui/integration/Host.js +13 -1
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +2 -1
- 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/actions/CardActions.js +6 -2
- 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 +8 -4
- package/src/sap/ui/integration/cards/filters/ComboBoxFilter.js +14 -4
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +5 -1
- 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 +1 -1
- package/src/sap/ui/integration/controls/ComboBox.js +47 -0
- package/src/sap/ui/integration/controls/ImageWithOverlay.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +7 -4
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +4 -4
- 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 +26 -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 +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/Card.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +104 -82
- 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/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 +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +1 -1
- 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/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/extensions/OAuth3LO.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 +12 -0
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.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 +1 -1
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ComboBoxHelper.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 +6 -2
- package/src/sap/ui/integration/util/DataProviderFactory.js +6 -6
- package/src/sap/ui/integration/util/Destinations.js +3 -2
- package/src/sap/ui/integration/util/DisplayVariants.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.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 +1 -1
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/OAuth3LOHelper.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 +1 -1
- package/src/sap/ui/integration/widgets/Card.js +20 -3
package/THIRDPARTY.txt
CHANGED
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.18.0
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.129.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.integration",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
18
|
-
"@openui5/sap.f": "1.
|
|
19
|
-
"@openui5/sap.m": "1.
|
|
20
|
-
"@openui5/sap.ui.unified": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
22
|
-
"@openui5/sap.ui.table": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.129.0",
|
|
18
|
+
"@openui5/sap.f": "1.129.0",
|
|
19
|
+
"@openui5/sap.m": "1.129.0",
|
|
20
|
+
"@openui5/sap.ui.unified": "1.129.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.129.0",
|
|
22
|
+
"@openui5/sap.ui.table": "1.129.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.129.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with integration-related controls.</documentation>
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.base.ManagedObject
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.129.0
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @public
|
|
@@ -92,11 +92,23 @@ sap.ui.define([
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* The parameters related to the triggered action.
|
|
95
|
+
*
|
|
96
|
+
* <b>Disclaimer:</b> Since 1.129 the special parameter <code>data</code> for action <code>Submit</code> is deprecated and must not be used. Use event parameter <code>formData</code> instead.
|
|
95
97
|
*/
|
|
96
98
|
parameters: {
|
|
97
99
|
type: "object"
|
|
98
100
|
},
|
|
99
101
|
|
|
102
|
+
/**
|
|
103
|
+
* All form data that is filled inside the card. This parameter is available only with action types <code>Submit</code> and <code>Custom</code>.
|
|
104
|
+
*
|
|
105
|
+
* The format will be the same as in the <code>form</code> model available in the card manifest. For more information look at the documentation for each individual form type.
|
|
106
|
+
* @since 1.129
|
|
107
|
+
*/
|
|
108
|
+
formData: {
|
|
109
|
+
type: "object"
|
|
110
|
+
},
|
|
111
|
+
|
|
100
112
|
/**
|
|
101
113
|
* The type of the action.
|
|
102
114
|
*/
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @extends sap.ui.core.Element
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.129.0
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @public
|
|
@@ -113,11 +113,23 @@ sap.ui.define([
|
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* The parameters related to the triggered action.
|
|
116
|
+
*
|
|
117
|
+
* <b>Disclaimer:</b> Since 1.129 the special parameter <code>data</code> for action <code>Submit</code> is deprecated and must not be used. Use event parameter <code>formData</code> instead.
|
|
116
118
|
*/
|
|
117
119
|
parameters: {
|
|
118
120
|
type: "object"
|
|
119
121
|
},
|
|
120
122
|
|
|
123
|
+
/**
|
|
124
|
+
* All form data that is filled inside the card. This parameter is available only with action types <code>Submit</code> and <code>Custom</code>.
|
|
125
|
+
*
|
|
126
|
+
* The format will be the same as in the <code>form</code> model available in the card manifest. For more information look at the documentation for each individual form type.
|
|
127
|
+
* @since 1.129
|
|
128
|
+
*/
|
|
129
|
+
formData: {
|
|
130
|
+
type: "object"
|
|
131
|
+
},
|
|
132
|
+
|
|
121
133
|
/**
|
|
122
134
|
* The type of the action.
|
|
123
135
|
*/
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.129.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
@@ -313,6 +313,7 @@ sap.ui.define([
|
|
|
313
313
|
descriptionVisible: mItem.description ? mItem.description.visible : undefined,
|
|
314
314
|
highlight: mItem.highlight,
|
|
315
315
|
highlightText: mItem.highlightText,
|
|
316
|
+
hasInfo: !!mItem.info,
|
|
316
317
|
info: mItem.info && mItem.info.value,
|
|
317
318
|
infoState: mItem.info && mItem.info.state,
|
|
318
319
|
infoVisible: mItem.info && mItem.info.visible,
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @extends sap.ui.base.ManagedObject
|
|
60
60
|
*
|
|
61
61
|
* @author SAP SE
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.129.0
|
|
63
63
|
*
|
|
64
64
|
* @constructor
|
|
65
65
|
* @private
|
|
@@ -407,8 +407,12 @@ sap.ui.define([
|
|
|
407
407
|
mEventParamsLegacy,
|
|
408
408
|
bActionResult = true;
|
|
409
409
|
|
|
410
|
+
if (sType === CardActionType.Submit || sType === CardActionType.Custom) {
|
|
411
|
+
mEventParams.formData = oCard.getModel("form").getData();
|
|
412
|
+
}
|
|
413
|
+
|
|
410
414
|
if (sType === CardActionType.Submit) {
|
|
411
|
-
mParameters.data = oCard.getModel("form").getData();
|
|
415
|
+
mParameters.data = mParameters.data ?? oCard.getModel("form").getData(); // deprecated since 1.129
|
|
412
416
|
}
|
|
413
417
|
|
|
414
418
|
mEventParams.parameters = mParameters;
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @extends sap.ui.core.Control
|
|
44
44
|
*
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.129.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
@@ -239,7 +239,6 @@ sap.ui.define([
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
BaseFilter.prototype._onDataRequestComplete = function () {
|
|
242
|
-
this.fireEvent("_dataReady");
|
|
243
242
|
this.hideLoadingPlaceholders();
|
|
244
243
|
};
|
|
245
244
|
|
|
@@ -276,9 +275,13 @@ sap.ui.define([
|
|
|
276
275
|
return;
|
|
277
276
|
}
|
|
278
277
|
|
|
279
|
-
oModel.attachEvent("change",
|
|
278
|
+
oModel.attachEvent("change", () => {
|
|
280
279
|
this.onDataChanged();
|
|
281
|
-
|
|
280
|
+
// wait for the binding update to finish
|
|
281
|
+
setTimeout(() => {
|
|
282
|
+
this.fireEvent("_dataReady");
|
|
283
|
+
}, 0);
|
|
284
|
+
});
|
|
282
285
|
|
|
283
286
|
if (this._oDataProvider) {
|
|
284
287
|
this._oDataProvider.attachDataRequested(function () {
|
|
@@ -293,6 +296,7 @@ sap.ui.define([
|
|
|
293
296
|
this._oDataProvider.attachError(function (oEvent) {
|
|
294
297
|
this._handleError(oEvent.getParameter("message"));
|
|
295
298
|
this._onDataRequestComplete();
|
|
299
|
+
this.fireEvent("_dataReady");
|
|
296
300
|
}.bind(this));
|
|
297
301
|
|
|
298
302
|
this._oDataProvider.triggerDataUpdate();
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"./BaseFilter",
|
|
8
|
-
"sap/
|
|
8
|
+
"sap/ui/integration/controls/ComboBox",
|
|
9
9
|
"sap/ui/core/ListItem",
|
|
10
10
|
"sap/ui/model/json/JSONModel",
|
|
11
11
|
"sap/ui/integration/util/BindingResolver",
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.integration.cards.filters.BaseFilter
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.129.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -93,7 +93,16 @@ sap.ui.define([
|
|
|
93
93
|
* @override
|
|
94
94
|
*/
|
|
95
95
|
ComboBoxFilter.prototype.getValueForModel = function () {
|
|
96
|
-
const
|
|
96
|
+
const oComboBox = this._getComboBox();
|
|
97
|
+
let oSelectedItem = oComboBox.getSelectedItem();
|
|
98
|
+
const iSelectedIndex = oComboBox.getCustomSelectedIndex();
|
|
99
|
+
|
|
100
|
+
if (!oSelectedItem && (iSelectedIndex > -1)) {
|
|
101
|
+
oSelectedItem = this._getComboBox().getItems()[iSelectedIndex];
|
|
102
|
+
if (oSelectedItem && !this._getComboBox().getValue()) {
|
|
103
|
+
oComboBox.setSelectedItem(oSelectedItem);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
97
106
|
|
|
98
107
|
if (oSelectedItem) {
|
|
99
108
|
return {
|
|
@@ -191,7 +200,8 @@ sap.ui.define([
|
|
|
191
200
|
const oComboBox = new ComboBox({
|
|
192
201
|
placeholder: oConfig.placeholder,
|
|
193
202
|
showSecondaryValues: true,
|
|
194
|
-
filterSecondaryValues: true
|
|
203
|
+
filterSecondaryValues: true,
|
|
204
|
+
customSelectedIndex: oConfig.selectedIndex
|
|
195
205
|
});
|
|
196
206
|
|
|
197
207
|
let sItemTemplateKey,
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @extends sap.ui.integration.cards.filters.BaseFilter
|
|
32
32
|
*
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.129.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
@@ -84,6 +84,10 @@ sap.ui.define([
|
|
|
84
84
|
SelectFilter.prototype.getValueForModel = function () {
|
|
85
85
|
var oSelectedItem = this._getSelect().getSelectedItem();
|
|
86
86
|
|
|
87
|
+
if (!oSelectedItem) {
|
|
88
|
+
oSelectedItem = this._getSelect().getItems()[0];
|
|
89
|
+
}
|
|
90
|
+
|
|
87
91
|
if (oSelectedItem) {
|
|
88
92
|
return {
|
|
89
93
|
value: oSelectedItem.getKey(),
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/m/ComboBox",
|
|
9
|
+
"sap/m/ComboBoxRenderer"
|
|
10
|
+
], function (
|
|
11
|
+
MComboBox,
|
|
12
|
+
MComboBoxRenderer
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Constructor for a new ComboBox.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
20
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
21
|
+
*
|
|
22
|
+
* @class
|
|
23
|
+
*
|
|
24
|
+
* @extends sap.m.ComboBox
|
|
25
|
+
*
|
|
26
|
+
* @author SAP SE
|
|
27
|
+
* @version 1.129.0
|
|
28
|
+
*
|
|
29
|
+
* @constructor
|
|
30
|
+
* @private
|
|
31
|
+
* @alias sap.ui.integration.controls.ComboBox
|
|
32
|
+
*/
|
|
33
|
+
var ComboBox = MComboBox.extend("sap.ui.integration.controls.ComboBox", {
|
|
34
|
+
metadata: {
|
|
35
|
+
library: "sap.ui.integration",
|
|
36
|
+
properties: {
|
|
37
|
+
customSelectedIndex: {
|
|
38
|
+
type: "int",
|
|
39
|
+
defaultValue: -1
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
renderer: MComboBoxRenderer
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return ComboBox;
|
|
47
|
+
});
|
|
@@ -35,7 +35,6 @@ sap.ui.define([
|
|
|
35
35
|
|
|
36
36
|
var AttributesLayoutType = library.AttributesLayoutType;
|
|
37
37
|
var ValueState = coreLibrary.ValueState;
|
|
38
|
-
var EmptyIndicatorMode = mLibrary.EmptyIndicatorMode;
|
|
39
38
|
var AvatarImageFitType = mLibrary.AvatarImageFitType;
|
|
40
39
|
|
|
41
40
|
/**
|
|
@@ -49,7 +48,7 @@ sap.ui.define([
|
|
|
49
48
|
* @extends sap.m.ListItemBase
|
|
50
49
|
*
|
|
51
50
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
51
|
+
* @version 1.129.0
|
|
53
52
|
*
|
|
54
53
|
* @constructor
|
|
55
54
|
* @private
|
|
@@ -121,6 +120,11 @@ sap.ui.define([
|
|
|
121
120
|
*/
|
|
122
121
|
iconVisible: { type: "boolean", defaultValue: true },
|
|
123
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Defines whether the info is specified.
|
|
125
|
+
*/
|
|
126
|
+
hasInfo: { type: "boolean", defaultValue: false },
|
|
127
|
+
|
|
124
128
|
/**
|
|
125
129
|
* Defines an additional information text.
|
|
126
130
|
*/
|
|
@@ -328,8 +332,7 @@ sap.ui.define([
|
|
|
328
332
|
.setText(this.getInfo())
|
|
329
333
|
.setState(this.getInfoState())
|
|
330
334
|
.setShowStateIcon(this.getShowInfoStateIcon())
|
|
331
|
-
.setIcon(this.getCustomInfoStatusIcon())
|
|
332
|
-
.setEmptyIndicatorMode(EmptyIndicatorMode.On);
|
|
335
|
+
.setIcon(this.getCustomInfoStatusIcon());
|
|
333
336
|
|
|
334
337
|
return oObjectStatus;
|
|
335
338
|
};
|