@openui5/sap.ui.unified 1.71.41 → 1.71.44
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/LICENSE.txt +1 -1
- package/package.json +2 -2
- package/src/sap/ui/unified/.library +1 -1
- package/src/sap/ui/unified/Calendar.js +2 -2
- 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 +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 +8 -4
- package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
- package/src/sap/ui/unified/library.js +2 -2
package/LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.44",
|
|
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.71.
|
|
17
|
+
"@openui5/sap.ui.core": "1.71.44"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.71.
|
|
9
|
+
<version>1.71.44</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* Basic Calendar.
|
|
73
73
|
* This calendar is used for DatePickers
|
|
74
74
|
* @extends sap.ui.core.Control
|
|
75
|
-
* @version 1.71.
|
|
75
|
+
* @version 1.71.44
|
|
76
76
|
*
|
|
77
77
|
* @constructor
|
|
78
78
|
* @public
|
|
@@ -2275,7 +2275,7 @@ sap.ui.define([
|
|
|
2275
2275
|
this._focusDate(oFocusedDate, true);
|
|
2276
2276
|
this._hideYearPicker();
|
|
2277
2277
|
this._updateHeadersButtons();
|
|
2278
|
-
this._setHeaderText(this.
|
|
2278
|
+
this._setHeaderText(CalendarDate.fromLocalJSDate(this.getAggregation("month")[0].getDate(), this.getPrimaryCalendarType()));
|
|
2279
2279
|
};
|
|
2280
2280
|
|
|
2281
2281
|
Calendar.prototype._selectYearRange = function() {
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', './library',
|
|
|
21
21
|
*
|
|
22
22
|
* Applications could inherit from this element to add own fields.
|
|
23
23
|
* @extends sap.ui.unified.DateTypeRange
|
|
24
|
-
* @version 1.71.
|
|
24
|
+
* @version 1.71.44
|
|
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.71.
|
|
58
|
+
* @version 1.71.44
|
|
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.71.
|
|
68
|
+
* @version 1.71.44
|
|
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.71.
|
|
60
|
+
* @version 1.71.44
|
|
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.71.
|
|
42
|
+
* @version 1.71.44
|
|
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.71.
|
|
28
|
+
* @version 1.71.44
|
|
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.71.
|
|
35
|
+
* @version 1.71.44
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
64
64
|
* (To not duplicate and sync DateRanges and so on...)
|
|
65
65
|
* @extends sap.ui.core.Control
|
|
66
|
-
* @version 1.71.
|
|
66
|
+
* @version 1.71.44
|
|
67
67
|
*
|
|
68
68
|
* @constructor
|
|
69
69
|
* @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.71.
|
|
64
|
+
* @version 1.71.44
|
|
65
65
|
*
|
|
66
66
|
* @constructor
|
|
67
67
|
* @public
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
* As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
|
|
55
55
|
* (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
|
|
56
56
|
* @extends sap.ui.core.Control
|
|
57
|
-
* @version 1.71.
|
|
57
|
+
* @version 1.71.44
|
|
58
58
|
*
|
|
59
59
|
* @constructor
|
|
60
60
|
* @public
|
|
@@ -278,6 +278,8 @@ sap.ui.define([
|
|
|
278
278
|
|
|
279
279
|
YearPicker.prototype.onmouseup = function(oEvent){
|
|
280
280
|
|
|
281
|
+
var $DomRefs = this._oItemNavigation.getItemDomRefs();
|
|
282
|
+
|
|
281
283
|
// fire select event on mouseup to prevent closing MonthPicker during click
|
|
282
284
|
|
|
283
285
|
if (this._bMousedownChange) {
|
|
@@ -288,8 +290,10 @@ sap.ui.define([
|
|
|
288
290
|
&& this._isValueInThreshold(this._oMousedownPosition.clientY, oEvent.clientY, 10)
|
|
289
291
|
) {
|
|
290
292
|
var iIndex = this._oItemNavigation.getFocusedIndex();
|
|
291
|
-
|
|
292
|
-
|
|
293
|
+
if (!$DomRefs[iIndex].classList.contains("sapUiCalItemDsbl")) {
|
|
294
|
+
this._selectYear(iIndex);
|
|
295
|
+
this.fireSelect();
|
|
296
|
+
}
|
|
293
297
|
}
|
|
294
298
|
|
|
295
299
|
};
|
|
@@ -474,7 +478,7 @@ sap.ui.define([
|
|
|
474
478
|
};
|
|
475
479
|
|
|
476
480
|
YearPicker.prototype.ontouchstart = function (oEvent){
|
|
477
|
-
if (!Device.system.desktop && oEvent.target.classList.contains("sapUiCalItem")){
|
|
481
|
+
if (!Device.system.desktop && oEvent.target.classList.contains("sapUiCalItem") && !oEvent.target.classList.contains("sapUiCalItemDsbl")){
|
|
478
482
|
oEvent.target.classList.add("sapUiCalItemSel");
|
|
479
483
|
}
|
|
480
484
|
};
|
|
@@ -14,7 +14,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/base/Object', "./ColorPickerDisplayMo
|
|
|
14
14
|
// delegate further initialization of this library to the Core
|
|
15
15
|
sap.ui.getCore().initLibrary({
|
|
16
16
|
name : "sap.ui.unified",
|
|
17
|
-
version: "1.71.
|
|
17
|
+
version: "1.71.44",
|
|
18
18
|
dependencies : ["sap.ui.core"],
|
|
19
19
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
20
20
|
types: [
|
|
@@ -83,7 +83,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/base/Object', "./ColorPickerDisplayMo
|
|
|
83
83
|
* @namespace
|
|
84
84
|
* @alias sap.ui.unified
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.71.
|
|
86
|
+
* @version 1.71.44
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
89
|
var thisLib = sap.ui.unified;
|