@openui5/sap.ui.core 1.96.22 → 1.96.24
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/package.json +1 -1
- package/src/jquery.sap.global.js +1 -1
- package/src/jquery.sap.properties.js +1 -1
- package/src/jquery.sap.resources.js +1 -1
- package/src/jquery.sap.script.js +1 -1
- package/src/jquery.sap.storage.js +3 -3
- package/src/sap/base/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 +4 -4
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/Component.js +60 -42
- package/src/sap/ui/core/ComponentContainer.js +1 -1
- 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 +11 -14
- package/src/sap/ui/core/Control.js +1 -1
- package/src/sap/ui/core/Core.js +4 -2
- package/src/sap/ui/core/CustomData.js +1 -1
- package/src/sap/ui/core/DeclarativeSupport.js +1 -1
- package/src/sap/ui/core/Element.js +1 -1
- 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 +1 -1
- package/src/sap/ui/core/HTML.js +1 -1
- package/src/sap/ui/core/History.js +1 -1
- package/src/sap/ui/core/Icon.js +1 -1
- package/src/sap/ui/core/IndicationColorSupport.js +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 +1 -1
- package/src/sap/ui/core/LocaleData.js +1 -1
- package/src/sap/ui/core/Manifest.js +1 -1
- package/src/sap/ui/core/Message.js +1 -1
- 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 +15 -20
- package/src/sap/ui/core/ScrollBar.js +1 -1
- package/src/sap/ui/core/SeparatorItem.js +1 -1
- package/src/sap/ui/core/Title.js +1 -1
- package/src/sap/ui/core/TooltipBase.js +1 -1
- package/src/sap/ui/core/UIArea.js +1 -1
- package/src/sap/ui/core/UIComponent.js +1 -1
- package/src/sap/ui/core/UIComponentMetadata.js +1 -1
- package/src/sap/ui/core/ValueStateSupport.js +1 -1
- package/src/sap/ui/core/VariantLayoutData.js +1 -1
- package/src/sap/ui/core/XMLComposite.js +1 -1
- package/src/sap/ui/core/XMLCompositeMetadata.js +1 -1
- package/src/sap/ui/core/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/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 +1 -1
- package/src/sap/ui/core/message/MessageProcessor.js +1 -1
- package/src/sap/ui/core/messagebundle_ar.properties +1 -1
- package/src/sap/ui/core/messagebundle_bg.properties +1 -1
- package/src/sap/ui/core/messagebundle_ca.properties +1 -1
- package/src/sap/ui/core/messagebundle_de.properties +1 -1
- package/src/sap/ui/core/messagebundle_el.properties +1 -1
- package/src/sap/ui/core/messagebundle_fi.properties +1 -1
- package/src/sap/ui/core/messagebundle_fr.properties +1 -1
- package/src/sap/ui/core/messagebundle_hi.properties +4 -4
- package/src/sap/ui/core/messagebundle_hr.properties +4 -4
- package/src/sap/ui/core/messagebundle_hu.properties +2 -2
- package/src/sap/ui/core/messagebundle_it.properties +1 -1
- package/src/sap/ui/core/messagebundle_ko.properties +2 -2
- package/src/sap/ui/core/messagebundle_lv.properties +4 -4
- package/src/sap/ui/core/messagebundle_mk.properties +336 -0
- package/src/sap/ui/core/messagebundle_pt.properties +3 -3
- package/src/sap/ui/core/messagebundle_ro.properties +1 -1
- package/src/sap/ui/core/messagebundle_sh.properties +28 -28
- package/src/sap/ui/core/messagebundle_sk.properties +1 -1
- package/src/sap/ui/core/messagebundle_sl.properties +1 -1
- package/src/sap/ui/core/messagebundle_sr.properties +336 -0
- package/src/sap/ui/core/messagebundle_th.properties +4 -4
- package/src/sap/ui/core/messagebundle_uk.properties +6 -6
- package/src/sap/ui/core/messagebundle_vi.properties +1 -1
- 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 +1 -1
- package/src/sap/ui/core/mvc/XMLView.js +1 -1
- 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/search/OpenSearchProvider.js +1 -1
- package/src/sap/ui/core/search/SearchProvider.js +1 -1
- package/src/sap/ui/core/service/Service.js +1 -1
- package/src/sap/ui/core/service/ServiceFactory.js +1 -1
- package/src/sap/ui/core/service/ServiceFactoryRegistry.js +1 -1
- package/src/sap/ui/core/support/Plugin.js +1 -1
- package/src/sap/ui/core/support/Support.js +1 -1
- package/src/sap/ui/core/support/plugins/ControlTree.js +1 -1
- package/src/sap/ui/core/support/plugins/Interaction.js +1 -1
- package/src/sap/ui/core/support/plugins/LocalStorage.js +1 -1
- package/src/sap/ui/core/support/plugins/Performance.js +1 -1
- package/src/sap/ui/core/support/plugins/Selector.js +1 -1
- package/src/sap/ui/core/support/plugins/TechInfo.js +1 -1
- package/src/sap/ui/core/support/plugins/Trace.js +1 -1
- package/src/sap/ui/core/support/plugins/ViewInfo.js +1 -1
- package/src/sap/ui/core/theming/ThemeHelper.js +103 -0
- package/src/sap/ui/core/tmpl/DOMAttribute.js +1 -1
- package/src/sap/ui/core/tmpl/DOMElement.js +1 -1
- package/src/sap/ui/core/tmpl/HandlebarsTemplate.js +1 -1
- package/src/sap/ui/core/tmpl/Template.js +1 -1
- package/src/sap/ui/core/tmpl/TemplateControl.js +1 -1
- package/src/sap/ui/core/util/AsyncHintsHelper.js +1 -1
- package/src/sap/ui/core/util/Export.js +1 -1
- package/src/sap/ui/core/util/ExportCell.js +1 -1
- package/src/sap/ui/core/util/ExportColumn.js +1 -1
- package/src/sap/ui/core/util/ExportRow.js +1 -1
- package/src/sap/ui/core/util/ExportType.js +1 -1
- package/src/sap/ui/core/util/ExportTypeCSV.js +1 -1
- package/src/sap/ui/core/util/File.js +1 -1
- package/src/sap/ui/core/util/LibraryInfo.js +1 -1
- package/src/sap/ui/core/util/MockServer.js +1 -1
- package/src/sap/ui/core/util/PasteHelper.js +1 -1
- package/src/sap/ui/core/util/serializer/HTMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/Serializer.js +1 -1
- package/src/sap/ui/core/util/serializer/ViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/XMLViewSerializer.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/Delegate.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/HTML.js +1 -1
- package/src/sap/ui/core/util/serializer/delegate/XML.js +1 -1
- package/src/sap/ui/core/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 +15 -6
- package/src/sap/ui/debug/PropertyList.js +1 -1
- 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/MetaModel.js +1 -1
- package/src/sap/ui/model/Model.js +1 -1
- package/src/sap/ui/model/SelectionModel.js +1 -1
- package/src/sap/ui/model/SimpleType.js +1 -1
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/json/JSONModel.js +1 -1
- package/src/sap/ui/model/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/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/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/Context.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataModel.js +1 -1
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +1 -1
- package/src/sap/ui/model/resource/ResourceModel.js +1 -1
- package/src/sap/ui/model/type/Boolean.js +1 -1
- package/src/sap/ui/model/type/Currency.js +1 -1
- package/src/sap/ui/model/type/Date.js +1 -1
- package/src/sap/ui/model/type/DateInterval.js +1 -1
- package/src/sap/ui/model/type/DateTime.js +1 -1
- package/src/sap/ui/model/type/DateTimeInterval.js +1 -1
- package/src/sap/ui/model/type/FileSize.js +1 -1
- package/src/sap/ui/model/type/Float.js +1 -1
- package/src/sap/ui/model/type/Integer.js +1 -1
- package/src/sap/ui/model/type/String.js +1 -1
- package/src/sap/ui/model/type/Time.js +1 -1
- package/src/sap/ui/model/type/TimeInterval.js +1 -1
- package/src/sap/ui/model/type/Unit.js +1 -1
- package/src/sap/ui/model/xml/XMLModel.js +1 -1
- package/src/sap/ui/performance/BeaconRequest.js +8 -10
- package/src/sap/ui/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -228,7 +228,7 @@ sap.ui.define([
|
|
|
228
228
|
* @extends sap.ui.base.ManagedObject
|
|
229
229
|
* @abstract
|
|
230
230
|
* @author SAP SE
|
|
231
|
-
* @version 1.96.
|
|
231
|
+
* @version 1.96.24
|
|
232
232
|
* @alias sap.ui.core.Component
|
|
233
233
|
* @since 1.9.2
|
|
234
234
|
*/
|
|
@@ -718,36 +718,41 @@ sap.ui.define([
|
|
|
718
718
|
// init the component models
|
|
719
719
|
this.initComponentModels();
|
|
720
720
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
721
|
+
/**
|
|
722
|
+
* @deprecated As of 1.96
|
|
723
|
+
*/
|
|
724
|
+
(function() {
|
|
725
|
+
// error handler (if exists)
|
|
726
|
+
if (this.onWindowError) {
|
|
727
|
+
this._fnWindowErrorHandler = function(oEvent) {
|
|
728
|
+
var oError = oEvent.originalEvent;
|
|
729
|
+
this.onWindowError(oError.message, oError.filename, oError.lineno);
|
|
730
|
+
|
|
731
|
+
}.bind(this);
|
|
732
|
+
window.addEventListener("error", this._fnWindowErrorHandler);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
// before unload handler (if exists)
|
|
736
|
+
if (this.onWindowBeforeUnload) {
|
|
737
|
+
this._fnWindowBeforeUnloadHandler = function(oEvent) {
|
|
738
|
+
var vReturnValue = this.onWindowBeforeUnload.apply(this, arguments);
|
|
739
|
+
// set returnValue for Chrome
|
|
740
|
+
if (typeof (vReturnValue) === 'string') {
|
|
741
|
+
oEvent.returnValue = vReturnValue;
|
|
742
|
+
oEvent.preventDefault();
|
|
743
|
+
return vReturnValue;
|
|
744
|
+
}
|
|
745
|
+
}.bind(this);
|
|
746
|
+
window.addEventListener("beforeunload", this._fnWindowBeforeUnloadHandler);
|
|
747
|
+
}
|
|
744
748
|
|
|
745
|
-
|
|
746
|
-
|
|
749
|
+
// unload handler (if exists)
|
|
750
|
+
if (this.onWindowUnload) {
|
|
747
751
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
752
|
+
this._fnWindowUnloadHandler = this.onWindowUnload.bind(this);
|
|
753
|
+
window.addEventListener("unload", this._fnWindowUnloadHandler);
|
|
754
|
+
}
|
|
755
|
+
}.bind(this))();
|
|
751
756
|
|
|
752
757
|
};
|
|
753
758
|
|
|
@@ -791,19 +796,24 @@ sap.ui.define([
|
|
|
791
796
|
}
|
|
792
797
|
delete this._mManifestModels;
|
|
793
798
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
799
|
+
/**
|
|
800
|
+
* @deprecated As of 1.96
|
|
801
|
+
*/
|
|
802
|
+
(function() {
|
|
803
|
+
// remove the event handlers
|
|
804
|
+
if (this._fnWindowErrorHandler) {
|
|
805
|
+
window.removeEventListener("error", this._fnWindowErrorHandler);
|
|
806
|
+
delete this._fnWindowErrorHandler;
|
|
807
|
+
}
|
|
808
|
+
if (this._fnWindowBeforeUnloadHandler) {
|
|
809
|
+
window.removeEventListener("beforeunload", this._fnWindowBeforeUnloadHandler);
|
|
810
|
+
delete this._fnWindowBeforeUnloadHandler;
|
|
811
|
+
}
|
|
812
|
+
if (this._fnWindowUnloadHandler) {
|
|
813
|
+
window.removeEventListener("unload", this._fnWindowUnloadHandler);
|
|
814
|
+
delete this._fnWindowUnloadHandler;
|
|
815
|
+
}
|
|
816
|
+
}.bind(this))();
|
|
807
817
|
|
|
808
818
|
// destroy event bus
|
|
809
819
|
if (this._oEventBus) {
|
|
@@ -1308,6 +1318,8 @@ sap.ui.define([
|
|
|
1308
1318
|
* @since 1.15.1
|
|
1309
1319
|
* @name sap.ui.core.Component.prototype.onWindowBeforeUnload
|
|
1310
1320
|
* @function
|
|
1321
|
+
* @deprecated As of 1.96 (starting with a patch release acc. to the changelog), recommended to
|
|
1322
|
+
* use the browser-native page lifecycle API, providing events such as 'pageshow' and 'pagehide'
|
|
1311
1323
|
*/
|
|
1312
1324
|
//onWindowBeforeUnload : function() {},
|
|
1313
1325
|
|
|
@@ -1321,6 +1333,10 @@ sap.ui.define([
|
|
|
1321
1333
|
* @since 1.15.1
|
|
1322
1334
|
* @name sap.ui.core.Component.prototype.onWindowUnload
|
|
1323
1335
|
* @function
|
|
1336
|
+
* @deprecated As of 1.96 (starting with a patch release acc. to the changelog). Newer browser
|
|
1337
|
+
* versions deprecate the browser-native 'unload' event. Therefore, the former API won't reliably
|
|
1338
|
+
* work anymore. Please have a look at the browser-native page lifecycle API, e.g. its events
|
|
1339
|
+
* 'pageshow' and 'pagehide'.
|
|
1324
1340
|
*/
|
|
1325
1341
|
//onWindowUnload : function() {},
|
|
1326
1342
|
|
|
@@ -1336,6 +1352,8 @@ sap.ui.define([
|
|
|
1336
1352
|
* @since 1.15.1
|
|
1337
1353
|
* @name sap.ui.core.Component.prototype.onWindowError
|
|
1338
1354
|
* @function
|
|
1355
|
+
* @deprecated As of 1.96 (starting with a patch release acc. to the changelog), recommended to
|
|
1356
|
+
* use the browser-native API to listen for errors: window.addEventListener("error", function() { ... })
|
|
1339
1357
|
*/
|
|
1340
1358
|
//onWindowError : null, // function(sMessage, sFile, iLine) - function not added directly as it might result in bad stack traces in older browsers
|
|
1341
1359
|
|
|
@@ -12,6 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
'./CalendarType',
|
|
13
13
|
'./Locale',
|
|
14
14
|
'sap/ui/thirdparty/URI',
|
|
15
|
+
"sap/ui/core/theming/ThemeHelper",
|
|
15
16
|
"sap/base/util/UriParameters",
|
|
16
17
|
"sap/base/util/deepEqual",
|
|
17
18
|
"sap/base/util/Version",
|
|
@@ -27,6 +28,7 @@ sap.ui.define([
|
|
|
27
28
|
CalendarType,
|
|
28
29
|
Locale,
|
|
29
30
|
URI,
|
|
31
|
+
ThemeHelper,
|
|
30
32
|
UriParameters,
|
|
31
33
|
deepEqual,
|
|
32
34
|
Version,
|
|
@@ -99,7 +101,7 @@ sap.ui.define([
|
|
|
99
101
|
// Valid property types are: string, boolean, string[], code, object, function, function[].
|
|
100
102
|
// Objects as an enumeration list of valid values can also be provided (e.g. Configuration.AnimationMode).
|
|
101
103
|
var M_SETTINGS = {
|
|
102
|
-
"theme" : { type : "string", defaultValue : "
|
|
104
|
+
"theme" : { type : "string", defaultValue : "" },
|
|
103
105
|
"language" : { type : "Locale", defaultValue : detectLanguage() },
|
|
104
106
|
"formatLocale" : { type : "Locale", defaultValue : null },
|
|
105
107
|
"calendarType" : { type : "string", defaultValue : null },
|
|
@@ -445,12 +447,18 @@ sap.ui.define([
|
|
|
445
447
|
config.themeRoot = sThemeRoot;
|
|
446
448
|
} else {
|
|
447
449
|
// fallback to non-URL parameter (if not equal to sTheme)
|
|
448
|
-
config.theme = (oCfg.theme && oCfg.theme !== sTheme) ? oCfg.theme : "
|
|
450
|
+
config.theme = (oCfg.theme && oCfg.theme !== sTheme) ? oCfg.theme : "";
|
|
449
451
|
iIndex = -1; // enable theme mapping below
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
454
|
|
|
453
|
-
|
|
455
|
+
// if the theme is still undefined (or an empty string)
|
|
456
|
+
if (!config.theme) {
|
|
457
|
+
var mThemeDefaultInfo = ThemeHelper.getDefaultThemeInfo();
|
|
458
|
+
config.theme = mThemeDefaultInfo.DEFAULT_THEME + (mThemeDefaultInfo.DARK_MODE ? "_dark" : "");
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
config.theme = ThemeHelper.validateAndFallbackTheme(config.theme, sThemeRoot);
|
|
454
462
|
|
|
455
463
|
var aCoreLangs = config['languagesDeliveredWithCore'] = Locale._coreI18nLocales;
|
|
456
464
|
var aLangs = config['xx-supportedLanguages'];
|
|
@@ -619,17 +627,6 @@ sap.ui.define([
|
|
|
619
627
|
return this;
|
|
620
628
|
},
|
|
621
629
|
|
|
622
|
-
/**
|
|
623
|
-
* Normalize the given theme, resolve known aliases
|
|
624
|
-
* @private
|
|
625
|
-
*/
|
|
626
|
-
_normalizeTheme : function (sTheme, sThemeBaseUrl) {
|
|
627
|
-
if ( sTheme && sThemeBaseUrl == null && sTheme.match(/^sap_corbu$/i) ) {
|
|
628
|
-
return "sap_fiori_3";
|
|
629
|
-
}
|
|
630
|
-
return sTheme;
|
|
631
|
-
},
|
|
632
|
-
|
|
633
630
|
/**
|
|
634
631
|
* Returns a string that identifies the current language.
|
|
635
632
|
*
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
* @extends sap.ui.core.Element
|
|
78
78
|
* @abstract
|
|
79
79
|
* @author SAP SE
|
|
80
|
-
* @version 1.96.
|
|
80
|
+
* @version 1.96.24
|
|
81
81
|
* @alias sap.ui.core.Control
|
|
82
82
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
83
83
|
*/
|
package/src/sap/ui/core/Core.js
CHANGED
|
@@ -26,6 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
'./ThemeCheck',
|
|
27
27
|
'./UIArea',
|
|
28
28
|
'./message/MessageManager',
|
|
29
|
+
"./theming/ThemeHelper",
|
|
29
30
|
"sap/ui/util/ActivityDetection",
|
|
30
31
|
"sap/ui/dom/getScrollbarSize",
|
|
31
32
|
"sap/base/i18n/ResourceBundle",
|
|
@@ -66,6 +67,7 @@ sap.ui.define([
|
|
|
66
67
|
ThemeCheck,
|
|
67
68
|
UIArea,
|
|
68
69
|
MessageManager,
|
|
70
|
+
ThemeHelper,
|
|
69
71
|
ActivityDetection,
|
|
70
72
|
getScrollbarSize,
|
|
71
73
|
ResourceBundle,
|
|
@@ -210,7 +212,7 @@ sap.ui.define([
|
|
|
210
212
|
* @extends sap.ui.base.Object
|
|
211
213
|
* @final
|
|
212
214
|
* @author SAP SE
|
|
213
|
-
* @version 1.96.
|
|
215
|
+
* @version 1.96.24
|
|
214
216
|
* @alias sap.ui.core.Core
|
|
215
217
|
* @public
|
|
216
218
|
* @hideconstructor
|
|
@@ -976,7 +978,7 @@ sap.ui.define([
|
|
|
976
978
|
assert(typeof sThemeName === "string", "sThemeName must be a string");
|
|
977
979
|
assert(typeof sThemeBaseUrl === "string" || typeof sThemeBaseUrl === "undefined", "sThemeBaseUrl must be a string or undefined");
|
|
978
980
|
|
|
979
|
-
sThemeName =
|
|
981
|
+
sThemeName = ThemeHelper.validateAndFallbackTheme(sThemeName, sThemeBaseUrl);
|
|
980
982
|
|
|
981
983
|
if (sThemeBaseUrl) {
|
|
982
984
|
this.setThemeRoot(sThemeName, sThemeBaseUrl);
|
|
@@ -126,7 +126,7 @@ sap.ui.define([
|
|
|
126
126
|
*
|
|
127
127
|
* @extends sap.ui.base.ManagedObject
|
|
128
128
|
* @author SAP SE
|
|
129
|
-
* @version 1.96.
|
|
129
|
+
* @version 1.96.24
|
|
130
130
|
* @public
|
|
131
131
|
* @alias sap.ui.core.Element
|
|
132
132
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
@@ -41,7 +41,7 @@ sap.ui.define([], function() {
|
|
|
41
41
|
*
|
|
42
42
|
* @param {boolean} [bDefault=true] Value that should be used as default value for the enhancement of the control.
|
|
43
43
|
* @param {boolean} [bLegacy=false] Whether the introduced property should use the old name <code>Enabled</code>.
|
|
44
|
-
* @version 1.96.
|
|
44
|
+
* @version 1.96.24
|
|
45
45
|
* @public
|
|
46
46
|
* @class
|
|
47
47
|
* @alias sap.ui.core.EnabledPropagator
|
package/src/sap/ui/core/HTML.js
CHANGED
package/src/sap/ui/core/Icon.js
CHANGED
|
@@ -12,7 +12,7 @@ sap.ui.define([], function() {
|
|
|
12
12
|
* Provides the default renderer for the controls that have set their <code>visible</code> property to <code>false</code>.
|
|
13
13
|
*
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.96.
|
|
15
|
+
* @version 1.96.24
|
|
16
16
|
* @alias module:sap/ui/core/InvisibleRenderer
|
|
17
17
|
* @since 1.66.0
|
|
18
18
|
* @protected
|
package/src/sap/ui/core/Item.js
CHANGED
|
@@ -129,7 +129,7 @@ sap.ui.define(['../base/ManagedObject', "sap/base/assert"],
|
|
|
129
129
|
* @see sap.ui.core.LabelEnablement#enrich
|
|
130
130
|
*
|
|
131
131
|
* @author SAP SE
|
|
132
|
-
* @version 1.96.
|
|
132
|
+
* @version 1.96.24
|
|
133
133
|
* @protected
|
|
134
134
|
* @alias sap.ui.core.LabelEnablement
|
|
135
135
|
* @namespace
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @alias sap.ui.core.ResizeHandler
|
|
35
35
|
* @extends sap.ui.base.Object
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.96.
|
|
37
|
+
* @version 1.96.24
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
40
|
|
|
@@ -52,9 +52,20 @@ sap.ui.define([
|
|
|
52
52
|
|
|
53
53
|
this.iIdCounter = 0;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
/**
|
|
56
|
+
* The block below is not needed because it only did a cleanup
|
|
57
|
+
* before the page was closed. This should not be necessary.
|
|
58
|
+
* Nevertheless we leave the coding here and only deprecate it,
|
|
59
|
+
* in order to keep the BFCache behavior stable.
|
|
60
|
+
* Removing the 'unload' handler could potentially activate
|
|
61
|
+
* the BFCache and cause a different behavior in browser versions
|
|
62
|
+
* where the 'unload' handler is still supported.
|
|
63
|
+
* Therefore we only removed the not needed cleanup coding
|
|
64
|
+
* but still attach a noop to ensure this handler would still
|
|
65
|
+
* invalidate the BFCache.
|
|
66
|
+
* @deprecated As of 1.96
|
|
67
|
+
*/
|
|
68
|
+
window.addEventListener("unload", function () {});
|
|
58
69
|
|
|
59
70
|
ActivityDetection.attachActivate(initListener, this);
|
|
60
71
|
}
|
|
@@ -75,22 +86,6 @@ sap.ui.define([
|
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
88
|
|
|
78
|
-
/**
|
|
79
|
-
* Destroy method of the Resize Handler.
|
|
80
|
-
* It unregisters the event handlers.
|
|
81
|
-
*
|
|
82
|
-
* @param {jQuery.Event} oEvent the event that initiated the destruction of the ResizeHandler
|
|
83
|
-
* @private
|
|
84
|
-
*/
|
|
85
|
-
ResizeHandler.prototype.destroy = function(oEvent) {
|
|
86
|
-
ActivityDetection.detachActivate(initListener, this);
|
|
87
|
-
jQuery(window).off("unload", this.fDestroyHandler);
|
|
88
|
-
oCoreRef = null;
|
|
89
|
-
this.aResizeListeners = [];
|
|
90
|
-
this.aSuspendedDomRefs = [];
|
|
91
|
-
clearListener.call(this);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
89
|
/**
|
|
95
90
|
* Attaches listener to resize event.
|
|
96
91
|
*
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* The ScrollBar control can be used for virtual scrolling of a certain area.
|
|
45
45
|
* This means: to simulate a very large scrollable area when technically the area is small and the control takes care of displaying the respective part only. E.g. a Table control can take care of only rendering the currently visible rows and use this ScrollBar control to make the user think he actually scrolls through a long list.
|
|
46
46
|
* @extends sap.ui.core.Control
|
|
47
|
-
* @version 1.96.
|
|
47
|
+
* @version 1.96.24
|
|
48
48
|
*
|
|
49
49
|
* @public
|
|
50
50
|
* @deprecated as of version 1.56
|
package/src/sap/ui/core/Title.js
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class
|
|
32
32
|
* Abstract class that can be extended in order to implement any extended tooltip. For example, RichTooltip Control is based on it. It provides the opening/closing behavior and the main "text" property.
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
|
-
* @version 1.96.
|
|
34
|
+
* @version 1.96.24
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
* @alias sap.ui.core.TooltipBase
|