@openui5/sap.ui.unified 1.145.0 → 1.146.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 (103) hide show
  1. package/THIRDPARTY.txt +7 -7
  2. package/package.json +2 -2
  3. package/src/sap/ui/unified/.library +1 -1
  4. package/src/sap/ui/unified/Calendar.js +1 -1
  5. package/src/sap/ui/unified/CalendarAppointment.js +1 -1
  6. package/src/sap/ui/unified/CalendarDateInterval.js +2 -2
  7. package/src/sap/ui/unified/CalendarLegend.js +1 -1
  8. package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
  9. package/src/sap/ui/unified/CalendarMonthInterval.js +1 -1
  10. package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
  11. package/src/sap/ui/unified/CalendarRow.js +1 -1
  12. package/src/sap/ui/unified/CalendarTimeInterval.js +2 -2
  13. package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
  14. package/src/sap/ui/unified/ColorPicker.js +1 -1
  15. package/src/sap/ui/unified/ColorPickerPopover.js +1 -1
  16. package/src/sap/ui/unified/ContentSwitcher.js +1 -1
  17. package/src/sap/ui/unified/Currency.js +1 -1
  18. package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
  19. package/src/sap/ui/unified/DateRange.js +1 -1
  20. package/src/sap/ui/unified/DateTypeRange.js +1 -1
  21. package/src/sap/ui/unified/FileUploader.js +4 -4
  22. package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +14 -0
  23. package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
  24. package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
  25. package/src/sap/ui/unified/Menu.js +1 -1
  26. package/src/sap/ui/unified/MenuItem.js +1 -1
  27. package/src/sap/ui/unified/MenuItemBase.js +1 -1
  28. package/src/sap/ui/unified/MenuItemGroup.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/NonWorkingPeriod.js +1 -1
  32. package/src/sap/ui/unified/RecurringNonWorkingPeriod.js +1 -1
  33. package/src/sap/ui/unified/Shell.js +1 -1
  34. package/src/sap/ui/unified/ShellHeadItem.js +1 -1
  35. package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
  36. package/src/sap/ui/unified/ShellLayout.js +1 -1
  37. package/src/sap/ui/unified/ShellOverlay.js +1 -1
  38. package/src/sap/ui/unified/SplitContainer.js +1 -1
  39. package/src/sap/ui/unified/TimeRange.js +1 -1
  40. package/src/sap/ui/unified/calendar/DatesRow.js +1 -1
  41. package/src/sap/ui/unified/calendar/Header.js +1 -1
  42. package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
  43. package/src/sap/ui/unified/calendar/Month.js +1 -1
  44. package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
  45. package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +1 -1
  46. package/src/sap/ui/unified/calendar/MonthRenderer.js +23 -12
  47. package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
  48. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
  49. package/src/sap/ui/unified/calendar/RecurrenceUtils.js +4 -1
  50. package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
  51. package/src/sap/ui/unified/calendar/WeeksRow.js +1 -1
  52. package/src/sap/ui/unified/calendar/WeeksRowRenderer.js +1 -1
  53. package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
  54. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  55. package/src/sap/ui/unified/library.js +2 -2
  56. package/src/sap/ui/unified/messagebundle_ar.properties +2 -0
  57. package/src/sap/ui/unified/messagebundle_bg.properties +2 -0
  58. package/src/sap/ui/unified/messagebundle_ca.properties +2 -2
  59. package/src/sap/ui/unified/messagebundle_cnr.properties +2 -0
  60. package/src/sap/ui/unified/messagebundle_cs.properties +2 -2
  61. package/src/sap/ui/unified/messagebundle_cy.properties +2 -0
  62. package/src/sap/ui/unified/messagebundle_da.properties +2 -2
  63. package/src/sap/ui/unified/messagebundle_de.properties +2 -0
  64. package/src/sap/ui/unified/messagebundle_el.properties +2 -0
  65. package/src/sap/ui/unified/messagebundle_en.properties +2 -0
  66. package/src/sap/ui/unified/messagebundle_en_GB.properties +2 -0
  67. package/src/sap/ui/unified/messagebundle_es.properties +2 -0
  68. package/src/sap/ui/unified/messagebundle_es_MX.properties +3 -2
  69. package/src/sap/ui/unified/messagebundle_et.properties +2 -0
  70. package/src/sap/ui/unified/messagebundle_fi.properties +2 -2
  71. package/src/sap/ui/unified/messagebundle_fr.properties +2 -0
  72. package/src/sap/ui/unified/messagebundle_fr_CA.properties +2 -0
  73. package/src/sap/ui/unified/messagebundle_hi.properties +2 -0
  74. package/src/sap/ui/unified/messagebundle_hr.properties +2 -2
  75. package/src/sap/ui/unified/messagebundle_hu.properties +2 -0
  76. package/src/sap/ui/unified/messagebundle_id.properties +2 -0
  77. package/src/sap/ui/unified/messagebundle_it.properties +2 -0
  78. package/src/sap/ui/unified/messagebundle_iw.properties +2 -2
  79. package/src/sap/ui/unified/messagebundle_ja.properties +2 -0
  80. package/src/sap/ui/unified/messagebundle_kk.properties +2 -0
  81. package/src/sap/ui/unified/messagebundle_ko.properties +2 -0
  82. package/src/sap/ui/unified/messagebundle_lt.properties +2 -0
  83. package/src/sap/ui/unified/messagebundle_lv.properties +2 -0
  84. package/src/sap/ui/unified/messagebundle_mk.properties +2 -0
  85. package/src/sap/ui/unified/messagebundle_ms.properties +2 -0
  86. package/src/sap/ui/unified/messagebundle_nl.properties +2 -2
  87. package/src/sap/ui/unified/messagebundle_no.properties +2 -0
  88. package/src/sap/ui/unified/messagebundle_pl.properties +2 -0
  89. package/src/sap/ui/unified/messagebundle_pt.properties +2 -0
  90. package/src/sap/ui/unified/messagebundle_pt_PT.properties +2 -0
  91. package/src/sap/ui/unified/messagebundle_ro.properties +2 -0
  92. package/src/sap/ui/unified/messagebundle_ru.properties +2 -2
  93. package/src/sap/ui/unified/messagebundle_sh.properties +2 -0
  94. package/src/sap/ui/unified/messagebundle_sk.properties +2 -2
  95. package/src/sap/ui/unified/messagebundle_sl.properties +2 -0
  96. package/src/sap/ui/unified/messagebundle_sr.properties +2 -0
  97. package/src/sap/ui/unified/messagebundle_sv.properties +2 -2
  98. package/src/sap/ui/unified/messagebundle_th.properties +2 -0
  99. package/src/sap/ui/unified/messagebundle_tr.properties +2 -2
  100. package/src/sap/ui/unified/messagebundle_uk.properties +5 -3
  101. package/src/sap/ui/unified/messagebundle_vi.properties +2 -2
  102. package/src/sap/ui/unified/messagebundle_zh_CN.properties +2 -0
  103. package/src/sap/ui/unified/messagebundle_zh_TW.properties +2 -0
package/THIRDPARTY.txt CHANGED
@@ -6,31 +6,31 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.f:
8
8
 
9
- Component: UI5 Web Components, version: 2.15.0
9
+ Component: UI5 Web Components, version: 2.19.2
10
10
  Copyright: SAP
11
11
  License: Apache-2.0
12
12
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
13
13
  Contained in: src/sap.f/src/sap/f/thirdparty/**
14
14
 
15
- Component: UI5 Web Components Fiori, version: 2.15.0
15
+ Component: UI5 Web Components Fiori, version: 2.19.2
16
16
  Copyright: SAP
17
17
  License: Apache-2.0
18
18
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
19
19
  Contained in: src/sap.f/src/sap/f/thirdparty/**
20
20
 
21
- Component: UI5 Web Components Icons, version: 2.15.0
21
+ Component: UI5 Web Components Icons, version: 2.19.2
22
22
  Copyright: SAP
23
23
  License: Apache-2.0
24
24
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
25
25
  Contained in: src/sap.f/src/sap/f/thirdparty/**
26
26
 
27
- Component: UI5 Web Components Icons Business Suite, version: 2.15.0
27
+ Component: UI5 Web Components Icons Business Suite, version: 2.19.2
28
28
  Copyright: SAP
29
29
  License: Apache-2.0
30
30
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
31
31
  Contained in: src/sap.f/src/sap/f/thirdparty/**
32
32
 
33
- Component: UI5 Web Components Icons TNT, version: 2.15.0
33
+ Component: UI5 Web Components Icons TNT, version: 2.19.2
34
34
  Copyright: SAP
35
35
  License: Apache-2.0
36
36
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -309,7 +309,7 @@ License: MIT
309
309
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
310
310
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/bignumber.js
311
311
 
312
- Component: lodash, version: 4.17.21
312
+ Component: lodash, version: 4.17.23
313
313
  Copyright: OpenJS Foundation and other contributors
314
314
  License: MIT
315
315
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
@@ -498,7 +498,7 @@ License: Apache-2.0
498
498
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
499
499
  Contained in: lib/jsdoc/ui5/plugin.js
500
500
 
501
- Component: SAP Theming Base Content, version: 11.32.2-20250827135846+79bb30d311678435d61b21db26ecbe07d6b05079
501
+ Component: SAP Theming Base Content, version: 11.34.0
502
502
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
503
503
  License: Apache-2.0
504
504
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.unified",
3
- "version": "1.145.0",
3
+ "version": "1.146.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/UI5/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.145.0"
17
+ "@openui5/sap.ui.core": "1.146.0"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2026 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.145.0</version>
9
+ <version>1.146.0</version>
10
10
 
11
11
  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
12
12
 
@@ -80,7 +80,7 @@ sap.ui.define([
80
80
  * Basic Calendar.
81
81
  * This calendar is used for DatePickers
82
82
  * @extends sap.ui.core.Control
83
- * @version 1.145.0
83
+ * @version 1.146.0
84
84
  *
85
85
  * @constructor
86
86
  * @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.145.0
46
+ * @version 1.146.0
47
47
  *
48
48
  * @constructor
49
49
  * @public
@@ -64,7 +64,7 @@ sap.ui.define([
64
64
  * @class
65
65
  * <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
66
66
  * @extends sap.ui.unified.Calendar
67
- * @version 1.145.0
67
+ * @version 1.146.0
68
68
  *
69
69
  * @constructor
70
70
  * @public
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  CalendarDateInterval.prototype.init = function(){
119
119
 
120
120
  Calendar.prototype.init.apply(this, arguments);
121
- this.setAggregation("_weeksRow", this._createWeekRow(`${this.getId()}-weeks`));
121
+ this.setAggregation("_weeksRow", this._createWeekRow(`${this.getId()}-WeekNumbersRow`), true);
122
122
 
123
123
  this._iDaysMonthHead = 35; // if more than this number of days, month names are displayed on top of days
124
124
 
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @extends sap.ui.core.Control
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.145.0
60
+ * @version 1.146.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.145.0
24
+ * @version 1.146.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.145.0
68
+ * @version 1.146.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.145.0
60
+ * @version 1.146.0
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -84,7 +84,7 @@ sap.ui.define([
84
84
  * @class
85
85
  * A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
86
86
  * @extends sap.ui.core.Control
87
- * @version 1.145.0
87
+ * @version 1.146.0
88
88
  *
89
89
  * @constructor
90
90
  * @public
@@ -78,7 +78,7 @@ sap.ui.define([
78
78
  * @class
79
79
  * Calendar with granularity of time items displayed in one line.
80
80
  * @extends sap.ui.core.Control
81
- * @version 1.145.0
81
+ * @version 1.146.0
82
82
  *
83
83
  * @constructor
84
84
  * @public
@@ -305,7 +305,7 @@ sap.ui.define([
305
305
  };
306
306
 
307
307
  CalendarTimeInterval.prototype._initializeWeeksRow = function() {
308
- const oWeeksRow = new WeeksRow(this.getId() + "-WeeksRow", {
308
+ const oWeeksRow = new WeeksRow(this.getId() + "-WeekNumbersRow", {
309
309
  visible: false
310
310
  });
311
311
  this.setAggregation("weeksRow", oWeeksRow);
@@ -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.145.0
42
+ * @version 1.146.0
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  * @extends sap.ui.core.Control
73
73
  *
74
74
  * @author SAP SE
75
- * @version 1.145.0
75
+ * @version 1.146.0
76
76
  *
77
77
  * @constructor
78
78
  * @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.145.0
52
+ * @version 1.146.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.145.0
34
+ * @version 1.146.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.145.0
61
+ * @version 1.146.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.145.0
17
+ * @version 1.146.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.145.0
23
+ * @version 1.146.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.145.0
28
+ * @version 1.146.0
29
29
  *
30
30
  * @constructor
31
31
  * @public
@@ -79,7 +79,7 @@ sap.ui.define([
79
79
  * @implements sap.ui.core.IFormContent, sap.ui.unified.IProcessableBlobs
80
80
  *
81
81
  * @author SAP SE
82
- * @version 1.145.0
82
+ * @version 1.146.0
83
83
  *
84
84
  * @constructor
85
85
  * @public
@@ -194,7 +194,7 @@ sap.ui.define([
194
194
  * @since 1.81.0
195
195
  *
196
196
  */
197
- httpRequestMethod : {type: "sap.ui.unified.FileUploaderHttpRequestMethod", group : "Behavior", defaultValue : HttpRequestMethod.Post},
197
+ httpRequestMethod : {type: "sap.ui.unified.FileUploaderHttpRequestMethod", group : "Behavior", defaultValue : HttpRequestMethod.POST},
198
198
 
199
199
  /**
200
200
  * Placeholder for the text field.
@@ -286,20 +286,20 @@ sap.ui.define([
286
286
 
287
287
  /**
288
288
  * Allows users to upload all files from a given directory and its corresponding subdirectories.
289
- * @since 1.105.0
290
289
  *
291
290
  * <b>Note:</b> This feature is supported on all WebKit-based browsers as well as Microsoft Edge and Firefox after version 50.
292
291
  * <b>Note:</b> Multiple directory selection is not supported.
292
+ * @since 1.105.0
293
293
  */
294
294
  directory : {type : "boolean", group : "Behavior", defaultValue : false},
295
295
 
296
296
  /**
297
297
  * Indicates whether the file uploader is required.
298
- * @since 1.144
299
298
  *
300
299
  * <b>Note:</b> The control can be marked as required either by setting this property to <code>true</code>
301
300
  * or by using the legacy approach of setting the <code>required</code> property to <code>true</code>
302
301
  * on a <code>sap.m.Label</code> that has its <code>labelFor</code> property pointing to this control.
302
+ * @since 1.144
303
303
  */
304
304
  required : {type : "boolean", group : "Behavior", defaultValue : false}
305
305
  },
@@ -22,11 +22,25 @@ sap.ui.define(["sap/ui/base/DataType"], function(DataType) {
22
22
  * HTTP request POST method.
23
23
  * @public
24
24
  */
25
+ POST : "POST",
26
+
27
+ /**
28
+ * HTTP request PUT method.
29
+ * @public
30
+ */
31
+ PUT : "PUT",
32
+
33
+ /**
34
+ * HTTP request POST method.
35
+ * @public
36
+ * @deprecated Since 1.145.0, use {@link sap.ui.unified.FileUploaderHttpRequestMethod.POST} instead
37
+ */
25
38
  Post : "POST",
26
39
 
27
40
  /**
28
41
  * HTTP request PUT method.
29
42
  * @public
43
+ * @deprecated Since 1.145.0, use {@link sap.ui.unified.FileUploaderHttpRequestMethod.PUT} instead
30
44
  */
31
45
  Put : "PUT"
32
46
 
@@ -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.145.0
25
+ * @version 1.146.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -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.145.0
23
+ * @version 1.146.0
24
24
  *
25
25
  * @constructor
26
26
  * @since 1.52
@@ -70,7 +70,7 @@ sap.ui.define([
70
70
  * @implements sap.ui.core.IContextMenu
71
71
  *
72
72
  * @author SAP SE
73
- * @version 1.145.0
73
+ * @version 1.146.0
74
74
  * @since 1.21.0
75
75
  *
76
76
  * @constructor
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @implements sap.ui.unified.IMenuItem
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.145.0
42
+ * @version 1.146.0
43
43
  * @since 1.21.0
44
44
  *
45
45
  * @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.145.0
26
+ * @version 1.146.0
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @implements sap.ui.unified.IMenuItem
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.145.0
33
+ * @version 1.146.0
34
34
  * @since 1.127.0
35
35
  *
36
36
  * @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.145.0
18
+ * @version 1.146.0
19
19
  * @namespace
20
20
  */
21
21
  var MenuRenderer = {
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * @implements sap.ui.unified.IMenuItem
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.145.0
56
+ * @version 1.146.0
57
57
  * @since 1.21.0
58
58
  *
59
59
  * @constructor
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * NonWorkingPeriod
26
26
  * @extends sap.ui.core.Element
27
- * @version 1.145.0
27
+ * @version 1.146.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  *
25
25
  * Applications can inherit from this element to add own fields.
26
26
  * @extends sap.ui.unified.NonWorkingPeriod
27
- * @version 1.145.0
27
+ * @version 1.146.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -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.145.0
28
+ * @version 1.146.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.145.0
31
+ * @version 1.146.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.145.0
30
+ * @version 1.146.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.145.0
59
+ * @version 1.146.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.145.0
49
+ * @version 1.146.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.145.0
37
+ * @version 1.146.0
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @class
24
24
  * Time range for use in <code>NonWorkingPeriod</code>
25
25
  * @extends sap.ui.core.Element
26
- * @version 1.145.0
26
+ * @version 1.146.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * If used inside the calendar the properties and aggregation are directly taken from the parent
40
40
  * (To not duplicate and sync DateRanges and so on...)
41
41
  * @extends sap.ui.unified.calendar.Month
42
- * @version 1.145.0
42
+ * @version 1.146.0
43
43
  *
44
44
  * @constructor
45
45
  * @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.145.0
30
+ * @version 1.146.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.145.0
35
+ * @version 1.146.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -78,7 +78,7 @@ sap.ui.define([
78
78
  * If used inside the calendar the properties and aggregation are directly taken from the parent
79
79
  * (To not duplicate and sync DateRanges and so on...)
80
80
  * @extends sap.ui.core.Control
81
- * @version 1.145.0
81
+ * @version 1.146.0
82
82
  *
83
83
  * @constructor
84
84
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * renders a MonthPicker with ItemNavigation
58
58
  * This is used inside the calendar. Not for stand alone usage
59
59
  * @extends sap.ui.core.Control
60
- * @version 1.145.0
60
+ * @version 1.146.0
61
61
  *
62
62
  * @constructor
63
63
  * @public
@@ -169,7 +169,7 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/unified/calendar/CalendarDate", 'sap/u
169
169
 
170
170
  oRm.close("div");
171
171
 
172
- if (iColumns > 0 && ((i + 1) % iColumns === 0)) {
172
+ if (iColumns > 0 && (((i + 1) % iColumns === 0) || (i + 1) === iMonths)) {
173
173
  // end of row
174
174
  oRm.close("div");
175
175
  }
@@ -295,7 +295,6 @@ sap.ui.define([
295
295
  oRm.openEnd();
296
296
 
297
297
  if (bWeekNum) {
298
- this.renderWeekNumbers = true;
299
298
  this._renderWeekNumber(oRm, aDays[i], oHelper, oMonth);
300
299
  }
301
300
  }
@@ -507,19 +506,31 @@ sap.ui.define([
507
506
  mAccProps["describedby"] = `${mAccProps["describedby"]} ${sEndDateText}`.trim();
508
507
  }
509
508
 
510
- if (this.renderWeekNumbers && oMonth.getShowWeekNumbers() && oMonth._oDate) {
511
- // This path is for controls that render week numbers inline (e.g., Month, OneMonthDatesRow)
512
- // TODO: We could replace the following lines with a sap.ui.unified.calendar.CalendarUtils.calculateWeekNumber usage
513
- // once the same method starts to respect the sap/base/i18n/date/CalendarWeekNumbering types.
514
- const oWeekConfig = CalendarDateUtils.getWeekConfigurationValues(oMonth.getCalendarWeekNumbering(), new Locale(oMonth._getLocale()));
515
- oWeekConfig.firstDayOfWeek = oMonth._getFirstDayOfWeek();
516
- const oFirstDateOfWeek = CalendarDate.fromLocalJSDate(CalendarUtils.getFirstDateOfWeek(oDay.toLocalJSDate(), oWeekConfig), oMonth.getPrimaryCalendarType());
517
- mAccProps["describedby"] = mAccProps["describedby"] + " " + oMonth.getId() + "-week-" + oMonth._calculateWeekNumber(oFirstDateOfWeek) + "-text";
518
- } else if (oMonth.getShowWeekNumbers() && oMonth._oDate) {
509
+ const oParent = oMonth.getParent();
510
+ const bShowWeekNumbers = oMonth.getShowWeekNumbers();
511
+ const bHasDate = !!oMonth._oDate;
512
+ const bSeparateWeekNumbers = bShowWeekNumbers && bHasDate && oParent &&
513
+ (oParent.isA("sap.m.PlanningCalendar") ||
514
+ oParent.isA("sap.ui.unified.CalendarDateInterval") ||
515
+ oParent.isA("sap.ui.unified.CalendarTimeInterval") ||
516
+ oParent.isA("sap.m.Toolbar"));
517
+
518
+ if (bSeparateWeekNumbers) {
519
519
  // This path is for controls that render week numbers separately (e.g., CalendarDateInterval with WeeksRow)
520
- const sParentId = oMonth.getParent() ? oMonth.getParent().getId() : oMonth.getId();
520
+ let sParentId = oParent.getId();
521
+
522
+ // For Toolbar, we need to find the PlanningCalendar (Toolbar -> Table -> PlanningCalendar hierarchy)
523
+ const bIsToolbar = oParent.isA("sap.m.Toolbar");
524
+ const oGrandParent = bIsToolbar ? oParent.getParent() : null;
525
+ const oGreatGrandParent = oGrandParent ? oGrandParent.getParent() : null;
526
+ const bHasPlanningCalendar = oGreatGrandParent && oGreatGrandParent.isA("sap.m.PlanningCalendar");
527
+
528
+ if (bIsToolbar) {
529
+ sParentId = bHasPlanningCalendar ? oGreatGrandParent.getId() : oMonth.getId();
530
+ }
531
+
521
532
  const iWeekNumber = oMonth._calculateWeekNumber(oDay);
522
- mAccProps["describedby"] = mAccProps["describedby"] + " " + sParentId + "-WeeksRow" + "-week-" + iWeekNumber + "-text";
533
+ mAccProps["describedby"] = mAccProps["describedby"] + " " + sParentId + "-WeekNumbersRow-week-" + iWeekNumber + "-text";
523
534
  }
524
535
 
525
536
  if (bNonWorking) {
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  * The MontsRow works with UI5Date or JavaScript Date objects, but only the month and the year are used to display and interact.
69
69
  * As representation for a month, the 1st of the month will always be returned in the API.
70
70
  * @extends sap.ui.core.Control
71
- * @version 1.145.0
71
+ * @version 1.146.0
72
72
  *
73
73
  * @constructor
74
74
  * @public
@@ -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.145.0
37
+ * @version 1.146.0
38
38
  *
39
39
  * @constructor
40
40
  * @private