@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.
Files changed (171) hide show
  1. package/.reuse/dep5 +9 -4
  2. package/THIRDPARTY.txt +13 -6
  3. package/package.json +4 -4
  4. package/src/sap/ui/mdc/.library +1 -1
  5. package/src/sap/ui/mdc/ActionToolbar.js +2 -2
  6. package/src/sap/ui/mdc/Chart.js +69 -40
  7. package/src/sap/ui/mdc/ChartDelegate.js +50 -26
  8. package/src/sap/ui/mdc/Control.js +1 -1
  9. package/src/sap/ui/mdc/DefaultTypeMap.js +1 -1
  10. package/src/sap/ui/mdc/Element.js +1 -1
  11. package/src/sap/ui/mdc/Field.js +2 -2
  12. package/src/sap/ui/mdc/FilterBar.js +55 -7
  13. package/src/sap/ui/mdc/FilterField.js +68 -11
  14. package/src/sap/ui/mdc/Link.js +6 -5
  15. package/src/sap/ui/mdc/MultiValueField.js +1 -1
  16. package/src/sap/ui/mdc/Table.js +8 -2
  17. package/src/sap/ui/mdc/ValueHelp.js +22 -1
  18. package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
  19. package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +1 -1
  20. package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +220 -113
  21. package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
  22. package/src/sap/ui/mdc/chart/ToolbarControlFactory.js +10 -6
  23. package/src/sap/ui/mdc/condition/Condition.js +1 -1
  24. package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
  25. package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
  26. package/src/sap/ui/mdc/condition/ConditionModelPropertyBinding.js +22 -4
  27. package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
  28. package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +19 -11
  29. package/src/sap/ui/mdc/condition/Operator.js +3 -3
  30. package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +2 -2
  31. package/src/sap/ui/mdc/condition/RangeOperator.js +34 -8
  32. package/src/sap/ui/mdc/designtime/field/Field.designtime.js +6 -3
  33. package/src/sap/ui/mdc/field/ConditionType.js +35 -40
  34. package/src/sap/ui/mdc/field/ConditionTypeMixin.js +1 -1
  35. package/src/sap/ui/mdc/field/ConditionsType.js +10 -6
  36. package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
  37. package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
  38. package/src/sap/ui/mdc/field/FieldBase.js +66 -22
  39. package/src/sap/ui/mdc/field/FieldInfoBase.js +12 -3
  40. package/src/sap/ui/mdc/field/FieldInput.js +1 -1
  41. package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
  42. package/src/sap/ui/mdc/field/FieldMultiInput.js +108 -4
  43. package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
  44. package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
  45. package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
  46. package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
  47. package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +1 -0
  48. package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
  49. package/src/sap/ui/mdc/field/content/DefaultContent.js +4 -4
  50. package/src/sap/ui/mdc/field/content/UnitContent.js +3 -3
  51. package/src/sap/ui/mdc/filterbar/FilterBarBase.js +19 -3
  52. package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
  53. package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +2 -2
  54. package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
  55. package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
  56. package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
  57. package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
  58. package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +90 -100
  59. package/src/sap/ui/mdc/flexibility/Util.js +5 -2
  60. package/src/sap/ui/mdc/library.js +2 -2
  61. package/src/sap/ui/mdc/link/Factory.js +1 -1
  62. package/src/sap/ui/mdc/link/LinkItem.js +1 -1
  63. package/src/sap/ui/mdc/link/Panel.js +12 -15
  64. package/src/sap/ui/mdc/link/PanelItem.js +1 -1
  65. package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
  66. package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
  67. package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
  68. package/src/sap/ui/mdc/messagebundle.properties +5 -0
  69. package/src/sap/ui/mdc/messagebundle_ar.properties +3 -0
  70. package/src/sap/ui/mdc/messagebundle_bg.properties +3 -0
  71. package/src/sap/ui/mdc/messagebundle_ca.properties +3 -0
  72. package/src/sap/ui/mdc/messagebundle_cnr.properties +3 -0
  73. package/src/sap/ui/mdc/messagebundle_cs.properties +3 -0
  74. package/src/sap/ui/mdc/messagebundle_cy.properties +3 -0
  75. package/src/sap/ui/mdc/messagebundle_da.properties +3 -0
  76. package/src/sap/ui/mdc/messagebundle_de.properties +5 -2
  77. package/src/sap/ui/mdc/messagebundle_el.properties +3 -0
  78. package/src/sap/ui/mdc/messagebundle_en.properties +3 -0
  79. package/src/sap/ui/mdc/messagebundle_en_GB.properties +3 -0
  80. package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -0
  81. package/src/sap/ui/mdc/messagebundle_es.properties +3 -0
  82. package/src/sap/ui/mdc/messagebundle_es_MX.properties +3 -0
  83. package/src/sap/ui/mdc/messagebundle_et.properties +3 -0
  84. package/src/sap/ui/mdc/messagebundle_fi.properties +3 -0
  85. package/src/sap/ui/mdc/messagebundle_fr.properties +3 -0
  86. package/src/sap/ui/mdc/messagebundle_fr_CA.properties +3 -0
  87. package/src/sap/ui/mdc/messagebundle_hi.properties +3 -0
  88. package/src/sap/ui/mdc/messagebundle_hr.properties +3 -0
  89. package/src/sap/ui/mdc/messagebundle_hu.properties +3 -0
  90. package/src/sap/ui/mdc/messagebundle_id.properties +3 -0
  91. package/src/sap/ui/mdc/messagebundle_it.properties +3 -0
  92. package/src/sap/ui/mdc/messagebundle_iw.properties +3 -0
  93. package/src/sap/ui/mdc/messagebundle_ja.properties +5 -2
  94. package/src/sap/ui/mdc/messagebundle_kk.properties +3 -0
  95. package/src/sap/ui/mdc/messagebundle_ko.properties +3 -0
  96. package/src/sap/ui/mdc/messagebundle_lt.properties +3 -0
  97. package/src/sap/ui/mdc/messagebundle_lv.properties +3 -0
  98. package/src/sap/ui/mdc/messagebundle_mk.properties +3 -0
  99. package/src/sap/ui/mdc/messagebundle_ms.properties +3 -0
  100. package/src/sap/ui/mdc/messagebundle_nl.properties +3 -0
  101. package/src/sap/ui/mdc/messagebundle_no.properties +3 -0
  102. package/src/sap/ui/mdc/messagebundle_pl.properties +3 -0
  103. package/src/sap/ui/mdc/messagebundle_pt.properties +3 -0
  104. package/src/sap/ui/mdc/messagebundle_pt_PT.properties +3 -0
  105. package/src/sap/ui/mdc/messagebundle_ro.properties +3 -0
  106. package/src/sap/ui/mdc/messagebundle_ru.properties +3 -0
  107. package/src/sap/ui/mdc/messagebundle_sh.properties +3 -0
  108. package/src/sap/ui/mdc/messagebundle_sk.properties +3 -0
  109. package/src/sap/ui/mdc/messagebundle_sl.properties +3 -0
  110. package/src/sap/ui/mdc/messagebundle_sr.properties +3 -0
  111. package/src/sap/ui/mdc/messagebundle_sv.properties +3 -0
  112. package/src/sap/ui/mdc/messagebundle_th.properties +4 -1
  113. package/src/sap/ui/mdc/messagebundle_tr.properties +3 -0
  114. package/src/sap/ui/mdc/messagebundle_uk.properties +3 -0
  115. package/src/sap/ui/mdc/messagebundle_vi.properties +3 -0
  116. package/src/sap/ui/mdc/messagebundle_zh_CN.properties +3 -0
  117. package/src/sap/ui/mdc/messagebundle_zh_TW.properties +3 -0
  118. package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
  119. package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
  120. package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
  121. package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
  122. package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +1 -1
  123. package/src/sap/ui/mdc/odata/TypeMap.js +1 -1
  124. package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +3 -1
  125. package/src/sap/ui/mdc/odata/v4/TypeMap.js +1 -1
  126. package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +1 -1
  127. package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
  128. package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +10 -3
  129. package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +7 -3
  130. package/src/sap/ui/mdc/table/Column.js +6 -0
  131. package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
  132. package/src/sap/ui/mdc/table/CreationRow.js +1 -1
  133. package/src/sap/ui/mdc/table/DragDropConfig.js +37 -13
  134. package/src/sap/ui/mdc/table/GridTableType.js +1 -1
  135. package/src/sap/ui/mdc/table/PropertyHelper.js +1 -1
  136. package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
  137. package/src/sap/ui/mdc/table/ResponsiveTableType.js +6 -7
  138. package/src/sap/ui/mdc/table/RowActionItem.js +2 -1
  139. package/src/sap/ui/mdc/table/RowSettings.js +1 -1
  140. package/src/sap/ui/mdc/table/TableTypeBase.js +1 -0
  141. package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
  142. package/src/sap/ui/mdc/table/utils/Personalization.js +1 -1
  143. package/src/sap/ui/mdc/themes/base/PersonalizationDialog.less +4 -4
  144. package/src/sap/ui/mdc/themes/base/Table.less +1 -0
  145. package/src/sap/ui/mdc/ushell/LinkDelegate.js +25 -19
  146. package/src/sap/ui/mdc/ushell/SemanticObjectMapping.js +1 -1
  147. package/src/sap/ui/mdc/ushell/SemanticObjectMappingItem.js +1 -1
  148. package/src/sap/ui/mdc/ushell/SemanticObjectUnavailableAction.js +1 -1
  149. package/src/sap/ui/mdc/util/InfoBar.js +1 -1
  150. package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
  151. package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
  152. package/src/sap/ui/mdc/valuehelp/Dialog.js +2 -2
  153. package/src/sap/ui/mdc/valuehelp/FilterBar.js +1 -1
  154. package/src/sap/ui/mdc/valuehelp/Popover.js +21 -3
  155. package/src/sap/ui/mdc/valuehelp/base/Container.js +28 -1
  156. package/src/sap/ui/mdc/valuehelp/base/Content.js +19 -1
  157. package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +1 -1
  158. package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
  159. package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +1 -1
  160. package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
  161. package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
  162. package/src/sap/ui/mdc/valuehelp/content/Conditions.js +1 -1
  163. package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
  164. package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
  165. package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +1 -1
  166. package/src/sap/ui/mdc/valuehelp/content/MTable.js +57 -45
  167. package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +339 -332
  168. package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +7 -1
  169. package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +23 -1
  170. package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
  171. 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.124.2
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.ListBox);
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
- reset: function() {
236
- this.getEngine().reset(this);
237
- this._getConditionModel().checkUpdate(true);
238
- }.bind(this)
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.DateRangeSelection DateRangeSelection} control is rendered.</li>
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.124.2
56
+ * @version 1.126.0
57
57
  *
58
58
  * @constructor
59
59
  * @alias sap.ui.mdc.FilterField
60
- * @version 1.124.2
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
- // TODO: remove fallback if propertyKey is used by stakeholders
185
- FilterField.prototype.getPropertyKey = function() {
186
- let sPropertyKey = this.getProperty("propertyKey");
187
- if (!sPropertyKey) {
188
- sPropertyKey = this.getFieldPath();
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
- return sPropertyKey;
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
  });
@@ -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.124.2
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
- if (aMLinkItems.length === 1 && !aAdditionalContent.length) {
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
- return false;
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 oSourceControl ?? this.getSourceControl();
667
+ return oSourceControl ?? this.getSourceControl();
667
668
  };
668
669
 
669
670
  return Link;
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  * @constructor
45
45
  * @alias sap.ui.mdc.MultiValueField
46
46
  * @author SAP SE
47
- * @version 1.124.2
47
+ * @version 1.126.0
48
48
  * @since 1.93.0
49
49
  *
50
50
  * @public
@@ -1303,7 +1303,7 @@ sap.ui.define([
1303
1303
  return this;
1304
1304
  }
1305
1305
  this.setProperty("headerStyle", sStyle, true);
1306
- this._oTitle && this._oTitle.setTitleStyle(this.getHeaderStyle() || TitleLevel.H4);
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.H4
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.124.2
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.124.2
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.124.2
24
+ * @version 1.126.0
25
25
  * @constructor
26
26
  *
27
27
  * @public