@sapui5/sap.gantt 1.120.7 → 1.120.9
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 +1 -1
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +1 -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/Drawer.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/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 -5
- 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 -1
- 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 +10 -4
- package/src/sap/gantt/simple/GanttDragDropExtension.js +10 -5
- 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 +2 -2
- package/src/sap/gantt/simple/GanttPrinting.js +1 -1
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -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/Relationship.js +1 -1
- 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 +2 -4
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
|
@@ -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.120.
|
|
20
|
+
* @version 1.120.9
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @static
|
|
@@ -168,7 +168,7 @@ sap.ui.define([
|
|
|
168
168
|
* @extend sap.ui.core.Control
|
|
169
169
|
*
|
|
170
170
|
* @author SAP SE
|
|
171
|
-
* @version 1.120.
|
|
171
|
+
* @version 1.120.9
|
|
172
172
|
* @since 1.60
|
|
173
173
|
*
|
|
174
174
|
* @constructor
|
|
@@ -351,7 +351,7 @@ sap.ui.define([
|
|
|
351
351
|
ghostAlignment: {type: "string", defaultValue: library.dragdrop.GhostAlignment.None},
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* 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.
|
|
354
|
+
* 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.
|
|
355
355
|
*/
|
|
356
356
|
showShapeTimeOnDrag: {type: "boolean", defaultValue: false},
|
|
357
357
|
|
|
@@ -505,7 +505,7 @@ sap.ui.define([
|
|
|
505
505
|
selectOnlyGraphicalShape: { type: "boolean", defaultValue: false },
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
|
-
* Option to show or hide shape labels on ghost while dragging.
|
|
508
|
+
* Option to show or hide shape labels on ghost while dragging. The property takes effect only when <code>enableMultipleGhosts</code> is set to true.
|
|
509
509
|
* @since 1.94
|
|
510
510
|
*/
|
|
511
511
|
showTextOnGhost: {type: "boolean", defaultValue: true},
|
|
@@ -590,7 +590,13 @@ sap.ui.define([
|
|
|
590
590
|
* Example: "shapes3,shapes2,shapes1" means shapes3 will be rendered at the bottom, and shapes1 will be rendered at the top
|
|
591
591
|
* @experimental since 1.113
|
|
592
592
|
*/
|
|
593
|
-
shapeRenderOrder: {type: "string[]", defaultValue: []}
|
|
593
|
+
shapeRenderOrder: {type: "string[]", defaultValue: []},
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Flag to enable displaying multiple ghosts when multiple shapes are selected and dragged.
|
|
597
|
+
* @internal
|
|
598
|
+
*/
|
|
599
|
+
enableMultipleGhosts: {type: "boolean", defaultValue: true}
|
|
594
600
|
},
|
|
595
601
|
aggregations: {
|
|
596
602
|
/**
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
*
|
|
97
97
|
* @extends sap.gantt.simple.GanttExtension
|
|
98
98
|
* @author SAP SE
|
|
99
|
-
* @version 1.120.
|
|
99
|
+
* @version 1.120.9
|
|
100
100
|
* @constructor
|
|
101
101
|
* @private
|
|
102
102
|
* @alias sap.gantt.simple.GanttExtension
|
|
@@ -368,9 +368,9 @@ sap.ui.define([
|
|
|
368
368
|
this._aVisibleDraggableShapes.push(oShape);
|
|
369
369
|
}
|
|
370
370
|
}.bind(this));
|
|
371
|
-
this.bMultipleGhosts = this._aVisibleDraggableShapes.length > 1;
|
|
371
|
+
this.bMultipleGhosts = this.getGantt().getEnableMultipleGhosts() && this._aVisibleDraggableShapes.length > 1;
|
|
372
372
|
this.mGhostLabelStyle = {};
|
|
373
|
-
this._bEnableRowHighlight = oDraggedShape.getDragHighlightRows().length > 0 &&
|
|
373
|
+
this._bEnableRowHighlight = oDraggedShape.getDragHighlightRows().length > 0 && (this._aVisibleDraggableShapes.length == 1);
|
|
374
374
|
|
|
375
375
|
DragDropHelper.addDragDropEventListeners(this.getGantt());
|
|
376
376
|
} else if (this.oSourceRow) {
|
|
@@ -1490,14 +1490,19 @@ sap.ui.define([
|
|
|
1490
1490
|
var oShape = Core.byId(oLastNode.id);
|
|
1491
1491
|
var bLabelFlag = !oShape && oLastNode.parentNode && Core.byId(oLastNode.parentNode.id) instanceof sap.gantt.simple.BaseGroup;
|
|
1492
1492
|
var bParentLabelFlag = !oShape && oLastNode.parentNode && oLastNode.parentNode.parentNode && Core.byId(oLastNode.parentNode.parentNode.id) instanceof sap.gantt.simple.BaseGroup;
|
|
1493
|
+
var bEnableMultipleGhosts = this.getGantt().getEnableMultipleGhosts();
|
|
1493
1494
|
if (bLabelFlag){
|
|
1494
1495
|
oShape = Core.byId(oLastNode.parentNode.id);
|
|
1495
1496
|
} else if (bParentLabelFlag){
|
|
1496
1497
|
oShape = Core.byId(oLastNode.parentNode.parentNode.id);
|
|
1497
1498
|
}
|
|
1498
|
-
if (bTargetShape && this.getGantt().getShowTextOnGhost()) {
|
|
1499
|
+
if (bEnableMultipleGhosts && bTargetShape && this.getGantt().getShowTextOnGhost()) {
|
|
1499
1500
|
sTextDom = this._getGhostLabel(oShape, oLastNode);
|
|
1500
1501
|
}
|
|
1502
|
+
if (!bEnableMultipleGhosts) {
|
|
1503
|
+
var sNumberOfObjects = this.getNumberOfDragObject(oLastNode);
|
|
1504
|
+
sTextDom = "<div id='sapGanttDragText' class='sapGanttDragTextOverlay " + oStyle.css + "'>" + sNumberOfObjects + "</div>";
|
|
1505
|
+
}
|
|
1501
1506
|
|
|
1502
1507
|
if (this.bMultipleGhosts){
|
|
1503
1508
|
var oNode;
|
|
@@ -1518,7 +1523,7 @@ sap.ui.define([
|
|
|
1518
1523
|
"<img class='sapGanttDragGhostImg' src='" + cropedImg + "'>" + sTextDom +
|
|
1519
1524
|
"</div>";
|
|
1520
1525
|
oGhostWrapperDom.insertAdjacentHTML('beforeend', sDragGhostDom);
|
|
1521
|
-
if (bTargetShape && this.getGantt().getShowTextOnGhost() && sTextDom !== "") {
|
|
1526
|
+
if (bEnableMultipleGhosts && bTargetShape && this.getGantt().getShowTextOnGhost() && sTextDom !== "") {
|
|
1522
1527
|
this._updateGhostLabelStyle();
|
|
1523
1528
|
}
|
|
1524
1529
|
};
|
|
@@ -79,7 +79,7 @@ function(
|
|
|
79
79
|
*
|
|
80
80
|
* @extends sap.gantt.simple.GanttExtension
|
|
81
81
|
* @author SAP SE
|
|
82
|
-
* @version 1.120.
|
|
82
|
+
* @version 1.120.9
|
|
83
83
|
* @constructor
|
|
84
84
|
* @private
|
|
85
85
|
* @alias sap.gantt.simple.GanttPopoverExtension
|
|
@@ -154,7 +154,7 @@ function(
|
|
|
154
154
|
GanttPopoverExtension.prototype.onMouseDown = function(oEvent) {
|
|
155
155
|
var oSelection = this.getGantt().getSelection();
|
|
156
156
|
var iSelectedDraggableShapes = oSelection.numberOfSelectedDraggableShapes();
|
|
157
|
-
this.bMultipleShapes = iSelectedDraggableShapes > 1;
|
|
157
|
+
this.bMultipleShapes = this.getGantt().getEnableMultipleGhosts() && iSelectedDraggableShapes > 1;
|
|
158
158
|
this.pageWidth = window.innerWidth;
|
|
159
159
|
this.pageHeight = window.innerHeight;
|
|
160
160
|
PopoverHelper.addPopoverEventListeners(this.getGantt());
|
|
@@ -9,11 +9,9 @@ sap.ui.define([
|
|
|
9
9
|
"sap/gantt/misc/Format",
|
|
10
10
|
"sap/ui/core/theming/Parameters",
|
|
11
11
|
"sap/ui/core/Core",
|
|
12
|
-
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
13
12
|
"sap/ui/core/RenderManager",
|
|
14
13
|
"sap/gantt/misc/Utility"
|
|
15
|
-
], function (BaseShape, Format, Parameters, Core,
|
|
16
|
-
GanttChartConfigurationUtils, RenderManager, Utility) {
|
|
14
|
+
], function (BaseShape, Format, Parameters, Core, RenderManager, Utility) {
|
|
17
15
|
"use strict";
|
|
18
16
|
|
|
19
17
|
var DEFAULT_ROW_PADDING = 12;
|
|
@@ -33,7 +31,7 @@ sap.ui.define([
|
|
|
33
31
|
* @extends sap.gantt.simple.BaseShape
|
|
34
32
|
*
|
|
35
33
|
* @author SAP SE
|
|
36
|
-
* @version 1.120.
|
|
34
|
+
* @version 1.120.9
|
|
37
35
|
*
|
|
38
36
|
* @abstract
|
|
39
37
|
* @constructor
|