@openui5/sap.ui.unified
Advanced tools
Comparing version 1.71.67 to 1.71.68
{ | ||
"name": "@openui5/sap.ui.unified", | ||
"version": "1.71.67", | ||
"version": "1.71.68", | ||
"description": "OpenUI5 UI Library sap.ui.unified", | ||
@@ -17,4 +17,4 @@ "author": "SAP SE (https://www.sap.com)", | ||
"dependencies": { | ||
"@openui5/sap.ui.core": "1.71.67" | ||
"@openui5/sap.ui.core": "1.71.68" | ||
} | ||
} |
@@ -35,3 +35,3 @@ /*! | ||
* @extends sap.ui.unified.calendar.Month | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -38,0 +38,0 @@ * @constructor |
@@ -30,3 +30,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
@@ -39,3 +39,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -42,0 +42,0 @@ * @constructor |
@@ -347,4 +347,3 @@ /*! | ||
sAriaType = "", | ||
oLegend = oHelper.oLegend, | ||
sNonWorkingDayText; | ||
oLegend = oHelper.oLegend; | ||
@@ -357,2 +356,5 @@ var sYyyymmdd = oMonth._oFormatYyyymmdd.format(oDay.toUTCJSDate(), true); | ||
var i = 0; | ||
var rb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified"); | ||
var sNonWorkingDayText = rb.getText("LEGEND_NON_WORKING_DAY"); | ||
var aTooltipTexts = []; | ||
@@ -396,3 +398,3 @@ // Days before 0001.01.01 should be disabled. | ||
oRm.addClass("sapUiCalItemNow"); | ||
mAccProps["label"] = oHelper.sToday + " "; | ||
aTooltipTexts.push(rb.getText("LEGEND_TODAY")); | ||
} | ||
@@ -424,6 +426,4 @@ | ||
if (oDayType.type === CalendarDayType.NonWorking) { | ||
aTooltipTexts.push(sNonWorkingDayText); | ||
oRm.addClass("sapUiCalItemWeekEnd"); | ||
if (this._checkIfNonWorkingLegendItemExist(oLegend)) { // pronounce non working day only if there is a legend associated and a corresponding non-working legend item to it | ||
sNonWorkingDayText = this._addNonWorkingDayText(mAccProps); | ||
} | ||
return; | ||
@@ -434,21 +434,23 @@ } | ||
if (oDayType.tooltip) { | ||
oRm.writeAttributeEscaped('title', oDayType.tooltip); | ||
aTooltipTexts.push(oDayType.tooltip); | ||
} | ||
} | ||
}.bind(this)); | ||
}); | ||
if (!sNonWorkingDayText) { // if sNonWorkingDayText exists, it is already included above as specialDate of type NonWorking | ||
if (this._checkIfNonWorkingLegendItemExist(oLegend)) { // pronounce non working day only if there is a legend associated and a corresponding non-working legend item to it | ||
if (oHelper.aNonWorkingDays) { // check if there are nonWorkingDays passed and add text to them | ||
oHelper.aNonWorkingDays.forEach(function (iNonWorkingDay) { | ||
if (oDay.getDay() === iNonWorkingDay) { | ||
this._addNonWorkingDayText(mAccProps); | ||
} | ||
}.bind(this)); | ||
} else if (oDay.getDay() === oHelper.iWeekendStart || oDay.getDay() === oHelper.iWeekendEnd) { // otherwise add the text to the NonWorkigDays from the locale | ||
this._addNonWorkingDayText(mAccProps); | ||
if (oHelper.aNonWorkingDays) { // check if there are nonWorkingDays passed and add text to them | ||
oHelper.aNonWorkingDays.forEach(function (iNonWorkingDay) { | ||
if (oDay.getDay() === iNonWorkingDay) { | ||
aTooltipTexts.push(sNonWorkingDayText); | ||
} | ||
} | ||
}); | ||
} else if ((oDay.getDay() === oHelper.iWeekendStart || oDay.getDay() === oHelper.iWeekendEnd)) { // otherwise add the text to the NonWorkigDays from the locale | ||
aTooltipTexts.push(sNonWorkingDayText); | ||
} | ||
if (aTooltipTexts.length) { | ||
var aTooltips = aTooltipTexts.filter(function(sText, iPos) { | ||
return aTooltipTexts.indexOf(sText) === iPos; | ||
}); | ||
oRm.writeAttributeEscaped('title', aTooltips.join(" ")); | ||
} | ||
@@ -544,34 +546,4 @@ //oMonth.getDate() is a public date object, so it is always considered local timezones. | ||
/** | ||
* Checks if there is a legend associated to the month and if there is a non-working standard item in it. | ||
* | ||
* @param {sap.m.CalendarLegend} oLegend The legend to be checked | ||
*/ | ||
MonthRenderer._checkIfNonWorkingLegendItemExist = function (oLegend) { | ||
var bExists; | ||
if (oLegend) { | ||
oLegend.getStandardItems().forEach(function (oItem) { | ||
if (oItem === library.StandardCalendarLegendItem.NonWorkingDay) { | ||
bExists = true; | ||
return; | ||
} | ||
}); | ||
} | ||
return bExists; | ||
}; | ||
/** | ||
* Includes additional text to the DOM indicating that the day is non-working | ||
* | ||
* @param {Object} mAccProps The accessibility properties for the day to be rendered. | ||
* @returns {string} sText The text for the non-working day from the bundle | ||
*/ | ||
MonthRenderer._addNonWorkingDayText = function (mAccProps) { | ||
var sText = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified").getText("LEGEND_NON_WORKING_DAY") + " "; | ||
mAccProps["label"] += sText; | ||
return sText; | ||
}; | ||
return MonthRenderer; | ||
}, /* bExport= */ true); |
@@ -64,3 +64,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -67,0 +67,0 @@ * @constructor |
@@ -37,3 +37,3 @@ /*! | ||
* @extends sap.ui.unified.calendar.DatesRow | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -40,0 +40,0 @@ * @constructor |
@@ -65,3 +65,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -68,0 +68,0 @@ * @constructor |
@@ -57,3 +57,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -60,0 +60,0 @@ * @constructor |
@@ -52,3 +52,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -55,0 +55,0 @@ * @constructor |
@@ -24,3 +24,3 @@ /*! | ||
* @extends sap.ui.unified.DateTypeRange | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -27,0 +27,0 @@ * @constructor |
@@ -58,3 +58,3 @@ /*! | ||
* @extends sap.ui.unified.Calendar | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -61,0 +61,0 @@ * @constructor |
@@ -37,3 +37,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -40,0 +40,0 @@ * @constructor |
@@ -24,3 +24,3 @@ /*! | ||
* @extends sap.ui.core.Element | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -27,0 +27,0 @@ * @constructor |
@@ -68,3 +68,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -71,0 +71,0 @@ * @constructor |
@@ -60,3 +60,3 @@ /*! | ||
* @extends sap.ui.unified.CalendarDateInterval | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -63,0 +63,0 @@ * @constructor |
@@ -42,3 +42,3 @@ /*! | ||
* @extends sap.ui.unified.CalendarDateInterval | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -45,0 +45,0 @@ * @constructor |
@@ -50,3 +50,3 @@ /*! | ||
* @extends sap.ui.core.Control | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -53,0 +53,0 @@ * @constructor |
@@ -34,3 +34,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -37,0 +37,0 @@ * @constructor |
@@ -57,3 +57,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -60,0 +60,0 @@ * @constructor |
@@ -17,3 +17,3 @@ /*! | ||
* | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @namespace | ||
@@ -20,0 +20,0 @@ */ |
@@ -23,3 +23,3 @@ /*! | ||
* @extends sap.ui.core.Element | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -26,0 +26,0 @@ * @constructor |
@@ -28,3 +28,3 @@ /*! | ||
* @extends sap.ui.unified.DateRange | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -62,3 +62,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -65,0 +65,0 @@ * @constructor |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -23,3 +23,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -26,0 +26,0 @@ * @constructor |
@@ -17,3 +17,3 @@ /*! | ||
name : "sap.ui.unified", | ||
version: "1.71.67", | ||
version: "1.71.68", | ||
dependencies : ["sap.ui.core"], | ||
@@ -87,3 +87,3 @@ designtime: "sap/ui/unified/designtime/library.designtime", | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @public | ||
@@ -90,0 +90,0 @@ */ |
@@ -62,3 +62,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @since 1.21.0 | ||
@@ -65,0 +65,0 @@ * |
@@ -26,3 +26,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @since 1.21.0 | ||
@@ -29,0 +29,0 @@ * |
@@ -26,3 +26,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @since 1.21.0 | ||
@@ -29,0 +29,0 @@ * |
@@ -18,3 +18,3 @@ /*! | ||
* | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @namespace | ||
@@ -21,0 +21,0 @@ */ |
@@ -48,3 +48,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* @since 1.21.0 | ||
@@ -51,0 +51,0 @@ * |
@@ -28,3 +28,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -31,3 +31,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -34,0 +34,0 @@ * @constructor |
@@ -30,3 +30,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
@@ -51,3 +51,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -54,0 +54,0 @@ * @constructor |
@@ -43,3 +43,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -46,0 +46,0 @@ * @constructor |
@@ -36,3 +36,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.71.67 | ||
* @version 1.71.68 | ||
* | ||
@@ -39,0 +39,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
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
1491238
28915
+ Added@openui5/sap.ui.core@1.71.68(transitive)
- Removed@openui5/sap.ui.core@1.71.67(transitive)
Updated@openui5/sap.ui.core@1.71.68