@openui5/sap.ui.unified 1.120.7 → 1.121.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.
Files changed (71) hide show
  1. package/.reuse/dep5 +23 -21
  2. package/THIRDPARTY.txt +6 -43
  3. package/package.json +2 -2
  4. package/src/sap/ui/unified/.library +1 -1
  5. package/src/sap/ui/unified/Calendar.js +54 -20
  6. package/src/sap/ui/unified/CalendarAppointment.js +16 -9
  7. package/src/sap/ui/unified/CalendarDateInterval.js +4 -4
  8. package/src/sap/ui/unified/CalendarLegend.js +7 -5
  9. package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
  10. package/src/sap/ui/unified/CalendarLegendRenderer.js +13 -4
  11. package/src/sap/ui/unified/CalendarMonthInterval.js +9 -9
  12. package/src/sap/ui/unified/CalendarMonthIntervalRenderer.js +3 -3
  13. package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
  14. package/src/sap/ui/unified/CalendarRenderer.js +8 -4
  15. package/src/sap/ui/unified/CalendarRow.js +26 -9
  16. package/src/sap/ui/unified/CalendarRowRenderer.js +30 -39
  17. package/src/sap/ui/unified/CalendarTimeInterval.js +11 -7
  18. package/src/sap/ui/unified/CalendarTimeIntervalRenderer.js +3 -3
  19. package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
  20. package/src/sap/ui/unified/ColorPicker.js +10 -8
  21. package/src/sap/ui/unified/ColorPickerPopover.js +5 -3
  22. package/src/sap/ui/unified/ColorPickerRenderer.js +3 -3
  23. package/src/sap/ui/unified/ContentSwitcher.js +1 -1
  24. package/src/sap/ui/unified/ContentSwitcherRenderer.js +3 -2
  25. package/src/sap/ui/unified/Currency.js +1 -1
  26. package/src/sap/ui/unified/CurrencyRenderer.js +4 -4
  27. package/src/sap/ui/unified/DateRange.js +1 -1
  28. package/src/sap/ui/unified/DateTypeRange.js +4 -5
  29. package/src/sap/ui/unified/FileUploader.js +13 -10
  30. package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
  31. package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
  32. package/src/sap/ui/unified/Menu.js +25 -9
  33. package/src/sap/ui/unified/MenuItem.js +3 -3
  34. package/src/sap/ui/unified/MenuItemBase.js +3 -3
  35. package/src/sap/ui/unified/MenuRenderer.js +5 -5
  36. package/src/sap/ui/unified/MenuTextFieldItem.js +10 -10
  37. package/src/sap/ui/unified/Shell.js +1 -1
  38. package/src/sap/ui/unified/ShellHeadItem.js +1 -1
  39. package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
  40. package/src/sap/ui/unified/ShellHeader.js +11 -9
  41. package/src/sap/ui/unified/ShellLayout.js +10 -4
  42. package/src/sap/ui/unified/ShellLayoutRenderer.js +3 -3
  43. package/src/sap/ui/unified/ShellOverlay.js +6 -3
  44. package/src/sap/ui/unified/ShellOverlayRenderer.js +6 -6
  45. package/src/sap/ui/unified/SplitContainer.js +6 -6
  46. package/src/sap/ui/unified/SplitContainerRenderer.js +3 -3
  47. package/src/sap/ui/unified/calendar/CalendarUtils.js +8 -7
  48. package/src/sap/ui/unified/calendar/DatesRow.js +29 -4
  49. package/src/sap/ui/unified/calendar/DatesRowRenderer.js +4 -4
  50. package/src/sap/ui/unified/calendar/Header.js +1 -1
  51. package/src/sap/ui/unified/calendar/HeaderRenderer.js +8 -4
  52. package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
  53. package/src/sap/ui/unified/calendar/Month.js +54 -22
  54. package/src/sap/ui/unified/calendar/MonthPicker.js +5 -5
  55. package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +3 -3
  56. package/src/sap/ui/unified/calendar/MonthRenderer.js +66 -80
  57. package/src/sap/ui/unified/calendar/MonthsRow.js +33 -13
  58. package/src/sap/ui/unified/calendar/MonthsRowRenderer.js +4 -5
  59. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +1 -1
  60. package/src/sap/ui/unified/calendar/TimesRow.js +32 -8
  61. package/src/sap/ui/unified/calendar/TimesRowRenderer.js +7 -5
  62. package/src/sap/ui/unified/calendar/YearPicker.js +9 -10
  63. package/src/sap/ui/unified/calendar/YearPickerRenderer.js +9 -7
  64. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  65. package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +3 -1
  66. package/src/sap/ui/unified/designtime/messagebundle_en_US_saprigi.properties +6 -6
  67. package/src/sap/ui/unified/library.js +22 -13
  68. package/src/sap/ui/unified/messagebundle.properties +9 -0
  69. package/src/sap/ui/unified/messagebundle_mk.properties +1 -1
  70. package/src/sap/ui/unified/themes/base/Menu.less +1 -1
  71. package/LICENSES/BSD-2-Clause.txt +0 -22
package/.reuse/dep5 CHANGED
@@ -28,7 +28,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
28
28
  # OpenUI5 code
29
29
 
30
30
  Files: *
31
- Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
31
+ Copyright: 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
32
32
  License: Apache-2.0
33
33
 
34
34
 
@@ -68,7 +68,7 @@ Comment: these files belong to: jQuery UI
68
68
 
69
69
  Files: src/sap.ui.commons/src/sap/ui/commons/Carousel.js
70
70
  Copyright:
71
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
71
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
72
72
  Spencer Tipping
73
73
  License: Apache-2.0 and MIT
74
74
  Comment: these files contain content from SAP and jquery.fix.clone: Carousel.js is authored by SAP, but contains an improved implementation of the clone function which is taken from jquery-fix-clone
@@ -83,35 +83,35 @@ Comment: these files belong to: jQuery 3
83
83
 
84
84
  Files: src/sap.ui.core/src/sap/base/util/isPlainObject.js
85
85
  Copyright:
86
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
86
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
87
87
  OpenJS Foundation and other contributors
88
88
  License: Apache-2.0 and MIT
89
89
  Comment: these files contain content from SAP and jQuery 3: isPlainObject.js is overall written by SAP, but contains a modified implementation of jQuery.isPlainObject taken from jQuery
90
90
 
91
91
  Files: src/sap.ui.core/src/sap/base/util/_merge.js
92
92
  Copyright:
93
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
93
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
94
94
  OpenJS Foundation and other contributors
95
95
  License: Apache-2.0 and MIT
96
96
  Comment: these files contain content from SAP and jQuery 3: _merge.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
97
97
 
98
98
  Files: src/sap.ui.core/src/jquery.sap.script.js
99
99
  Copyright:
100
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
100
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
101
101
  OpenJS Foundation and other contributors
102
102
  License: Apache-2.0 and MIT
103
103
  Comment: these files contain content from SAP and jQuery 3: jquery.sap.script.js is overall written by SAP, but contains a modified implementation of jQuery.extend taken from jQuery
104
104
 
105
105
  Files: src/sap.ui.core/src/sap/ui/Device.js
106
106
  Copyright:
107
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
107
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
108
108
  2011, John Resig
109
109
  License: Apache-2.0 and MIT
110
110
  Comment: these files contain content from SAP and jQuery 1: Device.js is overall written by SAP, but contains code taken from jQuery 1.7.1 (see the respective comment)
111
111
 
112
112
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/Selectors.js
113
113
  Copyright:
114
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
114
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
115
115
  2014 jQuery Foundation and other contributors
116
116
  License: Apache-2.0 and MIT
117
117
  Comment: these files contain content from SAP and jQuery UI 1.8: Selectors.js is overall written by SAP, but contains code taken from jQuery UI (see the respective comments)
@@ -123,14 +123,14 @@ Comment: these files belong to: jQuery UI 1.10
123
123
 
124
124
  Files: src/sap.ui.core/src/jquery.sap.dom.js
125
125
  Copyright:
126
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
126
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
127
127
  2014 jQuery Foundation and other contributors
128
128
  License: Apache-2.0 and MIT
129
129
  Comment: these files contain content from SAP and jQuery UI 1.10: jquery.sap.dom.js is overall written by SAP, but contains code taken from jQuery UI Core (see the respective comment)
130
130
 
131
131
  Files: src/sap.ui.core/src/sap/ui/dom/jquery/zIndex.js
132
132
  Copyright:
133
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
133
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
134
134
  2014 jQuery Foundation and other contributors
135
135
  License: Apache-2.0 and MIT
136
136
  Comment: these files contain content from SAP and jQuery UI 1.11: zIndex.js is overall written by SAP, but contains an implementation of the function 'fnzIndex' which is taken from jQuery UI Datepicker 1.11.1
@@ -162,7 +162,7 @@ Comment: these files belong to: jQuery Mobile
162
162
 
163
163
  Files: src/sap.ui.core/src/sap/ui/util/_FeatureDetection.js
164
164
  Copyright:
165
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
165
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
166
166
  2012 Wei-Ko Kao
167
167
  License: Apache-2.0 and MIT
168
168
  Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
@@ -177,6 +177,13 @@ Copyright: jQuery Foundation and other contributors
177
177
  License: MIT
178
178
  Comment: these files belong to: JUnit Reporter for QUnit
179
179
 
180
+ Files: src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
181
+ Copyright:
182
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
183
+ jQuery Foundation and other contributors
184
+ License: Apache-2.0 and MIT
185
+ Comment: these files contain content from SAP and JUnit Reporter for QUnit: qunit-junit.js is overall written by SAP, but contains a modified copy of JUnit Reporter for QUnit (qunit-reporter-junit)
186
+
180
187
  Files: src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js
181
188
  Copyright: 2012 Matteo Spinelli
182
189
  License: MIT
@@ -294,14 +301,14 @@ Comment: these files belong to: blanket.js
294
301
 
295
302
  Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
296
303
  Copyright:
297
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
304
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
298
305
  Douglas Crockford
299
306
  License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
300
307
  Comment: these files contain content from SAP and JSON in JS: JSTokenizer.js is overall written by SAP, but contains code has been taken from the component JSON in JavaScript (https://github.com/douglascrockford/JSON-js/blob/master/json2.js) from Douglas Crockford which is licensed under Public Domain
301
308
 
302
309
  Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
303
310
  Copyright:
304
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
311
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
305
312
  2010 Douglas Crockford
306
313
  License: Apache-2.0
307
314
  Comment: these files contain content from SAP and Top Down Operator Precedence: ExpressionParser.js is overall written by SAP, but contains code taken from or inspired by TDOP by Douglas Crockford (see the respective comment)
@@ -335,7 +342,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
335
342
 
336
343
  Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
337
344
  Copyright:
338
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
345
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
339
346
  Behrang Norouzinia
340
347
  License: Apache-2.0 and MIT
341
348
  Comment: these files contain content from SAP and Jalaali JS: Persian.js is overall written by SAP, but the calculation is taken from jalaali-js
@@ -347,14 +354,14 @@ Comment: these files belong to: vkBeautify
347
354
 
348
355
  Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
349
356
  Copyright:
350
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
357
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
351
358
  Isaac Z. Schlueter and Contributors
352
359
  License: Apache-2.0 and ISC
353
360
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
354
361
 
355
362
  Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
356
363
  Copyright:
357
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
364
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
358
365
  Arthur David Olson, Paul Eggert and other contributors
359
366
  License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
360
367
  Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
@@ -362,11 +369,6 @@ Comment: these files contain content from SAP and Time Zone Database: _timezones
362
369
 
363
370
  # Library: sap.ui.documentation:
364
371
 
365
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
366
- Copyright: 2013 Ariya Hidayat and other contributors
367
- License: BSD-2-Clause
368
- Comment: these files belong to: Esprima
369
-
370
372
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
371
373
  Copyright: 2006-2020, Ivan Sagalaev
372
374
  License: BSD-3-Clause
@@ -459,7 +461,7 @@ Comment: these files belong to: UI5 Web Components
459
461
 
460
462
  Files: lib/jsdoc/ui5/plugin.js
461
463
  Copyright:
462
- 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
464
+ 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
463
465
  2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
464
466
  License: Apache-2.0
465
467
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
package/THIRDPARTY.txt CHANGED
@@ -15,7 +15,7 @@ Contained in: src/sap.m/src/sap/m/_thirdparty/purify.js
15
15
 
16
16
  Library: sap.ui.codeeditor:
17
17
 
18
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
18
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.31.1
19
19
  Copyright: 2010, Ajax.org B.V.
20
20
  License: BSD-3-Clause
21
21
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -124,6 +124,7 @@ Copyright: jQuery Foundation and other contributors
124
124
  License: MIT
125
125
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
126
126
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-reporter-junit.js
127
+ src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
127
128
 
128
129
  Component: cubiq.org - iScroll, version: 4.2.5
129
130
  Copyright: 2012 Matteo Spinelli
@@ -179,7 +180,7 @@ License: Apache-2.0
179
180
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
180
181
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
181
182
 
182
- Component: Unicode Common Locale Data Repository, version: 43
183
+ Component: Unicode Common Locale Data Repository, version: 44
183
184
  Copyright: 1991-2023 Unicode, Inc.
184
185
  License: Unicode-DFS-2015
185
186
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
@@ -334,7 +335,7 @@ License: ISC
334
335
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
335
336
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
336
337
 
337
- Component: Time Zone Database, version: 2023c
338
+ Component: Time Zone Database, version: 2023d
338
339
  Copyright: Arthur David Olson, Paul Eggert and other contributors
339
340
  License: LicenseRef-tzdata-PublicDomain
340
341
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
@@ -343,13 +344,7 @@ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
343
344
 
344
345
  Library: sap.ui.documentation:
345
346
 
346
- Component: Esprima, version: 1.2.2
347
- Copyright: 2013 Ariya Hidayat and other contributors
348
- License: BSD-2-Clause
349
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
350
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
351
-
352
- Component: highlight.js, version: 10.4.1
347
+ Component: highlight.js, version: 11.9.0
353
348
  Copyright: 2006-2020, Ivan Sagalaev
354
349
  License: BSD-3-Clause
355
350
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -466,7 +461,7 @@ License: Apache-2.0
466
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
467
462
  Contained in: lib/jsdoc/ui5/plugin.js
468
463
 
469
- Component: SAP Theming Base Content, version: 11.6.8
464
+ Component: SAP Theming Base Content, version: 11.10.0
470
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
471
466
  License: Apache-2.0
472
467
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -663,38 +658,6 @@ END of license: Apache-2.0
663
658
  =================================
664
659
 
665
660
 
666
- =================================
667
- BEGIN of license: BSD-2-Clause
668
- =================================
669
-
670
- Copyright (c) <year> <owner>. All rights reserved.
671
-
672
- Redistribution and use in source and binary forms, with or without modification,
673
- are permitted provided that the following conditions are met:
674
-
675
- 1. Redistributions of source code must retain the above copyright notice,
676
- this list of conditions and the following disclaimer.
677
-
678
- 2. Redistributions in binary form must reproduce the above copyright notice,
679
- this list of conditions and the following disclaimer in the documentation
680
- and/or other materials provided with the distribution.
681
-
682
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
683
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
684
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
685
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
686
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
687
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
688
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
689
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
690
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
691
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
692
-
693
- =================================
694
- END of license: BSD-2-Clause
695
- =================================
696
-
697
-
698
661
  =================================
699
662
  BEGIN of license: BSD-3-Clause
700
663
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.unified",
3
- "version": "1.120.7",
3
+ "version": "1.121.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.unified",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,6 +14,6 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.ui.core": "1.120.7"
17
+ "@openui5/sap.ui.core": "1.121.0"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.120.7</version>
9
+ <version>1.121.0</version>
10
10
 
11
11
  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
12
12
 
@@ -5,9 +5,11 @@
5
5
  */
6
6
  //Provides control sap.ui.unified.Calendar.
7
7
  sap.ui.define([
8
+ "sap/base/i18n/Formatting",
9
+ "sap/base/i18n/Localization",
8
10
  'sap/ui/core/CalendarType',
9
11
  'sap/ui/core/Control',
10
- 'sap/ui/core/Core',
12
+ "sap/ui/core/Element",
11
13
  'sap/ui/core/LocaleData',
12
14
  'sap/ui/unified/calendar/CalendarUtils',
13
15
  'sap/ui/unified/DateTypeRange',
@@ -29,12 +31,13 @@ sap.ui.define([
29
31
  "sap/ui/dom/containsOrEquals",
30
32
  "sap/base/util/deepEqual",
31
33
  "sap/base/Log",
32
- "sap/ui/core/Configuration",
33
34
  "sap/ui/core/date/CalendarWeekNumbering"
34
35
  ], function(
36
+ Formatting,
37
+ Localization,
35
38
  CalendarType,
36
39
  Control,
37
- oCore,
40
+ Element,
38
41
  LocaleData,
39
42
  CalendarUtils,
40
43
  DateTypeRange,
@@ -56,7 +59,6 @@ sap.ui.define([
56
59
  containsOrEquals,
57
60
  deepEqual,
58
61
  Log,
59
- Configuration,
60
62
  CalendarWeekNumbering
61
63
  ) {
62
64
  "use strict";
@@ -76,7 +78,7 @@ sap.ui.define([
76
78
  * Basic Calendar.
77
79
  * This calendar is used for DatePickers
78
80
  * @extends sap.ui.core.Control
79
- * @version 1.120.7
81
+ * @version 1.121.0
80
82
  *
81
83
  * @constructor
82
84
  * @public
@@ -230,17 +232,44 @@ sap.ui.define([
230
232
  selectedDates : {type : "sap.ui.unified.DateRange", multiple : true, singularName : "selectedDate"},
231
233
 
232
234
  /**
233
- * Dates or date ranges with type, to visualize special days in the <code>Calendar</code>.
234
- * If one day is assigned to more than one Type, only the first one will be used.
235
+ * Dates or date ranges with type, to visualize special days.
235
236
  *
236
237
  * To set a single date (instead of a range), set only the <code>startDate</code> property
237
- * of the {@link sap.ui.unified.DateRange} class.
238
+ * of the {@link sap.ui.unified.DateTypeRange} class.
238
239
  *
239
- * <b>Note:</b> Keep in mind that the <code>NonWorking</code> type is for marking specific
240
- * dates or date ranges as non-working, where if you need a weekly-reccuring non-working days
240
+ * <b>Note:</b> If you need a weekly-reccuring non-working days
241
241
  * (weekend), you should use the <code>nonWorkingDays</code> property. Both the non-working
242
242
  * days (from property) and dates (from aggregation) are visualized the same.
243
243
  *
244
+ * <b>Note:</b> In case there are multiple <code>sap.ui.unified.DateTypeRange</code> instances given for a single date,
245
+ * only the first <code>sap.ui.unified.DateTypeRange</code> instance will be used.
246
+ * For example, using the following sample, the 1st of November will be displayed as a working day of type "Type10":
247
+ *
248
+ *
249
+ * <pre>
250
+ * new DateTypeRange({
251
+ * startDate: UI5Date.getInstance(2023, 10, 1),
252
+ * type: CalendarDayType.Type10,
253
+ * }),
254
+ * new DateTypeRange({
255
+ * startDate: UI5Date.getInstance(2023, 10, 1),
256
+ * type: CalendarDayType.NonWorking
257
+ * })
258
+ * </pre>
259
+ *
260
+ * If you want the first of November to be displayed as a non-working day and also as "Type10," the following should be done:
261
+ * <pre>
262
+ * new DateTypeRange({
263
+ * startDate: UI5Date.getInstance(2023, 10, 1),
264
+ * type: CalendarDayType.Type10,
265
+ * secondaryType: CalendarDayType.NonWorking
266
+ * })
267
+ * </pre>
268
+ *
269
+ * You can use only one of the following types for a given date: <code>sap.ui.unified.CalendarDayType.NonWorking</code>,
270
+ * <code>sap.ui.unified.CalendarDayType.Working</code> or <code>sap.ui.unified.CalendarDayType.None</code>.
271
+ * Assigning more than one of these values in combination for the same date will lead to unpredictable results.
272
+ *
244
273
  * @since 1.24.0
245
274
  */
246
275
  specialDates : {type : "sap.ui.unified.DateTypeRange", multiple : true, singularName : "specialDate"},
@@ -703,7 +732,7 @@ sap.ui.define([
703
732
  Calendar.prototype.getLocale = function(){
704
733
 
705
734
  if (!this._sLocale) {
706
- this._sLocale = Configuration.getFormatSettings().getFormatLocale().toString();
735
+ this._sLocale = new Locale(Formatting.getLanguageTag()).toString();
707
736
  }
708
737
 
709
738
  return this._sLocale;
@@ -912,7 +941,7 @@ sap.ui.define([
912
941
  };
913
942
 
914
943
  Calendar.prototype._getPrimaryCalendarType = function(){
915
- return this.getProperty("primaryCalendarType") || Configuration.getCalendarType();
944
+ return this.getProperty("primaryCalendarType") || Formatting.getCalendarType();
916
945
  };
917
946
 
918
947
  /**
@@ -1298,7 +1327,7 @@ sap.ui.define([
1298
1327
 
1299
1328
  Calendar.prototype._updateLegendParent = function(){
1300
1329
  var sLegend = this.getLegend(),
1301
- oLegend = oCore.byId(sLegend);
1330
+ oLegend = Element.getElementById(sLegend);
1302
1331
 
1303
1332
  oLegend && oLegend._setParent(this);
1304
1333
  };
@@ -2396,8 +2425,8 @@ sap.ui.define([
2396
2425
  */
2397
2426
  Calendar.prototype._toggleTwoMonthsInTwoColumnsCSS = function () {
2398
2427
  if (this._isTwoMonthsInTwoColumns()) {
2399
- if (oCore.getConfiguration().getLocale().getLanguage().toLowerCase() === "ja" ||
2400
- oCore.getConfiguration().getLocale().getLanguage().toLowerCase() === "zh") {
2428
+ if (new Locale(Localization.getLanguageTag()).getLanguage().toLowerCase() === "ja" ||
2429
+ new Locale(Localization.getLanguageTag()).getLanguage().toLowerCase() === "zh") {
2401
2430
  this.addStyleClass("sapUiCalTwoMonthsTwoColumnsJaZh");
2402
2431
  this.removeStyleClass("sapUiCalTwoMonthsTwoColumns");
2403
2432
  } else {
@@ -2489,8 +2518,13 @@ sap.ui.define([
2489
2518
 
2490
2519
  Calendar.prototype._adjustYearRangeDisplay = function() {
2491
2520
  var oYearRangePicker = this.getAggregation("yearRangePicker"),
2492
- sLang = sap.ui.getCore().getConfiguration().getLanguage().toLocaleLowerCase(),
2493
- sPrimaryCalendarType = this._getPrimaryCalendarType();
2521
+ sLang = Localization.getLanguage().toLocaleLowerCase(),
2522
+ sPrimaryCalendarType = this._getPrimaryCalendarType(),
2523
+ sSecondaryCalendarType = this._getSecondaryCalendarType(),
2524
+ bKorean = sLang == "ko" || sLang == "ko-kr",
2525
+ bJapaneseCalendar = sPrimaryCalendarType === CalendarType.Japanese || sSecondaryCalendarType === CalendarType.Japanese,
2526
+ bGregorianCalendar = sPrimaryCalendarType === CalendarType.Gregorian
2527
+ && (sSecondaryCalendarType === CalendarType.Gregorian || !sSecondaryCalendarType);
2494
2528
 
2495
2529
  if (!this._getSucessorsPickerPopup()) {
2496
2530
  // An evaluation about the count of year cells that could fit in the sap.ui.unified.calendar.YearRangePicker
@@ -2498,13 +2532,13 @@ sap.ui.define([
2498
2532
  // Based on those two criteria a couple of groups with different year cells count would be indicated and we
2499
2533
  // could cover those scenarios with visual tests afterwards. Currently only the scenario with korean language
2500
2534
  // is covered.
2501
- if (sPrimaryCalendarType == CalendarType.Japanese) {
2535
+ if (bJapaneseCalendar) {
2502
2536
  oYearRangePicker.setColumns(1);
2503
2537
  oYearRangePicker.setYears(4);
2504
- } else if (sLang == "ko" || sLang == "ko-kr" || sPrimaryCalendarType != CalendarType.Gregorian) {
2538
+ } else if (bKorean || !bGregorianCalendar) {
2505
2539
  oYearRangePicker.setColumns(2);
2506
2540
  oYearRangePicker.setYears(8);
2507
- } else if (sPrimaryCalendarType == CalendarType.Gregorian) {
2541
+ } else if (bGregorianCalendar) {
2508
2542
  oYearRangePicker.setColumns(3);
2509
2543
  oYearRangePicker.setYears(9);
2510
2544
  }
@@ -7,6 +7,9 @@
7
7
  // Provides control sap.ui.unified.CalendarAppointment.
8
8
  sap.ui.define([
9
9
  './DateTypeRange',
10
+ "sap/base/i18n/Formatting",
11
+ "sap/ui/core/Lib",
12
+ "sap/ui/core/Locale",
10
13
  'sap/ui/core/format/DateFormat',
11
14
  'sap/ui/core/format/NumberFormat',
12
15
  'sap/ui/core/format/TimezoneUtil',
@@ -14,11 +17,13 @@ sap.ui.define([
14
17
  './calendar/CalendarUtils',
15
18
  './library',
16
19
  "sap/base/Log",
17
- "sap/ui/core/Configuration",
18
20
  "sap/ui/core/date/UI5Date"
19
21
  ],
20
22
  function(
21
23
  DateTypeRange,
24
+ Formatting,
25
+ Library,
26
+ Locale,
22
27
  DateFormat,
23
28
  NumberFormat,
24
29
  TimezoneUtil,
@@ -26,9 +31,8 @@ sap.ui.define([
26
31
  CalendarUtils,
27
32
  library,
28
33
  Log,
29
- Configuration,
30
34
  UI5Date
31
- ) {
35
+ ) {
32
36
  "use strict";
33
37
 
34
38
  /**
@@ -43,7 +47,7 @@ sap.ui.define([
43
47
  *
44
48
  * Applications could inherit from this element to add own fields.
45
49
  * @extends sap.ui.unified.DateTypeRange
46
- * @version 1.120.7
50
+ * @version 1.121.0
47
51
  *
48
52
  * @constructor
49
53
  * @public
@@ -116,7 +120,6 @@ sap.ui.define([
116
120
  * </ul>
117
121
  *
118
122
  * @since 1.93.0
119
- * @experimental Since 1.93, providing only limited functionality. Also, the API might be changed in the future.
120
123
  */
121
124
  customContent: { type: "sap.ui.core.Control", multiple: true }
122
125
  }
@@ -153,13 +156,13 @@ sap.ui.define([
153
156
  oCurrentDayStart = UI5Date.getInstance(oCurrentlyDisplayedDate.getFullYear(), oCurrentlyDisplayedDate.getMonth(), oCurrentlyDisplayedDate.getDate(), 0, 0, 0),
154
157
  oNextDayStart = UI5Date.getInstance(oCurrentDayStart.getFullYear(), oCurrentDayStart.getMonth(), oCurrentDayStart.getDate() + 1),
155
158
  oTimeFormat = DateFormat.getTimeInstance({pattern: "HH:mm"}),
156
- oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.m"),
159
+ oResourceBundle = Library.getResourceBundleFor("sap.m"),
157
160
  oHourFormat = NumberFormat.getUnitInstance({
158
161
  allowedUnits: ["duration-hour"]
159
- }, Configuration.getFormatSettings().getFormatLocale()),
162
+ }, new Locale(Formatting.getLanguageTag())),
160
163
  oMinuteFormat = NumberFormat.getUnitInstance({
161
164
  allowedUnits: ["duration-minute"]
162
- }, Configuration.getFormatSettings().getFormatLocale()),
165
+ }, new Locale(Formatting.getLanguageTag())),
163
166
  iHour, iMinute, sHour, sMinute;
164
167
 
165
168
  //have no intersection with the given day
@@ -251,11 +254,15 @@ sap.ui.define([
251
254
  * @private
252
255
  */
253
256
  CalendarAppointment.prototype._getCSSColorForBackground = function(sHex) {
257
+ if (sHex.length === 4) {
258
+ // normalize shortened hex values (#abc -> #aabbcc) in order to work properly with them
259
+ sHex = '#' + sHex.charAt(1) + sHex.charAt(1) + sHex.charAt(2) + sHex.charAt(2) + sHex.charAt(3) + sHex.charAt(3);
260
+ }
254
261
  return "rgba(" + [
255
262
  parseInt(sHex.substr(1, 2), 16), // Red
256
263
  parseInt(sHex.substr(3, 2), 16), // Green
257
264
  parseInt(sHex.substr(5, 2), 16) // Blue
258
- ].join(",") + ", 0.2)";
265
+ ].join(", ") + ", 0.2)";
259
266
  };
260
267
 
261
268
  CalendarAppointment.prototype._setAppointmentPartSuffix = function (sSuffix) {
@@ -14,12 +14,12 @@ sap.ui.define([
14
14
  './calendar/YearRangePicker',
15
15
  './calendar/CalendarDate',
16
16
  './library',
17
+ "sap/base/i18n/Localization",
17
18
  'sap/ui/Device',
18
19
  "./CalendarDateIntervalRenderer",
19
20
  "sap/base/util/deepEqual",
20
21
  "sap/m/Popover",
21
22
  "sap/ui/core/CalendarType",
22
- "sap/ui/core/Core",
23
23
  "sap/base/Log",
24
24
  "./DateRange",
25
25
  "sap/ui/core/date/UI5Date"
@@ -33,12 +33,12 @@ sap.ui.define([
33
33
  YearRangePicker,
34
34
  CalendarDate,
35
35
  library,
36
+ Localization,
36
37
  Device,
37
38
  CalendarDateIntervalRenderer,
38
39
  deepEqual,
39
40
  Popover,
40
41
  CalendarType,
41
- Core,
42
42
  Log,
43
43
  DateRange,
44
44
  UI5Date
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @class
60
60
  * <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
61
61
  * @extends sap.ui.unified.Calendar
62
- * @version 1.120.7
62
+ * @version 1.121.0
63
63
  *
64
64
  * @constructor
65
65
  * @public
@@ -1042,7 +1042,7 @@ sap.ui.define([
1042
1042
  var $Popover = this._oPopup.$();
1043
1043
  var iOffsetX = Math.floor(($Popover.width() - $Button.width()) / 2);
1044
1044
 
1045
- this._oPopup.setOffsetX(Core.getConfiguration().getRTL() ? iOffsetX : -iOffsetX);
1045
+ this._oPopup.setOffsetX(Localization.getRTL() ? iOffsetX : -iOffsetX);
1046
1046
 
1047
1047
  var iOffsetY = $Button.height();
1048
1048
 
@@ -10,17 +10,18 @@ sap.ui.define([
10
10
  './library',
11
11
  './CalendarLegendRenderer',
12
12
  "sap/base/Log",
13
+ "sap/ui/core/Element",
14
+ "sap/ui/core/Lib",
13
15
  "sap/ui/thirdparty/jquery",
14
16
  "sap/ui/unified/CalendarLegendItem",
15
- "sap/ui/core/Core",
16
17
  "sap/ui/Device",
17
18
  "sap/ui/core/delegate/ItemNavigation"
18
19
  ],
19
- function(Control, library, CalendarLegendRenderer, Log, jQuery, CalendarLegendItem, Core, Device, ItemNavigation) {
20
+ function(Control, library, CalendarLegendRenderer, Log, Element, Library, jQuery, CalendarLegendItem, Device, ItemNavigation) {
20
21
  "use strict";
21
22
 
22
23
  // Resource Bundle
23
- var oResourceBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.unified");
24
+ var oResourceBundle = Library.getResourceBundleFor("sap.ui.unified");
24
25
 
25
26
  // shortcut for sap.ui.unified.CalendarDayType
26
27
  var CalendarDayType = library.CalendarDayType;
@@ -56,7 +57,7 @@ sap.ui.define([
56
57
  * @extends sap.ui.core.Control
57
58
  *
58
59
  * @author SAP SE
59
- * @version 1.120.7
60
+ * @version 1.121.0
60
61
  *
61
62
  * @constructor
62
63
  * @public
@@ -189,7 +190,7 @@ sap.ui.define([
189
190
  CalendarLegend.prototype._onItemNavigationAfterFocus = function(oEvent) {
190
191
  var oSource = oEvent.getSource(),
191
192
  oLegendItemDomRef = oSource.getItemDomRefs()[oSource.getFocusedIndex()],
192
- sType = Core.byId(oLegendItemDomRef.id).getType(),
193
+ sType = Element.getElementById(oLegendItemDomRef.id).getType(),
193
194
  oParent = this._getParent();
194
195
 
195
196
  this._setSpecialDateTypeFilter(sType);
@@ -344,6 +345,7 @@ sap.ui.define([
344
345
 
345
346
  delete oFreeTypes[CalendarDayType.None];
346
347
  delete oFreeTypes[CalendarDayType.NonWorking];
348
+ delete oFreeTypes[CalendarDayType.Working];
347
349
 
348
350
  //remove types that are used
349
351
  for (i = 0; i < aItems.length; i++) {
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
21
21
  * @class
22
22
  * Item to be displayed in a CalendarLegend.
23
23
  * @extends sap.ui.core.Element
24
- * @version 1.120.7
24
+ * @version 1.121.0
25
25
  *
26
26
  * @constructor
27
27
  * @public