@openui5/sap.ui.unified 1.128.0 → 1.129.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 (54) 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 +15 -9
  5. package/src/sap/ui/unified/CalendarAppointment.js +1 -1
  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 -1
  12. package/src/sap/ui/unified/CalendarRowRenderer.js +4 -3
  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/ColorPickerRenderer.js +17 -19
  18. package/src/sap/ui/unified/ContentSwitcher.js +1 -1
  19. package/src/sap/ui/unified/Currency.js +1 -1
  20. package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
  21. package/src/sap/ui/unified/DateRange.js +1 -1
  22. package/src/sap/ui/unified/DateTypeRange.js +1 -1
  23. package/src/sap/ui/unified/FileUploader.js +1 -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 +11 -2
  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/MenuItemGroup.js +1 -1
  30. package/src/sap/ui/unified/MenuRenderer.js +1 -1
  31. package/src/sap/ui/unified/MenuTextFieldItem.js +1 -1
  32. package/src/sap/ui/unified/NonWorkingPeriod.js +31 -1
  33. package/src/sap/ui/unified/RecurringNonWorkingPeriod.js +1 -15
  34. package/src/sap/ui/unified/Shell.js +1 -1
  35. package/src/sap/ui/unified/ShellHeadItem.js +1 -1
  36. package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
  37. package/src/sap/ui/unified/ShellLayout.js +1 -1
  38. package/src/sap/ui/unified/ShellOverlay.js +1 -1
  39. package/src/sap/ui/unified/SplitContainer.js +1 -1
  40. package/src/sap/ui/unified/TimeRange.js +1 -1
  41. package/src/sap/ui/unified/calendar/DatesRow.js +1 -1
  42. package/src/sap/ui/unified/calendar/Header.js +1 -1
  43. package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
  44. package/src/sap/ui/unified/calendar/Month.js +1 -1
  45. package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
  46. package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
  47. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
  48. package/src/sap/ui/unified/calendar/RecurrenceUtils.js +4 -4
  49. package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
  50. package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
  51. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  52. package/src/sap/ui/unified/library.js +2 -2
  53. package/src/sap/ui/unified/themes/base/Calendar.less +1 -0
  54. package/src/sap/ui/unified/themes/base/ColorPicker.less +4 -5
package/THIRDPARTY.txt CHANGED
@@ -468,7 +468,7 @@ License: Apache-2.0
468
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
469
  Contained in: lib/jsdoc/ui5/plugin.js
470
470
 
471
- Component: SAP Theming Base Content, version: 11.16.1
471
+ Component: SAP Theming Base Content, version: 11.18.0
472
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
473
473
  License: Apache-2.0
474
474
  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.128.0",
3
+ "version": "1.129.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.128.0"
17
+ "@openui5/sap.ui.core": "1.129.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.128.0</version>
9
+ <version>1.129.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.128.0
81
+ * @version 1.129.0
82
82
  *
83
83
  * @constructor
84
84
  * @public
@@ -719,7 +719,7 @@ sap.ui.define([
719
719
  this._sLocale = sLocale;
720
720
  this._oLocaleData = undefined;
721
721
  this.invalidate();
722
- this._toggleTwoMonthsInTwoColumnsCSS();
722
+ this._toggleTwoMonthsInColumnsCSS();
723
723
  }
724
724
 
725
725
  return this;
@@ -860,7 +860,7 @@ sap.ui.define([
860
860
  oMonth.setSecondaryCalendarType(this._getSecondaryCalendarType());
861
861
  this.addAggregation("month", oMonth);
862
862
  }
863
- this._toggleTwoMonthsInTwoColumnsCSS();
863
+ this._toggleTwoMonthsInColumnsCSS();
864
864
  } else if (aMonths.length > iMonths){
865
865
  for (i = aMonths.length; i > iMonths; i--) {
866
866
  oMonth = this.removeAggregation("month", i - 1);
@@ -870,7 +870,7 @@ sap.ui.define([
870
870
  // back to standard case -> initialize month width
871
871
  this._bInitMonth = true;
872
872
  }
873
- this._toggleTwoMonthsInTwoColumnsCSS();
873
+ this._toggleTwoMonthsInColumnsCSS();
874
874
  }
875
875
 
876
876
  if (iMonths > 1 && aMonths[0].getDate()) {
@@ -1331,7 +1331,7 @@ sap.ui.define([
1331
1331
  }
1332
1332
  this._setHeaderText(oCalDate);
1333
1333
  this._setPrimaryHeaderMonthButtonText();
1334
- this._toggleTwoMonthsInTwoColumnsCSS();
1334
+ this._toggleTwoMonthsInColumnsCSS();
1335
1335
  };
1336
1336
 
1337
1337
  Calendar.prototype._updateLegendParent = function(){
@@ -1836,7 +1836,7 @@ sap.ui.define([
1836
1836
  // change month and year
1837
1837
  this._updateHeader(oFirstDate);
1838
1838
  this._setPrimaryHeaderMonthButtonText();
1839
- this._toggleTwoMonthsInTwoColumnsCSS();
1839
+ this._toggleTwoMonthsInColumnsCSS();
1840
1840
 
1841
1841
  if (bFireStartDateChange) {
1842
1842
  this.fireStartDateChange();
@@ -2432,7 +2432,7 @@ sap.ui.define([
2432
2432
  * Toggle On or Off CSS class for indicating if calendar is in two columns with two calendars mode
2433
2433
  * @private
2434
2434
  */
2435
- Calendar.prototype._toggleTwoMonthsInTwoColumnsCSS = function () {
2435
+ Calendar.prototype._toggleTwoMonthsInColumnsCSS = function () {
2436
2436
  if (this._isTwoMonthsInTwoColumns()) {
2437
2437
  if (new Locale(Localization.getLanguageTag()).getLanguage().toLowerCase() === "ja" ||
2438
2438
  new Locale(Localization.getLanguageTag()).getLanguage().toLowerCase() === "zh") {
@@ -2446,6 +2446,12 @@ sap.ui.define([
2446
2446
  this.removeStyleClass("sapUiCalTwoMonthsTwoColumnsJaZh");
2447
2447
  this.removeStyleClass("sapUiCalTwoMonthsTwoColumns");
2448
2448
  }
2449
+
2450
+ if (this._isTwoMonthsInOneColumn()) {
2451
+ this.addStyleClass("sapUiCalTwoMonthsInOneColumn");
2452
+ } else {
2453
+ this.removeStyleClass("sapUiCalTwoMonthsInOneColumn");
2454
+ }
2449
2455
  };
2450
2456
 
2451
2457
  /**
@@ -2694,7 +2700,7 @@ sap.ui.define([
2694
2700
  }
2695
2701
 
2696
2702
  this._setPrimaryHeaderMonthButtonText();
2697
- this._toggleTwoMonthsInTwoColumnsCSS();
2703
+ this._toggleTwoMonthsInColumnsCSS();
2698
2704
  }
2699
2705
 
2700
2706
  /**
@@ -2748,7 +2754,7 @@ sap.ui.define([
2748
2754
 
2749
2755
  this._setHeaderText(oDate);
2750
2756
  this._setPrimaryHeaderMonthButtonText();
2751
- this._toggleTwoMonthsInTwoColumnsCSS();
2757
+ this._toggleTwoMonthsInColumnsCSS();
2752
2758
  }
2753
2759
  }
2754
2760
 
@@ -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.128.0
46
+ * @version 1.129.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.128.0
62
+ * @version 1.129.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.128.0
60
+ * @version 1.129.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.128.0
24
+ * @version 1.129.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.128.0
68
+ * @version 1.129.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.128.0
60
+ * @version 1.129.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.128.0
87
+ * @version 1.129.0
88
88
  *
89
89
  * @constructor
90
90
  * @public
@@ -267,10 +267,8 @@ sap.ui.define([
267
267
 
268
268
  CalendarRowRenderer.renderInterval = function(oRm, oRow, iInterval, iWidth, aIntervalHeaders, aNonWorkingItems, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType){
269
269
  const oStartDateInterval = oRow.getStartDate();
270
- const oEndDate = UI5Date.getInstance(oRow.getStartDate());
271
- oEndDate.setDate(oEndDate.getDate() + 1);
272
270
  const oCellStartDate = UI5Date.getInstance(oStartDateInterval);
273
- oCellStartDate.setHours(iInterval + iStartOffset);
271
+ oCellStartDate.setHours(iInterval + iStartOffset, 0, 0, 0);
274
272
 
275
273
  var sId = oRow.getId() + "-AppsInt" + iInterval;
276
274
  var i;
@@ -281,6 +279,9 @@ sap.ui.define([
281
279
  const aFilteredNonWorkingRange = oRow.getIntervalType() !== CalendarIntervalType.Hour ?
282
280
  [] :
283
281
  oRow.getNonWorkingPeriods().filter((oPeriod) => {
282
+ if (!oPeriod.isRecurring()) {
283
+ return oPeriod.hasNonWorkingAtDate(oStartDateInterval);
284
+ }
284
285
  const hasOccurrenceOnDate = RecurrenceUtils.hasOccurrenceOnDate.bind(oPeriod);
285
286
  return hasOccurrenceOnDate(oStartDateInterval);
286
287
  });
@@ -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.128.0
75
+ * @version 1.129.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.128.0
42
+ * @version 1.129.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.128.0
72
+ * @version 1.129.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.128.0
52
+ * @version 1.129.0
53
53
  *
54
54
  * @constructor
55
55
  * @public
@@ -175,7 +175,23 @@ sap.ui.define(['./ColorPickerDisplayMode', "sap/ui/Device", "sap/ui/core/Lib"],
175
175
  oRm.openEnd();
176
176
  oRm.text("%");
177
177
  oRm.close("div");
178
- oControl.getMode() === "HSL" ? this.renderLFirst(oRm, oControl) : this.renderVFirst(oRm, oControl);
178
+
179
+ const bHSL = oControl.getMode() === "HSL";
180
+ if (bHSL) {
181
+ oRm.renderControl(oControl.getAggregation("_oLitField"));
182
+ } else {
183
+ oRm.renderControl(oControl.getAggregation("_oValField"));
184
+ }
185
+ oRm.openStart("div");
186
+ oRm.class("sapUiCPPercentSymbol");
187
+ if (!bHSL) {
188
+ oRm.style("visibility", "hidden");
189
+ }
190
+ oRm.openEnd();
191
+ oRm.text("%");
192
+ oRm.close("div");
193
+
194
+ oRm.renderControl(oControl.getAggregation("_oAlphaField2"));
179
195
  oRm.close("div");
180
196
  this.renderHSLVLabel(oRm, oControl);
181
197
  };
@@ -263,24 +279,6 @@ sap.ui.define(['./ColorPickerDisplayMode', "sap/ui/Device", "sap/ui/core/Lib"],
263
279
  oRm.close("div");
264
280
  };
265
281
 
266
- //Renders Lit first and sets visibility hidden to Val because of flex rendering reasons.
267
- ColorPickerRenderer.renderLFirst = function(oRm, oControl) {
268
- oRm.renderControl(oControl.getAggregation("_oLitField"));
269
- oRm.openStart("div");
270
- oRm.class("sapUiCPPercentSymbol");
271
- oRm.openEnd();
272
- oRm.text("%");
273
- oRm.close("div");
274
- oRm.renderControl(oControl.getAggregation("_oValField"));
275
- };
276
-
277
- //Renders Val first and sets visibility hidden to Lit because of flex rendering reasons.
278
- ColorPickerRenderer.renderVFirst = function(oRm, oControl) {
279
- oRm.renderControl(oControl.getAggregation("_oValField"));
280
- this.renderEmptyDiv(oRm);
281
- oRm.renderControl(oControl.getAggregation("_oLitField"));
282
- };
283
-
284
282
  //Renders empty div because of display flex rendering reasons.
285
283
  ColorPickerRenderer.renderEmptyDiv = function(oRm) {
286
284
  oRm.openStart("div");
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.core.Control
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.128.0
34
+ * @version 1.129.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.128.0
61
+ * @version 1.129.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.128.0
17
+ * @version 1.129.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.128.0
23
+ * @version 1.129.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.128.0
28
+ * @version 1.129.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.128.0
76
+ * @version 1.129.0
77
77
  *
78
78
  * @constructor
79
79
  * @public
@@ -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.128.0
25
+ * @version 1.129.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.128.0
23
+ * @version 1.129.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.128.0
73
+ * @version 1.129.0
74
74
  * @since 1.21.0
75
75
  *
76
76
  * @constructor
@@ -147,7 +147,13 @@ sap.ui.define([
147
147
  */
148
148
  item : {type : "sap.ui.unified.MenuItemBase"}
149
149
  }
150
- }
150
+ },
151
+
152
+ /**
153
+ * Fired when the menu is closed.
154
+ * @since 1.129
155
+ */
156
+ closed: {}
151
157
 
152
158
  }
153
159
  },
@@ -618,6 +624,9 @@ sap.ui.define([
618
624
  * @private
619
625
  */
620
626
  Menu.prototype._menuClosed = function() {
627
+
628
+ this.fireClosed();
629
+
621
630
  //TBD: standard popup autoclose: this.close(); //Ensure proper cleanup
622
631
  if (this.oOpenerRef) {
623
632
  if (!this.bIgnoreOpenerDOMRef) {
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @implements sap.ui.unified.IMenuItem
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.128.0
40
+ * @version 1.129.0
41
41
  * @since 1.21.0
42
42
  *
43
43
  * @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.128.0
26
+ * @version 1.129.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.128.0
33
+ * @version 1.129.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.128.0
18
+ * @version 1.129.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.128.0
56
+ * @version 1.129.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.128.0
27
+ * @version 1.129.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -106,5 +106,35 @@ sap.ui.define([
106
106
  return false;
107
107
  };
108
108
 
109
+ /**
110
+ * Evaluates whether there is an non working period for a given date.
111
+ * @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
112
+ * @return {boolean} True if there is an occurrence for this day
113
+ */
114
+ NonWorkingPeriod.prototype.hasNonWorkingAtDate = function (oDate) {
115
+ const oStartDate = UI5Date.getInstance(this.getStartDate());
116
+ const oCurrentDate = UI5Date.getInstance(oDate);
117
+ oStartDate.setHours(0,0,0);
118
+ oCurrentDate.setHours(0,0,0);
119
+
120
+ const isDateInRange = oCurrentDate >= oStartDate && oCurrentDate <= this.getEndDate();
121
+
122
+ return isDateInRange;
123
+ };
124
+
125
+ /**
126
+ * Evaluates whether there is an occurrence for the given date and hours.
127
+ * @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
128
+ * @return {boolean} True if there is an occurrence for these hours
129
+ * @private
130
+ */
131
+ NonWorkingPeriod.prototype.hasNonWorkingAtHour = function (oDate) {
132
+ const iStartHours = this.getStartDate().getHours();
133
+ const iTimeCalendarItem = iStartHours + (this.getStartDate().getMinutes() + this.getDurationInMinutes()) / 60;
134
+ const iTimeData = oDate.getHours() + oDate.getMinutes() / 60;
135
+
136
+ return oDate.getHours() === iStartHours || (iTimeCalendarItem >= iTimeData && iStartHours <= oDate.getHours());
137
+ };
138
+
109
139
  return NonWorkingPeriod;
110
140
  });
@@ -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.
27
- * @version 1.128.0
27
+ * @version 1.129.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -55,20 +55,6 @@ sap.ui.define([
55
55
  }
56
56
  }});
57
57
 
58
- /**
59
- * Evaluates whether there is an occurrence for the given date and hours.
60
- * @param {Date|module:sap/ui/core/date/UI5Date} oDate A date instance
61
- * @return {boolean} True if there is an occurrence for these hours
62
- * @private
63
- */
64
- RecurringNonWorkingPeriod.prototype.hasNonWorkingAtHour = function (oDate) {
65
- const iStartHours = this.getStartDate().getHours();
66
- const iTimeCalendarItem = iStartHours + (this.getStartDate().getMinutes() + this.getDurationInMinutes()) / 60;
67
- const iTimeData = oDate.getHours() + oDate.getMinutes() / 60;
68
-
69
- return oDate.getHours() === iStartHours || (iTimeCalendarItem >= iTimeData && iStartHours <= oDate.getHours());
70
- };
71
-
72
58
  /**
73
59
  * Determines whether the current instance has recurrence or not.
74
60
  * @return {boolean} The result is <code>true</code> when the instance has recurrence.
@@ -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.128.0
28
+ * @version 1.129.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.128.0
31
+ * @version 1.129.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.128.0
30
+ * @version 1.129.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.128.0
59
+ * @version 1.129.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.128.0
49
+ * @version 1.129.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.128.0
37
+ * @version 1.129.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.128.0
26
+ * @version 1.129.0
27
27
  *
28
28
  * @constructor
29
29
  * @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.128.0
41
+ * @version 1.129.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.128.0
30
+ * @version 1.129.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.128.0
35
+ * @version 1.129.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.128.0
86
+ * @version 1.129.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.128.0
58
+ * @version 1.129.0
59
59
  *
60
60
  * @constructor
61
61
  * @public
@@ -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.128.0
69
+ * @version 1.129.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.128.0
37
+ * @version 1.129.0
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -46,14 +46,14 @@ sap.ui.define([
46
46
  * @ui5-restricted sap.ui.unified.RecurringNonWorkingPeriod
47
47
  */
48
48
  RecurrenceUtils.hasOccurrenceOnDate = function (oDate) {
49
- if (this?.getRecurrenceType() !== "Daily") {
49
+ if (this.getRecurrenceType() !== "Daily") {
50
50
  return false;
51
51
  }
52
52
 
53
53
  const oStartDate = UI5Date.getInstance(this.getStartDate());
54
54
  const oCurrentDate = UI5Date.getInstance(oDate);
55
- oStartDate.setHours(0,0,0);
56
- oCurrentDate.setHours(0,0,0);
55
+ oStartDate.setHours(0,0,0,0);
56
+ oCurrentDate.setHours(0,0,0,0);
57
57
 
58
58
  const iDayInMilliseconds = 24 * 60 * 60 * 1000;
59
59
  const isDateInRange = oCurrentDate >= oStartDate && oCurrentDate <= this.getRecurrenceEndDate();
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  const iTimePart = oNonWorkingPartDate.getHours() * iMinutesInOneHours + oNonWorkingPartDate.getMinutes();
73
73
  iDuration -= (iTimeCell - iTimePart);
74
74
  } else if (oNonWorkingPartDate.getHours() === oCellStartDate.getHours() && oNonWorkingPartDate.getMinutes() > 0) {
75
- iDuration = oNonWorkingPart.getDurationInMinutes() > 60 ? iMinutesInOneHours - iCurrentPointInMinutes : oNonWorkingPart.getDurationInMinutes();
75
+ iDuration = oNonWorkingPart.getDurationInMinutes() + iCurrentPointInMinutes > 60 ? iMinutesInOneHours - iCurrentPointInMinutes : oNonWorkingPart.getDurationInMinutes();
76
76
  } else {
77
77
  iDuration = iMinutesInOneHours - iCurrentPointInMinutes;
78
78
  }
@@ -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.128.0
70
+ * @version 1.129.0
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -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.128.0
65
+ * @version 1.129.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.128.0
48
+ * @version 1.129.0
49
49
  *
50
50
  * @constructor
51
51
  * @private
@@ -32,14 +32,14 @@ sap.ui.define([
32
32
  * @namespace
33
33
  * @alias sap.ui.unified
34
34
  * @author SAP SE
35
- * @version 1.128.0
35
+ * @version 1.129.0
36
36
  * @since 1.28
37
37
  * @public
38
38
  */
39
39
  var thisLib = Library.init({
40
40
  name : "sap.ui.unified",
41
41
  apiVersion: 2,
42
- version: "1.128.0",
42
+ version: "1.129.0",
43
43
  dependencies : ["sap.ui.core"],
44
44
  designtime: "sap/ui/unified/designtime/library.designtime",
45
45
  types: [
@@ -567,6 +567,7 @@ html.sapUiMedia-Std-Phone .sapUiCalHeadB0{
567
567
  width: 12.5rem;
568
568
  }
569
569
 
570
+ .sapUiCalTwoMonthsInOneColumn .sapUiCalHeadB1,
570
571
  .sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB1,
571
572
  .sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB2,
572
573
  .sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB3,
@@ -632,15 +632,14 @@ html[data-sap-ui-browser^="ie"] .sapMPopover .sapUiColorPicker-ColorPickerMatrix
632
632
  }
633
633
  .sapUiCPHSLV {
634
634
  display: flex;
635
- & > div:last-child {
636
- visibility: hidden; //hide the not needed input (val or lit) for display flex reasons
635
+ & > div:last-child:not(.ColorPickerInputFieldsLeft) {
636
+ bottom: 2rem;
637
637
  }
638
638
  }
639
639
  .sapUiCPRGBA {
640
640
  display: flex;
641
- & > div:last-child:not(.ColorPickerInputFieldsLeft) {
642
- //move A field down
643
- top: 2rem;
641
+ & > div:last-child {
642
+ visibility: hidden;
644
643
  }
645
644
  }
646
645
  .sapUiCPHSLVText {