@openui5/sap.ui.integration 1.106.0 → 1.107.1
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/package.json +3 -3
- package/src/sap/ui/integration/.library +1 -6
- package/src/sap/ui/integration/ActionDefinition.js +1 -2
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +12 -2
- package/src/sap/ui/integration/Host.js +15 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +5 -3
- 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 +24 -7
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +6 -4
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +34 -2
- package/src/sap/ui/integration/cards/Header.js +17 -22
- package/src/sap/ui/integration/cards/ListContent.js +39 -3
- package/src/sap/ui/integration/cards/NumericHeader.js +3 -19
- package/src/sap/ui/integration/cards/ObjectContent.js +82 -27
- package/src/sap/ui/integration/cards/TableContent.js +4 -3
- 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 +31 -23
- 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 +3 -2
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +53 -7
- package/src/sap/ui/integration/controls/ActionsToolbar.js +12 -20
- package/src/sap/ui/integration/controls/LinkWithIcon.js +4 -2
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +7 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/Paginator.js +66 -16
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +4 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +11 -8
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n.properties +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ar.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_bg.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ca.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cs.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_cy.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_da.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_de.properties +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_el.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_GB.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_sappsd.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saprigi.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saptrc.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_es_MX.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_et.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fi.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_fr_CA.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hi.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hr.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_hu.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_id.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_it.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_iw.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ja.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_kk.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ko.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lt.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_lv.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ms.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_nl.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_no.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pl.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_pt_PT.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ro.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_ru.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sh.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sk.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sl.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_sv.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_th.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_tr.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_uk.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_vi.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_CN.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_zh_TW.properties +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +15 -12
- 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 +22 -22
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditorDialog.fragment.xml +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.fragment.xml +14 -0
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +126 -0
- 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/BASEditor.js +54 -5
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +1 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +1 -2
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +36 -34
- package/src/sap/ui/integration/editor/Editor.js +604 -912
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- package/src/sap/ui/integration/editor/Extension.js +1 -2
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +7 -5
- package/src/sap/ui/integration/editor/css/Editor.css +4 -0
- package/src/sap/ui/integration/editor/fields/BaseField.js +48 -43
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/GroupField.js +353 -0
- 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 +7 -3
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +3 -2
- 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 +8 -6
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +6 -4
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +5 -3
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +16 -9
- package/src/sap/ui/integration/library.js +2 -8
- package/src/sap/ui/integration/messagebundle_ar.properties +6 -0
- package/src/sap/ui/integration/messagebundle_bg.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ca.properties +6 -0
- package/src/sap/ui/integration/messagebundle_cs.properties +6 -0
- package/src/sap/ui/integration/messagebundle_cy.properties +6 -0
- package/src/sap/ui/integration/messagebundle_da.properties +6 -0
- package/src/sap/ui/integration/messagebundle_de.properties +6 -0
- package/src/sap/ui/integration/messagebundle_el.properties +7 -1
- package/src/sap/ui/integration/messagebundle_en.properties +6 -0
- package/src/sap/ui/integration/messagebundle_en_GB.properties +6 -0
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +6 -0
- package/src/sap/ui/integration/messagebundle_es.properties +6 -0
- package/src/sap/ui/integration/messagebundle_es_MX.properties +6 -0
- package/src/sap/ui/integration/messagebundle_et.properties +6 -0
- package/src/sap/ui/integration/messagebundle_fi.properties +6 -0
- package/src/sap/ui/integration/messagebundle_fr.properties +6 -0
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +6 -0
- package/src/sap/ui/integration/messagebundle_hi.properties +6 -0
- package/src/sap/ui/integration/messagebundle_hr.properties +6 -0
- package/src/sap/ui/integration/messagebundle_hu.properties +6 -0
- package/src/sap/ui/integration/messagebundle_id.properties +7 -1
- package/src/sap/ui/integration/messagebundle_it.properties +6 -0
- package/src/sap/ui/integration/messagebundle_iw.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ja.properties +6 -0
- package/src/sap/ui/integration/messagebundle_kk.properties +7 -1
- package/src/sap/ui/integration/messagebundle_ko.properties +6 -0
- package/src/sap/ui/integration/messagebundle_lt.properties +6 -0
- package/src/sap/ui/integration/messagebundle_lv.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ms.properties +6 -0
- package/src/sap/ui/integration/messagebundle_nl.properties +6 -0
- package/src/sap/ui/integration/messagebundle_no.properties +6 -0
- package/src/sap/ui/integration/messagebundle_pl.properties +6 -0
- package/src/sap/ui/integration/messagebundle_pt.properties +6 -0
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ro.properties +6 -0
- package/src/sap/ui/integration/messagebundle_ru.properties +6 -0
- package/src/sap/ui/integration/messagebundle_sh.properties +6 -0
- package/src/sap/ui/integration/messagebundle_sk.properties +6 -0
- package/src/sap/ui/integration/messagebundle_sl.properties +6 -0
- package/src/sap/ui/integration/messagebundle_sv.properties +6 -0
- package/src/sap/ui/integration/messagebundle_th.properties +6 -0
- package/src/sap/ui/integration/messagebundle_tr.properties +6 -0
- package/src/sap/ui/integration/messagebundle_uk.properties +6 -0
- package/src/sap/ui/integration/messagebundle_vi.properties +6 -0
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +6 -0
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +6 -0
- 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 +67 -20
- package/src/sap/ui/integration/themes/base/ActionsStrip.less +5 -0
- package/src/sap/ui/integration/themes/base/Card.less +1 -12
- package/src/sap/ui/integration/themes/base/ListContentItem.less +9 -15
- package/src/sap/ui/integration/themes/base/Microchart.less +7 -0
- package/src/sap/ui/integration/themes/base/ObjectContent.less +11 -4
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +10 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +2 -2
- 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/Forms.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +10 -8
- 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 +1 -0
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +1 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +155 -26
|
@@ -22,13 +22,12 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.integration.Extension
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.107.1
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
29
29
|
* @since 1.94
|
|
30
30
|
* @alias sap.ui.integration.editor.Extension
|
|
31
|
-
* @ui5-metamodel This control/element will also be described in the UI5 (legacy) designtime metamodel
|
|
32
31
|
*/
|
|
33
32
|
var Extension = BaseExtension.extend("sap.ui.integration.editor.Extension");
|
|
34
33
|
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
* @alias sap.ui.integration.editor.Settings
|
|
71
71
|
* @author SAP SE
|
|
72
72
|
* @since 1.83.0
|
|
73
|
-
* @version 1.
|
|
73
|
+
* @version 1.107.1
|
|
74
74
|
* @private
|
|
75
75
|
* @experimental since 1.83.0
|
|
76
76
|
* @ui5-restricted
|
|
@@ -135,11 +135,13 @@ sap.ui.define([
|
|
|
135
135
|
var iOffsetHeight = (!oPreview || oPreview.getDomRef() === null || oPreview.getDomRef().offsetHeight === 0) ? 350 : oPreview.getDomRef().offsetHeight;
|
|
136
136
|
oPopover.setContentWidth(iOffsetWidth + "px");
|
|
137
137
|
oPopover.setContentHeight((iOffsetHeight - 50) + "px");
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
var sPlacement = "Right";
|
|
139
|
+
var iX = oField.getDomRef().getBoundingClientRect().x;
|
|
140
|
+
var iWidth = document.body.offsetWidth;
|
|
141
|
+
if ( 2 * iX > iWidth) {
|
|
142
|
+
sPlacement = "Left";
|
|
142
143
|
}
|
|
144
|
+
oPopover.setPlacement(sPlacement);
|
|
143
145
|
oDynamicValueField.setValue(oField._label);
|
|
144
146
|
oPopover.openBy(oField);
|
|
145
147
|
} else {
|
|
@@ -188,6 +188,10 @@
|
|
|
188
188
|
padding-right: 10px;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
.sapUiIntegrationEditor .sapUiIntegrationEditorItem .sapUiIntegrationEditorItemLabelWithRequired .sapMLabelTextWrapper {
|
|
192
|
+
max-width: 100% !important;
|
|
193
|
+
}
|
|
194
|
+
|
|
191
195
|
.sapUiIntegrationEditor .sapUiIntegrationEditorDescriptionIcon {
|
|
192
196
|
vertical-align: top;
|
|
193
197
|
padding-top: 9px;
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @alias sap.ui.integration.editor.fields.BaseField
|
|
39
39
|
* @author SAP SE
|
|
40
40
|
* @since 1.83.0
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.107.1
|
|
42
42
|
* @private
|
|
43
43
|
* @ui5-restricted
|
|
44
44
|
* @experimental since 1.83.0
|
|
@@ -98,54 +98,53 @@ sap.ui.define([
|
|
|
98
98
|
validateFailed: {}
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
|
-
renderer:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
oRm.openEnd();
|
|
114
|
-
if (oControl.getVisible()) {
|
|
115
|
-
oRm.openStart("span");
|
|
116
|
-
oRm.openEnd();
|
|
117
|
-
oRm.openStart("span");
|
|
118
|
-
oRm.addClass("sapUiIntegrationEditorEditor");
|
|
119
|
-
if (oControl._hasDynamicValue()) {
|
|
120
|
-
oRm.addStyle("width", "1px");
|
|
121
|
-
oRm.addStyle("opacity", "0");
|
|
122
|
-
} else {
|
|
123
|
-
oRm.addStyle("width", "100%");
|
|
101
|
+
renderer: {
|
|
102
|
+
apiVersion: 2,
|
|
103
|
+
render: function (oRm, oControl) {
|
|
104
|
+
var oField = oControl.getAggregation("_field"),
|
|
105
|
+
oDynamicField = oControl._getDynamicField();
|
|
106
|
+
oRm.openStart("div", oControl);
|
|
107
|
+
oRm.class("sapUiIntegrationEditorItemField");
|
|
108
|
+
if (oField && oField.getWidth) {
|
|
109
|
+
//oRm.style("width", oField.getWidth());
|
|
110
|
+
}
|
|
111
|
+
if (!oControl.getVisible()) {
|
|
112
|
+
oRm.style("display", "none");
|
|
124
113
|
}
|
|
125
114
|
oRm.openEnd();
|
|
126
|
-
|
|
127
|
-
oRm.close("span");
|
|
128
|
-
oRm.close("span");
|
|
129
|
-
if (oControl._hasDynamicValue()) {
|
|
130
|
-
oRm.openStart("span");
|
|
131
|
-
oRm.addClass("sapUiIntegrationEditorSettings");
|
|
132
|
-
oRm.openEnd();
|
|
115
|
+
if (oControl.getVisible()) {
|
|
133
116
|
oRm.openStart("span");
|
|
134
|
-
oRm.
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
oRm.class("sapUiIntegrationEditorEditor");
|
|
118
|
+
if (oControl._hasDynamicValue()) {
|
|
119
|
+
oRm.style("width", "1px");
|
|
120
|
+
oRm.style("opacity", "0");
|
|
121
|
+
} else {
|
|
122
|
+
oRm.style("width", "100%");
|
|
123
|
+
}
|
|
137
124
|
oRm.openEnd();
|
|
138
|
-
oRm.renderControl(
|
|
125
|
+
oRm.renderControl(oField);
|
|
139
126
|
oRm.close("span");
|
|
127
|
+
if (oControl._hasDynamicValue()) {
|
|
128
|
+
oRm.openStart("span");
|
|
129
|
+
oRm.class("sapUiIntegrationEditorSettings");
|
|
130
|
+
oRm.openEnd();
|
|
131
|
+
oRm.openStart("span");
|
|
132
|
+
oRm.class("sapUiIntegrationEditorSettingsField");
|
|
133
|
+
oRm.style("width", "100%");
|
|
134
|
+
oRm.style("opacity", "1");
|
|
135
|
+
oRm.openEnd();
|
|
136
|
+
oRm.renderControl(oDynamicField);
|
|
137
|
+
oRm.close("span");
|
|
138
|
+
oRm.close("span");
|
|
139
|
+
}
|
|
140
|
+
oRm.openStart("div", oControl.getId() + "-ms");
|
|
141
|
+
oRm.style("height", "0");
|
|
142
|
+
oRm.openEnd();
|
|
143
|
+
oRm.close("div");
|
|
140
144
|
}
|
|
141
|
-
oRm.openStart("div");
|
|
142
|
-
oRm.writeAttribute("id", oControl.getId() + "-ms");
|
|
143
|
-
oRm.addStyle("height", "0");
|
|
144
|
-
oRm.openEnd();
|
|
145
145
|
oRm.close("div");
|
|
146
|
-
}
|
|
147
|
-
oRm.close("div");
|
|
148
146
|
|
|
147
|
+
}
|
|
149
148
|
}
|
|
150
149
|
});
|
|
151
150
|
|
|
@@ -831,8 +830,14 @@ sap.ui.define([
|
|
|
831
830
|
return oItem;
|
|
832
831
|
};
|
|
833
832
|
|
|
834
|
-
BaseField.prototype.
|
|
835
|
-
|
|
833
|
+
BaseField.prototype.getPopoverPlacement = function (oControl) {
|
|
834
|
+
var sPlacement = "Right";
|
|
835
|
+
var iX = oControl.getDomRef().getBoundingClientRect().x;
|
|
836
|
+
var iWidth = document.body.offsetWidth;
|
|
837
|
+
if ( 2 * iX > iWidth) {
|
|
838
|
+
sPlacement = "Left";
|
|
839
|
+
}
|
|
840
|
+
return sPlacement;
|
|
836
841
|
};
|
|
837
842
|
|
|
838
843
|
return BaseField;
|
|
@@ -0,0 +1,353 @@
|
|
|
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/integration/editor/fields/BaseField",
|
|
8
|
+
"sap/m/Panel",
|
|
9
|
+
"sap/m/IconTabBar",
|
|
10
|
+
"sap/m/IconTabFilter",
|
|
11
|
+
"sap/m/MessageStrip",
|
|
12
|
+
"sap/ui/core/Core"
|
|
13
|
+
], function (
|
|
14
|
+
BaseField,
|
|
15
|
+
Panel,
|
|
16
|
+
IconTabBar,
|
|
17
|
+
IconTabFilter,
|
|
18
|
+
MessageStrip,
|
|
19
|
+
Core
|
|
20
|
+
) {
|
|
21
|
+
"use strict";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @class Group Field which will contains multi parameters via Panel/Tab
|
|
25
|
+
* @extends sap.ui.integration.editor.fields.BaseField
|
|
26
|
+
* @alias sap.ui.integration.editor.fields.GroupField
|
|
27
|
+
* @author SAP SE
|
|
28
|
+
* @since 1.106.0
|
|
29
|
+
* @version 1.107.1
|
|
30
|
+
* @private
|
|
31
|
+
* @experimental since 1.106.0
|
|
32
|
+
* @ui5-restricted
|
|
33
|
+
*/
|
|
34
|
+
var GroupField = BaseField.extend("sap.ui.integration.editor.fields.GroupField", {
|
|
35
|
+
metadata: {
|
|
36
|
+
library: "sap.ui.integration"
|
|
37
|
+
},
|
|
38
|
+
renderer: BaseField.getMetadata().getRenderer()
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
GroupField.prototype.initVisualization = function (oConfig) {
|
|
42
|
+
var oVisualization = oConfig.visualization;
|
|
43
|
+
if (!oVisualization || oVisualization.type === "Panel") {
|
|
44
|
+
oVisualization = {
|
|
45
|
+
type: Panel,
|
|
46
|
+
settings: {
|
|
47
|
+
headerText: oConfig.label,
|
|
48
|
+
visible: oConfig.visible,
|
|
49
|
+
expandable: oConfig.expandable !== false,
|
|
50
|
+
expanded: "{currentSettings>expanded}",
|
|
51
|
+
width: "auto",
|
|
52
|
+
backgroundDesign: "Transparent",
|
|
53
|
+
objectBindings: {
|
|
54
|
+
currentSettings: {
|
|
55
|
+
path: "currentSettings>" + (oConfig._settingspath || "/form/items")
|
|
56
|
+
},
|
|
57
|
+
items: {
|
|
58
|
+
path: "items>/form/items"
|
|
59
|
+
},
|
|
60
|
+
context: {
|
|
61
|
+
path: "context>/"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
expand: function (oEvent) {
|
|
65
|
+
var bExpand = oEvent.getParameter("expand");
|
|
66
|
+
if (bExpand) {
|
|
67
|
+
var oControl = oEvent.getSource();
|
|
68
|
+
// handle error message strip for field
|
|
69
|
+
var oConfig = this.getConfiguration();
|
|
70
|
+
if (!oControl._level) {
|
|
71
|
+
oControl._level = oConfig.level || 0;
|
|
72
|
+
}
|
|
73
|
+
var oMessageStrip = oControl._level === "1" && this.getParent().getParent() ? this.getParent().getParent().getAggregation("_messageStrip") : this.getParent().getAggregation("_messageStrip");
|
|
74
|
+
if (oMessageStrip === null) {
|
|
75
|
+
oMessageStrip = Core.byId(this.getAssociation("_messageStrip"));
|
|
76
|
+
}
|
|
77
|
+
oControl.addContent(oMessageStrip);
|
|
78
|
+
oControl.focus();
|
|
79
|
+
}
|
|
80
|
+
}.bind(this)
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
} else if (oVisualization.type === "Tab") {
|
|
84
|
+
oVisualization = {
|
|
85
|
+
type: IconTabBar,
|
|
86
|
+
settings: {
|
|
87
|
+
expandable: oConfig.expandable !== false,
|
|
88
|
+
visible: oConfig.visible,
|
|
89
|
+
expanded: "{currentSettings>expanded}",
|
|
90
|
+
objectBindings: {
|
|
91
|
+
currentSettings: {
|
|
92
|
+
path: "currentSettings>" + (oConfig._settingspath || "/form/items")
|
|
93
|
+
},
|
|
94
|
+
items: {
|
|
95
|
+
path: "items>/form/items"
|
|
96
|
+
},
|
|
97
|
+
context: {
|
|
98
|
+
path: "context>/"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
select: this.checkErrorsInIconTabBar.bind(this)
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
this._visualization = oVisualization;
|
|
106
|
+
this.attachAfterInit(this._afterInit);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
GroupField.prototype._afterInit = function () {
|
|
110
|
+
var oConfig = this.getConfiguration();
|
|
111
|
+
var oControl = this.getAggregation("_field");
|
|
112
|
+
if (oControl instanceof Panel) {
|
|
113
|
+
if (this.getMode() !== "translation") {
|
|
114
|
+
var oResourceBundle = this.getResourceBundle();
|
|
115
|
+
var oMessageStripOfPanel = new MessageStrip({
|
|
116
|
+
id: oControl.getId() + "_strip",
|
|
117
|
+
showIcon: false,
|
|
118
|
+
visible: "{= !${currentSettings>expanded} && ${currentSettings>hasError} === true}",
|
|
119
|
+
text: {
|
|
120
|
+
path: 'currentSettings>errorType',
|
|
121
|
+
formatter: function (errorType) {
|
|
122
|
+
var sPanelTitle = "";
|
|
123
|
+
switch (errorType) {
|
|
124
|
+
case "Error":
|
|
125
|
+
sPanelTitle = oResourceBundle.getText("EDITOR_GROUP_ERRORS");
|
|
126
|
+
break;
|
|
127
|
+
case "Warning":
|
|
128
|
+
sPanelTitle = oResourceBundle.getText("EDITOR_GROUP_WARNINGS");
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
}
|
|
132
|
+
return sPanelTitle;
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
type: "{currentSettings>errorType}",
|
|
136
|
+
objectBindings: {
|
|
137
|
+
currentSettings: {
|
|
138
|
+
path: "currentSettings>" + (oConfig._settingspath || "/form/items")
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
if (oConfig.level !== "1") {
|
|
143
|
+
oMessageStripOfPanel.setModel(this._settingsModel, "currentSettings");
|
|
144
|
+
}
|
|
145
|
+
oMessageStripOfPanel.addStyleClass("sapUiIntegrationEditorPanelMessageStrip");
|
|
146
|
+
oControl._messageStrip = oMessageStripOfPanel;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
oControl._cols = oConfig.cols || 2; //by default 2 cols
|
|
150
|
+
oControl._level = oConfig.level || 0; //by default 0 level
|
|
151
|
+
|
|
152
|
+
//add "aria-label" for each panel to make the landmark uniquely
|
|
153
|
+
var oDelegate = {
|
|
154
|
+
onAfterRendering: function(oEvent) {
|
|
155
|
+
var oControl = oEvent.srcControl;
|
|
156
|
+
var ePanel = document.getElementById(oControl.getId());
|
|
157
|
+
ePanel.setAttribute("aria-label", oConfig.label);
|
|
158
|
+
// handle error message for panel
|
|
159
|
+
if (oControl._subItems && oControl._subItems.length > 0) {
|
|
160
|
+
this.checkErrorsInSubItems(this._settingsModel, oControl);
|
|
161
|
+
}
|
|
162
|
+
var oMessageStrip = oControl._messageStrip;
|
|
163
|
+
if (oControl._level !== "1" && oMessageStrip) {
|
|
164
|
+
oMessageStrip.rerender();
|
|
165
|
+
}
|
|
166
|
+
if (oControl.getExpanded()) {
|
|
167
|
+
// handle error message for sub panel/tab
|
|
168
|
+
var oItems = oControl.getContent();
|
|
169
|
+
oItems.forEach(function(oItem) {
|
|
170
|
+
if (oItem.isA("sap.ui.integration.editor.fields.GroupField")) {
|
|
171
|
+
var oItemControl = oItem.getAggregation("_field");
|
|
172
|
+
if (oItemControl instanceof Panel && oItemControl._subItems && oItemControl._subItems.length > 0) {
|
|
173
|
+
oItem.checkErrorsInSubItems(oItem._settingsModel, oItemControl);
|
|
174
|
+
} else if (oItemControl instanceof IconTabBar && oItemControl.getItems().length > 0) {
|
|
175
|
+
oItem.checkErrorsInIconTabBar();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}.bind(this)
|
|
181
|
+
};
|
|
182
|
+
oControl.addEventDelegate(oDelegate);
|
|
183
|
+
} else if (oControl instanceof IconTabBar) {
|
|
184
|
+
var oIconTabFilter = new IconTabFilter({
|
|
185
|
+
text: oConfig.label,
|
|
186
|
+
visible: oConfig.visible,
|
|
187
|
+
objectBindings: {
|
|
188
|
+
currentSettings: {
|
|
189
|
+
path: "currentSettings>" + (oConfig._settingspath || "/form/items")
|
|
190
|
+
},
|
|
191
|
+
items: {
|
|
192
|
+
path: "items>/form/items"
|
|
193
|
+
},
|
|
194
|
+
context: {
|
|
195
|
+
path: "context>/"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
oControl.addItem(oIconTabFilter);
|
|
200
|
+
oControl.setBackgroundDesign("Transparent");
|
|
201
|
+
oControl.setHeaderBackgroundDesign("Transparent");
|
|
202
|
+
// oControl.setHeaderBackgroundDesign("Solid");
|
|
203
|
+
oControl.addStyleClass("sapUiIntegrationEditorSubGroup");
|
|
204
|
+
// oControl.addStyleClass("sapUiIntegrationEditorSubGroup").addStyleClass("cardEditorIconTabBarBG");
|
|
205
|
+
// handle messageStrip for tab filter
|
|
206
|
+
if (this.getMode() !== "translation") {
|
|
207
|
+
var oMessageStripOfTab = new MessageStrip({
|
|
208
|
+
id: oControl.getId() + "_strip",
|
|
209
|
+
showIcon: false,
|
|
210
|
+
visible: false,
|
|
211
|
+
objectBindings: {
|
|
212
|
+
currentSettings: {
|
|
213
|
+
path: "currentSettings>" + (oConfig._settingspath || "/form/items")
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
oMessageStripOfTab.addStyleClass("sapUiIntegrationEditorTabMessageStrip");
|
|
218
|
+
oControl._messageStrip = oMessageStripOfTab;
|
|
219
|
+
}
|
|
220
|
+
// oControl._cols = oConfig.cols || 2; //by default 2 cols
|
|
221
|
+
oControl._level = oConfig.level || 0; //by default 0 level
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
GroupField.prototype.checkErrorsInIconTabBar = function (oEvent) {
|
|
226
|
+
var oControl = this.getAggregation("_field"),
|
|
227
|
+
oSelectITFKey = oControl.getSelectedKey(),
|
|
228
|
+
aItems = oControl.getItems(),
|
|
229
|
+
vExpanded = oControl.getExpanded(),
|
|
230
|
+
vShowErrors = false;
|
|
231
|
+
for (var n = 0; n < aItems.length; n++) {
|
|
232
|
+
if (!vExpanded) {
|
|
233
|
+
vShowErrors = true;
|
|
234
|
+
} else if (aItems[n].getId() !== oSelectITFKey) {
|
|
235
|
+
vShowErrors = true;
|
|
236
|
+
} else if (aItems[n].getId() === oSelectITFKey) {
|
|
237
|
+
vShowErrors = false;
|
|
238
|
+
}
|
|
239
|
+
if (vShowErrors) {
|
|
240
|
+
var bHasError = false,
|
|
241
|
+
sErrorType = "None";
|
|
242
|
+
if (aItems[n]._subItems && aItems[n]._subItems.length > 0) {
|
|
243
|
+
var oCurrentSettingsModel = aItems[n].getModel("currentSettings");
|
|
244
|
+
var oResult = this.checkErrorsInSubItems(oCurrentSettingsModel, aItems[n]);
|
|
245
|
+
bHasError = oResult.hasError;
|
|
246
|
+
sErrorType = oResult.errorType;
|
|
247
|
+
}
|
|
248
|
+
if (bHasError) {
|
|
249
|
+
var vITF = new IconTabFilter(),
|
|
250
|
+
aItem = aItems[n];
|
|
251
|
+
if (aItem.getItems().length > 0) {
|
|
252
|
+
aItem.removeAllItems();
|
|
253
|
+
}
|
|
254
|
+
aItem.addItem(vITF);
|
|
255
|
+
this._handleITBValidation(aItem, sErrorType);
|
|
256
|
+
if (aItem._oExpandButton === undefined) {
|
|
257
|
+
this._delayHandleITBValidation(aItem, sErrorType);
|
|
258
|
+
} else {
|
|
259
|
+
this._handleITBValidation(aItem, sErrorType);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
} else if (aItems[n].getItems().length > 0) {
|
|
263
|
+
aItems[n].removeItem(aItems[n].getItems()[0]);
|
|
264
|
+
if (aItems[n]._oExpandButton) {
|
|
265
|
+
aItems[n]._oExpandButton.visible = false;
|
|
266
|
+
}
|
|
267
|
+
//handle error message for fields
|
|
268
|
+
var tMessageStrip = this.getParent().getParent().getAggregation("_messageStrip");
|
|
269
|
+
if (tMessageStrip === null) {
|
|
270
|
+
tMessageStrip = Core.byId(this.getAssociation("_messageStrip"));
|
|
271
|
+
}
|
|
272
|
+
aItems[n].addContent(tMessageStrip);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
GroupField.prototype.checkErrorsInSubItems = function (oModel, oControl) {
|
|
278
|
+
var bHasError = false;
|
|
279
|
+
var sErrorType = "None";
|
|
280
|
+
for (var i = 0; i < oControl._subItems.length; i++) {
|
|
281
|
+
var sSettingsPath = oControl._subItems[i].settingspath;
|
|
282
|
+
var oItem = Core.byId(oControl._subItems[i].itemId);
|
|
283
|
+
if (oModel.getProperty(sSettingsPath + "/hasError") === true && oItem.getVisible()) {
|
|
284
|
+
bHasError = true;
|
|
285
|
+
var sType = oModel.getProperty(sSettingsPath + "/errorType");
|
|
286
|
+
if (sType === "Error") {
|
|
287
|
+
sErrorType = "Error";
|
|
288
|
+
break;
|
|
289
|
+
} else if (sType === "Warning" && sErrorType !== "Error") {
|
|
290
|
+
sErrorType = "Warning";
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
oModel.setProperty("hasError", bHasError, this.getBindingContext("currentSettings"));
|
|
295
|
+
oModel.setProperty("errorType", sErrorType, this.getBindingContext("currentSettings"));
|
|
296
|
+
return {
|
|
297
|
+
hasError: bHasError,
|
|
298
|
+
errorType: sErrorType
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
GroupField.prototype._handleITBValidation = function (sItem, sErrorType) {
|
|
303
|
+
var oResourceBundle = this.getResourceBundle();
|
|
304
|
+
if (sItem.getItems().length > 0 && sItem._oExpandButton) {
|
|
305
|
+
var expandBTN = sItem._oExpandButton;
|
|
306
|
+
var errorMSG = null;
|
|
307
|
+
if (sErrorType === "Error") {
|
|
308
|
+
errorMSG = oResourceBundle.getText("EDITOR_GROUP_ERRORS");
|
|
309
|
+
expandBTN.setIcon("sap-icon://message-error");
|
|
310
|
+
expandBTN.addStyleClass("errorBTNImage");
|
|
311
|
+
} else if (sErrorType === "Warning") {
|
|
312
|
+
errorMSG = oResourceBundle.getText("EDITOR_GROUP_WARNINGS");
|
|
313
|
+
expandBTN.setIcon("sap-icon://message-warning");
|
|
314
|
+
expandBTN.addStyleClass("warningBTNImage");
|
|
315
|
+
}
|
|
316
|
+
//remove expandButton addtional information
|
|
317
|
+
expandBTN.setTooltip(null);
|
|
318
|
+
expandBTN.addEventDelegate({
|
|
319
|
+
onAfterRendering: function(oEvent) {
|
|
320
|
+
var eExpandBTN = document.getElementById(expandBTN.getId());
|
|
321
|
+
eExpandBTN.setAttribute("aria-label", "With validation errors");
|
|
322
|
+
eExpandBTN.setAttribute("title", "");
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
expandBTN.setEnabled(false);
|
|
326
|
+
expandBTN.addStyleClass("errorBTN").addStyleClass("errorBTNDisabled");
|
|
327
|
+
var iITBar = expandBTN.getParent().getParent().getParent();
|
|
328
|
+
var iMessageStrip = Core.byId(iITBar.getId() + "_strip");
|
|
329
|
+
expandBTN.addEventDelegate({
|
|
330
|
+
onmouseover: function() {
|
|
331
|
+
iMessageStrip.setVisible(true);
|
|
332
|
+
iMessageStrip.setType(sErrorType);
|
|
333
|
+
iMessageStrip.setText(errorMSG);
|
|
334
|
+
},
|
|
335
|
+
onmouseout: function() {
|
|
336
|
+
iMessageStrip.setVisible(false);
|
|
337
|
+
}
|
|
338
|
+
}, this);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
GroupField.prototype._delayHandleITBValidation = function(oItem, sErrorType) {
|
|
343
|
+
var that = this;
|
|
344
|
+
var checkExpandBTNExist = setInterval(function() {
|
|
345
|
+
if (oItem._oExpandButton) {
|
|
346
|
+
that._handleITBValidation(oItem, sErrorType);
|
|
347
|
+
clearInterval(checkExpandBTNExist);
|
|
348
|
+
}
|
|
349
|
+
}, 50);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
return GroupField;
|
|
353
|
+
});
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* @alias sap.ui.integration.editor.fields.ObjectField
|
|
85
85
|
* @author SAP SE
|
|
86
86
|
* @since 1.100.0
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.107.1
|
|
88
88
|
* @private
|
|
89
89
|
* @experimental since 1.100.0
|
|
90
90
|
* @ui5-restricted
|
|
@@ -1276,7 +1276,10 @@ sap.ui.define([
|
|
|
1276
1276
|
var oResourceBundle = that.getResourceBundle();
|
|
1277
1277
|
var oItemCloned = deepClone(oItem, 500);
|
|
1278
1278
|
var oModel;
|
|
1279
|
-
var sPlacement =
|
|
1279
|
+
var sPlacement = "Right";
|
|
1280
|
+
if (sMode === "add") {
|
|
1281
|
+
sPlacement = this.getPopoverPlacement(oControl);
|
|
1282
|
+
}
|
|
1280
1283
|
if (!that._oObjectDetailsPopover) {
|
|
1281
1284
|
var oAddButton = new Button({
|
|
1282
1285
|
text: oResourceBundle.getText("EDITOR_FIELD_OBJECT_DETAILS_POPOVER_BUTTON_ADD"),
|
|
@@ -1699,10 +1702,10 @@ sap.ui.define([
|
|
|
1699
1702
|
}
|
|
1700
1703
|
var oTranslatedValues = that.buildTranslationsData(sKey, sType, oNewObject._dt._uuid, sProperty);
|
|
1701
1704
|
var oTranslatonsModel;
|
|
1705
|
+
var sPlacement = this.getPopoverPlacement(oControl._oValueHelpIcon);
|
|
1702
1706
|
if (!that._oTranslationPopover) {
|
|
1703
1707
|
var oList = that.buildTranslationsList();
|
|
1704
1708
|
var oTranslationsFooter = that.buildTranslationsFooter(oList, true);
|
|
1705
|
-
var sPlacement = that.getPreviewPosition() === "right" ? "Right" : "Left";
|
|
1706
1709
|
that._oTranslationPopover = new Popover({
|
|
1707
1710
|
placement: sPlacement,
|
|
1708
1711
|
contentWidth: "300px",
|
|
@@ -1714,6 +1717,7 @@ sap.ui.define([
|
|
|
1714
1717
|
oTranslatonsModel = that.buildTranslationsModel(oTranslatedValues);
|
|
1715
1718
|
that._oTranslationPopover.setModel(oTranslatonsModel, "languages");
|
|
1716
1719
|
} else {
|
|
1720
|
+
that._oTranslationPopover.setPlacement(sPlacement);
|
|
1717
1721
|
oTranslatonsModel = that._oTranslationPopover.getModel("languages");
|
|
1718
1722
|
oTranslatonsModel.setData(oTranslatedValues);
|
|
1719
1723
|
oTranslatonsModel.checkUpdate(true);
|