@openui5/sap.ui.core 1.102.7 → 1.102.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +1 -1
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +51 -6
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +60 -5
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +31 -8
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/type/Boolean.js +1 -1
- package/src/sap/ui/model/odata/type/Byte.js +1 -1
- package/src/sap/ui/model/odata/type/Currency.js +1 -1
- package/src/sap/ui/model/odata/type/Date.js +1 -1
- package/src/sap/ui/model/odata/type/DateTime.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeBase.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataBinding.js +4 -0
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +95 -39
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +10 -10
- package/src/sap/ui/model/odata/v4/ODataModel.js +6 -5
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +11 -6
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +17 -0
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
* @extends sap.ui.core.Element
|
|
78
78
|
* @abstract
|
|
79
79
|
* @author SAP SE
|
|
80
|
-
* @version 1.102.
|
|
80
|
+
* @version 1.102.8
|
|
81
81
|
* @alias sap.ui.core.Control
|
|
82
82
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
83
83
|
*/
|
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -126,7 +126,7 @@ sap.ui.define([
|
|
|
126
126
|
*
|
|
127
127
|
* @extends sap.ui.base.ManagedObject
|
|
128
128
|
* @author SAP SE
|
|
129
|
-
* @version 1.102.
|
|
129
|
+
* @version 1.102.8
|
|
130
130
|
* @public
|
|
131
131
|
* @alias sap.ui.core.Element
|
|
132
132
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -41,7 +41,7 @@ sap.ui.define([], function() {
|
|
|
41
41
|
*
|
|
42
42
|
* @param {boolean} [bDefault=true] Value that should be used as default value for the enhancement of the control.
|
|
43
43
|
* @param {boolean} [bLegacy=false] Whether the introduced property should use the old name <code>Enabled</code>.
|
|
44
|
-
* @version 1.102.
|
|
44
|
+
* @version 1.102.8
|
|
45
45
|
* @public
|
|
46
46
|
* @class
|
|
47
47
|
* @alias sap.ui.core.EnabledPropagator
|
|
@@ -6,17 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides class sap.ui.core.FocusHandler
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
9
|
+
"../base/EventProvider",
|
|
10
|
+
"../base/Object",
|
|
10
11
|
"sap/base/Log",
|
|
11
12
|
"sap/ui/thirdparty/jquery",
|
|
12
13
|
// jQuery Plugin "control"
|
|
13
14
|
"sap/ui/dom/jquery/control"
|
|
14
15
|
],
|
|
15
|
-
function(BaseObject, Log, jQuery) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
function(EventProvider, BaseObject, Log, jQuery) {
|
|
17
|
+
"use strict";
|
|
19
18
|
|
|
19
|
+
var oFocusInfoEventProvider = new EventProvider();
|
|
20
|
+
var FOCUS_INFO_EVENT = "focusInfo";
|
|
21
|
+
var oEventData = {};
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* Constructs an instance of an sap.ui.core.FocusHandler.
|
|
@@ -148,6 +150,36 @@ sap.ui.define([
|
|
|
148
150
|
}
|
|
149
151
|
};
|
|
150
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Adds the given function as an extender of the focus info. The given function will be called within the
|
|
155
|
+
* <code>restoreFocus</code> function before the focus info is forwarded to the corresponding control.
|
|
156
|
+
*
|
|
157
|
+
* @see sap.ui.core.FocusHandler#restoreFocus
|
|
158
|
+
* @param {function} fnFunction The function that will be called to extend the focus info
|
|
159
|
+
* @param {object} oListener An object which is set as "this" context when callin the "fnFunction"
|
|
160
|
+
* @return {sap.ui.core.FocusHandler} The object itself to allow function chaining
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
FocusHandler.prototype.addFocusInfoExtender = function(fnFunction, oListener) {
|
|
164
|
+
oFocusInfoEventProvider.attachEvent(FOCUS_INFO_EVENT, oEventData, fnFunction, oListener);
|
|
165
|
+
return this;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Removes the given function from being an extender of the focus info.
|
|
170
|
+
*
|
|
171
|
+
* @param {function} fnFunction The function that will be removed
|
|
172
|
+
* @param {object} oListener An object which is set as "this" context when callin the "fnFunction". Only when
|
|
173
|
+
* the same "oListener" is given as the one that is used to call <code>addFocusInfoExtender</code>, the function
|
|
174
|
+
* can be removed correctly.
|
|
175
|
+
* @return {sap.ui.core.FocusHandler} The object itself to allow function chaining
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
FocusHandler.prototype.removeFocusInfoExtender = function(fnFunction, oListener) {
|
|
179
|
+
oFocusInfoEventProvider.detachEvent(FOCUS_INFO_EVENT, fnFunction, oListener);
|
|
180
|
+
return this;
|
|
181
|
+
};
|
|
182
|
+
|
|
151
183
|
/**
|
|
152
184
|
* Restores the focus to the last known focused control or to the given focusInfo, if possible.
|
|
153
185
|
*
|
|
@@ -175,7 +207,20 @@ sap.ui.define([
|
|
|
175
207
|
this.oLastFocusedControlInfo = oInfo;
|
|
176
208
|
// Do not store dom patch info in the last focused control info
|
|
177
209
|
delete this.oLastFocusedControlInfo.patching;
|
|
178
|
-
|
|
210
|
+
|
|
211
|
+
// expose focus info into the oEventData which is forwarded to the focus info extender
|
|
212
|
+
oEventData.info = oInfo.info;
|
|
213
|
+
oFocusInfoEventProvider.fireEvent(FOCUS_INFO_EVENT, {
|
|
214
|
+
domRef: oControl.getDomRef()
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
oControl.applyFocusInfo(oEventData.info);
|
|
218
|
+
|
|
219
|
+
// oEventData is given to the event handler as event data, thus we can't assign it with a new empty
|
|
220
|
+
// object. We need to clear it by deleting all of its own properties
|
|
221
|
+
Object.keys(oEventData).forEach(function(sKey) {
|
|
222
|
+
delete oEventData[sKey];
|
|
223
|
+
});
|
|
179
224
|
} else {
|
|
180
225
|
Log.debug("Apply focus info of control " + oInfo.id + " not possible", null, "sap.ui.core.FocusHandler");
|
|
181
226
|
}
|
package/src/sap/ui/core/HTML.js
CHANGED
package/src/sap/ui/core/Icon.js
CHANGED
|
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
|
|
|
12
12
|
* Provides the default renderer for the controls that have set their <code>visible</code> property to <code>false</code>.
|
|
13
13
|
*
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.102.
|
|
15
|
+
* @version 1.102.8
|
|
16
16
|
* @alias module:sap/ui/core/InvisibleRenderer
|
|
17
17
|
* @since 1.66.0
|
|
18
18
|
* @protected
|
package/src/sap/ui/core/Item.js
CHANGED
|
@@ -136,7 +136,7 @@ sap.ui.define(['../base/ManagedObject', "sap/base/assert"],
|
|
|
136
136
|
* @see sap.ui.core.LabelEnablement#enrich
|
|
137
137
|
*
|
|
138
138
|
* @author SAP SE
|
|
139
|
-
* @version 1.102.
|
|
139
|
+
* @version 1.102.8
|
|
140
140
|
* @protected
|
|
141
141
|
* @alias sap.ui.core.LabelEnablement
|
|
142
142
|
* @namespace
|
package/src/sap/ui/core/Popup.js
CHANGED
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
// Provides helper class sap.ui.core.Popup
|
|
10
10
|
sap.ui.define([
|
|
11
11
|
'sap/ui/Device',
|
|
12
|
+
'sap/ui/base/Event',
|
|
12
13
|
'sap/ui/base/ManagedObject',
|
|
13
14
|
'sap/ui/base/Object',
|
|
14
15
|
'sap/ui/base/ObjectPool',
|
|
15
16
|
'./Control',
|
|
17
|
+
'./Element',
|
|
16
18
|
'./IntervalTrigger',
|
|
17
19
|
'./RenderManager',
|
|
18
|
-
'./Element',
|
|
19
20
|
'./ResizeHandler',
|
|
20
21
|
'./library',
|
|
21
22
|
"sap/base/assert",
|
|
@@ -33,13 +34,14 @@ sap.ui.define([
|
|
|
33
34
|
"sap/ui/dom/jquery/rect" // jQuery Plugin "rect"
|
|
34
35
|
], function(
|
|
35
36
|
Device,
|
|
37
|
+
Event,
|
|
36
38
|
ManagedObject,
|
|
37
39
|
BaseObject,
|
|
38
40
|
ObjectPool,
|
|
39
41
|
Control,
|
|
42
|
+
Element,
|
|
40
43
|
IntervalTrigger,
|
|
41
44
|
RenderManager,
|
|
42
|
-
Element,
|
|
43
45
|
ResizeHandler,
|
|
44
46
|
library,
|
|
45
47
|
assert,
|
|
@@ -264,6 +266,7 @@ sap.ui.define([
|
|
|
264
266
|
this._mEvents["sap.ui.core.Popup.onFocusEvent-" + this._popupUID] = this.onFocusEvent;
|
|
265
267
|
this._mEvents["sap.ui.core.Popup.increaseZIndex-" + this._popupUID] = this._increaseMyZIndex;
|
|
266
268
|
this._mEvents["sap.ui.core.Popup.contains-" + this._popupUID] = this._containsEventBusWrapper;
|
|
269
|
+
this._mEvents["sap.ui.core.Popup.extendFocusInfo-" + this._popupUID] = this._extendFocusInfoEventBusWrapper;
|
|
267
270
|
|
|
268
271
|
if (oContent) {
|
|
269
272
|
this.setContent(oContent);
|
|
@@ -2729,13 +2732,53 @@ sap.ui.define([
|
|
|
2729
2732
|
}
|
|
2730
2733
|
}
|
|
2731
2734
|
|
|
2735
|
+
Popup.prototype._extendFocusInfo = function(oEvent, oEventData) {
|
|
2736
|
+
var bExtended = false,
|
|
2737
|
+
sEventPrefix = "sap.ui.core.Popup.extendFocusInfo-",
|
|
2738
|
+
oData;
|
|
2739
|
+
|
|
2740
|
+
if (oEvent instanceof Event) {
|
|
2741
|
+
// the call is from event provider
|
|
2742
|
+
oData = {
|
|
2743
|
+
info: oEventData.info,
|
|
2744
|
+
element: oEvent.getParameter("domRef")
|
|
2745
|
+
};
|
|
2746
|
+
} else {
|
|
2747
|
+
// the call is from the event bus
|
|
2748
|
+
oData = oEvent;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
var oContent = this.getContent();
|
|
2752
|
+
var oContentDom = (oContent instanceof Element) ? oContent.getDomRef() : oContent;
|
|
2753
|
+
|
|
2754
|
+
if (oContentDom && oContentDom.contains(oData.element)) {
|
|
2755
|
+
oData.info.preventScroll = true;
|
|
2756
|
+
bExtended = true;
|
|
2757
|
+
} else {
|
|
2758
|
+
var aChildPopups = this.getChildPopups();
|
|
2759
|
+
bExtended = aChildPopups.some(function(sChildID) {
|
|
2760
|
+
var sEventId = sEventPrefix + sChildID;
|
|
2761
|
+
sap.ui.getCore().getEventBus().publish("sap.ui", sEventId, oData);
|
|
2762
|
+
|
|
2763
|
+
return oData.extended;
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
return bExtended;
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
// Wrapper of _contains method for the event bus
|
|
2771
|
+
Popup.prototype._extendFocusInfoEventBusWrapper = function(sChannel, sEvent, oData) {
|
|
2772
|
+
oData.contains = this._extendFocusInfo(oData);
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2732
2775
|
/**
|
|
2733
2776
|
* @private
|
|
2734
2777
|
*/
|
|
2735
2778
|
Popup.prototype._showBlockLayer = function() {
|
|
2736
2779
|
var $BlockRef = jQuery("#sap-ui-blocklayer-popup"),
|
|
2737
2780
|
sClassName = "sapUiBLy" + (this._sModalCSSClass ? " " + this._sModalCSSClass : ""),
|
|
2738
|
-
oWithinDOMRef;
|
|
2781
|
+
oWithinDOMRef, oStaticUIArea;
|
|
2739
2782
|
|
|
2740
2783
|
if ($BlockRef.length === 0) {
|
|
2741
2784
|
$BlockRef = jQuery('<div id="sap-ui-blocklayer-popup" tabindex="0" class="' + sClassName + '"></div>');
|
|
@@ -2765,6 +2808,12 @@ sap.ui.define([
|
|
|
2765
2808
|
"visibility": "visible"
|
|
2766
2809
|
}).show();
|
|
2767
2810
|
|
|
2811
|
+
if (!this.isInPopup(this._oLastPosition.of)) {
|
|
2812
|
+
this._bFocusExtenderAdded = true;
|
|
2813
|
+
oStaticUIArea = getStaticUIArea();
|
|
2814
|
+
oStaticUIArea.oCore.oFocusHandler.addFocusInfoExtender(this._extendFocusInfo, this);
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2768
2817
|
if (Popup.blStack.length === 1) {
|
|
2769
2818
|
_fireBlockLayerStateChange({
|
|
2770
2819
|
visible: true,
|
|
@@ -2778,16 +2827,21 @@ sap.ui.define([
|
|
|
2778
2827
|
var $BlockRef = jQuery("#sap-ui-blocklayer-popup"),
|
|
2779
2828
|
oBlockLayerDomRef = $BlockRef[0],
|
|
2780
2829
|
that = this,
|
|
2781
|
-
oLastPopupInfo, oWithinDOMRef;
|
|
2830
|
+
oLastPopupInfo, oWithinDOMRef, oStaticUIArea;
|
|
2782
2831
|
|
|
2783
2832
|
oWithinDOMRef = convertWithin(this._oLastPosition.within);
|
|
2784
2833
|
disconnectBlockLayerAndWithin(oWithinDOMRef);
|
|
2785
2834
|
|
|
2786
2835
|
if ($BlockRef.length) {
|
|
2836
|
+
if (this._bFocusExtenderAdded) {
|
|
2837
|
+
this._bFocusExtenderAdded = false;
|
|
2838
|
+
oStaticUIArea = getStaticUIArea();
|
|
2839
|
+
oStaticUIArea.oCore.oFocusHandler.addFocusInfoExtender(this._extendFocusInfo, this);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2787
2842
|
// if there are more z-indices this means there are more dialogs stacked
|
|
2788
2843
|
// up. So redisplay the block layer (with new z-index) under the new
|
|
2789
2844
|
// current dialog which should be displayed.
|
|
2790
|
-
|
|
2791
2845
|
if (Popup.blStack.length > 1) {
|
|
2792
2846
|
Popup.blStack = Popup.blStack.filter(function(oPopupInfo) {
|
|
2793
2847
|
return oPopupInfo.popup !== that;
|
|
@@ -2807,6 +2861,7 @@ sap.ui.define([
|
|
|
2807
2861
|
oBlockLayerDomRef.style.visibility = "hidden";
|
|
2808
2862
|
oBlockLayerDomRef.style.display = "none";
|
|
2809
2863
|
|
|
2864
|
+
|
|
2810
2865
|
_fireBlockLayerStateChange({
|
|
2811
2866
|
visible: false,
|
|
2812
2867
|
zIndex: oLastPopupInfo.zIndex
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* The ScrollBar control can be used for virtual scrolling of a certain area.
|
|
43
43
|
* This means: to simulate a very large scrollable area when technically the area is small and the control takes care of displaying the respective part only. E.g. a Table control can take care of only rendering the currently visible rows and use this ScrollBar control to make the user think he actually scrolls through a long list.
|
|
44
44
|
* @extends sap.ui.core.Control
|
|
45
|
-
* @version 1.102.
|
|
45
|
+
* @version 1.102.8
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
* @deprecated as of version 1.56
|
package/src/sap/ui/core/Title.js
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class
|
|
32
32
|
* Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
|
-
* @version 1.102.
|
|
34
|
+
* @version 1.102.8
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
* @alias sap.ui.core.TooltipBase
|
|
@@ -173,7 +173,7 @@ sap.ui.define([
|
|
|
173
173
|
*
|
|
174
174
|
* @extends sap.ui.base.ManagedObject
|
|
175
175
|
* @author SAP SE
|
|
176
|
-
* @version 1.102.
|
|
176
|
+
* @version 1.102.8
|
|
177
177
|
* @param {sap.ui.core.Core} oCore internal API of the <core>Core</code> that manages this UIArea
|
|
178
178
|
* @param {object} [oRootNode] reference to the DOM element that should be 'hosting' the UI Area.
|
|
179
179
|
* @public
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
* @extends sap.ui.core.Component
|
|
55
55
|
* @abstract
|
|
56
56
|
* @author SAP SE
|
|
57
|
-
* @version 1.102.
|
|
57
|
+
* @version 1.102.8
|
|
58
58
|
* @alias sap.ui.core.UIComponent
|
|
59
59
|
* @since 1.9.2
|
|
60
60
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -18,7 +18,7 @@ sap.ui.define(['./ComponentMetadata', 'sap/ui/core/mvc/ViewType'],
|
|
|
18
18
|
* @experimental Since 1.15.1. The Component concept is still under construction, so some implementation details can be changed in future.
|
|
19
19
|
* @class
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.102.
|
|
21
|
+
* @version 1.102.8
|
|
22
22
|
* @since 1.15.1
|
|
23
23
|
* @alias sap.ui.core.UIComponentMetadata
|
|
24
24
|
* @extends sap.ui.core.ComponentMetadata
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['./LayoutData', './library'],
|
|
|
20
20
|
* @class
|
|
21
21
|
* Allows to add multiple LayoutData to one control in case that an easy switch of layouts (e.g. in a Form) is needed.
|
|
22
22
|
* @extends sap.ui.core.LayoutData
|
|
23
|
-
* @version 1.102.
|
|
23
|
+
* @version 1.102.8
|
|
24
24
|
*
|
|
25
25
|
* @public
|
|
26
26
|
* @since 1.9.2
|