@openui5/sap.ui.core 1.107.1 → 1.108.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/.dtsgenrc +63 -0
- package/THIRDPARTY.txt +1 -1
- 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/i18n/ResourceBundle.js +10 -0
- package/src/sap/base/security/URLListValidator.js +36 -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 +2 -2
- 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 +50 -50
- package/src/sap/ui/core/BusyIndicator.js +1 -1
- package/src/sap/ui/core/BusyIndicatorUtils.js +22 -8
- package/src/sap/ui/core/Component.js +21 -4
- package/src/sap/ui/core/ComponentContainer.js +5 -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 +2 -15
- package/src/sap/ui/core/Control.js +20 -2
- package/src/sap/ui/core/Core.js +311 -413
- 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/FocusHandler.js +12 -14
- package/src/sap/ui/core/Fragment.js +5 -2
- 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/IconPool.js +7 -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 +16 -83
- package/src/sap/ui/core/Message.js +1 -1
- package/src/sap/ui/core/Popup.js +14 -4
- package/src/sap/ui/core/RenderManager.js +111 -109
- 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/ShortcutHintsMixin.js +20 -0
- 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 +4 -2
- 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/_IconRegistry.js +11 -7
- package/src/sap/ui/core/_UrlResolver.js +139 -0
- package/src/sap/ui/core/date/CalendarUtils.js +87 -0
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +73 -0
- package/src/sap/ui/core/date/UniversalDate.js +198 -74
- 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/format/DateFormat.js +187 -57
- package/src/sap/ui/core/format/NumberFormat.js +64 -23
- package/src/sap/ui/core/format/TimezoneUtil.js +3 -1
- package/src/sap/ui/core/hyphenation/Hyphenation.js +1 -1
- package/src/sap/ui/core/library.js +19 -10
- package/src/sap/ui/core/message/ControlMessageProcessor.js +1 -1
- package/src/sap/ui/core/message/Message.js +5 -3
- 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_fr.properties +1 -1
- package/src/sap/ui/core/mvc/HTMLView.js +10 -2
- 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 +21 -20
- 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/themes/base/LocalBusyIndicator.less +3 -3
- package/src/sap/ui/core/themes/base/fonts/SAP-icons.woff2 +0 -0
- package/src/sap/ui/core/theming/Parameters.js +31 -12
- package/src/sap/ui/core/theming/ThemeHelper.js +56 -1
- package/src/sap/ui/core/theming/ThemeManager.js +817 -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 +2 -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 +1 -1
- package/src/sap/ui/debug/PropertyList.js +1 -1
- package/src/sap/ui/dom/getFirstEditableInput.js +25 -6
- package/src/sap/ui/dom/includeStylesheet.js +2 -2
- package/src/sap/ui/model/ClientListBinding.js +11 -4
- package/src/sap/ui/model/ClientModel.js +1 -1
- package/src/sap/ui/model/ClientTreeBinding.js +60 -5
- 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/Filter.js +6 -6
- 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/Sorter.js +6 -4
- package/src/sap/ui/model/TreeAutoExpandMode.js +1 -1
- package/src/sap/ui/model/TreeBinding.js +18 -0
- package/src/sap/ui/model/TreeBindingCompatibilityAdapter.js +1 -1
- package/src/sap/ui/model/Type.js +1 -1
- package/src/sap/ui/model/analytics/AnalyticalTreeBindingAdapter.js +28 -34
- package/src/sap/ui/model/controlhelper/TreeBindingProxy.js +590 -0
- 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/DateTimeWithTimezone.js +1 -1
- package/src/sap/ui/model/odata/type/Decimal.js +1 -1
- package/src/sap/ui/model/odata/type/Double.js +1 -1
- package/src/sap/ui/model/odata/type/Guid.js +1 -1
- package/src/sap/ui/model/odata/type/Int.js +1 -1
- package/src/sap/ui/model/odata/type/Int16.js +1 -1
- package/src/sap/ui/model/odata/type/Int32.js +1 -1
- package/src/sap/ui/model/odata/type/Int64.js +1 -1
- package/src/sap/ui/model/odata/type/ODataType.js +1 -1
- package/src/sap/ui/model/odata/type/Raw.js +1 -1
- package/src/sap/ui/model/odata/type/SByte.js +1 -1
- package/src/sap/ui/model/odata/type/Single.js +1 -1
- package/src/sap/ui/model/odata/type/Stream.js +1 -1
- package/src/sap/ui/model/odata/type/String.js +1 -1
- package/src/sap/ui/model/odata/type/Time.js +1 -1
- package/src/sap/ui/model/odata/type/TimeOfDay.js +1 -1
- package/src/sap/ui/model/odata/type/Unit.js +1 -1
- package/src/sap/ui/model/odata/v2/BatchMode.js +2 -2
- package/src/sap/ui/model/odata/v2/Context.js +169 -4
- package/src/sap/ui/model/odata/v2/ODataAnnotations.js +1 -1
- package/src/sap/ui/model/odata/v2/ODataListBinding.js +39 -17
- package/src/sap/ui/model/odata/v2/ODataModel.js +219 -82
- package/src/sap/ui/model/odata/v2/ODataTreeBinding.js +1 -1
- package/src/sap/ui/model/odata/v4/Context.js +35 -22
- package/src/sap/ui/model/odata/v4/ODataBinding.js +28 -22
- package/src/sap/ui/model/odata/v4/ODataContextBinding.js +6 -6
- package/src/sap/ui/model/odata/v4/ODataListBinding.js +111 -89
- package/src/sap/ui/model/odata/v4/ODataMetaModel.js +5 -4
- package/src/sap/ui/model/odata/v4/ODataModel.js +84 -46
- package/src/sap/ui/model/odata/v4/ODataParentBinding.js +19 -20
- package/src/sap/ui/model/odata/v4/ODataPropertyBinding.js +3 -3
- package/src/sap/ui/model/odata/v4/_AnnotationHelperExpression.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_AggregationCache.js +12 -5
- package/src/sap/ui/model/odata/v4/lib/_Cache.js +130 -64
- package/src/sap/ui/model/odata/v4/lib/_Helper.js +1 -1
- package/src/sap/ui/model/odata/v4/lib/_Requestor.js +56 -15
- 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/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/TestUtils.js +20 -0
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/thirdparty/mobify-carousel.js +0 -4
- package/src/sap/ui/util/Storage.js +1 -1
- package/src/sap/ui/core/ThemeCheck.js +0 -389
|
@@ -229,7 +229,7 @@ sap.ui.define([
|
|
|
229
229
|
*
|
|
230
230
|
* @extends sap.ui.model.Model
|
|
231
231
|
* @public
|
|
232
|
-
* @version 1.
|
|
232
|
+
* @version 1.108.0
|
|
233
233
|
*/
|
|
234
234
|
var ResourceModel = Model.extend("sap.ui.model.resource.ResourceModel", /** @lends sap.ui.model.resource.ResourceModel.prototype */ {
|
|
235
235
|
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.108.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.model.CompositeType
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.108.0
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.108.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.108.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeInstance DateFormat}.
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @extends sap.ui.model.SimpleType
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.108.0
|
|
28
28
|
*
|
|
29
29
|
* @public
|
|
30
30
|
* @param {object} [oFormatOptions] formatting options. Supports the same options as {@link sap.ui.core.format.FileSizeFormat.getInstance FileSizeFormat.getInstance}
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.108.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.ui.model.SimpleType
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.108.0
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.NumberFormat NumberFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./Date', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.Date
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.108.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -19,7 +19,7 @@ sap.ui.define(['./DateInterval', 'sap/ui/core/format/DateFormat'],
|
|
|
19
19
|
* @extends sap.ui.model.type.DateInterval
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.108.0
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
* @param {object} [oFormatOptions] Formatting options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getTimeInstance DateFormat}.
|
|
@@ -34,6 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
rODataHeaders = /^(OData-Version|DataServiceVersion)$/,
|
|
35
35
|
bRealOData = sRealOData === "true" || sRealOData === "direct",
|
|
36
36
|
iRequestCount = 0,
|
|
37
|
+
fnOnRequest = null,
|
|
37
38
|
sOptimisticBatch = oUriParameters.get("optimisticBatch"),
|
|
38
39
|
bOptimisticBatch = sOptimisticBatch === null ? undefined : sOptimisticBatch === "true",
|
|
39
40
|
bSupportAssistant = oUriParameters.get("supportAssistant") === "true",
|
|
@@ -379,6 +380,10 @@ sap.ui.define([
|
|
|
379
380
|
mODataHeaders = getODataHeaders(oRequest);
|
|
380
381
|
|
|
381
382
|
iRequestCount += 1;
|
|
383
|
+
if (fnOnRequest) {
|
|
384
|
+
fnOnRequest(oRequest.requestBody);
|
|
385
|
+
}
|
|
386
|
+
|
|
382
387
|
oRequest.respond(200,
|
|
383
388
|
jQuery.extend({}, mODataHeaders, {
|
|
384
389
|
"Content-Type" : "multipart/mixed;boundary=" + oMultipart.boundary
|
|
@@ -741,6 +746,9 @@ sap.ui.define([
|
|
|
741
746
|
var oResponse = getResponseFromFixture(oRequest);
|
|
742
747
|
|
|
743
748
|
iRequestCount += 1;
|
|
749
|
+
if (fnOnRequest) {
|
|
750
|
+
fnOnRequest(oRequest.requestBody);
|
|
751
|
+
}
|
|
744
752
|
oRequest.respond(oResponse.code, oResponse.headers, oResponse.message);
|
|
745
753
|
}
|
|
746
754
|
|
|
@@ -941,6 +949,18 @@ sap.ui.define([
|
|
|
941
949
|
return iRequestCount;
|
|
942
950
|
},
|
|
943
951
|
|
|
952
|
+
/**
|
|
953
|
+
* Sets a callback function which is called when the fake server responds with a fake
|
|
954
|
+
* request. The function will be called with the request body as first parameter.
|
|
955
|
+
*
|
|
956
|
+
* Pass <code>null</code> to remove the listener.
|
|
957
|
+
*
|
|
958
|
+
* @param {function(string)} [fnCallback] - The function
|
|
959
|
+
*/
|
|
960
|
+
onRequest : function (fnCallback) {
|
|
961
|
+
fnOnRequest = fnCallback;
|
|
962
|
+
},
|
|
963
|
+
|
|
944
964
|
/**
|
|
945
965
|
* Simply returns <code>sAbsolutePath</code>.
|
|
946
966
|
*
|
|
@@ -529,10 +529,6 @@ Mobify.UI.Carousel = (function($, Utils) {
|
|
|
529
529
|
|
|
530
530
|
self.$element.find('#' + sPageIndicatorId + ' > [data-slide=\'' + previousSlide + '\']').removeClass(self._getClass('active'));
|
|
531
531
|
self.$element.find('#' + sPageIndicatorId + ' > [data-slide=\'' + nextSlide + '\']').addClass(self._getClass('active'));
|
|
532
|
-
|
|
533
|
-
if (self.$items[nextSlide - 1]) {
|
|
534
|
-
this.setAttribute('aria-activedescendant', self.$items[nextSlide - 1].id);
|
|
535
|
-
}
|
|
536
532
|
});
|
|
537
533
|
|
|
538
534
|
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Provides class sap.ui.core.ThemeCheck
|
|
8
|
-
sap.ui.define([
|
|
9
|
-
"sap/ui/Device",
|
|
10
|
-
"sap/ui/base/Object",
|
|
11
|
-
"sap/base/Log",
|
|
12
|
-
"sap/base/util/each",
|
|
13
|
-
"sap/ui/dom/includeStylesheet",
|
|
14
|
-
"./theming/ThemeHelper"
|
|
15
|
-
],
|
|
16
|
-
function(Device, BaseObject, Log, each, includeStylesheet, ThemeHelper) {
|
|
17
|
-
"use strict";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var maxThemeCheckCycles = 150;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new ThemeCheck object.
|
|
24
|
-
*
|
|
25
|
-
* @class Helper class used by the UI5 Core to check whether the themes are applied correctly.
|
|
26
|
-
*
|
|
27
|
-
* It could happen that e.g. in onAfterRendering not all themes are available. In these cases the
|
|
28
|
-
* check waits until the CSS is applied and fires an onThemeChanged event.
|
|
29
|
-
*
|
|
30
|
-
* @extends sap.ui.base.Object
|
|
31
|
-
* @since 1.10.0
|
|
32
|
-
* @author SAP SE
|
|
33
|
-
* @private
|
|
34
|
-
* @alias sap.ui.core.ThemeCheck
|
|
35
|
-
*/
|
|
36
|
-
// TODO: Check moving ThemeCheck form sap/ui/core to sap/ui/core/theming
|
|
37
|
-
var ThemeCheck = BaseObject.extend("sap.ui.core.ThemeCheck", /** @lends sap.ui.core.ThemeCheck.prototype */ {
|
|
38
|
-
|
|
39
|
-
constructor : function(oCore) {
|
|
40
|
-
this._oCore = oCore;
|
|
41
|
-
this._iCount = 0; // Prevent endless loop
|
|
42
|
-
this._CUSTOMCSSCHECK = /\.sapUiThemeDesignerCustomCss/i;
|
|
43
|
-
this._CUSTOMID = "sap-ui-core-customcss";
|
|
44
|
-
this._customCSSAdded = false;
|
|
45
|
-
this._themeCheckedForCustom = null;
|
|
46
|
-
this._sFallbackTheme = null;
|
|
47
|
-
this._mThemeFallback = {};
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
getInterface : function() {
|
|
51
|
-
return this;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
fireThemeChangedEvent : function(bOnlyOnInitFail) {
|
|
55
|
-
clear(this);
|
|
56
|
-
|
|
57
|
-
delayedCheckTheme.apply(this, [true]);
|
|
58
|
-
|
|
59
|
-
// Do not fire the event when the theme is already applied initially.
|
|
60
|
-
// bOnlyOnInitFail=true should only be passed from Core#init.
|
|
61
|
-
if (!bOnlyOnInitFail && !this._sThemeCheckId) {
|
|
62
|
-
this._oCore.fireThemeChanged({theme: this._oCore.getConfiguration().getTheme()});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
ThemeCheck.themeLoaded = false;
|
|
70
|
-
|
|
71
|
-
function safeAccessSheetCssRules(sheet) {
|
|
72
|
-
try {
|
|
73
|
-
return sheet.cssRules;
|
|
74
|
-
} catch (e) {
|
|
75
|
-
// Firefox throws a SecurityError or InvalidAccessError if "sheet.cssRules"
|
|
76
|
-
// is accessed on a stylesheet with 404 response code.
|
|
77
|
-
// Most browsers also throw when accessing from a different origin (CORS).
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function hasSheetCssRules(sheet) {
|
|
82
|
-
var aCssRules = safeAccessSheetCssRules(sheet);
|
|
83
|
-
return !!aCssRules && aCssRules.length > 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
ThemeCheck.checkStyle = function(sId, bLog) {
|
|
87
|
-
var oStyle = document.getElementById(sId);
|
|
88
|
-
|
|
89
|
-
try {
|
|
90
|
-
|
|
91
|
-
var bNoLinkElement = false,
|
|
92
|
-
bLinkElementFinishedLoading = false,
|
|
93
|
-
bSheet = false,
|
|
94
|
-
bInnerHtml = false;
|
|
95
|
-
|
|
96
|
-
// Check if <link> element is missing (e.g. misconfigured library)
|
|
97
|
-
bNoLinkElement = !oStyle;
|
|
98
|
-
|
|
99
|
-
// Check if <link> element has finished loading (see sap/ui/dom/includeStyleSheet)
|
|
100
|
-
bLinkElementFinishedLoading = !!(oStyle && (oStyle.getAttribute("data-sap-ui-ready") === "true" || oStyle.getAttribute("data-sap-ui-ready") === "false"));
|
|
101
|
-
|
|
102
|
-
// Check for "sheet" object and if rules are available
|
|
103
|
-
bSheet = !!(oStyle && oStyle.sheet && oStyle.sheet.href === oStyle.href && hasSheetCssRules(oStyle.sheet));
|
|
104
|
-
|
|
105
|
-
// Check for "innerHTML" content
|
|
106
|
-
bInnerHtml = !!(oStyle && oStyle.innerHTML && oStyle.innerHTML.length > 0);
|
|
107
|
-
|
|
108
|
-
// One of the previous four checks need to be successful
|
|
109
|
-
var bResult = bNoLinkElement || bSheet || bInnerHtml || bLinkElementFinishedLoading;
|
|
110
|
-
|
|
111
|
-
if (bLog) {
|
|
112
|
-
Log.debug("ThemeCheck: " + sId + ": " + bResult + " (noLinkElement: " + bNoLinkElement + ", sheet: " + bSheet + ", innerHtml: " + bInnerHtml + ", linkElementFinishedLoading: " + bLinkElementFinishedLoading + ")");
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return bResult;
|
|
116
|
-
|
|
117
|
-
} catch (e) {
|
|
118
|
-
if (bLog) {
|
|
119
|
-
Log.error("ThemeCheck: " + sId + ": Error during check styles '" + sId + "'", e);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return false;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
function clear(oThemeCheck){
|
|
127
|
-
ThemeCheck.themeLoaded = false;
|
|
128
|
-
if (oThemeCheck._sThemeCheckId) {
|
|
129
|
-
clearTimeout(oThemeCheck._sThemeCheckId);
|
|
130
|
-
oThemeCheck._sThemeCheckId = null;
|
|
131
|
-
oThemeCheck._iCount = 0;
|
|
132
|
-
oThemeCheck._sFallbackTheme = null;
|
|
133
|
-
oThemeCheck._mThemeFallback = {};
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function checkTheme(oThemeCheck) {
|
|
138
|
-
var mLibs = oThemeCheck._oCore.getLoadedLibraries();
|
|
139
|
-
var sThemeName = oThemeCheck._oCore.getConfiguration().getTheme();
|
|
140
|
-
var sPath = oThemeCheck._oCore._getThemePath("sap.ui.core", sThemeName) + "custom.css";
|
|
141
|
-
var bIsStandardTheme = sThemeName.indexOf("sap_") === 0 || sThemeName === "base";
|
|
142
|
-
var res = true;
|
|
143
|
-
|
|
144
|
-
var aFailedLibs = [];
|
|
145
|
-
|
|
146
|
-
if (oThemeCheck._customCSSAdded && oThemeCheck._themeCheckedForCustom === sThemeName) {
|
|
147
|
-
// include custom style sheet here because it has already been added using sap/ui/dom/includeStyleSheet
|
|
148
|
-
// hence, needs to be checked for successful inclusion, too
|
|
149
|
-
mLibs[oThemeCheck._CUSTOMID] = {};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function checkAndRemoveStyle(sPrefix, sLib) {
|
|
153
|
-
var currentRes = ThemeCheck.checkStyle(sPrefix + sLib, true);
|
|
154
|
-
if (currentRes) {
|
|
155
|
-
|
|
156
|
-
// removes all old stylesheets (multiple could exist if theme change was triggered
|
|
157
|
-
// twice in a short timeframe) once the new stylesheet has been loaded
|
|
158
|
-
var aOldStyles = document.querySelectorAll("link[data-sap-ui-foucmarker='" + sPrefix + sLib + "']");
|
|
159
|
-
if (aOldStyles.length > 0) {
|
|
160
|
-
for (var i = 0, l = aOldStyles.length; i < l; i++) {
|
|
161
|
-
aOldStyles[i].remove();
|
|
162
|
-
}
|
|
163
|
-
Log.debug("ThemeCheck: Old stylesheets removed for library: " + sLib);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
return currentRes;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function checkLib(lib) {
|
|
171
|
-
var sStyleId = "sap-ui-theme-" + lib;
|
|
172
|
-
var currentRes = checkAndRemoveStyle("sap-ui-theme-", lib);
|
|
173
|
-
if (currentRes && document.getElementById("sap-ui-themeskeleton-" + lib)) {
|
|
174
|
-
// remove also the skeleton if present in the DOM
|
|
175
|
-
currentRes = checkAndRemoveStyle("sap-ui-themeskeleton-", lib);
|
|
176
|
-
}
|
|
177
|
-
res = res && currentRes;
|
|
178
|
-
if (res) {
|
|
179
|
-
|
|
180
|
-
/* as soon as css has been loaded, look if there is a flag for custom css inclusion inside, but only
|
|
181
|
-
* if this has not been checked successfully before for the same theme
|
|
182
|
-
*/
|
|
183
|
-
if (oThemeCheck._themeCheckedForCustom != sThemeName) {
|
|
184
|
-
// custom css is supported for custom themes, so this check is skipped for standard themes
|
|
185
|
-
if (!bIsStandardTheme && checkCustom(oThemeCheck, lib)) {
|
|
186
|
-
// load custom css available at sap/ui/core/themename/custom.css
|
|
187
|
-
var sCustomCssPath = sPath;
|
|
188
|
-
|
|
189
|
-
// check for configured query parameters and add them if available
|
|
190
|
-
var sLibCssQueryParams = oThemeCheck._oCore._getLibraryCssQueryParams(mLibs["sap.ui.core"]);
|
|
191
|
-
if (sLibCssQueryParams) {
|
|
192
|
-
sCustomCssPath += sLibCssQueryParams;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
includeStylesheet(sCustomCssPath, oThemeCheck._CUSTOMID);
|
|
196
|
-
oThemeCheck._customCSSAdded = true;
|
|
197
|
-
Log.debug("ThemeCheck: delivered custom CSS needs to be loaded, Theme not yet applied");
|
|
198
|
-
oThemeCheck._themeCheckedForCustom = sThemeName;
|
|
199
|
-
res = false;
|
|
200
|
-
return false;
|
|
201
|
-
} else {
|
|
202
|
-
// remove stylesheet once the particular class is not available (e.g. after theme switch)
|
|
203
|
-
/*check for custom theme was not successful, so we need to make sure there are no custom style sheets attached*/
|
|
204
|
-
var oCustomCssLink = document.querySelector("LINK[id='" + oThemeCheck._CUSTOMID + "']");
|
|
205
|
-
if (oCustomCssLink) {
|
|
206
|
-
oCustomCssLink.remove();
|
|
207
|
-
Log.debug("ThemeCheck: Custom CSS removed");
|
|
208
|
-
}
|
|
209
|
-
oThemeCheck._customCSSAdded = false;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Collect all libs that failed to load and no fallback has been applied, yet.
|
|
215
|
-
// The fallback relies on custom theme metadata, so it is not done for standard themes
|
|
216
|
-
if (!bIsStandardTheme && currentRes && !oThemeCheck._mThemeFallback[lib]) {
|
|
217
|
-
var oStyle = document.getElementById(sStyleId);
|
|
218
|
-
// Check for error marker (data-sap-ui-ready=false) and that there are no rules
|
|
219
|
-
// to be sure the stylesheet couldn't be loaded at all.
|
|
220
|
-
// E.g. in case an @import within the stylesheet fails, the error marker will
|
|
221
|
-
// also be set, but in this case no fallback should be done as there is a (broken) theme
|
|
222
|
-
if (oStyle && oStyle.getAttribute("data-sap-ui-ready") === "false" &&
|
|
223
|
-
!(oStyle.sheet && hasSheetCssRules(oStyle.sheet))
|
|
224
|
-
) {
|
|
225
|
-
aFailedLibs.push(lib);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
each(mLibs, checkLib);
|
|
232
|
-
|
|
233
|
-
// Try to load a fallback theme for all libs that couldn't be loaded
|
|
234
|
-
if (aFailedLibs.length > 0) {
|
|
235
|
-
|
|
236
|
-
// Only retrieve the fallback theme once per ThemeCheck cycle
|
|
237
|
-
if (!oThemeCheck._sFallbackTheme) {
|
|
238
|
-
for (var sLib in mLibs) {
|
|
239
|
-
var oThemeMetaData = ThemeHelper.getMetadata(sLib);
|
|
240
|
-
if (oThemeMetaData && oThemeMetaData.Extends && oThemeMetaData.Extends[0]) {
|
|
241
|
-
oThemeCheck._sFallbackTheme = oThemeMetaData.Extends[0];
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (oThemeCheck._sFallbackTheme) {
|
|
248
|
-
aFailedLibs.forEach(function(lib) {
|
|
249
|
-
var sStyleId = "sap-ui-theme-" + lib;
|
|
250
|
-
var oStyle = document.getElementById(sStyleId);
|
|
251
|
-
|
|
252
|
-
Log.warning(
|
|
253
|
-
"ThemeCheck: Custom theme '" + sThemeName + "' could not be loaded for library '" + lib + "'. " +
|
|
254
|
-
"Falling back to its base theme '" + oThemeCheck._sFallbackTheme + "'."
|
|
255
|
-
);
|
|
256
|
-
|
|
257
|
-
// Change the URL to load the fallback theme
|
|
258
|
-
oThemeCheck._oCore._updateThemeUrl(oStyle, oThemeCheck._sFallbackTheme);
|
|
259
|
-
|
|
260
|
-
// remember the lib to prevent doing the fallback multiple times
|
|
261
|
-
// (if the fallback also can't be loaded)
|
|
262
|
-
oThemeCheck._mThemeFallback[lib] = true;
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
// Make sure to wait for the fallback themes to be loaded
|
|
266
|
-
res = false;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
if (!res) {
|
|
271
|
-
Log.debug("ThemeCheck: Theme not yet applied.");
|
|
272
|
-
} else {
|
|
273
|
-
oThemeCheck._themeCheckedForCustom = sThemeName;
|
|
274
|
-
}
|
|
275
|
-
return res;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/* checks if a particular class is available
|
|
279
|
-
*/
|
|
280
|
-
function checkCustom (oThemeCheck, lib){
|
|
281
|
-
|
|
282
|
-
var cssFile = window.document.getElementById("sap-ui-theme-" + lib);
|
|
283
|
-
|
|
284
|
-
if (!cssFile) {
|
|
285
|
-
return false;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/*
|
|
289
|
-
Check if custom.css indication rule is applied to <link> element
|
|
290
|
-
The rule looks like this:
|
|
291
|
-
|
|
292
|
-
link[id^="sap-ui-theme-"]::after,
|
|
293
|
-
.sapUiThemeDesignerCustomCss {
|
|
294
|
-
content: '{"customcss" : true}';
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
First selector is to apply it to the <link> elements,
|
|
298
|
-
the second one for the Safari workaround (see below).
|
|
299
|
-
*/
|
|
300
|
-
var style = window.getComputedStyle(cssFile, ':after');
|
|
301
|
-
var content = style ? style.getPropertyValue('content') : null;
|
|
302
|
-
|
|
303
|
-
if (!content && Device.browser.safari) {
|
|
304
|
-
|
|
305
|
-
// Safari has a bug which prevents reading properties of hidden pseudo elements
|
|
306
|
-
// As a workaround: Add "sapUiThemeDesignerCustomCss" class on html element
|
|
307
|
-
// in order to get the computed "content" value and remove it again.
|
|
308
|
-
var html = document.documentElement;
|
|
309
|
-
|
|
310
|
-
html.classList.add("sapUiThemeDesignerCustomCss");
|
|
311
|
-
content = window.getComputedStyle(html, ":after").getPropertyValue("content");
|
|
312
|
-
html.classList.remove("sapUiThemeDesignerCustomCss");
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if (content && content !== "none") {
|
|
316
|
-
try {
|
|
317
|
-
|
|
318
|
-
// Strip surrounding quotes (single or double depending on browser)
|
|
319
|
-
if (content[0] === "'" || content[0] === '"') {
|
|
320
|
-
content = content.substring(1, content.length - 1);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// Cast to boolean (returns true if string equals "true", otherwise false)
|
|
324
|
-
return content === "true";
|
|
325
|
-
|
|
326
|
-
} catch (e) {
|
|
327
|
-
// parsing error
|
|
328
|
-
Log.error("Custom check: Error parsing JSON string for custom.css indication.", e);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
//***********************************
|
|
333
|
-
// Fallback legacy customcss check
|
|
334
|
-
//***********************************
|
|
335
|
-
|
|
336
|
-
/*
|
|
337
|
-
* checks if a particular class is available at the beginning of the stylesheet
|
|
338
|
-
*/
|
|
339
|
-
|
|
340
|
-
var aRules = cssFile.sheet ? safeAccessSheetCssRules(cssFile.sheet) : null;
|
|
341
|
-
|
|
342
|
-
if (!aRules || aRules.length === 0) {
|
|
343
|
-
Log.warning("Custom check: Failed retrieving a CSS rule from stylesheet " + lib);
|
|
344
|
-
return false;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
// we should now have some rule name ==> try to match against custom check
|
|
348
|
-
for (var i = 0; (i < 2 && i < aRules.length) ; i++) {
|
|
349
|
-
if (oThemeCheck._CUSTOMCSSCHECK.test(aRules[i].selectorText)) {
|
|
350
|
-
return true;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
function delayedCheckTheme(bFirst) {
|
|
358
|
-
this._iCount++;
|
|
359
|
-
|
|
360
|
-
var bEmergencyExit = this._iCount > maxThemeCheckCycles;
|
|
361
|
-
|
|
362
|
-
if (!checkTheme(this) && !bEmergencyExit) {
|
|
363
|
-
// Use dynamic delay to have a fast check for most use cases
|
|
364
|
-
// but not cause too much CPU usage for long running css requests
|
|
365
|
-
var iDelay;
|
|
366
|
-
if (this._iCount <= 100) {
|
|
367
|
-
iDelay = 2; // 1. Initial interval
|
|
368
|
-
} else if (this._iCount <= 110) {
|
|
369
|
-
iDelay = 500; // 2. After 100 cycles
|
|
370
|
-
} else {
|
|
371
|
-
iDelay = 1000; // 3. After another 10 cycles (about 5 seconds)
|
|
372
|
-
}
|
|
373
|
-
this._sThemeCheckId = setTimeout(delayedCheckTheme.bind(this), iDelay);
|
|
374
|
-
} else if (!bFirst) {
|
|
375
|
-
clear(this);
|
|
376
|
-
ThemeCheck.themeLoaded = true;
|
|
377
|
-
this._oCore.fireThemeChanged({theme: this._oCore.getConfiguration().getTheme()});
|
|
378
|
-
if (bEmergencyExit) {
|
|
379
|
-
Log.error("ThemeCheck: max. check cycles reached.");
|
|
380
|
-
}
|
|
381
|
-
} else {
|
|
382
|
-
ThemeCheck.themeLoaded = true;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return ThemeCheck;
|
|
388
|
-
|
|
389
|
-
});
|