@openui5/sap.ui.core 1.106.0 → 1.107.1
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/jquery.sap.ui.js +5 -7
- package/src/sap/base/util/LoaderExtensions.js +6 -6
- package/src/sap/base/util/fetch.js +3 -0
- package/src/sap/base/util/mixedFetch.js +1 -1
- 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/DataType.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/ManagedObjectRegistry.js +4 -3
- 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/AppCacheBuster.js +3 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/BusyIndicatorUtils.js +5 -6
- package/src/sap/ui/core/CalendarType.js +0 -1
- package/src/sap/ui/core/Component.js +12 -10
- package/src/sap/ui/core/ComponentContainer.js +6 -5
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +7 -7
- package/src/sap/ui/core/Core.js +31 -304
- 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 +6 -6
- 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 +50 -2
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -2
- 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 -2
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +5 -5
- package/src/sap/ui/core/Item.js +1 -2
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -2
- package/src/sap/ui/core/ListItem.js +1 -2
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -2
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +11 -9
- package/src/sap/ui/core/Manifest.js +8 -6
- package/src/sap/ui/core/Message.js +4 -6
- package/src/sap/ui/core/Popup.js +62 -5
- package/src/sap/ui/core/RenderManager.js +7 -5
- package/src/sap/ui/core/Renderer.js +5 -4
- package/src/sap/ui/core/Rendering.js +251 -0
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +6 -9
- package/src/sap/ui/core/ScrollBarRenderer.js +3 -3
- package/src/sap/ui/core/SeparatorItem.js +1 -2
- package/src/sap/ui/core/Title.js +1 -2
- package/src/sap/ui/core/TooltipBase.js +1 -2
- package/src/sap/ui/core/UIArea.js +389 -121
- package/src/sap/ui/core/UIComponent.js +1 -2
- 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 -2
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/XMLTemplateProcessor.js +5 -3
- package/src/sap/ui/core/cache/CacheManager.js +7 -6
- package/src/sap/ui/core/cache/LRUPersistentCache.js +4 -4
- package/src/sap/ui/core/date/Islamic.js +4 -4
- package/src/sap/ui/core/date/UniversalDate.js +8 -8
- package/src/sap/ui/core/date/UniversalDateUtils.js +3 -3
- package/src/sap/ui/core/delegate/ItemNavigation.js +5 -5
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragAndDrop.js +4 -3
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -2
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -2
- package/src/sap/ui/core/dnd/DragInfo.js +1 -2
- package/src/sap/ui/core/dnd/DropInfo.js +1 -2
- package/src/sap/ui/core/format/DateFormat.js +9 -7
- package/src/sap/ui/core/format/DateFormatTimezoneDisplay.js +0 -1
- package/src/sap/ui/core/format/FileSizeFormat.js +4 -3
- package/src/sap/ui/core/format/ListFormat.js +4 -3
- package/src/sap/ui/core/format/NumberFormat.js +6 -5
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +7 -6
- package/src/sap/ui/core/library.js +3 -55
- 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 +13 -23
- 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/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/mvc/Controller.js +3 -3
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +5 -3
- package/src/sap/ui/core/mvc/HTMLView.js +1 -2
- package/src/sap/ui/core/mvc/JSONView.js +1 -2
- package/src/sap/ui/core/mvc/JSView.js +1 -2
- package/src/sap/ui/core/mvc/TemplateView.js +1 -2
- package/src/sap/ui/core/mvc/View.js +21 -20
- package/src/sap/ui/core/mvc/ViewType.js +0 -1
- package/src/sap/ui/core/mvc/XMLView.js +18 -18
- 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/routing/async/Target.js +4 -3
- package/src/sap/ui/core/rules/Config.support.js +6 -4
- package/src/sap/ui/core/rules/CoreHelper.support.js +3 -3
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -2
- package/src/sap/ui/core/search/SearchProvider.js +1 -3
- 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/ToolsAPI.js +11 -13
- package/src/sap/ui/core/support/plugins/ControlTree.js +4 -4
- 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/support/techinfo/TechnicalInfo.js +7 -5
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -2
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -4
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -2
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -2
- 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 +4 -2
- 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 +4 -4
- 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 +3 -3
- package/src/sap/ui/debug/DebugEnv.js +4 -4
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +3 -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/Sorter.js +22 -17
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/TreeBindingAdapter.js +3 -7
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +2 -0
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +5 -7
- package/src/sap/ui/model/json/JSONModel.js +8 -6
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +5 -3
- 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 +5 -4
- package/src/sap/ui/model/odata/ODataModel.js +6 -5
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +0 -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 +4 -3
- package/src/sap/ui/model/odata/v2/ODataContextBinding.js +24 -15
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +45 -27
- package/src/sap/ui/model/odata/v2/ODataModel.js +94 -36
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +5 -5
- package/src/sap/ui/model/odata/v4/Context.js +23 -19
- package/src/sap/ui/model/odata/v4/ODataBinding.js +7 -3
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +3 -3
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +121 -57
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +11 -11
- package/src/sap/ui/model/odata/v4/ODataModel.js +111 -69
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +12 -4
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataUtils.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +41 -29
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +59 -20
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +135 -4
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +21 -7
- package/src/sap/ui/model/resource/ResourceModel.js +7 -6
- 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 +5 -4
- package/src/sap/ui/model/xml/XMLModel.js +8 -6
- package/src/sap/ui/performance/trace/Interaction.js +1 -1
- package/src/sap/ui/qunit/QUnitUtils.js +2 -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/Opa.js +7 -5
- package/src/sap/ui/test/Opa5.js +9 -15
- package/src/sap/ui/test/RecorderHotkeyListener.js +1 -1
- package/src/sap/ui/test/TestUtils.js +83 -1
- package/src/sap/ui/test/autowaiter/_autoWaiter.js +9 -0
- package/src/sap/ui/test/autowaiter/_cssAnimationWaiter.js +114 -0
- package/src/sap/ui/test/autowaiter/_cssTransitionWaiter.js +99 -0
- package/src/sap/ui/test/autowaiter/_jsAnimationWaiter.js +70 -0
- package/src/sap/ui/test/autowaiter/_resourceWaiter.js +3 -12
- package/src/sap/ui/test/autowaiter/_utils.js +13 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/matchers/Ancestor.js +1 -0
- package/src/sap/ui/test/matchers/Descendant.js +1 -0
- package/src/sap/ui/test/matchers/Sibling.js +1 -0
- package/src/sap/ui/util/Storage.js +1 -1
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -14,11 +14,11 @@ sap.ui.define([
|
|
|
14
14
|
'sap/ui/base/Interface',
|
|
15
15
|
'sap/ui/base/Object',
|
|
16
16
|
'sap/ui/base/ManagedObject',
|
|
17
|
-
'sap/ui/performance/trace/Interaction',
|
|
18
17
|
'./Component',
|
|
19
18
|
'./Configuration',
|
|
20
19
|
'./Element',
|
|
21
20
|
'./ElementMetadata',
|
|
21
|
+
'./Rendering',
|
|
22
22
|
'./RenderManager',
|
|
23
23
|
'./ThemeCheck',
|
|
24
24
|
'./UIArea',
|
|
@@ -33,7 +33,6 @@ sap.ui.define([
|
|
|
33
33
|
"sap/base/util/ObjectPath",
|
|
34
34
|
"sap/base/util/Version",
|
|
35
35
|
"sap/base/util/array/uniqueSort",
|
|
36
|
-
"sap/base/util/uid",
|
|
37
36
|
'sap/ui/performance/trace/initTraces',
|
|
38
37
|
'sap/base/util/LoaderExtensions',
|
|
39
38
|
'sap/base/util/isEmptyObject',
|
|
@@ -51,11 +50,11 @@ sap.ui.define([
|
|
|
51
50
|
Interface,
|
|
52
51
|
BaseObject,
|
|
53
52
|
ManagedObject,
|
|
54
|
-
Interaction,
|
|
55
53
|
Component,
|
|
56
54
|
Configuration,
|
|
57
55
|
Element,
|
|
58
56
|
ElementMetadata,
|
|
57
|
+
Rendering,
|
|
59
58
|
RenderManager,
|
|
60
59
|
ThemeCheck,
|
|
61
60
|
UIArea,
|
|
@@ -70,7 +69,6 @@ sap.ui.define([
|
|
|
70
69
|
ObjectPath,
|
|
71
70
|
Version,
|
|
72
71
|
uniqueSort,
|
|
73
|
-
uid,
|
|
74
72
|
initTraces,
|
|
75
73
|
LoaderExtensions,
|
|
76
74
|
isEmptyObject,
|
|
@@ -82,8 +80,6 @@ sap.ui.define([
|
|
|
82
80
|
|
|
83
81
|
"use strict";
|
|
84
82
|
|
|
85
|
-
/*global Map, Promise */
|
|
86
|
-
|
|
87
83
|
// when the Core module has been executed before, don't execute it again
|
|
88
84
|
if (sap.ui.getCore && sap.ui.getCore()) {
|
|
89
85
|
return sap.ui.getCore();
|
|
@@ -97,9 +93,6 @@ sap.ui.define([
|
|
|
97
93
|
// Initialize SAP Passport or FESR
|
|
98
94
|
initTraces();
|
|
99
95
|
|
|
100
|
-
// share the rendering log with the UIArea
|
|
101
|
-
var oRenderLog = UIArea._oRenderLog;
|
|
102
|
-
|
|
103
96
|
/**
|
|
104
97
|
* Set of libraries that have been loaded and initialized already.
|
|
105
98
|
* This is maintained separately from Core.mLibraries to protect it against
|
|
@@ -209,7 +202,7 @@ sap.ui.define([
|
|
|
209
202
|
* @extends sap.ui.base.Object
|
|
210
203
|
* @final
|
|
211
204
|
* @author SAP SE
|
|
212
|
-
* @version 1.
|
|
205
|
+
* @version 1.107.1
|
|
213
206
|
* @alias sap.ui.core.Core
|
|
214
207
|
* @public
|
|
215
208
|
* @hideconstructor
|
|
@@ -248,12 +241,6 @@ sap.ui.define([
|
|
|
248
241
|
*/
|
|
249
242
|
this.bInitialized = false;
|
|
250
243
|
|
|
251
|
-
/**
|
|
252
|
-
* Whether the DOM is ready (document.ready)
|
|
253
|
-
* @private
|
|
254
|
-
*/
|
|
255
|
-
this.bDomReady = false;
|
|
256
|
-
|
|
257
244
|
/**
|
|
258
245
|
* Available plugins in the order of registration.
|
|
259
246
|
* @private
|
|
@@ -273,13 +260,6 @@ sap.ui.define([
|
|
|
273
260
|
*/
|
|
274
261
|
this.mResourceBundles = {};
|
|
275
262
|
|
|
276
|
-
/**
|
|
277
|
-
* Currently created UIAreas keyed by their id.
|
|
278
|
-
* @private
|
|
279
|
-
* @todo FIXME how can a UI area ever be removed?
|
|
280
|
-
*/
|
|
281
|
-
this.mUIAreas = {};
|
|
282
|
-
|
|
283
263
|
/**
|
|
284
264
|
* Default model used for databinding
|
|
285
265
|
* @private
|
|
@@ -333,35 +313,14 @@ sap.ui.define([
|
|
|
333
313
|
*/
|
|
334
314
|
this.bInitLegacyLib = false;
|
|
335
315
|
|
|
336
|
-
/**
|
|
337
|
-
* The ID of a timer that will execute the next rendering.
|
|
338
|
-
*
|
|
339
|
-
* A non-falsy value indicates that a timer exists already, or at least that no
|
|
340
|
-
* new timer needs to be created as. During the boot phase, this member is set
|
|
341
|
-
* to the special value <code>this</code> which is non-falsy and which should never
|
|
342
|
-
* represent a valid timer ID (no chance of misinterpretation).
|
|
343
|
-
*/
|
|
344
|
-
this._sRerenderTimer = this;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Tasks that are called just before the rendering starts.
|
|
348
|
-
* @private
|
|
349
|
-
*/
|
|
350
|
-
this.aPrerenderingTasks = [];
|
|
351
|
-
|
|
352
316
|
Log.info("Creating Core",null,METHOD);
|
|
353
317
|
|
|
354
318
|
Measurement.start("coreComplete", "Core.js - complete");
|
|
355
319
|
Measurement.start("coreBoot", "Core.js - boot");
|
|
356
320
|
Measurement.start("coreInit", "Core.js - init");
|
|
357
321
|
|
|
358
|
-
|
|
359
|
-
* Object holding the interpreted configuration
|
|
360
|
-
* Initialized from the global "sap-ui-config" object and from URL parameters
|
|
361
|
-
* @private
|
|
362
|
-
*/
|
|
322
|
+
// freeze Config
|
|
363
323
|
Configuration.setCore(this);
|
|
364
|
-
|
|
365
324
|
// initialize frameOptions script (anti-clickjacking, etc.)
|
|
366
325
|
var oFrameOptionsConfig = Configuration.getValue("frameOptionsConfig") || {};
|
|
367
326
|
oFrameOptionsConfig.mode = Configuration.getFrameOptions();
|
|
@@ -439,12 +398,8 @@ sap.ui.define([
|
|
|
439
398
|
return that.getInterface();
|
|
440
399
|
};
|
|
441
400
|
|
|
442
|
-
// create the RenderManager so it can be used already
|
|
443
|
-
this.oRenderManager = new RenderManager();
|
|
444
|
-
|
|
445
401
|
// sync point 1 synchronizes document ready and rest of UI5 boot
|
|
446
402
|
var oSyncPoint1 = new SyncPoint("UI5 Document Ready", function(iOpenTasks, iFailures) {
|
|
447
|
-
that.bDomReady = true;
|
|
448
403
|
that.init();
|
|
449
404
|
});
|
|
450
405
|
var iDocumentReadyTask = oSyncPoint1.startTask("document.ready");
|
|
@@ -670,7 +625,6 @@ sap.ui.define([
|
|
|
670
625
|
// - Init
|
|
671
626
|
"boot",
|
|
672
627
|
// - UIArea & Rendering
|
|
673
|
-
"_createUIArea",
|
|
674
628
|
"addPrerenderingTask",
|
|
675
629
|
// - Messaging
|
|
676
630
|
"setMessageManager",
|
|
@@ -708,13 +662,6 @@ sap.ui.define([
|
|
|
708
662
|
LibraryChanged : "libraryChanged",
|
|
709
663
|
ValidationError : "validationError", ParseError : "parseError", FormatError : "formatError", ValidationSuccess : "validationSuccess"};
|
|
710
664
|
|
|
711
|
-
|
|
712
|
-
// Id of the static UIArea
|
|
713
|
-
var STATIC_UIAREA_ID = "sap-ui-static";
|
|
714
|
-
|
|
715
|
-
// to protect against nested rendering we use an array of Steps instead of a single one
|
|
716
|
-
Core.aFnDone = [];
|
|
717
|
-
|
|
718
665
|
/**
|
|
719
666
|
* The core allows some friend components to register/deregister themselves
|
|
720
667
|
* @private
|
|
@@ -1200,6 +1147,9 @@ sap.ui.define([
|
|
|
1200
1147
|
return;
|
|
1201
1148
|
}
|
|
1202
1149
|
|
|
1150
|
+
// provide core for event handling and UIArea creation
|
|
1151
|
+
UIArea.setCore(this);
|
|
1152
|
+
|
|
1203
1153
|
var METHOD = "sap.ui.core.Core.init()";
|
|
1204
1154
|
|
|
1205
1155
|
Log.info("Initializing",null,METHOD);
|
|
@@ -1214,61 +1164,37 @@ sap.ui.define([
|
|
|
1214
1164
|
this.startPlugins();
|
|
1215
1165
|
Log.info("Plugins started",null,METHOD);
|
|
1216
1166
|
|
|
1217
|
-
this._createUIAreas();
|
|
1218
|
-
|
|
1219
1167
|
this._setBodyAccessibilityRole();
|
|
1220
1168
|
|
|
1221
1169
|
this.oThemeCheck.fireThemeChangedEvent(true);
|
|
1222
1170
|
|
|
1223
1171
|
var sWaitForTheme = Configuration.getValue("xx-waitForTheme");
|
|
1224
1172
|
if ( this.isThemeApplied() || !sWaitForTheme ) {
|
|
1225
|
-
Core.aFnDone.push(Interaction.notifyAsyncStep());
|
|
1226
1173
|
this._executeInitialization();
|
|
1227
|
-
|
|
1174
|
+
Rendering.renderPendingUIUpdates("during Core init"); // directly render without setTimeout, so rendering is guaranteed to be finished when init() ends
|
|
1228
1175
|
Measurement.end("coreComplete");
|
|
1229
1176
|
|
|
1230
1177
|
} else if (sWaitForTheme === "rendering") {
|
|
1231
|
-
|
|
1178
|
+
Rendering.notifyInteractionStep();
|
|
1232
1179
|
this._executeInitialization();
|
|
1233
|
-
|
|
1234
|
-
oRenderLog.debug("delay initial rendering until theme has been loaded");
|
|
1180
|
+
Rendering.getLogger().debug("delay initial rendering until theme has been loaded");
|
|
1235
1181
|
_oEventProvider.attachEventOnce(Core.M_EVENTS.ThemeChanged, function() {
|
|
1236
|
-
|
|
1237
|
-
this.renderPendingUIUpdates.bind(this, "after theme has been loaded"),
|
|
1238
|
-
Device.browser.safari ? 50 : 0
|
|
1239
|
-
);
|
|
1182
|
+
Rendering.renderPendingUIUpdates("after theme has been loaded", 0);
|
|
1240
1183
|
}, this);
|
|
1241
|
-
|
|
1242
1184
|
Measurement.end("coreComplete");
|
|
1243
1185
|
|
|
1244
1186
|
} else if (sWaitForTheme === "init") {
|
|
1245
|
-
|
|
1246
|
-
|
|
1187
|
+
Rendering.getLogger().debug("delay init event and initial rendering until theme has been loaded");
|
|
1188
|
+
Rendering.notifyInteractionStep();
|
|
1247
1189
|
_oEventProvider.attachEventOnce(Core.M_EVENTS.ThemeChanged, function() {
|
|
1248
1190
|
this._executeInitialization();
|
|
1249
|
-
|
|
1250
|
-
this.renderPendingUIUpdates.bind(this, "after theme has been loaded"),
|
|
1251
|
-
Device.browser.safari ? 50 : 0
|
|
1252
|
-
);
|
|
1253
|
-
|
|
1191
|
+
Rendering.renderPendingUIUpdates("after theme has been loaded", 0);
|
|
1254
1192
|
Measurement.end("coreComplete");
|
|
1255
|
-
|
|
1256
1193
|
}, this);
|
|
1257
1194
|
|
|
1258
1195
|
}
|
|
1259
1196
|
};
|
|
1260
1197
|
|
|
1261
|
-
Core.prototype._createUIAreas = function() {
|
|
1262
|
-
var aUiAreas = Configuration.getValue("areas");
|
|
1263
|
-
|
|
1264
|
-
// create any pre-configured UIAreas
|
|
1265
|
-
if ( aUiAreas ) {
|
|
1266
|
-
for (var i = 0, l = aUiAreas.length; i < l; i++) {
|
|
1267
|
-
this._createUIArea(aUiAreas[i]);
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
1198
|
Core.prototype._executeOnInit = function() {
|
|
1273
1199
|
var vOnInit = Configuration.getValue("onInit");
|
|
1274
1200
|
|
|
@@ -2745,63 +2671,7 @@ sap.ui.define([
|
|
|
2745
2671
|
* @deprecated As of version 1.1, use {@link sap.ui.core.Control#placeAt Control#placeAt} instead!
|
|
2746
2672
|
*/
|
|
2747
2673
|
Core.prototype.createUIArea = function(oDomRef) {
|
|
2748
|
-
return
|
|
2749
|
-
};
|
|
2750
|
-
|
|
2751
|
-
/**
|
|
2752
|
-
* Creates a new {@link sap.ui.core.UIArea UIArea}.
|
|
2753
|
-
* Must only be used by sap.ui.core functionality.
|
|
2754
|
-
*
|
|
2755
|
-
* @param {Element|string} oDomRef a DOM Element or ID string of the UIArea
|
|
2756
|
-
* @return {sap.ui.core.UIArea} a new UIArea
|
|
2757
|
-
* @private
|
|
2758
|
-
* @ui5-restricted sap.ui.core
|
|
2759
|
-
*/
|
|
2760
|
-
Core.prototype._createUIArea = function(oDomRef) {
|
|
2761
|
-
var that = this;
|
|
2762
|
-
assert(typeof oDomRef === "string" || typeof oDomRef === "object", "oDomRef must be a string or object");
|
|
2763
|
-
|
|
2764
|
-
if (!oDomRef) {
|
|
2765
|
-
throw new Error("oDomRef must not be null");
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2768
|
-
// oDomRef might be (and actually IS in most cases!) a string (the ID of a DOM element)
|
|
2769
|
-
if (typeof (oDomRef) === "string") {
|
|
2770
|
-
var id = oDomRef;
|
|
2771
|
-
|
|
2772
|
-
if (id == STATIC_UIAREA_ID) {
|
|
2773
|
-
oDomRef = this.getStaticAreaRef();
|
|
2774
|
-
} else {
|
|
2775
|
-
oDomRef = document.getElementById(oDomRef);
|
|
2776
|
-
if (!oDomRef) {
|
|
2777
|
-
throw new Error("DOM element with ID '" + id + "' not found in page, but application tries to insert content.");
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
// if the domref does not have an ID or empty ID => generate one
|
|
2783
|
-
if (!oDomRef.id || oDomRef.id.length == 0) {
|
|
2784
|
-
oDomRef.id = uid();
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
// create a new or fetch an existing UIArea
|
|
2788
|
-
var sId = oDomRef.id;
|
|
2789
|
-
if (!this.mUIAreas[sId]) {
|
|
2790
|
-
this.mUIAreas[sId] = new UIArea(this, oDomRef);
|
|
2791
|
-
if (!isEmptyObject(this.oModels)) {
|
|
2792
|
-
var oProperties = {
|
|
2793
|
-
oModels: Object.assign({}, this.oModels),
|
|
2794
|
-
oBindingContexts: {},
|
|
2795
|
-
aPropagationListeners: []
|
|
2796
|
-
};
|
|
2797
|
-
that.mUIAreas[sId]._propagateProperties(true, that.mUIAreas[sId], oProperties, true);
|
|
2798
|
-
}
|
|
2799
|
-
} else {
|
|
2800
|
-
// this should solve the issue of 'recreation' of a UIArea
|
|
2801
|
-
// e.g. via setRoot with a new domRef
|
|
2802
|
-
this.mUIAreas[sId].setRootNode(oDomRef);
|
|
2803
|
-
}
|
|
2804
|
-
return this.mUIAreas[sId];
|
|
2674
|
+
return UIArea.create(oDomRef);
|
|
2805
2675
|
};
|
|
2806
2676
|
|
|
2807
2677
|
/**
|
|
@@ -2810,6 +2680,7 @@ sap.ui.define([
|
|
|
2810
2680
|
* @public
|
|
2811
2681
|
* @param {string|Element} o DOM element or ID of the UIArea
|
|
2812
2682
|
* @return {sap.ui.core.UIArea|null|undefined} UIArea with the given ID or DOM element or <code>null</code> or <code>undefined</code>.
|
|
2683
|
+
* @deprecated As of version 1.107, use {@link sap.ui.core.UIArea.registry#get UIArea.registry#get} instead!
|
|
2813
2684
|
*/
|
|
2814
2685
|
Core.prototype.getUIArea = function(o) {
|
|
2815
2686
|
assert(typeof o === "string" || typeof o === "object", "o must be a string or object");
|
|
@@ -2822,109 +2693,12 @@ sap.ui.define([
|
|
|
2822
2693
|
}
|
|
2823
2694
|
|
|
2824
2695
|
if (sId) {
|
|
2825
|
-
return
|
|
2696
|
+
return UIArea.registry.get(sId);
|
|
2826
2697
|
}
|
|
2827
2698
|
|
|
2828
2699
|
return null;
|
|
2829
2700
|
};
|
|
2830
2701
|
|
|
2831
|
-
/**
|
|
2832
|
-
* Informs the core about a UIArea that just became invalid.
|
|
2833
|
-
*
|
|
2834
|
-
* The core might use this information to minimize the set of
|
|
2835
|
-
* re-rendered UIAreas. But for the time being it just registers
|
|
2836
|
-
* a timer to trigger a re-rendering after the current event
|
|
2837
|
-
* has been processed.
|
|
2838
|
-
*
|
|
2839
|
-
* @param {sap.ui.core.UIArea} oUIArea UIArea that just became invalid
|
|
2840
|
-
* @private
|
|
2841
|
-
*/
|
|
2842
|
-
Core.prototype.addInvalidatedUIArea = function(oUIArea) {
|
|
2843
|
-
if ( !this._sRerenderTimer ) {
|
|
2844
|
-
oRenderLog.debug("Registering timer for delayed re-rendering");
|
|
2845
|
-
// start async interaction step
|
|
2846
|
-
Core.aFnDone.push(Interaction.notifyAsyncStep());
|
|
2847
|
-
this._sRerenderTimer = setTimeout(this["renderPendingUIUpdates"].bind(this), 0); // decoupled for collecting several invalidations into one redraw
|
|
2848
|
-
}
|
|
2849
|
-
};
|
|
2850
|
-
|
|
2851
|
-
Core.MAX_RENDERING_ITERATIONS = 20;
|
|
2852
|
-
|
|
2853
|
-
/**
|
|
2854
|
-
* Asks all UIAreas to execute any pending rendering tasks.
|
|
2855
|
-
*
|
|
2856
|
-
* The execution of rendering tasks might require multiple iterations
|
|
2857
|
-
* until either no more rendering tasks are produced or until
|
|
2858
|
-
* MAX_RENDERING_ITERATIONS are reached.
|
|
2859
|
-
*
|
|
2860
|
-
* With a value of MAX_RENDERING_ITERATIONS=0 the loop can be avoided
|
|
2861
|
-
* and the remaining tasks are executed after another timeout.
|
|
2862
|
-
*
|
|
2863
|
-
* @private
|
|
2864
|
-
*/
|
|
2865
|
-
Core.prototype.renderPendingUIUpdates = function(sCaller) {
|
|
2866
|
-
// start performance measurement
|
|
2867
|
-
oRenderLog.debug("Render pending UI updates: start (" + (sCaller || "by timer" ) + ")");
|
|
2868
|
-
|
|
2869
|
-
Measurement.start("renderPendingUIUpdates","Render pending UI updates in all UIAreas");
|
|
2870
|
-
|
|
2871
|
-
var bUIUpdated = false,
|
|
2872
|
-
bLooped = Core.MAX_RENDERING_ITERATIONS > 0,
|
|
2873
|
-
iLoopCount = 0;
|
|
2874
|
-
|
|
2875
|
-
this._bRendering = true;
|
|
2876
|
-
|
|
2877
|
-
do {
|
|
2878
|
-
|
|
2879
|
-
if ( bLooped ) {
|
|
2880
|
-
// try to detect long running ('endless') rendering loops
|
|
2881
|
-
iLoopCount++;
|
|
2882
|
-
// if we run another iteration despite the tracking mode, we complain ourselves
|
|
2883
|
-
if ( iLoopCount > Core.MAX_RENDERING_ITERATIONS ) {
|
|
2884
|
-
this._bRendering = false;
|
|
2885
|
-
throw new Error("Rendering has been re-started too many times (" + iLoopCount + "). Add URL parameter sap-ui-xx-debugRendering=true for a detailed analysis.");
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
if ( iLoopCount > 1 ) {
|
|
2889
|
-
oRenderLog.debug("Render pending UI updates: iteration " + iLoopCount);
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
// clear a pending timer so that the next call to re-render will create a new timer
|
|
2894
|
-
if (this._sRerenderTimer) {
|
|
2895
|
-
if ( this._sRerenderTimer !== this ) { // 'this' is used as a marker for a delayed initial rendering, no timer to cleanup then
|
|
2896
|
-
clearTimeout(this._sRerenderTimer); // explicitly stop the timer, as this call might be a synchronous call (applyChanges) while still a timer is running
|
|
2897
|
-
}
|
|
2898
|
-
this._sRerenderTimer = undefined;
|
|
2899
|
-
if (Core.aFnDone.length > 0) {
|
|
2900
|
-
Core.aFnDone.pop()();
|
|
2901
|
-
}
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
this.runPrerenderingTasks();
|
|
2905
|
-
|
|
2906
|
-
var mUIAreas = this.mUIAreas;
|
|
2907
|
-
for (var sId in mUIAreas) {
|
|
2908
|
-
bUIUpdated = mUIAreas[sId].rerender() || bUIUpdated;
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
// eslint-disable-next-line no-unmodified-loop-condition
|
|
2912
|
-
} while ( bLooped && this._sRerenderTimer ); // iterate if there are new rendering tasks
|
|
2913
|
-
|
|
2914
|
-
this._bRendering = false;
|
|
2915
|
-
|
|
2916
|
-
// TODO: Provide information on what actually was re-rendered...
|
|
2917
|
-
if (bUIUpdated) {
|
|
2918
|
-
this.fireUIUpdated();
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
oRenderLog.debug("Render pending UI updates: finished");
|
|
2922
|
-
|
|
2923
|
-
// end performance measurement
|
|
2924
|
-
Measurement.end("renderPendingUIUpdates");
|
|
2925
|
-
};
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
2702
|
/**
|
|
2929
2703
|
* Returns <code>true</code> if there are any pending rendering tasks or when
|
|
2930
2704
|
* such rendering tasks are currently being executed.
|
|
@@ -2933,7 +2707,7 @@ sap.ui.define([
|
|
|
2933
2707
|
* @public
|
|
2934
2708
|
*/
|
|
2935
2709
|
Core.prototype.getUIDirty = function() {
|
|
2936
|
-
return
|
|
2710
|
+
return Rendering.getUIDirty();
|
|
2937
2711
|
};
|
|
2938
2712
|
|
|
2939
2713
|
/**
|
|
@@ -2951,9 +2725,9 @@ sap.ui.define([
|
|
|
2951
2725
|
_oEventProvider.detachEvent(Core.M_EVENTS.UIUpdated, fnFunction, oListener);
|
|
2952
2726
|
};
|
|
2953
2727
|
|
|
2954
|
-
|
|
2955
|
-
_oEventProvider.fireEvent(Core.M_EVENTS.UIUpdated,
|
|
2956
|
-
};
|
|
2728
|
+
Rendering.attachUIUpdated(function(oEvent) {
|
|
2729
|
+
_oEventProvider.fireEvent(Core.M_EVENTS.UIUpdated, oEvent.getParameters());
|
|
2730
|
+
});
|
|
2957
2731
|
|
|
2958
2732
|
/**
|
|
2959
2733
|
* Triggers a realignment of controls
|
|
@@ -3171,7 +2945,7 @@ sap.ui.define([
|
|
|
3171
2945
|
* and then to update their bindings and corresponding data types (phase 2)
|
|
3172
2946
|
*/
|
|
3173
2947
|
function notifyAll(iPhase) {
|
|
3174
|
-
|
|
2948
|
+
UIArea.registry.forEach(function(oUIArea) {
|
|
3175
2949
|
fnAdapt.call(oUIArea, iPhase);
|
|
3176
2950
|
});
|
|
3177
2951
|
Component.registry.forEach(function(oComponent) {
|
|
@@ -3192,7 +2966,7 @@ sap.ui.define([
|
|
|
3192
2966
|
// modify style sheet URLs
|
|
3193
2967
|
this._updateThemeUrls(this.sTheme);
|
|
3194
2968
|
// invalidate all UIAreas
|
|
3195
|
-
|
|
2969
|
+
UIArea.registry.forEach(function(oUIArea) {
|
|
3196
2970
|
oUIArea.invalidate();
|
|
3197
2971
|
});
|
|
3198
2972
|
Log.info("RTL mode " + mChanges.rtl ? "activated" : "deactivated");
|
|
@@ -3266,7 +3040,7 @@ sap.ui.define([
|
|
|
3266
3040
|
* @public
|
|
3267
3041
|
*/
|
|
3268
3042
|
Core.prototype.applyChanges = function() {
|
|
3269
|
-
|
|
3043
|
+
Rendering.renderPendingUIUpdates("forced by applyChanges");
|
|
3270
3044
|
};
|
|
3271
3045
|
|
|
3272
3046
|
/**
|
|
@@ -3429,38 +3203,7 @@ sap.ui.define([
|
|
|
3429
3203
|
* @public
|
|
3430
3204
|
*/
|
|
3431
3205
|
Core.prototype.getStaticAreaRef = function() {
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
if (!oStaticArea) {
|
|
3435
|
-
|
|
3436
|
-
oStaticArea = document.createElement("div");
|
|
3437
|
-
oFirstFocusElement = document.createElement("span");
|
|
3438
|
-
|
|
3439
|
-
if (!this.bDomReady) {
|
|
3440
|
-
throw new Error("DOM is not ready yet. Static UIArea cannot be created.");
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
oStaticArea.setAttribute("id", STATIC_UIAREA_ID);
|
|
3444
|
-
|
|
3445
|
-
Object.assign(oStaticArea.style, {
|
|
3446
|
-
"height": "0",
|
|
3447
|
-
"width": "0",
|
|
3448
|
-
"overflow": "hidden",
|
|
3449
|
-
"float": Configuration.getRTL() ? "right" : "left"
|
|
3450
|
-
});
|
|
3451
|
-
|
|
3452
|
-
oFirstFocusElement.setAttribute("id", STATIC_UIAREA_ID + "-firstfe");
|
|
3453
|
-
oFirstFocusElement.setAttribute("tabindex", -1);
|
|
3454
|
-
oFirstFocusElement.style.fontSize = 0;
|
|
3455
|
-
|
|
3456
|
-
oStaticArea.appendChild(oFirstFocusElement);
|
|
3457
|
-
|
|
3458
|
-
document.body.insertBefore(oStaticArea, document.body.firstChild);
|
|
3459
|
-
|
|
3460
|
-
this._createUIArea(oStaticArea).bInitial = false;
|
|
3461
|
-
}
|
|
3462
|
-
return oStaticArea;
|
|
3463
|
-
|
|
3206
|
+
return UIArea.getStaticAreaRef();
|
|
3464
3207
|
};
|
|
3465
3208
|
|
|
3466
3209
|
/**
|
|
@@ -3471,7 +3214,7 @@ sap.ui.define([
|
|
|
3471
3214
|
* @protected
|
|
3472
3215
|
*/
|
|
3473
3216
|
Core.prototype.isStaticAreaRef = function(oDomRef) {
|
|
3474
|
-
return
|
|
3217
|
+
return UIArea.isStaticAreaRef(oDomRef);
|
|
3475
3218
|
};
|
|
3476
3219
|
|
|
3477
3220
|
/**
|
|
@@ -3754,7 +3497,7 @@ sap.ui.define([
|
|
|
3754
3497
|
}
|
|
3755
3498
|
// propagate Models to all UI areas
|
|
3756
3499
|
|
|
3757
|
-
|
|
3500
|
+
UIArea.registry.forEach(function (oUIArea){
|
|
3758
3501
|
if (oModel != oUIArea.getModel(sName)) {
|
|
3759
3502
|
oUIArea._propagateProperties(sName, oUIArea, oProperties, false, sName);
|
|
3760
3503
|
}
|
|
@@ -3762,7 +3505,7 @@ sap.ui.define([
|
|
|
3762
3505
|
} else if (oModel && oModel !== this.oModels[sName] ) {
|
|
3763
3506
|
this.oModels[sName] = oModel;
|
|
3764
3507
|
// propagate Models to all UI areas
|
|
3765
|
-
|
|
3508
|
+
UIArea.registry.forEach(function (oUIArea){
|
|
3766
3509
|
if (oModel != oUIArea.getModel(sName)) {
|
|
3767
3510
|
var oProperties = {
|
|
3768
3511
|
oModels: Object.assign({}, this.oModels),
|
|
@@ -4232,26 +3975,10 @@ sap.ui.define([
|
|
|
4232
3975
|
* @param {boolean} [bFirst=false]
|
|
4233
3976
|
* Whether the task should become the first one, not the last one
|
|
4234
3977
|
* @private
|
|
3978
|
+
* @ui5-restricted sap.ui.model.odata.v4
|
|
4235
3979
|
*/
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
this.aPrerenderingTasks.unshift(fnPrerenderingTask);
|
|
4239
|
-
} else {
|
|
4240
|
-
this.aPrerenderingTasks.push(fnPrerenderingTask);
|
|
4241
|
-
}
|
|
4242
|
-
};
|
|
4243
|
-
|
|
4244
|
-
/**
|
|
4245
|
-
* Runs all prerendering tasks and resets the list.
|
|
4246
|
-
* @private
|
|
4247
|
-
*/
|
|
4248
|
-
Core.prototype.runPrerenderingTasks = function () {
|
|
4249
|
-
var aTasks = this.aPrerenderingTasks.slice();
|
|
4250
|
-
|
|
4251
|
-
this.aPrerenderingTasks = [];
|
|
4252
|
-
aTasks.forEach(function (fnPrerenderingTask) {
|
|
4253
|
-
fnPrerenderingTask();
|
|
4254
|
-
});
|
|
3980
|
+
Core.prototype.addPrerenderingTask = function (fnPrerenderingTask, bFirst) {
|
|
3981
|
+
Rendering.addPrerenderingTask(fnPrerenderingTask, bFirst);
|
|
4255
3982
|
};
|
|
4256
3983
|
|
|
4257
3984
|
Core.prototype.destroy = function() {
|
|
@@ -17,7 +17,8 @@ sap.ui.define([
|
|
|
17
17
|
"sap/base/assert",
|
|
18
18
|
"sap/ui/thirdparty/jquery",
|
|
19
19
|
"sap/ui/events/F6Navigation",
|
|
20
|
-
"./RenderManager"
|
|
20
|
+
"./RenderManager",
|
|
21
|
+
"sap/ui/core/Configuration"
|
|
21
22
|
],
|
|
22
23
|
function(
|
|
23
24
|
DataType,
|
|
@@ -31,7 +32,8 @@ sap.ui.define([
|
|
|
31
32
|
assert,
|
|
32
33
|
jQuery,
|
|
33
34
|
F6Navigation,
|
|
34
|
-
RenderManager
|
|
35
|
+
RenderManager,
|
|
36
|
+
Configuration
|
|
35
37
|
) {
|
|
36
38
|
"use strict";
|
|
37
39
|
|
|
@@ -126,10 +128,9 @@ sap.ui.define([
|
|
|
126
128
|
*
|
|
127
129
|
* @extends sap.ui.base.ManagedObject
|
|
128
130
|
* @author SAP SE
|
|
129
|
-
* @version 1.
|
|
131
|
+
* @version 1.107.1
|
|
130
132
|
* @public
|
|
131
133
|
* @alias sap.ui.core.Element
|
|
132
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
133
134
|
*/
|
|
134
135
|
var Element = ManagedObject.extend("sap.ui.core.Element", {
|
|
135
136
|
|
|
@@ -213,7 +214,7 @@ sap.ui.define([
|
|
|
213
214
|
} else {
|
|
214
215
|
var sMsg = "adding element with duplicate id '" + sId + "'";
|
|
215
216
|
// duplicate ID detected => fail or at least log a warning
|
|
216
|
-
if (
|
|
217
|
+
if (Configuration.getNoDuplicateIds()) {
|
|
217
218
|
Log.error(sMsg);
|
|
218
219
|
throw new Error("Error: " + sMsg);
|
|
219
220
|
} else {
|
|
@@ -1020,7 +1021,6 @@ sap.ui.define([
|
|
|
1020
1021
|
* Contains a single key/value pair of custom data attached to an <code>Element</code>.
|
|
1021
1022
|
* @public
|
|
1022
1023
|
* @alias sap.ui.core.CustomData
|
|
1023
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
1024
1024
|
* @synthetic
|
|
1025
1025
|
*/
|
|
1026
1026
|
var CustomData = Element.extend("sap.ui.core.CustomData", /** @lends sap.ui.core.CustomData.prototype */ { metadata : {
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
*
|
|
44
44
|
* @param {boolean} [bDefault=true] Value that should be used as default value for the enhancement of the control.
|
|
45
45
|
* @param {boolean} [bLegacy=false] Whether the introduced property should use the old name <code>Enabled</code>.
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.107.1
|
|
47
47
|
* @public
|
|
48
48
|
* @class
|
|
49
49
|
* @alias sap.ui.core.EnabledPropagator
|