@openui5/sap.ui.mdc 1.124.2 → 1.126.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 +9 -4
- package/THIRDPARTY.txt +13 -6
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +2 -2
- package/src/sap/ui/mdc/Chart.js +69 -40
- package/src/sap/ui/mdc/ChartDelegate.js +50 -26
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/DefaultTypeMap.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +2 -2
- package/src/sap/ui/mdc/FilterBar.js +55 -7
- package/src/sap/ui/mdc/FilterField.js +68 -11
- package/src/sap/ui/mdc/Link.js +6 -5
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +8 -2
- package/src/sap/ui/mdc/ValueHelp.js +22 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +220 -113
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarControlFactory.js +10 -6
- 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/ConditionModelPropertyBinding.js +22 -4
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +19 -11
- package/src/sap/ui/mdc/condition/Operator.js +3 -3
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +2 -2
- package/src/sap/ui/mdc/condition/RangeOperator.js +34 -8
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +6 -3
- package/src/sap/ui/mdc/field/ConditionType.js +35 -40
- package/src/sap/ui/mdc/field/ConditionTypeMixin.js +1 -1
- package/src/sap/ui/mdc/field/ConditionsType.js +10 -6
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +66 -22
- package/src/sap/ui/mdc/field/FieldInfoBase.js +12 -3
- 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 +108 -4
- 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/TokenDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +1 -0
- package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +4 -4
- package/src/sap/ui/mdc/field/content/UnitContent.js +3 -3
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +19 -3
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +2 -2
- 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/flexibility/Panel.flexibility.js +90 -100
- package/src/sap/ui/mdc/flexibility/Util.js +5 -2
- package/src/sap/ui/mdc/library.js +2 -2
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +12 -15
- package/src/sap/ui/mdc/link/PanelItem.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 +5 -0
- package/src/sap/ui/mdc/messagebundle_ar.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_bg.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ca.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_cnr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_cy.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_da.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_de.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_et.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_fr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_hi.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_hr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_hu.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_id.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_it.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_iw.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ja.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ko.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_lt.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_mk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_nl.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_no.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_pl.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_pt.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ru.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sh.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sl.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sv.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_th.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_tr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_uk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_vi.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +3 -0
- 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 +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
- package/src/sap/ui/mdc/odata/TypeMap.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +3 -1
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +10 -3
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +7 -3
- package/src/sap/ui/mdc/table/Column.js +6 -0
- package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/DragDropConfig.js +37 -13
- package/src/sap/ui/mdc/table/GridTableType.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +6 -7
- package/src/sap/ui/mdc/table/RowActionItem.js +2 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableTypeBase.js +1 -0
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/utils/Personalization.js +1 -1
- package/src/sap/ui/mdc/themes/base/PersonalizationDialog.less +4 -4
- package/src/sap/ui/mdc/themes/base/Table.less +1 -0
- package/src/sap/ui/mdc/ushell/LinkDelegate.js +25 -19
- package/src/sap/ui/mdc/ushell/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +2 -2
- package/src/sap/ui/mdc/valuehelp/FilterBar.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Popover.js +21 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +28 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +19 -1
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +57 -45
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +339 -332
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +7 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +23 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +6 -2
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* The metadata information is provided via the {@link module:sap/ui/mdc/FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
46
46
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.126.0
|
|
49
49
|
* @constructor
|
|
50
50
|
* @public
|
|
51
51
|
* @since 1.61.0
|
|
@@ -158,7 +158,7 @@ sap.ui.define([
|
|
|
158
158
|
text: "{" + FilterBarBase.INNER_MODEL_NAME + ">/_filterCount}",
|
|
159
159
|
press: this.onAdaptFilters.bind(this)
|
|
160
160
|
});
|
|
161
|
-
this._btnAdapt.setAriaHasPopup(HasPopup.
|
|
161
|
+
this._btnAdapt.setAriaHasPopup(HasPopup.Dialog);
|
|
162
162
|
this._btnAdapt.setModel(this._oModel, FilterBarBase.INNER_MODEL_NAME);
|
|
163
163
|
|
|
164
164
|
this._btnAdapt.bindProperty("visible", {
|
|
@@ -232,18 +232,66 @@ sap.ui.define([
|
|
|
232
232
|
|
|
233
233
|
return this._retrieveMetadata().then(() => {
|
|
234
234
|
return this.getEngine().show(this, "Item", {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
235
|
+
reset: function() {
|
|
236
|
+
this.getEngine().reset(this);
|
|
237
|
+
this._getConditionModel().checkUpdate(true);
|
|
238
|
+
}.bind(this)
|
|
239
|
+
})
|
|
240
240
|
.then((oPopup) => {
|
|
241
|
+
this._aAddedFilterFields = [];
|
|
242
|
+
this._aRemovedFilterFields = [];
|
|
243
|
+
oPopup.attachEventOnce("afterClose", this._determineFilterFieldOnFocus.bind(this));
|
|
241
244
|
return oPopup;
|
|
242
245
|
});
|
|
243
246
|
});
|
|
244
247
|
|
|
245
248
|
};
|
|
246
249
|
|
|
250
|
+
FilterBar.prototype._determineFilterFieldOnFocus = function() {
|
|
251
|
+
|
|
252
|
+
let oFilterField = null;
|
|
253
|
+
const aFilterFields = this.getFilterItems();
|
|
254
|
+
if (this._aAddedFilterFields && this._aAddedFilterFields.length > 0) {
|
|
255
|
+
[oFilterField] = this._aAddedFilterFields;
|
|
256
|
+
for (let i = 1; i < this._aAddedFilterFields.length; i++) {
|
|
257
|
+
if (aFilterFields.indexOf(oFilterField) > aFilterFields.indexOf(this._aAddedFilterFields[i])) {
|
|
258
|
+
oFilterField = this._aAddedFilterFields[i];
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
} else if (this._aRemovedFilterFields && this._aRemovedFilterFields.length > 0) {
|
|
262
|
+
[oFilterField] = aFilterFields;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (oFilterField) {
|
|
266
|
+
this._setFocusOnFilterField(oFilterField);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
this._aAddedFilterFields = undefined;
|
|
270
|
+
this._aRemovedFilterFields = undefined;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
FilterBar.prototype._handleAddedFilterField = function(oFilterField) {
|
|
274
|
+
if (this._aAddedFilterFields && this._aRemovedFilterFields) {
|
|
275
|
+
const nDelIdx = this._aRemovedFilterFields.indexOf(oFilterField);
|
|
276
|
+
if (nDelIdx < 0) {
|
|
277
|
+
this._aAddedFilterFields.push(oFilterField);
|
|
278
|
+
} else {
|
|
279
|
+
this._aRemovedFilterFields.splice(nDelIdx, 1);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
FilterBar.prototype._handleRemovedFilterField = function(oFilterField) {
|
|
284
|
+
if (this._aRemovedFilterFields) {
|
|
285
|
+
this._aRemovedFilterFields.push(oFilterField);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
FilterBar.prototype._setFocusOnFilterField = function(oFilterField) {
|
|
290
|
+
if (oFilterField) {
|
|
291
|
+
oFilterField.focus();
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
|
|
247
295
|
/**
|
|
248
296
|
* Returns the external conditions of the inner condition model.
|
|
249
297
|
* <b>Note:</b> This API returns only attributes related to the {@link sap.ui.mdc.FilterBar#setP13nMode p13nMode} property configuration.
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* <li>In edit mode, usually an {@link sap.m.Input Input} control is rendered.</li>
|
|
42
42
|
* <li>If multiple values are allowed, a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
43
43
|
* <li>If <code>multipleLines</code> is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
44
|
-
* <li>If a date type or a date/time type is used, a {@link sap.m.
|
|
44
|
+
* <li>If a date type or a date/time type is used and only one condition is supported, a {@link sap.m.DynamicDateRange DynamicDateRange} control is rendered.</li>
|
|
45
45
|
* <li>If a date type is used and only single values are allowed, a {@link sap.m.DatePicker DatePicker} control is rendered.</li>
|
|
46
46
|
* <li>If a date type is used and only single ranges are allowed, a {@link sap.m.DateRangeSelection DateRangeSelection} control is rendered.</li>
|
|
47
47
|
* <li>If a date/time type is used and only single values are allowed, a {@link sap.m.DateTimePicker DateTimePicker} control is rendered.</li>
|
|
@@ -53,11 +53,11 @@ sap.ui.define([
|
|
|
53
53
|
* @implements sap.ui.core.IFormContent, sap.ui.core.ISemanticFormContent, sap.m.IOverflowToolbarContent
|
|
54
54
|
*
|
|
55
55
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
56
|
+
* @version 1.126.0
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @alias sap.ui.mdc.FilterField
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.126.0
|
|
61
61
|
* @since 1.48.0
|
|
62
62
|
*
|
|
63
63
|
* @public
|
|
@@ -173,23 +173,33 @@ sap.ui.define([
|
|
|
173
173
|
properties: ["operators", "propertyKey", "additionalDataType"]
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
+
this._mDescriptionPromises = new Map();
|
|
177
|
+
this._mDescriptions = new Map();
|
|
176
178
|
};
|
|
177
179
|
|
|
178
180
|
FilterField.prototype.exit = function() {
|
|
179
181
|
|
|
182
|
+
this._mDescriptionPromises = null;
|
|
183
|
+
this._mDescriptions = null;
|
|
184
|
+
|
|
180
185
|
FieldBase.prototype.exit.apply(this, arguments);
|
|
181
186
|
|
|
182
187
|
};
|
|
183
188
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated Since version 1.115.0
|
|
191
|
+
*/
|
|
192
|
+
(() => {
|
|
193
|
+
FilterField.prototype.getPropertyKey = function() {
|
|
194
|
+
let sPropertyKey = this.getProperty("propertyKey");
|
|
190
195
|
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
if (!sPropertyKey) {
|
|
197
|
+
sPropertyKey = this.getFieldPath();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return sPropertyKey;
|
|
201
|
+
};
|
|
202
|
+
})();
|
|
193
203
|
|
|
194
204
|
FilterField.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
|
|
195
205
|
|
|
@@ -467,6 +477,53 @@ sap.ui.define([
|
|
|
467
477
|
|
|
468
478
|
};
|
|
469
479
|
|
|
480
|
+
const _findConditionMapEntry = (oMap, oCondition) => {
|
|
481
|
+
return [...oMap.entries()].find((aEntry) => deepEqual(aEntry[0], oCondition));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
FilterField.prototype.getFormattingPromise = function () {
|
|
485
|
+
if (this._mDescriptionPromises) {
|
|
486
|
+
const aRunningPromises = [...this._mDescriptionPromises.values()];
|
|
487
|
+
if (aRunningPromises?.length) {
|
|
488
|
+
return Promise.allSettled(aRunningPromises);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return undefined;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
FilterField.prototype._persistFormatConditions = function () {
|
|
495
|
+
if (!this.getFormattingPromise()) { // No running formatting promises? We only want to propagate results when formatting is completely done
|
|
496
|
+
const aConditions = this.getConditions();
|
|
497
|
+
const aNextConditions = aConditions.map((oCondition) => {
|
|
498
|
+
const aFormatConditionEntry = _findConditionMapEntry(this._mDescriptions, oCondition);
|
|
499
|
+
return aFormatConditionEntry ? aFormatConditionEntry[1] : oCondition; // Replace with formatted condition if available
|
|
500
|
+
});
|
|
501
|
+
this.setProperty("conditions", aNextConditions, true);
|
|
502
|
+
this._mDescriptionPromises.clear();
|
|
503
|
+
this._mDescriptions.clear();
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
FilterField.prototype.getFormatOptions = function() {
|
|
508
|
+
const that = this;
|
|
509
|
+
return {
|
|
510
|
+
...FieldBase.prototype.getFormatOptions.apply(this, arguments),
|
|
511
|
+
awaitFormatCondition: function (oCondition, oFormattingPromise) {
|
|
512
|
+
const oFormatConditionPromise = oFormattingPromise.then((oFormattedCondition) => {
|
|
513
|
+
if (oFormattedCondition) {
|
|
514
|
+
that._mDescriptions.set(oCondition, oFormattedCondition);
|
|
515
|
+
}
|
|
516
|
+
return oFormattedCondition;
|
|
517
|
+
}).finally(() => {
|
|
518
|
+
that._mDescriptionPromises.delete(oCondition);
|
|
519
|
+
that._persistFormatConditions();
|
|
520
|
+
});
|
|
521
|
+
that._mDescriptionPromises.set(oCondition, oFormatConditionPromise);
|
|
522
|
+
return oFormatConditionPromise;
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
|
|
470
527
|
return FilterField;
|
|
471
528
|
|
|
472
529
|
});
|
package/src/sap/ui/mdc/Link.js
CHANGED
|
@@ -71,7 +71,7 @@ sap.ui.define([
|
|
|
71
71
|
* @extends sap.ui.mdc.field.FieldInfoBase
|
|
72
72
|
*
|
|
73
73
|
* @author SAP SE
|
|
74
|
-
* @version 1.
|
|
74
|
+
* @version 1.126.0
|
|
75
75
|
*
|
|
76
76
|
* @constructor
|
|
77
77
|
* @alias sap.ui.mdc.Link
|
|
@@ -334,14 +334,15 @@ sap.ui.define([
|
|
|
334
334
|
this._setConvertedLinkItems(aLinkItems);
|
|
335
335
|
const aMLinkItems = this._getInternalModel().getProperty("/linkItems");
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
const bDirectNavigation = (aMLinkItems.length === 1 && !aAdditionalContent.length);
|
|
338
|
+
if (bDirectNavigation) {
|
|
338
339
|
const bNavigate = await this._beforeNavigationCallback(oEvent);
|
|
339
340
|
if (bNavigate) {
|
|
340
341
|
Panel.navigate(aMLinkItems[0].href);
|
|
341
342
|
}
|
|
342
|
-
return bNavigate;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
|
|
345
|
+
return bDirectNavigation;
|
|
345
346
|
};
|
|
346
347
|
|
|
347
348
|
/**
|
|
@@ -663,7 +664,7 @@ sap.ui.define([
|
|
|
663
664
|
Link.prototype._getSourceControl = function() {
|
|
664
665
|
const vSourceControlAssociation = this.getAssociation("sourceControl");
|
|
665
666
|
const oSourceControl = vSourceControlAssociation && typeof vSourceControlAssociation === "string" ? Element.getElementById(vSourceControlAssociation) : vSourceControlAssociation;
|
|
666
|
-
return
|
|
667
|
+
return oSourceControl ?? this.getSourceControl();
|
|
667
668
|
};
|
|
668
669
|
|
|
669
670
|
return Link;
|
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -1303,7 +1303,7 @@ sap.ui.define([
|
|
|
1303
1303
|
return this;
|
|
1304
1304
|
}
|
|
1305
1305
|
this.setProperty("headerStyle", sStyle, true);
|
|
1306
|
-
this._oTitle
|
|
1306
|
+
this._oTitle?.setTitleStyle(this.getHeaderStyle() || TitleLevel[ThemeParameters.get({name: "_sap_ui_mdc_Table_HeaderStyle"})]);
|
|
1307
1307
|
return this;
|
|
1308
1308
|
};
|
|
1309
1309
|
|
|
@@ -1569,6 +1569,7 @@ sap.ui.define([
|
|
|
1569
1569
|
active: true,
|
|
1570
1570
|
design: ToolbarDesign.Info,
|
|
1571
1571
|
visible: false,
|
|
1572
|
+
ariaLabelledBy: sToolbarId + "-text",
|
|
1572
1573
|
content: [
|
|
1573
1574
|
new Text({
|
|
1574
1575
|
id: sToolbarId + "-text",
|
|
@@ -1971,7 +1972,7 @@ sap.ui.define([
|
|
|
1971
1972
|
text: this.getHeader(),
|
|
1972
1973
|
width: this.getHeaderVisible() ? undefined : "0px",
|
|
1973
1974
|
level: this.getHeaderLevel(),
|
|
1974
|
-
titleStyle: this.getHeaderStyle() || TitleLevel.
|
|
1975
|
+
titleStyle: this.getHeaderStyle() || TitleLevel[ThemeParameters.get({name: "_sap_ui_mdc_Table_HeaderStyle"})]
|
|
1975
1976
|
});
|
|
1976
1977
|
// Create Toolbar
|
|
1977
1978
|
this._oToolbar = new ActionToolbar(this.getId() + "-toolbar", {
|
|
@@ -3063,6 +3064,11 @@ sap.ui.define([
|
|
|
3063
3064
|
const sToolBarDesign = ToolbarDesign[ThemeParameters.get({name: "_sap_ui_mdc_Table_ToolbarDesign"})];
|
|
3064
3065
|
this._oToolbar.setDesign(sToolBarDesign);
|
|
3065
3066
|
}
|
|
3067
|
+
|
|
3068
|
+
if (this._oTitle && !this.getHeaderStyle()) {
|
|
3069
|
+
const sHeaderStyle = TitleLevel[ThemeParameters.get({name: "_sap_ui_mdc_Table_HeaderStyle"})];
|
|
3070
|
+
this._oTitle.setTitleStyle(sHeaderStyle);
|
|
3071
|
+
}
|
|
3066
3072
|
};
|
|
3067
3073
|
|
|
3068
3074
|
/**
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* and {@link sap.ui.mdc.FilterField FilterField} controls using the <code>valueHelp</code> association. One <code>ValueHelp</code> element instance can be
|
|
68
68
|
* assigned to multiple fields (like in different table rows). It should be placed in the control tree on the container holding the fields.
|
|
69
69
|
* @extends sap.ui.mdc.Element
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.126.0
|
|
71
71
|
* @constructor
|
|
72
72
|
* @abstract
|
|
73
73
|
* @public
|
|
@@ -85,6 +85,9 @@ sap.ui.define([
|
|
|
85
85
|
* belongs to, not by the application.
|
|
86
86
|
*
|
|
87
87
|
* <b>Note:</b> A condition must have the structure of {@link sap.ui.mdc.condition.ConditionObject ConditionObject}.
|
|
88
|
+
*
|
|
89
|
+
* @private
|
|
90
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
88
91
|
*/
|
|
89
92
|
conditions: {
|
|
90
93
|
type: "object[]",
|
|
@@ -123,6 +126,9 @@ sap.ui.define([
|
|
|
123
126
|
*
|
|
124
127
|
* <b>Note:</b> This property must only be set by the control the <code>ValueHelp</code> element
|
|
125
128
|
* belongs to, not by the application.
|
|
129
|
+
*
|
|
130
|
+
* @private
|
|
131
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
126
132
|
*/
|
|
127
133
|
filterValue: {
|
|
128
134
|
type: "string",
|
|
@@ -181,6 +187,9 @@ sap.ui.define([
|
|
|
181
187
|
*
|
|
182
188
|
* <b>Note:</b> This event must only be handled by the control the <code>ValueHelp</code> element
|
|
183
189
|
* belongs to, not by the application.
|
|
190
|
+
*
|
|
191
|
+
* @private
|
|
192
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
184
193
|
*/
|
|
185
194
|
select: {
|
|
186
195
|
parameters: {
|
|
@@ -209,6 +218,9 @@ sap.ui.define([
|
|
|
209
218
|
*
|
|
210
219
|
* <b>Note:</b> This event must only be handled by the control the <code>ValueHelp</code> element
|
|
211
220
|
* belongs to, not by the application.
|
|
221
|
+
*
|
|
222
|
+
* @private
|
|
223
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
212
224
|
*/
|
|
213
225
|
disconnect: {},
|
|
214
226
|
|
|
@@ -247,6 +259,9 @@ sap.ui.define([
|
|
|
247
259
|
|
|
248
260
|
/**
|
|
249
261
|
* This event is fired after the user navigated, using the arrow keys, in the value help.
|
|
262
|
+
*
|
|
263
|
+
* @private
|
|
264
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
250
265
|
*/
|
|
251
266
|
navigated: {
|
|
252
267
|
parameters: {
|
|
@@ -268,10 +283,16 @@ sap.ui.define([
|
|
|
268
283
|
},
|
|
269
284
|
/**
|
|
270
285
|
* This event is fired if the user wants to switch from typeahead to value help.
|
|
286
|
+
*
|
|
287
|
+
* @private
|
|
288
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
271
289
|
*/
|
|
272
290
|
switchToValueHelp: {},
|
|
273
291
|
/**
|
|
274
292
|
* This event is fired after a suggested item has been found for a type-ahead.
|
|
293
|
+
*
|
|
294
|
+
* @private
|
|
295
|
+
* @ui5-restricted sap.ui.mdc.field.FieldBase
|
|
275
296
|
* @since 1.120.0
|
|
276
297
|
*/
|
|
277
298
|
typeaheadSuggested: {
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar} control with given layout information that determines where the wrapped control is displayed on the <code>ActionToolbar</code>.
|
|
21
21
|
* @extends sap.ui.core.Control
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.126.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @since 1.58
|
|
26
26
|
* @public
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The <code>ChartImplementationContainer</code> creates a container for the <code>content</code> (chart) and <code>noDataContent</code>. Based on the <code>showNoDataStruct</code> the <code>content</code> or <code>noDataContent</code> will be shown.
|
|
22
22
|
* @extends sap.ui.core.Control
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.126.0
|
|
25
25
|
* @constructor
|
|
26
26
|
*
|
|
27
27
|
* @public
|