@openui5/sap.ui.core 1.101.0 → 1.103.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/.eslintrc.json +26 -5
- package/THIRDPARTY.txt +1 -1
- package/package.json +1 -1
- package/src/jquery.sap.global.js +2 -2
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/assert.js +1 -1
- package/src/sap/base/i18n/ResourceBundle.js +2 -2
- package/src/sap/base/strings/whitespaceReplacer.js +1 -1
- package/src/sap/base/util/restricted/_CancelablePromise.js +2 -2
- 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 +9 -3
- package/src/sap/ui/Global.js +4 -4
- package/src/sap/ui/VersionInfo.js +12 -6
- package/src/sap/ui/base/Event.js +1 -1
- package/src/sap/ui/base/EventProvider.js +2 -2
- package/src/sap/ui/base/ExpressionParser.js +2 -2
- package/src/sap/ui/base/Interface.js +1 -1
- package/src/sap/ui/base/ManagedObject.js +10 -8
- package/src/sap/ui/base/ManagedObjectMetadata.js +21 -8
- package/src/sap/ui/base/Metadata.js +1 -1
- package/src/sap/ui/base/Object.js +1 -1
- package/src/sap/ui/base/ObjectPool.js +1 -1
- package/src/sap/ui/base/SyncPromise.js +2 -0
- package/src/sap/ui/core/.library +2 -89
- package/src/sap/ui/core/AppCacheBuster.js +4 -4
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/CommandExecution.js +15 -12
- package/src/sap/ui/core/Component.js +34 -15
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- package/src/sap/ui/core/ComponentMetadata.js +27 -12
- package/src/sap/ui/core/ComponentSupport.js +1 -1
- package/src/sap/ui/core/Configuration.js +23 -9
- package/src/sap/ui/core/Control.js +3 -4
- package/src/sap/ui/core/Core.js +102 -34
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +10 -9
- package/src/sap/ui/core/Element.js +12 -11
- package/src/sap/ui/core/ElementMetadata.js +1 -1
- package/src/sap/ui/core/EnabledPropagator.js +4 -2
- package/src/sap/ui/core/EventBus.js +1 -1
- package/src/sap/ui/core/ExtensionPoint.js +1 -1
- package/src/sap/ui/core/FocusHandler.js +4 -5
- package/src/sap/ui/core/Fragment.js +17 -14
- package/src/sap/ui/core/HTML.js +2 -2
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +7 -7
- package/src/sap/ui/core/IconPool.js +1 -3
- package/src/sap/ui/core/IndicationColorSupport.js +1 -1
- package/src/sap/ui/core/IntervalTrigger.js +1 -1
- package/src/sap/ui/core/InvisibleMessage.js +1 -1
- package/src/sap/ui/core/InvisibleRenderer.js +1 -1
- package/src/sap/ui/core/InvisibleText.js +1 -1
- package/src/sap/ui/core/Item.js +1 -1
- package/src/sap/ui/core/LabelEnablement.js +1 -1
- package/src/sap/ui/core/LayoutData.js +1 -1
- package/src/sap/ui/core/ListItem.js +1 -1
- package/src/sap/ui/core/LocalBusyIndicator.js +1 -1
- package/src/sap/ui/core/Locale.js +28 -4
- package/src/sap/ui/core/LocaleData.js +119 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +16 -16
- package/src/sap/ui/core/RenderManager.js +1 -1
- package/src/sap/ui/core/Renderer.js +1 -1
- package/src/sap/ui/core/ResizeHandler.js +1 -1
- package/src/sap/ui/core/ScrollBar.js +21 -15
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/ShortcutHintsMixin.js +2 -4
- package/src/sap/ui/core/ThemeCheck.js +7 -7
- 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 +5 -6
- package/src/sap/ui/core/UIComponent.js +2 -2
- package/src/sap/ui/core/UIComponentMetadata.js +2 -2
- 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 +515 -392
- package/src/sap/ui/core/cache/CacheManager.js +27 -0
- package/src/sap/ui/core/cache/CacheManagerNOP.js +3 -0
- package/src/sap/ui/core/cache/LRUPersistentCache.js +75 -3
- package/src/sap/ui/core/cldr/ar.json +469 -1
- package/src/sap/ui/core/cldr/ar_EG.json +469 -1
- package/src/sap/ui/core/cldr/ar_SA.json +469 -1
- package/src/sap/ui/core/cldr/bg.json +469 -1
- package/src/sap/ui/core/cldr/ca.json +469 -1
- package/src/sap/ui/core/cldr/cs.json +469 -1
- package/src/sap/ui/core/cldr/cy.json +469 -1
- package/src/sap/ui/core/cldr/da.json +469 -1
- package/src/sap/ui/core/cldr/de.json +469 -1
- package/src/sap/ui/core/cldr/de_AT.json +469 -1
- package/src/sap/ui/core/cldr/de_CH.json +469 -1
- package/src/sap/ui/core/cldr/el.json +469 -1
- package/src/sap/ui/core/cldr/el_CY.json +469 -1
- package/src/sap/ui/core/cldr/en.json +469 -1
- package/src/sap/ui/core/cldr/en_AU.json +469 -1
- package/src/sap/ui/core/cldr/en_GB.json +469 -1
- package/src/sap/ui/core/cldr/en_HK.json +469 -1
- package/src/sap/ui/core/cldr/en_IE.json +469 -1
- package/src/sap/ui/core/cldr/en_IN.json +469 -1
- package/src/sap/ui/core/cldr/en_NZ.json +469 -1
- package/src/sap/ui/core/cldr/en_PG.json +469 -1
- package/src/sap/ui/core/cldr/en_SG.json +469 -1
- package/src/sap/ui/core/cldr/en_ZA.json +469 -1
- package/src/sap/ui/core/cldr/es.json +469 -1
- package/src/sap/ui/core/cldr/es_AR.json +469 -1
- package/src/sap/ui/core/cldr/es_BO.json +469 -1
- package/src/sap/ui/core/cldr/es_CL.json +469 -1
- package/src/sap/ui/core/cldr/es_CO.json +469 -1
- package/src/sap/ui/core/cldr/es_MX.json +469 -1
- package/src/sap/ui/core/cldr/es_PE.json +469 -1
- package/src/sap/ui/core/cldr/es_UY.json +469 -1
- package/src/sap/ui/core/cldr/es_VE.json +469 -1
- package/src/sap/ui/core/cldr/et.json +469 -1
- package/src/sap/ui/core/cldr/fa.json +469 -1
- package/src/sap/ui/core/cldr/fi.json +469 -1
- package/src/sap/ui/core/cldr/fr.json +469 -1
- package/src/sap/ui/core/cldr/fr_BE.json +469 -1
- package/src/sap/ui/core/cldr/fr_CA.json +469 -1
- package/src/sap/ui/core/cldr/fr_CH.json +469 -1
- package/src/sap/ui/core/cldr/fr_LU.json +469 -1
- package/src/sap/ui/core/cldr/he.json +469 -1
- package/src/sap/ui/core/cldr/hi.json +469 -1
- package/src/sap/ui/core/cldr/hr.json +469 -1
- package/src/sap/ui/core/cldr/hu.json +469 -1
- package/src/sap/ui/core/cldr/id.json +469 -1
- package/src/sap/ui/core/cldr/it.json +469 -1
- package/src/sap/ui/core/cldr/it_CH.json +469 -1
- package/src/sap/ui/core/cldr/ja.json +469 -1
- package/src/sap/ui/core/cldr/kk.json +469 -1
- package/src/sap/ui/core/cldr/ko.json +469 -1
- package/src/sap/ui/core/cldr/lt.json +469 -1
- package/src/sap/ui/core/cldr/lv.json +469 -1
- package/src/sap/ui/core/cldr/ms.json +469 -1
- package/src/sap/ui/core/cldr/nb.json +469 -1
- package/src/sap/ui/core/cldr/nl.json +469 -1
- package/src/sap/ui/core/cldr/nl_BE.json +469 -1
- package/src/sap/ui/core/cldr/pl.json +469 -1
- package/src/sap/ui/core/cldr/pt.json +469 -1
- package/src/sap/ui/core/cldr/pt_PT.json +469 -1
- package/src/sap/ui/core/cldr/ro.json +469 -1
- package/src/sap/ui/core/cldr/ru.json +469 -1
- package/src/sap/ui/core/cldr/ru_UA.json +469 -1
- package/src/sap/ui/core/cldr/sk.json +469 -1
- package/src/sap/ui/core/cldr/sl.json +469 -1
- package/src/sap/ui/core/cldr/sr.json +469 -1
- package/src/sap/ui/core/cldr/sr_Latn.json +469 -1
- package/src/sap/ui/core/cldr/sv.json +469 -1
- package/src/sap/ui/core/cldr/th.json +469 -1
- package/src/sap/ui/core/cldr/tr.json +469 -1
- package/src/sap/ui/core/cldr/uk.json +469 -1
- package/src/sap/ui/core/cldr/vi.json +469 -1
- package/src/sap/ui/core/cldr/zh_CN.json +470 -2
- package/src/sap/ui/core/cldr/zh_HK.json +470 -2
- package/src/sap/ui/core/cldr/zh_SG.json +470 -2
- package/src/sap/ui/core/cldr/zh_TW.json +469 -1
- package/src/sap/ui/core/delegate/ItemNavigation.js +13 -14
- package/src/sap/ui/core/delegate/ScrollEnablement.js +11 -7
- package/src/sap/ui/core/dnd/DragAndDrop.js +3 -3
- 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 +43 -28
- package/src/sap/ui/core/format/NumberFormat.js +30 -30
- package/src/sap/ui/core/format/TimezoneUtil.js +48 -16
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +3 -3
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +1 -1
- package/src/sap/ui/core/message/MessageManager.js +1 -1
- package/src/sap/ui/core/message/MessageParser.js +2 -2
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +2 -2
- package/src/sap/ui/core/messagebundle_it.properties +56 -56
- package/src/sap/ui/core/mvc/ControllerExtension.js +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +12 -12
- package/src/sap/ui/core/mvc/JSONView.js +1 -1
- package/src/sap/ui/core/mvc/JSView.js +2 -2
- package/src/sap/ui/core/mvc/TemplateView.js +1 -1
- package/src/sap/ui/core/mvc/View.js +2 -1
- package/src/sap/ui/core/mvc/XMLView.js +12 -20
- package/src/sap/ui/core/mvc/XMLViewRenderer.js +81 -62
- package/src/sap/ui/core/plugin/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/plugin/LessSupport.js +3 -3
- package/src/sap/ui/core/plugin/TemplatingSupport.js +1 -1
- package/src/sap/ui/core/postmessage/Bus.js +1 -1
- package/src/sap/ui/core/postmessage/confirmationDialog.js +1 -1
- package/src/sap/ui/core/routing/History.js +5 -3
- package/src/sap/ui/core/routing/Router.js +5 -3
- package/src/sap/ui/core/routing/Targets.js +2 -2
- package/src/sap/ui/core/rules/App.support.js +8 -8
- package/src/sap/ui/core/rules/Config.support.js +12 -12
- package/src/sap/ui/core/rules/Model.support.js +8 -8
- package/src/sap/ui/core/rules/Rendering.support.js +1 -1
- package/src/sap/ui/core/rules/Theming.support.js +4 -4
- package/src/sap/ui/core/rules/View.support.js +9 -9
- 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/RuleEngineOpaExtension.js +1 -1
- package/src/sap/ui/core/support/Support.js +2 -2
- package/src/sap/ui/core/support/ToolsAPI.js +4 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +9 -3
- 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 +8 -22
- package/src/sap/ui/core/support/support.html +1 -1
- package/src/sap/ui/core/themes/base/LocalBusyIndicator.less +15 -1
- package/src/sap/ui/core/themes/base/base.less +4 -4
- package/src/sap/ui/core/themes/base/global.less +2 -0
- package/src/sap/ui/core/themes/sap_hcb/global.less +2 -0
- package/src/sap/ui/core/theming/Parameters.js +1 -1
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +2 -2
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +4 -4
- package/src/sap/ui/core/tmpl/TemplateControl.js +2 -2
- 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 +2 -2
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/ResponsivePaddingsEnablement.js +2 -2
- package/src/sap/ui/core/util/XMLPreprocessor.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/ws/ReadyState.js +1 -1
- package/src/sap/ui/core/ws/SapPcpWebSocket.js +1 -1
- package/src/sap/ui/core/ws/WebSocket.js +7 -8
- 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/_ready.js +34 -0
- package/src/sap/ui/dom/containsOrEquals.js +2 -2
- package/src/sap/ui/dom/getFirstEditableInput.js +2 -2
- package/src/sap/ui/dom/jquery/Focusable.js +1 -1
- package/src/sap/ui/dom/jquery/control.js +1 -1
- package/src/sap/ui/events/jquery/EventExtension.js +1 -1
- package/src/sap/ui/events/jquery/EventSimulation.js +1 -1
- package/src/sap/ui/model/ClientListBinding.js +127 -21
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/CompositeDataState.js +1 -1
- package/src/sap/ui/model/CompositeType.js +1 -1
- package/src/sap/ui/model/DataState.js +1 -1
- package/src/sap/ui/model/ListBinding.js +32 -13
- 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/TreeBindingAdapter.js +134 -0
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/_Helper.js +3 -1
- package/src/sap/ui/model/json/JSONListBinding.js +0 -58
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/message/MessageListBinding.js +0 -42
- package/src/sap/ui/model/message/MessageModel.js +1 -1
- package/src/sap/ui/model/odata/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/ODataMessageParser.js +1 -1
- package/src/sap/ui/model/odata/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/ODataMetadata.js +1 -1
- package/src/sap/ui/model/odata/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/ODataTreeBindingAdapter.js +6 -0
- package/src/sap/ui/model/odata/ODataTreeBindingFlat.js +279 -4
- package/src/sap/ui/model/odata/OperationMode.js +6 -0
- 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 -2
- 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 +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +13 -4
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +107 -34
- package/src/sap/ui/model/odata/v2/ODataModel.js +70 -22
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +43 -7
- package/src/sap/ui/model/odata/v4/Context.js +31 -10
- package/src/sap/ui/model/odata/v4/ODataBinding.js +16 -8
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +24 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +83 -27
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +17 -10
- package/src/sap/ui/model/odata/v4/ODataModel.js +175 -6
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +30 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +17 -6
- package/src/sap/ui/model/odata/v4/lib/_AggregationHelper.js +6 -6
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +208 -85
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +119 -42
- package/src/sap/ui/model/odata/v4/lib/_MinMaxHelper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +60 -35
- package/src/sap/ui/model/odata/v4/lib/_V2MetadataConverter.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLListBinding.js +0 -53
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/security/FrameOptions.js +4 -2
- package/src/sap/ui/test/OpaBuilder.js +1 -1
- package/src/sap/ui/test/OpaPlugin.js +3 -3
- package/src/sap/ui/test/_ControlFinder.js +5 -4
- package/src/sap/ui/test/actions/Action.js +3 -3
- package/src/sap/ui/test/actions/Drag.js +2 -2
- package/src/sap/ui/test/actions/Drop.js +2 -2
- package/src/sap/ui/test/actions/EnterText.js +8 -8
- package/src/sap/ui/test/actions/Press.js +6 -6
- package/src/sap/ui/test/actions/Scroll.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Mobile.js +59 -33
- package/src/sap/ui/util/Storage.js +2 -2
- package/src/sap/ui/util/openWindow.js +1 -1
- package/src/ui5loader.js +3 -3
- package/ui5.yaml +72 -1
|
@@ -24,7 +24,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/Log"],
|
|
|
24
24
|
* @extends sap.ui.base.Object
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.103.0
|
|
28
28
|
* @public
|
|
29
29
|
* @abstract
|
|
30
30
|
* @alias sap.ui.core.message.MessageParser
|
|
@@ -56,7 +56,7 @@ MessageParser.prototype.setProcessor = function(oProcessor) {
|
|
|
56
56
|
/**
|
|
57
57
|
* Returns the registered processor on which the events for message handling can be fired
|
|
58
58
|
*
|
|
59
|
-
* @
|
|
59
|
+
* @returns {sap.ui.core.message.MessageProcessor|null} The currently set MessageProcessor or <code>null</code> if none is set
|
|
60
60
|
* @protected
|
|
61
61
|
*/
|
|
62
62
|
MessageParser.prototype.getProcessor = function() {
|
|
@@ -194,8 +194,8 @@ Icon.synchronize=\u03A3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC.
|
|
|
194
194
|
Icon.undo=\u0391\u03BD\u03AC\u03BA\u03BB\u03B7\u03C3\u03B7
|
|
195
195
|
Icon.up=\u03A0\u03AC\u03BD\u03C9
|
|
196
196
|
Icon.upload=\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7
|
|
197
|
-
Icon.zoom-in
|
|
198
|
-
Icon.zoom-out
|
|
197
|
+
Icon.zoom-in=\u039C\u03B5\u03B3\u03AD\u03B8\u03C5\u03BD\u03C3\u03B7
|
|
198
|
+
Icon.zoom-out=\u03A3\u03BC\u03AF\u03BA\u03C1\u03C5\u03BD\u03C3\u03B7
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
TechInfo.DialogTitle=\u0394\u03B9\u03AC\u03BB\u03BF\u03B3\u03BF\u03C2 \u03A4\u03B5\u03C7\u03BD\u03B9\u03BA\u03CE\u03BD \u03A3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD
|
|
@@ -56,79 +56,79 @@ CommunicationError=Errore di comunicazione
|
|
|
56
56
|
|
|
57
57
|
NO=No
|
|
58
58
|
YES=S\u00EC
|
|
59
|
-
EnterYesOrNo=
|
|
60
|
-
EnterDigitsOnly=
|
|
61
|
-
EnterMaximumOfDigits=
|
|
62
|
-
EnterNumber=
|
|
63
|
-
EnterNumberPrecision=
|
|
64
|
-
EnterNumberInteger=
|
|
65
|
-
EnterNumberFraction=
|
|
66
|
-
EnterNumberIntegerFraction=
|
|
67
|
-
EnterNumberFractionOnly=
|
|
68
|
-
EnterNumberMin=
|
|
69
|
-
EnterNumberMinExclusive=
|
|
70
|
-
EnterNumberMax=
|
|
71
|
-
EnterNumberMaxExclusive=
|
|
72
|
-
EnterText=
|
|
73
|
-
EnterTextMaxLength=
|
|
74
|
-
EnterInt=
|
|
75
|
-
EnterDateTime=
|
|
76
|
-
EnterDateTimeTimezone=
|
|
77
|
-
EnterDate=
|
|
78
|
-
EnterGuid=
|
|
79
|
-
EnterTime=
|
|
59
|
+
EnterYesOrNo=Inserire "{0}" oppure "{1}".
|
|
60
|
+
EnterDigitsOnly=Inserire solo cifre
|
|
61
|
+
EnterMaximumOfDigits=Inserire non pi\u00F9 di {0} caratteri.
|
|
62
|
+
EnterNumber=Inserire un numero
|
|
63
|
+
EnterNumberPrecision=Inserire un numero di massimo {0} cifre, compresi i decimali
|
|
64
|
+
EnterNumberInteger=Inserire un numero con non pi\u00F9 di {0} cifre a sinistra del segno separatore dei decimali
|
|
65
|
+
EnterNumberFraction=Inserire un numero con non pi\u00F9 di {0} decimali
|
|
66
|
+
EnterNumberIntegerFraction=Inserire un numero con non pi\u00F9 di {0} cifre a sinistra del segno separatore dei decimali e non pi\u00F9 di {1} decimali
|
|
67
|
+
EnterNumberFractionOnly=Inserire un numero con un valore assoluto inferiore a 1 e un massimo di {0} posizioni decimali
|
|
68
|
+
EnterNumberMin=Inserire un numero almeno pari a {0}
|
|
69
|
+
EnterNumberMinExclusive=Inserire un numero maggiore di {0}
|
|
70
|
+
EnterNumberMax=Inserire un numero con valore massimo pari a {0}
|
|
71
|
+
EnterNumberMaxExclusive=Inserire un numero minore di {0}
|
|
72
|
+
EnterText=Inserire un testo
|
|
73
|
+
EnterTextMaxLength=Inserire un testo con massimo {0} caratteri e spazi vuoti
|
|
74
|
+
EnterInt=Inserire un numero senza decimali.
|
|
75
|
+
EnterDateTime=Inserire una data e un''ora valide nel seguente formato\: {0}
|
|
76
|
+
EnterDateTimeTimezone=Inserire un fuso orario valido, ad esempio\: {0}
|
|
77
|
+
EnterDate=Inserire una data valida nel seguente formato\: {0}
|
|
78
|
+
EnterGuid=Inserire un GUID nel seguente formato\: 12345678-90AB-CDEF-1234-567890ABCDEF
|
|
79
|
+
EnterTime=Inserire un''ora valida nel seguente formato\: {0}
|
|
80
80
|
Currency.WithDecimals=Questa divisa supporta un massimo di {0} decimali. Adeguare l''importo o inserire una divisa differente.
|
|
81
81
|
Currency.WithoutDecimals=Questa divisa non supporta i decimali. Adeguare l'importo o inserire una divisa differente.
|
|
82
82
|
Unit.WithDecimals=Questa unit\u00E0 supporta un massimo di {0} decimali. Adeguare il valore o inserire un''unit\u00E0 differente.
|
|
83
83
|
Unit.WithoutDecimals=Questa unit\u00E0 non supporta i decimali. Adeguare il valore o inserire un'unit\u00E0 differente.
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
Boolean.Invalid=
|
|
86
|
+
Boolean.Invalid=Inserire un valore boleano valido
|
|
87
87
|
|
|
88
|
-
Integer.Invalid=
|
|
89
|
-
Integer.Minimum=
|
|
90
|
-
Integer.Maximum=
|
|
88
|
+
Integer.Invalid=Inserire un numero valido
|
|
89
|
+
Integer.Minimum=Inserire un numero maggiore di/uguale a {0}
|
|
90
|
+
Integer.Maximum=Inserire un numero minore di/uguale a {0}
|
|
91
91
|
|
|
92
|
-
Float.Invalid=
|
|
93
|
-
Float.Minimum=
|
|
94
|
-
Float.Maximum=
|
|
92
|
+
Float.Invalid=Inserire un numero valido
|
|
93
|
+
Float.Minimum=Inserire un numero maggiore di/uguale a {0}
|
|
94
|
+
Float.Maximum=Inserire un numero minore di/uguale a {0}
|
|
95
95
|
|
|
96
|
-
Currency.Invalid=
|
|
97
|
-
Currency.InvalidMeasure=
|
|
98
|
-
Currency.Minimum=
|
|
99
|
-
Currency.Maximum=
|
|
96
|
+
Currency.Invalid=Inserire un importo divisa valido
|
|
97
|
+
Currency.InvalidMeasure=Inserire una divisa valida
|
|
98
|
+
Currency.Minimum=Inserire un numero maggiore di/uguale a {0}
|
|
99
|
+
Currency.Maximum=Inserire un numero minore di/uguale a {0}
|
|
100
100
|
|
|
101
|
-
Unit.Invalid=
|
|
102
|
-
Unit.InvalidMeasure=
|
|
103
|
-
Unit.Minimum=
|
|
104
|
-
Unit.Maximum=
|
|
105
|
-
Unit.Decimals=
|
|
101
|
+
Unit.Invalid=Inserire un importo unit\u00E0 valido
|
|
102
|
+
Unit.InvalidMeasure=Inserire un'unit\u00E0 valida
|
|
103
|
+
Unit.Minimum=Inserire un numero maggiore di/uguale a {0}
|
|
104
|
+
Unit.Maximum=Inserire un numero minore di/uguale a {0}
|
|
105
|
+
Unit.Decimals=Inserire un importo con un numero di decimali inferiore a {0}
|
|
106
106
|
|
|
107
|
-
FileSize.Invalid=
|
|
108
|
-
FileSize.Minimum=
|
|
109
|
-
FileSize.Maximum=
|
|
107
|
+
FileSize.Invalid=Inserire una dimensione file valida
|
|
108
|
+
FileSize.Minimum=Inserire una dimensione file maggiore di/uguale a {0}
|
|
109
|
+
FileSize.Maximum=Inserire una dimensione file minore di/uguale a {0}
|
|
110
110
|
|
|
111
|
-
Date.Invalid=
|
|
112
|
-
Date.Minimum=
|
|
113
|
-
Date.Maximum=
|
|
111
|
+
Date.Invalid=Inserire una data
|
|
112
|
+
Date.Minimum=Inserire una data successiva al {0}
|
|
113
|
+
Date.Maximum=Inserire una data precedente al {0}
|
|
114
114
|
|
|
115
|
-
Time.Invalid=
|
|
116
|
-
Time.Minimum=
|
|
117
|
-
Time.Maximum=
|
|
115
|
+
Time.Invalid=Inserire un'ora valida
|
|
116
|
+
Time.Minimum=Inserire un''ora successiva alle {0}
|
|
117
|
+
Time.Maximum=Inserire un''ora precedente alle {0}
|
|
118
118
|
|
|
119
|
-
DateTime.Invalid=
|
|
120
|
-
DateTime.Minimum=
|
|
121
|
-
DateTime.Maximum=
|
|
119
|
+
DateTime.Invalid=Inserire una data e un'ora valide
|
|
120
|
+
DateTime.Minimum=Inserire una data e un''ora successive a {0}
|
|
121
|
+
DateTime.Maximum=Inserire una data e un''ora precedenti a {0}
|
|
122
122
|
|
|
123
123
|
DateInterval.Invalid=Inserire un intervallo date valido
|
|
124
124
|
|
|
125
|
-
String.MinLength=
|
|
126
|
-
String.MaxLength=
|
|
127
|
-
String.StartsWith=
|
|
128
|
-
String.EndsWith=
|
|
129
|
-
String.Contains=
|
|
130
|
-
String.Equals=
|
|
131
|
-
String.Search=
|
|
125
|
+
String.MinLength=Inserire un valore con almeno {0} caratteri
|
|
126
|
+
String.MaxLength=Inserire un valore con massimo {0} caratteri
|
|
127
|
+
String.StartsWith=Inserire un valore che inizi per "{0}"
|
|
128
|
+
String.EndsWith=Inserire un valore che termini per "{0}"
|
|
129
|
+
String.Contains=Inserire un valore che contenga "{0}"
|
|
130
|
+
String.Equals=Inserire il valore "{0}"
|
|
131
|
+
String.Search=Inserire un valore valido
|
|
132
132
|
|
|
133
133
|
ACC_CTR_TYPE_IMAGE=Videata
|
|
134
134
|
ACC_CTR_TYPE_BUTTON=Pulsante di comando
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
/**
|
|
46
46
|
* Sets the controller for this extension. Accessible by the base member.
|
|
47
47
|
*
|
|
48
|
-
* @param {sap.ui.core.
|
|
48
|
+
* @param {sap.ui.core.mvc.Controller} oController The controller
|
|
49
49
|
* @private
|
|
50
50
|
*/
|
|
51
51
|
_setController: function(oController) {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.ui.core.mvc.HTMLView.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
'sap/ui/thirdparty/jquery',
|
|
10
9
|
'./View',
|
|
11
10
|
'./HTMLViewRenderer',
|
|
12
11
|
'./ViewType',
|
|
@@ -17,7 +16,6 @@ sap.ui.define([
|
|
|
17
16
|
'sap/base/util/LoaderExtensions'
|
|
18
17
|
],
|
|
19
18
|
function(
|
|
20
|
-
jQuery,
|
|
21
19
|
View,
|
|
22
20
|
HTMLViewRenderer,
|
|
23
21
|
ViewType,
|
|
@@ -45,7 +43,7 @@ sap.ui.define([
|
|
|
45
43
|
* @extends sap.ui.core.mvc.View
|
|
46
44
|
*
|
|
47
45
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
46
|
+
* @version 1.103.0
|
|
49
47
|
*
|
|
50
48
|
* @public
|
|
51
49
|
* @since 1.9.2
|
|
@@ -259,18 +257,20 @@ sap.ui.define([
|
|
|
259
257
|
var oProperties = that.getMetadata().getAllProperties();
|
|
260
258
|
|
|
261
259
|
if (oMetaElement) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
var
|
|
265
|
-
var
|
|
266
|
-
|
|
260
|
+
var aAttributes = oMetaElement.getAttributeNames();
|
|
261
|
+
for (var j = 0; j < aAttributes.length; j++) {
|
|
262
|
+
var sAttributeName = aAttributes[j];
|
|
263
|
+
var sSettingName = DeclarativeSupport.convertAttributeToSettingName(sAttributeName, that.getId());
|
|
264
|
+
var sValue = oMetaElement.getAttribute(sAttributeName);
|
|
265
|
+
var oProperty = oProperties[sSettingName];
|
|
266
|
+
if (!mSettings[sSettingName]) {
|
|
267
267
|
if (oProperty) {
|
|
268
|
-
mSettings[
|
|
269
|
-
} else if (HTMLView._mAllowedSettings[
|
|
270
|
-
mSettings[
|
|
268
|
+
mSettings[sSettingName] = DeclarativeSupport.convertValueToType(DeclarativeSupport.getPropertyDataType(oProperty),sValue);
|
|
269
|
+
} else if (HTMLView._mAllowedSettings[sSettingName]) {
|
|
270
|
+
mSettings[sSettingName] = sValue;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
}
|
|
273
|
+
}
|
|
274
274
|
that._oTemplate = oMetaElement;
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @param {object} [mSettings] initial settings for the new control
|
|
28
28
|
*
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.103.0
|
|
31
31
|
* @deprecated Since 1.90. Instead use {@link topic:e6bb33d076dc4f23be50c082c271b9f0 Typed Views}
|
|
32
32
|
* by defining the view class with {@link sap.ui.core.mvc.View.extend View.extend} and
|
|
33
33
|
* creating the view instances with {@link sap.ui.core.mvc.View.create View.create}.
|
|
@@ -206,7 +206,7 @@ sap.ui.define([
|
|
|
206
206
|
Log.warning(
|
|
207
207
|
"Do not use deprecated sap.ui.core.mvc.JSView: (View: " + (mSettings.id || mSettings.viewName) + "). " +
|
|
208
208
|
"Use typed views defined by 'sap.ui.core.mvc.View.extend()' and created by 'sap.ui.core.mvc.View.create()'. " +
|
|
209
|
-
"For further information, have a look at https://
|
|
209
|
+
"For further information, have a look at https://openui5.hana.ondemand.com/topic/e6bb33d076dc4f23be50c082c271b9f0.",
|
|
210
210
|
"sap.ui.core.mvc.JSView",
|
|
211
211
|
null,
|
|
212
212
|
function () {
|
|
@@ -29,7 +29,7 @@ function(View, TemplateViewRenderer, ViewType, Log) {
|
|
|
29
29
|
* @extends sap.ui.core.mvc.View
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.103.0
|
|
33
33
|
*
|
|
34
34
|
* @public
|
|
35
35
|
* @deprecated Since version 1.56.0, use {@link sap.ui.core.mvc.XMLView} in combination with
|
|
@@ -145,7 +145,7 @@ sap.ui.define([
|
|
|
145
145
|
* The default implementation of this method returns <code>false</code>.
|
|
146
146
|
*
|
|
147
147
|
* @extends sap.ui.core.Control
|
|
148
|
-
* @version 1.
|
|
148
|
+
* @version 1.103.0
|
|
149
149
|
*
|
|
150
150
|
* @public
|
|
151
151
|
* @alias sap.ui.core.mvc.View
|
|
@@ -183,6 +183,7 @@ sap.ui.define([
|
|
|
183
183
|
*/
|
|
184
184
|
displayBlock : {type : "boolean", group : "Appearance", defaultValue : false}
|
|
185
185
|
},
|
|
186
|
+
defaultAggregation: "content",
|
|
186
187
|
aggregations : {
|
|
187
188
|
|
|
188
189
|
/**
|
|
@@ -95,11 +95,6 @@ sap.ui.define([
|
|
|
95
95
|
* destroy</code> method. All functions can be called but may not work properly or lead to unexpected side effects.
|
|
96
96
|
*
|
|
97
97
|
* <strong>Note:</strong><br>
|
|
98
|
-
* On root level, you can only define content for the default aggregation, e.g. without adding the <code><content></code> tag. If
|
|
99
|
-
* you want to specify content for another aggregation of a view like <code>dependents</code>, place it in a child
|
|
100
|
-
* control's dependents aggregation or add it by using {@link sap.ui.core.mvc.XMLView#addDependent}.
|
|
101
|
-
*
|
|
102
|
-
* <strong>Note:</strong><br>
|
|
103
98
|
* The XML view offers special handling for context binding and style classes.
|
|
104
99
|
* You can specify them via the <code>binding</code> and <code>class</code> attributes on a control's XML node.
|
|
105
100
|
* Please be aware that these attributes are not properties of the respective controls and thus
|
|
@@ -107,8 +102,12 @@ sap.ui.define([
|
|
|
107
102
|
* For more information, see {@link topic:91f05e8b6f4d1014b6dd926db0e91070 Context Binding (Element Binding)}
|
|
108
103
|
* and {@link topic:b564935324f449209354c7e2f9903f22 Using CSS Style Sheets in XML Views}.
|
|
109
104
|
*
|
|
105
|
+
* <strong>Note:</strong><br>
|
|
106
|
+
* When the content aggregation of this control is bound, no HTML markup is allowed in the binding template of the
|
|
107
|
+
* bound content aggregation. An error will be thrown when the above combination is detected.
|
|
108
|
+
*
|
|
110
109
|
* @extends sap.ui.core.mvc.View
|
|
111
|
-
* @version 1.
|
|
110
|
+
* @version 1.103.0
|
|
112
111
|
*
|
|
113
112
|
* @public
|
|
114
113
|
* @alias sap.ui.core.mvc.XMLView
|
|
@@ -527,18 +526,11 @@ sap.ui.define([
|
|
|
527
526
|
}
|
|
528
527
|
|
|
529
528
|
// extract the properties of the view from the XML element
|
|
530
|
-
if (
|
|
531
|
-
//
|
|
532
|
-
|
|
533
|
-
//
|
|
534
|
-
XMLTemplateProcessor.parseViewAttributes(xContent, that
|
|
535
|
-
if (!mSettings.async) {
|
|
536
|
-
// extend mSettings which get applied implicitly during view constructor
|
|
537
|
-
Object.assign(mSettings, mSettingsFromXML);
|
|
538
|
-
} else {
|
|
539
|
-
// apply the settings from the loaded view source via an explicit call
|
|
540
|
-
that.applySettings(mSettingsFromXML);
|
|
541
|
-
}
|
|
529
|
+
if (!that.isSubView()) {
|
|
530
|
+
// extract the internal settings from the XML and set on the view. The standard properties, event
|
|
531
|
+
// handler, aggregation and association will be extracted during parsing the content and applied to the
|
|
532
|
+
// view instance by calling "applySettings"
|
|
533
|
+
XMLTemplateProcessor.parseViewAttributes(xContent, that);
|
|
542
534
|
} else {
|
|
543
535
|
// when used as fragment: prevent connection to controller, only top level XMLView must connect
|
|
544
536
|
delete mSettings.controller;
|
|
@@ -679,7 +671,7 @@ sap.ui.define([
|
|
|
679
671
|
View.prototype.exit.apply(this, arguments);
|
|
680
672
|
};
|
|
681
673
|
|
|
682
|
-
XMLView.prototype.onControllerConnected = function(oController) {
|
|
674
|
+
XMLView.prototype.onControllerConnected = function(oController, mSettings) {
|
|
683
675
|
var that = this;
|
|
684
676
|
// unset any preprocessors (e.g. from an enclosing JSON view)
|
|
685
677
|
|
|
@@ -694,7 +686,7 @@ sap.ui.define([
|
|
|
694
686
|
|
|
695
687
|
// parse the XML tree
|
|
696
688
|
if (!this.oAsyncState) {
|
|
697
|
-
this._aParsedContent = fnRunWithPreprocessor(XMLTemplateProcessor.parseTemplate.bind(null, this._xContent, this));
|
|
689
|
+
this._aParsedContent = fnRunWithPreprocessor(XMLTemplateProcessor.parseTemplate.bind(null, this._xContent, this, mSettings));
|
|
698
690
|
} else {
|
|
699
691
|
var fnDone = Interaction.notifyAsyncStep("VIEW PROCESSING");
|
|
700
692
|
return XMLTemplateProcessor.parseTemplatePromise(this._xContent, this, true, {
|
|
@@ -63,7 +63,6 @@ sap.ui.define([
|
|
|
63
63
|
apiVersion: 2
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
|
|
67
66
|
/**
|
|
68
67
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
69
68
|
*
|
|
@@ -71,79 +70,99 @@ sap.ui.define([
|
|
|
71
70
|
* @param {sap.ui.core.mvc.XMLView} oControl an object representation of the control that should be rendered
|
|
72
71
|
*/
|
|
73
72
|
XMLViewRenderer.render = function(rm, oControl) {
|
|
73
|
+
function writeRootOpenTag(bPreserve) {
|
|
74
|
+
rm.openStart("div", oControl);
|
|
75
|
+
rm.class("sapUiView");
|
|
76
|
+
rm.class("sapUiXMLView");
|
|
77
|
+
ViewRenderer.addDisplayClass(rm, oControl);
|
|
78
|
+
if (bPreserve) {
|
|
79
|
+
rm.attr("data-sap-ui-preserve", oControl.getId());
|
|
80
|
+
}
|
|
81
|
+
rm.style("width", oControl.getWidth());
|
|
82
|
+
rm.style("height", oControl.getHeight());
|
|
83
|
+
rm.openEnd();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function writeRootCloseTag() {
|
|
87
|
+
rm.close("div");
|
|
88
|
+
}
|
|
89
|
+
|
|
74
90
|
// write the HTML into the render manager
|
|
75
|
-
var aParsedContent = oControl._aParsedContent;
|
|
76
|
-
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
rm.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
var aParsedContent = oControl._aParsedContent, i;
|
|
92
|
+
|
|
93
|
+
if (oControl.isBound("content")) {
|
|
94
|
+
writeRootOpenTag();
|
|
95
|
+
|
|
96
|
+
var aContent = oControl.getContent();
|
|
97
|
+
for (i = 0; i < aContent.length; i++) {
|
|
98
|
+
rm.renderControl(aContent[i]);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
writeRootCloseTag();
|
|
102
|
+
} else {
|
|
103
|
+
var $oldContent = oControl._$oldContent = RenderManager.findPreservedContent(oControl.getId());
|
|
104
|
+
if ($oldContent.length === 0) {
|
|
105
|
+
// Log.debug("rendering " + oControl + " anew");
|
|
106
|
+
var bSubView = oControl.isSubView();
|
|
107
|
+
if (!bSubView) {
|
|
86
108
|
// do not preserve when rendering initially in async mode
|
|
87
|
-
|
|
109
|
+
writeRootOpenTag(!oControl.oAsyncState || !oControl.oAsyncState.suppressPreserve /* bPreserve */);
|
|
88
110
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
rm.class("sapUiHidden");
|
|
108
|
-
rm.openEnd();
|
|
109
|
-
rm.close("div");
|
|
111
|
+
if (aParsedContent) {
|
|
112
|
+
for (i = 0; i < aParsedContent.length; i++) {
|
|
113
|
+
var vRmInfo = aParsedContent[i];
|
|
114
|
+
// apply RenderManagerAPI calls which might have been recorded during XML processing for all encountered HTML elements in an XMLView
|
|
115
|
+
if (Array.isArray(vRmInfo)) {
|
|
116
|
+
rm[vRmInfo[0]].apply(rm, vRmInfo[1]);
|
|
117
|
+
} else if (!vRmInfo._isExtensionPoint) {
|
|
118
|
+
// XMLView ExtensionPoint placeholder
|
|
119
|
+
// we need to ignore these placeholders during rendering, they will be resolved asynchronously later by the flexibility provider
|
|
120
|
+
// plain UI5 Control
|
|
121
|
+
rm.renderControl(vRmInfo);
|
|
122
|
+
// when the child control did not render anything, we add a placeholder to know where to render the child later
|
|
123
|
+
if ( !vRmInfo.bOutput ) {
|
|
124
|
+
rm.openStart("div", PREFIX_DUMMY + vRmInfo.getId());
|
|
125
|
+
rm.class("sapUiHidden");
|
|
126
|
+
rm.openEnd();
|
|
127
|
+
rm.close("div");
|
|
128
|
+
}
|
|
110
129
|
}
|
|
111
130
|
}
|
|
112
131
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
132
|
+
if (!bSubView) {
|
|
133
|
+
writeRootCloseTag();
|
|
134
|
+
}
|
|
117
135
|
|
|
118
|
-
|
|
136
|
+
} else {
|
|
119
137
|
|
|
120
|
-
|
|
121
|
-
|
|
138
|
+
// render dummy control for early after rendering notification
|
|
139
|
+
rm.renderControl(oControl.oAfterRenderingNotifier);
|
|
122
140
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
// preserve mode: render a temporary element and all child controls
|
|
142
|
+
rm.openStart("div", PREFIX_TEMPORARY + oControl.getId());
|
|
143
|
+
rm.class("sapUiHidden");
|
|
144
|
+
rm.openEnd();
|
|
145
|
+
for (i = 0; i < aParsedContent.length; i++) {
|
|
146
|
+
var vFragment = aParsedContent[i];
|
|
147
|
+
// if the parsed content does not have a corresponding _renderManagerAPICall, it's a control
|
|
148
|
+
if (!Array.isArray(vFragment) && !vFragment._isExtensionPoint) {
|
|
149
|
+
// render DOM string for child control
|
|
150
|
+
rm.renderControl(vFragment);
|
|
151
|
+
|
|
152
|
+
// replace any old DOM (or invisible placeholder) for a child control with a dummy placeholder
|
|
153
|
+
var sFragmentId = vFragment.getId(),
|
|
154
|
+
$fragment = jQuery(document.getElementById(sFragmentId));
|
|
155
|
+
if ($fragment.length == 0) {
|
|
156
|
+
$fragment = jQuery(document.getElementById(PREFIX_INVISIBLE + sFragmentId));
|
|
157
|
+
}
|
|
158
|
+
if ( !RenderManager.isPreservedContent($fragment[0]) ) {
|
|
159
|
+
$fragment.replaceWith('<div id="' + PREFIX_DUMMY + sFragmentId + '" class="sapUiHidden"></div>');
|
|
160
|
+
}
|
|
142
161
|
}
|
|
143
162
|
}
|
|
144
|
-
|
|
145
|
-
rm.close("div");
|
|
163
|
+
rm.close("div");
|
|
146
164
|
|
|
165
|
+
}
|
|
147
166
|
}
|
|
148
167
|
};
|
|
149
168
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* feature - DO NOT USE IN PRODUCTIVE SCENARIOS!!
|
|
38
38
|
*
|
|
39
39
|
* @author Peter Muessig
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.103.0
|
|
41
41
|
* @private
|
|
42
42
|
* @alias sap.ui.core.plugin.LessSupport
|
|
43
43
|
*/
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
this.bActive = true;
|
|
103
103
|
|
|
104
104
|
// overwrite the includeLibraryTheme/applyTheme function to inject LESS
|
|
105
|
-
this.oCore.includeLibraryTheme =
|
|
106
|
-
this.oCore.applyTheme =
|
|
105
|
+
this.oCore.includeLibraryTheme = this.includeLibraryTheme.bind(this);
|
|
106
|
+
this.oCore.applyTheme = this.applyTheme.bind(this);
|
|
107
107
|
|
|
108
108
|
// update the themes (only when LESS files are newer than the CSS files)
|
|
109
109
|
var that = this, bUseLess = false;
|
|
@@ -146,7 +146,7 @@ sap.ui.define([
|
|
|
146
146
|
* If you now ask for the direction of the hash "foo" you get Unknown because it might be backwards or forwards.
|
|
147
147
|
* For hash replacements, the history stack will be replaced at this position for the history.
|
|
148
148
|
* @param {string} [sNewHash] optional, if this parameter is not passed the last hashChange is taken.
|
|
149
|
-
* @returns {sap.ui.core.routing.HistoryDirection} or undefined
|
|
149
|
+
* @returns {sap.ui.core.routing.HistoryDirection|undefined} Direction for the given hash or <code>undefined</code>, if no navigation has taken place yet.
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
History.prototype.getDirection = function(sNewHash) {
|
|
@@ -163,8 +163,10 @@ sap.ui.define([
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
166
|
+
* Gets the previous hash in the history.
|
|
167
|
+
*
|
|
168
|
+
* If the last direction was Unknown or there was no navigation yet, <code>undefined</code> will be returned.
|
|
169
|
+
* @returns {string|undefined} Previous hash in the history or <code>undefined</code>
|
|
168
170
|
* @public
|
|
169
171
|
*/
|
|
170
172
|
History.prototype.getPreviousHash = function() {
|