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

@openui5/sap.ui.layout

Package Overview
Dependencies
Maintainers
4
Versions
586
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.58.2 to 1.58.3

7

LICENSE.txt

@@ -600,3 +600,10 @@

Component: lodash 4.17.10
Licensor: JS Foundation and other contributors
Website: https://github.com/lodash/lodash
License: MIT License
<year> = 2018
<copyright holders> = JS Foundation and other contributors
--------------------------------------------------------------------------------------------------------------------------

@@ -603,0 +610,0 @@

4

package.json
{
"name": "@openui5/sap.ui.layout",
"version": "1.58.2",
"version": "1.58.3",
"description": "OpenUI5 UI Library sap.ui.layout",

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

"dependencies": {
"@openui5/sap.ui.core": "1.58.2"
"@openui5/sap.ui.core": "1.58.3"
}
}

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -97,3 +97,3 @@ * @constructor

// registration ID used for deregistering the resize handler
this._sResizeListenerId = ResizeHandler.register(this, this._onResize.bind(this));
this._sResizeListenerId = ResizeHandler.register(this, this.onResize.bind(this));
};

@@ -128,3 +128,3 @@

this._onResize(null, oDomRef, oEndItemDomRef);
this.reflow({ domRef: oDomRef, endItemDomRef: oEndItemDomRef });

@@ -142,12 +142,32 @@ // update last spacer width

// control changes
AlignedFlowLayout.prototype._onResize = function(oEvent, oDomRef, oEndItemDomRef) {
AlignedFlowLayout.prototype.onResize = function(oEvent, oDomRef, oEndItemDomRef) {
// called by resize handler, but only the height changed, so there is nothing to do;
// this is required to avoid a resizing loop
if ((oEvent && (oEvent.size.width === oEvent.oldSize.width)) || (this.getContent().length === 0)) {
if (oEvent && (oEvent.size.width === oEvent.oldSize.width)) {
return;
}
oDomRef = oDomRef || this.getDomRef();
this.reflow({ domRef: oDomRef, endItemDomRef: oEndItemDomRef });
};
/**
* Re-calculate the positions and geometries of items in the <code>AlignFlowLayout</code> control to re-arrange
* items evenly across the horizontal space available (if necessary).
*
* @param {object} [oSettings] Settings to reflow the <code>AlignedFlowLayout</code> control
* @param {HTMLDivElement} [oSettings.domRef] The root control's DOM reference
* @param {HTMLDivElement} [oSettings.endItemDomRef] The end item's DOM reference
* @protected
* @since 1.60
*/
AlignedFlowLayout.prototype.reflow = function(oSettings) {
if (this.getContent().length === 0) {
return;
}
oSettings = oSettings || {};
var oDomRef = oSettings.domRef || this.getDomRef();
// skip unnecessary style recalculations if the control root DOM element has been removed from the DOM

@@ -161,4 +181,4 @@ if (!oDomRef) {

oEndItemDomRef = oEndItemDomRef || this.getDomRef("endItem");
var oLastItemDomRef = this.getLastItemDomRef();
var oEndItemDomRef = oSettings.endItemDomRef || this.getDomRef("endItem"),
oLastItemDomRef = this.getLastItemDomRef();

@@ -165,0 +185,0 @@ if (oEndItemDomRef && oLastItemDomRef) {

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

oRm.write("<ul");
oRm.write("<div");
oRm.writeControlData(oControl);

@@ -45,3 +45,3 @@ oRm.addClass(AlignedFlowLayoutRenderer.CSS_CLASS);

oRm.write("</ul>");
oRm.write("</div>");
};

@@ -74,3 +74,3 @@

AlignedFlowLayoutRenderer.renderItem = function(oRm, oControl, oContent) {
oRm.write("<li");
oRm.write("<div");
oRm.addClass(AlignedFlowLayoutRenderer.CSS_CLASS + "Item");

@@ -83,3 +83,3 @@ oRm.addStyle("flex-basis", oControl.getMinItemWidth());

oRm.renderControl(oContent);
oRm.write("</li>");
oRm.write("</div>");
};

@@ -99,3 +99,3 @@

if (aEndContent.length) {
oRm.write("<li");
oRm.write("<div");
oRm.writeAttribute("id", oControl.getId() + "-endItem");

@@ -118,3 +118,3 @@ oRm.addClass(AlignedFlowLayoutRenderer.CSS_CLASS + "End");

oRm.write("</li>");
oRm.write("</div>");
}

@@ -155,3 +155,3 @@ };

for (var i = 0; i < iSpacers; i++) {
oRm.write("<li");
oRm.write("<div");

@@ -168,3 +168,3 @@ if (i === (iSpacers - 1)) {

oRm.writeStyles();
oRm.write("></li>");
oRm.write("></div>");
}

@@ -171,0 +171,0 @@ };

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -377,3 +377,3 @@ * @constructor

// TODO: (?) Use maxSize value from layoutData
var i, sSize, oLayoutData, iColSize, idx, iSize;
var i, sSize, oLayoutData, iColSize, idx, iSize, iMinSize;

@@ -439,2 +439,7 @@ // Read all content sizes from the layout data

iColSize = parseFloat(aSizes[idx]) / 100 * iAvailableSize;
iMinSize = parseInt(aContentAreas[idx].getLayoutData().getMinSize(), 10);
if (iColSize < iMinSize) {
iColSize = iMinSize;
}
}

@@ -455,3 +460,3 @@ this._calculatedSizes[idx] = iColSize;

idx = aAutoMinsizeIdx[i];
var iMinSize = parseInt(aContentAreas[idx].getLayoutData().getMinSize(), 10);
iMinSize = parseInt(aContentAreas[idx].getLayoutData().getMinSize(), 10);
if (iMinSize > iColSize) {

@@ -458,0 +463,0 @@ this._calculatedSizes[idx] = iMinSize;

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -69,0 +69,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @extends sap.ui.core.LayoutData
* @version 1.58.2
* @version 1.58.3
* @constructor

@@ -24,0 +24,0 @@ * @public

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @experimental Since 1.48.0

@@ -22,0 +22,0 @@ */

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

*
* @version 1.58.2
* @version 1.58.3
*

@@ -26,0 +26,0 @@ * @experimental Since 1.50.0 This class is experimental and provides only limited functionality. Also the API might be

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

*
* @version 1.58.2
* @version 1.58.3
*

@@ -25,0 +25,0 @@ * @experimental Since 1.49.0 This class is experimental and provides only limited functionality. Also the API might be

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @experimental Since 1.27.0

@@ -19,0 +19,0 @@ */

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @experimental Since 1.27.0

@@ -58,3 +58,3 @@ */

var iStart = -1;
var mState = this._getState(oControl, oModifier);
var mState = this._getState(oControl, oModifier, oAppComponent);
oChange.setRevertData(mState);

@@ -163,3 +163,3 @@

HideForm._getState = function (oControl, oModifier) {
HideForm._getState = function (oControl, oModifier, oAppComponent) {
var aContent = oModifier.getAggregation(oControl, "content");

@@ -169,3 +169,3 @@ return {

return {
element : oElement,
elementSelector : oModifier.getSelector(oModifier.getId(oElement), oAppComponent),
visible : oElement.getVisible ? oElement.getVisible() : undefined,

@@ -180,8 +180,9 @@ index : aContent.indexOf(oElement)

var mState = oChange.getRevertData();
oControl.removeAllContent();
var oAppComponent = mPropertyBag.appComponent;
var oModifier = mPropertyBag.modifier;
oModifier.removeAllAggregation(oControl, "content");
mState.content.forEach(function(oElementState) {
oControl.insertContent(oElementState.element, oElementState.index);
if (oElementState.element.setVisible){
oElementState.element.setVisible(oElementState.visible);
}
var oElement = oModifier.bySelector(oElementState.elementSelector, oAppComponent);
oModifier.insertAggregation(oControl, "content", oElement, oElementState.index, mPropertyBag.view);
oModifier.setProperty(oElement, "visible", oElementState.visible);
});

@@ -188,0 +189,0 @@ oChange.resetRevertData();

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @experimental Since 1.34.0

@@ -24,0 +24,0 @@ */

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @since 1.48

@@ -22,0 +22,0 @@ * @private

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @since 1.40

@@ -27,0 +27,0 @@ * @private

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @experimental Since 1.27.0

@@ -19,0 +19,0 @@ */

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -95,0 +95,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @extends sap.ui.layout.form.FormLayout
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -49,0 +49,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -41,0 +41,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @extends sap.ui.layout.form.FormLayout
* @version 1.58.2
* @version 1.58.3
*

@@ -59,0 +59,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @version
* 1.58.2
* 1.58.3
* @namespace

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
* @public

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

name : "sap.ui.layout",
version: "1.58.2",
version: "1.58.3",
dependencies: ["sap.ui.core"],

@@ -34,0 +34,0 @@ designtime: "sap/ui/layout/designtime/library.designtime",

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

@@ -72,0 +72,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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

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

* @extends sap.ui.core.LayoutData
* @version 1.58.2
* @version 1.58.3
*

@@ -30,0 +30,0 @@ * @constructor

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

* @author SAP SE
* @version 1.58.2
* @version 1.58.3
*

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