@openui5/sap.ui.unified 1.124.4 → 1.124.6
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 -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/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 +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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.124.
|
|
3
|
+
"version": "1.124.6",
|
|
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.124.
|
|
17
|
+
"@openui5/sap.ui.core": "1.124.6"
|
|
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.124.
|
|
9
|
+
<version>1.124.6</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.124.
|
|
81
|
+
* @version 1.124.6
|
|
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.124.
|
|
62
|
+
* @version 1.124.6
|
|
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.124.
|
|
68
|
+
* @version 1.124.6
|
|
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.124.
|
|
60
|
+
* @version 1.124.6
|
|
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.124.
|
|
42
|
+
* @version 1.124.6
|
|
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.124.
|
|
28
|
+
* @version 1.124.6
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -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.124.
|
|
41
|
+
* @version 1.124.6
|
|
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.124.
|
|
35
|
+
* @version 1.124.6
|
|
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.124.
|
|
86
|
+
* @version 1.124.6
|
|
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.124.
|
|
69
|
+
* @version 1.124.6
|
|
70
70
|
*
|
|
71
71
|
* @constructor
|
|
72
72
|
* @public
|
|
@@ -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.124.
|
|
65
|
+
* @version 1.124.6
|
|
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.124.
|
|
35
|
+
* @version 1.124.6
|
|
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.124.
|
|
42
|
+
version: "1.124.6",
|
|
43
43
|
dependencies : ["sap.ui.core"],
|
|
44
44
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
45
45
|
types: [
|
|
@@ -552,6 +552,7 @@ html.sapUiMedia-Std-Phone .sapUiCalHeadB0{
|
|
|
552
552
|
width: 12.5rem;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
+
.sapUiCalTwoMonthsInOneColumn .sapUiCalHeadB1,
|
|
555
556
|
.sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB1,
|
|
556
557
|
.sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB2,
|
|
557
558
|
.sapUiCalTwoMonthsTwoColumnsJaZh .sapUiCalHeadB3,
|