@openui5/sap.ui.core 1.102.1 → 1.103.0
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 +2 -2
- 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/i18n/ResourceBundle.js +2 -2
- 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 +9 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/VersionInfo.js +12 -6
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/ExpressionParser.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +10 -8
- package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
- 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/base/SyncPromise.js +2 -0
- package/src/sap/ui/core/.library +1 -89
- package/src/sap/ui/core/AppCacheBuster.js +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +4 -4
- 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/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +2 -2
- package/src/sap/ui/core/Core.js +8 -8
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +10 -9
- package/src/sap/ui/core/Element.js +12 -11
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +4 -2
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +2 -2
- package/src/sap/ui/core/Fragment.js +17 -14
- package/src/sap/ui/core/HTML.js +2 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +6 -6
- package/src/sap/ui/core/IconPool.js +1 -3
- 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 +28 -4
- 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 +4 -2
- 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/ThemeCheck.js +7 -7
- 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 +3 -2
- package/src/sap/ui/core/UIComponent.js +2 -2
- package/src/sap/ui/core/UIComponentMetadata.js +2 -2
- 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/XMLTemplateProcessor.js +3 -5
- package/src/sap/ui/core/cache/LRUPersistentCache.js +2 -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/DragAndDrop.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/DateFormat.js +2 -2
- package/src/sap/ui/core/format/NumberFormat.js +3 -3
- 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 +2 -2
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +2 -2
- package/src/sap/ui/core/messagebundle_it.properties +56 -56
- package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +12 -12
- 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/routing/History.js +5 -3
- package/src/sap/ui/core/routing/Router.js +4 -2
- package/src/sap/ui/core/routing/Targets.js +2 -2
- 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/RuleEngineOpaExtension.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/ToolsAPI.js +4 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +3 -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/theming/Parameters.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +4 -4
- package/src/sap/ui/core/tmpl/TemplateControl.js +2 -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 +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +2 -2
- package/src/sap/ui/core/util/XMLPreprocessor.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/dom/_ready.js +34 -0
- package/src/sap/ui/dom/containsOrEquals.js +2 -2
- package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
- package/src/sap/ui/dom/jquery/Focusable.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -1
- package/src/sap/ui/events/jquery/EventExtension.js +1 -1
- package/src/sap/ui/events/jquery/EventSimulation.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/TreeBindingAdapter.js +134 -0
- package/src/sap/ui/model/Type.js +1 -1
- 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 +1 -1
- 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/ODataTreeBindingAdapter.js +6 -0
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +279 -4
- 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 +36 -4
- package/src/sap/ui/model/odata/v4/Context.js +7 -10
- package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +29 -2
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -5
- package/src/sap/ui/model/odata/v4/ODataModel.js +66 -3
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +183 -20
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +10 -3
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +3 -7
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
- 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/security/FrameOptions.js +4 -2
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/OpaPlugin.js +3 -3
- package/src/sap/ui/test/_ControlFinder.js +5 -4
- package/src/sap/ui/test/actions/Drag.js +2 -2
- package/src/sap/ui/test/actions/Drop.js +2 -2
- package/src/sap/ui/test/actions/EnterText.js +8 -8
- package/src/sap/ui/test/actions/Press.js +5 -5
- package/src/sap/ui/test/actions/Scroll.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Mobile.js +59 -33
- package/src/sap/ui/util/Storage.js +2 -2
- package/src/sap/ui/util/openWindow.js +1 -1
- package/src/ui5loader.js +3 -3
- package/ui5.yaml +71 -0
|
@@ -18,11 +18,11 @@ sap.ui.define(['./Event', './Object', './ObjectPool', "sap/base/assert"],
|
|
|
18
18
|
* @abstract
|
|
19
19
|
* @extends sap.ui.base.Object
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.103.0
|
|
22
22
|
* @public
|
|
23
23
|
* @alias sap.ui.base.EventProvider
|
|
24
24
|
*/
|
|
25
|
-
var EventProvider = BaseObject.extend("sap.ui.base.EventProvider", /** @lends sap.ui.base.EventProvider */ {
|
|
25
|
+
var EventProvider = BaseObject.extend("sap.ui.base.EventProvider", /** @lends sap.ui.base.EventProvider.prototype */ {
|
|
26
26
|
|
|
27
27
|
constructor : function() {
|
|
28
28
|
|
|
@@ -738,7 +738,7 @@ sap.ui.define([
|
|
|
738
738
|
* Throws an error if the next token's ID is not equal to the optional
|
|
739
739
|
* <code>sExpectedTokenId</code>.
|
|
740
740
|
* @param {string} [sExpectedTokenId] - the expected id of the next token
|
|
741
|
-
* @returns {object} - the next token or undefined if all tokens have been read
|
|
741
|
+
* @returns {object|undefined} - the next token or undefined if all tokens have been read
|
|
742
742
|
*/
|
|
743
743
|
function advance(sExpectedTokenId) {
|
|
744
744
|
var oToken = aTokens[iNextToken];
|
|
@@ -760,7 +760,7 @@ sap.ui.define([
|
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
762
|
* Returns the next token in the array of tokens, but does not advance the index.
|
|
763
|
-
* @returns {object} - the next token or undefined if all tokens have been read
|
|
763
|
+
* @returns {object|undefined} - the next token or undefined if all tokens have been read
|
|
764
764
|
*/
|
|
765
765
|
function current() {
|
|
766
766
|
return aTokens[iNextToken];
|
|
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/base/Object'], function(BaseObject) {
|
|
|
28
28
|
* no internals of the class can be accessed.
|
|
29
29
|
*
|
|
30
30
|
* @author Malte Wedel, Daniel Brinkmann
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.103.0
|
|
32
32
|
* @param {sap.ui.base.Object} oObject
|
|
33
33
|
* Object for which a facade should be created
|
|
34
34
|
* @param {string[]} aMethods
|
|
@@ -266,7 +266,7 @@ sap.ui.define([
|
|
|
266
266
|
*
|
|
267
267
|
* @extends sap.ui.base.EventProvider
|
|
268
268
|
* @author SAP SE
|
|
269
|
-
* @version 1.
|
|
269
|
+
* @version 1.103.0
|
|
270
270
|
* @public
|
|
271
271
|
* @alias sap.ui.base.ManagedObject
|
|
272
272
|
*/
|
|
@@ -1515,8 +1515,10 @@ sap.ui.define([
|
|
|
1515
1515
|
* activated by configuration. Even then, it might not be present for all properties
|
|
1516
1516
|
* and their values depending on where the value came form.
|
|
1517
1517
|
*
|
|
1518
|
-
*
|
|
1519
|
-
*
|
|
1518
|
+
* If no origin info is available, <code>null</code> will be returned.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {string} sPropertyName Name of the property
|
|
1521
|
+
* @returns {object|null} An object describing the origin of this property's value or <code>null</code>
|
|
1520
1522
|
* @public
|
|
1521
1523
|
*/
|
|
1522
1524
|
ManagedObject.prototype.getOriginInfo = function(sPropertyName) {
|
|
@@ -1998,14 +2000,14 @@ sap.ui.define([
|
|
|
1998
2000
|
* Name of the aggregation
|
|
1999
2001
|
* @param {sap.ui.base.ManagedObject | Array} [oDefaultForCreation=null]
|
|
2000
2002
|
* Object that is used in case the current aggregation is empty. If provided, it must be null for
|
|
2001
|
-
* 0..1 aggregations or an empty array for 0..n aggregations. If not provided, null is used.
|
|
2003
|
+
* 0..1 aggregations or an empty array for 0..n aggregations. If not provided, <code>null</code> is used.
|
|
2002
2004
|
*
|
|
2003
2005
|
* <b>Note:</b> When an empty array is given and used because the aggregation was not set before,
|
|
2004
2006
|
* then this array will be used for the aggregation from thereon. Sharing the same empty array
|
|
2005
2007
|
* between different calls to this method therefore is not possible and will result in
|
|
2006
2008
|
* inconsistencies.
|
|
2007
2009
|
* @returns {sap.ui.base.ManagedObject|sap.ui.base.ManagedObject[]|null}
|
|
2008
|
-
* Aggregation array in case of 0..n-aggregations or the managed object or null in case of 0..1-aggregations
|
|
2010
|
+
* Aggregation array in case of 0..n-aggregations or the managed object or <code>null</code> in case of 0..1-aggregations
|
|
2009
2011
|
* @protected
|
|
2010
2012
|
*/
|
|
2011
2013
|
ManagedObject.prototype.getAggregation = function(sAggregationName, oDefaultForCreation) {
|
|
@@ -2182,7 +2184,7 @@ sap.ui.define([
|
|
|
2182
2184
|
*
|
|
2183
2185
|
* If the given object is found in the aggregation, it is removed, it's parent relationship
|
|
2184
2186
|
* is unset and this ManagedObject is marked as changed. The removed object is returned as
|
|
2185
|
-
* result of this method. If the object could not be found, <code>
|
|
2187
|
+
* result of this method. If the object could not be found, <code>null</code> is returned.
|
|
2186
2188
|
*
|
|
2187
2189
|
* This method must only be called for aggregations of cardinality 0..n. The only way to remove objects
|
|
2188
2190
|
* from a 0..1 aggregation is to set a <code>null</code> value for them.
|
|
@@ -2199,7 +2201,7 @@ sap.ui.define([
|
|
|
2199
2201
|
* of the aggregation, nothing is removed.
|
|
2200
2202
|
* @param {boolean}
|
|
2201
2203
|
* [bSuppressInvalidate] if true, this ManagedObject is not marked as changed
|
|
2202
|
-
* @returns {sap.ui.base.ManagedObject} the removed object or null
|
|
2204
|
+
* @returns {sap.ui.base.ManagedObject|null} the removed object or <code>null</code>
|
|
2203
2205
|
* @protected
|
|
2204
2206
|
*/
|
|
2205
2207
|
ManagedObject.prototype.removeAggregation = function(sAggregationName, vObject, bSuppressInvalidate) {
|
|
@@ -2923,7 +2925,7 @@ sap.ui.define([
|
|
|
2923
2925
|
* @param {object} oScope
|
|
2924
2926
|
* @param {boolean} bDetectValue
|
|
2925
2927
|
*
|
|
2926
|
-
* @returns {object} the binding info object or an unescaped string or undefined
|
|
2928
|
+
* @returns {object|string|undefined} the binding info object or an unescaped string or <code>undefined</code>.
|
|
2927
2929
|
* If a binding info is returned, it contains at least a path property
|
|
2928
2930
|
* or nested bindings (parts) and, depending on the binding type,
|
|
2929
2931
|
* additional properties
|
|
@@ -73,7 +73,7 @@ function(
|
|
|
73
73
|
*
|
|
74
74
|
*
|
|
75
75
|
* @author Frank Weigel
|
|
76
|
-
* @version 1.
|
|
76
|
+
* @version 1.103.0
|
|
77
77
|
* @since 0.8.6
|
|
78
78
|
* @alias sap.ui.base.ManagedObjectMetadata
|
|
79
79
|
* @extends sap.ui.base.Metadata
|
|
@@ -402,6 +402,15 @@ function(
|
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Creates a new aggregation forwarder for the given aggregation.
|
|
407
|
+
* @param {object} oAggregation Aggregation info object
|
|
408
|
+
*
|
|
409
|
+
* @class Class to manage the forwarding of an aggregation.
|
|
410
|
+
* @alias sap.ui.base.ManagedObjectMetadata.AggregationForwarder
|
|
411
|
+
* @private
|
|
412
|
+
* @ui5-restricted sap.ui.base
|
|
413
|
+
*/
|
|
405
414
|
function AggregationForwarder(oAggregation) {
|
|
406
415
|
var oForwardTo = oAggregation.forwarding;
|
|
407
416
|
this.aggregation = oAggregation; // source aggregation info
|
|
@@ -458,6 +467,7 @@ function(
|
|
|
458
467
|
|
|
459
468
|
/*
|
|
460
469
|
* Returns the forwarding target instance and ensures that this.targetAggregationInfo is available
|
|
470
|
+
* @returns {sap.ui.core.Control}
|
|
461
471
|
*/
|
|
462
472
|
AggregationForwarder.prototype.getTarget = function(oInstance, bConnectTargetInfo) {
|
|
463
473
|
var oTarget = this._getTarget.call(oInstance);
|
|
@@ -1048,7 +1058,7 @@ function(
|
|
|
1048
1058
|
* in the constructor documentation of this class.
|
|
1049
1059
|
*
|
|
1050
1060
|
* @param {string} sName name of the property to be retrieved or empty
|
|
1051
|
-
* @
|
|
1061
|
+
* @returns {object|undefined} property info object or <code>undefined</code>
|
|
1052
1062
|
* @protected
|
|
1053
1063
|
*/
|
|
1054
1064
|
ManagedObjectMetadata.prototype.getManagedProperty = function(sName) {
|
|
@@ -1189,7 +1199,7 @@ function(
|
|
|
1189
1199
|
* in the constructor documentation of this class.
|
|
1190
1200
|
*
|
|
1191
1201
|
* @param {string} sAggregationName name of the aggregation to be retrieved or empty
|
|
1192
|
-
* @
|
|
1202
|
+
* @returns {object|undefined} aggregation info object or <code>undefined</code>
|
|
1193
1203
|
* @protected
|
|
1194
1204
|
*/
|
|
1195
1205
|
ManagedObjectMetadata.prototype.getManagedAggregation = function(sAggregationName) {
|
|
@@ -1345,7 +1355,9 @@ function(
|
|
|
1345
1355
|
|
|
1346
1356
|
/**
|
|
1347
1357
|
* Returns a forwarder for the given aggregation (or undefined, when there is no forwarding), considering also inherited aggregations.
|
|
1358
|
+
* @param {string} sAggregationName Name of the aggregation to get the forwarder for
|
|
1348
1359
|
* @private
|
|
1360
|
+
* @returns {sap.ui.base.ManagedObjectMetadata.AggregationForwarder|undefined}
|
|
1349
1361
|
*/
|
|
1350
1362
|
ManagedObjectMetadata.prototype.getAggregationForwarder = function(sAggregationName) {
|
|
1351
1363
|
var oAggregation = this._mAllAggregations[sAggregationName];
|
|
@@ -1504,7 +1516,7 @@ function(
|
|
|
1504
1516
|
* in the constructor documentation of this class.
|
|
1505
1517
|
*
|
|
1506
1518
|
* @param {string} sName name of the association to be retrieved
|
|
1507
|
-
* @
|
|
1519
|
+
* @returns {object|undefined} association info object or <code>undefined</code>
|
|
1508
1520
|
* @protected
|
|
1509
1521
|
*/
|
|
1510
1522
|
ManagedObjectMetadata.prototype.getManagedAssociation = function(sName) {
|
|
@@ -1712,16 +1724,17 @@ function(
|
|
|
1712
1724
|
|
|
1713
1725
|
/**
|
|
1714
1726
|
* Filter out settings from the given map that are not described in the metadata.
|
|
1715
|
-
* If null or undefined is given, null or undefined is returned.
|
|
1716
1727
|
*
|
|
1717
|
-
*
|
|
1718
|
-
*
|
|
1728
|
+
* If <code>null</code> or <code>undefined</code> is given, <code>null</code> or <code>undefined</code> is returned.
|
|
1729
|
+
*
|
|
1730
|
+
* @param {object|null|undefined} [mSettings] original filters or <code>null</code>
|
|
1731
|
+
* @returns {object|null|undefined} new object with filtered settings or <code>null</code> or <code>undefined</code>
|
|
1719
1732
|
* @private
|
|
1720
1733
|
* @since 1.27.0
|
|
1721
1734
|
*/
|
|
1722
1735
|
ManagedObjectMetadata.prototype.removeUnknownSettings = function(mSettings) {
|
|
1723
1736
|
|
|
1724
|
-
assert(mSettings == null || typeof mSettings === 'object', "mSettings must be null or an object");
|
|
1737
|
+
assert(mSettings == null || typeof mSettings === 'object', "mSettings must be null or undefined or an object");
|
|
1725
1738
|
|
|
1726
1739
|
if ( mSettings == null ) {
|
|
1727
1740
|
return mSettings;
|
|
@@ -26,7 +26,7 @@ sap.ui.define(['./Metadata', "sap/base/Log"],
|
|
|
26
26
|
* @class Base class for all SAPUI5 Objects.
|
|
27
27
|
* @abstract
|
|
28
28
|
* @author Malte Wedel
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.103.0
|
|
30
30
|
* @public
|
|
31
31
|
* @alias sap.ui.base.Object
|
|
32
32
|
* @throws {Error} When an instance of the class or its subclasses is created without the <code>new</code> operator.
|
|
@@ -88,6 +88,8 @@ sap.ui.define([], function () {
|
|
|
88
88
|
* @param {function} fnExecutor
|
|
89
89
|
* A function that is passed with the arguments resolve and reject...
|
|
90
90
|
*
|
|
91
|
+
* @alias sap.ui.base.SyncPromise
|
|
92
|
+
* @class
|
|
91
93
|
* @private
|
|
92
94
|
* @ui5-restricted sap.ui.core,sap.ui.dt,sap.ui.model
|
|
93
95
|
*/
|
package/src/sap/ui/core/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.103.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>The SAPUI5 Core Runtime.
|
|
12
12
|
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
<module-syntax>ui5</module-syntax>
|
|
19
19
|
</generation>
|
|
20
20
|
<selenium xmlns="http://www.sap.com/ui5/buildext/selenium" package="com.sap.ui5.selenium.core" />
|
|
21
|
-
<!-- excludes for the all-in-one file -->
|
|
22
21
|
<packaging xmlns="http://www.sap.com/ui5/buildext/packaging" version="2.0" >
|
|
23
22
|
<module-infos>
|
|
24
23
|
<raw-module name="sap/ui/core/support/trace/EppLib.js" />
|
|
@@ -108,93 +107,6 @@
|
|
|
108
107
|
<raw-module name="sap/ui/test/starter/_configureLoader.js" depends="ui5loader.js" />
|
|
109
108
|
<module-cycle modules="sap/ui/core/Core.js,sap/ui/core/Component.js" />
|
|
110
109
|
</module-infos>
|
|
111
|
-
<all-in-one>
|
|
112
|
-
<!-- exclude all merged files as well as the top level jQuery copy (not visible in OpenUI5) -->
|
|
113
|
-
<exclude name="jquery-*.js" />
|
|
114
|
-
<exclude name="sap-*" />
|
|
115
|
-
<!-- CorePlugin, shouldn't be installed by default -->
|
|
116
|
-
<exclude name="sap/ui/core/plugin/DeclarativeSupport.js" />
|
|
117
|
-
<exclude name="sap/ui/core/plugin/LessSupport.js" />
|
|
118
|
-
<!-- exclude non-productive code -->
|
|
119
|
-
<exclude name="sap/ui/debug/**" />
|
|
120
|
-
<exclude name="sap/ui/core/support/" />
|
|
121
|
-
<exclude name="sap/ui/qunit/**" />
|
|
122
|
-
<exclude name="sap/ui/test/**" />
|
|
123
|
-
<exclude name="testsuite/**" />
|
|
124
|
-
<!-- Ignore substitutes for moved third party libs -->
|
|
125
|
-
<exclude name="jquery-ui-core.js" />
|
|
126
|
-
<exclude name="jquery-ui-datepicker.js" />
|
|
127
|
-
<exclude name="jquery-ui-position.js" />
|
|
128
|
-
<exclude name="sap/ui/model/odata/datajs.js" />
|
|
129
|
-
<!-- Third party libs which should NOT be part of the all-in-one file -->
|
|
130
|
-
<exclude name="sap/ui/thirdparty/bignumber.js" />
|
|
131
|
-
<exclude name="sap/ui/thirdparty/blanket.js" />
|
|
132
|
-
<!-- <exclude name="sap/ui/thirdparty/crossroads.js" /> -->
|
|
133
|
-
<!-- <exclude name="sap/ui/thirdparty/caja-html-sanitizer.js" /> -->
|
|
134
|
-
<exclude name="sap/ui/thirdparty/d3.js" />
|
|
135
|
-
<exclude name="sap/ui/thirdparty/datajs.js" />
|
|
136
|
-
<exclude name="sap/ui/thirdparty/handlebars.js" />
|
|
137
|
-
<!-- <exclude name="sap/ui/thirdparty/hasher.js" /> -->
|
|
138
|
-
<exclude name="sap/ui/thirdparty/IPv6.js" />
|
|
139
|
-
<exclude name="sap/ui/thirdparty/iscroll.js" />
|
|
140
|
-
<exclude name="sap/ui/thirdparty/iscroll-lite.js" />
|
|
141
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-widget.js" />
|
|
142
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-effect*.js" />
|
|
143
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect.js" />
|
|
144
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-blind.js" />
|
|
145
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-bounce.js" />
|
|
146
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-clip.js" />
|
|
147
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-drop.js" />
|
|
148
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-explode.js" />
|
|
149
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-fade.js" />
|
|
150
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-fold.js" />
|
|
151
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-highlight.js" />
|
|
152
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-pulsate.js" />
|
|
153
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-scale.js" />
|
|
154
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-shake.js" />
|
|
155
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-slide.js" />
|
|
156
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-effect-transfer.js" />
|
|
157
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-mouse.js" />
|
|
158
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-draggable.js" />
|
|
159
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-resizable.js" />
|
|
160
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-selectable.js" />
|
|
161
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-sortable.js" />
|
|
162
|
-
<exclude name="sap/ui/thirdparty/jqueryui/jquery-ui-droppable.js" />
|
|
163
|
-
<exclude name="sap/ui/thirdparty/jszip.js" />
|
|
164
|
-
<exclude name="sap/ui/thirdparty/klay.js" />
|
|
165
|
-
<exclude name="sap/ui/thirdparty/less.js" />
|
|
166
|
-
<exclude name="sap/ui/thirdparty/mobify-carousel.js" />
|
|
167
|
-
<exclude name="sap/ui/thirdparty/mobiscroll/js/mobiscroll-core.js" />
|
|
168
|
-
<exclude name="sap/ui/thirdparty/mobiscroll/js/mobiscroll-scroller.js" />
|
|
169
|
-
<exclude name="sap/ui/thirdparty/mobiscroll/js/mobiscroll-datetime.js" />
|
|
170
|
-
<exclude name="sap/ui/thirdparty/punycode.js" />
|
|
171
|
-
<exclude name="sap/ui/thirdparty/qunit-2.js" />
|
|
172
|
-
<exclude name="sap/ui/thirdparty/qunit-composite.js" />
|
|
173
|
-
<exclude name="sap/ui/thirdparty/qunit-reporter-junit.js" />
|
|
174
|
-
<exclude name="sap/ui/thirdparty/qunit.js" />
|
|
175
|
-
<exclude name="sap/ui/thirdparty/RequestRecorder.js"/>
|
|
176
|
-
<exclude name="sap/ui/thirdparty/require.js" />
|
|
177
|
-
<exclude name="sap/ui/thirdparty/SecondLevelDomains.js" />
|
|
178
|
-
<!-- <exclude name="sap/ui/thirdparty/signals.js" /> -->
|
|
179
|
-
<exclude name="sap/ui/thirdparty/sinon-4.js" />
|
|
180
|
-
<exclude name="sap/ui/thirdparty/sinon-ie.js" />
|
|
181
|
-
<exclude name="sap/ui/thirdparty/sinon-qunit.js" />
|
|
182
|
-
<exclude name="sap/ui/thirdparty/sinon-server.js" />
|
|
183
|
-
<exclude name="sap/ui/thirdparty/sinon.js" />
|
|
184
|
-
<exclude name="sap/ui/thirdparty/swipe-view.js" />
|
|
185
|
-
<!-- URI is no longer excluded because it's needed in jquery.sap.global and others -->
|
|
186
|
-
<!-- <exclude name="sap/ui/thirdparty/URI.js" /> -->
|
|
187
|
-
<exclude name="sap/ui/thirdparty/URITemplate.js" />
|
|
188
|
-
<exclude name="sap/ui/thirdparty/vkbeautify.js" />
|
|
189
|
-
<exclude name="sap/ui/thirdparty/zyngascroll.js" />
|
|
190
|
-
<exclude name="sap/ui/thirdparty/hyphenopoly/**" />
|
|
191
|
-
<!-- INCLUDED (because not mentioned in the list above) are the following libs: -->
|
|
192
|
-
<!-- jquery.sap.global.js -->
|
|
193
|
-
<!-- sap/ui/thirdparty/jquery-mobile-custom.js -->
|
|
194
|
-
<!-- sap/ui/thirdparty/jqueryui/jquery-ui-core.js -->
|
|
195
|
-
<!-- sap/ui/thirdparty/jqueryui/jquery-ui-position.js -->
|
|
196
|
-
<!-- sap/ui/thirdparty/jqueryui/jquery-ui-datepicker.js -->
|
|
197
|
-
</all-in-one>
|
|
198
110
|
</packaging>
|
|
199
111
|
<!-- excludes for the JSDoc -->
|
|
200
112
|
<jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc" >
|
|
@@ -265,7 +265,7 @@ sap.ui.define([
|
|
|
265
265
|
* @public
|
|
266
266
|
* @alias sap.ui.core.AppCacheBuster
|
|
267
267
|
*/
|
|
268
|
-
var AppCacheBuster =
|
|
268
|
+
var AppCacheBuster = {
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* Boots the AppCacheBuster by initializing and registering the
|
|
@@ -583,14 +583,14 @@ sap.ui.define([
|
|
|
583
583
|
/**
|
|
584
584
|
* Hook to intercept the load of the cache buster info. Returns either the
|
|
585
585
|
* JSON object with the cache buster info or null/undefined if the URL should
|
|
586
|
-
* be handled.
|
|
587
|
-
*
|
|
586
|
+
* be handled by AppCacheBuster's default implementation.
|
|
587
|
+
*
|
|
588
588
|
* The cache buster info object is a map which contains the relative
|
|
589
589
|
* paths for the resources as key and a timestamp/etag as string as
|
|
590
590
|
* value for the entry. The value is used to be added as part of the
|
|
591
591
|
* URL to create a new URL if the resource has been changed.
|
|
592
592
|
* @param {string} sUrl URL from where to load the cachebuster info
|
|
593
|
-
* @
|
|
593
|
+
* @returns {object{null|undefined} cache buster info object or null/undefined
|
|
594
594
|
* @private
|
|
595
595
|
*/
|
|
596
596
|
onIndexLoad: function(sUrl) {
|
|
@@ -132,7 +132,7 @@ sap.ui.define([
|
|
|
132
132
|
// only extend / clone if there is data
|
|
133
133
|
// otherwise "null" will be converted into an empty object
|
|
134
134
|
if (oParentData || oData) {
|
|
135
|
-
|
|
135
|
+
oData = deepExtend({}, oParentData, oData);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
return oData;
|
|
@@ -244,7 +244,7 @@ sap.ui.define([
|
|
|
244
244
|
* @extends sap.ui.base.ManagedObject
|
|
245
245
|
* @abstract
|
|
246
246
|
* @author SAP SE
|
|
247
|
-
* @version 1.
|
|
247
|
+
* @version 1.103.0
|
|
248
248
|
* @alias sap.ui.core.Component
|
|
249
249
|
* @since 1.9.2
|
|
250
250
|
*/
|
|
@@ -3398,12 +3398,12 @@ sap.ui.define([
|
|
|
3398
3398
|
// the i18n processing has already happened and we skip this part.
|
|
3399
3399
|
|
|
3400
3400
|
// Why do we set the oManifest object here?
|
|
3401
|
-
// > If we have instance specific information like "activeTerminologies", the resulting
|
|
3401
|
+
// > If we have instance specific information like "activeTerminologies" (non-empty array), the resulting
|
|
3402
3402
|
// Manifest instance differs from the Manifest that is stored on the ComponentMetadata.
|
|
3403
3403
|
// The function prepareControllerClass() then creates a ComponentMetadata Proxy,
|
|
3404
3404
|
// which encapsulates this single instance specific Manifest object.
|
|
3405
3405
|
var pProcessI18n = Promise.resolve();
|
|
3406
|
-
if (!oManifest && mOptions.activeTerminologies) {
|
|
3406
|
+
if (!oManifest && Array.isArray(mOptions.activeTerminologies) && mOptions.activeTerminologies.length > 0) {
|
|
3407
3407
|
oManifest = new Manifest(oMetadata.getManifestObject().getRawJson(), {
|
|
3408
3408
|
process: false,
|
|
3409
3409
|
activeTerminologies: aActiveTerminologies
|
|
@@ -701,7 +701,7 @@ sap.ui.define([
|
|
|
701
701
|
* @public
|
|
702
702
|
*/
|
|
703
703
|
getSAPLogonLanguage : function () {
|
|
704
|
-
return (this.sapLogonLanguage && this.sapLogonLanguage.toUpperCase()) || this.language.
|
|
704
|
+
return (this.sapLogonLanguage && this.sapLogonLanguage.toUpperCase()) || this.language._getSAPLogonLanguage();
|
|
705
705
|
},
|
|
706
706
|
|
|
707
707
|
/**
|
|
@@ -77,11 +77,11 @@ sap.ui.define([
|
|
|
77
77
|
* @extends sap.ui.core.Element
|
|
78
78
|
* @abstract
|
|
79
79
|
* @author SAP SE
|
|
80
|
-
* @version 1.
|
|
80
|
+
* @version 1.103.0
|
|
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
|
*/
|
|
84
|
-
var Control = Element.extend("sap.ui.core.Control", /** @lends sap.ui.core.Control */ {
|
|
84
|
+
var Control = Element.extend("sap.ui.core.Control", /** @lends sap.ui.core.Control.prototype */ {
|
|
85
85
|
|
|
86
86
|
metadata : {
|
|
87
87
|
stereotype : "control",
|
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -210,7 +210,7 @@ sap.ui.define([
|
|
|
210
210
|
* @extends sap.ui.base.Object
|
|
211
211
|
* @final
|
|
212
212
|
* @author SAP SE
|
|
213
|
-
* @version 1.
|
|
213
|
+
* @version 1.103.0
|
|
214
214
|
* @alias sap.ui.core.Core
|
|
215
215
|
* @public
|
|
216
216
|
* @hideconstructor
|
|
@@ -892,13 +892,13 @@ sap.ui.define([
|
|
|
892
892
|
// During this first call, the configuration object is not yet set on the Core instance.
|
|
893
893
|
if (this.oConfiguration) {
|
|
894
894
|
var html = document.documentElement;
|
|
895
|
-
var
|
|
895
|
+
var sAnimationMode = this.oConfiguration.getAnimationMode();
|
|
896
|
+
html.dataset.sapUiAnimationMode = sAnimationMode;
|
|
897
|
+
var bAnimation = (sAnimationMode !== Configuration.AnimationMode.minimal && sAnimationMode !== Configuration.AnimationMode.none);
|
|
896
898
|
html.dataset.sapUiAnimation = bAnimation ? "on" : "off";
|
|
897
899
|
if (typeof jQuery !== "undefined") {
|
|
898
900
|
jQuery.fx.off = !bAnimation;
|
|
899
901
|
}
|
|
900
|
-
var sAnimationMode = this.oConfiguration.getAnimationMode();
|
|
901
|
-
html.dataset.sapUiAnimationMode = sAnimationMode;
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
904
|
|
|
@@ -2597,7 +2597,7 @@ sap.ui.define([
|
|
|
2597
2597
|
* Used in Core#initLibrary and ThemeCheck#checkStyle.
|
|
2598
2598
|
*
|
|
2599
2599
|
* @param {object} oLibInfo Library info object (containing a "version" property)
|
|
2600
|
-
* @
|
|
2600
|
+
* @returns {string|undefined} query parameters or undefined if "versionedLibCss" config is "false"
|
|
2601
2601
|
* @private
|
|
2602
2602
|
*/
|
|
2603
2603
|
Core.prototype._getLibraryCssQueryParams = function(oLibInfo) {
|
|
@@ -3431,11 +3431,11 @@ sap.ui.define([
|
|
|
3431
3431
|
Core.prototype.getElementById = Element.registry.get;
|
|
3432
3432
|
|
|
3433
3433
|
/**
|
|
3434
|
-
* Returns the registered object for the given
|
|
3434
|
+
* Returns the registered object for the given ID, if any.
|
|
3435
3435
|
*
|
|
3436
3436
|
* @param {string} sType Stereotype of the object to retrieve
|
|
3437
|
-
* @param {sap.ui.core.ID|null|undefined} sId
|
|
3438
|
-
* @returns {sap.ui.base.ManagedObject|undefined} Object of the given type and with the given
|
|
3437
|
+
* @param {sap.ui.core.ID|null|undefined} sId ID of the object to retrieve
|
|
3438
|
+
* @returns {sap.ui.base.ManagedObject|undefined} Object of the given type and with the given ID or undefined
|
|
3439
3439
|
* @private
|
|
3440
3440
|
*/
|
|
3441
3441
|
Core.prototype.getObject = function(sType, sId) {
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @class Static class for enabling declarative UI support.
|
|
41
41
|
*
|
|
42
42
|
* @author Peter Muessig, Tino Butz
|
|
43
|
-
* @version 1.
|
|
43
|
+
* @version 1.103.0
|
|
44
44
|
* @since 1.7.0
|
|
45
45
|
* @public
|
|
46
46
|
* @alias sap.ui.core.DeclarativeSupport
|
|
@@ -120,6 +120,7 @@ sap.ui.define([
|
|
|
120
120
|
var sType = $element.attr("data-sap-ui-type");
|
|
121
121
|
var aControls = [];
|
|
122
122
|
var bIsUIArea = sType === "sap.ui.core.UIArea";
|
|
123
|
+
var aAttributes = oElement.getAttributeNames();
|
|
123
124
|
|
|
124
125
|
if (bIsUIArea) {
|
|
125
126
|
// use a UIArea / better performance when rendering multiple controls
|
|
@@ -145,12 +146,12 @@ sap.ui.define([
|
|
|
145
146
|
// for a UIArea we remove only the data HTML attributes and keep the others
|
|
146
147
|
// also marks the control as parsed (by removing data-sap-ui-type)
|
|
147
148
|
var aAttr = [];
|
|
148
|
-
|
|
149
|
-
var sName =
|
|
149
|
+
for (var i = 0; i < aAttributes.length; i++) {
|
|
150
|
+
var sName = aAttributes[i];
|
|
150
151
|
if (!bIsUIArea || bIsUIArea && /^data-/g.test(sName.toLowerCase())) {
|
|
151
152
|
aAttr.push(sName);
|
|
152
153
|
}
|
|
153
|
-
}
|
|
154
|
+
}
|
|
154
155
|
if (aAttr.length > 0) {
|
|
155
156
|
$element.removeAttr(aAttr.join(" "));
|
|
156
157
|
}
|
|
@@ -258,10 +259,11 @@ sap.ui.define([
|
|
|
258
259
|
var fnBindingParser = ManagedObject.bindingParser;
|
|
259
260
|
var aCustomData = [];
|
|
260
261
|
var reCustomData = /^data-custom-data:(.+)/i;
|
|
262
|
+
var aAttributes = oElement.getAttributeNames();
|
|
261
263
|
|
|
262
|
-
|
|
263
|
-
var sName =
|
|
264
|
-
var sValue =
|
|
264
|
+
for (var i = 0; i < aAttributes.length; i++) {
|
|
265
|
+
var sName = aAttributes[i];
|
|
266
|
+
var sValue = oElement.getAttribute(sName);
|
|
265
267
|
|
|
266
268
|
if (!reCustomData.test(sName)) {
|
|
267
269
|
|
|
@@ -340,8 +342,7 @@ sap.ui.define([
|
|
|
340
342
|
}));
|
|
341
343
|
|
|
342
344
|
}
|
|
343
|
-
|
|
344
|
-
});
|
|
345
|
+
}
|
|
345
346
|
|
|
346
347
|
if (aCustomData.length > 0) {
|
|
347
348
|
mSettings.customData = aCustomData;
|