@openui5/sap.ui.integration 1.112.2 → 1.114.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 +6 -6
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +27 -3
- package/src/sap/ui/integration/Host.js +31 -8
- package/src/sap/ui/integration/cards/AdaptiveContent.js +30 -40
- package/src/sap/ui/integration/cards/AnalyticalContent.js +14 -5
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +18 -7
- package/src/sap/ui/integration/cards/BaseContent.js +143 -41
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +7 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +22 -21
- package/src/sap/ui/integration/cards/CalendarContent.js +5 -12
- package/src/sap/ui/integration/cards/ComponentContent.js +12 -5
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +26 -13
- package/src/sap/ui/integration/cards/ListContent.js +33 -33
- package/src/sap/ui/integration/cards/NumericHeader.js +26 -13
- package/src/sap/ui/integration/cards/ObjectContent.js +55 -14
- package/src/sap/ui/integration/cards/TableContent.js +23 -15
- package/src/sap/ui/integration/cards/TimelineContent.js +11 -10
- package/src/sap/ui/integration/cards/WebPageContent.js +34 -25
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/actions/SubmitAction.js +1 -3
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +9 -5
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +24 -23
- 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 +1 -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 +267 -0
- package/src/sap/ui/integration/controls/LinkWithIcon.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +35 -2
- package/src/sap/ui/integration/controls/ListContentItemRenderer.js +5 -11
- 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 +6 -2
- package/src/sap/ui/integration/controls/Paginator.js +12 -5
- package/src/sap/ui/integration/controls/PaginatorRenderer.js +1 -2
- 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 +7 -5
- 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/BASEditor.js +8 -10
- package/src/sap/ui/integration/designtime/cardEditor/CardEditor.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +3 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_sappsd.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saptrc.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +2 -0
- 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 +12 -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 +38 -119
- package/src/sap/ui/integration/editor/Editor.js +127 -104
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +58 -66
- 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 +74 -63
- package/src/sap/ui/integration/editor/fields/BaseField.js +6 -3
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +5 -4
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +5 -4
- package/src/sap/ui/integration/editor/fields/DestinationField.js +15 -12
- package/src/sap/ui/integration/editor/fields/GroupField.js +5 -6
- 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 +57 -44
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +3 -3
- package/src/sap/ui/integration/editor/fields/StringField.js +13 -11
- 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/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +1 -1
- package/src/sap/ui/integration/library.js +33 -4
- package/src/sap/ui/integration/messagebundle.properties +70 -7
- package/src/sap/ui/integration/messagebundle_ar.properties +46 -4
- package/src/sap/ui/integration/messagebundle_bg.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ca.properties +46 -4
- package/src/sap/ui/integration/messagebundle_cs.properties +46 -4
- package/src/sap/ui/integration/messagebundle_cy.properties +46 -4
- package/src/sap/ui/integration/messagebundle_da.properties +46 -4
- package/src/sap/ui/integration/messagebundle_de.properties +46 -4
- package/src/sap/ui/integration/messagebundle_el.properties +46 -4
- package/src/sap/ui/integration/messagebundle_en.properties +46 -4
- package/src/sap/ui/integration/messagebundle_en_GB.properties +46 -4
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +47 -5
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +46 -4
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +48 -6
- package/src/sap/ui/integration/messagebundle_es.properties +46 -4
- package/src/sap/ui/integration/messagebundle_es_MX.properties +46 -4
- package/src/sap/ui/integration/messagebundle_et.properties +46 -4
- package/src/sap/ui/integration/messagebundle_fi.properties +46 -4
- package/src/sap/ui/integration/messagebundle_fr.properties +43 -1
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +43 -1
- package/src/sap/ui/integration/messagebundle_hi.properties +46 -4
- package/src/sap/ui/integration/messagebundle_hr.properties +46 -4
- package/src/sap/ui/integration/messagebundle_hu.properties +46 -4
- package/src/sap/ui/integration/messagebundle_id.properties +46 -4
- package/src/sap/ui/integration/messagebundle_it.properties +46 -4
- package/src/sap/ui/integration/messagebundle_iw.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ja.properties +46 -4
- package/src/sap/ui/integration/messagebundle_kk.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ko.properties +43 -1
- package/src/sap/ui/integration/messagebundle_lt.properties +46 -4
- package/src/sap/ui/integration/messagebundle_lv.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ms.properties +46 -4
- package/src/sap/ui/integration/messagebundle_nl.properties +46 -4
- package/src/sap/ui/integration/messagebundle_no.properties +46 -4
- package/src/sap/ui/integration/messagebundle_pl.properties +46 -4
- package/src/sap/ui/integration/messagebundle_pt.properties +46 -4
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ro.properties +46 -4
- package/src/sap/ui/integration/messagebundle_ru.properties +46 -4
- package/src/sap/ui/integration/messagebundle_sh.properties +46 -4
- package/src/sap/ui/integration/messagebundle_sk.properties +46 -4
- package/src/sap/ui/integration/messagebundle_sl.properties +46 -4
- package/src/sap/ui/integration/messagebundle_sv.properties +46 -4
- package/src/sap/ui/integration/messagebundle_th.properties +43 -1
- package/src/sap/ui/integration/messagebundle_tr.properties +46 -4
- package/src/sap/ui/integration/messagebundle_uk.properties +48 -6
- package/src/sap/ui/integration/messagebundle_vi.properties +46 -4
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +46 -4
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +46 -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 +57 -3
- package/src/sap/ui/integration/themes/base/BlockingMessage.less +11 -0
- package/src/sap/ui/integration/themes/base/Card.less +1 -1
- package/src/sap/ui/integration/themes/base/ListContentItem.less +4 -27
- package/src/sap/ui/integration/themes/base/ObjectStatusIcons.less +4 -6
- package/src/sap/ui/integration/themes/base/Paginator.less +19 -38
- package/src/sap/ui/integration/themes/base/library.source.less +1 -0
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +9 -3
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CacheAndRequestDataProvider.js +7 -6
- package/src/sap/ui/integration/util/CardObserver.js +2 -2
- package/src/sap/ui/integration/util/ContentFactory.js +15 -7
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +7 -7
- package/src/sap/ui/integration/util/DataProvider.js +8 -3
- package/src/sap/ui/integration/util/DataProviderFactory.js +14 -13
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +147 -0
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.js +17 -6
- package/src/sap/ui/integration/util/HeaderFactory.js +4 -3
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +2 -18
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/ParameterMap.js +6 -4
- package/src/sap/ui/integration/util/RequestDataProvider.js +163 -77
- 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 +19 -2
- package/src/sap/ui/integration/util/Utils.js +6 -4
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +221 -182
|
@@ -36,7 +36,6 @@ sap.ui.define([
|
|
|
36
36
|
"sap/m/CustomListItem",
|
|
37
37
|
"sap/ui/model/Sorter",
|
|
38
38
|
"sap/ui/core/CustomData",
|
|
39
|
-
"sap/ui/integration/editor/EditorResourceBundles",
|
|
40
39
|
"sap/ui/integration/util/Utils"
|
|
41
40
|
], function (
|
|
42
41
|
BaseField,
|
|
@@ -70,7 +69,6 @@ sap.ui.define([
|
|
|
70
69
|
CustomListItem,
|
|
71
70
|
Sorter,
|
|
72
71
|
CustomData,
|
|
73
|
-
EditorResourceBundles,
|
|
74
72
|
Utils
|
|
75
73
|
) {
|
|
76
74
|
"use strict";
|
|
@@ -82,7 +80,7 @@ sap.ui.define([
|
|
|
82
80
|
* @alias sap.ui.integration.editor.fields.ObjectField
|
|
83
81
|
* @author SAP SE
|
|
84
82
|
* @since 1.100.0
|
|
85
|
-
* @version 1.
|
|
83
|
+
* @version 1.114.0
|
|
86
84
|
* @private
|
|
87
85
|
* @experimental since 1.100.0
|
|
88
86
|
* @ui5-restricted
|
|
@@ -206,6 +204,7 @@ sap.ui.define([
|
|
|
206
204
|
|
|
207
205
|
ObjectField.prototype.createSimpleFormVisualization = function(oConfig) {
|
|
208
206
|
var that = this;
|
|
207
|
+
var sParameterId = that.getParameterId();
|
|
209
208
|
var oResourceBundle = that.getResourceBundle();
|
|
210
209
|
var fnChange = function() {
|
|
211
210
|
var oModel = this.getAggregation("_field").getModel();
|
|
@@ -223,7 +222,7 @@ sap.ui.define([
|
|
|
223
222
|
this.setValue(oValue);
|
|
224
223
|
}.bind(that);
|
|
225
224
|
var aObjectPropertyFormContents = that.createFormContents(fnChange, "/value/", false, that.openTranslationPopup);
|
|
226
|
-
var oEditModeButton = new Button({
|
|
225
|
+
var oEditModeButton = new Button(sParameterId + "_control_form_editmode_btn", {
|
|
227
226
|
icon: {
|
|
228
227
|
path: '/editMode',
|
|
229
228
|
formatter: function(oEditMode) {
|
|
@@ -254,7 +253,7 @@ sap.ui.define([
|
|
|
254
253
|
}
|
|
255
254
|
}
|
|
256
255
|
});
|
|
257
|
-
var oDeleteButon = new Button({
|
|
256
|
+
var oDeleteButon = new Button(sParameterId + "_control_form_delete_btn", {
|
|
258
257
|
icon: "sap-icon://delete",
|
|
259
258
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DELETE"),
|
|
260
259
|
visible: oConfig.enabled,
|
|
@@ -341,11 +340,11 @@ sap.ui.define([
|
|
|
341
340
|
return oVisualization;
|
|
342
341
|
};
|
|
343
342
|
|
|
344
|
-
ObjectField.prototype.
|
|
343
|
+
ObjectField.prototype.buildSelectionColumnLabels = function() {
|
|
345
344
|
var that = this;
|
|
346
345
|
var oConfig = that.getConfiguration();
|
|
347
346
|
var oResourceBundle = that.getResourceBundle();
|
|
348
|
-
return new Button({
|
|
347
|
+
return new Button(that.getParameterId() + "_control_table_column_selection_label_clearall_btn", {
|
|
349
348
|
icon: "sap-icon://clear-all",
|
|
350
349
|
type: "Transparent",
|
|
351
350
|
enabled: typeof oConfig.values === "undefined" ? false : "{/_hasSelected}",
|
|
@@ -356,13 +355,14 @@ sap.ui.define([
|
|
|
356
355
|
|
|
357
356
|
ObjectField.prototype.buildTableColumns = function() {
|
|
358
357
|
var that = this;
|
|
358
|
+
var sParameterId = that.getParameterId();
|
|
359
359
|
var oConfig = that.getConfiguration();
|
|
360
360
|
var aColumns = [];
|
|
361
361
|
var aKeys = Object.keys(oConfig.properties);
|
|
362
362
|
if (aKeys.length > 0) {
|
|
363
363
|
var oResourceBundle = that.getResourceBundle();
|
|
364
|
-
var oSelectionColumnLabels = that.
|
|
365
|
-
var oSelectionColumn = new Column({
|
|
364
|
+
var oSelectionColumnLabels = that.buildSelectionColumnLabels();
|
|
365
|
+
var oSelectionColumn = new Column(sParameterId + "_control_table_column_selection", {
|
|
366
366
|
width: "3.2rem",
|
|
367
367
|
hAlign: "Center",
|
|
368
368
|
// hide selection column for object list field with properties defined only
|
|
@@ -394,6 +394,7 @@ sap.ui.define([
|
|
|
394
394
|
});
|
|
395
395
|
aColumns.push(oSelectionColumn);
|
|
396
396
|
for (var n in oConfig.properties) {
|
|
397
|
+
var sPropertyId = sParameterId + "_control_table_column_property_" + n;
|
|
397
398
|
var oProperty = oConfig.properties[n];
|
|
398
399
|
var sDefaultLabel = oProperty.label || n;
|
|
399
400
|
var sDefaultValue = "{" + n + "}";
|
|
@@ -513,7 +514,7 @@ sap.ui.define([
|
|
|
513
514
|
break;
|
|
514
515
|
}
|
|
515
516
|
oColumnSettings.template = oCellTemplate;
|
|
516
|
-
var oColumn = new Column(oColumnSettings);
|
|
517
|
+
var oColumn = new Column(sPropertyId, oColumnSettings);
|
|
517
518
|
aColumns.push(oColumn);
|
|
518
519
|
}
|
|
519
520
|
}
|
|
@@ -533,6 +534,7 @@ sap.ui.define([
|
|
|
533
534
|
|
|
534
535
|
ObjectField.prototype.createTableToolbar = function(oConfig) {
|
|
535
536
|
var that = this;
|
|
537
|
+
var sParameterId = that.getParameterId();
|
|
536
538
|
var oResourceBundle = that.getResourceBundle();
|
|
537
539
|
// check if has filterProperty defined in each column of config.properties
|
|
538
540
|
var bHasFilterDefined = that.checkHasFilterDefined(oConfig);
|
|
@@ -543,39 +545,39 @@ sap.ui.define([
|
|
|
543
545
|
}
|
|
544
546
|
var oContents = [
|
|
545
547
|
new ToolbarSpacer(),
|
|
546
|
-
new Button({
|
|
548
|
+
new Button(sParameterId + "_control_table_add_btn", {
|
|
547
549
|
icon: "sap-icon://add",
|
|
548
550
|
visible: bAddButtonVisible,
|
|
549
551
|
tooltip: sAddButtonTooltip,
|
|
550
552
|
press: that.addNewObject.bind(that)
|
|
551
553
|
}),
|
|
552
|
-
new Button({
|
|
554
|
+
new Button(sParameterId + "_control_table_edit_btn", {
|
|
553
555
|
icon: "sap-icon://edit",
|
|
554
556
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TABLE_BUTTON_EDIT_TOOLTIP"),
|
|
555
557
|
enabled: "{= !!${/_hasTableSelected}}",
|
|
556
558
|
press: that.onEditOrViewDetail.bind(that)
|
|
557
559
|
}),
|
|
558
|
-
new Button({
|
|
560
|
+
new Button(sParameterId + "_control_table_delete_btn", {
|
|
559
561
|
icon: "sap-icon://delete",
|
|
560
562
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DELETE"),
|
|
561
563
|
enabled: "{= !!${/_canDelete}}",
|
|
562
564
|
press: that.onDelete.bind(that)
|
|
563
565
|
}),
|
|
564
|
-
new Button({
|
|
566
|
+
new Button(sParameterId + "_control_table_filter_btn", {
|
|
565
567
|
icon: "sap-icon://clear-filter",
|
|
566
568
|
visible: bHasFilterDefined,
|
|
567
569
|
enabled: "{= !!${/_hasFilter}}",
|
|
568
570
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TABLE_BUTTON_CLEAR_ALL_FILTERS_TOOLTIP"),
|
|
569
571
|
press: that.clearAllFilters.bind(that)
|
|
570
572
|
}),
|
|
571
|
-
new Button({
|
|
573
|
+
new Button(sParameterId + "_control_table_multiselect_all_btn", {
|
|
572
574
|
icon: "sap-icon://multiselect-all",
|
|
573
575
|
visible: false,
|
|
574
576
|
enabled: "{= !${/_hasTableAllSelected}}",
|
|
575
577
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TABLE_BUTTON_SELECT_ALL_SELETIONS_TOOLTIP"),
|
|
576
578
|
press: that.selectAllTableSelections.bind(that)
|
|
577
579
|
}),
|
|
578
|
-
new Button({
|
|
580
|
+
new Button(sParameterId + "_control_table_multiselect_none_btn", {
|
|
579
581
|
icon: "sap-icon://multiselect-none",
|
|
580
582
|
visible: false,
|
|
581
583
|
enabled: "{= !!${/_hasTableSelected}}",
|
|
@@ -585,13 +587,13 @@ sap.ui.define([
|
|
|
585
587
|
];
|
|
586
588
|
if (oConfig.type === "object[]") {
|
|
587
589
|
oContents = oContents.concat([
|
|
588
|
-
new Button({
|
|
590
|
+
new Button(sParameterId + "_control_table_navigationup_btn", {
|
|
589
591
|
icon: "sap-icon://navigation-up-arrow",
|
|
590
592
|
enabled: "{= !!${/_hasOnlyOneRowSelected}}",
|
|
591
593
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TABLE_BUTTON_MOVE_UP_TOOLTIP"),
|
|
592
594
|
press: that.moveRowUp.bind(that)
|
|
593
595
|
}),
|
|
594
|
-
new Button({
|
|
596
|
+
new Button(sParameterId + "_control_table_navigationdown_btn", {
|
|
595
597
|
icon: "sap-icon://navigation-down-arrow",
|
|
596
598
|
enabled: "{= !!${/_hasOnlyOneRowSelected}}",
|
|
597
599
|
tooltip: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TABLE_BUTTON_MOVE_DOWN_TOOLTIP"),
|
|
@@ -933,11 +935,12 @@ sap.ui.define([
|
|
|
933
935
|
ObjectField.prototype.createFormContents = function (fnChange, sPathPrefix, bIsInPopover, fnNavToTranslation) {
|
|
934
936
|
var that = this;
|
|
935
937
|
var oConfig = that.getConfiguration();
|
|
936
|
-
var aContentList = that.createPropertyContents(fnChange, sPathPrefix, fnNavToTranslation);
|
|
938
|
+
var aContentList = that.createPropertyContents(fnChange, sPathPrefix, bIsInPopover, fnNavToTranslation);
|
|
937
939
|
aContentList.push(new Label({
|
|
938
940
|
visible: false
|
|
939
941
|
}).addStyleClass("sapFormLabel"));
|
|
940
|
-
|
|
942
|
+
var sTextAreaId = bIsInPopover ? that.getParameterId() + "_control_objectdetails_popover_form_textarea" : that.getParameterId() + "_control_form_textarea";
|
|
943
|
+
aContentList.push(new TextArea(sTextAreaId, {
|
|
941
944
|
value: {
|
|
942
945
|
path: sPathPrefix,
|
|
943
946
|
formatter: function(vValue) {
|
|
@@ -966,8 +969,10 @@ sap.ui.define([
|
|
|
966
969
|
return aContentList;
|
|
967
970
|
};
|
|
968
971
|
|
|
969
|
-
ObjectField.prototype.createPropertyContents = function (fnChange, sPathPrefix, fnNavToTranslation) {
|
|
972
|
+
ObjectField.prototype.createPropertyContents = function (fnChange, sPathPrefix, bIsInPopover, fnNavToTranslation) {
|
|
970
973
|
var that = this;
|
|
974
|
+
var sParameterId = that.getParameterId();
|
|
975
|
+
var sPropertyIdPrefix = bIsInPopover ? sParameterId + "_control_objectdetails_popover_form_property_" : sParameterId + "_control_form_property_";
|
|
971
976
|
var oConfig = that.getConfiguration();
|
|
972
977
|
var aPropertyContentList = [];
|
|
973
978
|
if (!sPathPrefix) {
|
|
@@ -1014,7 +1019,9 @@ sap.ui.define([
|
|
|
1014
1019
|
var sLabelKey = sLabelText.substring(2, sLabelText.length - 2);
|
|
1015
1020
|
sLabelText = "{i18n>" + sLabelKey + "}";
|
|
1016
1021
|
}
|
|
1017
|
-
var
|
|
1022
|
+
var sPropertyLabelId = sPropertyIdPrefix + n + "_label";
|
|
1023
|
+
var sPropertyControlId = sPropertyIdPrefix + n + "_control";
|
|
1024
|
+
var oLable = new Label(sPropertyLabelId, {
|
|
1018
1025
|
text: sLabelText,
|
|
1019
1026
|
visible: "{= ${/editMode} === 'Properties'}",
|
|
1020
1027
|
required: oProperty.required || false
|
|
@@ -1047,7 +1054,7 @@ sap.ui.define([
|
|
|
1047
1054
|
oSettings.customTextOff = oProperty.cell.customTextOff;
|
|
1048
1055
|
}
|
|
1049
1056
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1050
|
-
oValueControl = new Switch(oSettings);
|
|
1057
|
+
oValueControl = new Switch(sPropertyControlId, oSettings);
|
|
1051
1058
|
} else {
|
|
1052
1059
|
oSettings = {
|
|
1053
1060
|
selected: "{" + sPathPrefix + n + "}",
|
|
@@ -1056,7 +1063,7 @@ sap.ui.define([
|
|
|
1056
1063
|
select: fnChange
|
|
1057
1064
|
};
|
|
1058
1065
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1059
|
-
oValueControl = new CheckBox(oSettings);
|
|
1066
|
+
oValueControl = new CheckBox(sPropertyControlId, oSettings);
|
|
1060
1067
|
}
|
|
1061
1068
|
break;
|
|
1062
1069
|
case "int":
|
|
@@ -1073,7 +1080,7 @@ sap.ui.define([
|
|
|
1073
1080
|
change: fnChange
|
|
1074
1081
|
};
|
|
1075
1082
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1076
|
-
oValueControl = new Input(oSettings);
|
|
1083
|
+
oValueControl = new Input(sPropertyControlId, oSettings);
|
|
1077
1084
|
break;
|
|
1078
1085
|
case "number":
|
|
1079
1086
|
oSettings = {
|
|
@@ -1088,7 +1095,7 @@ sap.ui.define([
|
|
|
1088
1095
|
change: fnChange
|
|
1089
1096
|
};
|
|
1090
1097
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1091
|
-
oValueControl = new Input(oSettings);
|
|
1098
|
+
oValueControl = new Input(sPropertyControlId, oSettings);
|
|
1092
1099
|
break;
|
|
1093
1100
|
case "object":
|
|
1094
1101
|
oSettings = {
|
|
@@ -1113,7 +1120,7 @@ sap.ui.define([
|
|
|
1113
1120
|
rows: 3
|
|
1114
1121
|
};
|
|
1115
1122
|
oSettings = merge(oSettings, oPropertySettings);
|
|
1116
|
-
oValueControl = new TextArea(oSettings);
|
|
1123
|
+
oValueControl = new TextArea(sPropertyControlId, oSettings);
|
|
1117
1124
|
break;
|
|
1118
1125
|
default:
|
|
1119
1126
|
var oTextSettingsModel = new JSONModel({
|
|
@@ -1171,7 +1178,7 @@ sap.ui.define([
|
|
|
1171
1178
|
};
|
|
1172
1179
|
}
|
|
1173
1180
|
}
|
|
1174
|
-
oValueControl = new Input(oSettings);
|
|
1181
|
+
oValueControl = new Input(sPropertyControlId, oSettings);
|
|
1175
1182
|
oValueControl.setModel(oTextSettingsModel,"settings");
|
|
1176
1183
|
}
|
|
1177
1184
|
aPropertyContentList.push(oValueControl);
|
|
@@ -1226,7 +1233,7 @@ sap.ui.define([
|
|
|
1226
1233
|
// get origin values in i18n files
|
|
1227
1234
|
ObjectField.prototype.getOriginTranslatedValues = function(sKey) {
|
|
1228
1235
|
var aOriginTranslatedValues = [];
|
|
1229
|
-
var aEditorResourceBundles =
|
|
1236
|
+
var aEditorResourceBundles = this._oEditorResourceBundles.getResourceBundles();
|
|
1230
1237
|
for (var p in aEditorResourceBundles) {
|
|
1231
1238
|
var oResourceBundleTemp = aEditorResourceBundles[p];
|
|
1232
1239
|
var sTranslatedValue = "";
|
|
@@ -1256,7 +1263,7 @@ sap.ui.define([
|
|
|
1256
1263
|
// build origin translation values if translation type is "property"
|
|
1257
1264
|
ObjectField.prototype.buildPropertyTranslationValues = function(sKey) {
|
|
1258
1265
|
var aOriginTranslatedValues = [];
|
|
1259
|
-
var aEditorResourceBundles =
|
|
1266
|
+
var aEditorResourceBundles = this._oEditorResourceBundles.getResourceBundles();
|
|
1260
1267
|
for (var p in aEditorResourceBundles) {
|
|
1261
1268
|
aOriginTranslatedValues.push({
|
|
1262
1269
|
"key": p,
|
|
@@ -1271,6 +1278,7 @@ sap.ui.define([
|
|
|
1271
1278
|
|
|
1272
1279
|
ObjectField.prototype.openObjectDetailsPopover = function (oItem, oControl, sMode) {
|
|
1273
1280
|
var that = this;
|
|
1281
|
+
var sParameterId = that.getParameterId();
|
|
1274
1282
|
var oResourceBundle = that.getResourceBundle();
|
|
1275
1283
|
var oItemCloned = deepClone(oItem, 500);
|
|
1276
1284
|
var oModel;
|
|
@@ -1279,7 +1287,7 @@ sap.ui.define([
|
|
|
1279
1287
|
sPlacement = this.getPopoverPlacement(oControl);
|
|
1280
1288
|
}
|
|
1281
1289
|
if (!that._oObjectDetailsPopover) {
|
|
1282
|
-
var oAddButton = new Button({
|
|
1290
|
+
var oAddButton = new Button(sParameterId + "_control_objectdetails_popover_add_btn", {
|
|
1283
1291
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_ADD"),
|
|
1284
1292
|
visible: sMode === "add",
|
|
1285
1293
|
enabled: {
|
|
@@ -1299,7 +1307,7 @@ sap.ui.define([
|
|
|
1299
1307
|
},
|
|
1300
1308
|
press: that.onAdd.bind(that)
|
|
1301
1309
|
});
|
|
1302
|
-
var oUpdateButton = new Button({
|
|
1310
|
+
var oUpdateButton = new Button(sParameterId + "_control_objectdetails_popover_update_btn", {
|
|
1303
1311
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_UPDATE"),
|
|
1304
1312
|
visible: sMode === "update",
|
|
1305
1313
|
enabled: {
|
|
@@ -1313,7 +1321,7 @@ sap.ui.define([
|
|
|
1313
1321
|
},
|
|
1314
1322
|
press: that.onUpdate.bind(that)
|
|
1315
1323
|
});
|
|
1316
|
-
var oCancelButton = new Button({
|
|
1324
|
+
var oCancelButton = new Button(sParameterId + "_control_objectdetails_popover_cancel_btn", {
|
|
1317
1325
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_CANCEL"),
|
|
1318
1326
|
visible: sMode !== "view",
|
|
1319
1327
|
press: function () {
|
|
@@ -1325,14 +1333,14 @@ sap.ui.define([
|
|
|
1325
1333
|
that._oObjectDetailsPopover.close();
|
|
1326
1334
|
}
|
|
1327
1335
|
});
|
|
1328
|
-
var oCloseButton = new Button({
|
|
1336
|
+
var oCloseButton = new Button(sParameterId + "_control_objectdetails_popover_close_btn", {
|
|
1329
1337
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_CLOSE"),
|
|
1330
1338
|
visible: sMode === "view",
|
|
1331
1339
|
press: function () {
|
|
1332
1340
|
that._oObjectDetailsPopover.close();
|
|
1333
1341
|
}
|
|
1334
1342
|
});
|
|
1335
|
-
var oEditModeButton = new Button({
|
|
1343
|
+
var oEditModeButton = new Button(sParameterId + "_control_objectdetails_popover_editmode_btn", {
|
|
1336
1344
|
icon: {
|
|
1337
1345
|
path: '/editMode',
|
|
1338
1346
|
formatter: function(oEditMode) {
|
|
@@ -1383,7 +1391,7 @@ sap.ui.define([
|
|
|
1383
1391
|
that._oNavContainer.back();
|
|
1384
1392
|
that._oObjectDetailsPage.focus();
|
|
1385
1393
|
};
|
|
1386
|
-
var oList = that.buildTranslationsList();
|
|
1394
|
+
var oList = that.buildTranslationsList(false);
|
|
1387
1395
|
var oTranslationsFooter = that.buildTranslationsFooter(oList, false);
|
|
1388
1396
|
that._oTranslationListPage = new Page({
|
|
1389
1397
|
title: oResourceBundle.getText("EDITOR_FIELD_OBJECT_TRANSLATION_LIST_TITLE", "{languages>/property}"),
|
|
@@ -1430,7 +1438,7 @@ sap.ui.define([
|
|
|
1430
1438
|
_oTranslationListPage.addContent();
|
|
1431
1439
|
*/
|
|
1432
1440
|
that._oNavContainer.addPage(that._oTranslationListPage);
|
|
1433
|
-
that._oObjectDetailsPopover = new Popover({
|
|
1441
|
+
that._oObjectDetailsPopover = new Popover(sParameterId + "_control_objectdetails_popover", {
|
|
1434
1442
|
placement: sPlacement,
|
|
1435
1443
|
showHeader: false,
|
|
1436
1444
|
contentWidth: "300px",
|
|
@@ -1564,8 +1572,11 @@ sap.ui.define([
|
|
|
1564
1572
|
return oTranslatonsModel;
|
|
1565
1573
|
};
|
|
1566
1574
|
|
|
1567
|
-
ObjectField.prototype.buildTranslationsList = function () {
|
|
1568
|
-
|
|
1575
|
+
ObjectField.prototype.buildTranslationsList = function (bIsInTranslationPopover) {
|
|
1576
|
+
var that = this;
|
|
1577
|
+
var sParameterId = that.getParameterId();
|
|
1578
|
+
var sIdPrefix = bIsInTranslationPopover ? sParameterId + "_control_translation_popover" : sParameterId + "_control_objectdetails_popover_translation_page";
|
|
1579
|
+
return new List(sIdPrefix + "_value_list", {
|
|
1569
1580
|
items: {
|
|
1570
1581
|
path: "languages>/translatedLanguages",
|
|
1571
1582
|
template: new CustomListItem({
|
|
@@ -1600,9 +1611,11 @@ sap.ui.define([
|
|
|
1600
1611
|
|
|
1601
1612
|
ObjectField.prototype.buildTranslationsFooter = function (oList, bIsInTranslationPopover) {
|
|
1602
1613
|
var that = this;
|
|
1614
|
+
var sParameterId = that.getParameterId();
|
|
1603
1615
|
var oResourceBundle = that.getResourceBundle();
|
|
1604
1616
|
var sCurrentLanugae = oResourceBundle.sLocale.replaceAll('_', '-');
|
|
1605
|
-
var
|
|
1617
|
+
var sIdPrefix = bIsInTranslationPopover ? sParameterId + "_control_translation_popover" : sParameterId + "_control_objectdetails_popover_translation_page";
|
|
1618
|
+
var oSaveTranslationButton = new Button(sIdPrefix + "_save_btn", {
|
|
1606
1619
|
type: "Emphasized",
|
|
1607
1620
|
text: oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_BUTTON_SAVE"),
|
|
1608
1621
|
enabled: "{languages>/isUpdated}",
|
|
@@ -1644,7 +1657,7 @@ sap.ui.define([
|
|
|
1644
1657
|
}
|
|
1645
1658
|
}
|
|
1646
1659
|
});
|
|
1647
|
-
var oResetTranslationButton = new Button({
|
|
1660
|
+
var oResetTranslationButton = new Button(sIdPrefix + "_reset_btn", {
|
|
1648
1661
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_RESET"),
|
|
1649
1662
|
enabled: "{languages>/isUpdated}",
|
|
1650
1663
|
press: function(oEvent) {
|
|
@@ -1660,7 +1673,7 @@ sap.ui.define([
|
|
|
1660
1673
|
oTranslationModel.checkUpdate(true);
|
|
1661
1674
|
}
|
|
1662
1675
|
});
|
|
1663
|
-
var oCancelButton = new Button({
|
|
1676
|
+
var oCancelButton = new Button(sIdPrefix + "_cancel_btn", {
|
|
1664
1677
|
text: oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_BUTTON_CANCEL"),
|
|
1665
1678
|
visible: bIsInTranslationPopover,
|
|
1666
1679
|
press: function () {
|
|
@@ -1702,9 +1715,9 @@ sap.ui.define([
|
|
|
1702
1715
|
var oTranslatonsModel;
|
|
1703
1716
|
var sPlacement = this.getPopoverPlacement(oControl._oValueHelpIcon);
|
|
1704
1717
|
if (!that._oTranslationPopover) {
|
|
1705
|
-
var oList = that.buildTranslationsList();
|
|
1718
|
+
var oList = that.buildTranslationsList(true);
|
|
1706
1719
|
var oTranslationsFooter = that.buildTranslationsFooter(oList, true);
|
|
1707
|
-
that._oTranslationPopover = new Popover({
|
|
1720
|
+
that._oTranslationPopover = new Popover(that.getParameterId() + "_control_translation_popover", {
|
|
1708
1721
|
placement: sPlacement,
|
|
1709
1722
|
contentWidth: "300px",
|
|
1710
1723
|
contentHeight: "345px",
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @alias sap.ui.integration.editor.fields.ObjectListField
|
|
30
30
|
* @author SAP SE
|
|
31
31
|
* @since 1.100.0
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.114.0
|
|
33
33
|
* @private
|
|
34
34
|
* @experimental since 1.100.0
|
|
35
35
|
* @ui5-restricted
|
|
@@ -119,11 +119,11 @@ sap.ui.define([
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
ObjectListField.prototype.
|
|
122
|
+
ObjectListField.prototype.buildSelectionColumnLabels = function() {
|
|
123
123
|
var that = this;
|
|
124
124
|
var oConfig = that.getConfiguration();
|
|
125
125
|
var oResourceBundle = that.getResourceBundle();
|
|
126
|
-
return new CheckBox({
|
|
126
|
+
return new CheckBox(that.getParameterId() + "_control_table_column_selection_label_all_checkbox",{
|
|
127
127
|
selected: "{/_allSelected}",
|
|
128
128
|
visible: typeof oConfig.values !== "undefined",
|
|
129
129
|
tooltip: {
|
|
@@ -23,7 +23,6 @@ sap.ui.define([
|
|
|
23
23
|
"sap/base/util/restricted/_debounce",
|
|
24
24
|
"sap/ui/core/Core",
|
|
25
25
|
"sap/ui/model/json/JSONModel",
|
|
26
|
-
"sap/ui/integration/editor/EditorResourceBundles",
|
|
27
26
|
"sap/base/util/deepClone",
|
|
28
27
|
"sap/ui/model/Sorter",
|
|
29
28
|
"sap/m/GroupHeaderListItem",
|
|
@@ -47,7 +46,6 @@ sap.ui.define([
|
|
|
47
46
|
_debounce,
|
|
48
47
|
Core,
|
|
49
48
|
JSONModel,
|
|
50
|
-
EditorResourceBundles,
|
|
51
49
|
deepClone,
|
|
52
50
|
Sorter,
|
|
53
51
|
GroupHeaderListItem,
|
|
@@ -67,7 +65,7 @@ sap.ui.define([
|
|
|
67
65
|
* @alias sap.ui.integration.editor.fields.StringField
|
|
68
66
|
* @author SAP SE
|
|
69
67
|
* @since 1.83.0
|
|
70
|
-
* @version 1.
|
|
68
|
+
* @version 1.114.0
|
|
71
69
|
* @private
|
|
72
70
|
* @experimental since 1.83.0
|
|
73
71
|
* @ui5-restricted
|
|
@@ -144,6 +142,7 @@ sap.ui.define([
|
|
|
144
142
|
},
|
|
145
143
|
editable: oConfig.editable,
|
|
146
144
|
visible: oConfig.visible,
|
|
145
|
+
maxLength: oConfig.maxLength,
|
|
147
146
|
placeholder: oConfig.placeholder
|
|
148
147
|
}
|
|
149
148
|
};
|
|
@@ -239,10 +238,11 @@ sap.ui.define([
|
|
|
239
238
|
},
|
|
240
239
|
editable: oConfig.editable,
|
|
241
240
|
visible: oConfig.visible,
|
|
241
|
+
maxLength: oConfig.maxLength,
|
|
242
242
|
placeholder: oConfig.placeholder,
|
|
243
243
|
valueHelpIconSrc: "sap-icon://translate",
|
|
244
244
|
showValueHelp: true,
|
|
245
|
-
valueHelpRequest: this.openTranslationListPopup,
|
|
245
|
+
valueHelpRequest: this.openTranslationListPopup.bind(this),
|
|
246
246
|
change: function(oEvent) {
|
|
247
247
|
//add current change into translation texts
|
|
248
248
|
var oControl = oEvent.getSource();
|
|
@@ -272,6 +272,7 @@ sap.ui.define([
|
|
|
272
272
|
},
|
|
273
273
|
editable: oConfig.editable,
|
|
274
274
|
visible: oConfig.visible,
|
|
275
|
+
maxLength: oConfig.maxLength,
|
|
275
276
|
placeholder: oConfig.placeholder
|
|
276
277
|
}
|
|
277
278
|
};
|
|
@@ -338,7 +339,7 @@ sap.ui.define([
|
|
|
338
339
|
//get origin values in i18n files
|
|
339
340
|
StringField.prototype.getOriginTranslatedValues = function(oConfig) {
|
|
340
341
|
var aOriginTranslatedValues = [];
|
|
341
|
-
var aEditorResourceBundles =
|
|
342
|
+
var aEditorResourceBundles = this._oEditorResourceBundles.getResourceBundles();
|
|
342
343
|
//get translation key of the value
|
|
343
344
|
var sKey;
|
|
344
345
|
if (oConfig._translatedDefaultPlaceholder && oConfig._translatedDefaultPlaceholder.startsWith("{i18n>") && oConfig._translatedDefaultPlaceholder.endsWith("}")) {
|
|
@@ -413,6 +414,7 @@ sap.ui.define([
|
|
|
413
414
|
var that = this;
|
|
414
415
|
var oControl = oEvent.getSource();
|
|
415
416
|
var oField = oControl.getParent();
|
|
417
|
+
var sParameterId = oField.getParameterId();
|
|
416
418
|
var oConfig = oField.getConfiguration();
|
|
417
419
|
|
|
418
420
|
if (!that._aOriginTranslatedValues) {
|
|
@@ -464,7 +466,7 @@ sap.ui.define([
|
|
|
464
466
|
}
|
|
465
467
|
var sPlacement = oField.getPopoverPlacement(oControl._oValueHelpIcon);
|
|
466
468
|
if (!that._oTranslationPopover) {
|
|
467
|
-
var oList = new List({
|
|
469
|
+
var oList = new List(sParameterId + "_translation_popover_value_list", {
|
|
468
470
|
//mode: "Delete",
|
|
469
471
|
items: {
|
|
470
472
|
path: "languages>/translatedLanguages",
|
|
@@ -497,7 +499,7 @@ sap.ui.define([
|
|
|
497
499
|
groupHeaderFactory: oField.getGroupHeader
|
|
498
500
|
}
|
|
499
501
|
});
|
|
500
|
-
that._oTranslationPopover = new Popover({
|
|
502
|
+
that._oTranslationPopover = new Popover(sParameterId + "_translation_popover", {
|
|
501
503
|
placement: sPlacement,
|
|
502
504
|
contentWidth: "300px",
|
|
503
505
|
contentHeight: "345px",
|
|
@@ -511,10 +513,10 @@ sap.ui.define([
|
|
|
511
513
|
}).addStyleClass("sapMHeaderTitle"),
|
|
512
514
|
new VBox({
|
|
513
515
|
items: [
|
|
514
|
-
new Text({
|
|
516
|
+
new Text(sParameterId + "_translation_popover_currentlanguage_desription_label", {
|
|
515
517
|
text: "{languages>/currentLanguage/desription}"
|
|
516
518
|
}),
|
|
517
|
-
new Input({
|
|
519
|
+
new Input(sParameterId + "_translation_popover_currentlanguage_value_input", {
|
|
518
520
|
value: "{languages>/currentLanguage/value}",
|
|
519
521
|
editable: false
|
|
520
522
|
})
|
|
@@ -529,7 +531,7 @@ sap.ui.define([
|
|
|
529
531
|
footer: new OverflowToolbar({
|
|
530
532
|
content: [
|
|
531
533
|
new ToolbarSpacer(),
|
|
532
|
-
new Button({
|
|
534
|
+
new Button(sParameterId + "_translation_popover_save_btn", {
|
|
533
535
|
type: "Emphasized",
|
|
534
536
|
text: oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_BUTTON_SAVE"),
|
|
535
537
|
enabled: "{languages>/isUpdated}",
|
|
@@ -553,7 +555,7 @@ sap.ui.define([
|
|
|
553
555
|
that._oTranslationPopover.close();
|
|
554
556
|
}
|
|
555
557
|
}),
|
|
556
|
-
new Button({
|
|
558
|
+
new Button(sParameterId + "_translation_popover_cancel_btn", {
|
|
557
559
|
text: oResourceBundle.getText("EDITOR_FIELD_TRANSLATION_LIST_POPOVER_BUTTON_CANCEL"),
|
|
558
560
|
press: function () {
|
|
559
561
|
that._oTranslationPopover.close();
|
|
@@ -24,13 +24,13 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.integration
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.114.0
|
|
28
28
|
* @since 1.62
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
32
32
|
name: "sap.ui.integration",
|
|
33
|
-
version: "1.
|
|
33
|
+
version: "1.114.0",
|
|
34
34
|
dependencies: [
|
|
35
35
|
"sap.ui.core",
|
|
36
36
|
"sap.f",
|
|
@@ -42,14 +42,16 @@ sap.ui.define([
|
|
|
42
42
|
"sap.ui.integration.CardActionType",
|
|
43
43
|
"sap.ui.integration.CardDataMode",
|
|
44
44
|
"sap.ui.integration.CardMenuAction",
|
|
45
|
-
"sap.ui.integration.CardDesign"
|
|
45
|
+
"sap.ui.integration.CardDesign",
|
|
46
|
+
"sap.ui.integration.CardBlockingMessageType"
|
|
46
47
|
],
|
|
47
48
|
controls: [
|
|
48
49
|
"sap.ui.integration.widgets.Card",
|
|
49
50
|
"sap.ui.integration.cards.filters.FilterBar",
|
|
50
51
|
"sap.ui.integration.cards.Header",
|
|
51
52
|
"sap.ui.integration.cards.NumericHeader",
|
|
52
|
-
"sap.ui.integration.controls.ListContentItem"
|
|
53
|
+
"sap.ui.integration.controls.ListContentItem",
|
|
54
|
+
"sap.ui.integration.controls.BlockingMessage"
|
|
53
55
|
],
|
|
54
56
|
elements: [
|
|
55
57
|
"sap.ui.integration.ActionDefinition",
|
|
@@ -180,6 +182,33 @@ sap.ui.define([
|
|
|
180
182
|
Header: "Header"
|
|
181
183
|
};
|
|
182
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Card blocking message types.
|
|
187
|
+
*
|
|
188
|
+
* @enum {string}
|
|
189
|
+
* @public
|
|
190
|
+
* @experimental since 1.114
|
|
191
|
+
*/
|
|
192
|
+
thisLib.CardBlockingMessageType = {
|
|
193
|
+
/**
|
|
194
|
+
* An error ocurred in the card.
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
Error: "Error",
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* There is no data to be displayed.
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
NoData: "NoData",
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Information message.
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
Information: "Information"
|
|
210
|
+
};
|
|
211
|
+
|
|
183
212
|
/**
|
|
184
213
|
* Defines the areas in a card.
|
|
185
214
|
* @enum {string}
|