@openui5/sap.ui.mdc 1.102.2 → 1.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +17 -0
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +35 -2
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -1
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +11 -0
- package/src/sap/ui/mdc/Chart.js +141 -57
- package/src/sap/ui/mdc/ChartDelegate.js +97 -92
- 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 +1 -1
- package/src/sap/ui/mdc/FilterField.js +2 -2
- package/src/sap/ui/mdc/Link.js +77 -12
- package/src/sap/ui/mdc/LinkDelegate.js +81 -76
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +7 -1
- package/src/sap/ui/mdc/ValueHelp.js +1 -19
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -2
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -2
- package/src/sap/ui/mdc/chart/ChartToolbar.js +43 -5
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +6 -2
- package/src/sap/ui/mdc/chart/Item.js +6 -11
- package/src/sap/ui/mdc/chart/PropertyHelper.js +7 -8
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -3
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +16 -131
- package/src/sap/ui/mdc/condition/ConditionModel.js +50 -21
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +3 -3
- 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/actiontoolbar/ActionToolbar.designtime.js +18 -4
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbarAction.designtime.js +53 -0
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +9 -4
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +3 -1
- 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 +135 -39
- package/src/sap/ui/mdc/field/ConditionsType.js +71 -10
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +93 -81
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +94 -74
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +20 -1
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -39
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -21
- package/src/sap/ui/mdc/field/FieldInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelp.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -19
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -4
- package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
- 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 +2 -2
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +2 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -5
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +4 -4
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +80 -4
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +19 -38
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +23 -41
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +43 -58
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +25 -55
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +38 -57
- package/src/sap/ui/mdc/flexibility/SortFlex.js +23 -52
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +3 -3
- package/src/sap/ui/mdc/flexibility/Util.js +82 -0
- package/src/sap/ui/mdc/flexibility/xConfigFlex.js +137 -0
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +3 -1
- package/src/sap/ui/mdc/library.js +4 -15
- 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 +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +9 -1
- package/src/sap/ui/mdc/link/Panel.js +26 -11
- package/src/sap/ui/mdc/link/PanelItem.js +10 -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 +16 -2
- package/src/sap/ui/mdc/messagebundle_ar.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +24 -14
- package/src/sap/ui/mdc/messagebundle_en.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +18 -8
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_fr.properties +14 -4
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_hr.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_hu.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_id.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +57 -47
- package/src/sap/ui/mdc/messagebundle_iw.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +14 -4
- package/src/sap/ui/mdc/messagebundle_lt.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +26 -16
- package/src/sap/ui/mdc/messagebundle_no.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_pl.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_sk.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +17 -7
- package/src/sap/ui/mdc/messagebundle_tr.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +12 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +13 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
- package/src/sap/ui/mdc/odata/TypeUtil.js +24 -2
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +5 -5
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +6 -0
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +15 -28
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +6 -6
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +0 -33
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +360 -152
- package/src/sap/ui/mdc/p13n/Engine.js +1 -1
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +1 -0
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +133 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -7
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +31 -6
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +7 -32
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +12 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +24 -28
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +30 -32
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +2 -1
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -7
- package/src/sap/ui/mdc/table/menu/Item.js +3 -3
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +34 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +5 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +49 -51
- package/src/sap/ui/mdc/util/TypeUtil.js +105 -17
- package/src/sap/ui/mdc/valuehelp/Dialog.js +97 -30
- package/src/sap/ui/mdc/valuehelp/Popover.js +48 -7
- package/src/sap/ui/mdc/valuehelp/base/Container.js +37 -28
- package/src/sap/ui/mdc/valuehelp/base/Content.js +39 -21
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +5 -5
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +41 -34
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +11 -3
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +25 -3
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/JSDocGeneration.md +18 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +4 -1
- package/test/sap/ui/mdc/testutils/opa/Util.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/Utils.js +22 -0
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/chart/JSDoc.md +413 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +320 -264
- package/test/sap/ui/mdc/testutils/opa/field/Actions.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/field/Assertions.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/field/JSDoc.md +37 -0
- package/test/sap/ui/mdc/testutils/opa/field/TestObjects.js +52 -0
- package/test/sap/ui/mdc/testutils/opa/field/waitForField.js +36 -0
- package/test/sap/ui/mdc/testutils/opa/field/waitForFieldValueHelpButton.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +31 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +53 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/JSDoc.md +188 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +79 -13
- package/test/sap/ui/mdc/testutils/opa/filterbar/waitForAdaptFiltersButton.js +47 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/waitForFilterBar.js +28 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +70 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/Assertions.js +87 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/JSDoc.md +63 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/TestObjects.js +71 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterField.js +36 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/waitForFilterFieldValueHelpButton.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/link/JSDoc.md +136 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +108 -91
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +34 -82
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +190 -6
- package/test/sap/ui/mdc/testutils/opa/table/Assertions.js +210 -0
- package/test/sap/ui/mdc/testutils/opa/table/JSDoc.md +205 -0
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +138 -9
- package/test/sap/ui/mdc/testutils/opa/table/Util.js +20 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForColumnHeader.js +44 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForListItemInDialogWithLabel.js +55 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForP13nButtonWithParentAndIcon.js +42 -0
- package/test/sap/ui/mdc/testutils/opa/table/waitForTable.js +26 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/JSDoc.md +35 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +7 -0
- package/test/sap/ui/mdc/testutils/opa/variant/Actions.js +124 -0
- package/test/sap/ui/mdc/testutils/opa/variant/Assertions.js +48 -0
- package/test/sap/ui/mdc/testutils/opa/variant/JSDoc.md +84 -0
- package/test/sap/ui/mdc/testutils/opa/variant/TestObjects.js +95 -0
- package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManager.js +43 -0
- package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerButton.js +45 -0
- package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerItem.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/variant/waitForVariantManagerOverlay.js +44 -0
- package/ui5.yaml +4 -1
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +0 -139
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +0 -155
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +0 -750
- package/test/sap/ui/mdc/testutils/opa/chart/ChartNew.js +0 -24
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +0 -288
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class Base type for <code>MultiValueFieldItem</code> control.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.104.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @param {object} [mSettings] Initial settings for the new control
|
|
23
23
|
* @class The <code>OutParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
24
24
|
* @extends sap.ui.mdc.field.InParameter
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.104.0
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>TokenDisplay</code> control is used to render a field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.Token
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.104.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @alias sap.ui.mdc.field.TokenDisplay
|
|
33
33
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
34
|
*/
|
|
35
|
-
var TokenDisplay = Token.extend("sap.ui.mdc.field.TokenDisplay", /** @lends sap.ui.mdc.field.TokenDisplay */
|
|
35
|
+
var TokenDisplay = Token.extend("sap.ui.mdc.field.TokenDisplay", /** @lends sap.ui.mdc.field.TokenDisplay.prototype */
|
|
36
36
|
{
|
|
37
37
|
metadata: {
|
|
38
38
|
library: "sap.ui.mdc",
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @param {object} [mSettings] Initial settings for the new control
|
|
29
29
|
* @class The <code>TokenizerDisplay</code> control is used to render a Tokenizer inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
30
30
|
* @extends sap.m.Tokenizer
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.104.0
|
|
32
32
|
* @constructor
|
|
33
33
|
* @abstract
|
|
34
34
|
* @private
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @alias sap.ui.mdc.field.TokenizerDisplay
|
|
38
38
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
39
39
|
*/
|
|
40
|
-
var TokenizerDisplay = Tokenizer.extend("sap.ui.mdc.field.TokenizerDisplay", /** @lends sap.ui.mdc.field.TokenizerDisplay */
|
|
40
|
+
var TokenizerDisplay = Tokenizer.extend("sap.ui.mdc.field.TokenizerDisplay", /** @lends sap.ui.mdc.field.TokenizerDisplay.prototype */
|
|
41
41
|
{
|
|
42
42
|
metadata: {
|
|
43
43
|
library: "sap.ui.mdc",
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.core.XMLComposite
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.104.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @alias sap.ui.mdc.field.ValueHelpPanel
|
|
@@ -198,7 +198,6 @@ sap.ui.define([
|
|
|
198
198
|
*
|
|
199
199
|
* @private
|
|
200
200
|
* @ui5-restricted sap.ui.mdc.field.FieldValueHelp
|
|
201
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
202
201
|
*/
|
|
203
202
|
setFilterbar: function(oFilterbar) {
|
|
204
203
|
|
|
@@ -243,7 +242,6 @@ sap.ui.define([
|
|
|
243
242
|
*
|
|
244
243
|
* @private
|
|
245
244
|
* @ui5-restricted sap.ui.mdc.field.FieldValueHelp
|
|
246
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
247
245
|
*/
|
|
248
246
|
setTable: function(oTable) {
|
|
249
247
|
if (this._oTable) {
|
|
@@ -278,7 +276,6 @@ sap.ui.define([
|
|
|
278
276
|
*
|
|
279
277
|
* @private
|
|
280
278
|
* @ui5-restricted sap.ui.mdc.field.FieldValueHelp
|
|
281
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
282
279
|
*/
|
|
283
280
|
getTable: function() {
|
|
284
281
|
if (this._oTable) {
|
|
@@ -295,7 +292,6 @@ sap.ui.define([
|
|
|
295
292
|
*
|
|
296
293
|
* @private
|
|
297
294
|
* @ui5-restricted sap.ui.mdc.field.FieldValueHelp
|
|
298
|
-
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
299
295
|
*/
|
|
300
296
|
setDefineConditions: function(oDefineConditionPanel) {
|
|
301
297
|
var oITBar = this.byId("iconTabBar");
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
if (DateUtil.showTimezone(oType)) {
|
|
41
41
|
// bind timezone to timezone part; handle as "unit"
|
|
42
42
|
var oUnitConditionsType = oContentFactory.getUnitConditionsType();
|
|
43
|
-
aControls[0].bindProperty("timezone", { path: "$field>/conditions", type: oUnitConditionsType });
|
|
43
|
+
aControls[0].bindProperty("timezone", { path: "$field>/conditions", type: oUnitConditionsType, targetType: "sap.ui.mdc.raw:1" }); // use own target type to allow special handling in ConditionType (DateTimePicker needs the raw value of the timezone, not translated)
|
|
44
44
|
aControls[0].setShowTimezone(true);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
* @class The <code>FilterBarBase</code> control is used as a faceless base class for common functionality of any MDC FilterBar derivation.
|
|
53
53
|
* @extends sap.ui.mdc.Control
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.104.0
|
|
56
56
|
* @constructor
|
|
57
57
|
* @private
|
|
58
58
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -677,7 +677,7 @@ sap.ui.define([
|
|
|
677
677
|
|
|
678
678
|
FilterBarBase.prototype._toExternal = function(oProperty, oCondition) {
|
|
679
679
|
var oConditionExternal = merge({}, oCondition);
|
|
680
|
-
oConditionExternal = ConditionConverter.toString(oConditionExternal, oProperty.typeConfig, this.getTypeUtil());
|
|
680
|
+
oConditionExternal = ConditionConverter.toString(oConditionExternal, oProperty.typeConfig.typeInstance, this.getTypeUtil());
|
|
681
681
|
|
|
682
682
|
this._cleanupCondition(oConditionExternal);
|
|
683
683
|
|
|
@@ -689,7 +689,7 @@ sap.ui.define([
|
|
|
689
689
|
|
|
690
690
|
FilterBarBase.prototype._toInternal = function(oProperty, oCondition) {
|
|
691
691
|
var oConditionInternal = merge({}, oCondition);
|
|
692
|
-
oConditionInternal = ConditionConverter.toType(oConditionInternal, oProperty.typeConfig, this.getTypeUtil());
|
|
692
|
+
oConditionInternal = ConditionConverter.toType(oConditionInternal, oProperty.typeConfig.typeInstance, this.getTypeUtil());
|
|
693
693
|
|
|
694
694
|
this. _convertInOutParameters(oCondition, oConditionInternal, "inParameters", ConditionConverter.toType);
|
|
695
695
|
this. _convertInOutParameters(oCondition, oConditionInternal, "outParameters", ConditionConverter.toType);
|
|
@@ -704,7 +704,7 @@ sap.ui.define([
|
|
|
704
704
|
var oProperty = this._getPropertyByName(sName);
|
|
705
705
|
if (oProperty) {
|
|
706
706
|
var oOutCondition = Condition.createCondition("EQ", [oCondition[sParameterName][sKey]]);
|
|
707
|
-
var vValue = fnConverter(oOutCondition, oProperty.typeConfig, this.getTypeUtil());
|
|
707
|
+
var vValue = fnConverter(oOutCondition, oProperty.typeConfig.typeInstance, this.getTypeUtil());
|
|
708
708
|
if (!oConditionConverted[sParameterName]) {
|
|
709
709
|
oConditionConverted[sParameterName] = {};
|
|
710
710
|
}
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Getter for the inner layout item.
|
|
27
|
-
* @returns {Control} Control instance of the inner layout item.
|
|
27
|
+
* @returns {sap.ui.core.Control} Control instance of the inner layout item.
|
|
28
28
|
* @protected
|
|
29
29
|
* @ui5-restricted sap.ui.mdc, sap.fe
|
|
30
30
|
*/
|
|
@@ -56,7 +56,7 @@ sap.ui.define(
|
|
|
56
56
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
57
57
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
58
58
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.104.0
|
|
60
60
|
* @constructor
|
|
61
61
|
* @private
|
|
62
62
|
* @ui5-restricted sap.fe
|
|
@@ -5,17 +5,93 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
"./ItemBaseFlex",
|
|
9
|
+
"./Util"
|
|
10
|
+
], function(ItemBaseFlex, Util) {
|
|
10
11
|
"use strict";
|
|
11
12
|
|
|
12
13
|
var oActionFlex = Object.assign({}, ItemBaseFlex);
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
oActionFlex.findItem = function(oModifier, aActions, sName) {
|
|
14
16
|
return sap.ui.getCore().byId(sName);
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
oActionFlex.determineAggregation = function(oModifier, oControl) {
|
|
20
|
+
return Promise.resolve().then(function() {
|
|
21
|
+
return {
|
|
22
|
+
name: "actions",
|
|
23
|
+
items: oControl.getActions()
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
oActionFlex._applyMove = function(oChange, oControl, mPropertyBag, sChangeReason) {
|
|
29
|
+
var bIsRevert = sChangeReason === Util.REVERT ? true : false;
|
|
30
|
+
if (oControl.getParent()){
|
|
31
|
+
if (oControl.getParent().isA("sap.ui.mdc.Chart")) {
|
|
32
|
+
// ActionToolbar of sap.ui.mdc.Chart
|
|
33
|
+
oControl = oControl.getParent();
|
|
34
|
+
} else if (oControl.getParent().getParent().isA("sap.ui.mdc.Table")) {
|
|
35
|
+
// ActionToolbar of sap.ui.mdc.Table
|
|
36
|
+
oControl = oControl.getParent().getParent();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
this.beforeApply(oChange.getChangeType(), oControl, bIsRevert);
|
|
40
|
+
if (this._bSupressFlickering) {
|
|
41
|
+
this._delayInvalidate(oControl);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var oModifier = mPropertyBag.modifier;
|
|
45
|
+
var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
|
|
46
|
+
var oControlAggregationItem;
|
|
47
|
+
var oAggregation;
|
|
48
|
+
var iOldIndex;
|
|
49
|
+
|
|
50
|
+
// 1) Fetch existing item
|
|
51
|
+
var pMove = this.determineAggregation(oModifier, oControl)
|
|
52
|
+
.then(function(oRetrievedAggregation){
|
|
53
|
+
oAggregation = oRetrievedAggregation;
|
|
54
|
+
return this._getExistingAggregationItem(oChangeContent, mPropertyBag, oControl);
|
|
55
|
+
}.bind(this))
|
|
56
|
+
.then(function(oRetrievedControlAggregationItem){
|
|
57
|
+
oControlAggregationItem = oRetrievedControlAggregationItem;
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
// 2) Throw error if for some reason no item could be found (should not happen for a move operation)
|
|
61
|
+
.then(function() {
|
|
62
|
+
if (!oControlAggregationItem) {
|
|
63
|
+
throw new Error("No corresponding item in " + oAggregation.name + " found. Change to move item cannot be " + this._getOperationText(bIsRevert) + "at this moment");
|
|
64
|
+
}
|
|
65
|
+
return oModifier.findIndexInParentAggregation(oControlAggregationItem);
|
|
66
|
+
}.bind(this))
|
|
67
|
+
|
|
68
|
+
// 3) Trigger the move (remove&insert)
|
|
69
|
+
.then(function(iRetrievedIndex) {
|
|
70
|
+
iOldIndex = iRetrievedIndex;
|
|
71
|
+
return oModifier.removeAggregation(oControl, oAggregation.name, oControlAggregationItem)
|
|
72
|
+
.then(function(){
|
|
73
|
+
return oModifier.insertAggregation(oControl, oAggregation.name, oControlAggregationItem, oChangeContent.index);
|
|
74
|
+
});
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// 4) Prepare the revert data
|
|
78
|
+
.then(function() {
|
|
79
|
+
if (bIsRevert) {
|
|
80
|
+
// Clear the revert data on the change
|
|
81
|
+
oChange.resetRevertData();
|
|
82
|
+
} else {
|
|
83
|
+
oChange.setRevertData({
|
|
84
|
+
name: oChangeContent.name,
|
|
85
|
+
index: iOldIndex
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
this.afterApply(oChange.getChangeType(), oControl, bIsRevert);
|
|
89
|
+
}.bind(this));
|
|
90
|
+
|
|
91
|
+
return pMove;
|
|
92
|
+
};
|
|
93
|
+
|
|
17
94
|
return {
|
|
18
|
-
"moveControls": "default",
|
|
19
95
|
moveAction: oActionFlex.createMoveChangeHandler()
|
|
20
96
|
};
|
|
21
97
|
|
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
|
-
sap.ui.define([
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/mdc/p13n/Engine",
|
|
8
|
+
"sap/ui/mdc/flexibility/Util"
|
|
9
|
+
], function(Engine, Util) {
|
|
7
10
|
"use strict";
|
|
11
|
+
|
|
8
12
|
var fRebindControl = function (oControl) {
|
|
9
13
|
var bExecuteRebindForTable = oControl && oControl.isA && oControl.isA("sap.ui.mdc.Table") && oControl.isTableBound();
|
|
10
14
|
var bExecuteRebindForChart = oControl && oControl.isA && (oControl.isA("sap.ui.mdc.Chart"));
|
|
11
15
|
if (bExecuteRebindForTable || bExecuteRebindForChart) {
|
|
12
16
|
if (!oControl._bWaitForBindChanges) {
|
|
13
17
|
oControl._bWaitForBindChanges = true;
|
|
14
|
-
|
|
15
|
-
element: oControl
|
|
16
|
-
}).then(function () {
|
|
18
|
+
Engine.getInstance().waitForChanges(oControl).then(function () {
|
|
17
19
|
if (bExecuteRebindForTable) {
|
|
18
20
|
oControl.rebind();
|
|
19
21
|
} else if (bExecuteRebindForChart) {
|
|
@@ -38,8 +40,9 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
38
40
|
fRebindControl(oControl);
|
|
39
41
|
};
|
|
40
42
|
|
|
41
|
-
var fAddAggregate = function (oChange, oControl, mPropertyBag,
|
|
43
|
+
var fAddAggregate = function (oChange, oControl, mPropertyBag, sChangeReason) {
|
|
42
44
|
return new Promise(function (resolve, reject) {
|
|
45
|
+
var bIsRevert = (sChangeReason === Util.REVERT);
|
|
43
46
|
var oModifier = mPropertyBag.modifier;
|
|
44
47
|
var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
|
|
45
48
|
Promise.resolve()
|
|
@@ -60,8 +63,9 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
60
63
|
});
|
|
61
64
|
};
|
|
62
65
|
|
|
63
|
-
var fRemoveAggregate = function (oChange, oControl, mPropertyBag,
|
|
66
|
+
var fRemoveAggregate = function (oChange, oControl, mPropertyBag, sChangeReason) {
|
|
64
67
|
return new Promise(function (resolve, reject) {
|
|
68
|
+
var bIsRevert = (sChangeReason === Util.REVERT);
|
|
65
69
|
var oModifier = mPropertyBag.modifier;
|
|
66
70
|
var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
|
|
67
71
|
Promise.resolve()
|
|
@@ -86,39 +90,16 @@ sap.ui.define(["sap/ui/fl/apply/api/FlexRuntimeInfoAPI"], function (FlexRuntimeI
|
|
|
86
90
|
};
|
|
87
91
|
|
|
88
92
|
var Aggregate = {};
|
|
89
|
-
Aggregate.removeAggregate = {
|
|
90
|
-
"changeHandler": {
|
|
91
|
-
applyChange: function (oChange, oControl, mPropertyBag) {
|
|
92
|
-
return fRemoveAggregate(oChange, oControl, mPropertyBag, false);
|
|
93
|
-
},
|
|
94
|
-
completeChangeContent: function (oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
95
|
-
// Not used, but needs to be there
|
|
96
|
-
},
|
|
97
|
-
revertChange: function (oChange, oControl, mPropertyBag) {
|
|
98
|
-
return fAddAggregate(oChange, oControl, mPropertyBag, true);
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"layers": {
|
|
102
|
-
"USER": true
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
93
|
|
|
106
|
-
Aggregate.addAggregate = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return fRemoveAggregate(oChange, oControl, mPropertyBag, true);
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"layers": {
|
|
119
|
-
"USER": true
|
|
120
|
-
}
|
|
121
|
-
};
|
|
94
|
+
Aggregate.addAggregate = Util.createChangeHandler({
|
|
95
|
+
apply: fAddAggregate,
|
|
96
|
+
revert: fRemoveAggregate
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
Aggregate.removeAggregate = Util.createChangeHandler({
|
|
100
|
+
apply: fRemoveAggregate,
|
|
101
|
+
revert: fAddAggregate
|
|
102
|
+
});
|
|
122
103
|
|
|
123
104
|
return Aggregate;
|
|
124
105
|
});
|
|
@@ -4,51 +4,33 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
|
|
7
|
+
"sap/ui/mdc/flexibility/Util"
|
|
8
|
+
], function(Util) {
|
|
8
9
|
"use strict";
|
|
9
10
|
|
|
11
|
+
var ChartTypeFlex = {};
|
|
10
12
|
|
|
13
|
+
var fSetChartType = function(oChange, oChart, mPropertyBag) {
|
|
14
|
+
var oModifier = mPropertyBag.modifier;
|
|
15
|
+
return Promise.resolve()
|
|
16
|
+
.then(oModifier.getProperty.bind(oModifier, oChart, "chartType"))
|
|
17
|
+
.then(function(vOldValue) {
|
|
18
|
+
// First store the old value for revert
|
|
19
|
+
oChange.setRevertData(vOldValue);
|
|
20
|
+
// Then set the new value
|
|
21
|
+
oModifier.setProperty(oChart, "chartType", oChange.getContent().chartType);
|
|
22
|
+
});
|
|
23
|
+
};
|
|
11
24
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
layers: {
|
|
16
|
-
USER: true
|
|
17
|
-
},
|
|
18
|
-
changeHandler: {
|
|
19
|
-
createChange: function(mPropertyBag) {
|
|
20
|
-
if (!mPropertyBag.control) {
|
|
21
|
-
throw new Error("Invalid control. The existing control object is mandatory");
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
selectorElement: mPropertyBag.control,
|
|
25
|
-
changeSpecificData: {
|
|
26
|
-
changeType: "setChartType",
|
|
27
|
-
content: {
|
|
28
|
-
chartType: mPropertyBag.chartType
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
completeChangeContent: function(oChange, mSpecificChangeInfo) {
|
|
34
|
-
},
|
|
35
|
-
applyChange: function(oChange, oChart, mPropertyBag) {
|
|
36
|
-
var oModifier = mPropertyBag.modifier;
|
|
37
|
-
return Promise.resolve()
|
|
38
|
-
.then(oModifier.getProperty.bind(oModifier, oChart, "chartType"))
|
|
39
|
-
.then(function(vOldValue) {
|
|
40
|
-
// First store the old value for revert
|
|
41
|
-
oChange.setRevertData(vOldValue);
|
|
42
|
-
// Then set the new value
|
|
43
|
-
oModifier.setProperty(oChart, "chartType", oChange.getContent().chartType);
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
revertChange: function(oChange, oChart, mPropertyBag) {
|
|
47
|
-
mPropertyBag.modifier.setProperty(oChart, "chartType", oChange.getRevertData());
|
|
48
|
-
oChange.resetRevertData();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
25
|
+
var fRevertChartType = function(oChange, oChart, mPropertyBag) {
|
|
26
|
+
mPropertyBag.modifier.setProperty(oChart, "chartType", oChange.getRevertData());
|
|
27
|
+
oChange.resetRevertData();
|
|
51
28
|
};
|
|
52
29
|
|
|
53
|
-
|
|
30
|
+
ChartTypeFlex.setChartType = Util.createChangeHandler({
|
|
31
|
+
apply: fSetChartType,
|
|
32
|
+
revert: fRevertChartType
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
return ChartTypeFlex;
|
|
54
36
|
});
|
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'sap/base/util/merge',
|
|
8
|
-
|
|
7
|
+
'sap/base/util/merge',
|
|
8
|
+
'sap/base/Log',
|
|
9
|
+
'sap/ui/mdc/condition/FilterOperatorUtil',
|
|
10
|
+
'sap/ui/mdc/flexibility/Util'
|
|
11
|
+
], function(merge, Log, FilterOperatorUtil, Util) {
|
|
9
12
|
"use strict";
|
|
10
13
|
|
|
11
14
|
/*
|
|
@@ -44,9 +47,11 @@ sap.ui.define([
|
|
|
44
47
|
return oController ? oController.getFilterControl() : null;
|
|
45
48
|
};
|
|
46
49
|
|
|
47
|
-
var fAddCondition = function(oChange,
|
|
50
|
+
var fAddCondition = function(oChange, oControl, mPropertyBag, sChangeReason) {
|
|
48
51
|
|
|
49
52
|
var oFilterControl = fDetermineFilterControl(oControl);
|
|
53
|
+
var bIsRevert = (sChangeReason === Util.REVERT);
|
|
54
|
+
var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
|
|
50
55
|
|
|
51
56
|
if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
|
|
52
57
|
oFilterControl.applyConditionsAfterChangesApplied(oControl);
|
|
@@ -73,6 +78,14 @@ sap.ui.define([
|
|
|
73
78
|
aConditions = mConditionsData[oChangeContent.name];
|
|
74
79
|
}
|
|
75
80
|
|
|
81
|
+
if (!bIsRevert) {
|
|
82
|
+
// Set revert data on the change
|
|
83
|
+
oChange.setRevertData({
|
|
84
|
+
name: oChangeContent.name,
|
|
85
|
+
condition: oChangeContent.condition
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
76
89
|
var nConditionIdx = FilterOperatorUtil.indexOfCondition(oChangeContent.condition, aConditions);
|
|
77
90
|
if (nConditionIdx < 0) {
|
|
78
91
|
aConditions.push(oChangeContent.condition);
|
|
@@ -80,13 +93,6 @@ sap.ui.define([
|
|
|
80
93
|
// 'filterConditions' property needs to be updated for change selector
|
|
81
94
|
oModifier.setProperty(oControl, "filterConditions", mConditionsData);
|
|
82
95
|
|
|
83
|
-
if (!bIsRevert) {
|
|
84
|
-
// Set revert data on the change
|
|
85
|
-
oChange.setRevertData({
|
|
86
|
-
name: oChangeContent.name,
|
|
87
|
-
condition: oChangeContent.condition
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
96
|
|
|
91
97
|
return oModifier.getProperty(oControl, "delegate")
|
|
92
98
|
.then(function(oDelegate){
|
|
@@ -102,6 +108,9 @@ sap.ui.define([
|
|
|
102
108
|
}
|
|
103
109
|
})
|
|
104
110
|
.finally(function() {
|
|
111
|
+
if (bIsRevert) {
|
|
112
|
+
oChange.resetRevertData();
|
|
113
|
+
}
|
|
105
114
|
if (oFilterControl && oFilterControl.addCondition) {
|
|
106
115
|
return oFilterControl.addCondition(oChangeContent.name, oChangeContent.condition);
|
|
107
116
|
}
|
|
@@ -111,9 +120,11 @@ sap.ui.define([
|
|
|
111
120
|
});
|
|
112
121
|
};
|
|
113
122
|
|
|
114
|
-
var fRemoveCondition = function(oChange,
|
|
123
|
+
var fRemoveCondition = function(oChange, oControl, mPropertyBag, sChangeReason) {
|
|
115
124
|
|
|
116
125
|
var oFilterControl = fDetermineFilterControl(oControl);
|
|
126
|
+
var bIsRevert = (sChangeReason === Util.REVERT);
|
|
127
|
+
var oChangeContent = bIsRevert ? oChange.getRevertData() : oChange.getContent();
|
|
117
128
|
|
|
118
129
|
if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
|
|
119
130
|
oFilterControl.applyConditionsAfterChangesApplied(oControl);
|
|
@@ -136,6 +147,14 @@ sap.ui.define([
|
|
|
136
147
|
}
|
|
137
148
|
}
|
|
138
149
|
|
|
150
|
+
if (!bIsRevert) {
|
|
151
|
+
// Set revert data on the change
|
|
152
|
+
oChange.setRevertData({
|
|
153
|
+
name: oChangeContent.name,
|
|
154
|
+
condition: oChangeContent.condition
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
139
158
|
if (aConditions && (aConditions.length > 0)) {
|
|
140
159
|
|
|
141
160
|
nDelIndex = FilterOperatorUtil.indexOfCondition(oChangeContent.condition, aConditions);
|
|
@@ -147,14 +166,6 @@ sap.ui.define([
|
|
|
147
166
|
// 'filterConditions' property needs to be updated for change selector
|
|
148
167
|
oModifier.setProperty(oControl, "filterConditions", mConditionsData);
|
|
149
168
|
|
|
150
|
-
if (!bIsRevert) {
|
|
151
|
-
// Set revert data on the change
|
|
152
|
-
oChange.setRevertData({
|
|
153
|
-
name: oChangeContent.name,
|
|
154
|
-
condition: oChangeContent.condition
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
169
|
return oModifier.getProperty(oControl, "delegate")
|
|
159
170
|
.then(function(oDelegate){
|
|
160
171
|
return fnGetDelegate(oDelegate.name);
|
|
@@ -169,6 +180,9 @@ sap.ui.define([
|
|
|
169
180
|
}
|
|
170
181
|
})
|
|
171
182
|
.finally(function() {
|
|
183
|
+
if (bIsRevert) {
|
|
184
|
+
oChange.resetRevertData();
|
|
185
|
+
}
|
|
172
186
|
if (oFilterControl && oFilterControl.removeCondition) {
|
|
173
187
|
return oFilterControl.removeCondition(oChangeContent.name, oChangeContent.condition);
|
|
174
188
|
}
|
|
@@ -179,46 +193,17 @@ sap.ui.define([
|
|
|
179
193
|
});
|
|
180
194
|
};
|
|
181
195
|
|
|
182
|
-
var
|
|
183
|
-
|
|
184
|
-
oConditionFlex.addCondition = {
|
|
185
|
-
"changeHandler": {
|
|
186
|
-
applyChange: function(oChange, oControl, mPropertyBag) {
|
|
187
|
-
return fAddCondition(oChange, oChange.getContent(), oControl, mPropertyBag, false);
|
|
188
|
-
},
|
|
189
|
-
completeChangeContent: function(oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
190
|
-
// TODO
|
|
191
|
-
},
|
|
192
|
-
revertChange: function(oChange, oControl, mPropertyBag) {
|
|
193
|
-
return fRemoveCondition(oChange, oChange.getRevertData(), oControl, mPropertyBag, true).then(function() {
|
|
194
|
-
oChange.resetRevertData();
|
|
195
|
-
});
|
|
196
|
+
var ConditionFlex = {};
|
|
196
197
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
oConditionFlex.removeCondition = {
|
|
204
|
-
"changeHandler": {
|
|
205
|
-
applyChange: function(oChange, oControl, mPropertyBag) {
|
|
206
|
-
return fRemoveCondition(oChange, oChange.getContent(), oControl, mPropertyBag, false);
|
|
207
|
-
},
|
|
208
|
-
completeChangeContent: function(oChange, mChangeSpecificInfo, mPropertyBag) {
|
|
209
|
-
// TODO
|
|
210
|
-
},
|
|
211
|
-
revertChange: function(oChange, oControl, mPropertyBag) {
|
|
212
|
-
return fAddCondition(oChange, oChange.getRevertData(), oControl, mPropertyBag, true).then(function() {
|
|
213
|
-
oChange.resetRevertData();
|
|
214
|
-
});
|
|
198
|
+
ConditionFlex.addCondition = Util.createChangeHandler({
|
|
199
|
+
apply: fAddCondition,
|
|
200
|
+
revert: fRemoveCondition
|
|
201
|
+
});
|
|
215
202
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
};
|
|
203
|
+
ConditionFlex.removeCondition = Util.createChangeHandler({
|
|
204
|
+
apply: fRemoveCondition,
|
|
205
|
+
revert: fAddCondition
|
|
206
|
+
});
|
|
222
207
|
|
|
223
|
-
return
|
|
208
|
+
return ConditionFlex;
|
|
224
209
|
});
|