@openui5/sap.ui.unified 1.93.3 → 1.96.2

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 (109) hide show
  1. package/.reuse/dep5 +6 -11
  2. package/THIRDPARTY.txt +10 -16
  3. package/package.json +2 -2
  4. package/src/sap/ui/unified/.library +1 -1
  5. package/src/sap/ui/unified/Calendar.js +37 -7
  6. package/src/sap/ui/unified/CalendarAppointment.js +1 -1
  7. package/src/sap/ui/unified/CalendarDateInterval.js +2 -2
  8. package/src/sap/ui/unified/CalendarDateIntervalRenderer.js +8 -0
  9. package/src/sap/ui/unified/CalendarLegend.js +1 -1
  10. package/src/sap/ui/unified/CalendarLegendItem.js +1 -1
  11. package/src/sap/ui/unified/CalendarMonthInterval.js +1 -1
  12. package/src/sap/ui/unified/CalendarOneMonthInterval.js +1 -1
  13. package/src/sap/ui/unified/CalendarRow.js +14 -3
  14. package/src/sap/ui/unified/CalendarRowRenderer.js +27 -5
  15. package/src/sap/ui/unified/CalendarTimeInterval.js +1 -1
  16. package/src/sap/ui/unified/CalendarWeekInterval.js +1 -1
  17. package/src/sap/ui/unified/ColorPicker.js +7 -16
  18. package/src/sap/ui/unified/ColorPickerPopover.js +1 -1
  19. package/src/sap/ui/unified/ContentSwitcher.js +1 -1
  20. package/src/sap/ui/unified/Currency.js +1 -1
  21. package/src/sap/ui/unified/CurrencyRenderer.js +1 -1
  22. package/src/sap/ui/unified/DateRange.js +1 -1
  23. package/src/sap/ui/unified/DateTypeRange.js +1 -1
  24. package/src/sap/ui/unified/FileUploader.js +13 -4
  25. package/src/sap/ui/unified/FileUploaderParameter.js +1 -1
  26. package/src/sap/ui/unified/FileUploaderXHRSettings.js +1 -1
  27. package/src/sap/ui/unified/Menu.js +1 -1
  28. package/src/sap/ui/unified/MenuItem.js +1 -1
  29. package/src/sap/ui/unified/MenuItemBase.js +1 -1
  30. package/src/sap/ui/unified/MenuRenderer.js +1 -1
  31. package/src/sap/ui/unified/MenuTextFieldItem.js +3 -1
  32. package/src/sap/ui/unified/Shell.js +1 -1
  33. package/src/sap/ui/unified/ShellHeadItem.js +1 -1
  34. package/src/sap/ui/unified/ShellHeadUserItem.js +1 -1
  35. package/src/sap/ui/unified/ShellHeader.js +7 -1
  36. package/src/sap/ui/unified/ShellLayout.js +1 -1
  37. package/src/sap/ui/unified/ShellOverlay.js +1 -1
  38. package/src/sap/ui/unified/ShellOverlayRenderer.js +5 -3
  39. package/src/sap/ui/unified/SplitContainer.js +1 -1
  40. package/src/sap/ui/unified/SplitContainerRenderer.js +5 -1
  41. package/src/sap/ui/unified/calendar/CustomMonthPicker.js +16 -4
  42. package/src/sap/ui/unified/calendar/CustomYearPicker.js +15 -0
  43. package/src/sap/ui/unified/calendar/DatesRow.js +3 -20
  44. package/src/sap/ui/unified/calendar/Header.js +15 -2
  45. package/src/sap/ui/unified/calendar/HeaderRenderer.js +25 -2
  46. package/src/sap/ui/unified/calendar/IndexPicker.js +1 -1
  47. package/src/sap/ui/unified/calendar/Month.js +32 -12
  48. package/src/sap/ui/unified/calendar/MonthPicker.js +2 -3
  49. package/src/sap/ui/unified/calendar/MonthRenderer.js +3 -10
  50. package/src/sap/ui/unified/calendar/MonthsRow.js +1 -1
  51. package/src/sap/ui/unified/calendar/OneMonthDatesRow.js +3 -1
  52. package/src/sap/ui/unified/calendar/TimesRow.js +1 -1
  53. package/src/sap/ui/unified/calendar/YearPicker.js +1 -1
  54. package/src/sap/ui/unified/calendar/YearRangePicker.js +1 -1
  55. package/src/sap/ui/unified/library.js +2 -2
  56. package/src/sap/ui/unified/messagebundle.properties +3 -0
  57. package/src/sap/ui/unified/messagebundle_ar.properties +2 -0
  58. package/src/sap/ui/unified/messagebundle_bg.properties +2 -0
  59. package/src/sap/ui/unified/messagebundle_ca.properties +2 -0
  60. package/src/sap/ui/unified/messagebundle_cs.properties +2 -0
  61. package/src/sap/ui/unified/messagebundle_cy.properties +2 -0
  62. package/src/sap/ui/unified/messagebundle_da.properties +2 -0
  63. package/src/sap/ui/unified/messagebundle_de.properties +2 -0
  64. package/src/sap/ui/unified/messagebundle_el.properties +2 -0
  65. package/src/sap/ui/unified/messagebundle_en.properties +2 -0
  66. package/src/sap/ui/unified/messagebundle_en_GB.properties +2 -0
  67. package/src/sap/ui/unified/messagebundle_en_US_sappsd.properties +2 -0
  68. package/src/sap/ui/unified/messagebundle_en_US_saprigi.properties +2 -0
  69. package/src/sap/ui/unified/messagebundle_en_US_saptrc.properties +2 -0
  70. package/src/sap/ui/unified/messagebundle_es.properties +2 -0
  71. package/src/sap/ui/unified/messagebundle_es_MX.properties +2 -0
  72. package/src/sap/ui/unified/messagebundle_et.properties +2 -0
  73. package/src/sap/ui/unified/messagebundle_fi.properties +2 -0
  74. package/src/sap/ui/unified/messagebundle_fr.properties +2 -0
  75. package/src/sap/ui/unified/messagebundle_fr_CA.properties +2 -0
  76. package/src/sap/ui/unified/messagebundle_hi.properties +2 -0
  77. package/src/sap/ui/unified/messagebundle_hr.properties +2 -0
  78. package/src/sap/ui/unified/messagebundle_hu.properties +2 -0
  79. package/src/sap/ui/unified/messagebundle_id.properties +2 -0
  80. package/src/sap/ui/unified/messagebundle_it.properties +2 -0
  81. package/src/sap/ui/unified/messagebundle_iw.properties +2 -0
  82. package/src/sap/ui/unified/messagebundle_ja.properties +2 -0
  83. package/src/sap/ui/unified/messagebundle_kk.properties +2 -0
  84. package/src/sap/ui/unified/messagebundle_ko.properties +2 -0
  85. package/src/sap/ui/unified/messagebundle_lt.properties +2 -0
  86. package/src/sap/ui/unified/messagebundle_lv.properties +2 -0
  87. package/src/sap/ui/unified/messagebundle_ms.properties +2 -0
  88. package/src/sap/ui/unified/messagebundle_nl.properties +2 -0
  89. package/src/sap/ui/unified/messagebundle_no.properties +2 -0
  90. package/src/sap/ui/unified/messagebundle_pl.properties +2 -0
  91. package/src/sap/ui/unified/messagebundle_pt.properties +2 -0
  92. package/src/sap/ui/unified/messagebundle_pt_PT.properties +2 -0
  93. package/src/sap/ui/unified/messagebundle_ro.properties +2 -0
  94. package/src/sap/ui/unified/messagebundle_ru.properties +2 -0
  95. package/src/sap/ui/unified/messagebundle_sh.properties +2 -0
  96. package/src/sap/ui/unified/messagebundle_sk.properties +2 -0
  97. package/src/sap/ui/unified/messagebundle_sl.properties +2 -0
  98. package/src/sap/ui/unified/messagebundle_sv.properties +2 -0
  99. package/src/sap/ui/unified/messagebundle_th.properties +2 -0
  100. package/src/sap/ui/unified/messagebundle_tr.properties +2 -0
  101. package/src/sap/ui/unified/messagebundle_uk.properties +2 -0
  102. package/src/sap/ui/unified/messagebundle_vi.properties +2 -0
  103. package/src/sap/ui/unified/messagebundle_zh_CN.properties +2 -0
  104. package/src/sap/ui/unified/messagebundle_zh_TW.properties +2 -0
  105. package/src/sap/ui/unified/themes/base/Calendar.less +71 -17
  106. package/src/sap/ui/unified/themes/base/CalendarDateInterval.less +16 -0
  107. package/src/sap/ui/unified/themes/base/FileUploader.less +5 -1
  108. package/src/sap/ui/unified/themes/base/library.source.less +1 -0
  109. package/ui5.yaml +4 -1
package/.reuse/dep5 CHANGED
@@ -309,7 +309,7 @@ License: MIT
309
309
  Comment: these files belong to: lodash
310
310
 
311
311
  Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
312
- Copyright: 2018 Mathias Nater
312
+ Copyright: 2021 Mathias Nater
313
313
  License: MIT
314
314
  Comment: these files belong to: Hyphenopoly
315
315
 
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
347
347
  License: BSD-2-Clause
348
348
  Comment: these files belong to: Esprima
349
349
 
350
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
351
- Copyright: 2006 Google Inc.
352
- License: Apache-2.0
353
- Comment: these files belong to: google-code-prettify
354
-
355
350
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
356
351
  Copyright: 2006-2020, Ivan Sagalaev
357
352
  License: BSD-3-Clause
@@ -405,6 +400,11 @@ Copyright: 2014 Vitaly Puzrin, Alex Kocharin
405
400
  License: MIT
406
401
  Comment: these files belong to: Markdown-it
407
402
 
403
+ Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
404
+ Copyright: 2015-2017 Evgeny Poberezkin
405
+ License: MIT
406
+ Comment: these files belong to: ajv
407
+
408
408
 
409
409
  # Library: sap.ui.mdc:
410
410
 
@@ -452,11 +452,6 @@ Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
452
452
  License: Apache-2.0
453
453
  Comment: these files belong to: LESS
454
454
 
455
- Files: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
456
- Copyright: 2015-2017 Evgeny Poberezkin
457
- License: MIT
458
- Comment: these files belong to: ajv
459
-
460
455
  Files: lib/jsdoc/ui5/plugin.js
461
456
  Copyright:
462
457
  2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
package/THIRDPARTY.txt CHANGED
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.ui.codeeditor:
8
8
 
9
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.4
9
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
10
10
  Copyright: 2010, Ajax.org B.V.
11
11
  License: BSD-3-Clause
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -279,8 +279,8 @@ License: MIT
279
279
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
280
280
  Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
281
281
 
282
- Component: Hyphenopoly, version: 2.4.0
283
- Copyright: 2018 Mathias Nater
282
+ Component: Hyphenopoly, version: 3.4.0
283
+ Copyright: 2021 Mathias Nater
284
284
  License: MIT
285
285
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
286
286
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
@@ -324,12 +324,6 @@ License: BSD-2-Clause
324
324
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
325
325
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
326
326
 
327
- Component: google-code-prettify, version: 20130304
328
- Copyright: 2006 Google Inc.
329
- License: Apache-2.0
330
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
331
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
332
-
333
327
  Component: highlight.js, version: 10.4.1
334
328
  Copyright: 2006-2020, Ivan Sagalaev
335
329
  License: BSD-3-Clause
@@ -376,7 +370,7 @@ License: Unicode-DFS-2015
376
370
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
377
371
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
378
372
 
379
- Component: Adaptive Cards, version: 1.2.3
373
+ Component: Adaptive Cards, version: 2.9.0
380
374
  Copyright: 2017 Microsoft
381
375
  License: MIT
382
376
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -395,6 +389,12 @@ License: MIT
395
389
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
390
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
397
391
 
392
+ Component: ajv, version: 6.12.3
393
+ Copyright: 2015-2017 Evgeny Poberezkin
394
+ License: MIT
395
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
+ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
397
+
398
398
 
399
399
  Library: sap.ui.mdc:
400
400
 
@@ -450,12 +450,6 @@ License: Apache-2.0
450
450
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
451
  Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
452
452
 
453
- Component: ajv, version: 6.12.3
454
- Copyright: 2015-2017 Evgeny Poberezkin
455
- License: MIT
456
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
457
- Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
458
-
459
453
  Component: JSDoc 3, version: 3.6.7
460
454
  Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
461
455
  License: Apache-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.unified",
3
- "version": "1.93.3",
3
+ "version": "1.96.2",
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.93.3"
17
+ "@openui5/sap.ui.core": "1.96.2"
18
18
  }
19
19
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.93.3</version>
9
+ <version>1.96.2</version>
10
10
 
11
11
  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>
12
12
 
@@ -70,7 +70,7 @@ sap.ui.define([
70
70
  * Basic Calendar.
71
71
  * This calendar is used for DatePickers
72
72
  * @extends sap.ui.core.Control
73
- * @version 1.93.3
73
+ * @version 1.96.2
74
74
  *
75
75
  * @constructor
76
76
  * @public
@@ -182,6 +182,14 @@ sap.ui.define([
182
182
  */
183
183
  showWeekNumbers : {type : "boolean", group : "Appearance", defaultValue : true},
184
184
 
185
+ /**
186
+ * Determines whether there is a shortcut navigation to Today. When used in Month, Year or
187
+ * Year-range picker view, the calendar navigates to Day picker view.
188
+ *
189
+ * @since 1.95
190
+ */
191
+ showCurrentDateButton : {type : "boolean", group : "Behavior", defaultValue : false},
192
+
185
193
  /**
186
194
  * Holds a reference to the currently shown picker. Possible values: month, monthPicker, yearPicker and yearRangePicker.
187
195
  *
@@ -391,6 +399,7 @@ sap.ui.define([
391
399
 
392
400
  oHeader.attachEvent("pressPrevious", this._handlePrevious, this);
393
401
  oHeader.attachEvent("pressNext", this._handleNext, this);
402
+ oHeader.attachEvent("pressCurrentDate", this._handleCurrentDate, this);
394
403
  oHeader.attachEvent("pressButton1", this._handleButton1, this);
395
404
  oHeader.attachEvent("pressButton2", this._handleButton2, this);
396
405
  oHeader.attachEvent("pressButton3", this._handleButton1, this);
@@ -699,10 +708,9 @@ sap.ui.define([
699
708
  };
700
709
 
701
710
  /**
702
- * Sets the focused date of the calendar.
711
+ * Displays and sets the focused date of the calendar.
703
712
  *
704
- * @param {Object} oDate
705
- * JavaScript date object for focused date.
713
+ * @param {Object} oDate A JavaScript date object for focused date
706
714
  * @returns {this} <code>this</code> to allow method chaining
707
715
  * @public
708
716
  * @ui5-metamodel This method also will be described in the UI5 (legacy) designtime metamodel
@@ -710,6 +718,7 @@ sap.ui.define([
710
718
  Calendar.prototype.focusDate = function(oDate) {
711
719
 
712
720
  _displayDate.call(this, oDate, false);
721
+ this._addMonthFocusDelegate();
713
722
 
714
723
  return this;
715
724
 
@@ -1016,6 +1025,18 @@ sap.ui.define([
1016
1025
 
1017
1026
  };
1018
1027
 
1028
+ /**
1029
+ * Sets the visibility of the Current date button in the calendar.
1030
+ *
1031
+ * @param {boolean} bShow whether the Today button will be displayed
1032
+ * @return {this} <code>this</code> for method chaining
1033
+ * @public
1034
+ */
1035
+ Calendar.prototype.setShowCurrentDateButton = function(bShow){
1036
+ this.getAggregation("header").setVisibleCurrentDateButton(bShow);
1037
+ return this.setProperty("showCurrentDateButton", bShow);
1038
+ };
1039
+
1019
1040
  /**
1020
1041
  * Provides default behavior for setting min & max date.
1021
1042
  * It is also a hook for the sap.ui.unified.CalendarDateInterval.
@@ -1689,6 +1710,16 @@ sap.ui.define([
1689
1710
 
1690
1711
  };
1691
1712
 
1713
+ /**
1714
+ * Handles navigation to today.
1715
+ *
1716
+ * @private
1717
+ */
1718
+ Calendar.prototype._handleCurrentDate = function() {
1719
+ this.setProperty("_currentPicker", CURRENT_PICKERS.MONTH);
1720
+ this.focusDate(new Date());
1721
+ };
1722
+
1692
1723
  Calendar.prototype._getYearString = function () {
1693
1724
  var oYearPicker = this._getYearPicker(),
1694
1725
  oYearPickerDomRef = oYearPicker.getDomRef(),
@@ -2155,9 +2186,8 @@ sap.ui.define([
2155
2186
  Calendar.prototype._selectMonth = function () {
2156
2187
  var oFocusedDate = new CalendarDate(this._getFocusedDate(), this.getPrimaryCalendarType()),
2157
2188
  oMonthPicker = this._getMonthPicker(),
2158
- iMonth = oMonthPicker._focusedMonth || oMonthPicker._focusedMonth === 0 ?
2159
- oMonthPicker._focusedMonth :
2160
- oMonthPicker.getMonth(),
2189
+ iFocusedMonth = oMonthPicker.getProperty("_focusedMonth"),
2190
+ iMonth = (iFocusedMonth || iFocusedMonth === 0) ? iFocusedMonth : oMonthPicker.getMonth(),
2161
2191
  oSecondDate = oMonthPicker._iYear ?
2162
2192
  new CalendarDate(oMonthPicker._iYear, iMonth - 1, 1) :
2163
2193
  new CalendarDate(this._getFocusedDate().getYear(), iMonth - 1, 1);
@@ -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.93.3
24
+ * @version 1.96.2
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @class
58
58
  * <code>CalendarDateInterval</code> only visualizes the dates in a one-line interval and allows the selection of a single day.
59
59
  * @extends sap.ui.unified.Calendar
60
- * @version 1.93.3
60
+ * @version 1.96.2
61
61
  *
62
62
  * @constructor
63
63
  * @public
@@ -265,7 +265,7 @@ sap.ui.define([
265
265
  oCalendar.setPopupMode(true);
266
266
  oCalendar.attachEvent("select", this._handleCalendarPickerDateSelect, this);
267
267
  oCalendar.attachEvent("cancel", function (oEvent) {
268
- this._closeCalendarPicker();
268
+ this._closeCalendarPicker(true);
269
269
  var oDomRefB1 = this.getAggregation("header").getDomRef("B1");
270
270
  if (oDomRefB1) {
271
271
  oDomRefB1.focus();
@@ -48,6 +48,14 @@ sap.ui.define(['sap/ui/core/Renderer', './CalendarRenderer'],
48
48
  oRm.class("sapUiCalIntHead");
49
49
  }
50
50
 
51
+ if (oCal.getShowDayNamesLine()) {
52
+ oRm.class("sapUiCalWithDayNamesLine");
53
+ }
54
+
55
+ if (oCal.getShowWeekNumbers()) {
56
+ oRm.class("sapUiCalWithWeekNumbers");
57
+ }
58
+
51
59
  };
52
60
 
53
61
  return CalendarDateIntervalRenderer;
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.ui.core.Control
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.93.3
37
+ * @version 1.96.2
38
38
  *
39
39
  * @constructor
40
40
  * @public
@@ -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.93.3
24
+ * @version 1.96.2
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  * <b>Note:</b> JavaScript Date objects are used to set and return the months, mark them as selected or as a special type.
68
68
  * But the date part of the Date object is not used. If a Date object is returned the date will be set to the 1st of the corresponding month.
69
69
  * @extends sap.ui.core.Control
70
- * @version 1.93.3
70
+ * @version 1.96.2
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * Navigation via year picker switches to the corresponding year and the same month as before the navigation.
58
58
  *
59
59
  * @extends sap.ui.unified.CalendarDateInterval
60
- * @version 1.93.3
60
+ * @version 1.96.2
61
61
  *
62
62
  * @constructor
63
63
  * @private
@@ -76,7 +76,7 @@ sap.ui.define([
76
76
  * @class
77
77
  * A calendar row with a header and appointments. The Appointments will be placed in the defined interval.
78
78
  * @extends sap.ui.core.Control
79
- * @version 1.93.3
79
+ * @version 1.96.2
80
80
  *
81
81
  * @constructor
82
82
  * @public
@@ -456,6 +456,8 @@ sap.ui.define([
456
456
  var iYear = oStartDate.getFullYear();
457
457
  CalendarUtils._checkYearInValidRange(iYear);
458
458
 
459
+ this._oUTCStartDate = CalendarUtils._createUniversalUTCDate(oStartDate, undefined, true);
460
+
459
461
  this.setProperty("startDate", oStartDate);
460
462
 
461
463
  return this;
@@ -706,6 +708,7 @@ sap.ui.define([
706
708
  case CalendarIntervalType.Day:
707
709
  case CalendarIntervalType.Week:
708
710
  case CalendarIntervalType.OneMonth:
711
+ case "OneMonth":
709
712
  iTime = 1800000;
710
713
  break;
711
714
 
@@ -872,7 +875,7 @@ sap.ui.define([
872
875
  * returns if the appointments are rendered as list instead in a table
873
876
  */
874
877
  CalendarRow.prototype._isOneMonthsRowOnSmallSizes = function() {
875
- return this.getIntervalType() === CalendarIntervalType.OneMonth && this.getIntervals() === 1;
878
+ return (this.getIntervalType() === CalendarIntervalType.OneMonth || this.getIntervalType() === "OneMonth") && this.getIntervals() === 1;
876
879
  };
877
880
 
878
881
  /*
@@ -1023,6 +1026,7 @@ sap.ui.define([
1023
1026
  case CalendarIntervalType.Day:
1024
1027
  case CalendarIntervalType.Week:
1025
1028
  case CalendarIntervalType.OneMonth:
1029
+ case "OneMonth":
1026
1030
  oEndDate = new UniversalDate(this._oUTCStartDate.getTime());
1027
1031
  oEndDate.setUTCDate(oEndDate.getUTCDate() + iIntervals * this.getIntervalSize());
1028
1032
  break;
@@ -1062,6 +1066,7 @@ sap.ui.define([
1062
1066
  case CalendarIntervalType.Day:
1063
1067
  case CalendarIntervalType.Week:
1064
1068
  case CalendarIntervalType.OneMonth:
1069
+ case "OneMonth":
1065
1070
  oUTCStartDate.setUTCHours(0);
1066
1071
  oUTCStartDate.setUTCMinutes(0);
1067
1072
  oUTCStartDate.setUTCSeconds(0);
@@ -1451,6 +1456,7 @@ sap.ui.define([
1451
1456
  case CalendarIntervalType.Day:
1452
1457
  case CalendarIntervalType.Week:
1453
1458
  case CalendarIntervalType.OneMonth:
1459
+ case "OneMonth":
1454
1460
  oIntervalEndDate.setUTCDate(oIntervalEndDate.getUTCDate() + 1);
1455
1461
  if (j > 0) {
1456
1462
  oIntervalStartDate.setUTCDate(oIntervalStartDate.getUTCDate() + 1);
@@ -1545,7 +1551,6 @@ sap.ui.define([
1545
1551
  if (oAppointment.end < 0) {
1546
1552
  oAppointment.end = 0;
1547
1553
  }
1548
- oAppointment.level = -1; // level must be new calculated
1549
1554
  bChanged = true;
1550
1555
  $Appointment.addClass("sapUiCalendarAppSmall");
1551
1556
  } else if ($Appointment.hasClass("sapUiCalendarAppSmall")){
@@ -1555,6 +1560,10 @@ sap.ui.define([
1555
1560
  $Appointment.removeClass("sapUiCalendarAppSmall");
1556
1561
  }
1557
1562
 
1563
+ if (bChanged) {
1564
+ oAppointment.level = -1; // level must be new calculated
1565
+ }
1566
+
1558
1567
  if (bChanged && !bHorizontalFit) {
1559
1568
  if (this._bRTL) {
1560
1569
  $Appointment.css("left", oAppointment.end + "%");
@@ -2000,6 +2009,7 @@ sap.ui.define([
2000
2009
  case CalendarIntervalType.Day:
2001
2010
  case CalendarIntervalType.Week:
2002
2011
  case CalendarIntervalType.OneMonth:
2012
+ case "OneMonth":
2003
2013
  oStartDate.setUTCDate(1);
2004
2014
  oEndDate.setUTCMonth(oEndDate.getUTCMonth() + 1);
2005
2015
  oEndDate.setUTCDate(1);
@@ -2091,6 +2101,7 @@ sap.ui.define([
2091
2101
  case CalendarIntervalType.Day:
2092
2102
  case CalendarIntervalType.Week:
2093
2103
  case CalendarIntervalType.OneMonth:
2104
+ case "OneMonth":
2094
2105
  oIntervalStartDate.setUTCDate(oIntervalStartDate.getUTCDate() + iInterval);
2095
2106
  if (bSubInterval) {
2096
2107
  oIntervalStartDate.setUTCHours(oIntervalStartDate.getUTCHours() + iSubInterval * 24 / iSubIntervals);
@@ -4,9 +4,25 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
7
- sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppointment', 'sap/ui/unified/CalendarLegendRenderer',
8
- 'sap/ui/Device', 'sap/ui/unified/library', 'sap/ui/core/InvisibleText', "sap/base/Log"],
9
- function (UniversalDate, CalendarAppointment, CalendarLegendRenderer, Device, library, InvisibleText, Log) {
7
+ sap.ui.define([
8
+ 'sap/ui/core/date/UniversalDate',
9
+ 'sap/ui/unified/CalendarAppointment',
10
+ 'sap/ui/unified/CalendarLegendRenderer',
11
+ 'sap/ui/Device',
12
+ 'sap/ui/unified/library',
13
+ 'sap/ui/core/IconPool',
14
+ 'sap/ui/core/InvisibleText',
15
+ "sap/base/Log"
16
+ ],
17
+ function (
18
+ UniversalDate,
19
+ CalendarAppointment,
20
+ CalendarLegendRenderer,
21
+ Device,
22
+ library,
23
+ IconPool,
24
+ InvisibleText,
25
+ Log) {
10
26
  "use strict";
11
27
 
12
28
 
@@ -147,6 +163,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
147
163
  case CalendarIntervalType.Day:
148
164
  case CalendarIntervalType.Week:
149
165
  case CalendarIntervalType.OneMonth:
166
+ case "OneMonth":
150
167
  aNonWorkingItems = oRow._getNonWorkingDays();
151
168
  iStartOffset = oStartDate.getUTCDay();
152
169
  iNonWorkingMax = 7;
@@ -187,6 +204,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
187
204
  case CalendarIntervalType.Day:
188
205
  case CalendarIntervalType.Week:
189
206
  case CalendarIntervalType.OneMonth:
207
+ case "OneMonth":
190
208
  oIntervalNextStartDate.setUTCDate(oIntervalNextStartDate.getUTCDate() + 1);
191
209
  if (oIntervalNextStartDate.getUTCDate() == 1) {
192
210
  bLastOfType = true;
@@ -194,6 +212,8 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
194
212
  break;
195
213
 
196
214
  case CalendarIntervalType.Month:
215
+ iSubStartOffset = oIntervalNextStartDate.getUTCDay();
216
+
197
217
  oIntervalNextStartDate.setUTCMonth(oIntervalNextStartDate.getUTCMonth() + 1);
198
218
  if (oIntervalNextStartDate.getUTCMonth() == 0) {
199
219
  bLastOfType = true;
@@ -251,7 +271,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
251
271
  }
252
272
  oRm.style("width", iWidth + "%");
253
273
 
254
- if (iInterval >= iDaysLength && oRow.getIntervalType() === CalendarIntervalType.OneMonth){
274
+ if (iInterval >= iDaysLength && (oRow.getIntervalType() === CalendarIntervalType.OneMonth || oRow.getIntervalType() === "OneMonth")){
255
275
  oRm.class("sapUiCalItemOtherMonth");
256
276
  }
257
277
  for (i = 0; i < aNonWorkingItems.length; i++) {
@@ -295,6 +315,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
295
315
  case CalendarIntervalType.Day:
296
316
  case CalendarIntervalType.Week:
297
317
  case CalendarIntervalType.OneMonth:
318
+ case "OneMonth":
298
319
  iSubIntervals = 24;
299
320
  break;
300
321
 
@@ -679,7 +700,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
679
700
  oRm.class("sapUiCalendarMonthRowAppsS");
680
701
  oRm.style("width", iWidth + "%");
681
702
 
682
- if (iInterval >= iDaysLength && oRow.getIntervalType() === CalendarIntervalType.OneMonth){
703
+ if (iInterval >= iDaysLength && (oRow.getIntervalType() === CalendarIntervalType.OneMonth || oRow.getIntervalType() === "OneMonth")){
683
704
  oRm.class("sapUiCalItemOtherMonth");
684
705
  }
685
706
 
@@ -794,6 +815,7 @@ sap.ui.define(['sap/ui/core/date/UniversalDate', 'sap/ui/unified/CalendarAppoint
794
815
  case CalendarIntervalType.Day:
795
816
  case CalendarIntervalType.Week:
796
817
  case CalendarIntervalType.OneMonth:
818
+ case "OneMonth":
797
819
  iSubIntervals = 24;
798
820
  break;
799
821
 
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  * @class
73
73
  * Calendar with granularity of time items displayed in one line.
74
74
  * @extends sap.ui.core.Control
75
- * @version 1.93.3
75
+ * @version 1.96.2
76
76
  *
77
77
  * @constructor
78
78
  * @public
@@ -39,7 +39,7 @@ sap.ui.define(['sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar
39
39
  * its start date to the first date of the same week as the date the user chose.
40
40
  *
41
41
  * @extends sap.ui.unified.CalendarDateInterval
42
- * @version 1.93.3
42
+ * @version 1.96.2
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  * @extends sap.ui.core.Control
66
66
  *
67
67
  * @author SAP SE
68
- * @version 1.93.3
68
+ * @version 1.96.2
69
69
  *
70
70
  * @constructor
71
71
  * @public
@@ -1283,18 +1283,10 @@ sap.ui.define([
1283
1283
  // update the new value
1284
1284
  this.Color.a = this.oAlphaSlider.getValue();
1285
1285
 
1286
- // Update Alpha Field if needed - it's visible only in HSL mode
1287
- if (this._bHSLMode) {
1288
- this.oAlphaField.setValue(this.Color.a);
1289
- this.oAlphaField2.setValue(this.Color.a);
1290
- }
1286
+ this.oAlphaField.setValue(this.Color.a);
1287
+ this.oAlphaField2.setValue(this.Color.a);
1291
1288
 
1292
- // process changes
1293
- if (!this.Color.formatHSL) {
1294
- this._processRGBChanges();
1295
- } else {
1296
- this._processChanges();
1297
- }
1289
+ this._updateSelColorBackground();
1298
1290
  this._updateColorStringProperty(oData === "change", oData === "liveChange");
1299
1291
  };
1300
1292
 
@@ -1600,6 +1592,7 @@ sap.ui.define([
1600
1592
 
1601
1593
  this._updateGradientBoxBackground(this.Color.h);
1602
1594
  this._updateCursorPosition();
1595
+ this._updateAlphaBackground();
1603
1596
  this._updateSelColorBackground();
1604
1597
  };
1605
1598
 
@@ -1695,6 +1688,7 @@ sap.ui.define([
1695
1688
 
1696
1689
  this._updateGradientBoxBackground(this.Color.h);
1697
1690
  this._updateCursorPosition();
1691
+ this._updateAlphaBackground();
1698
1692
  this._updateSelColorBackground();
1699
1693
  this._updateColorStringProperty(true, true);
1700
1694
  };
@@ -2396,10 +2390,7 @@ sap.ui.define([
2396
2390
  this._iCPBoxSize = this.oCPBox.getWidth();
2397
2391
  this._updateCursorPosition();
2398
2392
 
2399
- // update alpha slider background only in HSL mode
2400
- if (this._bHSLMode) {
2401
- this._updateAlphaBackground();
2402
- }
2393
+ this._updateAlphaBackground();
2403
2394
  this.oSlider.iShiftGrip = Math.round(jQuery(this.oSlider.oGrip).outerWidth() / 2);
2404
2395
  this.oAlphaSlider.iShiftGrip = Math.round(jQuery(this.oAlphaSlider.oGrip).outerWidth() / 2);
2405
2396
 
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * A thin wrapper over {@link sap.ui.unified.ColorPicker} allowing the latter to be used in a popover.
48
48
  *
49
49
  * @extends sap.ui.core.Control
50
- * @version 1.93.3
50
+ * @version 1.96.2
51
51
  *
52
52
  * @constructor
53
53
  * @public
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.core.Control
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.93.3
34
+ * @version 1.96.2
35
35
  *
36
36
  * @constructor
37
37
  * @public
@@ -58,7 +58,7 @@ sap.ui.define([
58
58
  * @extends sap.ui.core.Control
59
59
  *
60
60
  * @author SAP SE
61
- * @version 1.93.3
61
+ * @version 1.96.2
62
62
  *
63
63
  * @constructor
64
64
  * @public
@@ -14,7 +14,7 @@ sap.ui.define(["sap/m/library", "sap/ui/core/Core"],
14
14
  /**
15
15
  * Currency renderer.
16
16
  *
17
- * @version 1.93.3
17
+ * @version 1.96.2
18
18
  * @namespace
19
19
  */
20
20
  var CurrencyRenderer = {
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/calendar/Cale
20
20
  * @class
21
21
  * Date range for use in DatePicker
22
22
  * @extends sap.ui.core.Element
23
- * @version 1.93.3
23
+ * @version 1.96.2
24
24
  *
25
25
  * @constructor
26
26
  * @public
@@ -25,7 +25,7 @@ sap.ui.define(['./DateRange', './library'],
25
25
  * @class
26
26
  * Date range with calendar day type information. Used to visualize special days in the Calendar.
27
27
  * @extends sap.ui.unified.DateRange
28
- * @version 1.93.3
28
+ * @version 1.96.2
29
29
  *
30
30
  * @constructor
31
31
  * @public