@openui5/sap.ui.unified 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 (66) hide show
  1. package/.reuse/dep5 +9 -4
  2. package/THIRDPARTY.txt +13 -6
  3. package/package.json +2 -2
  4. package/src/sap/ui/unified/.library +1 -1
  5. package/src/sap/ui/unified/Calendar.js +1 -1
  6. package/src/sap/ui/unified/CalendarAppointment.js +1 -1
  7. package/src/sap/ui/unified/CalendarDateInterval.js +1 -1
  8. package/src/sap/ui/unified/CalendarLegend.js +1 -1
  9. package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
  10. package/src/sap/ui/unified/CalendarMonthInterval.js +1 -1
  11. package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
  12. package/src/sap/ui/unified/CalendarRow.js +4 -4
  13. package/src/sap/ui/unified/CalendarTimeInterval.js +1 -1
  14. package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
  15. package/src/sap/ui/unified/ColorPicker.js +1 -1
  16. package/src/sap/ui/unified/ColorPickerPopover.js +1 -1
  17. package/src/sap/ui/unified/ContentSwitcher.js +1 -1
  18. package/src/sap/ui/unified/Currency.js +1 -1
  19. package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
  20. package/src/sap/ui/unified/DateRange.js +1 -1
  21. package/src/sap/ui/unified/DateTypeRange.js +1 -1
  22. package/src/sap/ui/unified/FileUploader.js +16 -12
  23. package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
  24. package/src/sap/ui/unified/FileUploaderRenderer.js +1 -1
  25. package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
  26. package/src/sap/ui/unified/Menu.js +3 -4
  27. package/src/sap/ui/unified/MenuItem.js +1 -1
  28. package/src/sap/ui/unified/MenuItemBase.js +1 -1
  29. package/src/sap/ui/unified/MenuRenderer.js +1 -1
  30. package/src/sap/ui/unified/MenuTextFieldItem.js +1 -1
  31. package/src/sap/ui/unified/Shell.js +1 -1
  32. package/src/sap/ui/unified/ShellHeadItem.js +1 -1
  33. package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
  34. package/src/sap/ui/unified/ShellLayout.js +1 -1
  35. package/src/sap/ui/unified/ShellOverlay.js +1 -1
  36. package/src/sap/ui/unified/SplitContainer.js +1 -1
  37. package/src/sap/ui/unified/calendar/DatesRow.js +1 -1
  38. package/src/sap/ui/unified/calendar/Header.js +1 -1
  39. package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
  40. package/src/sap/ui/unified/calendar/Month.js +1 -1
  41. package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
  42. package/src/sap/ui/unified/calendar/MonthRenderer.js +11 -3
  43. package/src/sap/ui/unified/calendar/MonthsRow.js +3 -1
  44. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
  45. package/src/sap/ui/unified/calendar/TimesRow.js +3 -1
  46. package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
  47. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  48. package/src/sap/ui/unified/library.js +2 -2
  49. package/src/sap/ui/unified/themes/base/Calendar.less +7 -2
  50. package/src/sap/ui/unified/themes/base/CalendarLegend.less +13 -15
  51. package/src/sap/ui/unified/themes/base/Currency.less +1 -3
  52. package/src/sap/ui/unified/themes/sap_hcb/base_Calendar.less +1050 -0
  53. package/src/sap/ui/unified/themes/sap_hcb/base_CalendarDateInterval.less +21 -0
  54. package/src/sap/ui/unified/themes/sap_hcb/base_CalendarLegend.less +237 -0
  55. package/src/sap/ui/unified/themes/sap_hcb/base_CalendarRow.less +554 -0
  56. package/src/sap/ui/unified/themes/sap_hcb/base_ColorPicker.less +794 -0
  57. package/src/sap/ui/unified/themes/sap_hcb/base_ContentSwitcher.less +219 -0
  58. package/src/sap/ui/unified/themes/sap_hcb/base_Currency.less +47 -0
  59. package/src/sap/ui/unified/themes/sap_hcb/base_FileUploader.less +210 -0
  60. package/src/sap/ui/unified/themes/sap_hcb/base_IndexPicker.less +36 -0
  61. package/src/sap/ui/unified/themes/sap_hcb/base_Menu.less +452 -0
  62. package/src/sap/ui/unified/themes/sap_hcb/base_ShellHeader.less +420 -0
  63. package/src/sap/ui/unified/themes/sap_hcb/base_ShellLayout.less +178 -0
  64. package/src/sap/ui/unified/themes/sap_hcb/base_ShellOverlay.less +290 -0
  65. package/src/sap/ui/unified/themes/sap_hcb/base_SplitContainer.less +73 -0
  66. package/src/sap/ui/unified/themes/sap_hcb/library.source.less +26 -1
package/.reuse/dep5 CHANGED
@@ -50,6 +50,11 @@ Copyright: Mario Heiderich
50
50
  License: Apache-2.0
51
51
  Comment: these files belong to: purify.js
52
52
 
53
+ Files: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
54
+ Copyright: jQuery Foundation and other contributors, https://jquery.org/
55
+ License: MIT
56
+ Comment: these files belong to: QUnit Composite 2.0.0
57
+
53
58
 
54
59
  # Library: sap.ui.codeeditor:
55
60
 
@@ -379,13 +384,13 @@ Copyright: 2017 Wei Song and Oliver Nightingale
379
384
  License: MIT
380
385
  Comment: these files belong to: Elasticlunr
381
386
 
382
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*
383
- Copyright: 2008-2017 SpryMedia Ltd
387
+ Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
388
+ Copyright: SpryMedia Ltd
384
389
  License: MIT
385
390
  Comment: these files belong to: DataTables
386
391
 
387
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*
388
- Copyright: 2016 SpryMedia Ltd
392
+ Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
393
+ Copyright: SpryMedia Ltd
389
394
  License: MIT
390
395
  Comment: these files belong to: Buttons extension for DataTables
391
396
 
package/THIRDPARTY.txt CHANGED
@@ -12,6 +12,13 @@ License: Apache-2.0
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
13
13
  Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
14
14
 
15
+ Component: QUnit Composite 2.0.0, version: 2.0.0
16
+ Copyright: jQuery Foundation and other contributors, https://jquery.org/
17
+ License: MIT
18
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
19
+ Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
20
+ src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.js
21
+
15
22
 
16
23
  Library: sap.ui.codeeditor:
17
24
 
@@ -356,17 +363,17 @@ License: MIT
356
363
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
357
364
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
358
365
 
359
- Component: DataTables, version: 1.10.15
360
- Copyright: 2008-2017 SpryMedia Ltd
366
+ Component: DataTables, version: 2.0.1
367
+ Copyright: SpryMedia Ltd
361
368
  License: MIT
362
369
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
363
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*
370
+ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
364
371
 
365
- Component: Buttons extension for DataTables, version: 1.4.0
366
- Copyright: 2016 SpryMedia Ltd
372
+ Component: Buttons extension for DataTables, version: 3.0.0
373
+ Copyright: SpryMedia Ltd
367
374
  License: MIT
368
375
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
369
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*
376
+ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
370
377
 
371
378
 
372
379
  Library: sap.ui.integration:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.unified",
3
- "version": "1.124.2",
3
+ "version": "1.126.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.unified",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,6 +14,6 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.124.2"
17
+ "@openui5/sap.ui.core": "1.126.0"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.124.2</version>
9
+ <version>1.126.0</version>
10
10
 
11
11
  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
12
12
 
@@ -78,7 +78,7 @@ sap.ui.define([
78
78
  * Basic Calendar.
79
79
  * This calendar is used for DatePickers
80
80
  * @extends sap.ui.core.Control
81
- * @version 1.124.2
81
+ * @version 1.126.0
82
82
  *
83
83
  * @constructor
84
84
  * @public
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  *
44
44
  * Applications could inherit from this element to add own fields.
45
45
  * @extends sap.ui.unified.DateTypeRange
46
- * @version 1.124.2
46
+ * @version 1.126.0
47
47
  *
48
48
  * @constructor
49
49
  * @public
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @class
60
60
  * <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
61
61
  * @extends sap.ui.unified.Calendar
62
- * @version 1.124.2
62
+ * @version 1.126.0
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @extends sap.ui.core.Control
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.124.2
60
+ * @version 1.126.0
61
61
  *
62
62
  * @constructor
63
63
  * @public
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
21
21
  * @class
22
22
  * Item to be displayed in a CalendarLegend.
23
23
  * @extends sap.ui.core.Element
24
- * @version 1.124.2
24
+ * @version 1.126.0
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * <b>Note:</b> UI5Date or JavaScript Date objects are used to set and return the months, mark them as selected or as a special type.
66
66
  * But the date part of the Date object is not used. If a Date object is returned the date will be set to the 1st of the corresponding month.
67
67
  * @extends sap.ui.core.Control
68
- * @version 1.124.2
68
+ * @version 1.126.0
69
69
  *
70
70
  * @constructor
71
71
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * Navigation via year picker switches to the corresponding year and the same month as before the navigation.
58
58
  *
59
59
  * @extends sap.ui.unified.CalendarDateInterval
60
- * @version 1.124.2
60
+ * @version 1.126.0
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -88,7 +88,7 @@ sap.ui.define([
88
88
  * @class
89
89
  * A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
90
90
  * @extends sap.ui.core.Control
91
- * @version 1.124.2
91
+ * @version 1.126.0
92
92
  *
93
93
  * @constructor
94
94
  * @public
@@ -1704,9 +1704,9 @@ sap.ui.define([
1704
1704
  if (oApp.getId() !== oAppointment.getId() && oApp.getSelected()) {
1705
1705
  oApp.setProperty("selected", false, true); // do not invalidate CalendarRow
1706
1706
  oApp.$().removeClass("sapUiCalendarAppSel");
1707
- for (var i = 0; i < this.aSelectedAppointments.length; i++) {
1708
- if (this.aSelectedAppointments[i] !== oApp.getId()){
1709
- this.aSelectedAppointments.splice(i);
1707
+ for (var j = 0; j < this.aSelectedAppointments.length; j++) {
1708
+ if (this.aSelectedAppointments[j] !== oApp.getId()){
1709
+ this.aSelectedAppointments.splice(j);
1710
1710
  }
1711
1711
  }
1712
1712
  sAriaLabel = oApp.$().attr("aria-labelledby");
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  * @class
73
73
  * Calendar with granularity of time items displayed in one line.
74
74
  * @extends sap.ui.core.Control
75
- * @version 1.124.2
75
+ * @version 1.126.0
76
76
  *
77
77
  * @constructor
78
78
  * @public
@@ -39,7 +39,7 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
39
39
  * its start date to the first date of the same week as the date the user chose.
40
40
  *
41
41
  * @extends sap.ui.unified.CalendarDateInterval
42
- * @version 1.124.2
42
+ * @version 1.126.0
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -69,7 +69,7 @@ sap.ui.define([
69
69
  * @extends sap.ui.core.Control
70
70
  *
71
71
  * @author SAP SE
72
- * @version 1.124.2
72
+ * @version 1.126.0
73
73
  *
74
74
  * @constructor
75
75
  * @public
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * A thin wrapper over {@link sap.ui.unified.ColorPicker} allowing the latter to be used in a popover.
50
50
  *
51
51
  * @extends sap.ui.core.Control
52
- * @version 1.124.2
52
+ * @version 1.126.0
53
53
  *
54
54
  * @constructor
55
55
  * @public
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.core.Control
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.124.2
34
+ * @version 1.126.0
35
35
  *
36
36
  * @constructor
37
37
  * @public
@@ -58,7 +58,7 @@ sap.ui.define([
58
58
  * @extends sap.ui.core.Control
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.124.2
61
+ * @version 1.126.0
62
62
  *
63
63
  * @constructor
64
64
  * @public
@@ -14,7 +14,7 @@ sap.ui.define(["sap/m/library", "sap/ui/core/Lib"],
14
14
  /**
15
15
  * Currency renderer.
16
16
  *
17
- * @version 1.124.2
17
+ * @version 1.126.0
18
18
  * @namespace
19
19
  */
20
20
  var CurrencyRenderer = {
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/calendar/Cale
20
20
  * @class
21
21
  * Date range for use in DatePicker
22
22
  * @extends sap.ui.core.Element
23
- * @version 1.124.2
23
+ * @version 1.126.0
24
24
  *
25
25
  * @constructor
26
26
  * @public
@@ -25,7 +25,7 @@ sap.ui.define(['./DateRange', './library'],
25
25
  * @class
26
26
  * Date range with calendar day type information. Used to visualize special days in the Calendar.
27
27
  * @extends sap.ui.unified.DateRange
28
- * @version 1.124.2
28
+ * @version 1.126.0
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -73,7 +73,7 @@ sap.ui.define([
73
73
  * @implements sap.ui.core.IFormContent, sap.ui.unified.IProcessableBlobs
74
74
  *
75
75
  * @author SAP SE
76
- * @version 1.124.2
76
+ * @version 1.126.0
77
77
  *
78
78
  * @constructor
79
79
  * @public
@@ -673,10 +673,6 @@ sap.ui.define([
673
673
  return this;
674
674
  };
675
675
 
676
- FileUploader.prototype.getIdForLabel = function () {
677
- return this.oBrowse.getId();
678
- };
679
-
680
676
  /**
681
677
  * Ensures that FileUploader's internal button will have a reference back to the labels, by which
682
678
  * the FileUploader is labelled
@@ -1187,7 +1183,7 @@ sap.ui.define([
1187
1183
  if (window.File) {
1188
1184
  oFiles = this.FUEl.files;
1189
1185
  }
1190
- if (!this.getSameFilenameAllowed() || sValue) {
1186
+ if (!this.getSameFilenameAllowed() || (sValue && oldValue != sValue)) {
1191
1187
  this.fireChange({id:this.getId(), newValue:sValue, files:oFiles});
1192
1188
  }
1193
1189
  }
@@ -2090,16 +2086,24 @@ sap.ui.define([
2090
2086
  * Add default input type=file and label behaviour to file uploader.
2091
2087
  */
2092
2088
  FileUploader.prototype._addLabelFeaturesToBrowse = function () {
2093
- var $browse;
2089
+ let $browse;
2090
+ const fnBrowseClickHandler = (oEvent) => {
2091
+ oEvent.preventDefault();
2092
+ oEvent.stopPropagation();
2093
+ this.FUEl.click(); // The default behaviour on click on label is to open "open file" dialog. The only way to attach click event that is transferred from the label to the button is this way. AttachPress and attachTap don't work in this case.
2094
+ };
2094
2095
 
2095
2096
  if (this.oBrowse && this.oBrowse.$().length) {
2096
2097
  $browse = this.oBrowse.$();
2097
2098
 
2098
- $browse.off("click").on("click", (oEvent) => {
2099
- oEvent.preventDefault();
2100
- oEvent.stopPropagation();
2101
- this.FUEl.click(); // The default behaviour on click on label is to open "open file" dialog. The only way to attach click event that is transferred from the label to the button is this way. AttachPress and attachTap don't work in this case.
2102
- });
2099
+ if (this.oBrowse.getAriaLabelledBy()) {
2100
+ LabelEnablement.getReferencingLabels(this).forEach(function (sLabelId) {
2101
+ const $externalLabel = Element.getElementById(sLabelId).$();
2102
+ $externalLabel.off("click").on("click", fnBrowseClickHandler);
2103
+ }, this);
2104
+ }
2105
+
2106
+ $browse.off("click").on("click", fnBrowseClickHandler);
2103
2107
 
2104
2108
  // The event propagation needs to be stopped so composing controls, which also react on
2105
2109
  // drag and drop events like the sap.m.UploadCollection or sap.m.upload.UploadSet aren't affected.
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.124.2
25
+ * @version 1.126.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  // Provides default renderer for control sap.ui.unified.FileUploader
8
- sap.ui.define(['sap/ui/unified/library', "sap/ui/thirdparty/jquery", "./FileUploaderHelper"],
8
+ sap.ui.define(['sap/ui/unified/library', "sap/ui/thirdparty/jquery", "sap/ui/unified/FileUploaderHelper"],
9
9
  function(library, jQuery, FileUploaderHelper) {
10
10
  "use strict";
11
11
 
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.124.2
23
+ * @version 1.126.0
24
24
  *
25
25
  * @constructor
26
26
  * @since 1.52
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @implements sap.ui.core.IContextMenu
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.124.2
68
+ * @version 1.126.0
69
69
  * @since 1.21.0
70
70
  *
71
71
  * @constructor
@@ -1217,11 +1217,10 @@ sap.ui.define([
1217
1217
  ///////////////////////////////////////// Hidden Functions /////////////////////////////////////////
1218
1218
 
1219
1219
  function checkCozyMode(oRef) {
1220
- if (!oRef) {
1220
+ if (!oRef || !oRef.getDomRef) {
1221
1221
  return false;
1222
1222
  }
1223
- oRef = oRef.$ ? oRef.$() : jQuery(oRef);
1224
- return oRef.closest(".sapUiSizeCompact,.sapUiSizeCondensed,.sapUiSizeCozy").hasClass("sapUiSizeCozy");
1223
+ return !!oRef.getDomRef()?.closest(".sapUiSizeCompact,.sapUiSizeCondensed,.sapUiSizeCozy")?.classList.contains("sapUiSizeCozy");
1225
1224
  }
1226
1225
 
1227
1226
  function setItemToggleState(oMenu, bOpen){
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/IconPool', './MenuItemBase', './library', 'sap/ui/co
23
23
  * @extends sap.ui.unified.MenuItemBase
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.124.2
26
+ * @version 1.126.0
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool', 'sap/
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.124.2
26
+ * @version 1.126.0
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/core/ControlBehavior"],
15
15
  * Menu renderer.
16
16
  * @author SAP - TD Core UI&AM UI Infra
17
17
  *
18
- * @version 1.124.2
18
+ * @version 1.126.0
19
19
  * @namespace
20
20
  */
21
21
  var MenuRenderer = {
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @extends sap.ui.unified.MenuItemBase
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.124.2
55
+ * @version 1.126.0
56
56
  * @since 1.21.0
57
57
  *
58
58
  * @constructor
@@ -25,7 +25,7 @@ sap.ui.define(['./ShellHeader', './ShellLayout', './library', './ShellRenderer']
25
25
  * @extends sap.ui.unified.ShellLayout
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.124.2
28
+ * @version 1.126.0
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Element
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.124.2
31
+ * @version 1.126.0
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Element
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.124.2
30
+ * @version 1.126.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * @extends sap.ui.core.Control
57
57
  *
58
58
  * @author SAP SE
59
- * @version 1.124.2
59
+ * @version 1.126.0
60
60
  *
61
61
  * @constructor
62
62
  * @public
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.core.Control
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.124.2
49
+ * @version 1.126.0
50
50
  *
51
51
  * @constructor
52
52
  * @public
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.124.2
37
+ * @version 1.126.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * If used inside the calendar the properties and aggregation are directly taken from the parent
39
39
  * (To not duplicate and sync DateRanges and so on...)
40
40
  * @extends sap.ui.unified.calendar.Month
41
- * @version 1.124.2
41
+ * @version 1.126.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  *
28
28
  * <b>Note:</b> This is used inside the calendar. Not for standalone usage
29
29
  * @extends sap.ui.core.Control
30
- * @version 1.124.2
30
+ * @version 1.126.0
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * This control serves for picking an item from a grid with items which are relative periods in Plannig Calendar.
33
33
  * This is used inside the sap.m.PlanningCalendar relative views. Not for stand alone usage.
34
34
  * @extends sap.ui.core.Control
35
- * @version 1.124.2
35
+ * @version 1.126.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -83,7 +83,7 @@ sap.ui.define([
83
83
  * If used inside the calendar the properties and aggregation are directly taken from the parent
84
84
  * (To not duplicate and sync DateRanges and so on...)
85
85
  * @extends sap.ui.core.Control
86
- * @version 1.124.2
86
+ * @version 1.126.0
87
87
  *
88
88
  * @constructor
89
89
  * @public
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * renders a MonthPicker with ItemNavigation
56
56
  * This is used inside the calendar. Not for stand alone usage
57
57
  * @extends sap.ui.core.Control
58
- * @version 1.124.2
58
+ * @version 1.126.0
59
59
  *
60
60
  * @constructor
61
61
  * @public
@@ -425,6 +425,9 @@ sap.ui.define([
425
425
  const bNonWorking = sFirstSpecialDateType === CalendarDayType.NonWorking
426
426
  || sSecondaryDateType === CalendarDayType.NonWorking || bNonWorkingWeekend;
427
427
 
428
+ const sNonWorkingDayText = oMonth._oUnifiedRB.getText("LEGEND_NON_WORKING_DAY");
429
+ const aTooltipTexts = [];
430
+
428
431
  // Days before 0001.01.01 should be disabled.
429
432
  if (bBeforeFirstYear) {
430
433
  bEnabled = false;
@@ -445,7 +448,7 @@ sap.ui.define([
445
448
  }
446
449
  if (oDay.isSame(oHelper.oToday)) {
447
450
  oRm.class("sapUiCalItemNow");
448
- mAccProps["label"] = oHelper.sToday + " ";
451
+ aTooltipTexts.push(oMonth._oUnifiedRB.getText("LEGEND_TODAY"));
449
452
  }
450
453
 
451
454
  if (iSelected > 0) {
@@ -480,7 +483,7 @@ sap.ui.define([
480
483
 
481
484
  if (bNonWorking) {
482
485
  oRm.class("sapUiCalItemWeekEnd");
483
- mAccProps["label"] += Library.getResourceBundleFor("sap.ui.unified").getText("LEGEND_NON_WORKING_DAY") + " ";
486
+ aTooltipTexts.push(sNonWorkingDayText);
484
487
  }
485
488
 
486
489
  if (bShouldBeMarkedAsSpecialDate) {
@@ -492,13 +495,18 @@ sap.ui.define([
492
495
  }
493
496
  sAriaType = oDayType.type;
494
497
  if (oDayType.tooltip) {
495
- oRm.attr('title', oDayType.tooltip);
498
+ aTooltipTexts.push(oDayType.tooltip);
496
499
  }
497
500
  }
498
501
  }
499
502
  });
500
503
  }
501
504
 
505
+ if (aTooltipTexts.length) {
506
+ const aTooltips = aTooltipTexts.filter((sText, iPos) => aTooltipTexts.indexOf(sText) === iPos );
507
+ oRm.attr('title', aTooltips.join(" "));
508
+ }
509
+
502
510
  //oMonth.getDate() is a public date object, so it is always considered local timezones.
503
511
  if (((oMonth.getParent() && oMonth.getParent().getMetadata().getName() === "sap.ui.unified.CalendarOneMonthInterval")
504
512
  || (oMonth.getMetadata().getName() === "sap.ui.unified.calendar.OneMonthDatesRow"))
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  * The MontsRow works with UI5Date or JavaScript Date objects, but only the month and the year are used to display and interact.
67
67
  * As representation for a month, the 1st of the month will always be returned in the API.
68
68
  * @extends sap.ui.core.Control
69
- * @version 1.124.2
69
+ * @version 1.126.0
70
70
  *
71
71
  * @constructor
72
72
  * @public
@@ -116,6 +116,7 @@ sap.ui.define([
116
116
  * If set, the calendar type is used for display.
117
117
  * If not set, the calendar type of the global configuration is used.
118
118
  * @private
119
+ * @ui5-restricted sap.ui.unified.MonthsRow
119
120
  * @since 1.108.0
120
121
  */
121
122
  primaryCalendarType : {type : "sap.ui.core.CalendarType", group : "Appearance"},
@@ -124,6 +125,7 @@ sap.ui.define([
124
125
  * If set, the days are also displayed in this calendar type
125
126
  * If not set, the dates are only displayed in the primary calendar type
126
127
  * @private
128
+ * @ui5-restricted sap.ui.unified.MonthsRow
127
129
  * @since 1.109.0
128
130
  */
129
131
  secondaryCalendarType : {type : "sap.ui.core.CalendarType", group : "Appearance"}
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * Other usages are not supported.
35
35
  *
36
36
  * @extends sap.ui.unified.calendar.DatesRow
37
- * @version 1.124.2
37
+ * @version 1.126.0
38
38
  *
39
39
  * @constructor
40
40
  * @private