@sapui5/sap.gantt 1.118.0 → 1.120.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 (215) hide show
  1. package/package.json +1 -1
  2. package/src/sap/gantt/.library +1 -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 +2 -2
  6. package/src/sap/gantt/GanttChartContainer.js +1 -1
  7. package/src/sap/gantt/GanttChartWithTable.js +6 -2
  8. package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +6 -15
  9. package/src/sap/gantt/axistime/FullScreenStrategy.js +9 -8
  10. package/src/sap/gantt/axistime/FullScreenTimeLineOptions.js +6 -0
  11. package/src/sap/gantt/axistime/ProportionTimeLineOptions.js +6 -0
  12. package/src/sap/gantt/axistime/ProportionZoomStrategy.js +8 -8
  13. package/src/sap/gantt/axistime/StepwiseTimeLineOptions.js +220 -0
  14. package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +4 -221
  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 +6 -4
  18. package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +6 -4
  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 +35 -5
  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 +4 -4
  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/AssociateContainer.js +1 -3
  42. package/src/sap/gantt/control/AssociateContainerRenderer.js +9 -12
  43. package/src/sap/gantt/control/Cell.js +1 -1
  44. package/src/sap/gantt/control/Toolbar.js +4 -2
  45. package/src/sap/gantt/def/DefBase.js +1 -1
  46. package/src/sap/gantt/def/SvgDefs.js +1 -1
  47. package/src/sap/gantt/def/cal/Calendar.js +1 -1
  48. package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
  49. package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
  50. package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
  51. package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
  52. package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
  53. package/src/sap/gantt/def/gradient/Stop.js +1 -1
  54. package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
  55. package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
  56. package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
  57. package/src/sap/gantt/drawer/CursorLine.js +10 -3
  58. package/src/sap/gantt/drawer/Drawer.js +1 -1
  59. package/src/sap/gantt/drawer/Legend.js +3 -2
  60. package/src/sap/gantt/drawer/SelectionPanel.js +1 -1
  61. package/src/sap/gantt/drawer/ShapeInRow.js +6 -6
  62. package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
  63. package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
  64. package/src/sap/gantt/eventHandler/MouseWheelHandler.js +2 -1
  65. package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
  66. package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
  67. package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
  68. package/src/sap/gantt/eventHandler/TimePopoverHandler.js +3 -3
  69. package/src/sap/gantt/flexibility/simple/GanttChartContainer.flexibility.js +5 -4
  70. package/src/sap/gantt/flexibility/simple/GanttTableColumn.flexibility.js +5 -4
  71. package/src/sap/gantt/legend/DimensionLegend.js +4 -4
  72. package/src/sap/gantt/legend/LegendBase.js +1 -1
  73. package/src/sap/gantt/legend/LegendContainer.js +1 -1
  74. package/src/sap/gantt/legend/ListLegend.js +1 -1
  75. package/src/sap/gantt/library.js +104 -19
  76. package/src/sap/gantt/messagebundle.properties +24 -0
  77. package/src/sap/gantt/messagebundle_ar.properties +1 -1
  78. package/src/sap/gantt/messagebundle_bg.properties +3 -3
  79. package/src/sap/gantt/messagebundle_cs.properties +1 -1
  80. package/src/sap/gantt/messagebundle_el.properties +4 -4
  81. package/src/sap/gantt/messagebundle_en.properties +35 -19
  82. package/src/sap/gantt/messagebundle_es.properties +7 -7
  83. package/src/sap/gantt/messagebundle_et.properties +2 -2
  84. package/src/sap/gantt/messagebundle_fr.properties +1 -1
  85. package/src/sap/gantt/messagebundle_hi.properties +2 -2
  86. package/src/sap/gantt/messagebundle_hr.properties +3 -3
  87. package/src/sap/gantt/messagebundle_ja.properties +2 -2
  88. package/src/sap/gantt/messagebundle_kk.properties +1 -1
  89. package/src/sap/gantt/messagebundle_lt.properties +2 -2
  90. package/src/sap/gantt/messagebundle_mk.properties +411 -0
  91. package/src/sap/gantt/messagebundle_ms.properties +1 -1
  92. package/src/sap/gantt/messagebundle_nl.properties +2 -2
  93. package/src/sap/gantt/messagebundle_no.properties +2 -2
  94. package/src/sap/gantt/messagebundle_pt.properties +2 -2
  95. package/src/sap/gantt/messagebundle_ro.properties +10 -10
  96. package/src/sap/gantt/messagebundle_ru.properties +1 -1
  97. package/src/sap/gantt/messagebundle_sk.properties +4 -4
  98. package/src/sap/gantt/messagebundle_th.properties +8 -8
  99. package/src/sap/gantt/messagebundle_uk.properties +3 -3
  100. package/src/sap/gantt/misc/AxisOrdinal.js +3 -3
  101. package/src/sap/gantt/misc/AxisTime.js +61 -52
  102. package/src/sap/gantt/misc/Format.js +53 -31
  103. package/src/sap/gantt/misc/Memoizer.js +1 -1
  104. package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
  105. package/src/sap/gantt/misc/ShapeManager.js +5 -4
  106. package/src/sap/gantt/misc/ShapeSelectionModel.js +3 -3
  107. package/src/sap/gantt/misc/Utility.js +5 -2
  108. package/src/sap/gantt/overlays/GanttRowOverlay.js +88 -0
  109. package/src/sap/gantt/overlays/Overlay.js +73 -0
  110. package/src/sap/gantt/shape/Circle.js +1 -1
  111. package/src/sap/gantt/shape/ClipPath.js +1 -1
  112. package/src/sap/gantt/shape/Definitions.js +1 -1
  113. package/src/sap/gantt/shape/Group.js +1 -1
  114. package/src/sap/gantt/shape/Image.js +1 -1
  115. package/src/sap/gantt/shape/Line.js +1 -1
  116. package/src/sap/gantt/shape/Path.js +1 -1
  117. package/src/sap/gantt/shape/Polygon.js +1 -1
  118. package/src/sap/gantt/shape/Polyline.js +1 -1
  119. package/src/sap/gantt/shape/Rectangle.js +1 -1
  120. package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
  121. package/src/sap/gantt/shape/SelectedShape.js +1 -1
  122. package/src/sap/gantt/shape/Shape.js +1 -1
  123. package/src/sap/gantt/shape/Text.js +4 -4
  124. package/src/sap/gantt/shape/cal/Calendar.js +1 -1
  125. package/src/sap/gantt/shape/ext/Chevron.js +1 -1
  126. package/src/sap/gantt/shape/ext/Cursor.js +1 -1
  127. package/src/sap/gantt/shape/ext/Diamond.js +1 -1
  128. package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
  129. package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
  130. package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
  131. package/src/sap/gantt/shape/ext/Triangle.js +1 -1
  132. package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
  133. package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
  134. package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
  135. package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
  136. package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
  137. package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
  138. package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
  139. package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
  140. package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
  141. package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
  142. package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
  143. package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
  144. package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
  145. package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
  146. package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
  147. package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
  148. package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
  149. package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
  150. package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
  151. package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
  152. package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
  153. package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
  154. package/src/sap/gantt/simple/AdhocLine.js +1 -1
  155. package/src/sap/gantt/simple/AggregationUtils.js +92 -0
  156. package/src/sap/gantt/simple/BaseCalendar.js +1 -1
  157. package/src/sap/gantt/simple/BaseChevron.js +1 -1
  158. package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
  159. package/src/sap/gantt/simple/BaseCursor.js +1 -1
  160. package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
  161. package/src/sap/gantt/simple/BaseDiamond.js +1 -1
  162. package/src/sap/gantt/simple/BaseGroup.js +1 -1
  163. package/src/sap/gantt/simple/BaseImage.js +1 -1
  164. package/src/sap/gantt/simple/BaseLine.js +1 -1
  165. package/src/sap/gantt/simple/BasePath.js +1 -1
  166. package/src/sap/gantt/simple/BasePseudoShape.js +125 -96
  167. package/src/sap/gantt/simple/BaseRectangle.js +1 -1
  168. package/src/sap/gantt/simple/BaseShape.js +41 -18
  169. package/src/sap/gantt/simple/BaseText.js +1 -1
  170. package/src/sap/gantt/simple/BaseTriangle.js +1 -1
  171. package/src/sap/gantt/simple/ContainerToolbar.js +9 -7
  172. package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
  173. package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
  174. package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
  175. package/src/sap/gantt/simple/DeltaLine.js +1 -1
  176. package/src/sap/gantt/simple/DeltaLineRenderer.js +4 -2
  177. package/src/sap/gantt/simple/ExpandModel.js +12 -5
  178. package/src/sap/gantt/simple/FindAndSelectUtils.js +7 -1
  179. package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
  180. package/src/sap/gantt/simple/GanttChartContainer.js +2 -2
  181. package/src/sap/gantt/simple/GanttChartWithTable.js +163 -90
  182. package/src/sap/gantt/simple/GanttDragDropExtension.js +22 -9
  183. package/src/sap/gantt/simple/GanttExtension.js +1 -1
  184. package/src/sap/gantt/simple/GanttHeader.js +2 -2
  185. package/src/sap/gantt/simple/GanttPointerExtension.js +3 -2
  186. package/src/sap/gantt/simple/GanttPopoverExtension.js +4 -3
  187. package/src/sap/gantt/simple/GanttPrinting.js +144 -66
  188. package/src/sap/gantt/simple/GanttResizeExtension.js +5 -12
  189. package/src/sap/gantt/simple/GanttRowAction.js +1 -1
  190. package/src/sap/gantt/simple/GanttRowSettings.js +55 -3
  191. package/src/sap/gantt/simple/GanttSearchSidePanel.js +7 -4
  192. package/src/sap/gantt/simple/GanttUtils.js +75 -35
  193. package/src/sap/gantt/simple/GanttZoomExtension.js +12 -2
  194. package/src/sap/gantt/simple/InnerGanttChart.js +17 -7
  195. package/src/sap/gantt/simple/InnerGanttChartRenderer.js +2 -31
  196. package/src/sap/gantt/simple/LegendContainer.js +1 -1
  197. package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
  198. package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
  199. package/src/sap/gantt/simple/MultiActivityRowSettings.js +2 -14
  200. package/src/sap/gantt/simple/Relationship.js +6 -6
  201. package/src/sap/gantt/simple/RenderUtils.js +23 -11
  202. package/src/sap/gantt/simple/SelectionModel.js +7 -5
  203. package/src/sap/gantt/simple/ShapeScheme.js +1 -1
  204. package/src/sap/gantt/simple/StockChart.js +1 -1
  205. package/src/sap/gantt/simple/StockChartDimension.js +1 -1
  206. package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
  207. package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
  208. package/src/sap/gantt/simple/UtilizationChart.js +1 -1
  209. package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
  210. package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
  211. package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
  212. package/src/sap/gantt/simple/shapes/Shape.js +10 -11
  213. package/src/sap/gantt/simple/shapes/Task.js +1 -1
  214. package/src/sap/gantt/utils/GanttCustomisationUtils.js +5 -3
  215. package/src/sap/gantt/utils/GanttFlexibilityUtils.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.gantt",
3
- "version": "1.118.0",
3
+ "version": "1.120.0",
4
4
  "description": "SAPUI5 Library sap.gantt",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.118.0</version>
10
+ <version>1.120.0</version>
11
11
 
12
12
  <documentation>UI5 library: sap.gantt</documentation>
13
13
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.118.0
26
+ * @version 1.120.0
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -87,7 +87,7 @@ function (
87
87
  * @extends sap.gantt.GanttChartBase
88
88
  *
89
89
  * @author SAP SE
90
- * @version 1.118.0
90
+ * @version 1.120.0
91
91
  *
92
92
  * @constructor
93
93
  * @public
@@ -63,7 +63,7 @@ sap.ui.define([
63
63
  * @abstract
64
64
  *
65
65
  * @author SAP SE
66
- * @version 1.118.0
66
+ * @version 1.120.0
67
67
  *
68
68
  * @constructor
69
69
  * @public
@@ -262,7 +262,7 @@ sap.ui.define([
262
262
  *
263
263
  * Restriction: It is defined as a property, and hence cannot be used in an XML view.
264
264
  */
265
- locale: {type: "object", defaultValue: library.config.DEFAULT_LOCALE_CET},
265
+ locale: {type: "object", defaultValue: library.config.DEFAULT_LOCALE},
266
266
 
267
267
  /**
268
268
  * Configuration of shape data names and the attribute in raw data that serves as 'id'.
@@ -62,7 +62,7 @@ function (
62
62
  * @extend sap.ui.core.Control
63
63
  *
64
64
  * @author SAP SE
65
- * @version 1.118.0
65
+ * @version 1.120.0
66
66
  *
67
67
  * @constructor
68
68
  * @public
@@ -5,6 +5,7 @@
5
5
 
6
6
  */
7
7
  sap.ui.define([
8
+ "sap/m/Label",
8
9
  "sap/ui/performance/Measurement",
9
10
  "sap/ui/Device",
10
11
  "./GanttChartBase",
@@ -22,6 +23,7 @@ sap.ui.define([
22
23
  "./eventHandler/MouseWheelHandler",
23
24
  "sap/ui/thirdparty/d3"
24
25
  ], function (
26
+ Label,
25
27
  Measurement,
26
28
  Device,
27
29
  GanttChartBase,
@@ -57,7 +59,7 @@ sap.ui.define([
57
59
  * @extends sap.gantt.GanttChartBase
58
60
  *
59
61
  * @author SAP SE
60
- * @version 1.118.0
62
+ * @version 1.120.0
61
63
  *
62
64
  * @constructor
63
65
  * @public
@@ -544,7 +546,9 @@ sap.ui.define([
544
546
  if (aColumnConfig) {
545
547
  for (var i = 0; i < aColumnConfig.length; i++) {
546
548
  var oCol = new Column({
547
- label: aColumnConfig[i].getTitle(),
549
+ label: new Label({
550
+ text: aColumnConfig[i].getTitle()
551
+ }),
548
552
  sortProperty: aColumnConfig[i].getSortAttribute(),
549
553
  filterProperty: aColumnConfig[i].getFilterAttribute(),
550
554
  width: aColumnConfig[i].getWidth(),
@@ -67,7 +67,7 @@ sap.ui.define([
67
67
  * @abstract
68
68
  *
69
69
  * @author SAP SE
70
- * @version 1.118.0
70
+ * @version 1.120.0
71
71
  *
72
72
  * @constructor
73
73
  * @public
@@ -200,7 +200,7 @@ sap.ui.define([
200
200
  * We recommend that you set the type of this argument to <code>sap.gantt.config.TimeHorizon</code>.
201
201
  * Otherwise some properties you set may not function properly.
202
202
  *
203
- * Default totalHorizon value is: <code>sap.gantt.config.DEFAULT_PLAN_HORIZON </code>
203
+ * Default totalHorizon value is: <code>sap.gantt.config.DEFAULT_TOTAL_HORIZON </code>
204
204
  */
205
205
  totalHorizon: {type: "sap.gantt.config.TimeHorizon", multiple: false},
206
206
 
@@ -221,7 +221,7 @@ sap.ui.define([
221
221
  * We recommend that you set the type of this argument to <code>sap.gantt.config.TimeHorizon</code>.
222
222
  * Otherwise some properties you set may not function properly.
223
223
  *
224
- * Default visible horizon value is <code>sap.gantt.config.DEFAULT_INIT_HORIZON</code>
224
+ * Default visible horizon value is <code>sap.gantt.config.DEFAULT_VISIBLE_HORIZON</code>
225
225
  */
226
226
  visibleHorizon: {type: "sap.gantt.config.TimeHorizon", multiple: false},
227
227
 
@@ -233,10 +233,10 @@ sap.ui.define([
233
233
  AxisTimeStrategyBase.prototype.applySettings = function (mSettings) {
234
234
  mSettings = mSettings || {};
235
235
  if (!mSettings.visibleHorizon) {
236
- mSettings.visibleHorizon = library.config.DEFAULT_INIT_HORIZON.clone();
236
+ mSettings.visibleHorizon = library.config.DEFAULT_VISIBLE_HORIZON.clone();
237
237
  }
238
238
  if (!mSettings.totalHorizon) {
239
- mSettings.totalHorizon = library.config.DEFAULT_PLAN_HORIZON.clone();
239
+ mSettings.totalHorizon = library.config.DEFAULT_TOTAL_HORIZON.clone();
240
240
  }
241
241
  this.checkFirstDayOfWeek(mSettings);
242
242
 
@@ -400,15 +400,6 @@ sap.ui.define([
400
400
  1, null, null,
401
401
  oLocale, this);
402
402
 
403
- var oGantt = this.getParent();
404
-
405
- if (oGantt && oGantt.getEnableDateTimezoneFormatter) {
406
- // set enable date formatter value from gantt;
407
- oAxisTime._setEnableDateTimezoneFormatter(
408
- oGantt.getEnableDateTimezoneFormatter()
409
- );
410
- }
411
-
412
403
  this.setAggregation("_axisTime", oAxisTime, true);
413
404
  };
414
405
 
@@ -788,7 +779,7 @@ sap.ui.define([
788
779
  AxisTimeStrategyBase.prototype._onLocalizationChanged = function () {
789
780
  this.setFirstDayOfWeek(LocaleData.getInstance(Core.getConfiguration().getLocale()).getFirstDayOfWeek());
790
781
  var oGantt = this.getParent();
791
- if (oGantt){
782
+ if (oGantt && oGantt.getEnablePseudoShapes && oGantt.getEnablePseudoShapes()){
792
783
  if (!oGantt.pseudoShapeSpecificData){
793
784
  oGantt.pseudoShapeSpecificData = {};
794
785
  }
@@ -11,7 +11,8 @@ sap.ui.define([
11
11
  "sap/base/util/ObjectPath",
12
12
  "./AxisTimeStrategyBase",
13
13
  "../misc/Utility",
14
- "../misc/Format"
14
+ "../misc/Format",
15
+ "sap/gantt/axistime/FullScreenTimeLineOptions"
15
16
  ], function (
16
17
  Log,
17
18
  library,
@@ -19,11 +20,11 @@ sap.ui.define([
19
20
  ObjectPath,
20
21
  AxisTimeStrategyBase,
21
22
  Utility,
22
- Format
23
+ Format,
24
+ FullScreenTimeLineOptions
23
25
  ) {
24
26
  "use strict";
25
27
 
26
- sap.gantt.axistime.FullScreenTimeLineOptions = library.config.DEFAULT_TIME_ZOOM_STRATEGY;
27
28
 
28
29
  /**
29
30
  * Creates and initializes a FullScreenStrategy.
@@ -45,7 +46,7 @@ sap.ui.define([
45
46
  * @extends sap.gantt.axistime.AxisTimeStrategyBase
46
47
  *
47
48
  * @author SAP SE
48
- * @version 1.118.0
49
+ * @version 1.120.0
49
50
  *
50
51
  * @constructor
51
52
  * @public
@@ -58,10 +59,10 @@ sap.ui.define([
58
59
  });
59
60
 
60
61
  FullScreenStrategy.prototype.init = function () {
61
- this.setProperty("coarsestTimeLineOption", sap.gantt.axistime.FullScreenTimeLineOptions["1month"], true);
62
- this.setProperty("finestTimeLineOption", sap.gantt.axistime.FullScreenTimeLineOptions["5min"], true);
63
- this.setProperty("timeLineOptions", sap.gantt.axistime.FullScreenTimeLineOptions, true);
64
- this.setProperty("timeLineOption", sap.gantt.axistime.FullScreenTimeLineOptions["4day"], true);
62
+ this.setProperty("coarsestTimeLineOption", FullScreenTimeLineOptions["1month"], true);
63
+ this.setProperty("finestTimeLineOption", FullScreenTimeLineOptions["5min"], true);
64
+ this.setProperty("timeLineOptions", FullScreenTimeLineOptions, true);
65
+ this.setProperty("timeLineOption", FullScreenTimeLineOptions["4day"], true);
65
66
  this.setProperty("zoomLevel", 0, true);
66
67
  this.setProperty("zoomLevels", 0, true);
67
68
  this.setProperty("mouseWheelZoomType", sap.gantt.MouseWheelZoomType.None, true);
@@ -0,0 +1,6 @@
1
+ sap.ui.define([
2
+ "sap/gantt/library"
3
+ ], function(library) {
4
+ 'use strict';
5
+ return library.config.DEFAULT_TIME_ZOOM_STRATEGY;
6
+ }, true);
@@ -0,0 +1,6 @@
1
+ sap.ui.define([
2
+ "sap/gantt/library"
3
+ ], function(library) {
4
+ 'use strict';
5
+ return library.config.DEFAULT_TIME_ZOOM_STRATEGY;
6
+ }, true);
@@ -13,11 +13,11 @@ sap.ui.define([
13
13
  "sap/gantt/axistime/AxisTimeStrategyBase",
14
14
  "sap/gantt/misc/Utility",
15
15
  "sap/gantt/misc/Format",
16
- "sap/gantt/config/TimeHorizon"
17
- ], function (Log, library, ObjectPath, AxisTimeStrategyBase, Utility, Format, TimeHorizon) {
16
+ "sap/gantt/config/TimeHorizon",
17
+ "sap/gantt/axistime/ProportionTimeLineOptions"
18
+ ], function (Log, library, ObjectPath, AxisTimeStrategyBase, Utility, Format, TimeHorizon,ProportionTimeLineOptions) {
18
19
  "use strict";
19
20
 
20
- sap.gantt.axistime.ProportionTimeLineOptions = library.config.DEFAULT_TIME_ZOOM_STRATEGY;
21
21
 
22
22
  /**
23
23
  * Creates and initializes a ProportionZoomStrategy.
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.gantt.axistime.AxisTimeStrategyBase
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.118.0
40
+ * @version 1.120.0
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -51,10 +51,10 @@ sap.ui.define([
51
51
 
52
52
  ProportionZoomStrategy.prototype.init = function () {
53
53
  this._aZoomRate = new Array(10);
54
- this.setProperty("coarsestTimeLineOption", sap.gantt.axistime.ProportionTimeLineOptions["1month"], true);
55
- this.setProperty("finestTimeLineOption", sap.gantt.axistime.ProportionTimeLineOptions["5min"], true);
56
- this.setProperty("timeLineOptions", sap.gantt.axistime.ProportionTimeLineOptions, true);
57
- this.setProperty("timeLineOption", sap.gantt.axistime.ProportionTimeLineOptions["4day"], true);
54
+ this.setProperty("coarsestTimeLineOption", ProportionTimeLineOptions["1month"], true);
55
+ this.setProperty("finestTimeLineOption", ProportionTimeLineOptions["5min"], true);
56
+ this.setProperty("timeLineOptions", ProportionTimeLineOptions, true);
57
+ this.setProperty("timeLineOption", ProportionTimeLineOptions["4day"], true);
58
58
  this.setProperty("zoomLevel", 0, true);
59
59
  this.setProperty("zoomLevels", 10, true);
60
60
  };
@@ -0,0 +1,220 @@
1
+ sap.ui.define([
2
+ "sap/gantt/library",
3
+ "sap/ui/core/Core"
4
+ ],function(library, Core) {
5
+ "use strict";
6
+ var oRb = Core.getLibraryResourceBundle("sap.gantt");
7
+
8
+ var TimeUnit = library.config.TimeUnit;
9
+
10
+ return {
11
+ "FiveMinutes": {
12
+ text: oRb.getText("SWZS_FIVE_MINUTES"),
13
+ innerInterval: {
14
+ unit: TimeUnit.minute,
15
+ span: 5,
16
+ range: 32 //2rem
17
+ },
18
+ largeInterval: {
19
+ unit: TimeUnit.hour,
20
+ span: 1,
21
+ //first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
22
+ pattern: "ha / MMMM dd, yyyy "
23
+ },
24
+ smallInterval: {
25
+ unit: TimeUnit.minute,
26
+ span: 5,
27
+ //e.g. 00, 05, ...55
28
+ pattern: "mm "
29
+ }
30
+ },
31
+ "FifteenMinutes": {
32
+ text: oRb.getText("SWZS_FIFTEEN_MINUTES"),
33
+ innerInterval: {
34
+ unit: TimeUnit.minute,
35
+ span: 15,
36
+ range: 48
37
+ },
38
+ largeInterval: {
39
+ unit: TimeUnit.hour,
40
+ span: 1,
41
+ //first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
42
+ pattern: "ha / MMMM dd, yyyy "
43
+ },
44
+ smallInterval: {
45
+ unit: TimeUnit.minute,
46
+ span: 15,
47
+ pattern: "mm "
48
+ }
49
+ },
50
+ "Hour": {
51
+ text: oRb.getText("SWZS_HOUR"),
52
+ innerInterval: {
53
+ unit: TimeUnit.hour,
54
+ span: 1,
55
+ range: 48
56
+ },
57
+ largeInterval: {
58
+ unit: TimeUnit.day,
59
+ span: 1,
60
+ pattern: library.config.DEFAULT_DATE_PATTERN
61
+ },
62
+ smallInterval: {
63
+ unit: TimeUnit.hour,
64
+ span: 1,
65
+ pattern: library.config.DEFAULT_TIME_PATTERN
66
+ }
67
+ },
68
+ "SixHours": {
69
+ text: oRb.getText("SWZS_SIX_HOURS"),
70
+ innerInterval: {
71
+ unit: TimeUnit.hour,
72
+ span: 6,
73
+ range: 64
74
+ },
75
+ largeInterval: {
76
+ unit: TimeUnit.day,
77
+ span: 1,
78
+ pattern: library.config.DEFAULT_DATE_PATTERN
79
+ },
80
+ smallInterval: {
81
+ unit: TimeUnit.hour,
82
+ span: 6,
83
+ pattern: library.config.DEFAULT_TIME_PATTERN
84
+ }
85
+ },
86
+ "DayDate": {
87
+ text: oRb.getText("SWZS_DATE_1"),
88
+ innerInterval: {
89
+ unit: TimeUnit.day,
90
+ span: 1,
91
+ range: 64
92
+ },
93
+ largeInterval: {
94
+ unit: TimeUnit.week,
95
+ span: 1,
96
+ //first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
97
+ pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
98
+ },
99
+ smallInterval: {
100
+ unit: TimeUnit.day,
101
+ span: 1,
102
+ //e.g. Mon 22, Tue 23
103
+ pattern: Core.getConfiguration().getRTL() ? "dd EEE " : "EEE dd "
104
+ }
105
+ },
106
+ "Date": {
107
+ text: oRb.getText("SWZS_DATE_2"),
108
+ innerInterval: {
109
+ unit: TimeUnit.day,
110
+ span: 1,
111
+ range: 32
112
+ },
113
+ largeInterval: {
114
+ unit: TimeUnit.week,
115
+ span: 1,
116
+ //first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
117
+ pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
118
+ },
119
+ smallInterval: {
120
+ unit: TimeUnit.day,
121
+ span: 1,
122
+ pattern: "dd "
123
+ }
124
+ },
125
+ "CWWeek": {
126
+ text: oRb.getText("SWZS_WEEK_1"),
127
+ innerInterval: {
128
+ unit: TimeUnit.week,
129
+ span: 1,
130
+ range: 56
131
+ },
132
+ largeInterval: {
133
+ unit: TimeUnit.month,
134
+ span: 1,
135
+ //first label: Jan 2015, others: Feb, Mar...
136
+ pattern: "LLL yyyy "
137
+ },
138
+ smallInterval: {
139
+ unit: TimeUnit.week,
140
+ span: 1,
141
+ //e.g. CW 01, CW 02...
142
+ pattern: "'" + oRb.getText("SWZS_CW") + "' ww "
143
+ }
144
+ },
145
+ "WeekOfYear": {
146
+ text: oRb.getText("SWZS_WEEK_2"),
147
+ innerInterval: {
148
+ unit: TimeUnit.week,
149
+ span: 1,
150
+ range: 32
151
+ },
152
+ largeInterval: {
153
+ unit: TimeUnit.month,
154
+ span: 1,
155
+ //first label: Jan 2015, others: Feb, Mar...
156
+ pattern: "LLL yyyy "
157
+ },
158
+ smallInterval: {
159
+ unit: TimeUnit.week,
160
+ span: 1,
161
+ //e.g. 01, 02..., 53
162
+ pattern: "ww "
163
+ }
164
+ },
165
+ "Month": {
166
+ text: oRb.getText("SWZS_MONTH"),
167
+ innerInterval: {
168
+ unit: TimeUnit.day,
169
+ span: 30,
170
+ range: 48
171
+ },
172
+ largeInterval: {
173
+ unit: TimeUnit.month,
174
+ span: 3,
175
+ pattern: "yyyy QQQ "
176
+ },
177
+ smallInterval: {
178
+ unit: TimeUnit.month,
179
+ span: 1,
180
+ pattern: "LLL "
181
+ }
182
+ },
183
+ "Quarter": {
184
+ text: oRb.getText("SWZS_QUARTER"),
185
+ innerInterval: {
186
+ unit: TimeUnit.day,
187
+ span: 90,
188
+ range: 48
189
+ },
190
+ largeInterval: {
191
+ unit: TimeUnit.year,
192
+ span: 1,
193
+ //first label: 2015, Q1, others Q2, Q3, Q4, 2016 Q1, Q2...
194
+ pattern: "yyyy "
195
+ },
196
+ smallInterval: {
197
+ unit: TimeUnit.month,
198
+ span: 3,
199
+ pattern: "QQQ "
200
+ }
201
+ },
202
+ "Year": {
203
+ text: oRb.getText("SWZS_YEAR"),
204
+ innerInterval: {
205
+ unit: TimeUnit.day,
206
+ span: 360,
207
+ range: 48
208
+ },
209
+ largeInterval: {
210
+ unit: TimeUnit.year,
211
+ span: 5,
212
+ pattern: "yyyy "
213
+ },
214
+ smallInterval: {
215
+ unit: TimeUnit.year,
216
+ span: 1,
217
+ pattern: "yyyy "
218
+ }
219
+ }
220
+ };}, true);