@openui5/sap.ui.unified 1.84.32 → 1.84.33
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/package.json +2 -2
- package/src/sap/ui/unified/.library +1 -1
- package/src/sap/ui/unified/Calendar.js +15 -6
- 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/Month.js +24 -7
- 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 +1 -1
- package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
- package/src/sap/ui/unified/library.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.33",
|
|
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.84.
|
|
17
|
+
"@openui5/sap.ui.core": "1.84.33"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.84.
|
|
9
|
+
<version>1.84.33</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -76,7 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
* Basic Calendar.
|
|
77
77
|
* This calendar is used for DatePickers
|
|
78
78
|
* @extends sap.ui.core.Control
|
|
79
|
-
* @version 1.84.
|
|
79
|
+
* @version 1.84.33
|
|
80
80
|
*
|
|
81
81
|
* @constructor
|
|
82
82
|
* @public
|
|
@@ -956,7 +956,8 @@ sap.ui.define([
|
|
|
956
956
|
* @public
|
|
957
957
|
*/
|
|
958
958
|
Calendar.prototype.setMinDate = function(oDate){
|
|
959
|
-
var
|
|
959
|
+
var aMonths = this.getAggregation("month"),
|
|
960
|
+
sPrimaryCalendarType = this.getPrimaryCalendarType(),
|
|
960
961
|
iMinYear;
|
|
961
962
|
|
|
962
963
|
if (deepEqual(oDate, this.getMinDate())) {
|
|
@@ -991,7 +992,11 @@ sap.ui.define([
|
|
|
991
992
|
iMinYear = this._oMinDate.getYear();
|
|
992
993
|
|
|
993
994
|
this._getYearPicker()._oMinDate.setYear(iMinYear);
|
|
994
|
-
this.
|
|
995
|
+
this._getYearRangePicker()._oMinDate.setYear(iMinYear);
|
|
996
|
+
|
|
997
|
+
for (var i = 0; i < aMonths.length; i++) {
|
|
998
|
+
aMonths[i]._oMinDate = new CalendarDate(this._oMinDate);
|
|
999
|
+
}
|
|
995
1000
|
}
|
|
996
1001
|
|
|
997
1002
|
return this;
|
|
@@ -1005,8 +1010,8 @@ sap.ui.define([
|
|
|
1005
1010
|
* @public
|
|
1006
1011
|
*/
|
|
1007
1012
|
Calendar.prototype.setMaxDate = function(oDate){
|
|
1008
|
-
|
|
1009
|
-
|
|
1013
|
+
var aMonths = this.getAggregation("month"),
|
|
1014
|
+
sPrimaryCalendarType,
|
|
1010
1015
|
iMaxYear;
|
|
1011
1016
|
|
|
1012
1017
|
if (deepEqual(oDate, this.getMaxDate())) {
|
|
@@ -1039,7 +1044,11 @@ sap.ui.define([
|
|
|
1039
1044
|
iMaxYear = this._oMaxDate.getYear();
|
|
1040
1045
|
|
|
1041
1046
|
this._getYearPicker()._oMaxDate.setYear(iMaxYear);
|
|
1042
|
-
this.
|
|
1047
|
+
this._getYearRangePicker()._oMaxDate.setYear(iMaxYear);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
for (var i = 0; i < aMonths.length; i++) {
|
|
1051
|
+
aMonths[i]._oMaxDate = new CalendarDate(this._oMaxDate);
|
|
1043
1052
|
}
|
|
1044
1053
|
|
|
1045
1054
|
return this;
|
|
@@ -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.84.
|
|
24
|
+
* @version 1.84.33
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* @class
|
|
56
56
|
* <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
|
|
57
57
|
* @extends sap.ui.unified.Calendar
|
|
58
|
-
* @version 1.84.
|
|
58
|
+
* @version 1.84.33
|
|
59
59
|
*
|
|
60
60
|
* @constructor
|
|
61
61
|
* @public
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
* <b>Note:</b> 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.84.
|
|
68
|
+
* @version 1.84.33
|
|
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.84.
|
|
60
|
+
* @version 1.84.33
|
|
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.84.
|
|
42
|
+
* @version 1.84.33
|
|
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.84.
|
|
28
|
+
* @version 1.84.33
|
|
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.84.
|
|
35
|
+
* @version 1.84.33
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -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.84.
|
|
78
|
+
* @version 1.84.33
|
|
79
79
|
*
|
|
80
80
|
* @constructor
|
|
81
81
|
* @public
|
|
@@ -273,6 +273,9 @@ sap.ui.define([
|
|
|
273
273
|
|
|
274
274
|
// Currently visible days
|
|
275
275
|
this._aVisibleDays = [];
|
|
276
|
+
|
|
277
|
+
this._oMinDate = CalendarUtils._minDate(this.getPrimaryCalendarType());
|
|
278
|
+
this._oMaxDate = CalendarUtils._maxDate(this.getPrimaryCalendarType());
|
|
276
279
|
};
|
|
277
280
|
|
|
278
281
|
Month.prototype._getAriaRole = function(){
|
|
@@ -1579,23 +1582,37 @@ sap.ui.define([
|
|
|
1579
1582
|
* @returns {sap.ui.unified.calendar.Month} this For chaining
|
|
1580
1583
|
* @private
|
|
1581
1584
|
*/
|
|
1582
|
-
Month.prototype._handleWeekSelection = function (oStartDate, bFocusStartDate)
|
|
1583
|
-
var iSelectedWeekNumber =
|
|
1585
|
+
Month.prototype._handleWeekSelection = function (oStartDate, bFocusStartDate){
|
|
1586
|
+
var iSelectedWeekNumber = this._calculateWeekNumber(oStartDate),
|
|
1584
1587
|
oEndDate = this._getLastWeekDate(oStartDate),
|
|
1585
1588
|
bSingleSelection = this.getSingleSelection(),
|
|
1586
|
-
bIntervalSelection = this.getIntervalSelection()
|
|
1589
|
+
bIntervalSelection = this.getIntervalSelection(),
|
|
1590
|
+
oFirstEnabledDateOfWeek = this._checkDateEnabled(oStartDate) ? oStartDate : null,
|
|
1591
|
+
oLastEnabledDateOfWeek = this._checkDateEnabled(oEndDate) ? oEndDate : null;
|
|
1592
|
+
|
|
1593
|
+
if (oStartDate.isAfter(this._oMaxDate) || oEndDate.isBefore(this._oMinDate)){
|
|
1594
|
+
return this;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
if (!oFirstEnabledDateOfWeek){
|
|
1598
|
+
oFirstEnabledDateOfWeek = new CalendarDate(this._oMinDate);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
if (!oLastEnabledDateOfWeek){
|
|
1602
|
+
oLastEnabledDateOfWeek = new CalendarDate(this._oMaxDate);
|
|
1603
|
+
}
|
|
1587
1604
|
|
|
1588
1605
|
if (!bSingleSelection && !bIntervalSelection) {
|
|
1589
1606
|
// Selecting each day separately
|
|
1590
|
-
this._handleWeekSelectionByMultipleDays(iSelectedWeekNumber,
|
|
1607
|
+
this._handleWeekSelectionByMultipleDays(iSelectedWeekNumber, oFirstEnabledDateOfWeek, oLastEnabledDateOfWeek);
|
|
1591
1608
|
} else if (bSingleSelection && bIntervalSelection) {
|
|
1592
1609
|
// Selecting the week as a whole interval
|
|
1593
|
-
this._handleWeekSelectionBySingleInterval(iSelectedWeekNumber,
|
|
1610
|
+
this._handleWeekSelectionBySingleInterval(iSelectedWeekNumber, oFirstEnabledDateOfWeek, oLastEnabledDateOfWeek);
|
|
1594
1611
|
}
|
|
1595
1612
|
|
|
1596
1613
|
// When this method is called due to a week number's press, then focus
|
|
1597
1614
|
// should be moved to the first date, since the week number itself isn't focusable
|
|
1598
|
-
bFocusStartDate && this._focusDate(
|
|
1615
|
+
bFocusStartDate && this._focusDate(oFirstEnabledDateOfWeek);
|
|
1599
1616
|
|
|
1600
1617
|
return this;
|
|
1601
1618
|
};
|
|
@@ -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.84.
|
|
64
|
+
* @version 1.84.33
|
|
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.84.
|
|
59
|
+
* @version 1.84.33
|
|
60
60
|
*
|
|
61
61
|
* @constructor
|
|
62
62
|
* @public
|
|
@@ -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.84.
|
|
28
|
+
version: "1.84.33",
|
|
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.84.
|
|
101
|
+
* @version 1.84.33
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
var thisLib = sap.ui.unified;
|