@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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2021 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
|
+
"../library",
|
|
9
|
+
"sap/m/library",
|
|
10
|
+
"sap/ui/core/Core",
|
|
11
|
+
"sap/ui/core/Control",
|
|
12
|
+
"sap/ui/integration/util/CardActions",
|
|
13
|
+
"sap/ui/integration/util/BindingHelper",
|
|
14
|
+
"sap/m/Button",
|
|
15
|
+
"sap/m/OverflowToolbarButton",
|
|
16
|
+
"sap/m/OverflowToolbar",
|
|
17
|
+
"sap/m/OverflowToolbarLayoutData",
|
|
18
|
+
"sap/m/ToolbarSpacer"
|
|
19
|
+
], function (
|
|
20
|
+
library,
|
|
21
|
+
mLibrary,
|
|
22
|
+
Core,
|
|
23
|
+
Control,
|
|
24
|
+
CardActions,
|
|
25
|
+
BindingHelper,
|
|
26
|
+
Button,
|
|
27
|
+
OverflowToolbarButton,
|
|
28
|
+
OverflowToolbar,
|
|
29
|
+
OverflowToolbarLayoutData,
|
|
30
|
+
ToolbarSpacer
|
|
31
|
+
) {
|
|
32
|
+
"use strict";
|
|
33
|
+
|
|
34
|
+
var ToolbarStyle = mLibrary.ToolbarStyle;
|
|
35
|
+
|
|
36
|
+
var ActionArea = library.CardActionArea;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Constructor for a new ActionsStrip.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
42
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
43
|
+
*
|
|
44
|
+
* @class
|
|
45
|
+
*
|
|
46
|
+
* @extends sap.ui.core.Control
|
|
47
|
+
*
|
|
48
|
+
* @author SAP SE
|
|
49
|
+
* @version 1.93.3
|
|
50
|
+
*
|
|
51
|
+
* @constructor
|
|
52
|
+
* @private
|
|
53
|
+
* @since 1.93
|
|
54
|
+
* @alias sap.ui.integration.controls.ActionsStrip
|
|
55
|
+
*/
|
|
56
|
+
var ActionsStrip = Control.extend("sap.ui.integration.controls.ActionsStrip", {
|
|
57
|
+
metadata: {
|
|
58
|
+
library: "sap.ui.integration",
|
|
59
|
+
properties: {
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
aggregations: {
|
|
63
|
+
/**
|
|
64
|
+
* The toolbar.
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
_toolbar: {
|
|
68
|
+
type: "sap.m.OverflowToolbar",
|
|
69
|
+
multiple: false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
associations : {
|
|
73
|
+
/**
|
|
74
|
+
* The card.
|
|
75
|
+
*/
|
|
76
|
+
card: {
|
|
77
|
+
type : "sap.ui.integration.widgets.Card",
|
|
78
|
+
multiple: false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
renderer: {
|
|
83
|
+
apiVersion: 2,
|
|
84
|
+
render: function (oRm, oControl) {
|
|
85
|
+
oRm.openStart("div", oControl)
|
|
86
|
+
.class("sapUiIntActionsStrip")
|
|
87
|
+
.openEnd();
|
|
88
|
+
|
|
89
|
+
oRm.renderControl(oControl._getToolbar());
|
|
90
|
+
|
|
91
|
+
oRm.close("div");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
ActionsStrip.prototype._getToolbar = function () {
|
|
97
|
+
var oToolbar = this.getAggregation("_toolbar");
|
|
98
|
+
if (!oToolbar) {
|
|
99
|
+
oToolbar = new OverflowToolbar({
|
|
100
|
+
style: ToolbarStyle.Clear
|
|
101
|
+
});
|
|
102
|
+
this.setAggregation("_toolbar", oToolbar);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return oToolbar;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
ActionsStrip.prototype._initButtons = function (aButtons) {
|
|
109
|
+
if (!aButtons || !aButtons.length) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var oToolbar = this._getToolbar(),
|
|
114
|
+
oCard = Core.byId(this.getCard()),
|
|
115
|
+
oActions = new CardActions({
|
|
116
|
+
card: oCard
|
|
117
|
+
}),
|
|
118
|
+
bHasSpacer = false;
|
|
119
|
+
|
|
120
|
+
aButtons = BindingHelper.createBindingInfos(aButtons, oCard.getBindingNamespaces());
|
|
121
|
+
|
|
122
|
+
aButtons.forEach(function (mConfig) {
|
|
123
|
+
if (mConfig.type === "ToolbarSpacer") {
|
|
124
|
+
bHasSpacer = true;
|
|
125
|
+
oToolbar.addContent(new ToolbarSpacer());
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
var aActions = mConfig.actions,
|
|
130
|
+
oOverflow = new OverflowToolbarLayoutData({
|
|
131
|
+
group: mConfig.overflowGroup,
|
|
132
|
+
priority: mConfig.overflowPriority
|
|
133
|
+
}),
|
|
134
|
+
oButton;
|
|
135
|
+
|
|
136
|
+
if (mConfig.icon) {
|
|
137
|
+
oButton = new OverflowToolbarButton({
|
|
138
|
+
icon: mConfig.icon,
|
|
139
|
+
text: mConfig.text || mConfig.tooltip,
|
|
140
|
+
tooltip: mConfig.tooltip || mConfig.text,
|
|
141
|
+
type: mConfig.buttonType,
|
|
142
|
+
ariaHasPopup: mConfig.ariaHasPopup,
|
|
143
|
+
enabled: mConfig.enabled,
|
|
144
|
+
visible: mConfig.visible
|
|
145
|
+
});
|
|
146
|
+
} else {
|
|
147
|
+
oButton = new Button({
|
|
148
|
+
text: mConfig.text,
|
|
149
|
+
tooltip: mConfig.tooltip,
|
|
150
|
+
type: mConfig.buttonType,
|
|
151
|
+
ariaHasPopup: mConfig.ariaHasPopup,
|
|
152
|
+
enabled: mConfig.enabled,
|
|
153
|
+
visible: mConfig.visible
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
oButton.setLayoutData(oOverflow);
|
|
158
|
+
|
|
159
|
+
oActions.attach({
|
|
160
|
+
area: ActionArea.ActionsStrip,
|
|
161
|
+
control: oButton,
|
|
162
|
+
actions: aActions,
|
|
163
|
+
enabledPropertyName: "enabled"
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
oToolbar.addContent(oButton);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
if (!bHasSpacer) {
|
|
170
|
+
oToolbar.insertContent(new ToolbarSpacer(), 0);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
ActionsStrip.create = function (oCard, aButtons) {
|
|
175
|
+
var oActionsStrip = new ActionsStrip({
|
|
176
|
+
card: oCard
|
|
177
|
+
});
|
|
178
|
+
oActionsStrip._initButtons(aButtons);
|
|
179
|
+
|
|
180
|
+
return oActionsStrip;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
return ActionsStrip;
|
|
184
|
+
});
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @extends sap.m.StandardListItem
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.93.3
|
|
34
34
|
*
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
@@ -73,6 +73,8 @@ sap.ui.define([
|
|
|
73
73
|
aggregations: {
|
|
74
74
|
microchart: { type: "sap.ui.integration.controls.Microchart", multiple: false },
|
|
75
75
|
|
|
76
|
+
actionsStrip: { type: "sap.ui.integration.controls.ActionsStrip", multiple: false },
|
|
77
|
+
|
|
76
78
|
/**
|
|
77
79
|
* Defines the inner avatar control.
|
|
78
80
|
*/
|
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Renderer",
|
|
9
|
+
"sap/ui/core/Core",
|
|
10
|
+
"sap/ui/Device",
|
|
9
11
|
"sap/m/StandardListItemRenderer"
|
|
10
|
-
], function(Renderer,
|
|
12
|
+
], function(Renderer,
|
|
13
|
+
Core,
|
|
14
|
+
Device,
|
|
15
|
+
StandardListItemRenderer) {
|
|
11
16
|
"use strict";
|
|
12
17
|
|
|
13
18
|
/**
|
|
@@ -69,13 +74,98 @@ sap.ui.define([
|
|
|
69
74
|
this.renderInfo(rm, oLI);
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
rm.close("div");
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Renders the HTML for the given control, using the provided.
|
|
82
|
+
*
|
|
83
|
+
* {@link sap.ui.core.RenderManager}.
|
|
84
|
+
*
|
|
85
|
+
* @param {sap.ui.core.RenderManager} rm The RenderManager that can be used for writing to the Render-Output-Buffer.
|
|
86
|
+
* @param {sap.ui.core.Control} oLI an object representation of the control that should be rendered.
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
ListContentItemRenderer.render = function(rm, oLI) {
|
|
90
|
+
// render invisible placeholder
|
|
91
|
+
if (!oLI.getVisible()) {
|
|
92
|
+
this.renderInvisible(rm, oLI);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// start
|
|
97
|
+
this.openItemTag(rm, oLI);
|
|
98
|
+
|
|
99
|
+
// classes
|
|
100
|
+
rm.class("sapMLIB");
|
|
101
|
+
rm.class("sapMLIB-CTX");
|
|
102
|
+
rm.class("sapMLIBShowSeparator");
|
|
103
|
+
rm.class("sapMLIBType" + oLI.getType());
|
|
104
|
+
rm.class("sapMLIB");
|
|
105
|
+
|
|
106
|
+
if (Device.system.desktop && oLI.isActionable()) {
|
|
107
|
+
rm.class("sapMLIBActionable");
|
|
108
|
+
rm.class("sapMLIBHoverable");
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (oLI.getSelected()) {
|
|
112
|
+
rm.class("sapMLIBSelected");
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (oLI.getListProperty("showUnread") && oLI.getUnread()) {
|
|
116
|
+
rm.class("sapMLIBUnread");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
this.addFocusableClasses(rm, oLI);
|
|
120
|
+
|
|
121
|
+
// attributes
|
|
122
|
+
this.renderTooltip(rm, oLI);
|
|
123
|
+
this.renderTabIndex(rm, oLI);
|
|
124
|
+
|
|
125
|
+
// handle accessibility states
|
|
126
|
+
if (Core.getConfiguration().getAccessibility()) {
|
|
127
|
+
rm.accessibilityState(oLI, this.getAccessibilityState(oLI));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// item attributes hook
|
|
131
|
+
this.renderLIAttributes(rm, oLI);
|
|
132
|
+
|
|
133
|
+
rm.openEnd();
|
|
134
|
+
|
|
135
|
+
this.renderContentFormer(rm, oLI);
|
|
136
|
+
this.renderLIContentWrapper(rm, oLI);
|
|
137
|
+
this.renderContentLatter(rm, oLI);
|
|
138
|
+
|
|
139
|
+
this.renderFooter(rm, oLI);
|
|
140
|
+
|
|
141
|
+
this.closeItemTag(rm, oLI);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
ListContentItemRenderer.renderFooter = function(rm, oLI) {
|
|
145
|
+
|
|
146
|
+
var oMicrochart = oLI.getMicrochart(),
|
|
147
|
+
oActionsStrip = oLI.getActionsStrip();
|
|
148
|
+
|
|
149
|
+
if (!oMicrochart && !oActionsStrip) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
rm.openStart("div")
|
|
154
|
+
.class("sapUiIntLCIFooter")
|
|
155
|
+
.openEnd();
|
|
156
|
+
|
|
157
|
+
if (oMicrochart) {
|
|
158
|
+
rm.renderControl(oMicrochart);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (oActionsStrip) {
|
|
162
|
+
rm.renderControl(oActionsStrip);
|
|
74
163
|
}
|
|
75
164
|
|
|
76
165
|
rm.close("div");
|
|
77
166
|
};
|
|
78
167
|
|
|
168
|
+
|
|
79
169
|
return ListContentItemRenderer;
|
|
80
170
|
|
|
81
171
|
}, /* bExport= */ true);
|
|
@@ -128,7 +128,7 @@ sap.ui.define([
|
|
|
128
128
|
* @alias sap.ui.integration.designtime.baseEditor.BaseEditor
|
|
129
129
|
* @author SAP SE
|
|
130
130
|
* @since 1.70.0
|
|
131
|
-
* @version 1.
|
|
131
|
+
* @version 1.93.3
|
|
132
132
|
* @private
|
|
133
133
|
* @experimental since 1.70.0
|
|
134
134
|
* @ui5-restricted
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
* config.properties.<key>.path {string} that will be changed, relative to the context. Example: If the context is <code>root</code> and the path is <code>header/name</code>, the <code>json.root.header.name</code> field is to be changed
|
|
155
155
|
* config.properties.<key>.value {string|boolean} (Optional) value of the property. A binding relative to the context (model name) should be used. Example: <code>{context>header/name}</code> will create a binding <code>json.root.header.name</code>
|
|
156
156
|
* config.properties.<key>.tags {array} Strings to categorize the property
|
|
157
|
-
* config.properties.<key>.visible {string|boolean} Should be used as a binding relative to the context to define the conditions under which this property should be
|
|
157
|
+
* config.properties.<key>.visible {string|boolean} Should be used as a binding relative to the context to define the conditions under which the editor for this property should be visible, e.g. <code>{= ${context>anotherProperty} === 'someValue'}</code>. Invisible editors won't receive value updates until they are activated again.
|
|
158
158
|
* config.properties.<key>.<other configurations> {any} It is possible to define additional configurations in this namespace. These configurations will be passed to the dedicated property editor. Binding strings relative to context model are supported as well, e.g. <code>{= ${context>someProperty} + ${context>anotherProperty}}</code>
|
|
159
159
|
* config.propertyEditors {Object<string,string>} Defines which property editors should be loaded. Key is the property type and value is the editor module path. Example: <code>propertyEditors: {"string": "sap/ui/integration/designtime/controls/propertyEditors/StringEditor"}</code> defines the module responsible for all properties with the type <code>string</code>
|
|
160
160
|
* config.i18n {string|array} Module path or array of paths for i18n property files. i18n binding, for example, <code>{i18n>key}</code> is available in the <code>/properties<code> section, e.g. for <code>label</code>
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @alias sap.ui.integration.designtime.baseEditor.PropertyEditor
|
|
38
38
|
* @author SAP SE
|
|
39
39
|
* @since 1.73.0
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.93.3
|
|
41
41
|
* @private
|
|
42
42
|
* @experimental since 1.73.0
|
|
43
43
|
* @ui5-restricted
|
|
@@ -274,6 +274,10 @@ sap.ui.define([
|
|
|
274
274
|
this._initPropertyEditor();
|
|
275
275
|
} else {
|
|
276
276
|
oNestedEditor.setConfig(oConfig);
|
|
277
|
+
if (oConfig.visible !== false && oPreviousConfig.visible === false) {
|
|
278
|
+
// If editor just got activated, make sure the value is up-to-date
|
|
279
|
+
oNestedEditor.setValue(this.getValue());
|
|
280
|
+
}
|
|
277
281
|
}
|
|
278
282
|
});
|
|
279
283
|
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
* @alias sap.ui.integration.designtime.baseEditor.propertyEditor.BasePropertyEditor
|
|
53
53
|
* @author SAP SE
|
|
54
54
|
* @since 1.70
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.93.3
|
|
56
56
|
*
|
|
57
57
|
* @private
|
|
58
58
|
* @experimental 1.70
|
|
@@ -317,6 +317,12 @@ sap.ui.define([
|
|
|
317
317
|
var oConfig = this.getConfig() || {};
|
|
318
318
|
var vNextValue = vValue;
|
|
319
319
|
|
|
320
|
+
// If the editor is not visible, don't allow setting new values
|
|
321
|
+
// to avoid unwanted updates and side effects like validation failures
|
|
322
|
+
if (oConfig.visible === false) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
|
|
320
326
|
if (typeof vNextValue === "undefined" && typeof oConfig.defaultValue !== "undefined") {
|
|
321
327
|
vNextValue = deepClone(oConfig.defaultValue);
|
|
322
328
|
}
|
|
@@ -488,7 +494,7 @@ sap.ui.define([
|
|
|
488
494
|
* @param {string} sErrorMessage - Error message
|
|
489
495
|
*/
|
|
490
496
|
BasePropertyEditor.prototype.setInputState = function (bHasError, sErrorMessage) {
|
|
491
|
-
this._sErrorMessage = sErrorMessage;
|
|
497
|
+
this._sErrorMessage = bHasError && sErrorMessage;
|
|
492
498
|
if (this.isReady()) {
|
|
493
499
|
this._setInputState();
|
|
494
500
|
}
|
package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js
CHANGED
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @namespace sap.ui.integration.designtime.baseEditor.propertyEditor.PropertyEditorFactory
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.93.3
|
|
23
23
|
*
|
|
24
24
|
* @static
|
|
25
25
|
* @since 1.75
|
|
@@ -98,10 +98,12 @@ sap.ui.define([
|
|
|
98
98
|
PropertyEditorFactory.create = function (sPropertyType) {
|
|
99
99
|
return new Promise(function (resolve, reject) {
|
|
100
100
|
if (!sPropertyType) {
|
|
101
|
-
|
|
101
|
+
reject("No editor type was specified in the property configuration.");
|
|
102
|
+
return;
|
|
102
103
|
}
|
|
103
104
|
if (!oLoadingPromisses[sPropertyType]) {
|
|
104
|
-
|
|
105
|
+
reject("Editor type was not registered");
|
|
106
|
+
return;
|
|
105
107
|
}
|
|
106
108
|
oLoadingPromisses[sPropertyType]
|
|
107
109
|
.then(function (PropertyEditorClass) {
|
package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js
CHANGED
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* @alias sap.ui.integration.designtime.baseEditor.propertyEditor.arrayEditor.ArrayEditor
|
|
83
83
|
* @author SAP SE
|
|
84
84
|
* @since 1.72
|
|
85
|
-
* @version 1.
|
|
85
|
+
* @version 1.93.3
|
|
86
86
|
*
|
|
87
87
|
* @private
|
|
88
88
|
* @experimental 1.72
|
|
@@ -140,7 +140,7 @@ sap.ui.define([
|
|
|
140
140
|
var oConfig = this.getConfig();
|
|
141
141
|
|
|
142
142
|
var aItems = [];
|
|
143
|
-
aValue.forEach(function(oValue, iIndex) {
|
|
143
|
+
(aValue || []).forEach(function(oValue, iIndex) {
|
|
144
144
|
var oValueCopy = deepClone(oValue);
|
|
145
145
|
var oDesigntimeMetadata = this.getNestedDesigntimeMetadata(iIndex);
|
|
146
146
|
var mItem = {
|