@openui5/sap.ui.mdc 1.93.3 → 1.96.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 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +236 -334
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -1
- package/src/sap/ui/mdc/Chart.js +150 -22
- package/src/sap/ui/mdc/ChartDelegateNew.js +15 -0
- package/src/sap/ui/mdc/ChartNew.js +107 -66
- package/src/sap/ui/mdc/Control.js +4 -3
- package/src/sap/ui/mdc/Element.js +5 -4
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -10
- package/src/sap/ui/mdc/FilterField.js +28 -4
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +160 -79
- package/src/sap/ui/mdc/TableDelegate.js +20 -3
- package/src/sap/ui/mdc/ValueHelp.js +1474 -0
- package/src/sap/ui/mdc/ValueHelpDelegate.js +147 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +49 -104
- package/src/sap/ui/mdc/chart/DimensionItem.js +3 -3
- package/src/sap/ui/mdc/chart/Item.js +2 -3
- package/src/sap/ui/mdc/chart/MeasureItem.js +2 -2
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +21 -2
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +237 -225
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +14 -10
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +12 -10
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- 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 +13 -7
- package/src/sap/ui/mdc/condition/Operator.js +4 -4
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +43 -0
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +91 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +20 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +31 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +5 -0
- package/src/sap/ui/mdc/enum/ContentMode.js +25 -4
- package/src/sap/ui/mdc/enum/SelectType.js +43 -0
- 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 +19 -4
- package/src/sap/ui/mdc/field/ConditionsType.js +5 -4
- 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 +38 -14
- package/src/sap/ui/mdc/field/FieldBase.js +92 -41
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +9 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
- package/src/sap/ui/mdc/field/FieldInfoBase.js +9 -1
- 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 -1
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +2 -2
- 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 +3 -3
- 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/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +15 -3
- package/src/sap/ui/mdc/field/content/ContentFactory.js +16 -8
- package/src/sap/ui/mdc/field/content/DefaultContent.js +64 -23
- package/src/sap/ui/mdc/field/content/LinkContent.js +6 -0
- package/src/sap/ui/mdc/field/content/SearchContent.js +21 -3
- package/src/sap/ui/mdc/field/content/UnitContent.js +2 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +105 -44
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +52 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +10 -51
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/ActionToolbar.flexibility.js +22 -0
- package/src/sap/ui/mdc/flexibility/ActionToolbarAction.flexibility.js +19 -0
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +57 -46
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +203 -197
- package/src/sap/ui/mdc/library.js +588 -8
- 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 +1 -1
- 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/Panel.js +1 -1
- 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/SelectionDialog.js +2 -2
- package/src/sap/ui/mdc/link/SelectionDialogItem.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 +31 -5
- package/src/sap/ui/mdc/messagebundle_ar.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ca.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_cs.properties +12 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_da.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_de.properties +12 -5
- package/src/sap/ui/mdc/messagebundle_el.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +19 -3
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +11 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +35 -28
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_et.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_fi.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_fr.properties +22 -15
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hi.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_hu.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_id.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_it.properties +33 -26
- package/src/sap/ui/mdc/messagebundle_iw.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +13 -6
- package/src/sap/ui/mdc/messagebundle_kk.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ko.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_lv.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ms.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_nl.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_no.properties +17 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +14 -7
- package/src/sap/ui/mdc/messagebundle_pt.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_ro.properties +13 -6
- package/src/sap/ui/mdc/messagebundle_ru.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sh.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sk.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_sl.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_sv.properties +11 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +16 -9
- package/src/sap/ui/mdc/messagebundle_tr.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_uk.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_vi.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +10 -3
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +10 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +3 -3
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +94 -0
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +37 -10
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +492 -203
- package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +3 -2
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +6 -60
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +22 -24
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +59 -0
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +17 -8
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1 -2
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +1171 -0
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +7 -11
- package/src/sap/ui/mdc/p13n/panels/ListView.js +5 -3
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +16 -9
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -1
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +89 -0
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +9 -6
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +33 -4
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +9 -15
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +12 -0
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +5 -12
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +19 -21
- package/src/sap/ui/mdc/table/Column.js +35 -9
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +0 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +108 -5
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +19 -3
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +0 -1
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FilterBar.less +2 -2
- package/src/sap/ui/mdc/themes/base/GroupView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ListView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +56 -21
- 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 +26 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +12 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +4 -0
- package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
- package/src/sap/ui/mdc/util/PropertyHelper.js +22 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +498 -0
- package/src/sap/ui/mdc/valuehelp/Popover.js +362 -0
- package/src/sap/ui/mdc/valuehelp/base/Container.js +642 -0
- package/src/sap/ui/mdc/valuehelp/base/Content.js +628 -0
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +139 -0
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +557 -0
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +133 -0
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +318 -0
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +276 -0
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +532 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +638 -0
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +916 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -2
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +48 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsBase.js +310 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ActionsViz.js +39 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsBase.js +118 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/AssertionsViz.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/ChartNew.js +24 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +401 -93
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +4 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
|
@@ -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.96.1
|
|
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.96.1
|
|
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.96.1
|
|
78
78
|
* @constructor
|
|
79
79
|
* @private
|
|
80
80
|
* @ui5-restricted sap.fe
|
|
@@ -1369,6 +1369,10 @@ sap.ui.define([
|
|
|
1369
1369
|
if (oWrapper) {
|
|
1370
1370
|
var oValueHelpPanel = oDialog.getContent()[0];
|
|
1371
1371
|
_setContentOnValueHelpPanel.call(this, oValueHelpPanel, oWrapper.getDialogContent());
|
|
1372
|
+
if (!this._bApplyFilter && !this._bClosing && (this.isOpen() || this._bOpen) && !oWrapper.isSuspended()) {
|
|
1373
|
+
// in case ListBinding changed or is not longer suspended
|
|
1374
|
+
this._bApplyFilter = true;
|
|
1375
|
+
}
|
|
1372
1376
|
}
|
|
1373
1377
|
}
|
|
1374
1378
|
}
|
|
@@ -2601,6 +2605,8 @@ sap.ui.define([
|
|
|
2601
2605
|
liveMode: !oWrapper.isSuspended(), // if suspended, no live search
|
|
2602
2606
|
showGoButton: false
|
|
2603
2607
|
});
|
|
2608
|
+
oFilterBar.setInternalConditions(this._oConditions); // if already InParameter or SearchValue set, move it to FilterBar
|
|
2609
|
+
this._oConditions = {};
|
|
2604
2610
|
this.setAggregation("_filterBar", oFilterBar, true);
|
|
2605
2611
|
}
|
|
2606
2612
|
|
|
@@ -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.96.1
|
|
27
27
|
* @constructor
|
|
28
28
|
* @abstract
|
|
29
29
|
* @private
|
|
@@ -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.96.1
|
|
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.96.1
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
46
46
|
* @ui5-restricted sap.fe
|
|
@@ -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.96.1
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @experimental As of version 1.88
|
|
@@ -768,7 +768,7 @@ sap.ui.define([
|
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
770
|
|
|
771
|
-
|
|
771
|
+
this._updateSelectedItems.call(this);
|
|
772
772
|
|
|
773
773
|
if (this._bNavigate) {
|
|
774
774
|
this._bNavigate = false;
|
|
@@ -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.96.1
|
|
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.96.1
|
|
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.96.1
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
45
45
|
* @ui5-restricted sap.fe
|
|
@@ -377,14 +377,14 @@ sap.ui.define([
|
|
|
377
377
|
var i = 0;
|
|
378
378
|
if (iStep >= 0) {
|
|
379
379
|
for (i = 0; i < aItems.length; i++) {
|
|
380
|
-
if (_filterText.call(this, aItems[i].getLabel(), sFilterValue)) {
|
|
380
|
+
if (aItems[i].getLabel && _filterText.call(this, aItems[i].getLabel(), sFilterValue)) {
|
|
381
381
|
iSelectedIndex = i;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
} else {
|
|
386
386
|
for (i = aItems.length - 1; i >= 0; i--) {
|
|
387
|
-
if (_filterText.call(this, aItems[i].getLabel(), sFilterValue)) {
|
|
387
|
+
if (aItems[i].getLabel && _filterText.call(this, aItems[i].getLabel(), sFilterValue)) {
|
|
388
388
|
iSelectedIndex = i;
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
@@ -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.96.1
|
|
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.96.1
|
|
26
26
|
* @constructor
|
|
27
27
|
* @abstract
|
|
28
28
|
* @private
|
|
@@ -21,7 +21,13 @@ sap.ui.define([
|
|
|
21
21
|
* @MDC_PUBLIC_CANDIDATE
|
|
22
22
|
*/
|
|
23
23
|
var BooleanContent = Object.assign({}, DefaultContent, {
|
|
24
|
-
|
|
24
|
+
getDisplayMultiValue: function() {
|
|
25
|
+
return [null];
|
|
26
|
+
},
|
|
27
|
+
getDisplayMultiLine: function() {
|
|
28
|
+
return [null];
|
|
29
|
+
},
|
|
30
|
+
getEditMultiValue: function() {
|
|
25
31
|
return [null];
|
|
26
32
|
},
|
|
27
33
|
getEditMultiLine: function() {
|
|
@@ -30,11 +36,17 @@ sap.ui.define([
|
|
|
30
36
|
getUseDefaultFieldHelp: function() {
|
|
31
37
|
return { name: "bool", oneOperatorSingle: true, oneOperatorMulti: true };
|
|
32
38
|
},
|
|
33
|
-
|
|
34
|
-
throw new Error("sap.ui.mdc.field.content.BooleanContent -
|
|
39
|
+
createEditMultiValue: function() {
|
|
40
|
+
throw new Error("sap.ui.mdc.field.content.BooleanContent - createEditMultiValue not defined!");
|
|
35
41
|
},
|
|
36
42
|
createEditMultiLine: function() {
|
|
37
43
|
throw new Error("sap.ui.mdc.field.content.BooleanContent - createEditMultiLine not defined!");
|
|
44
|
+
},
|
|
45
|
+
createDisplayMultiValue: function() {
|
|
46
|
+
throw new Error("sap.ui.mdc.field.content.BooleanContent - createDisplayMultiValue not defined!");
|
|
47
|
+
},
|
|
48
|
+
createDisplayMultiLine: function() {
|
|
49
|
+
throw new Error("sap.ui.mdc.field.content.BooleanContent - createDisplayMultiLine not defined!");
|
|
38
50
|
}
|
|
39
51
|
});
|
|
40
52
|
|
|
@@ -140,14 +140,22 @@ sap.ui.define([
|
|
|
140
140
|
ContentFactory.prototype.getContentMode = function(oContentType, sEditMode, iMaxConditions, bMultipleLines, aOperators) {
|
|
141
141
|
var sContentMode = ContentMode.Edit;
|
|
142
142
|
if (sEditMode === EditMode.Display) {
|
|
143
|
-
|
|
143
|
+
if (iMaxConditions !== 1) {
|
|
144
|
+
sContentMode = ContentMode.DisplayMultiValue;
|
|
145
|
+
} else if (bMultipleLines) {
|
|
146
|
+
sContentMode = ContentMode.DisplayMultiLine;
|
|
147
|
+
} else {
|
|
148
|
+
sContentMode = ContentMode.Display;
|
|
149
|
+
}
|
|
144
150
|
} else if (iMaxConditions !== 1) {
|
|
145
|
-
sContentMode = ContentMode.
|
|
151
|
+
sContentMode = ContentMode.EditMultiValue;
|
|
146
152
|
} else if (bMultipleLines) {
|
|
147
153
|
sContentMode = ContentMode.EditMultiLine;
|
|
148
154
|
} else if (aOperators.length === 1 && oContentType.getEditOperator() && oContentType.getEditOperator()[aOperators[0]]) {
|
|
149
155
|
this._sOperator = aOperators[0];
|
|
150
156
|
sContentMode = ContentMode.EditOperator;
|
|
157
|
+
} else if (this.getField().getFieldHelp()) { // if FieldHelp assigned use control supporting help
|
|
158
|
+
sContentMode = ContentMode.EditForHelp;
|
|
151
159
|
}
|
|
152
160
|
return sContentMode;
|
|
153
161
|
};
|
|
@@ -263,8 +271,8 @@ sap.ui.define([
|
|
|
263
271
|
return this._bHideOperator;
|
|
264
272
|
};
|
|
265
273
|
|
|
266
|
-
ContentFactory.prototype.getConditionType = function() {
|
|
267
|
-
if (!this._oConditionType) {
|
|
274
|
+
ContentFactory.prototype.getConditionType = function(bSkipConditionTypeGeneration) {
|
|
275
|
+
if (!bSkipConditionTypeGeneration && !this._oConditionType) {
|
|
268
276
|
var oFormatOptions = this.getField()._getFormatOptions();
|
|
269
277
|
this._oConditionType = new ConditionType(oFormatOptions);
|
|
270
278
|
this._oConditionType._bCreatedByField = true;
|
|
@@ -277,8 +285,8 @@ sap.ui.define([
|
|
|
277
285
|
this._oConditionType = oConditionType;
|
|
278
286
|
};
|
|
279
287
|
|
|
280
|
-
ContentFactory.prototype.getConditionsType = function() {
|
|
281
|
-
if (!this._oConditionsType) {
|
|
288
|
+
ContentFactory.prototype.getConditionsType = function(bSkipConditionsTypeGeneration) {
|
|
289
|
+
if (!bSkipConditionsTypeGeneration && !this._oConditionsType) {
|
|
282
290
|
var oFormatOptions = this.getField()._getFormatOptions();
|
|
283
291
|
this._oConditionsType = new ConditionsType(oFormatOptions);
|
|
284
292
|
this._oConditionsType._bCreatedByField = true;
|
|
@@ -291,8 +299,8 @@ sap.ui.define([
|
|
|
291
299
|
this._oConditionsType = oConditionsType;
|
|
292
300
|
};
|
|
293
301
|
|
|
294
|
-
ContentFactory.prototype.getUnitConditionsType = function() {
|
|
295
|
-
if (!this._oUnitConditionsType) {
|
|
302
|
+
ContentFactory.prototype.getUnitConditionsType = function(bSkipConditionsTypeGeneration) {
|
|
303
|
+
if (!bSkipConditionsTypeGeneration && !this._oUnitConditionsType) {
|
|
296
304
|
var oFormatOptions = this.getField()._getUnitFormatOptions();
|
|
297
305
|
this._oUnitConditionsType = new ConditionsType(oFormatOptions);
|
|
298
306
|
this._oUnitConditionsType._bCreatedByField = true;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/m/library"
|
|
7
|
+
"sap/m/library",
|
|
8
|
+
"sap/ui/mdc/enum/ContentMode"
|
|
8
9
|
], function(
|
|
9
|
-
mLibrary
|
|
10
|
+
mLibrary,
|
|
11
|
+
ContentMode
|
|
10
12
|
) {
|
|
11
13
|
"use strict";
|
|
12
14
|
|
|
@@ -28,13 +30,16 @@ sap.ui.define([
|
|
|
28
30
|
getDisplay: function() {
|
|
29
31
|
return ["sap/m/Text"];
|
|
30
32
|
},
|
|
33
|
+
getDisplayMultiValue: function() {
|
|
34
|
+
return this.getDisplayMultiLine();
|
|
35
|
+
},
|
|
31
36
|
getDisplayMultiLine: function() {
|
|
32
37
|
return ["sap/m/ExpandableText"];
|
|
33
38
|
},
|
|
34
39
|
getEdit: function() {
|
|
35
40
|
return ["sap/ui/mdc/field/FieldInput"];
|
|
36
41
|
},
|
|
37
|
-
|
|
42
|
+
getEditMultiValue: function() {
|
|
38
43
|
return ["sap/ui/mdc/field/FieldMultiInput", "sap/m/Token"];
|
|
39
44
|
},
|
|
40
45
|
getEditMultiLine: function() {
|
|
@@ -43,6 +48,9 @@ sap.ui.define([
|
|
|
43
48
|
getEditOperator: function() {
|
|
44
49
|
return [null];
|
|
45
50
|
},
|
|
51
|
+
getEditForHelp: function() {
|
|
52
|
+
return this.getEdit();
|
|
53
|
+
},
|
|
46
54
|
getUseDefaultEnterHandler: function() {
|
|
47
55
|
return true;
|
|
48
56
|
},
|
|
@@ -58,25 +66,31 @@ sap.ui.define([
|
|
|
58
66
|
getControlNames: function(sContentMode, sOperator) {
|
|
59
67
|
var aControlNames;
|
|
60
68
|
switch (sContentMode) {
|
|
61
|
-
case
|
|
69
|
+
case ContentMode.Display:
|
|
62
70
|
aControlNames = this.getDisplay();
|
|
63
71
|
break;
|
|
64
|
-
case
|
|
72
|
+
case ContentMode.DisplayMultiValue:
|
|
73
|
+
aControlNames = this.getDisplayMultiValue();
|
|
74
|
+
break;
|
|
75
|
+
case ContentMode.DisplayMultiLine:
|
|
65
76
|
aControlNames = this.getDisplayMultiLine();
|
|
66
77
|
break;
|
|
67
|
-
case
|
|
68
|
-
aControlNames = this.
|
|
78
|
+
case ContentMode.EditMultiValue:
|
|
79
|
+
aControlNames = this.getEditMultiValue();
|
|
69
80
|
break;
|
|
70
|
-
case
|
|
81
|
+
case ContentMode.EditMultiLine:
|
|
71
82
|
aControlNames = this.getEditMultiLine();
|
|
72
83
|
break;
|
|
73
|
-
case
|
|
84
|
+
case ContentMode.EditOperator:
|
|
74
85
|
if (this.getEditOperator()) {
|
|
75
86
|
aControlNames = this.getEditOperator()[sOperator] ? this.getEditOperator()[sOperator].name : [null];
|
|
76
87
|
} else {
|
|
77
88
|
aControlNames = [null];
|
|
78
89
|
}
|
|
79
90
|
break;
|
|
91
|
+
case ContentMode.EditForHelp:
|
|
92
|
+
aControlNames = this.getEditForHelp();
|
|
93
|
+
break;
|
|
80
94
|
default:
|
|
81
95
|
aControlNames = this.getEdit();
|
|
82
96
|
}
|
|
@@ -96,25 +110,29 @@ sap.ui.define([
|
|
|
96
110
|
*/
|
|
97
111
|
create: function(oContentFactory, sContentMode, sOperator, aControls, sId) {
|
|
98
112
|
switch (sContentMode) {
|
|
99
|
-
case
|
|
113
|
+
case ContentMode.Display:
|
|
100
114
|
return this.createDisplay(oContentFactory, aControls, sId);
|
|
101
|
-
case
|
|
115
|
+
case ContentMode.DisplayMultiValue:
|
|
116
|
+
return this.createDisplayMultiValue(oContentFactory, aControls, sId);
|
|
117
|
+
case ContentMode.DisplayMultiLine:
|
|
102
118
|
return this.createDisplayMultiLine(oContentFactory, aControls, sId);
|
|
103
|
-
case
|
|
104
|
-
return this.
|
|
105
|
-
case
|
|
119
|
+
case ContentMode.EditMultiValue:
|
|
120
|
+
return this.createEditMultiValue(oContentFactory, aControls, sId);
|
|
121
|
+
case ContentMode.EditMultiLine:
|
|
106
122
|
return this.createEditMultiLine(oContentFactory, aControls, sId);
|
|
107
|
-
case
|
|
123
|
+
case ContentMode.EditOperator:
|
|
108
124
|
if (this.getEditOperator()) {
|
|
109
125
|
return this.getEditOperator()[sOperator] ? this.getEditOperator()[sOperator].create.call(this, oContentFactory, aControls, sId) : [null];
|
|
110
126
|
}
|
|
111
127
|
return [null];
|
|
128
|
+
case ContentMode.EditForHelp:
|
|
129
|
+
return this.createEditForHelp(oContentFactory, aControls, sId);
|
|
112
130
|
default:
|
|
113
131
|
return this.createEdit(oContentFactory, aControls, sId);
|
|
114
132
|
}
|
|
115
133
|
},
|
|
116
134
|
/**
|
|
117
|
-
* Creates the suitable controls for content mode
|
|
135
|
+
* Creates the suitable controls for content mode <code>Edit</code>.
|
|
118
136
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
119
137
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
120
138
|
* @param {String} sId ID of the field control
|
|
@@ -151,13 +169,13 @@ sap.ui.define([
|
|
|
151
169
|
return [oInput];
|
|
152
170
|
},
|
|
153
171
|
/**
|
|
154
|
-
* Creates the suitable controls for content mode
|
|
172
|
+
* Creates the suitable controls for content mode <code>EditMultiValue</code>.
|
|
155
173
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
156
174
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
157
175
|
* @param {String} sId ID of the field control
|
|
158
176
|
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
159
177
|
*/
|
|
160
|
-
|
|
178
|
+
createEditMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
161
179
|
var Input = aControlClasses[0];
|
|
162
180
|
var Token = aControlClasses[1];
|
|
163
181
|
var oConditionType = oContentFactory.getConditionType();
|
|
@@ -185,6 +203,7 @@ sap.ui.define([
|
|
|
185
203
|
tokens: { path: "$field>/conditions", template: oToken },
|
|
186
204
|
dependents: [oToken], // to destroy it if MultiInput is destroyed
|
|
187
205
|
autocomplete: false,
|
|
206
|
+
showSuggestion: false, // as true by default
|
|
188
207
|
change: oContentFactory.getHandleContentChange(),
|
|
189
208
|
liveChange: oContentFactory.getHandleContentLiveChange(),
|
|
190
209
|
tokenUpdate: oContentFactory.getHandleTokenUpdate(),
|
|
@@ -197,7 +216,7 @@ sap.ui.define([
|
|
|
197
216
|
return [oMultiInput];
|
|
198
217
|
},
|
|
199
218
|
/**
|
|
200
|
-
* Creates the suitable controls for content mode
|
|
219
|
+
* Creates the suitable controls for content mode <code>EditMultiLine</code>.
|
|
201
220
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
202
221
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
203
222
|
* @param {String} sId ID of the field control
|
|
@@ -230,7 +249,7 @@ sap.ui.define([
|
|
|
230
249
|
return [oTextArea];
|
|
231
250
|
},
|
|
232
251
|
/**
|
|
233
|
-
* Creates the suitable controls for content mode
|
|
252
|
+
* Creates the suitable controls for content mode <code>Display</code>.
|
|
234
253
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
235
254
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
236
255
|
* @param {String} sId ID of the field control
|
|
@@ -253,7 +272,7 @@ sap.ui.define([
|
|
|
253
272
|
return [oText];
|
|
254
273
|
},
|
|
255
274
|
/**
|
|
256
|
-
* Creates the suitable controls for content mode
|
|
275
|
+
* Creates the suitable controls for content mode <code>DisplayMultiLine</code>.
|
|
257
276
|
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
258
277
|
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
259
278
|
* @param {String} sId ID of the field control
|
|
@@ -267,12 +286,34 @@ sap.ui.define([
|
|
|
267
286
|
text: { path: "$field>/conditions", type: oConditionsType },
|
|
268
287
|
textAlign: "{$field>/textAlign}",
|
|
269
288
|
textDirection: "{$field>/textDirection}",
|
|
270
|
-
tooltip: "{$field>/tooltip}"
|
|
271
|
-
|
|
289
|
+
tooltip: "{$field>/tooltip}",
|
|
290
|
+
emptyIndicatorMode: EmptyIndicatorMode.Auto
|
|
272
291
|
});
|
|
273
292
|
oContentFactory.setBoundProperty("text");
|
|
274
293
|
|
|
275
294
|
return [oExpandableText];
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* Creates the suitable controls for content mode <code>DisplayMultiValue</code>.
|
|
298
|
+
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
299
|
+
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
300
|
+
* @param {String} sId ID of the field control
|
|
301
|
+
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
302
|
+
* @since 1.96
|
|
303
|
+
*/
|
|
304
|
+
createDisplayMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
305
|
+
return this.createDisplayMultiLine(oContentFactory, aControlClasses, sId); // for now just return the same asl in MultiLine mode
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Creates the suitable controls for content mode <code>EditForHelp</code>.
|
|
309
|
+
* @param {sap.ui.mdc.field.content.ContentFactory} oContentFactory The content factory that calls the create function
|
|
310
|
+
* @param {Object[]} aControlClasses Array containing the control classes which are to be created
|
|
311
|
+
* @param {String} sId ID of the field control
|
|
312
|
+
* @returns {sap.ui.core.Control[]} Array containing the created controls
|
|
313
|
+
* @since 1.96
|
|
314
|
+
*/
|
|
315
|
+
createEditForHelp: function(oContentFactory, aControlClasses, sId) {
|
|
316
|
+
return this.createEdit(oContentFactory, aControlClasses, sId); // In normal cases there is no difference between EditForHelp and Edit.
|
|
276
317
|
}
|
|
277
318
|
};
|
|
278
319
|
|
|
@@ -24,6 +24,9 @@ sap.ui.define([
|
|
|
24
24
|
getDisplay: function() {
|
|
25
25
|
return ["sap/m/Link"];
|
|
26
26
|
},
|
|
27
|
+
getDisplayMultiValue: function() {
|
|
28
|
+
return [null];
|
|
29
|
+
},
|
|
27
30
|
getDisplayMultiLine: function() {
|
|
28
31
|
return ["sap/m/Link"]; // render Link too, it wraps in Multiline
|
|
29
32
|
},
|
|
@@ -54,6 +57,9 @@ sap.ui.define([
|
|
|
54
57
|
|
|
55
58
|
return [oLink];
|
|
56
59
|
},
|
|
60
|
+
createDisplayMultiValue: function() {
|
|
61
|
+
throw new Error("sap.ui.mdc.field.content.LinkContent - createDisplayMultiValue not defined!");
|
|
62
|
+
},
|
|
57
63
|
createDisplayMultiLine: function(oContentFactory, aControlClasses, sId) {
|
|
58
64
|
return LinkContent.createDisplay(oContentFactory, aControlClasses, sId);
|
|
59
65
|
}
|
|
@@ -22,15 +22,24 @@ sap.ui.define([
|
|
|
22
22
|
* @MDC_PUBLIC_CANDIDATE
|
|
23
23
|
*/
|
|
24
24
|
var SearchContent = Object.assign({}, DefaultContent, {
|
|
25
|
+
getDisplayMultiValue: function() {
|
|
26
|
+
return [null];
|
|
27
|
+
},
|
|
28
|
+
getDisplayMultiLine: function() {
|
|
29
|
+
return [null];
|
|
30
|
+
},
|
|
25
31
|
getEdit: function() {
|
|
26
32
|
return ["sap/m/SearchField"];
|
|
27
33
|
},
|
|
28
|
-
|
|
34
|
+
getEditMultiValue: function() {
|
|
29
35
|
return [null];
|
|
30
36
|
},
|
|
31
37
|
getEditMultiLine: function() {
|
|
32
38
|
return [null];
|
|
33
39
|
},
|
|
40
|
+
getEditForHelp: function() {
|
|
41
|
+
return [null];
|
|
42
|
+
},
|
|
34
43
|
getUseDefaultEnterHandler: function() {
|
|
35
44
|
return false;
|
|
36
45
|
},
|
|
@@ -58,11 +67,20 @@ sap.ui.define([
|
|
|
58
67
|
|
|
59
68
|
return [oControl];
|
|
60
69
|
},
|
|
61
|
-
|
|
62
|
-
throw new Error("sap.ui.mdc.field.content.SearchContent -
|
|
70
|
+
createEditMultiValue: function() {
|
|
71
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditMultiValue not defined!");
|
|
63
72
|
},
|
|
64
73
|
createEditMultiLine: function() {
|
|
65
74
|
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditMultiLine not defined!");
|
|
75
|
+
},
|
|
76
|
+
createDisplayMultiValue: function() {
|
|
77
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createDisplayMultiValue not defined!");
|
|
78
|
+
},
|
|
79
|
+
createDisplayMultiLine: function() {
|
|
80
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createDisplayMultiLine not defined!");
|
|
81
|
+
},
|
|
82
|
+
createEditForHelp: function() {
|
|
83
|
+
throw new Error("sap.ui.mdc.field.content.SearchContent - createEditForHelp not defined!");
|
|
66
84
|
}
|
|
67
85
|
});
|
|
68
86
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @MDC_PUBLIC_CANDIDATE
|
|
27
27
|
*/
|
|
28
28
|
var UnitContent = Object.assign({}, DefaultContent, {
|
|
29
|
-
|
|
29
|
+
getEditMultiValue: function() {
|
|
30
30
|
return ["sap/ui/mdc/field/FieldMultiInput", "sap/ui/mdc/field/FieldInput", "sap/m/Token"];
|
|
31
31
|
},
|
|
32
32
|
getEditMultiLine: function() {
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
|
|
71
71
|
return aControls;
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
createEditMultiValue: function(oContentFactory, aControlClasses, sId) {
|
|
74
74
|
oContentFactory.setIsMeasure(true); // FieldHelp only on unit field
|
|
75
75
|
var MultiInput = aControlClasses[0];
|
|
76
76
|
var Token = aControlClasses[2]; // is loaded by MultiInput
|