@openui5/sap.ui.core 1.111.2 → 1.112.2
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/.dtsgenrc +38 -0
- package/package.json +1 -1
- package/src/jquery.sap.global.js +4 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/util/deepClone.js +4 -0
- 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/VersionInfo.js +14 -0
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +1 -1
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +3 -3
- 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 +14 -2
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +17 -8
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +40 -28
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/_IconRegistry.js +19 -4
- package/src/sap/ui/core/date/Islamic.js +1 -0
- package/src/sap/ui/core/date/UI5Date.js +25 -5
- package/src/sap/ui/core/date/UniversalDate.js +2 -0
- package/src/sap/ui/core/date/UniversalDateUtils.js +1 -2
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/DateFormat.js +13 -15
- package/src/sap/ui/core/format/NumberFormat.js +6 -4
- package/src/sap/ui/core/format/TimezoneUtil.js +21 -17
- package/src/sap/ui/core/hyphenation/Hyphenation.js +3 -3
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/mvc/Controller.js +1 -1
- package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
- package/src/sap/ui/core/mvc/ControllerMetadata.js +4 -3
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +13 -9
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.ttf +0 -0
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/ThemeManager.js +11 -2
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +3 -3
- 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 +2 -2
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/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 +4 -3
- 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/ODataUtils.js +5 -2
- package/src/sap/ui/model/odata/_ODataMetaModelUtils.js +62 -24
- 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 +3 -2
- package/src/sap/ui/model/odata/type/DateTimeOffset.js +1 -1
- package/src/sap/ui/model/odata/type/DateTimeWithTimezone.js +2 -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 +2 -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 +2 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +4 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +127 -65
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +50 -14
- package/src/sap/ui/model/odata/v4/ODataBinding.js +83 -14
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +2 -4
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +89 -12
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +3 -2
- package/src/sap/ui/model/odata/v4/ODataModel.js +5 -4
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +14 -3
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +9 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +63 -62
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +32 -7
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +212 -15
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +71 -29
- 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 +4 -3
- package/src/sap/ui/model/type/DateInterval.js +9 -8
- 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/QUnitUtils.js +6 -4
- 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/Opa5.js +4 -4
- package/src/sap/ui/test/generic/TestBase.js +14 -4
- package/src/sap/ui/thirdparty/jquery-mobile-custom.js +10 -4
- package/src/sap/ui/thirdparty/qunit-2.js +4 -1
- package/src/sap/ui/thirdparty/qunit.js +41 -11
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* The ScrollBar control can be used for virtual scrolling of a certain area.
|
|
45
45
|
* This means: to simulate a very large scrollable area when technically the area is small and the control takes care of displaying the respective part only. E.g. a Table control can take care of only rendering the currently visible rows and use this ScrollBar control to make the user think he actually scrolls through a long list.
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.112.2
|
|
48
48
|
*
|
|
49
49
|
* @public
|
|
50
50
|
* @deprecated as of version 1.56
|
package/src/sap/ui/core/Title.js
CHANGED
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class
|
|
31
31
|
* Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.112.2
|
|
34
34
|
*
|
|
35
35
|
* @public
|
|
36
36
|
* @alias sap.ui.core.TooltipBase
|
|
@@ -183,7 +183,7 @@ sap.ui.define([
|
|
|
183
183
|
*
|
|
184
184
|
* @extends sap.ui.base.ManagedObject
|
|
185
185
|
* @author SAP SE
|
|
186
|
-
* @version 1.
|
|
186
|
+
* @version 1.112.2
|
|
187
187
|
* @param {object} [oRootNode] reference to the DOM element that should be 'hosting' the UI Area.
|
|
188
188
|
* @public
|
|
189
189
|
* @alias sap.ui.core.UIArea
|
|
@@ -18,7 +18,7 @@ sap.ui.define(['./ComponentMetadata', 'sap/ui/core/mvc/ViewType'],
|
|
|
18
18
|
* @experimental Since 1.15.1. The Component concept is still under construction, so some implementation details can be changed in future.
|
|
19
19
|
* @class
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.112.2
|
|
22
22
|
* @since 1.15.1
|
|
23
23
|
* @alias sap.ui.core.UIComponentMetadata
|
|
24
24
|
* @extends sap.ui.core.ComponentMetadata
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['./LayoutData', './library'],
|
|
|
20
20
|
* @class
|
|
21
21
|
* Allows to add multiple LayoutData to one control in case that an easy switch of layouts (e.g. in a Form) is needed.
|
|
22
22
|
* @extends sap.ui.core.LayoutData
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.112.2
|
|
24
24
|
*
|
|
25
25
|
* @public
|
|
26
26
|
* @since 1.9.2
|
|
@@ -146,7 +146,7 @@ sap.ui.define([
|
|
|
146
146
|
* @extends sap.ui.core.Control
|
|
147
147
|
*
|
|
148
148
|
* @author SAP SE
|
|
149
|
-
* @version 1.
|
|
149
|
+
* @version 1.112.2
|
|
150
150
|
* @since 1.56.0
|
|
151
151
|
* @alias sap.ui.core.XMLComposite
|
|
152
152
|
* @see {@link topic:b83a4dcb7d0e46969027345b8d32fd44 XML Composite Controls}
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @param {object} oClassInfo static info to construct the metadata from
|
|
31
31
|
*
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.112.2
|
|
34
34
|
* @since 1.50.0
|
|
35
35
|
* @alias sap.ui.core.XMLCompositeMetadata
|
|
36
36
|
* @extends sap.ui.core.ElementMetadata
|
|
@@ -35,7 +35,8 @@ sap.ui.define([
|
|
|
35
35
|
fontFamily: SAP_ICON_FONT_FAMILY
|
|
36
36
|
},
|
|
37
37
|
metadataLoaded: true,
|
|
38
|
-
inserted: true
|
|
38
|
+
inserted: true,
|
|
39
|
+
deprecatedNames: new Set(["soccor", "clinical-tast-tracker"])
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
|
|
@@ -734,7 +735,13 @@ sap.ui.define([
|
|
|
734
735
|
'locate-me-2': 0xe302,
|
|
735
736
|
'map-fill': 0xe303,
|
|
736
737
|
'cloud-check': 0x1e304,
|
|
737
|
-
'enablement': 0x1e305
|
|
738
|
+
'enablement': 0x1e305,
|
|
739
|
+
'biometric-thumb': 0xe306,
|
|
740
|
+
'biometric-face': 0xe307,
|
|
741
|
+
'people-connected': 0xe308,
|
|
742
|
+
'light-mode': 0xe309,
|
|
743
|
+
'dark-mode': 0xe30a,
|
|
744
|
+
'select-appointments': 0x1e30b
|
|
738
745
|
}
|
|
739
746
|
};
|
|
740
747
|
|
|
@@ -976,8 +983,16 @@ sap.ui.define([
|
|
|
976
983
|
* See IconPool.getIconNames
|
|
977
984
|
*/
|
|
978
985
|
_IconRegistry.getIconNames = function (collectionName) {
|
|
979
|
-
var collection = mRegistry[collectionName]
|
|
980
|
-
|
|
986
|
+
var collection = mRegistry[collectionName],
|
|
987
|
+
deprecatedNames = mFontRegistry[collectionName] && mFontRegistry[collectionName].deprecatedNames,
|
|
988
|
+
res = [];
|
|
989
|
+
|
|
990
|
+
for (var name in collection) {
|
|
991
|
+
if (collection.hasOwnProperty(name) && (!deprecatedNames || !deprecatedNames.has(name))) {
|
|
992
|
+
res.push(name);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
return res;
|
|
981
996
|
};
|
|
982
997
|
|
|
983
998
|
/*
|
|
@@ -226,6 +226,7 @@ sap.ui.define(['./UniversalDate', '../CalendarType', 'sap/base/Log', './_Calenda
|
|
|
226
226
|
oCustomizationJSON.forEach(function (oEntry) {
|
|
227
227
|
if (oEntry.dateFormat === sDateFormat) {
|
|
228
228
|
var date = parseDate(oEntry.gregDate);
|
|
229
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
229
230
|
var iGregorianDate = new Date(Date.UTC(date.year, date.month - 1, date.day));
|
|
230
231
|
var iMillis = iGregorianDate.getTime();
|
|
231
232
|
var iIslamicMonthStartDays = (iMillis - ISLAMIC_MILLIS) / ONE_DAY;
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @hideconstructor
|
|
58
58
|
* @public
|
|
59
59
|
* @since 1.111.0
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.112.2
|
|
61
61
|
*/
|
|
62
62
|
function UI5Date(vDateParts, sTimezoneID) {
|
|
63
63
|
var oDateInstance = UI5Date._createDateInstance(vDateParts);
|
|
@@ -191,6 +191,17 @@ sap.ui.define([
|
|
|
191
191
|
return this.setTime(iNewTimestamp);
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Clones this UI5Date instance.
|
|
196
|
+
*
|
|
197
|
+
* @returns {Date|module:sap/ui/core/date/UI5Date}
|
|
198
|
+
*
|
|
199
|
+
* @private
|
|
200
|
+
*/
|
|
201
|
+
UI5Date.prototype.clone = function () {
|
|
202
|
+
return UI5Date.getInstance(this);
|
|
203
|
+
};
|
|
204
|
+
|
|
194
205
|
/**
|
|
195
206
|
* Returns the day of the month of this date instance according to the configured time zone,
|
|
196
207
|
* see <code>Date.prototype.getDate</code>.
|
|
@@ -321,7 +332,7 @@ sap.ui.define([
|
|
|
321
332
|
* @returns {int}
|
|
322
333
|
* The year of this date instance minus 1900 according to the configured time zone
|
|
323
334
|
*
|
|
324
|
-
* @deprecated
|
|
335
|
+
* @deprecated As of version 1.111 as it is deprecated in the base class JavaScript Date; use
|
|
325
336
|
* {@link #getFullYear} instead
|
|
326
337
|
* @public
|
|
327
338
|
*/
|
|
@@ -470,7 +481,7 @@ sap.ui.define([
|
|
|
470
481
|
* The milliseconds of the new timestamp based on the UNIX epoch, or <code>NaN</code> if the
|
|
471
482
|
* timestamp could not be updated
|
|
472
483
|
*
|
|
473
|
-
* @deprecated
|
|
484
|
+
* @deprecated As of version 1.111 as it is deprecated in the base class JavaScript Date; use
|
|
474
485
|
* {@link #setFullYear} instead
|
|
475
486
|
* @public
|
|
476
487
|
*/
|
|
@@ -878,8 +889,6 @@ sap.ui.define([
|
|
|
878
889
|
[
|
|
879
890
|
"getTime", "getUTCDate", "getUTCDay", "getUTCFullYear", "getUTCHours", "getUTCMilliseconds",
|
|
880
891
|
"getUTCMinutes", "getUTCMonth", "getUTCSeconds",
|
|
881
|
-
"setUTCDate", "setUTCFullYear", "setUTCHours", "setUTCMilliseconds", "setUTCMinutes",
|
|
882
|
-
"setUTCMonth", "setUTCSeconds",
|
|
883
892
|
"toGMTString", "toISOString", "toJSON", "toUTCString", "valueOf"
|
|
884
893
|
].forEach(function (sMethod) {
|
|
885
894
|
UI5Date.prototype[sMethod] = function () {
|
|
@@ -894,6 +903,17 @@ sap.ui.define([
|
|
|
894
903
|
};
|
|
895
904
|
});
|
|
896
905
|
|
|
906
|
+
// before delegating to the inner date instance clear the cached date parts
|
|
907
|
+
[
|
|
908
|
+
"setUTCDate", "setUTCFullYear", "setUTCHours", "setUTCMilliseconds", "setUTCMinutes",
|
|
909
|
+
"setUTCMonth", "setUTCSeconds"
|
|
910
|
+
].forEach(function (sMethod) {
|
|
911
|
+
UI5Date.prototype[sMethod] = function () {
|
|
912
|
+
this.oDateParts = undefined;
|
|
913
|
+
return this.oDate[sMethod].apply(this.oDate, arguments);
|
|
914
|
+
};
|
|
915
|
+
});
|
|
916
|
+
|
|
897
917
|
/**
|
|
898
918
|
* Creates a JavaScript Date instance.
|
|
899
919
|
*
|
|
@@ -1251,6 +1251,7 @@ sap.ui.define([
|
|
|
1251
1251
|
*/
|
|
1252
1252
|
UniversalDate.getEraByDate = function(sCalendarType, iYear, iMonth, iDay) {
|
|
1253
1253
|
var aEras = getEras(sCalendarType),
|
|
1254
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
1254
1255
|
iTimestamp = new Date(0).setUTCFullYear(iYear, iMonth, iDay),
|
|
1255
1256
|
oEra;
|
|
1256
1257
|
for (var i = aEras.length - 1; i >= 0; i--) {
|
|
@@ -1366,6 +1367,7 @@ sap.ui.define([
|
|
|
1366
1367
|
iDay = parseInt(aParts[2]);
|
|
1367
1368
|
}
|
|
1368
1369
|
return {
|
|
1370
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
1369
1371
|
timestamp: new Date(0).setUTCFullYear(iYear, iMonth, iDay),
|
|
1370
1372
|
year: iYear,
|
|
1371
1373
|
month: iMonth,
|
|
@@ -391,9 +391,8 @@ sap.ui.define([
|
|
|
391
391
|
*/
|
|
392
392
|
UniversalDateUtils._getDateFromWeekStartByDayOffset = function (sCalendarWeekNumbering, iDaysToAdd) {
|
|
393
393
|
var sCalendarType = Configuration.getCalendarType(),
|
|
394
|
-
oDate = new Date(),
|
|
395
394
|
oLocale = new Locale(Configuration.getFormatLocale()),
|
|
396
|
-
oUniversalDate =
|
|
395
|
+
oUniversalDate = UniversalDateUtils.createNewUniversalDate(),
|
|
397
396
|
iWeek = oUniversalDate.getWeek().week,
|
|
398
397
|
iYear = oUniversalDate.getWeek().year,
|
|
399
398
|
oFirstDateOfWeek = UniversalDate.getFirstDateOfWeek(sCalendarType, iYear, iWeek, oLocale, sCalendarWeekNumbering);
|
|
@@ -81,7 +81,7 @@ sap.ui.define([
|
|
|
81
81
|
* @param {Element[]} aItemDomRefs Array of DOM references representing the items for the navigation
|
|
82
82
|
* @param {boolean} [bNotInTabChain=false] Whether the selected element should be in the tab chain or not
|
|
83
83
|
*
|
|
84
|
-
* @version 1.
|
|
84
|
+
* @version 1.112.2
|
|
85
85
|
* @alias sap.ui.core.delegate.ItemNavigation
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
@@ -58,7 +58,7 @@ sap.ui.define([
|
|
|
58
58
|
*
|
|
59
59
|
* @protected
|
|
60
60
|
* @alias sap.ui.core.delegate.ScrollEnablement
|
|
61
|
-
* @version 1.
|
|
61
|
+
* @version 1.112.2
|
|
62
62
|
* @author SAP SE
|
|
63
63
|
*/
|
|
64
64
|
var ScrollEnablement = BaseObject.extend("sap.ui.core.delegate.ScrollEnablement", /** @lends sap.ui.core.delegate.ScrollEnablement.prototype */ {
|
|
@@ -1176,7 +1176,7 @@ sap.ui.define([
|
|
|
1176
1176
|
// 2018: 48 = 1948 (diff: 30)
|
|
1177
1177
|
// 2018: 47 = 2047 (diff: 29)
|
|
1178
1178
|
if (sCalendarType !== CalendarType.Japanese && sPart.length <= 2) {
|
|
1179
|
-
var oCurrentDate = UniversalDate.getInstance(
|
|
1179
|
+
var oCurrentDate = UniversalDate.getInstance(UI5Date.getInstance(), sCalendarType),
|
|
1180
1180
|
iCurrentYear = oCurrentDate.getUTCFullYear(),
|
|
1181
1181
|
iCurrentCentury = Math.floor(iCurrentYear / 100),
|
|
1182
1182
|
iYearDiff = iCurrentCentury * 100 + iYear - iCurrentYear;
|
|
@@ -1233,7 +1233,7 @@ sap.ui.define([
|
|
|
1233
1233
|
var iWeekYear = iYear;
|
|
1234
1234
|
// Find the right century for two-digit years
|
|
1235
1235
|
if (sCalendarType !== CalendarType.Japanese && sPart.length <= 2) {
|
|
1236
|
-
var oCurrentDate = UniversalDate.getInstance(
|
|
1236
|
+
var oCurrentDate = UniversalDate.getInstance(UI5Date.getInstance(), sCalendarType),
|
|
1237
1237
|
iCurrentYear = oCurrentDate.getUTCFullYear(),
|
|
1238
1238
|
iCurrentCentury = Math.floor(iCurrentYear / 100),
|
|
1239
1239
|
iYearDiff = iCurrentCentury * 100 + iWeekYear - iCurrentYear;
|
|
@@ -2663,6 +2663,7 @@ sap.ui.define([
|
|
|
2663
2663
|
var oDate,
|
|
2664
2664
|
iYear = typeof oDateValue.year === "number" ? oDateValue.year : 1970;
|
|
2665
2665
|
|
|
2666
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
2666
2667
|
oDate = UniversalDate.getInstance(new Date(0), sCalendarType);
|
|
2667
2668
|
oDate.setUTCEra(oDateValue.era || UniversalDate.getCurrentEra(sCalendarType));
|
|
2668
2669
|
oDate.setUTCFullYear(iYear);
|
|
@@ -3085,9 +3086,10 @@ sap.ui.define([
|
|
|
3085
3086
|
* @private
|
|
3086
3087
|
*/
|
|
3087
3088
|
DateFormat.prototype.formatRelative = function(oJSDate, bUTC, aRange, sTimezone) {
|
|
3088
|
-
var
|
|
3089
|
-
|
|
3090
|
-
|
|
3089
|
+
var oDateUTC, iDiff, iDiffSeconds, sPattern,
|
|
3090
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
3091
|
+
oToday = convertToTimezone(new Date(), sTimezone),
|
|
3092
|
+
sScale = this.oFormatOptions.relativeScale || "day";
|
|
3091
3093
|
|
|
3092
3094
|
iDiffSeconds = (oJSDate.getTime() - oToday.getTime()) / 1000;
|
|
3093
3095
|
if (this.oFormatOptions.relativeScale === "auto") {
|
|
@@ -3101,8 +3103,10 @@ sap.ui.define([
|
|
|
3101
3103
|
|
|
3102
3104
|
// For dates normalize to UTC to avoid issues with summer-/wintertime
|
|
3103
3105
|
if (sScale === "year" || sScale === "month" || sScale === "day") {
|
|
3106
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
3104
3107
|
oToday = new Date(Date.UTC(oToday.getUTCFullYear(), oToday.getUTCMonth(), oToday.getUTCDate()));
|
|
3105
3108
|
|
|
3109
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
3106
3110
|
oDateUTC = new Date(0);
|
|
3107
3111
|
|
|
3108
3112
|
// The Date.UTC function doesn't accept years before 1900 (converts years before 100 into 1900 + years).
|
|
@@ -3216,16 +3220,10 @@ sap.ui.define([
|
|
|
3216
3220
|
* @returns {Date} copy of the date with the modified values
|
|
3217
3221
|
*/
|
|
3218
3222
|
function cutDateFields(oDate, iStartIndex) {
|
|
3219
|
-
var
|
|
3220
|
-
"FullYear",
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
"Hours",
|
|
3224
|
-
"Minutes",
|
|
3225
|
-
"Seconds",
|
|
3226
|
-
"Milliseconds"
|
|
3227
|
-
], sMethodName;
|
|
3228
|
-
var oDateCopy = new Date(oDate.getTime());
|
|
3223
|
+
var sMethodName,
|
|
3224
|
+
aFields = ["FullYear", "Month", "Date", "Hours", "Minutes", "Seconds", "Milliseconds"],
|
|
3225
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
3226
|
+
oDateCopy = new Date(oDate.getTime());
|
|
3229
3227
|
|
|
3230
3228
|
for (var i = iStartIndex; i < aFields.length; i++) {
|
|
3231
3229
|
sMethodName = "setUTC" + aFields[iStartIndex];
|
|
@@ -48,6 +48,8 @@ sap.ui.define([
|
|
|
48
48
|
|
|
49
49
|
var rAllWhiteSpaces = /\s/g,
|
|
50
50
|
rDigit = /\d/,
|
|
51
|
+
// Regex for checking if a number has leading zeros
|
|
52
|
+
rLeadingZeros = /^(-?)0+(\d)/,
|
|
51
53
|
// Not matching Sc (currency symbol) and Z (separator) characters
|
|
52
54
|
// https://www.unicode.org/reports/tr44/#General_Category_Values
|
|
53
55
|
rNotSAndNotZ = /[^\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6\u0020\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,
|
|
@@ -2022,9 +2024,9 @@ sap.ui.define([
|
|
|
2022
2024
|
} else if (typeof vValue === "string") {
|
|
2023
2025
|
if (parseFloat(vValue) === 0 && iStep >= 0) {
|
|
2024
2026
|
// input "00000" should become "0"
|
|
2025
|
-
// input "
|
|
2026
|
-
// in order to keep the precision
|
|
2027
|
-
return
|
|
2027
|
+
// input "000.000" should become "0.000" to keep precision of decimals
|
|
2028
|
+
// input "1e-1337" should remain "1e-1337" in order to keep the precision
|
|
2029
|
+
return vValue.replace(rLeadingZeros, "$1$2");
|
|
2028
2030
|
}
|
|
2029
2031
|
// In case of a negative value the leading minus needs to be cut off before shifting the decimal point.
|
|
2030
2032
|
// Otherwise the minus will affect the positioning by index 1.
|
|
@@ -2073,7 +2075,7 @@ sap.ui.define([
|
|
|
2073
2075
|
sDecimal = vValue.substring(iAfterMovePos);
|
|
2074
2076
|
|
|
2075
2077
|
// remove unnecessary leading zeros
|
|
2076
|
-
sInt = sInt.replace(
|
|
2078
|
+
sInt = sInt.replace(rLeadingZeros, "$1$2");
|
|
2077
2079
|
|
|
2078
2080
|
return sMinus + sInt + (sDecimal ? ("." + sDecimal) : "");
|
|
2079
2081
|
} else {
|
|
@@ -11,7 +11,7 @@ sap.ui.define([], function() {
|
|
|
11
11
|
* Static collection of utility functions to handle time zone related conversions
|
|
12
12
|
*
|
|
13
13
|
* @author SAP SE
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.112.2
|
|
15
15
|
* @namespace
|
|
16
16
|
* @alias sap.ui.core.format.TimezoneUtil
|
|
17
17
|
* @private
|
|
@@ -166,13 +166,16 @@ sap.ui.define([], function() {
|
|
|
166
166
|
* @private
|
|
167
167
|
*/
|
|
168
168
|
TimezoneUtil._getParts = function(oDate, sTargetTimezone) {
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
var sKey, oPart,
|
|
170
|
+
oDateParts = Object.create(null),
|
|
171
|
+
oIntlDate = oIntlDateTimeFormatCache.get(sTargetTimezone),
|
|
172
|
+
// clone the date object before passing it to the Intl API, to ensure that no
|
|
173
|
+
// UniversalDate gets passed to it;
|
|
174
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
175
|
+
oParts = oIntlDate.formatToParts(new Date(oDate.getTime()));
|
|
176
|
+
|
|
177
|
+
for (sKey in oParts) {
|
|
178
|
+
oPart = oParts[sKey];
|
|
176
179
|
if (oPart.type !== "literal") {
|
|
177
180
|
oDateParts[oPart.type] = oPart.value;
|
|
178
181
|
}
|
|
@@ -188,9 +191,10 @@ sap.ui.define([], function() {
|
|
|
188
191
|
* @private
|
|
189
192
|
*/
|
|
190
193
|
TimezoneUtil._getDateFromParts = function(oParts) {
|
|
191
|
-
|
|
194
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
195
|
+
var oDate = new Date(0),
|
|
196
|
+
iUTCYear = parseInt(oParts.year);
|
|
192
197
|
|
|
193
|
-
var iUTCYear = parseInt(oParts.year);
|
|
194
198
|
if (oParts.era === "B") {
|
|
195
199
|
// The JS Date uses astronomical year numbering which supports year zero and negative
|
|
196
200
|
// year numbers.
|
|
@@ -253,13 +257,13 @@ sap.ui.define([], function() {
|
|
|
253
257
|
* @ui5-restricted sap.ui.core.format.DateFormat
|
|
254
258
|
*/
|
|
255
259
|
TimezoneUtil.calculateOffset = function(oDate, sTimezoneSource) {
|
|
256
|
-
var oFirstGuess = this.convertToTimezone(oDate, sTimezoneSource)
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
var oFirstGuess = this.convertToTimezone(oDate, sTimezoneSource),
|
|
261
|
+
iInitialOffset = oDate.getTime() - oFirstGuess.getTime(),
|
|
262
|
+
// to get the correct summer/wintertime (daylight saving time) handling use the source
|
|
263
|
+
// date (apply the diff);
|
|
264
|
+
// no need to use UI5Date.getInstance as only the UTC timestamp is used
|
|
265
|
+
oDateSource = new Date(oDate.getTime() + iInitialOffset),
|
|
266
|
+
oDateTarget = this.convertToTimezone(oDateSource, sTimezoneSource);
|
|
263
267
|
|
|
264
268
|
return (oDateSource.getTime() - oDateTarget.getTime()) / 1000;
|
|
265
269
|
};
|
|
@@ -400,7 +400,7 @@ sap.ui.define([
|
|
|
400
400
|
* @see {@link topic:6322164936f047de941ec522b95d7b70 Hyphenation for Text Controls}
|
|
401
401
|
* @extends sap.ui.base.ManagedObject
|
|
402
402
|
* @author SAP SE
|
|
403
|
-
* @version 1.
|
|
403
|
+
* @version 1.112.2
|
|
404
404
|
* @hideconstructor
|
|
405
405
|
* @public
|
|
406
406
|
* @since 1.60
|
|
@@ -584,8 +584,8 @@ sap.ui.define([
|
|
|
584
584
|
* @public
|
|
585
585
|
*/
|
|
586
586
|
Hyphenation.prototype.isLanguageInitialized = function (sLang) {
|
|
587
|
-
var
|
|
588
|
-
return Object.keys(oHyphenateMethods).indexOf(
|
|
587
|
+
var sLanguage = getLanguage(sLang);
|
|
588
|
+
return Object.keys(oHyphenateMethods).indexOf(sLanguage) != -1;
|
|
589
589
|
};
|
|
590
590
|
|
|
591
591
|
/**
|
|
@@ -25,13 +25,13 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.core
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.112.2
|
|
29
29
|
* @since 0.8
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
32
|
var thisLib = Library.init({
|
|
33
33
|
name: "sap.ui.core",
|
|
34
|
-
version: "1.
|
|
34
|
+
version: "1.112.2",
|
|
35
35
|
designtime: "sap/ui/core/designtime/library.designtime",
|
|
36
36
|
types: [
|
|
37
37
|
|
|
@@ -1539,7 +1539,7 @@ sap.ui.define([
|
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Sort order of a column.
|
|
1541
1541
|
*
|
|
1542
|
-
* @version 1.
|
|
1542
|
+
* @version 1.112.2
|
|
1543
1543
|
* @enum {string}
|
|
1544
1544
|
* @public
|
|
1545
1545
|
* @since 1.61.0
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.base.Object
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.112.2
|
|
39
39
|
*
|
|
40
40
|
* @param {object} [mParameters] a map which contains the following parameter properties:
|
|
41
41
|
* @param {string} [mParameters.id] The message id: will be generated if no id is set
|
|
@@ -103,7 +103,7 @@ sap.ui.define([
|
|
|
103
103
|
getInterface: function() {
|
|
104
104
|
var mMethods = {};
|
|
105
105
|
var oMetadata = this.getMetadata();
|
|
106
|
-
var aPublicMethods = oMetadata.
|
|
106
|
+
var aPublicMethods = oMetadata._aAllPublicMethods;
|
|
107
107
|
|
|
108
108
|
aPublicMethods.forEach(function(sMethod) {
|
|
109
109
|
var fnFunction = this[sMethod];
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
getInterface: function() {
|
|
94
94
|
var mMethods = {};
|
|
95
95
|
var oMetadata = this.getMetadata();
|
|
96
|
-
var aPublicMethods = oMetadata.
|
|
96
|
+
var aPublicMethods = oMetadata._aAllPublicMethods;
|
|
97
97
|
|
|
98
98
|
aPublicMethods.forEach(function(sMethod) {
|
|
99
99
|
var fnFunction = this[sMethod];
|