@openui5/sap.ui.unified
Advanced tools
Comparing version 1.52.7 to 1.52.8
{ | ||
"name": "@openui5/sap.ui.unified", | ||
"version": "1.52.7", | ||
"version": "1.52.8", | ||
"description": "OpenUI5 UI Library sap.ui.unified", | ||
@@ -17,4 +17,4 @@ "author": "SAP SE (https://www.sap.com)", | ||
"dependencies": { | ||
"@openui5/sap.ui.core": "1.52.7" | ||
"@openui5/sap.ui.core": "1.52.8" | ||
} | ||
} |
@@ -30,3 +30,3 @@ /*! | ||
* @extends sap.ui.unified.calendar.Month | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
@@ -26,3 +26,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -29,0 +29,0 @@ * @constructor |
@@ -16,2 +16,5 @@ /*! | ||
// shortcut for sap.ui.unified.CalendarDayType | ||
var CalendarDayType = library.CalendarDayType; | ||
/* | ||
@@ -34,3 +37,3 @@ * Inside the Month CalendarDate objects are used. But in the API JS dates are used. | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -121,4 +124,10 @@ * @constructor | ||
/** | ||
* Date Range with type to visualize special days in the Calendar. | ||
* If one day is assigned to more than one Type, only the first one will be used. | ||
* <code>DateRange</code> with type to visualize special days in the Calendar. | ||
* | ||
* <b>Note:</b> If one day is assigned to more than one DateTypeRange, only the first one | ||
* will be used. The only exception is when one of the types is | ||
* <code>NonWorking</code>, then you can have both <code>NonWorking</code> | ||
* and the other type. | ||
* For example, you can have <code>NonWorking</code> + <code>Type01</code> | ||
* but you can't have <code>Type01</code> + <code>Type02</code>. | ||
*/ | ||
@@ -743,13 +752,14 @@ specialDates : {type : "sap.ui.unified.DateTypeRange", multiple : true, singularName : "specialDate"}, | ||
/* | ||
* gets the type of a single date checking the specialDates aggregation | ||
* the first hit is used | ||
* Gets the type of a single date checking the specialDates aggregation | ||
* the first hit is used. The only exception is when one of the types is | ||
* NonWorking, then you can have both NonWorking and the other type. | ||
* @param {sap.ui.unified.calendar.CalendarDate} oDate | ||
* @return {object} date type and tooltip defined in CalendarDayType | ||
* @return {object[]} an array that contains maximum 2 objects each with date type and tooltip defined in CalendarDayType | ||
* @private | ||
*/ | ||
Month.prototype._getDateType = function(oDate){ | ||
Month.prototype._getDateTypes = function(oDate){ | ||
CalendarUtils._checkCalendarDate(oDate); | ||
var oType; | ||
var oType, oTypeNW, bNonWorkingType, aTypes = []; | ||
var aSpecialDates = this.getSpecialDates(); | ||
@@ -775,9 +785,20 @@ var oTimeStamp = oDate.toUTCJSDate().getTime(); | ||
bNonWorkingType = oRange.getType() === CalendarDayType.NonWorking; | ||
// collects non working day with the first occurrence of one of the types01..types20 | ||
if ((oTimeStamp == oStartTimeStamp && !oEndDate) || (oTimeStamp >= oStartTimeStamp && oTimeStamp <= oEndTimeStamp)) { | ||
oType = {type: oRange.getType(), tooltip: oRange.getTooltip_AsString()}; | ||
break; | ||
if (!bNonWorkingType && !oType) { | ||
oType = {type: oRange.getType(), tooltip: oRange.getTooltip_AsString()}; | ||
aTypes.push(oType); | ||
} else if (bNonWorkingType && !oTypeNW) { | ||
oTypeNW = {type: oRange.getType(), tooltip: oRange.getTooltip_AsString()}; | ||
aTypes.push(oTypeNW); | ||
} | ||
if (oType && oTypeNW) { | ||
break; | ||
} | ||
} | ||
} | ||
return oType; | ||
return aTypes; | ||
@@ -960,2 +981,3 @@ }; | ||
&& this._isValueInThreshold(this._oMousedownPosition.clientY, oEvent.clientY, 10) | ||
&& oEvent.target.classList.contains("sapUiCalItemText") | ||
) { | ||
@@ -962,0 +984,0 @@ var oSelectedDate = CalendarDate.fromLocalJSDate(this._oFormatYyyymmdd.parse(jQuery(oEvent.target).parent().attr("data-sap-day")), this.getPrimaryCalendarType()); |
@@ -22,3 +22,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -25,0 +25,0 @@ * @constructor |
@@ -333,3 +333,4 @@ /*! | ||
}, | ||
bBeforeFirstYear = oDay._bBeforeFirstYear; | ||
bBeforeFirstYear = oDay._bBeforeFirstYear, | ||
sAriaType = ""; | ||
@@ -339,3 +340,3 @@ var sYyyymmdd = oMonth._oFormatYyyymmdd.format(oDay.toUTCJSDate(), true); | ||
var iSelected = oMonth._checkDateSelected(oDay); | ||
var oType = oMonth._getDateType(oDay); | ||
var aDayTypes = oMonth._getDateTypes(oDay); | ||
var bEnabled = oMonth._checkDateEnabled(oDay); | ||
@@ -405,13 +406,17 @@ var i = 0; | ||
if (oType && oType.type != CalendarDayType.None) { | ||
if (oType.type === CalendarDayType.NonWorking) { | ||
oRm.addClass("sapUiCalItemWeekEnd"); | ||
} else { | ||
oRm.addClass("sapUiCalItem" + oType.type); | ||
if (oType.tooltip) { | ||
oRm.writeAttributeEscaped('title', oType.tooltip); | ||
aDayTypes.forEach(function(oDayType) { | ||
if (oDayType.type != CalendarDayType.None) { | ||
if (oDayType.type === CalendarDayType.NonWorking) { | ||
oRm.addClass("sapUiCalItemWeekEnd"); | ||
return; | ||
} | ||
oRm.addClass("sapUiCalItem" + oDayType.type); | ||
sAriaType = oDayType.type; | ||
if (oDayType.tooltip) { | ||
oRm.writeAttributeEscaped('title', oDayType.tooltip); | ||
} | ||
} | ||
} | ||
}); | ||
//oMonth.getDate() is a public date object, so it is always considered local timezones. | ||
@@ -446,4 +451,4 @@ if (oMonth.getParent() && oMonth.getParent().getMetadata().getName() === "CalendarOneMonthInterval" && oDay.getMonth() !== oMonth.getStartDate().getMonth()){ | ||
if (oType && oType.type != CalendarDayType.None) { | ||
CalendarLegendRenderer.addCalendarTypeAccInfo(mAccProps, oType.type, oHelper.oLegend); | ||
if (sAriaType !== "") { | ||
CalendarLegendRenderer.addCalendarTypeAccInfo(mAccProps, sAriaType, oHelper.oLegend); | ||
} | ||
@@ -450,0 +455,0 @@ |
@@ -38,3 +38,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -41,0 +41,0 @@ * @constructor |
@@ -31,3 +31,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -34,0 +34,0 @@ * @constructor |
@@ -37,3 +37,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -40,0 +40,0 @@ * @constructor |
@@ -31,3 +31,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -34,0 +34,0 @@ * @constructor |
@@ -24,3 +24,3 @@ /*! | ||
* @extends sap.ui.unified.DateTypeRange | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -27,0 +27,0 @@ * @constructor |
@@ -27,3 +27,3 @@ /*! | ||
* @extends sap.ui.unified.Calendar | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -30,0 +30,0 @@ * @constructor |
@@ -29,3 +29,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -32,0 +32,0 @@ * @constructor |
@@ -24,3 +24,3 @@ /*! | ||
* @extends sap.ui.core.Element | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -27,0 +27,0 @@ * @constructor |
@@ -31,3 +31,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -34,0 +34,0 @@ * @constructor |
@@ -42,3 +42,3 @@ /*! | ||
* @extends sap.ui.unified.CalendarDateInterval | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -45,0 +45,0 @@ * @constructor |
@@ -43,3 +43,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -46,0 +46,0 @@ * @constructor |
@@ -42,3 +42,3 @@ /*! | ||
* @extends sap.ui.unified.CalendarDateInterval | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -45,0 +45,0 @@ * @constructor |
@@ -30,3 +30,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
@@ -53,3 +53,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -56,0 +56,0 @@ * @constructor |
@@ -17,3 +17,3 @@ /*! | ||
* | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @namespace | ||
@@ -20,0 +20,0 @@ */ |
@@ -23,3 +23,3 @@ /*! | ||
* @extends sap.ui.core.Element | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -26,0 +26,0 @@ * @constructor |
@@ -28,3 +28,3 @@ /*! | ||
* @extends sap.ui.unified.DateRange | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -31,3 +31,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -528,8 +528,20 @@ * @constructor | ||
FileUploader.prototype.setTooltip = function(oTooltip) { | ||
var sTooltip, | ||
sapUiFupInputMaskDOM; | ||
this._refreshTooltipBaseDelegate(oTooltip); | ||
this.setAggregation("tooltip", oTooltip, true); | ||
if (this.oFileUpload) { | ||
if (typeof oTooltip === "string") { | ||
jQuery(this.oFileUpload).attr("title", jQuery.sap.encodeHTML(oTooltip)); | ||
this.$().find(".sapUiFupInputMask").attr("title", jQuery.sap.encodeHTML(oTooltip)); | ||
sTooltip = this.getTooltip_AsString(); | ||
sapUiFupInputMaskDOM = this.$().find(".sapUiFupInputMask")[0]; | ||
if (sTooltip) { | ||
this.oFileUpload.setAttribute("title", sTooltip); | ||
sapUiFupInputMaskDOM && sapUiFupInputMaskDOM.setAttribute("title", sTooltip); | ||
} else { | ||
this.oFileUpload.removeAttribute("title"); | ||
sapUiFupInputMaskDOM && sapUiFupInputMaskDOM.removeAttribute("title"); | ||
} | ||
} | ||
@@ -536,0 +548,0 @@ } |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -23,3 +23,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -26,0 +26,0 @@ * @constructor |
@@ -23,3 +23,3 @@ /*! | ||
name : "sap.ui.unified", | ||
version: "1.52.7", | ||
version: "1.52.8", | ||
dependencies : ["sap.ui.core"], | ||
@@ -81,3 +81,3 @@ types: [ | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @public | ||
@@ -84,0 +84,0 @@ */ |
@@ -56,3 +56,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @since 1.21.0 | ||
@@ -59,0 +59,0 @@ * |
@@ -26,3 +26,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @since 1.21.0 | ||
@@ -29,0 +29,0 @@ * |
@@ -26,3 +26,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @since 1.21.0 | ||
@@ -29,0 +29,0 @@ * |
@@ -18,3 +18,3 @@ /*! | ||
* | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @namespace | ||
@@ -21,0 +21,0 @@ */ |
@@ -31,3 +31,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* @since 1.21.0 | ||
@@ -34,0 +34,0 @@ * |
@@ -28,3 +28,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -28,3 +28,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -30,3 +30,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.52.7 | ||
* @version 1.52.8 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1346878
25156
+ Added@openui5/sap.ui.core@1.52.8(transitive)
- Removed@openui5/sap.ui.core@1.52.7(transitive)
Updated@openui5/sap.ui.core@1.52.8