@openui5/sap.ui.mdc 1.96.5 → 1.99.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 +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +7 -9
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1100 -1796
- package/src/sap/ui/mdc/ChartDelegate.js +429 -270
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +3 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterField.js +25 -8
- package/src/sap/ui/mdc/Link.js +23 -4
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +21 -6
- package/src/sap/ui/mdc/Table.js +204 -161
- package/src/sap/ui/mdc/TableDelegate.js +47 -17
- package/src/sap/ui/mdc/ValueHelp.js +51 -15
- package/src/sap/ui/mdc/ValueHelpDelegate.js +20 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
- package/src/sap/ui/mdc/chart/Item.js +62 -92
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +261 -44
- package/src/sap/ui/mdc/condition/Operator.js +9 -9
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +437 -0
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +80 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +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/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +9 -9
- package/src/sap/ui/mdc/field/ConditionsType.js +7 -7
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +75 -27
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +85 -52
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +7 -7
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +20 -0
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +7 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +70 -0
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +2 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +28 -26
- package/src/sap/ui/mdc/field/content/DateContent.js +128 -2
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +9 -1
- package/src/sap/ui/mdc/field/content/DefaultContent.js +36 -14
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/field/content/TimeContent.js +8 -1
- package/src/sap/ui/mdc/field/content/UnitContent.js +23 -4
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +359 -142
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
- package/src/sap/ui/mdc/library.js +62 -43
- 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 +68 -5
- package/src/sap/ui/mdc/messagebundle_ar.properties +47 -6
- package/src/sap/ui/mdc/messagebundle_bg.properties +61 -20
- package/src/sap/ui/mdc/messagebundle_ca.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_cs.properties +60 -19
- package/src/sap/ui/mdc/messagebundle_cy.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_da.properties +52 -11
- package/src/sap/ui/mdc/messagebundle_de.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_el.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_en.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +51 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +51 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +59 -18
- package/src/sap/ui/mdc/messagebundle_et.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_fi.properties +51 -10
- package/src/sap/ui/mdc/messagebundle_fr.properties +50 -9
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_hi.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_hr.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_hu.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_id.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_it.properties +61 -20
- package/src/sap/ui/mdc/messagebundle_iw.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_ja.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_kk.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ko.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_lt.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_lv.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_ms.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_nl.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_no.properties +53 -12
- package/src/sap/ui/mdc/messagebundle_pl.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_pt.properties +52 -11
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ro.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_ru.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sh.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sk.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sl.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_sv.properties +47 -6
- package/src/sap/ui/mdc/messagebundle_th.properties +48 -7
- package/src/sap/ui/mdc/messagebundle_tr.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_uk.properties +49 -8
- package/src/sap/ui/mdc/messagebundle_vi.properties +45 -4
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +46 -5
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +45 -4
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +16 -11
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +160 -116
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- 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} +215 -116
- package/src/sap/ui/mdc/p13n/Engine.js +61 -20
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +8 -8
- package/src/sap/ui/mdc/p13n/PersistenceProvider.js +21 -10
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +40 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +15 -12
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
- package/src/sap/ui/mdc/p13n/{DefaultProviderRegistry.js → modules/DefaultProviderRegistry.js} +2 -2
- package/src/sap/ui/mdc/p13n/modules/StateHandlerRegistry.js +86 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +19 -3
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
- package/src/sap/ui/mdc/table/Column.js +35 -10
- package/src/sap/ui/mdc/table/CreationRow.js +14 -13
- package/src/sap/ui/mdc/table/GridTableType.js +13 -13
- package/src/sap/ui/mdc/table/PropertyHelper.js +64 -27
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +26 -29
- package/src/sap/ui/mdc/table/RowSettings.js +7 -5
- package/src/sap/ui/mdc/table/TableTypeBase.js +6 -6
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +15 -71
- 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/TokenDisplay.less +89 -0
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +3 -0
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
- package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +148 -325
- package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Dialog.js +12 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +14 -2
- package/src/sap/ui/mdc/valuehelp/base/Container.js +33 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +36 -5
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -15
- 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 +28 -32
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +50 -10
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +57 -26
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
- package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
- package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +362 -233
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
- package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
- package/src/sap/ui/mdc/ChartNew.js +0 -1114
- package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
- package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
- package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
- package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
- package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
- package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -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
|
@@ -15,6 +15,43 @@ sap.ui.define([
|
|
|
15
15
|
) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @typedef {object} sap.ui.mdc.table.PropertyInfo
|
|
20
|
+
* @extends sap.ui.mdc.util.PropertyInfo
|
|
21
|
+
*
|
|
22
|
+
* @property {object} [exportSettings]
|
|
23
|
+
* Object that contains information about the export settings, see {@link sap.ui.export.Spreadsheet}.
|
|
24
|
+
* @property {int} [maxConditions]
|
|
25
|
+
* Defines the maximum number of filter conditions for the property. Possible values that can be used:
|
|
26
|
+
* <ul>
|
|
27
|
+
* <li>1 is a single-filter expression field</li>
|
|
28
|
+
* <li>-1 is a multi-filter expression field</li>
|
|
29
|
+
* </ul>
|
|
30
|
+
* This information is for example used in the <code>addItem</code> method of the <code>FilterBar</code> control to forward this information to
|
|
31
|
+
* the created <code>FilterField</code> instance.
|
|
32
|
+
* @property {boolean} [filterable=true]
|
|
33
|
+
* Defines whether a property is filterable.
|
|
34
|
+
* @property {boolean} [sortable=true]
|
|
35
|
+
* Defines whether a property is sortable.
|
|
36
|
+
* @property {boolean} [groupable=false]
|
|
37
|
+
* Defines whether a property is groupable.
|
|
38
|
+
* @property {boolean} [key=false]
|
|
39
|
+
* Defines whether a property is a key or part of a key in the data.
|
|
40
|
+
* @property {string} [unit]
|
|
41
|
+
* Name of the unit property that is related to this property.
|
|
42
|
+
* @property {string} [text]
|
|
43
|
+
* Name of the text property that is related to this property in a 1:1 relation.
|
|
44
|
+
* @property {boolean} [required]
|
|
45
|
+
* Defines whether a filter condition for this property is required.
|
|
46
|
+
* @property {object} [visualSettings]
|
|
47
|
+
* This object contains all relevant properties for visual adjustments.
|
|
48
|
+
*
|
|
49
|
+
* @private
|
|
50
|
+
* @experimental
|
|
51
|
+
* @ui5-restricted sap.fe
|
|
52
|
+
* MDC_PUBLIC_CANDIDATE
|
|
53
|
+
*/
|
|
54
|
+
|
|
18
55
|
/**
|
|
19
56
|
* Constructor for a new table property helper.
|
|
20
57
|
*
|
|
@@ -22,7 +59,7 @@ sap.ui.define([
|
|
|
22
59
|
* The properties to process in this helper
|
|
23
60
|
* @param {object<string, object>} [mExtensions]
|
|
24
61
|
* Key-value map, where the key is the name of the property and the value is the extension containing mode-specific information.
|
|
25
|
-
* The extension of a property is stored in a reserved <code>extension</code> attribute and its attributes must be specified with
|
|
62
|
+
* The extension of a property is stored in a reserved <code>extension</code> attribute, and its attributes must be specified with
|
|
26
63
|
* <code>mExtensionAttributeMetadata</code>.
|
|
27
64
|
* @param {sap.ui.base.ManagedObject} [oParent]
|
|
28
65
|
* A reference to an instance that will act as the parent of this helper
|
|
@@ -30,14 +67,14 @@ sap.ui.define([
|
|
|
30
67
|
* The attribute metadata for the model-specific property extension
|
|
31
68
|
*
|
|
32
69
|
* @class
|
|
33
|
-
* Table property helpers
|
|
70
|
+
* Table property helpers in this SAPUI5 library provide tables with consistent and standardized structure of properties and their attributes.
|
|
34
71
|
* Validates the given properties, sets defaults, and provides utilities to work with these properties.
|
|
35
72
|
* The utilities can only be used for properties that are known to the helper. Known properties are all those that are passed to the constructor.
|
|
36
73
|
*
|
|
37
74
|
* @extends sap.ui.mdc.util.PropertyHelper
|
|
38
75
|
*
|
|
39
76
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
77
|
+
* @version 1.99.0
|
|
41
78
|
*
|
|
42
79
|
* @private
|
|
43
80
|
* @experimental
|
|
@@ -68,11 +105,12 @@ sap.ui.define([
|
|
|
68
105
|
return "";
|
|
69
106
|
}
|
|
70
107
|
|
|
108
|
+
/**
|
|
109
|
+
* @inheritDoc
|
|
110
|
+
*/
|
|
71
111
|
PropertyHelper.prototype.prepareProperty = function(oProperty) {
|
|
72
112
|
PropertyHelperBase.prototype.prepareProperty.apply(this, arguments);
|
|
73
|
-
oProperty.
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
113
|
+
oProperty.aggregatable = false;
|
|
76
114
|
};
|
|
77
115
|
|
|
78
116
|
/**
|
|
@@ -98,7 +136,7 @@ sap.ui.define([
|
|
|
98
136
|
|
|
99
137
|
var aColumnExportSettings = [];
|
|
100
138
|
var aPropertiesFromComplexProperty;
|
|
101
|
-
var oExportSettings = oProperty.
|
|
139
|
+
var oExportSettings = oProperty.exportSettings;
|
|
102
140
|
var oColumnExportSettings;
|
|
103
141
|
var aPaths = [];
|
|
104
142
|
var sAdditionalPath;
|
|
@@ -111,16 +149,16 @@ sap.ui.define([
|
|
|
111
149
|
if (!bSplitCells && oExportSettings) {
|
|
112
150
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
113
151
|
aPropertiesFromComplexProperty.forEach(function(oProperty) {
|
|
114
|
-
aPaths.push(oProperty.
|
|
152
|
+
aPaths.push(oProperty.path);
|
|
115
153
|
});
|
|
116
154
|
oColumnExportSettings.property = aPaths;
|
|
117
155
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
118
156
|
} else {
|
|
119
157
|
// when there are no exportSettings given for a ComplexProperty or when the splitCells=true
|
|
120
158
|
aPropertiesFromComplexProperty.forEach(function(oProperty, iIndex) {
|
|
121
|
-
var oPropertyInfoExportSettings = oProperty.
|
|
159
|
+
var oPropertyInfoExportSettings = oProperty.exportSettings,
|
|
122
160
|
oCurrentColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oPropertyInfoExportSettings, bSplitCells);
|
|
123
|
-
oCurrentColumnExportSettings.property = oProperty.
|
|
161
|
+
oCurrentColumnExportSettings.property = oProperty.path;
|
|
124
162
|
if (iIndex > 0) {
|
|
125
163
|
oCurrentColumnExportSettings.columnId = oColumn.getId() + "-additionalProperty" + iIndex;
|
|
126
164
|
}
|
|
@@ -130,13 +168,13 @@ sap.ui.define([
|
|
|
130
168
|
}, this);
|
|
131
169
|
}
|
|
132
170
|
} else if (!bSplitCells && oExportSettings) {
|
|
133
|
-
// called for basic
|
|
171
|
+
// called for basic PropertyInfo having exportSettings
|
|
134
172
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
135
|
-
oColumnExportSettings.property = oProperty.
|
|
173
|
+
oColumnExportSettings.property = oProperty.path;
|
|
136
174
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
137
175
|
} else {
|
|
138
176
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
139
|
-
oColumnExportSettings.property = oProperty.
|
|
177
|
+
oColumnExportSettings.property = oProperty.path;
|
|
140
178
|
if (oColumnExportSettings.property) {
|
|
141
179
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
142
180
|
}
|
|
@@ -146,9 +184,9 @@ sap.ui.define([
|
|
|
146
184
|
|
|
147
185
|
if (sAdditionalPath) {
|
|
148
186
|
oAdditionalProperty = getAdditionalProperty(this, sAdditionalPath);
|
|
149
|
-
oAdditionExportSettings = oAdditionalProperty.
|
|
187
|
+
oAdditionExportSettings = oAdditionalProperty.exportSettings;
|
|
150
188
|
oAdditionalColumnExportSettings = getColumnExportSettingsObject(oColumn, oAdditionalProperty, oAdditionExportSettings, bSplitCells);
|
|
151
|
-
oAdditionalColumnExportSettings.property = oAdditionalProperty.
|
|
189
|
+
oAdditionalColumnExportSettings.property = oAdditionalProperty.path;
|
|
152
190
|
oAdditionalColumnExportSettings.columnId = oColumn.getId() + "-additionalProperty";
|
|
153
191
|
if (oAdditionExportSettings || oAdditionalColumnExportSettings.property) {
|
|
154
192
|
aColumnExportSettings.push(oAdditionalColumnExportSettings);
|
|
@@ -172,7 +210,7 @@ sap.ui.define([
|
|
|
172
210
|
|
|
173
211
|
if (!oProperty) {
|
|
174
212
|
oProperty = oPropertyHelper.getProperties().find(function(oProperty) {
|
|
175
|
-
return sPath === oProperty.
|
|
213
|
+
return sPath === oProperty.path;
|
|
176
214
|
});
|
|
177
215
|
}
|
|
178
216
|
|
|
@@ -196,7 +234,7 @@ sap.ui.define([
|
|
|
196
234
|
function getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells) {
|
|
197
235
|
var oExportObj = Object.assign({
|
|
198
236
|
columnId: oColumn.getId(),
|
|
199
|
-
label: oProperty.
|
|
237
|
+
label: oProperty.label,
|
|
200
238
|
width: getColumnWidthNumber(oColumn.getWidth()),
|
|
201
239
|
textAlign: oColumn.getHAlign(),
|
|
202
240
|
type: "String"
|
|
@@ -212,7 +250,7 @@ sap.ui.define([
|
|
|
212
250
|
/**
|
|
213
251
|
* Sets the width of the provided column based on the <code>visualSettings</code> of the relevant <code>PropertyInfo</code>.
|
|
214
252
|
*
|
|
215
|
-
* @param {sap.ui.mdc.table.Column} oMDCColumn The
|
|
253
|
+
* @param {sap.ui.mdc.table.Column} oMDCColumn The <code>Column</code> instance for which to set the width
|
|
216
254
|
* @public
|
|
217
255
|
* @since 1.95
|
|
218
256
|
*/
|
|
@@ -223,7 +261,7 @@ sap.ui.define([
|
|
|
223
261
|
return;
|
|
224
262
|
}
|
|
225
263
|
|
|
226
|
-
var mPropertyInfoVisualSettings = oProperty.
|
|
264
|
+
var mPropertyInfoVisualSettings = oProperty.visualSettings;
|
|
227
265
|
if (mPropertyInfoVisualSettings && mPropertyInfoVisualSettings.widthCalculation === null) {
|
|
228
266
|
return;
|
|
229
267
|
}
|
|
@@ -233,9 +271,9 @@ sap.ui.define([
|
|
|
233
271
|
};
|
|
234
272
|
|
|
235
273
|
/**
|
|
236
|
-
* Calculates the column width based on the provided <code>PropertyInfo</code
|
|
274
|
+
* Calculates the column width based on the provided <code>PropertyInfo</code>.
|
|
237
275
|
*
|
|
238
|
-
* @param {object} oProperty The properties of PropertyInfo of
|
|
276
|
+
* @param {object} oProperty The properties of <code>PropertyInfo</code> of <code>Column</code> instance for which to set the width
|
|
239
277
|
* @param {object} [mWidthCalculation] The configuration object for the width calculation
|
|
240
278
|
* @param {int} [mWidthCalculation.minWidth=2] The minimum content width in rem
|
|
241
279
|
* @param {int} [mWidthCalculation.maxWidth=19] The maximum content width in rem
|
|
@@ -251,7 +289,7 @@ sap.ui.define([
|
|
|
251
289
|
PropertyHelper.prototype._calcColumnWidth = function (oProperty, mWidthCalculation) {
|
|
252
290
|
var fWidth = 0;
|
|
253
291
|
var fLabelWidth = 0;
|
|
254
|
-
var mPropertyInfoWidthCalculation = oProperty.
|
|
292
|
+
var mPropertyInfoWidthCalculation = oProperty.visualSettings ? oProperty.visualSettings.widthCalculation : {};
|
|
255
293
|
|
|
256
294
|
mWidthCalculation = Object.assign({
|
|
257
295
|
minWidth: 2,
|
|
@@ -268,7 +306,7 @@ sap.ui.define([
|
|
|
268
306
|
|
|
269
307
|
if (oProperty.isComplex()) {
|
|
270
308
|
var aRelevantReferencedProperties = oProperty.getReferencedProperties().filter(function(oProp) {
|
|
271
|
-
return ![].concat(mWidthCalculation.excludeProperties).includes(oProp.
|
|
309
|
+
return ![].concat(mWidthCalculation.excludeProperties).includes(oProp.name);
|
|
272
310
|
});
|
|
273
311
|
|
|
274
312
|
aRelevantReferencedProperties.forEach(function(oReferencedProperty) {
|
|
@@ -283,13 +321,13 @@ sap.ui.define([
|
|
|
283
321
|
}
|
|
284
322
|
}, this);
|
|
285
323
|
} else {
|
|
286
|
-
var oTypeConfig = oProperty.
|
|
324
|
+
var oTypeConfig = oProperty.typeConfig;
|
|
287
325
|
var oType = oTypeConfig.typeInstance;
|
|
288
326
|
|
|
289
327
|
if (oType) {
|
|
290
328
|
fWidth = TableUtil.calcTypeWidth(oType, mWidthCalculation);
|
|
291
329
|
}
|
|
292
|
-
if (oProperty.
|
|
330
|
+
if (oProperty.unit) {
|
|
293
331
|
fWidth += 2.5;
|
|
294
332
|
}
|
|
295
333
|
}
|
|
@@ -297,8 +335,7 @@ sap.ui.define([
|
|
|
297
335
|
fWidth += mWidthCalculation.gap;
|
|
298
336
|
|
|
299
337
|
if (mWidthCalculation.includeLabel) {
|
|
300
|
-
|
|
301
|
-
fLabelWidth = TableUtil.calcHeaderWidth(sLabel, fWidth, iMaxWidth, iMinWidth);
|
|
338
|
+
fLabelWidth = TableUtil.calcHeaderWidth(oProperty.label, fWidth, iMaxWidth, iMinWidth);
|
|
302
339
|
}
|
|
303
340
|
|
|
304
341
|
fWidth = Math.max(iMinWidth, fWidth, fLabelWidth);
|
|
@@ -13,17 +13,17 @@ sap.ui.define([
|
|
|
13
13
|
var GrowingMode = library.GrowingMode;
|
|
14
14
|
var RowAction = library.RowAction;
|
|
15
15
|
/**
|
|
16
|
-
* Constructor for a new ResponsiveTableType
|
|
16
|
+
* Constructor for a new <code>ResponsiveTableType</code>.
|
|
17
17
|
*
|
|
18
|
-
* @param {string} [sId] ID for the new object
|
|
19
|
-
* @param {object} [mSettings]
|
|
20
|
-
* @class The table type info
|
|
21
|
-
* <h3><b>Note:</b></h3>
|
|
22
|
-
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
18
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
19
|
+
* @param {object} [mSettings] Initial settings for the new object
|
|
20
|
+
* @class The table type info class for the metadata-driven table.
|
|
23
21
|
* @extends sap.ui.mdc.table.TableTypeBase
|
|
24
22
|
* @author SAP SE
|
|
25
23
|
* @private
|
|
26
24
|
* @experimental
|
|
25
|
+
* @ui5-restricted sap.fe
|
|
26
|
+
* MDC_PUBLIC_CANDIDATE
|
|
27
27
|
* @since 1.65
|
|
28
28
|
* @alias sap.ui.mdc.table.ResponsiveTableType
|
|
29
29
|
* @ui5-metamodel This element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -34,21 +34,20 @@ sap.ui.define([
|
|
|
34
34
|
library: "sap.ui.mdc",
|
|
35
35
|
properties: {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* Defaults to Basic --> meaning only growing is enabled on ResponsiveTable
|
|
37
|
+
* Specifies the growing mode.
|
|
39
38
|
*/
|
|
40
39
|
growingMode: {
|
|
41
40
|
type: "sap.ui.mdc.GrowingMode",
|
|
42
41
|
defaultValue: GrowingMode.Basic
|
|
43
42
|
},
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
44
|
+
* Specifies whether the Show / Hide Details button for the <code>ResponsiveTable</code> scenario is shown.
|
|
46
45
|
*
|
|
47
|
-
* If the available screen space gets too narrow, the columns configured with <code>High</code> and <code>Medium</code>
|
|
48
|
-
*
|
|
49
|
-
* On mobile phones, the columns with <code>Medium</code> importance are also hidden
|
|
50
|
-
* As soon as the first column is hidden, this button appears in the table toolbar and gives the user
|
|
51
|
-
*
|
|
46
|
+
* If the available screen space gets too narrow, the columns configured with <code>High</code> and <code>Medium</code> importance
|
|
47
|
+
* move to the pop-in area, while the columns with <code>Low</code> importance are hidden.<br>
|
|
48
|
+
* On mobile phones, the columns with <code>Medium</code> importance are also hidden.<br>
|
|
49
|
+
* As soon as the first column is hidden, this button appears in the table toolbar and gives the user the possibility to toggle the
|
|
50
|
+
* visibility of the hidden columns in the pop-in area.
|
|
52
51
|
*
|
|
53
52
|
* @since 1.79
|
|
54
53
|
*/
|
|
@@ -58,14 +57,13 @@ sap.ui.define([
|
|
|
58
57
|
defaultValue: false
|
|
59
58
|
},
|
|
60
59
|
/**
|
|
61
|
-
* Defines which columns
|
|
62
|
-
* depending on their importance.
|
|
60
|
+
* Defines which columns are hidden instead of moved into the pop-in area depending on their importance.
|
|
63
61
|
* See {@link sap.m.Column#getImportance} and {@link sap.m.Table#getHiddenInPopin} for more details.
|
|
64
62
|
*
|
|
65
|
-
* <b>Note:</b> To hide columns based on their importance, it's mandatory to set <code>showDetailsButton="true"</code
|
|
66
|
-
* If no priority is given, the default configuration of {@link sap.ui.mdc.table.ResponsiveTableType#getShowDetailsButton} is used
|
|
67
|
-
* If this property is changed after the <code>
|
|
68
|
-
*
|
|
63
|
+
* <b>Note:</b> To hide columns based on their importance, it's mandatory to set <code>showDetailsButton="true"</code>.<br>
|
|
64
|
+
* If no priority is given, the default configuration of {@link sap.ui.mdc.table.ResponsiveTableType#getShowDetailsButton} is used.<br>
|
|
65
|
+
* If this property is changed after the <code>Table</code> has been initialized, the new changes take effect only when the Show /
|
|
66
|
+
* Hide Details button is pressed a second time.
|
|
69
67
|
*
|
|
70
68
|
* @since 1.86
|
|
71
69
|
*/
|
|
@@ -232,16 +230,16 @@ sap.ui.define([
|
|
|
232
230
|
var oRb = Core.getLibraryResourceBundle("sap.ui.mdc"), sText;
|
|
233
231
|
|
|
234
232
|
sText = this.bHideDetails ? oRb.getText("table.SHOWDETAILS_TEXT") : oRb.getText("table.HIDEDETAILS_TEXT");
|
|
235
|
-
this._oShowDetailsButton.setTooltip(sText);
|
|
236
233
|
this._oShowDetailsButton.setText(sText);
|
|
237
234
|
};
|
|
238
235
|
|
|
239
236
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
237
|
+
* Toggles the visibility of the Show Details button.<br>
|
|
238
|
+
* If {@param bValue} is set to <code>true</code>, it sets the <code>hiddenInPopin</code> property on the inner <code>ResponsiveTable</code> to
|
|
239
|
+
* hide columns based on the <code>Table</code> configuration (<code>showDetailsButton</code> and <code>detailsButtonSetting</code> properties).
|
|
242
240
|
* Otherwise an empty array is set to show all columns.
|
|
243
241
|
*
|
|
244
|
-
* @param {boolean} bValue -
|
|
242
|
+
* @param {boolean} bValue - Whether to hide details and display the Show Details button
|
|
245
243
|
* @private
|
|
246
244
|
*/
|
|
247
245
|
ResponsiveTableType.prototype._toggleShowDetails = function(bValue) {
|
|
@@ -274,10 +272,9 @@ sap.ui.define([
|
|
|
274
272
|
};
|
|
275
273
|
|
|
276
274
|
/**
|
|
277
|
-
* Helper function to get the importance of the columns
|
|
278
|
-
* MDCTable configuration.
|
|
275
|
+
* Helper function to get the importance of the columns to be hidden based on <code>Table</code> configuration.
|
|
279
276
|
*
|
|
280
|
-
* @returns {array} sap.ui.core.Priority[]
|
|
277
|
+
* @returns {array} sap.ui.core.Priority[] Array of column priorities
|
|
281
278
|
* @private
|
|
282
279
|
*/
|
|
283
280
|
ResponsiveTableType.prototype._getImportanceToHide = function() {
|
|
@@ -294,9 +291,9 @@ sap.ui.define([
|
|
|
294
291
|
};
|
|
295
292
|
|
|
296
293
|
/**
|
|
297
|
-
* Event handler when the table pop-in has changed.
|
|
294
|
+
* Event handler called when the table pop-in has changed.
|
|
298
295
|
*
|
|
299
|
-
* @param {sap.ui.base.Event} oEvent -
|
|
296
|
+
* @param {sap.ui.base.Event} oEvent - Event object
|
|
300
297
|
* @private
|
|
301
298
|
*/
|
|
302
299
|
ResponsiveTableType.prototype._onPopinChanged = function(oEvent) {
|
|
@@ -12,17 +12,20 @@ sap.ui.define([
|
|
|
12
12
|
/**
|
|
13
13
|
* Constructor for new RowSettings.
|
|
14
14
|
*
|
|
15
|
-
* @param {string} [sId] ID for the new
|
|
15
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
16
16
|
* @param {object} [mSettings] Initial settings for the new control
|
|
17
17
|
*
|
|
18
18
|
* @class
|
|
19
|
-
* The <code>RowSettings</code> control
|
|
20
|
-
*
|
|
19
|
+
* The <code>RowSettings</code> control is used to configure a row.
|
|
20
|
+
* This control can only be used in the context of the <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
21
21
|
* @extends sap.ui.core.Element
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.99.0
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
|
+
* @experimental
|
|
25
26
|
* @private
|
|
27
|
+
* @ui5-restricted sap.fe
|
|
28
|
+
* MDC_PUBLIC_CANDIDATE
|
|
26
29
|
* @alias sap.ui.mdc.table.RowSettings
|
|
27
30
|
*/
|
|
28
31
|
|
|
@@ -48,7 +51,6 @@ sap.ui.define([
|
|
|
48
51
|
|
|
49
52
|
/**
|
|
50
53
|
* Defines the semantics of the {@link sap.ui.mdc.table.RowSettings#setHighlight highlight} property for accessibility purposes.
|
|
51
|
-
*
|
|
52
54
|
*/
|
|
53
55
|
highlightText : {type : "string", group : "Misc", defaultValue : ""},
|
|
54
56
|
|
|
@@ -10,16 +10,16 @@ sap.ui.define([
|
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Constructor for a new TableTypeBase
|
|
13
|
+
* Constructor for a new <code>TableTypeBase</code>.
|
|
14
14
|
*
|
|
15
|
-
* @param {string} [sId] ID for the new object
|
|
16
|
-
* @param {object} [mSettings]
|
|
17
|
-
* @class The table type info base class for the metadata
|
|
18
|
-
* <h3><b>Note:</b></h3>
|
|
19
|
-
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
15
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
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.
|
|
20
18
|
* @extends sap.ui.core.Element
|
|
21
19
|
* @author SAP SE
|
|
22
20
|
* @private
|
|
21
|
+
* @ui5-restricted sap.fe
|
|
22
|
+
* MDC_PUBLIC_CANDIDATE
|
|
23
23
|
* @abstract
|
|
24
24
|
* @experimental
|
|
25
25
|
* @since 1.65
|
|
@@ -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.99.0
|
|
31
31
|
*
|
|
32
32
|
* @private
|
|
33
33
|
* @experimental
|
|
@@ -49,58 +49,23 @@ sap.ui.define([
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @inheritDoc
|
|
52
|
-
* @override
|
|
53
52
|
*/
|
|
54
53
|
PropertyHelper.prototype.prepareProperty = function(oProperty) {
|
|
55
|
-
var sPropertyName = oProperty.getName();
|
|
56
|
-
var that = this;
|
|
57
|
-
|
|
58
54
|
TablePropertyHelper.prototype.prepareProperty.apply(this, arguments);
|
|
55
|
+
oProperty.aggregatable = oProperty.extension.defaultAggregate != null;
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
function getExtensionAttribute(oPropertyHelper, sPropertyName, sAttributeName) {
|
|
70
|
-
var oProperty = oPropertyHelper.getProperty(sPropertyName);
|
|
71
|
-
return oProperty ? oProperty.extension[sAttributeName] : null;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Checks whether a property is aggregatable.
|
|
76
|
-
*
|
|
77
|
-
* @param {string} sName Name of a property
|
|
78
|
-
* @returns {boolean|null} Whether the property is aggregatable, or <code>null</code> if it is unknown
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
PropertyHelper.prototype.isAggregatable = function(sName) {
|
|
82
|
-
return this.hasProperty(sName) ? this.getDefaultAggregate(sName) !== null : null;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Gets all aggregatable properties referenced by a complex property. For convenience, a non-complex property can be given that is then
|
|
87
|
-
* returned if it is aggregatable.
|
|
88
|
-
*
|
|
89
|
-
* @param {string} sName Name of a property
|
|
90
|
-
* @returns {object[]} The aggregatable properties
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
PropertyHelper.prototype.getAggregatableProperties = function(sName) {
|
|
94
|
-
var oProperty = this.getProperty(sName);
|
|
95
|
-
var aProperties = [];
|
|
96
|
-
|
|
97
|
-
if (oProperty) {
|
|
98
|
-
aProperties = oProperty.isComplex() ? oProperty.getReferencedProperties() : [oProperty];
|
|
99
|
-
}
|
|
57
|
+
/**
|
|
58
|
+
* Gets all aggregatable properties referenced by the property, including the property itself if it is non-complex.
|
|
59
|
+
*
|
|
60
|
+
* @returns {object[]} The aggregatable properties
|
|
61
|
+
*/
|
|
62
|
+
oProperty.getAggregatableProperties = function() {
|
|
63
|
+
var aProperties = oProperty.isComplex() ? oProperty.getReferencedProperties() : [oProperty];
|
|
100
64
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
65
|
+
return aProperties.filter(function(oProperty) {
|
|
66
|
+
return oProperty.aggregatable;
|
|
67
|
+
});
|
|
68
|
+
};
|
|
104
69
|
};
|
|
105
70
|
|
|
106
71
|
/**
|
|
@@ -109,32 +74,11 @@ sap.ui.define([
|
|
|
109
74
|
* @returns {object[]} All aggregatable properties
|
|
110
75
|
* @public
|
|
111
76
|
*/
|
|
112
|
-
PropertyHelper.prototype.
|
|
77
|
+
PropertyHelper.prototype.getAggregatableProperties = function() {
|
|
113
78
|
return this.getProperties().filter(function(oProperty) {
|
|
114
|
-
return oProperty.
|
|
79
|
+
return oProperty.aggregatable;
|
|
115
80
|
});
|
|
116
81
|
};
|
|
117
82
|
|
|
118
|
-
/**
|
|
119
|
-
* Gets the information about the default aggregate.
|
|
120
|
-
*
|
|
121
|
-
* @param {string} sName Name of a property
|
|
122
|
-
* @returns {{unit: (object|null), contextDefiningProperties: object[]}|null}
|
|
123
|
-
* The default aggregate, or <code>null</code> if the property has no default aggregate or is unknown
|
|
124
|
-
* @public
|
|
125
|
-
*/
|
|
126
|
-
PropertyHelper.prototype.getDefaultAggregate = function(sName) {
|
|
127
|
-
var mDefaultAggregate = getExtensionAttribute(this, sName, "defaultAggregate");
|
|
128
|
-
|
|
129
|
-
if (!mDefaultAggregate) {
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return {
|
|
134
|
-
contextDefiningProperties: mDefaultAggregate._contextDefiningProperties || [],
|
|
135
|
-
unit: this.getUnitProperty(sName)
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
|
|
139
83
|
return PropertyHelper;
|
|
140
84
|
});
|
|
@@ -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
|
+
}
|