@openui5/sap.ui.mdc 1.97.1 → 1.99.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/.reuse/dep5 +25 -30
- package/THIRDPARTY.txt +14 -21
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +6 -3
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1100 -1796
- package/src/sap/ui/mdc/ChartDelegate.js +429 -270
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterField.js +11 -8
- package/src/sap/ui/mdc/Link.js +23 -4
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +20 -6
- package/src/sap/ui/mdc/Table.js +79 -64
- package/src/sap/ui/mdc/TableDelegate.js +40 -12
- package/src/sap/ui/mdc/ValueHelp.js +19 -9
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
- package/src/sap/ui/mdc/chart/Item.js +62 -92
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +256 -43
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +3 -3
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +75 -27
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +4 -4
- package/src/sap/ui/mdc/field/FieldBase.js +32 -6
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +5 -5
- package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +335 -126
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
- package/src/sap/ui/mdc/library.js +45 -42
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/Factory.js +2 -2
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +140 -177
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +55 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
- package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
- package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
- package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
- package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
- package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
- package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -9
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +112 -96
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +206 -116
- package/src/sap/ui/mdc/p13n/Engine.js +31 -13
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +20 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +5 -7
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
- package/src/sap/ui/mdc/table/Column.js +12 -12
- package/src/sap/ui/mdc/table/CreationRow.js +11 -11
- package/src/sap/ui/mdc/table/GridTableType.js +5 -6
- package/src/sap/ui/mdc/table/PropertyHelper.js +44 -7
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +8 -10
- package/src/sap/ui/mdc/table/RowSettings.js +4 -4
- package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
- package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
- package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +43 -12
- package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +43 -8
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +43 -24
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
- package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
- package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +261 -138
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
- package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
- package/src/sap/ui/mdc/ChartNew.js +0 -1114
- package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
- package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
- package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
- package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
- package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
- package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @extends sap.ui.base.Object
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.99.1
|
|
44
44
|
*
|
|
45
45
|
* @private
|
|
46
46
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -192,7 +192,7 @@ sap.ui.define([
|
|
|
192
192
|
return this.initAdaptation(vControl, sKey).then(function(){
|
|
193
193
|
|
|
194
194
|
var oController = this.getController(vControl, sKey);
|
|
195
|
-
var
|
|
195
|
+
var mChangeOperations = oController.getChangeOperations();
|
|
196
196
|
|
|
197
197
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
198
198
|
var oCurrentState = oController.getCurrentState();
|
|
@@ -203,7 +203,7 @@ sap.ui.define([
|
|
|
203
203
|
applyAbsolute: bApplyAbsolute,
|
|
204
204
|
changedState: aNewState,
|
|
205
205
|
control: oController.getAdaptationControl(),
|
|
206
|
-
changeOperations:
|
|
206
|
+
changeOperations: mChangeOperations,
|
|
207
207
|
deltaAttributes: ["name"],
|
|
208
208
|
propertyInfo: oRegistryEntry.helper.getProperties().map(function(a){return {name: a.name};})
|
|
209
209
|
};
|
|
@@ -235,7 +235,14 @@ sap.ui.define([
|
|
|
235
235
|
|
|
236
236
|
aKeys = aKeys instanceof Array ? aKeys : [aKeys];
|
|
237
237
|
|
|
238
|
+
var aSelectors = [];
|
|
239
|
+
|
|
240
|
+
aKeys.forEach(function(sKey) {
|
|
241
|
+
aSelectors = aSelectors.concat(this.getController(oControl, sKey).getSelectorForReset());
|
|
242
|
+
}.bind(this));
|
|
243
|
+
|
|
238
244
|
var oResetConfig = {
|
|
245
|
+
selectors: aSelectors,
|
|
239
246
|
selector: oControl
|
|
240
247
|
};
|
|
241
248
|
|
|
@@ -293,7 +300,11 @@ sap.ui.define([
|
|
|
293
300
|
var oModificationSetting = this._determineModification(vControl);
|
|
294
301
|
return oModificationSetting.handler.processChanges(aChanges, oModificationSetting.payload)
|
|
295
302
|
.then(function(aChanges){
|
|
296
|
-
|
|
303
|
+
var oControl = Engine.getControlInstance(vControl);
|
|
304
|
+
this.stateHandlerRegistry.fireChange(oControl);
|
|
305
|
+
if (oControl._onChangeAppliance instanceof Function) {
|
|
306
|
+
oControl._onChangeAppliance.call(oControl);
|
|
307
|
+
}
|
|
297
308
|
return aChanges;
|
|
298
309
|
}.bind(this));
|
|
299
310
|
} else {
|
|
@@ -318,9 +329,10 @@ sap.ui.define([
|
|
|
318
329
|
var fResolveRTA;
|
|
319
330
|
|
|
320
331
|
//var aVMs = Engine.hasForReference(oControl, "sap.ui.fl.variants.VariantManagement");
|
|
332
|
+
// TODO: clarify if we need this error handling / what to do with the Link if we want to keep it
|
|
321
333
|
var aPVs = Engine.hasForReference(oControl, "sap.ui.mdc.p13n.PersistenceProvider");
|
|
322
334
|
|
|
323
|
-
if (aPVs.length > 0) {
|
|
335
|
+
if (aPVs.length > 0 && !oControl.isA("sap.ui.mdc.link.Panel")) {
|
|
324
336
|
return Promise.reject("Please do not use a PeristenceProvider in RTA.");
|
|
325
337
|
}
|
|
326
338
|
|
|
@@ -344,6 +356,9 @@ sap.ui.define([
|
|
|
344
356
|
oCustomHeader.getContentRight()[0].setVisible(false);
|
|
345
357
|
}
|
|
346
358
|
oContainer.addStyleClass(mPropertyBag.styleClass);
|
|
359
|
+
if (mPropertyBag.fnAfterClose instanceof Function) {
|
|
360
|
+
oContainer.attachAfterClose(mPropertyBag.fnAfterClose);
|
|
361
|
+
}
|
|
347
362
|
});
|
|
348
363
|
|
|
349
364
|
oRTAPromise.then(function(){
|
|
@@ -613,7 +628,8 @@ sap.ui.define([
|
|
|
613
628
|
*
|
|
614
629
|
* @returns {object} The requested UI settings of the control instance and provided keys
|
|
615
630
|
*/
|
|
616
|
-
Engine.prototype.getUISettings = function(vControl,
|
|
631
|
+
Engine.prototype.getUISettings = function(vControl, vKeys) {
|
|
632
|
+
var aKeys = Array.isArray(vKeys) ? vKeys : [vKeys];
|
|
617
633
|
this.verifyController(vControl, aKeys);
|
|
618
634
|
var oPropertyHelper = this._getRegistryEntry(vControl).helper;
|
|
619
635
|
var mUiSettings = {};
|
|
@@ -622,6 +638,8 @@ sap.ui.define([
|
|
|
622
638
|
var oController = this.getController(vControl, sKey);
|
|
623
639
|
var pAdaptationUI = oController.getAdaptationUI(oPropertyHelper);
|
|
624
640
|
//Check faceless controller implementations and skip them
|
|
641
|
+
|
|
642
|
+
//TODO: error handling for non promises
|
|
625
643
|
if (pAdaptationUI instanceof Promise){
|
|
626
644
|
mUiSettings[sKey] = {};
|
|
627
645
|
mUiSettings[sKey] = {
|
|
@@ -792,8 +810,8 @@ sap.ui.define([
|
|
|
792
810
|
* Determines and registeres the ModificationHandler per control instance
|
|
793
811
|
*
|
|
794
812
|
* @private
|
|
795
|
-
* @param {
|
|
796
|
-
* @param {
|
|
813
|
+
* @param {string} sControlId The control id
|
|
814
|
+
* @param {string} sAncestorControlId The control ancestor id
|
|
797
815
|
*
|
|
798
816
|
* @returns {boolean} Returns whether an according ancestor could be found.
|
|
799
817
|
*/
|
|
@@ -969,27 +987,27 @@ sap.ui.define([
|
|
|
969
987
|
* @param {object[]} [aCustomPropertyInfo] A custom set of propertyinfo.
|
|
970
988
|
*
|
|
971
989
|
*/
|
|
972
|
-
Engine.prototype._retrievePropertyHelper = function(vControl, aCustomPropertyInfo){
|
|
990
|
+
Engine.prototype._retrievePropertyHelper = function (vControl, aCustomPropertyInfo) {
|
|
973
991
|
|
|
974
992
|
var oRegistryEntry = this._getRegistryEntry(vControl);
|
|
975
993
|
var oControl = Engine.getControlInstance(vControl);
|
|
976
994
|
|
|
977
995
|
if (aCustomPropertyInfo) {
|
|
978
|
-
if (oRegistryEntry.helper){
|
|
996
|
+
if (oRegistryEntry.helper) {
|
|
979
997
|
oRegistryEntry.helper.destroy();
|
|
980
998
|
}
|
|
981
999
|
oRegistryEntry.helper = new PropertyHelper(aCustomPropertyInfo);
|
|
982
1000
|
return Promise.resolve(oRegistryEntry.helper);
|
|
983
|
-
|
|
1001
|
+
}
|
|
984
1002
|
|
|
985
1003
|
if (oRegistryEntry.helper) {
|
|
986
1004
|
return Promise.resolve(oRegistryEntry.helper);
|
|
987
1005
|
}
|
|
988
1006
|
|
|
989
|
-
return oControl.initPropertyHelper().then(function(oPropertyHelper){
|
|
1007
|
+
return oControl.initPropertyHelper().then(function (oPropertyHelper) {
|
|
990
1008
|
oRegistryEntry.helper = oPropertyHelper;
|
|
991
1009
|
return oPropertyHelper;
|
|
992
|
-
}, function(sHelperError){
|
|
1010
|
+
}, function (sHelperError) {
|
|
993
1011
|
throw new Error(sHelperError);
|
|
994
1012
|
});
|
|
995
1013
|
};
|
|
@@ -10,101 +10,6 @@ sap.ui.define([
|
|
|
10
10
|
|
|
11
11
|
var FlexUtil = {
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Generates a set of changes based on the given arrays for a specified control
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
*
|
|
18
|
-
* @param {object} mDeltaInfo Map containing the necessary information to calculate the diff as change objects
|
|
19
|
-
* @param {array} mDeltaInfo.existingState An array describing the control state before a adaptation
|
|
20
|
-
* @param {array} mDeltaInfo.changedState An array describing the control state after a certain adaptation
|
|
21
|
-
* @param {object} mDeltaInfo.control Control instance which is being used to generate the changes
|
|
22
|
-
* @param {object} mDeltaInfo.changeOperations Map containing the changeOperations for the given Control instance
|
|
23
|
-
* @param {string} mDeltaInfo.changeOperations.add Name of the control specific 'add' changehandler
|
|
24
|
-
* @param {string} mDeltaInfo.changeOperations.remove Name of the control specific 'remove' changehandler
|
|
25
|
-
* @param {string} [mDeltaInfo.changeOperations.move] Name of the control specific 'move' changehandler
|
|
26
|
-
* @param {string} [mDeltaInfo.generator] Name of the change generator (E.g. the namespace of the UI creating the change object)
|
|
27
|
-
*
|
|
28
|
-
* @returns {array} Array containing the delta based created changes
|
|
29
|
-
*/
|
|
30
|
-
getArrayDeltaChanges: function (mDeltaInfo) {
|
|
31
|
-
|
|
32
|
-
var aExistingArray = mDeltaInfo.existingState;
|
|
33
|
-
var aChangedArray = mDeltaInfo.changedState;
|
|
34
|
-
var oControl = mDeltaInfo.control;
|
|
35
|
-
var sInsertOperation = mDeltaInfo.changeOperations.add;
|
|
36
|
-
var sRemoveOperation = mDeltaInfo.changeOperations.remove;
|
|
37
|
-
var sMoveOperation = mDeltaInfo.changeOperations.move;
|
|
38
|
-
var sGenerator = mDeltaInfo.generator;
|
|
39
|
-
|
|
40
|
-
var aDeltaAttributes = mDeltaInfo.deltaAttributes || [];
|
|
41
|
-
|
|
42
|
-
var fnSymbol = function(o) {
|
|
43
|
-
var sDiff = "";
|
|
44
|
-
aDeltaAttributes.forEach(function(sAttribute){
|
|
45
|
-
sDiff = sDiff + o[sAttribute];
|
|
46
|
-
});
|
|
47
|
-
return sDiff;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var aResults = diff(aExistingArray, aChangedArray, fnSymbol);
|
|
51
|
-
// Function to match field with exising field in the given array
|
|
52
|
-
var fMatch = function (oField, aArray) {
|
|
53
|
-
return aArray.filter(function (oExistingField) {
|
|
54
|
-
return oExistingField && (oExistingField.name === oField.name);
|
|
55
|
-
})[0];
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var aChanges = [];
|
|
59
|
-
var aProcessedArray = aExistingArray.slice(0);
|
|
60
|
-
|
|
61
|
-
aResults.forEach(function (oResult) {
|
|
62
|
-
// Begin --> hack for handling result returned by diff
|
|
63
|
-
if (oResult.type === "delete" && aProcessedArray[oResult.index] === undefined) {
|
|
64
|
-
aProcessedArray.splice(oResult.index, 1);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var oProp, oExistingProp, iLength;
|
|
69
|
-
if (oResult.type === "insert") {
|
|
70
|
-
oExistingProp = fMatch(aChangedArray[oResult.index], aProcessedArray);
|
|
71
|
-
if (oExistingProp) {
|
|
72
|
-
oExistingProp.index = aProcessedArray.indexOf(oExistingProp);
|
|
73
|
-
aProcessedArray.splice(oExistingProp.index, 1, undefined);
|
|
74
|
-
aChanges.push(FlexUtil.createAddRemoveChange(oControl, sRemoveOperation, FlexUtil._getChangeContent(oExistingProp, aDeltaAttributes), sGenerator));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// End hack
|
|
78
|
-
oProp = oResult.type === "delete" ? aProcessedArray[oResult.index] : aChangedArray[oResult.index];
|
|
79
|
-
oProp.index = oResult.index;
|
|
80
|
-
if (oResult.type === "delete") {
|
|
81
|
-
aProcessedArray.splice(oProp.index, 1);
|
|
82
|
-
} else {
|
|
83
|
-
aProcessedArray.splice(oProp.index, 0, oProp);
|
|
84
|
-
}
|
|
85
|
-
// Move operation shows up as insert followed by delete OR delete followed by insert
|
|
86
|
-
if (sMoveOperation) {
|
|
87
|
-
iLength = aChanges.length;
|
|
88
|
-
// Get the last added change
|
|
89
|
-
if (iLength) {
|
|
90
|
-
oExistingProp = aChanges[iLength - 1];
|
|
91
|
-
oExistingProp = oExistingProp ? oExistingProp.changeSpecificData.content : undefined;
|
|
92
|
-
}
|
|
93
|
-
// Matching property exists with a different index --> then this is a move operation
|
|
94
|
-
if (oExistingProp && oExistingProp.name === oProp.name && oResult.index != oExistingProp.index) {
|
|
95
|
-
// remove the last insert/delete operation
|
|
96
|
-
aChanges.pop();
|
|
97
|
-
aChanges.push(FlexUtil.createMoveChange(oExistingProp.id, oExistingProp.name, oResult.index, sMoveOperation, oControl, sMoveOperation !== "moveSort", sGenerator));
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
aChanges.push(FlexUtil.createAddRemoveChange(oControl, oResult.type === "delete" ? sRemoveOperation : sInsertOperation, FlexUtil._getChangeContent(oProp, aDeltaAttributes), sGenerator));
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
return aChanges;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
13
|
getPropertySetterChanges: function(mDeltaInfo) {
|
|
109
14
|
var oControl = mDeltaInfo.control;
|
|
110
15
|
var aExistingState = mDeltaInfo.existingState;
|
|
@@ -124,7 +29,7 @@ sap.ui.define([
|
|
|
124
29
|
var vNewValue = oItem[sSetAttribute];
|
|
125
30
|
var bValueChanged = vOldValue !== vNewValue;
|
|
126
31
|
if (bValueChanged) {
|
|
127
|
-
aSetterChanges.push(this.
|
|
32
|
+
aSetterChanges.push(this.createChange(oControl, sOperation, {
|
|
128
33
|
name: oItem.name,
|
|
129
34
|
value: oItem[sSetAttribute]
|
|
130
35
|
}));
|
|
@@ -193,7 +98,14 @@ sap.ui.define([
|
|
|
193
98
|
Log.warning("property '" + sFieldPath + "' not supported");
|
|
194
99
|
continue;
|
|
195
100
|
}
|
|
196
|
-
|
|
101
|
+
|
|
102
|
+
var aFilterConditionChanges = FlexUtil._diffConditionPath(sFieldPath, mNewConditionState[sFieldPath], mPreviousConditionState[sFieldPath], oAdaptationControl);
|
|
103
|
+
|
|
104
|
+
if (oAdaptationControl && oAdaptationControl.createPropertyInfoChanges && (aFilterConditionChanges.length > 0)) {
|
|
105
|
+
aFilterConditionChanges = oAdaptationControl.createPropertyInfoChanges(sFieldPath).concat(aFilterConditionChanges);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
aConditionChanges = aConditionChanges.concat(aFilterConditionChanges);
|
|
197
109
|
}
|
|
198
110
|
|
|
199
111
|
return aConditionChanges;
|
|
@@ -274,7 +186,8 @@ sap.ui.define([
|
|
|
274
186
|
|
|
275
187
|
return aChanges;
|
|
276
188
|
},
|
|
277
|
-
|
|
189
|
+
|
|
190
|
+
createChange: function(oControl, sOperation, oContent){
|
|
278
191
|
var oAddRemoveChange = {
|
|
279
192
|
selectorElement: oControl,
|
|
280
193
|
changeSpecificData: {
|
|
@@ -285,26 +198,6 @@ sap.ui.define([
|
|
|
285
198
|
return oAddRemoveChange;
|
|
286
199
|
},
|
|
287
200
|
|
|
288
|
-
createMoveChange: function (sId, sPropertyName, iNewIndex, sMoveOperation, oControl, bPersistId) {
|
|
289
|
-
var oMoveChange = {
|
|
290
|
-
selectorElement: oControl,
|
|
291
|
-
changeSpecificData: {
|
|
292
|
-
changeType: sMoveOperation,
|
|
293
|
-
content: {
|
|
294
|
-
id: sId,
|
|
295
|
-
name: sPropertyName,
|
|
296
|
-
index: iNewIndex
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
if (!bPersistId) {
|
|
302
|
-
delete oMoveChange.changeSpecificData.content.id;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
return oMoveChange;
|
|
306
|
-
},
|
|
307
|
-
|
|
308
201
|
createConditionChange: function(sChangeType, oControl, sFieldPath, oCondition) {
|
|
309
202
|
var oConditionChange = {
|
|
310
203
|
selectorElement: oControl,
|
|
@@ -31,8 +31,8 @@ sap.ui.define([
|
|
|
31
31
|
* @param {object} oP13nUI Control displayed in the content area
|
|
32
32
|
* @param {object} mDialogSettings Settings to overwrite popover default properties, such as: <code>contentHeight</code>
|
|
33
33
|
* @param {object} [mDialogSettings.reset] Reset settings for the custom header creation
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {
|
|
34
|
+
* @param {function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
|
|
35
|
+
* @param {string} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
|
|
36
36
|
*
|
|
37
37
|
* @returns {Promise} promise resolving in the Popover instance
|
|
38
38
|
*/
|
|
@@ -76,8 +76,8 @@ sap.ui.define([
|
|
|
76
76
|
* @param {object} oP13nUI Control displayed in the content area
|
|
77
77
|
* @param {object} mDialogSettings Settings to overwrite dialog default properties, such as: <code>contentHeight</code>
|
|
78
78
|
* @param {object} [mDialogSettings.reset] Reset settings for the custom header creation
|
|
79
|
-
* @param {
|
|
80
|
-
* @param {
|
|
79
|
+
* @param {function} [mDialogSettings.reset.onExecute] Callback executed upon triggering a reset
|
|
80
|
+
* @param {string} [mDialogSettings.reset.warningText] Warning which is displyed prior to executing the reset
|
|
81
81
|
*
|
|
82
82
|
* @returns {Promise} Promise resolving in the Dialog instance
|
|
83
83
|
*/
|
|
@@ -149,9 +149,9 @@ sap.ui.define([
|
|
|
149
149
|
/**
|
|
150
150
|
*
|
|
151
151
|
* @param {object} mSettings Settings object to create a customHeader including a reset Button
|
|
152
|
-
* @param {
|
|
152
|
+
* @param {string} mSettings.title Title for the custom reset header
|
|
153
153
|
* @param {function} mSettings.reset Control specific reset handling
|
|
154
|
-
* @param {
|
|
154
|
+
* @param {string} [mSettings.warningText] Text which is displayed prior to executing to reset execution
|
|
155
155
|
*
|
|
156
156
|
* @returns {sap.m.Bar} The created custom header Bar
|
|
157
157
|
*/
|
|
@@ -196,7 +196,7 @@ sap.ui.define([
|
|
|
196
196
|
prepareAdaptationData: function(vProperties, fnEnhace, bGroupData) {
|
|
197
197
|
|
|
198
198
|
var oPropertyHelper =
|
|
199
|
-
|
|
199
|
+
vProperties && vProperties.getProperties instanceof Function ?
|
|
200
200
|
vProperties : new P13nPropertyHelper(vProperties);
|
|
201
201
|
|
|
202
202
|
var aItems = [];
|
|
@@ -79,6 +79,16 @@ sap.ui.define([
|
|
|
79
79
|
* Country: {
|
|
80
80
|
* aggregated: false
|
|
81
81
|
* }
|
|
82
|
+
* },
|
|
83
|
+
* //The supplementaryConfig can be used to modify control specific attributes, for example the column width in the Table
|
|
84
|
+
* supplementaryConfig: {
|
|
85
|
+
* aggregations: {
|
|
86
|
+
* columns: {
|
|
87
|
+
* Category: {
|
|
88
|
+
* width: "150px"
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
82
92
|
* }
|
|
83
93
|
* }
|
|
84
94
|
*
|
|
@@ -112,6 +122,9 @@ sap.ui.define([
|
|
|
112
122
|
* Attaches an event handler to the <code>StateUtil</code>.
|
|
113
123
|
* The event handler may be fired every time a user triggers a personalization change for a control instance during runtime.
|
|
114
124
|
*
|
|
125
|
+
* @private
|
|
126
|
+
* @ui5-restricted sap.fe
|
|
127
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
115
128
|
* @param {function} fnListener fnFunction The handler function to call when the event occurs
|
|
116
129
|
*/
|
|
117
130
|
attachStateChange: function(fnListener) {
|
|
@@ -122,6 +135,9 @@ sap.ui.define([
|
|
|
122
135
|
* Removes a previously attached state change event handler from the <code>StateUtil</code> class.
|
|
123
136
|
* The passed parameters must match those used for registration with {@link StateUtil#attachChange} beforehand.
|
|
124
137
|
*
|
|
138
|
+
* @private
|
|
139
|
+
* @ui5-restricted sap.fe
|
|
140
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
125
141
|
* @param {function} fnListener fnFunction The handler function to detach from the event
|
|
126
142
|
*/
|
|
127
143
|
detachStateChange: function(fnListener) {
|
|
@@ -135,7 +151,8 @@ sap.ui.define([
|
|
|
135
151
|
Aggregate: "aggregations",
|
|
136
152
|
Filter: "filter",
|
|
137
153
|
Item: "items",
|
|
138
|
-
Column: "items"
|
|
154
|
+
Column: "items",
|
|
155
|
+
ColumnWidth: "supplementaryConfig"
|
|
139
156
|
};
|
|
140
157
|
var oTransformedState = {};
|
|
141
158
|
|
|
@@ -144,10 +161,6 @@ sap.ui.define([
|
|
|
144
161
|
var sTransformedKey = sExternalKey || sProvidedEngineKey;//no external key --> provide internal key
|
|
145
162
|
oTransformedState[sTransformedKey] = oInternalState[sProvidedEngineKey];
|
|
146
163
|
});
|
|
147
|
-
//TODO: Remove once the stateUtil for columnWidth is introduced
|
|
148
|
-
if (oTransformedState.ColumnWidth) {
|
|
149
|
-
delete oTransformedState.ColumnWidth;
|
|
150
|
-
}
|
|
151
164
|
return oTransformedState;
|
|
152
165
|
},
|
|
153
166
|
|
|
@@ -157,7 +170,8 @@ sap.ui.define([
|
|
|
157
170
|
groupLevels: ["Group"],
|
|
158
171
|
aggregations: ["Aggregate"],
|
|
159
172
|
filter: ["Filter"],
|
|
160
|
-
items: ["Item", "Column"]
|
|
173
|
+
items: ["Item", "Column"],
|
|
174
|
+
supplementaryConfig: ["ColumnWidth"]
|
|
161
175
|
};
|
|
162
176
|
|
|
163
177
|
var oTransformedState = {};
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.base.Object
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.99.1
|
|
36
36
|
*
|
|
37
37
|
* @private
|
|
38
38
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -364,7 +364,7 @@ sap.ui.define([
|
|
|
364
364
|
|
|
365
365
|
var mSettings = Object.assign({
|
|
366
366
|
verticalScrolling: true,
|
|
367
|
-
reset: mUISettings.reset,
|
|
367
|
+
reset: mUISettings.reset || {},
|
|
368
368
|
afterClose: function(oEvt) {
|
|
369
369
|
var oDialog = oEvt.getSource();
|
|
370
370
|
if (oDialog) {
|
|
@@ -375,11 +375,9 @@ sap.ui.define([
|
|
|
375
375
|
}, mUISettings.containerSettings);
|
|
376
376
|
|
|
377
377
|
if (mUISettings.resetEnabled){
|
|
378
|
-
mSettings.reset = {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}.bind(this)
|
|
382
|
-
};
|
|
378
|
+
mSettings.reset.onExecute = function() {
|
|
379
|
+
this.oAdaptationProvider.reset(oControl, aKeys);
|
|
380
|
+
}.bind(this);
|
|
383
381
|
}
|
|
384
382
|
|
|
385
383
|
mSettings.confirm = {
|
|
@@ -54,8 +54,11 @@ sap.ui.define([
|
|
|
54
54
|
|
|
55
55
|
FlexModificationHandler.prototype.reset = function(mPropertyBag, oModificationPayload){
|
|
56
56
|
var sPersistenceMode = oModificationPayload.mode;
|
|
57
|
+
|
|
57
58
|
var bIsGlobal = sPersistenceMode === mode.Global;
|
|
58
|
-
|
|
59
|
+
var bIsAutoGlobal = !oModificationPayload.hasVM && oModificationPayload.hasPP && sPersistenceMode === mode.Auto;
|
|
60
|
+
|
|
61
|
+
return (bIsGlobal || bIsAutoGlobal) ? FlexUtil.reset.call(this, mPropertyBag) : FlexUtil.restore.call(this, mPropertyBag);
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
FlexModificationHandler.prototype.isModificationSupported = function(mPropertyBag, oModificationPayload){
|
|
@@ -160,15 +160,18 @@ sap.ui.define([
|
|
|
160
160
|
|
|
161
161
|
var oAppComponent = mPropertyBag ? mPropertyBag.appComponent : undefined;
|
|
162
162
|
|
|
163
|
-
if (!oControl.
|
|
164
|
-
oControl.
|
|
165
|
-
return
|
|
166
|
-
.then(function()
|
|
163
|
+
if (!oControl._pXConfigCreation) {
|
|
164
|
+
oControl._pXConfigCreation = oModifier.createAndAddCustomData(oControl, "xConfig", oConfig, oAppComponent);
|
|
165
|
+
return oControl._pXConfigCreation
|
|
166
|
+
.then(function(){
|
|
167
167
|
return oConfig;
|
|
168
168
|
});
|
|
169
169
|
} else {
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
oControl._pXConfigCreation
|
|
171
|
+
.then(function(oCustomData){
|
|
172
|
+
oModifier.setProperty(oCustomData, "value", oConfig);
|
|
173
|
+
return oConfig;
|
|
174
|
+
});
|
|
172
175
|
}
|
|
173
176
|
});
|
|
174
177
|
};
|