@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
|
@@ -13,7 +13,7 @@ sap.ui.define([
|
|
|
13
13
|
|
|
14
14
|
return {
|
|
15
15
|
/**
|
|
16
|
-
* Creates a cache that requests the
|
|
16
|
+
* Creates a cache that requests the minimum and maximum values together with the first
|
|
17
17
|
* request. Subsequent requests remain unchanged.
|
|
18
18
|
*
|
|
19
19
|
* @param {sap.ui.model.odata.v4.lib._Requestor} oRequestor
|
|
@@ -860,17 +860,13 @@ sap.ui.define([
|
|
|
860
860
|
*
|
|
861
861
|
* @param {string} sMetaPath
|
|
862
862
|
* The meta path, e.g. "/SalesOrderList/SO_2_BP"
|
|
863
|
-
* @param {boolean} [bAsName]
|
|
864
|
-
* If <code>true</code>, the name of the type is delivered instead of the type itself. This
|
|
865
|
-
* must be used when asking for a property type to avoid that the function logs an error
|
|
866
|
-
* because there are no objects for primitive types like "Edm.Stream".
|
|
867
863
|
* @returns {sap.ui.base.SyncPromise}
|
|
868
|
-
* A promise that is resolved with the type at the given path
|
|
864
|
+
* A promise that is resolved with the type at the given path.
|
|
869
865
|
*
|
|
870
866
|
* @private
|
|
871
867
|
*/
|
|
872
|
-
_Requestor.prototype.fetchTypeForPath = function (sMetaPath
|
|
873
|
-
return this.oModelInterface.fetchMetadata(sMetaPath +
|
|
868
|
+
_Requestor.prototype.fetchTypeForPath = function (sMetaPath) {
|
|
869
|
+
return this.oModelInterface.fetchMetadata(sMetaPath + "/");
|
|
874
870
|
};
|
|
875
871
|
|
|
876
872
|
/**
|
|
@@ -228,7 +228,7 @@ sap.ui.define([
|
|
|
228
228
|
*
|
|
229
229
|
* @extends sap.ui.model.Model
|
|
230
230
|
* @public
|
|
231
|
-
* @version 1.
|
|
231
|
+
* @version 1.103.0
|
|
232
232
|
*/
|
|
233
233
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
234
234
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.103.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.model.CompositeType
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.103.0
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.103.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.103.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @extends sap.ui.model.SimpleType
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.103.0
|
|
28
28
|
*
|
|
29
29
|
* @public
|
|
30
30
|
* @param {object} [oFormatOptions] formatting options. Supports the same options as {@link sap.ui.core.format.FileSizeFormat.getInstance FileSizeFormat.getInstance}
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.103.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.103.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.103.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.103.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -76,6 +76,8 @@ sap.ui.define(['sap/base/Log'], function(Log) {
|
|
|
76
76
|
var bOk = false;
|
|
77
77
|
var bTrue = true;
|
|
78
78
|
do {
|
|
79
|
+
// Accessing a property on the window to check whether we are within the same origin.
|
|
80
|
+
// In cross origin scenarios this will cause an exception which will be handled below.
|
|
79
81
|
var test = oParentWindow.document.domain;
|
|
80
82
|
if (oParentWindow == FrameOptions.__top) {
|
|
81
83
|
if (test != undefined) {
|
|
@@ -85,12 +87,12 @@ sap.ui.define(['sap/base/Log'], function(Log) {
|
|
|
85
87
|
}
|
|
86
88
|
oParentWindow = oParentWindow.parent;
|
|
87
89
|
// eslint-disable-next-line no-unmodified-loop-condition
|
|
88
|
-
} while (bTrue);
|
|
90
|
+
} while (bTrue);
|
|
89
91
|
if (bOk) {
|
|
90
92
|
this._applyState(true, true);
|
|
91
93
|
}
|
|
92
94
|
} catch (e) {
|
|
93
|
-
// access to the top window is not possible
|
|
95
|
+
// access to the top window (oParentWindow.document.domain) is not possible
|
|
94
96
|
this._sendRequireMessage();
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -1123,7 +1123,7 @@ sap.ui.define(
|
|
|
1123
1123
|
* Creates a matcher function that returns an aggregation element of a control at a given index.
|
|
1124
1124
|
* @param {string} sAggregationName the name of the aggregation that is used for matching
|
|
1125
1125
|
* @param {int} iIndex the index within the aggregation
|
|
1126
|
-
* @returns {function} the matcher function returns the item at a certain index in the aggregation or
|
|
1126
|
+
* @returns {function} the matcher function returns the item at a certain index in the aggregation or <code>undefined</code> if index not in range
|
|
1127
1127
|
* @public
|
|
1128
1128
|
* @static
|
|
1129
1129
|
*/
|
|
@@ -64,8 +64,8 @@ sap.ui.define([
|
|
|
64
64
|
* Returns the view with a specific name. The result should be a unique view.
|
|
65
65
|
* If there are multiple visible views with that name, none will be returned.
|
|
66
66
|
*
|
|
67
|
-
* @param {string} sViewName
|
|
68
|
-
* @returns {sap.ui.core.mvc.View} or undefined
|
|
67
|
+
* @param {string} sViewName Name of the view
|
|
68
|
+
* @returns {sap.ui.core.mvc.View|undefined} Unique view or <code>undefined</code>
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
getView: function (sViewName) {
|
|
@@ -489,7 +489,7 @@ sap.ui.define([
|
|
|
489
489
|
* @param {object} oOptions a map of match conditions. Must contain an id property
|
|
490
490
|
* @param {string|string[]} [oOptions.id] required - ID to match. Can be string, regex or array
|
|
491
491
|
* @param {string|function} [oOptions.controlType] optional - control type to match
|
|
492
|
-
* @returns {sap.ui.core.Element|sap.ui.core.Element[]} all matching controls
|
|
492
|
+
* @returns {sap.ui.core.Element|sap.ui.core.Element[]|null} all matching controls
|
|
493
493
|
* <ul>
|
|
494
494
|
* <li>if a oOptions.id is a string, will return the single matching control or null if no controls match</li>
|
|
495
495
|
* <li>otherwise, will return an array of matching controls, or an empty array, if no controls match</li>
|
|
@@ -118,7 +118,7 @@ sap.ui.define([
|
|
|
118
118
|
* Retrieves the property value of a control
|
|
119
119
|
* @param {sap.ui.core.Control} oControl
|
|
120
120
|
* @param {string} sProperty The property to look for
|
|
121
|
-
* @returns {object} The control value for the property or null if no such property is defined
|
|
121
|
+
* @returns {object|null} The control value for the property or null if no such property is defined
|
|
122
122
|
* @private
|
|
123
123
|
*/
|
|
124
124
|
_ControlFinder._getControlProperty = function (oControl, sProperty) {
|
|
@@ -128,9 +128,10 @@ sap.ui.define([
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Retrieves the ID suffix of a DOM element
|
|
132
|
-
* @param {
|
|
133
|
-
* @
|
|
131
|
+
* Retrieves the ID suffix of a DOM element that is part of the given UI5 control
|
|
132
|
+
* @param {Element} oElement DOM element
|
|
133
|
+
* @param {sap.ui.core.Control} oControl UI5 control
|
|
134
|
+
* @returns {string|false} ID suffix or false if the suffix can't be determined
|
|
134
135
|
* @private
|
|
135
136
|
*/
|
|
136
137
|
_ControlFinder._getDomElementIDSuffix = function (oElement, oControl) {
|
|
@@ -26,11 +26,11 @@ sap.ui.define([
|
|
|
26
26
|
* [mSettings] Optional object with initial settings for the new instance
|
|
27
27
|
* @extends sap.ui.test.actions.Action
|
|
28
28
|
* @public
|
|
29
|
-
* @
|
|
29
|
+
* @alias sap.ui.test.actions.Drag
|
|
30
30
|
* @author SAP SE
|
|
31
31
|
* @since 1.76
|
|
32
32
|
*/
|
|
33
|
-
var Drag = Action.extend("sap.ui.test.actions.Drag", {
|
|
33
|
+
var Drag = Action.extend("sap.ui.test.actions.Drag", /** @lends sap.ui.test.actions.Drag.prototype */ {
|
|
34
34
|
|
|
35
35
|
metadata : {
|
|
36
36
|
publicMethods : [ "executeOn" ]
|
|
@@ -33,11 +33,11 @@ sap.ui.define([
|
|
|
33
33
|
* [mSettings] Optional object with initial settings for the new instance
|
|
34
34
|
* @extends sap.ui.test.actions.Action
|
|
35
35
|
* @public
|
|
36
|
-
* @
|
|
36
|
+
* @alias sap.ui.test.actions.Drop
|
|
37
37
|
* @author SAP SE
|
|
38
38
|
* @since 1.76
|
|
39
39
|
*/
|
|
40
|
-
var Drop = Action.extend("sap.ui.test.actions.Drop", {
|
|
40
|
+
var Drop = Action.extend("sap.ui.test.actions.Drop", /** @lends sap.ui.test.actions.Drop.prototype */ {
|
|
41
41
|
|
|
42
42
|
metadata : {
|
|
43
43
|
properties: {
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* [mSettings] Optional object with initial settings for the new instance
|
|
32
32
|
* @extends sap.ui.test.actions.Action
|
|
33
33
|
* @public
|
|
34
|
-
* @
|
|
34
|
+
* @alias sap.ui.test.actions.EnterText
|
|
35
35
|
* @author SAP SE
|
|
36
36
|
* @since 1.34
|
|
37
37
|
*/
|
|
@@ -161,6 +161,9 @@ sap.ui.define([
|
|
|
161
161
|
* A map of ID suffixes for controls that require a special DOM reference for
|
|
162
162
|
* <code>EnterText</code> interaction.
|
|
163
163
|
*
|
|
164
|
+
* You can specify an ID suffix for specific controls in this map.
|
|
165
|
+
* The enter text action will be triggered on the DOM element with the specified suffix.
|
|
166
|
+
*
|
|
164
167
|
* Here is a sublist of supported controls and their <code>EnterText</code> control adapter:
|
|
165
168
|
* <ul>
|
|
166
169
|
* <li>sap.m.StepInput - internal Input</li>
|
|
@@ -179,8 +182,8 @@ sap.ui.define([
|
|
|
179
182
|
* </code>
|
|
180
183
|
* </pre>
|
|
181
184
|
*
|
|
182
|
-
* It contains two input tags in its
|
|
183
|
-
* When you render your control it creates the following
|
|
185
|
+
* It contains two input tags in its DOM.
|
|
186
|
+
* When you render your control it creates the following DOM:
|
|
184
187
|
*
|
|
185
188
|
*
|
|
186
189
|
* <pre>
|
|
@@ -200,17 +203,14 @@ sap.ui.define([
|
|
|
200
203
|
*
|
|
201
204
|
* // Example usage
|
|
202
205
|
* new EnterText(); // executes on second Input since it is set as default
|
|
203
|
-
* new EnterText({ idSuffix: "firstInput"}); // executes on the first input has to be the same as the last part of the
|
|
206
|
+
* new EnterText({ idSuffix: "firstInput"}); // executes on the first input has to be the same as the last part of the ID in the DOM
|
|
204
207
|
* </code>
|
|
205
208
|
* </pre>
|
|
206
209
|
*
|
|
207
210
|
*
|
|
208
211
|
* @public
|
|
209
212
|
* @static
|
|
210
|
-
* @
|
|
211
|
-
* You can specify an Id suffix for specific controls in this map.
|
|
212
|
-
* The enter text action will be triggered on the DOM element with the specified suffix
|
|
213
|
-
* @type map
|
|
213
|
+
* @type Object<string,(string|function(sap.ui.core.Control):string)>
|
|
214
214
|
*/
|
|
215
215
|
EnterText.controlAdapters = {};
|
|
216
216
|
EnterText.controlAdapters["sap.m.StepInput"] = "input-inner"; // focusDomRef: <input>
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* [mSettings] Optional object with initial settings for the new instance
|
|
36
36
|
* @extends sap.ui.test.actions.Action
|
|
37
37
|
* @public
|
|
38
|
-
* @
|
|
38
|
+
* @alias sap.ui.test.actions.Press
|
|
39
39
|
* @author SAP SE
|
|
40
40
|
* @since 1.34
|
|
41
41
|
*/
|
|
@@ -159,6 +159,9 @@ sap.ui.define([
|
|
|
159
159
|
* A map of ID suffixes for controls that require a special DOM reference for
|
|
160
160
|
* <code>Press</code> interaction.
|
|
161
161
|
*
|
|
162
|
+
* You can specify an ID suffix for specific controls in this map.
|
|
163
|
+
* The press action will be triggered on the DOM element with the specified suffix.
|
|
164
|
+
*
|
|
162
165
|
* Here is a sublist of supported controls and their <code>Press</code> control adapter:
|
|
163
166
|
* <ul>
|
|
164
167
|
* <li>sap.m.ComboBox - Arrow button</li>
|
|
@@ -215,10 +218,7 @@ sap.ui.define([
|
|
|
215
218
|
*
|
|
216
219
|
* @public
|
|
217
220
|
* @static
|
|
218
|
-
* @
|
|
219
|
-
* You can specify an Id suffix for specific controls in this map.
|
|
220
|
-
* The press action will be triggered on the DOM element with the specified suffix
|
|
221
|
-
* @type map
|
|
221
|
+
* @type Object<string,(string|function(sap.ui.core.Control):string)>
|
|
222
222
|
*/
|
|
223
223
|
Press.controlAdapters = {};
|
|
224
224
|
Press.controlAdapters["sap.m.Input"] = "vhi"; // focusDomRef: <input>
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* [mSettings] Optional object with initial settings for the new instance
|
|
24
24
|
* @extends sap.ui.test.actions.Action
|
|
25
25
|
* @public
|
|
26
|
-
* @
|
|
26
|
+
* @alias sap.ui.test.actions.Scroll
|
|
27
27
|
* @author SAP SE
|
|
28
28
|
* @since 1.90
|
|
29
29
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* IMPORTANT: This is a private module, its API must not be used and is subject to change.
|
|
8
8
|
* Code other than the OpenUI5 libraries must not introduce dependencies to this module.
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define(['sap/ui/Device', 'sap/base/Log',
|
|
10
|
+
sap.ui.define(['sap/ui/Device', 'sap/base/Log', 'sap/base/util/extend', 'sap/ui/dom/_ready'], function(Device, Log, extend, _ready) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -20,6 +20,25 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
20
20
|
|
|
21
21
|
var _bInitTriggered = false;
|
|
22
22
|
|
|
23
|
+
function addElementToHead(sTag, mAttributes) {
|
|
24
|
+
mAttributes = mAttributes || {};
|
|
25
|
+
|
|
26
|
+
var oTag = document.createElement(sTag);
|
|
27
|
+
for (var key in mAttributes) {
|
|
28
|
+
if (mAttributes[key]) {
|
|
29
|
+
oTag.setAttribute(key, mAttributes[key]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
document.head.appendChild(oTag);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function removeFromHead(sSelector) {
|
|
36
|
+
var aElements = document.head.querySelectorAll(sSelector);
|
|
37
|
+
for (var i = 0, l = aElements.length; i < l; i++) {
|
|
38
|
+
aElements[i].remove(aElements[i]);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
23
42
|
/**
|
|
24
43
|
* Does some basic modifications to the HTML page that make it more suitable for mobile apps.
|
|
25
44
|
* Only the first call to this method is executed, subsequent calls are ignored. Note that this method is also
|
|
@@ -72,12 +91,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
72
91
|
* @public
|
|
73
92
|
*/
|
|
74
93
|
Mobile.init = function(options) {
|
|
75
|
-
var $head = jQuery("head");
|
|
76
|
-
|
|
77
94
|
if (!_bInitTriggered) { // only one initialization per HTML page
|
|
78
95
|
_bInitTriggered = true;
|
|
79
96
|
|
|
80
|
-
options =
|
|
97
|
+
options = extend({}, { // merge in the default values
|
|
81
98
|
viewport: true,
|
|
82
99
|
statusBar: "default",
|
|
83
100
|
hideBrowser: true,
|
|
@@ -91,10 +108,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
91
108
|
// en-/disable automatic link generation for phone numbers
|
|
92
109
|
if (options.preventPhoneNumberDetection) {
|
|
93
110
|
// iOS specific meta tag
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
111
|
+
addElementToHead("meta", {
|
|
112
|
+
name: "format-detection",
|
|
113
|
+
content: "telephone=no"
|
|
114
|
+
});// this only works for all DOM created afterwards
|
|
98
115
|
}
|
|
99
116
|
|
|
100
117
|
// initialize viewport
|
|
@@ -121,7 +138,10 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
121
138
|
sMeta += ", maximum-scale=1.0, user-scalable=no";
|
|
122
139
|
}
|
|
123
140
|
|
|
124
|
-
|
|
141
|
+
addElementToHead("meta", {
|
|
142
|
+
name: "viewport",
|
|
143
|
+
content: sMeta
|
|
144
|
+
});
|
|
125
145
|
|
|
126
146
|
// Update Device API resize info, which is necessary in some scenarios after setting the viewport info
|
|
127
147
|
if ((iInnerHeightBefore !== window.innerHeight || iInnerWidthBefore !== window.innerWidth) && Device.resize._update){
|
|
@@ -130,13 +150,13 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
130
150
|
}
|
|
131
151
|
|
|
132
152
|
if (options.useFullScreenHeight) {
|
|
133
|
-
|
|
153
|
+
_ready().then(function() {
|
|
134
154
|
document.documentElement.style.height = "100%"; // set html root tag to 100% height
|
|
135
155
|
});
|
|
136
156
|
}
|
|
137
157
|
|
|
138
158
|
if (options.preventScroll && (Device.os.ios || (Device.os.mac && Device.browser.mobile))) {
|
|
139
|
-
|
|
159
|
+
_ready().then(function() {
|
|
140
160
|
document.documentElement.style.position = "fixed";
|
|
141
161
|
document.documentElement.style.overflow = "hidden";
|
|
142
162
|
document.documentElement.style.height = "100%";
|
|
@@ -155,7 +175,7 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
155
175
|
favicon: options.homeIcon
|
|
156
176
|
};
|
|
157
177
|
} else {
|
|
158
|
-
oIcons =
|
|
178
|
+
oIcons = Object.assign({}, options.homeIcon);
|
|
159
179
|
oIcons.phone = options.homeIcon.phone || options.homeIcon.icon || oIcons.favicon;
|
|
160
180
|
oIcons.favicon = oIcons.favicon || options.homeIcon.icon || options.homeIcon.phone;
|
|
161
181
|
oIcons.icon = undefined;
|
|
@@ -226,8 +246,7 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
226
246
|
return;
|
|
227
247
|
}
|
|
228
248
|
|
|
229
|
-
var
|
|
230
|
-
precomposed = oIcons.precomposed ? "-precomposed" : "",
|
|
249
|
+
var precomposed = oIcons.precomposed ? "-precomposed" : "",
|
|
231
250
|
getBestFallback = function(res) {
|
|
232
251
|
return oIcons[res] || oIcons['tablet@2'] || oIcons['phone@2'] || oIcons['phone'] || oIcons['tablet']; // fallback logic
|
|
233
252
|
},
|
|
@@ -241,30 +260,31 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
241
260
|
// desktop icon
|
|
242
261
|
if (oIcons["favicon"]) {
|
|
243
262
|
// remove any other favicons
|
|
244
|
-
|
|
245
|
-
$fav.each(function() {
|
|
246
|
-
if (this.rel === "icon") {
|
|
247
|
-
jQuery(this).remove();
|
|
248
|
-
}
|
|
249
|
-
});
|
|
263
|
+
removeFromHead("link[rel=icon]");
|
|
250
264
|
|
|
251
265
|
// create favicon
|
|
252
|
-
|
|
266
|
+
addElementToHead("link", {
|
|
267
|
+
rel: "icon",
|
|
268
|
+
href: oIcons["favicon"]
|
|
269
|
+
});
|
|
253
270
|
}
|
|
254
271
|
|
|
255
272
|
// mobile home screen icons
|
|
256
273
|
if (getBestFallback("phone")) {
|
|
257
274
|
|
|
258
275
|
// if any home icon is given remove old ones
|
|
259
|
-
|
|
260
|
-
|
|
276
|
+
removeFromHead("[rel=apple-touch-icon]");
|
|
277
|
+
removeFromHead("[rel=apple-touch-icon-precomposed]");
|
|
261
278
|
}
|
|
262
279
|
|
|
263
280
|
for (var platform in mSizes) {
|
|
264
281
|
oIcons[platform] = oIcons[platform] || getBestFallback(platform);
|
|
265
282
|
if (oIcons[platform]) {
|
|
266
|
-
|
|
267
|
-
|
|
283
|
+
addElementToHead("link", {
|
|
284
|
+
rel: "apple-touch-icon" + precomposed,
|
|
285
|
+
href: oIcons[platform],
|
|
286
|
+
sizes: mSizes[platform]
|
|
287
|
+
});
|
|
268
288
|
}
|
|
269
289
|
}
|
|
270
290
|
};
|
|
@@ -293,22 +313,28 @@ sap.ui.define(['sap/ui/Device', 'sap/base/Log', "sap/ui/thirdparty/jquery"], fun
|
|
|
293
313
|
return;
|
|
294
314
|
}
|
|
295
315
|
|
|
296
|
-
var
|
|
297
|
-
aPrefixes = ["", "apple"],
|
|
316
|
+
var aPrefixes = ["", "apple"],
|
|
298
317
|
sNameBase = "mobile-web-app-capable",
|
|
299
318
|
sContent = bValue ? "yes" : "no",
|
|
300
|
-
i, sName,
|
|
319
|
+
i, sName, oWebAppMetaTag;
|
|
301
320
|
|
|
302
321
|
for (i = 0; i < aPrefixes.length; i++) {
|
|
303
322
|
sName = aPrefixes[i] ? (aPrefixes[i] + "-" + sNameBase) : sNameBase;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
323
|
+
oWebAppMetaTag = document.head.querySelector('meta[name="' + sName + '"]');
|
|
324
|
+
|
|
325
|
+
if (oWebAppMetaTag) {
|
|
326
|
+
oWebAppMetaTag.setAttribute("content", sContent);
|
|
307
327
|
} else {
|
|
308
|
-
|
|
328
|
+
addElementToHead("meta", {
|
|
329
|
+
name: sName,
|
|
330
|
+
content: sContent
|
|
331
|
+
});
|
|
309
332
|
if (aPrefixes[i] === "apple") {
|
|
310
333
|
// iOS specific meta tag should be added only first time the corresponding apple-mobile-web-app-capable is added
|
|
311
|
-
|
|
334
|
+
addElementToHead("meta", {
|
|
335
|
+
name: "apple-mobile-web-app-status-bar-style",
|
|
336
|
+
content: sAppleStatusBarStyle ? sAppleStatusBarStyle : 'default'
|
|
337
|
+
});
|
|
312
338
|
}
|
|
313
339
|
}
|
|
314
340
|
}
|
|
@@ -142,7 +142,7 @@ sap.ui.define(["sap/base/assert"], function (assert) {
|
|
|
142
142
|
* Retrieves data item for a specific key.
|
|
143
143
|
*
|
|
144
144
|
* @param {string} sKey key to retrieve
|
|
145
|
-
* @
|
|
145
|
+
* @returns {object|null} key's value or <code>null</code>
|
|
146
146
|
* @public
|
|
147
147
|
* @function
|
|
148
148
|
* @name module:sap/ui/util/Storage#get
|
|
@@ -250,7 +250,7 @@ sap.ui.define(["sap/base/assert"], function (assert) {
|
|
|
250
250
|
*
|
|
251
251
|
* @enum {string}
|
|
252
252
|
* @public
|
|
253
|
-
* @version 1.
|
|
253
|
+
* @version 1.103.0
|
|
254
254
|
*/
|
|
255
255
|
Storage.Type = {
|
|
256
256
|
/**
|
|
@@ -14,7 +14,7 @@ sap.ui.define([], function() {
|
|
|
14
14
|
*
|
|
15
15
|
* @param {sap.ui.core.URI} sUrl URL of a document that should be loaded in the new window
|
|
16
16
|
* @param {string} sWindowName Name of the new window
|
|
17
|
-
* @returns {Window|null} The newly returned window object or null
|
|
17
|
+
* @returns {Window|null} The newly returned window object or <code>null</code>
|
|
18
18
|
* @private
|
|
19
19
|
* @ui5-restricted
|
|
20
20
|
* @alias module:sap/ui/util/openWindow
|