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.56.2 to 1.56.3

4

package.json
{
"name": "@openui5/sap.ui.unified",
"version": "1.56.2",
"version": "1.56.3",
"description": "OpenUI5 UI Library sap.ui.unified",

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

"dependencies": {
"@openui5/sap.ui.core": "1.56.2"
"@openui5/sap.ui.core": "1.56.3"
}
}

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

* @extends sap.ui.unified.calendar.Month
* @version 1.56.2
* @version 1.56.3
*

@@ -38,0 +38,0 @@ * @constructor

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

@@ -33,0 +33,0 @@ * @constructor

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

@@ -319,5 +319,5 @@ * @constructor

var bSelected = _selectDay.call(this, this._getDate());
var bSelected = this._selectDay(this._getDate());
if (!bSelected && this._oMoveSelectedDate) {
_selectDay.call(this, this._oMoveSelectedDate);
this._selectDay(this._oMoveSelectedDate);
}

@@ -944,3 +944,3 @@ this._bMoveChange = false;

this._setDate(oFocusedDate);
var bSelected = _selectDay.call(this, oFocusedDate, true);
var bSelected = this._selectDay(oFocusedDate, true);
if (bSelected) {

@@ -988,5 +988,5 @@ // remember last selected enabled date

// selection was changed -> make it final
var bSelected = _selectDay.call(this, oFocusedDate);
var bSelected = this._selectDay(oFocusedDate);
if (!bSelected && this._oMoveSelectedDate) {
_selectDay.call(this, this._oMoveSelectedDate);
this._selectDay(this._oMoveSelectedDate);
}

@@ -1005,6 +1005,7 @@ this._bMoveChange = false;

&& this._isValueInThreshold(this._oMousedownPosition.clientY, oEvent.clientY, 10)
&& oEvent.target.classList.contains("sapUiCalItemText")
&& (oEvent.target.classList.contains("sapUiCalItemText")
|| oEvent.target.classList.contains("sapUiCalDayName"))
) {
var oSelectedDate = CalendarDate.fromLocalJSDate(this._oFormatYyyymmdd.parse(jQuery(oEvent.target).parent().attr("data-sap-day")), this.getPrimaryCalendarType());
_selectDay.call(this, oSelectedDate, false, false);
this._selectDay(oSelectedDate, false, false);
_fireSelect.call(this);

@@ -1018,3 +1019,3 @@ }

// focused item must be selected
var bSelected = _selectDay.call(this, this._getDate());
var bSelected = this._selectDay(this._getDate());
if (bSelected) {

@@ -1361,2 +1362,148 @@ _fireSelect.call(this);

Month.prototype._handleMousedown = function(oEvent, oFocusedDate, iIndex){
var bTouchIeOrEdge = (Device.browser.msie || Device.browser.edge) && navigator.maxTouchPoints,
bWeekNumberPressed = oEvent.target.classList.contains("sapUiCalWeekNum"),
bLeftMouseButton = !oEvent.button;
if (!bLeftMouseButton || Device.support.touch || (bWeekNumberPressed && (bLeftMouseButton || bTouchIeOrEdge))) {
// don't select date:
// - if other than left button is pressed
// - on touch device in order to avoid date selection when scrolling
// - on a touch device with IE/Edge because they don't recognise touch devices as such
// so we use navigator.maxTouchPoints when press on the week number
return;
}
var bSelected = this._selectDay(oFocusedDate);
if (bSelected) {
this._bMousedownChange = true;
}
if (this._bMouseMove) {
// a mouseup must be happened outside of control -> just end move
this._unbindMousemove(true);
this._bMoveChange = false;
this._oMoveSelectedDate = undefined;
}else if (bSelected && this.getIntervalSelection() && this.$().is(":visible")) {
// if calendar was closed in select event, do not add mousemove handler
this._bindMousemove(true);
this._oMoveSelectedDate = new CalendarDate(oFocusedDate, this.getPrimaryCalendarType());
}
oEvent.preventDefault(); // to prevent focus set outside of DatePicker
oEvent.setMark("cancelAutoClose");
};
/**
* Selects a given date.
* @param{sap.ui.unified.calendar.CalendarDate} oDate the date to select
* @param {boolean} bMove Whether there is move mode
* @return {boolean} true if the date was really selected, false otherwise
* @private
*/
Month.prototype._selectDay = function(oDate, bMove) {
if (!this._checkDateEnabled(oDate)) {
// date is disabled -> do not select it
return false;
}
var aSelectedDates = this.getSelectedDates();
var oDateRange;
var aDomRefs = this._oItemNavigation.getItemDomRefs();
var $DomRef;
var sYyyymmdd;
var i = 0;
var oParent = this.getParent();
var oAggOwner = this;
var oStartDate;
var sCalendarType = this.getPrimaryCalendarType();
if (oParent && oParent.getSelectedDates) {
// if used in Calendar use the aggregation of this one
oAggOwner = oParent;
}
/* eslint-disable no-lonely-if */
if (this.getSingleSelection()) {
if (aSelectedDates.length > 0) {
oDateRange = aSelectedDates[0];
oStartDate = oDateRange.getStartDate();
if (oStartDate) {
oStartDate = CalendarDate.fromLocalJSDate(oStartDate, sCalendarType);
}
} else {
oDateRange = new sap.ui.unified.DateRange();
oAggOwner.addAggregation("selectedDates", oDateRange, true); // no re-rendering
}
if (this.getIntervalSelection() && (!oDateRange.getEndDate() || bMove) && oStartDate) {
// single interval selection
var oEndDate;
if (oDate.isBefore(oStartDate)) {
oEndDate = oStartDate;
oStartDate = oDate;
if (!bMove) {
// in move mode do not set date. this bring problems if on backward move the start date would be cahnged
oDateRange.setProperty("startDate", oStartDate.toLocalJSDate(), true); // no-rerendering
oDateRange.setProperty("endDate", oEndDate.toLocalJSDate(), true); // no-rerendering
}
} else if (oDate.isSameOrAfter(oStartDate)) {
// single day ranges are allowed
oEndDate = oDate;
if (!bMove) {
oDateRange.setProperty("endDate", oEndDate.toLocalJSDate(), true); // no-rerendering
}
}
_updateSelection.call(this, oStartDate, oEndDate);
} else {
// single day selection or start a new interval
_updateSelection.call(this, oDate);
oDateRange.setProperty("startDate", oDate.toLocalJSDate(), true); // no-rerendering
oDateRange.setProperty("endDate", undefined, true); // no-rerendering
}
} else {
// multiple selection
if (this.getIntervalSelection()) {
throw new Error("Calender don't support multiple interval selection");
} else {
var iSelected = this._checkDateSelected(oDate);
if (iSelected > 0) {
// already selected - deselect
for ( i = 0; i < aSelectedDates.length; i++) {
oStartDate = aSelectedDates[i].getStartDate();
if (oStartDate && oDate.isSame(CalendarDate.fromLocalJSDate(oStartDate, sCalendarType))) {
oAggOwner.removeAggregation("selectedDates", i, true); // no re-rendering
break;
}
}
} else {
// not selected -> select
oDateRange = new sap.ui.unified.DateRange({startDate: oDate.toLocalJSDate()});
oAggOwner.addAggregation("selectedDates", oDateRange, true); // no re-rendering
}
sYyyymmdd = this._oFormatYyyymmdd.format(oDate.toUTCJSDate(), true);
for ( i = 0; i < aDomRefs.length; i++) {
$DomRef = jQuery(aDomRefs[i]);
if ($DomRef.attr("data-sap-day") == sYyyymmdd) {
if (iSelected > 0) {
$DomRef.removeClass("sapUiCalItemSel");
$DomRef.attr("aria-selected", "false");
} else {
$DomRef.addClass("sapUiCalItemSel");
$DomRef.attr("aria-selected", "true");
}
}
}
}
}
return true;
};
function _initItemNavigation(){

@@ -1487,3 +1634,3 @@

// as no click event is fired in some cases, e.g. if month is changed (because of changing DOM) select the day on mousedown
_handleMousedown.call(this, oEvent, oFocusedDate, iIndex);
this._handleMousedown(oEvent, oFocusedDate, iIndex);
}

@@ -1509,3 +1656,3 @@

}
_handleMousedown.call(this, oEvent, oFocusedDate, iIndex);
this._handleMousedown(oEvent, oFocusedDate, iIndex);
}

@@ -1515,30 +1662,2 @@

function _handleMousedown(oEvent, oFocusedDate, iIndex){
if (oEvent.button || Device.support.touch) {
// only use left mouse button or not touch
return;
}
var bSelected = _selectDay.call(this, oFocusedDate);
if (bSelected) {
this._bMousedownChange = true;
}
if (this._bMouseMove) {
// a mouseup must be happened outside of control -> just end move
this._unbindMousemove(true);
this._bMoveChange = false;
this._oMoveSelectedDate = undefined;
}else if (bSelected && this.getIntervalSelection() && this.$().is(":visible")) {
// if calendar was closed in select event, do not add mousemove handler
this._bindMousemove(true);
this._oMoveSelectedDate = new CalendarDate(oFocusedDate, this.getPrimaryCalendarType());
}
oEvent.preventDefault(); // to prevent focus set outside of DatePicker
oEvent.setMark("cancelAutoClose");
}
/**

@@ -1664,112 +1783,2 @@ *

/**
* Selects a given date.
* @param{sap.ui.unified.calendar.CalendarDate} oDate the date to select
* @param {boolean} bMove Whether there is move mode
* @return {boolean} true if the date was really selected, false otherwise
* @private
*/
function _selectDay(oDate, bMove){
if (!this._checkDateEnabled(oDate)) {
// date is disabled -> do not select it
return false;
}
var aSelectedDates = this.getSelectedDates();
var oDateRange;
var aDomRefs = this._oItemNavigation.getItemDomRefs();
var $DomRef;
var sYyyymmdd;
var i = 0;
var oParent = this.getParent();
var oAggOwner = this;
var oStartDate;
var sCalendarType = this.getPrimaryCalendarType();
if (oParent && oParent.getSelectedDates) {
// if used in Calendar use the aggregation of this one
oAggOwner = oParent;
}
/* eslint-disable no-lonely-if */
if (this.getSingleSelection()) {
if (aSelectedDates.length > 0) {
oDateRange = aSelectedDates[0];
oStartDate = oDateRange.getStartDate();
if (oStartDate) {
oStartDate = CalendarDate.fromLocalJSDate(oStartDate, sCalendarType);
}
} else {
oDateRange = new sap.ui.unified.DateRange();
oAggOwner.addAggregation("selectedDates", oDateRange, true); // no re-rendering
}
if (this.getIntervalSelection() && (!oDateRange.getEndDate() || bMove) && oStartDate) {
// single interval selection
var oEndDate;
if (oDate.isBefore(oStartDate)) {
oEndDate = oStartDate;
oStartDate = oDate;
if (!bMove) {
// in move mode do not set date. this bring problems if on backward move the start date would be cahnged
oDateRange.setProperty("startDate", oStartDate.toLocalJSDate(), true); // no-rerendering
oDateRange.setProperty("endDate", oEndDate.toLocalJSDate(), true); // no-rerendering
}
} else if (oDate.isSameOrAfter(oStartDate)) {
// single day ranges are allowed
oEndDate = oDate;
if (!bMove) {
oDateRange.setProperty("endDate", oEndDate.toLocalJSDate(), true); // no-rerendering
}
}
_updateSelection.call(this, oStartDate, oEndDate);
} else {
// single day selection or start a new interval
_updateSelection.call(this, oDate);
oDateRange.setProperty("startDate", oDate.toLocalJSDate(), true); // no-rerendering
oDateRange.setProperty("endDate", undefined, true); // no-rerendering
}
} else {
// multiple selection
if (this.getIntervalSelection()) {
throw new Error("Calender don't support multiple interval selection");
} else {
var iSelected = this._checkDateSelected(oDate);
if (iSelected > 0) {
// already selected - deselect
for ( i = 0; i < aSelectedDates.length; i++) {
oStartDate = aSelectedDates[i].getStartDate();
if (oStartDate && oDate.isSame(CalendarDate.fromLocalJSDate(oStartDate, sCalendarType))) {
oAggOwner.removeAggregation("selectedDates", i, true); // no re-rendering
break;
}
}
} else {
// not selected -> select
oDateRange = new sap.ui.unified.DateRange({startDate: oDate.toLocalJSDate()});
oAggOwner.addAggregation("selectedDates", oDateRange, true); // no re-rendering
}
sYyyymmdd = this._oFormatYyyymmdd.format(oDate.toUTCJSDate(), true);
for ( i = 0; i < aDomRefs.length; i++) {
$DomRef = jQuery(aDomRefs[i]);
if ($DomRef.attr("data-sap-day") == sYyyymmdd) {
if (iSelected > 0) {
$DomRef.removeClass("sapUiCalItemSel");
$DomRef.attr("aria-selected", "false");
} else {
$DomRef.addClass("sapUiCalItemSel");
$DomRef.attr("aria-selected", "true");
}
}
}
}
}
return true;
}
/*

@@ -1776,0 +1785,0 @@ * Toggles the selected class for the currently selected date.

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.unified.calendar.DatesRow
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.unified.DateTypeRange
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.unified.Calendar
* @version 1.56.2
* @version 1.56.3
*

@@ -50,0 +50,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.core.Element
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.unified.CalendarDateInterval
* @version 1.56.2
* @version 1.56.3
*

@@ -67,0 +67,0 @@ * @constructor

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

* @extends sap.ui.core.Control
* @version 1.56.2
* @version 1.56.3
*

@@ -70,0 +70,0 @@ * @constructor

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

* @extends sap.ui.unified.CalendarDateInterval
* @version 1.56.2
* @version 1.56.3
*

@@ -45,0 +45,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

*
* @version 1.56.2
* @version 1.56.3
* @namespace

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

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

* @extends sap.ui.core.Element
* @version 1.56.2
* @version 1.56.3
*

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

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

* @extends sap.ui.unified.DateRange
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

@@ -1199,2 +1199,3 @@ * @constructor

iKeyCode != eKC.END &&
iKeyCode != eKC.ESCAPE &&
iKeyCode != eKC.HOME &&

@@ -1667,3 +1668,3 @@ iKeyCode != eKC.ARROW_LEFT &&

try {
sResponse = that.oIFrameRef.contentDocument.body.innerHTML;
sResponse = that.oIFrameRef.contentWindow.document.body.innerHTML;
} catch (ex) {

@@ -1670,0 +1671,0 @@ // in case of cross-domain submit we get a permission denied exception

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

name : "sap.ui.unified",
version: "1.56.2",
version: "1.56.3",
dependencies : ["sap.ui.core"],

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
* @public

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
* @since 1.21.0

@@ -56,0 +56,0 @@ *

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
* @since 1.21.0

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
* @since 1.21.0

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

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

*
* @version 1.56.2
* @version 1.56.3
* @namespace

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
* @since 1.21.0

@@ -34,0 +34,0 @@ *

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

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

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

* @author SAP SE
* @version 1.56.2
* @version 1.56.3
*

@@ -40,0 +40,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 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