@openui5/sap.ui.core 1.138.0 → 1.139.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/REUSE.toml +8 -1
- package/THIRDPARTY.txt +73 -67
- package/package.json +2 -2
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +22 -1
- package/src/sap/base/i18n/LanguageFallback.js +18 -2
- package/src/sap/base/i18n/LanguageTag.js +11 -5
- package/src/sap/base/i18n/Localization.js +36 -9
- package/src/sap/base/i18n/ResourceBundle.js +59 -35
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +3 -3
- package/src/sap/ui/base/BindingInfo.js +6 -1
- package/src/sap/ui/base/DataType.js +27 -2
- 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 +49 -12
- 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/base/OwnStatics.js +49 -0
- package/src/sap/ui/core/.library +7 -2
- package/src/sap/ui/core/BlockLayerUtils.js +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +11 -9
- package/src/sap/ui/core/ComponentContainer.js +13 -3
- 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 +1 -1
- package/src/sap/ui/core/Core.js +2 -2
- 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 +10 -4
- 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 +10 -8
- 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 +39 -24
- 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 +7 -4
- 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 +9 -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/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 +6 -2
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +43 -19
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/i18n/interaction_ar.xml +1 -1
- package/src/sap/ui/core/interaction/KeyboardInteractionDisplay.js +84 -38
- 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/messagebundle.properties +58 -28
- package/src/sap/ui/core/messagebundle_cnr.properties +8 -8
- package/src/sap/ui/core/messagebundle_cy.properties +6 -6
- package/src/sap/ui/core/messagebundle_fi.properties +2 -2
- package/src/sap/ui/core/messagebundle_hi.properties +4 -4
- package/src/sap/ui/core/messagebundle_kk.properties +7 -7
- package/src/sap/ui/core/messagebundle_ko.properties +8 -8
- package/src/sap/ui/core/messagebundle_lv.properties +4 -4
- package/src/sap/ui/core/messagebundle_mk.properties +8 -8
- package/src/sap/ui/core/messagebundle_ms.properties +8 -8
- package/src/sap/ui/core/messagebundle_nl.properties +2 -2
- package/src/sap/ui/core/messagebundle_ro.properties +4 -4
- package/src/sap/ui/core/messagebundle_ru.properties +2 -2
- package/src/sap/ui/core/messagebundle_sh.properties +8 -8
- package/src/sap/ui/core/messagebundle_sk.properties +1 -1
- package/src/sap/ui/core/messagebundle_sl.properties +2 -2
- package/src/sap/ui/core/messagebundle_sr.properties +8 -8
- package/src/sap/ui/core/messagebundle_vi.properties +8 -8
- package/src/sap/ui/core/messagebundle_zh_TW.properties +8 -8
- package/src/sap/ui/core/mvc/Controller.js +5 -3
- package/src/sap/ui/core/mvc/HTMLView.js +6 -2
- package/src/sap/ui/core/mvc/JSONView.js +6 -2
- package/src/sap/ui/core/mvc/JSView.js +6 -3
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +63 -20
- package/src/sap/ui/core/mvc/XMLView.js +6 -2
- package/src/sap/ui/core/mvc/_ViewFactory.js +8 -4
- 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 +1 -0
- 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/base.less +20 -20
- package/src/sap/ui/core/themes/base/skeleton.less +3 -3
- package/src/sap/ui/core/theming/ThemeManager.js +7 -3
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.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/findTabbable.js +1 -1
- package/src/sap/ui/model/ClientModel.js +2 -2
- 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/Filter.js +55 -35
- package/src/sap/ui/model/FilterOperator.js +79 -9
- 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/json/JSONPropertyBinding.js +14 -2
- 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 +3 -3
- 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 +17 -11
- package/src/sap/ui/model/odata/v2/ODataModel.js +4 -3
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +10 -2
- package/src/sap/ui/model/odata/v4/Context.js +19 -15
- package/src/sap/ui/model/odata/v4/ODataBinding.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +4 -4
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +26 -14
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +4 -4
- package/src/sap/ui/model/odata/v4/ODataModel.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +2 -2
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataUtils.js +2 -2
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +69 -27
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +10 -7
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +52 -60
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +49 -31
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +19 -9
- package/src/sap/ui/model/odata/v4/lib/_V2Requestor.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/test/generic/GenericTestCollection.js +11 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/thirdparty/jquery.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +49 -42
- package/src/ui5loader.js +1 -1
- package/src/sap/ui/base/_runWithOwner.js +0 -43
|
@@ -144,8 +144,8 @@ sap.ui.define([
|
|
|
144
144
|
/**
|
|
145
145
|
* Adds the given paths to $select of the given query options.
|
|
146
146
|
*
|
|
147
|
-
* @param {object} mQueryOptions The query options
|
|
148
|
-
* @param {string[]} aSelectPaths The paths to add to $select
|
|
147
|
+
* @param {object} mQueryOptions - The query options to be MODIFIED
|
|
148
|
+
* @param {string[]} aSelectPaths - The paths to add to $select
|
|
149
149
|
*
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
@@ -237,9 +237,10 @@ sap.ui.define([
|
|
|
237
237
|
* Recursively merges $select and $expand from mQueryOptions into mAggregatedQueryOptions.
|
|
238
238
|
* All other query options in mAggregatedQueryOptions remain untouched.
|
|
239
239
|
*
|
|
240
|
-
* @param {object} mAggregatedQueryOptions
|
|
241
|
-
*
|
|
242
|
-
*
|
|
240
|
+
* @param {object} mAggregatedQueryOptions
|
|
241
|
+
* The aggregated query options to be MODIFIED
|
|
242
|
+
* @param {object} mQueryOptions
|
|
243
|
+
* The read-only query options to merge into the aggregated query options
|
|
243
244
|
*
|
|
244
245
|
* @public
|
|
245
246
|
*/
|
|
@@ -302,7 +303,8 @@ sap.ui.define([
|
|
|
302
303
|
/**
|
|
303
304
|
* Builds a query string from the given parameter map. Takes care of encoding, but ensures
|
|
304
305
|
* that the characters "$", "(", ")", ";" and "=" are not encoded, so that OData queries
|
|
305
|
-
* remain readable.
|
|
306
|
+
* remain readable. A parameter starting with "$$" is meant to be internal and does not
|
|
307
|
+
* become part of the query string.
|
|
306
308
|
*
|
|
307
309
|
* ';' is not encoded although RFC 1866 encourages its usage as separator between query
|
|
308
310
|
* parameters. However OData Version 4.0 Part 2 specifies that only '&' is a valid
|
|
@@ -330,7 +332,7 @@ sap.ui.define([
|
|
|
330
332
|
return "";
|
|
331
333
|
}
|
|
332
334
|
|
|
333
|
-
aKeys = Object.keys(mParameters);
|
|
335
|
+
aKeys = Object.keys(mParameters).filter((sKey) => !sKey.startsWith("$$"));
|
|
334
336
|
if (aKeys.length === 0) {
|
|
335
337
|
return "";
|
|
336
338
|
}
|
|
@@ -493,7 +495,7 @@ sap.ui.define([
|
|
|
493
495
|
*
|
|
494
496
|
* $expand must not contain collection-valued navigation properties.
|
|
495
497
|
*
|
|
496
|
-
* @param {object} mQueryOptions - The query options
|
|
498
|
+
* @param {object} mQueryOptions - The read-only query options
|
|
497
499
|
* @returns {string[]} The paths
|
|
498
500
|
*
|
|
499
501
|
* @public
|
|
@@ -604,7 +606,7 @@ sap.ui.define([
|
|
|
604
606
|
* status code 412 and response header "Preference-Applied:handling=strict"
|
|
605
607
|
* </ul>
|
|
606
608
|
* @see <a href=
|
|
607
|
-
* "
|
|
609
|
+
* "https://docs.oasis-open.org/odata/odata-json-format/v4.0/odata-json-format-v4.0.html#_Representing_Errors_in"
|
|
608
610
|
* >"19 Error Response"</a>
|
|
609
611
|
*
|
|
610
612
|
* @public
|
|
@@ -710,6 +712,10 @@ sap.ui.define([
|
|
|
710
712
|
* <code>null</code> value
|
|
711
713
|
*
|
|
712
714
|
* @public
|
|
715
|
+
* @see .deleteProperty
|
|
716
|
+
* @see .drillDown
|
|
717
|
+
* @see .inheritPathValue
|
|
718
|
+
* @see .makeUpdateData
|
|
713
719
|
*/
|
|
714
720
|
createMissing : function (oObject, aSegments) {
|
|
715
721
|
aSegments.reduce(function (oCurrent, sSegment, i) {
|
|
@@ -895,6 +901,10 @@ sap.ui.define([
|
|
|
895
901
|
* @param {string} sPath - Some relative path
|
|
896
902
|
*
|
|
897
903
|
* @public
|
|
904
|
+
* @see .createMissing
|
|
905
|
+
* @see .drillDown
|
|
906
|
+
* @see .inheritPathValue
|
|
907
|
+
* @see .makeUpdateData
|
|
898
908
|
*/
|
|
899
909
|
deleteProperty : function (oObject, sPath) {
|
|
900
910
|
var aSegments;
|
|
@@ -950,6 +960,10 @@ sap.ui.define([
|
|
|
950
960
|
* into void
|
|
951
961
|
*
|
|
952
962
|
* @public
|
|
963
|
+
* @see .createMissing
|
|
964
|
+
* @see .deleteProperty
|
|
965
|
+
* @see .inheritPathValue
|
|
966
|
+
* @see .makeUpdateData
|
|
953
967
|
*/
|
|
954
968
|
drillDown : function (oObject, vSegments) {
|
|
955
969
|
if (typeof vSegments === "string") {
|
|
@@ -1004,24 +1018,21 @@ sap.ui.define([
|
|
|
1004
1018
|
* Extracts the mergeable query options "$expand" and "$select" from the given ones, returns
|
|
1005
1019
|
* them as a new map while replacing their value with "~" in the old map.
|
|
1006
1020
|
*
|
|
1007
|
-
* @param {object} mQueryOptions
|
|
1008
|
-
*
|
|
1009
|
-
* @returns {object}
|
|
1010
|
-
* The extracted query options
|
|
1021
|
+
* @param {object} mQueryOptions - The original query options to be MODIFIED
|
|
1022
|
+
* @returns {object} The extracted query options in the same order
|
|
1011
1023
|
*
|
|
1012
1024
|
* @public
|
|
1013
1025
|
*/
|
|
1014
1026
|
extractMergeableQueryOptions : function (mQueryOptions) {
|
|
1015
1027
|
var mExtractedQueryOptions = {};
|
|
1016
1028
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1029
|
+
// ensure to keep the order of the query options
|
|
1030
|
+
Object.keys(mQueryOptions).forEach(function (sKey) {
|
|
1031
|
+
if (sKey === "$expand" || sKey === "$select") {
|
|
1032
|
+
mExtractedQueryOptions[sKey] = mQueryOptions[sKey];
|
|
1033
|
+
mQueryOptions[sKey] = "~";
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1025
1036
|
|
|
1026
1037
|
return mExtractedQueryOptions;
|
|
1027
1038
|
},
|
|
@@ -1668,7 +1679,8 @@ sap.ui.define([
|
|
|
1668
1679
|
* care of the details).
|
|
1669
1680
|
*
|
|
1670
1681
|
* @param {object|object[]} vEntityOrCollection - The entity (collection)
|
|
1671
|
-
* @param {object} mQueryOptions
|
|
1682
|
+
* @param {object} mQueryOptions
|
|
1683
|
+
* The read-only query options (only $select and $expand required)
|
|
1672
1684
|
* @returns {string[]}
|
|
1673
1685
|
* A list of paths relative to vEntityOrCollection for which the property value is missing
|
|
1674
1686
|
* @throws {Error} If there is a path containing "*"
|
|
@@ -1755,7 +1767,7 @@ sap.ui.define([
|
|
|
1755
1767
|
* Returns the query options corresponding to the given path.
|
|
1756
1768
|
*
|
|
1757
1769
|
* @param {object} [mQueryOptions]
|
|
1758
|
-
* A map of query options as returned by
|
|
1770
|
+
* A map of read-only query options as returned by
|
|
1759
1771
|
* {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions}
|
|
1760
1772
|
* @param {string} sPath
|
|
1761
1773
|
* The path of the cache value in the cache
|
|
@@ -1946,6 +1958,10 @@ sap.ui.define([
|
|
|
1946
1958
|
* untolerated <code>null</code> value
|
|
1947
1959
|
*
|
|
1948
1960
|
* @public
|
|
1961
|
+
* @see .createMissing
|
|
1962
|
+
* @see .deleteProperty
|
|
1963
|
+
* @see .drillDown
|
|
1964
|
+
* @see .makeUpdateData
|
|
1949
1965
|
*/
|
|
1950
1966
|
inheritPathValue : function (aSegments, oSource, oTarget, bTolerateNull) {
|
|
1951
1967
|
aSegments.forEach(function (sSegment, i) {
|
|
@@ -1997,7 +2013,7 @@ sap.ui.define([
|
|
|
1997
2013
|
* key predicate.
|
|
1998
2014
|
*
|
|
1999
2015
|
* @param {object} [mCacheQueryOptions]
|
|
2000
|
-
* A map of query options as returned by
|
|
2016
|
+
* A read-only map of query options as returned by
|
|
2001
2017
|
* {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions}
|
|
2002
2018
|
* @param {string[]} aPaths
|
|
2003
2019
|
* The "14.5.11 Expression edm:NavigationPropertyPath" or
|
|
@@ -2227,7 +2243,7 @@ sap.ui.define([
|
|
|
2227
2243
|
* ok, because within all known scenarios such combinations do not happen.
|
|
2228
2244
|
*
|
|
2229
2245
|
* @param {string} sPropertyPath The path to the structural property as meta path
|
|
2230
|
-
* @param {object} [mQueryOptions] The query options to be analyzed
|
|
2246
|
+
* @param {object} [mQueryOptions] The read-only query options to be analyzed
|
|
2231
2247
|
* @returns {boolean} Whether the property for the given path was already selected
|
|
2232
2248
|
*
|
|
2233
2249
|
* @public
|
|
@@ -2307,6 +2323,10 @@ sap.ui.define([
|
|
|
2307
2323
|
* The resulting object
|
|
2308
2324
|
*
|
|
2309
2325
|
* @public
|
|
2326
|
+
* @see .createMissing
|
|
2327
|
+
* @see .deleteProperty
|
|
2328
|
+
* @see .drillDown
|
|
2329
|
+
* @see .inheritPathValue
|
|
2310
2330
|
*/
|
|
2311
2331
|
makeUpdateData : function (aPropertyPath, vValue, bUpdating) {
|
|
2312
2332
|
return aPropertyPath.reduceRight(function (vValue0, sSegment) {
|
|
@@ -2330,7 +2350,7 @@ sap.ui.define([
|
|
|
2330
2350
|
* Ensures that the original map is left unchanged, but creates a copy only if necessary.
|
|
2331
2351
|
*
|
|
2332
2352
|
* @param {object} [mQueryOptions]
|
|
2333
|
-
* The map of query options
|
|
2353
|
+
* The read-only map of query options
|
|
2334
2354
|
* @param {string} [sOrderby]
|
|
2335
2355
|
* The new value for the query option "$orderby"
|
|
2336
2356
|
* @param {string[]} [aFilters]
|
|
@@ -2640,10 +2660,8 @@ sap.ui.define([
|
|
|
2640
2660
|
/**
|
|
2641
2661
|
* Adds the key properties of the given entity type to $select of the given query options.
|
|
2642
2662
|
*
|
|
2643
|
-
* @param {object} mQueryOptions
|
|
2644
|
-
*
|
|
2645
|
-
* @param {object} oType
|
|
2646
|
-
* The entity type's metadata "JSON"
|
|
2663
|
+
* @param {object} mQueryOptions - The query options to be MODIFIED
|
|
2664
|
+
* @param {object} oType - The entity type's metadata "JSON"
|
|
2647
2665
|
*
|
|
2648
2666
|
* @public
|
|
2649
2667
|
*/
|
|
@@ -2941,7 +2959,7 @@ sap.ui.define([
|
|
|
2941
2959
|
* regarding order and count.
|
|
2942
2960
|
*
|
|
2943
2961
|
* @param {object} mChangeListeners - A map of change listeners by path
|
|
2944
|
-
* @param {object} mQueryOptions - The query options
|
|
2962
|
+
* @param {object} mQueryOptions - The read-only query options
|
|
2945
2963
|
* @param {string} sPath
|
|
2946
2964
|
* The path of the target entity relative to mChangeListeners and mQueryOptions
|
|
2947
2965
|
* @param {object} oTargetEntity - The target entity
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Extension for Data Aggregation Version 4.0"; must already be normalized by
|
|
26
26
|
* {@link _AggregationHelper.buildApply}
|
|
27
27
|
* @param {object} mQueryOptions
|
|
28
|
-
* A map of key-value pairs representing the query string
|
|
28
|
+
* A map of key-value pairs representing the query string (requires "copy on write"!)
|
|
29
29
|
* @returns {sap.ui.model.odata.v4.lib._Cache}
|
|
30
30
|
* The cache
|
|
31
31
|
*/
|
|
@@ -192,11 +192,14 @@ sap.ui.define([
|
|
|
192
192
|
* @param {string} sResourcePath The resource path with possible query options and placeholders
|
|
193
193
|
* @param {string} sMetaPath The absolute meta path matching the resource path
|
|
194
194
|
* @param {object} mQueryOptions Query options to add to the resource path
|
|
195
|
+
* @param {boolean} [bSortSystemQueryOptions]
|
|
196
|
+
* Whether system query options are sorted alphabetically and moved to the query string's end
|
|
195
197
|
* @returns {string} The resource path with the query options
|
|
196
198
|
*
|
|
197
199
|
* @private
|
|
198
200
|
*/
|
|
199
|
-
_Requestor.prototype.addQueryString = function (sResourcePath, sMetaPath, mQueryOptions
|
|
201
|
+
_Requestor.prototype.addQueryString = function (sResourcePath, sMetaPath, mQueryOptions,
|
|
202
|
+
bSortSystemQueryOptions) {
|
|
200
203
|
var sQueryString;
|
|
201
204
|
|
|
202
205
|
mQueryOptions = this.convertQueryOptions(sMetaPath, mQueryOptions, false, true);
|
|
@@ -209,7 +212,7 @@ sap.ui.define([
|
|
|
209
212
|
return _Helper.encodePair(sOption, sValue);
|
|
210
213
|
});
|
|
211
214
|
|
|
212
|
-
sQueryString = _Helper.buildQuery(mQueryOptions);
|
|
215
|
+
sQueryString = _Helper.buildQuery(mQueryOptions, bSortSystemQueryOptions);
|
|
213
216
|
if (!sQueryString) {
|
|
214
217
|
return sResourcePath;
|
|
215
218
|
}
|
|
@@ -297,7 +300,7 @@ sap.ui.define([
|
|
|
297
300
|
* @param {string} sMetaPath
|
|
298
301
|
* The meta path corresponding to the resource path
|
|
299
302
|
* @param {object} [mQueryOptions]
|
|
300
|
-
* A map of key-value pairs representing the query string
|
|
303
|
+
* A read-only map of key-value pairs representing the query string
|
|
301
304
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
302
305
|
* Whether all system query options are dropped (useful for non-GET requests)
|
|
303
306
|
* @param {boolean} [bSortExpandSelect]
|
|
@@ -708,7 +711,7 @@ sap.ui.define([
|
|
|
708
711
|
*
|
|
709
712
|
* @param {string} sMetaPath
|
|
710
713
|
* The meta path corresponding to the resource path
|
|
711
|
-
* @param {object} [mQueryOptions] The query options
|
|
714
|
+
* @param {object} [mQueryOptions] The read-only query options
|
|
712
715
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
713
716
|
* Whether all system query options are dropped (useful for non-GET requests)
|
|
714
717
|
* @param {boolean} [bSortExpandSelect]
|
|
@@ -812,7 +815,7 @@ sap.ui.define([
|
|
|
812
815
|
*
|
|
813
816
|
* @param {string} _sMetaPath
|
|
814
817
|
* The meta path corresponding to the resource path
|
|
815
|
-
* @param {object} mQueryOptions The query options
|
|
818
|
+
* @param {object} mQueryOptions The read-only query options
|
|
816
819
|
* @param {function (string,any)} fnResultHandler
|
|
817
820
|
* The function to process the converted options getting the name and the value
|
|
818
821
|
* @param {boolean} [bDropSystemQueryOptions]
|
|
@@ -1285,6 +1288,9 @@ sap.ui.define([
|
|
|
1285
1288
|
if (oCandidate.$mergeRequests && oRequest.$mergeRequests) {
|
|
1286
1289
|
oCandidate.$mergeRequests(oRequest.$mergeRequests());
|
|
1287
1290
|
}
|
|
1291
|
+
oCandidate.$sortSystemQueryOptions
|
|
1292
|
+
||= oCandidate.$queryOptions.$$sortIfMerged
|
|
1293
|
+
|| oRequest.$queryOptions.$$sortIfMerged;
|
|
1288
1294
|
|
|
1289
1295
|
return true;
|
|
1290
1296
|
}
|
|
@@ -1302,10 +1308,12 @@ sap.ui.define([
|
|
|
1302
1308
|
var mQueryOptions = oRequest.$queryOptions;
|
|
1303
1309
|
|
|
1304
1310
|
if (mQueryOptions) {
|
|
1305
|
-
if
|
|
1311
|
+
// if there was no $select, don't introduce one
|
|
1312
|
+
if (mQueryOptions.$expand && mQueryOptions.$select?.length === 0) {
|
|
1306
1313
|
mQueryOptions.$select = Object.keys(mQueryOptions.$expand).sort().slice(0, 1);
|
|
1307
1314
|
}
|
|
1308
|
-
oRequest.url = that.addQueryString(oRequest.url, oRequest.$metaPath, mQueryOptions
|
|
1315
|
+
oRequest.url = that.addQueryString(oRequest.url, oRequest.$metaPath, mQueryOptions,
|
|
1316
|
+
oRequest.$sortSystemQueryOptions);
|
|
1309
1317
|
}
|
|
1310
1318
|
});
|
|
1311
1319
|
aResultingRequests.iChangeSet = aRequests.iChangeSet;
|
|
@@ -1853,10 +1861,12 @@ sap.ui.define([
|
|
|
1853
1861
|
* contain $expand
|
|
1854
1862
|
* @param {any} [vOwner]
|
|
1855
1863
|
* An additional precondition for the merging of GET requests: the owner must be identical.
|
|
1864
|
+
* This is probably relevant when using parameter <code>fnMergeRequests</code> to ensure both
|
|
1865
|
+
* functions work well together.
|
|
1856
1866
|
* @param {function(string[]):string[]} [fnMergeRequests]
|
|
1857
1867
|
* Function which is called during merging of GET or PATCH requests. If a merged request has a
|
|
1858
|
-
* function given, this function will be called and its return value is
|
|
1859
|
-
*
|
|
1868
|
+
* function given, this function will be called and its return value is given to the one
|
|
1869
|
+
* remaining request's function as a parameter. See also <code>vOwner</code>.
|
|
1860
1870
|
* @returns {Promise}
|
|
1861
1871
|
* A promise on the outcome of the HTTP request; it will be rejected with an error having the
|
|
1862
1872
|
* property <code>canceled = true</code> instead of sending a request if
|
|
@@ -764,7 +764,7 @@ sap.ui.define([
|
|
|
764
764
|
|
|
765
765
|
/**
|
|
766
766
|
* Formats a given internal value into a literal suitable for usage in OData V2 URLs. See
|
|
767
|
-
*
|
|
767
|
+
* https://www.odata.org/documentation/odata-version-2-0/overview#AbstractTypeSystem.
|
|
768
768
|
*
|
|
769
769
|
* @param {any} vValue
|
|
770
770
|
* The value
|
|
@@ -227,7 +227,7 @@ sap.ui.define([
|
|
|
227
227
|
*
|
|
228
228
|
* @extends sap.ui.model.Model
|
|
229
229
|
* @public
|
|
230
|
-
* @version 1.
|
|
230
|
+
* @version 1.139.1
|
|
231
231
|
*/
|
|
232
232
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
233
233
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.model.SimpleType
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.139.1
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
* @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.139.1
|
|
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.139.1
|
|
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(['./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.139.1
|
|
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.139.1
|
|
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}.
|
|
@@ -97,6 +97,13 @@ sap.ui.define([], function() {
|
|
|
97
97
|
*/
|
|
98
98
|
ControlMemoryLeaks: "ControlMemoryLeaks",
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Test ControlInstances
|
|
102
|
+
* @private
|
|
103
|
+
* @ui5-restricted SAPUI5 Distribution Layer Libraries
|
|
104
|
+
*/
|
|
105
|
+
ControlInstances: "ControlInstances",
|
|
106
|
+
|
|
100
107
|
/**
|
|
101
108
|
* Test ControlRenderer
|
|
102
109
|
* @private
|
|
@@ -159,6 +166,9 @@ sap.ui.define([], function() {
|
|
|
159
166
|
ControlMemoryLeaks: {
|
|
160
167
|
title: "QUnit Page for memory leak detection in UI5 controls"
|
|
161
168
|
},
|
|
169
|
+
ControlInstances: {
|
|
170
|
+
title: "QUnit Page for detecting excessive control instance creation"
|
|
171
|
+
},
|
|
162
172
|
/**
|
|
163
173
|
* @deprecated As of 1.120
|
|
164
174
|
* sap.ui.requireSync is deprecated, therefore it's not needed to test that no sync request is sent
|
|
@@ -171,7 +181,7 @@ sap.ui.define([], function() {
|
|
|
171
181
|
title: "QUnit Page for duplicate ID issues detection in UI5 controls"
|
|
172
182
|
},
|
|
173
183
|
SettersContextReturn: {
|
|
174
|
-
title: "All setters should return correct context (Reason: https://github.com/
|
|
184
|
+
title: "All setters should return correct context (Reason: https://github.com/UI5/openui5/blob/master/docs/guidelines.md#creating-classes)"
|
|
175
185
|
},
|
|
176
186
|
EnforceSemanticRendering: {
|
|
177
187
|
title: "QUnit Page for Semantic Rendering Coverage"
|
|
@@ -6256,7 +6256,7 @@ if (/(?:\?|&)sap-ui-xx-self-closing-check=(?:x|X|true)/.exec(window.location.sea
|
|
|
6256
6256
|
if ( rNonVoidHtml5Tags.test($2) && $0.length < html.length ) {
|
|
6257
6257
|
var replacement = "<" + $1 + "></" + $2 + ">";
|
|
6258
6258
|
var noteUrl = "https://launchpad.support.sap.com/#/notes/2944336";
|
|
6259
|
-
var gitHubUrl = "https://github.com/
|
|
6259
|
+
var gitHubUrl = "https://github.com/UI5/openui5/blob/master/docs/self_closing_tags_fix_instructions.md";
|
|
6260
6260
|
var errorMessage = "jQuery incompatibility: non-void HTML tags must not use self-closing syntax.\n"
|
|
6261
6261
|
+ "HTML element used as self-closing tag: <" + $1 + "/>\n"
|
|
6262
6262
|
+ "HTML element should be closed correctly, such as: " + replacement + "\n"
|