@openui5/sap.ui.unified 1.96.42 → 1.96.43
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/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +2 -2
- package/package.json +2 -2
- package/src/sap/ui/unified/.library +1 -1
- package/src/sap/ui/unified/Calendar.js +6 -1
- 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/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/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 +1 -1
- package/src/sap/ui/unified/MenuItem.js +1 -1
- package/src/sap/ui/unified/MenuItemBase.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/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/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/TimesRow.js +1 -1
- package/src/sap/ui/unified/calendar/YearPicker.js +10 -3
- package/src/sap/ui/unified/calendar/YearPickerRenderer.js +17 -13
- package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
- package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +8 -1
- package/src/sap/ui/unified/library.js +2 -2
- package/src/sap/ui/unified/themes/base/Calendar.less +4 -0
package/.reuse/dep5
CHANGED
|
@@ -255,7 +255,7 @@ License: MIT
|
|
|
255
255
|
Comment: these files belong to: handlebars
|
|
256
256
|
|
|
257
257
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
|
258
|
-
Copyright: 2010-
|
|
258
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
259
259
|
License: MIT
|
|
260
260
|
Comment: these files belong to: requireJS
|
|
261
261
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -218,8 +218,8 @@ License: MIT
|
|
|
218
218
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
219
219
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/handlebars.js
|
|
220
220
|
|
|
221
|
-
Component: requireJS, version: 2.
|
|
222
|
-
Copyright: 2010-
|
|
221
|
+
Component: requireJS, version: 2.3.7
|
|
222
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
223
223
|
License: MIT
|
|
224
224
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
225
225
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.43",
|
|
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.96.
|
|
17
|
+
"@openui5/sap.ui.core": "1.96.43"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.96.
|
|
9
|
+
<version>1.96.43</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* Basic Calendar.
|
|
75
75
|
* This calendar is used for DatePickers
|
|
76
76
|
* @extends sap.ui.core.Control
|
|
77
|
-
* @version 1.96.
|
|
77
|
+
* @version 1.96.43
|
|
78
78
|
*
|
|
79
79
|
* @constructor
|
|
80
80
|
* @public
|
|
@@ -2330,6 +2330,11 @@ sap.ui.define([
|
|
|
2330
2330
|
|
|
2331
2331
|
oFocusedDate.setYear(oStartDate.getYear() + iRangeSize / 2);
|
|
2332
2332
|
oStartDate.setMonth(0, 1); // always use the first of the month to have stable year in Japanese calendar
|
|
2333
|
+
if (oFocusedDate.isBefore(this._oMinDate)) {
|
|
2334
|
+
oFocusedDate = new CalendarDate(this._oMinDate, this.getPrimaryCalendarType());
|
|
2335
|
+
} else if (oFocusedDate.isAfter(this._oMaxDate)){
|
|
2336
|
+
oFocusedDate = new CalendarDate(this._oMaxDate, this.getPrimaryCalendarType());
|
|
2337
|
+
}
|
|
2333
2338
|
this._setFocusedDate(oFocusedDate);
|
|
2334
2339
|
|
|
2335
2340
|
this._showYearPicker();
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
|
|
|
21
21
|
*
|
|
22
22
|
* Applications could inherit from this element to add own fields.
|
|
23
23
|
* @extends sap.ui.unified.DateTypeRange
|
|
24
|
-
* @version 1.96.
|
|
24
|
+
* @version 1.96.43
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @class
|
|
58
58
|
* <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
|
|
59
59
|
* @extends sap.ui.unified.Calendar
|
|
60
|
-
* @version 1.96.
|
|
60
|
+
* @version 1.96.43
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @public
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* <b>Note:</b> JavaScript Date objects are used to set and return the months, mark them as selected or as a special type.
|
|
68
68
|
* 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.
|
|
69
69
|
* @extends sap.ui.core.Control
|
|
70
|
-
* @version 1.96.
|
|
70
|
+
* @version 1.96.43
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @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.96.
|
|
60
|
+
* @version 1.96.43
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -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.96.
|
|
42
|
+
* @version 1.96.43
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -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.96.
|
|
28
|
+
* @version 1.96.43
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
33
33
|
* (To not duplicate and sync DateRanges and so on...)
|
|
34
34
|
* @extends sap.ui.unified.calendar.Month
|
|
35
|
-
* @version 1.96.
|
|
35
|
+
* @version 1.96.43
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @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.96.
|
|
35
|
+
* @version 1.96.43
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
76
76
|
* (To not duplicate and sync DateRanges and so on...)
|
|
77
77
|
* @extends sap.ui.core.Control
|
|
78
|
-
* @version 1.96.
|
|
78
|
+
* @version 1.96.43
|
|
79
79
|
*
|
|
80
80
|
* @constructor
|
|
81
81
|
* @public
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* The MontsRow works with JavaScript Date objects, but only the month and the year are used to display and interact.
|
|
62
62
|
* As representation for a month, the 1st of the month will always be returned in the API.
|
|
63
63
|
* @extends sap.ui.core.Control
|
|
64
|
-
* @version 1.96.
|
|
64
|
+
* @version 1.96.43
|
|
65
65
|
*
|
|
66
66
|
* @constructor
|
|
67
67
|
* @public
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
|
|
57
57
|
* (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
|
|
58
58
|
* @extends sap.ui.core.Control
|
|
59
|
-
* @version 1.96.
|
|
59
|
+
* @version 1.96.43
|
|
60
60
|
*
|
|
61
61
|
* @constructor
|
|
62
62
|
* @public
|
|
@@ -206,7 +206,8 @@ sap.ui.define([
|
|
|
206
206
|
* @returns {this} <code>this</code> for method chaining
|
|
207
207
|
*/
|
|
208
208
|
YearPicker.prototype.setDate = function(oDate){
|
|
209
|
-
var
|
|
209
|
+
var oMaxYear = CalendarUtils._maxDate(this.getProperty("primaryCalendarType")).getYear(),
|
|
210
|
+
oCalDate, iYear, iYears, iHalfRange;
|
|
210
211
|
|
|
211
212
|
// check the given object if it's a JS Date object
|
|
212
213
|
// null is a default value so it should not throw error but set it instead
|
|
@@ -225,7 +226,13 @@ sap.ui.define([
|
|
|
225
226
|
iYears = this.getYears();
|
|
226
227
|
iHalfRange = Math.floor(iYears / 2);
|
|
227
228
|
|
|
228
|
-
|
|
229
|
+
if (oDate.getFullYear() < iHalfRange) {
|
|
230
|
+
this._iSelectedIndex = oDate.getFullYear() - 1;
|
|
231
|
+
} else if (oDate.getFullYear() > oMaxYear - iHalfRange) {
|
|
232
|
+
this._iSelectedIndex = oMaxYear + iYears - oDate.getFullYear() - 1;
|
|
233
|
+
} else {
|
|
234
|
+
this._iSelectedIndex = iHalfRange;
|
|
235
|
+
}
|
|
229
236
|
this.setProperty("_middleDate", oCalDate);
|
|
230
237
|
|
|
231
238
|
return this;
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define([
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
'sap/ui/unified/calendar/CalendarDate',
|
|
9
|
+
'sap/ui/unified/calendar/CalendarUtils',
|
|
10
|
+
'sap/ui/core/date/UniversalDate',
|
|
11
|
+
'sap/ui/core/InvisibleText'],
|
|
8
12
|
function(CalendarDate, CalendarUtils, UniversalDate, InvisibleText) {
|
|
9
13
|
"use strict";
|
|
10
14
|
|
|
@@ -60,9 +64,9 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarDate', 'sap/ui/unified/calendar/
|
|
|
60
64
|
YearPickerRenderer.renderCells = function(oRm, oYP) {
|
|
61
65
|
|
|
62
66
|
var oDate = oYP.getProperty("_middleDate") ? oYP.getProperty("_middleDate") : oYP._getDate(),
|
|
67
|
+
oFirstDate = new CalendarDate(oDate, oYP.getPrimaryCalendarType()),
|
|
63
68
|
oMinYear = CalendarUtils._minDate(oYP.getProperty("primaryCalendarType")).getYear(),
|
|
64
69
|
oMaxYear = CalendarUtils._maxDate(oYP.getProperty("primaryCalendarType")).getYear(),
|
|
65
|
-
oCurrentDate = new CalendarDate(oDate, oYP.getPrimaryCalendarType()),
|
|
66
70
|
iYears = oYP.getYears(),
|
|
67
71
|
sId = oYP.getId(),
|
|
68
72
|
iColumns = oYP.getColumns(),
|
|
@@ -72,12 +76,12 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarDate', 'sap/ui/unified/calendar/
|
|
|
72
76
|
bApplySelectionBetween,
|
|
73
77
|
mAccProps, sYyyymmdd, i;
|
|
74
78
|
|
|
75
|
-
|
|
79
|
+
oFirstDate.setYear(oFirstDate.getYear() - Math.floor(iYears / 2));
|
|
76
80
|
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
} else if (
|
|
80
|
-
|
|
81
|
+
if (oFirstDate.getYear() < oMinYear) {
|
|
82
|
+
oFirstDate.setYear(oMinYear);
|
|
83
|
+
} else if (oFirstDate.getYear() + iYears > oMaxYear) {
|
|
84
|
+
oFirstDate.setYear(oMaxYear - iYears + 1);
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
if (iColumns > 0) {
|
|
@@ -87,11 +91,11 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarDate', 'sap/ui/unified/calendar/
|
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
for (i = 0; i < iYears; i++) {
|
|
90
|
-
sYyyymmdd = oYP._oFormatYyyymmdd.format(
|
|
94
|
+
sYyyymmdd = oYP._oFormatYyyymmdd.format(oFirstDate.toUTCJSDate(), true);
|
|
91
95
|
mAccProps = {
|
|
92
96
|
role: "gridcell"
|
|
93
97
|
};
|
|
94
|
-
bEnabled = oYP._checkDateEnabled(
|
|
98
|
+
bEnabled = oYP._checkDateEnabled(oFirstDate);
|
|
95
99
|
|
|
96
100
|
if (iColumns > 0 && i % iColumns == 0) {
|
|
97
101
|
// begin of row
|
|
@@ -103,8 +107,8 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarDate', 'sap/ui/unified/calendar/
|
|
|
103
107
|
oRm.openStart("div", sId + "-y" + sYyyymmdd);
|
|
104
108
|
oRm.class("sapUiCalItem");
|
|
105
109
|
|
|
106
|
-
bApplySelection = oYP._fnShouldApplySelection(
|
|
107
|
-
bApplySelectionBetween = oYP._fnShouldApplySelectionBetween(
|
|
110
|
+
bApplySelection = oYP._fnShouldApplySelection(oFirstDate);
|
|
111
|
+
bApplySelectionBetween = oYP._fnShouldApplySelectionBetween(oFirstDate);
|
|
108
112
|
|
|
109
113
|
if (bApplySelection) {
|
|
110
114
|
oRm.class("sapUiCalItemSel");
|
|
@@ -131,10 +135,10 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarDate', 'sap/ui/unified/calendar/
|
|
|
131
135
|
oRm.accessibilityState(null, mAccProps);
|
|
132
136
|
oRm.openEnd(); // div element
|
|
133
137
|
// to render era in Japanese, UniversalDate is used, since CalendarDate.toUTCJSDate() will convert the date in Gregorian
|
|
134
|
-
oRm.text(oYP._oYearFormat.format(UniversalDate.getInstance(
|
|
138
|
+
oRm.text(oYP._oYearFormat.format(UniversalDate.getInstance(oFirstDate.toUTCJSDate(), oFirstDate.getCalendarType()), true)); // to render era in Japanese
|
|
135
139
|
oRm.close("div");
|
|
136
140
|
|
|
137
|
-
|
|
141
|
+
oFirstDate.setYear(oFirstDate.getYear() + 1);
|
|
138
142
|
|
|
139
143
|
if (iColumns > 0 && ((i + 1) % iColumns == 0)) {
|
|
140
144
|
// end of row
|
|
@@ -44,6 +44,8 @@ sap.ui.define([
|
|
|
44
44
|
var oDate = oYRP.getProperty("_middleDate") ? oYRP.getProperty("_middleDate") : oYRP._getDate(),
|
|
45
45
|
oSelectedDate = new CalendarDate(oDate, oYRP.getPrimaryCalendarType()),
|
|
46
46
|
oFirstDate = new CalendarDate(oSelectedDate, oYRP.getPrimaryCalendarType()),
|
|
47
|
+
oMinYear = CalendarUtils._minDate(oYRP.getProperty("primaryCalendarType")).getYear(),
|
|
48
|
+
oMaxYear = CalendarUtils._maxDate(oYRP.getProperty("primaryCalendarType")).getYear(),
|
|
47
49
|
oSecondDate,
|
|
48
50
|
sFirstYear = "",
|
|
49
51
|
sSecondYear = "",
|
|
@@ -55,7 +57,12 @@ sap.ui.define([
|
|
|
55
57
|
|
|
56
58
|
oFirstDate.setYear(oFirstDate.getYear() - Math.floor(oYRP.getRangeSize() / 2));
|
|
57
59
|
oFirstDate.setYear(oFirstDate.getYear() - Math.floor(iYears / 2) * oYRP.getRangeSize());
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
if (oFirstDate.getYear() < oMinYear) {
|
|
62
|
+
oFirstDate.setYear(oMinYear);
|
|
63
|
+
} else if (oFirstDate.getYear() > oMaxYear - iYears) {
|
|
64
|
+
oFirstDate.setYear(oMaxYear - Math.floor(iYears) * oYRP.getRangeSize() + 1);
|
|
65
|
+
}
|
|
59
66
|
|
|
60
67
|
oSecondDate = new CalendarDate(oFirstDate, oYRP.getPrimaryCalendarType());
|
|
61
68
|
oSecondDate.setYear(oSecondDate.getYear() + oYRP.getRangeSize() - 1);
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
// delegate further initialization of this library to the Core
|
|
26
26
|
sap.ui.getCore().initLibrary({
|
|
27
27
|
name : "sap.ui.unified",
|
|
28
|
-
version: "1.96.
|
|
28
|
+
version: "1.96.43",
|
|
29
29
|
dependencies : ["sap.ui.core"],
|
|
30
30
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
31
31
|
types: [
|
|
@@ -98,7 +98,7 @@ sap.ui.define([
|
|
|
98
98
|
* @namespace
|
|
99
99
|
* @alias sap.ui.unified
|
|
100
100
|
* @author SAP SE
|
|
101
|
-
* @version 1.96.
|
|
101
|
+
* @version 1.96.43
|
|
102
102
|
* @since 1.28
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
@@ -336,6 +336,10 @@ html.sap-desktop .sapUiCalHead > button.sapUiCalDsbl:focus,
|
|
|
336
336
|
color: @sapUiHighlight;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
.sapUiCalItemNow.sapUiCalItemDsbl {
|
|
340
|
+
color: fade(@sapUiBaseText, 50);
|
|
341
|
+
}
|
|
342
|
+
|
|
339
343
|
.sapUiCalItemWeekEnd{
|
|
340
344
|
background-color: darken(@sapUiContentForegroundColor, 3);
|
|
341
345
|
}
|