@sapui5/sap.gantt 1.125.0 → 1.127.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 (220) hide show
  1. package/package.json +1 -1
  2. package/src/sap/gantt/.library +6 -1
  3. package/src/sap/gantt/AdhocLine.js +1 -1
  4. package/src/sap/gantt/GanttChart.js +1 -1
  5. package/src/sap/gantt/GanttChartBase.js +1 -1
  6. package/src/sap/gantt/GanttChartContainer.js +1 -1
  7. package/src/sap/gantt/GanttChartWithTable.js +1 -1
  8. package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +58 -8
  9. package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
  10. package/src/sap/gantt/axistime/FullScreenTimeLineOptions.js +7 -1
  11. package/src/sap/gantt/axistime/ProportionTimeLineOptions.js +7 -1
  12. package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
  13. package/src/sap/gantt/axistime/StepwiseTimeLineOptions.js +7 -1
  14. package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +10 -4
  15. package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
  16. package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
  17. package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
  18. package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
  19. package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
  20. package/src/sap/gantt/config/ChartScheme.js +1 -1
  21. package/src/sap/gantt/config/ColumnAttribute.js +1 -1
  22. package/src/sap/gantt/config/ContainerLayout.js +1 -1
  23. package/src/sap/gantt/config/ExpandChart.js +1 -1
  24. package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
  25. package/src/sap/gantt/config/GanttChartLayout.js +1 -1
  26. package/src/sap/gantt/config/Hierarchy.js +1 -1
  27. package/src/sap/gantt/config/HierarchyColumn.js +1 -1
  28. package/src/sap/gantt/config/LayoutGroup.js +1 -1
  29. package/src/sap/gantt/config/Locale.js +1 -1
  30. package/src/sap/gantt/config/Mode.js +1 -1
  31. package/src/sap/gantt/config/ModeGroup.js +1 -1
  32. package/src/sap/gantt/config/ObjectType.js +1 -1
  33. package/src/sap/gantt/config/SettingGroup.js +1 -1
  34. package/src/sap/gantt/config/SettingItem.js +1 -1
  35. package/src/sap/gantt/config/Shape.js +1 -1
  36. package/src/sap/gantt/config/TimeAxis.js +1 -1
  37. package/src/sap/gantt/config/TimeHorizon.js +1 -1
  38. package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
  39. package/src/sap/gantt/config/ToolbarGroup.js +1 -1
  40. package/src/sap/gantt/config/ToolbarScheme.js +1 -1
  41. package/src/sap/gantt/control/Cell.js +1 -1
  42. package/src/sap/gantt/def/DefBase.js +1 -1
  43. package/src/sap/gantt/def/SvgDefs.js +1 -1
  44. package/src/sap/gantt/def/cal/Calendar.js +1 -1
  45. package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
  46. package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
  47. package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
  48. package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
  49. package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
  50. package/src/sap/gantt/def/gradient/Stop.js +1 -1
  51. package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
  52. package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
  53. package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
  54. package/src/sap/gantt/drawer/AdhocLine.js +1 -1
  55. package/src/sap/gantt/drawer/Drawer.js +1 -1
  56. package/src/sap/gantt/drawer/Legend.js +6 -0
  57. package/src/sap/gantt/drawer/VerticalLine.js +1 -1
  58. package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
  59. package/src/sap/gantt/eventHandler/BirdEyeHandler.js +7 -1
  60. package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
  61. package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
  62. package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
  63. package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
  64. package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
  65. package/src/sap/gantt/flexibility/simple/AdhocLine.flexibility.js +7 -1
  66. package/src/sap/gantt/flexibility/simple/DeltaLine.flexibility.js +7 -1
  67. package/src/sap/gantt/flexibility/simple/GanttChartWithTable.flexibility.js +7 -1
  68. package/src/sap/gantt/flexibility/simple/GanttTableColumn.flexibility.js +6 -7
  69. package/src/sap/gantt/layouts/SidePanel.js +1 -1
  70. package/src/sap/gantt/legend/DimensionLegend.js +1 -1
  71. package/src/sap/gantt/legend/LegendBase.js +1 -1
  72. package/src/sap/gantt/legend/LegendContainer.js +1 -1
  73. package/src/sap/gantt/legend/ListLegend.js +1 -1
  74. package/src/sap/gantt/library.js +13 -3
  75. package/src/sap/gantt/messagebundle.properties +8 -2
  76. package/src/sap/gantt/messagebundle_sh.properties +30 -30
  77. package/src/sap/gantt/misc/AxisOrdinal.js +1 -1
  78. package/src/sap/gantt/misc/AxisTime.js +80 -22
  79. package/src/sap/gantt/misc/Format.js +2 -2
  80. package/src/sap/gantt/misc/Memoizer.js +1 -1
  81. package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
  82. package/src/sap/gantt/misc/ShapeManager.js +1 -1
  83. package/src/sap/gantt/misc/Utility.js +11 -0
  84. package/src/sap/gantt/overlays/GanttRowOverlay.js +80 -16
  85. package/src/sap/gantt/overlays/Overlay.js +1 -1
  86. package/src/sap/gantt/polyfills/lib.js +7 -1
  87. package/src/sap/gantt/polyfills/time.js +13 -7
  88. package/src/sap/gantt/polyfills/timeUtils/day.js +13 -0
  89. package/src/sap/gantt/polyfills/{time-utils → timeUtils}/dayCount.js +7 -1
  90. package/src/sap/gantt/polyfills/timeUtils/days.js +13 -0
  91. package/src/sap/gantt/polyfills/{time-utils → timeUtils}/interval.js +6 -0
  92. package/src/sap/gantt/polyfills/{time-utils → timeUtils}/millisecond.js +6 -0
  93. package/src/sap/gantt/polyfills/timeUtils/monday.js +13 -0
  94. package/src/sap/gantt/polyfills/timeUtils/saturday.js +13 -0
  95. package/src/sap/gantt/polyfills/timeUtils/weeks.js +13 -0
  96. package/src/sap/gantt/shape/Circle.js +1 -1
  97. package/src/sap/gantt/shape/ClipPath.js +1 -1
  98. package/src/sap/gantt/shape/Definitions.js +1 -1
  99. package/src/sap/gantt/shape/Group.js +1 -1
  100. package/src/sap/gantt/shape/Image.js +1 -1
  101. package/src/sap/gantt/shape/Line.js +1 -1
  102. package/src/sap/gantt/shape/Path.js +1 -1
  103. package/src/sap/gantt/shape/Polygon.js +1 -1
  104. package/src/sap/gantt/shape/Polyline.js +1 -1
  105. package/src/sap/gantt/shape/Rectangle.js +1 -1
  106. package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
  107. package/src/sap/gantt/shape/SelectedShape.js +1 -1
  108. package/src/sap/gantt/shape/Shape.js +1 -1
  109. package/src/sap/gantt/shape/Text.js +1 -1
  110. package/src/sap/gantt/shape/cal/Calendar.js +1 -1
  111. package/src/sap/gantt/shape/ext/Chevron.js +1 -1
  112. package/src/sap/gantt/shape/ext/Cursor.js +1 -1
  113. package/src/sap/gantt/shape/ext/Diamond.js +1 -1
  114. package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
  115. package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
  116. package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
  117. package/src/sap/gantt/shape/ext/Triangle.js +1 -1
  118. package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
  119. package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +2 -2
  120. package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
  121. package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
  122. package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
  123. package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
  124. package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
  125. package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
  126. package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
  127. package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
  128. package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
  129. package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
  130. package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
  131. package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
  132. package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
  133. package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
  134. package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
  135. package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
  136. package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
  137. package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
  138. package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
  139. package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
  140. package/src/sap/gantt/simple/AdhocLine.js +1 -1
  141. package/src/sap/gantt/simple/AggregationUtils.js +11 -58
  142. package/src/sap/gantt/simple/BaseCalendar.js +1 -1
  143. package/src/sap/gantt/simple/BaseChevron.js +1 -1
  144. package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
  145. package/src/sap/gantt/simple/BaseCursor.js +7 -7
  146. package/src/sap/gantt/simple/BaseDeltaRectangle.js +7 -4
  147. package/src/sap/gantt/simple/BaseDiamond.js +1 -1
  148. package/src/sap/gantt/simple/BaseGroup.js +1 -1
  149. package/src/sap/gantt/simple/BaseImage.js +1 -1
  150. package/src/sap/gantt/simple/BaseLine.js +1 -1
  151. package/src/sap/gantt/simple/BasePath.js +1 -1
  152. package/src/sap/gantt/simple/BasePseudoShape.js +1 -1
  153. package/src/sap/gantt/simple/BaseRectangle.js +5 -2
  154. package/src/sap/gantt/simple/BaseShape.js +7 -5
  155. package/src/sap/gantt/simple/BaseText.js +1 -1
  156. package/src/sap/gantt/simple/BaseTriangle.js +7 -1
  157. package/src/sap/gantt/simple/ContainerToolbar.js +19 -4
  158. package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
  159. package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
  160. package/src/sap/gantt/simple/CustomVariantHandler.js +8 -2
  161. package/src/sap/gantt/simple/DeltaLine.js +1 -1
  162. package/src/sap/gantt/simple/ExpandModel.js +2 -4
  163. package/src/sap/gantt/simple/FindAndSelectUtils.js +6 -0
  164. package/src/sap/gantt/simple/FullScreenUtil.js +7 -1
  165. package/src/sap/gantt/simple/GanttAdaptationData.js +8 -2
  166. package/src/sap/gantt/simple/GanttChartContainer.js +8 -2
  167. package/src/sap/gantt/simple/GanttChartWithTable.js +63 -5
  168. package/src/sap/gantt/simple/GanttDragDropExtension.js +17 -5
  169. package/src/sap/gantt/simple/GanttExtension.js +1 -1
  170. package/src/sap/gantt/simple/GanttHeader.js +1 -1
  171. package/src/sap/gantt/simple/GanttPointerExtension.js +1 -1
  172. package/src/sap/gantt/simple/GanttPopoverExtension.js +2 -2
  173. package/src/sap/gantt/simple/GanttPrinting.js +313 -198
  174. package/src/sap/gantt/simple/GanttRowAction.js +1 -1
  175. package/src/sap/gantt/simple/GanttRowSettings.js +30 -1
  176. package/src/sap/gantt/simple/GanttScrollExtension.js +20 -5
  177. package/src/sap/gantt/simple/GanttSearchSidePanel.js +7 -1
  178. package/src/sap/gantt/simple/GanttUtils.js +86 -1
  179. package/src/sap/gantt/simple/GanttZoomExtension.js +4 -4
  180. package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
  181. package/src/sap/gantt/simple/LegendContainer.js +1 -1
  182. package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
  183. package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
  184. package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
  185. package/src/sap/gantt/simple/PrintConfig.js +314 -0
  186. package/src/sap/gantt/simple/PrintDialogTemplate.js +38 -0
  187. package/src/sap/gantt/simple/PrintUtils.js +151 -0
  188. package/src/sap/gantt/simple/Relationship.js +1 -1
  189. package/src/sap/gantt/simple/ShapeScheme.js +1 -1
  190. package/src/sap/gantt/simple/StockChart.js +1 -1
  191. package/src/sap/gantt/simple/StockChartDimension.js +1 -1
  192. package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
  193. package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
  194. package/src/sap/gantt/simple/UtilizationChart.js +4 -1
  195. package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
  196. package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
  197. package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
  198. package/src/sap/gantt/simple/shapes/Shape.js +6 -6
  199. package/src/sap/gantt/simple/shapes/Task.js +1 -1
  200. package/src/sap/gantt/skipTime/DayInterval.js +63 -0
  201. package/src/sap/gantt/skipTime/DiscontinuousProvider.js +54 -0
  202. package/src/sap/gantt/skipTime/SkipInterval.js +76 -0
  203. package/src/sap/gantt/skipTime/SkipPattern.js +64 -0
  204. package/src/sap/gantt/skipTime/WeekPattern.js +118 -0
  205. package/src/sap/gantt/skipTime/WeeklyDiscontinuousProvider.js +84 -0
  206. package/src/sap/gantt/themes/sap_hcb/base_Gantt.less +899 -0
  207. package/src/sap/gantt/themes/sap_hcb/base_GanttPrinting.less +101 -0
  208. package/src/sap/gantt/themes/sap_hcb/base_GanttSyncedControl.less +96 -0
  209. package/src/sap/gantt/themes/sap_hcb/library.source.less +15 -1
  210. package/src/sap/gantt/thirdparty/d3fc-discontinuous-scale.js +1129 -0
  211. package/src/sap/gantt/thirdparty/d3fc-rebind.js +103 -0
  212. package/src/sap/gantt/thirdparty/licenses/d3fc-MIT-LICENSE.txt +21 -0
  213. package/src/sap/gantt/utils/GanttChartConfigurationUtils.js +6 -0
  214. package/src/sap/gantt/utils/GanttCustomisationUtils.js +7 -1
  215. package/src/sap/gantt/utils/GanttFlexibilityUtils.js +7 -1
  216. package/src/sap/gantt/polyfills/time-utils/day.js +0 -7
  217. package/src/sap/gantt/polyfills/time-utils/days.js +0 -7
  218. package/src/sap/gantt/polyfills/time-utils/monday.js +0 -7
  219. package/src/sap/gantt/polyfills/time-utils/saturday.js +0 -7
  220. package/src/sap/gantt/polyfills/time-utils/weeks.js +0 -7
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define(
2
8
  ["./BaseRectangle", "./BasePath" , "sap/gantt/library"],
3
9
  function (BaseRectangle, BasePath, library) {
@@ -14,7 +20,7 @@ sap.ui.define(
14
20
  * @extends sap.gantt.simple.BaseRectangle
15
21
  *
16
22
  * @author SAP SE
17
- * @version 1.125.0
23
+ * @version 1.127.0
18
24
  * @since 1.84
19
25
  *
20
26
  * @constructor
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define([
2
8
  "sap/ui/core/Core",
3
9
  "sap/gantt/library",
@@ -26,7 +32,8 @@ sap.ui.define([
26
32
  "./FindAndSelectUtils",
27
33
  'sap/ui/core/InvisibleText',
28
34
  "sap/ui/core/Element",
29
- "sap/ui/core/Lib"
35
+ "sap/ui/core/Lib",
36
+ "./GanttUtils"
30
37
  ], function (
31
38
  Core,
32
39
  library,
@@ -55,7 +62,8 @@ sap.ui.define([
55
62
  FindAndSelectUtils,
56
63
  InvisibleText,
57
64
  Element,
58
- Lib
65
+ Lib,
66
+ GanttUtils
59
67
  ) {
60
68
  "use strict";
61
69
 
@@ -81,7 +89,7 @@ sap.ui.define([
81
89
  * @extends sap.m.OverflowToolbar
82
90
  *
83
91
  * @author SAP SE
84
- * @version 1.125.0
92
+ * @version 1.127.0
85
93
  *
86
94
  * @constructor
87
95
  * @public
@@ -695,6 +703,13 @@ sap.ui.define([
695
703
  return aSelectItems;
696
704
  };
697
705
 
706
+ ContainerToolbar.prototype._focusOnZoom = function(iCurrentZoomLevel, iZoomLevel) {
707
+ var oGanttContainer = this.getParent();
708
+ if (oGanttContainer && oGanttContainer.isA("sap.gantt.simple.GanttChartContainer") && oGanttContainer.getEnableAutoFocusOnZoom() && iCurrentZoomLevel < iZoomLevel) {
709
+ GanttUtils._calculateSelectedShapeMinTime(oGanttContainer);
710
+ }
711
+ };
712
+
698
713
  ContainerToolbar.prototype._genTimeZoomGroupControls = function() {
699
714
  var ZoomControlType = library.config.ZoomControlType;
700
715
 
@@ -703,7 +718,7 @@ sap.ui.define([
703
718
  var fnUpdateZoomLevel = function(iZoomLevel) {
704
719
  clearTimeout(this._iLiveChangeTimer);
705
720
  this._iLiveChangeTimer = -1;
706
-
721
+ this._focusOnZoom(this.getZoomLevel(), iZoomLevel);
707
722
  this.setZoomLevel(iZoomLevel, true);
708
723
  };
709
724
 
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Control
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.125.0
30
+ * @version 1.127.0
31
31
  * @since 1.66.0
32
32
  *
33
33
  * @constructor
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/thirdparty/jquery', "sap/ui/Device"], function(jQuery, De
17
17
  * @class Utility functionality to work with SVG coordination, e.g. find x position of cursor
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.125.0
20
+ * @version 1.127.0
21
21
  *
22
22
  * @private
23
23
  * @static
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define([
2
8
  "sap/ui/core/Element"
3
9
  ], function (Element) {
@@ -15,7 +21,7 @@ sap.ui.define([
15
21
  * @extends sap.ui.core.Element
16
22
  *
17
23
  * @author SAP SE
18
- * @version 1.125.0
24
+ * @version 1.127.0
19
25
  *
20
26
  * @constructor
21
27
  * @public
@@ -48,4 +54,4 @@ sap.ui.define([
48
54
  });
49
55
 
50
56
  return CustomVariantHandler;
51
- });
57
+ });
@@ -25,7 +25,7 @@ sap.ui.define(
25
25
  * @extends sap.ui.core.Element
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.125.0
28
+ * @version 1.127.0
29
29
  * @since 1.84
30
30
  *
31
31
  * @constructor
@@ -23,10 +23,10 @@ sap.ui.define([
23
23
  * @class
24
24
  * ExpandModel manages the internal states on expand charts
25
25
  *
26
- * @extends sap.gantt.simple.ExpandModel
26
+ * @extends sap.ui.base.ManagedObject
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.125.0
29
+ * @version 1.127.0
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -69,8 +69,6 @@ sap.ui.define([
69
69
 
70
70
  var oRowSettings = GanttUtils.getSelectedTableRowSettings(oTable, iSelectedIndex),overlayAggList;
71
71
  if (oRowSettings){
72
- //add expand or staticOverlay aggreagtion shapes
73
- AggregationUtils._addExpandStaticOverlay(oRowSettings,bExpanded,oGantt);
74
72
  //fetch overlay aggreagtion shapes
75
73
  overlayAggList = AggregationUtils._fetchOverlayAggregation(oRowSettings,false, "", aShapeSchemeKeys);
76
74
  }
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define([
2
8
  "./GanttUtils",
3
9
  "sap/gantt/misc/Format",
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define([
2
8
  "sap/m/Dialog", "sap/ui/core/HTML"
3
9
  ], function(Dialog, HTML) {
@@ -120,4 +126,4 @@ sap.ui.define([
120
126
 
121
127
  return FullScreenUtil;
122
128
 
123
- }, /* bExport= */true);
129
+ }, /* bExport= */true);
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+
4
+ (c) Copyright 2009-2015 SAP SE. All rights reserved
5
+
6
+ */
1
7
  sap.ui.define([
2
8
  "sap/ui/core/CustomData"
3
9
  ], function (CustomData) {
@@ -15,7 +21,7 @@ sap.ui.define([
15
21
  * @extend sap.ui.core.CustomData
16
22
  *
17
23
  * @author SAP SE
18
- * @version 1.125.0
24
+ * @version 1.127.0
19
25
  * @since 1.90
20
26
  *
21
27
  * @constructor
@@ -26,4 +32,4 @@ sap.ui.define([
26
32
  var GanttAdaptationData = CustomData.extend("sap.gantt.simple.GanttAdaptationData");
27
33
 
28
34
  return GanttAdaptationData;
29
- });
35
+ });
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @extends sap.ui.core.Control
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.125.0
55
+ * @version 1.127.0
56
56
  *
57
57
  * @constructor
58
58
  * @public
@@ -203,7 +203,13 @@ sap.ui.define([
203
203
  * This property enables the auto selection of a shape upon search and find.
204
204
  * @experimental since 1.111
205
205
  */
206
- enableAutoSelectOnFind: { type: "boolean", defaultValue: true}
206
+ enableAutoSelectOnFind: { type: "boolean", defaultValue: true},
207
+
208
+ /**
209
+ * This property enables auto focus while zooming in on a selected shape.
210
+ * @since 1.126
211
+ */
212
+ enableAutoFocusOnZoom: { type: "boolean", defaultValue: false}
207
213
  },
208
214
  defaultAggregation : "ganttCharts",
209
215
  aggregations: {
@@ -170,7 +170,7 @@ sap.ui.define([
170
170
  * @extend sap.ui.core.Control
171
171
  *
172
172
  * @author SAP SE
173
- * @version 1.125.0
173
+ * @version 1.127.0
174
174
  * @since 1.60
175
175
  *
176
176
  * @constructor
@@ -353,7 +353,7 @@ sap.ui.define([
353
353
  ghostAlignment: {type: "string", defaultValue: library.dragdrop.GhostAlignment.None},
354
354
 
355
355
  /**
356
- * Flag to show or hide the start time and end time of a shape when you drag it along the time line. The property takes effect if only one shape is selected.
356
+ * Flag to show or hide the start time and end time of a shape when you drag it along the time line. The property takes effect if only one shape is selected or <code>enableMultipleGhosts</code> is set to false.
357
357
  */
358
358
  showShapeTimeOnDrag: {type: "boolean", defaultValue: false},
359
359
 
@@ -507,7 +507,7 @@ sap.ui.define([
507
507
  selectOnlyGraphicalShape: { type: "boolean", defaultValue: false },
508
508
 
509
509
  /**
510
- * Option to show or hide shape labels on ghost while dragging.
510
+ * Option to show or hide shape labels on ghost while dragging. The property takes effect only when <code>enableMultipleGhosts</code> is set to true.
511
511
  * @since 1.94
512
512
  */
513
513
  showTextOnGhost: {type: "boolean", defaultValue: true},
@@ -584,7 +584,13 @@ sap.ui.define([
584
584
  * Example: "shapes3,shapes2,shapes1" means shapes3 will be rendered at the bottom, and shapes1 will be rendered at the top
585
585
  * @experimental since 1.113
586
586
  */
587
- shapeRenderOrder: {type: "string[]", defaultValue: []}
587
+ shapeRenderOrder: {type: "string[]", defaultValue: []},
588
+
589
+ /**
590
+ * Flag to enable displaying multiple ghosts when multiple shapes are selected and dragged.
591
+ * @experimental since 1.127
592
+ */
593
+ enableMultipleGhosts: {type: "boolean", defaultValue: true}
588
594
  },
589
595
  aggregations: {
590
596
  /**
@@ -3184,7 +3190,7 @@ sap.ui.define([
3184
3190
  var oPrevTimelineOptionInterval = oAxisTimeStrategy._oZoom.base.timeLineOption.innerInterval,
3185
3191
  oCurrentTimelineOptionInterval = oAxisTimeStrategy.getTimeLineOption().innerInterval;
3186
3192
  var bChangeInInterval = (oPrevTimelineOptionInterval.unit != oCurrentTimelineOptionInterval.unit ||
3187
- oPrevTimelineOptionInterval.range != oCurrentTimelineOptionInterval.range ||
3193
+ oAxisTimeStrategy._getTimeLineRange(oAxisTimeStrategy._oZoom.base.timeLineOption) != oAxisTimeStrategy._getTimeLineRange(oAxisTimeStrategy.getTimeLineOption()) ||
3188
3194
  oPrevTimelineOptionInterval.span != oCurrentTimelineOptionInterval.span) && sReasonCode != "horizontalScroll" && sReasonCode != "jumpToPosition" && sReasonCode != "syncVisibleHorizon";
3189
3195
  if (sReasonCode === "initialRender" || bChangeInInterval ){
3190
3196
  if (!oAxisTimeStrategy.isA("sap.gantt.axistime.StepwiseZoomStrategy")) {
@@ -3872,6 +3878,7 @@ sap.ui.define([
3872
3878
 
3873
3879
  var oPrimaryScheme = this.getPrimaryShapeScheme();
3874
3880
 
3881
+ this._syncRowExpandState(vRowIndex, bExpanded, bPseudoShapeExpand);
3875
3882
  this._bExpandToggled = this._oExpandModel.isTableRowHeightNeedChange(bExpanded, this.getTable(), aIndices, oPrimaryScheme, aExpandScheme);
3876
3883
  if (this._bExpandToggled) {
3877
3884
  if (this.getEnablePseudoShapes()){
@@ -3879,6 +3886,8 @@ sap.ui.define([
3879
3886
  }
3880
3887
  this._createInnerGanttRenderPromise();
3881
3888
  this.getTable().invalidate();
3889
+ } else {
3890
+ this._syncRowExpandState(vRowIndex, !bExpanded, bPseudoShapeExpand);
3882
3891
  }
3883
3892
  };
3884
3893
 
@@ -4593,6 +4602,55 @@ sap.ui.define([
4593
4602
  }
4594
4603
  };
4595
4604
 
4605
+ /**
4606
+ * sync the row expand state with the row settings
4607
+ * @param {number} vRowIndex row indices
4608
+ * @param {boolean} bExpanded whether is to expand or not
4609
+ * @param {boolean} bPseudoShapeExpand whether pseudo shape is enabled or not
4610
+ * @private
4611
+ */
4612
+ GanttChartWithTable.prototype._syncRowExpandState = function(vRowIndex, bExpanded, bPseudoShapeExpand) {
4613
+ var aRows = this.getTable().getRows(), aRowIndices = [];
4614
+
4615
+ if (typeof vRowIndex === "number") {
4616
+ aRowIndices = [vRowIndex];
4617
+ } else if (Array.isArray(vRowIndex)) {
4618
+ aRowIndices = vRowIndex;
4619
+ }
4620
+
4621
+ const iStartIndex = aRows[0].getIndex();
4622
+
4623
+ for (const iIndex of aRowIndices) {
4624
+ var oRow = aRows[iIndex - iStartIndex];
4625
+ var oRowSettings = oRow && oRow.getAggregation("_settings");
4626
+
4627
+ if (oRowSettings) {
4628
+ oRowSettings._onRowExpandToggle({
4629
+ expanded: bExpanded,
4630
+ pseudoShapeExpand: bPseudoShapeExpand
4631
+ });
4632
+ }
4633
+ }
4634
+ };
4635
+
4636
+ /**
4637
+ * Checks if lazy loading is enabled for time synced chart
4638
+ * @returns {boolean} true if lazy loading is enabled for any chart in the container with timeScrollSync enabled
4639
+ * @private
4640
+ */
4641
+ GanttChartWithTable.prototype._isLazyLoadingEnabledForSyncedChart = function () {
4642
+ var oGanttContainer = this.getParentGanttChartContainer();
4643
+ var bLazyLoadingEnabled = false;
4644
+ if (oGanttContainer && oGanttContainer.getGanttCharts().length > 1 && oGanttContainer.getEnableTimeScrollSync()) {
4645
+ oGanttContainer.getGanttCharts().forEach(function(oGanttChart) {
4646
+ if (oGanttChart.getHorizontalLazyLoadingEnabled()) {
4647
+ bLazyLoadingEnabled = true;
4648
+ }
4649
+ });
4650
+ }
4651
+ return bLazyLoadingEnabled;
4652
+ };
4653
+
4596
4654
  return GanttChartWithTable;
4597
4655
 
4598
4656
  }, true);
@@ -100,7 +100,7 @@ sap.ui.define([
100
100
  *
101
101
  * @extends sap.gantt.simple.GanttExtension
102
102
  * @author SAP SE
103
- * @version 1.125.0
103
+ * @version 1.127.0
104
104
  * @constructor
105
105
  * @private
106
106
  * @alias sap.gantt.simple.GanttExtension
@@ -353,6 +353,10 @@ sap.ui.define([
353
353
  endTime: oDraggedShape.getEndTime()
354
354
  };
355
355
 
356
+ if (this.oSourceRow) {
357
+ this.oSourceRow.destroy();
358
+ }
359
+
356
360
  //Set SourceRow = Row instance from where the shape is dragged
357
361
  this.oSourceRow = this.getRowByShape(oDraggedShape);
358
362
 
@@ -368,11 +372,14 @@ sap.ui.define([
368
372
  this._aVisibleDraggableShapes.push(oShape);
369
373
  }
370
374
  }.bind(this));
371
- this.bMultipleGhosts = this._aVisibleDraggableShapes.length > 1;
375
+ this.bMultipleGhosts = this.getGantt().getEnableMultipleGhosts() && this._aVisibleDraggableShapes.length > 1;
372
376
  this.mGhostLabelStyle = {};
373
- this._bEnableRowHighlight = oDraggedShape.getDragHighlightRows().length > 0 && !this.bMultipleGhosts;
377
+ this._bEnableRowHighlight = oDraggedShape.getDragHighlightRows().length > 0 && (this._aVisibleDraggableShapes.length == 1);
374
378
 
375
379
  DragDropHelper.addDragDropEventListeners(this.getGantt());
380
+ } else if (this.oSourceRow) {
381
+ this.oSourceRow.destroy();
382
+ this.oSourceRow = undefined;
376
383
  }
377
384
  };
378
385
 
@@ -1479,14 +1486,19 @@ sap.ui.define([
1479
1486
  var oShape = Element.getElementById(oLastNode.id);
1480
1487
  var bLabelFlag = !oShape && oLastNode.parentNode && Element.getElementById(oLastNode.parentNode.id) instanceof sap.gantt.simple.BaseGroup;
1481
1488
  var bParentLabelFlag = !oShape && oLastNode.parentNode && oLastNode.parentNode.parentNode && Element.getElementById(oLastNode.parentNode.parentNode.id) instanceof sap.gantt.simple.BaseGroup;
1489
+ var bEnableMultipleGhosts = this.getGantt().getEnableMultipleGhosts();
1482
1490
  if (bLabelFlag){
1483
1491
  oShape = Element.getElementById(oLastNode.parentNode.id);
1484
1492
  } else if (bParentLabelFlag){
1485
1493
  oShape = Element.getElementById(oLastNode.parentNode.parentNode.id);
1486
1494
  }
1487
- if (bTargetShape && this.getGantt().getShowTextOnGhost()) {
1495
+ if (bEnableMultipleGhosts && bTargetShape && this.getGantt().getShowTextOnGhost()) {
1488
1496
  sTextDom = this._getGhostLabel(oShape, oLastNode);
1489
1497
  }
1498
+ if (!bEnableMultipleGhosts) {
1499
+ var sNumberOfObjects = this.getNumberOfDragObject(oLastNode);
1500
+ sTextDom = "<div id='sapGanttDragText' class='sapGanttDragTextOverlay " + oStyle.css + "'>" + sNumberOfObjects + "</div>";
1501
+ }
1490
1502
 
1491
1503
  if (this.bMultipleGhosts){
1492
1504
  var oNode;
@@ -1507,7 +1519,7 @@ sap.ui.define([
1507
1519
  "<img class='sapGanttDragGhostImg' src='" + cropedImg + "'>" + sTextDom +
1508
1520
  "</div>";
1509
1521
  oGhostWrapperDom.insertAdjacentHTML('beforeend', sDragGhostDom);
1510
- if (bTargetShape && this.getGantt().getShowTextOnGhost() && sTextDom !== "") {
1522
+ if (bEnableMultipleGhosts && bTargetShape && this.getGantt().getShowTextOnGhost() && sTextDom !== "") {
1511
1523
  this._updateGhostLabelStyle();
1512
1524
  }
1513
1525
  };
@@ -18,7 +18,7 @@ sap.ui.define([ "sap/ui/base/Object" ],function(BaseObject) {
18
18
  * @abstract
19
19
  * @extends sap.ui.base.Object
20
20
  * @author SAP SE
21
- * @version 1.125.0
21
+ * @version 1.127.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @alias sap.gantt.simple.GanttExtension
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extend sap.ui.core.Element
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.125.0
38
+ * @version 1.127.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -240,7 +240,7 @@ sap.ui.define([
240
240
  *
241
241
  * @extends sap.gantt.simple.GanttExtension
242
242
  * @author SAP SE
243
- * @version 1.125.0
243
+ * @version 1.127.0
244
244
  * @constructor
245
245
  * @private
246
246
  * @alias sap.gantt.simple.GanttPointerExtension
@@ -83,7 +83,7 @@ function(
83
83
  *
84
84
  * @extends sap.gantt.simple.GanttExtension
85
85
  * @author SAP SE
86
- * @version 1.125.0
86
+ * @version 1.127.0
87
87
  * @constructor
88
88
  * @private
89
89
  * @alias sap.gantt.simple.GanttPopoverExtension
@@ -158,7 +158,7 @@ function(
158
158
  GanttPopoverExtension.prototype.onMouseDown = function(oEvent) {
159
159
  var oSelection = this.getGantt().getSelection();
160
160
  var iSelectedDraggableShapes = oSelection.numberOfSelectedDraggableShapes();
161
- this.bMultipleShapes = iSelectedDraggableShapes > 1;
161
+ this.bMultipleShapes = this.getGantt().getEnableMultipleGhosts() && iSelectedDraggableShapes > 1;
162
162
  this.pageWidth = window.innerWidth;
163
163
  this.pageHeight = window.innerHeight;
164
164
  PopoverHelper.addPopoverEventListeners(this.getGantt());