@openui5/sap.ui.unified 1.121.0 → 1.122.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 (98) hide show
  1. package/THIRDPARTY.txt +1 -1
  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 -3
  6. package/src/sap/ui/unified/CalendarDateInterval.js +1 -1
  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 -3
  12. package/src/sap/ui/unified/CalendarTimeInterval.js +1 -1
  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/ColorPickerDisplayMode.js +3 -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 +1 -1
  23. package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +3 -1
  24. package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
  25. package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
  26. package/src/sap/ui/unified/Menu.js +2 -2
  27. package/src/sap/ui/unified/MenuItem.js +1 -1
  28. package/src/sap/ui/unified/MenuItemBase.js +4 -4
  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 +8 -12
  41. package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
  42. package/src/sap/ui/unified/calendar/MonthRenderer.js +0 -2
  43. package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
  44. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
  45. package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
  46. package/src/sap/ui/unified/calendar/TimesRowRenderer.js +0 -2
  47. package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
  48. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  49. package/src/sap/ui/unified/library.js +26 -5
  50. package/src/sap/ui/unified/messagebundle_ar.properties +6 -0
  51. package/src/sap/ui/unified/messagebundle_bg.properties +6 -0
  52. package/src/sap/ui/unified/messagebundle_ca.properties +6 -0
  53. package/src/sap/ui/unified/messagebundle_cnr.properties +6 -0
  54. package/src/sap/ui/unified/messagebundle_cs.properties +6 -0
  55. package/src/sap/ui/unified/messagebundle_cy.properties +6 -0
  56. package/src/sap/ui/unified/messagebundle_da.properties +6 -0
  57. package/src/sap/ui/unified/messagebundle_de.properties +6 -0
  58. package/src/sap/ui/unified/messagebundle_el.properties +6 -0
  59. package/src/sap/ui/unified/messagebundle_en.properties +6 -0
  60. package/src/sap/ui/unified/messagebundle_en_GB.properties +6 -0
  61. package/src/sap/ui/unified/messagebundle_en_US_saprigi.properties +6 -0
  62. package/src/sap/ui/unified/messagebundle_es.properties +6 -0
  63. package/src/sap/ui/unified/messagebundle_es_MX.properties +6 -0
  64. package/src/sap/ui/unified/messagebundle_et.properties +6 -0
  65. package/src/sap/ui/unified/messagebundle_fi.properties +6 -0
  66. package/src/sap/ui/unified/messagebundle_fr.properties +6 -0
  67. package/src/sap/ui/unified/messagebundle_fr_CA.properties +6 -0
  68. package/src/sap/ui/unified/messagebundle_hi.properties +6 -0
  69. package/src/sap/ui/unified/messagebundle_hr.properties +6 -0
  70. package/src/sap/ui/unified/messagebundle_hu.properties +6 -0
  71. package/src/sap/ui/unified/messagebundle_id.properties +6 -0
  72. package/src/sap/ui/unified/messagebundle_it.properties +6 -0
  73. package/src/sap/ui/unified/messagebundle_iw.properties +6 -0
  74. package/src/sap/ui/unified/messagebundle_ja.properties +6 -0
  75. package/src/sap/ui/unified/messagebundle_kk.properties +6 -0
  76. package/src/sap/ui/unified/messagebundle_ko.properties +6 -0
  77. package/src/sap/ui/unified/messagebundle_lt.properties +6 -0
  78. package/src/sap/ui/unified/messagebundle_lv.properties +6 -0
  79. package/src/sap/ui/unified/messagebundle_mk.properties +7 -1
  80. package/src/sap/ui/unified/messagebundle_ms.properties +6 -0
  81. package/src/sap/ui/unified/messagebundle_nl.properties +6 -0
  82. package/src/sap/ui/unified/messagebundle_no.properties +6 -0
  83. package/src/sap/ui/unified/messagebundle_pl.properties +6 -0
  84. package/src/sap/ui/unified/messagebundle_pt.properties +6 -0
  85. package/src/sap/ui/unified/messagebundle_pt_PT.properties +6 -0
  86. package/src/sap/ui/unified/messagebundle_ro.properties +6 -0
  87. package/src/sap/ui/unified/messagebundle_ru.properties +6 -0
  88. package/src/sap/ui/unified/messagebundle_sh.properties +6 -0
  89. package/src/sap/ui/unified/messagebundle_sk.properties +6 -0
  90. package/src/sap/ui/unified/messagebundle_sl.properties +6 -0
  91. package/src/sap/ui/unified/messagebundle_sr.properties +6 -0
  92. package/src/sap/ui/unified/messagebundle_sv.properties +6 -0
  93. package/src/sap/ui/unified/messagebundle_th.properties +6 -0
  94. package/src/sap/ui/unified/messagebundle_tr.properties +6 -0
  95. package/src/sap/ui/unified/messagebundle_uk.properties +6 -0
  96. package/src/sap/ui/unified/messagebundle_vi.properties +7 -1
  97. package/src/sap/ui/unified/messagebundle_zh_CN.properties +6 -0
  98. package/src/sap/ui/unified/messagebundle_zh_TW.properties +6 -0
package/THIRDPARTY.txt CHANGED
@@ -461,7 +461,7 @@ License: Apache-2.0
461
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
462
462
  Contained in: lib/jsdoc/ui5/plugin.js
463
463
 
464
- Component: SAP Theming Base Content, version: 11.10.0
464
+ Component: SAP Theming Base Content, version: 11.12.0
465
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
466
466
  License: Apache-2.0
467
467
  License Text: https://github.com/SAP/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.121.0",
3
+ "version": "1.122.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.121.0"
17
+ "@openui5/sap.ui.core": "1.122.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.121.0</version>
9
+ <version>1.122.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.121.0
81
+ * @version 1.122.0
82
82
  *
83
83
  * @constructor
84
84
  * @public
@@ -13,7 +13,6 @@ sap.ui.define([
13
13
  'sap/ui/core/format/DateFormat',
14
14
  'sap/ui/core/format/NumberFormat',
15
15
  'sap/ui/core/format/TimezoneUtil',
16
- 'sap/ui/core/Core',
17
16
  './calendar/CalendarUtils',
18
17
  './library',
19
18
  "sap/base/Log",
@@ -27,7 +26,6 @@ sap.ui.define([
27
26
  DateFormat,
28
27
  NumberFormat,
29
28
  TimezoneUtil,
30
- Core,
31
29
  CalendarUtils,
32
30
  library,
33
31
  Log,
@@ -47,7 +45,7 @@ sap.ui.define([
47
45
  *
48
46
  * Applications could inherit from this element to add own fields.
49
47
  * @extends sap.ui.unified.DateTypeRange
50
- * @version 1.121.0
48
+ * @version 1.122.0
51
49
  *
52
50
  * @constructor
53
51
  * @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.121.0
62
+ * @version 1.122.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.121.0
60
+ * @version 1.122.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.121.0
24
+ * @version 1.122.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.121.0
68
+ * @version 1.122.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.121.0
60
+ * @version 1.122.0
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -14,7 +14,6 @@ sap.ui.define([
14
14
  'sap/ui/core/LocaleData',
15
15
  'sap/ui/unified/calendar/CalendarUtils',
16
16
  'sap/ui/core/format/TimezoneUtil',
17
- 'sap/ui/core/Core',
18
17
  'sap/ui/core/date/UniversalDate',
19
18
  './library',
20
19
  'sap/ui/core/InvisibleText',
@@ -37,7 +36,6 @@ sap.ui.define([
37
36
  LocaleData,
38
37
  CalendarUtils,
39
38
  TimezoneUtil,
40
- Core,
41
39
  UniversalDate,
42
40
  library,
43
41
  InvisibleText,
@@ -92,7 +90,7 @@ sap.ui.define([
92
90
  * @class
93
91
  * A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
94
92
  * @extends sap.ui.core.Control
95
- * @version 1.121.0
93
+ * @version 1.122.0
96
94
  *
97
95
  * @constructor
98
96
  * @public
@@ -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.121.0
75
+ * @version 1.122.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.121.0
42
+ * @version 1.122.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.121.0
72
+ * @version 1.122.0
73
73
  *
74
74
  * @constructor
75
75
  * @public
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  // Provides type sap.ui.unified.ColorPickerDisplayMode
8
- sap.ui.define([], function() {
8
+ sap.ui.define(["sap/ui/base/DataType"], function(DataType) {
9
9
  "use strict";
10
10
 
11
11
  /**
@@ -38,6 +38,8 @@ sap.ui.define([], function() {
38
38
 
39
39
  };
40
40
 
41
+ DataType.registerEnum("sap.ui.unified.ColorPickerDisplayMode", ColorPickerDisplayMode);
42
+
41
43
  return ColorPickerDisplayMode;
42
44
 
43
45
  });
@@ -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.121.0
52
+ * @version 1.122.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.121.0
34
+ * @version 1.122.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.121.0
61
+ * @version 1.122.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.121.0
17
+ * @version 1.122.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.121.0
23
+ * @version 1.122.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.121.0
28
+ * @version 1.122.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.121.0
76
+ * @version 1.122.0
77
77
  *
78
78
  * @constructor
79
79
  * @public
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  // Provides type sap.ui.unified.FileUploaderHttpRequestMethod
8
- sap.ui.define([], function() {
8
+ sap.ui.define(["sap/ui/base/DataType"], function(DataType) {
9
9
  "use strict";
10
10
 
11
11
  /**
@@ -32,6 +32,8 @@ sap.ui.define([], function() {
32
32
 
33
33
  };
34
34
 
35
+ DataType.registerEnum("sap.ui.unified.FileUploaderHttpRequestMethod", FileUploaderHttpRequestMethod);
36
+
35
37
  return FileUploaderHttpRequestMethod;
36
38
 
37
39
  });
@@ -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.121.0
25
+ * @version 1.122.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.121.0
23
+ * @version 1.122.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.121.0
68
+ * @version 1.122.0
69
69
  * @since 1.21.0
70
70
  *
71
71
  * @constructor
@@ -82,7 +82,7 @@ sap.ui.define([
82
82
 
83
83
  /**
84
84
  * When a menu is disabled none of its items can be selected by the user.
85
- * The enabled property of an item (@link sap.ui.unified.MenuItemBase#getEnabled) has no effect when the menu of the item is disabled.
85
+ * The enabled property of an item {@link sap.ui.unified.MenuItemBase#getEnabled} has no effect when the menu of the item is disabled.
86
86
  */
87
87
  enabled : {type : "boolean", group : "Behavior", defaultValue : true},
88
88
 
@@ -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.121.0
26
+ * @version 1.122.0
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -5,8 +5,8 @@
5
5
  */
6
6
 
7
7
  // Provides control sap.ui.unified.MenuItemBase.
8
- sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
9
- function(Element, library, IconPool) {
8
+ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool', 'sap/m/Image'],
9
+ function(Element, library, IconPool, Image) {
10
10
  "use strict";
11
11
 
12
12
 
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.121.0
26
+ * @version 1.122.0
27
27
  * @since 1.21.0
28
28
  *
29
29
  * @constructor
@@ -164,7 +164,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
164
164
  return IconPool.createControlByURI({
165
165
  src: this.getIcon(),
166
166
  useIconTooltip: false
167
- });
167
+ }, Image);
168
168
  };
169
169
 
170
170
  MenuItemBase.prototype.onsaphide = MenuItemBase.prototype.onsapshow;
@@ -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.121.0
18
+ * @version 1.122.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.121.0
55
+ * @version 1.122.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.121.0
28
+ * @version 1.122.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.121.0
31
+ * @version 1.122.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.121.0
30
+ * @version 1.122.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.121.0
59
+ * @version 1.122.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.121.0
49
+ * @version 1.122.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.121.0
37
+ * @version 1.122.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.121.0
41
+ * @version 1.122.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.121.0
30
+ * @version 1.122.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.121.0
35
+ * @version 1.122.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.121.0
86
+ * @version 1.122.0
87
87
  *
88
88
  * @constructor
89
89
  * @public
@@ -985,7 +985,7 @@ sap.ui.define([
985
985
 
986
986
  /*
987
987
  * Checks if a given date is enabled
988
- * beside the disabledDates aggregation the min. and max. date of the Calendar are used
988
+ * aside from the disabledDates aggregation the min. and max. dates are also checked
989
989
  * @param {sap.ui.unified.calendar.CalendarDate} oDate the date to check
990
990
  * @returns {boolean} Flag if enabled
991
991
  * @private
@@ -998,12 +998,9 @@ sap.ui.define([
998
998
  var aDisabledDates = this.getDisabledDates();
999
999
  var oTimeStamp = oDate.toUTCJSDate().getTime();
1000
1000
  var sCalendarType = this._getPrimaryCalendarType();
1001
- var oParent = this.getParent();
1002
1001
 
1003
- if (oParent && oParent._oMinDate && oParent._oMaxDate) {
1004
- if (oTimeStamp < oParent._oMinDate.valueOf() || oTimeStamp > oParent._oMaxDate.valueOf()) {
1005
- return false;
1006
- }
1002
+ if ((this._oMinDate && oTimeStamp < this._oMinDate) || (this._oMaxDate && oTimeStamp > this._oMaxDate)) {
1003
+ return false;
1007
1004
  }
1008
1005
 
1009
1006
  for ( var i = 0; i < aDisabledDates.length; i++) {
@@ -1470,7 +1467,7 @@ sap.ui.define([
1470
1467
  * @private
1471
1468
  */
1472
1469
  Month.prototype._getVisibleDays = function (oStartDate, bIncludeBCDates) {
1473
- var iNextMonth,
1470
+ var iDaysInSixWeeks = 42,
1474
1471
  oDay,
1475
1472
  oCalDate,
1476
1473
  iDaysOldMonth,
@@ -1500,8 +1497,7 @@ sap.ui.define([
1500
1497
  }
1501
1498
 
1502
1499
  oDay = new CalendarDate(oFirstDay);
1503
- iNextMonth = (oStartDate.getMonth() + 1) % 12;
1504
- do {
1500
+ for (let i = 0; i < iDaysInSixWeeks; i++) {
1505
1501
  iYear = oDay.getYear();
1506
1502
  oCalDate = new CalendarDate(oDay, this._getPrimaryCalendarType());
1507
1503
  if (bIncludeBCDates && iYear < 1) {
@@ -1512,7 +1508,7 @@ sap.ui.define([
1512
1508
  this._aVisibleDays.push(oCalDate);
1513
1509
  }
1514
1510
  oDay.setDate(oDay.getDate() + 1);
1515
- } while (oDay.getMonth() !== iNextMonth || oDay.getDay() !== iFirstDayOfWeek);
1511
+ }
1516
1512
 
1517
1513
  return this._aVisibleDays;
1518
1514
  };
@@ -1669,7 +1665,7 @@ sap.ui.define([
1669
1665
 
1670
1666
  const bIsRegionUS = oLocaleData.firstDayStartsFirstWeek();
1671
1667
 
1672
- const bStartsInFirstMonth = this._oDate.getMonth() === 0;
1668
+ const bStartsInFirstMonth = this._getDate().getMonth() === 0;
1673
1669
  const bEndsInFirstMonth = oEndDate.getMonth() === 0;
1674
1670
  const bEndsInSecondMonth = oEndDate.getMonth() === 1;
1675
1671
 
@@ -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.121.0
58
+ * @version 1.122.0
59
59
  *
60
60
  * @constructor
61
61
  * @public
@@ -16,7 +16,6 @@ sap.ui.define([
16
16
  "sap/base/Log",
17
17
  'sap/ui/core/InvisibleText',
18
18
  'sap/ui/core/date/UI5Date',
19
- "sap/ui/core/Configuration",
20
19
  "sap/ui/core/date/CalendarUtils",
21
20
  "sap/ui/core/Locale"
22
21
  ],
@@ -32,7 +31,6 @@ sap.ui.define([
32
31
  Log,
33
32
  InvisibleText,
34
33
  UI5Date,
35
- Configuration,
36
34
  CalendarDateUtils,
37
35
  Locale
38
36
  ) {
@@ -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.121.0
69
+ * @version 1.122.0
70
70
  *
71
71
  * @constructor
72
72
  * @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.121.0
37
+ * @version 1.122.0
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  *
68
68
  * The TimesRow works with UI5Date or JavaScript Date objects.
69
69
  * @extends sap.ui.core.Control
70
- * @version 1.121.0
70
+ * @version 1.122.0
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -8,7 +8,6 @@ sap.ui.define([
8
8
  "sap/ui/core/Element",
9
9
  'sap/ui/unified/calendar/CalendarUtils',
10
10
  'sap/ui/core/format/TimezoneUtil',
11
- 'sap/ui/core/Core',
12
11
  'sap/ui/core/date/UniversalDate',
13
12
  'sap/ui/unified/CalendarLegendRenderer',
14
13
  "sap/ui/core/date/UI5Date",
@@ -19,7 +18,6 @@ sap.ui.define([
19
18
  Element,
20
19
  CalendarUtils,
21
20
  TimezoneUtil,
22
- Core,
23
21
  UniversalDate,
24
22
  CalendarLegendRenderer,
25
23
  UI5Date,
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  * As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
63
63
  * (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
64
64
  * @extends sap.ui.core.Control
65
- * @version 1.121.0
65
+ * @version 1.122.0
66
66
  *
67
67
  * @constructor
68
68
  * @public
@@ -45,7 +45,7 @@ sap.ui.define([
45
45
  * @extends sap.ui.unified.calendar.YearPicker
46
46
  *
47
47
  * @author SAP SE
48
- * @version 1.121.0
48
+ * @version 1.122.0
49
49
  *
50
50
  * @constructor
51
51
  * @private