@sapui5/sap.gantt 1.119.0 → 1.120.1
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 +6 -2
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +6 -6
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
- package/src/sap/gantt/axistime/StepwiseTimeLineOptions.js +5 -4
- 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 +6 -4
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +6 -4
- 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 +4 -4
- 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/AssociateContainer.js +1 -3
- package/src/sap/gantt/control/AssociateContainerRenderer.js +9 -12
- 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/drawer/SelectionPanel.js +1 -1
- 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 +2 -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 +3 -3
- 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 +53 -12
- package/src/sap/gantt/messagebundle.properties +24 -0
- package/src/sap/gantt/messagebundle_ar.properties +1 -1
- package/src/sap/gantt/messagebundle_bg.properties +3 -3
- package/src/sap/gantt/messagebundle_ca.properties +35 -19
- package/src/sap/gantt/messagebundle_cnr.properties +427 -0
- package/src/sap/gantt/messagebundle_cs.properties +1 -1
- package/src/sap/gantt/messagebundle_el.properties +4 -4
- package/src/sap/gantt/messagebundle_en.properties +295 -19
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +212 -196
- package/src/sap/gantt/messagebundle_es.properties +7 -7
- package/src/sap/gantt/messagebundle_et.properties +2 -2
- package/src/sap/gantt/messagebundle_fr.properties +1 -1
- package/src/sap/gantt/messagebundle_hi.properties +2 -2
- package/src/sap/gantt/messagebundle_hr.properties +3 -3
- package/src/sap/gantt/messagebundle_ja.properties +2 -2
- package/src/sap/gantt/messagebundle_kk.properties +1 -1
- package/src/sap/gantt/messagebundle_lt.properties +2 -2
- package/src/sap/gantt/messagebundle_mk.properties +411 -0
- package/src/sap/gantt/messagebundle_ms.properties +1 -1
- package/src/sap/gantt/messagebundle_nl.properties +2 -2
- package/src/sap/gantt/messagebundle_no.properties +2 -2
- package/src/sap/gantt/messagebundle_pt.properties +2 -2
- package/src/sap/gantt/messagebundle_ro.properties +10 -10
- package/src/sap/gantt/messagebundle_ru.properties +1 -1
- package/src/sap/gantt/messagebundle_sk.properties +4 -4
- package/src/sap/gantt/messagebundle_th.properties +8 -8
- package/src/sap/gantt/messagebundle_uk.properties +3 -3
- package/src/sap/gantt/misc/AxisTime.js +65 -38
- package/src/sap/gantt/misc/Format.js +0 -22
- 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 +5 -4
- package/src/sap/gantt/misc/ShapeSelectionModel.js +3 -3
- package/src/sap/gantt/overlays/GanttRowOverlay.js +88 -0
- package/src/sap/gantt/overlays/Overlay.js +73 -0
- 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/AggregationUtils.js +92 -0
- 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 +118 -92
- package/src/sap/gantt/simple/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +8 -2
- 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 +9 -7
- 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/DeltaLineRenderer.js +4 -2
- package/src/sap/gantt/simple/ExpandModel.js +12 -5
- package/src/sap/gantt/simple/FindAndSelectUtils.js +7 -1
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +2 -2
- package/src/sap/gantt/simple/GanttChartWithTable.js +136 -64
- package/src/sap/gantt/simple/GanttDragDropExtension.js +22 -9
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +2 -2
- 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 +67 -47
- package/src/sap/gantt/simple/GanttResizeExtension.js +5 -12
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +55 -3
- package/src/sap/gantt/simple/GanttSearchSidePanel.js +7 -4
- package/src/sap/gantt/simple/GanttUtils.js +46 -10
- package/src/sap/gantt/simple/GanttZoomExtension.js +12 -2
- package/src/sap/gantt/simple/InnerGanttChart.js +17 -7
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +2 -26
- 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 +2 -14
- package/src/sap/gantt/simple/Relationship.js +6 -6
- package/src/sap/gantt/simple/RenderUtils.js +23 -11
- package/src/sap/gantt/simple/SelectionModel.js +4 -3
- 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 +10 -11
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/utils/GanttCustomisationUtils.js +5 -3
|
@@ -345,7 +345,7 @@ sap.ui.define([
|
|
|
345
345
|
|
|
346
346
|
InnerGanttChartRenderer.renderRowBackgrounds = function(oRm, oGantt, aRowStates) {
|
|
347
347
|
var nHeightOfPreviousRows = 0;
|
|
348
|
-
var visibleRowCount = oGantt.getTable().
|
|
348
|
+
var visibleRowCount = oGantt.getTable().getRows().length - 1;
|
|
349
349
|
oRm.openStart("g", oGantt.getId() + "-rowBackgrounds");
|
|
350
350
|
oRm.class("rowBackgrounds");
|
|
351
351
|
oRm.openEnd();
|
|
@@ -412,15 +412,8 @@ sap.ui.define([
|
|
|
412
412
|
var oDate = Format.abapTimestampToDate(oValue.getTimeStamp());
|
|
413
413
|
return oDate >= oMinTime && oDate <= oMaxTime && oValue.getProperty("visible");
|
|
414
414
|
});
|
|
415
|
-
var aAdhocLines = oGantt.getAdhocLines();
|
|
416
415
|
|
|
417
|
-
|
|
418
|
-
var oDate = sap.gantt.misc.Format.abapTimestampToDate(oValue.getTimeStamp());
|
|
419
|
-
return oDate >= oMinTime && oDate <= oMaxTime;
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
if (aAdhocLines.length === 0 && aAdhocLinesSimple.length === 0) { return; }
|
|
423
|
-
var oAxisTime = oGantt.getAxisTime();
|
|
416
|
+
if (aAdhocLinesSimple.length === 0) { return; }
|
|
424
417
|
oRm.openStart("g");
|
|
425
418
|
oRm.class("sapGanttChartAdhocLine");
|
|
426
419
|
oRm.openEnd();
|
|
@@ -430,23 +423,6 @@ sap.ui.define([
|
|
|
430
423
|
AdhocLineRenderer.renderLine(oRm, oAdhocLine, oGantt);
|
|
431
424
|
});
|
|
432
425
|
|
|
433
|
-
//render adhoc lines
|
|
434
|
-
aAdhocLines.map(function(oAdhocLine) {
|
|
435
|
-
var iX = oAxisTime.timeToView(Format.abapTimestampToDate(oAdhocLine.getTimeStamp()));
|
|
436
|
-
return new BaseLine({
|
|
437
|
-
x1: iX,
|
|
438
|
-
y1: 0,
|
|
439
|
-
x2: iX,
|
|
440
|
-
y2: "100%",
|
|
441
|
-
stroke: oAdhocLine.getStroke(),
|
|
442
|
-
strokeWidth: oAdhocLine.getStrokeWidth(),
|
|
443
|
-
strokeDasharray: oAdhocLine.getStrokeDasharray(),
|
|
444
|
-
strokeOpacity: oAdhocLine.getStrokeOpacity(),
|
|
445
|
-
tooltip: oAdhocLine.getDescription()
|
|
446
|
-
}).setProperty("childElement", true);
|
|
447
|
-
}).forEach(function(oLine){
|
|
448
|
-
oLine.renderElement(oRm, oLine);
|
|
449
|
-
});
|
|
450
426
|
oRm.close("g");
|
|
451
427
|
};
|
|
452
428
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @extends sap.gantt.simple.GanttRowSettings
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.120.1
|
|
25
25
|
* @since 1.85
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
@@ -36,13 +36,7 @@
|
|
|
36
36
|
/**
|
|
37
37
|
* The control which holds the shape groups.
|
|
38
38
|
*/
|
|
39
|
-
tasks : {type : "sap.gantt.simple.BaseShape", multiple : true, singularName : "task"}
|
|
40
|
-
/**
|
|
41
|
-
* Pseudo shape template
|
|
42
|
-
* @private since 1.110
|
|
43
|
-
*/
|
|
44
|
-
pseudoShapeTemplate : {type : "sap.gantt.simple.MultiActivityGroup", multiple : false, visibility: "hidden"}
|
|
45
|
-
|
|
39
|
+
tasks : {type : "sap.gantt.simple.BaseShape", multiple : true, singularName : "task"}
|
|
46
40
|
}
|
|
47
41
|
}
|
|
48
42
|
});
|
|
@@ -55,12 +49,6 @@
|
|
|
55
49
|
return oClone;
|
|
56
50
|
};
|
|
57
51
|
|
|
58
|
-
/**
|
|
59
|
-
* @private
|
|
60
|
-
*/
|
|
61
|
-
MultiActivityRowSettings.prototype.getPseudoShapeTemplate = function() {
|
|
62
|
-
return this.getAggregation("pseudoShapeTemplate");
|
|
63
|
-
};
|
|
64
52
|
|
|
65
53
|
return MultiActivityRowSettings;
|
|
66
54
|
});
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @extends sap.gantt.simple.BasePath
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.120.1
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @public
|
|
@@ -165,9 +165,9 @@ sap.ui.define([
|
|
|
165
165
|
relationshipIdList = [];
|
|
166
166
|
for (var i = 0; i < aElements.length; i++) {
|
|
167
167
|
var relationshipNode = aElements[i].parentNode;
|
|
168
|
-
if (aElements[i].tagName === "path" &&
|
|
168
|
+
if (aElements[i].tagName === "path" && Core.byId(relationshipNode.id).isA("sap.gantt.simple.Relationship") && relationshipIdList.indexOf(relationshipNode.id) === -1 ) {
|
|
169
169
|
relationshipIdList.push(relationshipNode.id);
|
|
170
|
-
var relInst =
|
|
170
|
+
var relInst = Core.byId(relationshipNode.id);
|
|
171
171
|
aConnectorList.push(relInst);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -187,9 +187,9 @@ sap.ui.define([
|
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
Relationship.prototype.renderElement = function (oRm, oElement, sGanttId) {
|
|
190
|
-
this.oGantt =
|
|
190
|
+
this.oGantt = Core.byId(sGanttId);
|
|
191
191
|
var vType = oElement.getProcessedType();
|
|
192
|
-
if (!oElement.mRelatedShapes && !oElement.mAnchors && !GanttUtils.relationexist(this.oGantt,oElement)){
|
|
192
|
+
if ((!oElement.mRelatedShapes && !oElement.mAnchors && !GanttUtils.relationexist(this.oGantt,oElement)) || (this.oGantt.getEnablePseudoShapes() && this.mRelatedShapes.predecessor === this.mRelatedShapes.successor)){
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
this.mRelatedShapes = oElement.mRelatedShapes;
|
|
@@ -585,7 +585,7 @@ sap.ui.define([
|
|
|
585
585
|
* @returns {String} returns the operlapping Connector type for any overlap.
|
|
586
586
|
*/
|
|
587
587
|
Relationship.prototype._checkConnectorOverlap = function (sGanttId, vType, position, upDown) {
|
|
588
|
-
var oGantt =
|
|
588
|
+
var oGantt = Core.byId(sGanttId);
|
|
589
589
|
var aVisibleRls = GanttUtils._getVisibleRelationships(oGantt);
|
|
590
590
|
var mRelatedShapes = this.getRelatedInRowShapes(sGanttId);
|
|
591
591
|
var isRTL = Core.getConfiguration().getRTL();
|
|
@@ -838,6 +838,9 @@
|
|
|
838
838
|
aExpandScheme = aShapeSchemes && oGantt.getShapeSchemes().filter(function(oScheme){
|
|
839
839
|
return aShapeSchemes.indexOf(oScheme.getKey()) > -1;
|
|
840
840
|
});
|
|
841
|
+
var pseudoShapeExpanded = oGantt.oOverlapShapeIds && oGantt.oOverlapShapeIds[iRowIndex] && oGantt.oOverlapShapeIds[iRowIndex].length;
|
|
842
|
+
//loop through overlay aggregation and fetch corresponding overlay shapes and concat it to ashapeinRow array.
|
|
843
|
+
aShapesInRow = aShapesInRow.concat(AggregationUtils._fetchOverlayAggregation(oRowSetting,!bHasExpandShape || pseudoShapeExpanded,true));
|
|
841
844
|
aShapesInRow.forEach(function(aShapes, iIndex){
|
|
842
845
|
Array.isArray(aShapes) && aShapes.forEach(function(oShape){
|
|
843
846
|
if (oGantt.isShapeVisible(oShape) && !oShape.isPartOfExpandedPseudoShape) {
|
|
@@ -871,14 +874,15 @@
|
|
|
871
874
|
|
|
872
875
|
renderMainRowShape : function(oRm, oShape, mOption, bShowParentRow) {
|
|
873
876
|
// passing the mOption to save unnecessary calculation because of it's always the same for the row
|
|
874
|
-
|
|
877
|
+
var oGanttRowOverlayorRow = oShape.getParent().getParent();
|
|
878
|
+
var iShapeRowIndex = oGanttRowOverlayorRow && oGanttRowOverlayorRow.isA("sap.gantt.overlays.GanttRowOverlay") ? oShape.getParentRowSettings().getParent().getIndex() : oShape.getParent().getParent().getIndex();
|
|
879
|
+
this.setSpecialProperties(oShape, mOption,iShapeRowIndex);
|
|
875
880
|
var oTable = oShape.getParentRowSettings().getParent().getParent(),
|
|
876
881
|
oGantt = oTable.getParent();
|
|
877
882
|
// render main row shap in RenderManager
|
|
878
883
|
// oShape.renderElement(oRm, oShape, null);
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
bIncludePseudoShape = oGantt.oOverlapShapeIds && oGantt.oOverlapShapeIds[iShapeRowIndex] && oGantt.oOverlapShapeIds[iShapeRowIndex].length > 0;
|
|
884
|
+
|
|
885
|
+
var bIncludePseudoShape = oGantt.oOverlapShapeIds && oGantt.oOverlapShapeIds[iShapeRowIndex] && oGantt.oOverlapShapeIds[iShapeRowIndex].length > 0;
|
|
882
886
|
if ((Object.keys(mOption.expandModel.mExpanded).indexOf(mOption.rowUid) == -1 && !mOption.rowExpanded) || bShowParentRow && (oShape.getScheme() == "" || oGantt.getPrimaryShapeScheme().getKey() == oShape.getScheme()) || (oGantt._aExpandedIndices.indexOf(iShapeRowIndex) > -1 && (bIncludePseudoShape))){
|
|
883
887
|
oShape.renderElement(oRm, oShape, null);
|
|
884
888
|
|
|
@@ -889,13 +893,12 @@
|
|
|
889
893
|
}
|
|
890
894
|
},
|
|
891
895
|
|
|
892
|
-
setSpecialProperties: function(oShape, mOption) {
|
|
896
|
+
setSpecialProperties: function(oShape, mOption,iShapeRowIndex) {
|
|
893
897
|
var oExpandModel = mOption.expandModel,
|
|
894
898
|
sRowUid = mOption.rowUid,
|
|
895
899
|
sShapeUid = mOption.rowSetting.getShapeUid(oShape),
|
|
896
900
|
oTable = oShape.getParentRowSettings().getParent().getParent(),
|
|
897
|
-
oGantt = oTable.getParent()
|
|
898
|
-
iShapeRowIndex = oShape.getParent().getParent().getIndex();
|
|
901
|
+
oGantt = oTable.getParent();
|
|
899
902
|
|
|
900
903
|
if (!oShape._iBaseRowHeight) {
|
|
901
904
|
oShape._iBaseRowHeight = oExpandModel.getBaseRowHeight();
|
|
@@ -968,9 +971,18 @@
|
|
|
968
971
|
mOption.aExpandScheme.forEach(function(scheme){
|
|
969
972
|
aExpandSchemeKeys.push(scheme.getKey());
|
|
970
973
|
});
|
|
971
|
-
var
|
|
974
|
+
var oGanttRowOverlayorRow = oMainShape.getParent().getParent();
|
|
975
|
+
var rowIndex = oGanttRowOverlayorRow && oGanttRowOverlayorRow.isA("sap.gantt.overlays.GanttRowOverlay") ? oMainShape.getParentRowSettings().getParent().getIndex() : oGanttRowOverlayorRow.getIndex();
|
|
976
|
+
var aExpandableShapes, parentRowSettings = oMainShape.getParentRowSettings();
|
|
972
977
|
oGantt.oExpandedShapesMap[rowIndex] = oGantt.oExpandedShapesMap[rowIndex] ? oGantt.oExpandedShapesMap[rowIndex] : [];
|
|
973
|
-
|
|
978
|
+
//fetch all overlay aggregation shapes and concat to expandable shapes list
|
|
979
|
+
if (oGanttRowOverlayorRow && oGanttRowOverlayorRow.isA("sap.gantt.overlays.GanttRowOverlay")){
|
|
980
|
+
var pseudoShapeExpanded = oGantt.oOverlapShapeIds && oGantt.oOverlapShapeIds[rowIndex] && oGantt.oOverlapShapeIds[rowIndex].length;
|
|
981
|
+
var allOverlayAggr = AggregationUtils._fetchOverlayAggregation(parentRowSettings,pseudoShapeExpanded);
|
|
982
|
+
aExpandableShapes = parentRowSettings.getAllExpandableShapes(oGantt).concat(allOverlayAggr);
|
|
983
|
+
} else {
|
|
984
|
+
aExpandableShapes = parentRowSettings.getAllExpandableShapes(oGantt);
|
|
985
|
+
}
|
|
974
986
|
aExpandableShapes.forEach(function(shape, index) {
|
|
975
987
|
if (oGantt.isShapeVisible(shape)) {
|
|
976
988
|
lastVisibleShapeIndex = index;
|
|
@@ -985,7 +997,7 @@
|
|
|
985
997
|
// render subshapes only after all visible shapes are rendered
|
|
986
998
|
if (bRowExpand || !oGantt.oOverlapShapeIds[iIndex] || bPseudoExpand) {
|
|
987
999
|
var oExpShapesWithUseParentShape = function (oMainShape){
|
|
988
|
-
var aNonMultiActivityShapes = (aExpandSchemeKeys.indexOf(oMainShape.getScheme())) > -1 ? [oMainShape] : [];
|
|
1000
|
+
var aNonMultiActivityShapes = ((aExpandSchemeKeys.indexOf(oMainShape.getScheme())) > -1 || aExpandSchemeKeys.length == 0) ? [oMainShape] : [];
|
|
989
1001
|
var aChild = oMainShape instanceof sap.gantt.simple.MultiActivityGroup ? AggregationUtils.getNonLazyElementsByScheme(oMainShape, aExpandSchemeKeys) : aNonMultiActivityShapes;
|
|
990
1002
|
oGantt.oExpandedShapesMap[rowIndex] = GanttUtils._getExpandedChildArray(aChild, oGantt, aExpandSchemeKeys, oGantt.oExpandedShapesMap[rowIndex]);
|
|
991
1003
|
};
|
|
@@ -1008,7 +1020,7 @@
|
|
|
1008
1020
|
// render subshapes only after all visible shapes are rendered
|
|
1009
1021
|
if (bRowExpand || bPseudoExpand) {
|
|
1010
1022
|
var oExpShapesWithSubTasks = function (oMainShape){
|
|
1011
|
-
var aNonMultiActivityShapes = (aExpandSchemeKeys.indexOf(oMainShape.getScheme())) > -1
|
|
1023
|
+
var aNonMultiActivityShapes = ((aExpandSchemeKeys.indexOf(oMainShape.getScheme())) > -1) ? [oMainShape] : [];
|
|
1012
1024
|
var aChild = oMainShape instanceof sap.gantt.simple.MultiActivityGroup ? AggregationUtils.getLazyElementsByScheme(oMainShape, aExpandSchemeKeys) : aNonMultiActivityShapes;
|
|
1013
1025
|
oGantt.oExpandedShapesMap[rowIndex] = GanttUtils._getExpandedChildArray(aChild, oGantt, aExpandSchemeKeys, oGantt.oExpandedShapesMap[rowIndex]);
|
|
1014
1026
|
};
|
|
@@ -10,8 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"sap/gantt/library",
|
|
11
11
|
"sap/ui/base/EventProvider",
|
|
12
12
|
"./GanttUtils",
|
|
13
|
-
"sap/gantt/misc/Utility"
|
|
14
|
-
|
|
13
|
+
"sap/gantt/misc/Utility",
|
|
14
|
+
"sap/ui/core/Core"
|
|
15
|
+
], function (library, EventProvider, GanttUtils, Utility, Core) {
|
|
15
16
|
"use strict";
|
|
16
17
|
|
|
17
18
|
var SelectionMode = library.SelectionMode;
|
|
@@ -283,7 +284,7 @@ sap.ui.define([
|
|
|
283
284
|
var aUpdatedUid = [];
|
|
284
285
|
Object.keys(this.mSelected.deSelectShapeId).forEach(function(shapeId){
|
|
285
286
|
var shapeDomRef = jQuery("[data-sap-gantt-shape-id='" + shapeId + "']").get(0),
|
|
286
|
-
shapeObj =
|
|
287
|
+
shapeObj = Core.byId(shapeDomRef && shapeDomRef.id);
|
|
287
288
|
aUpdatedUid.push(shapeObj && shapeObj.getShapeUid());
|
|
288
289
|
});
|
|
289
290
|
aUid = aUpdatedUid ? aUpdatedUid : aUid;
|
|
@@ -8,8 +8,9 @@ sap.ui.define([
|
|
|
8
8
|
"sap/gantt/simple/BaseShape",
|
|
9
9
|
"sap/ui/thirdparty/jquery",
|
|
10
10
|
"sap/gantt/misc/Format",
|
|
11
|
-
"sap/ui/core/theming/Parameters"
|
|
12
|
-
|
|
11
|
+
"sap/ui/core/theming/Parameters",
|
|
12
|
+
"sap/ui/core/Core"
|
|
13
|
+
], function (BaseShape, jQuery, Format, Parameters, Core) {
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
15
16
|
var DEFAULT_ROW_PADDING = 12;
|
|
@@ -29,7 +30,7 @@ sap.ui.define([
|
|
|
29
30
|
* @extends sap.gantt.simple.BaseShape
|
|
30
31
|
*
|
|
31
32
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
33
|
+
* @version 1.120.1
|
|
33
34
|
*
|
|
34
35
|
* @abstract
|
|
35
36
|
* @constructor
|
|
@@ -158,7 +159,7 @@ sap.ui.define([
|
|
|
158
159
|
*/
|
|
159
160
|
Shape.prototype.getHoverBackgroundColor = function () {
|
|
160
161
|
//Added for support for sap_horizon -> can think of refactoring
|
|
161
|
-
if (
|
|
162
|
+
if (Core.getConfiguration().getTheme().indexOf("sap_horizon") > -1) {
|
|
162
163
|
return Parameters.get("sapPrimary1");
|
|
163
164
|
} else {
|
|
164
165
|
return Parameters.get("sapUiButtonHoverBackground");
|
|
@@ -174,7 +175,7 @@ sap.ui.define([
|
|
|
174
175
|
*/
|
|
175
176
|
Shape.prototype.getHoverColor = function () {
|
|
176
177
|
//Added for support for sap_horizon -> can think of refactoring
|
|
177
|
-
if (
|
|
178
|
+
if (Core.getConfiguration().getTheme().indexOf("sap_horizon") > -1) {
|
|
178
179
|
return Parameters.get("sapPrimary6");
|
|
179
180
|
} else {
|
|
180
181
|
return Parameters.get("sapUiButtonHoverBorderColor");
|
|
@@ -189,7 +190,7 @@ sap.ui.define([
|
|
|
189
190
|
*/
|
|
190
191
|
Shape.prototype.getSelectedColor = function () {
|
|
191
192
|
//Added for support for sap_horizon -> can think of refactoring
|
|
192
|
-
if (
|
|
193
|
+
if (Core.getConfiguration().getTheme().indexOf("sap_horizon") > -1) {
|
|
193
194
|
return Parameters.get("sapPrimary2");
|
|
194
195
|
} else {
|
|
195
196
|
return Parameters.get("sapUiButtonActiveBackground");
|
|
@@ -238,7 +239,7 @@ sap.ui.define([
|
|
|
238
239
|
if (!oAxisTime) {
|
|
239
240
|
return 0;
|
|
240
241
|
}
|
|
241
|
-
var bRTL =
|
|
242
|
+
var bRTL = Core.getConfiguration().getRTL();
|
|
242
243
|
return Number(oAxisTime.timeToView(Format.abapTimestampToDate(bRTL ? (this.getEndTime() || this.getTime()) : this.getTime())));
|
|
243
244
|
};
|
|
244
245
|
|
|
@@ -256,7 +257,7 @@ sap.ui.define([
|
|
|
256
257
|
if (!oAxisTime) {
|
|
257
258
|
return 0;
|
|
258
259
|
}
|
|
259
|
-
var bRTL =
|
|
260
|
+
var bRTL = Core.getConfiguration().getRTL();
|
|
260
261
|
return Number(oAxisTime.timeToView(Format.abapTimestampToDate(bRTL ? (this.getTime() || this.getEndTime()) : this.getEndTime())));
|
|
261
262
|
};
|
|
262
263
|
|
|
@@ -316,13 +317,11 @@ sap.ui.define([
|
|
|
316
317
|
};
|
|
317
318
|
|
|
318
319
|
Shape.prototype.onmouseover = function (oEvent) {
|
|
319
|
-
if (!this.getHoverable()) { return; }
|
|
320
320
|
BaseShape.prototype.onmouseover.call(this, oEvent);
|
|
321
321
|
this.hoverStateChange(true);
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
Shape.prototype.onmouseout = function (oEvent) {
|
|
325
|
-
if (!this.getHoverable()) { return; }
|
|
326
325
|
BaseShape.prototype.onmouseout.call(this, oEvent);
|
|
327
326
|
this._bIgnoreHover = false;
|
|
328
327
|
this.hoverStateChange(false);
|
|
@@ -331,7 +330,7 @@ sap.ui.define([
|
|
|
331
330
|
Shape.prototype.rerenderShape = function () {
|
|
332
331
|
var oDom = this.getDomRef();
|
|
333
332
|
if (oDom) {
|
|
334
|
-
var oRm =
|
|
333
|
+
var oRm = Core.createRenderManager();
|
|
335
334
|
this.renderContent(oRm);
|
|
336
335
|
oRm.flush(oDom);
|
|
337
336
|
oRm.destroy();
|
|
@@ -14,7 +14,8 @@ sap.ui.define([
|
|
|
14
14
|
"sap/m/Text",
|
|
15
15
|
"sap/m/DateRangeSelection",
|
|
16
16
|
"sap/gantt/misc/Format",
|
|
17
|
-
"sap/gantt/library"
|
|
17
|
+
"sap/gantt/library",
|
|
18
|
+
"sap/ui/core/Core"
|
|
18
19
|
], function (
|
|
19
20
|
JSONModel,
|
|
20
21
|
Button,
|
|
@@ -31,10 +32,11 @@ sap.ui.define([
|
|
|
31
32
|
Text,
|
|
32
33
|
DateRangeSelection,
|
|
33
34
|
Format,
|
|
34
|
-
library
|
|
35
|
+
library,
|
|
36
|
+
Core) {
|
|
35
37
|
'use strict';
|
|
36
38
|
|
|
37
|
-
var oResourceBundle =
|
|
39
|
+
var oResourceBundle = Core.getLibraryResourceBundle("sap.gantt");
|
|
38
40
|
var oPalette = library.palette;
|
|
39
41
|
var aColors = oPalette.SemanticColors
|
|
40
42
|
.concat(oPalette.LegendColors)
|