@openui5/sap.ui.core 1.128.0 → 1.130.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 +2 -2
- package/package.json +1 -1
- package/src/jquery.sap.global.js +7 -7
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/jquery.sap.trace.js +18 -18
- package/src/sap/base/Event.js +1 -1
- package/src/sap/base/Eventing.js +1 -1
- package/src/sap/base/config.js +1 -1
- package/src/sap/base/future.js +10 -2
- package/src/sap/base/i18n/LanguageTag.js +1 -1
- package/src/sap/base/i18n/date/TimezoneUtils.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +1 -1
- package/src/sap/base/util/restricted/_castArray.js +1 -1
- package/src/sap/base/util/restricted/_compact.js +1 -1
- package/src/sap/base/util/restricted/_curry.js +1 -1
- package/src/sap/base/util/restricted/_debounce.js +1 -1
- package/src/sap/base/util/restricted/_difference.js +1 -1
- package/src/sap/base/util/restricted/_differenceBy.js +1 -1
- package/src/sap/base/util/restricted/_differenceWith.js +1 -1
- package/src/sap/base/util/restricted/_flatMap.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDeep.js +1 -1
- package/src/sap/base/util/restricted/_flatMapDepth.js +1 -1
- package/src/sap/base/util/restricted/_flatten.js +1 -1
- package/src/sap/base/util/restricted/_flattenDeep.js +1 -1
- package/src/sap/base/util/restricted/_flattenDepth.js +1 -1
- package/src/sap/base/util/restricted/_intersection.js +1 -1
- package/src/sap/base/util/restricted/_intersectionBy.js +1 -1
- package/src/sap/base/util/restricted/_intersectionWith.js +1 -1
- package/src/sap/base/util/restricted/_isEqual.js +1 -1
- package/src/sap/base/util/restricted/_isEqualWith.js +1 -1
- package/src/sap/base/util/restricted/_isNil.js +1 -1
- package/src/sap/base/util/restricted/_max.js +1 -1
- package/src/sap/base/util/restricted/_merge.js +1 -1
- package/src/sap/base/util/restricted/_mergeWith.js +1 -1
- package/src/sap/base/util/restricted/_min.js +1 -1
- package/src/sap/base/util/restricted/_omit.js +1 -1
- package/src/sap/base/util/restricted/_pick.js +1 -1
- package/src/sap/base/util/restricted/_pickBy.js +1 -1
- package/src/sap/base/util/restricted/_throttle.js +1 -1
- package/src/sap/base/util/restricted/_toArray.js +1 -1
- package/src/sap/base/util/restricted/_union.js +1 -1
- package/src/sap/base/util/restricted/_unionBy.js +1 -1
- package/src/sap/base/util/restricted/_unionWith.js +1 -1
- package/src/sap/base/util/restricted/_uniq.js +1 -1
- package/src/sap/base/util/restricted/_uniqBy.js +1 -1
- package/src/sap/base/util/restricted/_uniqWith.js +1 -1
- package/src/sap/base/util/restricted/_without.js +1 -1
- package/src/sap/base/util/restricted/_xor.js +1 -1
- package/src/sap/base/util/restricted/_xorBy.js +1 -1
- package/src/sap/base/util/restricted/_xorWith.js +1 -1
- package/src/sap/base/util/restricted/_zipObject.js +1 -1
- package/src/sap/base/util/restricted/_zipObjectDeep.js +1 -1
- package/src/sap/ui/Device.js +3 -3
- package/src/sap/ui/Global.js +3 -3
- package/src/sap/ui/base/BindingParser.js +1 -3
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +1 -1
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +4 -9
- package/src/sap/ui/base/ManagedObjectMetadata.js +1 -1
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/core/.library +2 -2
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +46 -122
- package/src/sap/ui/core/ComponentContainer.js +2 -2
- package/src/sap/ui/core/ComponentHooks.js +174 -0
- package/src/sap/ui/core/ComponentMetadata.js +1 -1
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +1 -1
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +8 -3
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +6 -2
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +1 -1
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/Fragment.js +6 -5
- 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 +2 -2
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +2 -15
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +1 -1
- package/src/sap/ui/core/LocaleData.js +43 -37
- package/src/sap/ui/core/Manifest.js +2 -2
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/RenderManager.js +41 -32
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/StaticArea.js +0 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +3 -3
- 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 +4 -4
- package/src/sap/ui/core/XMLTemplateProcessor.js +3 -3
- package/src/sap/ui/core/_IconRegistry.js +1 -1
- package/src/sap/ui/core/cldr/ar.json +5 -1
- package/src/sap/ui/core/cldr/ar_EG.json +5 -1
- package/src/sap/ui/core/cldr/ar_SA.json +5 -1
- package/src/sap/ui/core/cldr/bg.json +4 -0
- package/src/sap/ui/core/cldr/ca.json +4 -0
- package/src/sap/ui/core/cldr/cnr.json +4 -0
- package/src/sap/ui/core/cldr/cs.json +4 -0
- package/src/sap/ui/core/cldr/cy.json +4 -0
- package/src/sap/ui/core/cldr/da.json +4 -0
- package/src/sap/ui/core/cldr/de.json +4 -0
- package/src/sap/ui/core/cldr/de_AT.json +4 -0
- package/src/sap/ui/core/cldr/de_CH.json +4 -0
- package/src/sap/ui/core/cldr/el.json +4 -0
- package/src/sap/ui/core/cldr/el_CY.json +4 -0
- package/src/sap/ui/core/cldr/en.json +4 -0
- package/src/sap/ui/core/cldr/en_AU.json +4 -0
- package/src/sap/ui/core/cldr/en_GB.json +4 -0
- package/src/sap/ui/core/cldr/en_HK.json +5 -1
- package/src/sap/ui/core/cldr/en_IE.json +4 -0
- package/src/sap/ui/core/cldr/en_IN.json +5 -1
- package/src/sap/ui/core/cldr/en_NZ.json +4 -0
- package/src/sap/ui/core/cldr/en_PG.json +4 -0
- package/src/sap/ui/core/cldr/en_SG.json +5 -1
- package/src/sap/ui/core/cldr/en_ZA.json +4 -0
- package/src/sap/ui/core/cldr/es.json +4 -0
- package/src/sap/ui/core/cldr/es_AR.json +4 -0
- package/src/sap/ui/core/cldr/es_BO.json +4 -0
- package/src/sap/ui/core/cldr/es_CL.json +4 -0
- package/src/sap/ui/core/cldr/es_CO.json +4 -0
- package/src/sap/ui/core/cldr/es_MX.json +4 -0
- package/src/sap/ui/core/cldr/es_PE.json +4 -0
- package/src/sap/ui/core/cldr/es_UY.json +4 -0
- package/src/sap/ui/core/cldr/es_VE.json +4 -0
- package/src/sap/ui/core/cldr/et.json +4 -0
- package/src/sap/ui/core/cldr/fa.json +6 -3
- package/src/sap/ui/core/cldr/fi.json +4 -0
- package/src/sap/ui/core/cldr/fr.json +4 -0
- package/src/sap/ui/core/cldr/fr_BE.json +4 -0
- package/src/sap/ui/core/cldr/fr_CA.json +4 -0
- package/src/sap/ui/core/cldr/fr_CH.json +4 -0
- package/src/sap/ui/core/cldr/fr_LU.json +4 -0
- package/src/sap/ui/core/cldr/he.json +6 -3
- package/src/sap/ui/core/cldr/hi.json +5 -1
- package/src/sap/ui/core/cldr/hr.json +4 -0
- package/src/sap/ui/core/cldr/hu.json +4 -0
- package/src/sap/ui/core/cldr/id.json +5 -1
- package/src/sap/ui/core/cldr/it.json +4 -0
- package/src/sap/ui/core/cldr/it_CH.json +4 -0
- package/src/sap/ui/core/cldr/ja.json +5 -1
- package/src/sap/ui/core/cldr/kk.json +4 -0
- package/src/sap/ui/core/cldr/ko.json +5 -1
- package/src/sap/ui/core/cldr/lt.json +4 -0
- package/src/sap/ui/core/cldr/lv.json +4 -0
- package/src/sap/ui/core/cldr/mk.json +4 -0
- package/src/sap/ui/core/cldr/ms.json +5 -1
- package/src/sap/ui/core/cldr/nb.json +5 -2
- package/src/sap/ui/core/cldr/nl.json +4 -0
- package/src/sap/ui/core/cldr/nl_BE.json +4 -0
- package/src/sap/ui/core/cldr/pl.json +4 -0
- package/src/sap/ui/core/cldr/pt.json +4 -0
- package/src/sap/ui/core/cldr/pt_PT.json +4 -0
- package/src/sap/ui/core/cldr/ro.json +4 -0
- package/src/sap/ui/core/cldr/ru.json +4 -0
- package/src/sap/ui/core/cldr/ru_UA.json +4 -0
- package/src/sap/ui/core/cldr/sk.json +4 -0
- package/src/sap/ui/core/cldr/sl.json +4 -0
- package/src/sap/ui/core/cldr/sr.json +4 -0
- package/src/sap/ui/core/cldr/sr_Latn.json +6 -2
- package/src/sap/ui/core/cldr/sv.json +4 -0
- package/src/sap/ui/core/cldr/th.json +5 -1
- package/src/sap/ui/core/cldr/tr.json +5 -1
- package/src/sap/ui/core/cldr/uk.json +4 -0
- package/src/sap/ui/core/cldr/vi.json +4 -0
- package/src/sap/ui/core/cldr/zh_CN.json +5 -1
- package/src/sap/ui/core/cldr/zh_HK.json +6 -3
- package/src/sap/ui/core/cldr/zh_SG.json +6 -3
- package/src/sap/ui/core/cldr/zh_TW.json +5 -1
- package/src/sap/ui/core/date/UI5Date.js +1 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +1 -1
- package/src/sap/ui/core/delegate/ScrollEnablement.js +1 -1
- package/src/sap/ui/core/dnd/DragDropBase.js +1 -1
- package/src/sap/ui/core/dnd/DragDropInfo.js +1 -1
- package/src/sap/ui/core/dnd/DragInfo.js +1 -1
- package/src/sap/ui/core/dnd/DropInfo.js +1 -1
- package/src/sap/ui/core/fieldhelp/FieldHelp.js +8 -10
- package/src/sap/ui/core/fieldhelp/FieldHelpCustomData.js +88 -0
- package/src/sap/ui/core/fieldhelp/FieldHelpUtil.js +22 -26
- package/src/sap/ui/core/format/FormatUtils.js +1 -1
- package/src/sap/ui/core/format/NumberFormat.js +17 -24
- package/src/sap/ui/core/format/TimezoneUtil.js +1 -1
- package/src/sap/ui/core/getCompatibilityVersion.js +1 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +5 -7
- package/src/sap/ui/core/library.support.js +10 -1
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle.properties +6 -12
- package/src/sap/ui/core/messagebundle_ar.properties +3 -6
- package/src/sap/ui/core/messagebundle_bg.properties +3 -6
- package/src/sap/ui/core/messagebundle_ca.properties +3 -6
- package/src/sap/ui/core/messagebundle_cnr.properties +3 -6
- package/src/sap/ui/core/messagebundle_cs.properties +3 -6
- package/src/sap/ui/core/messagebundle_cy.properties +3 -6
- package/src/sap/ui/core/messagebundle_da.properties +3 -6
- package/src/sap/ui/core/messagebundle_de.properties +3 -6
- package/src/sap/ui/core/messagebundle_el.properties +3 -6
- package/src/sap/ui/core/messagebundle_en.properties +3 -6
- package/src/sap/ui/core/messagebundle_en_GB.properties +3 -6
- package/src/sap/ui/core/messagebundle_en_US_saprigi.properties +3 -6
- package/src/sap/ui/core/messagebundle_es.properties +3 -6
- package/src/sap/ui/core/messagebundle_es_MX.properties +3 -6
- package/src/sap/ui/core/messagebundle_et.properties +3 -6
- package/src/sap/ui/core/messagebundle_fi.properties +3 -6
- package/src/sap/ui/core/messagebundle_fr.properties +3 -6
- package/src/sap/ui/core/messagebundle_fr_CA.properties +3 -6
- package/src/sap/ui/core/messagebundle_hi.properties +3 -6
- package/src/sap/ui/core/messagebundle_hr.properties +3 -6
- package/src/sap/ui/core/messagebundle_hu.properties +3 -6
- package/src/sap/ui/core/messagebundle_id.properties +3 -6
- package/src/sap/ui/core/messagebundle_it.properties +53 -56
- package/src/sap/ui/core/messagebundle_iw.properties +3 -6
- package/src/sap/ui/core/messagebundle_ja.properties +3 -6
- package/src/sap/ui/core/messagebundle_kk.properties +3 -6
- package/src/sap/ui/core/messagebundle_ko.properties +3 -6
- package/src/sap/ui/core/messagebundle_lt.properties +3 -6
- package/src/sap/ui/core/messagebundle_lv.properties +3 -6
- package/src/sap/ui/core/messagebundle_mk.properties +3 -6
- package/src/sap/ui/core/messagebundle_ms.properties +3 -6
- package/src/sap/ui/core/messagebundle_nl.properties +3 -6
- package/src/sap/ui/core/messagebundle_no.properties +4 -7
- package/src/sap/ui/core/messagebundle_pl.properties +3 -6
- package/src/sap/ui/core/messagebundle_pt.properties +3 -6
- package/src/sap/ui/core/messagebundle_pt_PT.properties +3 -6
- package/src/sap/ui/core/messagebundle_ro.properties +3 -6
- package/src/sap/ui/core/messagebundle_ru.properties +3 -6
- package/src/sap/ui/core/messagebundle_sh.properties +3 -6
- package/src/sap/ui/core/messagebundle_sk.properties +3 -6
- package/src/sap/ui/core/messagebundle_sl.properties +3 -6
- package/src/sap/ui/core/messagebundle_sr.properties +3 -6
- package/src/sap/ui/core/messagebundle_sv.properties +3 -6
- package/src/sap/ui/core/messagebundle_th.properties +3 -6
- package/src/sap/ui/core/messagebundle_tr.properties +3 -6
- package/src/sap/ui/core/messagebundle_uk.properties +3 -6
- package/src/sap/ui/core/messagebundle_vi.properties +3 -6
- package/src/sap/ui/core/messagebundle_zh_CN.properties +3 -6
- package/src/sap/ui/core/messagebundle_zh_TW.properties +3 -6
- package/src/sap/ui/core/mvc/Controller.js +2 -2
- package/src/sap/ui/core/mvc/HTMLView.js +1 -1
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +1 -1
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +3 -3
- package/src/sap/ui/core/mvc/XMLView.js +2 -2
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +1 -1
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/Route.js +4 -4
- package/src/sap/ui/core/routing/Router.js +5 -5
- package/src/sap/ui/core/routing/Targets.js +3 -3
- package/src/sap/ui/core/routing/async/Target.js +1 -1
- package/src/sap/ui/core/routing/async/Targets.js +2 -2
- package/src/sap/ui/core/rules/App.support.js +13 -2
- package/src/sap/ui/core/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/ToolsAPI.js +4 -2
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/themes/base/base.less +4238 -122
- package/src/sap/ui/core/themes/base/global.less +460 -7
- package/src/sap/ui/core/themes/base/skeleton.less +454 -3
- package/src/sap/ui/core/themes/sap_hcb/global.less +493 -40
- package/src/sap/ui/core/theming/Parameters.js +6 -6
- package/src/sap/ui/core/theming/ThemeHelper.js +16 -13
- package/src/sap/ui/core/theming/ThemeManager.js +1 -1
- 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/reflection/BaseTreeModifier.js +134 -148
- package/src/sap/ui/core/util/reflection/JsControlTreeModifier.js +165 -202
- package/src/sap/ui/core/util/reflection/XmlTreeModifier.js +365 -468
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/webc/WebComponent.js +1 -1
- package/src/sap/ui/core/webc/WebComponentMetadata.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +1 -1
- package/src/sap/ui/debug/ControlTree.js +1 -1
- package/src/sap/ui/debug/DebugEnv.js +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/dom/findTabbable.js +13 -6
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +11 -12
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/Context.js +0 -2
- package/src/sap/ui/model/DataState.js +33 -5
- package/src/sap/ui/model/ListBinding.js +19 -0
- package/src/sap/ui/model/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/_Helper.js +3 -1
- package/src/sap/ui/model/json/JSONModel.js +12 -1
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +116 -35
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +106 -19
- 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/type/UnitMixin.js +14 -9
- 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 +21 -6
- package/src/sap/ui/model/odata/v2/ODataModel.js +109 -8
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +63 -14
- package/src/sap/ui/model/odata/v4/ODataBinding.js +10 -0
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +135 -98
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +20 -10
- package/src/sap/ui/model/odata/v4/ODataModel.js +62 -4
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +141 -51
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +53 -19
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +152 -37
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +70 -9
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +44 -7
- package/src/sap/ui/model/odata/v4/lib/_TreeState.js +57 -40
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +3 -2
- package/src/sap/ui/model/type/DateInterval.js +3 -2
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/performance/trace/FESR.js +19 -10
- package/src/sap/ui/performance/trace/Interaction.js +45 -659
- package/src/sap/ui/performance/trace/_InteractionImpl.js +705 -0
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/TestUtils.js +51 -24
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/test/gherkin/opa5TestHarness.js +6 -2
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/util/_enforceNoReturnValue.js +1 -1
- package/src/ui5loader.js +1 -1
|
@@ -5,25 +5,37 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/util/isPlainObject",
|
|
9
|
+
"sap/base/Log",
|
|
8
10
|
"sap/ui/base/ManagedObject",
|
|
9
11
|
"sap/ui/base/ManagedObjectMetadata",
|
|
10
|
-
"sap/ui/util/XMLHelper",
|
|
11
|
-
"sap/ui/core/XMLTemplateProcessor",
|
|
12
12
|
"sap/ui/core/util/XMLPreprocessor",
|
|
13
|
-
"sap/
|
|
14
|
-
"sap/
|
|
13
|
+
"sap/ui/core/XMLTemplateProcessor",
|
|
14
|
+
"sap/ui/util/XMLHelper"
|
|
15
15
|
], function(
|
|
16
|
+
isPlainObject,
|
|
17
|
+
Log,
|
|
16
18
|
ManagedObject,
|
|
17
19
|
ManagedObjectMetadata,
|
|
18
|
-
XMLHelper,
|
|
19
|
-
XMLTemplateProcessor,
|
|
20
20
|
XMLPreprocessor,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
XMLTemplateProcessor,
|
|
22
|
+
XMLHelper
|
|
23
23
|
) {
|
|
24
24
|
|
|
25
25
|
"use strict";
|
|
26
26
|
|
|
27
|
+
function requireClass(sClassName) {
|
|
28
|
+
return new Promise(function(fnResolve, fnReject) {
|
|
29
|
+
sap.ui.require([sClassName],
|
|
30
|
+
function(oClassObject) { fnResolve(oClassObject); },
|
|
31
|
+
function() {
|
|
32
|
+
fnReject(new Error("Required control '" + sClassName
|
|
33
|
+
+ "' couldn't be created asynchronously"));
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
/**
|
|
28
40
|
* Abstract static utility class to access <code>ManagedObjects</code> and <code>XMLNodes</code> that represent
|
|
29
41
|
* <code>ManagedObjects</code> in a harmonized way.
|
|
@@ -42,8 +54,8 @@ sap.ui.define([
|
|
|
42
54
|
return /** @lends sap.ui.core.util.reflection.BaseTreeModifier */{
|
|
43
55
|
|
|
44
56
|
/**
|
|
45
|
-
* Function determining the control targeted by the change. It is also possible to pass an
|
|
46
|
-
* In this case an extension point is referenced in the selector but the parent control of the
|
|
57
|
+
* Function determining the control targeted by the change. It is also possible to pass an extension point selector.
|
|
58
|
+
* In this case an extension point is referenced in the selector but the parent control of the extension point will be returned.
|
|
47
59
|
*
|
|
48
60
|
* @param {object} oSelector - Target of a flexibility change
|
|
49
61
|
* @param {string} [oSelector.id] - ID of the control targeted by the change. (name or id property is mandatory for selector)
|
|
@@ -55,7 +67,7 @@ sap.ui.define([
|
|
|
55
67
|
* @throws {Error} In case no control could be determined, an error is thrown
|
|
56
68
|
* @public
|
|
57
69
|
*/
|
|
58
|
-
bySelectorExtensionPointEnabled: function
|
|
70
|
+
bySelectorExtensionPointEnabled: function(oSelector, oAppComponent, oView) {
|
|
59
71
|
return Promise.resolve(this.bySelector(oSelector, oAppComponent, oView));
|
|
60
72
|
},
|
|
61
73
|
|
|
@@ -72,20 +84,14 @@ sap.ui.define([
|
|
|
72
84
|
* @throws {Error} In case no control could be determined, an error is thrown
|
|
73
85
|
* @public
|
|
74
86
|
*/
|
|
75
|
-
bySelectorTypeIndependent: function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return oExtensionPointInfo ? oExtensionPointInfo.parent : undefined;
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
sControlId = this.getControlIdBySelector(oSelector, oAppComponent);
|
|
87
|
-
return this._byId(sControlId, oView);
|
|
88
|
-
}.bind(this));
|
|
87
|
+
bySelectorTypeIndependent: async function(oSelector, oAppComponent, oView) {
|
|
88
|
+
if (oSelector?.name) {
|
|
89
|
+
oView ||= this.bySelector(oSelector.viewSelector, oAppComponent);
|
|
90
|
+
const oExtensionPointInfo = await this.getExtensionPointInfo(oSelector.name, oView);
|
|
91
|
+
return oExtensionPointInfo ? oExtensionPointInfo.parent : undefined;
|
|
92
|
+
}
|
|
93
|
+
const sControlId = this.getControlIdBySelector(oSelector, oAppComponent);
|
|
94
|
+
return this._byId(sControlId, oView);
|
|
89
95
|
},
|
|
90
96
|
|
|
91
97
|
/**
|
|
@@ -100,8 +106,8 @@ sap.ui.define([
|
|
|
100
106
|
* @throws {Error} In case no control could be determined, an error is thrown
|
|
101
107
|
* @public
|
|
102
108
|
*/
|
|
103
|
-
bySelector: function
|
|
104
|
-
|
|
109
|
+
bySelector: function(oSelector, oAppComponent, oView) {
|
|
110
|
+
const sControlId = this.getControlIdBySelector(oSelector, oAppComponent);
|
|
105
111
|
return this._byId(sControlId, oView);
|
|
106
112
|
},
|
|
107
113
|
|
|
@@ -116,7 +122,7 @@ sap.ui.define([
|
|
|
116
122
|
* @throws {Error} In case no control could be determined, an error is thrown
|
|
117
123
|
* @protected
|
|
118
124
|
*/
|
|
119
|
-
getControlIdBySelector: function
|
|
125
|
+
getControlIdBySelector: function(oSelector, vAppComponent) {
|
|
120
126
|
if (!oSelector){
|
|
121
127
|
return undefined;
|
|
122
128
|
}
|
|
@@ -127,7 +133,7 @@ sap.ui.define([
|
|
|
127
133
|
};
|
|
128
134
|
}
|
|
129
135
|
|
|
130
|
-
|
|
136
|
+
let sControlId = oSelector.id;
|
|
131
137
|
|
|
132
138
|
if (oSelector.idIsLocal) {
|
|
133
139
|
if (vAppComponent) {
|
|
@@ -156,8 +162,8 @@ sap.ui.define([
|
|
|
156
162
|
* @throws {Error} In case no control could be determined, an error is thrown
|
|
157
163
|
* @public
|
|
158
164
|
*/
|
|
159
|
-
getSelector: function
|
|
160
|
-
|
|
165
|
+
getSelector: function(vControl, oAppComponent, mAdditionalSelectorInformation) {
|
|
166
|
+
let sControlId = vControl;
|
|
161
167
|
if (typeof sControlId !== "string") {
|
|
162
168
|
sControlId = (vControl) ? this.getId(vControl) : undefined;
|
|
163
169
|
} else if (!oAppComponent) {
|
|
@@ -169,19 +175,19 @@ sap.ui.define([
|
|
|
169
175
|
"but core properties were overwritten by the additionally passed information.");
|
|
170
176
|
}
|
|
171
177
|
|
|
172
|
-
|
|
178
|
+
const bValidId = this.checkControlId(sControlId, oAppComponent);
|
|
173
179
|
if (!bValidId) {
|
|
174
180
|
throw new Error("Generated ID attribute found - to offer flexibility a stable control ID is needed to assign the changes to, but for this control the ID was generated by SAPUI5 " + sControlId);
|
|
175
181
|
}
|
|
176
182
|
|
|
177
|
-
|
|
183
|
+
const oSelector = Object.assign({}, mAdditionalSelectorInformation, {
|
|
178
184
|
id: "",
|
|
179
185
|
idIsLocal: false
|
|
180
186
|
});
|
|
181
187
|
|
|
182
188
|
if (this.hasLocalIdSuffix(sControlId, oAppComponent)) {
|
|
183
189
|
// get local Id for control at root component and use it as selector ID
|
|
184
|
-
|
|
190
|
+
const sLocalId = oAppComponent.getLocalId(sControlId);
|
|
185
191
|
oSelector.id = sLocalId;
|
|
186
192
|
oSelector.idIsLocal = true;
|
|
187
193
|
} else {
|
|
@@ -199,9 +205,9 @@ sap.ui.define([
|
|
|
199
205
|
* @returns {boolean} <code>true</code> if the ID is maintained by the application
|
|
200
206
|
* @protected
|
|
201
207
|
*/
|
|
202
|
-
checkControlId: function
|
|
203
|
-
|
|
204
|
-
|
|
208
|
+
checkControlId: function(vControl, oAppComponent) {
|
|
209
|
+
const sControlId = vControl instanceof ManagedObject ? vControl.getId() : vControl;
|
|
210
|
+
const bIsGenerated = ManagedObjectMetadata.isGeneratedId(sControlId);
|
|
205
211
|
|
|
206
212
|
return !bIsGenerated || this.hasLocalIdSuffix(vControl, oAppComponent);
|
|
207
213
|
},
|
|
@@ -215,8 +221,8 @@ sap.ui.define([
|
|
|
215
221
|
* @returns {boolean} <code>true</code> if the control has a local ID
|
|
216
222
|
* @protected
|
|
217
223
|
*/
|
|
218
|
-
hasLocalIdSuffix: function
|
|
219
|
-
|
|
224
|
+
hasLocalIdSuffix: function(vControl, oAppComponent) {
|
|
225
|
+
const sControlId = (vControl instanceof ManagedObject) ? vControl.getId() : vControl;
|
|
220
226
|
|
|
221
227
|
if (!oAppComponent) {
|
|
222
228
|
return false;
|
|
@@ -237,14 +243,15 @@ sap.ui.define([
|
|
|
237
243
|
* @returns {Element} Original fragment in XML with updated IDs
|
|
238
244
|
*/
|
|
239
245
|
_checkAndPrefixIdsInFragment: function(oFragment, sIdPrefix) {
|
|
240
|
-
|
|
246
|
+
const oParseError = XMLHelper.getParseError(oFragment);
|
|
241
247
|
if (oParseError.errorCode !== 0) {
|
|
242
248
|
return Promise.reject(new Error(oFragment.parseError.reason));
|
|
243
249
|
}
|
|
244
250
|
|
|
245
|
-
|
|
251
|
+
const oControlNodes = oFragment.documentElement;
|
|
246
252
|
|
|
247
|
-
|
|
253
|
+
let aRootChildren = [];
|
|
254
|
+
let aChildren = [];
|
|
248
255
|
if (oControlNodes.localName === "FragmentDefinition") {
|
|
249
256
|
aRootChildren = this._getElementNodeChildren(oControlNodes);
|
|
250
257
|
} else {
|
|
@@ -256,13 +263,13 @@ sap.ui.define([
|
|
|
256
263
|
function oCallback(oChild) {
|
|
257
264
|
aChildren.push(oChild);
|
|
258
265
|
}
|
|
259
|
-
|
|
260
|
-
for (
|
|
266
|
+
let oPromiseChain = Promise.resolve();
|
|
267
|
+
for (let i = 0, n = aRootChildren.length; i < n; i++) {
|
|
261
268
|
oPromiseChain = oPromiseChain.then(this._traverseXmlTree.bind(this, oCallback, aRootChildren[i]));
|
|
262
269
|
}
|
|
263
270
|
|
|
264
|
-
return oPromiseChain.then(function
|
|
265
|
-
for (
|
|
271
|
+
return oPromiseChain.then(function() {
|
|
272
|
+
for (let j = 0, m = aChildren.length; j < m; j++) {
|
|
266
273
|
// aChildren[j].id is not available in IE11, therefore using .getAttribute/.setAttribute
|
|
267
274
|
if (aChildren[j].getAttribute("id")) {
|
|
268
275
|
aChildren[j].setAttribute("id", sIdPrefix + "." + aChildren[j].getAttribute("id"));
|
|
@@ -282,9 +289,9 @@ sap.ui.define([
|
|
|
282
289
|
* @returns {Element[]} Array with the children of the node
|
|
283
290
|
*/
|
|
284
291
|
_getElementNodeChildren: function(oNode) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
for (
|
|
292
|
+
const aChildren = [];
|
|
293
|
+
const aNodes = oNode.childNodes;
|
|
294
|
+
for (let i = 0, n = aNodes.length; i < n; i++) {
|
|
288
295
|
if (aNodes[i].nodeType === 1) {
|
|
289
296
|
aChildren.push(aNodes[i]);
|
|
290
297
|
}
|
|
@@ -296,27 +303,16 @@ sap.ui.define([
|
|
|
296
303
|
* Gets the metadata of an XML control.
|
|
297
304
|
*
|
|
298
305
|
* @param {Element} oControl - Control in XML
|
|
299
|
-
* @returns {Promise<sap.ui.base.Metadata>} Resolves
|
|
306
|
+
* @returns {Promise<sap.ui.base.Metadata>} Resolves with the metadata of the control
|
|
300
307
|
*/
|
|
301
|
-
_getControlMetadataInXml: function(oControl) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
if (oControlType
|
|
305
|
-
return
|
|
308
|
+
_getControlMetadataInXml: async function(oControl) {
|
|
309
|
+
const sControlType = this._getControlTypeInXml(oControl).replace(/\./g, "/");
|
|
310
|
+
const oControlType = sap.ui.require(sControlType) || await requireClass(sControlType);
|
|
311
|
+
if (oControlType?.getMetadata) {
|
|
312
|
+
return oControlType.getMetadata();
|
|
313
|
+
} else {
|
|
314
|
+
throw new Error("getMetadata function is not available on control type");
|
|
306
315
|
}
|
|
307
|
-
return new Promise(function(fnResolve, fnReject) {
|
|
308
|
-
sap.ui.require([sControlType],
|
|
309
|
-
function(ControlType) {
|
|
310
|
-
if (ControlType.getMetadata) {
|
|
311
|
-
fnResolve(ControlType.getMetadata());
|
|
312
|
-
}
|
|
313
|
-
fnReject(new Error("getMetadata function is not available on control type"));
|
|
314
|
-
},
|
|
315
|
-
function() {
|
|
316
|
-
fnReject(new Error("Required control '" + sControlType + "' couldn't be found"));
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
});
|
|
320
316
|
},
|
|
321
317
|
|
|
322
318
|
/**
|
|
@@ -334,11 +330,9 @@ sap.ui.define([
|
|
|
334
330
|
* @param {sap.ui.base.ManagedObject|Element} vControl - Control representation
|
|
335
331
|
* @returns {Promise<string>} library name wrapped in a promise
|
|
336
332
|
*/
|
|
337
|
-
getLibraryName: function(vControl) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return oMetadata.getLibraryName();
|
|
341
|
-
});
|
|
333
|
+
getLibraryName: async function(vControl) {
|
|
334
|
+
const oMetadata = await this.getControlMetadata(vControl);
|
|
335
|
+
return oMetadata.getLibraryName();
|
|
342
336
|
},
|
|
343
337
|
|
|
344
338
|
|
|
@@ -348,8 +342,8 @@ sap.ui.define([
|
|
|
348
342
|
* @param {Element} oControl - Control in XML
|
|
349
343
|
* @returns {string} Control type as a string, e.g. <code>sap.m.Button</code>
|
|
350
344
|
*/
|
|
351
|
-
_getControlTypeInXml: function
|
|
352
|
-
|
|
345
|
+
_getControlTypeInXml: function(oControl) {
|
|
346
|
+
let sControlType = oControl.namespaceURI;
|
|
353
347
|
sControlType = sControlType ? sControlType + "." : ""; // add a dot if there is already a prefix
|
|
354
348
|
sControlType += oControl.localName;
|
|
355
349
|
|
|
@@ -364,42 +358,34 @@ sap.ui.define([
|
|
|
364
358
|
* @param {Element} oRootNode - Root node from which we start traversing the tree
|
|
365
359
|
* @returns {Promise} resolves when async processing is done
|
|
366
360
|
*/
|
|
367
|
-
_traverseXmlTree: function
|
|
368
|
-
function
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return recurse.call(this, oCurrentNode, oChild, bIsCurrentNodeAggregation)
|
|
387
|
-
.then(function () {
|
|
388
|
-
// if it's an aggregation, we don't call the callback function
|
|
389
|
-
if (!bIsCurrentNodeAggregation) {
|
|
390
|
-
fnCallback(oChild);
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
}.bind(this));
|
|
394
|
-
}.bind(this));
|
|
395
|
-
|
|
396
|
-
return oPromiseChain;
|
|
361
|
+
_traverseXmlTree: function(fnCallback, oRootNode) {
|
|
362
|
+
async function fnRecurse(oCurrentNode, bIsAggregation) {
|
|
363
|
+
let oMetadata;
|
|
364
|
+
if (!bIsAggregation) {
|
|
365
|
+
oMetadata = await this._getControlMetadataInXml(oCurrentNode, true);
|
|
366
|
+
}
|
|
367
|
+
const aAggregations = oMetadata && await oMetadata.getAllAggregations();
|
|
368
|
+
const aChildren = this._getElementNodeChildren(oCurrentNode);
|
|
369
|
+
let oPromiseChain = Promise.resolve();
|
|
370
|
+
aChildren.forEach(function(oChild) {
|
|
371
|
+
const bIsCurrentNodeAggregation = aAggregations && aAggregations[oChild.localName];
|
|
372
|
+
oPromiseChain = oPromiseChain.then(function() {
|
|
373
|
+
return fnRecurse.call(this, oChild, bIsCurrentNodeAggregation)
|
|
374
|
+
.then(function() {
|
|
375
|
+
// if it's an aggregation, we don't call the callback function
|
|
376
|
+
if (!bIsCurrentNodeAggregation) {
|
|
377
|
+
fnCallback(oChild);
|
|
378
|
+
}
|
|
379
|
+
});
|
|
397
380
|
}.bind(this));
|
|
381
|
+
}.bind(this));
|
|
382
|
+
|
|
383
|
+
return oPromiseChain;
|
|
398
384
|
}
|
|
399
|
-
return
|
|
385
|
+
return fnRecurse.call(this, oRootNode, false);
|
|
400
386
|
},
|
|
401
387
|
|
|
402
|
-
_getSerializedValue: function
|
|
388
|
+
_getSerializedValue: function(vPropertyValue) {
|
|
403
389
|
if (this._isSerializable(vPropertyValue) && typeof vPropertyValue !== "string") {
|
|
404
390
|
//not a property like aggregation
|
|
405
391
|
//type object can be json objects
|
|
@@ -409,12 +395,12 @@ sap.ui.define([
|
|
|
409
395
|
return vPropertyValue;
|
|
410
396
|
},
|
|
411
397
|
|
|
412
|
-
_isSerializable: function
|
|
398
|
+
_isSerializable: function(vPropertyValue) {
|
|
413
399
|
// check for plain object, array, primitives
|
|
414
400
|
return isPlainObject(vPropertyValue) || Array.isArray(vPropertyValue) || Object(vPropertyValue) !== vPropertyValue;
|
|
415
401
|
},
|
|
416
402
|
|
|
417
|
-
_escapeCurlyBracketsInString: function
|
|
403
|
+
_escapeCurlyBracketsInString: function(vPropertyValue) {
|
|
418
404
|
return typeof vPropertyValue === "string" ? vPropertyValue.replace(/({|})/g, "\\$&") : vPropertyValue;
|
|
419
405
|
},
|
|
420
406
|
|
|
@@ -437,7 +423,7 @@ sap.ui.define([
|
|
|
437
423
|
* @public
|
|
438
424
|
*/
|
|
439
425
|
getPropertyBindingOrProperty: function(vControl, sPropertyName) {
|
|
440
|
-
|
|
426
|
+
const oPropertyBinding = this.getPropertyBinding(vControl, sPropertyName);
|
|
441
427
|
if (oPropertyBinding) {
|
|
442
428
|
return Promise.resolve(oPropertyBinding);
|
|
443
429
|
}
|
|
@@ -455,10 +441,10 @@ sap.ui.define([
|
|
|
455
441
|
* @public
|
|
456
442
|
*/
|
|
457
443
|
setPropertyBindingOrProperty: function(vControl, sPropertyName, vBindingOrValue) {
|
|
458
|
-
|
|
459
|
-
|
|
444
|
+
const bIsBindingObject = vBindingOrValue && (vBindingOrValue.path || vBindingOrValue.parts);
|
|
445
|
+
const bIsBindingString = vBindingOrValue && typeof vBindingOrValue === "string" && vBindingOrValue.substring(0, 1) === "{" && vBindingOrValue.slice(-1) === "}";
|
|
460
446
|
|
|
461
|
-
|
|
447
|
+
const sOperation = bIsBindingObject || bIsBindingString ? "setPropertyBinding" : "setProperty";
|
|
462
448
|
this[sOperation](vControl, sPropertyName, vBindingOrValue);
|
|
463
449
|
},
|
|
464
450
|
|
|
@@ -470,7 +456,7 @@ sap.ui.define([
|
|
|
470
456
|
* @param {boolean} bVisible - New value for <code>visible</code> property
|
|
471
457
|
* @public
|
|
472
458
|
*/
|
|
473
|
-
setVisible: function
|
|
459
|
+
setVisible: function(vControl, bVisible) {},
|
|
474
460
|
|
|
475
461
|
/**
|
|
476
462
|
* See {@link sap.ui.core.Control#getVisible} method.
|
|
@@ -480,7 +466,7 @@ sap.ui.define([
|
|
|
480
466
|
* @returns {Promise<boolean>} <code>true</code> if the control's <code>visible</code> property is set wrapped in promise
|
|
481
467
|
* @public
|
|
482
468
|
*/
|
|
483
|
-
getVisible: function
|
|
469
|
+
getVisible: function(vControl) {},
|
|
484
470
|
|
|
485
471
|
/**
|
|
486
472
|
* Sets the new value for stashed and visible.
|
|
@@ -490,7 +476,7 @@ sap.ui.define([
|
|
|
490
476
|
* @param {boolean} bStashed - New value for <code>stashed</code> property
|
|
491
477
|
* @public
|
|
492
478
|
*/
|
|
493
|
-
setStashed: function
|
|
479
|
+
setStashed: function(vControl, bStashed) {},
|
|
494
480
|
|
|
495
481
|
/**
|
|
496
482
|
* Retrieves the current value of the stashed property.
|
|
@@ -500,7 +486,7 @@ sap.ui.define([
|
|
|
500
486
|
* @returns {boolean} <code>true</code> if the control is stashed
|
|
501
487
|
* @public
|
|
502
488
|
*/
|
|
503
|
-
getStashed: function
|
|
489
|
+
getStashed: function(vControl) {},
|
|
504
490
|
|
|
505
491
|
/**
|
|
506
492
|
* See {@link sap.ui.base.ManagedObject#bindProperty} method.
|
|
@@ -511,7 +497,7 @@ sap.ui.define([
|
|
|
511
497
|
* @param {object} vBindingInfos - Binding info
|
|
512
498
|
* @public
|
|
513
499
|
*/
|
|
514
|
-
bindProperty: function
|
|
500
|
+
bindProperty: function(vControl, sPropertyName, vBindingInfos) {},
|
|
515
501
|
|
|
516
502
|
/**
|
|
517
503
|
* See {@link sap.ui.base.ManagedObject#unbindProperty} method.
|
|
@@ -521,7 +507,7 @@ sap.ui.define([
|
|
|
521
507
|
* @param {string} sPropertyName - Property name to be unbound
|
|
522
508
|
* @public
|
|
523
509
|
*/
|
|
524
|
-
unbindProperty: function
|
|
510
|
+
unbindProperty: function(vControl, sPropertyName) {},
|
|
525
511
|
|
|
526
512
|
/**
|
|
527
513
|
* See {@link sap.ui.base.ManagedObject#bindAggregation} method.
|
|
@@ -533,7 +519,7 @@ sap.ui.define([
|
|
|
533
519
|
* @returns {Promise} resolves when async processing is done
|
|
534
520
|
* @public
|
|
535
521
|
*/
|
|
536
|
-
bindAggregation: function
|
|
522
|
+
bindAggregation: function(vControl, sAggregationName, vBindingInfos) {},
|
|
537
523
|
|
|
538
524
|
/**
|
|
539
525
|
* See {@link sap.ui.base.ManagedObject#unbindAggregation} method.
|
|
@@ -544,7 +530,7 @@ sap.ui.define([
|
|
|
544
530
|
* @returns {Promise} resolves when async processing is done
|
|
545
531
|
* @public
|
|
546
532
|
*/
|
|
547
|
-
unbindAggregation: function
|
|
533
|
+
unbindAggregation: function(vControl, sAggregationName) {},
|
|
548
534
|
|
|
549
535
|
/**
|
|
550
536
|
* See {@link sap.ui.base.ManagedObject#setProperty} method.
|
|
@@ -555,7 +541,7 @@ sap.ui.define([
|
|
|
555
541
|
* @param {*} vPropertyValue - New value for the property
|
|
556
542
|
* @public
|
|
557
543
|
*/
|
|
558
|
-
setProperty: function
|
|
544
|
+
setProperty: function(vControl, sPropertyName, vPropertyValue) {},
|
|
559
545
|
|
|
560
546
|
/**
|
|
561
547
|
* See {@link sap.ui.base.ManagedObject#getProperty} method.
|
|
@@ -563,10 +549,10 @@ sap.ui.define([
|
|
|
563
549
|
* @abstract
|
|
564
550
|
* @param {sap.ui.base.ManagedObject|Element} vControl - Control representation
|
|
565
551
|
* @param {string} sPropertyName - Property name
|
|
566
|
-
* @returns {Promise<any>} Value of the property wrapped in a
|
|
552
|
+
* @returns {Promise<any>} Value of the property wrapped in a Promise
|
|
567
553
|
* @public
|
|
568
554
|
*/
|
|
569
|
-
getProperty: function
|
|
555
|
+
getProperty: function(vControl, sPropertyName) {},
|
|
570
556
|
|
|
571
557
|
/**
|
|
572
558
|
* See {@link sap.ui.base.ManagedObject#isPropertyInitial} method.
|
|
@@ -577,7 +563,7 @@ sap.ui.define([
|
|
|
577
563
|
* @returns {boolean} <code>true</code> if the property is initial
|
|
578
564
|
* @public
|
|
579
565
|
*/
|
|
580
|
-
isPropertyInitial: function
|
|
566
|
+
isPropertyInitial: function(oControl, sPropertyName) {},
|
|
581
567
|
|
|
582
568
|
/**
|
|
583
569
|
* Similar as {@link #bindProperty}, but allows to specify binding like in control constructor.
|
|
@@ -588,7 +574,7 @@ sap.ui.define([
|
|
|
588
574
|
* @param {any} vPropertyBinding - See source of <code>sap.ui.base.ManagedObject#extractBindingInfo</code> method
|
|
589
575
|
* @public
|
|
590
576
|
*/
|
|
591
|
-
setPropertyBinding: function
|
|
577
|
+
setPropertyBinding: function(vControl, sPropertyName, vPropertyBinding) {},
|
|
592
578
|
|
|
593
579
|
/**
|
|
594
580
|
* See {@link sap.ui.base.ManagedObject#getBindingInfo} method.
|
|
@@ -599,7 +585,7 @@ sap.ui.define([
|
|
|
599
585
|
* @returns {*} Binding info
|
|
600
586
|
* @public
|
|
601
587
|
*/
|
|
602
|
-
getPropertyBinding: function
|
|
588
|
+
getPropertyBinding: function(vControl, sPropertyName) {},
|
|
603
589
|
|
|
604
590
|
|
|
605
591
|
/**
|
|
@@ -641,7 +627,7 @@ sap.ui.define([
|
|
|
641
627
|
* @returns {Promise<Element>} Promise with Element of the control that is created
|
|
642
628
|
* @public
|
|
643
629
|
*/
|
|
644
|
-
createControl: function
|
|
630
|
+
createControl: function(sClassName, oAppComponent, oView, oSelector, mSettings) {},
|
|
645
631
|
|
|
646
632
|
/**
|
|
647
633
|
* See {@link sap.ui.base.ManagedObject#applySettings} method.
|
|
@@ -663,7 +649,7 @@ sap.ui.define([
|
|
|
663
649
|
* @returns {sap.ui.core.Element|Element} - Control instance or element node or <code>undefined</code> if control cannot be found
|
|
664
650
|
* @private
|
|
665
651
|
*/
|
|
666
|
-
_byId: function
|
|
652
|
+
_byId: function(sId, oView) {},
|
|
667
653
|
|
|
668
654
|
/**
|
|
669
655
|
* See {@link sap.ui.base.ManagedObject#getId} method.
|
|
@@ -673,7 +659,7 @@ sap.ui.define([
|
|
|
673
659
|
* @returns {string} ID
|
|
674
660
|
* @public
|
|
675
661
|
*/
|
|
676
|
-
getId: function
|
|
662
|
+
getId: function(vControl) {},
|
|
677
663
|
|
|
678
664
|
/**
|
|
679
665
|
* See {@link sap.ui.base.ManagedObject#getParent} method.
|
|
@@ -683,7 +669,7 @@ sap.ui.define([
|
|
|
683
669
|
* @returns {sap.ui.base.ManagedObject|Element} Parent control in its representation
|
|
684
670
|
* @public
|
|
685
671
|
*/
|
|
686
|
-
getParent: function
|
|
672
|
+
getParent: function(vControl) {},
|
|
687
673
|
|
|
688
674
|
/**
|
|
689
675
|
* See {@link sap.ui.base.Metadata#getName} method.
|
|
@@ -693,7 +679,7 @@ sap.ui.define([
|
|
|
693
679
|
* @returns {string} Control type
|
|
694
680
|
* @public
|
|
695
681
|
*/
|
|
696
|
-
getControlType: function
|
|
682
|
+
getControlType: function(vControl) {},
|
|
697
683
|
|
|
698
684
|
/**
|
|
699
685
|
* See {@link sap.ui.base.ManagedObject#setAssociation} method.
|
|
@@ -704,7 +690,7 @@ sap.ui.define([
|
|
|
704
690
|
* @param {string|sap.ui.base.ManagedObject|Element} sId - ID of the managed object that is set as an association, or the managed object or XML node itself or <code>null</code>
|
|
705
691
|
* @public
|
|
706
692
|
*/
|
|
707
|
-
setAssociation: function
|
|
693
|
+
setAssociation: function(vParent, sName, sId) {},
|
|
708
694
|
|
|
709
695
|
/**
|
|
710
696
|
* See {@link sap.ui.base.ManagedObject#getAssociation} method.
|
|
@@ -715,7 +701,7 @@ sap.ui.define([
|
|
|
715
701
|
* @returns {string|string[]|null} ID of the associated managed object or an array of such IDs; may be <code>null</code> if the association has not been populated
|
|
716
702
|
* @public
|
|
717
703
|
*/
|
|
718
|
-
getAssociation: function
|
|
704
|
+
getAssociation: function(vParent, sName) {},
|
|
719
705
|
|
|
720
706
|
/**
|
|
721
707
|
* See {@link sap.ui.base.ManagedObjectMetadata#getAllAggregations} method.
|
|
@@ -725,7 +711,7 @@ sap.ui.define([
|
|
|
725
711
|
* @return {Promise<Object>} Map of aggregation info objects keyed by aggregation names wrapped in a Promise
|
|
726
712
|
* @public
|
|
727
713
|
*/
|
|
728
|
-
getAllAggregations: function
|
|
714
|
+
getAllAggregations: function(vControl) {},
|
|
729
715
|
|
|
730
716
|
/**
|
|
731
717
|
* See {@link sap.ui.base.ManagedObject#getAggregation} method.
|
|
@@ -736,7 +722,7 @@ sap.ui.define([
|
|
|
736
722
|
* @returns {Promise<sap.ui.base.ManagedObject[]|Element[]>} Aggregation content
|
|
737
723
|
* @public
|
|
738
724
|
*/
|
|
739
|
-
getAggregation: function
|
|
725
|
+
getAggregation: function(vParent, sName) {},
|
|
740
726
|
|
|
741
727
|
|
|
742
728
|
/**
|
|
@@ -752,7 +738,7 @@ sap.ui.define([
|
|
|
752
738
|
* @returns {Promise} resolves when async processing is done
|
|
753
739
|
* @public
|
|
754
740
|
*/
|
|
755
|
-
insertAggregation: function
|
|
741
|
+
insertAggregation: function(vParent, sAggregationName, oObject, iIndex, oView, bSkipAdjustIndex) {},
|
|
756
742
|
|
|
757
743
|
|
|
758
744
|
/**
|
|
@@ -766,7 +752,7 @@ sap.ui.define([
|
|
|
766
752
|
* @returns {Promise} resolves when async processing is done
|
|
767
753
|
* @public
|
|
768
754
|
*/
|
|
769
|
-
removeAggregation: function
|
|
755
|
+
removeAggregation: function(vParent, sAggregationName, oObject) {},
|
|
770
756
|
|
|
771
757
|
/**
|
|
772
758
|
* Removes the object from an aggregation of the source control and places it into an aggregation of the target control.
|
|
@@ -786,7 +772,7 @@ sap.ui.define([
|
|
|
786
772
|
* @returns {Promise} resolves when async processing is done
|
|
787
773
|
* @public
|
|
788
774
|
*/
|
|
789
|
-
moveAggregation: function
|
|
775
|
+
moveAggregation: function(vSourceParent, sSourceAggregationName, vTargetParent, sTargetAggregationName, oObject, iIndex, oView, bSkipAdjustIndex) {},
|
|
790
776
|
|
|
791
777
|
/**
|
|
792
778
|
* Replaces the whole content of an (multiple) aggregation and adds the passed content to it.
|
|
@@ -801,7 +787,7 @@ sap.ui.define([
|
|
|
801
787
|
* @returns {Promise<undefined>} Resolves when async processing is done
|
|
802
788
|
* @public
|
|
803
789
|
*/
|
|
804
|
-
replaceAllAggregation: function
|
|
790
|
+
replaceAllAggregation: function(vControl, sAggregationName, aNewControls) {},
|
|
805
791
|
|
|
806
792
|
/**
|
|
807
793
|
* Removes all objects from the aggregation of the given control.
|
|
@@ -813,7 +799,7 @@ sap.ui.define([
|
|
|
813
799
|
* @returns {Promise} resolves when async processing is done
|
|
814
800
|
* @public
|
|
815
801
|
*/
|
|
816
|
-
removeAllAggregation: function
|
|
802
|
+
removeAllAggregation: function(vParent, sAggregationName) {},
|
|
817
803
|
|
|
818
804
|
/**
|
|
819
805
|
* Gets the binding template from an aggregation.
|
|
@@ -825,7 +811,7 @@ sap.ui.define([
|
|
|
825
811
|
* @returns {Promise} resolves when async processing is done
|
|
826
812
|
* @public
|
|
827
813
|
*/
|
|
828
|
-
getBindingTemplate: function
|
|
814
|
+
getBindingTemplate: function(vControl, sAggregationName) {},
|
|
829
815
|
|
|
830
816
|
/**
|
|
831
817
|
* See {@link sap.ui.base.ManagedObject#updateAggregation} method.
|
|
@@ -836,7 +822,7 @@ sap.ui.define([
|
|
|
836
822
|
* @returns {Promise} resolves when async processing is done
|
|
837
823
|
* @public
|
|
838
824
|
*/
|
|
839
|
-
updateAggregation: function
|
|
825
|
+
updateAggregation: function(vParent, sAggregationName) {},
|
|
840
826
|
|
|
841
827
|
/**
|
|
842
828
|
* Finds the index of the control in its parent aggregation.
|
|
@@ -846,7 +832,7 @@ sap.ui.define([
|
|
|
846
832
|
* @returns {Promise<int>} Index of the control wrapped in a Promise
|
|
847
833
|
* @public
|
|
848
834
|
*/
|
|
849
|
-
findIndexInParentAggregation: function
|
|
835
|
+
findIndexInParentAggregation: function(vControl) {},
|
|
850
836
|
|
|
851
837
|
/**
|
|
852
838
|
* Removes all objects from the aggregation of the given control.
|
|
@@ -857,7 +843,7 @@ sap.ui.define([
|
|
|
857
843
|
* @returns {Promise<string>} Parent aggregation name wrapped in a Promise
|
|
858
844
|
* @public
|
|
859
845
|
*/
|
|
860
|
-
getParentAggregationName: function
|
|
846
|
+
getParentAggregationName: function(vControl, vParent) {},
|
|
861
847
|
|
|
862
848
|
/**
|
|
863
849
|
* Finds the aggregation by the given aggregation name.
|
|
@@ -970,8 +956,8 @@ sap.ui.define([
|
|
|
970
956
|
* @public
|
|
971
957
|
*/
|
|
972
958
|
getFlexDelegate: function(vControl) {
|
|
973
|
-
|
|
974
|
-
|
|
959
|
+
let mDelegateInfo;
|
|
960
|
+
const sDelegate = this._getFlexCustomData(vControl, "delegate");
|
|
975
961
|
if (typeof sDelegate === "string") {
|
|
976
962
|
try {
|
|
977
963
|
mDelegateInfo = JSON.parse(sDelegate);
|
|
@@ -991,7 +977,7 @@ sap.ui.define([
|
|
|
991
977
|
* @abstract
|
|
992
978
|
* @param {string} sExtensionPointName - Name of the extension point
|
|
993
979
|
* @param {sap.ui.core.mvc.View|Element} oView - View control or XML node of the view
|
|
994
|
-
* @returns {Promise<{parent: object, aggregation: string, index: number, defaultContent: array}>} - Object containing parent control, aggregation name, index and the defaultContent of the
|
|
980
|
+
* @returns {Promise<{parent: object, aggregation: string, index: number, defaultContent: array}>} - Object containing parent control, aggregation name, index and the defaultContent of the extension point if exists. It is wrapped in a Promise
|
|
995
981
|
* @experimental
|
|
996
982
|
*/
|
|
997
983
|
getExtensionPointInfo: function(sExtensionPointName, oView) {}
|