@openui5/sap.ui.mdc 1.96.2 → 1.97.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 +1 -1
- package/THIRDPARTY.txt +2 -1
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +2 -7
- package/src/sap/ui/mdc/Chart.js +1 -1
- package/src/sap/ui/mdc/ChartNew.js +1 -1
- package/src/sap/ui/mdc/ChartNewRenderer.js +2 -2
- 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 +1 -1
- package/src/sap/ui/mdc/FilterField.js +16 -2
- package/src/sap/ui/mdc/Link.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +2 -1
- package/src/sap/ui/mdc/Table.js +161 -133
- package/src/sap/ui/mdc/TableDelegate.js +13 -11
- package/src/sap/ui/mdc/ValueHelp.js +33 -7
- package/src/sap/ui/mdc/ValueHelpDelegate.js +20 -0
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- 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 +6 -2
- 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/ChartNew.designtime.js +17 -17
- 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/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +7 -7
- 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 +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +311 -0
- package/src/sap/ui/mdc/field/FieldBase.js +54 -47
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -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 +6 -6
- 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 +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +2 -1
- 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 +1 -1
- 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 +2 -1
- package/src/sap/ui/mdc/field/content/BooleanContent.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +23 -21
- 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 +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 +25 -17
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- 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/library.js +19 -3
- 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 +1 -1
- 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 +13 -4
- package/src/sap/ui/mdc/messagebundle_ar.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ca.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_cy.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_de.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_en.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +8 -2
- 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 +9 -3
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_et.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_fr.properties +12 -6
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_hr.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_iw.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ja.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_lt.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ms.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_no.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_pl.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_pt.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_tr.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_vi.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +8 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +8 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +3 -3
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +65 -37
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +12 -3
- package/src/sap/ui/mdc/p13n/Engine.js +32 -9
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +1 -1
- 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 +20 -0
- package/src/sap/ui/mdc/p13n/UIManager.js +11 -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/ChartItemPanelNew.js +40 -32
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/table/Column.js +34 -9
- package/src/sap/ui/mdc/table/CreationRow.js +14 -13
- package/src/sap/ui/mdc/table/GridTableType.js +11 -10
- package/src/sap/ui/mdc/table/PropertyHelper.js +21 -21
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +23 -24
- package/src/sap/ui/mdc/table/RowSettings.js +8 -6
- package/src/sap/ui/mdc/table/TableTypeBase.js +4 -4
- 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/library.source.less +1 -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/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +111 -319
- package/src/sap/ui/mdc/valuehelp/Dialog.js +2 -1
- package/src/sap/ui/mdc/valuehelp/Popover.js +13 -2
- package/src/sap/ui/mdc/valuehelp/base/Container.js +32 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +35 -5
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +42 -15
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +25 -31
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +8 -3
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +15 -3
- 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
|
@@ -14,21 +14,22 @@ sap.ui.define([
|
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Base delegate class for sap.ui.mdc.Table
|
|
18
|
-
* <b>Note:</b> The class is experimental and the API/behavior is not finalized and hence this should not be used for productive usage.
|
|
17
|
+
* Base delegate class for <code>sap.ui.mdc.Table</code>.
|
|
19
18
|
*
|
|
20
19
|
* @author SAP SE
|
|
21
|
-
* @private
|
|
22
20
|
* @experimental
|
|
23
21
|
* @since 1.60
|
|
24
22
|
* @alias sap.ui.mdc.TableDelegate
|
|
23
|
+
* @private
|
|
24
|
+
* @ui5-restricted sap.fe
|
|
25
|
+
* MDC_PUBLIC_CANDIDATE
|
|
25
26
|
*/
|
|
26
27
|
var TableDelegate = Object.assign({}, AggregationBaseDelegate);
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
* Provides hook to update the binding info object that is used to bind the table to the model.
|
|
30
|
+
* Provides a hook to update the binding info object that is used to bind the table to the model.
|
|
30
31
|
*
|
|
31
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
32
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
32
33
|
* @param {object} oDelegatePayload The delegate payload
|
|
33
34
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
34
35
|
* @protected
|
|
@@ -47,9 +48,10 @@ sap.ui.define([
|
|
|
47
48
|
/**
|
|
48
49
|
* Updates the row binding of the table.
|
|
49
50
|
*
|
|
50
|
-
* The default implementation rebinds the table but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
51
|
+
* The default implementation rebinds the table, but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
52
|
+
* of using {@link #rebindTable}.
|
|
51
53
|
*
|
|
52
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
54
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
53
55
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
54
56
|
* @param {sap.ui.model.ListBinding} [oBinding] The binding instance of the table
|
|
55
57
|
* @protected
|
|
@@ -73,7 +75,7 @@ sap.ui.define([
|
|
|
73
75
|
/**
|
|
74
76
|
* Rebinds the table.
|
|
75
77
|
*
|
|
76
|
-
* @param {sap.ui.mdc.Table} oMDCTable
|
|
78
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
77
79
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
78
80
|
* @protected
|
|
79
81
|
*/
|
|
@@ -84,9 +86,9 @@ sap.ui.define([
|
|
|
84
86
|
};
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
|
-
*
|
|
88
|
-
* <b>Note:</b> The functionality provided in this delegate should act as a subset of a FilterBarDelegate
|
|
89
|
-
*
|
|
89
|
+
* Returns the filter delegate of the table that provides basic filter functionality such as adding filter fields.
|
|
90
|
+
* <b>Note:</b> The functionality provided in this delegate should act as a subset of a <code>FilterBarDelegate</code> to enable the
|
|
91
|
+
* table for inbuilt filtering.
|
|
90
92
|
*
|
|
91
93
|
* @example <caption>Example usage of <code>getFilterDelegate</code></caption>
|
|
92
94
|
* oFilterDelegate = {
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* @class Element for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
|
|
70
70
|
* @extends sap.ui.mdc.Element
|
|
71
71
|
* @implements sap.ui.core.PopupInterface
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.97.0
|
|
73
73
|
* @constructor
|
|
74
74
|
* @abstract
|
|
75
75
|
* @private
|
|
@@ -327,7 +327,16 @@ sap.ui.define([
|
|
|
327
327
|
* belongs to, not by the application.
|
|
328
328
|
*
|
|
329
329
|
* @param {sap.ui.core.Control} oControl Control to which the <code>FieldHelp</code> element is connected to
|
|
330
|
-
* @param {object} oConfig Configuration object that holds
|
|
330
|
+
* @param {object} [oConfig] Configuration object that holds required data of the connected control
|
|
331
|
+
* @param {int} [oConfig.maxConditions=-1] Maximum number of allowed conditions
|
|
332
|
+
* @param {sap.ui.model.Type} [oConfig.dataType] Type of the key (required for condition panel)
|
|
333
|
+
* @param {string[]} [oConfig.operators] Possible operators to be used in the condition
|
|
334
|
+
* @param {sap.ui.mdc.enum.FieldDisplay} [oConfig.display] Defines whether the value and/or description of the field is shown and in what order
|
|
335
|
+
* @param {object} [oConfig.delegate] Field delegate to handle model-specific logic (required for condition panel)
|
|
336
|
+
* @param {object} [oConfig.delegateName] Field delegate name to handle model-specific logic (required for condition panel)
|
|
337
|
+
* @param {object} [oConfig.payload] Payload of the field delegate (required for condition panel)
|
|
338
|
+
* @param {string} [oConfig.conditionModelName] Name of the <code>ConditionModel</code>, if bound to one (required if used for {@link sap.ui.mdc.FilterField FilterField})
|
|
339
|
+
* @param {string} [oConfig.defaultOperatorName] Name of the default <code>Operator</code> (required if used for {@link sap.ui.mdc.FilterField FilterField})
|
|
331
340
|
* @returns {this} Reference to <code>this</code> in order to allow method chaining
|
|
332
341
|
* @private
|
|
333
342
|
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
@@ -358,9 +367,10 @@ sap.ui.define([
|
|
|
358
367
|
var oTypeahead = this.getTypeahead();
|
|
359
368
|
var oDialog = this.getDialog();
|
|
360
369
|
|
|
361
|
-
|
|
370
|
+
// check for opening too as focus move sometimes to valuehelp before handleOpened finished
|
|
371
|
+
if (oTypeahead && (oTypeahead.isOpen() || oTypeahead.isOpening())) {
|
|
362
372
|
return oTypeahead.getDomRef();
|
|
363
|
-
} else if (oDialog && oDialog.isOpen()) {
|
|
373
|
+
} else if (oDialog && (oDialog.isOpen() || oDialog.isOpening())) {
|
|
364
374
|
return oDialog.getDomRef();
|
|
365
375
|
}
|
|
366
376
|
|
|
@@ -542,7 +552,16 @@ sap.ui.define([
|
|
|
542
552
|
* @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
|
|
543
553
|
*/
|
|
544
554
|
ValueHelp.prototype.skipOpening = function() { // ? Use close based logic instead?
|
|
545
|
-
this.
|
|
555
|
+
var oTypeahead = this.getTypeahead();
|
|
556
|
+
var oDialog = this.getDialog();
|
|
557
|
+
|
|
558
|
+
if (oTypeahead && oTypeahead.isOpening()) {
|
|
559
|
+
oTypeahead.close();
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (oDialog && oDialog.isOpening()) {
|
|
563
|
+
oDialog.close();
|
|
564
|
+
}
|
|
546
565
|
};
|
|
547
566
|
|
|
548
567
|
/**
|
|
@@ -579,7 +598,14 @@ sap.ui.define([
|
|
|
579
598
|
*/
|
|
580
599
|
ValueHelp.prototype.isTypeaheadSupported = function() { // always return promise ?
|
|
581
600
|
|
|
582
|
-
|
|
601
|
+
var oTypeahead = this.getTypeahead();
|
|
602
|
+
if (oTypeahead) {
|
|
603
|
+
return this._retrieveDelegateContent(oTypeahead).then(function () {
|
|
604
|
+
return !!oTypeahead && oTypeahead.isTypeaheadSupported(); // as might depend on binding in content
|
|
605
|
+
});
|
|
606
|
+
} else {
|
|
607
|
+
return Promise.resolve(false);
|
|
608
|
+
}
|
|
583
609
|
|
|
584
610
|
};
|
|
585
611
|
|
|
@@ -892,7 +918,7 @@ sap.ui.define([
|
|
|
892
918
|
|
|
893
919
|
ValueHelp.prototype.getMaxConditions = function() { // ?
|
|
894
920
|
var oConfig = this.getProperty("_config");
|
|
895
|
-
return oConfig && oConfig.maxConditions;
|
|
921
|
+
return (oConfig && oConfig.maxConditions) || -1;
|
|
896
922
|
};
|
|
897
923
|
|
|
898
924
|
ValueHelp.prototype.getDisplay = function() { // ? currently necessary to determine how to render the tokens in valuehelp
|
|
@@ -77,6 +77,26 @@ sap.ui.define([
|
|
|
77
77
|
return Promise.resolve();
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Changes the search string.
|
|
82
|
+
*
|
|
83
|
+
* If <code>$search</code> is used, depending on which back-end service is used, the search string might need to be escaped.
|
|
84
|
+
*
|
|
85
|
+
* @param {object} oPayload Payload for delegate
|
|
86
|
+
* @param {boolean} bTypeahead <code>true</code> if the search is called for a type-ahead
|
|
87
|
+
* @param {string} sSearch Search string
|
|
88
|
+
* @returns {string} Search string to use
|
|
89
|
+
* @since 1.97.0
|
|
90
|
+
* @private
|
|
91
|
+
* @ui5-restricted sap.fe
|
|
92
|
+
* @MDC_PUBLIC_CANDIDATE
|
|
93
|
+
*/
|
|
94
|
+
ValueHelpDelegate.adjustSearch = function(oPayload, bTypeahead, sSearch) {
|
|
95
|
+
|
|
96
|
+
return sSearch;
|
|
97
|
+
|
|
98
|
+
};
|
|
99
|
+
|
|
80
100
|
/**
|
|
81
101
|
* Executes a filter in a <code>ListBinding</code>.
|
|
82
102
|
*
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @class The ToolbarHandler control creates a sap.m.OverflowToolbar based on metadata and the configuration specified.
|
|
43
43
|
* @extends sap.m.OverflowToolbar
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.97.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @experimental As of version ...
|
|
48
48
|
* @private
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class The ChartSelectionDetailsNew control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
|
|
34
34
|
* @extends sap.m.SelectionDetails
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.97.0
|
|
37
37
|
* @constructor
|
|
38
38
|
* @experimental As of version ...
|
|
39
39
|
* @private
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @class The ChartToolbarNew control creates a sap.m.OverflowToolbar based on metadata and the configuration specified.
|
|
42
42
|
* @extends sap.m.OverflowToolbar
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.97.0
|
|
45
45
|
* @constructor
|
|
46
46
|
* @experimental As of version ...
|
|
47
47
|
* @private
|
|
@@ -52,7 +52,7 @@ function(
|
|
|
52
52
|
*
|
|
53
53
|
* @namespace
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.97.0
|
|
56
56
|
* @since 1.73.0
|
|
57
57
|
* @alias sap.ui.mdc.condition.FilterOperatorUtil
|
|
58
58
|
*
|
|
@@ -66,6 +66,7 @@ function(
|
|
|
66
66
|
_mOperators: {
|
|
67
67
|
equal: new Operator({
|
|
68
68
|
name: "EQ",
|
|
69
|
+
alias: "DATE",
|
|
69
70
|
filterOperator: ModelOperator.EQ,
|
|
70
71
|
tokenParse: "^=([^=].*)$",
|
|
71
72
|
tokenFormat: "{1} ({0})", // all placeholder should use the {x} format - the text could be store in the resourcebundel file.
|
|
@@ -202,6 +203,7 @@ function(
|
|
|
202
203
|
}),
|
|
203
204
|
between: new Operator({
|
|
204
205
|
name: "BT",
|
|
206
|
+
alias: "DATERANGE",
|
|
205
207
|
filterOperator: ModelOperator.BT,
|
|
206
208
|
tokenParse: "^([^!].*)\\.\\.\\.(.+)$", // TODO: does this work?? At least also matches crap like ".....". I guess validation of value types needs to get rid of those.
|
|
207
209
|
tokenFormat: "{0}...{1}",
|
|
@@ -270,6 +272,7 @@ function(
|
|
|
270
272
|
}),
|
|
271
273
|
lessEqual: new Operator({
|
|
272
274
|
name: "LE",
|
|
275
|
+
alias: "TO",
|
|
273
276
|
filterOperator: ModelOperator.LE,
|
|
274
277
|
tokenParse: "^<=(.+)$",
|
|
275
278
|
tokenFormat: "<={0}",
|
|
@@ -285,6 +288,7 @@ function(
|
|
|
285
288
|
}),
|
|
286
289
|
greaterEqual: new Operator({
|
|
287
290
|
name: "GE",
|
|
291
|
+
alias: "FROM",
|
|
288
292
|
filterOperator: ModelOperator.GE,
|
|
289
293
|
tokenParse: "^>=(.+)$",
|
|
290
294
|
tokenFormat: ">={0}",
|
|
@@ -679,7 +683,7 @@ function(
|
|
|
679
683
|
}),
|
|
680
684
|
specificMonth: new RangeOperator({
|
|
681
685
|
name: "SPECIFICMONTH",
|
|
682
|
-
valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0,
|
|
686
|
+
valueTypes: [{ name: "sap.ui.model.type.Integer", constraints: { minimum: 0, maximum: 11 }}],
|
|
683
687
|
paramTypes: ["(.+)"],
|
|
684
688
|
additionalInfo: "",
|
|
685
689
|
// defaultValues: [0],
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* @param {string} [oConfiguration.additionalInfo] additionalInfo text for the operator. Will be shown in the operator suggest as second column. If not used (undefined) the Include or Exclude information of the operator is used.
|
|
84
84
|
* @constructor
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.
|
|
86
|
+
* @version 1.97.0
|
|
87
87
|
* @private
|
|
88
88
|
* @ui5-restricted sap.fe
|
|
89
89
|
* @MDC_PUBLIC_CANDIDATE
|
|
@@ -198,15 +198,15 @@ sap.ui.define([
|
|
|
198
198
|
this.exclude = !!oConfiguration.exclude; // to have always a boolean value
|
|
199
199
|
this.validateInput = !!oConfiguration.validateInput; // to have always a boolean value
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
if (oConfiguration.group) {
|
|
202
|
+
this.group = oConfiguration.group;
|
|
203
|
+
} else {
|
|
204
|
+
this.group = {id: !this.exclude ? "1" : "2"};
|
|
205
|
+
if (!this.group.text) {
|
|
206
|
+
this.group.text = oMessageBundle.getText("VALUEHELP.OPERATOR.GROUP" + this.group.id);
|
|
207
|
+
}
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
}
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
/**
|