@openui5/sap.ui.unified 1.71.44 → 1.71.47
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 +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 +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/CalendarUtils.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 +2 -2
- package/src/sap/ui/unified/calendar/MonthPicker.js +1 -1
- package/src/sap/ui/unified/calendar/MonthRenderer.js +52 -3
- 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_nl.properties +1 -1
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.47",
|
|
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.47"
|
|
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.47</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -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.47
|
|
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.47
|
|
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.47
|
|
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.47
|
|
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.47
|
|
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.47
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -162,7 +162,7 @@ sap.ui.define([
|
|
|
162
162
|
// search Locale for containing "en-US", since sometimes
|
|
163
163
|
// when any user settings have been defined, subtag "sapufmt" is added to the locale name
|
|
164
164
|
// this is described inside sap.ui.core.Configuration file
|
|
165
|
-
if (oLocale && oLocale.getLanguage() === "en" &&
|
|
165
|
+
if (oLocale && oLocale.getLanguage() === "en" && oLocale.getRegion() === "US") {
|
|
166
166
|
/*
|
|
167
167
|
* in US the week starts with Sunday
|
|
168
168
|
* The first week of the year starts with January 1st. But Dec. 31 is still in the last year
|
|
@@ -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.47
|
|
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.47
|
|
67
67
|
*
|
|
68
68
|
* @constructor
|
|
69
69
|
* @public
|
|
@@ -1570,7 +1570,7 @@ sap.ui.define([
|
|
|
1570
1570
|
// Because the date we use to calculate the week number may be in one year and in the same time
|
|
1571
1571
|
// includes days in a new month into a new year, we explicitly changed the week number
|
|
1572
1572
|
// US calendar weeks overlap Jan 1st is always week 1 while Dec 31st is always last week number
|
|
1573
|
-
var bIsRegionUS = oLocale.getLanguage() === "en" &&
|
|
1573
|
+
var bIsRegionUS = oLocale.getLanguage() === "en" && oLocale.getRegion() === "US";
|
|
1574
1574
|
if (oDate.getMonth() === 11 && oEndDate.getMonth() === 0 && bIsRegionUS) {
|
|
1575
1575
|
iWeekNumber = 1;
|
|
1576
1576
|
} else {
|
|
@@ -334,7 +334,9 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
334
334
|
describedby: ""
|
|
335
335
|
},
|
|
336
336
|
bBeforeFirstYear = oDay._bBeforeFirstYear,
|
|
337
|
-
sAriaType = ""
|
|
337
|
+
sAriaType = "",
|
|
338
|
+
oLegend = oHelper.oLegend,
|
|
339
|
+
sNonWorkingDayText;
|
|
338
340
|
|
|
339
341
|
var sYyyymmdd = oMonth._oFormatYyyymmdd.format(oDay.toUTCJSDate(), true);
|
|
340
342
|
var iWeekDay = oDay.getDay();
|
|
@@ -408,6 +410,9 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
408
410
|
if (oDayType.type != CalendarDayType.None) {
|
|
409
411
|
if (oDayType.type === CalendarDayType.NonWorking) {
|
|
410
412
|
oRm.addClass("sapUiCalItemWeekEnd");
|
|
413
|
+
if (this._checkIfNonWorkingLegendItemExist(oLegend)) { // pronounce non working day only if there is a legend associated and a corresponding non-working legend item to it
|
|
414
|
+
sNonWorkingDayText = this._addNonWorkingDayText(mAccProps);
|
|
415
|
+
}
|
|
411
416
|
return;
|
|
412
417
|
}
|
|
413
418
|
oRm.addClass("sapUiCalItem" + oDayType.type);
|
|
@@ -416,7 +421,21 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
416
421
|
oRm.writeAttributeEscaped('title', oDayType.tooltip);
|
|
417
422
|
}
|
|
418
423
|
}
|
|
419
|
-
});
|
|
424
|
+
}.bind(this));
|
|
425
|
+
|
|
426
|
+
if (!sNonWorkingDayText) { // if sNonWorkingDayText exists, it is already included above as specialDate of type NonWorking
|
|
427
|
+
if (this._checkIfNonWorkingLegendItemExist(oLegend)) { // pronounce non working day only if there is a legend associated and a corresponding non-working legend item to it
|
|
428
|
+
if (oHelper.aNonWorkingDays) { // check if there are nonWorkingDays passed and add text to them
|
|
429
|
+
oHelper.aNonWorkingDays.forEach(function (iNonWorkingDay) {
|
|
430
|
+
if (oDay.getDay() === iNonWorkingDay) {
|
|
431
|
+
this._addNonWorkingDayText(mAccProps);
|
|
432
|
+
}
|
|
433
|
+
}.bind(this));
|
|
434
|
+
} else if (oDay.getDay() === oHelper.iWeekendStart || oDay.getDay() === oHelper.iWeekendEnd) { // otherwise add the text to the NonWorkigDays from the locale
|
|
435
|
+
this._addNonWorkingDayText(mAccProps);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
420
439
|
|
|
421
440
|
|
|
422
441
|
//oMonth.getDate() is a public date object, so it is always considered local timezones.
|
|
@@ -451,7 +470,7 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
451
470
|
mAccProps["label"] = mAccProps["label"] + oHelper.oFormatLong.format(oDay.toUTCJSDate(), true);
|
|
452
471
|
|
|
453
472
|
if (sAriaType !== "") {
|
|
454
|
-
CalendarLegendRenderer.addCalendarTypeAccInfo(mAccProps, sAriaType,
|
|
473
|
+
CalendarLegendRenderer.addCalendarTypeAccInfo(mAccProps, sAriaType, oLegend);
|
|
455
474
|
}
|
|
456
475
|
|
|
457
476
|
if (oHelper.sSecondaryCalendarType) {
|
|
@@ -508,6 +527,36 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
|
|
|
508
527
|
|
|
509
528
|
};
|
|
510
529
|
|
|
530
|
+
/**
|
|
531
|
+
* Checks if there is a legend associated to the month and if there is a non-working standard item in it.
|
|
532
|
+
*
|
|
533
|
+
* @param {sap.m.CalendarLegend} oLegend The legend to be checked
|
|
534
|
+
*/
|
|
535
|
+
MonthRenderer._checkIfNonWorkingLegendItemExist = function (oLegend) {
|
|
536
|
+
var bExists;
|
|
537
|
+
if (oLegend) {
|
|
538
|
+
oLegend.getStandardItems().forEach(function (oItem) {
|
|
539
|
+
if (oItem === library.StandardCalendarLegendItem.NonWorkingDay) {
|
|
540
|
+
bExists = true;
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
return bExists;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Includes additional text to the DOM indicating that the day is non-working
|
|
550
|
+
*
|
|
551
|
+
* @param {Object} mAccProps The accessibility properties for the day to be rendered.
|
|
552
|
+
* @returns {string} sText The text for the non-working day from the bundle
|
|
553
|
+
*/
|
|
554
|
+
MonthRenderer._addNonWorkingDayText = function (mAccProps) {
|
|
555
|
+
var sText = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified").getText("LEGEND_NON_WORKING_DAY") + " ";
|
|
556
|
+
mAccProps["label"] += sText;
|
|
557
|
+
return sText;
|
|
558
|
+
};
|
|
559
|
+
|
|
511
560
|
return MonthRenderer;
|
|
512
561
|
|
|
513
562
|
}, /* bExport= */ true);
|
|
@@ -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.47
|
|
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.47
|
|
58
58
|
*
|
|
59
59
|
* @constructor
|
|
60
60
|
* @public
|
|
@@ -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.47",
|
|
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.47
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
89
|
var thisLib = sap.ui.unified;
|
|
@@ -65,7 +65,7 @@ APPOINTMENT=Afspraak
|
|
|
65
65
|
APPOINTMENT_TENTATIVE=Onder voorbehoud
|
|
66
66
|
|
|
67
67
|
#XBUT: File Uploader - browse button text
|
|
68
|
-
FILEUPLOAD_BROWSE=
|
|
68
|
+
FILEUPLOAD_BROWSE=Bladeren...
|
|
69
69
|
|
|
70
70
|
#XACT: File Uploader - ARIA text
|
|
71
71
|
FILEUPLOAD_ACC=Activeren om bestand te selecteren
|