@openui5/sap.ui.unified 1.109.0 → 1.110.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/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +2 -2
- package/src/sap/ui/unified/.library +2 -2
- package/src/sap/ui/unified/Calendar.js +36 -35
- package/src/sap/ui/unified/CalendarAppointment.js +7 -8
- package/src/sap/ui/unified/CalendarDateInterval.js +12 -7
- package/src/sap/ui/unified/CalendarDateIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarLegend.js +2 -2
- package/src/sap/ui/unified/CalendarLegendItem.js +2 -2
- package/src/sap/ui/unified/CalendarLegendRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarMonthInterval.js +16 -16
- package/src/sap/ui/unified/CalendarMonthIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarOneMonthInterval.js +2 -2
- package/src/sap/ui/unified/CalendarOneMonthIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarRow.js +17 -7
- package/src/sap/ui/unified/CalendarRowRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarTimeInterval.js +34 -19
- package/src/sap/ui/unified/CalendarTimeIntervalRenderer.js +1 -1
- package/src/sap/ui/unified/CalendarWeekInterval.js +2 -2
- package/src/sap/ui/unified/ColorPicker.js +2 -2
- package/src/sap/ui/unified/ColorPickerDisplayMode.js +1 -1
- package/src/sap/ui/unified/ColorPickerPopover.js +2 -2
- package/src/sap/ui/unified/ColorPickerRenderer.js +1 -1
- package/src/sap/ui/unified/ContentSwitcher.js +2 -2
- package/src/sap/ui/unified/ContentSwitcherRenderer.js +2 -2
- package/src/sap/ui/unified/Currency.js +3 -3
- package/src/sap/ui/unified/CurrencyRenderer.js +2 -2
- package/src/sap/ui/unified/DateRange.js +14 -2
- package/src/sap/ui/unified/DateTypeRange.js +2 -2
- package/src/sap/ui/unified/FileUploader.js +23 -24
- package/src/sap/ui/unified/FileUploaderHttpRequestMethod.js +1 -1
- package/src/sap/ui/unified/FileUploaderParameter.js +2 -2
- package/src/sap/ui/unified/FileUploaderRenderer.js +1 -1
- package/src/sap/ui/unified/FileUploaderXHRSettings.js +2 -2
- package/src/sap/ui/unified/Menu.js +8 -30
- package/src/sap/ui/unified/MenuItem.js +2 -2
- package/src/sap/ui/unified/MenuItemBase.js +2 -2
- package/src/sap/ui/unified/MenuRenderer.js +2 -2
- package/src/sap/ui/unified/MenuTextFieldItem.js +5 -5
- package/src/sap/ui/unified/Shell.js +2 -2
- package/src/sap/ui/unified/ShellHeadItem.js +2 -2
- package/src/sap/ui/unified/ShellHeadUserItem.js +2 -2
- package/src/sap/ui/unified/ShellHeader.js +1 -1
- package/src/sap/ui/unified/ShellLayout.js +2 -2
- package/src/sap/ui/unified/ShellLayoutRenderer.js +1 -1
- package/src/sap/ui/unified/ShellOverlay.js +2 -2
- package/src/sap/ui/unified/ShellOverlayRenderer.js +1 -1
- package/src/sap/ui/unified/ShellRenderer.js +1 -1
- package/src/sap/ui/unified/SplitContainer.js +2 -2
- package/src/sap/ui/unified/SplitContainerRenderer.js +2 -2
- package/src/sap/ui/unified/calendar/CalendarDate.js +1 -1
- package/src/sap/ui/unified/calendar/CalendarUtils.js +11 -6
- package/src/sap/ui/unified/calendar/CustomMonthPicker.js +1 -1
- package/src/sap/ui/unified/calendar/CustomYearPicker.js +1 -1
- package/src/sap/ui/unified/calendar/DatesRow.js +26 -16
- package/src/sap/ui/unified/calendar/DatesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/Header.js +2 -2
- package/src/sap/ui/unified/calendar/HeaderRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/IndexPicker.js +2 -2
- package/src/sap/ui/unified/calendar/IndexPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/Month.js +30 -25
- package/src/sap/ui/unified/calendar/MonthPicker.js +2 -2
- package/src/sap/ui/unified/calendar/MonthPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/MonthRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/MonthsRow.js +25 -24
- package/src/sap/ui/unified/calendar/MonthsRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +2 -2
- package/src/sap/ui/unified/calendar/OneMonthDatesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/TimesRow.js +34 -13
- package/src/sap/ui/unified/calendar/TimesRowRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/YearPicker.js +9 -9
- package/src/sap/ui/unified/calendar/YearPickerRenderer.js +1 -1
- package/src/sap/ui/unified/calendar/YearRangePicker.js +2 -2
- package/src/sap/ui/unified/calendar/YearRangePickerRenderer.js +1 -1
- package/src/sap/ui/unified/designtime/Calendar.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/CalendarDateInterval.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/CalendarLegend.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/Currency.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/FileUploader.designtime.js +1 -1
- package/src/sap/ui/unified/designtime/library.designtime.js +1 -1
- package/src/sap/ui/unified/library.js +3 -3
- package/src/sap/ui/unified/library.support.js +1 -1
- package/src/sap/ui/unified/messagebundle_bg.properties +10 -10
- package/src/sap/ui/unified/messagebundle_es.properties +3 -3
- package/src/sap/ui/unified/messagebundle_hr.properties +2 -2
- package/src/sap/ui/unified/rules/FileUploader.support.js +1 -1
- package/src/sap/ui/unified/themes/base/Calendar.less +2 -5
- package/src/sap/ui/unified/themes/base/Menu.less +8 -0
- package/src/sap/ui/unified/themes/base/library.source.less +1 -1
- package/src/sap/ui/unified/themes/sap_hcb/library.source.less +1 -1
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-
|
|
31
|
+
Copyright: 2009-2023 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-
|
|
71
|
+
2009-2023 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-
|
|
86
|
+
2009-2023 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-
|
|
93
|
+
2009-2023 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-
|
|
100
|
+
2009-2023 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-
|
|
107
|
+
2009-2023 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-
|
|
114
|
+
2009-2023 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-
|
|
126
|
+
2009-2023 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-
|
|
133
|
+
2009-2023 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-
|
|
165
|
+
2009-2023 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
|
|
@@ -299,14 +299,14 @@ Comment: these files belong to: blanket.js
|
|
|
299
299
|
|
|
300
300
|
Files: src/sap.ui.core/src/sap/base/util/JSTokenizer.js
|
|
301
301
|
Copyright:
|
|
302
|
-
2009-
|
|
302
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
303
303
|
Douglas Crockford
|
|
304
304
|
License: Apache-2.0 and LicenseRef-JSONinJSPublicDomain
|
|
305
305
|
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
|
|
306
306
|
|
|
307
307
|
Files: src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
|
|
308
308
|
Copyright:
|
|
309
|
-
2009-
|
|
309
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
310
310
|
2010 Douglas Crockford
|
|
311
311
|
License: Apache-2.0
|
|
312
312
|
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)
|
|
@@ -340,7 +340,7 @@ Comment: these files contain content from p-cancelable and @babel/helpers: _Canc
|
|
|
340
340
|
|
|
341
341
|
Files: src/sap.ui.core/src/sap/ui/core/date/Persian.js
|
|
342
342
|
Copyright:
|
|
343
|
-
2009-
|
|
343
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
344
344
|
Behrang Norouzinia
|
|
345
345
|
License: Apache-2.0 and MIT
|
|
346
346
|
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
|
|
@@ -352,14 +352,14 @@ Comment: these files belong to: vkBeautify
|
|
|
352
352
|
|
|
353
353
|
Files: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
|
|
354
354
|
Copyright:
|
|
355
|
-
2009-
|
|
355
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
356
356
|
Isaac Z. Schlueter and Contributors
|
|
357
357
|
License: Apache-2.0 and ISC
|
|
358
358
|
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.
|
|
359
359
|
|
|
360
360
|
Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
361
361
|
Copyright:
|
|
362
|
-
2009-
|
|
362
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
363
363
|
Arthur David Olson, Paul Eggert and other contributors
|
|
364
364
|
License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
|
|
365
365
|
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
|
|
@@ -469,7 +469,7 @@ Comment: these files belong to: LESS
|
|
|
469
469
|
|
|
470
470
|
Files: lib/jsdoc/ui5/plugin.js
|
|
471
471
|
Copyright:
|
|
472
|
-
2009-
|
|
472
|
+
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
473
473
|
2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
474
474
|
License: Apache-2.0
|
|
475
475
|
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
|
@@ -185,7 +185,7 @@ License: Apache-2.0
|
|
|
185
185
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
186
186
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
|
|
187
187
|
|
|
188
|
-
Component: Unicode Common Locale Data Repository, version:
|
|
188
|
+
Component: Unicode Common Locale Data Repository, version: 41
|
|
189
189
|
Copyright: 1991-2014 Unicode, Inc.
|
|
190
190
|
License: Unicode-DFS-2015
|
|
191
191
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.1.48
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.unified",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.110.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.
|
|
17
|
+
"@openui5/sap.ui.core": "1.110.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.unified</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
7
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.110.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
//Provides control sap.ui.unified.Calendar.
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* Basic Calendar.
|
|
75
75
|
* This calendar is used for DatePickers
|
|
76
76
|
* @extends sap.ui.core.Control
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.110.0
|
|
78
78
|
*
|
|
79
79
|
* @constructor
|
|
80
80
|
* @public
|
|
@@ -629,9 +629,10 @@ sap.ui.define([
|
|
|
629
629
|
this._oSpecialDatesControlOrigin = oControl;
|
|
630
630
|
};
|
|
631
631
|
|
|
632
|
-
|
|
633
|
-
*
|
|
634
|
-
* To
|
|
632
|
+
/**
|
|
633
|
+
* If used inside DatePicker get the value from the parent
|
|
634
|
+
* To not have sync issues...
|
|
635
|
+
* @returns {sap.ui.unified.DateTypeRange[]} Array with special dates
|
|
635
636
|
*/
|
|
636
637
|
Calendar.prototype.getSpecialDates = function(){
|
|
637
638
|
|
|
@@ -665,10 +666,10 @@ sap.ui.define([
|
|
|
665
666
|
};
|
|
666
667
|
|
|
667
668
|
/**
|
|
668
|
-
*
|
|
669
|
+
* Sets the locale for the DatePicker
|
|
669
670
|
* only for internal use
|
|
670
671
|
* @param {string} sLocale new value for <code>locale</code>
|
|
671
|
-
* @returns {this} <code>this</code>
|
|
672
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
672
673
|
* @private
|
|
673
674
|
*/
|
|
674
675
|
Calendar.prototype.setLocale = function(sLocale){
|
|
@@ -685,9 +686,9 @@ sap.ui.define([
|
|
|
685
686
|
};
|
|
686
687
|
|
|
687
688
|
/**
|
|
688
|
-
*
|
|
689
|
+
* Gets the used locale for the DatePicker
|
|
689
690
|
* only for internal use
|
|
690
|
-
* @
|
|
691
|
+
* @returns {string} sLocale
|
|
691
692
|
* @private
|
|
692
693
|
*/
|
|
693
694
|
Calendar.prototype.getLocale = function(){
|
|
@@ -700,8 +701,8 @@ sap.ui.define([
|
|
|
700
701
|
|
|
701
702
|
};
|
|
702
703
|
/**
|
|
703
|
-
*
|
|
704
|
-
* @
|
|
704
|
+
* Gets the focused date
|
|
705
|
+
* @returns {sap.ui.unified.calendar.CalendarDate} The focused date
|
|
705
706
|
* @private
|
|
706
707
|
*/
|
|
707
708
|
Calendar.prototype._getFocusedDate = function(){
|
|
@@ -726,8 +727,8 @@ sap.ui.define([
|
|
|
726
727
|
/**
|
|
727
728
|
* Displays and sets the focused date of the calendar.
|
|
728
729
|
*
|
|
729
|
-
* @param {
|
|
730
|
-
* @returns {this} <code>this</code>
|
|
730
|
+
* @param {Date} oDate A JavaScript date object for focused date
|
|
731
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
731
732
|
* @public
|
|
732
733
|
*/
|
|
733
734
|
Calendar.prototype.focusDate = function(oDate) {
|
|
@@ -742,9 +743,8 @@ sap.ui.define([
|
|
|
742
743
|
/**
|
|
743
744
|
* Displays a date in the calendar but doesn't set the focus.
|
|
744
745
|
*
|
|
745
|
-
* @param {
|
|
746
|
-
*
|
|
747
|
-
* @returns {this} <code>this</code> to allow method chaining
|
|
746
|
+
* @param {Date} oDate JavaScript date object for focused date
|
|
747
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
748
748
|
* @since 1.28.0
|
|
749
749
|
* @public
|
|
750
750
|
*/
|
|
@@ -761,7 +761,7 @@ sap.ui.define([
|
|
|
761
761
|
*
|
|
762
762
|
* There might be some days of the previous month shown, but they can not be focused.
|
|
763
763
|
*
|
|
764
|
-
* @returns {
|
|
764
|
+
* @returns {Date} JavaScript date object for start date
|
|
765
765
|
* @since 1.34.1
|
|
766
766
|
* @public
|
|
767
767
|
*/
|
|
@@ -952,7 +952,7 @@ sap.ui.define([
|
|
|
952
952
|
/**
|
|
953
953
|
* Sets a minimum date for the calendar.
|
|
954
954
|
* @param {Date} oDate a JavaScript date
|
|
955
|
-
* @
|
|
955
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
956
956
|
* @public
|
|
957
957
|
*/
|
|
958
958
|
Calendar.prototype.setMinDate = function(oDate){
|
|
@@ -974,7 +974,7 @@ sap.ui.define([
|
|
|
974
974
|
this._oMinDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
|
|
975
975
|
|
|
976
976
|
var iYear = this._oMinDate.getYear();
|
|
977
|
-
CalendarUtils._checkYearInValidRange(iYear);
|
|
977
|
+
CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
|
|
978
978
|
|
|
979
979
|
if (this._oMaxDate.isBefore(this._oMinDate)) {
|
|
980
980
|
Log.warning("minDate > maxDate -> maxDate set to end of the month", this);
|
|
@@ -1006,13 +1006,13 @@ sap.ui.define([
|
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Sets a maximum date for the calendar.
|
|
1008
1008
|
* @param {Date} oDate a JavaScript date
|
|
1009
|
-
* @
|
|
1009
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
1010
1010
|
* @public
|
|
1011
1011
|
*/
|
|
1012
1012
|
Calendar.prototype.setMaxDate = function(oDate){
|
|
1013
1013
|
|
|
1014
1014
|
var aMonths = this.getAggregation("month"),
|
|
1015
|
-
sPrimaryCalendarType,
|
|
1015
|
+
sPrimaryCalendarType = this.getPrimaryCalendarType(),
|
|
1016
1016
|
iMaxYear;
|
|
1017
1017
|
|
|
1018
1018
|
if (deepEqual(oDate, this.getMaxDate())) {
|
|
@@ -1028,7 +1028,7 @@ sap.ui.define([
|
|
|
1028
1028
|
this._oMaxDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
|
|
1029
1029
|
|
|
1030
1030
|
var iYear = this._oMaxDate.getYear();
|
|
1031
|
-
CalendarUtils._checkYearInValidRange(iYear);
|
|
1031
|
+
CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
|
|
1032
1032
|
|
|
1033
1033
|
if (this._oMinDate.isAfter(this._oMaxDate)) {
|
|
1034
1034
|
Log.warning("maxDate < minDate -> minDate set to begin of the month", this);
|
|
@@ -1060,7 +1060,7 @@ sap.ui.define([
|
|
|
1060
1060
|
* Sets the visibility of the Current date button in the calendar.
|
|
1061
1061
|
*
|
|
1062
1062
|
* @param {boolean} bShow whether the Today button will be displayed
|
|
1063
|
-
* @
|
|
1063
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
1064
1064
|
* @public
|
|
1065
1065
|
*/
|
|
1066
1066
|
Calendar.prototype.setShowCurrentDateButton = function(bShow){
|
|
@@ -1119,7 +1119,7 @@ sap.ui.define([
|
|
|
1119
1119
|
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Getter for monthPicker aggregation.
|
|
1122
|
-
* @
|
|
1122
|
+
* @returns {sap.ui.unified.calendar.MonthPicker} The monthPicker control instance
|
|
1123
1123
|
* @private
|
|
1124
1124
|
*/
|
|
1125
1125
|
Calendar.prototype._getMonthPicker = function () {
|
|
@@ -1128,7 +1128,7 @@ sap.ui.define([
|
|
|
1128
1128
|
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Getter for yearPicker aggregation.
|
|
1131
|
-
* @
|
|
1131
|
+
* @returns {sap.ui.unified.calendar.YearPicker} The yearPicker control instance
|
|
1132
1132
|
* @private
|
|
1133
1133
|
*/
|
|
1134
1134
|
Calendar.prototype._getYearPicker = function () {
|
|
@@ -1137,7 +1137,7 @@ sap.ui.define([
|
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Getter for yearPicker aggregation.
|
|
1140
|
-
* @
|
|
1140
|
+
* @returns {sap.ui.unified.calendar.YearRangePicker} The yearRangePicker control instance
|
|
1141
1141
|
* @private
|
|
1142
1142
|
*/
|
|
1143
1143
|
Calendar.prototype._getYearRangePicker = function () {
|
|
@@ -1377,7 +1377,7 @@ sap.ui.define([
|
|
|
1377
1377
|
* Enables/Disables previous and next buttons in the year picker header.
|
|
1378
1378
|
* This function assumes there is a "yearPicker" aggregation.
|
|
1379
1379
|
* So callers must take care.
|
|
1380
|
-
* @
|
|
1380
|
+
* @returns {void}
|
|
1381
1381
|
* @private
|
|
1382
1382
|
*/
|
|
1383
1383
|
Calendar.prototype._togglePrevNexYearPicker = function(){
|
|
@@ -1419,7 +1419,7 @@ sap.ui.define([
|
|
|
1419
1419
|
* Handles navigation to previous date.
|
|
1420
1420
|
* This function assumes there are both "yearPicker" & "monthPicker" aggregation available.
|
|
1421
1421
|
* So callers must take care.
|
|
1422
|
-
* @
|
|
1422
|
+
* @returns {void}
|
|
1423
1423
|
* @private
|
|
1424
1424
|
*/
|
|
1425
1425
|
Calendar.prototype._handlePrevious = function(oEvent){
|
|
@@ -1479,7 +1479,7 @@ sap.ui.define([
|
|
|
1479
1479
|
* Handles navigation to next date.
|
|
1480
1480
|
* This function assumes there are both "yearPicker" & "monthPicker" aggregation available.
|
|
1481
1481
|
* So callers must take care.
|
|
1482
|
-
* @
|
|
1482
|
+
* @returns {void}
|
|
1483
1483
|
* @private
|
|
1484
1484
|
*/
|
|
1485
1485
|
Calendar.prototype._handleNext = function(oEvent){
|
|
@@ -1791,7 +1791,7 @@ sap.ui.define([
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Updates visibility of active Header month button
|
|
1793
1793
|
* Only for internal use
|
|
1794
|
-
* @returns {this} <code>this</code>
|
|
1794
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
1795
1795
|
* @private
|
|
1796
1796
|
*/
|
|
1797
1797
|
Calendar.prototype._updateMonthButtonVisibility = function(){
|
|
@@ -1810,7 +1810,7 @@ sap.ui.define([
|
|
|
1810
1810
|
* Shows an embedded Month Picker.
|
|
1811
1811
|
* This function assumes there is a "monthPicker" & "yearPicker" aggregation.
|
|
1812
1812
|
* So callers must take care.
|
|
1813
|
-
* @
|
|
1813
|
+
* @returns {void}
|
|
1814
1814
|
* @private
|
|
1815
1815
|
*/
|
|
1816
1816
|
Calendar.prototype._showMonthPicker = function (bSkipFocus) {
|
|
@@ -1851,7 +1851,7 @@ sap.ui.define([
|
|
|
1851
1851
|
* Shows an embedded year Picker.
|
|
1852
1852
|
* This function assumes there is a "yearPicker" aggregation.
|
|
1853
1853
|
* So callers must take care.
|
|
1854
|
-
* @
|
|
1854
|
+
* @returns {void}
|
|
1855
1855
|
* @private
|
|
1856
1856
|
*/
|
|
1857
1857
|
Calendar.prototype._showYearPicker = function () {
|
|
@@ -2251,7 +2251,7 @@ sap.ui.define([
|
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Updates visibility of active Header Year button
|
|
2253
2253
|
* Only for internal use
|
|
2254
|
-
* @returns {this} <code>this</code>
|
|
2254
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
2255
2255
|
* @private
|
|
2256
2256
|
*/
|
|
2257
2257
|
Calendar.prototype._updateActiveHeaderYearButtonVisibility = function(){
|
|
@@ -2680,16 +2680,17 @@ sap.ui.define([
|
|
|
2680
2680
|
function _displayDate(oDate, bSkipFocus) {
|
|
2681
2681
|
|
|
2682
2682
|
var oCalDate,
|
|
2683
|
+
sPrimaryCalendarType = this.getPrimaryCalendarType(),
|
|
2683
2684
|
iYear;
|
|
2684
2685
|
|
|
2685
2686
|
if (!oDate) {
|
|
2686
2687
|
return;
|
|
2687
2688
|
}
|
|
2688
2689
|
|
|
2689
|
-
oCalDate = CalendarDate.fromLocalJSDate(oDate,
|
|
2690
|
+
oCalDate = CalendarDate.fromLocalJSDate(oDate, sPrimaryCalendarType);
|
|
2690
2691
|
|
|
2691
2692
|
iYear = oCalDate.getYear();
|
|
2692
|
-
CalendarUtils._checkYearInValidRange(iYear);
|
|
2693
|
+
CalendarUtils._checkYearInValidRange(iYear, sPrimaryCalendarType);
|
|
2693
2694
|
|
|
2694
2695
|
if (CalendarUtils._isOutside(oCalDate, this._oMinDate, this._oMaxDate)) {
|
|
2695
2696
|
throw new Error("Date must not be in valid range (minDate and maxDate); " + this);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
|
|
|
21
21
|
*
|
|
22
22
|
* Applications could inherit from this element to add own fields.
|
|
23
23
|
* @extends sap.ui.unified.DateTypeRange
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.110.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -279,14 +279,13 @@ sap.ui.define(['./DateTypeRange', 'sap/ui/core/format/DateFormat', 'sap/ui/core/
|
|
|
279
279
|
* @private
|
|
280
280
|
*/
|
|
281
281
|
CalendarAppointment.prototype._convertToTimezone = function(oDate) {
|
|
282
|
-
var
|
|
283
|
-
var
|
|
282
|
+
var sConfigTimezone = Core.getConfiguration().getTimezone();
|
|
283
|
+
var sLocalTimezone = TimezoneUtil.getLocalTimezone();
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
oNewDate = TimezoneUtil.convertToTimezone(oNewDate, sTimezone);
|
|
285
|
+
var iConfigOffsetMillis = TimezoneUtil.calculateOffset(oDate, sConfigTimezone) * 1000;
|
|
286
|
+
var iLocalOffsetMillis = TimezoneUtil.calculateOffset(oDate, sLocalTimezone) * 1000;
|
|
288
287
|
|
|
289
|
-
return
|
|
288
|
+
return new Date(oDate.getTime() - iConfigOffsetMillis + iLocalOffsetMillis);
|
|
290
289
|
};
|
|
291
290
|
|
|
292
291
|
return CalendarAppointment;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -56,7 +56,7 @@ sap.ui.define([
|
|
|
56
56
|
* @class
|
|
57
57
|
* <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
|
|
58
58
|
* @extends sap.ui.unified.Calendar
|
|
59
|
-
* @version 1.
|
|
59
|
+
* @version 1.110.0
|
|
60
60
|
*
|
|
61
61
|
* @constructor
|
|
62
62
|
* @public
|
|
@@ -408,6 +408,11 @@ sap.ui.define([
|
|
|
408
408
|
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Set start date of the interval
|
|
413
|
+
* @param {Date} oStartDate A JavaScript Date
|
|
414
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
415
|
+
*/
|
|
411
416
|
CalendarDateInterval.prototype.setStartDate = function(oStartDate){
|
|
412
417
|
|
|
413
418
|
CalendarUtils._checkJSDateObject(oStartDate);
|
|
@@ -457,11 +462,11 @@ sap.ui.define([
|
|
|
457
462
|
};
|
|
458
463
|
|
|
459
464
|
// needs to be overwritten because differently implemented in Calendar
|
|
460
|
-
|
|
465
|
+
/**
|
|
461
466
|
* Gets current value of property startDate.
|
|
462
467
|
*
|
|
463
468
|
* Start date of the Interval
|
|
464
|
-
* @returns {
|
|
469
|
+
* @returns {Date} JavaScript date object for property <code>startDate</code>
|
|
465
470
|
*/
|
|
466
471
|
CalendarDateInterval.prototype.getStartDate = function(){
|
|
467
472
|
|
|
@@ -585,7 +590,7 @@ sap.ui.define([
|
|
|
585
590
|
*
|
|
586
591
|
* @protected
|
|
587
592
|
* @param {int} iMonths How many months to be displayed
|
|
588
|
-
* @returns {this} <code>this</code>
|
|
593
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
589
594
|
*/
|
|
590
595
|
CalendarDateInterval.prototype.setMonths = function(iMonths){
|
|
591
596
|
|
|
@@ -604,7 +609,7 @@ sap.ui.define([
|
|
|
604
609
|
*
|
|
605
610
|
* @protected
|
|
606
611
|
* @param {int} [iFirstDayOfWeek] First day of the week
|
|
607
|
-
* @returns {this} <code>this</code>
|
|
612
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
608
613
|
*/
|
|
609
614
|
CalendarDateInterval.prototype.setFirstDayOfWeek = function(iFirstDayOfWeek){
|
|
610
615
|
|
|
@@ -619,7 +624,7 @@ sap.ui.define([
|
|
|
619
624
|
/**
|
|
620
625
|
* Focuses given date.
|
|
621
626
|
* @param {Date} oDate a JavaScript date
|
|
622
|
-
* @returns {this} <code>this</code> for method chaining
|
|
627
|
+
* @returns {this} Reference to <code>this</code> for method chaining
|
|
623
628
|
*/
|
|
624
629
|
CalendarDateInterval.prototype.focusDate = function(oDate){
|
|
625
630
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.core.Control
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.110.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
24
|
+
* @version 1.110.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|