@openui5/sap.ui.integration 1.104.0 → 1.105.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/integration/.library +7 -7
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +1 -1
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +5 -4
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -5
- 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 +4 -2
- package/src/sap/ui/integration/cards/ListContent.js +1 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +5 -3
- package/src/sap/ui/integration/cards/ObjectContent.js +18 -5
- 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 +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/UI5InputTime.js +0 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +6 -3
- 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 +3 -3
- 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/LinkWithIcon.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- 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/Paginator.js +1 -1
- package/src/sap/ui/integration/customElements/CustomElementBase.js +0 -2
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +3 -5
- 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 +3 -5
- 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 +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -3
- 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 +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +3 -5
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +3 -5
- 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/FooterConfig.js +22 -0
- package/src/sap/ui/integration/designtime/cardEditor/config/generateActionConfig.js +8 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateFooterActionsStripConfig.js +179 -0
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +17 -3
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +42 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_GB.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_sappsd.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +28 -0
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +10 -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 +10 -2
- 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 +1 -1
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +2 -0
- package/src/sap/ui/integration/editor/Editor.js +14 -14
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- package/src/sap/ui/integration/editor/Extension.js +2 -2
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Merger.js +2 -4
- package/src/sap/ui/integration/editor/Settings.js +49 -44
- package/src/sap/ui/integration/editor/fields/BaseField.js +54 -6
- 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/IntegerField.js +1 -1
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +13 -2
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +3 -2
- 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 +43 -0
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +26 -39
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +54 -71
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +21 -38
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +91 -0
- package/src/sap/ui/integration/library.js +12 -4
- 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 +7 -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 +2 -0
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +43 -4
- package/src/sap/ui/integration/util/DataProviderFactory.js +2 -5
- package/src/sap/ui/integration/util/Destinations.js +1 -3
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +8 -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/ManifestResolver.js +4 -0
- package/src/sap/ui/integration/util/ParameterMap.js +14 -0
- package/src/sap/ui/integration/util/RequestDataProvider.js +8 -9
- 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/widgets/Card.js +64 -14
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/
|
|
7
|
+
"sap/ui/integration/editor/fields/viz/VizBase",
|
|
8
8
|
"sap/m/Select",
|
|
9
9
|
"sap/ui/core/ListItem",
|
|
10
10
|
"sap/ui/model/json/JSONModel",
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
"sap/ui/core/Core",
|
|
14
14
|
"sap/base/util/deepClone"
|
|
15
15
|
], function (
|
|
16
|
-
|
|
16
|
+
VizBase, Select, ListItem, JSONModel, IconPool, merge, Core, deepClone
|
|
17
17
|
) {
|
|
18
18
|
"use strict";
|
|
19
19
|
|
|
@@ -22,16 +22,16 @@ sap.ui.define([
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @class
|
|
25
|
-
* @extends sap.ui.
|
|
25
|
+
* @extends sap.ui.integration.editor.fields.viz.VizBase
|
|
26
26
|
* @alias sap.ui.integration.editor.fields.viz.IconSelect
|
|
27
27
|
* @author SAP SE
|
|
28
28
|
* @since 1.84.0
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.105.0
|
|
30
30
|
* @private
|
|
31
31
|
* @experimental since 1.84.0
|
|
32
32
|
* @ui5-restricted
|
|
33
33
|
*/
|
|
34
|
-
var IconSelect =
|
|
34
|
+
var IconSelect = VizBase.extend("sap.ui.integration.editor.fields.viz.IconSelect", {
|
|
35
35
|
metadata: {
|
|
36
36
|
library: "sap.ui.integration",
|
|
37
37
|
properties: {
|
|
@@ -39,10 +39,6 @@ sap.ui.define([
|
|
|
39
39
|
type: "string",
|
|
40
40
|
defaultValue: "sap-icon://accept"
|
|
41
41
|
},
|
|
42
|
-
editable: {
|
|
43
|
-
type: "boolean",
|
|
44
|
-
defaultValue: true
|
|
45
|
-
},
|
|
46
42
|
allowFile: {
|
|
47
43
|
type: "boolean",
|
|
48
44
|
defaultValue: true
|
|
@@ -51,27 +47,9 @@ sap.ui.define([
|
|
|
51
47
|
type: "boolean",
|
|
52
48
|
defaultValue: true
|
|
53
49
|
}
|
|
54
|
-
},
|
|
55
|
-
aggregations: {
|
|
56
|
-
_select: {
|
|
57
|
-
type: "sap.m.Select",
|
|
58
|
-
multiple: false,
|
|
59
|
-
visibility: "hidden"
|
|
60
|
-
}
|
|
61
50
|
}
|
|
62
51
|
},
|
|
63
|
-
renderer:
|
|
64
|
-
var oSelect = oControl.getAggregation("_select");
|
|
65
|
-
oRm.openStart("div");
|
|
66
|
-
oRm.addClass("sapUiIntegrationIconSelect");
|
|
67
|
-
if (oSelect && oControl.getWidth) {
|
|
68
|
-
oRm.addStyle("width", oSelect.getWidth());
|
|
69
|
-
}
|
|
70
|
-
oRm.writeElementData(oControl);
|
|
71
|
-
oRm.openEnd();
|
|
72
|
-
oRm.renderControl(oSelect);
|
|
73
|
-
oRm.close("div");
|
|
74
|
-
}
|
|
52
|
+
renderer: VizBase.getMetadata().getRenderer()
|
|
75
53
|
});
|
|
76
54
|
|
|
77
55
|
IconSelect.prototype._initIconModel = function () {
|
|
@@ -101,7 +79,7 @@ sap.ui.define([
|
|
|
101
79
|
icon: "",
|
|
102
80
|
text: oResourceBundle.getText("EDITOR_ICON_NONE"),
|
|
103
81
|
tooltip: "",
|
|
104
|
-
key: "
|
|
82
|
+
key: "",
|
|
105
83
|
enabled: true
|
|
106
84
|
}, {
|
|
107
85
|
icon: "sap-icon://upload",
|
|
@@ -120,7 +98,7 @@ sap.ui.define([
|
|
|
120
98
|
this._oIconModel.setSizeLimit(aIcons.length);
|
|
121
99
|
};
|
|
122
100
|
|
|
123
|
-
IconSelect.prototype.
|
|
101
|
+
IconSelect.prototype.onInit = function () {
|
|
124
102
|
if (oResourceBundle && oResourceBundle.sLocale !== Core.getConfiguration().getLanguage()) {
|
|
125
103
|
oResourceBundle = Core.getLibraryResourceBundle("sap.ui.integration");
|
|
126
104
|
}
|
|
@@ -141,7 +119,7 @@ sap.ui.define([
|
|
|
141
119
|
this._boundFileUploadChange = this._fileUploadChange.bind(this);
|
|
142
120
|
this._oFileUpload.addEventListener("change", this._boundFileUploadChange);
|
|
143
121
|
|
|
144
|
-
this.
|
|
122
|
+
this._oControl = new Select({
|
|
145
123
|
width: "100%",
|
|
146
124
|
items: {
|
|
147
125
|
path: "iconlist>/",
|
|
@@ -161,22 +139,22 @@ sap.ui.define([
|
|
|
161
139
|
}
|
|
162
140
|
}.bind(this)
|
|
163
141
|
});
|
|
164
|
-
this.
|
|
142
|
+
this._oControl.setModel(this._oIconModel, "iconlist");
|
|
165
143
|
|
|
166
144
|
//add style class and height on open
|
|
167
|
-
var fnOpen = this.
|
|
168
|
-
this.
|
|
145
|
+
var fnOpen = this._oControl.open;
|
|
146
|
+
this._oControl.open = function () {
|
|
169
147
|
fnOpen && fnOpen.apply(this, arguments);
|
|
170
148
|
this.getPicker().addStyleClass("sapUiIntegrationIconSelectList");
|
|
171
149
|
this.getPicker().setContentHeight("400px");
|
|
172
150
|
};
|
|
173
151
|
|
|
174
152
|
//show file image before the label
|
|
175
|
-
this.
|
|
153
|
+
this._oControl.addDelegate({
|
|
176
154
|
onAfterRendering: function () {
|
|
177
|
-
var oIconDomRef = this.
|
|
155
|
+
var oIconDomRef = this._oControl.getDomRef("labelIcon");
|
|
178
156
|
if (oIconDomRef) {
|
|
179
|
-
var sCustomImage = this.
|
|
157
|
+
var sCustomImage = this._oControl._customImage;
|
|
180
158
|
if (sCustomImage) {
|
|
181
159
|
oIconDomRef.style.backgroundImage = "url('" + sCustomImage + "')";
|
|
182
160
|
oIconDomRef.classList.add("sapMSelectListItemIconCustom");
|
|
@@ -189,63 +167,70 @@ sap.ui.define([
|
|
|
189
167
|
});
|
|
190
168
|
|
|
191
169
|
//keyboard handling only if the list is open
|
|
192
|
-
this.
|
|
170
|
+
this._oControl.addDelegate({
|
|
193
171
|
onsappageup: function () {
|
|
194
|
-
if (this.
|
|
195
|
-
var iSelected = this.
|
|
196
|
-
this.
|
|
172
|
+
if (this._oControl.isOpen()) {
|
|
173
|
+
var iSelected = this._oControl.getSelectedIndex();
|
|
174
|
+
this._oControl.setSelectedIndex(iSelected - 50); //select will do -10
|
|
197
175
|
}
|
|
198
176
|
}.bind(this),
|
|
199
177
|
onsappagedown: function () {
|
|
200
|
-
if (this.
|
|
201
|
-
var iSelected = this.
|
|
178
|
+
if (this._oControl.isOpen()) {
|
|
179
|
+
var iSelected = this._oControl.getSelectedIndex();
|
|
202
180
|
if (iSelected < 3) {
|
|
203
|
-
this.
|
|
181
|
+
this._oControl.setSelectedIndex(29);
|
|
204
182
|
} else {
|
|
205
|
-
this.
|
|
183
|
+
this._oControl.setSelectedIndex(iSelected + 50); //select will do +10
|
|
206
184
|
}
|
|
207
185
|
}
|
|
208
186
|
}.bind(this),
|
|
209
187
|
onsapup: function () {
|
|
210
|
-
if (this.
|
|
188
|
+
if (this._oControl.isOpen()) {
|
|
211
189
|
var bAllowFile = this.getAllowFile();
|
|
212
190
|
var bAllowNone = this.getAllowNone();
|
|
213
191
|
var bFileSelected = this._oIconModel.getProperty("/2/enabled");
|
|
214
|
-
var iSelected = this.
|
|
192
|
+
var iSelected = this._oControl.getSelectedIndex();
|
|
215
193
|
if (iSelected > 11 + 2) {
|
|
216
|
-
this.
|
|
194
|
+
this._oControl.setSelectedIndex(iSelected - 11);//select will do -1
|
|
217
195
|
} else if (iSelected >= 3) {
|
|
218
196
|
if (bAllowNone && !bAllowFile) {
|
|
219
|
-
this.
|
|
197
|
+
this._oControl.setSelectedIndex(0);
|
|
220
198
|
} else if (bFileSelected) {
|
|
221
|
-
this.
|
|
199
|
+
this._oControl.setSelectedIndex(2);
|
|
222
200
|
} else {
|
|
223
|
-
this.
|
|
201
|
+
this._oControl.setSelectedIndex(3);
|
|
224
202
|
}
|
|
225
203
|
}
|
|
226
204
|
}
|
|
227
205
|
}.bind(this),
|
|
228
206
|
onsapdown: function () {
|
|
229
|
-
if (this.
|
|
230
|
-
var iSelected = this.
|
|
207
|
+
if (this._oControl.isOpen()) {
|
|
208
|
+
var iSelected = this._oControl.getSelectedIndex();
|
|
231
209
|
if (iSelected > 1) {
|
|
232
|
-
this.
|
|
210
|
+
this._oControl.setSelectedIndex(iSelected + 11); //select will do +1
|
|
233
211
|
}
|
|
234
212
|
}
|
|
235
213
|
}.bind(this),
|
|
236
214
|
onsapleft: function () {
|
|
237
|
-
if (this.
|
|
238
|
-
this.
|
|
215
|
+
if (this._oControl.isOpen()) { //just do up
|
|
216
|
+
this._oControl.onsapup.apply(this._oControl, arguments);
|
|
239
217
|
}
|
|
240
218
|
}.bind(this),
|
|
241
219
|
onsapright: function () {
|
|
242
|
-
if (this.
|
|
243
|
-
this.
|
|
220
|
+
if (this._oControl.isOpen()) { //just do up
|
|
221
|
+
this._oControl.onsapdown.apply(this._oControl, arguments);
|
|
244
222
|
}
|
|
245
223
|
}.bind(this)
|
|
246
224
|
|
|
247
225
|
}, true);
|
|
248
|
-
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// add style class to the render manager
|
|
229
|
+
IconSelect.prototype.applyStyle = function (oRm) {
|
|
230
|
+
oRm.addClass("sapUiIntegrationIconSelect");
|
|
231
|
+
if (this._oControl && this._oControl.getWidth) {
|
|
232
|
+
oRm.addStyle("width", this._oControl.getWidth());
|
|
233
|
+
}
|
|
249
234
|
};
|
|
250
235
|
|
|
251
236
|
IconSelect.prototype._fileUploadChange = function () {
|
|
@@ -253,7 +238,7 @@ sap.ui.define([
|
|
|
253
238
|
fileReader.onload = function () {
|
|
254
239
|
//file is uploaded
|
|
255
240
|
this.setValue(fileReader.result);
|
|
256
|
-
this.
|
|
241
|
+
this._oControl.invalidate();
|
|
257
242
|
}.bind(this);
|
|
258
243
|
if (this._oFileUpload.files.length === 1) {
|
|
259
244
|
fileReader.readAsDataURL(this._oFileUpload.files[0]);
|
|
@@ -262,34 +247,32 @@ sap.ui.define([
|
|
|
262
247
|
|
|
263
248
|
//focus is back after a file upload dialog
|
|
264
249
|
IconSelect.prototype._focusBack = function () {
|
|
265
|
-
this.
|
|
250
|
+
this._oControl.getDomRef("hiddenSelect").removeEventListener("focus", this._boundFocusBack);
|
|
266
251
|
setTimeout(function () {
|
|
267
252
|
this.setValue(this.getValue());
|
|
268
253
|
}.bind(this), 150);
|
|
269
254
|
};
|
|
270
255
|
|
|
271
256
|
|
|
272
|
-
IconSelect.prototype.
|
|
273
|
-
Control.prototype.bindProperty.apply(this, arguments);
|
|
257
|
+
IconSelect.prototype.bindPropertyToControl = function (sProperty, oBindingInfo) {
|
|
274
258
|
if (sProperty === "editable") {
|
|
275
|
-
var
|
|
276
|
-
this.
|
|
259
|
+
var oControlBindingInfo = merge({}, oBindingInfo);
|
|
260
|
+
this._oControl.bindProperty("editable", oControlBindingInfo);
|
|
277
261
|
}
|
|
278
|
-
return this;
|
|
279
262
|
};
|
|
280
263
|
|
|
281
264
|
IconSelect.prototype.setValue = function (sValue) {
|
|
282
265
|
this.setProperty("value", sValue, true);
|
|
283
266
|
if (sValue && sValue.indexOf("data:image/") === 0) {
|
|
284
|
-
this.
|
|
267
|
+
this._oControl._customImage = sValue;
|
|
285
268
|
this._oIconModel.setProperty("/2/enabled", true);
|
|
286
|
-
this.
|
|
269
|
+
this._oControl.setSelectedKey("selected");
|
|
287
270
|
} else {
|
|
288
|
-
this.
|
|
271
|
+
this._oControl._customImage = null;
|
|
289
272
|
this._oIconModel.setProperty("/2/enabled", false);
|
|
290
|
-
this.
|
|
273
|
+
this._oControl.setSelectedKey(sValue);
|
|
291
274
|
}
|
|
292
|
-
this.
|
|
275
|
+
this._oControl.invalidate();
|
|
293
276
|
return this;
|
|
294
277
|
};
|
|
295
278
|
|
|
@@ -4,62 +4,42 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/
|
|
7
|
+
"sap/ui/integration/editor/fields/viz/VizBase",
|
|
8
8
|
"sap/m/SegmentedButton",
|
|
9
9
|
"sap/m/SegmentedButtonItem",
|
|
10
|
-
"sap/
|
|
11
|
-
"sap/base/util/merge",
|
|
12
|
-
"sap/ui/core/theming/Parameters"
|
|
10
|
+
"sap/base/util/merge"
|
|
13
11
|
], function (
|
|
14
|
-
|
|
12
|
+
VizBase, SegmentedButton, SegmentedButtonItem, merge
|
|
15
13
|
) {
|
|
16
14
|
"use strict";
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
* @class
|
|
20
|
-
* @extends sap.ui.
|
|
18
|
+
* @extends sap.ui.integration.editor.fields.viz.VizBase
|
|
21
19
|
* @alias sap.ui.integration.editor.fields.viz.ShapeSelect
|
|
22
20
|
* @author SAP SE
|
|
23
21
|
* @since 1.84.0
|
|
24
|
-
* @version 1.
|
|
22
|
+
* @version 1.105.0
|
|
25
23
|
* @private
|
|
26
24
|
* @experimental since 1.84.0
|
|
27
25
|
* @ui5-restricted
|
|
28
26
|
*/
|
|
29
|
-
var ShapeSelect =
|
|
27
|
+
var ShapeSelect = VizBase.extend("sap.ui.integration.editor.fields.viz.ShapeSelect", {
|
|
30
28
|
metadata: {
|
|
31
29
|
library: "sap.ui.integration",
|
|
32
30
|
properties: {
|
|
33
31
|
value: {
|
|
34
32
|
type: "string",
|
|
35
33
|
defaultValue: "Circle"
|
|
36
|
-
},
|
|
37
|
-
editable: {
|
|
38
|
-
type: "boolean",
|
|
39
|
-
defaultValue: true
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
aggregations: {
|
|
43
|
-
_segmentedbutton: {
|
|
44
|
-
type: "sap.m.SegmentedButton",
|
|
45
|
-
multiple: false,
|
|
46
|
-
visibility: "hidden"
|
|
47
34
|
}
|
|
48
35
|
}
|
|
49
36
|
},
|
|
50
|
-
renderer:
|
|
51
|
-
var oSegmentedButton = oControl.getAggregation("_segmentedbutton");
|
|
52
|
-
oRm.openStart("div");
|
|
53
|
-
oRm.addClass("sapUiIntegrationShapeSelect");
|
|
54
|
-
oRm.writeElementData(oControl);
|
|
55
|
-
oRm.openEnd();
|
|
56
|
-
oRm.renderControl(oSegmentedButton);
|
|
57
|
-
oRm.close("div");
|
|
58
|
-
}
|
|
37
|
+
renderer: VizBase.getMetadata().getRenderer()
|
|
59
38
|
});
|
|
60
39
|
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
// create this._oControl and set up it
|
|
41
|
+
ShapeSelect.prototype.onInit = function () {
|
|
42
|
+
this._oControl = new SegmentedButton({
|
|
63
43
|
items: [
|
|
64
44
|
new SegmentedButtonItem({
|
|
65
45
|
icon: "sap-icon://circle-task",
|
|
@@ -71,20 +51,23 @@ sap.ui.define([
|
|
|
71
51
|
})
|
|
72
52
|
]
|
|
73
53
|
});
|
|
74
|
-
this.setAggregation("_segmentedbutton", this._oSegmentedButton);
|
|
75
54
|
};
|
|
76
55
|
|
|
77
|
-
|
|
78
|
-
|
|
56
|
+
// add style class to the render manager
|
|
57
|
+
ShapeSelect.prototype.applyStyle = function (oRm) {
|
|
58
|
+
oRm.addClass("sapUiIntegrationShapeSelect");
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// bind propeties to this._oControl
|
|
62
|
+
ShapeSelect.prototype.bindPropertyToControl = function (sProperty, oBindingInfo) {
|
|
79
63
|
if (sProperty === "editable") {
|
|
80
|
-
var
|
|
81
|
-
this.
|
|
64
|
+
var oControlBindingInfo = merge({}, oBindingInfo);
|
|
65
|
+
this._oControl.bindProperty("enabled", oControlBindingInfo);
|
|
82
66
|
}
|
|
83
67
|
if (sProperty === "value") {
|
|
84
|
-
var
|
|
85
|
-
this.
|
|
68
|
+
var oControlBindingInfo = merge({}, oBindingInfo);
|
|
69
|
+
this._oControl.bindProperty("selectedKey", oControlBindingInfo);
|
|
86
70
|
}
|
|
87
|
-
return this;
|
|
88
71
|
};
|
|
89
72
|
|
|
90
73
|
return ShapeSelect;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/core/Control",
|
|
8
|
+
"sap/m/SegmentedButton",
|
|
9
|
+
"sap/m/SegmentedButtonItem",
|
|
10
|
+
"sap/base/util/merge"
|
|
11
|
+
], function (
|
|
12
|
+
Control, SegmentedButton, SegmentedButtonItem, merge
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @class Visualization Base Control
|
|
18
|
+
* @extends sap.ui.core.Control
|
|
19
|
+
* @alias sap.ui.integration.editor.fields.viz.VizBase
|
|
20
|
+
* @author SAP SE
|
|
21
|
+
* @since 1.105.0
|
|
22
|
+
* @version 1.105.0
|
|
23
|
+
* @private
|
|
24
|
+
* @experimental since 1.105.0
|
|
25
|
+
* @ui5-restricted
|
|
26
|
+
*/
|
|
27
|
+
var VizBase = Control.extend("sap.ui.integration.editor.fields.viz.VizBase", {
|
|
28
|
+
metadata: {
|
|
29
|
+
library: "sap.ui.integration",
|
|
30
|
+
properties: {
|
|
31
|
+
value: {
|
|
32
|
+
type: "string",
|
|
33
|
+
defaultValue: ""
|
|
34
|
+
},
|
|
35
|
+
editable: {
|
|
36
|
+
type: "boolean",
|
|
37
|
+
defaultValue: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
aggregations: {
|
|
41
|
+
_control: {
|
|
42
|
+
type: "sap.ui.core.Control",
|
|
43
|
+
multiple: false,
|
|
44
|
+
visibility: "hidden"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
renderer: function (oRm, oVizControl) {
|
|
49
|
+
var oControl = oVizControl.getAggregation("_control");
|
|
50
|
+
oRm.openStart("div");
|
|
51
|
+
oVizControl.applyStyle(oRm);
|
|
52
|
+
oRm.writeElementData(oVizControl);
|
|
53
|
+
oRm.openEnd();
|
|
54
|
+
oRm.renderControl(oControl);
|
|
55
|
+
oRm.close("div");
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
VizBase.prototype.init = function () {
|
|
60
|
+
this.onInit();
|
|
61
|
+
this.setAggregation("_control", this._oControl);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
VizBase.prototype.bindProperty = function (sProperty, oBindingInfo) {
|
|
65
|
+
Control.prototype.bindProperty.apply(this, arguments);
|
|
66
|
+
this.bindPropertyToControl(sProperty, oBindingInfo);
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// create this._oControl and set up it
|
|
71
|
+
VizBase.prototype.onInit = function () {
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// add style class to the render manager
|
|
75
|
+
VizBase.prototype.applyStyle = function (oRm) {
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// bind propety to this._oControl
|
|
79
|
+
VizBase.prototype.bindPropertyToControl = function (sProperty, oBindingInfo) {
|
|
80
|
+
if (sProperty === "value") {
|
|
81
|
+
var oControlBindingInfo = merge({}, oBindingInfo);
|
|
82
|
+
this._oControl.bindProperty("value", oControlBindingInfo);
|
|
83
|
+
}
|
|
84
|
+
if (sProperty === "editable") {
|
|
85
|
+
var oControlBindingInfo = merge({}, oBindingInfo);
|
|
86
|
+
this._oControl.bindProperty("editable", oControlBindingInfo);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return VizBase;
|
|
91
|
+
});
|
|
@@ -12,7 +12,9 @@ sap.ui.define([
|
|
|
12
12
|
// library dependency
|
|
13
13
|
"sap/ui/core/library",
|
|
14
14
|
"sap/m/library",
|
|
15
|
-
"sap/f/library"
|
|
15
|
+
"sap/f/library",
|
|
16
|
+
"sap/ui/unified/library",
|
|
17
|
+
"sap/ui/layout/library"
|
|
16
18
|
], function (DataType) {
|
|
17
19
|
"use strict";
|
|
18
20
|
|
|
@@ -22,14 +24,20 @@ sap.ui.define([
|
|
|
22
24
|
* @namespace
|
|
23
25
|
* @alias sap.ui.integration
|
|
24
26
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
27
|
+
* @version 1.105.0
|
|
26
28
|
* @since 1.62
|
|
27
29
|
* @public
|
|
28
30
|
*/
|
|
29
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
30
32
|
name: "sap.ui.integration",
|
|
31
|
-
version: "1.
|
|
32
|
-
dependencies: [
|
|
33
|
+
version: "1.105.0",
|
|
34
|
+
dependencies: [
|
|
35
|
+
"sap.ui.core",
|
|
36
|
+
"sap.f",
|
|
37
|
+
"sap.m",
|
|
38
|
+
"sap.ui.unified",
|
|
39
|
+
"sap.ui.layout"
|
|
40
|
+
],
|
|
33
41
|
types: [
|
|
34
42
|
"sap.ui.integration.CardActionType",
|
|
35
43
|
"sap.ui.integration.CardDataMode",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"1.26.0",
|
|
39
39
|
"1.27.0",
|
|
40
40
|
"1.28.0",
|
|
41
|
-
"1.29.0"
|
|
41
|
+
"1.29.0",
|
|
42
|
+
"1.30.0"
|
|
43
|
+
|
|
42
44
|
]
|
|
43
45
|
},
|
|
44
46
|
"designtime": {
|
|
@@ -1277,6 +1279,10 @@
|
|
|
1277
1279
|
"description": "Represents the text, which is associated with the label",
|
|
1278
1280
|
"type": "string"
|
|
1279
1281
|
},
|
|
1282
|
+
"tooltip": {
|
|
1283
|
+
"description": "Defines the tooltip of the link",
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
},
|
|
1280
1286
|
"type": {
|
|
1281
1287
|
"description": "Defines the type of the displayed information. Some of the types are deprecated",
|
|
1282
1288
|
"type": "string",
|