@openui5/sap.ui.core 1.119.0 → 1.120.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/THIRDPARTY.txt +6 -6
- package/package.json +1 -1
- package/src/jquery.sap.global.js +40 -111
- package/src/jquery.sap.properties.js +7 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +5 -3
- package/src/jquery.sap.storage.js +6 -3
- package/src/sap/base/Event.js +32 -78
- package/src/sap/base/Eventing.js +114 -271
- package/src/sap/base/Log.js +21 -1
- package/src/sap/base/config.js +14 -9
- package/src/sap/base/i18n/Formatting.js +378 -250
- package/src/sap/base/i18n/LanguageTag.js +64 -66
- package/src/sap/base/i18n/Localization.js +124 -85
- package/src/sap/base/i18n/ResourceBundle.js +1 -1
- package/src/sap/base/i18n/date/CalendarType.js +2 -2
- package/src/sap/base/i18n/date/CalendarWeekNumbering.js +2 -2
- package/src/sap/base/i18n/date/TimezoneUtils.js +43 -6
- package/src/sap/base/util/LoaderExtensions.js +8 -2
- package/src/sap/base/util/mixedFetch.js +1 -0
- package/src/sap/base/util/resolveReference.js +31 -13
- 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/base/util/syncFetch.js +1 -0
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +6 -7
- package/src/sap/ui/base/BindingInfo.js +3 -3
- package/src/sap/ui/base/BindingParser.js +5 -2
- package/src/sap/ui/base/DataType.js +57 -1
- package/src/sap/ui/base/DesignTime.js +69 -0
- package/src/sap/ui/base/Event.js +2 -2
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/ExpressionParser.js +25 -4
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +102 -29
- package/src/sap/ui/base/ManagedObjectMetadata.js +29 -31
- package/src/sap/ui/base/ManagedObjectObserver.js +1 -0
- package/src/sap/ui/base/Metadata.js +3 -3
- package/src/sap/ui/base/Object.js +19 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +3 -3
- package/src/sap/ui/core/AnimationMode.js +2 -2
- package/src/sap/ui/core/AppCacheBuster.js +30 -18
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/CalendarType.js +6 -0
- package/src/sap/ui/core/Component.js +150 -80
- package/src/sap/ui/core/ComponentContainer.js +4 -3
- package/src/sap/ui/core/ComponentMetadata.js +3 -4
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +390 -706
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/ControlBehavior.js +37 -28
- package/src/sap/ui/core/Core.js +327 -151
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +3 -1
- package/src/sap/ui/core/Element.js +18 -8
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +3 -2
- 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 +13 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +2 -3
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +17 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +8 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/Lib.js +195 -29
- 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 +118 -32
- package/src/sap/ui/core/Manifest.js +4 -2
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Placeholder.js +18 -0
- package/src/sap/ui/core/Popup.js +5 -0
- package/src/sap/ui/core/RenderManager.js +21 -17
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/Rendering.js +51 -47
- package/src/sap/ui/core/ResizeHandler.js +2 -2
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Shortcut.js +5 -3
- package/src/sap/ui/core/Supportability.js +146 -0
- package/src/sap/ui/core/Theming.js +130 -88
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +4 -3
- package/src/sap/ui/core/UIArea.js +1 -4
- package/src/sap/ui/core/UIComponent.js +38 -12
- 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/XMLTemplateProcessor.js +3 -3
- package/src/sap/ui/core/_IconRegistry.js +13 -6
- package/src/sap/ui/core/cldr/ar.json +143 -137
- package/src/sap/ui/core/cldr/ar_EG.json +143 -137
- package/src/sap/ui/core/cldr/ar_SA.json +143 -137
- package/src/sap/ui/core/cldr/bg.json +423 -423
- package/src/sap/ui/core/cldr/ca.json +541 -494
- package/src/sap/ui/core/cldr/cs.json +475 -364
- package/src/sap/ui/core/cldr/cy.json +656 -477
- package/src/sap/ui/core/cldr/da.json +334 -275
- package/src/sap/ui/core/cldr/de.json +388 -291
- package/src/sap/ui/core/cldr/de_AT.json +388 -291
- package/src/sap/ui/core/cldr/de_CH.json +394 -297
- package/src/sap/ui/core/cldr/el.json +169 -166
- package/src/sap/ui/core/cldr/el_CY.json +169 -166
- package/src/sap/ui/core/cldr/en.json +558 -521
- package/src/sap/ui/core/cldr/en_AU.json +558 -520
- package/src/sap/ui/core/cldr/en_GB.json +476 -439
- package/src/sap/ui/core/cldr/en_HK.json +520 -482
- package/src/sap/ui/core/cldr/en_IE.json +486 -448
- package/src/sap/ui/core/cldr/en_IN.json +466 -428
- package/src/sap/ui/core/cldr/en_NZ.json +506 -468
- package/src/sap/ui/core/cldr/en_PG.json +506 -468
- package/src/sap/ui/core/cldr/en_SG.json +506 -468
- package/src/sap/ui/core/cldr/en_ZA.json +486 -448
- package/src/sap/ui/core/cldr/es.json +473 -468
- package/src/sap/ui/core/cldr/es_AR.json +445 -440
- package/src/sap/ui/core/cldr/es_BO.json +479 -474
- package/src/sap/ui/core/cldr/es_CL.json +469 -464
- package/src/sap/ui/core/cldr/es_CO.json +387 -381
- package/src/sap/ui/core/cldr/es_MX.json +502 -497
- package/src/sap/ui/core/cldr/es_PE.json +455 -450
- package/src/sap/ui/core/cldr/es_UY.json +479 -474
- package/src/sap/ui/core/cldr/es_VE.json +499 -494
- package/src/sap/ui/core/cldr/et.json +378 -320
- package/src/sap/ui/core/cldr/fa.json +104 -104
- package/src/sap/ui/core/cldr/fi.json +401 -315
- package/src/sap/ui/core/cldr/fr.json +391 -385
- package/src/sap/ui/core/cldr/fr_BE.json +391 -385
- package/src/sap/ui/core/cldr/fr_CA.json +499 -493
- package/src/sap/ui/core/cldr/fr_CH.json +334 -328
- package/src/sap/ui/core/cldr/fr_LU.json +391 -385
- package/src/sap/ui/core/cldr/he.json +291 -159
- package/src/sap/ui/core/cldr/hi.json +157 -128
- package/src/sap/ui/core/cldr/hr.json +514 -461
- package/src/sap/ui/core/cldr/hu.json +287 -257
- package/src/sap/ui/core/cldr/id.json +463 -416
- package/src/sap/ui/core/cldr/it.json +468 -413
- package/src/sap/ui/core/cldr/it_CH.json +468 -413
- package/src/sap/ui/core/cldr/ja.json +98 -61
- package/src/sap/ui/core/cldr/kk.json +631 -571
- package/src/sap/ui/core/cldr/ko.json +79 -71
- package/src/sap/ui/core/cldr/lt.json +361 -270
- package/src/sap/ui/core/cldr/lv.json +234 -242
- package/src/sap/ui/core/cldr/ms.json +463 -408
- package/src/sap/ui/core/cldr/nb.json +176 -143
- package/src/sap/ui/core/cldr/nl.json +463 -393
- package/src/sap/ui/core/cldr/nl_BE.json +463 -393
- package/src/sap/ui/core/cldr/pl.json +633 -344
- package/src/sap/ui/core/cldr/pt.json +447 -336
- package/src/sap/ui/core/cldr/pt_PT.json +488 -449
- package/src/sap/ui/core/cldr/ro.json +477 -383
- package/src/sap/ui/core/cldr/ru.json +367 -332
- package/src/sap/ui/core/cldr/ru_UA.json +361 -326
- package/src/sap/ui/core/cldr/sk.json +502 -537
- package/src/sap/ui/core/cldr/sl.json +168 -161
- package/src/sap/ui/core/cldr/sr.json +276 -225
- package/src/sap/ui/core/cldr/sr_Latn.json +972 -907
- package/src/sap/ui/core/cldr/sv.json +420 -346
- package/src/sap/ui/core/cldr/th.json +117 -94
- package/src/sap/ui/core/cldr/tr.json +413 -359
- package/src/sap/ui/core/cldr/uk.json +395 -368
- package/src/sap/ui/core/cldr/vi.json +392 -379
- package/src/sap/ui/core/cldr/zh_CN.json +91 -33
- package/src/sap/ui/core/cldr/zh_HK.json +90 -32
- package/src/sap/ui/core/cldr/zh_SG.json +90 -32
- package/src/sap/ui/core/cldr/zh_TW.json +75 -51
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +6 -0
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/date/_Calendars.js +5 -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/DragAndDrop.js +3 -2
- 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 +33 -21
- package/src/sap/ui/core/format/NumberFormat.js +3 -2
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +2 -2
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +128 -8
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +2 -2
- 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/message/MessageType.js +2 -1
- package/src/sap/ui/core/messagebundle.properties +24 -0
- package/src/sap/ui/core/messagebundle_ar.properties +15 -3
- package/src/sap/ui/core/messagebundle_bg.properties +14 -2
- package/src/sap/ui/core/messagebundle_ca.properties +13 -1
- package/src/sap/ui/core/messagebundle_cs.properties +15 -3
- package/src/sap/ui/core/messagebundle_cy.properties +16 -4
- package/src/sap/ui/core/messagebundle_da.properties +15 -3
- package/src/sap/ui/core/messagebundle_de.properties +15 -3
- package/src/sap/ui/core/messagebundle_el.properties +16 -4
- package/src/sap/ui/core/messagebundle_en.properties +12 -0
- package/src/sap/ui/core/messagebundle_en_GB.properties +16 -4
- package/src/sap/ui/core/messagebundle_es.properties +15 -3
- package/src/sap/ui/core/messagebundle_es_MX.properties +15 -3
- package/src/sap/ui/core/messagebundle_et.properties +15 -3
- package/src/sap/ui/core/messagebundle_fi.properties +15 -3
- package/src/sap/ui/core/messagebundle_fr.properties +15 -3
- package/src/sap/ui/core/messagebundle_fr_CA.properties +14 -2
- package/src/sap/ui/core/messagebundle_hi.properties +16 -4
- package/src/sap/ui/core/messagebundle_hr.properties +14 -2
- package/src/sap/ui/core/messagebundle_hu.properties +16 -4
- package/src/sap/ui/core/messagebundle_id.properties +15 -3
- package/src/sap/ui/core/messagebundle_it.properties +17 -5
- package/src/sap/ui/core/messagebundle_iw.properties +15 -3
- package/src/sap/ui/core/messagebundle_ja.properties +25 -13
- package/src/sap/ui/core/messagebundle_kk.properties +15 -3
- package/src/sap/ui/core/messagebundle_ko.properties +14 -2
- package/src/sap/ui/core/messagebundle_lt.properties +15 -3
- package/src/sap/ui/core/messagebundle_lv.properties +15 -3
- package/src/sap/ui/core/messagebundle_mk.properties +352 -0
- package/src/sap/ui/core/messagebundle_ms.properties +15 -3
- package/src/sap/ui/core/messagebundle_nl.properties +15 -3
- package/src/sap/ui/core/messagebundle_no.properties +14 -2
- package/src/sap/ui/core/messagebundle_pl.properties +15 -3
- package/src/sap/ui/core/messagebundle_pt.properties +15 -3
- package/src/sap/ui/core/messagebundle_pt_PT.properties +14 -2
- package/src/sap/ui/core/messagebundle_ro.properties +15 -3
- package/src/sap/ui/core/messagebundle_ru.properties +15 -3
- package/src/sap/ui/core/messagebundle_sh.properties +43 -31
- package/src/sap/ui/core/messagebundle_sk.properties +16 -4
- package/src/sap/ui/core/messagebundle_sl.properties +15 -3
- package/src/sap/ui/core/messagebundle_sv.properties +22 -10
- package/src/sap/ui/core/messagebundle_th.properties +15 -3
- package/src/sap/ui/core/messagebundle_tr.properties +15 -3
- package/src/sap/ui/core/messagebundle_uk.properties +18 -6
- package/src/sap/ui/core/messagebundle_vi.properties +18 -6
- package/src/sap/ui/core/messagebundle_zh_CN.properties +15 -3
- package/src/sap/ui/core/messagebundle_zh_TW.properties +15 -3
- package/src/sap/ui/core/mvc/Controller.js +22 -16
- package/src/sap/ui/core/mvc/EventHandlerResolver.js +5 -15
- package/src/sap/ui/core/mvc/HTMLView.js +2 -2
- package/src/sap/ui/core/mvc/JSONView.js +4 -1
- package/src/sap/ui/core/mvc/JSONViewRenderer.js +1 -0
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/OverrideExecution.js +4 -4
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +24 -14
- package/src/sap/ui/core/mvc/ViewType.js +2 -0
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +2 -1
- package/src/sap/ui/core/plugin/LessSupport.js +3 -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/Router.js +2 -4
- package/src/sap/ui/core/routing/Target.js +1 -3
- package/src/sap/ui/core/routing/Targets.js +2 -3
- package/src/sap/ui/core/routing/Views.js +2 -3
- package/src/sap/ui/core/routing/async/Target.js +1 -1
- package/src/sap/ui/core/rules/Config.support.js +11 -17
- 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/Hotkeys.js +5 -3
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/RuleEngineOpaExtension.js +1 -3
- package/src/sap/ui/core/support/Support.js +3 -5
- package/src/sap/ui/core/support/ToolsAPI.js +15 -11
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +4 -4
- 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 +7 -5
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/support/techinfo/TechnicalInfo.js +3 -1
- package/src/sap/ui/core/syncStyleClass.js +2 -2
- 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/themes/base/global.less +9 -9
- package/src/sap/ui/core/theming/Parameters.js +18 -19
- package/src/sap/ui/core/theming/ThemeManager.js +23 -4
- 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/XMLPreprocessor.js +3 -0
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +4 -4
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/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 +29 -7
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/model/ClientListBinding.js +3 -1
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +3 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +2 -2
- package/src/sap/ui/model/Filter.js +39 -1
- package/src/sap/ui/model/FilterProcessor.js +12 -2
- package/src/sap/ui/model/ListBinding.js +5 -0
- package/src/sap/ui/model/ManagedObjectBindingSupport.js +4 -4
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +5 -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/TreeBinding.js +3 -0
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalBinding.js +3 -1
- package/src/sap/ui/model/json/JSONListBinding.js +3 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/json/JSONTreeBinding.js +3 -2
- package/src/sap/ui/model/message/MessageListBinding.js +3 -0
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/AnnotationHelper.js +9 -3
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataListBinding.js +3 -0
- 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 +9 -5
- package/src/sap/ui/model/odata/ODataPropertyBinding.js +1 -2
- package/src/sap/ui/model/odata/ODataTreeBinding.js +2 -0
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +9 -14
- 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/ODataListBinding.js +35 -13
- package/src/sap/ui/model/odata/v2/ODataModel.js +21 -8
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +33 -2
- package/src/sap/ui/model/odata/v4/Context.js +81 -7
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +217 -75
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +6 -6
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +406 -199
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +12 -7
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +53 -30
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +6 -4
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +6 -6
- package/src/sap/ui/model/resource/ResourceModel.js +5 -6
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLListBinding.js +3 -0
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/model/xml/XMLTreeBinding.js +3 -0
- package/src/sap/ui/performance/BeaconRequest.js +2 -2
- package/src/sap/ui/qunit/QUnitUtils.js +64 -45
- package/src/sap/ui/qunit/qunit-coverage.js +6 -0
- package/src/sap/ui/qunit/utils/ControlIterator.js +31 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/security/Security.js +128 -0
- package/src/sap/ui/test/BlanketReporter.js +2 -3
- package/src/sap/ui/test/BlanketReporterUI.view.xml +1 -1
- package/src/sap/ui/test/BranchTracking.js +2 -3
- package/src/sap/ui/test/ModuleTracking.js +48 -20
- package/src/sap/ui/test/OpaExtension.js +3 -3
- package/src/sap/ui/test/OpaPlugin.js +16 -6
- package/src/sap/ui/test/TestUtils.js +7 -4
- package/src/sap/ui/test/_BrowserLogCollector.js +1 -0
- package/src/sap/ui/test/_ControlFinder.js +3 -2
- package/src/sap/ui/test/_LogCollector.js +1 -0
- package/src/sap/ui/test/_UsageReport.js +115 -114
- package/src/sap/ui/test/actions/EnterText.js +20 -2
- package/src/sap/ui/test/autowaiter/WaiterBase.js +1 -0
- package/src/sap/ui/test/autowaiter/_moduleWaiter.js +1 -2
- package/src/sap/ui/test/autowaiter/_timeoutWaiter.js +1 -1
- package/src/sap/ui/test/generic/GenericTestCollection.js +5 -0
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/generic/Utils.js +1 -1
- package/src/sap/ui/test/matchers/LabelFor.js +2 -12
- package/src/sap/ui/test/matchers/Matcher.js +1 -1
- package/src/sap/ui/test/pipelines/PipelineFactory.js +1 -0
- package/src/sap/ui/test/selectors/_Selector.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/ui5loader-autoconfig.js +84 -11
- package/test/sap/ui/core/demokit/sample/RoutingNestedComponent/localService/mockserver.js +3 -4
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/ChartAnnotation.fragment.xml +7 -7
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Component.js +2 -3
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Detail.view.xml +12 -13
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Facets.fragment.xml +4 -4
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Field.fragment.xml +8 -8
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/FormFacet.fragment.xml +3 -5
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/LabeledField.fragment.xml +3 -3
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/Table.fragment.xml +10 -10
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/TableFacet.fragment.xml +3 -3
- package/test/sap/ui/core/demokit/sample/ViewTemplate/scenario/extension/HeaderInfo.fragment.xml +1 -1
- package/test/sap/ui/core/demokit/sample/ViewTemplate/tiny/Field.fragment.xml +2 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/tiny/Template.view.xml +19 -21
- package/test/sap/ui/core/demokit/sample/ViewTemplate/types/TemplateV4.view.xml +2 -2
- package/test/sap/ui/core/demokit/sample/ViewTemplate/valuelist/Component.js +2 -3
- package/test/sap/ui/core/demokit/sample/common/SandboxModelHelper.js +2 -3
- package/test/sap/ui/core/demokit/sample/common/ValueHelp.js +2 -3
- package/test/sap/ui/core/demokit/sample/common/pages/Any.js +7 -8
- package/test/sap/ui/core/demokit/sample/odata/v4/Ancestry/Main.controller.js +15 -6
- package/test/sap/ui/core/demokit/sample/odata/v4/DataAggregation/DataAggregation.controller.js +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/FlatDataAggregation/FlatDataAggregation.controller.js +3 -4
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.controller.js +39 -16
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/Main.view.xml +18 -21
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/all.json +509 -395
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/data/metadata.xml +586 -422
- package/test/sap/ui/core/demokit/sample/odata/v4/HierarchyBindAction/manifest.json +1 -1
- package/test/sap/ui/core/demokit/sample/odata/v4/LateProperties/Main.controller.js +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/Facets.fragment.xml +22 -23
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/FormattedText.fragment.xml +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/ListBindingTemplate/Main.view.xml +7 -7
- package/test/sap/ui/core/demokit/sample/odata/v4/MultipleInlineCreationRowsGrid/Main.controller.js +0 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.controller.js +54 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/RecursiveHierarchy.view.xml +34 -9
- package/test/sap/ui/core/demokit/sample/odata/v4/RecursiveHierarchy/SandboxModel.js +156 -23
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrders/Main.view.xml +3 -2
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Facets.fragment.xml +22 -23
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/FormattedText.fragment.xml +2 -3
- package/test/sap/ui/core/demokit/sample/odata/v4/SalesOrdersTemplate/Main.view.xml +5 -5
- package/test/sap/ui/core/demokit/sample/odata/v4/ServerDrivenPaging/Main.controller.js +2 -3
- package/test/sap/ui/core/demokit/tutorial/databinding/01/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/02/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/03/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/04/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/05/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/06/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/07/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/08/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/09/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/10/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/11/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/12/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/13/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/14/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/databinding/15/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/mockserver/01/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/mockserver/02/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/mockserver/03/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/mockserver/04/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/01/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/02/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/03/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/04/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/05/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/06/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/07/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/08/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/09/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/10/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/11/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/12/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/13/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/14/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/15/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/16/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/navigation/17/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/01/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/02/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/03/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/04/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/05/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/06/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/07/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/08/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/09/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/10/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/odatav4/11/ui5.yaml +2 -2
- package/test/sap/ui/core/demokit/tutorial/troubleshooting/01/ui5.yaml +2 -2
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Component.js +2 -3
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/Main.view.xml +1 -1
- package/test/sap/ui/core/internal/samples/odata/v2/SalesOrders/SandboxModel.js +2 -3
- package/test/sap/ui/core/qunit/CompositeBinding.qunit.js +18 -0
- package/test/sap/ui/core/qunit/ControlRenderer.qunit.js +4 -3
- package/test/sap/ui/core/qunit/Core.qunit.js +5 -14
- package/test/sap/ui/core/qunit/Core_libraryPreloadFiles.qunit.js +4 -4
- package/test/sap/ui/core/qunit/Core_libraryPreloadFiles_unavoidablyUsingEval.qunit.js +6 -6
- package/test/sap/ui/core/qunit/Core_unavoidablyUsingEval.qunit.js +31 -30
- package/test/sap/ui/core/qunit/DataState.qunit.js +7 -4
- package/test/sap/ui/core/qunit/DuplicateIds.qunit.js +3 -0
- package/test/sap/ui/core/qunit/DuplicateIds_noError.qunit.js +4 -0
- package/test/sap/ui/core/qunit/Element_metadata_renderer.qunit.js +6 -0
- package/test/sap/ui/core/qunit/ExpressionParser.qunit.js +144 -85
- package/test/sap/ui/core/qunit/HTML.qunit.js +87 -84
- package/test/sap/ui/core/qunit/InvisibleText.qunit.js +22 -1
- package/test/sap/ui/core/qunit/LRUPersistentCache.qunit.js +4 -4
- package/test/sap/ui/core/qunit/Lib.qunit.js +22 -1
- package/test/sap/ui/core/qunit/ListBinding.qunit.js +14 -1
- package/test/sap/ui/core/qunit/ManagedObject.qunit.js +5 -2
- package/test/sap/ui/core/qunit/ManagedObjectMetadata.qunit.js +41 -40
- package/test/sap/ui/core/qunit/ManagedObjectModel.qunit.js +2 -1
- package/test/sap/ui/core/qunit/{ManagedObject_noBoot.qunit.js → ManagedObject_BindingParser.qunit.js} +10 -9
- package/test/sap/ui/core/qunit/Object.qunit.js +36 -0
- package/test/sap/ui/core/qunit/RenderManager.qunit.js +86 -94
- package/test/sap/ui/core/qunit/ShortcutHints.qunit.js +11 -97
- package/test/sap/ui/core/qunit/StaticBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/UIArea.qunit.js +34 -35
- package/test/sap/ui/core/qunit/analytics/AnalyticalTreeBindingAdapter.qunit.js +3 -0
- package/test/sap/ui/core/qunit/analytics/ODataModelAdapter.qunit.js +3 -0
- package/test/sap/ui/core/qunit/analytics/odata4analytics.qunit.js +3 -0
- package/test/sap/ui/core/qunit/app/DesignMode_controllerDeactivated.qunit.js +5 -6
- package/test/sap/ui/core/qunit/app/DesignMode_suppressedDeactivation.qunit.js +5 -6
- package/test/sap/ui/core/qunit/app/MessageListBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/app/_createDesignModeTests_legacyAPIs.qunit.js +8 -10
- package/test/sap/ui/core/qunit/base/Config_cascade.qunit.js +2 -2
- package/test/sap/ui/core/qunit/base/i18n/Formatting.qunit.js +30 -30
- package/test/sap/ui/core/qunit/base/i18n/ResourceBundle.qunit.js +123 -10
- package/test/sap/ui/core/qunit/base/util/resolveReference.qunit.js +9 -0
- package/test/sap/ui/core/qunit/base/util/testdata/MyModule.js +5 -0
- package/test/sap/ui/core/qunit/bootstrap/BootstrapCustomBootTaskPreloadCss.beforeBootstrap.qunit.js +4 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapMinimal.qunit.html +1 -0
- package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload.qunit.js +9 -10
- package/test/sap/ui/core/qunit/bootstrap/BootstrapPreload_legacyAPIs.qunit.js +0 -2
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithinBody.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/BootstrapWithinHead.qunit.html +2 -1
- package/test/sap/ui/core/qunit/bootstrap/Configuration.qunit.js +122 -266
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibConfigured.qunit.html +22 -0
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibConfigured.qunit.js +22 -0
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibLoaded.qunit.html +22 -0
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibLoaded.qunit.js +16 -0
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibNotLoaded.qunit.html +22 -0
- package/test/sap/ui/core/qunit/bootstrap/ConfigurationFlexibility_LibNotLoaded.qunit.js +14 -0
- package/test/sap/ui/core/qunit/bootstrap/ControlBehavior.qunit.js +110 -0
- package/test/sap/ui/core/qunit/bootstrap/PreloadCfg.qunit.js +4 -3
- package/test/sap/ui/core/qunit/bootstrap/ResourceRoot_ResourcesURL_Standard.qunit.html +1 -1
- package/test/sap/ui/core/qunit/bootstrap/ThemeVersion.beforeBootstrap.qunit.js +2 -3
- package/test/sap/ui/core/qunit/bootstrap/_checkCoreAndLibraryBooted.qunit.js +39 -34
- package/test/sap/ui/core/qunit/bootstrap/_checkCoreAndLibraryBooted_legacyAPIs.qunit.js +5 -1
- package/test/sap/ui/core/qunit/bootstrap/testsuite.bootstrap.qunit.js +51 -15
- package/test/sap/ui/core/qunit/compat_legacyAPIs/jquery-compat.qunit.html +23 -0
- package/test/sap/ui/core/qunit/compat_legacyAPIs/jquery-compat.qunit.js +1 -1
- package/test/sap/ui/core/qunit/compat_legacyAPIs/jquery.sap.stubs.qunit.js +16 -20
- package/test/sap/ui/core/qunit/compat_legacyAPIs/testsuite.compat.qunit.js +1 -4
- package/test/sap/ui/core/qunit/component/Component.qunit.js +74 -4
- package/test/sap/ui/core/qunit/component/Models.qunit.js +3 -1
- package/test/sap/ui/core/qunit/component/Preloading.qunit.js +8 -12
- package/test/sap/ui/core/qunit/component/UIComponent.qunit.js +8 -2
- package/test/sap/ui/core/qunit/component/testdata/routerPreloading/Component.js +23 -0
- package/test/sap/ui/core/qunit/component/testdata/routerPreloading/Main.view.xml +8 -0
- package/test/sap/ui/core/qunit/component/testdata/routerPreloading/manifest.json +34 -0
- package/test/sap/ui/core/qunit/component/testdata/targetsPreloading/Component.js +23 -0
- package/test/sap/ui/core/qunit/component/testdata/targetsPreloading/Main.view.xml +8 -0
- package/test/sap/ui/core/qunit/component/testdata/targetsPreloading/manifest.json +28 -0
- package/test/sap/ui/core/qunit/date/_Calendars.qunit.js +52 -0
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaks.qunit.js +18 -0
- package/test/sap/ui/core/qunit/generic/legacy/ControlMemoryLeaksUsingIterator.qunit.js +3 -4
- package/test/sap/ui/core/qunit/generic/legacy/DuplicateIdCheck.qunit.js +18 -0
- package/test/sap/ui/core/qunit/generic/legacy/SettersContextReturn.qunit.js +15 -0
- package/test/sap/ui/core/qunit/generic/testsuite.generic.qunit.js +21 -0
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessAmbiguous.js +2 -3
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessDuplicate.js +2 -3
- package/test/sap/ui/core/qunit/gherkin/fixture/testHarnessFailing.js +2 -3
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.html +16 -0
- package/test/sap/ui/core/qunit/gherkin/opa5TestHarness.qunit.js +1 -1
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.html +16 -0
- package/test/sap/ui/core/qunit/gherkin/qUnitTestHarness.qunit.js +1 -1
- package/test/sap/ui/core/qunit/gherkin/testsuite.gherkin.qunit.js +3 -2
- package/test/sap/ui/core/qunit/i18n/Buddhist.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/GenericLocaleData.qunit.js +217 -114
- package/test/sap/ui/core/qunit/i18n/Islamic.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/Japanese.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/LocaleData.qunit.js +341 -7
- package/test/sap/ui/core/qunit/i18n/Persian.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/UniversalDate.qunit.js +3 -0
- package/test/sap/ui/core/qunit/i18n/UniversalDateUtils.qunit.js +10 -1
- package/test/sap/ui/core/qunit/i18n/helper/_timezones.js +17 -11
- package/test/sap/ui/core/qunit/i18n/testsuite.i18n.qunit.js +7 -1
- package/test/sap/ui/core/qunit/internal/1Ring.qunit.html +5 -1
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.html +2 -2
- package/test/sap/ui/core/qunit/internal/1RingModels.qunit.js +1 -0
- package/test/sap/ui/core/qunit/internal/AnnotationParser.qunit.html +1 -2
- package/test/sap/ui/core/qunit/internal/ODataV4.qunit.html +6 -1
- package/test/sap/ui/core/qunit/internal/testsuite.feature-odata-v4.qunit.js +2 -1
- package/test/sap/ui/core/qunit/jquery.sap.global-config.qunit.html +24 -0
- package/test/sap/ui/core/qunit/jquery.sap.global-config.qunit.js +12 -6
- package/test/sap/ui/core/qunit/jquery.sap.global-config_beforeBootstrap.qunit.js +1 -1
- package/test/sap/ui/core/qunit/json/JSONListBinding.qunit.js +30 -0
- package/test/sap/ui/core/qunit/loader/exposeAsAMDLoader.qunit.html +1 -0
- package/test/sap/ui/core/qunit/model/Binding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/ClientListBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/ClientPropertyBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/ClientTreeBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/ClientTreeBindingAdapter.qunit.js +6 -0
- package/test/sap/ui/core/qunit/model/CompositeDataState.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/Context.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/ContextBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/Filter.qunit.js +49 -0
- package/test/sap/ui/core/qunit/model/FilterProcessor.qunit.js +40 -1
- package/test/sap/ui/core/qunit/model/ListBinding.qunit.js +23 -5
- package/test/sap/ui/core/qunit/model/Model.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/PropertyBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/Sorter.qunit.js +3 -0
- package/test/sap/ui/core/qunit/model/TreeBinding.qunit.js +43 -3
- package/test/sap/ui/core/qunit/model/TreeBindingAdapter.qunit.js +3 -0
- package/test/sap/ui/core/qunit/mvc/Controller.qunit.js +107 -93
- package/test/sap/ui/core/qunit/mvc/View.qunit.js +3 -0
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessor.qunit.js +17 -14
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorAsync.qunit.js +23 -12
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML.qunit.js +29 -82
- package/test/sap/ui/core/qunit/mvc/XMLTemplateProcessorRequireXML_unavoidablySync.qunit.js +123 -0
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions.qunit.js +4 -0
- package/test/sap/ui/core/qunit/mvc/extensions/Controllerextensions_legacy.qunit.js +4 -0
- package/test/sap/ui/core/qunit/mvc/testsuite.mvc.qunit.js +16 -0
- package/test/sap/ui/core/qunit/mvc/viewprocessing/ViewProcessing.qunit.js +408 -419
- package/test/sap/ui/core/qunit/odata/AnnotationHelper.qunit.js +6 -4
- package/test/sap/ui/core/qunit/odata/ODataAnnotations.qunit.js +16 -0
- package/test/sap/ui/core/qunit/odata/ODataMetaModel.qunit.js +8 -1
- package/test/sap/ui/core/qunit/odata/ODataUtils.qunit.js +5 -1
- package/test/sap/ui/core/qunit/odata/type/DateTimeBase.qunit.js +4 -4
- package/test/sap/ui/core/qunit/odata/type/DateTimeWithTimezone.qunit.js +6 -6
- package/test/sap/ui/core/qunit/odata/type/Time.qunit.js +3 -4
- package/test/sap/ui/core/qunit/odata/type/TimeOfDay.qunit.js +4 -4
- package/test/sap/ui/core/qunit/odata/v2/ODataListBindingNoFakeService.qunit.js +36 -13
- package/test/sap/ui/core/qunit/odata/v2/ODataModel.integration.qunit.js +952 -292
- package/test/sap/ui/core/qunit/odata/v2/ODataModelNoFakeService.qunit.js +6 -4
- package/test/sap/ui/core/qunit/odata/v2/ODataPropertyBindingNoFakeService.qunit.js +6 -7
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingFlatNoFakeService.qunit.js +215 -1
- package/test/sap/ui/core/qunit/odata/v2/ODataTreeBindingNoFakeService.qunit.js +194 -3
- package/test/sap/ui/core/qunit/odata/v2/V2ODataModelDataState.qunit.js +3 -2
- package/test/sap/ui/core/qunit/odata/v4/Context.qunit.js +69 -2
- package/test/sap/ui/core/qunit/odata/v4/ODataListBinding.qunit.js +601 -99
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.integration.qunit.js +1859 -407
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.qunit.js +7 -5
- package/test/sap/ui/core/qunit/odata/v4/ODataModel.realOData.qunit.js +4 -4
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationCache.qunit.js +909 -422
- package/test/sap/ui/core/qunit/odata/v4/lib/_AggregationHelper.qunit.js +21 -6
- package/test/sap/ui/core/qunit/odata/v4/lib/_Cache.qunit.js +104 -33
- package/test/sap/ui/core/qunit/odata/v4/lib/_Helper.qunit.js +8 -0
- package/test/sap/ui/core/qunit/odata/v4/lib/_MetadataRequestor.qunit.js +4 -4
- package/test/sap/ui/core/qunit/odata/v4/lib/_Requestor.qunit.js +9 -9
- package/test/sap/ui/core/qunit/odata/v4/lib/_V2MetadataConverter.qunit.js +3 -3
- package/test/sap/ui/core/qunit/odata/v4/lib/_V4MetadataConverter.qunit.js +3 -3
- package/test/sap/ui/core/qunit/opa/OpaPlugin.qunit.js +16 -0
- package/test/sap/ui/core/qunit/opa/_LogCollector.qunit.js +17 -9
- package/test/sap/ui/core/qunit/opa/actions/EnterText.qunit.js +51 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_cssAnimationWaiter.js +3 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_cssTransitionWaiter.js +3 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_jsAnimationWaiter.js +3 -3
- package/test/sap/ui/core/qunit/opa/autowaiter/_timeoutWaiter.js +11 -0
- package/test/sap/ui/core/qunit/opa/fixture/miniUI5Site.js +14 -8
- package/test/sap/ui/core/qunit/opa/fixture/uncaughtError.js +18 -12
- package/test/sap/ui/core/qunit/performance/BeaconRequest.qunit.js +18 -2
- package/test/sap/ui/core/qunit/resource/ResourceBinding.qunit.js +1 -0
- package/test/sap/ui/core/qunit/resource/ResourceModel.qunit.js +5 -4
- package/test/sap/ui/core/qunit/routing/async/Target.qunit.js +20 -18
- package/test/sap/ui/core/qunit/routing/async/Targets.qunit.js +1 -4
- package/test/sap/ui/core/qunit/routing/fixture/routingConfig/Component.js +2 -25
- package/test/sap/ui/core/qunit/routing/fixture/routingConfig/manifest.json +28 -0
- package/test/sap/ui/core/qunit/rule/misc/silentEventBus.qunit.js +1 -2
- package/test/sap/ui/core/qunit/testdata/libraries/scenario11/lib1/library.js +11 -0
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library-preload.js +3 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib1/library.js +3 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library-preload.js +3 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib2/library.js +3 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library-preload.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib3/library.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library-preload.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib5/library.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library-preload.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib6/library.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library-preload.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/scenario14/lib8/library.js +2 -1
- package/test/sap/ui/core/qunit/testdata/libraries/terminologies/integration/lib/library-preload.js +1 -1
- package/test/sap/ui/core/qunit/testdata/shortcutHints/Component.js +9 -0
- package/test/sap/ui/core/qunit/testdata/shortcutHints/RootView.controller.js +8 -0
- package/test/sap/ui/core/qunit/testdata/shortcutHints/RootView.view.xml +16 -0
- package/test/sap/ui/core/qunit/testdata/shortcutHints/lib/MyControl.js +27 -0
- package/test/sap/ui/core/qunit/testdata/shortcutHints/manifest.json +26 -0
- package/test/sap/ui/core/qunit/testdata/uilib-custom-theme-fallback/library.js +4 -5
- package/test/sap/ui/core/qunit/testdata/uilib-failing-css-import/library.js +5 -6
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expression.controller.js +2 -1
- package/test/sap/ui/core/qunit/testdata/xml-require/view/XMLTemplateProcessorAsync_require_expression.view.xml +18 -1
- package/test/sap/ui/core/qunit/testsuite.core.framework.qunit.js +3 -0
- package/test/sap/ui/core/qunit/testsuites/testsuite.control.framework.qunit.js +0 -4
- package/test/sap/ui/core/qunit/testsuites/testsuite.foundation.enablement.qunit.js +6 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.managed.object.qunit.js +4 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.modular.core.qunit.js +1 -1
- package/test/sap/ui/core/qunit/testsuites/testsuite.security.qunit.js +3 -9
- package/test/sap/ui/core/qunit/types/DataType.qunit.js +14 -3
- package/test/sap/ui/core/qunit/types/Date.qunit.js +3 -0
- package/test/sap/ui/core/qunit/types/DateFormat.qunit.js +391 -147
- package/test/sap/ui/core/qunit/types/DateFormatTimezones.qunit.js +32 -29
- package/test/sap/ui/core/qunit/types/DateInterval.qunit.js +7 -4
- package/test/sap/ui/core/qunit/types/FileSizeFormat.qunit.js +5 -1
- package/test/sap/ui/core/qunit/types/ListFormat.qunit.js +3 -0
- package/test/sap/ui/core/qunit/types/NumberFormat.qunit.js +4 -3
- package/test/sap/ui/core/qunit/types/NumberFormatCurrencies.qunit.js +5 -4
- package/test/sap/ui/core/qunit/types/NumberFormatCurrenciesTrailing.qunit.js +4 -3
- package/test/sap/ui/core/qunit/types/SimpleType.qunit.js +3 -0
- package/test/sap/ui/core/qunit/types/TimezoneUtil.qunit.js +23 -0
- package/test/sap/ui/core/qunit/types/Types.qunit.js +44 -10
- package/test/sap/ui/core/qunit/types/testsuite.types.qunit.js +3 -0
- package/test/sap/ui/core/qunit/util/InvisibleMessage.qunit.js +4 -4
- package/test/sap/ui/core/qunit/util/XMLPreprocessor.qunit.js +592 -83
- package/test/sap/ui/core/qunit/util/beforeBootstrap/jQuery.sap.FrameOptions-allowlist.js +7 -0
- package/test/sap/ui/core/qunit/util/beforeBootstrap/jQuery.sap.FrameOptions-frameOptions.js +7 -0
- package/test/sap/ui/core/qunit/{bootstrap/CfgFromGlobalObject.qunit.html → util/jQuery.sap.FrameOptions-meta-tag-override-mode.qunit.html} +7 -11
- package/test/sap/ui/core/qunit/util/jQuery.sap.FrameOptions-meta-tag-override-mode.qunit.js +3 -4
- package/test/sap/ui/core/qunit/util/jQuery.sap.FrameOptions-meta-tag-override-service.qunit.html +26 -0
- package/test/sap/ui/core/qunit/util/jQuery.sap.FrameOptions-meta-tag-override-service.qunit.js +3 -4
- package/test/sap/ui/core/qunit/{bootstrap/CfgDefaults.qunit.html → util/jQuery.sap.FrameOptions-meta-tag.qunit.html} +5 -8
- package/test/sap/ui/core/qunit/util/jQuery.sap.FrameOptions-meta-tag.qunit.js +3 -4
- package/test/sap/ui/core/qunit/util/jQuery.sap.Version.qunit.js +10 -10
- package/test/sap/ui/core/qunit/util/jquery.sap.logger.qunit.html +18 -0
- package/test/sap/ui/core/qunit/util/jquery.sap.resources.qunit.js +1 -1
- package/test/sap/ui/core/qunit/util/testsuite.util.qunit.js +1 -3
- package/test/sap/ui/core/qunit/xml/XMLListBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/xml/XMLModel.qunit.js +3 -0
- package/test/sap/ui/core/qunit/xml/XMLPropertyBinding.qunit.js +3 -0
- package/test/sap/ui/core/qunit/xml/XMLTreeBinding.qunit.js +3 -0
- package/test/sap/ui/core/relnotes/changes-1.119.json +1 -12
- package/test/sap/ui/core/relnotes/changes-1.120.json +360 -0
- package/test/sap/ui/core/terminologies/App.controller.js +2 -3
- package/test/sap/ui/core/terminologies/main.js +2 -3
- package/test/sap/ui/test/qunit/TestUtils.qunit.js +3 -3
- package/src/sap/ui/core/ConfigTest.js +0 -17
- package/src/sap/ui/core/_ConfigurationProvider.js +0 -187
- package/test/sap/ui/core/ComponentExtensibility_CustomizingDisabled.html +0 -57
- package/test/sap/ui/core/qunit/bootstrap/CfgDefaults.qunit.js +0 -71
- package/test/sap/ui/core/qunit/bootstrap/CfgFromConfigAttribute.qunit.html +0 -29
- package/test/sap/ui/core/qunit/bootstrap/CfgFromConfigAttribute.qunit.js +0 -40
- package/test/sap/ui/core/qunit/bootstrap/CfgFromGlobalObject.beforeBootstrap.qunit.js +0 -20
- package/test/sap/ui/core/qunit/bootstrap/CfgFromGlobalObject.qunit.js +0 -40
- package/test/sap/ui/core/qunit/bootstrap/CfgFromTagAttributes.qunit.html +0 -42
- package/test/sap/ui/core/qunit/bootstrap/CfgFromTagAttributes.qunit.js +0 -49
- package/test/sap/ui/core/qunit/util/BusyIndicatorNoCore.qunit.js +0 -96
- package/test/sap/ui/core/qunit/util/beforeBootstrap/jQuery.sap.FrameOptions-meta-tag.js +0 -10
- package/test/sap/ui/core/samples/mvc/JSONView.html +0 -65
|
@@ -1603,7 +1603,8 @@ sap.ui.define([
|
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
1605
|
//*********************************************************************************************
|
|
1606
|
-
|
|
1606
|
+
[204, "204", 205, "205"].forEach(function (vStatusCode, i){
|
|
1607
|
+
QUnit.test("_processSuccess: _updateChangedEntity is called correctly, #" + i, function (assert) {
|
|
1607
1608
|
var mEntityTypes = {},
|
|
1608
1609
|
oModel = {
|
|
1609
1610
|
oMetadata : {
|
|
@@ -1626,7 +1627,7 @@ sap.ui.define([
|
|
|
1626
1627
|
key : "key",
|
|
1627
1628
|
requestUri : "/service/path"
|
|
1628
1629
|
},
|
|
1629
|
-
oResponse = {statusCode :
|
|
1630
|
+
oResponse = {statusCode : vStatusCode};
|
|
1630
1631
|
|
|
1631
1632
|
oModelMock.expects("_normalizePath").withExactArgs("/path").returns("normalizedPath");
|
|
1632
1633
|
this.mock(oModel.oMetadata).expects("_getEntityTypeByPath")
|
|
@@ -1657,6 +1658,7 @@ sap.ui.define([
|
|
|
1657
1658
|
/*fnSuccess*/ undefined, /*mGetEntities*/ {}, /*mChangeEntities*/ {}, mEntityTypes,
|
|
1658
1659
|
/*bBatch*/ false, "aRequests");
|
|
1659
1660
|
});
|
|
1661
|
+
});
|
|
1660
1662
|
|
|
1661
1663
|
//*********************************************************************************************
|
|
1662
1664
|
[{
|
|
@@ -6829,7 +6831,7 @@ sap.ui.define([
|
|
|
6829
6831
|
.withExactArgs("~oAbortedError");
|
|
6830
6832
|
}
|
|
6831
6833
|
oModelMock.expects("getMessagesByEntity")
|
|
6832
|
-
.withExactArgs("~sKey",
|
|
6834
|
+
.withExactArgs("~sKey", true)
|
|
6833
6835
|
.returns("~aMessages");
|
|
6834
6836
|
oMessagingMock.expects("removeMessages").withExactArgs("~aMessages");
|
|
6835
6837
|
|
|
@@ -6886,7 +6888,7 @@ sap.ui.define([
|
|
|
6886
6888
|
.withExactArgs(sinon.match.same(oContext));
|
|
6887
6889
|
this.mock(oModel).expects("_removeEntity").withExactArgs("~sKey");
|
|
6888
6890
|
this.mock(oModel).expects("getMessagesByEntity")
|
|
6889
|
-
.withExactArgs("~sKey",
|
|
6891
|
+
.withExactArgs("~sKey", true)
|
|
6890
6892
|
.returns("~aMessages");
|
|
6891
6893
|
this.mock(Messaging).expects("removeMessages")
|
|
6892
6894
|
.withExactArgs("~aMessages");
|
|
@@ -128,13 +128,13 @@ sap.ui.define([
|
|
|
128
128
|
|
|
129
129
|
//*********************************************************************************************
|
|
130
130
|
[
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
131
|
+
{aMessages : [], bForceUpdate : false, bSameContext : true},
|
|
132
|
+
{aMessages : [], bForceUpdate : false, bSameContext : false},
|
|
133
|
+
{aMessages : [{}], bForceUpdate : true, bSameContext : false}
|
|
134
134
|
].forEach(function (oFixture) {
|
|
135
135
|
var sTitle = "setContext: changed context (relative binding)"
|
|
136
136
|
+ "; same context = " + oFixture.bSameContext
|
|
137
|
-
+ "; number of
|
|
137
|
+
+ "; number of messages = " + oFixture.aMessages.length;
|
|
138
138
|
|
|
139
139
|
QUnit.test(sTitle, function (assert) {
|
|
140
140
|
var oContext = {
|
|
@@ -147,7 +147,7 @@ sap.ui.define([
|
|
|
147
147
|
isRelative : function () {}
|
|
148
148
|
},
|
|
149
149
|
oDataState = {
|
|
150
|
-
|
|
150
|
+
getMessages : function () {}
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
this.mock(oContext).expects("isPreliminary").withExactArgs().returns(false);
|
|
@@ -157,8 +157,7 @@ sap.ui.define([
|
|
|
157
157
|
this.mock(oBinding).expects("isRelative").withExactArgs().returns(true);
|
|
158
158
|
if (!oFixture.bSameContext) {
|
|
159
159
|
this.mock(oBinding).expects("getDataState").withExactArgs().returns(oDataState);
|
|
160
|
-
this.mock(oDataState).expects("
|
|
161
|
-
.returns(oFixture.aControlMessages);
|
|
160
|
+
this.mock(oDataState).expects("getMessages").withExactArgs().returns(oFixture.aMessages);
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
this.mock(oBinding).expects("checkUpdate").withExactArgs(oFixture.bForceUpdate);
|
|
@@ -1631,6 +1631,7 @@ sap.ui.define([
|
|
|
1631
1631
|
"hierarchy-node-for" : "~nodeKey",
|
|
1632
1632
|
"hierarchy-preorder-rank-for" : "~preorderRank"
|
|
1633
1633
|
},
|
|
1634
|
+
_getHeaders() {},
|
|
1634
1635
|
_updateNodeInfoAfterSave : function () {},
|
|
1635
1636
|
getNumberOfExpandedLevels : function () {},
|
|
1636
1637
|
getResolvedPath : function () {}
|
|
@@ -1664,6 +1665,7 @@ sap.ui.define([
|
|
|
1664
1665
|
.and(sinon.match.has("select",
|
|
1665
1666
|
"~key0,~key1,~nodeKey,~descendantCount,~drillState,~preorderRank")))
|
|
1666
1667
|
.returns("~URLParameters");
|
|
1668
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1667
1669
|
this.mock(oModel).expects("read")
|
|
1668
1670
|
.withExactArgs("~resolvedPath", {
|
|
1669
1671
|
error : "~fnError",
|
|
@@ -1678,6 +1680,7 @@ sap.ui.define([
|
|
|
1678
1680
|
and : true})
|
|
1679
1681
|
],
|
|
1680
1682
|
groupId : "~groupID",
|
|
1683
|
+
headers : "~headers",
|
|
1681
1684
|
sorters : "~aSorters",
|
|
1682
1685
|
success : sinon.match.func,
|
|
1683
1686
|
urlParameters : "~URLParameters"
|
|
@@ -1721,6 +1724,7 @@ sap.ui.define([
|
|
|
1721
1724
|
"hierarchy-node-for" : "~nodeKey",
|
|
1722
1725
|
"hierarchy-preorder-rank-for" : "~preorderRank"
|
|
1723
1726
|
},
|
|
1727
|
+
_getHeaders() {},
|
|
1724
1728
|
_updateNodeInfoAfterSave : function () {},
|
|
1725
1729
|
getNumberOfExpandedLevels : function () {},
|
|
1726
1730
|
getResolvedPath : function () {}
|
|
@@ -1747,6 +1751,7 @@ sap.ui.define([
|
|
|
1747
1751
|
.and(sinon.match.has("select",
|
|
1748
1752
|
"~key0,~key1,~nodeKey,~descendantCount,~drillState,~preorderRank")))
|
|
1749
1753
|
.returns("~URLParameters");
|
|
1754
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1750
1755
|
this.mock(oModel).expects("read")
|
|
1751
1756
|
.withExactArgs("~resolvedPath", {
|
|
1752
1757
|
error : undefined,
|
|
@@ -1760,6 +1765,7 @@ sap.ui.define([
|
|
|
1760
1765
|
and : true})
|
|
1761
1766
|
],
|
|
1762
1767
|
groupId : "~groupID",
|
|
1768
|
+
headers : "~headers",
|
|
1763
1769
|
sorters : [],
|
|
1764
1770
|
success : sinon.match.func,
|
|
1765
1771
|
urlParameters : "~URLParameters"
|
|
@@ -1826,4 +1832,212 @@ sap.ui.define([
|
|
|
1826
1832
|
// code under test
|
|
1827
1833
|
assert.strictEqual(ODataTreeBindingFlat.prototype._calcIndexDelta.call(oBinding, 5), 1);
|
|
1828
1834
|
});
|
|
1829
|
-
|
|
1835
|
+
|
|
1836
|
+
//*********************************************************************************************
|
|
1837
|
+
QUnit.test("_requestServerIndexNodes: calls _getHeaders", function (assert) {
|
|
1838
|
+
const oBinding = {
|
|
1839
|
+
_aPendingRequests: [],
|
|
1840
|
+
oModel: {
|
|
1841
|
+
read() {}
|
|
1842
|
+
},
|
|
1843
|
+
oTreeProperties: {
|
|
1844
|
+
"hierarchy-level-for": "~hierarchy-level-for"
|
|
1845
|
+
},
|
|
1846
|
+
_getHeaders() {},
|
|
1847
|
+
getNumberOfExpandedLevels() {},
|
|
1848
|
+
getResolvedPath() {}
|
|
1849
|
+
};
|
|
1850
|
+
const oBindingMock = this.mock(oBinding);
|
|
1851
|
+
oBindingMock.expects("getNumberOfExpandedLevels").withExactArgs().returns(13);
|
|
1852
|
+
oBindingMock.expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1853
|
+
oBindingMock.expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1854
|
+
const oReadExpectation = this.mock(oBinding.oModel).expects("read")
|
|
1855
|
+
.withExactArgs("~sAbsolutePath", {
|
|
1856
|
+
error: sinon.match.func,
|
|
1857
|
+
filters: [new Filter({filters: [new Filter("~hierarchy-level-for", "LE", 13)], and: true})],
|
|
1858
|
+
groupId: undefined, // not relevant for this test
|
|
1859
|
+
headers: "~headers",
|
|
1860
|
+
sorters: [],
|
|
1861
|
+
success: sinon.match.func,
|
|
1862
|
+
urlParameters: ["$skip=3", "$top=142", "$inlinecount=allpages"]
|
|
1863
|
+
})
|
|
1864
|
+
.returns("~oReadHandle");
|
|
1865
|
+
|
|
1866
|
+
// code under test
|
|
1867
|
+
const oResultPromise = ODataTreeBindingFlat.prototype._requestServerIndexNodes.call(oBinding, 3, 42, 100);
|
|
1868
|
+
|
|
1869
|
+
assert.deepEqual(oBinding._aPendingRequests,
|
|
1870
|
+
[{oRequestHandle: "~oReadHandle", iSkip: 3, iTop: 142, iThreshold: 100}]);
|
|
1871
|
+
assert.ok(oResultPromise instanceof Promise);
|
|
1872
|
+
|
|
1873
|
+
// code under test
|
|
1874
|
+
oReadExpectation.args[0][1].success("~oData");
|
|
1875
|
+
|
|
1876
|
+
return oResultPromise.then((oResult) => {
|
|
1877
|
+
assert.deepEqual(oResult, {oData: "~oData", iSkip: 3, iTop: 142});
|
|
1878
|
+
assert.deepEqual(oBinding._aPendingRequests, []);
|
|
1879
|
+
});
|
|
1880
|
+
});
|
|
1881
|
+
|
|
1882
|
+
//*********************************************************************************************
|
|
1883
|
+
QUnit.test("_requestChildren: calls _getHeaders", function (assert) {
|
|
1884
|
+
const oBinding = {
|
|
1885
|
+
_aPendingChildrenRequests: [],
|
|
1886
|
+
oModel: {
|
|
1887
|
+
read() {}
|
|
1888
|
+
},
|
|
1889
|
+
oTreeProperties: {
|
|
1890
|
+
"hierarchy-node-for": "~hierarchy-node-for",
|
|
1891
|
+
"hierarchy-parent-node-for": "~hierarchy-parent-node-for"
|
|
1892
|
+
},
|
|
1893
|
+
_getHeaders() {},
|
|
1894
|
+
getResolvedPath() {}
|
|
1895
|
+
};
|
|
1896
|
+
const oParentNode = {
|
|
1897
|
+
key: "~parentNodeKey",
|
|
1898
|
+
context: {
|
|
1899
|
+
getProperty() {}
|
|
1900
|
+
}
|
|
1901
|
+
};
|
|
1902
|
+
this.mock(oParentNode.context).expects("getProperty")
|
|
1903
|
+
.withExactArgs("~hierarchy-node-for")
|
|
1904
|
+
.returns("~sHierarchyNodeValue");
|
|
1905
|
+
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1906
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1907
|
+
const oReadExpectation = this.mock(oBinding.oModel).expects("read")
|
|
1908
|
+
.withExactArgs("~sAbsolutePath", {
|
|
1909
|
+
error: sinon.match.func,
|
|
1910
|
+
filters: [
|
|
1911
|
+
new Filter({
|
|
1912
|
+
filters: [new Filter("~hierarchy-parent-node-for", "EQ", "~sHierarchyNodeValue")],
|
|
1913
|
+
and: true
|
|
1914
|
+
})],
|
|
1915
|
+
groupId: undefined, // not relevant for this test
|
|
1916
|
+
headers: "~headers",
|
|
1917
|
+
sorters: [],
|
|
1918
|
+
success: sinon.match.func,
|
|
1919
|
+
urlParameters: ["$skip=~skip", "$top=~top", "$inlinecount=allpages"]
|
|
1920
|
+
})
|
|
1921
|
+
.returns("~oReadHandle");
|
|
1922
|
+
|
|
1923
|
+
// code under test
|
|
1924
|
+
const oResultPromise = ODataTreeBindingFlat.prototype._requestChildren.call(oBinding, oParentNode,
|
|
1925
|
+
"~skip", "~top");
|
|
1926
|
+
|
|
1927
|
+
assert.deepEqual(oBinding._aPendingChildrenRequests,
|
|
1928
|
+
[{sParent: "~parentNodeKey", oRequestHandle: "~oReadHandle", iSkip: "~skip", iTop: "~top"}]);
|
|
1929
|
+
assert.ok(oResultPromise instanceof Promise);
|
|
1930
|
+
|
|
1931
|
+
// code under test
|
|
1932
|
+
oReadExpectation.args[0][1].success("~oData");
|
|
1933
|
+
|
|
1934
|
+
return oResultPromise.then((oResult) => {
|
|
1935
|
+
assert.deepEqual(oResult, {oData: "~oData", iSkip: "~skip", iTop: "~top"});
|
|
1936
|
+
assert.deepEqual(oBinding._aPendingChildrenRequests, []);
|
|
1937
|
+
});
|
|
1938
|
+
});
|
|
1939
|
+
|
|
1940
|
+
//*********************************************************************************************
|
|
1941
|
+
QUnit.test("_requestSubTree: calls _getHeaders", function (assert) {
|
|
1942
|
+
const oBinding = {
|
|
1943
|
+
_aPendingSubtreeRequests: [],
|
|
1944
|
+
oModel: {
|
|
1945
|
+
read() {}
|
|
1946
|
+
},
|
|
1947
|
+
oTreeProperties: {
|
|
1948
|
+
"hierarchy-level-for": "~hierarchy-level-for",
|
|
1949
|
+
"hierarchy-node-for": "~hierarchy-node-for"
|
|
1950
|
+
},
|
|
1951
|
+
_getHeaders() {},
|
|
1952
|
+
getResolvedPath() {}
|
|
1953
|
+
};
|
|
1954
|
+
const oParentNode = {
|
|
1955
|
+
key: "~parentNodeKey",
|
|
1956
|
+
context: {
|
|
1957
|
+
getProperty() {}
|
|
1958
|
+
}
|
|
1959
|
+
};
|
|
1960
|
+
this.mock(oParentNode.context).expects("getProperty")
|
|
1961
|
+
.withExactArgs("~hierarchy-node-for")
|
|
1962
|
+
.returns("~sHierarchyNodeForProperty");
|
|
1963
|
+
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1964
|
+
const oExpectedNodeFilter = new Filter("~hierarchy-node-for", "EQ", "~sHierarchyNodeForProperty");
|
|
1965
|
+
const oExpectedLevelFilter = new Filter("~hierarchy-level-for", "LE", "~iLevel");
|
|
1966
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1967
|
+
const oReadExpectation = this.mock(oBinding.oModel).expects("read")
|
|
1968
|
+
.withExactArgs("~sAbsolutePath", {
|
|
1969
|
+
error: sinon.match.func,
|
|
1970
|
+
filters: [new Filter({filters: [oExpectedNodeFilter, oExpectedLevelFilter], and: true})],
|
|
1971
|
+
groupId: undefined, // not relevant for this test
|
|
1972
|
+
headers: "~headers",
|
|
1973
|
+
sorters: [],
|
|
1974
|
+
success: sinon.match.func,
|
|
1975
|
+
urlParameters: []
|
|
1976
|
+
})
|
|
1977
|
+
.returns("~oReadHandle");
|
|
1978
|
+
|
|
1979
|
+
// code under test
|
|
1980
|
+
const oResultPromise = ODataTreeBindingFlat.prototype._requestSubTree.call(oBinding, oParentNode, "~iLevel");
|
|
1981
|
+
|
|
1982
|
+
assert.deepEqual(oBinding._aPendingSubtreeRequests,
|
|
1983
|
+
[{sParent: "~parentNodeKey", iLevel: "~iLevel", oRequestHandle: "~oReadHandle"}]);
|
|
1984
|
+
assert.ok(oResultPromise instanceof Promise);
|
|
1985
|
+
|
|
1986
|
+
// code under test
|
|
1987
|
+
oReadExpectation.args[0][1].success("~oData");
|
|
1988
|
+
|
|
1989
|
+
return oResultPromise.then((oResult) => {
|
|
1990
|
+
assert.deepEqual(oResult, {oData: "~oData", iLevel: "~iLevel", sParent: "~parentNodeKey"});
|
|
1991
|
+
assert.deepEqual(oBinding._aPendingSubtreeRequests, []);
|
|
1992
|
+
});
|
|
1993
|
+
});
|
|
1994
|
+
|
|
1995
|
+
//*********************************************************************************************
|
|
1996
|
+
QUnit.test("_generateSiblingsPositionRequest: calls _getHeaders", function (assert) {
|
|
1997
|
+
const oBinding = {
|
|
1998
|
+
oModel: {
|
|
1999
|
+
createCustomParams() {},
|
|
2000
|
+
read() {}
|
|
2001
|
+
},
|
|
2002
|
+
mParameters: {foo: "~bar"},
|
|
2003
|
+
oTreeProperties: {
|
|
2004
|
+
"hierarchy-sibling-rank-for": "~hierarchy-sibling-rank-for"
|
|
2005
|
+
},
|
|
2006
|
+
_getHeaders() {}
|
|
2007
|
+
};
|
|
2008
|
+
const oNode = {
|
|
2009
|
+
context: {
|
|
2010
|
+
getPath() {}
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
this.mock(oNode.context).expects("getPath").withExactArgs().returns("~sAbsolutePath");
|
|
2014
|
+
this.mock(oBinding.oModel).expects("createCustomParams")
|
|
2015
|
+
.withExactArgs(sinon.match((oParams) => {
|
|
2016
|
+
assert.notStrictEqual(oParams, oBinding.mParameters);
|
|
2017
|
+
assert.deepEqual(oParams, {
|
|
2018
|
+
foo: "~bar",
|
|
2019
|
+
select: "~hierarchy-sibling-rank-for"
|
|
2020
|
+
});
|
|
2021
|
+
return true;
|
|
2022
|
+
}))
|
|
2023
|
+
.returns("~mCustomParams");
|
|
2024
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
2025
|
+
this.mock(oBinding.oModel).expects("read")
|
|
2026
|
+
.withExactArgs("~sAbsolutePath", {
|
|
2027
|
+
error: "~error",
|
|
2028
|
+
groupId: "~groupId",
|
|
2029
|
+
headers: "~headers",
|
|
2030
|
+
success: "~success",
|
|
2031
|
+
urlParameters: "~mCustomParams"
|
|
2032
|
+
})
|
|
2033
|
+
.returns("~oReadHandle");
|
|
2034
|
+
const mParameters = {
|
|
2035
|
+
error: "~error",
|
|
2036
|
+
groupId: "~groupId",
|
|
2037
|
+
success: "~success"
|
|
2038
|
+
};
|
|
2039
|
+
|
|
2040
|
+
// code under test
|
|
2041
|
+
ODataTreeBindingFlat.prototype._generateSiblingsPositionRequest.call(oBinding, oNode, mParameters);
|
|
2042
|
+
});
|
|
2043
|
+
});
|
|
@@ -42,6 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
operationMode : OperationMode.Client,
|
|
43
43
|
rootLevel : 23,
|
|
44
44
|
threshold : 77,
|
|
45
|
+
transitionMessagesOnly : "truthy",
|
|
45
46
|
usePreliminaryContext : "bUsePreliminaryContext",
|
|
46
47
|
useServersideApplicationFilters : "bUseServersideApplicationFilters"
|
|
47
48
|
},
|
|
@@ -92,9 +93,9 @@ sap.ui.define([
|
|
|
92
93
|
assert.strictEqual(oBinding.bUseServersideApplicationFilters,
|
|
93
94
|
"bUseServersideApplicationFilters");
|
|
94
95
|
assert.strictEqual(oBinding.bUsePreliminaryContext, "bUsePreliminaryContext");
|
|
96
|
+
assert.strictEqual(oBinding.bTransitionMessagesOnly, true);
|
|
95
97
|
});
|
|
96
98
|
|
|
97
|
-
|
|
98
99
|
//*********************************************************************************************
|
|
99
100
|
QUnit.test("constructor: with single Filter object", function (assert) {
|
|
100
101
|
var oApplicationFilter = new Filter("propertyPath", "GE", "foo"),
|
|
@@ -168,6 +169,7 @@ sap.ui.define([
|
|
|
168
169
|
assert.strictEqual(oBinding.iThreshold, 0);
|
|
169
170
|
assert.strictEqual(oBinding.bUseServersideApplicationFilters, false);
|
|
170
171
|
assert.strictEqual(oBinding.bUsePreliminaryContext, "bPreliminaryContext");
|
|
172
|
+
assert.strictEqual(oBinding.bTransitionMessagesOnly, false);
|
|
171
173
|
|
|
172
174
|
oModelMock.expects("checkFilterOperation").withExactArgs([]);
|
|
173
175
|
|
|
@@ -543,10 +545,12 @@ sap.ui.define([
|
|
|
543
545
|
var oBinding = {
|
|
544
546
|
oModel : {read : function () {}},
|
|
545
547
|
mRequestHandles : {},
|
|
548
|
+
_getHeaders() {},
|
|
546
549
|
getResolvedPath : function () {}
|
|
547
550
|
};
|
|
548
551
|
|
|
549
552
|
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~resolvedPath");
|
|
553
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
550
554
|
this.mock(oBinding.oModel).expects("read")
|
|
551
555
|
.withExactArgs("~resolvedPath", sinon.match.object.and(sinon.match.has("groupId"))
|
|
552
556
|
.and(sinon.match.has("success")).and(sinon.match.has("error")))
|
|
@@ -733,6 +737,7 @@ sap.ui.define([
|
|
|
733
737
|
oBinding = {
|
|
734
738
|
sGroupId : "~sGroupId",
|
|
735
739
|
oModel : oModel,
|
|
740
|
+
_getHeaders() {},
|
|
736
741
|
_getNavPath : function () {},
|
|
737
742
|
_processODataObject : function () {},
|
|
738
743
|
getPath : function () {},
|
|
@@ -745,8 +750,9 @@ sap.ui.define([
|
|
|
745
750
|
};
|
|
746
751
|
|
|
747
752
|
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~resolvedPath");
|
|
753
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
748
754
|
oExpectation = this.mock(oModel).expects("read").withExactArgs("~resolvedPath", {
|
|
749
|
-
error : sinon.match.func, groupId : "~sGroupId", success : sinon.match.func
|
|
755
|
+
error : sinon.match.func, groupId : "~sGroupId", headers : "~headers", success : sinon.match.func
|
|
750
756
|
}).returns("~readHandle");
|
|
751
757
|
|
|
752
758
|
// code under test
|
|
@@ -783,6 +789,7 @@ sap.ui.define([
|
|
|
783
789
|
oModel : oModel,
|
|
784
790
|
oRootContext : "~oldRootContext",
|
|
785
791
|
mRequestHandles : {},
|
|
792
|
+
_getHeaders() {},
|
|
786
793
|
fireDataReceived : function () {},
|
|
787
794
|
getResolvedPath : function () {}
|
|
788
795
|
},
|
|
@@ -790,8 +797,9 @@ sap.ui.define([
|
|
|
790
797
|
oExpectation;
|
|
791
798
|
|
|
792
799
|
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~resolvedPath");
|
|
800
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
793
801
|
oExpectation = this.mock(oModel).expects("read").withExactArgs("~resolvedPath", {
|
|
794
|
-
error : sinon.match.func, groupId : "~sGroupId", success : sinon.match.func
|
|
802
|
+
error : sinon.match.func, groupId : "~sGroupId", headers : "~headers", success : sinon.match.func
|
|
795
803
|
}).returns("~readHandle");
|
|
796
804
|
|
|
797
805
|
// code under test
|
|
@@ -1098,13 +1106,16 @@ sap.ui.define([
|
|
|
1098
1106
|
bSkipDataEvents : true,
|
|
1099
1107
|
aSorters : "~sorters",
|
|
1100
1108
|
iTotalCollectionCount : "~count",
|
|
1109
|
+
_getHeaders() {},
|
|
1101
1110
|
getResolvedPath : function () {}
|
|
1102
1111
|
},
|
|
1103
1112
|
aUrlParams = ["~custom"];
|
|
1104
1113
|
|
|
1105
1114
|
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~resolvedPath");
|
|
1115
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1106
1116
|
this.mock(oBinding.oModel).expects("read")
|
|
1107
1117
|
.withExactArgs("~resolvedPath", {
|
|
1118
|
+
headers : "~headers",
|
|
1108
1119
|
urlParameters : sinon.match.same(aUrlParams)
|
|
1109
1120
|
.and(sinon.match(["~custom", "$top=~count"])),
|
|
1110
1121
|
success : sinon.match.func,
|
|
@@ -1130,13 +1141,16 @@ sap.ui.define([
|
|
|
1130
1141
|
bSkipDataEvents : true,
|
|
1131
1142
|
aSorters : "~sorters",
|
|
1132
1143
|
iTotalCollectionCount : vTotalCollectionCount,
|
|
1144
|
+
_getHeaders() {},
|
|
1133
1145
|
getResolvedPath : function () {}
|
|
1134
1146
|
},
|
|
1135
1147
|
aUrlParams = ["~custom"];
|
|
1136
1148
|
|
|
1137
1149
|
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~resolvedPath");
|
|
1150
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1138
1151
|
this.mock(oBinding.oModel).expects("read")
|
|
1139
1152
|
.withExactArgs("~resolvedPath", {
|
|
1153
|
+
headers : "~headers",
|
|
1140
1154
|
urlParameters : sinon.match.same(aUrlParams)
|
|
1141
1155
|
.and(sinon.match(["~custom"])),
|
|
1142
1156
|
success : sinon.match.func,
|
|
@@ -1252,4 +1266,181 @@ sap.ui.define([
|
|
|
1252
1266
|
assert.deepEqual(oBinding.getFilterInfo(), null);
|
|
1253
1267
|
assert.deepEqual(oBinding.aApplicationFilters, []);
|
|
1254
1268
|
});
|
|
1269
|
+
|
|
1270
|
+
//*********************************************************************************************
|
|
1271
|
+
QUnit.test("_loadSubTree: success case", function (assert) {
|
|
1272
|
+
var oLoadSubTreePromise, oReadExpectation,
|
|
1273
|
+
oBinding = {
|
|
1274
|
+
bHasTreeAnnotations: true,
|
|
1275
|
+
oModel: {
|
|
1276
|
+
callAfterUpdate: function () {},
|
|
1277
|
+
getKey: function () {},
|
|
1278
|
+
read: function () {}
|
|
1279
|
+
},
|
|
1280
|
+
mRequestHandles: {},
|
|
1281
|
+
bSkipDataEvents: true,
|
|
1282
|
+
aSorters: "~aSorters",
|
|
1283
|
+
_createKeyMap: function () {},
|
|
1284
|
+
_getHeaders() {},
|
|
1285
|
+
_importCompleteKeysHierarchy: function () {},
|
|
1286
|
+
_updateNodeKey: function () {},
|
|
1287
|
+
getResolvedPath: function () {}
|
|
1288
|
+
},
|
|
1289
|
+
oBindingMock = this.mock(oBinding),
|
|
1290
|
+
oData = {results: ["~oData"]},
|
|
1291
|
+
oModelMock = this.mock(oBinding.oModel),
|
|
1292
|
+
aParams = ["~sTreeBindingParams"];
|
|
1293
|
+
|
|
1294
|
+
oBindingMock.expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1295
|
+
oBindingMock.expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1296
|
+
oReadExpectation = oModelMock.expects("read")
|
|
1297
|
+
.withExactArgs("~sAbsolutePath", {
|
|
1298
|
+
error: sinon.match.func,
|
|
1299
|
+
groupId: undefined,
|
|
1300
|
+
headers: "~headers",
|
|
1301
|
+
sorters: "~aSorters",
|
|
1302
|
+
success: sinon.match.func,
|
|
1303
|
+
urlParameters: sinon.match.same(aParams)
|
|
1304
|
+
})
|
|
1305
|
+
.returns("~oReadHandle");
|
|
1306
|
+
|
|
1307
|
+
// code under test
|
|
1308
|
+
oLoadSubTreePromise = ODataTreeBinding.prototype._loadSubTree.call(oBinding, "~oNode", aParams);
|
|
1309
|
+
|
|
1310
|
+
assert.deepEqual(oBinding.mRequestHandles, {"loadSubTree-~sTreeBindingParams": "~oReadHandle"});
|
|
1311
|
+
|
|
1312
|
+
oModelMock.expects("getKey").withExactArgs("~oData").returns("~sParentKey");
|
|
1313
|
+
oBindingMock.expects("_updateNodeKey").withExactArgs("~oNode", "~sParentKey");
|
|
1314
|
+
oBindingMock.expects("_createKeyMap").withExactArgs(sinon.match.same(oData.results), true).returns("~mKeys");
|
|
1315
|
+
oBindingMock.expects("_importCompleteKeysHierarchy").withExactArgs("~mKeys");
|
|
1316
|
+
oModelMock.expects("callAfterUpdate").withExactArgs(sinon.match.func);
|
|
1317
|
+
|
|
1318
|
+
// code under test
|
|
1319
|
+
oReadExpectation.args[0][1].success(oData);
|
|
1320
|
+
|
|
1321
|
+
assert.deepEqual(oBinding.mRequestHandles, {});
|
|
1322
|
+
assert.deepEqual(oBinding.bNeedsUpdate, true);
|
|
1323
|
+
|
|
1324
|
+
return oLoadSubTreePromise.then(function (oData0) {
|
|
1325
|
+
assert.strictEqual(oData0, oData);
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
//*********************************************************************************************
|
|
1330
|
+
QUnit.test("_loadSubNodes: calls _getHeaders", function (assert) {
|
|
1331
|
+
const oBinding = {
|
|
1332
|
+
oFinalLengths: {"~sNodeId": 5},
|
|
1333
|
+
oModel: {
|
|
1334
|
+
read() {}
|
|
1335
|
+
},
|
|
1336
|
+
mRequestHandles: {},
|
|
1337
|
+
bSkipDataEvents: true,
|
|
1338
|
+
_getHeaders() {}
|
|
1339
|
+
};
|
|
1340
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1341
|
+
this.mock(oBinding.oModel).expects("read")
|
|
1342
|
+
.withExactArgs("~sNodeId", {
|
|
1343
|
+
error: sinon.match.func,
|
|
1344
|
+
groupId: undefined, // not relevant for this test
|
|
1345
|
+
headers: "~headers",
|
|
1346
|
+
sorters: undefined, // not relevant for this test
|
|
1347
|
+
success: sinon.match.func,
|
|
1348
|
+
urlParameters: "~aParams"
|
|
1349
|
+
})
|
|
1350
|
+
.returns("~oReadHandle");
|
|
1351
|
+
|
|
1352
|
+
// code under test - start index, length and threshold are not relevant for this use case
|
|
1353
|
+
ODataTreeBinding.prototype._loadSubNodes.call(oBinding, "~sNodeId", /*iStartIndex*/undefined,
|
|
1354
|
+
/*iLength*/undefined, /*iThreshold*/undefined, "~aParams");
|
|
1355
|
+
|
|
1356
|
+
assert.strictEqual(oBinding.bSkipDataEvents, false);
|
|
1357
|
+
assert.deepEqual(oBinding.mRequestHandles, {"~sNodeId-undefined-undefined-undefined": "~oReadHandle"});
|
|
1358
|
+
});
|
|
1359
|
+
/** @deprecated As of version 1.120.0, reason OperationMode.Auto */
|
|
1360
|
+
QUnit.test("_getCountForCollection: calls _getHeaders", function () {
|
|
1361
|
+
const oBinding = {
|
|
1362
|
+
sCountMode: CountMode.Inline,
|
|
1363
|
+
bHasTreeAnnotations: true,
|
|
1364
|
+
oModel: {
|
|
1365
|
+
read() {}
|
|
1366
|
+
},
|
|
1367
|
+
sOperationMode: OperationMode.Auto,
|
|
1368
|
+
_getHeaders() {},
|
|
1369
|
+
getResolvedPath() {}
|
|
1370
|
+
};
|
|
1371
|
+
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1372
|
+
this.mock(oBinding).expects("_getHeaders").withExactArgs().returns("~headers");
|
|
1373
|
+
this.mock(oBinding.oModel).expects("read")
|
|
1374
|
+
.withExactArgs("~sAbsolutePath", {
|
|
1375
|
+
error: sinon.match.func,
|
|
1376
|
+
groupId: undefined, // not relevant for this test
|
|
1377
|
+
headers: "~headers",
|
|
1378
|
+
success: sinon.match.func,
|
|
1379
|
+
urlParameters: ["$top=0", "$inlinecount=allpages"]
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
// code under test
|
|
1383
|
+
ODataTreeBinding.prototype._getCountForCollection.call(oBinding);
|
|
1384
|
+
});
|
|
1385
|
+
/** @deprecated As of version 1.120.0, reason OperationMode.Auto */
|
|
1386
|
+
QUnit.test("_getCountForCollection: don't call _getHeaders for $count request", function () {
|
|
1387
|
+
const oBinding = {
|
|
1388
|
+
sCountMode: CountMode.Request,
|
|
1389
|
+
bHasTreeAnnotations: true,
|
|
1390
|
+
oModel: {
|
|
1391
|
+
read() {}
|
|
1392
|
+
},
|
|
1393
|
+
sOperationMode: OperationMode.Auto,
|
|
1394
|
+
getResolvedPath() {}
|
|
1395
|
+
};
|
|
1396
|
+
this.mock(oBinding).expects("getResolvedPath").withExactArgs().returns("~sAbsolutePath");
|
|
1397
|
+
this.mock(oBinding.oModel).expects("read")
|
|
1398
|
+
.withExactArgs("~sAbsolutePath/$count", {
|
|
1399
|
+
error: sinon.match.func,
|
|
1400
|
+
groupId: undefined, // not relevant for this test
|
|
1401
|
+
headers: undefined,
|
|
1402
|
+
success: sinon.match.func,
|
|
1403
|
+
urlParameters: []
|
|
1404
|
+
});
|
|
1405
|
+
|
|
1406
|
+
// code under test
|
|
1407
|
+
ODataTreeBinding.prototype._getCountForCollection.call(oBinding);
|
|
1408
|
+
});
|
|
1409
|
+
|
|
1410
|
+
//*********************************************************************************************
|
|
1411
|
+
QUnit.test("_getCountForNodeId: don't call _getHeaders for $count request", function () {
|
|
1412
|
+
const oBinding = {
|
|
1413
|
+
oModel: {
|
|
1414
|
+
read() {}
|
|
1415
|
+
},
|
|
1416
|
+
getFilterParams() {}
|
|
1417
|
+
};
|
|
1418
|
+
this.mock(oBinding).expects("getFilterParams").withExactArgs().returns(undefined);
|
|
1419
|
+
this.mock(oBinding.oModel).expects("read")
|
|
1420
|
+
.withExactArgs("~sNodeId/$count", {
|
|
1421
|
+
error: sinon.match.func,
|
|
1422
|
+
groupId: undefined, // not relevant for this test
|
|
1423
|
+
sorters: undefined, // not relevant for this test
|
|
1424
|
+
success: sinon.match.func,
|
|
1425
|
+
urlParameters: []
|
|
1426
|
+
});
|
|
1427
|
+
|
|
1428
|
+
// code under test
|
|
1429
|
+
ODataTreeBinding.prototype._getCountForNodeId.call(oBinding, "~sNodeId");
|
|
1430
|
+
});
|
|
1431
|
+
|
|
1432
|
+
//*********************************************************************************************
|
|
1433
|
+
[
|
|
1434
|
+
{bTransitionMessagesOnly: true, result: {"sap-messages": "transientOnly"}},
|
|
1435
|
+
{bTransitionMessagesOnly: false, result: undefined}
|
|
1436
|
+
].forEach((oFixture) => {
|
|
1437
|
+
QUnit.test("_getHeaders: bTransitionMessagesOnly=" + oFixture.bTransitionMessagesOnly, function (assert) {
|
|
1438
|
+
const oBinding = {
|
|
1439
|
+
bTransitionMessagesOnly: oFixture.bTransitionMessagesOnly
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
// code under test
|
|
1443
|
+
assert.deepEqual(ODataTreeBinding.prototype._getHeaders.call(oBinding), oFixture.result);
|
|
1444
|
+
});
|
|
1445
|
+
});
|
|
1255
1446
|
});
|
|
@@ -15,9 +15,10 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/model/DataState",
|
|
16
16
|
"sap/ui/model/json/JSONModel",
|
|
17
17
|
"sap/ui/model/odata/v2/ODataModel",
|
|
18
|
+
"sap/ui/model/type/Currency",
|
|
18
19
|
"sap/ui/model/type/Float"
|
|
19
20
|
], function(deepEqual, deepExtend, Button, Input, Text, Configuration, library, Messaging, ControlMessageProcessor,
|
|
20
|
-
Message, MockServer, VerticalLayout, DataState, JSONModel, ODataModel, Float) {
|
|
21
|
+
Message, MockServer, VerticalLayout, DataState, JSONModel, ODataModel, Currency, Float) {
|
|
21
22
|
"use strict";
|
|
22
23
|
|
|
23
24
|
// shortcut for sap.ui.core.MessageType
|
|
@@ -1565,7 +1566,7 @@ sap.ui.define([
|
|
|
1565
1566
|
{ path: "/ProductSet('AD-1000')/Price" },
|
|
1566
1567
|
{ path: "/ProductSet('AD-1000')/CurrencyCode" }
|
|
1567
1568
|
],
|
|
1568
|
-
type:
|
|
1569
|
+
type: Currency.getMetadata().getName()
|
|
1569
1570
|
}
|
|
1570
1571
|
});
|
|
1571
1572
|
//let the message manager control the vertical layout for messages
|