@openui5/sap.ui.core 1.102.9 → 1.102.11
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/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 +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 +1 -1
- 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/Control.js +1 -1
- package/src/sap/ui/core/Core.js +1 -1
- 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 +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/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/date/Buddhist.js +15 -13
- package/src/sap/ui/core/date/CalendarUtils.js +92 -0
- package/src/sap/ui/core/date/CalendarWeekNumbering.js +76 -0
- package/src/sap/ui/core/date/Japanese.js +0 -6
- package/src/sap/ui/core/date/UniversalDate.js +187 -40
- 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 +36 -9
- package/src/sap/ui/core/format/TimezoneUtil.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/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/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 +1 -1
- 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/analytics/AnalyticalTreeBindingAdapter.js +28 -34
- 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/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/qunit/utils/ControlIterator.js +1 -1
- package/src/sap/ui/qunit/utils/MemoryLeakCheck.js +1 -1
- package/src/sap/ui/test/generic/TestBase.js +1 -1
- package/src/sap/ui/util/Storage.js +1 -1
|
@@ -10,6 +10,8 @@ sap.ui.define([
|
|
|
10
10
|
'sap/ui/core/Locale',
|
|
11
11
|
'sap/ui/core/LocaleData',
|
|
12
12
|
'sap/ui/core/date/UniversalDate',
|
|
13
|
+
'sap/ui/core/date/CalendarUtils',
|
|
14
|
+
'sap/ui/core/date/CalendarWeekNumbering',
|
|
13
15
|
'sap/ui/core/format/TimezoneUtil',
|
|
14
16
|
"sap/base/util/deepEqual",
|
|
15
17
|
"sap/base/strings/formatMessage",
|
|
@@ -21,6 +23,8 @@ sap.ui.define([
|
|
|
21
23
|
Locale,
|
|
22
24
|
LocaleData,
|
|
23
25
|
UniversalDate,
|
|
26
|
+
CalendarUtils,
|
|
27
|
+
CalendarWeekNumbering,
|
|
24
28
|
TimezoneUtil,
|
|
25
29
|
deepEqual,
|
|
26
30
|
formatMessage,
|
|
@@ -222,6 +226,9 @@ sap.ui.define([
|
|
|
222
226
|
* Get a date instance of the DateFormat, which can be used for formatting.
|
|
223
227
|
*
|
|
224
228
|
* @param {object} [oFormatOptions] Object which defines the format options
|
|
229
|
+
* @param {sap.ui.core.date.CalendarWeekNumbering} [oFormatOptions.calendarWeekNumbering] @since 1.102.11 specifies the calendar week numbering.
|
|
230
|
+
* Note: This API has been introduced with version 1.108 and downported to this release with
|
|
231
|
+
* patch level 11.
|
|
225
232
|
* @param {string} [oFormatOptions.format] @since 1.34.0 contains pattern symbols (e.g. "yMMMd" or "Hms") which will be converted into the pattern in the used locale, which matches the wanted symbols best.
|
|
226
233
|
* The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w), Day-Of-Week (E/e/c), Day (d), Hour (h/H/k/K/j/J), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
|
|
227
234
|
* See {@link http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems}
|
|
@@ -241,6 +248,7 @@ sap.ui.define([
|
|
|
241
248
|
* @return {sap.ui.core.format.DateFormat} date instance of the DateFormat
|
|
242
249
|
* @static
|
|
243
250
|
* @public
|
|
251
|
+
* @throws {TypeError} If the <code>calendarWeekNumbering</code> format option has an unsupported value
|
|
244
252
|
*/
|
|
245
253
|
DateFormat.getDateInstance = function(oFormatOptions, oLocale) {
|
|
246
254
|
return this.createInstance(oFormatOptions, oLocale, this.oDateInfo);
|
|
@@ -250,6 +258,9 @@ sap.ui.define([
|
|
|
250
258
|
* Get a datetime instance of the DateFormat, which can be used for formatting.
|
|
251
259
|
*
|
|
252
260
|
* @param {object} [oFormatOptions] Object which defines the format options
|
|
261
|
+
* @param {sap.ui.core.date.CalendarWeekNumbering} [oFormatOptions.calendarWeekNumbering] @since 1.102.11 specifies the calendar week numbering.
|
|
262
|
+
* Note: This API has been introduced with version 1.108 and downported to this release with
|
|
263
|
+
* patch level 11.
|
|
253
264
|
* @param {string} [oFormatOptions.format] @since 1.34.0 contains pattern symbols (e.g. "yMMMd" or "Hms") which will be converted into the pattern in the used locale, which matches the wanted symbols best.
|
|
254
265
|
* The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w), Day-Of-Week (E/e/c), Day (d), Hour (h/H/k/K/j/J), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
|
|
255
266
|
* See http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
|
|
@@ -269,6 +280,7 @@ sap.ui.define([
|
|
|
269
280
|
* @return {sap.ui.core.format.DateFormat} datetime instance of the DateFormat
|
|
270
281
|
* @static
|
|
271
282
|
* @public
|
|
283
|
+
* @throws {TypeError} If the <code>calendarWeekNumbering</code> format option has an unsupported value
|
|
272
284
|
*/
|
|
273
285
|
DateFormat.getDateTimeInstance = function(oFormatOptions, oLocale) {
|
|
274
286
|
return this.createInstance(oFormatOptions, oLocale, this.oDateTimeInfo);
|
|
@@ -379,6 +391,9 @@ sap.ui.define([
|
|
|
379
391
|
* Get a datetimeWithTimezone instance of the DateFormat, which can be used for formatting.
|
|
380
392
|
*
|
|
381
393
|
* @param {object} [oFormatOptions] An object which defines the format options
|
|
394
|
+
* @param {sap.ui.core.date.CalendarWeekNumbering} [oFormatOptions.calendarWeekNumbering] @since 1.102.11 specifies the calendar week numbering.
|
|
395
|
+
* Note: This API has been introduced with version 1.108 and downported to this release with
|
|
396
|
+
* patch level 11.
|
|
382
397
|
* @param {string} [oFormatOptions.format] A string containing pattern symbols (e.g. "yMMMd" or "Hms") which will be converted into a pattern for the used locale that matches the wanted symbols best.
|
|
383
398
|
* The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w), Day-Of-Week (E/e/c), Day (d), Hour (h/H/k/K/j/J), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
|
|
384
399
|
* See http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
|
|
@@ -404,6 +419,7 @@ sap.ui.define([
|
|
|
404
419
|
* @static
|
|
405
420
|
* @public
|
|
406
421
|
* @since 1.99.0
|
|
422
|
+
* @throws {TypeError} If the <code>calendarWeekNumbering</code> format option has an unsupported value
|
|
407
423
|
*/
|
|
408
424
|
DateFormat.getDateTimeWithTimezoneInstance = function(oFormatOptions, oLocale) {
|
|
409
425
|
// do not modify the input format options
|
|
@@ -435,6 +451,9 @@ sap.ui.define([
|
|
|
435
451
|
* Get a time instance of the DateFormat, which can be used for formatting.
|
|
436
452
|
*
|
|
437
453
|
* @param {object} [oFormatOptions] Object which defines the format options
|
|
454
|
+
* @param {sap.ui.core.date.CalendarWeekNumbering} [oFormatOptions.calendarWeekNumbering] @since 1.102.11 specifies the calendar week numbering.
|
|
455
|
+
* Note: This API has been introduced with version 1.108 and downported to this release with
|
|
456
|
+
* patch level 11.
|
|
438
457
|
* @param {string} [oFormatOptions.format] @since 1.34.0 contains pattern symbols (e.g. "yMMMd" or "Hms") which will be converted into the pattern in the used locale, which matches the wanted symbols best.
|
|
439
458
|
* The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), Week (w), Day-Of-Week (E/e/c), Day (d), Hour (h/H/k/K/j/J), Minute (m), Second (s), Timezone (z/Z/v/V/O/X/x)
|
|
440
459
|
* See http://unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
|
|
@@ -454,6 +473,7 @@ sap.ui.define([
|
|
|
454
473
|
* @return {sap.ui.core.format.DateFormat} time instance of the DateFormat
|
|
455
474
|
* @static
|
|
456
475
|
* @public
|
|
476
|
+
* @throws {TypeError} If the <code>calendarWeekNumbering</code> format option has an unsupported value
|
|
457
477
|
*/
|
|
458
478
|
DateFormat.getTimeInstance = function(oFormatOptions, oLocale) {
|
|
459
479
|
return this.createInstance(oFormatOptions, oLocale, this.oTimeInfo);
|
|
@@ -477,6 +497,7 @@ sap.ui.define([
|
|
|
477
497
|
* @return {sap.ui.core.format.DateFormat} time instance of the DateFormat
|
|
478
498
|
* @static
|
|
479
499
|
* @private
|
|
500
|
+
* @throws {TypeError} If the <code>calendarWeekNumbering</code> format option has an unsupported value
|
|
480
501
|
*/
|
|
481
502
|
DateFormat.createInstance = function(oFormatOptions, oLocale, oInfo) {
|
|
482
503
|
// Create an instance of the DateFormat
|
|
@@ -517,6 +538,10 @@ sap.ui.define([
|
|
|
517
538
|
oFormat.oFormatOptions.calendarType = sap.ui.getCore().getConfiguration().getCalendarType();
|
|
518
539
|
}
|
|
519
540
|
|
|
541
|
+
if (oFormat.oFormatOptions.calendarWeekNumbering && !Object.values(CalendarWeekNumbering).includes(oFormat.oFormatOptions.calendarWeekNumbering)) {
|
|
542
|
+
throw new TypeError("Illegal format option calendarWeekNumbering: '" + oFormat.oFormatOptions.calendarWeekNumbering + "'");
|
|
543
|
+
}
|
|
544
|
+
|
|
520
545
|
if (!oFormat.oFormatOptions.pattern) {
|
|
521
546
|
if (oFormat.oFormatOptions.format) {
|
|
522
547
|
oFormat.oFormatOptions.pattern = oFormat.oLocaleData.getCustomDateTimePattern(oFormat.oFormatOptions.format, oFormat.oFormatOptions.calendarType);
|
|
@@ -1019,7 +1044,7 @@ sap.ui.define([
|
|
|
1019
1044
|
"Y": {
|
|
1020
1045
|
name: "weekYear",
|
|
1021
1046
|
format: function(oField, oDate, bUTC, oFormat) {
|
|
1022
|
-
var oWeek = oDate.getUTCWeek();
|
|
1047
|
+
var oWeek = oDate.getUTCWeek(oFormat.oLocale, oFormat.oFormatOptions.calendarWeekNumbering);
|
|
1023
1048
|
var iWeekYear = oWeek.year;
|
|
1024
1049
|
var sWeekYear = String(iWeekYear);
|
|
1025
1050
|
var sCalendarType = oFormat.oFormatOptions.calendarType;
|
|
@@ -1165,7 +1190,7 @@ sap.ui.define([
|
|
|
1165
1190
|
"w": {
|
|
1166
1191
|
name: "weekInYear",
|
|
1167
1192
|
format: function(oField, oDate, bUTC, oFormat) {
|
|
1168
|
-
var oWeek = oDate.getUTCWeek();
|
|
1193
|
+
var oWeek = oDate.getUTCWeek(oFormat.oLocale, oFormat.oFormatOptions.calendarWeekNumbering);
|
|
1169
1194
|
var iWeek = oWeek.week;
|
|
1170
1195
|
var sWeek = String(iWeek + 1);
|
|
1171
1196
|
if (oField.digits < 3) {
|
|
@@ -2241,7 +2266,7 @@ sap.ui.define([
|
|
|
2241
2266
|
|
|
2242
2267
|
// recreate javascript date object from the given oDateValues.
|
|
2243
2268
|
// In case of oDateValue.valid == false, null value will be returned
|
|
2244
|
-
var fnCreateDate = function(oDateValue, sCalendarType, bUTC, bStrict, sTimezone) {
|
|
2269
|
+
var fnCreateDate = function(oDateValue, sCalendarType, bUTC, bStrict, sTimezone, oFormatOptions, oLocale) {
|
|
2245
2270
|
if (!oDateValue.valid) {
|
|
2246
2271
|
return null;
|
|
2247
2272
|
}
|
|
@@ -2267,9 +2292,9 @@ sap.ui.define([
|
|
|
2267
2292
|
oDate.setUTCWeek({
|
|
2268
2293
|
year: oDateValue.weekYear || oDateValue.year,
|
|
2269
2294
|
week: oDateValue.week
|
|
2270
|
-
});
|
|
2295
|
+
}, oLocale, oFormatOptions.calendarWeekNumbering);
|
|
2271
2296
|
|
|
2272
|
-
//add the dayNumberOfWeek to the current day
|
|
2297
|
+
// add the dayNumberOfWeek to the current day
|
|
2273
2298
|
if (oDateValue.dayNumberOfWeek !== undefined) {
|
|
2274
2299
|
oDate.setUTCDate(oDate.getUTCDate() + oDateValue.dayNumberOfWeek - 1);
|
|
2275
2300
|
}
|
|
@@ -2419,7 +2444,7 @@ sap.ui.define([
|
|
|
2419
2444
|
oDateValue.valid = false;
|
|
2420
2445
|
}
|
|
2421
2446
|
|
|
2422
|
-
oJSDate = fnCreateDate(oDateValue, sCalendarType, bUTC, bStrict, sTimezone);
|
|
2447
|
+
oJSDate = fnCreateDate(oDateValue, sCalendarType, bUTC, bStrict, sTimezone, this.oFormatOptions, this.oLocale);
|
|
2423
2448
|
|
|
2424
2449
|
if (oJSDate) {
|
|
2425
2450
|
if (this.type === mDateFormatTypes.DATETIME_WITH_TIMEZONE) {
|
|
@@ -2443,8 +2468,8 @@ sap.ui.define([
|
|
|
2443
2468
|
var oDateValue1 = mergeWithoutOverwrite(aDateValues[0], aDateValues[1]);
|
|
2444
2469
|
var oDateValue2 = mergeWithoutOverwrite(aDateValues[1], aDateValues[0]);
|
|
2445
2470
|
|
|
2446
|
-
oJSDate1 = fnCreateDate(oDateValue1, sCalendarType, bUTC, bStrict, sTimezone);
|
|
2447
|
-
oJSDate2 = fnCreateDate(oDateValue2, sCalendarType, bUTC, bStrict, sTimezone);
|
|
2471
|
+
oJSDate1 = fnCreateDate(oDateValue1, sCalendarType, bUTC, bStrict, sTimezone, this.oFormatOptions, this.oLocale);
|
|
2472
|
+
oJSDate2 = fnCreateDate(oDateValue2, sCalendarType, bUTC, bStrict, sTimezone, this.oFormatOptions, this.oLocale);
|
|
2448
2473
|
|
|
2449
2474
|
if (oJSDate1 && oJSDate2) {
|
|
2450
2475
|
|
|
@@ -2862,7 +2887,9 @@ sap.ui.define([
|
|
|
2862
2887
|
DateFormat.prototype._adaptDayOfWeek = function(iDayOfWeek) {
|
|
2863
2888
|
// day of week depends on the format locale
|
|
2864
2889
|
// the DateFormat's locale is independent
|
|
2865
|
-
var
|
|
2890
|
+
var sCalendarWeekParameter = this.oFormatOptions.calendarWeekNumbering;
|
|
2891
|
+
var iFirstDayOfWeek = CalendarUtils.getWeekConfigurationValues(sCalendarWeekParameter, this.oLocale).firstDayOfWeek;
|
|
2892
|
+
|
|
2866
2893
|
var iDayNumberOfWeek = iDayOfWeek - (iFirstDayOfWeek - 1);
|
|
2867
2894
|
|
|
2868
2895
|
if (iDayNumberOfWeek <= 0) {
|
|
@@ -398,7 +398,7 @@ sap.ui.define([
|
|
|
398
398
|
* @see {@link topic:6322164936f047de941ec522b95d7b70 Hyphenation for Text Controls}
|
|
399
399
|
* @extends sap.ui.base.ManagedObject
|
|
400
400
|
* @author SAP SE
|
|
401
|
-
* @version 1.102.
|
|
401
|
+
* @version 1.102.11
|
|
402
402
|
* @hideconstructor
|
|
403
403
|
* @public
|
|
404
404
|
* @since 1.60
|
|
@@ -25,13 +25,13 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.core
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.102.
|
|
28
|
+
* @version 1.102.11
|
|
29
29
|
* @since 0.8
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
32
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
33
33
|
name : "sap.ui.core",
|
|
34
|
-
version: "1.102.
|
|
34
|
+
version: "1.102.11",
|
|
35
35
|
designtime: "sap/ui/core/designtime/library.designtime",
|
|
36
36
|
types: [
|
|
37
37
|
|
|
@@ -1509,7 +1509,7 @@ sap.ui.define([
|
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Sort order of a column.
|
|
1511
1511
|
*
|
|
1512
|
-
* @version 1.102.
|
|
1512
|
+
* @version 1.102.11
|
|
1513
1513
|
* @enum {string}
|
|
1514
1514
|
* @public
|
|
1515
1515
|
* @since 1.61.0
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.base.Object
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.102.
|
|
38
|
+
* @version 1.102.11
|
|
39
39
|
*
|
|
40
40
|
* @param {object} [mParameters] a map which contains the following parameter properties:
|
|
41
41
|
* @param {string} [mParameters.id] The message id: will be generated if no id is set
|
|
@@ -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.102.
|
|
30
|
+
* @version 1.102.11
|
|
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}.
|
|
@@ -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.102.
|
|
32
|
+
* @version 1.102.11
|
|
33
33
|
*
|
|
34
34
|
* @public
|
|
35
35
|
* @deprecated Since version 1.56.0, use {@link sap.ui.core.mvc.XMLView} in combination with
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
* bound content aggregation. An error will be thrown when the above combination is detected.
|
|
108
108
|
*
|
|
109
109
|
* @extends sap.ui.core.mvc.View
|
|
110
|
-
* @version 1.102.
|
|
110
|
+
* @version 1.102.11
|
|
111
111
|
*
|
|
112
112
|
* @public
|
|
113
113
|
* @alias sap.ui.core.mvc.XMLView
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* A SearchProvider which uses the OpenSearch protocol (either JSON or XML).
|
|
28
28
|
* @extends sap.ui.core.search.SearchProvider
|
|
29
|
-
* @version 1.102.
|
|
29
|
+
* @version 1.102.11
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
* @alias sap.ui.core.search.OpenSearchProvider
|
|
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', "sap/base/Log", 'sap/ui/core/library'],
|
|
|
23
23
|
*
|
|
24
24
|
* Do not create instances of this class, but use a concrete subclass instead.
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.102.
|
|
26
|
+
* @version 1.102.11
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
* @alias sap.ui.core.search.SearchProvider
|
|
@@ -83,7 +83,7 @@ sap.ui.define(['sap/ui/base/Object', 'sap/ui/core/service/Service', "sap/base/as
|
|
|
83
83
|
*
|
|
84
84
|
* @extends sap.ui.base.Object
|
|
85
85
|
* @author SAP SE
|
|
86
|
-
* @version 1.102.
|
|
86
|
+
* @version 1.102.11
|
|
87
87
|
* @alias sap.ui.core.service.ServiceFactory
|
|
88
88
|
* @private
|
|
89
89
|
* @ui5-restricted sap.ushell
|
|
@@ -18,7 +18,7 @@ sap.ui.define(['./ServiceFactory', "sap/base/assert"],
|
|
|
18
18
|
* The service factory registry.
|
|
19
19
|
*
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.102.
|
|
21
|
+
* @version 1.102.11
|
|
22
22
|
* @alias sap.ui.core.service.ServiceFactoryRegistry
|
|
23
23
|
* @private
|
|
24
24
|
* @ui5-restricted sap.ushell
|
|
@@ -26,7 +26,7 @@ sap.ui.define(['sap/ui/base/EventProvider', './Plugin', "sap/base/util/UriParame
|
|
|
26
26
|
* @class This class provides the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
27
27
|
*
|
|
28
28
|
* @extends sap.ui.base.EventProvider
|
|
29
|
-
* @version 1.102.
|
|
29
|
+
* @version 1.102.11
|
|
30
30
|
* @private
|
|
31
31
|
* @alias sap.ui.core.support.Support
|
|
32
32
|
*/
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* @class This class represents the ControlTree plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
57
57
|
*
|
|
58
58
|
* @extends sap.ui.core.support.Plugin
|
|
59
|
-
* @version 1.102.
|
|
59
|
+
* @version 1.102.11
|
|
60
60
|
* @private
|
|
61
61
|
* @alias sap.ui.core.support.plugins.ControlTree
|
|
62
62
|
*/
|
|
@@ -15,7 +15,7 @@ sap.ui.define(['sap/ui/core/support/Plugin', "sap/base/Log"],
|
|
|
15
15
|
* @class This class represents the LocalStorage plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
16
16
|
*
|
|
17
17
|
* @extends sap.ui.core.support.Plugin
|
|
18
|
-
* @version 1.102.
|
|
18
|
+
* @version 1.102.11
|
|
19
19
|
* @private
|
|
20
20
|
* @alias sap.ui.core.support.plugins.LocalStorage
|
|
21
21
|
*/
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @class This class represents the selector plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
21
21
|
*
|
|
22
22
|
* @extends sap.ui.core.support.Plugin
|
|
23
|
-
* @version 1.102.
|
|
23
|
+
* @version 1.102.11
|
|
24
24
|
* @private
|
|
25
25
|
* @alias sap.ui.core.support.plugins.Selector
|
|
26
26
|
*/
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class This class represents the technical info plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
26
26
|
*
|
|
27
27
|
* @extends sap.ui.core.support.Plugin
|
|
28
|
-
* @version 1.102.
|
|
28
|
+
* @version 1.102.11
|
|
29
29
|
* @private
|
|
30
30
|
* @alias sap.ui.core.support.plugins.TechInfo
|
|
31
31
|
*/
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @class This class represents the trace plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
20
20
|
*
|
|
21
21
|
* @extends sap.ui.core.support.Plugin
|
|
22
|
-
* @version 1.102.
|
|
22
|
+
* @version 1.102.11
|
|
23
23
|
* @private
|
|
24
24
|
* @alias sap.ui.core.support.plugins.Trace
|
|
25
25
|
*/
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* Creates an instance of sap.ui.core.support.plugins.ViewInfo.
|
|
21
21
|
* @class This class represents the ViewInfo plugin for the support tool functionality of UI5. This class is internal and all its functions must not be used by an application.
|
|
22
22
|
* @extends sap.ui.core.support.Plugin
|
|
23
|
-
* @version 1.102.
|
|
23
|
+
* @version 1.102.11
|
|
24
24
|
* @private
|
|
25
25
|
* @alias sap.ui.core.support.plugins.ViewInfo
|
|
26
26
|
*/
|
|
@@ -52,7 +52,7 @@ function(
|
|
|
52
52
|
* @extends sap.ui.base.ManagedObject
|
|
53
53
|
* @abstract
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.102.
|
|
55
|
+
* @version 1.102.11
|
|
56
56
|
* @alias sap.ui.core.tmpl.Template
|
|
57
57
|
* @since 1.15
|
|
58
58
|
* @deprecated since 1.56, use an {@link sap.ui.core.mvc.XMLView XMLView} or {@link sap.ui.core.mvc.JSView JSView} instead.
|