@openui5/sap.ui.unified 1.126.1 → 1.127.1
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 +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 +14 -22
- package/src/sap/ui/unified/CalendarRowRenderer.js +7 -4
- 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 +74 -25
- package/src/sap/ui/unified/MenuItem.js +102 -7
- package/src/sap/ui/unified/MenuItemBase.js +1 -1
- package/src/sap/ui/unified/MenuItemGroup.js +233 -0
- package/src/sap/ui/unified/MenuRenderer.js +48 -22
- package/src/sap/ui/unified/MenuTextFieldItem.js +7 -3
- 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/designtime/messagebundle_en_US_saptrc.properties +6 -6
- package/src/sap/ui/unified/library.js +15 -2
- package/src/sap/ui/unified/messagebundle.properties +3 -0
- package/src/sap/ui/unified/messagebundle_ar.properties +2 -0
- package/src/sap/ui/unified/messagebundle_bg.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ca.properties +2 -0
- package/src/sap/ui/unified/messagebundle_cnr.properties +2 -0
- package/src/sap/ui/unified/messagebundle_cs.properties +2 -0
- package/src/sap/ui/unified/messagebundle_cy.properties +2 -0
- package/src/sap/ui/unified/messagebundle_da.properties +2 -0
- package/src/sap/ui/unified/messagebundle_de.properties +3 -1
- package/src/sap/ui/unified/messagebundle_el.properties +2 -0
- package/src/sap/ui/unified/messagebundle_en.properties +2 -0
- package/src/sap/ui/unified/messagebundle_en_GB.properties +2 -0
- package/src/sap/ui/unified/messagebundle_en_US_sappsd.properties +14 -6
- package/src/sap/ui/unified/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/ui/unified/messagebundle_en_US_saptrc.properties +68 -60
- package/src/sap/ui/unified/messagebundle_es.properties +2 -0
- package/src/sap/ui/unified/messagebundle_es_MX.properties +2 -0
- package/src/sap/ui/unified/messagebundle_et.properties +2 -0
- package/src/sap/ui/unified/messagebundle_fi.properties +2 -0
- package/src/sap/ui/unified/messagebundle_fr.properties +2 -0
- package/src/sap/ui/unified/messagebundle_fr_CA.properties +2 -0
- package/src/sap/ui/unified/messagebundle_hi.properties +2 -0
- package/src/sap/ui/unified/messagebundle_hr.properties +2 -0
- package/src/sap/ui/unified/messagebundle_hu.properties +2 -0
- package/src/sap/ui/unified/messagebundle_id.properties +2 -0
- package/src/sap/ui/unified/messagebundle_it.properties +2 -0
- package/src/sap/ui/unified/messagebundle_iw.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ja.properties +2 -0
- package/src/sap/ui/unified/messagebundle_kk.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ko.properties +2 -0
- package/src/sap/ui/unified/messagebundle_lt.properties +2 -0
- package/src/sap/ui/unified/messagebundle_lv.properties +2 -0
- package/src/sap/ui/unified/messagebundle_mk.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ms.properties +2 -0
- package/src/sap/ui/unified/messagebundle_nl.properties +2 -0
- package/src/sap/ui/unified/messagebundle_no.properties +2 -0
- package/src/sap/ui/unified/messagebundle_pl.properties +2 -0
- package/src/sap/ui/unified/messagebundle_pt.properties +2 -0
- package/src/sap/ui/unified/messagebundle_pt_PT.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ro.properties +2 -0
- package/src/sap/ui/unified/messagebundle_ru.properties +2 -0
- package/src/sap/ui/unified/messagebundle_sh.properties +2 -0
- package/src/sap/ui/unified/messagebundle_sk.properties +2 -0
- package/src/sap/ui/unified/messagebundle_sl.properties +2 -0
- package/src/sap/ui/unified/messagebundle_sr.properties +2 -0
- package/src/sap/ui/unified/messagebundle_sv.properties +2 -0
- package/src/sap/ui/unified/messagebundle_th.properties +2 -0
- package/src/sap/ui/unified/messagebundle_tr.properties +2 -0
- package/src/sap/ui/unified/messagebundle_uk.properties +2 -0
- package/src/sap/ui/unified/messagebundle_vi.properties +2 -0
- package/src/sap/ui/unified/messagebundle_zh_CN.properties +2 -0
- package/src/sap/ui/unified/messagebundle_zh_TW.properties +2 -0
- package/src/sap/ui/unified/themes/base/Calendar.less +38 -1
- package/src/sap/ui/unified/themes/base/Menu.less +20 -7
package/THIRDPARTY.txt
CHANGED
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.16.1
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
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.
|
|
3
|
+
"version": "1.127.1",
|
|
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.
|
|
17
|
+
"@openui5/sap.ui.core": "1.127.1"
|
|
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.
|
|
9
|
+
<version>1.127.1</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.
|
|
81
|
+
* @version 1.127.1
|
|
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.
|
|
62
|
+
* @version 1.127.1
|
|
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.
|
|
68
|
+
* @version 1.127.1
|
|
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.
|
|
60
|
+
* @version 1.127.1
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -23,7 +23,6 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/dom/containsOrEquals",
|
|
24
24
|
"sap/ui/thirdparty/jquery",
|
|
25
25
|
"sap/ui/unified/CalendarAppointment",
|
|
26
|
-
'sap/ui/core/InvisibleMessage',
|
|
27
26
|
'sap/ui/core/library',
|
|
28
27
|
"sap/ui/core/date/UI5Date"
|
|
29
28
|
], function(
|
|
@@ -44,7 +43,6 @@ sap.ui.define([
|
|
|
44
43
|
containsOrEquals,
|
|
45
44
|
jQuery,
|
|
46
45
|
CalendarAppointment,
|
|
47
|
-
InvisibleMessage,
|
|
48
46
|
corelibrary,
|
|
49
47
|
UI5Date
|
|
50
48
|
) {
|
|
@@ -68,8 +66,6 @@ sap.ui.define([
|
|
|
68
66
|
// shortcut for sap.ui.unified.CalendarAppointmentRoundWidth
|
|
69
67
|
var CalendarAppointmentRoundWidth = library.CalendarAppointmentRoundWidth;
|
|
70
68
|
|
|
71
|
-
var InvisibleMessageMode = corelibrary.InvisibleMessageMode;
|
|
72
|
-
|
|
73
69
|
/*
|
|
74
70
|
* <code>UniversalDate</code> objects are used inside the <code>CalendarRow</code>, whereas UI5Date or JavaScript dates are used in the API.
|
|
75
71
|
* So conversion must be done on API functions.
|
|
@@ -88,7 +84,7 @@ sap.ui.define([
|
|
|
88
84
|
* @class
|
|
89
85
|
* A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
|
|
90
86
|
* @extends sap.ui.core.Control
|
|
91
|
-
* @version 1.
|
|
87
|
+
* @version 1.127.1
|
|
92
88
|
*
|
|
93
89
|
* @constructor
|
|
94
90
|
* @public
|
|
@@ -362,9 +358,10 @@ sap.ui.define([
|
|
|
362
358
|
|
|
363
359
|
this._bRTL = Localization.getRTL();
|
|
364
360
|
this._oRb = Library.getResourceBundleFor("sap.ui.unified");
|
|
361
|
+
var pattern = this._oRb.getText("APPOINTMENT_DATE_TIME_DESCRIPTION", [_getLocaleData.call(this).getDatePattern("long"), _getLocaleData.call(this).getTimePattern("medium")]);
|
|
365
362
|
|
|
366
363
|
this._oFormatAria = DateFormat.getDateTimeInstance({
|
|
367
|
-
pattern: "EEEE
|
|
364
|
+
pattern: "EEEE " + pattern
|
|
368
365
|
});
|
|
369
366
|
|
|
370
367
|
this._aVisibleAppointments = [];
|
|
@@ -414,8 +411,6 @@ sap.ui.define([
|
|
|
414
411
|
this._updateSelectedAppointmentsArray(oApp);
|
|
415
412
|
}.bind(this));
|
|
416
413
|
}
|
|
417
|
-
|
|
418
|
-
this._oInvisibleMessage = InvisibleMessage.getInstance();
|
|
419
414
|
};
|
|
420
415
|
|
|
421
416
|
CalendarRow.prototype.onAfterRendering = function(){
|
|
@@ -619,7 +614,7 @@ sap.ui.define([
|
|
|
619
614
|
CalendarRow.prototype.onsapselect = function(oEvent){
|
|
620
615
|
// focused appointment must be selected
|
|
621
616
|
var aVisibleAppointments = this._getVisibleAppointments(),
|
|
622
|
-
oAppointment
|
|
617
|
+
oAppointment;
|
|
623
618
|
|
|
624
619
|
|
|
625
620
|
for (var i = 0; i < aVisibleAppointments.length; i++) {
|
|
@@ -631,9 +626,6 @@ sap.ui.define([
|
|
|
631
626
|
}
|
|
632
627
|
}
|
|
633
628
|
|
|
634
|
-
sBundleKey = oAppointment.getSelected() ? "APPOINTMENT_SELECTED" : "APPOINTMENT_UNSELECTED";
|
|
635
|
-
this._oInvisibleMessage.announce(this._oRb.getText(sBundleKey), InvisibleMessageMode.Polite);
|
|
636
|
-
|
|
637
629
|
//To prevent bubbling into PlanningCalendar.
|
|
638
630
|
//For appointments, this will prevent tap event on ColumnListItem, which in turn fires rowSelectionChange.
|
|
639
631
|
oEvent.stopPropagation();
|
|
@@ -1686,9 +1678,9 @@ sap.ui.define([
|
|
|
1686
1678
|
|
|
1687
1679
|
var i = 0;
|
|
1688
1680
|
var oApp;
|
|
1689
|
-
var
|
|
1690
|
-
var
|
|
1691
|
-
var
|
|
1681
|
+
var sAriaDescribedBy;
|
|
1682
|
+
var sAriaDescribedByNotSelected;
|
|
1683
|
+
var sAriaDescribedBySelected;
|
|
1692
1684
|
var sSelectedTextId = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED");
|
|
1693
1685
|
var sUnselectedTextId = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_UNSELECTED");
|
|
1694
1686
|
var bSelect = !oAppointment.getSelected();
|
|
@@ -1709,25 +1701,25 @@ sap.ui.define([
|
|
|
1709
1701
|
this.aSelectedAppointments.splice(j);
|
|
1710
1702
|
}
|
|
1711
1703
|
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
oApp.$().attr("aria-
|
|
1704
|
+
sAriaDescribedBy = oApp.$().attr("aria-describedby");
|
|
1705
|
+
sAriaDescribedByNotSelected = sAriaDescribedBy ? sAriaDescribedBy.replace(sSelectedTextId, sUnselectedTextId) : "";
|
|
1706
|
+
oApp.$().attr("aria-describedby", sAriaDescribedByNotSelected);
|
|
1715
1707
|
}
|
|
1716
1708
|
}
|
|
1717
1709
|
}
|
|
1718
1710
|
|
|
1719
|
-
|
|
1720
|
-
|
|
1711
|
+
sAriaDescribedBySelected = oAppointment.$().attr("aria-describedby").replace(sUnselectedTextId, sSelectedTextId).trim();
|
|
1712
|
+
sAriaDescribedByNotSelected = oAppointment.$().attr("aria-describedby").replace(sSelectedTextId, sUnselectedTextId).trim();
|
|
1721
1713
|
|
|
1722
1714
|
if (oAppointment.getSelected()) {
|
|
1723
1715
|
oAppointment.setProperty("selected", false, true); // do not invalidate CalendarRow
|
|
1724
1716
|
oAppointment.$().removeClass("sapUiCalendarAppSel");
|
|
1725
|
-
oAppointment.$().attr("aria-
|
|
1717
|
+
oAppointment.$().attr("aria-describedby", sAriaDescribedByNotSelected);
|
|
1726
1718
|
_removeAllAppointmentSelections(this, bRemoveOldSelection);
|
|
1727
1719
|
} else {
|
|
1728
1720
|
oAppointment.setProperty("selected", true, true); // do not invalidate CalendarRow
|
|
1729
1721
|
oAppointment.$().addClass("sapUiCalendarAppSel");
|
|
1730
|
-
oAppointment.$().attr("aria-
|
|
1722
|
+
oAppointment.$().attr("aria-describedby", sAriaDescribedBySelected);
|
|
1731
1723
|
_removeAllAppointmentSelections(this, bRemoveOldSelection);
|
|
1732
1724
|
}
|
|
1733
1725
|
// removes or adds the selected appointments from this.aSelectedAppointments
|
|
@@ -508,9 +508,14 @@ sap.ui.define([
|
|
|
508
508
|
var sIcon = oAppointment.getIcon();
|
|
509
509
|
var sId = oAppointment.getId();
|
|
510
510
|
var bReducedHeight = oRow._getAppointmentReducedHeight(oAppointmentInfo);
|
|
511
|
+
var bAppointmentSelected = oAppointment.getSelected();
|
|
511
512
|
var mAccProps = {
|
|
512
513
|
role: "listitem",
|
|
513
514
|
labelledby: {value: InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT") + " " + sId + "-Descr", append: true},
|
|
515
|
+
describedby: {value: bAppointmentSelected
|
|
516
|
+
? InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED")
|
|
517
|
+
: InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_UNSELECTED"),
|
|
518
|
+
append: true},
|
|
514
519
|
selected: null
|
|
515
520
|
};
|
|
516
521
|
var iRowCount = oRow._getAppointmentRowCount(oAppointmentInfo, bReducedHeight);
|
|
@@ -532,11 +537,9 @@ sap.ui.define([
|
|
|
532
537
|
oRm.openStart("div", oAppointment);
|
|
533
538
|
oRm.class("sapUiCalendarApp");
|
|
534
539
|
oRm.class("sapUiCalendarAppHeight" + iRowCount);
|
|
535
|
-
|
|
540
|
+
|
|
541
|
+
if (bAppointmentSelected) {
|
|
536
542
|
oRm.class("sapUiCalendarAppSel");
|
|
537
|
-
mAccProps["labelledby"].value = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_SELECTED") + " " + mAccProps["labelledby"].value;
|
|
538
|
-
} else {
|
|
539
|
-
mAccProps["labelledby"].value = InvisibleText.getStaticId("sap.ui.unified", "APPOINTMENT_UNSELECTED") + " " + mAccProps["labelledby"].value;
|
|
540
543
|
}
|
|
541
544
|
|
|
542
545
|
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.
|
|
42
|
+
* @version 1.127.1
|
|
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.
|
|
28
|
+
* @version 1.127.1
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|