Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openui5/sap.ui.unified

Package Overview
Dependencies
Maintainers
4
Versions
583
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openui5/sap.ui.unified - npm Package Compare versions

Comparing version 1.54.6 to 1.56.0

src/sap/ui/unified/designtime/CalendarDateInterval.icon.svg

13

LICENSE.txt

@@ -401,3 +401,3 @@

Licensor: jQuery Foundation and other contributors
Website: https://github.com/jquery/qunit-reporter-junit
Website: https://github.com/JamesMGreene/qunit-reporter-junit
License: MIT License

@@ -487,3 +487,3 @@

Component: Sinon.JS 4.1.3
Component: Sinon.JS 4.4.6
Licensor: Christian Johansen

@@ -562,3 +562,3 @@ Website: http://github.com/cjohansen/Sinon.JS/

Component: URI.js 1.11.2
Component: URI.js 1.19.1
Licensor: Rodney Rehm

@@ -591,3 +591,10 @@ Website: http://github.com/medialize/URI.js/

Component: bignumber.js 6.0.0
Licensor: Michael Mclaughlin
Website: https://github.com/MikeMcl/bignumber.js/
License: MIT License
<year> = 2018
<copyright holders> = Michael Mclaughlin
--------------------------------------------------------------------------------------------------------------------------

@@ -594,0 +601,0 @@

{
"name": "@openui5/sap.ui.unified",
"version": "1.54.6",
"version": "1.56.0",
"description": "OpenUI5 UI Library sap.ui.unified",

@@ -17,4 +17,4 @@ "author": "SAP SE (https://www.sap.com)",

"dependencies": {
"@openui5/sap.ui.core": "1.54.6"
"@openui5/sap.ui.core": "1.56.0"
}
}

@@ -35,3 +35,3 @@ /*!

* @extends sap.ui.unified.calendar.Month
* @version 1.54.6
* @version 1.56.0
*

@@ -136,4 +136,2 @@ * @constructor

* @public
* @name sap.ui.unified.calendar.DatesRow#setDate
* @function
*/

@@ -197,5 +195,3 @@ DatesRow.prototype.setDate = function(oDate){

* @param {int} iFirstDayOfWeek The first day of the week
* @name sap.ui.unified.calendar.DatesRow#setFirstDayOfWeek
* @returns {sap.ui.unified.calendar.DatesRow} <code>this</code> to allow method chaining
* @function
*/

@@ -202,0 +198,0 @@ DatesRow.prototype.setFirstDayOfWeek = function(iFirstDayOfWeek){

@@ -30,3 +30,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -228,2 +228,174 @@ * @constructor

/**
* If set, the third button will be displayed
*
* @param bVisible
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setVisibleButton3 = function (bVisible) {
this._visibleButton3 = bVisible;
this.invalidate();
return this;
};
/**
* Gets the visibility of the private third button
* @returns {boolean}
* @private
*/
Header.prototype._getVisibleButton3 = function () {
return this._visibleButton3;
};
/**
* Text of the third button (normally month)
*
* @param sText
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setTextButton3 = function(sText){
_setTextPrivateButton.call(this, 3, sText);
return this;
};
/**
* Gets the text of the private third button
* @returns {string}
* @private
*/
Header.prototype._getTextButton3 = function () {
return this._textButton3;
};
/**
* Additional text of the third button (normally month)
* @param sText
* @returns {sap.ui.unified.calendar.Header}
*/
Header.prototype._setAdditionalTextButton3 = function(sText){
_setAdditionalTextPrivateButton.call(this, 3, sText);
return this;
};
/**
* Gets the additional text of the private third button
* @returns {string}
* @private
*/
Header.prototype._getAdditionalTextButton3 = function () {
return this._additionalTextButton3;
};
/**
* aria-label of the third button (normally month)
* @param sText
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setAriaLabelButton3 = function(sText){
_setAriaLabelPrivateButton.call(this, 3, sText);
return this;
};
/**
* Gets the aria-label of the private third button
* @returns {string}
* @private
*/
Header.prototype._getAriaLabelButton3 = function () {
return this._ariaLabelButton3;
};
/**
* If set, the fourth button will be displayed
*
* @param bVisible
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setVisibleButton4 = function (bVisible) {
this._visibleButton4 = bVisible;
this.invalidate();
return this;
};
/**
* Gets the visibility of the private fourth button
* @returns {boolean}
* @private
*/
Header.prototype._getVisibleButton4 = function () {
return this._visibleButton4;
};
/**
* Text of the fourth button (normally year)
* @param sText
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setTextButton4 = function(sText){
_setTextPrivateButton.call(this, 4, sText);
return this;
};
/**
* Gets the text of the private fourth button
* @returns {string}
* @private
*/
Header.prototype._getTextButton4 = function () {
return this._textButton4;
};
/**
* Additional text of the fourth button (normally year)
* @param sText
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setAdditionalTextButton4 = function(sText){
_setAdditionalTextPrivateButton.call(this, 4, sText);
return this;
};
/**
* Gets the additional text of the private fourth button
* @returns {string}
* @private
*/
Header.prototype._getAdditionalTextButton4 = function () {
return this._additionalTextButton4;
};
/**
* aria-label of the fourth button (normally year)
* @param sText
* @returns {sap.ui.unified.calendar.Header}
* @private
*/
Header.prototype._setAriaLabelButton4 = function(sText){
_setAriaLabelPrivateButton.call(this, 4, sText);
return this;
};
/**
* Gets the aria-label of the private fourth button
* @returns {string}
* @private
*/
Header.prototype._getAriaLabelButton4 = function () {
return this._ariaLabelButton4;
};
Header.prototype.setEnabledPrevious = function(bEnabled){

@@ -277,2 +449,6 @@

this.firePressButton2();
} else if (jQuery.sap.containsOrEquals(this.getDomRef("B3"), oEvent.target)){
this.fireEvent("pressButton3");
} else if (jQuery.sap.containsOrEquals(this.getDomRef("B4"), oEvent.target)){
this.fireEvent("pressButton4");
}

@@ -338,4 +514,52 @@

function _setTextPrivateButton(iButton, sText) {
this["_textButton" + iButton] = sText;
if (this.isActive() && this["_getVisibleButton" + iButton]()) {
if (this.$("B" + iButton + "-Text").get(0)) {
this.$("B" + iButton + "-Text").text(sText);
} else {
this.$("B" + iButton).text(sText);
}
}
}
function _setAdditionalTextPrivateButton(iButton, sText) {
var bRerender = false;
var sOldText = this["_getAdditionalTextButton" + iButton]();
if (sOldText == sText) {
return;
}
if ((!sOldText && sText) || (sOldText && !sText)) {
bRerender = true;
}
this["_additionalTextButton" + iButton] = sText;
if (!bRerender && this.isActive() && this["_getVisibleButton" + iButton]()) {
this.$("B" + iButton + "-AddText").text(sText);
}
if (bRerender) {
this.invalidate();
}
}
function _setAriaLabelPrivateButton(iButton, sText){
this["_ariaLabelButton" + iButton] = sText;
if (this.isActive() && this["_getVisibleButton" + iButton]()) {
if (sText) {
this.$("B" + iButton).attr("aria-label", sText);
} else {
this.$("B" + iButton).removeAttr("aria-label");
}
}
}
return Header;
});

@@ -12,2 +12,4 @@ /*!

var MAX_HEADER_BUTTONS = 5;
/**

@@ -67,4 +69,4 @@ * Header renderer.

var iBtn;
for (i = 0; i < 3; i++) {
if (oHead["getVisibleButton" + i]()) {
for (i = 0; i < MAX_HEADER_BUTTONS; i++) {
if (this.getVisibleButton(oHead, i)) {
if (iFirst < 0) {

@@ -77,6 +79,6 @@ iFirst = i;

for (i = 0; i < 3; i++) {
for (i = 0; i < MAX_HEADER_BUTTONS; i++) {
// for Chinese and Japanese the date should be displayed in year, month, day order
if (sLanguage.toLowerCase() === "ja" || sLanguage.toLowerCase() === "zh") {
iBtn = 2 - i;
iBtn = MAX_HEADER_BUTTONS - 1 - i;
} else {

@@ -109,3 +111,3 @@ iBtn = i;

HeaderRenderer.renderCalendarButtons = function (oRm, oHead, sId, iFirst, iLast, mAccProps, i) {
if (oHead["getVisibleButton" + i]()) {
if (this.getVisibleButton(oHead, i)) {
oRm.write("<button");

@@ -123,4 +125,4 @@ oRm.writeAttributeEscaped('id', sId + '-B' + i);

oRm.writeClasses();
if (oHead["getAriaLabelButton" + i]()) {
mAccProps["label"] = jQuery.sap.encodeHTML(oHead["getAriaLabelButton" + i]());
if (this.getAriaLabelButton(oHead, i)) {
mAccProps["label"] = jQuery.sap.encodeHTML(this.getAriaLabelButton(oHead, i));
}

@@ -130,4 +132,4 @@ oRm.writeAccessibilityState(null, mAccProps);

oRm.write(">"); // button element
var sText = oHead["getTextButton" + i]() || "";
var sAddText = oHead["getAdditionalTextButton" + i]() || "";
var sText = this.getTextButton(oHead, i) || "";
var sAddText = this.getAdditionalTextButton(oHead, i) || "";
if (sAddText) {

@@ -156,4 +158,52 @@ oRm.write("<span");

HeaderRenderer.getVisibleButton = function (oHead, iButton) {
var bVisible = false;
if (oHead["getVisibleButton" + iButton]) {
bVisible = oHead["getVisibleButton" + iButton]();
} else if (oHead["_getVisibleButton" + iButton]) {
bVisible = oHead["_getVisibleButton" + iButton]();
}
return bVisible;
};
HeaderRenderer.getAriaLabelButton = function (oHead, iButton) {
var sAriaLabel;
if (oHead["getAriaLabelButton" + iButton]) {
sAriaLabel = oHead["getAriaLabelButton" + iButton]();
} else if (oHead["_getAriaLabelButton" + iButton]) {
sAriaLabel = oHead["_getAriaLabelButton" + iButton]();
}
return sAriaLabel;
};
HeaderRenderer.getTextButton = function (oHead, iButton) {
var sText;
if (oHead["getTextButton" + iButton]) {
sText = oHead["getTextButton" + iButton]();
} else if (oHead["_getTextButton" + iButton]) {
sText = oHead["_getTextButton" + iButton]();
}
return sText;
};
HeaderRenderer.getAdditionalTextButton = function (oHead, iButton) {
var sText;
if (oHead["getAdditionalTextButton" + iButton]) {
sText = oHead["getAdditionalTextButton" + iButton]();
} else if (oHead["_getAdditionalTextButton" + iButton]) {
sText = oHead["_getAdditionalTextButton" + iButton]();
}
return sText;
};
return HeaderRenderer;
}, /* bExport= */ true);

@@ -61,3 +61,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -64,0 +64,0 @@ * @constructor

@@ -39,3 +39,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -42,0 +42,0 @@ * @constructor

@@ -60,3 +60,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -63,0 +63,0 @@ * @constructor

@@ -37,3 +37,3 @@ /*!

* @extends sap.ui.unified.calendar.DatesRow
* @version 1.54.6
* @version 1.56.0
*

@@ -40,0 +40,0 @@ * @constructor

@@ -59,3 +59,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -62,0 +62,0 @@ * @constructor

@@ -54,3 +54,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -57,0 +57,0 @@ * @constructor

@@ -24,3 +24,3 @@ /*!

* @extends sap.ui.unified.DateTypeRange
* @version 1.54.6
* @version 1.56.0
*

@@ -27,0 +27,0 @@ * @constructor

@@ -47,3 +47,3 @@ /*!

* @extends sap.ui.unified.Calendar
* @version 1.54.6
* @version 1.56.0
*

@@ -191,2 +191,4 @@ * @constructor

this._closeCalendarPicker();
jQuery.sap.focus(this.getAggregation("header").getDomRef("B1"));
}, this);

@@ -473,4 +475,2 @@ this.setAggregation("calendarPicker", oCalPicker);

* @returns {sap.ui.unified.CalendarDateInterval} <code>this</code> to allow method chaining
* @name sap.ui.unified.CalendarDateInterval#setMonths
* @function
*/

@@ -495,4 +495,2 @@ CalendarDateInterval.prototype.setMonths = function(iMonths){

* @returns {sap.ui.unified.CalendarDateInterval} <code>this</code> to allow method chaining
* @name sap.ui.unified.CalendarDateInterval#setFirstDayOfWeek
* @function
*/

@@ -882,2 +880,65 @@ CalendarDateInterval.prototype.setFirstDayOfWeek = function(iFirstDayOfWeek){

/**
* Align maxDate to the Interval's minDate.
* If maxDate is before the minDate number of days to display minus one are added to the maxDate
*
* @param {sap.ui.unified.calendar.CalendarDate} oMaxDate calculated maxDate with the days offset
* @param {sap.ui.unified.calendar.CalendarDate} oMinDate minDate of the Interval
* @returns {sap.ui.unified.calendar.CalendarDate} new calculated date
* @private
*/
CalendarDateInterval.prototype._getMaxDateAlignedToMinDate = function (oMaxDate, oMinDate) {
var oNewDate = new CalendarDate(oMaxDate, this.getPrimaryCalendarType());
if (oNewDate.isBefore(oMinDate)) {
// min and max smaller than interval
oNewDate = new CalendarDate(oMinDate);
oNewDate.setDate(oNewDate.getDate() + this._getDays() - 1);
}
return oNewDate;
};
/**
* Align startDate to the Interval's start and min dates.
*
* If startDate is before the minDate we just return the minDate.
* If startDate is not before the minDate and is after the MaxDate then we just return the maxDate
*
* @param {sap.ui.unified.calendar.CalendarDate} oMaxDate calculated maxDate with the days offset
* @param {sap.ui.unified.calendar.CalendarDate} oMinDate min date of the Interval
* @param {sap.ui.unified.calendar.CalendarDate} oStartDate initial startDate
* @returns {sap.ui.unified.calendar.CalendarDate} new calculated startDate
* @private
*/
CalendarDateInterval.prototype._getStartDateAlignedToMinAndMaxDate = function (oMaxDate, oMinDate, oStartDate) {
var oNewDate = new CalendarDate(oStartDate, this.getPrimaryCalendarType());
if (oNewDate.isBefore(oMinDate)) {
oNewDate = new CalendarDate(oMinDate, this.getPrimaryCalendarType());
} else if (oNewDate.isAfter(oMaxDate)) {
oNewDate = oMaxDate;
}
return oNewDate;
};
/**
* Calculates the startDate of the interval, corrected to the minDate and maxDate
*
* @param {sap.ui.unified.calendar.CalendarDate} oMaxDate maxDate of the Interval
* @param {sap.ui.unified.calendar.CalendarDate} oMinDate minDate of the Interval
* @param {sap.ui.unified.calendar.CalendarDate} oStartDate initial startDate
* @private
*/
CalendarDateInterval.prototype._calculateStartDate = function (oMaxDate, oMinDate, oStartDate) {
var oNewMaxDate = new CalendarDate(oMaxDate, this.getPrimaryCalendarType());
oNewMaxDate.setDate(oNewMaxDate.getDate() - this._getDays() + 1);
oNewMaxDate = this._getMaxDateAlignedToMinDate(oNewMaxDate, oMinDate);
oStartDate = this._getStartDateAlignedToMinAndMaxDate(oNewMaxDate, oMinDate, oStartDate);
return oStartDate;
};
/**
* Sets given start date as date in local.

@@ -892,17 +953,4 @@ *

CalendarDateInterval.prototype._setStartDate = function (oStartDate, bSetFocusDate, bNoEvent) {
oStartDate = this._calculateStartDate(this._oMaxDate, this._oMinDate, oStartDate);
var oMaxDate = new CalendarDate(this._oMaxDate, this.getPrimaryCalendarType());
oMaxDate.setDate(oMaxDate.getDate() - this._getDays() + 1);
if (oMaxDate.isBefore(this._oMinDate)) {
// min and max smaller than interval
oMaxDate = new CalendarDate(this._oMinDate);
oMaxDate.setDate(oMaxDate.getDate() + this._getDays() - 1);
}
if (oStartDate.isBefore(this._oMinDate)) {
oStartDate = new CalendarDate(this._oMinDate, this.getPrimaryCalendarType());
}else if (oStartDate.isAfter(oMaxDate)) {
oStartDate = oMaxDate;
}
var oLocaleDate = oStartDate.toLocalJSDate();

@@ -909,0 +957,0 @@ this.setProperty("startDate", oLocaleDate, true);

@@ -29,3 +29,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -32,0 +32,0 @@ * @constructor

@@ -24,3 +24,3 @@ /*!

* @extends sap.ui.core.Element
* @version 1.54.6
* @version 1.56.0
*

@@ -27,0 +27,0 @@ * @constructor

@@ -60,3 +60,3 @@ /*!

* @extends sap.ui.core.Control
* @version 1.54.6
* @version 1.56.0
*

@@ -291,2 +291,4 @@ * @constructor

this._oPopup.close();
jQuery.sap.focus(this.getAggregation("header").getDomRef("B2"));
}, this);

@@ -293,0 +295,0 @@ this.setAggregation("calendarPicker", oCalPicker);

@@ -64,3 +64,3 @@ /*!

* @extends sap.ui.unified.CalendarDateInterval
* @version 1.54.6
* @version 1.56.0
*

@@ -106,2 +106,4 @@ * @constructor

this._focusDate(oCalPickerFocusedDate, true);
jQuery.sap.focus(this.getAggregation("header").getDomRef("B1"));
}, this);

@@ -108,0 +110,0 @@ this.setAggregation("calendarPicker", oCalPicker);

@@ -76,6 +76,10 @@ /*!

var iMonthsCount = aMonths.length;
oRm.write("<div id=\"" + sId + "-content\" class=\"sapUiCalContent\">");
for (var i = 0; i < aMonths.length; i++) {
for (var i = 0; i < iMonthsCount; i++) {
var oMonth = aMonths[i];
oRm.renderControl(oMonth);
if (iMonthsCount === 2 && i === 0) {
oRm.renderControl(oCal.getAggregation("secondMonthHeader"));
}
}

@@ -82,0 +86,0 @@

@@ -111,2 +111,12 @@ /*!

/**
* This hook method is reserved for derived classes to render resize handles in the appointment.
*
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
* @param {sap.ui.unified.CalendarRow} oRow An object representation of the control that should be rendered.
* @param {sap.ui.unified.CalendarAppointment} oAppointment An object representation of the control that should be rendered.
*/
CalendarRowRenderer.renderResizeHandle = function (oRm, oRow, oAppointment) {
};
CalendarRowRenderer.renderAppointments = function(oRm, oRow, aTypes){

@@ -118,3 +128,2 @@

var aNonWorkingItems = [];
var aNonWorkingDates = [];
var iStartOffset = 0;

@@ -144,3 +153,2 @@ var iNonWorkingMax = 0;

aNonWorkingItems = oRow._getNonWorkingDays();
aNonWorkingDates = oRow.getAggregation("_nonWorkingDates");
iStartOffset = oStartDate.getUTCDay();

@@ -203,3 +211,3 @@ iNonWorkingMax = 7;

this.renderInterval(oRm, oRow, i, iWidth, aIntervalHeaders, aNonWorkingItems, aNonWorkingDates, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType);
this.renderInterval(oRm, oRow, i, iWidth, aIntervalHeaders, aNonWorkingItems, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType);
}

@@ -222,4 +230,7 @@

CalendarRowRenderer.renderInterval = function(oRm, oRow, iInterval, iWidth, aIntervalHeaders, aNonWorkingItems, aNonWorkingDates, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType){
CalendarRowRenderer.writeCustomAttributes = function (oRm, oRow) {
};
CalendarRowRenderer.renderInterval = function(oRm, oRow, iInterval, iWidth, aIntervalHeaders, aNonWorkingItems, iStartOffset, iNonWorkingMax, aNonWorkingSubItems, iSubStartOffset, iNonWorkingSubMax, bFirstOfType, bLastOfType){
var sId = oRow.getId() + "-AppsInt" + iInterval;

@@ -230,6 +241,2 @@ var i;

var iDaysLength = new Date(oRow.getStartDate().getFullYear(), iMonth + 1, 0).getDate();
var oRowStartDate = oRow.getStartDate();
var oCurrentDate;
var oNonWorkingStartDate;
var oNonWorkingEndDate;

@@ -250,31 +257,2 @@ oRm.write("<div id=\"" + sId + "\"");

if (aNonWorkingDates && aNonWorkingDates.length) {
oCurrentDate = new Date(oRowStartDate.getTime());
oCurrentDate.setHours(0,0,0);
oCurrentDate.setDate(oRowStartDate.getDate() + iInterval);
var fnDayMatchesCurrentDate = function(iDay) {
return iDay === oCurrentDate.getDay();
};
for (i = 0; i < aNonWorkingDates.length; i++){
if (aNonWorkingDates[i].getStartDate()) {
oNonWorkingStartDate = new Date(aNonWorkingDates[i].getStartDate().getTime());
}
if (aNonWorkingDates[i].getEndDate()){
oNonWorkingEndDate = new Date(aNonWorkingDates[i].getEndDate().getTime());
} else {
oNonWorkingEndDate = new Date(aNonWorkingDates[i].getStartDate().getTime());
oNonWorkingEndDate.setHours(23, 59, 59);
}
if (oCurrentDate.getTime() >= oNonWorkingStartDate.getTime() && oCurrentDate.getTime() <= oNonWorkingEndDate.getTime()){
var bAlreadyNonWorkingDate = aNonWorkingItems.some(fnDayMatchesCurrentDate);
if (!bAlreadyNonWorkingDate) {
oRm.addClass("sapUiCalendarRowAppsNoWork");
}
}
}
}
if (!bShowIntervalHeaders) {

@@ -294,2 +272,3 @@ oRm.addClass("sapUiCalendarRowAppsIntNoHead");

oRm.writeStyles();
this.writeCustomAttributes(oRm, oRow);
oRm.write(">"); // div element

@@ -620,2 +599,5 @@

oRm.write("</div>");
this.renderResizeHandle(oRm, oRow, oAppointment);
oRm.write("</div>");

@@ -622,0 +604,0 @@ };

@@ -42,3 +42,3 @@ /*!

* @extends sap.ui.unified.CalendarDateInterval
* @version 1.54.6
* @version 1.56.0
*

@@ -182,4 +182,21 @@ * @constructor

/**
* Calculates the startDate of the interval, corrected to the minDate and maxDate
*
* @param {sap.ui.unified.calendar.CalendarDate} oMaxDate maxDate of the Interval
* @param {sap.ui.unified.calendar.CalendarDate} oMinDate minDate of the Interval
* @param {sap.ui.unified.calendar.CalendarDate} oStartDate initial startDate
* @private
*/
CalendarWeekInterval.prototype._calculateStartDate = function (oMaxDate, oMinDate, oStartDate) {
var oMaxDate = new CalendarDate(this._oMaxDate, this.getPrimaryCalendarType());
oMaxDate = this._getMaxDateAlignedToMinDate(oMaxDate, this._oMinDate);
oStartDate = this._getStartDateAlignedToMinAndMaxDate(oMaxDate, this._oMinDate, oStartDate);
return oStartDate;
};
return CalendarWeekInterval;
});

@@ -34,3 +34,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -37,0 +37,0 @@ * @constructor

@@ -57,3 +57,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -60,0 +60,0 @@ * @constructor

@@ -17,3 +17,3 @@ /*!

*
* @version 1.54.6
* @version 1.56.0
* @namespace

@@ -20,0 +20,0 @@ */

@@ -23,3 +23,3 @@ /*!

* @extends sap.ui.core.Element
* @version 1.54.6
* @version 1.56.0
*

@@ -26,0 +26,0 @@ * @constructor

@@ -28,3 +28,3 @@ /*!

* @extends sap.ui.unified.DateRange
* @version 1.54.6
* @version 1.56.0
*

@@ -31,0 +31,0 @@ * @constructor

@@ -18,7 +18,6 @@ /*!

palette: {
group: "INPUT"
// TODO: uncoment icons when it is ready
// icons: {
// svg: "sap/ui/unified/designtime/CalendarDateInterval.icon.svg"
// }
group: "INPUT",
icons: {
svg: "sap/ui/unified/designtime/CalendarDateInterval.icon.svg"
}
},

@@ -25,0 +24,0 @@ templates: {

@@ -36,9 +36,15 @@ /*!

/**
* Constructor for a new FileUploader.
* Constructor for a new <code>FileUploader</code>.
*
* @param {string} [sId] id for the new control, generated automatically if no id is given
* @param {object} [mSettings] initial settings for the new control
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Initial settings for the new control
*
* @class
* The framework generates an input field and a button with text "Browse ...". The API supports features such as on change uploads (the upload starts immediately after a file has been selected), file uploads with explicit calls, adjustable control sizes, text display after uploads, or tooltips containing complete file paths.
* The framework generates an input field and a button with text "Browse ...".
* The API supports features such as on change uploads (the upload starts immediately after
* a file has been selected), file uploads with explicit calls, adjustable control sizes,
* text display after uploads, or tooltips containing complete file paths.
*
* @see {@link https://experience.sap.com/fiori-design-web/upload-collection/ Upload Collection}
*
* @extends sap.ui.core.Control

@@ -48,3 +54,3 @@ * @implements sap.ui.core.IFormContent, sap.ui.unified.IProcessableBlobs

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -51,0 +57,0 @@ * @constructor

@@ -25,3 +25,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -28,0 +28,0 @@ * @constructor

@@ -23,3 +23,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -26,0 +26,0 @@ * @constructor

@@ -23,3 +23,3 @@ /*!

name : "sap.ui.unified",
version: "1.54.6",
version: "1.56.0",
dependencies : ["sap.ui.core"],

@@ -88,3 +88,3 @@ designtime: "sap/ui/unified/designtime/library.designtime",

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
* @public

@@ -91,0 +91,0 @@ */

@@ -53,3 +53,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
* @since 1.21.0

@@ -389,21 +389,33 @@ *

* Opens the menu as a context menu.
* @param {jQuery.Event} oEvent The event object
* @param {jQuery.Event | object} oEvent The event object or an object containing offsetX, offsetY
* values and left, top values of the element's position
* @param {sap.ui.core.Element|HTMLElement} oOpenerRef - Might be UI5 Element or DOM Element
*/
Menu.prototype.openAsContextMenu = function(oEvent, oOpenerRef) {
oOpenerRef = oOpenerRef instanceof Element ? oOpenerRef.getDomRef() : oOpenerRef;
var iOffsetX, iOffsetY, bRTL, eDock, oOpenerRefOffset;
var x = oEvent.pageX - jQuery(oOpenerRef).offset().left,
y = oEvent.pageY - jQuery(oOpenerRef).offset().top,
bRTL = sap.ui.getCore().getConfiguration().getRTL(),
oOpenerRef = oOpenerRef instanceof Element ? oOpenerRef.getDomRef() : oOpenerRef;
if (oEvent instanceof jQuery.Event) {
oOpenerRefOffset = jQuery(oOpenerRef).offset();
iOffsetX = oEvent.pageX - oOpenerRefOffset.left;
iOffsetY = oEvent.pageY - oOpenerRefOffset.top;
this._iX = oEvent.clientX;
this._iY = oEvent.clientY;
} else {
// for explicit position coordinates
iOffsetX = oEvent.offsetX || 0;
iOffsetY = oEvent.offsetY || 0;
this._iX = oEvent.left || 0;
this._iY = oEvent.top || 0;
}
bRTL = sap.ui.getCore().getConfiguration().getRTL();
eDock = Dock;
if (bRTL) {
x = oOpenerRef.clientWidth - x;
}
this._iX = oEvent.clientX;
this._iY = oEvent.clientY;
this._bOpenedAsContextMenu = true;
this.open(true, oOpenerRef, eDock.BeginTop, eDock.BeginTop, oOpenerRef, x + " " + y, 'fit');
if (bRTL) {
iOffsetX = oOpenerRef.clientWidth - iOffsetX;
}
this._bOpenedAsContextMenu = true;
this.open(true, oOpenerRef, eDock.BeginTop, eDock.BeginTop, oOpenerRef, iOffsetX + " " + iOffsetY, 'fit');
};

@@ -410,0 +422,0 @@

@@ -26,3 +26,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
* @since 1.21.0

@@ -52,3 +52,3 @@ *

IconPool.getIconInfo("", ""); //Ensure Icon Font is loaded
IconPool.insertFontFaceStyle(); //Ensure Icon Font is loaded

@@ -55,0 +55,0 @@ MenuItem.prototype.render = function(oRenderManager, oItem, oMenu, oInfo){

@@ -26,3 +26,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
* @since 1.21.0

@@ -29,0 +29,0 @@ *

@@ -18,3 +18,3 @@ /*!

*
* @version 1.54.6
* @version 1.56.0
* @namespace

@@ -21,0 +21,0 @@ */

@@ -31,3 +31,3 @@ /*!

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
* @since 1.21.0

@@ -146,9 +146,3 @@ *

oMenu.closeSubmenu(false, true);
if (Device.browser.msie) {
jQuery.sap.delayedCall(0, this, function () {
this.$("tf").focus();
}.bind(this));
} else {
this.$("tf").focus();
}
this.$("tf").focus();
}

@@ -247,3 +241,3 @@ };

* @name sap.ui.unified.MenuTextFieldItem#getSubmenu
* @deprecated The aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
* @deprecated As of version 1.21, the aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
* @function

@@ -258,3 +252,3 @@ */

* @name sap.ui.unified.MenuTextFieldItem#destroySubmenu
* @deprecated The aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
* @deprecated As of version 1.21, the aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
* @function

@@ -269,3 +263,3 @@ */

* @public
* @deprecated The aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
* @deprecated As of version 1.21, the aggregation <code>submenu</code> (inherited from parent class) is not supported for this type of menu item.
*/

@@ -272,0 +266,0 @@ MenuTextFieldItem.prototype.setSubmenu = function(oMenu){

@@ -8,3 +8,3 @@ /*!

// Provides control sap.ui.unified.Shell.
sap.ui.define(['./ShellHeader', './ShellLayout', './library', "./ShellRenderer"],
sap.ui.define(['./ShellHeader', './ShellLayout', './library', './ShellRenderer'],
function(ShellHeader, ShellLayout, library, ShellRenderer) {

@@ -29,3 +29,3 @@ "use strict";

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -32,0 +32,0 @@ * @constructor

@@ -7,4 +7,4 @@ /*!

sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/Device'],
function(jQuery, library, Control, Device) {
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/Device', 'sap/ui/core/theming/Parameters'],
function(jQuery, library, Control, Device, Parameters) {
"use strict";

@@ -214,4 +214,3 @@

if (!ico) {
jQuery.sap.require("sap.ui.core.theming.Parameters");
ico = sap.ui.core.theming.Parameters._getThemeImage(null, true); // theme logo
ico = Parameters._getThemeImage(null, true); // theme logo
}

@@ -218,0 +217,0 @@ return ico;

@@ -8,4 +8,4 @@ /*!

// Provides control sap.ui.unified.ShellHeadItem.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/IconPool', './library'],
function(jQuery, Element, IconPool, library) {
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/IconPool', './library', 'jquery.sap.encoder'],
function(jQuery, Element, IconPool, library /*, jQueryEncoder*/) {
"use strict";

@@ -26,3 +26,3 @@

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -29,0 +29,0 @@ * @constructor

@@ -8,4 +8,4 @@ /*!

// Provides control sap.ui.unified.ShellHeadUserItem.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/IconPool', './library'],
function(jQuery, Element, IconPool, library) {
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/IconPool', './library', 'jquery.sap.encoder'],
function(jQuery, Element, IconPool, library /*, jQueryEncoder*/) {
"use strict";

@@ -26,3 +26,3 @@

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -73,3 +73,3 @@ * @constructor

IconPool.getIconInfo("", ""); //Ensure Icon Font is loaded
IconPool.insertFontFaceStyle(); //Ensure Icon Font is loaded

@@ -76,0 +76,0 @@ ShellHeadUserItem.prototype.onclick = function(oEvent){

@@ -9,12 +9,12 @@ /*!

sap.ui.define([
'jquery.sap.global',
'sap/ui/Device',
'sap/ui/core/Control',
'sap/ui/core/Popup',
'sap/ui/core/theming/Parameters',
'./SplitContainer',
'./library',
"./ShellLayoutRenderer",
'jquery.sap.dom',
'jquery.sap.script'
'jquery.sap.global',
'sap/ui/Device',
'sap/ui/core/Control',
'sap/ui/core/Popup',
'sap/ui/core/theming/Parameters',
'./SplitContainer',
'./library',
'./ShellLayoutRenderer',
'jquery.sap.dom',
'jquery.sap.script'
], function(

@@ -29,2 +29,3 @@ jQuery,

ShellLayoutRenderer
/* , jQueryDom, jQueryScript */
) {

@@ -49,3 +50,3 @@ "use strict";

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -52,0 +53,0 @@ * @constructor

@@ -8,4 +8,13 @@ /*!

// Provides control sap.ui.unified.ShellOverlay.
sap.ui.define(['jquery.sap.global', 'sap/ui/Device', 'sap/ui/core/Control', 'sap/ui/core/Popup', './library', 'sap/ui/unified/ShellOverlayRenderer', 'jquery.sap.script'],
function(jQuery, Device, Control, Popup, library/* , jQuerySap */, ShellOverlayRenderer) {
sap.ui.define([
'jquery.sap.global',
'sap/ui/Device',
'sap/ui/core/Control',
'sap/ui/core/Popup',
'./library',
'sap/ui/core/theming/Parameters',
'./ShellOverlayRenderer',
'jquery.sap.script',
'jquery.sap.dom'],
function(jQuery, Device, Control, Popup, library, Parameters, ShellOverlayRenderer/* , jQueryScript, jQueryDom */) {
"use strict";

@@ -26,3 +35,3 @@

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -269,3 +278,3 @@ * @constructor

ShellOverlay.prototype._getAnimDurationThemeParam = function(sParam, bClearIfNotActive){
var val = parseInt(sap.ui.core.theming.Parameters.get(sParam), 10);
var val = parseInt(Parameters.get(sParam), 10);
if (!this._getAnimActive() && bClearIfNotActive) {

@@ -272,0 +281,0 @@ val = 0;

@@ -14,4 +14,5 @@ /*!

'sap/ui/core/library',
"./SplitContainerRenderer"
], function(jQuery, Control, Parameters, library, coreLibrary, SplitContainerRenderer) {
'./SplitContainerRenderer',
'jquery.sap.script'
], function(jQuery, Control, Parameters, library, coreLibrary, SplitContainerRenderer /*, jQueryScript*/ ) {
"use strict";

@@ -37,3 +38,3 @@

* @author SAP SE
* @version 1.54.6
* @version 1.56.0
*

@@ -40,0 +41,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 not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc