@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
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
// Provides an abstraction for BindingInfos
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/base/config",
|
|
10
|
-
"sap/ui/
|
|
10
|
+
"sap/ui/base/DesignTime",
|
|
11
11
|
"sap/ui/core/getCompatibilityVersion",
|
|
12
12
|
"sap/ui/base/BindingParser",
|
|
13
13
|
"sap/ui/model/BindingMode",
|
|
14
14
|
"sap/base/Log"
|
|
15
15
|
],
|
|
16
|
-
function(BaseConfig,
|
|
16
|
+
function(BaseConfig, DesignTime, getCompatibilityVersion, BindingParser, BindingMode) {
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
19
19
|
// Marker to not 'forget' ui5Objects
|
|
@@ -205,7 +205,7 @@ sap.ui.define([
|
|
|
205
205
|
* @deprecated As of Version 1.119
|
|
206
206
|
*/
|
|
207
207
|
this.oParser = getBindingSyntax() === "simple" ? BindingParser.simpleParser : BindingParser.complexParser;
|
|
208
|
-
if (
|
|
208
|
+
if (DesignTime.isDesignModeEnabled() == true) {
|
|
209
209
|
BindingParser._keepBindingStrings = true;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
@@ -213,7 +213,7 @@ sap.ui.define([
|
|
|
213
213
|
* The name is resolved locally (against oEnv.oContext) if it starts with a '.', otherwise against
|
|
214
214
|
* the oEnv.mLocals and if it's still not resolved, against the global context (window).
|
|
215
215
|
*
|
|
216
|
-
* The resolution is done
|
|
216
|
+
* The resolution is done in place. If the name resolves to a function, it is assumed to be the
|
|
217
217
|
* constructor of a data type. A new instance will be created, using the values of the
|
|
218
218
|
* properties 'constraints' and 'formatOptions' as parameters of the constructor.
|
|
219
219
|
* Both properties will be removed from <code>o</code>.
|
|
@@ -225,7 +225,10 @@ sap.ui.define([
|
|
|
225
225
|
var sType = o.type;
|
|
226
226
|
if (typeof sType === "string" ) {
|
|
227
227
|
FNType = resolveReference(sType, mVariables, {
|
|
228
|
-
bindContext: false
|
|
228
|
+
bindContext: false,
|
|
229
|
+
// only when types aren't expected to be loaded asynchronously, we try to use a
|
|
230
|
+
// probing-require to fetch it in case it can't be resolved with 'mVariables'
|
|
231
|
+
useProbingRequire: !oEnv.aTypePromises
|
|
229
232
|
});
|
|
230
233
|
|
|
231
234
|
var fnInstantiateType = function(TypeClass) {
|
|
@@ -407,6 +407,8 @@ sap.ui.define([
|
|
|
407
407
|
return oType;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
const mEnumRegistry = Object.create(null);
|
|
411
|
+
|
|
410
412
|
function createEnumType(sTypeName, oEnum) {
|
|
411
413
|
|
|
412
414
|
var mValues = {},
|
|
@@ -524,11 +526,26 @@ sap.ui.define([
|
|
|
524
526
|
mTypes[sTypeName] = oType;
|
|
525
527
|
}
|
|
526
528
|
} else if ( sTypeName !== 'array') {
|
|
527
|
-
|
|
529
|
+
// check if we have a valid pre-registered enum
|
|
530
|
+
oType = mEnumRegistry[sTypeName];
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* If an enum was not registered beforehand (either explicitly via registerEnum or
|
|
534
|
+
* via a Proxy in the library namespace), we have to look it up in the global object.
|
|
535
|
+
* @deprecated since 1.120
|
|
536
|
+
*/
|
|
537
|
+
if (oType == null) {
|
|
538
|
+
oType = ObjectPath.get(sTypeName);
|
|
539
|
+
if (oType != null) {
|
|
540
|
+
Log.error(`The type '${sTypeName}' was accessed via globals. Defining enums via globals is deprecated. Please require the module 'sap/ui/base/DataType' and call the static 'DataType.registerEnum' API.`);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
528
544
|
if ( oType instanceof DataType ) {
|
|
529
545
|
mTypes[sTypeName] = oType;
|
|
530
546
|
} else if ( isPlainObject(oType) ) {
|
|
531
547
|
oType = mTypes[sTypeName] = createEnumType(sTypeName, oType);
|
|
548
|
+
delete mEnumRegistry[sTypeName];
|
|
532
549
|
} else if ( oType ) {
|
|
533
550
|
Log.warning("'" + sTypeName + "' is not a valid data type. Falling back to type 'any'.");
|
|
534
551
|
oType = mTypes.any;
|
|
@@ -636,6 +653,45 @@ sap.ui.define([
|
|
|
636
653
|
});
|
|
637
654
|
};
|
|
638
655
|
|
|
656
|
+
/**
|
|
657
|
+
* Registers an enum under the given name.
|
|
658
|
+
* With version 2.0, registering an enum becomes mandatory when said enum is to be used in
|
|
659
|
+
* properties of a {@link sap.ui.base.ManagedObject ManagedObject} subclass.
|
|
660
|
+
*
|
|
661
|
+
* Example:<br>
|
|
662
|
+
* <pre>
|
|
663
|
+
* DataType.registerEnum("my.enums.Sample", {
|
|
664
|
+
* "A": "A",
|
|
665
|
+
* "B": "B",
|
|
666
|
+
* ...
|
|
667
|
+
* });
|
|
668
|
+
* </pre>
|
|
669
|
+
*
|
|
670
|
+
* @param {string} sTypeName the type name in dot syntax, e.g. sap.ui.my.EnumType
|
|
671
|
+
* @param {object} mContent the enum content
|
|
672
|
+
* @public
|
|
673
|
+
* @since 1.120.0
|
|
674
|
+
*/
|
|
675
|
+
DataType.registerEnum = function(sTypeName, mContent) {
|
|
676
|
+
mEnumRegistry[sTypeName] = mContent;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Checks if the given object contains only static content
|
|
681
|
+
* and can be regarded as an enum candidate.
|
|
682
|
+
*
|
|
683
|
+
* @param {object} oObject the enum candidate
|
|
684
|
+
* @returns {boolean} whether the given object can be regarded as an enum candidate
|
|
685
|
+
* @private
|
|
686
|
+
* @ui5-restricted sap.ui.core.Lib
|
|
687
|
+
*/
|
|
688
|
+
DataType._isEnumCandidate = function(oObject) {
|
|
689
|
+
return !Object.keys(oObject).some((key) => {
|
|
690
|
+
const propertyType = typeof oObject[key];
|
|
691
|
+
return propertyType === "object" || propertyType === "function";
|
|
692
|
+
});
|
|
693
|
+
};
|
|
694
|
+
|
|
639
695
|
/**
|
|
640
696
|
* @param {string} sType name of type to check
|
|
641
697
|
* @returns {boolean} whether the given type is known to be an interface type
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/base/config"
|
|
8
|
+
], (
|
|
9
|
+
BaseConfig
|
|
10
|
+
) => {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Provides DesignTime related config options
|
|
15
|
+
*
|
|
16
|
+
* @alias module:sap/ui/base/DesignTime
|
|
17
|
+
* @namespace
|
|
18
|
+
* @private
|
|
19
|
+
* @ui5-restricted sap.ui.core.Core, sap.watt, com.sap.webide, sap.ui.fl, sap.ui.rta, sap.ui.comp, SAP Business Application Studio
|
|
20
|
+
* @since 1.120.0
|
|
21
|
+
*/
|
|
22
|
+
const DesignTime = {
|
|
23
|
+
/**
|
|
24
|
+
* Return whether the design mode is active or not.
|
|
25
|
+
*
|
|
26
|
+
* @returns {boolean} whether the design mode is active or not.
|
|
27
|
+
* @private
|
|
28
|
+
* @ui5-restricted sap.ui.core.Core, sap.watt, com.sap.webide, sap.ui.fl, sap.ui.rta, sap.ui.comp, SAP Business Application Studio
|
|
29
|
+
* @since 1.120.0
|
|
30
|
+
*/
|
|
31
|
+
isDesignModeEnabled() {
|
|
32
|
+
return BaseConfig.get({
|
|
33
|
+
name: "sapUiXxDesignMode",
|
|
34
|
+
type: BaseConfig.Type.Boolean,
|
|
35
|
+
external: true,
|
|
36
|
+
freeze: true
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Return whether the activation of the controller code is suppressed.
|
|
41
|
+
*
|
|
42
|
+
* @returns {boolean} whether the activation of the controller code is suppressed or not
|
|
43
|
+
* @private
|
|
44
|
+
* @ui5-restricted sap.watt, com.sap.webide
|
|
45
|
+
* @since 1.120.0
|
|
46
|
+
*/
|
|
47
|
+
isControllerCodeDeactivationSuppressed() {
|
|
48
|
+
return BaseConfig.get({
|
|
49
|
+
name: "sapUiXxSuppressDeactivationOfControllerCode",
|
|
50
|
+
type: BaseConfig.Type.Boolean,
|
|
51
|
+
external: true,
|
|
52
|
+
freeze: true
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Return whether the controller code is deactivated. During design mode the.
|
|
57
|
+
*
|
|
58
|
+
* @returns {boolean} whether the activation of the controller code is suppressed or not
|
|
59
|
+
* @private
|
|
60
|
+
* @ui5-restricted sap.watt, com.sap.webide
|
|
61
|
+
* @since 1.120.0
|
|
62
|
+
*/
|
|
63
|
+
isControllerCodeDeactivated() {
|
|
64
|
+
return DesignTime.isDesignModeEnabled() && !DesignTime.isControllerCodeDeactivationSuppressed();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return DesignTime;
|
|
69
|
+
});
|
package/src/sap/ui/base/Event.js
CHANGED
|
@@ -23,7 +23,7 @@ sap.ui.define(['./Object', "sap/base/assert"],
|
|
|
23
23
|
* @extends sap.ui.base.Object
|
|
24
24
|
* @implements sap.ui.base.Poolable
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.120.0
|
|
27
27
|
* @alias sap.ui.base.Event
|
|
28
28
|
* @public
|
|
29
29
|
* @template {Object<string,any>} [ParamsType=object]
|
|
@@ -59,7 +59,7 @@ sap.ui.define(['./Object', "sap/base/assert"],
|
|
|
59
59
|
*/
|
|
60
60
|
Event.prototype.init = function(sId, oSource, oParameters) {
|
|
61
61
|
assert(typeof sId === "string", "Event.init: sId must be a string");
|
|
62
|
-
assert(BaseObject.
|
|
62
|
+
assert(BaseObject.isObjectA(oSource, 'sap.ui.base.EventProvider'), "Event.init: oSource must be an EventProvider");
|
|
63
63
|
|
|
64
64
|
this.sId = sId;
|
|
65
65
|
this.oSource = oSource;
|
|
@@ -46,23 +46,44 @@ sap.ui.define([
|
|
|
46
46
|
});
|
|
47
47
|
},
|
|
48
48
|
"compare": function () {
|
|
49
|
-
var oODataUtils = sap.ui.require("sap/ui/model/odata/v4/ODataUtils")
|
|
50
|
-
|
|
49
|
+
var oODataUtils = sap.ui.require("sap/ui/model/odata/v4/ODataUtils");
|
|
50
|
+
|
|
51
|
+
/** @deprecated As of version 1.120.0 */
|
|
52
|
+
if (!oODataUtils) {
|
|
53
|
+
oODataUtils = sap.ui.requireSync("sap/ui/model/odata/v4/ODataUtils");
|
|
54
|
+
}
|
|
55
|
+
if (!oODataUtils) {
|
|
56
|
+
throw new TypeError("Expression uses 'odata.compare' which requires to"
|
|
57
|
+
+ " import 'sap/ui/model/odata/v4/ODataUtils' in advance");
|
|
58
|
+
}
|
|
51
59
|
|
|
52
60
|
return oODataUtils.compare.apply(oODataUtils, arguments);
|
|
53
61
|
},
|
|
54
62
|
"fillUriTemplate": function (sExpression, mData) {
|
|
63
|
+
/** @deprecated As of version 1.120.0 */
|
|
55
64
|
if (!URI.expand) {
|
|
56
65
|
// probing is not required since the presence of URI.expand is the indicator
|
|
57
66
|
// that URITemplate has been loaded already
|
|
58
67
|
/* URITemplate = */ sap.ui.requireSync("sap/ui/thirdparty/URITemplate");
|
|
59
68
|
}
|
|
69
|
+
if (!URI.expand) {
|
|
70
|
+
throw new TypeError("Expression uses 'odata.fillUriTemplate' which requires"
|
|
71
|
+
+ " to import 'sap/ui/thirdparty/URITemplate' in advance");
|
|
72
|
+
}
|
|
60
73
|
|
|
61
74
|
return URI.expand(sExpression.trim(), mData).toString();
|
|
62
75
|
},
|
|
63
76
|
"uriEncode": function () {
|
|
64
|
-
var oODataUtils = sap.ui.require("sap/ui/model/odata/ODataUtils")
|
|
65
|
-
|
|
77
|
+
var oODataUtils = sap.ui.require("sap/ui/model/odata/ODataUtils");
|
|
78
|
+
|
|
79
|
+
/** @deprecated As of version 1.120.0 */
|
|
80
|
+
if (!oODataUtils) {
|
|
81
|
+
oODataUtils = sap.ui.requireSync("sap/ui/model/odata/ODataUtils");
|
|
82
|
+
}
|
|
83
|
+
if (!oODataUtils) {
|
|
84
|
+
throw new TypeError("Expression uses 'odata.uriEncode' which requires to"
|
|
85
|
+
+ " import 'sap/ui/model/odata/ODataUtils' in advance");
|
|
86
|
+
}
|
|
66
87
|
|
|
67
88
|
return oODataUtils.formatValue.apply(oODataUtils, arguments);
|
|
68
89
|
}
|
|
@@ -28,7 +28,7 @@ sap.ui.define(['sap/ui/base/Object'], function(BaseObject) {
|
|
|
28
28
|
* no internals of the class can be accessed.
|
|
29
29
|
*
|
|
30
30
|
* @author Malte Wedel, Daniel Brinkmann
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.120.0
|
|
32
32
|
* @param {sap.ui.base.Object} oObject
|
|
33
33
|
* Object for which a facade should be created
|
|
34
34
|
* @param {string[]} aMethods
|
|
@@ -61,8 +61,10 @@ sap.ui.define([
|
|
|
61
61
|
* The possible values for a setting depend on its kind:
|
|
62
62
|
* <ul>
|
|
63
63
|
* <li>for simple properties, the value has to match the documented type of the property (no type conversion occurs)</li>
|
|
64
|
-
* <li>for 0..1 aggregations, the value has to be an instance of the aggregated type
|
|
65
|
-
*
|
|
64
|
+
* <li>for 0..1 aggregations, the value has to be an instance of the aggregated type, or an object literal from which,
|
|
65
|
+
* the default class of the aggregation (or the corresponding aggregation type as fallback) will be instantiated.</li>
|
|
66
|
+
* <li>for 0..n aggregations, the value has to be an array of instances of the aggregated type, a single instance or
|
|
67
|
+
* an object literal from which the default class will be instantiated.</li>
|
|
66
68
|
* <li>for 0..1 associations, an instance of the associated type or an id (string) is accepted</li>
|
|
67
69
|
* <li>for 0..n associations, an array of instances of the associated type or of IDs is accepted</li>
|
|
68
70
|
* <li>for events, either a function (event handler) is accepted or an array of length 2
|
|
@@ -107,6 +109,13 @@ sap.ui.define([
|
|
|
107
109
|
* Note that when setting string values, any curly braces in those values need to be escaped, so they are not
|
|
108
110
|
* interpreted as binding expressions. Use {@link #escapeSettingsValue} to do so.
|
|
109
111
|
*
|
|
112
|
+
* <b>Note:</b>
|
|
113
|
+
* As of version 1.120, providing aggregation content via an object literal is deprecated,
|
|
114
|
+
* in case the object's type is given via the property 'Type' as a string, or is derived via the defined type of the aggregation.
|
|
115
|
+
* Additionally, as of version 1.120, a ManagedObject subclass can specify a <code>defaultClass</code>, e.g. for cases where only a single class is valid.
|
|
116
|
+
* Please refer to the {@link sap.ui.base.ManagedObject.MetadataOptions.Aggregation Aggregation} documentation for more details on the
|
|
117
|
+
* <code>defaultClass</code>.
|
|
118
|
+
*
|
|
110
119
|
* Besides the settings documented below, ManagedObject itself supports the following special settings:
|
|
111
120
|
* <ul>
|
|
112
121
|
* <li><code>id : <i>sap.ui.core.ID</i></code> an ID for the new instance. Some subclasses (Element, Component) require the id
|
|
@@ -251,7 +260,7 @@ sap.ui.define([
|
|
|
251
260
|
*
|
|
252
261
|
* @extends sap.ui.base.EventProvider
|
|
253
262
|
* @author SAP SE
|
|
254
|
-
* @version 1.
|
|
263
|
+
* @version 1.120.0
|
|
255
264
|
* @public
|
|
256
265
|
* @alias sap.ui.base.ManagedObject
|
|
257
266
|
*/
|
|
@@ -444,9 +453,10 @@ sap.ui.define([
|
|
|
444
453
|
|
|
445
454
|
constructor : function(sId, mSettings, oScope) {
|
|
446
455
|
|
|
447
|
-
var that = this;
|
|
448
|
-
|
|
449
456
|
EventProvider.call(this); // no use to pass our arguments
|
|
457
|
+
|
|
458
|
+
const that = this;
|
|
459
|
+
|
|
450
460
|
if ( typeof sId !== 'string' && sId !== undefined ) {
|
|
451
461
|
// shift arguments in case sId was missing, but mSettings was given
|
|
452
462
|
oScope = mSettings;
|
|
@@ -797,6 +807,8 @@ sap.ui.define([
|
|
|
797
807
|
*
|
|
798
808
|
* @property {string} [type='sap.ui.core.Control'] Type of the new aggregation. Must be the full global name of a ManagedObject subclass
|
|
799
809
|
* or a UI5 interface (in dot notation, e.g. 'sap.m.Button').
|
|
810
|
+
* @property {function} [defaultClass] The default class for the aggregation. If aggregation content is created from a plain object
|
|
811
|
+
* and no explicit 'Type' is given (capital 'T'), the default class will be instantiated.
|
|
800
812
|
* @property {boolean} [multiple=true] Whether the aggregation is a 0..1 (false) or a 0..n aggregation (true), defaults to true
|
|
801
813
|
* @property {string} [singularName] Singular name for 0..n aggregations. For 0..n aggregations the name by convention should be the plural name.
|
|
802
814
|
* Methods affecting multiple objects in an aggregation will use the plural name (e.g. getItems(), whereas methods that deal with a single object will use
|
|
@@ -1001,51 +1013,113 @@ sap.ui.define([
|
|
|
1001
1013
|
*
|
|
1002
1014
|
* If <code>vData</code> is a managed object already, that object is returned.
|
|
1003
1015
|
* If <code>vData</code> is an object (literal), then a new object is created with <code>vData</code>
|
|
1004
|
-
* as settings.
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1016
|
+
* as settings.
|
|
1017
|
+
*
|
|
1018
|
+
* Deprecated usage, in case the type of the object is determined:
|
|
1019
|
+
* <ul>
|
|
1020
|
+
* <li>by a property of name <code>Type</code> (capital 'T') in the <code>vData</code></li>
|
|
1021
|
+
* <li>by a property <code>type</code> (lower case 't') in the <code>oKeyInfo</code> object</li>
|
|
1022
|
+
* </ul>
|
|
1023
|
+
*
|
|
1024
|
+
* In both cases, the type must be specified by the dot separated name of the class.
|
|
1008
1025
|
*
|
|
1009
1026
|
* @param {sap.ui.base.ManagedObject|object} vData
|
|
1010
|
-
* The data to create the object from
|
|
1027
|
+
* The data to create the object from. Used as constructor argument.
|
|
1011
1028
|
* @param {sap.ui.base.ManagedObject.MetadataOptions.Aggregation} [oKeyInfo]
|
|
1012
|
-
* Info object for the aggregation to which the created object will be added;
|
|
1013
|
-
* serves as
|
|
1029
|
+
* Info object for the aggregation to which the created object will be added during an applySettings() call;
|
|
1030
|
+
* serves as the source for determining the type of the object to be created;
|
|
1031
|
+
* Please refer to the {@link sap.ui.base.ManagedObject.MetadataOptions.Aggregation} property 'defaultClass'
|
|
1032
|
+
* for more information.
|
|
1014
1033
|
* @param {object} [oScope]
|
|
1015
1034
|
* Scope object to resolve types and formatters in bindings
|
|
1016
1035
|
* @returns {sap.ui.base.ManagedObject}
|
|
1017
1036
|
* The newly created <code>ManagedObject</code>
|
|
1018
1037
|
* @throws {Error}
|
|
1019
1038
|
* When there's not enough type information to create an instance from the given data
|
|
1020
|
-
* @
|
|
1021
|
-
* @static
|
|
1022
|
-
* @ts-skip
|
|
1039
|
+
* @private
|
|
1023
1040
|
*/
|
|
1024
|
-
|
|
1041
|
+
function makeObject(vData, oKeyInfo, oScope) {
|
|
1025
1042
|
if ( !vData || vData instanceof ManagedObject || typeof vData !== "object" || vData instanceof String) {
|
|
1026
1043
|
return vData;
|
|
1027
1044
|
}
|
|
1028
1045
|
|
|
1046
|
+
/**
|
|
1047
|
+
* Retrieval of class constructor via global (class name string in dot notation).
|
|
1048
|
+
* @deprecated since 1.120
|
|
1049
|
+
*/
|
|
1029
1050
|
function getClass(vType) {
|
|
1030
1051
|
if ( typeof vType === "function" ) {
|
|
1031
1052
|
return vType;
|
|
1032
1053
|
}
|
|
1033
1054
|
if (typeof vType === "string" ) {
|
|
1034
|
-
|
|
1055
|
+
const oType = ObjectPath.get(vType);
|
|
1056
|
+
if (oType != null) {
|
|
1057
|
+
Log.error(`Defining the object type ('${vType}') via its string name is deprecated, since it leads to accesses to the global namespace. ` +
|
|
1058
|
+
`The object type either stems from an explicitly given 'Type' value or was inferred from the default aggregation type. ` +
|
|
1059
|
+
`Please require the respective object type module beforehand. ` +
|
|
1060
|
+
`For control development, please also refer to the runtime metadata property 'defaultClass', which allows you to specify a default aggregation class type via constructor reference.`);
|
|
1061
|
+
}
|
|
1062
|
+
return oType;
|
|
1035
1063
|
}
|
|
1036
1064
|
}
|
|
1037
1065
|
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1066
|
+
let FnClass;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* string notation via 'Type' (used by the deprecated JSONView).
|
|
1070
|
+
* @deprecated since 1.120
|
|
1071
|
+
*/
|
|
1072
|
+
FnClass = getClass(vData.Type);
|
|
1073
|
+
|
|
1074
|
+
FnClass ??= oKeyInfo?.defaultClass;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* The aggregation type (string) is used as a fallback in case no 'Type' is given,
|
|
1078
|
+
* and no default class is defined.
|
|
1079
|
+
* @deprecated since 1.120
|
|
1080
|
+
*/
|
|
1081
|
+
FnClass ??= getClass(oKeyInfo?.type);
|
|
1082
|
+
|
|
1083
|
+
if ( typeof FnClass === "function" ) {
|
|
1084
|
+
return new FnClass(vData, oScope);
|
|
1041
1085
|
}
|
|
1042
1086
|
|
|
1043
1087
|
// we don't know how to create the ManagedObject from vData, so fail
|
|
1044
|
-
// extension points could be integrated here
|
|
1045
1088
|
var message = "Don't know how to create a ManagedObject from " + vData + " (" + (typeof vData) + ")";
|
|
1046
1089
|
Log.fatal(message);
|
|
1047
1090
|
throw new Error(message);
|
|
1048
|
-
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Creates a new ManagedObject from the given data.
|
|
1095
|
+
*
|
|
1096
|
+
* If <code>vData</code> is a managed object already, that object is returned.
|
|
1097
|
+
* If <code>vData</code> is an object (literal), then a new object is created with <code>vData</code>
|
|
1098
|
+
* as settings. The type of the object is either determined by a property of name <code>Type</code>
|
|
1099
|
+
* (capital 'T') in the <code>vData</code> or by a property <code>type</code> (lower case 't')
|
|
1100
|
+
* in the <code>oKeyInfo</code> object. In both cases, the type must be specified by the dot separated
|
|
1101
|
+
* name of the class.
|
|
1102
|
+
*
|
|
1103
|
+
* @param {sap.ui.base.ManagedObject|object} vData
|
|
1104
|
+
* The data to create the object from
|
|
1105
|
+
* @param {sap.ui.base.ManagedObject.MetadataOptions.Aggregation} [oKeyInfo]
|
|
1106
|
+
* Info object for the aggregation to which the created object will be added;
|
|
1107
|
+
* serves as a fallback for determining the type of the object to be created;
|
|
1108
|
+
* If used as a fallback, the usage of a string name as the object's type is deprecated.
|
|
1109
|
+
* Please refer to the {@link sap.ui.base.ManagedObject.MetadataOptions.Aggregation} property 'defaultClass'
|
|
1110
|
+
* to specify a default class type for an aggregation via a constructor function.
|
|
1111
|
+
* @param {object} [oScope]
|
|
1112
|
+
* Scope object to resolve types and formatters in bindings
|
|
1113
|
+
* @returns {sap.ui.base.ManagedObject}
|
|
1114
|
+
* The newly created <code>ManagedObject</code>
|
|
1115
|
+
* @throws {Error}
|
|
1116
|
+
* When there's not enough type information to create an instance from the given data
|
|
1117
|
+
* @public
|
|
1118
|
+
* @deprecated Since 1.120, as it relies on global names and potentially synchronous code loading. Please invoke the constructor of the intended ManagedObject subclass directly.
|
|
1119
|
+
* @static
|
|
1120
|
+
* @ts-skip
|
|
1121
|
+
*/
|
|
1122
|
+
ManagedObject.create = makeObject;
|
|
1049
1123
|
|
|
1050
1124
|
/**
|
|
1051
1125
|
* A global preprocessor for the ID of a ManagedObject (used internally).
|
|
@@ -1169,7 +1243,6 @@ sap.ui.define([
|
|
|
1169
1243
|
var that = this,
|
|
1170
1244
|
oMetadata = this.getMetadata(),
|
|
1171
1245
|
mValidKeys = oMetadata.getJSONKeys(), // UID names required, they're part of the documented contract of applySettings
|
|
1172
|
-
makeObject = ManagedObject.create,
|
|
1173
1246
|
preprocessor = ManagedObject._fnSettingsPreprocessor,
|
|
1174
1247
|
sKey, oValue, oKeyInfo;
|
|
1175
1248
|
|
|
@@ -1211,7 +1284,7 @@ sap.ui.define([
|
|
|
1211
1284
|
if ( typeof mSettings.models !== "object" ) {
|
|
1212
1285
|
throw new Error("models must be a simple object");
|
|
1213
1286
|
}
|
|
1214
|
-
if ( BaseObject.
|
|
1287
|
+
if ( BaseObject.isObjectA(mSettings.models, "sap.ui.model.Model") ) {
|
|
1215
1288
|
this.setModel(mSettings.models);
|
|
1216
1289
|
} else {
|
|
1217
1290
|
for (sKey in mSettings.models ) {
|
|
@@ -1225,7 +1298,7 @@ sap.ui.define([
|
|
|
1225
1298
|
throw new Error("bindingContexts must be a simple object");
|
|
1226
1299
|
}
|
|
1227
1300
|
var oBindingContexts = mSettings.bindingContexts;
|
|
1228
|
-
if ( BaseObject.
|
|
1301
|
+
if ( BaseObject.isObjectA(oBindingContexts, "sap.ui.model.Context")) {
|
|
1229
1302
|
this.setBindingContext(mSettings.bindingContexts);
|
|
1230
1303
|
} else {
|
|
1231
1304
|
for (sKey in mSettings.bindingContexts ) {
|
|
@@ -1963,7 +2036,7 @@ sap.ui.define([
|
|
|
1963
2036
|
return oObject;
|
|
1964
2037
|
}
|
|
1965
2038
|
|
|
1966
|
-
if ( BaseObject.
|
|
2039
|
+
if ( BaseObject.isObjectA(oObject, oAggregation.type) ) {
|
|
1967
2040
|
return oObject;
|
|
1968
2041
|
}
|
|
1969
2042
|
|
|
@@ -3042,7 +3115,7 @@ sap.ui.define([
|
|
|
3042
3115
|
// string representation for templates is not supported
|
|
3043
3116
|
if (typeof oValue === "object" && oBindingInfo && oBindingInfo.template) {
|
|
3044
3117
|
// allow JSON syntax for templates
|
|
3045
|
-
oBindingInfo.template =
|
|
3118
|
+
oBindingInfo.template = makeObject(oBindingInfo.template);
|
|
3046
3119
|
}
|
|
3047
3120
|
return oBindingInfo;
|
|
3048
3121
|
};
|
|
@@ -3403,7 +3476,7 @@ sap.ui.define([
|
|
|
3403
3476
|
oBindingInfo = {
|
|
3404
3477
|
parts: [ {
|
|
3405
3478
|
path: oBindingInfo,
|
|
3406
|
-
type: BaseObject.
|
|
3479
|
+
type: BaseObject.isObjectA(_vFormat, "sap.ui.model.Type") ? _vFormat : undefined,
|
|
3407
3480
|
mode: _sMode
|
|
3408
3481
|
} ],
|
|
3409
3482
|
formatter: typeof _vFormat === 'function' ? _vFormat : undefined
|
|
@@ -4086,7 +4159,7 @@ sap.ui.define([
|
|
|
4086
4159
|
* @public
|
|
4087
4160
|
*/
|
|
4088
4161
|
ManagedObject.prototype.setModel = function(oModel, sName) {
|
|
4089
|
-
assert(oModel == null || BaseObject.
|
|
4162
|
+
assert(oModel == null || BaseObject.isObjectA(oModel, "sap.ui.model.Model"), "oModel must be an instance of sap.ui.model.Model, null or undefined");
|
|
4090
4163
|
assert(sName === undefined || (typeof sName === "string" && !/^(undefined|null)?$/.test(sName)), "sName must be a string or omitted");
|
|
4091
4164
|
if (!oModel && this.oModels[sName]) {
|
|
4092
4165
|
delete this.oModels[sName];
|
|
@@ -15,9 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
'sap/base/strings/capitalize',
|
|
16
16
|
'sap/base/strings/escapeRegExp',
|
|
17
17
|
'sap/base/util/merge',
|
|
18
|
-
'sap/base/util/isPlainObject'
|
|
19
|
-
'sap/ui/core/Configuration',
|
|
20
|
-
'sap/ui/core/Lib'
|
|
18
|
+
'sap/base/util/isPlainObject'
|
|
21
19
|
],
|
|
22
20
|
function(
|
|
23
21
|
DataType,
|
|
@@ -29,9 +27,7 @@ function(
|
|
|
29
27
|
capitalize,
|
|
30
28
|
escapeRegExp,
|
|
31
29
|
merge,
|
|
32
|
-
isPlainObject
|
|
33
|
-
Configuration,
|
|
34
|
-
Library
|
|
30
|
+
isPlainObject
|
|
35
31
|
) {
|
|
36
32
|
"use strict";
|
|
37
33
|
|
|
@@ -83,7 +79,7 @@ function(
|
|
|
83
79
|
*
|
|
84
80
|
*
|
|
85
81
|
* @author Frank Weigel
|
|
86
|
-
* @version 1.
|
|
82
|
+
* @version 1.120.0
|
|
87
83
|
* @since 0.8.6
|
|
88
84
|
* @alias sap.ui.base.ManagedObjectMetadata
|
|
89
85
|
* @extends sap.ui.base.Metadata
|
|
@@ -1793,33 +1789,35 @@ function(
|
|
|
1793
1789
|
/**
|
|
1794
1790
|
* Returns a promise that resolves if the designtime preload of a library is loaded for the given oMetadata
|
|
1795
1791
|
* object is loaded.
|
|
1796
|
-
* If the corresponding library does not contain a designtime setting with a module path to the library.designtime file
|
|
1797
|
-
* the promise resolves immediately.
|
|
1798
1792
|
*
|
|
1799
1793
|
* @private
|
|
1800
1794
|
*/
|
|
1801
1795
|
function preloadDesigntimeLibrary(oMetadata) {
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1796
|
+
return new Promise(function(resolve, reject) {
|
|
1797
|
+
sap.ui.require(["sap/ui/core/Lib"], function (Library) {
|
|
1798
|
+
//preload the designtime data for the library
|
|
1799
|
+
var sLibrary = oMetadata.getLibraryName(),
|
|
1800
|
+
sPreload = Library.getPreloadMode(),
|
|
1801
|
+
oLibrary = Library.all()[sLibrary];
|
|
1802
|
+
if (oLibrary && oLibrary.designtime) {
|
|
1803
|
+
var oPromise;
|
|
1804
|
+
if (sPreload === "async" || sPreload === "sync") {
|
|
1805
|
+
//ignore errors _loadJSResourceAsync is true here, do not break if there is no preload.
|
|
1806
|
+
oPromise = sap.ui.loader._.loadJSResourceAsync(oLibrary.designtime.replace(/\.designtime$/, "-preload.designtime.js"), true);
|
|
1807
|
+
} else {
|
|
1808
|
+
oPromise = Promise.resolve();
|
|
1809
|
+
}
|
|
1810
|
+
resolve(new Promise(function(fnResolve, fnReject) {
|
|
1811
|
+
oPromise.then(function() {
|
|
1812
|
+
sap.ui.require([oLibrary.designtime], function(oLib) {
|
|
1813
|
+
fnResolve(oLib);
|
|
1814
|
+
}, fnReject);
|
|
1815
|
+
});
|
|
1816
|
+
}));
|
|
1817
|
+
}
|
|
1818
|
+
resolve(null);
|
|
1819
|
+
}, reject);
|
|
1820
|
+
});
|
|
1823
1821
|
}
|
|
1824
1822
|
|
|
1825
1823
|
/**
|
|
@@ -1872,7 +1870,7 @@ function(
|
|
|
1872
1870
|
*/
|
|
1873
1871
|
function loadInstanceDesignTime(oInstance) {
|
|
1874
1872
|
var sInstanceSpecificModule =
|
|
1875
|
-
BaseObject.
|
|
1873
|
+
BaseObject.isObjectA(oInstance, "sap.ui.base.ManagedObject")
|
|
1876
1874
|
&& typeof oInstance.data === "function"
|
|
1877
1875
|
&& oInstance.data("sap-ui-custom-settings")
|
|
1878
1876
|
&& oInstance.data("sap-ui-custom-settings")["sap.ui.dt"]
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* @class Metadata for a class.
|
|
33
33
|
* @author Frank Weigel
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.120.0
|
|
35
35
|
* @since 0.8.6
|
|
36
36
|
* @public
|
|
37
37
|
* @alias sap.ui.base.Metadata
|
|
@@ -183,9 +183,9 @@ sap.ui.define([
|
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* Returns the metadata object of the base class of the described class
|
|
186
|
-
* or
|
|
186
|
+
* or undefined if the class has no (documented) base class.
|
|
187
187
|
*
|
|
188
|
-
* @return {sap.ui.base.Metadata} metadata of the base class
|
|
188
|
+
* @return {sap.ui.base.Metadata | undefined} metadata of the base class
|
|
189
189
|
* @public
|
|
190
190
|
*/
|
|
191
191
|
Metadata.prototype.getParent = function() {
|