@openui5/sap.ui.mdc 1.97.1 → 1.100.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 +25 -30
- package/THIRDPARTY.txt +15 -22
- 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 +1128 -1806
- package/src/sap/ui/mdc/ChartDelegate.js +454 -250
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- package/src/sap/ui/mdc/Control.js +11 -6
- package/src/sap/ui/mdc/Element.js +10 -6
- package/src/sap/ui/mdc/Field.js +19 -4
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
- package/src/sap/ui/mdc/FilterField.js +50 -9
- package/src/sap/ui/mdc/Link.js +25 -6
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +30 -6
- package/src/sap/ui/mdc/Table.js +151 -102
- package/src/sap/ui/mdc/TableDelegate.js +68 -13
- package/src/sap/ui/mdc/ValueHelp.js +26 -11
- package/src/sap/ui/mdc/ValueHelpDelegate.js +2 -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} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +60 -17
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +10 -10
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +43 -254
- 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 +4 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +388 -67
- package/src/sap/ui/mdc/condition/Operator.js +4 -2
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
- package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
- package/src/sap/ui/mdc/designtime/Util.js +63 -0
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +83 -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/link/PanelItem.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +35 -8
- 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 +17 -6
- package/src/sap/ui/mdc/field/ConditionsType.js +2 -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 +88 -29
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +77 -20
- package/src/sap/ui/mdc/field/FieldBase.js +93 -16
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
- 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 +24 -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 +5 -2
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
- 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 +10 -6
- package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
- 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 +285 -208
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +132 -56
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +43 -19
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +47 -10
- 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/ItemBaseFlex.js +0 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +27 -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 +54 -44
- 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 +57 -2
- 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 +30 -15
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -142
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -17
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +348 -0
- package/src/sap/ui/mdc/odata/TypeUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +106 -0
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +117 -123
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +3 -5
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.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} +459 -351
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +51 -30
- package/src/sap/ui/mdc/p13n/FlexUtil.js +6 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +24 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +20 -19
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +19 -12
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1094 -49
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +108 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +7 -7
- 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 +22 -11
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +174 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +12 -19
- 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 +80 -33
- package/src/sap/ui/mdc/table/PropertyHelper.js +63 -19
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +94 -23
- package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
- package/src/sap/ui/mdc/table/RowSettings.js +45 -4
- package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
- package/src/sap/ui/mdc/themes/base/Chart.less +2 -0
- 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 +16 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +33 -8
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- 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 +243 -87
- package/src/sap/ui/mdc/util/TypeUtil.js +6 -5
- package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +6 -3
- 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 +5 -4
- 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 +23 -14
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +46 -17
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +48 -27
- 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 +291 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -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 +264 -139
- 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/filterbar/vh/GenericFilterBarDelegate.js +0 -150
- 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/odata/v4/ChartPropertyHelperNew.js +0 -39
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
- package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -404
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
- package/src/sap/ui/mdc/ui/Container.js +0 -240
- package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
|
@@ -0,0 +1,119 @@
|
|
|
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/ui/core/Element',
|
|
9
|
+
'../library',
|
|
10
|
+
'sap/ui/core/IconPool',
|
|
11
|
+
'sap/ui/core/Core'
|
|
12
|
+
], function(Element, library, IconPool, Core) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
var RowAction = library.RowAction;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Constructor for new RowActionItem.
|
|
19
|
+
*
|
|
20
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
21
|
+
* @param {object} [mSettings] initial settings for the new control
|
|
22
|
+
*
|
|
23
|
+
* @class
|
|
24
|
+
* The <code>RowActionItem</code> control represents a action for a row.
|
|
25
|
+
* This control can only be used in the context of <code>sap.ui.mdc.Table</code> control to define row actions.
|
|
26
|
+
* @extends sap.ui.core.Element
|
|
27
|
+
* @version 1.100.0
|
|
28
|
+
*
|
|
29
|
+
* @constructor
|
|
30
|
+
* @experimental
|
|
31
|
+
* @private
|
|
32
|
+
* @ui5-restricted sap.fe
|
|
33
|
+
* MDC_PUBLIC_CANDIDATE
|
|
34
|
+
* @alias sap.ui.mdc.table.RowActionItem
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
var RowActionItem = Element.extend("sap.ui.mdc.table.RowActionItem", {
|
|
38
|
+
metadata: {
|
|
39
|
+
library: "sap.ui.mdc",
|
|
40
|
+
properties: {
|
|
41
|
+
/**
|
|
42
|
+
* Type of the row action item.
|
|
43
|
+
*
|
|
44
|
+
* As of version 1.98, only sap.ui.mdc.RowAction.Navigation is available.
|
|
45
|
+
* Setting the type ensures default values for the properties <code>icon</code> and <code>text</code>.
|
|
46
|
+
* If an icon or text is set explicitly this setting is used.
|
|
47
|
+
*/
|
|
48
|
+
type: {type: "sap.ui.mdc.RowAction"},
|
|
49
|
+
/**
|
|
50
|
+
* Text for the row action item.
|
|
51
|
+
*
|
|
52
|
+
* Custom text cannot be set when using <code>sap.m.Table</code>.
|
|
53
|
+
*/
|
|
54
|
+
text: {type: "string"},
|
|
55
|
+
/**
|
|
56
|
+
* Icon for the row action item.
|
|
57
|
+
*
|
|
58
|
+
* A custom icon cannot be set when using <code>sap.m.Table</code>
|
|
59
|
+
*/
|
|
60
|
+
icon: {type: "sap.ui.core.URI"},
|
|
61
|
+
/**
|
|
62
|
+
* Whether the item should be visible on the screen.
|
|
63
|
+
*/
|
|
64
|
+
visible: {type: "boolean", defaultValue: true}
|
|
65
|
+
},
|
|
66
|
+
events: {
|
|
67
|
+
/**
|
|
68
|
+
* Fired when the row action item is pressed.
|
|
69
|
+
*
|
|
70
|
+
* <code>sap.ui.table.Table</code>: The press event is fired when a row action item is pressed.
|
|
71
|
+
*
|
|
72
|
+
* <code>sap.m.Table</code>: The press event is fired when a row with a row action item is pressed.
|
|
73
|
+
* The <code>sap.ui.mdc.Table</code>'s <code>rowPress</code> event is fired as well, when pressing a row with a row action item.
|
|
74
|
+
*
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
press: {
|
|
78
|
+
parameters: {
|
|
79
|
+
/**
|
|
80
|
+
* The binding context of the pressed row action
|
|
81
|
+
*/
|
|
82
|
+
bindingContext: {
|
|
83
|
+
type: "sap.ui.model.Context"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
var mThemeParameters = {
|
|
92
|
+
navigationIcon: "navigation-right-arrow"
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
RowActionItem.prototype._getText = function () {
|
|
96
|
+
var sText;
|
|
97
|
+
if (this.getText()) {
|
|
98
|
+
sText = this.getText();
|
|
99
|
+
} else {
|
|
100
|
+
var oResourceBundle = Core.getLibraryResourceBundle("sap.ui.mdc");
|
|
101
|
+
if (this.getType() === RowAction.Navigation) {
|
|
102
|
+
sText = oResourceBundle.getText("table.ROW_ACTION_ITEM_NAVIGATE");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return sText;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
RowActionItem.prototype._getIcon = function () {
|
|
109
|
+
var oIcon;
|
|
110
|
+
if (this.getIcon()) {
|
|
111
|
+
oIcon = this.getIcon();
|
|
112
|
+
} else if (this.getType() === RowAction.Navigation) {
|
|
113
|
+
oIcon = IconPool.getIconURI(mThemeParameters["navigationIcon"]);
|
|
114
|
+
}
|
|
115
|
+
return oIcon;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
return RowActionItem;
|
|
119
|
+
});
|
|
@@ -12,14 +12,16 @@ sap.ui.define([
|
|
|
12
12
|
/**
|
|
13
13
|
* Constructor for new RowSettings.
|
|
14
14
|
*
|
|
15
|
+
* Caution: Only use bindings which are bound against the rows, as working functionalities cannot be ensured for other binding types.
|
|
16
|
+
*
|
|
15
17
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
|
-
* @param {object} [mSettings]
|
|
18
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
17
19
|
*
|
|
18
20
|
* @class
|
|
19
|
-
* The <code>RowSettings</code> control
|
|
20
|
-
* This control can only be used in the context of <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
21
|
+
* The <code>RowSettings</code> control is used to configure a row.
|
|
22
|
+
* This control can only be used in the context of the <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
21
23
|
* @extends sap.ui.core.Element
|
|
22
|
-
* @version 1.
|
|
24
|
+
* @version 1.100.0
|
|
23
25
|
*
|
|
24
26
|
* @constructor
|
|
25
27
|
* @experimental
|
|
@@ -60,6 +62,14 @@ sap.ui.define([
|
|
|
60
62
|
* If set to <code>true</code>, a navigation indicator is displayed at the end of the row.
|
|
61
63
|
*/
|
|
62
64
|
navigated : {type : "boolean", group : "Appearance", defaultValue : false}
|
|
65
|
+
},
|
|
66
|
+
aggregations: {
|
|
67
|
+
/**
|
|
68
|
+
* The available actions for a row.
|
|
69
|
+
*
|
|
70
|
+
* rowActions cannot be bound with a factory. Additionally, {@link sap.m.Table} only works with row actions of type navigation.
|
|
71
|
+
*/
|
|
72
|
+
rowActions: {type: "sap.ui.mdc.table.RowActionItem", multiple: true}
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
});
|
|
@@ -89,5 +99,36 @@ sap.ui.define([
|
|
|
89
99
|
return mSettings;
|
|
90
100
|
};
|
|
91
101
|
|
|
102
|
+
RowSettings.prototype.getAllActions = function () {
|
|
103
|
+
var mSettings = {},
|
|
104
|
+
thisCloned = this.clone();
|
|
105
|
+
|
|
106
|
+
if (this.isBound("rowActions")) {
|
|
107
|
+
// Set bindingInfo for items aggregation to bindingInfo of rowActions
|
|
108
|
+
mSettings.items = thisCloned.getBindingInfo("rowActions");
|
|
109
|
+
var oTemplate = mSettings.items.template;
|
|
110
|
+
// Create temporary metdata information for later processing
|
|
111
|
+
mSettings.templateInfo = {
|
|
112
|
+
type: oTemplate.isBound("type") ? oTemplate.getBindingInfo("type") : oTemplate.getType(),
|
|
113
|
+
text: oTemplate.isBound("text") ? oTemplate.getBindingInfo("text") : oTemplate.getText(),
|
|
114
|
+
icon: oTemplate.isBound("icon") ? oTemplate.getBindingInfo("icon") : oTemplate.getIcon(),
|
|
115
|
+
visible: oTemplate.isBound("visible") ? oTemplate.getBindingInfo("visible") : oTemplate.getVisible()
|
|
116
|
+
};
|
|
117
|
+
} else {
|
|
118
|
+
mSettings.items = this.getRowActions();
|
|
119
|
+
}
|
|
120
|
+
return mSettings;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
RowSettings.prototype.getRowActionCount = function () {
|
|
124
|
+
var iCount = 0;
|
|
125
|
+
if (this.isBound("rowActions")) {
|
|
126
|
+
iCount = 1;
|
|
127
|
+
} else {
|
|
128
|
+
iCount = this.getRowActions().length;
|
|
129
|
+
}
|
|
130
|
+
return iCount;
|
|
131
|
+
};
|
|
132
|
+
|
|
92
133
|
return RowSettings;
|
|
93
134
|
});
|
|
@@ -13,8 +13,8 @@ sap.ui.define([
|
|
|
13
13
|
* Constructor for a new <code>TableTypeBase</code>.
|
|
14
14
|
*
|
|
15
15
|
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
|
-
* @param {object} [mSettings]
|
|
17
|
-
* @class The table type info base class for the metadata
|
|
16
|
+
* @param {object} [mSettings] Initial settings for the new object
|
|
17
|
+
* @class The table type info base class for the metadata-driven table. Base class with no implementation.
|
|
18
18
|
* @extends sap.ui.core.Element
|
|
19
19
|
* @author SAP SE
|
|
20
20
|
* @private
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
*
|
|
17
17
|
* @param {object[]} aProperties
|
|
18
18
|
* The properties to process in this helper
|
|
19
|
-
* @param {
|
|
19
|
+
* @param {Object<string, object>} [mExtensions]
|
|
20
20
|
* Key-value map, where the key is the name of the property and the value is the extension containing mode-specific information.
|
|
21
21
|
* The extension of a property is stored in a reserved <code>extension</code> attribute and its attributes must be specified with
|
|
22
22
|
* <code>mExtensionAttributeMetadata</code>.
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.mdc.table.PropertyHelper
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.100.0
|
|
31
31
|
*
|
|
32
32
|
* @private
|
|
33
33
|
* @experimental
|
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
min-width: 4.75rem; /* As input has a min-width + padding */
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/* empty indicator */
|
|
27
|
-
.sapUiMdcFieldBaseEmpty::after {
|
|
28
|
-
content: attr(emptyIndicator);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
26
|
/**
|
|
32
27
|
* align text-like controls in Table (as done for stand-alone controls in Table)
|
|
33
28
|
*/
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@mdctoken-large-line-height: 1.375rem;
|
|
2
|
+
@mdctoken-small-line-height: 1rem;
|
|
3
|
+
|
|
4
|
+
// hide Token border and background
|
|
5
|
+
.sapUiMdcTokenizerDisplay .sapMToken {
|
|
6
|
+
border: 0px; // hide the border of a token
|
|
7
|
+
background-color: transparent; // remove background of Token
|
|
8
|
+
padding-left: 0px; // remove the left padding
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
12
|
+
padding-left: 0px; // remove left padding of a token. The right padding will be used to show the delimiters
|
|
13
|
+
|
|
14
|
+
// right margin and padding of the token (space for the delimiter)
|
|
15
|
+
padding-right: 0.375rem;
|
|
16
|
+
margin-right: 0.375rem;
|
|
17
|
+
margin-top: 0px;
|
|
18
|
+
margin-bottom: 0px;
|
|
19
|
+
|
|
20
|
+
color: @sapUiBaseText;
|
|
21
|
+
height: @mdctoken-small-line-height;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
25
|
+
height: @mdctoken-large-line-height;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.sapUiSizeCozy .sapUiMdcTokenizerDisplay.sapMTokenizer.sapMTokenizerReadonly .sapMToken {
|
|
29
|
+
// right margin and padding of the token (space for the delimiter)
|
|
30
|
+
padding-right: 0.5rem;
|
|
31
|
+
margin-right: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// delimiters between tokens
|
|
35
|
+
.sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
36
|
+
content: attr(delimiter);
|
|
37
|
+
color: @sapUiBaseText;
|
|
38
|
+
font-family: @sapUiFontFamily;
|
|
39
|
+
font-size: @sapMFontMediumSize;
|
|
40
|
+
font-weight: normal;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
margin-left: 0.25rem; // space between tokens. the left margin of the delimiter and the right side of the token
|
|
43
|
+
position: absolute;
|
|
44
|
+
line-height: @mdctoken-small-line-height;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sapUiSizeCozy .sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
48
|
+
margin-left: 0.4rem; // space between tokens. the left side margin of the token
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMToken::after {
|
|
52
|
+
line-height: @mdctoken-large-line-height;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// no delimiter after the last token
|
|
56
|
+
.sapUiMdcTokenizerDisplay .sapMToken:last-child:after {
|
|
57
|
+
content: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// make the token focus invisible
|
|
63
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay .sapMToken:focus {
|
|
64
|
+
outline: 0px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// make the token hover invisible
|
|
68
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay .sapMToken:hover {
|
|
69
|
+
background: transparent;
|
|
70
|
+
border: 0px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.sapUiSizeCompact .sapUiMdcTokenizerDisplay.sapMTokenizer .sapMToken {
|
|
74
|
+
font-size: @sapMFontMediumSize;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
.sapUiMdcTokenizerDisplay .sapMTokenText {
|
|
80
|
+
// enable selection of scrollcontainer
|
|
81
|
+
-webkit-user-select: text;
|
|
82
|
+
user-select: text;
|
|
83
|
+
|
|
84
|
+
line-height: @mdctoken-small-line-height;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenText {
|
|
88
|
+
line-height: @mdctoken-large-line-height;
|
|
89
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
html.sap-desktop .sapUiMdcTokenizerDisplay.sapMTokenizer {
|
|
3
|
+
outline: none; // hide focus of the tokenizer
|
|
4
|
+
padding-left: 0px; // remove left padding of Tokenizer for Display mode
|
|
5
|
+
|
|
6
|
+
padding-top: 0rem;
|
|
7
|
+
padding-bottom: 0rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mdctokenizer-large-line-height: 1.375rem;
|
|
11
|
+
@mdctokenizer-small-line-height: 1rem;
|
|
12
|
+
@mdctokenizer-large-padding-topbottom: 0.6875rem;
|
|
13
|
+
@mdctokenizer-small-padding-topbottom: 0.3125rem;
|
|
14
|
+
|
|
15
|
+
// show a focus around the more link
|
|
16
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
17
|
+
outline: @sapUiContentFocusWidth dotted @sapUiContentFocusColor;
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:hover {
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator,
|
|
27
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
28
|
+
line-height: @mdctokenizer-large-line-height;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerIndicator:focus {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerIndicator {
|
|
36
|
+
line-height: @mdctokenizer-small-line-height;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// hide emptyIndicator for TokenizerDisplay
|
|
43
|
+
.sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// show emptyIndicator for TokenizerDisplay
|
|
48
|
+
.sapMShowEmpty-CTX .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
49
|
+
line-height: @mdctokenizer-small-line-height;
|
|
50
|
+
font-size: @sapMFontMediumSize;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
55
|
+
line-height: @mdctokenizer-large-line-height;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sapUiSizeCozy .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
59
|
+
padding-top: @mdctokenizer-large-padding-topbottom;
|
|
60
|
+
padding-bottom: @mdctokenizer-large-padding-topbottom;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.sapUiSizeCompact .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMEmptyIndicator.sapMEmptyIndicatorAuto {
|
|
64
|
+
padding-top: @mdctokenizer-small-padding-topbottom;
|
|
65
|
+
padding-bottom: @mdctokenizer-small-padding-topbottom;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// enable mouse selection on scrollcontainer
|
|
72
|
+
.sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
73
|
+
-moz-user-select: text;
|
|
74
|
+
-webkit-user-select: text;
|
|
75
|
+
|
|
76
|
+
// give the scrollcontainer the required top/bottom paddings so that is works like a text control
|
|
77
|
+
padding-top: 0rem;
|
|
78
|
+
padding-bottom: 0rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sapUiSizeCozy .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
82
|
+
// give the scrollcontainer the required top/bottom paddings so that is works like a text control
|
|
83
|
+
padding-top: @mdctokenizer-large-padding-topbottom;
|
|
84
|
+
padding-bottom: @mdctokenizer-large-padding-topbottom;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sapUiSizeCompact .sapUiFormEdit .sapUiMdcTokenizerDisplay .sapMTokenizerScrollContainer {
|
|
88
|
+
padding-top: @mdctokenizer-small-padding-topbottom;
|
|
89
|
+
padding-bottom: @mdctokenizer-small-padding-topbottom;
|
|
90
|
+
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sapMdcValueHelpPanel .sapMPanel.sapMdcTokenizerPanel {
|
|
22
|
-
|
|
22
|
+
background-color: @sapUiBaseBG;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.sapMdcTablePanel > .sapMPanelHdr,
|
|
@@ -32,11 +32,18 @@
|
|
|
32
32
|
width: 100%;
|
|
33
33
|
border: 1px solid @sapUiFieldBorderColor;
|
|
34
34
|
background-color: @sapUiFieldBackground;
|
|
35
|
+
border-radius: @sapUiFieldBorderCornerRadius;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
// Tokenizer height in Compact mode
|
|
38
39
|
.sapUiSizeCompact .sapMdcTokenizer > .sapMTokenizerScrollContainer {
|
|
39
|
-
|
|
40
|
+
margin-top: 0.25rem;
|
|
41
|
+
height: 1.3rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sapUiSizeCompact .sapMdcTokenizer.sapMTokenizer .sapMToken {
|
|
45
|
+
margin-top: 0rem;
|
|
46
|
+
margin-bottom: 0rem;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
// Tokenizer height in Cozy or Condenst mode
|
|
@@ -44,6 +51,11 @@
|
|
|
44
51
|
height: 2.25rem;
|
|
45
52
|
}
|
|
46
53
|
|
|
54
|
+
.sapMdcTokenizer.sapMTokenizer .sapMToken {
|
|
55
|
+
margin-top: 0.5rem;
|
|
56
|
+
margin-bottom: 0rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
.sapMdcTokenizer > .sapMTokenizerScrollContainer {
|
|
48
60
|
overflow-y: hidden;
|
|
49
61
|
}
|
|
@@ -122,7 +134,7 @@
|
|
|
122
134
|
// spacing between rows
|
|
123
135
|
.sapUiMdcDefineConditionPanel .sapUiRespGrid.sapUiRespGridMedia-Std-Phone > .sapUiRespGridBreak:not(:first-child),
|
|
124
136
|
.sapUiMdcDefineConditionPanel .sapUiRespGrid.sapUiRespGridMedia-Std-Phone > .sapUiRespGridBreak:not(:first-child) + div {
|
|
125
|
-
padding-top: 0.5rem
|
|
137
|
+
padding-top: 0.5rem;
|
|
126
138
|
}
|
|
127
139
|
|
|
128
140
|
// align add-button to the right
|
|
@@ -160,7 +172,7 @@
|
|
|
160
172
|
|
|
161
173
|
// makes the title of the used panels smaller
|
|
162
174
|
.sapMdcValueHelpPanel .sapMPanel .sapMPanelHdr {
|
|
163
|
-
font-size: @sapMFontHeader5Size
|
|
175
|
+
font-size: @sapMFontHeader5Size;
|
|
164
176
|
}
|
|
165
177
|
|
|
166
178
|
// make the title shadows transparent
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
'sap/ui/core/library',
|
|
8
8
|
'sap/ui/core/date/UniversalDate',
|
|
9
|
-
'sap/base/util/merge'
|
|
9
|
+
'sap/base/util/merge',
|
|
10
|
+
'sap/ui/mdc/enum/BaseType'
|
|
10
11
|
],
|
|
11
12
|
function(
|
|
12
13
|
coreLibrary,
|
|
13
14
|
UniversalDate,
|
|
14
|
-
merge
|
|
15
|
+
merge,
|
|
16
|
+
BaseType
|
|
15
17
|
) {
|
|
16
18
|
"use strict";
|
|
17
19
|
|
|
@@ -34,18 +36,29 @@ sap.ui.define([
|
|
|
34
36
|
*
|
|
35
37
|
* @param {any} vDate Date
|
|
36
38
|
* @param {sap.ui.model.SimpleType} oType Data type
|
|
39
|
+
* @param {sap.ui.mdc.enum.BaseType} [sBaseType] Basic type
|
|
37
40
|
* @return {sap.ui.core.date.UniversalDate} UniversalDate
|
|
38
41
|
* @private
|
|
39
42
|
* @ui5-restricted sap.ui.mdc
|
|
40
43
|
* @since 1.74.0
|
|
41
44
|
*/
|
|
42
|
-
typeToUniversalDate: function(vDate, oType) {
|
|
45
|
+
typeToUniversalDate: function(vDate, oType, sBaseType) {
|
|
43
46
|
|
|
44
|
-
var
|
|
47
|
+
var sPattern;
|
|
48
|
+
if (sBaseType && sBaseType === BaseType.DateTime) {
|
|
49
|
+
sPattern = "yyyyMMdd-HHmmssSSS";
|
|
50
|
+
} else {
|
|
51
|
+
sPattern = "yyyyMMdd";
|
|
52
|
+
}
|
|
53
|
+
var sDate = this.typeToString(vDate, oType, sPattern);
|
|
45
54
|
var iYear = parseInt(sDate.slice(0,4));
|
|
46
55
|
var iMonth = parseInt(sDate.slice(4,6)) - 1;
|
|
47
56
|
var iDate = parseInt(sDate.slice(6,8));
|
|
48
|
-
var
|
|
57
|
+
var iHour = sBaseType === BaseType.DateTime ? parseInt(sDate.slice(9,11)) : 0;
|
|
58
|
+
var iMinute = sBaseType === BaseType.DateTime ? parseInt(sDate.slice(11,13)) : 0;
|
|
59
|
+
var iSecond = sBaseType === BaseType.DateTime ? parseInt(sDate.slice(13,15)) : 0;
|
|
60
|
+
var iMillisecond = sBaseType === BaseType.DateTime ? parseInt(sDate.slice(15,18)) : 0;
|
|
61
|
+
var oUniversalDate = new UniversalDate(UniversalDate.UTC(iYear, iMonth, iDate, iHour, iMinute, iSecond, iMillisecond));
|
|
49
62
|
|
|
50
63
|
return oUniversalDate;
|
|
51
64
|
|
|
@@ -56,18 +69,30 @@ sap.ui.define([
|
|
|
56
69
|
*
|
|
57
70
|
* @param {sap.ui.core.date.UniversalDate} oDate UniversalDate
|
|
58
71
|
* @param {sap.ui.model.SimpleType} oType Data type
|
|
72
|
+
* @param {sap.ui.mdc.enum.BaseType} [sBaseType] Basic type
|
|
59
73
|
* @return {any} type specific date
|
|
60
74
|
* @private
|
|
61
75
|
* @ui5-restricted sap.ui.mdc
|
|
62
76
|
* @since 1.74.0
|
|
63
77
|
*/
|
|
64
|
-
universalDateToType: function(oDate, oType) {
|
|
78
|
+
universalDateToType: function(oDate, oType, sBaseType) {
|
|
65
79
|
|
|
66
80
|
var iYear = oDate.getUTCFullYear();
|
|
67
81
|
var iMonth = oDate.getUTCMonth() + 1;
|
|
68
82
|
var iDate = oDate.getUTCDate();
|
|
69
83
|
var sDate = iYear.toString() + ((iMonth < 10) ? "0" : "") + iMonth.toString() + ((iDate < 10) ? "0" : "") + iDate.toString();
|
|
70
|
-
var
|
|
84
|
+
var sPattern;
|
|
85
|
+
if (sBaseType && sBaseType === BaseType.DateTime) {
|
|
86
|
+
sPattern = "yyyyMMdd-HHmmssSSS";
|
|
87
|
+
var iHour = oDate.getUTCHours();
|
|
88
|
+
var iMinute = oDate.getUTCMinutes();
|
|
89
|
+
var iSecond = oDate.getUTCSeconds();
|
|
90
|
+
var iMillisecond = oDate.getUTCMilliseconds();
|
|
91
|
+
sDate = sDate + "-" + ((iHour < 10) ? "0" : "") + iHour.toString() + ((iMinute < 10) ? "0" : "") + iMinute.toString() + ((iSecond < 10) ? "0" : "") + iSecond.toString() + ((iMillisecond < 100) ? "0" : "") + ((iMillisecond < 10) ? "0" : "") + iMillisecond.toString();
|
|
92
|
+
} else {
|
|
93
|
+
sPattern = "yyyyMMdd";
|
|
94
|
+
}
|
|
95
|
+
var vDate = this.stringToType(sDate, oType, sPattern);
|
|
71
96
|
|
|
72
97
|
return vDate;
|
|
73
98
|
|
|
@@ -180,4 +205,4 @@ sap.ui.define([
|
|
|
180
205
|
};
|
|
181
206
|
|
|
182
207
|
return DateUtil;
|
|
183
|
-
}
|
|
208
|
+
});
|
|
@@ -132,7 +132,7 @@ sap.ui.define(['sap/ui/mdc/util/IdentifierUtil', 'sap/ui/mdc/enum/ConditionValid
|
|
|
132
132
|
var oProperty = FilterUtil.getPropertyByKey(aPropertiesMetadata, sFieldPath);
|
|
133
133
|
if (oProperty) {
|
|
134
134
|
|
|
135
|
-
mFilterTypes[sFieldPath] = { type: oProperty.typeConfig.typeInstance, caseSensitive: oProperty.caseSensitive };
|
|
135
|
+
mFilterTypes[sFieldPath] = { type: oProperty.typeConfig.typeInstance, caseSensitive: oProperty.caseSensitive, baseType: oProperty.typeConfig.baseType };
|
|
136
136
|
mInternalFilterConditions[sFieldPath] = [];
|
|
137
137
|
|
|
138
138
|
//convert from externalized to model-specific value representation
|
|
@@ -159,4 +159,4 @@ sap.ui.define(['sap/ui/mdc/util/IdentifierUtil', 'sap/ui/mdc/enum/ConditionValid
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
return FilterUtil;
|
|
162
|
-
}
|
|
162
|
+
});
|
|
@@ -25,8 +25,8 @@ sap.ui.define([], function() {
|
|
|
25
25
|
* Returns the width from the metadata attributes. min-width if there is no width specified
|
|
26
26
|
*
|
|
27
27
|
* @param {object} oProperyInfo - OData metadata for the table field
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {
|
|
28
|
+
* @param {number} iMax - The max width (optional, default 20)
|
|
29
|
+
* @param {number} iMin - The min width (optional, default 3)
|
|
30
30
|
* @returns {string} - width of the property in em
|
|
31
31
|
* @private
|
|
32
32
|
*/
|
|
@@ -79,4 +79,4 @@ sap.ui.define([], function() {
|
|
|
79
79
|
|
|
80
80
|
return FormatUtil;
|
|
81
81
|
|
|
82
|
-
}
|
|
82
|
+
});
|
|
@@ -24,8 +24,8 @@ sap.ui.define(['sap/ui/base/DataType'], function(DataType) {
|
|
|
24
24
|
/**
|
|
25
25
|
* Static function that replaces special characters with a underscore.<br>
|
|
26
26
|
*
|
|
27
|
-
* @param {
|
|
28
|
-
* @returns {
|
|
27
|
+
* @param {string} sName - String whose special characters shall be replaced.
|
|
28
|
+
* @returns {string} Cleaned up String
|
|
29
29
|
* @protected
|
|
30
30
|
*/
|
|
31
31
|
replace: function(sName) {
|
|
@@ -44,8 +44,8 @@ sap.ui.define(['sap/ui/base/DataType'], function(DataType) {
|
|
|
44
44
|
* Static function that creates the id for a FilterField, dependant on the FilterBar control<br>
|
|
45
45
|
*
|
|
46
46
|
* @param {sap.ui.mdc.FilterBar} oFilterBar - based on it, the id will be determined
|
|
47
|
-
* @param {
|
|
48
|
-
* @returns {
|
|
47
|
+
* @param {string} sKey - the property path/name
|
|
48
|
+
* @returns {string} the calculated id
|
|
49
49
|
* @protected
|
|
50
50
|
*/
|
|
51
51
|
getFilterFieldId : function(oFilterBar, sKey) {
|
|
@@ -56,7 +56,7 @@ sap.ui.define(['sap/ui/base/DataType'], function(DataType) {
|
|
|
56
56
|
* Static function that determines the key of the property<br>
|
|
57
57
|
*
|
|
58
58
|
* @param {Object} oProperty - contains the meta dada
|
|
59
|
-
* @returns {
|
|
59
|
+
* @returns {string} the key of the property path/name
|
|
60
60
|
* @protected
|
|
61
61
|
*/
|
|
62
62
|
getPropertyKey: function(oProperty) {
|
|
@@ -90,4 +90,4 @@ sap.ui.define(['sap/ui/base/DataType'], function(DataType) {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
return IdentifierUtil;
|
|
93
|
-
}
|
|
93
|
+
});
|
|
@@ -44,7 +44,7 @@ sap.ui.define(
|
|
|
44
44
|
* Destroying the cache will cancel all registered promises and delete references. Convenience methods for promise creation, wrapping and replacement are offered.
|
|
45
45
|
*
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.100.0
|
|
48
48
|
* @alias sap.ui.mdc.util.PromiseCache
|
|
49
49
|
* @namespace
|
|
50
50
|
* @since 1.85.0
|