@openui5/sap.ui.mdc 1.96.1 → 1.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +2 -1
- 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 +1 -1
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +2 -2
- package/src/sap/ui/mdc/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/ChartDelegateNew.js +1 -1
- package/src/sap/ui/mdc/ChartNew.js +2 -2
- package/src/sap/ui/mdc/ChartNewRenderer.js +3 -3
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- 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 +2 -2
- package/src/sap/ui/mdc/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +17 -3
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/LinkDelegate.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +3 -2
- package/src/sap/ui/mdc/Table.js +175 -135
- package/src/sap/ui/mdc/TableDelegate.js +14 -12
- package/src/sap/ui/mdc/ValueHelp.js +34 -8
- 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/chart/ChartSettings.js +1 -1
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +1 -1
- package/src/sap/ui/mdc/chart/DimensionItem.js +1 -1
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +1 -1
- package/src/sap/ui/mdc/chart/Item.js +1 -1
- package/src/sap/ui/mdc/chart/MeasureItem.js +1 -1
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionHandler.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillBreadcrumbsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ItemNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +2 -2
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +18 -18
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +21 -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 +1 -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 +2 -2
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +55 -48
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +1 -1
- 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 +7 -7
- 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 +2 -2
- 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 +26 -18
- 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 +2 -2
- 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 +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +2 -2
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +2 -2
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/PanelItem.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/SortFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +1 -1
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +1 -1
- package/src/sap/ui/mdc/library.js +20 -4
- 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 +2 -2
- 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 +2 -2
- 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/SelectionDialog.js +2 -2
- package/src/sap/ui/mdc/link/SelectionDialogItem.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 +13 -4
- package/src/sap/ui/mdc/messagebundle_ar.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +27 -13
- package/src/sap/ui/mdc/messagebundle_cy.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_en.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -19
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +14 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +17 -3
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_fr.properties +22 -8
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +15 -1
- package/src/sap/ui/mdc/messagebundle_hi.properties +17 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_iw.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +24 -10
- package/src/sap/ui/mdc/messagebundle_kk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_no.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_tr.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +16 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +18 -4
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +17 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +4 -4
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -2
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +2 -2
- 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 +66 -38
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +2 -2
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +13 -4
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +33 -10
- package/src/sap/ui/mdc/p13n/FlexUtil.js +1 -1
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +2 -2
- 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 +21 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +12 -7
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +1 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +41 -33
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ListView.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +35 -10
- package/src/sap/ui/mdc/table/CreationRow.js +15 -14
- package/src/sap/ui/mdc/table/GridTableType.js +12 -11
- package/src/sap/ui/mdc/table/PropertyHelper.js +22 -22
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +24 -25
- package/src/sap/ui/mdc/table/RowSettings.js +9 -7
- package/src/sap/ui/mdc/table/TableSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +5 -5
- 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/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 +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 +1 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +2 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +112 -320
- package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/util/loadModules.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +3 -2
- package/src/sap/ui/mdc/valuehelp/Popover.js +14 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +33 -2
- package/src/sap/ui/mdc/valuehelp/base/Content.js +36 -6
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -2
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +43 -16
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +26 -32
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +2 -2
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +9 -4
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +16 -4
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +102 -96
- 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
|
|
|
@@ -10,17 +10,17 @@ sap.ui.define([
|
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Constructor for a new Column
|
|
13
|
+
* Constructor for a new <code>Column</column>.
|
|
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
|
-
* @class The column for the metadata driven table, that
|
|
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.
|
|
17
|
+
* @class The column for the metadata driven table, that holds the template to be shown when the rows has data.
|
|
20
18
|
* @extends sap.ui.core.Element
|
|
21
19
|
* @author SAP SE
|
|
22
20
|
* @private
|
|
23
21
|
* @experimental
|
|
22
|
+
* @ui5-restricted sap.fe
|
|
23
|
+
* MDC_PUBLIC_CANDIDATE
|
|
24
24
|
* @since 1.58
|
|
25
25
|
* @alias sap.ui.mdc.table.Column
|
|
26
26
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -31,16 +31,25 @@ sap.ui.define([
|
|
|
31
31
|
library: "sap.ui.mdc",
|
|
32
32
|
defaultAggregation: "template",
|
|
33
33
|
properties: {
|
|
34
|
+
/**
|
|
35
|
+
* Width of the column
|
|
36
|
+
*/
|
|
34
37
|
width: {
|
|
35
38
|
type: "sap.ui.core.CSSSize",
|
|
36
39
|
group: "Dimension",
|
|
37
40
|
defaultValue: null
|
|
38
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* Minimal width of the column
|
|
44
|
+
*/
|
|
39
45
|
minWidth: {
|
|
40
46
|
type: "float",
|
|
41
47
|
group: "Behavior",
|
|
42
48
|
defaultValue: 8
|
|
43
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* The column header text
|
|
52
|
+
*/
|
|
44
53
|
header: {
|
|
45
54
|
type: "string"
|
|
46
55
|
},
|
|
@@ -53,10 +62,16 @@ sap.ui.define([
|
|
|
53
62
|
group: "Misc",
|
|
54
63
|
defaultValue: true
|
|
55
64
|
},
|
|
65
|
+
/**
|
|
66
|
+
* Horizontal alignment of the content
|
|
67
|
+
*/
|
|
56
68
|
hAlign: {
|
|
57
69
|
type: "sap.ui.core.HorizontalAlign",
|
|
58
70
|
defaultValue: "Begin"
|
|
59
71
|
},
|
|
72
|
+
/**
|
|
73
|
+
* Importance of the column. It is used to show or hide the column based on the <code>MDCTable</code> configuration.
|
|
74
|
+
*/
|
|
60
75
|
importance: {
|
|
61
76
|
type: "sap.ui.core.Priority",
|
|
62
77
|
group: "Behavior",
|
|
@@ -70,16 +85,26 @@ sap.ui.define([
|
|
|
70
85
|
type: "int",
|
|
71
86
|
defaultValue: -1
|
|
72
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* The data property related to the column
|
|
90
|
+
*/
|
|
73
91
|
dataProperty: {
|
|
74
92
|
type: "string"
|
|
75
93
|
}
|
|
76
94
|
},
|
|
77
95
|
events: {},
|
|
78
96
|
aggregations: {
|
|
97
|
+
/**
|
|
98
|
+
* Template for the column
|
|
99
|
+
*/
|
|
79
100
|
template: {
|
|
80
101
|
type: "sap.ui.core.Control",
|
|
81
102
|
multiple: false
|
|
82
103
|
},
|
|
104
|
+
/**
|
|
105
|
+
* <code>CreationRow</code> template
|
|
106
|
+
* <b>Note:</b> Once the binding implements support for creating transient records, this aggregation will be removed.
|
|
107
|
+
*/
|
|
83
108
|
creationTemplate: {
|
|
84
109
|
type: "sap.ui.core.Control",
|
|
85
110
|
multiple: false
|
|
@@ -215,10 +240,10 @@ sap.ui.define([
|
|
|
215
240
|
|
|
216
241
|
/**
|
|
217
242
|
* Creates and returns the column header control.
|
|
218
|
-
* If <code>headerVisible=false</code> then, <code>width=0px</code> is applied to the sap.m.Label control for accessibility purpose.
|
|
219
|
-
* @param {boolean} bMobileTable
|
|
220
|
-
* @param {boolean} bResizing
|
|
221
|
-
* @returns {object} column header control
|
|
243
|
+
* If <code>headerVisible=false</code> then, <code>width=0px</code> is applied to the <code>sap.m.Label</code> control for accessibility purpose.
|
|
244
|
+
* @param {boolean} bMobileTable The type of the table
|
|
245
|
+
* @param {boolean} bResizing Indicates whether the column is resizable
|
|
246
|
+
* @returns {object} The column header control
|
|
222
247
|
* @private
|
|
223
248
|
*/
|
|
224
249
|
Column.prototype.getColumnHeaderControl = function(bMobileTable, bResizing) {
|
|
@@ -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
|
|
|
@@ -14,18 +14,18 @@ sap.ui.define([
|
|
|
14
14
|
/**
|
|
15
15
|
* Constructor for a new CreationRow.
|
|
16
16
|
*
|
|
17
|
-
* @param {string} [sId] ID for the new
|
|
18
|
-
* @param {object} [mSettings]
|
|
17
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
18
|
+
* @param {object} [mSettings] initial settings for the new control
|
|
19
19
|
* @class Allows to enter data in a row shaped form, if the table's {@link sap.ui.mdc.TableType TableType} is "<code>Table</code>". The form
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
20
|
+
* elements are aligned with the columns of the table, and are created automatically based on the
|
|
21
|
+
* {@link sap.ui.mdc.table.Column#getCreationTemplate creationTemplate} aggregation of the {@link sap.ui.mdc.table.Column}.
|
|
23
22
|
* @extends sap.ui.core.Element
|
|
24
23
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
24
|
+
* @version 1.97.1
|
|
26
25
|
* @constructor
|
|
27
|
-
* @private
|
|
28
26
|
* @experimental
|
|
27
|
+
* @private
|
|
28
|
+
* @ui5-restricted sap.fe
|
|
29
29
|
* @since 1.65
|
|
30
30
|
* @alias sap.ui.mdc.table.CreationRow
|
|
31
31
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
defaultValue: true
|
|
45
45
|
},
|
|
46
46
|
/**
|
|
47
|
-
* Determines whether the <code>sap.ui.mdc.table.CreationRow</code> and its inner control are in a busy state
|
|
47
|
+
* Determines whether the <code>sap.ui.mdc.table.CreationRow</code> and its inner control are in a busy state
|
|
48
48
|
*/
|
|
49
49
|
busy: {
|
|
50
50
|
type: "boolean",
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
defaultValue: false
|
|
53
53
|
},
|
|
54
54
|
/**
|
|
55
|
-
* Visibility of
|
|
55
|
+
* Visibility of the <code>CreationRow</code>
|
|
56
56
|
*/
|
|
57
57
|
visible: {
|
|
58
58
|
type: "boolean",
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
},
|
|
63
63
|
events: {
|
|
64
64
|
/**
|
|
65
|
-
* Fired when the corresponding keyboard shortcut or the apply button of the toolbar are pressed
|
|
65
|
+
* Fired when the corresponding keyboard shortcut or the apply button of the toolbar are pressed
|
|
66
66
|
*/
|
|
67
67
|
apply: {
|
|
68
68
|
allowPreventDefault: true
|
|
@@ -91,6 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
*
|
|
92
92
|
* @param {boolean} bBusy Busy state that is applied to the inner control
|
|
93
93
|
* @returns {this} Returns <code>this</code> to allow method chaining
|
|
94
|
+
* @private
|
|
94
95
|
*/
|
|
95
96
|
CreationRow.prototype.setBusy = function(bBusy) {
|
|
96
97
|
this.setProperty('busy', bBusy, true);
|
|
@@ -144,10 +145,10 @@ sap.ui.define([
|
|
|
144
145
|
};
|
|
145
146
|
|
|
146
147
|
/**
|
|
147
|
-
* Updates the row based on the configuration of the table this row is inside.
|
|
148
|
+
* Updates the row based on the configuration of the table this row is inside of.
|
|
148
149
|
*
|
|
149
|
-
* @private
|
|
150
150
|
* @returns {Promise} Promise that resolves once the inner <code>CreationRow</code> control is updated
|
|
151
|
+
* @private
|
|
151
152
|
*/
|
|
152
153
|
CreationRow.prototype.update = function() {
|
|
153
154
|
return this._updateInnerCreationRow();
|
|
@@ -230,7 +231,7 @@ sap.ui.define([
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
/**
|
|
233
|
-
* Gets the table this row is inside.
|
|
234
|
+
* Gets the table this row is inside of.
|
|
234
235
|
*
|
|
235
236
|
* @return {sap.ui.mdc.Table|null} The instance of the table or <code>null</code>, if this row is not inside a table.
|
|
236
237
|
* @private
|
|
@@ -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
|
|
|
@@ -14,17 +14,17 @@ sap.ui.define([
|
|
|
14
14
|
var RowAction = library.RowAction;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Constructor for a new GridTableType
|
|
17
|
+
* Constructor for a new <code>GridTableType</code>.
|
|
18
18
|
*
|
|
19
|
-
* @param {string} [sId] ID for the new object
|
|
19
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
20
20
|
* @param {object} [mSettings] initial settings for the new object
|
|
21
21
|
* @class The table type info base class for the metadata driven table.
|
|
22
|
-
* <h3><b>Note:</b></h3>
|
|
23
|
-
* The control is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
24
22
|
* @extends sap.ui.mdc.table.TableTypeBase
|
|
25
23
|
* @author SAP SE
|
|
26
24
|
* @private
|
|
27
25
|
* @experimental
|
|
26
|
+
* @ui5-restricted sap.fe
|
|
27
|
+
* MDC_PUBLIC_CANDIDATE
|
|
28
28
|
* @since 1.65
|
|
29
29
|
* @alias sap.ui.mdc.table.GridTableType
|
|
30
30
|
* @ui5-metamodel This element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -36,16 +36,16 @@ sap.ui.define([
|
|
|
36
36
|
properties: {
|
|
37
37
|
/**
|
|
38
38
|
* See sap.ui.mdc.RowCountMode for the options.<br>
|
|
39
|
-
* Defaults to Auto
|
|
39
|
+
* Defaults to Auto - meaning table adjusts its height based on the parent container
|
|
40
40
|
*/
|
|
41
41
|
rowCountMode: {
|
|
42
42
|
type: "sap.ui.mdc.RowCountMode",
|
|
43
43
|
defaultValue: RowCountMode.Auto
|
|
44
44
|
},
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* When sap.ui.mdc.RowCountMode.Auto is used - this property specifies the minAutoRowCount
|
|
48
|
-
* When sap.ui.mdc.RowCountMode.Fixed is used - this property specifies the visibleRowCount
|
|
46
|
+
* Row count of the inner table.<br>
|
|
47
|
+
* When <code>sap.ui.mdc.RowCountMode.Auto</code> is used - this property specifies the <code>minAutoRowCount</code>.<br>
|
|
48
|
+
* When <code>sap.ui.mdc.RowCountMode.Fixed</code> is used - this property specifies the <code>visibleRowCount</code>.
|
|
49
49
|
*/
|
|
50
50
|
rowCount: {
|
|
51
51
|
type: "int",
|
|
@@ -53,14 +53,15 @@ sap.ui.define([
|
|
|
53
53
|
},
|
|
54
54
|
/**
|
|
55
55
|
* Number of indices which can be selected in a range.
|
|
56
|
-
* Accepts positive integer values. If set to 0, the selection limit is disabled, and the Select All checkbox appears instead of the
|
|
56
|
+
* Accepts positive integer values. If set to 0, the selection limit is disabled, and the Select All checkbox appears instead of the
|
|
57
|
+
* Deselect All button.
|
|
57
58
|
*/
|
|
58
59
|
selectionLimit : {
|
|
59
60
|
type : "int",
|
|
60
61
|
defaultValue : 200
|
|
61
62
|
},
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* Determines whether the header selector is shown.
|
|
64
65
|
*/
|
|
65
66
|
showHeaderSelector : {
|
|
66
67
|
type : "boolean",
|
|
@@ -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
|
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.mdc.util.PropertyHelper
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.97.1
|
|
41
41
|
*
|
|
42
42
|
* @private
|
|
43
43
|
* @experimental
|
|
@@ -68,11 +68,12 @@ sap.ui.define([
|
|
|
68
68
|
return "";
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/**
|
|
72
|
+
* @inheritDoc
|
|
73
|
+
*/
|
|
71
74
|
PropertyHelper.prototype.prepareProperty = function(oProperty) {
|
|
72
75
|
PropertyHelperBase.prototype.prepareProperty.apply(this, arguments);
|
|
73
|
-
oProperty.
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
76
|
+
oProperty.aggregatable = false;
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
/**
|
|
@@ -98,7 +99,7 @@ sap.ui.define([
|
|
|
98
99
|
|
|
99
100
|
var aColumnExportSettings = [];
|
|
100
101
|
var aPropertiesFromComplexProperty;
|
|
101
|
-
var oExportSettings = oProperty.
|
|
102
|
+
var oExportSettings = oProperty.exportSettings;
|
|
102
103
|
var oColumnExportSettings;
|
|
103
104
|
var aPaths = [];
|
|
104
105
|
var sAdditionalPath;
|
|
@@ -111,16 +112,16 @@ sap.ui.define([
|
|
|
111
112
|
if (!bSplitCells && oExportSettings) {
|
|
112
113
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
113
114
|
aPropertiesFromComplexProperty.forEach(function(oProperty) {
|
|
114
|
-
aPaths.push(oProperty.
|
|
115
|
+
aPaths.push(oProperty.path);
|
|
115
116
|
});
|
|
116
117
|
oColumnExportSettings.property = aPaths;
|
|
117
118
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
118
119
|
} else {
|
|
119
120
|
// when there are no exportSettings given for a ComplexProperty or when the splitCells=true
|
|
120
121
|
aPropertiesFromComplexProperty.forEach(function(oProperty, iIndex) {
|
|
121
|
-
var oPropertyInfoExportSettings = oProperty.
|
|
122
|
+
var oPropertyInfoExportSettings = oProperty.exportSettings,
|
|
122
123
|
oCurrentColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oPropertyInfoExportSettings, bSplitCells);
|
|
123
|
-
oCurrentColumnExportSettings.property = oProperty.
|
|
124
|
+
oCurrentColumnExportSettings.property = oProperty.path;
|
|
124
125
|
if (iIndex > 0) {
|
|
125
126
|
oCurrentColumnExportSettings.columnId = oColumn.getId() + "-additionalProperty" + iIndex;
|
|
126
127
|
}
|
|
@@ -132,11 +133,11 @@ sap.ui.define([
|
|
|
132
133
|
} else if (!bSplitCells && oExportSettings) {
|
|
133
134
|
// called for basic propertyInfo having exportSettings
|
|
134
135
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
135
|
-
oColumnExportSettings.property = oProperty.
|
|
136
|
+
oColumnExportSettings.property = oProperty.path;
|
|
136
137
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
137
138
|
} else {
|
|
138
139
|
oColumnExportSettings = getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells);
|
|
139
|
-
oColumnExportSettings.property = oProperty.
|
|
140
|
+
oColumnExportSettings.property = oProperty.path;
|
|
140
141
|
if (oColumnExportSettings.property) {
|
|
141
142
|
aColumnExportSettings.push(oColumnExportSettings);
|
|
142
143
|
}
|
|
@@ -146,9 +147,9 @@ sap.ui.define([
|
|
|
146
147
|
|
|
147
148
|
if (sAdditionalPath) {
|
|
148
149
|
oAdditionalProperty = getAdditionalProperty(this, sAdditionalPath);
|
|
149
|
-
oAdditionExportSettings = oAdditionalProperty.
|
|
150
|
+
oAdditionExportSettings = oAdditionalProperty.exportSettings;
|
|
150
151
|
oAdditionalColumnExportSettings = getColumnExportSettingsObject(oColumn, oAdditionalProperty, oAdditionExportSettings, bSplitCells);
|
|
151
|
-
oAdditionalColumnExportSettings.property = oAdditionalProperty.
|
|
152
|
+
oAdditionalColumnExportSettings.property = oAdditionalProperty.path;
|
|
152
153
|
oAdditionalColumnExportSettings.columnId = oColumn.getId() + "-additionalProperty";
|
|
153
154
|
if (oAdditionExportSettings || oAdditionalColumnExportSettings.property) {
|
|
154
155
|
aColumnExportSettings.push(oAdditionalColumnExportSettings);
|
|
@@ -172,7 +173,7 @@ sap.ui.define([
|
|
|
172
173
|
|
|
173
174
|
if (!oProperty) {
|
|
174
175
|
oProperty = oPropertyHelper.getProperties().find(function(oProperty) {
|
|
175
|
-
return sPath === oProperty.
|
|
176
|
+
return sPath === oProperty.path;
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
179
|
|
|
@@ -196,7 +197,7 @@ sap.ui.define([
|
|
|
196
197
|
function getColumnExportSettingsObject(oColumn, oProperty, oExportSettings, bSplitCells) {
|
|
197
198
|
var oExportObj = Object.assign({
|
|
198
199
|
columnId: oColumn.getId(),
|
|
199
|
-
label: oProperty.
|
|
200
|
+
label: oProperty.label,
|
|
200
201
|
width: getColumnWidthNumber(oColumn.getWidth()),
|
|
201
202
|
textAlign: oColumn.getHAlign(),
|
|
202
203
|
type: "String"
|
|
@@ -223,7 +224,7 @@ sap.ui.define([
|
|
|
223
224
|
return;
|
|
224
225
|
}
|
|
225
226
|
|
|
226
|
-
var mPropertyInfoVisualSettings = oProperty.
|
|
227
|
+
var mPropertyInfoVisualSettings = oProperty.visualSettings;
|
|
227
228
|
if (mPropertyInfoVisualSettings && mPropertyInfoVisualSettings.widthCalculation === null) {
|
|
228
229
|
return;
|
|
229
230
|
}
|
|
@@ -251,7 +252,7 @@ sap.ui.define([
|
|
|
251
252
|
PropertyHelper.prototype._calcColumnWidth = function (oProperty, mWidthCalculation) {
|
|
252
253
|
var fWidth = 0;
|
|
253
254
|
var fLabelWidth = 0;
|
|
254
|
-
var mPropertyInfoWidthCalculation = oProperty.
|
|
255
|
+
var mPropertyInfoWidthCalculation = oProperty.visualSettings ? oProperty.visualSettings.widthCalculation : {};
|
|
255
256
|
|
|
256
257
|
mWidthCalculation = Object.assign({
|
|
257
258
|
minWidth: 2,
|
|
@@ -268,7 +269,7 @@ sap.ui.define([
|
|
|
268
269
|
|
|
269
270
|
if (oProperty.isComplex()) {
|
|
270
271
|
var aRelevantReferencedProperties = oProperty.getReferencedProperties().filter(function(oProp) {
|
|
271
|
-
return ![].concat(mWidthCalculation.excludeProperties).includes(oProp.
|
|
272
|
+
return ![].concat(mWidthCalculation.excludeProperties).includes(oProp.name);
|
|
272
273
|
});
|
|
273
274
|
|
|
274
275
|
aRelevantReferencedProperties.forEach(function(oReferencedProperty) {
|
|
@@ -283,13 +284,13 @@ sap.ui.define([
|
|
|
283
284
|
}
|
|
284
285
|
}, this);
|
|
285
286
|
} else {
|
|
286
|
-
var oTypeConfig = oProperty.
|
|
287
|
+
var oTypeConfig = oProperty.typeConfig;
|
|
287
288
|
var oType = oTypeConfig.typeInstance;
|
|
288
289
|
|
|
289
290
|
if (oType) {
|
|
290
291
|
fWidth = TableUtil.calcTypeWidth(oType, mWidthCalculation);
|
|
291
292
|
}
|
|
292
|
-
if (oProperty.
|
|
293
|
+
if (oProperty.unit) {
|
|
293
294
|
fWidth += 2.5;
|
|
294
295
|
}
|
|
295
296
|
}
|
|
@@ -297,8 +298,7 @@ sap.ui.define([
|
|
|
297
298
|
fWidth += mWidthCalculation.gap;
|
|
298
299
|
|
|
299
300
|
if (mWidthCalculation.includeLabel) {
|
|
300
|
-
|
|
301
|
-
fLabelWidth = TableUtil.calcHeaderWidth(sLabel, fWidth, iMaxWidth, iMinWidth);
|
|
301
|
+
fLabelWidth = TableUtil.calcHeaderWidth(oProperty.label, fWidth, iMaxWidth, iMinWidth);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
fWidth = Math.max(iMinWidth, fWidth, fLabelWidth);
|
|
@@ -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
|
|
|
@@ -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
|
|
18
|
+
* @param {string} [sId] Optional ID for the new object; generated automatically if no non-empty ID is given
|
|
19
19
|
* @param {object} [mSettings] initial settings for the new object
|
|
20
20
|
* @class The table type info base class for the metadata driven table.
|
|
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.
|
|
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,21 @@ sap.ui.define([
|
|
|
34
34
|
library: "sap.ui.mdc",
|
|
35
35
|
properties: {
|
|
36
36
|
/**
|
|
37
|
-
* See sap.ui.mdc.GrowingMode
|
|
38
|
-
* Defaults to Basic
|
|
37
|
+
* See <code>sap.ui.mdc.GrowingMode</code><br>
|
|
38
|
+
* Defaults to Basic - meaning only growing is enabled on <code>ResponsiveTable</code>
|
|
39
39
|
*/
|
|
40
40
|
growingMode: {
|
|
41
41
|
type: "sap.ui.mdc.GrowingMode",
|
|
42
42
|
defaultValue: GrowingMode.Basic
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Specifies whether the Show / Hide Details button for the <code>ResponsiveTable</code> scenario is shown.
|
|
46
46
|
*
|
|
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
|
-
*
|
|
47
|
+
* If the available screen space gets too narrow, the columns configured with <code>High</code> and <code>Medium</code> importance
|
|
48
|
+
* move to the pop-in area, while the columns with <code>Low</code> importance are hidden.<br>
|
|
49
|
+
* On mobile phones, the columns with <code>Medium</code> importance are also hidden.<br>
|
|
50
|
+
* As soon as the first column is hidden, this button appears in the table toolbar and gives the user the possibility to toggle the
|
|
51
|
+
* visibility of the hidden columns in the pop-in area.
|
|
52
52
|
*
|
|
53
53
|
* @since 1.79
|
|
54
54
|
*/
|
|
@@ -58,12 +58,11 @@ sap.ui.define([
|
|
|
58
58
|
defaultValue: false
|
|
59
59
|
},
|
|
60
60
|
/**
|
|
61
|
-
* Defines which columns should be hidden instead of moved into the pop-in area
|
|
62
|
-
* depending on their importance.
|
|
61
|
+
* Defines which columns should be hidden instead of moved into the pop-in area depending on their importance.
|
|
63
62
|
* See {@link sap.m.Column#getImportance} and {@link sap.m.Table#getHiddenInPopin} for more details.
|
|
64
63
|
*
|
|
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
|
|
64
|
+
* <b>Note:</b> To hide columns based on their importance, it's mandatory to set <code>showDetailsButton="true"</code>.<br>
|
|
65
|
+
* If no priority is given, the default configuration of {@link sap.ui.mdc.table.ResponsiveTableType#getShowDetailsButton} is used.<br>
|
|
67
66
|
* If this property is changed after the <code>MDCTable</code> has been initialized, the new changes take effect only when the
|
|
68
67
|
* Show / Hide Details button is pressed a second time.
|
|
69
68
|
*
|
|
@@ -237,11 +236,12 @@ sap.ui.define([
|
|
|
237
236
|
};
|
|
238
237
|
|
|
239
238
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
239
|
+
* Toggles the visibility of the Show Details button.<br>
|
|
240
|
+
* If {@param bValue} is set to <code>true</code>, it sets the <code>hiddenInPopin</code> property on the inner <code>ResponsiveTable</code> to
|
|
241
|
+
* hide columns based on <code>MDCTable</code> configuration (<code>showDetailsButton</code> and <code>detailsButtonSetting</code> properties).
|
|
242
242
|
* Otherwise an empty array is set to show all columns.
|
|
243
243
|
*
|
|
244
|
-
* @param {boolean} bValue -
|
|
244
|
+
* @param {boolean} bValue - Whether to hide details and display the Show Details button
|
|
245
245
|
* @private
|
|
246
246
|
*/
|
|
247
247
|
ResponsiveTableType.prototype._toggleShowDetails = function(bValue) {
|
|
@@ -274,10 +274,9 @@ sap.ui.define([
|
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
|
-
* Helper function to get the importance of the columns that should be hidden based on
|
|
278
|
-
* MDCTable configuration.
|
|
277
|
+
* Helper function to get the importance of the columns that should be hidden based on <code>MDCTable</code> configuration.
|
|
279
278
|
*
|
|
280
|
-
* @returns {array} sap.ui.core.Priority[]
|
|
279
|
+
* @returns {array} sap.ui.core.Priority[] Array of column priorities
|
|
281
280
|
* @private
|
|
282
281
|
*/
|
|
283
282
|
ResponsiveTableType.prototype._getImportanceToHide = function() {
|
|
@@ -294,9 +293,9 @@ sap.ui.define([
|
|
|
294
293
|
};
|
|
295
294
|
|
|
296
295
|
/**
|
|
297
|
-
* Event handler when the table pop-in has changed.
|
|
296
|
+
* Event handler called when the table pop-in has changed.
|
|
298
297
|
*
|
|
299
|
-
* @param {sap.ui.base.Event} oEvent -
|
|
298
|
+
* @param {sap.ui.base.Event} oEvent - Event object
|
|
300
299
|
* @private
|
|
301
300
|
*/
|
|
302
301
|
ResponsiveTableType.prototype._onPopinChanged = function(oEvent) {
|
|
@@ -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
|
|
|
@@ -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
|
|
16
|
-
* @param {object} [mSettings]
|
|
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 control
|
|
17
17
|
*
|
|
18
18
|
* @class
|
|
19
|
-
* The <code>RowSettings</code> control allows
|
|
20
|
-
*
|
|
19
|
+
* The <code>RowSettings</code> control allows configuring a row.
|
|
20
|
+
* This control can only be used in the context of <code>sap.ui.mdc.Table</code> control to define row settings.
|
|
21
21
|
* @extends sap.ui.core.Element
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.97.1
|
|
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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
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 object
|
|
17
17
|
* @class The table type info base class for the metadata driven table. Dummy/Base class with no implementation.
|
|
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.
|
|
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
|