@openui5/sap.ui.unified 1.120.16 → 1.120.18
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 +3 -2
- 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 +6 -6
- 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/MonthRenderer.js +21 -28
- 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.properties +3 -0
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.18",
|
|
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.18"
|
|
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.18</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.18
|
|
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.18
|
|
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.18
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -88,7 +88,7 @@ sap.ui.define([
|
|
|
88
88
|
* @class
|
|
89
89
|
* A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
|
|
90
90
|
* @extends sap.ui.core.Control
|
|
91
|
-
* @version 1.120.
|
|
91
|
+
* @version 1.120.18
|
|
92
92
|
*
|
|
93
93
|
* @constructor
|
|
94
94
|
* @public
|
|
@@ -364,8 +364,9 @@ sap.ui.define([
|
|
|
364
364
|
this._bRTL = Configuration.getRTL();
|
|
365
365
|
this._oRb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified");
|
|
366
366
|
|
|
367
|
+
var pattern = this._oRb.getText("APPOINTMENT_DATE_TIME_DESCRIPTION", [_getLocaleData.call(this).getDatePattern("long"), _getLocaleData.call(this).getTimePattern("medium")]);
|
|
367
368
|
this._oFormatAria = DateFormat.getDateTimeInstance({
|
|
368
|
-
pattern: "EEEE
|
|
369
|
+
pattern: "EEEE " + pattern
|
|
369
370
|
});
|
|
370
371
|
|
|
371
372
|
this._aVisibleAppointments = [];
|
|
@@ -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.18
|
|
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.18
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides control sap.ui.unified.MenuItemBase.
|
|
8
|
-
sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
|
|
9
|
-
function(Element, library, IconPool) {
|
|
8
|
+
sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool', 'sap/m/Image'],
|
|
9
|
+
function(Element, library, IconPool, Image) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
|
|
|
23
23
|
* @extends sap.ui.core.Element
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.120.
|
|
26
|
+
* @version 1.120.18
|
|
27
27
|
* @since 1.21.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
@@ -160,11 +160,11 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/core/IconPool'],
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
|
|
163
|
-
MenuItemBase.prototype._getIcon = function(
|
|
163
|
+
MenuItemBase.prototype._getIcon = function() {
|
|
164
164
|
return IconPool.createControlByURI({
|
|
165
|
-
src:
|
|
165
|
+
src: this.getIcon(),
|
|
166
166
|
useIconTooltip: false
|
|
167
|
-
});
|
|
167
|
+
}, Image);
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
MenuItemBase.prototype.onsaphide = MenuItemBase.prototype.onsapshow;
|
|
@@ -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.18
|
|
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.18
|
|
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.18
|
|
83
83
|
*
|
|
84
84
|
* @constructor
|
|
85
85
|
* @public
|
|
@@ -398,8 +398,7 @@ sap.ui.define([
|
|
|
398
398
|
},
|
|
399
399
|
bBeforeFirstYear = oDay._bBeforeFirstYear,
|
|
400
400
|
sAriaType = "",
|
|
401
|
-
oLegend = oHelper.oLegend
|
|
402
|
-
sNonWorkingDayText;
|
|
401
|
+
oLegend = oHelper.oLegend;
|
|
403
402
|
|
|
404
403
|
var sYyyymmdd = oMonth._oFormatYyyymmdd.format(oDay.toUTCJSDate(), true);
|
|
405
404
|
var iWeekDay = oDay.getDay();
|
|
@@ -409,6 +408,10 @@ sap.ui.define([
|
|
|
409
408
|
var bEnabled = oMonth._checkDateEnabled(oDay);
|
|
410
409
|
var i = 0;
|
|
411
410
|
var bShouldBeMarkedAsSpecialDate = oMonth._isSpecialDateMarkerEnabled(oDay);
|
|
411
|
+
|
|
412
|
+
const sNonWorkingDayText = oMonth._oUnifiedRB.getText("LEGEND_NON_WORKING_DAY");
|
|
413
|
+
const aTooltipTexts = [];
|
|
414
|
+
|
|
412
415
|
// Days before 0001.01.01 should be disabled.
|
|
413
416
|
if (bBeforeFirstYear) {
|
|
414
417
|
bEnabled = false;
|
|
@@ -429,7 +432,7 @@ sap.ui.define([
|
|
|
429
432
|
}
|
|
430
433
|
if (oDay.isSame(oHelper.oToday)) {
|
|
431
434
|
oRm.class("sapUiCalItemNow");
|
|
432
|
-
|
|
435
|
+
aTooltipTexts.push(oMonth._oUnifiedRB.getText("LEGEND_TODAY"));
|
|
433
436
|
}
|
|
434
437
|
|
|
435
438
|
if (iSelected > 0) {
|
|
@@ -461,8 +464,8 @@ sap.ui.define([
|
|
|
461
464
|
aDayTypes.forEach(function(oDayType) {
|
|
462
465
|
if (oDayType.type !== CalendarDayType.None) {
|
|
463
466
|
if (oDayType.type === CalendarDayType.NonWorking) {
|
|
467
|
+
aTooltipTexts.push(sNonWorkingDayText);
|
|
464
468
|
oRm.class("sapUiCalItemWeekEnd");
|
|
465
|
-
sNonWorkingDayText = this._addNonWorkingDayText(mAccProps);
|
|
466
469
|
return;
|
|
467
470
|
}
|
|
468
471
|
|
|
@@ -470,26 +473,28 @@ sap.ui.define([
|
|
|
470
473
|
oRm.class("sapUiCalItem" + oDayType.type);
|
|
471
474
|
sAriaType = oDayType.type;
|
|
472
475
|
if (oDayType.tooltip) {
|
|
473
|
-
|
|
476
|
+
aTooltipTexts.push(oDayType.tooltip);
|
|
474
477
|
}
|
|
475
478
|
}
|
|
476
479
|
}
|
|
477
|
-
}
|
|
480
|
+
});
|
|
478
481
|
}
|
|
479
482
|
|
|
480
483
|
|
|
481
|
-
if (
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
this._addNonWorkingDayText(mAccProps);
|
|
490
|
-
}
|
|
484
|
+
if (oHelper.aNonWorkingDays) { // check if there are nonWorkingDays passed and add text to them
|
|
485
|
+
oHelper.aNonWorkingDays.forEach(function (iNonWorkingDay) {
|
|
486
|
+
if (oDay.getDay() === iNonWorkingDay) {
|
|
487
|
+
aTooltipTexts.push(sNonWorkingDayText);
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
} else if ((oDay.getDay() === oHelper.iWeekendStart || oDay.getDay() === oHelper.iWeekendEnd)) { // otherwise add the text to the NonWorkigDays from the locale
|
|
491
|
+
aTooltipTexts.push(sNonWorkingDayText);
|
|
491
492
|
}
|
|
492
493
|
|
|
494
|
+
if (aTooltipTexts.length) {
|
|
495
|
+
const aTooltips = aTooltipTexts.filter((sText, iPos) => aTooltipTexts.indexOf(sText) === iPos );
|
|
496
|
+
oRm.attr('title', aTooltips.join(" "));
|
|
497
|
+
}
|
|
493
498
|
|
|
494
499
|
//oMonth.getDate() is a public date object, so it is always considered local timezones.
|
|
495
500
|
if (((oMonth.getParent() && oMonth.getParent().getMetadata().getName() === "sap.ui.unified.CalendarOneMonthInterval")
|
|
@@ -577,18 +582,6 @@ sap.ui.define([
|
|
|
577
582
|
|
|
578
583
|
};
|
|
579
584
|
|
|
580
|
-
/**
|
|
581
|
-
* Includes additional text to the DOM indicating that the day is non-working
|
|
582
|
-
*
|
|
583
|
-
* @param {Object} mAccProps The accessibility properties for the day to be rendered.
|
|
584
|
-
* @returns {string} sText The text for the non-working day from the bundle
|
|
585
|
-
*/
|
|
586
|
-
MonthRenderer._addNonWorkingDayText = function (mAccProps) {
|
|
587
|
-
var sText = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified").getText("LEGEND_NON_WORKING_DAY") + " ";
|
|
588
|
-
mAccProps["label"] += sText;
|
|
589
|
-
return sText;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
585
|
MonthRenderer._renderWeekNumber = function(oRm, oDay, oHelper, oMonth) {
|
|
593
586
|
var iWeekNumber = oMonth._calculateWeekNumber(oDay);
|
|
594
587
|
var sId = oHelper.sId + "-WNum-" + iWeekNumber;
|
|
@@ -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.18
|
|
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.18
|
|
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.18
|
|
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.18",
|
|
38
38
|
dependencies : ["sap.ui.core"],
|
|
39
39
|
designtime: "sap/ui/unified/designtime/library.designtime",
|
|
40
40
|
types: [
|
|
@@ -85,6 +85,9 @@ APPOINTMENT=Appointment
|
|
|
85
85
|
#XACT: Aria information for tentative appointment
|
|
86
86
|
APPOINTMENT_TENTATIVE=Tentative
|
|
87
87
|
|
|
88
|
+
#XACT: Translation of the word 'at' in the appointment describing text: Wednesday 1 January 2024 at 1:00:00 AM
|
|
89
|
+
APPOINTMENT_DATE_TIME_DESCRIPTION={0}\'' at \''{1}
|
|
90
|
+
|
|
88
91
|
#XBUT: File Uploader - browse button text
|
|
89
92
|
FILEUPLOAD_BROWSE=Browse...
|
|
90
93
|
|