@sapui5/sap.gantt 1.117.0 → 1.119.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/package.json +1 -1
- package/src/sap/gantt/.library +1 -1
- package/src/sap/gantt/AdhocLine.js +1 -1
- package/src/sap/gantt/GanttChart.js +1 -1
- package/src/sap/gantt/GanttChartBase.js +2 -2
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +2 -11
- package/src/sap/gantt/axistime/FullScreenStrategy.js +9 -8
- package/src/sap/gantt/axistime/FullScreenTimeLineOptions.js +6 -0
- package/src/sap/gantt/axistime/ProportionTimeLineOptions.js +6 -0
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +8 -8
- package/src/sap/gantt/axistime/StepwiseTimeLineOptions.js +219 -0
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +4 -221
- package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
- package/src/sap/gantt/config/ChartScheme.js +1 -1
- package/src/sap/gantt/config/ColumnAttribute.js +1 -1
- package/src/sap/gantt/config/ContainerLayout.js +1 -1
- package/src/sap/gantt/config/ExpandChart.js +1 -1
- package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
- package/src/sap/gantt/config/GanttChartLayout.js +1 -1
- package/src/sap/gantt/config/Hierarchy.js +1 -1
- package/src/sap/gantt/config/HierarchyColumn.js +1 -1
- package/src/sap/gantt/config/LayoutGroup.js +1 -1
- package/src/sap/gantt/config/Locale.js +35 -5
- package/src/sap/gantt/config/Mode.js +1 -1
- package/src/sap/gantt/config/ModeGroup.js +1 -1
- package/src/sap/gantt/config/ObjectType.js +1 -1
- package/src/sap/gantt/config/SettingGroup.js +1 -1
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +1 -1
- package/src/sap/gantt/config/TimeAxis.js +1 -1
- package/src/sap/gantt/config/TimeHorizon.js +1 -1
- package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarScheme.js +1 -1
- package/src/sap/gantt/control/Cell.js +1 -1
- package/src/sap/gantt/control/Toolbar.js +4 -2
- package/src/sap/gantt/def/DefBase.js +1 -1
- package/src/sap/gantt/def/SvgDefs.js +1 -1
- package/src/sap/gantt/def/cal/Calendar.js +1 -1
- package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
- package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
- package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
- package/src/sap/gantt/def/gradient/LinearGradient.js +15 -6
- package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
- package/src/sap/gantt/def/gradient/Stop.js +1 -1
- package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
- package/src/sap/gantt/drawer/CursorLine.js +10 -3
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/Legend.js +3 -2
- package/src/sap/gantt/drawer/ShapeInRow.js +4 -4
- package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
- package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
- package/src/sap/gantt/flexibility/simple/GanttChartContainer.flexibility.js +5 -4
- package/src/sap/gantt/flexibility/simple/GanttTableColumn.flexibility.js +5 -4
- package/src/sap/gantt/legend/DimensionLegend.js +4 -4
- package/src/sap/gantt/legend/LegendBase.js +1 -1
- package/src/sap/gantt/legend/LegendContainer.js +1 -1
- package/src/sap/gantt/legend/ListLegend.js +1 -1
- package/src/sap/gantt/library.js +53 -9
- package/src/sap/gantt/messagebundle.properties +21 -21
- package/src/sap/gantt/messagebundle_ar.properties +5 -5
- package/src/sap/gantt/messagebundle_bg.properties +5 -5
- package/src/sap/gantt/messagebundle_ca.properties +5 -5
- package/src/sap/gantt/messagebundle_cs.properties +5 -5
- package/src/sap/gantt/messagebundle_cy.properties +5 -5
- package/src/sap/gantt/messagebundle_da.properties +5 -5
- package/src/sap/gantt/messagebundle_de.properties +5 -5
- package/src/sap/gantt/messagebundle_el.properties +5 -5
- package/src/sap/gantt/messagebundle_en_US_sappsd.properties +21 -21
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +21 -21
- package/src/sap/gantt/messagebundle_en_US_saptrc.properties +21 -21
- package/src/sap/gantt/messagebundle_es.properties +5 -5
- package/src/sap/gantt/messagebundle_es_MX.properties +5 -5
- package/src/sap/gantt/messagebundle_et.properties +5 -5
- package/src/sap/gantt/messagebundle_fi.properties +5 -5
- package/src/sap/gantt/messagebundle_fr.properties +5 -5
- package/src/sap/gantt/messagebundle_fr_CA.properties +5 -5
- package/src/sap/gantt/messagebundle_hi.properties +5 -5
- package/src/sap/gantt/messagebundle_hr.properties +5 -5
- package/src/sap/gantt/messagebundle_hu.properties +5 -5
- package/src/sap/gantt/messagebundle_id.properties +5 -5
- package/src/sap/gantt/messagebundle_it.properties +5 -5
- package/src/sap/gantt/messagebundle_iw.properties +5 -5
- package/src/sap/gantt/messagebundle_ja.properties +5 -5
- package/src/sap/gantt/messagebundle_kk.properties +5 -5
- package/src/sap/gantt/messagebundle_ko.properties +5 -5
- package/src/sap/gantt/messagebundle_lt.properties +5 -5
- package/src/sap/gantt/messagebundle_lv.properties +5 -5
- package/src/sap/gantt/messagebundle_ms.properties +5 -5
- package/src/sap/gantt/messagebundle_nl.properties +5 -5
- package/src/sap/gantt/messagebundle_no.properties +5 -5
- package/src/sap/gantt/messagebundle_pl.properties +5 -5
- package/src/sap/gantt/messagebundle_pt.properties +5 -5
- package/src/sap/gantt/messagebundle_pt_PT.properties +5 -5
- package/src/sap/gantt/messagebundle_ro.properties +5 -5
- package/src/sap/gantt/messagebundle_ru.properties +5 -5
- package/src/sap/gantt/messagebundle_sh.properties +5 -5
- package/src/sap/gantt/messagebundle_sk.properties +5 -5
- package/src/sap/gantt/messagebundle_sl.properties +5 -5
- package/src/sap/gantt/messagebundle_sv.properties +5 -5
- package/src/sap/gantt/messagebundle_th.properties +5 -5
- package/src/sap/gantt/messagebundle_tr.properties +5 -5
- package/src/sap/gantt/messagebundle_uk.properties +5 -5
- package/src/sap/gantt/messagebundle_vi.properties +5 -5
- package/src/sap/gantt/messagebundle_zh_CN.properties +5 -5
- package/src/sap/gantt/messagebundle_zh_TW.properties +5 -5
- package/src/sap/gantt/misc/AxisOrdinal.js +3 -3
- package/src/sap/gantt/misc/AxisTime.js +17 -37
- package/src/sap/gantt/misc/Format.js +56 -12
- package/src/sap/gantt/misc/Memoizer.js +1 -1
- package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
- package/src/sap/gantt/misc/ShapeManager.js +1 -1
- package/src/sap/gantt/misc/Utility.js +5 -2
- package/src/sap/gantt/shape/Circle.js +1 -1
- package/src/sap/gantt/shape/ClipPath.js +1 -1
- package/src/sap/gantt/shape/Definitions.js +1 -1
- package/src/sap/gantt/shape/Group.js +1 -1
- package/src/sap/gantt/shape/Image.js +1 -1
- package/src/sap/gantt/shape/Line.js +1 -1
- package/src/sap/gantt/shape/Path.js +1 -1
- package/src/sap/gantt/shape/Polygon.js +1 -1
- package/src/sap/gantt/shape/Polyline.js +1 -1
- package/src/sap/gantt/shape/Rectangle.js +1 -1
- package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
- package/src/sap/gantt/shape/SelectedShape.js +1 -1
- package/src/sap/gantt/shape/Shape.js +1 -1
- package/src/sap/gantt/shape/Text.js +4 -4
- package/src/sap/gantt/shape/cal/Calendar.js +1 -1
- package/src/sap/gantt/shape/ext/Chevron.js +1 -1
- package/src/sap/gantt/shape/ext/Cursor.js +1 -1
- package/src/sap/gantt/shape/ext/Diamond.js +1 -1
- package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
- package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
- package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
- package/src/sap/gantt/shape/ext/Triangle.js +1 -1
- package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
- package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
- package/src/sap/gantt/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/simple/BaseCalendar.js +1 -1
- package/src/sap/gantt/simple/BaseChevron.js +1 -1
- package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
- package/src/sap/gantt/simple/BaseCursor.js +1 -1
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseDiamond.js +1 -1
- package/src/sap/gantt/simple/BaseGroup.js +1 -1
- package/src/sap/gantt/simple/BaseImage.js +1 -1
- package/src/sap/gantt/simple/BaseLine.js +1 -1
- package/src/sap/gantt/simple/BasePath.js +1 -1
- package/src/sap/gantt/simple/BasePseudoShape.js +10 -7
- package/src/sap/gantt/simple/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +34 -17
- package/src/sap/gantt/simple/BaseText.js +1 -1
- package/src/sap/gantt/simple/BaseTriangle.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbar.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
- package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
- package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
- package/src/sap/gantt/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +1 -5
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +61 -42
- package/src/sap/gantt/simple/GanttDragDropExtension.js +1 -1
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +1 -1
- package/src/sap/gantt/simple/GanttPointerExtension.js +3 -2
- package/src/sap/gantt/simple/GanttPopoverExtension.js +4 -3
- package/src/sap/gantt/simple/GanttPrinting.js +284 -83
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttSyncedControl.js +6 -0
- package/src/sap/gantt/simple/GanttUtils.js +30 -26
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +0 -5
- package/src/sap/gantt/simple/LegendContainer.js +1 -1
- package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +1 -1
- package/src/sap/gantt/simple/RenderUtils.js +41 -26
- package/src/sap/gantt/simple/SelectionModel.js +5 -4
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +1 -1
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
- package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
- package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
- package/src/sap/gantt/simple/shapes/Shape.js +1 -1
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/utils/GanttFlexibilityUtils.js +3 -3
package/package.json
CHANGED
package/src/sap/gantt/.library
CHANGED
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @abstract
|
|
64
64
|
*
|
|
65
65
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.119.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.
|
|
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'.
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @abstract
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.119.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @public
|
|
@@ -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()){
|
|
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.
|
|
49
|
+
* @version 1.119.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",
|
|
62
|
-
this.setProperty("finestTimeLineOption",
|
|
63
|
-
this.setProperty("timeLineOptions",
|
|
64
|
-
this.setProperty("timeLineOption",
|
|
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);
|
|
@@ -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
|
-
|
|
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.
|
|
40
|
+
* @version 1.119.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",
|
|
55
|
-
this.setProperty("finestTimeLineOption",
|
|
56
|
-
this.setProperty("timeLineOptions",
|
|
57
|
-
this.setProperty("timeLineOption",
|
|
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,219 @@
|
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/gantt/library"
|
|
3
|
+
],function(library) {
|
|
4
|
+
"use strict";
|
|
5
|
+
var oRb = sap.ui.getCore().getLibraryResourceBundle("sap.gantt");
|
|
6
|
+
|
|
7
|
+
var TimeUnit = library.config.TimeUnit;
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
"FiveMinutes": {
|
|
11
|
+
text: oRb.getText("SWZS_FIVE_MINUTES"),
|
|
12
|
+
innerInterval: {
|
|
13
|
+
unit: TimeUnit.minute,
|
|
14
|
+
span: 5,
|
|
15
|
+
range: 32 //2rem
|
|
16
|
+
},
|
|
17
|
+
largeInterval: {
|
|
18
|
+
unit: TimeUnit.hour,
|
|
19
|
+
span: 1,
|
|
20
|
+
//first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
|
|
21
|
+
pattern: "ha / MMMM dd, yyyy "
|
|
22
|
+
},
|
|
23
|
+
smallInterval: {
|
|
24
|
+
unit: TimeUnit.minute,
|
|
25
|
+
span: 5,
|
|
26
|
+
//e.g. 00, 05, ...55
|
|
27
|
+
pattern: "mm "
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"FifteenMinutes": {
|
|
31
|
+
text: oRb.getText("SWZS_FIFTEEN_MINUTES"),
|
|
32
|
+
innerInterval: {
|
|
33
|
+
unit: TimeUnit.minute,
|
|
34
|
+
span: 15,
|
|
35
|
+
range: 48
|
|
36
|
+
},
|
|
37
|
+
largeInterval: {
|
|
38
|
+
unit: TimeUnit.hour,
|
|
39
|
+
span: 1,
|
|
40
|
+
//first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
|
|
41
|
+
pattern: "ha / MMMM dd, yyyy "
|
|
42
|
+
},
|
|
43
|
+
smallInterval: {
|
|
44
|
+
unit: TimeUnit.minute,
|
|
45
|
+
span: 15,
|
|
46
|
+
pattern: "mm "
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"Hour": {
|
|
50
|
+
text: oRb.getText("SWZS_HOUR"),
|
|
51
|
+
innerInterval: {
|
|
52
|
+
unit: TimeUnit.hour,
|
|
53
|
+
span: 1,
|
|
54
|
+
range: 48
|
|
55
|
+
},
|
|
56
|
+
largeInterval: {
|
|
57
|
+
unit: TimeUnit.day,
|
|
58
|
+
span: 1,
|
|
59
|
+
pattern: library.config.DEFAULT_DATE_PATTERN
|
|
60
|
+
},
|
|
61
|
+
smallInterval: {
|
|
62
|
+
unit: TimeUnit.hour,
|
|
63
|
+
span: 1,
|
|
64
|
+
pattern: library.config.DEFAULT_TIME_PATTERN
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"SixHours": {
|
|
68
|
+
text: oRb.getText("SWZS_SIX_HOURS"),
|
|
69
|
+
innerInterval: {
|
|
70
|
+
unit: TimeUnit.hour,
|
|
71
|
+
span: 6,
|
|
72
|
+
range: 64
|
|
73
|
+
},
|
|
74
|
+
largeInterval: {
|
|
75
|
+
unit: TimeUnit.day,
|
|
76
|
+
span: 1,
|
|
77
|
+
pattern: library.config.DEFAULT_DATE_PATTERN
|
|
78
|
+
},
|
|
79
|
+
smallInterval: {
|
|
80
|
+
unit: TimeUnit.hour,
|
|
81
|
+
span: 6,
|
|
82
|
+
pattern: library.config.DEFAULT_TIME_PATTERN
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"DayDate": {
|
|
86
|
+
text: oRb.getText("SWZS_DATE_1"),
|
|
87
|
+
innerInterval: {
|
|
88
|
+
unit: TimeUnit.day,
|
|
89
|
+
span: 1,
|
|
90
|
+
range: 64
|
|
91
|
+
},
|
|
92
|
+
largeInterval: {
|
|
93
|
+
unit: TimeUnit.week,
|
|
94
|
+
span: 1,
|
|
95
|
+
//first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
|
|
96
|
+
pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
|
|
97
|
+
},
|
|
98
|
+
smallInterval: {
|
|
99
|
+
unit: TimeUnit.day,
|
|
100
|
+
span: 1,
|
|
101
|
+
//e.g. Mon 22, Tue 23
|
|
102
|
+
pattern: sap.ui.getCore().getConfiguration().getRTL() ? "dd EEE " : "EEE dd "
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"Date": {
|
|
106
|
+
text: oRb.getText("SWZS_DATE_2"),
|
|
107
|
+
innerInterval: {
|
|
108
|
+
unit: TimeUnit.day,
|
|
109
|
+
span: 1,
|
|
110
|
+
range: 32
|
|
111
|
+
},
|
|
112
|
+
largeInterval: {
|
|
113
|
+
unit: TimeUnit.week,
|
|
114
|
+
span: 1,
|
|
115
|
+
//first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
|
|
116
|
+
pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
|
|
117
|
+
},
|
|
118
|
+
smallInterval: {
|
|
119
|
+
unit: TimeUnit.day,
|
|
120
|
+
span: 1,
|
|
121
|
+
pattern: "dd "
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"CWWeek": {
|
|
125
|
+
text: oRb.getText("SWZS_WEEK_1"),
|
|
126
|
+
innerInterval: {
|
|
127
|
+
unit: TimeUnit.week,
|
|
128
|
+
span: 1,
|
|
129
|
+
range: 56
|
|
130
|
+
},
|
|
131
|
+
largeInterval: {
|
|
132
|
+
unit: TimeUnit.month,
|
|
133
|
+
span: 1,
|
|
134
|
+
//first label: Jan 2015, others: Feb, Mar...
|
|
135
|
+
pattern: "LLL yyyy "
|
|
136
|
+
},
|
|
137
|
+
smallInterval: {
|
|
138
|
+
unit: TimeUnit.week,
|
|
139
|
+
span: 1,
|
|
140
|
+
//e.g. CW 01, CW 02...
|
|
141
|
+
pattern: "'" + oRb.getText("SWZS_CW") + "' ww "
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"WeekOfYear": {
|
|
145
|
+
text: oRb.getText("SWZS_WEEK_2"),
|
|
146
|
+
innerInterval: {
|
|
147
|
+
unit: TimeUnit.week,
|
|
148
|
+
span: 1,
|
|
149
|
+
range: 32
|
|
150
|
+
},
|
|
151
|
+
largeInterval: {
|
|
152
|
+
unit: TimeUnit.month,
|
|
153
|
+
span: 1,
|
|
154
|
+
//first label: Jan 2015, others: Feb, Mar...
|
|
155
|
+
pattern: "LLL yyyy "
|
|
156
|
+
},
|
|
157
|
+
smallInterval: {
|
|
158
|
+
unit: TimeUnit.week,
|
|
159
|
+
span: 1,
|
|
160
|
+
//e.g. 01, 02..., 53
|
|
161
|
+
pattern: "ww "
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"Month": {
|
|
165
|
+
text: oRb.getText("SWZS_MONTH"),
|
|
166
|
+
innerInterval: {
|
|
167
|
+
unit: TimeUnit.day,
|
|
168
|
+
span: 30,
|
|
169
|
+
range: 48
|
|
170
|
+
},
|
|
171
|
+
largeInterval: {
|
|
172
|
+
unit: TimeUnit.month,
|
|
173
|
+
span: 3,
|
|
174
|
+
pattern: "yyyy QQQ "
|
|
175
|
+
},
|
|
176
|
+
smallInterval: {
|
|
177
|
+
unit: TimeUnit.month,
|
|
178
|
+
span: 1,
|
|
179
|
+
pattern: "LLL "
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"Quarter": {
|
|
183
|
+
text: oRb.getText("SWZS_QUARTER"),
|
|
184
|
+
innerInterval: {
|
|
185
|
+
unit: TimeUnit.day,
|
|
186
|
+
span: 90,
|
|
187
|
+
range: 48
|
|
188
|
+
},
|
|
189
|
+
largeInterval: {
|
|
190
|
+
unit: TimeUnit.year,
|
|
191
|
+
span: 1,
|
|
192
|
+
//first label: 2015, Q1, others Q2, Q3, Q4, 2016 Q1, Q2...
|
|
193
|
+
pattern: "yyyy "
|
|
194
|
+
},
|
|
195
|
+
smallInterval: {
|
|
196
|
+
unit: TimeUnit.month,
|
|
197
|
+
span: 3,
|
|
198
|
+
pattern: "QQQ "
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"Year": {
|
|
202
|
+
text: oRb.getText("SWZS_YEAR"),
|
|
203
|
+
innerInterval: {
|
|
204
|
+
unit: TimeUnit.day,
|
|
205
|
+
span: 360,
|
|
206
|
+
range: 48
|
|
207
|
+
},
|
|
208
|
+
largeInterval: {
|
|
209
|
+
unit: TimeUnit.year,
|
|
210
|
+
span: 5,
|
|
211
|
+
pattern: "yyyy "
|
|
212
|
+
},
|
|
213
|
+
smallInterval: {
|
|
214
|
+
unit: TimeUnit.year,
|
|
215
|
+
span: 1,
|
|
216
|
+
pattern: "yyyy "
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};}, true);
|
|
@@ -8,228 +8,11 @@ sap.ui.define([
|
|
|
8
8
|
"sap/gantt/library",
|
|
9
9
|
"sap/base/util/ObjectPath",
|
|
10
10
|
"./AxisTimeStrategyBase",
|
|
11
|
-
"../misc/Format"
|
|
12
|
-
|
|
11
|
+
"../misc/Format",
|
|
12
|
+
"sap/gantt/axistime/StepwiseTimeLineOptions"
|
|
13
|
+
],function(library, ObjectPath, AxisTimeStrategyBase, Format, StepwiseTimeLineOptions) {
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
15
|
-
var oRb = sap.ui.getCore().getLibraryResourceBundle("sap.gantt");
|
|
16
|
-
|
|
17
|
-
var TimeUnit = library.config.TimeUnit;
|
|
18
|
-
|
|
19
|
-
sap.gantt.axistime.StepwiseTimeLineOptions = {
|
|
20
|
-
"FiveMinutes": {
|
|
21
|
-
text: oRb.getText("SWZS_FIVE_MINUTES"),
|
|
22
|
-
innerInterval: {
|
|
23
|
-
unit: TimeUnit.minute,
|
|
24
|
-
span: 5,
|
|
25
|
-
range: 32 //2rem
|
|
26
|
-
},
|
|
27
|
-
largeInterval: {
|
|
28
|
-
unit: TimeUnit.hour,
|
|
29
|
-
span: 1,
|
|
30
|
-
//first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
|
|
31
|
-
pattern: "ha / MMMM dd, yyyy "
|
|
32
|
-
},
|
|
33
|
-
smallInterval: {
|
|
34
|
-
unit: TimeUnit.minute,
|
|
35
|
-
span: 5,
|
|
36
|
-
//e.g. 00, 05, ...55
|
|
37
|
-
pattern: "mm "
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"FifteenMinutes": {
|
|
41
|
-
text: oRb.getText("SWZS_FIFTEEN_MINUTES"),
|
|
42
|
-
innerInterval: {
|
|
43
|
-
unit: TimeUnit.minute,
|
|
44
|
-
span: 15,
|
|
45
|
-
range: 48
|
|
46
|
-
},
|
|
47
|
-
largeInterval: {
|
|
48
|
-
unit: TimeUnit.hour,
|
|
49
|
-
span: 1,
|
|
50
|
-
//first label e.g.: 9AM / July 12, 2016; others e.g.: "10AM"
|
|
51
|
-
pattern: "ha / MMMM dd, yyyy "
|
|
52
|
-
},
|
|
53
|
-
smallInterval: {
|
|
54
|
-
unit: TimeUnit.minute,
|
|
55
|
-
span: 15,
|
|
56
|
-
pattern: "mm "
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"Hour": {
|
|
60
|
-
text: oRb.getText("SWZS_HOUR"),
|
|
61
|
-
innerInterval: {
|
|
62
|
-
unit: TimeUnit.hour,
|
|
63
|
-
span: 1,
|
|
64
|
-
range: 48
|
|
65
|
-
},
|
|
66
|
-
largeInterval: {
|
|
67
|
-
unit: TimeUnit.day,
|
|
68
|
-
span: 1,
|
|
69
|
-
pattern: library.config.DEFAULT_DATE_PATTERN
|
|
70
|
-
},
|
|
71
|
-
smallInterval: {
|
|
72
|
-
unit: TimeUnit.hour,
|
|
73
|
-
span: 1,
|
|
74
|
-
pattern: library.config.DEFAULT_TIME_PATTERN
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"SixHours": {
|
|
78
|
-
text: oRb.getText("SWZS_SIX_HOURS"),
|
|
79
|
-
innerInterval: {
|
|
80
|
-
unit: TimeUnit.hour,
|
|
81
|
-
span: 6,
|
|
82
|
-
range: 64
|
|
83
|
-
},
|
|
84
|
-
largeInterval: {
|
|
85
|
-
unit: TimeUnit.day,
|
|
86
|
-
span: 1,
|
|
87
|
-
pattern: library.config.DEFAULT_DATE_PATTERN
|
|
88
|
-
},
|
|
89
|
-
smallInterval: {
|
|
90
|
-
unit: TimeUnit.hour,
|
|
91
|
-
span: 6,
|
|
92
|
-
pattern: library.config.DEFAULT_TIME_PATTERN
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"DayDate": {
|
|
96
|
-
text: oRb.getText("SWZS_DATE_1"),
|
|
97
|
-
innerInterval: {
|
|
98
|
-
unit: TimeUnit.day,
|
|
99
|
-
span: 1,
|
|
100
|
-
range: 64
|
|
101
|
-
},
|
|
102
|
-
largeInterval: {
|
|
103
|
-
unit: TimeUnit.week,
|
|
104
|
-
span: 1,
|
|
105
|
-
//first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
|
|
106
|
-
pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
|
|
107
|
-
},
|
|
108
|
-
smallInterval: {
|
|
109
|
-
unit: TimeUnit.day,
|
|
110
|
-
span: 1,
|
|
111
|
-
//e.g. Mon 22, Tue 23
|
|
112
|
-
pattern: sap.ui.getCore().getConfiguration().getRTL() ? "dd EEE " : "EEE dd "
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"Date": {
|
|
116
|
-
text: oRb.getText("SWZS_DATE_2"),
|
|
117
|
-
innerInterval: {
|
|
118
|
-
unit: TimeUnit.day,
|
|
119
|
-
span: 1,
|
|
120
|
-
range: 32
|
|
121
|
-
},
|
|
122
|
-
largeInterval: {
|
|
123
|
-
unit: TimeUnit.week,
|
|
124
|
-
span: 1,
|
|
125
|
-
//first label e.g.: Jan 2015, Week 04; others e.g. Feb, Mar...
|
|
126
|
-
pattern: oRb.getText("SWZS_DATE_PATTERN", ["LLL yyyy, '", "' ww "])
|
|
127
|
-
},
|
|
128
|
-
smallInterval: {
|
|
129
|
-
unit: TimeUnit.day,
|
|
130
|
-
span: 1,
|
|
131
|
-
pattern: "dd "
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"CWWeek": {
|
|
135
|
-
text: oRb.getText("SWZS_WEEK_1"),
|
|
136
|
-
innerInterval: {
|
|
137
|
-
unit: TimeUnit.week,
|
|
138
|
-
span: 1,
|
|
139
|
-
range: 56
|
|
140
|
-
},
|
|
141
|
-
largeInterval: {
|
|
142
|
-
unit: TimeUnit.month,
|
|
143
|
-
span: 1,
|
|
144
|
-
//first label: Jan 2015, others: Feb, Mar...
|
|
145
|
-
pattern: "LLL yyyy "
|
|
146
|
-
},
|
|
147
|
-
smallInterval: {
|
|
148
|
-
unit: TimeUnit.week,
|
|
149
|
-
span: 1,
|
|
150
|
-
//e.g. CW 01, CW 02...
|
|
151
|
-
pattern: "'" + oRb.getText("SWZS_CW") + "' ww "
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"WeekOfYear": {
|
|
155
|
-
text: oRb.getText("SWZS_WEEK_2"),
|
|
156
|
-
innerInterval: {
|
|
157
|
-
unit: TimeUnit.week,
|
|
158
|
-
span: 1,
|
|
159
|
-
range: 32
|
|
160
|
-
},
|
|
161
|
-
largeInterval: {
|
|
162
|
-
unit: TimeUnit.month,
|
|
163
|
-
span: 1,
|
|
164
|
-
//first label: Jan 2015, others: Feb, Mar...
|
|
165
|
-
pattern: "LLL yyyy "
|
|
166
|
-
},
|
|
167
|
-
smallInterval: {
|
|
168
|
-
unit: TimeUnit.week,
|
|
169
|
-
span: 1,
|
|
170
|
-
//e.g. 01, 02..., 53
|
|
171
|
-
pattern: "ww "
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"Month": {
|
|
175
|
-
text: oRb.getText("SWZS_MONTH"),
|
|
176
|
-
innerInterval: {
|
|
177
|
-
unit: TimeUnit.day,
|
|
178
|
-
span: 30,
|
|
179
|
-
range: 48
|
|
180
|
-
},
|
|
181
|
-
largeInterval: {
|
|
182
|
-
unit: TimeUnit.month,
|
|
183
|
-
span: 3,
|
|
184
|
-
pattern: "yyyy QQQ "
|
|
185
|
-
},
|
|
186
|
-
smallInterval: {
|
|
187
|
-
unit: TimeUnit.month,
|
|
188
|
-
span: 1,
|
|
189
|
-
pattern: "LLL "
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"Quarter": {
|
|
193
|
-
text: oRb.getText("SWZS_QUARTER"),
|
|
194
|
-
innerInterval: {
|
|
195
|
-
unit: TimeUnit.day,
|
|
196
|
-
span: 90,
|
|
197
|
-
range: 48
|
|
198
|
-
},
|
|
199
|
-
largeInterval: {
|
|
200
|
-
unit: TimeUnit.year,
|
|
201
|
-
span: 1,
|
|
202
|
-
//first label: 2015, Q1, others Q2, Q3, Q4, 2016 Q1, Q2...
|
|
203
|
-
pattern: "yyyy "
|
|
204
|
-
},
|
|
205
|
-
smallInterval: {
|
|
206
|
-
unit: TimeUnit.month,
|
|
207
|
-
span: 3,
|
|
208
|
-
pattern: "QQQ "
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"Year": {
|
|
212
|
-
text: oRb.getText("SWZS_YEAR"),
|
|
213
|
-
innerInterval: {
|
|
214
|
-
unit: TimeUnit.day,
|
|
215
|
-
span: 360,
|
|
216
|
-
range: 48
|
|
217
|
-
},
|
|
218
|
-
largeInterval: {
|
|
219
|
-
unit: TimeUnit.year,
|
|
220
|
-
span: 5,
|
|
221
|
-
pattern: "yyyy "
|
|
222
|
-
},
|
|
223
|
-
smallInterval: {
|
|
224
|
-
unit: TimeUnit.year,
|
|
225
|
-
span: 1,
|
|
226
|
-
pattern: "yyyy "
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
var StepwiseTimeLineOptions = sap.gantt.axistime.StepwiseTimeLineOptions;
|
|
232
|
-
|
|
233
16
|
/**
|
|
234
17
|
* Constructor for a new StepwiseZoomStrategy.
|
|
235
18
|
*
|
|
@@ -240,7 +23,7 @@ sap.ui.define([
|
|
|
240
23
|
* The class allows you to define a zoom strategy whose time line options are stepwise, i.e. the width of each time line option
|
|
241
24
|
* is pre-defined and won't be changed during zooming.
|
|
242
25
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
243
|
-
* @version 1.
|
|
26
|
+
* @version 1.119.0
|
|
244
27
|
*
|
|
245
28
|
* @constructor
|
|
246
29
|
* @public
|