@openui5/sap.ui.unified 1.120.21 → 1.120.22
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 +1 -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 +19 -18
- package/src/sap/ui/unified/CalendarRowRenderer.js +8 -5
- 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/messagebundle_de.properties +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.120.
|
|
3
|
+
"version": "1.120.22",
|
|
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.120.
|
|
17
|
+
"@openui5/sap.ui.core": "1.120.22"
|
|
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.120.
|
|
9
|
+
<version>1.120.22</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -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.120.
|
|
62
|
+
* @version 1.120.22
|
|
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.120.
|
|
68
|
+
* @version 1.120.22
|
|
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.120.
|
|
60
|
+
* @version 1.120.22
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -68,8 +68,6 @@ sap.ui.define([
|
|
|
68
68
|
// shortcut for sap.ui.unified.CalendarAppointmentRoundWidth
|
|
69
69
|
var CalendarAppointmentRoundWidth = library.CalendarAppointmentRoundWidth;
|
|
70
70
|
|
|
71
|
-
var InvisibleMessageMode = corelibrary.InvisibleMessageMode;
|
|
72
|
-
|
|
73
71
|
/*
|
|
74
72
|
* <code>UniversalDate</code> objects are used inside the <code>CalendarRow</code>, whereas UI5Date or JavaScript dates are used in the API.
|
|
75
73
|
* So conversion must be done on API functions.
|
|
@@ -88,7 +86,7 @@ sap.ui.define([
|
|
|
88
86
|
* @class
|
|
89
87
|
* A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
|
|
90
88
|
* @extends sap.ui.core.Control
|
|
91
|
-
* @version 1.120.
|
|
89
|
+
* @version 1.120.22
|
|
92
90
|
*
|
|
93
91
|
* @constructor
|
|
94
92
|
* @public
|
|
@@ -621,7 +619,7 @@ sap.ui.define([
|
|
|
621
619
|
CalendarRow.prototype.onsapselect = function(oEvent){
|
|
622
620
|
// focused appointment must be selected
|
|
623
621
|
var aVisibleAppointments = this._getVisibleAppointments(),
|
|
624
|
-
oAppointment
|
|
622
|
+
oAppointment;
|
|
625
623
|
|
|
626
624
|
|
|
627
625
|
for (var i = 0; i < aVisibleAppointments.length; i++) {
|
|
@@ -633,9 +631,6 @@ sap.ui.define([
|
|
|
633
631
|
}
|
|
634
632
|
}
|
|
635
633
|
|
|
636
|
-
sBundleKey = oAppointment.getSelected() ? "APPOINTMENT_SELECTED" : "APPOINTMENT_UNSELECTED";
|
|
637
|
-
this._oInvisibleMessage.announce(this._oRb.getText(sBundleKey), InvisibleMessageMode.Polite);
|
|
638
|
-
|
|
639
634
|
//To prevent bubbling into PlanningCalendar.
|
|
640
635
|
//For appointments, this will prevent tap event on ColumnListItem, which in turn fires rowSelectionChange.
|
|
641
636
|
oEvent.stopPropagation();
|
|
@@ -1688,11 +1683,12 @@ sap.ui.define([
|
|
|
1688
1683
|
|
|
1689
1684
|
var i = 0;
|
|
1690
1685
|
var oApp;
|
|
1691
|
-
var
|
|
1692
|
-
var
|
|
1693
|
-
var
|
|
1686
|
+
var sAriaDescribedBy;
|
|
1687
|
+
var sAriaDescribedByNotSelected;
|
|
1688
|
+
var sCurrentAriaDescribedBy;
|
|
1689
|
+
var sCurrentAriaDescribedBySelected;
|
|
1690
|
+
var sCurrentAriaDescribedByNotSelected;
|
|
1694
1691
|
var sSelectedTextId = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED");
|
|
1695
|
-
var sUnselectedTextId = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_UNSELECTED");
|
|
1696
1692
|
var bSelect = !oAppointment.getSelected();
|
|
1697
1693
|
|
|
1698
1694
|
if (bRemoveOldSelection) {
|
|
@@ -1711,25 +1707,30 @@ sap.ui.define([
|
|
|
1711
1707
|
this.aSelectedAppointments.splice(i);
|
|
1712
1708
|
}
|
|
1713
1709
|
}
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
oApp.$().attr("aria-
|
|
1710
|
+
sAriaDescribedBy = oApp.$().attr("aria-describedby");
|
|
1711
|
+
sAriaDescribedByNotSelected = sAriaDescribedBy ? sAriaDescribedBy.replace(sSelectedTextId, "") : "";
|
|
1712
|
+
oApp.$().attr("aria-describedby", sAriaDescribedByNotSelected);
|
|
1717
1713
|
}
|
|
1718
1714
|
}
|
|
1719
1715
|
}
|
|
1720
1716
|
|
|
1721
|
-
|
|
1722
|
-
|
|
1717
|
+
sCurrentAriaDescribedBy = oAppointment.$().attr("aria-describedby");
|
|
1718
|
+
sCurrentAriaDescribedByNotSelected = (sCurrentAriaDescribedBy ? sCurrentAriaDescribedBy.replace(sSelectedTextId, "") : "").trim();
|
|
1719
|
+
sCurrentAriaDescribedBySelected = (sCurrentAriaDescribedByNotSelected + " " + sSelectedTextId).trim();
|
|
1723
1720
|
|
|
1724
1721
|
if (oAppointment.getSelected()) {
|
|
1725
1722
|
oAppointment.setProperty("selected", false, true); // do not invalidate CalendarRow
|
|
1726
1723
|
oAppointment.$().removeClass("sapUiCalendarAppSel");
|
|
1727
|
-
|
|
1724
|
+
if (sCurrentAriaDescribedByNotSelected) {
|
|
1725
|
+
oAppointment.$().attr("aria-describedby", sCurrentAriaDescribedByNotSelected);
|
|
1726
|
+
} else {
|
|
1727
|
+
oAppointment.$().removeAttr("aria-describedby");
|
|
1728
|
+
}
|
|
1728
1729
|
_removeAllAppointmentSelections(this, bRemoveOldSelection);
|
|
1729
1730
|
} else {
|
|
1730
1731
|
oAppointment.setProperty("selected", true, true); // do not invalidate CalendarRow
|
|
1731
1732
|
oAppointment.$().addClass("sapUiCalendarAppSel");
|
|
1732
|
-
oAppointment.$().attr("aria-
|
|
1733
|
+
oAppointment.$().attr("aria-describedby", sCurrentAriaDescribedBySelected);
|
|
1733
1734
|
_removeAllAppointmentSelections(this, bRemoveOldSelection);
|
|
1734
1735
|
}
|
|
1735
1736
|
// removes or adds the selected appointments from this.aSelectedAppointments
|
|
@@ -512,9 +512,14 @@ sap.ui.define([
|
|
|
512
512
|
var sIcon = oAppointment.getIcon();
|
|
513
513
|
var sId = oAppointment.getId();
|
|
514
514
|
var bReducedHeight = oRow._getAppointmentReducedHeight(oAppointmentInfo);
|
|
515
|
+
var bAppointmentSelected = oAppointment.getSelected();
|
|
515
516
|
var mAccProps = {
|
|
516
517
|
role: "listitem",
|
|
517
|
-
labelledby: {
|
|
518
|
+
labelledby: {
|
|
519
|
+
value: `${InvisibleText.getStaticId("sap.m", "ACC_CTR_TYPE_LISTITEM")} ${InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT")} ${sId.concat("-Descr")}`,
|
|
520
|
+
append: true
|
|
521
|
+
},
|
|
522
|
+
describedby: {value: bAppointmentSelected ? InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED") : "", append: true},
|
|
518
523
|
selected: null
|
|
519
524
|
};
|
|
520
525
|
var iRowCount = oRow._getAppointmentRowCount(oAppointmentInfo, bReducedHeight);
|
|
@@ -536,11 +541,9 @@ sap.ui.define([
|
|
|
536
541
|
oRm.openStart("div", oAppointment);
|
|
537
542
|
oRm.class("sapUiCalendarApp");
|
|
538
543
|
oRm.class("sapUiCalendarAppHeight" + iRowCount);
|
|
539
|
-
|
|
544
|
+
|
|
545
|
+
if (bAppointmentSelected) {
|
|
540
546
|
oRm.class("sapUiCalendarAppSel");
|
|
541
|
-
mAccProps["labelledby"].value = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED") + " " + mAccProps["labelledby"].value;
|
|
542
|
-
} else {
|
|
543
|
-
mAccProps["labelledby"].value = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_UNSELECTED") + " " + mAccProps["labelledby"].value;
|
|
544
547
|
}
|
|
545
548
|
|
|
546
549
|
if (oAppointment.getTentative()) {
|
|
@@ -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.120.
|
|
42
|
+
* @version 1.120.22
|
|
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.120.
|
|
28
|
+
* @version 1.120.22
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
36
36
|
* (To not duplicate and sync DateRanges and so on...)
|
|
37
37
|
* @extends sap.ui.unified.calendar.Month
|
|
38
|
-
* @version 1.120.
|
|
38
|
+
* @version 1.120.22
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @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.120.
|
|
35
|
+
* @version 1.120.22
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -79,7 +79,7 @@ sap.ui.define([
|
|
|
79
79
|
* If used inside the calendar the properties and aggregation are directly taken from the parent
|
|
80
80
|
* (To not duplicate and sync DateRanges and so on...)
|
|
81
81
|
* @extends sap.ui.core.Control
|
|
82
|
-
* @version 1.120.
|
|
82
|
+
* @version 1.120.22
|
|
83
83
|
*
|
|
84
84
|
* @constructor
|
|
85
85
|
* @public
|
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
* The MontsRow works with UI5Date or JavaScript Date objects, but only the month and the year are used to display and interact.
|
|
65
65
|
* As representation for a month, the 1st of the month will always be returned in the API.
|
|
66
66
|
* @extends sap.ui.core.Control
|
|
67
|
-
* @version 1.120.
|
|
67
|
+
* @version 1.120.22
|
|
68
68
|
*
|
|
69
69
|
* @constructor
|
|
70
70
|
* @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.120.
|
|
65
|
+
* @version 1.120.22
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @public
|
|
@@ -28,13 +28,13 @@ sap.ui.define([
|
|
|
28
28
|
* @namespace
|
|
29
29
|
* @alias sap.ui.unified
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.120.
|
|
31
|
+
* @version 1.120.22
|
|
32
32
|
* @since 1.28
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
35
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
36
36
|
name : "sap.ui.unified",
|
|
37
|
-
version: "1.120.
|
|
37
|
+
version: "1.120.22",
|
|
38
38
|
dependencies : ["sap.ui.core"],
|
|
39
39
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
40
40
|
types: [
|