@openui5/sap.ui.unified 1.143.0 → 1.144.0
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 +2 -2
- package/src/sap/ui/unified/Calendar.js +34 -7
- package/src/sap/ui/unified/CalendarAppointment.js +2 -2
- package/src/sap/ui/unified/CalendarDateInterval.js +2 -2
- package/src/sap/ui/unified/CalendarDateIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarLegend.js +2 -2
- package/src/sap/ui/unified/CalendarLegendItem.js +2 -2
- package/src/sap/ui/unified/CalendarLegendRenderer.js +2 -2
- package/src/sap/ui/unified/CalendarMonthInterval.js +2 -2
- package/src/sap/ui/unified/CalendarMonthIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarOneMonthInterval.js +2 -2
- package/src/sap/ui/unified/CalendarOneMonthIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarRow.js +2 -2
- package/src/sap/ui/unified/CalendarRowRenderer.js +2 -2
- package/src/sap/ui/unified/CalendarTimeInterval.js +2 -2
- package/src/sap/ui/unified/CalendarTimeIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarWeekInterval.js +2 -2
- package/src/sap/ui/unified/ColorPicker.js +64 -7
- package/src/sap/ui/unified/ColorPickerDisplayMode.js +1 -1
- package/src/sap/ui/unified/ColorPickerHelper.js +1 -1
- package/src/sap/ui/unified/ColorPickerPopover.js +2 -2
- package/src/sap/ui/unified/ColorPickerRenderer.js +1 -1
- package/src/sap/ui/unified/ContentSwitcher.js +2 -2
- package/src/sap/ui/unified/ContentSwitcherRenderer.js +1 -1
- package/src/sap/ui/unified/Currency.js +3 -3
- package/src/sap/ui/unified/CurrencyRenderer.js +3 -3
- package/src/sap/ui/unified/DateRange.js +2 -2
- package/src/sap/ui/unified/DateTypeRange.js +2 -2
- package/src/sap/ui/unified/FileUploader.js +776 -344
- package/src/sap/ui/unified/FileUploaderHelper.js +1 -1
- package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +1 -1
- package/src/sap/ui/unified/FileUploaderParameter.js +2 -2
- package/src/sap/ui/unified/FileUploaderRenderer.js +206 -54
- package/src/sap/ui/unified/FileUploaderXHRSettings.js +2 -2
- package/src/sap/ui/unified/Menu.js +3 -3
- package/src/sap/ui/unified/MenuItem.js +3 -3
- package/src/sap/ui/unified/MenuItemBase.js +2 -2
- package/src/sap/ui/unified/MenuItemGroup.js +2 -2
- package/src/sap/ui/unified/MenuRenderer.js +2 -2
- package/src/sap/ui/unified/MenuTextFieldItem.js +2 -2
- package/src/sap/ui/unified/NonWorkingPeriod.js +2 -2
- package/src/sap/ui/unified/RecurringNonWorkingPeriod.js +2 -2
- package/src/sap/ui/unified/Shell.js +2 -2
- package/src/sap/ui/unified/ShellHeadItem.js +2 -2
- package/src/sap/ui/unified/ShellHeadUserItem.js +2 -2
- package/src/sap/ui/unified/ShellHeader.js +1 -1
- package/src/sap/ui/unified/ShellLayout.js +2 -2
- package/src/sap/ui/unified/ShellLayoutRenderer.js +1 -1
- package/src/sap/ui/unified/ShellOverlay.js +2 -2
- package/src/sap/ui/unified/ShellOverlayRenderer.js +1 -1
- package/src/sap/ui/unified/ShellRenderer.js +1 -1
- package/src/sap/ui/unified/SplitContainer.js +2 -2
- package/src/sap/ui/unified/SplitContainerRenderer.js +1 -1
- package/src/sap/ui/unified/TimeRange.js +2 -2
- package/src/sap/ui/unified/calendar/CalendarDate.js +1 -1
- package/src/sap/ui/unified/calendar/CalendarUtils.js +1 -1
- package/src/sap/ui/unified/calendar/CustomMonthPicker.js +1 -1
- package/src/sap/ui/unified/calendar/CustomYearPicker.js +1 -1
- package/src/sap/ui/unified/calendar/DatesRow.js +2 -2
- package/src/sap/ui/unified/calendar/DatesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/Header.js +9 -3
- package/src/sap/ui/unified/calendar/HeaderRenderer.js +49 -18
- package/src/sap/ui/unified/calendar/IndexPicker.js +2 -2
- package/src/sap/ui/unified/calendar/IndexPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/Month.js +4 -11
- package/src/sap/ui/unified/calendar/MonthPicker.js +2 -2
- package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/MonthRenderer.js +39 -10
- package/src/sap/ui/unified/calendar/MonthsRow.js +5 -5
- package/src/sap/ui/unified/calendar/MonthsRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +2 -2
- package/src/sap/ui/unified/calendar/OneMonthDatesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/RecurrenceUtils.js +3 -11
- package/src/sap/ui/unified/calendar/TimesRow.js +4 -4
- package/src/sap/ui/unified/calendar/TimesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/YearPicker.js +2 -2
- package/src/sap/ui/unified/calendar/YearPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/YearRangePicker.js +3 -3
- package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +1 -1
- package/src/sap/ui/unified/designtime/Calendar.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/CalendarDateInterval.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/CalendarLegend.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/Currency.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/FileUploader.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/library.designtime.js +1 -1
- package/src/sap/ui/unified/library.js +3 -3
- package/src/sap/ui/unified/library.support.js +1 -1
- package/src/sap/ui/unified/messagebundle.properties +69 -9
- package/src/sap/ui/unified/messagebundle_ar.properties +4 -2
- package/src/sap/ui/unified/messagebundle_bg.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ca.properties +4 -2
- package/src/sap/ui/unified/messagebundle_cnr.properties +4 -2
- package/src/sap/ui/unified/messagebundle_cs.properties +4 -2
- package/src/sap/ui/unified/messagebundle_cy.properties +4 -2
- package/src/sap/ui/unified/messagebundle_da.properties +4 -2
- package/src/sap/ui/unified/messagebundle_de.properties +4 -2
- package/src/sap/ui/unified/messagebundle_el.properties +4 -2
- package/src/sap/ui/unified/messagebundle_en.properties +4 -2
- package/src/sap/ui/unified/messagebundle_en_GB.properties +4 -2
- package/src/sap/ui/unified/messagebundle_es.properties +4 -2
- package/src/sap/ui/unified/messagebundle_es_MX.properties +4 -2
- package/src/sap/ui/unified/messagebundle_et.properties +2 -0
- package/src/sap/ui/unified/messagebundle_fi.properties +4 -2
- package/src/sap/ui/unified/messagebundle_fr.properties +4 -2
- package/src/sap/ui/unified/messagebundle_fr_CA.properties +4 -2
- package/src/sap/ui/unified/messagebundle_hi.properties +4 -2
- package/src/sap/ui/unified/messagebundle_hr.properties +4 -2
- package/src/sap/ui/unified/messagebundle_hu.properties +4 -2
- package/src/sap/ui/unified/messagebundle_id.properties +4 -2
- package/src/sap/ui/unified/messagebundle_it.properties +4 -2
- package/src/sap/ui/unified/messagebundle_iw.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ja.properties +4 -2
- package/src/sap/ui/unified/messagebundle_kk.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ko.properties +5 -3
- package/src/sap/ui/unified/messagebundle_lt.properties +4 -2
- package/src/sap/ui/unified/messagebundle_lv.properties +2 -0
- package/src/sap/ui/unified/messagebundle_mk.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ms.properties +4 -2
- package/src/sap/ui/unified/messagebundle_nl.properties +4 -2
- package/src/sap/ui/unified/messagebundle_no.properties +4 -2
- package/src/sap/ui/unified/messagebundle_pl.properties +3 -1
- package/src/sap/ui/unified/messagebundle_pt.properties +4 -2
- package/src/sap/ui/unified/messagebundle_pt_PT.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ro.properties +4 -2
- package/src/sap/ui/unified/messagebundle_ru.properties +4 -2
- package/src/sap/ui/unified/messagebundle_sh.properties +4 -2
- package/src/sap/ui/unified/messagebundle_sk.properties +4 -2
- package/src/sap/ui/unified/messagebundle_sl.properties +4 -2
- package/src/sap/ui/unified/messagebundle_sr.properties +4 -2
- package/src/sap/ui/unified/messagebundle_sv.properties +4 -2
- package/src/sap/ui/unified/messagebundle_th.properties +6 -4
- package/src/sap/ui/unified/messagebundle_tr.properties +4 -2
- package/src/sap/ui/unified/messagebundle_uk.properties +4 -2
- package/src/sap/ui/unified/messagebundle_vi.properties +4 -2
- package/src/sap/ui/unified/messagebundle_zh_CN.properties +4 -2
- package/src/sap/ui/unified/messagebundle_zh_TW.properties +4 -2
- package/src/sap/ui/unified/rules/FileUploader.support.js +1 -1
- package/src/sap/ui/unified/themes/base/Calendar.less +167 -123
- package/src/sap/ui/unified/themes/base/ColorPicker.less +204 -113
- package/src/sap/ui/unified/themes/base/FileUploader.less +217 -36
- package/src/sap/ui/unified/themes/base/ShellHeader.less +58 -69
- package/src/sap/ui/unified/themes/base/ShellLayout.less +5 -23
- package/src/sap/ui/unified/themes/base/ShellOverlay.less +19 -40
- package/src/sap/ui/unified/themes/base/SplitContainer.less +15 -20
- package/src/sap/ui/unified/themes/base/library.source.less +1 -1
- package/src/sap/ui/unified/themes/sap_hcb/library.source.less +1 -1
package/THIRDPARTY.txt
CHANGED
|
@@ -202,7 +202,7 @@ License: Apache-2.0
|
|
|
202
202
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
203
203
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
|
|
204
204
|
|
|
205
|
-
Component: Unicode Common Locale Data Repository, version:
|
|
205
|
+
Component: Unicode Common Locale Data Repository, version: 48.0.0
|
|
206
206
|
Copyright: 1991-2024 Unicode, Inc.
|
|
207
207
|
License: LicenseRef-Unicode-3.0
|
|
208
208
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/LicenseRef-Unicode-3.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.144.0",
|
|
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/UI5/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.144.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.unified</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright
|
|
7
|
+
* (c) Copyright 2026 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.144.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
//Provides control sap.ui.unified.Calendar.
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
* Basic Calendar.
|
|
81
81
|
* This calendar is used for DatePickers
|
|
82
82
|
* @extends sap.ui.core.Control
|
|
83
|
-
* @version 1.
|
|
83
|
+
* @version 1.144.0
|
|
84
84
|
*
|
|
85
85
|
* @constructor
|
|
86
86
|
* @public
|
|
@@ -467,6 +467,7 @@ sap.ui.define([
|
|
|
467
467
|
// Set keyboard shortcuts for Calendar-specific usage
|
|
468
468
|
oHeader.setProperty("_keyShortcutButton1", this._oResourceBundle.getText("CALENDAR_HEADER_MONTH_BUTTON_SHORTCUT"));
|
|
469
469
|
oHeader.setProperty("_keyShortcutButton2", this._oResourceBundle.getText("CALENDAR_HEADER_YEAR_BUTTON_SHORTCUT"));
|
|
470
|
+
oHeader.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
|
|
470
471
|
|
|
471
472
|
this._afterHeaderRenderAdjustCSS = this._createOnAfterRenderingDelegate(oHeader);
|
|
472
473
|
|
|
@@ -1610,6 +1611,7 @@ sap.ui.define([
|
|
|
1610
1611
|
oMonthPicker._setDate(oFocusedDate);
|
|
1611
1612
|
oMonthPicker.invalidate();
|
|
1612
1613
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH_PICKER);
|
|
1614
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH_PICKER);
|
|
1613
1615
|
break;
|
|
1614
1616
|
|
|
1615
1617
|
case 2: // year picker
|
|
@@ -1626,7 +1628,6 @@ sap.ui.define([
|
|
|
1626
1628
|
break;
|
|
1627
1629
|
// no default
|
|
1628
1630
|
}
|
|
1629
|
-
|
|
1630
1631
|
};
|
|
1631
1632
|
|
|
1632
1633
|
/**
|
|
@@ -1655,7 +1656,7 @@ sap.ui.define([
|
|
|
1655
1656
|
this._addMonthFocusDelegate();
|
|
1656
1657
|
break;
|
|
1657
1658
|
|
|
1658
|
-
|
|
1659
|
+
case 1: // month picker
|
|
1659
1660
|
oFocusedDate.setYear(oFocusedDate.getYear() + 1);
|
|
1660
1661
|
this._updateHeadersYearPrimaryText(this._oYearFormat.format(oFocusedDate.toUTCJSDate(), true));
|
|
1661
1662
|
this._updateHeadersYearAdditionalTextHelper();
|
|
@@ -1666,6 +1667,7 @@ sap.ui.define([
|
|
|
1666
1667
|
oMonthPicker._setDate(oFocusedDate);
|
|
1667
1668
|
oMonthPicker.invalidate();
|
|
1668
1669
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH_PICKER);
|
|
1670
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH_PICKER);
|
|
1669
1671
|
break;
|
|
1670
1672
|
|
|
1671
1673
|
case 2: // year picker
|
|
@@ -1711,11 +1713,12 @@ sap.ui.define([
|
|
|
1711
1713
|
* @private
|
|
1712
1714
|
*/
|
|
1713
1715
|
Calendar.prototype._handleCurrentDate = function() {
|
|
1714
|
-
|
|
1716
|
+
const oNow = UI5Date.getInstance(),
|
|
1715
1717
|
oMaxDate = this.getMaxDate(),
|
|
1716
1718
|
oMinDate = this.getMinDate();
|
|
1717
1719
|
|
|
1718
1720
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
|
|
1721
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH);
|
|
1719
1722
|
|
|
1720
1723
|
if (oMaxDate && oMaxDate.getTime() < oNow.getTime()) {
|
|
1721
1724
|
this.focusDate(oMaxDate);
|
|
@@ -1726,6 +1729,21 @@ sap.ui.define([
|
|
|
1726
1729
|
}
|
|
1727
1730
|
};
|
|
1728
1731
|
|
|
1732
|
+
/**
|
|
1733
|
+
* Sets the _currentPicker property on the header aggregation, if available.
|
|
1734
|
+
*
|
|
1735
|
+
* @param {string} sPicker The picker type to set (e.g. from CURRENT_PICKERS).
|
|
1736
|
+
* @private
|
|
1737
|
+
*/
|
|
1738
|
+
Calendar.prototype._setHeaderCurrentPicker = function(sPicker) {
|
|
1739
|
+
const oHeader = this.getAggregation("header");
|
|
1740
|
+
try {
|
|
1741
|
+
oHeader.setProperty("_currentPicker", sPicker);
|
|
1742
|
+
} catch (e) {
|
|
1743
|
+
Log.warning("Property '_currentPicker' could not be set on the header aggregation.");
|
|
1744
|
+
}
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1729
1747
|
Calendar.prototype._getYearString = function () {
|
|
1730
1748
|
var oYearPicker = this._getYearPicker(),
|
|
1731
1749
|
oYearPickerDomRef = oYearPicker.getDomRef(),
|
|
@@ -1842,6 +1860,7 @@ sap.ui.define([
|
|
|
1842
1860
|
|
|
1843
1861
|
Calendar.prototype._closePickers = function () {
|
|
1844
1862
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
|
|
1863
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH);
|
|
1845
1864
|
// show again hidden month button
|
|
1846
1865
|
this._togglePrevNext(this._getFocusedDate(), true);
|
|
1847
1866
|
|
|
@@ -1985,6 +2004,7 @@ sap.ui.define([
|
|
|
1985
2004
|
this._updateMonthButtonVisibility();
|
|
1986
2005
|
|
|
1987
2006
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH_PICKER);
|
|
2007
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH_PICKER);
|
|
1988
2008
|
|
|
1989
2009
|
if (this._bActionTriggeredFromSecondHeader) {
|
|
1990
2010
|
oSecondDate.setDate(1);
|
|
@@ -2022,10 +2042,11 @@ sap.ui.define([
|
|
|
2022
2042
|
* @private
|
|
2023
2043
|
*/
|
|
2024
2044
|
Calendar.prototype._showYearPicker = function () {
|
|
2025
|
-
|
|
2045
|
+
const oDate = this._getFocusedDate(),
|
|
2026
2046
|
oYearPicker = this._getYearPicker();
|
|
2027
2047
|
|
|
2028
2048
|
this.setProperty("_currentPicker", CURRENT_PICKERS.YEAR_PICKER);
|
|
2049
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.YEAR_PICKER);
|
|
2029
2050
|
|
|
2030
2051
|
oYearPicker.setDate(oDate.toLocalJSDate());
|
|
2031
2052
|
|
|
@@ -2250,6 +2271,7 @@ sap.ui.define([
|
|
|
2250
2271
|
this._showMonthPicker();
|
|
2251
2272
|
} else {
|
|
2252
2273
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
|
|
2274
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH);
|
|
2253
2275
|
this._addMonthFocusDelegate();
|
|
2254
2276
|
}
|
|
2255
2277
|
};
|
|
@@ -2422,6 +2444,7 @@ sap.ui.define([
|
|
|
2422
2444
|
oRangeMidDate = CalendarDate.fromLocalJSDate(oYearPicker.getFirstRenderedDate(), this._getPrimaryCalendarType());
|
|
2423
2445
|
|
|
2424
2446
|
this.setProperty("_currentPicker", CURRENT_PICKERS.YEAR_RANGE_PICKER);
|
|
2447
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.YEAR_RANGE_PICKER);
|
|
2425
2448
|
|
|
2426
2449
|
oYearRangePicker.getColumns() % 2 !== 0 ?
|
|
2427
2450
|
oRangeMidDate.setYear(oRangeMidDate.getYear() + Math.floor(oYearRangePicker.getRangeSize() / 2)) :
|
|
@@ -2609,6 +2632,7 @@ sap.ui.define([
|
|
|
2609
2632
|
|
|
2610
2633
|
Calendar.prototype._updateHeadersYearPrimaryText = function (sFirstHeaderYear, sSecondHeaderYear) {
|
|
2611
2634
|
var oYearPicker = this._getYearPicker(),
|
|
2635
|
+
oMonthPicker = this._getMonthPicker(),
|
|
2612
2636
|
oHeader = this.getAggregation("header"),
|
|
2613
2637
|
oSecondMonthHeader = this.getAggregation("secondMonthHeader"),
|
|
2614
2638
|
sFirstHeaderText = sFirstHeaderYear,
|
|
@@ -2666,6 +2690,9 @@ sap.ui.define([
|
|
|
2666
2690
|
oHeader.setProperty("_tooltipButton4", sYearRangeTooltip);
|
|
2667
2691
|
oHeader.setProperty("_keyShortcutButton4", sYearRangeShortcut);
|
|
2668
2692
|
oHeader.setProperty("_descriptionButton4", sYearRangeLabel);
|
|
2693
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.YEAR_PICKER);
|
|
2694
|
+
} else if (this._iMode === 1 && oMonthPicker) {
|
|
2695
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH_PICKER);
|
|
2669
2696
|
} else {
|
|
2670
2697
|
// Set properties for button4 when not in year picker mode (always set accessibility properties when button4 is used)
|
|
2671
2698
|
oHeader.setProperty("_tooltipButton4", sSecondYearTooltip);
|
|
@@ -2938,7 +2965,7 @@ sap.ui.define([
|
|
|
2938
2965
|
this._bNamesLengthChecked = true;
|
|
2939
2966
|
|
|
2940
2967
|
this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
|
|
2941
|
-
|
|
2968
|
+
this._setHeaderCurrentPicker(CURRENT_PICKERS.MONTH);
|
|
2942
2969
|
if (!this._bLongMonth) {
|
|
2943
2970
|
// update short month name (long name used by default)
|
|
2944
2971
|
aMonths = this.getAggregation("month");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
*
|
|
44
44
|
* Applications could inherit from this element to add own fields.
|
|
45
45
|
* @extends sap.ui.unified.DateTypeRange
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.144.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.144.0
|
|
63
63
|
*
|
|
64
64
|
* @constructor
|
|
65
65
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.ui.core.Control
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.144.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
|
|
|
21
21
|
* @class
|
|
22
22
|
* Item to be displayed in a CalendarLegend.
|
|
23
23
|
* @extends sap.ui.core.Element
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.144.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -92,7 +92,7 @@ sap.ui.define(['sap/ui/core/InvisibleText', "sap/ui/core/Lib", "sap/ui/unified/l
|
|
|
92
92
|
*
|
|
93
93
|
* @param {sap.ui.core.RenderManager} oRm the RenderManager that can be used for writing to the render output buffer
|
|
94
94
|
* @param {string} sClass name of the CSS class used for this item
|
|
95
|
-
* @param {sap.ui.unified.
|
|
95
|
+
* @param {sap.ui.unified.CalendarLegendItem} oItem item element
|
|
96
96
|
* @param {string[]} aColorClasses Css classes to be added to the color bullet item in front of the legend item
|
|
97
97
|
*/
|
|
98
98
|
CalendarLegendRenderer.renderLegendItem = function(oRm, sClass, oItem, aColorClasses, iIndex, iCount) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.144.0
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.144.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* @class
|
|
85
85
|
* A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
|
|
86
86
|
* @extends sap.ui.core.Control
|
|
87
|
-
* @version 1.
|
|
87
|
+
* @version 1.144.0
|
|
88
88
|
*
|
|
89
89
|
* @constructor
|
|
90
90
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
oRm.style("height", sHeight);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// var rb =
|
|
94
|
+
// var rb = Lib.getResourceBundleFor("sap.ui.unified");
|
|
95
95
|
oRm.openEnd(); // div element
|
|
96
96
|
|
|
97
97
|
this.renderAppointmentsRow(oRm, oRow, aTypes);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
* @class
|
|
73
73
|
* Calendar with granularity of time items displayed in one line.
|
|
74
74
|
* @extends sap.ui.core.Control
|
|
75
|
-
* @version 1.
|
|
75
|
+
* @version 1.144.0
|
|
76
76
|
*
|
|
77
77
|
* @constructor
|
|
78
78
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.144.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -18,6 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
"sap/ui/layout/HorizontalLayout",
|
|
19
19
|
"sap/ui/core/theming/Parameters",
|
|
20
20
|
"sap/ui/core/InvisibleText",
|
|
21
|
+
"sap/ui/core/InvisibleMessage",
|
|
21
22
|
"sap/ui/Device",
|
|
22
23
|
"sap/ui/core/library",
|
|
23
24
|
"./ColorPickerRenderer",
|
|
@@ -38,6 +39,7 @@ sap.ui.define([
|
|
|
38
39
|
HLayout,
|
|
39
40
|
Parameters,
|
|
40
41
|
InvisibleText,
|
|
42
|
+
InvisibleMessage,
|
|
41
43
|
Device,
|
|
42
44
|
coreLibrary,
|
|
43
45
|
ColorPickerRenderer,
|
|
@@ -51,7 +53,8 @@ sap.ui.define([
|
|
|
51
53
|
var ValueState = coreLibrary.ValueState,
|
|
52
54
|
// shortcut for sap.ui.unified.ColorPickerMode & sap.ui.unified.ColorPickerDisplayMode
|
|
53
55
|
ColorPickerMode = Library.ColorPickerMode,
|
|
54
|
-
ColorPickerDisplayMode = Library.ColorPickerDisplayMode
|
|
56
|
+
ColorPickerDisplayMode = Library.ColorPickerDisplayMode,
|
|
57
|
+
InvisibleMessageMode = coreLibrary.InvisibleMessageMode;
|
|
55
58
|
|
|
56
59
|
/**
|
|
57
60
|
* Constructor for a new <code>ColorPicker</code>.
|
|
@@ -69,7 +72,7 @@ sap.ui.define([
|
|
|
69
72
|
* @extends sap.ui.core.Control
|
|
70
73
|
*
|
|
71
74
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
75
|
+
* @version 1.144.0
|
|
73
76
|
*
|
|
74
77
|
* @constructor
|
|
75
78
|
* @public
|
|
@@ -765,6 +768,9 @@ sap.ui.define([
|
|
|
765
768
|
// Control container div
|
|
766
769
|
oRm.openStart("div", oControl);
|
|
767
770
|
oRm.class(CONSTANTS.CPBoxClass);
|
|
771
|
+
oRm.accessibilityState({
|
|
772
|
+
role: "presentation"
|
|
773
|
+
});
|
|
768
774
|
oRm.openEnd();
|
|
769
775
|
|
|
770
776
|
// Handle
|
|
@@ -2520,14 +2526,61 @@ sap.ui.define([
|
|
|
2520
2526
|
return oGrid;
|
|
2521
2527
|
};
|
|
2522
2528
|
|
|
2529
|
+
/**
|
|
2530
|
+
* Returns visible color mode (RGB, HSL or Hex) that should be displayed next.
|
|
2531
|
+
* @returns {string} visible color mode
|
|
2532
|
+
*/
|
|
2533
|
+
ColorPicker.prototype._getNextVisibleColorMode = function() {
|
|
2534
|
+
if (!Device.system.phone) {
|
|
2535
|
+
return this.bPressed ? "RGB" : this.getMode();
|
|
2536
|
+
} else {
|
|
2537
|
+
return this.sVisibleFiled;
|
|
2538
|
+
}
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Returns announcement text for the color value based on the current visible color mode.
|
|
2543
|
+
* @param {string} sMode current visible color mode
|
|
2544
|
+
* @returns {string} announcement text for the color value
|
|
2545
|
+
*/
|
|
2546
|
+
ColorPicker.prototype._getColorFieldsAnnouncementText = function(sMode) {
|
|
2547
|
+
let sText = "";
|
|
2548
|
+
|
|
2549
|
+
switch (sMode) {
|
|
2550
|
+
case "RGB":
|
|
2551
|
+
sText = `${oRb.getText("COLORPICKER_RED")} ${this.oRedField.getValue()}, `
|
|
2552
|
+
+ `${oRb.getText("COLORPICKER_GREEN")} ${this.oGreenField.getValue()}, `
|
|
2553
|
+
+ `${oRb.getText("COLORPICKER_BLUE")} ${this.oBlueField.getValue()}, `
|
|
2554
|
+
+ `${oRb.getText("COLORPICKER_ALPHA")} ${this.oAlphaField.getValue()}`;
|
|
2555
|
+
break;
|
|
2556
|
+
case "HSL":
|
|
2557
|
+
sText = `${oRb.getText("COLORPICKER_HUE")} ${this.oHueField.getValue()}, `
|
|
2558
|
+
+ `${oRb.getText("COLORPICKER_SAT")} ${this.oSatField.getValue()} ${oRb.getText("COLORPICKER_PERCENTAGE")}, `
|
|
2559
|
+
+ `${oRb.getText("COLORPICKER_LIGHTNESS")} ${this.oLitField.getValue()} ${oRb.getText("COLORPICKER_PERCENTAGE")}, `
|
|
2560
|
+
+ `${oRb.getText("COLORPICKER_ALPHA")} ${this.oAlphaField2.getValue()}`;
|
|
2561
|
+
break;
|
|
2562
|
+
case "HSV":
|
|
2563
|
+
sText = `${oRb.getText("COLORPICKER_HUE")} ${this.oHueField.getValue()}, `
|
|
2564
|
+
+ `${oRb.getText("COLORPICKER_SAT")} ${this.oSatField.getValue()} ${oRb.getText("COLORPICKER_PERCENTAGE")}, `
|
|
2565
|
+
+ `${oRb.getText("COLORPICKER_VALUE")} ${this.oValField.getValue()}, `
|
|
2566
|
+
+ `${oRb.getText("COLORPICKER_ALPHA")} ${this.oAlphaField2.getValue()}`;
|
|
2567
|
+
break;
|
|
2568
|
+
case "Hex":
|
|
2569
|
+
sText = `${oRb.getText("COLORPICKER_HEX")} ${this.oHexField.getValue()}`;
|
|
2570
|
+
break;
|
|
2571
|
+
default:
|
|
2572
|
+
break;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
return oRb.getText("COLORPICKER_COLOR_MODE_CHANGED", [sMode, sText]);
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2523
2578
|
/**
|
|
2524
2579
|
* Creates the needed elements for unified.ColorPicker
|
|
2525
2580
|
* @param {string} sId
|
|
2526
2581
|
* @private
|
|
2527
2582
|
*/
|
|
2528
2583
|
ColorPicker.prototype._createUnifiedColorPicker = function(sId) {
|
|
2529
|
-
var that = this;
|
|
2530
|
-
|
|
2531
2584
|
this.oRbRGB = this.oColorPickerHelper.factory.createRadioButtonItem({tooltip: oRb.getText("COLORPICKER_SELECT_RGB_TOOLTIP")});
|
|
2532
2585
|
this.oRbRGB.addStyleClass("sapUiCPRB");
|
|
2533
2586
|
this.oRbHSLV = this.oColorPickerHelper.factory.createRadioButtonItem({tooltip: oRb.getText("COLORPICKER_SELECT_HSL_TOOLTIP")});
|
|
@@ -2536,8 +2589,12 @@ sap.ui.define([
|
|
|
2536
2589
|
type: Device.system.phone ? "Default" : "Transparent",
|
|
2537
2590
|
tooltip: oRb.getText("COLORPICKER_TOGGLE_BTN_TOOLTIP"),
|
|
2538
2591
|
icon: "sap-icon://source-code",
|
|
2539
|
-
press:
|
|
2540
|
-
|
|
2592
|
+
press: () => {
|
|
2593
|
+
const oInvisibleMessage = InvisibleMessage.getInstance(),
|
|
2594
|
+
sAnnouncementText = this._getColorFieldsAnnouncementText(this._getNextVisibleColorMode());
|
|
2595
|
+
|
|
2596
|
+
this._toggleFields();
|
|
2597
|
+
oInvisibleMessage.announce(sAnnouncementText, InvisibleMessageMode.Polite);
|
|
2541
2598
|
}
|
|
2542
2599
|
});
|
|
2543
2600
|
this.setAggregation("_oButton", this.oButton, true);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* A thin wrapper over {@link sap.ui.unified.ColorPicker} allowing the latter to be used in a popover.
|
|
50
50
|
*
|
|
51
51
|
* @extends sap.ui.core.Control
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.144.0
|
|
53
53
|
*
|
|
54
54
|
* @constructor
|
|
55
55
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @extends sap.ui.core.Control
|
|
32
32
|
*
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.144.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
], function(Control, library, NumberFormat, CurrencyRenderer) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
|
-
// shortcut for sap.m.
|
|
16
|
+
// shortcut for sap.m.EmptyIndicatorMode
|
|
17
17
|
var EmptyIndicatorMode = library.EmptyIndicatorMode;
|
|
18
18
|
|
|
19
19
|
|
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
* @extends sap.ui.core.Control
|
|
59
59
|
*
|
|
60
60
|
* @author SAP SE
|
|
61
|
-
* @version 1.
|
|
61
|
+
* @version 1.144.0
|
|
62
62
|
*
|
|
63
63
|
* @constructor
|
|
64
64
|
* @public
|