@openui5/sap.ui.layout
Advanced tools
Comparing version 1.56.5 to 1.58.0
@@ -280,5 +280,5 @@ | ||
Component: es6-promise 2.3.0 - a tiny implementation of Promises/A+. | ||
Licensor: Jake Archibald | ||
Website: https://github.com/jakearchibald/es6-promise | ||
Component: es6-promise v4.2.4 - a tiny implementation of Promises/A+. | ||
Licensor: Stefan Penner | ||
Website: https://github.com/stefanpenner/es6-promise | ||
License: MIT License | ||
@@ -436,2 +436,7 @@ <year> = 2014 | ||
Component: Object assign Method | ||
Licensor: Mozilla Developer Network | ||
Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill | ||
License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | ||
Component: punycode.js 1.2.3 | ||
@@ -438,0 +443,0 @@ Licensor: Acid Media |
{ | ||
"name": "@openui5/sap.ui.layout", | ||
"version": "1.56.5", | ||
"version": "1.58.0", | ||
"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.5" | ||
"@openui5/sap.ui.core": "1.58.0" | ||
} | ||
} |
@@ -8,9 +8,9 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/core/ResizeHandler', | ||
"./AlignedFlowLayoutRenderer" | ||
"sap/ui/core/Control", | ||
"./library", | ||
"sap/ui/core/ResizeHandler", | ||
"./AlignedFlowLayoutRenderer", | ||
"sap/ui/dom/units/Rem" | ||
], | ||
function(jQuery, Control, library, ResizeHandler, AlignedFlowLayoutRenderer) { | ||
function(Control, library, ResizeHandler, AlignedFlowLayoutRenderer, Rem) { | ||
"use strict"; | ||
@@ -34,3 +34,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -300,3 +300,3 @@ * @constructor | ||
if (sMinItemWidth.lastIndexOf("rem") !== -1) { | ||
fMinItemWidth = jQuery.sap.remToPx(sMinItemWidth); | ||
fMinItemWidth = Rem.toPx(sMinItemWidth); | ||
@@ -303,0 +303,0 @@ // the CSS unit of the minItemWidth control property is in px |
@@ -104,2 +104,3 @@ /*! | ||
oRm.addStyle("max-width", oControl.getMaxItemWidth()); | ||
oRm.writeClasses(); | ||
@@ -106,0 +107,0 @@ oRm.writeStyles(); |
@@ -8,4 +8,4 @@ /*! | ||
// Provides control sap.ui.layout.AssociativeSplitter. | ||
sap.ui.define(['./Splitter', './SplitterRenderer', 'jquery.sap.global'], | ||
function(Splitter, SplitterRenderer, jQuery) { | ||
sap.ui.define(['./Splitter', './SplitterRenderer', "sap/base/Log", "sap/ui/thirdparty/jquery"], | ||
function(Splitter, SplitterRenderer, Log, jQuery) { | ||
"use strict"; | ||
@@ -24,3 +24,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -301,3 +301,3 @@ * @constructor | ||
if (isNaN(iPixels)) { | ||
jQuery.sap.log.warning("Splitter: Received invalid resizing values - resize aborted."); | ||
Log.warning("Splitter: Received invalid resizing values - resize aborted."); | ||
return; | ||
@@ -418,3 +418,3 @@ } | ||
} else { | ||
jQuery.sap.log.error("Illegal size value: " + aSizes[i]); | ||
Log.error("Illegal size value: " + aSizes[i]); | ||
} | ||
@@ -483,3 +483,3 @@ } | ||
// weird in their application. | ||
jQuery.sap.log.info( | ||
Log.info( | ||
"[Splitter] The set sizes and minimal sizes of the splitter contents are bigger " + | ||
@@ -512,3 +512,3 @@ "than the available space in the UI." | ||
if (oLd && (!oLd.getResizable || !oLd.getSize || !oLd.getMinSize)) { | ||
jQuery.sap.log.warning( | ||
Log.warning( | ||
"Content \"" + oContent.getId() + "\" for the Splitter contained wrong LayoutData. " + | ||
@@ -515,0 +515,0 @@ "The LayoutData has been replaced with default values." |
@@ -8,9 +8,8 @@ /*! | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'./library', | ||
'jquery.sap.global', | ||
'sap/ui/core/ResizeHandler', | ||
"./BlockLayoutRenderer" | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/core/ResizeHandler', | ||
"./BlockLayoutRenderer" | ||
], | ||
function(Control, library, jQuery, ResizeHandler, BlockLayoutRenderer) { | ||
function(Control, library, ResizeHandler, BlockLayoutRenderer) { | ||
"use strict"; | ||
@@ -68,3 +67,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -239,2 +238,2 @@ * @constructor | ||
}); | ||
}); |
@@ -7,4 +7,10 @@ /*! | ||
sap.ui.define(['sap/ui/core/Control', './library', "./BlockLayoutCellRenderer"], | ||
function(Control, library, BlockLayoutCellRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'./library', | ||
"./BlockLayoutCellRenderer", | ||
"sap/base/Log", | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function(Control, library, BlockLayoutCellRenderer, Log, jQuery) { | ||
"use strict"; | ||
@@ -24,3 +30,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -120,3 +126,3 @@ * @constructor | ||
if (oObject && oObject.getMetadata().getName() !== "sap.m.Link") { | ||
jQuery.sap.log.warning("sap.ui.layout.BlockLayoutCell " + this.getId() + ": Can't add value for titleLink aggregation different than sap.m.Link."); | ||
Log.warning("sap.ui.layout.BlockLayoutCell " + this.getId() + ": Can't add value for titleLink aggregation different than sap.m.Link."); | ||
return; | ||
@@ -148,2 +154,2 @@ } | ||
}); | ||
}); |
@@ -21,3 +21,3 @@ /*! | ||
* @extends sap.ui.core.LayoutData | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @constructor | ||
@@ -24,0 +24,0 @@ * @public |
@@ -7,4 +7,4 @@ /*! | ||
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/library'], | ||
function(jQuery, library, coreLibrary) { | ||
sap.ui.define(['./library', 'sap/ui/core/library', "sap/base/Log"], | ||
function(library, coreLibrary, Log) { | ||
"use strict"; | ||
@@ -44,3 +44,3 @@ | ||
} else if (( sColorSet && !sColorIndex ) || ( !sColorSet && sColorIndex )) { // XOR check. Both values need to be either defined or not defined. | ||
jQuery.sap.log.warning("Both, backgroundColorSet and backgroundColorShade should be defined. ColoSet is not applied to " + oBlockLayoutCell.getId() + "."); | ||
Log.warning("Both, backgroundColorSet and backgroundColorShade should be defined. ColoSet is not applied to " + oBlockLayoutCell.getId() + "."); | ||
return ""; | ||
@@ -126,2 +126,2 @@ } | ||
return BlockLayoutCellRenderer; | ||
}, /* bExport= */ true); | ||
}, /* bExport= */ true); |
@@ -12,9 +12,9 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/layout/BlockLayoutCellData', | ||
"./BlockLayoutRowRenderer" | ||
"./BlockLayoutRowRenderer", | ||
"sap/base/Log" | ||
], | ||
function(jQuery, Control, library, BlockLayoutCellData, BlockLayoutRowRenderer) { | ||
function(Control, library, BlockLayoutCellData, BlockLayoutRowRenderer, Log) { | ||
"use strict"; | ||
@@ -40,3 +40,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -189,3 +189,3 @@ * @constructor | ||
if ([oBackgrounds.Accent, oBackgrounds.Mixed].indexOf(sLayoutBackground) === -1) { | ||
jQuery.sap.log.warning(sId + " was not se as accent cell. Accent cells could be set only for 'Accent' and 'Mixed' layout backgrounds."); | ||
Log.warning(sId + " was not se as accent cell. Accent cells could be set only for 'Accent' and 'Mixed' layout backgrounds."); | ||
return this; | ||
@@ -347,3 +347,3 @@ } | ||
jQuery.sap.log.warning(sId + " was removed as accent cell. Only one cell at a time could be accented for Mixed layout background"); | ||
Log.warning(sId + " was removed as accent cell. Only one cell at a time could be accented for Mixed layout background"); | ||
} | ||
@@ -455,2 +455,2 @@ }, this); | ||
return BlockLayoutRow; | ||
}); | ||
}); |
@@ -8,4 +8,7 @@ /*! | ||
sap.ui.define([ | ||
"sap/ui/fl/Utils", "jquery.sap.global", "sap/ui/fl/changeHandler/Base", "sap/ui/core/util/reflection/JsControlTreeModifier" | ||
], function(FlexUtils, jQuery, Base, JsControlTreeModifier) { | ||
"sap/ui/fl/Utils", | ||
"sap/ui/fl/changeHandler/Base", | ||
"sap/ui/core/util/reflection/JsControlTreeModifier", | ||
"sap/ui/thirdparty/jquery" | ||
], function(FlexUtils, Base, JsControlTreeModifier, jQuery) { | ||
"use strict"; | ||
@@ -17,3 +20,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @experimental Since 1.48.0 | ||
@@ -99,2 +102,2 @@ */ | ||
}, | ||
/* bExport= */true); | ||
/* bExport= */true); |
@@ -8,5 +8,6 @@ /*! | ||
sap.ui.define([ | ||
"sap/ui/fl/Utils", | ||
"sap/ui/fl/changeHandler/ChangeHandlerMediator" | ||
], function(Utils, ChangeHandlerMediator) { | ||
"sap/ui/fl/Utils", | ||
"sap/ui/fl/changeHandler/ChangeHandlerMediator", | ||
"sap/ui/thirdparty/jquery" | ||
], function(Utils, ChangeHandlerMediator, jQuery) { | ||
"use strict"; | ||
@@ -23,3 +24,3 @@ | ||
* | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -26,0 +27,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.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -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.5 | ||
* @version 1.58.0 | ||
* @experimental Since 1.27.0 | ||
@@ -19,0 +19,0 @@ */ |
@@ -7,5 +7,3 @@ /*! | ||
sap.ui.define([ | ||
'sap/ui/fl/changeHandler/JsControlTreeModifier' | ||
], function(JsControlTreeModifier) { | ||
sap.ui.define(['sap/ui/fl/changeHandler/JsControlTreeModifier', "sap/base/Log"], function(JsControlTreeModifier, Log) { | ||
"use strict"; | ||
@@ -17,3 +15,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @experimental Since 1.27.0 | ||
@@ -126,3 +124,3 @@ */ | ||
oChange.resetRevertData(); | ||
jQuery.sap.log.error(oError.message || oError.name); | ||
Log.error(oError.message || oError.name); | ||
} | ||
@@ -129,0 +127,0 @@ }; |
@@ -7,4 +7,9 @@ /*! | ||
sap.ui.define(["jquery.sap.global", "sap/ui/core/util/reflection/JsControlTreeModifier"], | ||
function(jQuery, JsControlTreeModifier) { | ||
sap.ui.define([ | ||
"sap/ui/core/util/reflection/JsControlTreeModifier", | ||
"sap/base/util/uid", | ||
"sap/base/Log", | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function(JsControlTreeModifier, uid, Log, jQuery) { | ||
"use strict"; | ||
@@ -17,3 +22,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @experimental Since 1.34.0 | ||
@@ -50,3 +55,3 @@ */ | ||
var oAppComponent = mPropertyBag.appComponent; | ||
var sGroupId = oAppComponent.createId(jQuery.sap.uid()); | ||
var sGroupId = oAppComponent.createId(uid()); | ||
@@ -117,3 +122,3 @@ var oTitle = oModifier.createControl("sap.ui.core.Title", oAppComponent, oView, sGroupId); | ||
if (!fnIsTitleOrToolbar(aContent, iGroupStart, oModifier)) { | ||
jQuery.sap.log.error("Illegal argument. iIndex has to point to a Label."); | ||
Log.error("Illegal argument. iIndex has to point to a Label."); | ||
} else { | ||
@@ -309,3 +314,3 @@ iFieldIndex = bUp ? iFieldIndex + 1 : iFieldIndex; | ||
} else { | ||
jQuery.sap.log.warning("Unknown change type detected. Cannot apply to SimpleForm"); | ||
Log.warning("Unknown change type detected. Cannot apply to SimpleForm"); | ||
} | ||
@@ -338,3 +343,3 @@ | ||
if (aMovedElements.length > 1) { | ||
jQuery.sap.log.warning("Moving more than 1 Formelement is not yet supported."); | ||
Log.warning("Moving more than 1 Formelement is not yet supported."); | ||
} | ||
@@ -358,3 +363,3 @@ var mMovedElement = aMovedElements[0]; | ||
} else { | ||
jQuery.sap.log.error("Element not found. This may caused by an instable id!"); | ||
Log.error("Element not found. This may caused by an instable id!"); | ||
} | ||
@@ -375,2 +380,2 @@ | ||
}, | ||
/* bExport= */true); | ||
/* bExport= */true); |
@@ -19,3 +19,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @since 1.48 | ||
@@ -22,0 +22,0 @@ * @private |
@@ -24,3 +24,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @since 1.40 | ||
@@ -27,0 +27,0 @@ * @private |
@@ -16,3 +16,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @experimental Since 1.27.0 | ||
@@ -19,0 +19,0 @@ */ |
@@ -8,4 +8,4 @@ /*! | ||
// Provides the Design Time Metadata for the sap.ui.layout.form.FormContainer control | ||
sap.ui.define(['sap/ui/fl/changeHandler/ChangeHandlerMediator'], | ||
function(ChangeHandlerMediator) { | ||
sap.ui.define(['sap/ui/fl/changeHandler/ChangeHandlerMediator', "sap/ui/thirdparty/jquery"], | ||
function(ChangeHandlerMediator, jQuery) { | ||
"use strict"; | ||
@@ -12,0 +12,0 @@ |
@@ -9,7 +9,7 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/layout/library', | ||
"./DynamicSideContentRenderer" | ||
'sap/ui/thirdparty/jquery', | ||
'sap/ui/core/Control', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/layout/library', | ||
'./DynamicSideContentRenderer' | ||
], | ||
@@ -93,3 +93,3 @@ function(jQuery, Control, ResizeHandler, library, DynamicSideContentRenderer) { | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -457,4 +457,4 @@ * @constructor | ||
if (!this._oSCScroller && !this._oMCScroller) { | ||
jQuery.sap.require("sap.ui.core.delegate.ScrollEnablement"); | ||
this._oSCScroller = new sap.ui.core.delegate.ScrollEnablement(this, null, { | ||
var ScrollEnablement = sap.ui.requireSync("sap/ui/core/delegate/ScrollEnablement"); | ||
this._oSCScroller = new ScrollEnablement(this, null, { | ||
scrollContainerId: sSideContentId, | ||
@@ -464,3 +464,3 @@ horizontal: false, | ||
}); | ||
this._oMCScroller = new sap.ui.core.delegate.ScrollEnablement(this, null, { | ||
this._oMCScroller = new ScrollEnablement(this, null, { | ||
scrollContainerId: sMainContentId, | ||
@@ -716,2 +716,2 @@ horizontal: false, | ||
return DynamicSideContent; | ||
}); | ||
}); |
@@ -9,12 +9,11 @@ /*! | ||
sap.ui.define([ | ||
"jquery.sap.global", | ||
"sap/ui/core/Control", | ||
"sap/ui/core/EnabledPropagator", | ||
"sap/ui/core/ResizeHandler", | ||
"./library", | ||
"sap/ui/core/delegate/ScrollEnablement", | ||
"./FixFlexRenderer" | ||
"sap/ui/core/Control", | ||
"sap/ui/core/EnabledPropagator", | ||
"sap/ui/core/ResizeHandler", | ||
"./library", | ||
"sap/ui/core/delegate/ScrollEnablement", | ||
"./FixFlexRenderer", | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function( | ||
jQuery, | ||
Control, | ||
@@ -25,3 +24,4 @@ EnabledPropagator, | ||
ScrollEnablement, | ||
FixFlexRenderer | ||
FixFlexRenderer, | ||
jQuery | ||
) { | ||
@@ -62,3 +62,3 @@ "use strict"; | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -338,9 +338,2 @@ * @constructor | ||
FixFlex.prototype.onAfterRendering = function () { | ||
// Fallback for older browsers | ||
if (!jQuery.support.hasFlexBoxSupport) { | ||
this.sResizeListenerNoFlexBoxSupportFixedId = ResizeHandler.register(this.getDomRef("Fixed"), jQuery.proxy(this._handlerResizeNoFlexBoxSupport, this)); | ||
this.sResizeListenerNoFlexBoxSupportId = ResizeHandler.register(this.getDomRef(), jQuery.proxy(this._handlerResizeNoFlexBoxSupport, this)); | ||
this._handlerResizeNoFlexBoxSupport(); | ||
} | ||
// Add handler for FixFlex scrolling option | ||
@@ -362,2 +355,2 @@ if (this.getMinFlexSize() !== 0) { | ||
}); | ||
}); |
@@ -7,4 +7,4 @@ /*! | ||
sap.ui.define(['jquery.sap.global'], | ||
function (jQuery) { | ||
sap.ui.define([], | ||
function() { | ||
"use strict"; | ||
@@ -39,7 +39,2 @@ | ||
// Setting css class for older browsers | ||
if (!jQuery.support.hasFlexBoxSupport) { | ||
oRm.addClass('sapUiFixFlex-Legacy'); | ||
} | ||
oRm.writeClasses(); | ||
@@ -121,2 +116,2 @@ oRm.write('>'); | ||
}, /* bExport= */ true); | ||
}, /* bExport= */ true); |
@@ -8,4 +8,6 @@ /*! | ||
// Provides control sap.ui.layout.form.ColumnContainerData. | ||
sap.ui.define(['sap/ui/core/LayoutData', 'sap/ui/layout/library'], | ||
function(LayoutData, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/LayoutData', | ||
'sap/ui/layout/library' | ||
], function(LayoutData, library) { | ||
"use strict"; | ||
@@ -28,3 +30,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -31,0 +33,0 @@ * @constructor |
@@ -8,4 +8,6 @@ /*! | ||
// Provides control sap.ui.layout.form.ColumnElementData. | ||
sap.ui.define(['sap/ui/core/LayoutData', 'sap/ui/layout/library'], | ||
function(LayoutData, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/LayoutData', | ||
'sap/ui/layout/library' | ||
], function(LayoutData, library) { | ||
"use strict"; | ||
@@ -28,3 +30,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -31,0 +33,0 @@ * @constructor |
@@ -8,5 +8,11 @@ /*! | ||
// Provides control sap.ui.layout.form.ColumnLayout. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/layout/library', './FormLayout', | ||
'sap/ui/Device', 'sap/ui/core/ResizeHandler', './ColumnLayoutRenderer'], | ||
function(jQuery, library, FormLayout, Device, ResizeHandler, ColumnLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/Device', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/layout/library', | ||
'./FormLayout', | ||
'./ColumnLayoutRenderer', | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function(Device, ResizeHandler, library, FormLayout, ColumnLayoutRenderer, jQuery) { | ||
"use strict"; | ||
@@ -56,3 +62,3 @@ | ||
* @extends sap.ui.layout.form.FormLayout | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -593,2 +599,2 @@ * @constructor | ||
}); | ||
}); |
@@ -7,4 +7,7 @@ /*! | ||
sap.ui.define(['sap/ui/core/Renderer', './FormLayoutRenderer', 'sap/ui/Device'], | ||
function(Renderer, FormLayoutRenderer, Device) { | ||
sap.ui.define([ | ||
'sap/ui/core/Renderer', | ||
'sap/ui/Device', | ||
'./FormLayoutRenderer' | ||
], function(Renderer, Device, FormLayoutRenderer) { | ||
"use strict"; | ||
@@ -11,0 +14,0 @@ |
@@ -8,4 +8,7 @@ /*! | ||
// Provides control sap.ui.layout.form.Form. | ||
sap.ui.define(['sap/ui/core/Control', 'sap/ui/layout/library', './FormRenderer'], | ||
function(Control, library, FormRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'sap/ui/layout/library', | ||
'./FormRenderer' | ||
], function(Control, library, FormRenderer) { | ||
"use strict"; | ||
@@ -44,3 +47,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -276,4 +279,23 @@ * @constructor | ||
/** | ||
* Method used to propagate the <code>Title</code> control ID of a container control | ||
* (like a <code>Dialog</code> control) to use it as aria-label in the <code>Form</code>. | ||
* So the <code>Form</code> must not have an own title. | ||
* @param {string} sTitleID <code>Title</code> control ID | ||
* @private | ||
* @return {sap.ui.layout.form.Form} Reference to <code>this</code> to allow method chaining | ||
*/ | ||
Form.prototype._suggestTitleId = function (sTitleID) { | ||
this._sSuggestedTitleId = sTitleID; | ||
if (this.getDomRef()) { | ||
this.invalidate(); | ||
} | ||
return this; | ||
}; | ||
return Form; | ||
}); |
@@ -8,4 +8,8 @@ /*! | ||
// Provides control sap.ui.layout.form.FormContainer. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/theming/Parameters', 'sap/ui/layout/library'], | ||
function(jQuery, Element, Parameters, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/Element', | ||
'sap/ui/core/theming/Parameters', | ||
'sap/ui/layout/library', | ||
"sap/base/Log" | ||
], function(Element, Parameters, library, Log) { | ||
"use strict"; | ||
@@ -27,3 +31,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -212,3 +216,3 @@ * @constructor | ||
if (this.getExpandable() && (!this.getTitle() || this.getToolbar())) { | ||
jQuery.sap.log.warning("Expander only displayed if title is set", this.getId(), "FormContainer"); | ||
Log.warning("Expander only displayed if title is set", this.getId(), "FormContainer"); | ||
iReturn = 1; | ||
@@ -350,2 +354,2 @@ } | ||
}); | ||
}); |
@@ -8,4 +8,9 @@ /*! | ||
// Provides control sap.ui.layout.form.FormElement. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/base/ManagedObjectObserver', 'sap/ui/layout/library'], | ||
function(jQuery, Element, ManagedObjectObserver, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/Element', | ||
'sap/ui/core/Control', | ||
'sap/ui/base/ManagedObjectObserver', | ||
'sap/ui/layout/library', | ||
"sap/base/Log" | ||
], function(Element, Control, ManagedObjectObserver, library, Log) { | ||
"use strict"; | ||
@@ -25,3 +30,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -244,3 +249,3 @@ * @constructor | ||
var aLabels = sLabelledBy.split(" "); | ||
if (jQuery.inArray(oLabel.getId(), aLabels) < 0) { | ||
if (aLabels.indexOf(oLabel.getId()) < 0) { | ||
aLabels.splice(0, 0, oLabel.getId()); | ||
@@ -360,3 +365,3 @@ sLabelledBy = aLabels.join(" "); | ||
if (!oField.isA("sap.ui.core.IFormContent")) { | ||
jQuery.sap.log.warning(oField + " is not valid Form content", this); | ||
Log.warning(oField + " is not valid Form content", this); | ||
} | ||
@@ -459,3 +464,3 @@ _attachDelegate.call(this, oField); | ||
oLabel = this.getLabel(); | ||
if (oLabel instanceof sap.ui.core.Control /*might also be a string*/) { | ||
if (oLabel instanceof Control /*might also be a string*/) { | ||
oLabel.setAlternativeLabelFor(oField); | ||
@@ -504,2 +509,2 @@ } | ||
}); | ||
}); |
@@ -8,4 +8,12 @@ /*! | ||
// Provides control sap.ui.layout.form.FormLayout. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/layout/library', './FormLayoutRenderer'], | ||
function(jQuery, Control, library, FormLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'sap/ui/layout/library', | ||
'./FormLayoutRenderer', | ||
"sap/ui/thirdparty/jquery", | ||
// jQuery custom selectors ":sapFocusable" | ||
'sap/ui/dom/jquery/Selectors', | ||
// jQuery Plugin "control" | ||
'sap/ui/dom/jquery/control' | ||
], function(Control, library, FormLayoutRenderer, jQuery) { | ||
"use strict"; | ||
@@ -31,3 +39,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -166,3 +174,3 @@ * @constructor | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -193,3 +201,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -217,3 +225,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -245,3 +253,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -268,3 +276,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -299,3 +307,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -367,3 +375,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -402,4 +410,4 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
if (oNewDomRef && oNewDomRef !== oControl.getFocusDomRef()) { | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -421,3 +429,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); | ||
@@ -482,3 +490,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -532,3 +540,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -588,9 +596,4 @@ } | ||
FormLayout.prototype.findFirstFieldOfForm = function(oForm){ | ||
var aContainers = oForm.getFormContainers(); | ||
var oNewDomRef; | ||
var oContainer = aContainers[0]; | ||
if (!oContainer.getExpandable() || oContainer.getExpanded()) { | ||
oNewDomRef = this.findFirstFieldOfNextElement(oContainer, 0); | ||
} | ||
var oNewDomRef = this.findFirstFieldOfFirstElementInNextContainer(oForm, 0); | ||
return oNewDomRef; | ||
@@ -605,3 +608,3 @@ | ||
// goto previous container | ||
while (!oNewDomRef && iCurrentIndex >= 0) { | ||
while (!oNewDomRef && iCurrentIndex > 0) { | ||
var oPrevContainer = aContainers[iCurrentIndex - 1]; | ||
@@ -703,3 +706,3 @@ if (!oPrevContainer.getExpandable() || oPrevContainer.getExpanded()) { | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -754,3 +757,3 @@ } | ||
if (oNewDomRef) { | ||
jQuery.sap.focus(oNewDomRef); | ||
oNewDomRef.focus(); | ||
oEvent.preventDefault(); // to avoid moving cursor in next field | ||
@@ -903,3 +906,3 @@ } | ||
if (this.getDomRef()) { | ||
return jQuery.sap.domById(oContainer.getId()); | ||
return (oContainer.getId() ? window.document.getElementById(oContainer.getId()) : null); | ||
}else { | ||
@@ -921,3 +924,3 @@ return null; | ||
if (this.getDomRef()) { | ||
return jQuery.sap.domById(oElement.getId()); | ||
return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null); | ||
}else { | ||
@@ -931,2 +934,2 @@ return null; | ||
}); | ||
}); |
@@ -7,4 +7,8 @@ /*! | ||
sap.ui.define(["sap/ui/layout/library", "sap/ui/core/library", "sap/ui/core/theming/Parameters", "sap/ui/layout/form/Form"], | ||
function(library, coreLibrary, themingParameters, Form) { | ||
sap.ui.define([ | ||
'sap/ui/core/library', | ||
'sap/ui/core/theming/Parameters', | ||
'sap/ui/layout/library', | ||
'sap/ui/layout/form/Form' | ||
], function(coreLibrary, themingParameters, library, Form) { | ||
"use strict"; | ||
@@ -11,0 +15,0 @@ |
@@ -7,4 +7,6 @@ /*! | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/layout/library'], | ||
function(jQuery, library) { | ||
sap.ui.define([ | ||
'sap/ui/layout/library', | ||
"sap/base/Log" | ||
], function(library, Log) { | ||
"use strict"; | ||
@@ -75,2 +77,4 @@ | ||
mAriaProps["labelledby"] = {value: sId, append: true}; | ||
} else if (oForm._sSuggestedTitleId) { | ||
mAriaProps["labelledby"] = {value: oForm._sSuggestedTitleId, append: true}; | ||
} | ||
@@ -86,3 +90,3 @@ | ||
} else { | ||
jQuery.sap.log.warning("Form \"" + oForm.getId() + "\" - Layout missing!", "Renderer", "Form"); | ||
Log.warning("Form \"" + oForm.getId() + "\" - Layout missing!", "Renderer", "Form"); | ||
} | ||
@@ -95,2 +99,2 @@ | ||
}, /* bExport= */ true); | ||
}, /* bExport= */ true); |
@@ -8,4 +8,6 @@ /*! | ||
// Provides control sap.ui.layout.form.GridContainerData. | ||
sap.ui.define(['sap/ui/core/LayoutData', 'sap/ui/layout/library'], | ||
function(LayoutData, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/LayoutData', | ||
'sap/ui/layout/library' | ||
], function(LayoutData, library) { | ||
"use strict"; | ||
@@ -24,3 +26,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -27,0 +29,0 @@ * @constructor |
@@ -8,4 +8,6 @@ /*! | ||
// Provides control sap.ui.layout.form.GridElementData. | ||
sap.ui.define(['sap/ui/core/LayoutData', 'sap/ui/layout/library'], | ||
function(LayoutData, library) { | ||
sap.ui.define([ | ||
'sap/ui/core/LayoutData', | ||
'sap/ui/layout/library' | ||
], function(LayoutData, library) { | ||
"use strict"; | ||
@@ -24,3 +26,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -27,0 +29,0 @@ * @constructor |
@@ -8,4 +8,3 @@ /*! | ||
// Provides control sap.ui.layout.form.GridLayout. | ||
sap.ui.define(['jquery.sap.global', './FormLayout', 'sap/ui/layout/library', './GridLayoutRenderer'], | ||
function(jQuery, FormLayout, library, GridLayoutRenderer) { | ||
sap.ui.define(['sap/ui/layout/library', './FormLayout', './GridLayoutRenderer'], function(library, FormLayout, GridLayoutRenderer) { | ||
"use strict"; | ||
@@ -33,3 +32,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -229,3 +228,3 @@ * @constructor | ||
if ((bSingleColumn || !oContainerData || !oContainerData.getHalfGrid()) && !this.getRenderer().checkFullSizeElement(this, oElement) ) { | ||
return jQuery.sap.domById(oElement.getId()); | ||
return (oElement.getId() ? window.document.getElementById(oElement.getId()) : null); | ||
} | ||
@@ -240,2 +239,2 @@ } | ||
}); | ||
}); |
@@ -7,4 +7,8 @@ /*! | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Renderer', './FormLayoutRenderer'], | ||
function(jQuery, Renderer, FormLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Renderer', | ||
'sap/ui/core/theming/Parameters', | ||
'./FormLayoutRenderer', | ||
"sap/base/Log" | ||
], function(Renderer, themingParameters, FormLayoutRenderer, Log) { | ||
"use strict"; | ||
@@ -91,3 +95,3 @@ | ||
if (!oToolbar) { | ||
sSize = sap.ui.core.theming.Parameters.get('sap.ui.layout.FormLayout:_sap_ui_layout_FormLayout_FormTitleSize'); | ||
sSize = themingParameters.get('sap.ui.layout.FormLayout:_sap_ui_layout_FormLayout_FormTitleSize'); | ||
} | ||
@@ -384,3 +388,3 @@ this.renderHeader(rm, oToolbar, oTitle, undefined, false, sSize, oForm.getId()); | ||
// already rowspans left -> ignore full line and raise error | ||
jQuery.sap.log.error("Element \"" + oElement.getId() + "\" - Too much fields for one row!", "Renderer", "GridLayout"); | ||
Log.error("Element \"" + oElement.getId() + "\" - Too much fields for one row!", "Renderer", "GridLayout"); | ||
return aReservedCells; | ||
@@ -497,3 +501,3 @@ } | ||
// too much cells | ||
jQuery.sap.log.error("Element \"" + oElement.getId() + "\" - Too much fields for one row!", "Renderer", "GridLayout"); | ||
Log.error("Element \"" + oElement.getId() + "\" - Too much fields for one row!", "Renderer", "GridLayout"); | ||
iCellsUsed = iCellsUsed - iColspan; // to add empty dummy cell | ||
@@ -581,2 +585,2 @@ break; | ||
}, /* bExport= */ true); | ||
}, /* bExport= */ true); |
@@ -8,7 +8,27 @@ /*! | ||
// Provides control sap.ui.layout.form.ResponsiveGridLayout. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/layout/Grid', 'sap/ui/layout/GridData', | ||
'./Form', './FormContainer', './FormElement', './FormLayout', | ||
'sap/ui/layout/library', 'sap/ui/core/Control', 'sap/ui/core/ResizeHandler', './ResponsiveGridLayoutRenderer'], | ||
function(jQuery, Grid, GridData, Form, FormContainer, FormElement, FormLayout, | ||
library, Control, ResizeHandler, ResponsiveGridLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/layout/library', | ||
'sap/ui/layout/Grid', | ||
'sap/ui/layout/GridData', | ||
'./Form', | ||
'./FormContainer', | ||
'./FormElement', | ||
'./FormLayout', | ||
'./ResponsiveGridLayoutRenderer', | ||
"sap/ui/thirdparty/jquery" | ||
], function( | ||
Control, | ||
ResizeHandler, | ||
library, | ||
Grid, | ||
GridData, | ||
Form, | ||
FormContainer, | ||
FormElement, | ||
FormLayout, | ||
ResponsiveGridLayoutRenderer, | ||
jQuery | ||
) { | ||
"use strict"; | ||
@@ -37,3 +57,3 @@ | ||
* @extends sap.ui.layout.form.FormLayout | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -522,5 +542,5 @@ * @constructor | ||
oPanel.setContent(""); | ||
oPanel.setLayout(""); | ||
oPanel.setContainer(""); | ||
oPanel.setContent(null); | ||
oPanel.setLayout(null); | ||
oPanel.setContainer(null); | ||
oPanel.destroy(); | ||
@@ -1297,2 +1317,2 @@ | ||
}); | ||
}); |
@@ -7,4 +7,6 @@ /*! | ||
sap.ui.define(['sap/ui/core/Renderer', './FormLayoutRenderer'], | ||
function(Renderer, FormLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Renderer', | ||
'./FormLayoutRenderer' | ||
], function(Renderer, FormLayoutRenderer) { | ||
"use strict"; | ||
@@ -11,0 +13,0 @@ |
@@ -8,7 +8,24 @@ /*! | ||
// Provides control sap.ui.layout.form.ResponsiveLayout. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/layout/ResponsiveFlowLayout', 'sap/ui/layout/ResponsiveFlowLayoutData', | ||
'./Form', './FormContainer', './FormElement', './FormLayout', | ||
'sap/ui/layout/library', 'sap/ui/core/Control', './ResponsiveLayoutRenderer'], | ||
function(jQuery, ResponsiveFlowLayout, ResponsiveFlowLayoutData, | ||
Form, FormContainer, FormElement, FormLayout, library, Control, ResponsiveLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Control', | ||
'sap/ui/layout/library', | ||
'sap/ui/layout/ResponsiveFlowLayout', | ||
'sap/ui/layout/ResponsiveFlowLayoutData', | ||
'./Form', | ||
'./FormContainer', | ||
'./FormElement', | ||
'./FormLayout', | ||
'./ResponsiveLayoutRenderer' | ||
], | ||
function( | ||
Control, | ||
library, | ||
ResponsiveFlowLayout, | ||
ResponsiveFlowLayoutData, | ||
Form, | ||
FormContainer, | ||
FormElement, | ||
FormLayout, | ||
ResponsiveLayoutRenderer | ||
) { | ||
"use strict"; | ||
@@ -37,3 +54,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -433,5 +450,5 @@ * @constructor | ||
oPanel.setContent(""); | ||
oPanel.setLayout(""); | ||
oPanel.setContainer(""); | ||
oPanel.setContent(null); | ||
oPanel.setLayout(null); | ||
oPanel.setContainer(null); | ||
oPanel.destroy(); | ||
@@ -877,2 +894,2 @@ | ||
}); | ||
}); |
@@ -7,4 +7,6 @@ /*! | ||
sap.ui.define(['sap/ui/core/Renderer', './FormLayoutRenderer'], | ||
function(Renderer, FormLayoutRenderer) { | ||
sap.ui.define([ | ||
'sap/ui/core/Renderer', | ||
'./FormLayoutRenderer' | ||
], function(Renderer, FormLayoutRenderer) { | ||
"use strict"; | ||
@@ -11,0 +13,0 @@ |
@@ -9,12 +9,11 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/Device', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/base/ManagedObjectObserver', | ||
"./GridRenderer" | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/Device', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/base/ManagedObjectObserver', | ||
"./GridRenderer", | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function( | ||
jQuery, | ||
Control, | ||
@@ -25,3 +24,4 @@ library, | ||
ManagedObjectObserver, | ||
GridRenderer | ||
GridRenderer, | ||
jQuery | ||
) { | ||
@@ -51,3 +51,3 @@ "use strict"; | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -125,2 +125,8 @@ * @constructor | ||
Grid.prototype.init = function() { | ||
// Library specific class | ||
var sClass = library.GridHelper.getLibrarySpecificClass(); | ||
if (sClass) { | ||
this.addStyleClass(sClass); | ||
} | ||
this._iBreakPointTablet = Device.media._predefinedRangeSets[Device.media.RANGESETS.SAP_STANDARD_EXTENDED].points[0]; | ||
@@ -382,2 +388,2 @@ this._iBreakPointDesktop = Device.media._predefinedRangeSets[Device.media.RANGESETS.SAP_STANDARD_EXTENDED].points[1]; | ||
}); | ||
}); |
@@ -8,4 +8,4 @@ /*! | ||
// Provides control sap.ui.layout.GridData. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/LayoutData', './library'], | ||
function(jQuery, LayoutData, library) { | ||
sap.ui.define(['sap/ui/core/LayoutData', './library', "sap/base/Log"], | ||
function(LayoutData, library, Log) { | ||
"use strict"; | ||
@@ -30,3 +30,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -361,3 +361,3 @@ * @constructor | ||
this.setSpanL(iSpan); | ||
jQuery.sap.log.warning("Deprecated property spanLarge is used, please use spanL instead."); | ||
Log.warning("Deprecated property spanLarge is used, please use spanL instead."); | ||
return this; | ||
@@ -367,3 +367,3 @@ }; | ||
GridData.prototype.setSpanMedium = function(iSpan) { | ||
jQuery.sap.log.warning("Deprecated property spanMedium is used, please use spanM instead."); | ||
Log.warning("Deprecated property spanMedium is used, please use spanM instead."); | ||
return this.setSpanM(iSpan); | ||
@@ -373,3 +373,3 @@ }; | ||
GridData.prototype.setSpanSmall = function(iSpan) { | ||
jQuery.sap.log.warning("Deprecated property spanSmall is used, please use spanS instead."); | ||
Log.warning("Deprecated property spanSmall is used, please use spanS instead."); | ||
return this.setSpanS(iSpan); | ||
@@ -379,3 +379,3 @@ }; | ||
GridData.prototype.setIndentLarge = function(iIndent) { | ||
jQuery.sap.log.warning("Deprecated property indentLarge is used, please use indentL instead."); | ||
Log.warning("Deprecated property indentLarge is used, please use indentL instead."); | ||
return this.setIndentL(iIndent); | ||
@@ -385,3 +385,3 @@ }; | ||
GridData.prototype.setIndentMedium = function(iIndent) { | ||
jQuery.sap.log.warning("Deprecated property indentMedium is used, please use indentM instead."); | ||
Log.warning("Deprecated property indentMedium is used, please use indentM instead."); | ||
return this.setIndentM(iIndent); | ||
@@ -391,3 +391,3 @@ }; | ||
GridData.prototype.setIndentSmall = function(iIndent) { | ||
jQuery.sap.log.warning("Deprecated property indentSmall is used, please use indentS instead."); | ||
Log.warning("Deprecated property indentSmall is used, please use indentS instead."); | ||
return this.setIndentS(iIndent); | ||
@@ -397,3 +397,3 @@ }; | ||
GridData.prototype.setVisibleOnLarge = function(bVisible) { | ||
jQuery.sap.log.warning("Deprecated property visibleOnLarge is used, please use visibleL instead."); | ||
Log.warning("Deprecated property visibleOnLarge is used, please use visibleL instead."); | ||
return this.setVisibleL(bVisible); | ||
@@ -403,3 +403,3 @@ }; | ||
GridData.prototype.setVisibleOnMedium = function(bVisible) { | ||
jQuery.sap.log.warning("Deprecated property visibleOnMedium is used, please use visibleM instead."); | ||
Log.warning("Deprecated property visibleOnMedium is used, please use visibleM instead."); | ||
return this.setVisibleM(bVisible); | ||
@@ -409,3 +409,3 @@ }; | ||
GridData.prototype.setVisibleOnSmall = function(bVisible) { | ||
jQuery.sap.log.warning("Deprecated property visibleOnSmall is used, please use visibleS instead."); | ||
Log.warning("Deprecated property visibleOnSmall is used, please use visibleS instead."); | ||
return this.setVisibleS(bVisible); | ||
@@ -417,3 +417,3 @@ }; | ||
GridData.prototype.getSpanLarge = function() { | ||
jQuery.sap.log.warning("Deprecated property spanLarge is used, please use spanL instead."); | ||
Log.warning("Deprecated property spanLarge is used, please use spanL instead."); | ||
return this.getSpanL(); | ||
@@ -423,3 +423,3 @@ }; | ||
GridData.prototype.getSpanMedium = function() { | ||
jQuery.sap.log.warning("Deprecated property spanMedium is used, please use spanM instead."); | ||
Log.warning("Deprecated property spanMedium is used, please use spanM instead."); | ||
return this.getSpanM(); | ||
@@ -429,3 +429,3 @@ }; | ||
GridData.prototype.getSpanSmall = function() { | ||
jQuery.sap.log.warning("Deprecated property spanSmall is used, please use spanS instead."); | ||
Log.warning("Deprecated property spanSmall is used, please use spanS instead."); | ||
return this.getSpanS(); | ||
@@ -435,3 +435,3 @@ }; | ||
GridData.prototype.getIndentLarge = function() { | ||
jQuery.sap.log.warning("Deprecated property indentLarge is used, please use indentL instead."); | ||
Log.warning("Deprecated property indentLarge is used, please use indentL instead."); | ||
return this.getIndentL(); | ||
@@ -441,3 +441,3 @@ }; | ||
GridData.prototype.getIndentMedium = function() { | ||
jQuery.sap.log.warning("Deprecated property indentMedium is used, please use indentM instead."); | ||
Log.warning("Deprecated property indentMedium is used, please use indentM instead."); | ||
return this.getIndentM(); | ||
@@ -447,3 +447,3 @@ }; | ||
GridData.prototype.getIndentSmall = function() { | ||
jQuery.sap.log.warning("Deprecated property indentSmall is used, please use indentS instead."); | ||
Log.warning("Deprecated property indentSmall is used, please use indentS instead."); | ||
return this.getIndentS(); | ||
@@ -453,3 +453,3 @@ }; | ||
GridData.prototype.getVisibleOnLarge = function() { | ||
jQuery.sap.log.warning("Deprecated property visibleOnLarge is used, please use visibleL instead."); | ||
Log.warning("Deprecated property visibleOnLarge is used, please use visibleL instead."); | ||
return this.getVisibleL(); | ||
@@ -459,3 +459,3 @@ }; | ||
GridData.prototype.getVisibleOnMedium = function() { | ||
jQuery.sap.log.warning("Deprecated property visibleOnMedium is used, please use visibleM instead."); | ||
Log.warning("Deprecated property visibleOnMedium is used, please use visibleM instead."); | ||
return this.getVisibleM(); | ||
@@ -465,3 +465,3 @@ }; | ||
GridData.prototype.getVisibleOnSmall = function() { | ||
jQuery.sap.log.warning("Deprecated property visibleOnSmall is used, please use visibleS instead."); | ||
Log.warning("Deprecated property visibleOnSmall is used, please use visibleS instead."); | ||
return this.getVisibleS(); | ||
@@ -475,2 +475,2 @@ }; | ||
}, /* bExport= */ true); | ||
}, /* bExport= */ true); |
@@ -18,3 +18,3 @@ /*! | ||
* @version | ||
* 1.56.5 | ||
* 1.58.0 | ||
* @namespace | ||
@@ -21,0 +21,0 @@ */ |
@@ -25,3 +25,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -28,0 +28,0 @@ * @constructor |
@@ -23,3 +23,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* @public | ||
@@ -31,3 +31,3 @@ */ | ||
name : "sap.ui.layout", | ||
version: "1.56.5", | ||
version: "1.58.0", | ||
dependencies: ["sap.ui.core"], | ||
@@ -717,4 +717,13 @@ designtime: "sap/ui/layout/designtime/library.designtime", | ||
if (!sap.ui.layout.GridHelper) { | ||
sap.ui.layout.GridHelper = { | ||
getLibrarySpecificClass: function () { | ||
return ""; | ||
}, | ||
bFinal: false /* if true, the helper must not be overwritten by an other library */ | ||
}; | ||
} | ||
return sap.ui.layout; | ||
}); |
@@ -28,3 +28,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
@@ -9,12 +9,12 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'./ResponsiveFlowLayoutData', | ||
'./library', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/Device', | ||
"./ResponsiveFlowLayoutRenderer" | ||
'sap/ui/core/Control', | ||
'./ResponsiveFlowLayoutData', | ||
'./library', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/Device', | ||
'./ResponsiveFlowLayoutRenderer', | ||
"sap/ui/thirdparty/jquery", | ||
'sap/ui/dom/jquery/rect' // jQuery Plugin "rect" | ||
], | ||
function( | ||
jQuery, | ||
Control, | ||
@@ -25,3 +25,4 @@ ResponsiveFlowLayoutData, | ||
Device, | ||
ResponsiveFlowLayoutRenderer | ||
ResponsiveFlowLayoutRenderer, | ||
jQuery | ||
) { | ||
@@ -43,3 +44,3 @@ "use strict"; | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -94,3 +95,3 @@ * @constructor | ||
if (this._IntervalCall) { | ||
jQuery.sap.clearDelayedCall(this._IntervalCall); | ||
clearTimeout(this._IntervalCall); | ||
this._IntervalCall = undefined; | ||
@@ -201,3 +202,3 @@ } | ||
var fnCurrentWrapping = function(j) { | ||
var $cont = jQuery.sap.byId(oRow.cont[j].id); | ||
var $cont = jQuery(document.getElementById(oRow.cont[j].id)); | ||
if ($cont.length > 0) { | ||
@@ -562,3 +563,3 @@ var offset = $cont[0].offsetLeft; | ||
for (var i = 0; i < this._rows.length; i++) { | ||
var oTmpRect = this._getElementRect(jQuery.sap.byId(sId + "-row" + i)); | ||
var oTmpRect = this._getElementRect(jQuery(document.getElementById(sId + "-row" + i))); | ||
this._rows[i].oRect = oTmpRect; | ||
@@ -664,3 +665,3 @@ } | ||
if (oContent && this._IntervalCall) { | ||
jQuery.sap.clearDelayedCall(this._IntervalCall); | ||
clearTimeout(this._IntervalCall); | ||
this._IntervalCall = undefined; | ||
@@ -684,3 +685,3 @@ } | ||
if (oContent && this._IntervalCall) { | ||
jQuery.sap.clearDelayedCall(this._IntervalCall); | ||
clearTimeout(this._IntervalCall); | ||
this._IntervalCall = undefined; | ||
@@ -701,3 +702,3 @@ } | ||
if (oContent && this._IntervalCall) { | ||
jQuery.sap.clearDelayedCall(this._IntervalCall); | ||
clearTimeout(this._IntervalCall); | ||
this._IntervalCall = undefined; | ||
@@ -791,2 +792,2 @@ } | ||
}); | ||
}); |
@@ -8,4 +8,4 @@ /*! | ||
// Provides control sap.ui.layout.ResponsiveFlowLayoutData. | ||
sap.ui.define(['jquery.sap.global', 'sap/ui/core/LayoutData', './library'], | ||
function(jQuery, LayoutData, library) { | ||
sap.ui.define(['sap/ui/core/LayoutData', './library', "sap/base/Log"], | ||
function(LayoutData, library, Log) { | ||
"use strict"; | ||
@@ -26,3 +26,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -77,3 +77,3 @@ * @constructor | ||
} else { | ||
jQuery.sap.log.warning("Values smaller than 1 are invalid. Default value '1' is used instead", this); | ||
Log.warning("Values smaller than 1 are invalid. Default value '1' is used instead", this); | ||
this.setProperty("weight", ResponsiveFlowLayoutData.WEIGHT); | ||
@@ -89,3 +89,3 @@ } | ||
if (this.getLinebreakable() == false && bLinebreak) { | ||
jQuery.sap.log.warning("Setting 'linebreak' AND 'linebreakable' doesn't make any sense. Please set either 'linebreak' or 'linebreakable'", this); | ||
Log.warning("Setting 'linebreak' AND 'linebreakable' doesn't make any sense. Please set either 'linebreak' or 'linebreakable'", this); | ||
} else { | ||
@@ -101,3 +101,3 @@ this.setProperty("linebreak", bLinebreak); | ||
if (this.getLinebreak() === true && bLinebreakable === false) { | ||
jQuery.sap.log.warning("Setting 'linebreak' AND 'linebreakable' doesn't make any sense. Please set either 'linebreak' or 'linebreakable'", this); | ||
Log.warning("Setting 'linebreak' AND 'linebreakable' doesn't make any sense. Please set either 'linebreak' or 'linebreakable'", this); | ||
} else { | ||
@@ -112,2 +112,2 @@ this.setProperty("linebreakable", bLinebreakable); | ||
}); | ||
}); |
@@ -9,14 +9,13 @@ /*! | ||
sap.ui.define([ | ||
"jquery.sap.global", | ||
"./library", | ||
"sap/ui/core/Control", | ||
"./ResponsiveSplitterUtilities", | ||
"./ResponsiveSplitterPage", | ||
"./PaneContainer", | ||
"./SplitPane", | ||
"sap/ui/core/delegate/ItemNavigation", | ||
"sap/ui/core/ResizeHandler", | ||
"./ResponsiveSplitterRenderer" | ||
"./library", | ||
"sap/ui/core/Control", | ||
"./ResponsiveSplitterUtilities", | ||
"./ResponsiveSplitterPage", | ||
"./PaneContainer", | ||
"./SplitPane", | ||
"sap/ui/core/delegate/ItemNavigation", | ||
"sap/ui/core/ResizeHandler", | ||
"./ResponsiveSplitterRenderer", | ||
"sap/ui/thirdparty/jquery" | ||
], function( | ||
jQuery, | ||
library, | ||
@@ -30,3 +29,4 @@ Control, | ||
ResizeHandler, | ||
ResponsiveSplitterRenderer | ||
ResponsiveSplitterRenderer, | ||
jQuery | ||
) { | ||
@@ -71,3 +71,3 @@ "use strict"; | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -172,4 +172,3 @@ * @constructor | ||
aContentAreas = oContent.$().find(" > .sapUiLoSplitterContent"), | ||
sBaseTooltip = this._oResourceBundle.getText("RESPONSIVE_SPLITTER_RESIZE") + " ", | ||
sTooltip = sBaseTooltip, | ||
sTooltip = "", | ||
iCurrentPaneIndex, iNextPaneIndex, oAreaContent, sContentId; | ||
@@ -184,5 +183,5 @@ | ||
if (iParent) { | ||
sTooltip += this._oResourceBundle.getText("RESPONSIVE_SPLITTER_PANES", [iParent + "." + iCurrentPaneIndex, iParent + "." + iNextPaneIndex]); | ||
sTooltip += this._oResourceBundle.getText("RESPONSIVE_SPLITTER_RESIZE", [iParent + "." + iCurrentPaneIndex, iParent + "." + iNextPaneIndex]); | ||
} else { | ||
sTooltip += this._oResourceBundle.getText("RESPONSIVE_SPLITTER_PANES", [iCurrentPaneIndex, iNextPaneIndex]); | ||
sTooltip += this._oResourceBundle.getText("RESPONSIVE_SPLITTER_RESIZE", [iCurrentPaneIndex, iNextPaneIndex]); | ||
} | ||
@@ -192,3 +191,3 @@ | ||
aSplitterBars[i].setAttribute("title", sTooltip); | ||
sTooltip = sBaseTooltip; | ||
sTooltip = ""; | ||
} | ||
@@ -389,3 +388,3 @@ if (oAreaContent instanceof sap.ui.layout.Splitter) { | ||
var iRequiredWidth = oPane.getRequiredParentWidth(); | ||
if (jQuery.inArray(iRequiredWidth, aBreakpoints) == -1) { | ||
if (aBreakpoints.indexOf(iRequiredWidth) == -1) { | ||
aBreakpoints.push(iRequiredWidth); | ||
@@ -702,2 +701,2 @@ } | ||
}); | ||
}); |
@@ -24,3 +24,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -27,0 +27,0 @@ * @constructor |
@@ -9,4 +9,4 @@ /*! | ||
*/ | ||
sap.ui.define(["jquery.sap.global", "sap/ui/support/library"], | ||
function(jQuery, SupportLib) { | ||
sap.ui.define(["sap/ui/support/library"], | ||
function(SupportLib) { | ||
"use strict"; | ||
@@ -540,2 +540,3 @@ | ||
oField.isA("sap.m.Slider") || | ||
oField.isA("sap.m.Switch") || | ||
(oMetadata.hasProperty("displayOnly") && !oField.getDisplayOnly())) { | ||
@@ -542,0 +543,0 @@ bEditableField = true; |
@@ -30,3 +30,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -33,0 +33,0 @@ * @constructor |
@@ -9,11 +9,21 @@ /*! | ||
sap.ui.define([ | ||
'jquery.sap.global', | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/core/library', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/core/RenderManager', | ||
'./SplitterRenderer' | ||
'sap/ui/core/Control', | ||
'./library', | ||
'sap/ui/core/library', | ||
'sap/ui/core/ResizeHandler', | ||
'sap/ui/core/RenderManager', | ||
'./SplitterRenderer', | ||
"sap/base/Log", | ||
"sap/ui/thirdparty/jquery" | ||
], | ||
function(jQuery, Control, library, coreLibrary, ResizeHandler, RenderManager, SplitterRenderer) { | ||
function( | ||
Control, | ||
library, | ||
coreLibrary, | ||
ResizeHandler, | ||
RenderManager, | ||
SplitterRenderer, | ||
Log, | ||
jQuery | ||
) { | ||
"use strict"; | ||
@@ -44,3 +54,3 @@ | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -544,4 +554,5 @@ * @constructor | ||
this.enableAutoResize(/* temporarily: */ true); | ||
jQuery.sap.focus(this._move.bar); | ||
if (this._move.bar){ | ||
this._move.bar.focus(); | ||
} | ||
}; | ||
@@ -559,3 +570,3 @@ | ||
if (isNaN(iPixels)) { | ||
jQuery.sap.log.warning("Splitter: Received invalid resizing values - resize aborted."); | ||
Log.warning("Splitter: Received invalid resizing values - resize aborted."); | ||
return; | ||
@@ -629,4 +640,4 @@ } | ||
if (this.getDomRef()) { | ||
jQuery.sap.clearDelayedCall(this._resizeTimeout); | ||
jQuery.sap.delayedCall(iDelay, this, "_resize", []); | ||
clearTimeout(this._resizeTimeout); | ||
setTimeout(this["_resize"].bind(this), iDelay); | ||
} | ||
@@ -826,3 +837,3 @@ }; | ||
} else { | ||
jQuery.sap.log.error("Illegal size value: " + aSizes[i]); | ||
Log.error("Illegal size value: " + aSizes[i]); | ||
} | ||
@@ -888,3 +899,3 @@ } | ||
// weird in their application. | ||
jQuery.sap.log.info( | ||
Log.info( | ||
"[Splitter] The set sizes and minimal sizes of the splitter contents are bigger " + | ||
@@ -977,3 +988,3 @@ "than the available space in the UI." | ||
default: | ||
jQuery.sap.log.warn("[Splitter] Invalid keyboard resize type"); | ||
Log.warn("[Splitter] Invalid keyboard resize type"); | ||
break; | ||
@@ -1100,3 +1111,3 @@ } | ||
if (oLd && (!oLd.getResizable || !oLd.getSize || !oLd.getMinSize)) { | ||
jQuery.sap.log.warning( | ||
Log.warning( | ||
"Content \"" + oContent.getId() + "\" for the Splitter contained wrong LayoutData. " + | ||
@@ -1209,2 +1220,2 @@ "The LayoutData has been replaced with default values." | ||
}); | ||
}); |
@@ -27,3 +27,3 @@ /*! | ||
* @extends sap.ui.core.LayoutData | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -30,0 +30,0 @@ * @constructor |
@@ -28,3 +28,3 @@ /*! | ||
* @author SAP SE | ||
* @version 1.56.5 | ||
* @version 1.58.0 | ||
* | ||
@@ -31,0 +31,0 @@ * @constructor |
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
984011
18268
+ Added@openui5/sap.ui.core@1.58.0(transitive)
- Removed@openui5/sap.ui.core@1.56.5(transitive)
Updated@openui5/sap.ui.core@1.58.0