@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.
- package/THIRDPARTY.txt +1 -1
- package/package.json +2 -2
- package/src/sap/ui/unified/.library +1 -1
- package/src/sap/ui/unified/Calendar.js +15 -9
- package/src/sap/ui/unified/CalendarAppointment.js +1 -1
- package/src/sap/ui/unified/CalendarDateInterval.js +1 -1
- package/src/sap/ui/unified/CalendarLegend.js +1 -1
- package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
- package/src/sap/ui/unified/CalendarMonthInterval.js +1 -1
- package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
- package/src/sap/ui/unified/CalendarRow.js +1 -1
- package/src/sap/ui/unified/CalendarRowRenderer.js +4 -3
- package/src/sap/ui/unified/CalendarTimeInterval.js +1 -1
- package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
- package/src/sap/ui/unified/ColorPicker.js +1 -1
- package/src/sap/ui/unified/ColorPickerPopover.js +1 -1
- package/src/sap/ui/unified/ColorPickerRenderer.js +17 -19
- package/src/sap/ui/unified/ContentSwitcher.js +1 -1
- package/src/sap/ui/unified/Currency.js +1 -1
- package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
- package/src/sap/ui/unified/DateRange.js +1 -1
- package/src/sap/ui/unified/DateTypeRange.js +1 -1
- package/src/sap/ui/unified/FileUploader.js +1 -1
- package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
- package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
- package/src/sap/ui/unified/Menu.js +11 -2
- package/src/sap/ui/unified/MenuItem.js +1 -1
- package/src/sap/ui/unified/MenuItemBase.js +1 -1
- package/src/sap/ui/unified/MenuItemGroup.js +1 -1
- package/src/sap/ui/unified/MenuRenderer.js +1 -1
- package/src/sap/ui/unified/MenuTextFieldItem.js +1 -1
- package/src/sap/ui/unified/NonWorkingPeriod.js +31 -1
- package/src/sap/ui/unified/RecurringNonWorkingPeriod.js +1 -15
- package/src/sap/ui/unified/Shell.js +1 -1
- package/src/sap/ui/unified/ShellHeadItem.js +1 -1
- package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
- package/src/sap/ui/unified/ShellLayout.js +1 -1
- package/src/sap/ui/unified/ShellOverlay.js +1 -1
- package/src/sap/ui/unified/SplitContainer.js +1 -1
- package/src/sap/ui/unified/TimeRange.js +1 -1
- package/src/sap/ui/unified/calendar/DatesRow.js +1 -1
- package/src/sap/ui/unified/calendar/Header.js +1 -1
- package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
- package/src/sap/ui/unified/calendar/Month.js +1 -1
- package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
- package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
- package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
- package/src/sap/ui/unified/calendar/RecurrenceUtils.js +4 -4
- package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
- package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
- package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
- package/src/sap/ui/unified/library.js +2 -2
- package/src/sap/ui/unified/themes/base/Calendar.less +1 -0
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2757
|
+
this._toggleTwoMonthsInColumnsCSS();
|
|
2752
2758
|
}
|
|
2753
2759
|
}
|
|
2754
2760
|
|
|
@@ -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.
|
|
62
|
+
* @version 1.129.0
|
|
63
63
|
*
|
|
64
64
|
* @constructor
|
|
65
65
|
* @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.
|
|
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.
|
|
60
|
+
* @version 1.129.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -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
|
});
|
|
@@ -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.
|
|
42
|
+
* @version 1.129.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -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
|
-
|
|
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");
|
|
@@ -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.
|
|
28
|
+
* @version 1.129.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -70,7 +70,7 @@ sap.ui.define([
|
|
|
70
70
|
* @implements sap.ui.core.IContextMenu
|
|
71
71
|
*
|
|
72
72
|
* @author SAP SE
|
|
73
|
-
* @version 1.
|
|
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) {
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* NonWorkingPeriod
|
|
26
26
|
* @extends sap.ui.core.Element
|
|
27
|
-
* @version 1.
|
|
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.
|
|
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.
|
|
@@ -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.
|
|
41
|
+
* @version 1.129.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @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.
|
|
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.
|
|
86
|
+
* @version 1.129.0
|
|
87
87
|
*
|
|
88
88
|
* @constructor
|
|
89
89
|
* @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.
|
|
69
|
+
* @version 1.129.0
|
|
70
70
|
*
|
|
71
71
|
* @constructor
|
|
72
72
|
* @public
|
|
@@ -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
|
|
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
|
}
|
|
@@ -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.
|
|
65
|
+
* @version 1.129.0
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @public
|
|
@@ -32,14 +32,14 @@ sap.ui.define([
|
|
|
32
32
|
* @namespace
|
|
33
33
|
* @alias sap.ui.unified
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
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.
|
|
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
|
-
|
|
635
|
+
& > div:last-child:not(.ColorPickerInputFieldsLeft) {
|
|
636
|
+
bottom: 2rem;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
.sapUiCPRGBA {
|
|
640
640
|
display: flex;
|
|
641
|
-
& > div:last-child
|
|
642
|
-
|
|
643
|
-
top: 2rem;
|
|
641
|
+
& > div:last-child {
|
|
642
|
+
visibility: hidden;
|
|
644
643
|
}
|
|
645
644
|
}
|
|
646
645
|
.sapUiCPHSLVText {
|