@openui5/sap.ui.unified 1.96.2 → 1.98.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/.reuse/dep5 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +2 -2
- package/src/sap/ui/unified/.library +2 -2
- package/src/sap/ui/unified/Calendar.js +83 -39
- package/src/sap/ui/unified/CalendarAppointment.js +6 -6
- package/src/sap/ui/unified/CalendarDateInterval.js +8 -3
- 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 +1 -1
- 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 +14 -4
- package/src/sap/ui/unified/CalendarRowRenderer.js +25 -21
- 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 +30 -13
- package/src/sap/ui/unified/ColorPickerDisplayMode.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 +2 -2
- package/src/sap/ui/unified/CurrencyRenderer.js +2 -2
- 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 +16 -62
- 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 +1 -1
- package/src/sap/ui/unified/FileUploaderXHRSettings.js +2 -2
- package/src/sap/ui/unified/Menu.js +2 -2
- package/src/sap/ui/unified/MenuItem.js +2 -2
- package/src/sap/ui/unified/MenuItemBase.js +2 -2
- package/src/sap/ui/unified/MenuRenderer.js +2 -2
- package/src/sap/ui/unified/MenuTextFieldItem.js +33 -7
- 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/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 +2 -2
- package/src/sap/ui/unified/calendar/HeaderRenderer.js +2 -1
- 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 +42 -38
- package/src/sap/ui/unified/calendar/MonthPicker.js +35 -6
- package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +2 -5
- package/src/sap/ui/unified/calendar/MonthRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/MonthsRow.js +2 -2
- 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/TimesRow.js +2 -2
- 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 +2 -2
- 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 +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_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 +2 -0
- 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 +2 -0
- package/src/sap/ui/unified/messagebundle_en_US_saprigi.properties +0 -2
- package/src/sap/ui/unified/messagebundle_en_US_saptrc.properties +2 -0
- 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_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 +3 -1
- 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_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 +4 -2
- package/src/sap/ui/unified/rules/FileUploader.support.js +1 -1
- package/src/sap/ui/unified/themes/base/CalendarDateInterval.less +6 -1
- package/src/sap/ui/unified/themes/base/FileUploader.less +47 -32
- 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/ui5.yaml +19 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.98.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -76,7 +76,7 @@ sap.ui.define([
|
|
|
76
76
|
* @class
|
|
77
77
|
* A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
|
|
78
78
|
* @extends sap.ui.core.Control
|
|
79
|
-
* @version 1.
|
|
79
|
+
* @version 1.98.0
|
|
80
80
|
*
|
|
81
81
|
* @constructor
|
|
82
82
|
* @public
|
|
@@ -223,7 +223,16 @@ sap.ui.define([
|
|
|
223
223
|
* @experimental Since 1.81.0
|
|
224
224
|
* @since 1.81.0
|
|
225
225
|
*/
|
|
226
|
-
appointmentRoundWidth: { type: "sap.ui.unified.CalendarAppointmentRoundWidth", group: "Appearance", defaultValue: CalendarAppointmentRoundWidth.None}
|
|
226
|
+
appointmentRoundWidth: { type: "sap.ui.unified.CalendarAppointmentRoundWidth", group: "Appearance", defaultValue: CalendarAppointmentRoundWidth.None},
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Determines whether the selection of multiple appointments is enabled.
|
|
230
|
+
*
|
|
231
|
+
* Note: selection of multiple appointments is possible using CTRL key regardless of the value of this property.
|
|
232
|
+
*
|
|
233
|
+
* @since 1.97
|
|
234
|
+
*/
|
|
235
|
+
multipleAppointmentsSelection : {type : "boolean", group : "Data", defaultValue : false}
|
|
227
236
|
},
|
|
228
237
|
aggregations : {
|
|
229
238
|
|
|
@@ -590,7 +599,8 @@ sap.ui.define([
|
|
|
590
599
|
for (var i = 0; i < aVisibleAppointments.length; i++) {
|
|
591
600
|
var oAppointment = aVisibleAppointments[i].appointment;
|
|
592
601
|
if (containsOrEquals(oAppointment.getDomRef(), oEvent.target)) {
|
|
593
|
-
|
|
602
|
+
var bRemoveOldSelection = !(this.getMultipleAppointmentsSelection() || oEvent.ctrlKey || oEvent.metaKey);
|
|
603
|
+
_selectAppointment.call(this, oAppointment, bRemoveOldSelection);
|
|
594
604
|
break;
|
|
595
605
|
}
|
|
596
606
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -440,7 +440,7 @@ sap.ui.define([
|
|
|
440
440
|
oRm.openEnd();
|
|
441
441
|
|
|
442
442
|
if (oArrowValues.appTimeUnitsDifRowStart > 0) {
|
|
443
|
-
oRm.icon("sap-icon://arrow-left", ["sapUiCalendarAppArrowIconLeft"], { title: null });
|
|
443
|
+
oRm.icon("sap-icon://arrow-left", ["sapUiCalendarAppArrowIconLeft"], { title: null, role: "img" });
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
var sIcon = oIntervalHeader.appointment.getIcon();
|
|
@@ -450,6 +450,7 @@ sap.ui.define([
|
|
|
450
450
|
|
|
451
451
|
mAttributes["id"] = sId + "-Icon";
|
|
452
452
|
mAttributes["title"] = null;
|
|
453
|
+
mAttributes["role"] = "img";
|
|
453
454
|
oRm.icon(sIcon, aClasses, mAttributes);
|
|
454
455
|
}
|
|
455
456
|
|
|
@@ -472,7 +473,7 @@ sap.ui.define([
|
|
|
472
473
|
}
|
|
473
474
|
|
|
474
475
|
if (oArrowValues.appTimeUnitsDifRowEnd > 0) {
|
|
475
|
-
oRm.icon("sap-icon://arrow-right",["sapUiCalendarAppArrowIconRight"], { title: null });
|
|
476
|
+
oRm.icon("sap-icon://arrow-right",["sapUiCalendarAppArrowIconRight"], { title: null, role: "img" });
|
|
476
477
|
}
|
|
477
478
|
|
|
478
479
|
// ARIA information about start and end
|
|
@@ -602,13 +603,14 @@ sap.ui.define([
|
|
|
602
603
|
});
|
|
603
604
|
} else {
|
|
604
605
|
if (oArrowValues.appTimeUnitsDifRowStart > 0) {
|
|
605
|
-
oRm.icon("sap-icon://arrow-left", ["sapUiCalendarAppArrowIconLeft"], { title: null });
|
|
606
|
+
oRm.icon("sap-icon://arrow-left", ["sapUiCalendarAppArrowIconLeft"], { title: null, role: "img" });
|
|
606
607
|
}
|
|
607
608
|
if (sIcon) {
|
|
608
609
|
var aClasses = ["sapUiCalendarAppIcon"];
|
|
609
610
|
var mAttributes = {};
|
|
610
611
|
mAttributes["id"] = sId + "-Icon";
|
|
611
612
|
mAttributes["title"] = null;
|
|
613
|
+
mAttributes["role"] = "img";
|
|
612
614
|
oRm.icon(sIcon, aClasses, mAttributes);
|
|
613
615
|
}
|
|
614
616
|
oRm.openStart("div");
|
|
@@ -637,25 +639,27 @@ sap.ui.define([
|
|
|
637
639
|
}
|
|
638
640
|
oRm.close("div");
|
|
639
641
|
if (oArrowValues.appTimeUnitsDifRowEnd > 0) {
|
|
640
|
-
oRm.icon("sap-icon://arrow-right", ["sapUiCalendarAppArrowIconRight"], { title: null });
|
|
642
|
+
oRm.icon("sap-icon://arrow-right", ["sapUiCalendarAppArrowIconRight"], { title: null, role: "img" });
|
|
641
643
|
}
|
|
642
|
-
// ARIA information about start and end
|
|
643
|
-
var sAriaText = oRow._oRb.getText("CALENDAR_START_TIME") + ": " + oRow._oFormatAria.format(oAppointment.getStartDate());
|
|
644
|
-
sAriaText = sAriaText + "; " + oRow._oRb.getText("CALENDAR_END_TIME") + ": " + oRow._oFormatAria.format(oAppointment.getEndDate());
|
|
645
|
-
if (oRow._getRelativeInfo && oRow._getRelativeInfo().bIsRelative) {
|
|
646
|
-
var oRelativeInfo = oRow._getRelativeInfo();
|
|
647
|
-
sAriaText = oRow._oRb.getText("CALENDAR_START_TIME") + ": " + oRelativeInfo.intervalLabelFormatter(oRelativeInfo._getIndexFromDate(oAppointment.getStartDate()));
|
|
648
|
-
sAriaText = sAriaText + "; " + oRow._oRb.getText("CALENDAR_END_TIME") + ": " + oRelativeInfo.intervalLabelFormatter(oRelativeInfo._getIndexFromDate(oAppointment.getEndDate()));
|
|
649
|
-
}
|
|
650
|
-
if (sType && sType != CalendarDayType.None) {
|
|
651
|
-
sAriaText = sAriaText + "; " + this.getAriaTextForType(sType, aTypes);
|
|
652
|
-
}
|
|
653
|
-
oRm.openStart("span", sId + "-Descr");
|
|
654
|
-
oRm.class("sapUiInvisibleText");
|
|
655
|
-
oRm.openEnd();
|
|
656
|
-
oRm.text(sAriaText);
|
|
657
|
-
oRm.close("span");
|
|
658
644
|
}
|
|
645
|
+
|
|
646
|
+
// ARIA information about start and end
|
|
647
|
+
var sAriaText = oRow._oRb.getText("CALENDAR_START_TIME") + ": " + oRow._oFormatAria.format(oAppointment.getStartDate());
|
|
648
|
+
sAriaText = sAriaText + "; " + oRow._oRb.getText("CALENDAR_END_TIME") + ": " + oRow._oFormatAria.format(oAppointment.getEndDate());
|
|
649
|
+
if (oRow._getRelativeInfo && oRow._getRelativeInfo().bIsRelative) {
|
|
650
|
+
var oRelativeInfo = oRow._getRelativeInfo();
|
|
651
|
+
sAriaText = oRow._oRb.getText("CALENDAR_START_TIME") + ": " + oRelativeInfo.intervalLabelFormatter(oRelativeInfo._getIndexFromDate(oAppointment.getStartDate()));
|
|
652
|
+
sAriaText = sAriaText + "; " + oRow._oRb.getText("CALENDAR_END_TIME") + ": " + oRelativeInfo.intervalLabelFormatter(oRelativeInfo._getIndexFromDate(oAppointment.getEndDate()));
|
|
653
|
+
}
|
|
654
|
+
if (sType && sType != CalendarDayType.None) {
|
|
655
|
+
sAriaText = sAriaText + "; " + this.getAriaTextForType(sType, aTypes);
|
|
656
|
+
}
|
|
657
|
+
oRm.openStart("span", sId + "-Descr");
|
|
658
|
+
oRm.class("sapUiInvisibleText");
|
|
659
|
+
oRm.openEnd();
|
|
660
|
+
oRm.text(sAriaText);
|
|
661
|
+
oRm.close("span");
|
|
662
|
+
|
|
659
663
|
//app content
|
|
660
664
|
oRm.close("div");
|
|
661
665
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.98.0
|
|
76
76
|
*
|
|
77
77
|
* @constructor
|
|
78
78
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.98.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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
|
* @extends sap.ui.core.Control
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.
|
|
68
|
+
* @version 1.98.0
|
|
69
69
|
*
|
|
70
70
|
* @constructor
|
|
71
71
|
* @public
|
|
@@ -569,17 +569,23 @@ sap.ui.define([
|
|
|
569
569
|
this.bResponsive = Library.ColorPickerHelper.isResponsive();
|
|
570
570
|
|
|
571
571
|
// Color picker cursor size in px obtained from less parameter. Keep in mind width and height are the same.
|
|
572
|
-
var
|
|
573
|
-
this._iCPCursorSize =
|
|
572
|
+
var sCircleSizeCSSParameterName = this.bResponsive ? "_sap_ui_unified_ColorPicker_CircleSize" : "_sap_ui_unified_ColorPicker_commonsCircleSize";
|
|
573
|
+
this._iCPCursorSize = 0;
|
|
574
|
+
var sCircleSizeCSSParameter = Parameters.get({
|
|
575
|
+
name: sCircleSizeCSSParameterName,
|
|
576
|
+
callback: function (_mParams) {
|
|
577
|
+
this._iCPCursorSize = parseInt(_mParams);
|
|
578
|
+
}.bind(this)
|
|
579
|
+
});
|
|
580
|
+
|
|
581
|
+
if (sCircleSizeCSSParameter) {
|
|
582
|
+
this._iCPCursorSize = parseInt(sCircleSizeCSSParameter);
|
|
583
|
+
}
|
|
574
584
|
|
|
575
585
|
// Init _processChanges and _bHSLMode according to default control mode
|
|
576
586
|
this._processChanges = this._processHSVChanges;
|
|
577
587
|
this._bHSLMode = false;
|
|
578
588
|
|
|
579
|
-
if (this.getDisplayMode() === ColorPickerDisplayMode.Simplified) {
|
|
580
|
-
CONSTANTS.HideForDisplay.value = ".hideDisplay";
|
|
581
|
-
}
|
|
582
|
-
|
|
583
589
|
this.bPressed = false;
|
|
584
590
|
};
|
|
585
591
|
|
|
@@ -1040,6 +1046,9 @@ sap.ui.define([
|
|
|
1040
1046
|
|
|
1041
1047
|
// Create internal controls
|
|
1042
1048
|
this._createInteractionControls();
|
|
1049
|
+
if (this.getDisplayMode() === ColorPickerDisplayMode.Large) {
|
|
1050
|
+
this._toggleInputsEnabled(this.Color.formatHSL);
|
|
1051
|
+
}
|
|
1043
1052
|
|
|
1044
1053
|
// Layout Data - that will be needed for visual state update
|
|
1045
1054
|
this.oCPBoxGD = new GridData({span: "L6 M6 S12"}); // Color picker box
|
|
@@ -1339,14 +1348,22 @@ sap.ui.define([
|
|
|
1339
1348
|
/**
|
|
1340
1349
|
* Event handler for changes of RGB or HSL radio button field.
|
|
1341
1350
|
*/
|
|
1342
|
-
ColorPicker.prototype._handleRGBorHSLValueChange = function() {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
this.Color.formatHSL = oUnifiedRBGroup ? oUnifiedRBGroup.getSelectedIndex() === 1 : this.oRGBorHSLRBGroup.getSelectedIndex() === 1;
|
|
1346
|
-
|
|
1351
|
+
ColorPicker.prototype._handleRGBorHSLValueChange = function(oEvent) {
|
|
1352
|
+
this.Color.formatHSL = oEvent.getParameter("selectedIndex") === 1;
|
|
1353
|
+
this._toggleInputsEnabled(this.Color.formatHSL);
|
|
1347
1354
|
this._updateColorStringProperty(true, true);
|
|
1348
1355
|
};
|
|
1349
1356
|
|
|
1357
|
+
ColorPicker.prototype._toggleInputsEnabled = function(bHSL) {
|
|
1358
|
+
this.oRedField.setEnabled(!bHSL);
|
|
1359
|
+
this.oGreenField.setEnabled(!bHSL);
|
|
1360
|
+
this.oBlueField.setEnabled(!bHSL);
|
|
1361
|
+
this.oHueField.setEnabled(!!bHSL);
|
|
1362
|
+
this.oSatField.setEnabled(!!bHSL);
|
|
1363
|
+
this.oLitField.setEnabled(!!bHSL);
|
|
1364
|
+
this.oValField.setEnabled(!!bHSL);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1350
1367
|
/**
|
|
1351
1368
|
* Event handler for changes of Hue input field.
|
|
1352
1369
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* A thin wrapper over {@link sap.ui.unified.ColorPicker} allowing the latter to be used in a popover.
|
|
48
48
|
*
|
|
49
49
|
* @extends sap.ui.core.Control
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.98.0
|
|
51
51
|
*
|
|
52
52
|
* @constructor
|
|
53
53
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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.98.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
62
62
|
*
|
|
63
63
|
* @constructor
|
|
64
64
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define(["sap/m/library", "sap/ui/core/Core"],
|
|
|
14
14
|
/**
|
|
15
15
|
* Currency renderer.
|
|
16
16
|
*
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.98.0
|
|
18
18
|
* @namespace
|
|
19
19
|
*/
|
|
20
20
|
var CurrencyRenderer = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/calendar/Cale
|
|
|
20
20
|
* @class
|
|
21
21
|
* Date range for use in DatePicker
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.98.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
29
29
|
*
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @implements sap.ui.core.IFormContent, sap.ui.unified.IProcessableBlobs
|
|
64
64
|
*
|
|
65
65
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.98.0
|
|
67
67
|
*
|
|
68
68
|
* @constructor
|
|
69
69
|
* @public
|
|
@@ -596,13 +596,6 @@ sap.ui.define([
|
|
|
596
596
|
// check if sap.m library is used
|
|
597
597
|
this.bMobileLib = this.oBrowse.getMetadata().getName() == "sap.m.Button";
|
|
598
598
|
|
|
599
|
-
//retrieving the default browse button text from the resource bundle
|
|
600
|
-
if (!this.getIconOnly()) {
|
|
601
|
-
this.oBrowse.setText(this.getBrowseText());
|
|
602
|
-
} else {
|
|
603
|
-
this.oBrowse.setTooltip(this.getBrowseText());
|
|
604
|
-
}
|
|
605
|
-
|
|
606
599
|
if (sap.ui.getCore().getConfiguration().getAccessibility()) {
|
|
607
600
|
if (!FileUploader.prototype._sAccText) {
|
|
608
601
|
var rb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified");
|
|
@@ -620,16 +613,6 @@ sap.ui.define([
|
|
|
620
613
|
|
|
621
614
|
};
|
|
622
615
|
|
|
623
|
-
FileUploader.prototype.setButtonText = function(sText) {
|
|
624
|
-
this.setProperty("buttonText", sText, false);
|
|
625
|
-
if (!this.getIconOnly()) {
|
|
626
|
-
this.oBrowse.setText(sText || this.getBrowseText());
|
|
627
|
-
} else {
|
|
628
|
-
this.oBrowse.setTooltip(this.getBrowseText());
|
|
629
|
-
}
|
|
630
|
-
return this;
|
|
631
|
-
};
|
|
632
|
-
|
|
633
616
|
FileUploader.prototype.setIcon = function(sIcon) {
|
|
634
617
|
this.oBrowse.setIcon(sIcon);
|
|
635
618
|
this.setProperty("icon", sIcon, false);
|
|
@@ -660,18 +643,6 @@ sap.ui.define([
|
|
|
660
643
|
return this;
|
|
661
644
|
};
|
|
662
645
|
|
|
663
|
-
FileUploader.prototype.setIconOnly = function(bIconOnly) {
|
|
664
|
-
this.setProperty("iconOnly", bIconOnly, false);
|
|
665
|
-
if (bIconOnly) {
|
|
666
|
-
this.oBrowse.setText("");
|
|
667
|
-
this.oBrowse.setTooltip(this.getBrowseText());
|
|
668
|
-
} else {
|
|
669
|
-
this.oBrowse.setText(this.getButtonText() || this.getBrowseText());
|
|
670
|
-
this.oBrowse.setTooltip("");
|
|
671
|
-
}
|
|
672
|
-
return this;
|
|
673
|
-
};
|
|
674
|
-
|
|
675
646
|
FileUploader.prototype.getIdForLabel = function () {
|
|
676
647
|
return this.oBrowse.getId();
|
|
677
648
|
};
|
|
@@ -736,23 +707,17 @@ sap.ui.define([
|
|
|
736
707
|
};
|
|
737
708
|
|
|
738
709
|
FileUploader.prototype.setTooltip = function(oTooltip) {
|
|
739
|
-
var sTooltip
|
|
740
|
-
sapUiFupInputMaskDOM;
|
|
710
|
+
var sTooltip;
|
|
741
711
|
|
|
742
|
-
|
|
743
|
-
this.setAggregation("tooltip", oTooltip, true);
|
|
744
|
-
this._updateAccDescription();
|
|
712
|
+
Control.prototype.setTooltip.call(this, oTooltip);
|
|
745
713
|
|
|
746
714
|
if (this.oFileUpload) {
|
|
747
715
|
sTooltip = this.getTooltip_AsString();
|
|
748
|
-
sapUiFupInputMaskDOM = this.$().find(".sapUiFupInputMask")[0];
|
|
749
716
|
|
|
750
717
|
if (sTooltip) {
|
|
751
718
|
this.oFileUpload.setAttribute("title", sTooltip);
|
|
752
|
-
sapUiFupInputMaskDOM && sapUiFupInputMaskDOM.setAttribute("title", sTooltip);
|
|
753
719
|
} else {
|
|
754
720
|
this.oFileUpload.removeAttribute("title");
|
|
755
|
-
sapUiFupInputMaskDOM && sapUiFupInputMaskDOM.removeAttribute("title");
|
|
756
721
|
}
|
|
757
722
|
}
|
|
758
723
|
return this;
|
|
@@ -844,20 +809,6 @@ sap.ui.define([
|
|
|
844
809
|
return sAccDescription;
|
|
845
810
|
};
|
|
846
811
|
|
|
847
|
-
/*
|
|
848
|
-
* Updates the hidden element's text, which holds the accessibility description.
|
|
849
|
-
* This method should be called whenever the placeholder/value/tooltip update.
|
|
850
|
-
* Otherwise screen readers will simply read a description, which doesn't match
|
|
851
|
-
* what's visible on the screen.
|
|
852
|
-
*/
|
|
853
|
-
FileUploader.prototype._updateAccDescription = function () {
|
|
854
|
-
var oAccDescriptionHolder = this.getDomRef("AccDescr"),
|
|
855
|
-
sNewDescription = this._generateAccDescriptionText();
|
|
856
|
-
|
|
857
|
-
if (oAccDescriptionHolder) {
|
|
858
|
-
oAccDescriptionHolder.innerHTML = encodeXML(sNewDescription);
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
812
|
|
|
862
813
|
/**
|
|
863
814
|
* Helper to ensure, that the types (file or mime) are inside an array.
|
|
@@ -929,6 +880,18 @@ sap.ui.define([
|
|
|
929
880
|
// unbind the custom event handlers
|
|
930
881
|
jQuery(this.oFileUpload).off();
|
|
931
882
|
|
|
883
|
+
if (this.getIconOnly() && this.getButtonOnly()) {
|
|
884
|
+
this.oBrowse.setText("");
|
|
885
|
+
this.oBrowse.setTooltip(this.getTooltip_AsString() || this.getBrowseText());
|
|
886
|
+
} else if (this.getIconOnly()) {
|
|
887
|
+
this.oBrowse.setText("");
|
|
888
|
+
this.oBrowse.setTooltip(this.getBrowseText());
|
|
889
|
+
} else {
|
|
890
|
+
this.oBrowse.setText(this.getButtonText() || this.getBrowseText());
|
|
891
|
+
this.oBrowse.setTooltip("");
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
this.oFilePath.setPlaceholder(this.getPlaceholder());
|
|
932
895
|
};
|
|
933
896
|
|
|
934
897
|
/**
|
|
@@ -1105,15 +1068,6 @@ sap.ui.define([
|
|
|
1105
1068
|
return this.setProperty("valueStateText", sValueStateText, true);
|
|
1106
1069
|
};
|
|
1107
1070
|
|
|
1108
|
-
FileUploader.prototype.setPlaceholder = function(sPlaceholder) {
|
|
1109
|
-
this.setProperty("placeholder", sPlaceholder, true);
|
|
1110
|
-
this.oFilePath.setPlaceholder(sPlaceholder);
|
|
1111
|
-
|
|
1112
|
-
this._updateAccDescription();
|
|
1113
|
-
|
|
1114
|
-
return this;
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
1071
|
FileUploader.prototype.setStyle = function(sStyle) {
|
|
1118
1072
|
this.setProperty("style", sStyle, true);
|
|
1119
1073
|
if (sStyle) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
|
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.98.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
|
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.98.0
|
|
24
24
|
*
|
|
25
25
|
* @constructor
|
|
26
26
|
* @since 1.52
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 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
|
* @implements sap.ui.core.IContextMenu
|
|
60
60
|
*
|
|
61
61
|
* @author SAP SE
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.98.0
|
|
63
63
|
* @since 1.21.0
|
|
64
64
|
*
|
|
65
65
|
* @constructor
|