@openui5/sap.ui.mdc 1.96.2 → 1.98.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 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +2 -2
- package/src/sap/ui/mdc/ActionToolbar.js +3 -8
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +2 -2
- package/src/sap/ui/mdc/Chart.js +1017 -1797
- package/src/sap/ui/mdc/ChartDelegate.js +430 -271
- package/src/sap/ui/mdc/ChartRenderer.js +74 -78
- package/src/sap/ui/mdc/Control.js +2 -2
- package/src/sap/ui/mdc/Delegate.js +1 -1
- package/src/sap/ui/mdc/Element.js +2 -2
- package/src/sap/ui/mdc/Field.js +4 -3
- package/src/sap/ui/mdc/FilterBar.js +4 -3
- package/src/sap/ui/mdc/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +26 -9
- package/src/sap/ui/mdc/Link.js +5 -4
- package/src/sap/ui/mdc/LinkDelegate.js +2 -2
- package/src/sap/ui/mdc/MultiValueField.js +3 -2
- package/src/sap/ui/mdc/Table.js +174 -142
- package/src/sap/ui/mdc/TableDelegate.js +31 -16
- package/src/sap/ui/mdc/ValueHelp.js +52 -16
- package/src/sap/ui/mdc/ValueHelpDelegate.js +21 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +9 -9
- package/src/sap/ui/mdc/chart/ChartSettings.js +1 -1
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +11 -11
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +49 -53
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +4 -4
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +39 -250
- package/src/sap/ui/mdc/chart/Item.js +63 -93
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +4 -4
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +18 -22
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionConverter.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionModel.js +2 -2
- package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +2 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +7 -3
- package/src/sap/ui/mdc/condition/Operator.js +10 -10
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
- package/src/sap/ui/mdc/condition/RangeOperator.js +2 -2
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +78 -6
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +97 -0
- package/src/sap/ui/mdc/designtime/field/FieldBase.designtime.js +104 -0
- package/src/sap/ui/mdc/designtime/field/FilterField.designtime.js +22 -0
- package/src/sap/ui/mdc/designtime/field/MultiValueField.designtime.js +23 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +4 -1
- package/src/sap/ui/mdc/designtime/library.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/link/Panel.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/p13n/PersistenceProvider.designtime.js +1 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
- package/src/sap/ui/mdc/enum/ActionToolbarActionAlignment.js +1 -1
- package/src/sap/ui/mdc/enum/BaseType.js +1 -1
- package/src/sap/ui/mdc/enum/ConditionValidated.js +1 -1
- package/src/sap/ui/mdc/enum/ContentMode.js +1 -1
- package/src/sap/ui/mdc/enum/EditMode.js +1 -1
- package/src/sap/ui/mdc/enum/FieldDisplay.js +1 -1
- package/src/sap/ui/mdc/enum/OutParameterMode.js +1 -1
- package/src/sap/ui/mdc/enum/PersistenceMode.js +1 -1
- package/src/sap/ui/mdc/enum/SelectType.js +1 -1
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/ConditionType.js +8 -8
- package/src/sap/ui/mdc/field/ConditionsType.js +8 -8
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +2 -2
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +2 -2
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +59 -22
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +84 -53
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +1 -4
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldHelpBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +2 -2
- package/src/sap/ui/mdc/field/FieldInputRenderer.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +2 -2
- package/src/sap/ui/mdc/field/FieldMultiInputRenderer.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +8 -8
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +21 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -2
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/InParameter.js +2 -2
- package/src/sap/ui/mdc/field/ListFieldHelp.js +11 -3
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +2 -2
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +2 -2
- package/src/sap/ui/mdc/field/OutParameter.js +2 -2
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +3 -2
- package/src/sap/ui/mdc/field/content/BooleanContent.js +2 -2
- package/src/sap/ui/mdc/field/content/ContentFactory.js +24 -22
- package/src/sap/ui/mdc/field/content/DateContent.js +129 -3
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +10 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +2 -2
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/field/content/SearchContent.js +1 -1
- package/src/sap/ui/mdc/field/content/TimeContent.js +9 -2
- package/src/sap/ui/mdc/field/content/UnitContent.js +24 -5
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +326 -141
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +9 -3
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +4 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +7 -7
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +3 -3
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +5 -4
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +10 -4
- package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +3 -3
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +1 -1
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -2
- package/src/sap/ui/mdc/library.js +50 -39
- package/src/sap/ui/mdc/link/ContactDetails.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +2 -2
- package/src/sap/ui/mdc/link/Factory.js +3 -3
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +2 -2
- package/src/sap/ui/mdc/link/LinkItem.js +2 -2
- package/src/sap/ui/mdc/link/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +141 -179
- package/src/sap/ui/mdc/link/PanelItem.js +2 -2
- package/src/sap/ui/mdc/link/PanelListItem.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +2 -2
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +2 -2
- package/src/sap/ui/mdc/messagebundle.properties +19 -4
- package/src/sap/ui/mdc/messagebundle_ar.properties +13 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +26 -17
- package/src/sap/ui/mdc/messagebundle_cy.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +18 -9
- package/src/sap/ui/mdc/messagebundle_de.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +17 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -19
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +17 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +24 -15
- package/src/sap/ui/mdc/messagebundle_et.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +17 -8
- package/src/sap/ui/mdc/messagebundle_fr.properties +15 -6
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +26 -17
- package/src/sap/ui/mdc/messagebundle_iw.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +15 -6
- package/src/sap/ui/mdc/messagebundle_lt.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +16 -7
- package/src/sap/ui/mdc/messagebundle_no.properties +19 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +18 -9
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +13 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_tr.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +12 -3
- package/src/sap/ui/mdc/messagebundle_vi.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +11 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +3 -4
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +3 -3
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +17 -12
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +3 -4
- package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +30 -484
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +6 -6
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FieldValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +158 -114
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +137 -49
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +56 -19
- package/src/sap/ui/mdc/p13n/FlexUtil.js +12 -119
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +3 -3
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +22 -11
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +41 -7
- package/src/sap/ui/mdc/p13n/UIManager.js +16 -13
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +5 -2
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +10 -7
- package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +3 -3
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +20 -4
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1093 -49
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +7 -3
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -6
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +157 -12
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +16 -27
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +7 -6
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +7 -6
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +11 -18
- package/src/sap/ui/mdc/table/Column.js +36 -11
- package/src/sap/ui/mdc/table/CreationRow.js +15 -14
- package/src/sap/ui/mdc/table/GridTableType.js +14 -14
- package/src/sap/ui/mdc/table/PropertyHelper.js +65 -28
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +27 -30
- package/src/sap/ui/mdc/table/RowSettings.js +8 -6
- package/src/sap/ui/mdc/table/TableSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +7 -7
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +16 -72
- package/src/sap/ui/mdc/themes/base/Chart.less +3 -0
- package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +12 -1
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -1
- package/src/sap/ui/mdc/ui/Container.js +3 -3
- package/src/sap/ui/mdc/ui/ContainerItem.js +3 -3
- package/src/sap/ui/mdc/util/Common.js +2 -2
- package/src/sap/ui/mdc/util/DateUtil.js +2 -2
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
- package/src/sap/ui/mdc/util/IdentifierUtil.js +2 -2
- package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +149 -326
- package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
- package/src/sap/ui/mdc/util/loadModules.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +13 -9
- package/src/sap/ui/mdc/valuehelp/Popover.js +15 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +34 -2
- package/src/sap/ui/mdc/valuehelp/base/Content.js +37 -6
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +3 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +44 -16
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +3 -2
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +3 -2
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +29 -33
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +12 -6
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +44 -9
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +58 -27
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -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 +5 -5
- 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 +365 -236
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- 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 -1171
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +0 -111
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +0 -322
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +0 -133
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +0 -203
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
*
|
|
30
30
|
* @namespace
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.98.0
|
|
33
33
|
* @since 1.61.0
|
|
34
34
|
* @alias sap.ui.mdc.condition.Condition
|
|
35
35
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
*
|
|
33
33
|
* @namespace
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.98.0
|
|
36
36
|
* @private
|
|
37
37
|
* @ui5-restricted sap.ui.mdc
|
|
38
38
|
* @experimental As of version 1.74
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.model.json.JSONModel
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.98.0
|
|
39
39
|
* @since 1.48.0
|
|
40
40
|
* @alias sap.ui.mdc.condition.ConditionModel
|
|
41
41
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -24,7 +24,7 @@ function(
|
|
|
24
24
|
*
|
|
25
25
|
* @namespace
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.98.0
|
|
28
28
|
* @since 1.78.0
|
|
29
29
|
* @alias sap.ui.mdc.condition.FilterConverter
|
|
30
30
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -52,7 +52,7 @@ function(
|
|
|
52
52
|
*
|
|
53
53
|
* @namespace
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.98.0
|
|
56
56
|
* @since 1.73.0
|
|
57
57
|
* @alias sap.ui.mdc.condition.FilterOperatorUtil
|
|
58
58
|
*
|
|
@@ -66,6 +66,7 @@ function(
|
|
|
66
66
|
_mOperators: {
|
|
67
67
|
equal: new Operator({
|
|
68
68
|
name: "EQ",
|
|
69
|
+
alias: "DATE",
|
|
69
70
|
filterOperator: ModelOperator.EQ,
|
|
70
71
|
tokenParse: "^=([^=].*)$",
|
|
71
72
|
tokenFormat: "{1} ({0})", // all placeholder should use the {x} format - the text could be store in the resourcebundel file.
|
|
@@ -202,6 +203,7 @@ function(
|
|
|
202
203
|
}),
|
|
203
204
|
between: new Operator({
|
|
204
205
|
name: "BT",
|
|
206
|
+
alias: "DATERANGE",
|
|
205
207
|
filterOperator: ModelOperator.BT,
|
|
206
208
|
tokenParse: "^([^!].*)\\.\\.\\.(.+)$", // TODO: does this work?? At least also matches crap like ".....". I guess validation of value types needs to get rid of those.
|
|
207
209
|
tokenFormat: "{0}...{1}",
|
|
@@ -270,6 +272,7 @@ function(
|
|
|
270
272
|
}),
|
|
271
273
|
lessEqual: new Operator({
|
|
272
274
|
name: "LE",
|
|
275
|
+
alias: "TO",
|
|
273
276
|
filterOperator: ModelOperator.LE,
|
|
274
277
|
tokenParse: "^<=(.+)$",
|
|
275
278
|
tokenFormat: "<={0}",
|
|
@@ -285,6 +288,7 @@ function(
|
|
|
285
288
|
}),
|
|
286
289
|
greaterEqual: new Operator({
|
|
287
290
|
name: "GE",
|
|
291
|
+
alias: "FROM",
|
|
288
292
|
filterOperator: ModelOperator.GE,
|
|
289
293
|
tokenParse: "^>=(.+)$",
|
|
290
294
|
tokenFormat: ">={0}",
|
|
@@ -679,7 +683,7 @@ function(
|
|
|
679
683
|
}),
|
|
680
684
|
specificMonth: new RangeOperator({
|
|
681
685
|
name: "SPECIFICMONTH",
|
|
682
|
-
valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0,
|
|
686
|
+
valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0, maximum: 11 }}],
|
|
683
687
|
paramTypes: ["(.+)"],
|
|
684
688
|
additionalInfo: "",
|
|
685
689
|
// defaultValues: [0],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* @param {string} [oConfiguration.additionalInfo] additionalInfo text for the operator. Will be shown in the operator suggest as second column. If not used (undefined) the Include or Exclude information of the operator is used.
|
|
84
84
|
* @constructor
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.98.0
|
|
87
87
|
* @private
|
|
88
88
|
* @ui5-restricted sap.fe
|
|
89
89
|
* @MDC_PUBLIC_CANDIDATE
|
|
@@ -198,15 +198,15 @@ sap.ui.define([
|
|
|
198
198
|
this.exclude = !!oConfiguration.exclude; // to have always a boolean value
|
|
199
199
|
this.validateInput = !!oConfiguration.validateInput; // to have always a boolean value
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
if (oConfiguration.group) {
|
|
202
|
+
this.group = oConfiguration.group;
|
|
203
|
+
} else {
|
|
204
|
+
this.group = {id: !this.exclude ? "1" : "2"};
|
|
205
|
+
if (!this.group.text) {
|
|
206
|
+
this.group.text = oMessageBundle.getText("VALUEHELP.OPERATOR.GROUP" + this.group.id);
|
|
207
|
+
}
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
}
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
/**
|
|
@@ -0,0 +1,437 @@
|
|
|
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
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
'sap/m/DynamicDateOption',
|
|
9
|
+
'sap/m/DynamicDateValueHelpUIType',
|
|
10
|
+
'sap/m/Input',
|
|
11
|
+
'sap/m/DatePicker',
|
|
12
|
+
'sap/ui/mdc/condition/Operator',
|
|
13
|
+
'sap/ui/mdc/util/DateUtil',
|
|
14
|
+
'sap/ui/model/json/JSONModel',
|
|
15
|
+
'sap/ui/model/FormatException',
|
|
16
|
+
'sap/ui/model/ParseException',
|
|
17
|
+
'sap/ui/model/ValidateException',
|
|
18
|
+
'sap/ui/core/library'
|
|
19
|
+
], function(
|
|
20
|
+
DynamicDateOption,
|
|
21
|
+
DynamicDateValueHelpUIType,
|
|
22
|
+
Input,
|
|
23
|
+
DatePicker,
|
|
24
|
+
Operator,
|
|
25
|
+
DateUtil,
|
|
26
|
+
JSONModel,
|
|
27
|
+
FormatException,
|
|
28
|
+
ParseException,
|
|
29
|
+
ValidateException,
|
|
30
|
+
coreLibrary
|
|
31
|
+
) {
|
|
32
|
+
"use strict";
|
|
33
|
+
|
|
34
|
+
var ValueState = coreLibrary.ValueState;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Constructor for a new OperatorDynamicDateOption.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
40
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
41
|
+
* @param {string} [mSettings.key] One of the predefined keys identifying the standard dynamic date
|
|
42
|
+
*
|
|
43
|
+
* @class
|
|
44
|
+
* Maps an {@link sap.ui.mdc.condition.Operator Operator} to a {@link sap.m.DynamicDateOption DynamicDateOption}.
|
|
45
|
+
* @extends sap.m.DynamicDateOption
|
|
46
|
+
*
|
|
47
|
+
* @author SAP SE
|
|
48
|
+
* @version 1.98.0
|
|
49
|
+
*
|
|
50
|
+
* @private
|
|
51
|
+
* @ui5-restricted sap.ui.mdc
|
|
52
|
+
* @experimental As of version 1.96
|
|
53
|
+
* @since 1.96
|
|
54
|
+
* @alias sap.ui.mdc.condition.OperatorDynamicDateOption
|
|
55
|
+
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
56
|
+
*/
|
|
57
|
+
var OperatorDynamicDateOption = DynamicDateOption.extend("sap.ui.mdc.condition.OperatorDynamicDateOption", /** @lends sap.ui.mdc.condition.OperatorDynamicDateOption.prototype */ {
|
|
58
|
+
metadata: {
|
|
59
|
+
library: "sap.ui.mdc",
|
|
60
|
+
properties: {
|
|
61
|
+
/**
|
|
62
|
+
* Operator used in the corresponding filter field.
|
|
63
|
+
*
|
|
64
|
+
* <b>Note:</b> A condition must be an instance of {@link sap.ui.mdc.condition.Operator Operator}.
|
|
65
|
+
*/
|
|
66
|
+
operator: { type: "object" },
|
|
67
|
+
/**
|
|
68
|
+
* Data type of the corresponding filter field.
|
|
69
|
+
*
|
|
70
|
+
* <b>Note:</b> A condition must be an instance of {@link sap.ui.model.Type Type}.
|
|
71
|
+
*/
|
|
72
|
+
type: { type: "object" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
OperatorDynamicDateOption.prototype.exit = function() {
|
|
78
|
+
if (this._oModel) {
|
|
79
|
+
this._oModel.destroy();
|
|
80
|
+
this._oModel = undefined;
|
|
81
|
+
this._mChangeHandler = undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this._aUITypes) {
|
|
85
|
+
for (var i = 0; i < this._aUITypes.length; i++) {
|
|
86
|
+
this._aUITypes[i].destroy();
|
|
87
|
+
}
|
|
88
|
+
this._aUITypes = undefined;
|
|
89
|
+
}
|
|
90
|
+
// _removeControls.call(this);
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
OperatorDynamicDateOption.prototype.validateProperty = function(sPropertyName, oValue) {
|
|
94
|
+
|
|
95
|
+
if (sPropertyName === "operator" && oValue && (typeof oValue !== "object" || !oValue.isA || !oValue.isA("sap.ui.mdc.condition.Operator"))) {
|
|
96
|
+
throw new Error("\"" + oValue + "\" is of type " + typeof oValue + ", expected " +
|
|
97
|
+
"sap.ui.mdc.condition.Operator for property \"" + sPropertyName + "\" of " + this);
|
|
98
|
+
} else if (sPropertyName === "type" && oValue && (typeof oValue !== "object" || !oValue.isA || !oValue.isA("sap.ui.model.Type"))) {
|
|
99
|
+
throw new Error("\"" + oValue + "\" is of type " + typeof oValue + ", expected " +
|
|
100
|
+
"sap.ui.model.Type for property \"" + sPropertyName + "\" of " + this);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return DynamicDateOption.prototype.validateProperty.apply(this, arguments);
|
|
104
|
+
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
OperatorDynamicDateOption.prototype.getKey = function() {
|
|
108
|
+
|
|
109
|
+
var oOperator = this.getOperator();
|
|
110
|
+
return oOperator.name;
|
|
111
|
+
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
OperatorDynamicDateOption.prototype.isRange = function() {
|
|
115
|
+
|
|
116
|
+
var oOperator = this.getOperator();
|
|
117
|
+
return oOperator.isA("sap.ui.mdc.condition.RangeOperator");
|
|
118
|
+
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
OperatorDynamicDateOption.prototype.getText = function(oControl) {
|
|
122
|
+
|
|
123
|
+
var oOperator = this.getOperator();
|
|
124
|
+
return oOperator.longText;
|
|
125
|
+
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
OperatorDynamicDateOption.prototype.getValueHelpUITypes = function(oControl) {
|
|
129
|
+
|
|
130
|
+
if (!this._aUITypes) {
|
|
131
|
+
var oOperator = this.getOperator();
|
|
132
|
+
var oType = this.getType();
|
|
133
|
+
this._aUITypes = [];
|
|
134
|
+
|
|
135
|
+
for (var i = 0; i < oOperator.valueTypes.length; i++) {
|
|
136
|
+
var vType = oOperator.valueTypes[i];
|
|
137
|
+
if (vType === Operator.ValueType.Self) {
|
|
138
|
+
this._aUITypes.push(new DynamicDateValueHelpUIType({
|
|
139
|
+
type: "date"
|
|
140
|
+
}));
|
|
141
|
+
} else if (vType === Operator.ValueType.Static) {
|
|
142
|
+
continue;
|
|
143
|
+
} else {
|
|
144
|
+
oType = oOperator._createLocalType(vType, oType);
|
|
145
|
+
if (oType.isA("sap.ui.model.type.Integer") || oType.isA("sap.ui.model.odata.type.Int")) { // TODO: better check for Integer
|
|
146
|
+
this._aUITypes.push(new DynamicDateValueHelpUIType({
|
|
147
|
+
type: "int"
|
|
148
|
+
}));
|
|
149
|
+
} else {
|
|
150
|
+
this._aUITypes.push(new DynamicDateValueHelpUIType({
|
|
151
|
+
type: "custom"
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return this._aUITypes;
|
|
159
|
+
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
OperatorDynamicDateOption.prototype.createValueHelpUI = function(oControl, fnControlsUpdated) {
|
|
163
|
+
var oValue = oControl.getValue();
|
|
164
|
+
var oOperator = this.getOperator();
|
|
165
|
+
var oType = this.getType();
|
|
166
|
+
var sKey = this.getKey();
|
|
167
|
+
var sControlId = oControl.getId();
|
|
168
|
+
|
|
169
|
+
if (!oValue || oValue.operator !== sKey) {
|
|
170
|
+
// initialize value
|
|
171
|
+
oValue = {operator: sKey, values: []};
|
|
172
|
+
if (oOperator.valueDefaults) {
|
|
173
|
+
oValue.values = oOperator.valueDefaults;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// remove old controls as they are destroyed after usage from DynamicDateRange control
|
|
178
|
+
_removeControls.call(this, oControl);
|
|
179
|
+
if (!oControl.aControlsByParameters) {
|
|
180
|
+
oControl.aControlsByParameters = {};
|
|
181
|
+
}
|
|
182
|
+
oControl.aControlsByParameters[sKey] = [];
|
|
183
|
+
|
|
184
|
+
var fnChangeHandler = function(oEvent) {
|
|
185
|
+
fnControlsUpdated(this);
|
|
186
|
+
}.bind(this);
|
|
187
|
+
|
|
188
|
+
for (var i = 0; i < oOperator.valueTypes.length; i++) {
|
|
189
|
+
var vType = oOperator.valueTypes[i];
|
|
190
|
+
var oDate;
|
|
191
|
+
|
|
192
|
+
if (!oControl.aControlsByParameters[sKey][i]) {
|
|
193
|
+
if (oOperator.createControl) {
|
|
194
|
+
// use internal model to bind the control
|
|
195
|
+
if (!this._oModel) {
|
|
196
|
+
fnChangeHandler = function(oEvent) {
|
|
197
|
+
var sPath = oEvent.getParameter("path");
|
|
198
|
+
var aParts = sPath.split("/");
|
|
199
|
+
var sControlId = aParts[0] || aParts[1];
|
|
200
|
+
if (this._mChangeHandler && this._mChangeHandler[sControlId]) {
|
|
201
|
+
this._mChangeHandler[sControlId](this);
|
|
202
|
+
}
|
|
203
|
+
}.bind(this);
|
|
204
|
+
this._oModel = new JSONModel();
|
|
205
|
+
this._oModel.attachPropertyChange({}, fnChangeHandler, this);
|
|
206
|
+
this._mChangeHandler = {};
|
|
207
|
+
}
|
|
208
|
+
var oModelData = this._oModel.getData();
|
|
209
|
+
oModelData[sControlId] = { // only change for current control
|
|
210
|
+
value0: oValue && oValue.values[0],
|
|
211
|
+
value1: oValue && oValue.values[1]
|
|
212
|
+
};
|
|
213
|
+
this._mChangeHandler[sControlId] = fnControlsUpdated;
|
|
214
|
+
if (vType !== Operator.ValueType.Self) {
|
|
215
|
+
oType = oOperator._createLocalType(vType, oType);
|
|
216
|
+
}
|
|
217
|
+
var oInputControl = oOperator.createControl(oType, "internal>/" + sControlId + "/value" + i, i, sControlId + "-" + i);
|
|
218
|
+
oInputControl.setModel(this._oModel, "internal");
|
|
219
|
+
oControl.aControlsByParameters[sKey].push(oInputControl);
|
|
220
|
+
} else if (vType === Operator.ValueType.Self) {
|
|
221
|
+
// TODO: DatePicker or Calendar?
|
|
222
|
+
// convert internal value to date
|
|
223
|
+
if (oValue && oValue.values[i]) {
|
|
224
|
+
oDate = DateUtil.typeToUniversalDate(oValue.values[i], oType);
|
|
225
|
+
oDate = DateUtil.utcToLocal(oDate);
|
|
226
|
+
}
|
|
227
|
+
var oFormatOptions = oType.getFormatOptions();
|
|
228
|
+
|
|
229
|
+
var oDatePicker = new DatePicker(sControlId + "-" + i, {
|
|
230
|
+
dateValue: oDate,
|
|
231
|
+
displayFormat: oFormatOptions.style || oFormatOptions.pattern,
|
|
232
|
+
displayFormatType: oFormatOptions.calendarType,
|
|
233
|
+
change: fnChangeHandler
|
|
234
|
+
});
|
|
235
|
+
oControl.aControlsByParameters[sKey].push(oDatePicker);
|
|
236
|
+
} else if (typeof vType === "object"){
|
|
237
|
+
// just use Input
|
|
238
|
+
var oInput = new Input(sControlId + "-" + i, {
|
|
239
|
+
value: oValue && oValue.values[i],
|
|
240
|
+
change: fnChangeHandler
|
|
241
|
+
});
|
|
242
|
+
oControl.aControlsByParameters[sKey].push(oInput);
|
|
243
|
+
}
|
|
244
|
+
// } else // update values
|
|
245
|
+
// if (oOperator.createControl) {
|
|
246
|
+
// this._oModel.setProperty("/value0", oValue && oValue.values[0]);
|
|
247
|
+
// this._oModel.setProperty("/value1", oValue && oValue.values[1]);
|
|
248
|
+
// } else if (vType === Operator.ValueType.Self) {
|
|
249
|
+
// if (oValue && oValue.values[i]) {
|
|
250
|
+
// oDate = DateUtil.typeToUniversalDate(oValue.values[i], oType);
|
|
251
|
+
// oDate = DateUtil.utcToLocal(oDate);
|
|
252
|
+
// }
|
|
253
|
+
// oControl.aControlsByParameters[sKey][i].setDateValue(oDate);
|
|
254
|
+
// } else if (typeof vType === "object"){
|
|
255
|
+
// oControl.aControlsByParameters[sKey][i].setValue(oValue && oValue.values[i]);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return oControl.aControlsByParameters[sKey];
|
|
261
|
+
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
OperatorDynamicDateOption.prototype.validateValueHelpUI = function(oControl) {
|
|
265
|
+
|
|
266
|
+
var sKey = this.getKey();
|
|
267
|
+
var oOperator = this.getOperator();
|
|
268
|
+
var oType = this.getType();
|
|
269
|
+
var oOutput;
|
|
270
|
+
var bValid = true;
|
|
271
|
+
var sValueState = ValueState.None;
|
|
272
|
+
var sValueStateText;
|
|
273
|
+
var i = 0;
|
|
274
|
+
|
|
275
|
+
try {
|
|
276
|
+
oOutput = this.getValueHelpOutput(oControl); // catch ParseExeptions
|
|
277
|
+
for (i = 0; i < oOutput.values.length; i++) {
|
|
278
|
+
var vValue = oOutput.values[i];
|
|
279
|
+
if (vValue === undefined || vValue === null) { // TODO: might be operator dependent
|
|
280
|
+
bValid = false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
oOperator.validate(oOutput.values, oType);
|
|
284
|
+
} catch (oException) {
|
|
285
|
+
bValid = false;
|
|
286
|
+
sValueState = ValueState.Error;
|
|
287
|
+
sValueStateText = oException.message;
|
|
288
|
+
if (oException && !(oException instanceof ParseException) && !(oException instanceof ValidateException)) {
|
|
289
|
+
throw oException; // unknown error -> just raise it
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (!oOperator.createControl) {
|
|
294
|
+
// custom control is bound, so input is checked in binding
|
|
295
|
+
for (i = 0; i < oControl.aControlsByParameters[sKey].length; i++) {
|
|
296
|
+
var oInputControl = oControl.aControlsByParameters[sKey][i];
|
|
297
|
+
if (oInputControl.setValueState) {
|
|
298
|
+
oInputControl.setValueState(sValueState);
|
|
299
|
+
oInputControl.setValueStateText(sValueStateText);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return bValid;
|
|
305
|
+
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
OperatorDynamicDateOption.prototype.getValueHelpOutput = function(oControl) {
|
|
309
|
+
|
|
310
|
+
var sKey = this.getKey();
|
|
311
|
+
var oResult = {operator: sKey, values: []};
|
|
312
|
+
var oOperator = this.getOperator();
|
|
313
|
+
var oType = this.getType();
|
|
314
|
+
var sControlId = oControl.getId();
|
|
315
|
+
|
|
316
|
+
for (var i = 0; i < oOperator.valueTypes.length; i++) {
|
|
317
|
+
var oInputControl = oControl.aControlsByParameters[sKey][i];
|
|
318
|
+
if (oInputControl) {
|
|
319
|
+
var vValue;
|
|
320
|
+
if (oOperator.createControl) {
|
|
321
|
+
// use value from internal Model
|
|
322
|
+
vValue = this._oModel ? this._oModel.getProperty("/" + sControlId + "/value" + i) : null;
|
|
323
|
+
} else if (oOperator.valueTypes[i] === Operator.ValueType.Self) {
|
|
324
|
+
// DatePicker used -> get Date Value
|
|
325
|
+
if (!oInputControl.isValidValue()) {
|
|
326
|
+
throw new ParseException(); // to show error state
|
|
327
|
+
}
|
|
328
|
+
vValue = oInputControl.getDateValue();
|
|
329
|
+
if (vValue) {
|
|
330
|
+
// parse to Types format
|
|
331
|
+
vValue = DateUtil.localToUtc(vValue);
|
|
332
|
+
vValue = DateUtil.universalDateToType(vValue, oType);
|
|
333
|
+
}
|
|
334
|
+
} else {
|
|
335
|
+
vValue = oInputControl.getValue();
|
|
336
|
+
oType = oOperator._createLocalType(oOperator.valueTypes[i], oType);
|
|
337
|
+
// parse String to types value
|
|
338
|
+
vValue = oType.parseValue(vValue, "string");
|
|
339
|
+
}
|
|
340
|
+
oResult.values.push(vValue);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return oResult;
|
|
345
|
+
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
OperatorDynamicDateOption.prototype.getGroupHeader = function() {
|
|
349
|
+
var oOperator = this.getOperator();
|
|
350
|
+
if (oOperator.group && oOperator.group.text) {
|
|
351
|
+
return oOperator.group.text;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return DynamicDateOption.prototype.getGroupHeader.apply(this, arguments); // "Default group header still used!"; //TODO how to create a custom Option inside an existing group?
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
OperatorDynamicDateOption.prototype.getGroup = function() {
|
|
358
|
+
var oOperator = this.getOperator();
|
|
359
|
+
if (oOperator.group) {
|
|
360
|
+
return oOperator.group.id;
|
|
361
|
+
}
|
|
362
|
+
return DynamicDateOption.prototype.getGroup.apply(this, arguments);
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
OperatorDynamicDateOption.prototype.toDates = function(oValue) {
|
|
366
|
+
var oOperator = this.getOperator();
|
|
367
|
+
var oType = this.getType();
|
|
368
|
+
var aRange;
|
|
369
|
+
var i = 0;
|
|
370
|
+
|
|
371
|
+
if (oOperator.isA("sap.ui.mdc.condition.RangeOperator")) {
|
|
372
|
+
aRange = oOperator._getRange(oValue && oValue.values, oType);
|
|
373
|
+
// convert to local date
|
|
374
|
+
for (i = 0; i < aRange.length; i++) {
|
|
375
|
+
aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType);
|
|
376
|
+
aRange[i] = DateUtil.utcToLocal(aRange[i]);
|
|
377
|
+
}
|
|
378
|
+
} else if (oOperator.valueTypes[0] === Operator.ValueType.Self) {
|
|
379
|
+
aRange = oValue.values;
|
|
380
|
+
for (i = 0; i < aRange.length; i++) {
|
|
381
|
+
if (aRange[i]) {
|
|
382
|
+
aRange[i] = DateUtil.typeToUniversalDate(aRange[i], oType);
|
|
383
|
+
aRange[i] = DateUtil.utcToLocal(aRange[i]);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
if (aRange.length === 1) {
|
|
387
|
+
// TODO: better solution for single dates
|
|
388
|
+
aRange.push(aRange[0]);
|
|
389
|
+
}
|
|
390
|
+
// TODO How to convert GT or GE.....
|
|
391
|
+
} else if ([Operator.ValueType.Self, Operator.ValueType.Static].indexOf(oOperator.valueTypes[0]) === -1) {
|
|
392
|
+
// oType = oOperator._createLocalType(oOperator.valueTypes[0], this.type);
|
|
393
|
+
throw new Error("Cannot convert to date, use RangeOperator");
|
|
394
|
+
}
|
|
395
|
+
return aRange;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
OperatorDynamicDateOption.prototype.format = function(oValue) {
|
|
399
|
+
var oOperator = this.getOperator();
|
|
400
|
+
var oType = this.getType();
|
|
401
|
+
return oOperator.format(oValue, oType);
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
OperatorDynamicDateOption.prototype.parse = function(sValue) {
|
|
405
|
+
var oOperator = this.getOperator();
|
|
406
|
+
var oType = this.getType();
|
|
407
|
+
|
|
408
|
+
if (sValue && oOperator.parse(sValue)) {
|
|
409
|
+
var oResult = {};
|
|
410
|
+
oResult.operator = this.getKey();
|
|
411
|
+
oResult.values = oOperator.parse(sValue, oType);
|
|
412
|
+
return oResult;
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
OperatorDynamicDateOption.prototype.enhanceFormattedValue = function(sFormattedValue, sAdditionalValue) {
|
|
417
|
+
return false;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
function _removeControls(oControl) {
|
|
421
|
+
|
|
422
|
+
var sKey = this.getKey();
|
|
423
|
+
|
|
424
|
+
if (oControl && oControl.aControlsByParameters && oControl.aControlsByParameters[sKey]) {
|
|
425
|
+
for (var i = 0; i < oControl.aControlsByParameters[sKey].length; i++) {
|
|
426
|
+
var oUIControl = oControl.aControlsByParameters[sKey][i];
|
|
427
|
+
if (!oUIControl.bIsDestroyed) {
|
|
428
|
+
oUIControl.destroy();
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
delete oControl.aControlsByParameters[sKey];
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
return OperatorDynamicDateOption;
|
|
437
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
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
6
|
sap.ui.define([
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @param {int[]|function} [oConfiguration.defaultValues] Array of values for the defaults of <code>RangeOperators</code> parameter. This can be a function, which returns the array of values. If not used the default for the values is 1.
|
|
34
34
|
* @constructor
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.98.0
|
|
37
37
|
* @private
|
|
38
38
|
* @ui5-restricted sap.fe
|
|
39
39
|
* @MDC_PUBLIC_CANDIDATE
|