@openui5/sap.ui.unified 1.133.0 → 1.133.2
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 +21 -4
- 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/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 +1 -1
- package/src/sap/ui/unified/RecurringNonWorkingPeriod.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/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 +22 -14
- 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/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.m:
|
|
8
8
|
|
|
9
|
-
Component: purify.js, version: 3.
|
|
9
|
+
Component: purify.js, version: 3.2.4
|
|
10
10
|
Copyright: Mario Heiderich
|
|
11
11
|
License: Apache-2.0
|
|
12
12
|
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.133.
|
|
3
|
+
"version": "1.133.2",
|
|
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.133.
|
|
17
|
+
"@openui5/sap.ui.core": "1.133.2"
|
|
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.133.
|
|
9
|
+
<version>1.133.2</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.133.
|
|
81
|
+
* @version 1.133.2
|
|
82
82
|
*
|
|
83
83
|
* @constructor
|
|
84
84
|
* @public
|
|
@@ -525,7 +525,8 @@ sap.ui.define([
|
|
|
525
525
|
};
|
|
526
526
|
|
|
527
527
|
Calendar.prototype._createMonth = function(sId){
|
|
528
|
-
var oMonth = new Month(sId, {width: "100%"
|
|
528
|
+
var oMonth = new Month(sId, {width: "100%"});
|
|
529
|
+
this._setMonthCalendarWeekNumbering(oMonth);
|
|
529
530
|
oMonth._bCalendar = true;
|
|
530
531
|
oMonth.attachEvent("datehovered", this._handleDateHovered, this);
|
|
531
532
|
oMonth.attachEvent("weekNumberSelect", this._handleWeekNumberSelect, this);
|
|
@@ -688,6 +689,14 @@ sap.ui.define([
|
|
|
688
689
|
this._oSpecialDatesControlOrigin = oControl;
|
|
689
690
|
};
|
|
690
691
|
|
|
692
|
+
Calendar.prototype._getCalendarWeekNumbering = function () {
|
|
693
|
+
if (this.isPropertyInitial("calendarWeekNumbering")) {
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
return this.getCalendarWeekNumbering();
|
|
698
|
+
};
|
|
699
|
+
|
|
691
700
|
/**
|
|
692
701
|
* If used inside DatePicker get the value from the parent
|
|
693
702
|
* To not have sync issues...
|
|
@@ -849,12 +858,20 @@ sap.ui.define([
|
|
|
849
858
|
this.setProperty("calendarWeekNumbering", sCalendarWeekNumbering);
|
|
850
859
|
|
|
851
860
|
for (var i = 0; i < aMonths.length; i++) {
|
|
852
|
-
aMonths[i]
|
|
861
|
+
this._setMonthCalendarWeekNumbering(aMonths[i]);
|
|
853
862
|
}
|
|
854
863
|
|
|
855
864
|
return this;
|
|
856
865
|
};
|
|
857
866
|
|
|
867
|
+
Calendar.prototype._setMonthCalendarWeekNumbering = function(oMonth) {
|
|
868
|
+
if (this.isPropertyInitial("calendarWeekNumbering")) {
|
|
869
|
+
return this;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
return oMonth.setCalendarWeekNumbering(this.getCalendarWeekNumbering());
|
|
873
|
+
};
|
|
874
|
+
|
|
858
875
|
Calendar.prototype.setMonths = function(iMonths) {
|
|
859
876
|
|
|
860
877
|
this._bDateRangeChanged = undefined; // to force rerendering
|
|
@@ -874,8 +891,8 @@ sap.ui.define([
|
|
|
874
891
|
oMonth.attachEvent("_bindMousemove", _handleBindMousemove, this);
|
|
875
892
|
oMonth.attachEvent("_unbindMousemove", _handleUnbindMousemove, this);
|
|
876
893
|
oMonth._bNoThemeChange = true;
|
|
877
|
-
oMonth.setCalendarWeekNumbering(this.getCalendarWeekNumbering());
|
|
878
894
|
oMonth.setSecondaryCalendarType(this._getSecondaryCalendarType());
|
|
895
|
+
this._setMonthCalendarWeekNumbering(oMonth);
|
|
879
896
|
this.addAggregation("month", oMonth);
|
|
880
897
|
}
|
|
881
898
|
this._toggleTwoMonthsInColumnsCSS();
|
|
@@ -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.133.
|
|
62
|
+
* @version 1.133.2
|
|
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.133.
|
|
68
|
+
* @version 1.133.2
|
|
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.133.
|
|
60
|
+
* @version 1.133.2
|
|
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.133.
|
|
42
|
+
* @version 1.133.2
|
|
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.133.
|
|
28
|
+
* @version 1.133.2
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
40
40
|
* (To not duplicate and sync DateRanges and so on...)
|
|
41
41
|
* @extends sap.ui.unified.calendar.Month
|
|
42
|
-
* @version 1.133.
|
|
42
|
+
* @version 1.133.2
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @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.133.
|
|
35
|
+
* @version 1.133.2
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
//Provides control sap.ui.unified.Calendar.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
'sap/base/i18n/Formatting',
|
|
10
|
+
'sap/base/i18n/date/CalendarType',
|
|
11
|
+
'sap/base/i18n/date/CalendarWeekNumbering',
|
|
12
12
|
'sap/ui/core/Control',
|
|
13
13
|
'sap/ui/Device',
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
'sap/ui/core/Element',
|
|
15
|
+
'sap/ui/core/Lib',
|
|
16
16
|
'sap/ui/core/LocaleData',
|
|
17
17
|
'sap/ui/core/delegate/ItemNavigation',
|
|
18
18
|
'sap/ui/unified/calendar/CalendarUtils',
|
|
@@ -23,14 +23,14 @@ sap.ui.define([
|
|
|
23
23
|
'sap/ui/core/format/DateFormat',
|
|
24
24
|
'sap/ui/core/library',
|
|
25
25
|
'sap/ui/core/Locale',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
'./MonthRenderer',
|
|
27
|
+
'sap/ui/dom/containsOrEquals',
|
|
28
|
+
'sap/ui/events/KeyCodes',
|
|
29
|
+
'sap/ui/thirdparty/jquery',
|
|
30
30
|
'sap/ui/core/InvisibleMessage',
|
|
31
|
-
|
|
31
|
+
'sap/ui/core/date/CalendarUtils',
|
|
32
32
|
'sap/ui/core/date/UI5Date',
|
|
33
|
-
|
|
33
|
+
'sap/base/Log'
|
|
34
34
|
], function(
|
|
35
35
|
Formatting,
|
|
36
36
|
CalendarType,
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
83
83
|
* (To not duplicate and sync DateRanges and so on...)
|
|
84
84
|
* @extends sap.ui.core.Control
|
|
85
|
-
* @version 1.133.
|
|
85
|
+
* @version 1.133.2
|
|
86
86
|
*
|
|
87
87
|
* @constructor
|
|
88
88
|
* @public
|
|
@@ -398,6 +398,14 @@ sap.ui.define([
|
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
+
Month.prototype._getCalendarWeekNumbering = function () {
|
|
402
|
+
if (this.isPropertyInitial("calendarWeekNumbering")) {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
return this.getCalendarWeekNumbering();
|
|
407
|
+
};
|
|
408
|
+
|
|
401
409
|
Month.prototype._markDatesBetweenStartAndHoveredDate = function(iDate1, iDate2) {
|
|
402
410
|
var aDomRefs,
|
|
403
411
|
$CheckRef,
|
|
@@ -812,7 +820,7 @@ sap.ui.define([
|
|
|
812
820
|
}
|
|
813
821
|
|
|
814
822
|
if (iFirstDayOfWeek < 0 || iFirstDayOfWeek > 6) {
|
|
815
|
-
var oWeekConfigurationValues = CalendarDateUtils.getWeekConfigurationValues(this.
|
|
823
|
+
var oWeekConfigurationValues = CalendarDateUtils.getWeekConfigurationValues(this._getCalendarWeekNumbering(), new Locale(this._getLocale()));
|
|
816
824
|
|
|
817
825
|
if (oWeekConfigurationValues) {
|
|
818
826
|
iFirstDayOfWeek = oWeekConfigurationValues.firstDayOfWeek;
|
|
@@ -1680,7 +1688,7 @@ sap.ui.define([
|
|
|
1680
1688
|
var oDateFormat;
|
|
1681
1689
|
var iWeekNumber;
|
|
1682
1690
|
|
|
1683
|
-
oDateFormat = DateFormat.getInstance({pattern: "w", calendarType: this._getPrimaryCalendarType(), calendarWeekNumbering: this.
|
|
1691
|
+
oDateFormat = DateFormat.getInstance({pattern: "w", calendarType: this._getPrimaryCalendarType(), calendarWeekNumbering: this._getCalendarWeekNumbering()}, oLocale);
|
|
1684
1692
|
|
|
1685
1693
|
const bIsRegionUS = oLocaleData.firstDayStartsFirstWeek();
|
|
1686
1694
|
|
|
@@ -68,7 +68,7 @@ sap.ui.define([
|
|
|
68
68
|
* The MontsRow works with UI5Date or JavaScript Date objects, but only the month and the year are used to display and interact.
|
|
69
69
|
* As representation for a month, the 1st of the month will always be returned in the API.
|
|
70
70
|
* @extends sap.ui.core.Control
|
|
71
|
-
* @version 1.133.
|
|
71
|
+
* @version 1.133.2
|
|
72
72
|
*
|
|
73
73
|
* @constructor
|
|
74
74
|
* @public
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
* As in all date-time controls, all pubic JS Date objects that are given (e.g. <code>setDate()</code>) or read
|
|
62
62
|
* (e.g. <code>getFirstRenderedDate</code>) with values which are considered as date objects in browser(local) timezone.
|
|
63
63
|
* @extends sap.ui.core.Control
|
|
64
|
-
* @version 1.133.
|
|
64
|
+
* @version 1.133.2
|
|
65
65
|
*
|
|
66
66
|
* @constructor
|
|
67
67
|
* @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.133.
|
|
35
|
+
* @version 1.133.2
|
|
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.133.
|
|
42
|
+
version: "1.133.2",
|
|
43
43
|
dependencies : ["sap.ui.core"],
|
|
44
44
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
45
45
|
types: [
|