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.56.0 to 1.56.1

4

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

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

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -36,0 +36,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @extends sap.ui.core.LayoutData
* @version 1.56.0
* @version 1.56.1
* @constructor

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @experimental Since 1.48.0

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

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

*
* @version 1.56.0
* @version 1.56.1
*

@@ -25,0 +25,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.56.0
* @version 1.56.1
*

@@ -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.56.0
* @version 1.56.1
* @experimental Since 1.27.0

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @experimental Since 1.27.0

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @experimental Since 1.34.0

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @since 1.48

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

@@ -10,4 +10,9 @@ /*!

sap.ui.define([
"sap/ui/fl/changeHandler/Base", "sap/ui/core/util/reflection/JsControlTreeModifier", "sap/ui/fl/Utils"
], function(BaseChangeHandler, JsControlTreeModifier, Utils) {
"sap/ui/fl/changeHandler/Base",
"sap/ui/core/util/reflection/JsControlTreeModifier",
"sap/ui/fl/Utils"
], function(
BaseChangeHandler,
JsControlTreeModifier,
Utils) {
"use strict";

@@ -20,3 +25,3 @@

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @since 1.40

@@ -53,2 +58,3 @@ * @private

oChangeWrapper.setRevertData(oModifier.getProperty(oRenamedElement, "text"));
var sValue = oChangeDefinition.texts.formText.value;

@@ -65,2 +71,34 @@ oModifier.setProperty(oRenamedElement, "text", sValue);

/**
* Reverts a Rename Change
*
* @param {sap.ui.fl.Change} oChangeWrapper change wrapper object with instructions to be applied on the control map
* @param {sap.ui.core.Control} oControl Control that matches the change selector for applying the change
* @param {object} mPropertyBag property bag
* @param {object} mPropertyBag.modifier modifier for the controls
* @returns {boolean} true if successful
* @public
*/
RenameForm.revertChange = function(oChangeWrapper, oControl, mPropertyBag) {
var sOldText = oChangeWrapper.getRevertData();
var oAppComponent = mPropertyBag.appComponent;
var oChangeDefinition = oChangeWrapper.getDefinition();
var oView = mPropertyBag.view;
var oModifier = mPropertyBag.modifier;
// !important : sRenameId was used in 1.40, do not remove for compatibility!
var vSelector = oChangeDefinition.content.elementSelector || oChangeDefinition.content.sRenameId;
var oRenamedElement = oModifier.bySelector(vSelector, oAppComponent, oView);
if (sOldText || sOldText === "") {
oModifier.setProperty(oRenamedElement, "text", sOldText);
// In some cases the SimpleForm does not properly update the value, so the invalidate call is required
oRenamedElement.getParent().invalidate();
oChangeWrapper.resetRevertData();
return true;
} else {
Utils.log.error("Change doesn't contain sufficient information to be reverted. Most Likely the Change didn't go through applyChange.");
}
};
/**
* Completes the change by adding change handler specific content

@@ -67,0 +105,0 @@ *

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
* @experimental Since 1.27.0

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @extends sap.ui.layout.form.FormLayout
* @version 1.56.0
* @version 1.56.1
*

@@ -58,0 +58,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -46,0 +46,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -466,3 +466,3 @@ * @constructor

}
} else if (oElement && oElement.isA("sap/ui/layout/form/FormContainer")) {
} else if (oElement && oElement.isA("sap.ui.layout.form.FormContainer")) {
// current control is not inside an Element - maybe a title or expander?

@@ -469,0 +469,0 @@ oNewDomRef = this.findFirstFieldOfNextElement(oElement, 0);

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -35,0 +35,0 @@ * @constructor

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

* @extends sap.ui.layout.form.FormLayout
* @version 1.56.0
* @version 1.56.1
*

@@ -39,0 +39,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -39,0 +39,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @version
* 1.56.0
* 1.56.1
* @namespace

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

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

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

name : "sap.ui.layout",
version: "1.56.0",
version: "1.56.1",
dependencies: ["sap.ui.core"],

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -44,0 +44,0 @@ * @constructor

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -46,0 +46,0 @@ * @constructor

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

* @extends sap.ui.core.LayoutData
* @version 1.56.0
* @version 1.56.1
*

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

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

* @author SAP SE
* @version 1.56.0
* @version 1.56.1
*

@@ -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

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