@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
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] Initial settings for the new control
|
|
28
28
|
* @class A <code>FieldInfoBase</code> element is a base class that shows any kind of information related to the <code>Field</code> control, for example, navigation targets or contact details.
|
|
29
29
|
* @extends sap.ui.mdc.Element
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.99.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.54.0
|
|
@@ -99,17 +99,21 @@ sap.ui.define([
|
|
|
99
99
|
if (this._oPopover && this._oPopover.isOpen()) {
|
|
100
100
|
return Promise.resolve();
|
|
101
101
|
}
|
|
102
|
-
return this.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
return this.checkDirectNavigation().then(function(bNavigated) {
|
|
103
|
+
return bNavigated ? Promise.resolve() : this.createPopover().then(function(oPopover) {
|
|
104
|
+
if (oPopover) {
|
|
105
|
+
// Note: it is not needed to destroy this._oPopover in exit as through addDependent() the popover
|
|
106
|
+
// instance will be automatically destroyed once the FieldInfoBase instance is destroyed.
|
|
107
|
+
this._oPopover = oPopover;
|
|
106
108
|
|
|
107
|
-
|
|
109
|
+
this.addDependent(this._oPopover);
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
this._oPopover.openBy(oControl || oParent);
|
|
110
112
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
this._oPopover.attachAfterOpen(function() {
|
|
114
|
+
this.firePopoverAfterOpen();
|
|
115
|
+
}.bind(this));
|
|
116
|
+
}
|
|
113
117
|
}.bind(this));
|
|
114
118
|
}.bind(this));
|
|
115
119
|
};
|
|
@@ -125,6 +129,15 @@ sap.ui.define([
|
|
|
125
129
|
throw new Error("sap.ui.mdc.field.FieldInfoBase: method getContent must be redefined");
|
|
126
130
|
};
|
|
127
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Checks if there is a direct navigation or if there is a popover to be opened.
|
|
134
|
+
* @returns {Promise} Resolves a Boolean value
|
|
135
|
+
* @protected
|
|
136
|
+
*/
|
|
137
|
+
FieldInfoBase.prototype.checkDirectNavigation = function() {
|
|
138
|
+
throw new Error("sap.ui.mdc.field.FieldInfoBase: method checkDirectNavigation must be redefined");
|
|
139
|
+
};
|
|
140
|
+
|
|
128
141
|
// ----------------------- Protected methods --------------------------------------------
|
|
129
142
|
|
|
130
143
|
/**
|
|
@@ -144,10 +157,10 @@ sap.ui.define([
|
|
|
144
157
|
*/
|
|
145
158
|
FieldInfoBase.prototype.createPopover = function() {
|
|
146
159
|
var oPopover;
|
|
160
|
+
|
|
147
161
|
return this.getContent(function () {
|
|
148
162
|
return oPopover;
|
|
149
163
|
}).then(function(oPanel) {
|
|
150
|
-
|
|
151
164
|
oPopover = new ResponsivePopover(this.getId() + "-popover", {
|
|
152
165
|
contentWidth: "380px",
|
|
153
166
|
horizontalScrolling: false,
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>FieldInput</code> control is used to render an input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.Input
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.99.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class Functions uses in <code>FieldInputRenderer</code> and <code>FieldMultiInputRenderer</code> to adjust aria attributes.
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.99.0
|
|
20
20
|
* @since 1.86.0
|
|
21
21
|
* @alias sap.ui.mdc.field.FieldInputRenderUtil
|
|
22
22
|
*
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class The <code>FieldMultiInput</code> control is used to render a multi-input field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
25
|
* @extends sap.m.MultiInput
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.99.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @param {object} [mSettings] Initial settings for the new control
|
|
75
75
|
* @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a value help dialog.
|
|
76
76
|
* @extends sap.ui.mdc.field.FieldHelpBase
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.99.0
|
|
78
78
|
* @constructor
|
|
79
79
|
* @private
|
|
80
80
|
* @ui5-restricted sap.fe
|
|
@@ -648,11 +648,11 @@ sap.ui.define([
|
|
|
648
648
|
|
|
649
649
|
if (oWrapper) {
|
|
650
650
|
oWrapper.fieldHelpOpen(false);
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
651
|
+
_updateSelectedItems.call(this);
|
|
652
|
+
}
|
|
653
|
+
this._aOldConditions = this.getConditions();
|
|
654
|
+
oDialog.open();
|
|
655
|
+
this._bDialogOpen = true; // to know already during opening animation
|
|
656
656
|
} else {
|
|
657
657
|
this._bOpen = true;
|
|
658
658
|
}
|
|
@@ -2411,6 +2411,7 @@ sap.ui.define([
|
|
|
2411
2411
|
|
|
2412
2412
|
function _handleDialogAfterClose(oEvent) {
|
|
2413
2413
|
|
|
2414
|
+
var aConditions = this.getConditions(); // get conditions here as they might be modified in a close handler
|
|
2414
2415
|
this._bDialogOpen = false;
|
|
2415
2416
|
this._aOldConditions = undefined;
|
|
2416
2417
|
|
|
@@ -2419,7 +2420,6 @@ sap.ui.define([
|
|
|
2419
2420
|
if (this._bOK) {
|
|
2420
2421
|
// fire select event after Dialog is closed because inside applyFocusInfo is called
|
|
2421
2422
|
// that might reset cursor and selection of field -> update it after this
|
|
2422
|
-
var aConditions = this.getConditions();
|
|
2423
2423
|
this.fireSelect({conditions: aConditions, add: false, close: true});
|
|
2424
2424
|
}
|
|
2425
2425
|
this._bOK = undefined;
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @param {object} [mSettings] Initial settings for the new control
|
|
24
24
|
* @class Base type for <code>FieldValueHelp</code> content control wrapper.
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.99.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -75,6 +75,26 @@ sap.ui.define([
|
|
|
75
75
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Changes the search string.
|
|
80
|
+
*
|
|
81
|
+
* If <code>$search</code> is used, depending on which back-end service is used, the search string might need to be escaped.
|
|
82
|
+
*
|
|
83
|
+
* @param {object} oPayload Payload for delegate
|
|
84
|
+
* @param {boolean} bTypeahead <code>true</code> if the search is called for a type-ahead
|
|
85
|
+
* @param {string} sSearch Search string
|
|
86
|
+
* @returns {string} Search string to use
|
|
87
|
+
* @since 1.97.0
|
|
88
|
+
* @private
|
|
89
|
+
* @ui5-restricted sap.fe
|
|
90
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
91
|
+
*/
|
|
92
|
+
FieldValueHelpDelegate.adjustSearch = function(oPayload, bTypeahead, sSearch) {
|
|
93
|
+
|
|
94
|
+
return sSearch;
|
|
95
|
+
|
|
96
|
+
};
|
|
97
|
+
|
|
78
98
|
/**
|
|
79
99
|
* Executes a filter in a <code>ListBinding</code>.
|
|
80
100
|
*
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @param {object} [mSettings] Initial settings for the new control
|
|
35
35
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
36
36
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.99.0
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
40
40
|
* @ui5-restricted sap.fe
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @param {object} [mSettings] Initial settings for the new control
|
|
41
41
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
42
42
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.99.0
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
46
46
|
* @ui5-restricted sap.fe
|
|
@@ -343,7 +343,7 @@ sap.ui.define([
|
|
|
343
343
|
|
|
344
344
|
FieldValueHelpMdcTableWrapper.prototype._handleSelectionChange = function (oEvent) {
|
|
345
345
|
var bIsTableReady = this._isTableReady();
|
|
346
|
-
return this.
|
|
346
|
+
return this._iRunningTableSelectionUpdates || !bIsTableReady || this._bBusy ? undefined : this._fireSelectionChange.call(this, false);
|
|
347
347
|
};
|
|
348
348
|
|
|
349
349
|
FieldValueHelpMdcTableWrapper.prototype._getTableItems = function (bSelectedOnly, bNoVirtual) {
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @param {object} [mSettings] Initial settings for the new control
|
|
48
48
|
* @class Wrapper to use a table control as content of a <code>FieldValueHelp</code> element
|
|
49
49
|
* @extends sap.ui.mdc.field.FieldValueHelpContentWrapperBase
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.99.0
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @experimental As of version 1.88
|
|
@@ -90,6 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
this._oPromises = {};
|
|
91
91
|
this._oTableDelegate = {/*onfocusin: this._handleTableEvent, */onsapprevious: this._handleTableEvent, onsapnext: this._handleTableEvent, cellClick: this._handleTableEvent};
|
|
92
92
|
|
|
93
|
+
this._iRunningTableSelectionUpdates = 0;
|
|
93
94
|
};
|
|
94
95
|
|
|
95
96
|
FieldValueHelpTableWrapperBase.prototype.exit = function() {
|
|
@@ -107,6 +108,8 @@ sap.ui.define([
|
|
|
107
108
|
delete this._oTablePromiseResolve;
|
|
108
109
|
delete this._bTableResolved;
|
|
109
110
|
|
|
111
|
+
this._iRunningTableSelectionUpdates = null;
|
|
112
|
+
|
|
110
113
|
FieldValueHelpContentWrapperBase.prototype.exit.apply(this, arguments);
|
|
111
114
|
};
|
|
112
115
|
|
|
@@ -561,6 +564,7 @@ sap.ui.define([
|
|
|
561
564
|
oListBinding.suspend();
|
|
562
565
|
}
|
|
563
566
|
|
|
567
|
+
sSearch = oDelegate.delegate.adjustSearch(oDelegate.payload, this._bSuggestion, sSearch);
|
|
564
568
|
oDelegate.delegate.executeSearch(oDelegate.payload, oListBinding, sSearch);
|
|
565
569
|
Log.info("ValueHelp-Search: " + sSearch);
|
|
566
570
|
}
|
|
@@ -800,7 +804,7 @@ sap.ui.define([
|
|
|
800
804
|
var aTableItems = this._getTableItems();
|
|
801
805
|
var bUpdate = false;
|
|
802
806
|
|
|
803
|
-
this.
|
|
807
|
+
this._iRunningTableSelectionUpdates = this._iRunningTableSelectionUpdates + 1 || 1;
|
|
804
808
|
|
|
805
809
|
for (var j = 0; j < aTableItems.length; j++) {
|
|
806
810
|
var oTableItem = aTableItems[j];
|
|
@@ -835,7 +839,7 @@ sap.ui.define([
|
|
|
835
839
|
}
|
|
836
840
|
|
|
837
841
|
this._oTableModificationPromise = Promise.all(aTableModifications).then(function () {
|
|
838
|
-
this.
|
|
842
|
+
this._iRunningTableSelectionUpdates = this._iRunningTableSelectionUpdates - 1;
|
|
839
843
|
}.bind(this));
|
|
840
844
|
}
|
|
841
845
|
};
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @param {object} [mSettings] Initial settings for the new control
|
|
32
32
|
* @class Wrapper to use a <code>sap.m.Table</code> control as content of a <code>FieldValueHelp</code> element
|
|
33
33
|
* @extends sap.ui.mdc.field.FieldValueHelpTableWrapperBase
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.99.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class The <code>InParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.99.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @param {object} [mSettings] Initial settings for the new control
|
|
40
40
|
* @class A field help used in the <code>FieldHelp</code> association of controls based on {@link sap.ui.mdc.field.FieldBase FieldBase} that shows a list of items.
|
|
41
41
|
* @extends sap.ui.mdc.field.FieldHelpBase
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.99.0
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
45
45
|
* @ui5-restricted sap.fe
|
|
@@ -257,7 +257,15 @@ sap.ui.define([
|
|
|
257
257
|
|
|
258
258
|
ListFieldHelp.prototype.open = function(bSuggestion) {
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
FieldHelpBase.prototype.open.apply(this, arguments);
|
|
261
|
+
|
|
262
|
+
var oPopover = this._getPopover();
|
|
263
|
+
var oControl = this._getControlForSuggestion();
|
|
264
|
+
if (oPopover && oControl) {
|
|
265
|
+
// make popver not smaller than Field
|
|
266
|
+
var sWidth = (oControl.$().outerWidth() / parseFloat(mLibrary.BaseFontSize)) + "rem"; // same logic as in ComboBox
|
|
267
|
+
oPopover.setContentMinWidth(sWidth);
|
|
268
|
+
}
|
|
261
269
|
|
|
262
270
|
};
|
|
263
271
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @param {object} [mSettings] Initial settings for the new control
|
|
21
21
|
* @class Base type for <code>MultiValueFieldItem</code> control.
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.99.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @abstract
|
|
26
26
|
* @private
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @param {object} [mSettings] Initial settings for the new control
|
|
23
23
|
* @class The <code>OutParameter</code> element is used in the {@link sap.ui.mdc.field.FieldValueHelp FieldValueHelp} element.
|
|
24
24
|
* @extends sap.ui.mdc.field.InParameter
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.99.0
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
'sap/m/Token',
|
|
9
|
+
'sap/ui/mdc/field/TokenDisplayRenderer'
|
|
10
|
+
], function(
|
|
11
|
+
Token,
|
|
12
|
+
TokenDisplayRenderer
|
|
13
|
+
) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Constructor for a new <code>TokenDisplay</code>.
|
|
18
|
+
*
|
|
19
|
+
* The <code>TokenDisplay</code> control enhances the {@link sap.m.Token Token} control to add ARIA attributes
|
|
20
|
+
* and other {@link sap.ui.mdc.field.FieldBase FieldBase}-specific logic.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
23
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
24
|
+
* @class The <code>TokenDisplay</code> control is used to render a field inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
25
|
+
* @extends sap.m.Token
|
|
26
|
+
* @version 1.99.0
|
|
27
|
+
* @constructor
|
|
28
|
+
* @abstract
|
|
29
|
+
* @private
|
|
30
|
+
* @ui5-restricted sap.ui.mdc.field.TokenDisplay
|
|
31
|
+
* @since 1.99.0
|
|
32
|
+
* @alias sap.ui.mdc.field.TokenDisplay
|
|
33
|
+
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
34
|
+
*/
|
|
35
|
+
var TokenDisplay = Token.extend("sap.ui.mdc.field.TokenDisplay", /** @lends sap.ui.mdc.field.TokenDisplay */
|
|
36
|
+
{
|
|
37
|
+
metadata: {
|
|
38
|
+
library: "sap.ui.mdc",
|
|
39
|
+
properties: {
|
|
40
|
+
_delimiter: {
|
|
41
|
+
type: "string",
|
|
42
|
+
defaultValue: "·",
|
|
43
|
+
visibility: "hidden"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
renderer: TokenDisplayRenderer
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
TokenDisplay.prototype.init = function() {
|
|
51
|
+
Token.prototype.init.apply(this, arguments);
|
|
52
|
+
|
|
53
|
+
if (!this._oResourceBundle) {
|
|
54
|
+
this._oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
55
|
+
}
|
|
56
|
+
this.setProperty("_delimiter", this._oResourceBundle.getText("field.SEPARATOR").trim());
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// make the TokenDisplay instance not selectabled
|
|
60
|
+
TokenDisplay.prototype.getSelected = function() {
|
|
61
|
+
return false;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
TokenDisplay.prototype.focus = function() {
|
|
65
|
+
return;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return TokenDisplay;
|
|
69
|
+
|
|
70
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(['sap/ui/core/Renderer', 'sap/m/TokenRenderer'],
|
|
8
|
+
function(Renderer, TokenRenderer) {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* TokenDisplay renderer.
|
|
13
|
+
* @namespace
|
|
14
|
+
*/
|
|
15
|
+
var TokenDisplayRenderer = Renderer.extend(TokenRenderer);
|
|
16
|
+
TokenDisplayRenderer.apiVersion = 2;
|
|
17
|
+
|
|
18
|
+
TokenDisplayRenderer._setAttributes = function(oRm, oControl) {
|
|
19
|
+
TokenRenderer._setAttributes(oRm, oControl);
|
|
20
|
+
oRm.attr("delimiter", oControl.getProperty("_delimiter"));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return TokenDisplayRenderer;
|
|
24
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
'sap/m/Tokenizer',
|
|
9
|
+
'sap/ui/mdc/field/TokenizerDisplayRenderer',
|
|
10
|
+
'sap/ui/events/KeyCodes',
|
|
11
|
+
'sap/m/library'
|
|
12
|
+
], function(
|
|
13
|
+
Tokenizer,
|
|
14
|
+
TokenizerDisplayRenderer,
|
|
15
|
+
KeyCodes,
|
|
16
|
+
mLibrary
|
|
17
|
+
) {
|
|
18
|
+
"use strict";
|
|
19
|
+
|
|
20
|
+
var EmptyIndicatorMode = mLibrary.EmptyIndicatorMode;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Constructor for a new <code>TokenizerDisplay</code>.
|
|
24
|
+
*
|
|
25
|
+
* The <code>TokenizerDisplay</code> control enhances the {@link sap.m.Tokenizer Tokenizer} control to support diaply only tokens.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
28
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
29
|
+
* @class The <code>TokenizerDisplay</code> control is used to render a Tokenizer inside a control based on {@link sap.ui.mdc.field.FieldBase FieldBase}.
|
|
30
|
+
* @extends sap.m.Tokenizer
|
|
31
|
+
* @version 1.99.0
|
|
32
|
+
* @constructor
|
|
33
|
+
* @abstract
|
|
34
|
+
* @private
|
|
35
|
+
* @ui5-restricted sap.ui.mdc.field.TokenizerDisplay
|
|
36
|
+
* @since 1.99.0
|
|
37
|
+
* @alias sap.ui.mdc.field.TokenizerDisplay
|
|
38
|
+
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
39
|
+
*/
|
|
40
|
+
var TokenizerDisplay = Tokenizer.extend("sap.ui.mdc.field.TokenizerDisplay", /** @lends sap.ui.mdc.field.TokenizerDisplay */
|
|
41
|
+
{
|
|
42
|
+
metadata: {
|
|
43
|
+
library: "sap.ui.mdc",
|
|
44
|
+
properties: {
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Specifies if an empty indicator should be displayed when there is no token.
|
|
48
|
+
*/
|
|
49
|
+
emptyIndicatorMode: { type: "sap.m.EmptyIndicatorMode", group: "Appearance", defaultValue: EmptyIndicatorMode.Off }
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
renderer: TokenizerDisplayRenderer
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
TokenizerDisplay.prototype.init = function() {
|
|
57
|
+
Tokenizer.prototype.init.apply(this, arguments);
|
|
58
|
+
|
|
59
|
+
this.allowTextSelection(true);
|
|
60
|
+
this.addStyleClass("sapUiMdcTokenizerDisplay");
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
TokenizerDisplay.prototype.onkeydown = function(oEvent) {
|
|
64
|
+
Tokenizer.prototype.onkeydown.call(this, oEvent);
|
|
65
|
+
|
|
66
|
+
if (!this.getEnabled()) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (oEvent.which === KeyCodes.ENTER) {
|
|
71
|
+
if (this.getHiddenTokensCount() > 0) {
|
|
72
|
+
this._handleNMoreIndicatorPress();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
return TokenizerDisplay;
|
|
79
|
+
|
|
80
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(['sap/ui/core/Renderer', 'sap/m/TokenizerRenderer', 'sap/m/library', 'sap/ui/core/Core'],
|
|
8
|
+
function(Renderer, TokenizerRenderer, mLibrary, Core) {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
var EmptyIndicatorMode = mLibrary.EmptyIndicatorMode;
|
|
12
|
+
|
|
13
|
+
// shortcut for library resource bundle
|
|
14
|
+
var oRb = Core.getLibraryResourceBundle("sap.m");
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* TokenizerDisplay renderer.
|
|
18
|
+
* @namespace
|
|
19
|
+
*/
|
|
20
|
+
var TokenizerDisplayRenderer = Renderer.extend(TokenizerRenderer);
|
|
21
|
+
TokenizerDisplayRenderer.apiVersion = 2;
|
|
22
|
+
|
|
23
|
+
TokenizerDisplayRenderer._renderIndicator = function(oRm, oControl){
|
|
24
|
+
TokenizerRenderer._renderIndicator.apply(this, arguments);
|
|
25
|
+
|
|
26
|
+
//***** add emptyIndicator */
|
|
27
|
+
if (oControl.getEmptyIndicatorMode() !== EmptyIndicatorMode.Off && oControl.getTokens().length == 0) {
|
|
28
|
+
this._renderEmptyIndicator(oRm, oControl);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
TokenizerDisplayRenderer._renderTabIndex = function(oRm, oControl) {
|
|
33
|
+
oRm.attr("tabindex", "-1");
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
TokenizerDisplayRenderer._renderIndicatorTabIndex = function(oRm, oControl) {
|
|
37
|
+
oRm.attr("tabindex", "0");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Renders the empty text indicator.
|
|
43
|
+
*
|
|
44
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
|
|
45
|
+
* @param {sap.ui.mdc.field.TokenizerDisplay} oControl An object representation of the control that should be rendered.
|
|
46
|
+
*/
|
|
47
|
+
TokenizerDisplayRenderer._renderEmptyIndicator = function(oRm, oControl) {
|
|
48
|
+
oRm.openStart("span");
|
|
49
|
+
oRm.class("sapMEmptyIndicator");
|
|
50
|
+
if (oControl.getEmptyIndicatorMode() === EmptyIndicatorMode.Auto) {
|
|
51
|
+
oRm.class("sapMEmptyIndicatorAuto");
|
|
52
|
+
}
|
|
53
|
+
oRm.openEnd();
|
|
54
|
+
oRm.openStart("span");
|
|
55
|
+
oRm.attr("aria-hidden", true);
|
|
56
|
+
oRm.openEnd();
|
|
57
|
+
oRm.text(oRb.getText("EMPTY_INDICATOR"));
|
|
58
|
+
oRm.close("span");
|
|
59
|
+
//Empty space text to be announced by screen readers
|
|
60
|
+
oRm.openStart("span");
|
|
61
|
+
oRm.class("sapUiPseudoInvisibleText");
|
|
62
|
+
oRm.openEnd();
|
|
63
|
+
oRm.text(oRb.getText("EMPTY_INDICATOR_TEXT"));
|
|
64
|
+
oRm.close("span");
|
|
65
|
+
oRm.close("span");
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return TokenizerDisplayRenderer;
|
|
69
|
+
});
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.core.XMLComposite
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.99.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @alias sap.ui.mdc.field.ValueHelpPanel
|
|
@@ -124,6 +124,7 @@ sap.ui.define([
|
|
|
124
124
|
|
|
125
125
|
if (!this._oTokenizer) {
|
|
126
126
|
this._oTokenizer = this.byId("VHPTokenizer");
|
|
127
|
+
this._oTokenizer.addAriaDescribedBy( this._oTokenizer.getTokensInfoId());
|
|
127
128
|
this._oTokenizer._oScroller.setHorizontal(true);
|
|
128
129
|
}
|
|
129
130
|
this._oTokenizerPanel = this.byId("VHPTokenizerPanel");
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
return [null];
|
|
35
35
|
},
|
|
36
36
|
getUseDefaultFieldHelp: function() {
|
|
37
|
-
return { name: "bool", oneOperatorSingle: true, oneOperatorMulti: true };
|
|
37
|
+
return { name: "bool", oneOperatorSingle: true, oneOperatorMulti: true, single: true, multi: true };
|
|
38
38
|
},
|
|
39
39
|
createEditMultiValue: function() {
|
|
40
40
|
throw new Error("sap.ui.mdc.field.content.BooleanContent - createEditMultiValue not defined!");
|