@sapui5/sap.gantt 1.132.0 → 1.133.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 +1 -1
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +24 -4
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +2 -1
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +2 -1
- 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 +1 -1
- 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/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 +1 -1
- 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/AdhocLine.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/VerticalLine.js +1 -1
- 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/layouts/SidePanel.js +1 -1
- package/src/sap/gantt/legend/DimensionLegend.js +1 -1
- 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 +2 -2
- 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/overlays/GanttRowOverlay.js +1 -1
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/sap/gantt/simple/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +1 -1
- 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 -9
- 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 -1
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +16 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +52 -2
- 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 +1 -1
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +5 -4
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttUtils.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +3 -1
- 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/PrintConfig.js +7 -7
- package/src/sap/gantt/simple/PrintDialogTemplate.js +1 -1
- package/src/sap/gantt/simple/PrintUtils.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +1 -1
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/ShapeStyle.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/skipTime/DayInterval.js +1 -1
- package/src/sap/gantt/skipTime/DiscontinuousProvider.js +1 -1
- package/src/sap/gantt/skipTime/SkipInterval.js +1 -1
- package/src/sap/gantt/skipTime/SkipPattern.js +1 -1
- package/src/sap/gantt/skipTime/WeekPattern.js +1 -1
- package/src/sap/gantt/themes/base/Gantt.less +16 -1
package/package.json
CHANGED
package/src/sap/gantt/.library
CHANGED
|
@@ -20,6 +20,9 @@ sap.ui.define([
|
|
|
20
20
|
"sap/ui/core/date/CalendarUtils",
|
|
21
21
|
"sap/base/i18n/Localization",
|
|
22
22
|
"sap/base/i18n/Formatting",
|
|
23
|
+
"sap/base/i18n/date/CalendarType",
|
|
24
|
+
"sap/gantt/simple/GanttUtils",
|
|
25
|
+
"sap/base/i18n/date/CalendarWeekNumbering",
|
|
23
26
|
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
24
27
|
"sap/gantt/polyfills/lib"
|
|
25
28
|
], function (
|
|
@@ -38,6 +41,9 @@ sap.ui.define([
|
|
|
38
41
|
CalendarUtils,
|
|
39
42
|
Localization,
|
|
40
43
|
Formatting,
|
|
44
|
+
CalendarType,
|
|
45
|
+
GanttUtils,
|
|
46
|
+
_CalendarWeekNumbering, // implicitly required by property `calendarWeekNumbering`
|
|
41
47
|
GanttChartConfigurationUtils
|
|
42
48
|
) {
|
|
43
49
|
"use strict";
|
|
@@ -74,7 +80,7 @@ sap.ui.define([
|
|
|
74
80
|
* @abstract
|
|
75
81
|
*
|
|
76
82
|
* @author SAP SE
|
|
77
|
-
* @version 1.
|
|
83
|
+
* @version 1.133.0
|
|
78
84
|
*
|
|
79
85
|
* @constructor
|
|
80
86
|
* @public
|
|
@@ -176,10 +182,10 @@ sap.ui.define([
|
|
|
176
182
|
zoomLevel: {type: "int", defaultValue: 0},
|
|
177
183
|
/**
|
|
178
184
|
* Configures the calendar type for the Gantt Chart time label.
|
|
179
|
-
* We recommend that you set the type of this argument to <code>sap
|
|
185
|
+
* We recommend that you set the type of this argument to <code>sap/base/i18n/date/CalendarType</code>.
|
|
180
186
|
* Otherwise some properties you set may not function properly.
|
|
181
187
|
*/
|
|
182
|
-
calendarType: {type: "string", defaultValue:
|
|
188
|
+
calendarType: {type: "string", defaultValue: CalendarType.Gregorian},
|
|
183
189
|
/**
|
|
184
190
|
* Configures the locale of the Gantt Chart time label.
|
|
185
191
|
* We recommend that you set the type of this argument to <code>sap.ui.core.Locale</code>.
|
|
@@ -201,7 +207,7 @@ sap.ui.define([
|
|
|
201
207
|
* If not set, the calendar week numbering of the global configuration is used.
|
|
202
208
|
* @since 1.110.0
|
|
203
209
|
*/
|
|
204
|
-
calendarWeekNumbering: {type: "sap.
|
|
210
|
+
calendarWeekNumbering: {type: "sap.base.i18n.date.CalendarWeekNumbering", defaultValue: null},
|
|
205
211
|
/**
|
|
206
212
|
* Discontinuity provider for the skip time pattern.
|
|
207
213
|
* @private since 1.126
|
|
@@ -756,6 +762,20 @@ sap.ui.define([
|
|
|
756
762
|
}
|
|
757
763
|
};
|
|
758
764
|
|
|
765
|
+
/**
|
|
766
|
+
* Calculate and set new visible horizon upon zooming in on a selected shape
|
|
767
|
+
* @param {number} iCurrentZoomLevel the current zoom level of gantt chart
|
|
768
|
+
* @param {number} iZoomLevel the zoom level to be set
|
|
769
|
+
* @private
|
|
770
|
+
*/
|
|
771
|
+
AxisTimeStrategyBase.prototype._focusOnZoom = function(iCurrentZoomLevel, iZoomLevel) {
|
|
772
|
+
var oGantt = this.getParent();
|
|
773
|
+
var oGanttContainer = oGantt ? oGantt.getParent() : null;
|
|
774
|
+
if (oGanttContainer && oGanttContainer.isA("sap.gantt.simple.GanttChartContainer") && oGanttContainer.getEnableAutoFocusOnZoom() && iCurrentZoomLevel < iZoomLevel) {
|
|
775
|
+
GanttUtils._calculateSelectedShapeMinTime(oGanttContainer);
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
|
|
759
779
|
/**
|
|
760
780
|
* Calculate and set new visible horizon for fine granular mouse wheel zoom
|
|
761
781
|
* @param {Date} oTimeAtZoomCenter the time where mouse pointer located during the zooming
|
|
@@ -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.133.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
@@ -154,6 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
performance.mark("ProportionZoomStrategy.setZoomLevel--start");
|
|
155
155
|
var visibleHorizonUpdateSubType = sap.gantt.simple.VisibleHorizonUpdateSubType;
|
|
156
156
|
if (iZoomLevel >= 0 && iZoomLevel !== this.getZoomLevel()) {
|
|
157
|
+
this._focusOnZoom(this.getZoomLevel(), iZoomLevel);
|
|
157
158
|
var subReasonCode = iZoomLevel > this.getZoomLevel() ? visibleHorizonUpdateSubType.ZoomIn : visibleHorizonUpdateSubType.ZoomOut;
|
|
158
159
|
this.setProperty("zoomLevel", iZoomLevel, true);
|
|
159
160
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
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
|
|
24
24
|
* is pre-defined and won't be changed during zooming.
|
|
25
25
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.133.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -217,6 +217,7 @@ sap.ui.define([
|
|
|
217
217
|
if (iZoomLevel >= 0) {
|
|
218
218
|
this.iLastZoomLevel = this.getZoomLevel();
|
|
219
219
|
this.setProperty("zoomLevel", iZoomLevel, true);
|
|
220
|
+
this._focusOnZoom(this.iLastZoomLevel, iZoomLevel);
|
|
220
221
|
this.setProperty("timeLineOption", this._getTimeLineOptionByIndex(iZoomLevel), true);
|
|
221
222
|
|
|
222
223
|
if (this._aZoomRate[iZoomLevel] && this.getGanttVisibleWidth()) {
|