@sapui5/sap.gantt 1.120.6 → 1.120.7
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/messagebundle_sh.properties +30 -30
- package/src/sap/gantt/misc/AxisOrdinal.js +1 -1
- package/src/sap/gantt/misc/Format.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/misc/Utility.js +11 -0
- package/src/sap/gantt/overlays/GanttRowOverlay.js +84 -16
- 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/AggregationUtils.js +19 -66
- 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 +7 -7
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +4 -4
- 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 +2 -2
- package/src/sap/gantt/simple/BaseShape.js +10 -4
- 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 -3
- 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 +35 -1
- package/src/sap/gantt/simple/GanttDragDropExtension.js +8 -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 +3 -2
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +30 -1
- package/src/sap/gantt/simple/GanttUtils.js +1 -1
- package/src/sap/gantt/simple/GanttZoomExtension.js +4 -4
- 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 +8 -5
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
|
@@ -232,11 +232,11 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
232
232
|
if (oChild.getVisible() && oChild.renderElement){
|
|
233
233
|
if (this._isLabelText(oChild)){
|
|
234
234
|
labelGroup.push(oChild);
|
|
235
|
-
}else {
|
|
235
|
+
} else {
|
|
236
236
|
nonLabelGroup.push(oChild);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
}else {
|
|
239
|
+
} else {
|
|
240
240
|
fnCallback(oChild);
|
|
241
241
|
}
|
|
242
242
|
}.bind(this));
|
|
@@ -245,11 +245,11 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
245
245
|
if (aChild.getVisible() && aChild.renderElement ){
|
|
246
246
|
if (this._isLabelText(aChild)){
|
|
247
247
|
labelGroup.push(aChild);
|
|
248
|
-
}else {
|
|
248
|
+
} else {
|
|
249
249
|
nonLabelGroup.push(aChild);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
}else {
|
|
252
|
+
} else {
|
|
253
253
|
fnCallback(aChild);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
@@ -260,74 +260,28 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
262
|
|
|
263
|
-
|
|
264
263
|
/**
|
|
265
|
-
*
|
|
264
|
+
* fetch overlay aggregation shapes
|
|
266
265
|
*/
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
|
|
270
|
-
oRowSettings._overlayShapeIdList = {};
|
|
271
|
-
}
|
|
272
|
-
newAggr.forEach(function(oTask){
|
|
273
|
-
if (oTask.getOverlayShapeId()){
|
|
274
|
-
oRowSettings._overlayShapeIdList[oTask.getOverlayShapeId()] = oTask.getOverlayShapeId();
|
|
275
|
-
}
|
|
276
|
-
});
|
|
266
|
+
_fetchOverlayAggregation : function (oRowSettings, pseudoShapeExpanded, concatShapeRowArray){
|
|
267
|
+
if (!oRowSettings._overlayShapeIdList){
|
|
268
|
+
oRowSettings._overlayShapeIdList = {};
|
|
277
269
|
}
|
|
278
|
-
},
|
|
279
270
|
|
|
280
|
-
/**
|
|
281
|
-
* @param { sap.gantt.simple.GanttRowSettings} oRowSettings gantt row settings
|
|
282
|
-
* @param { boolean} bExpanded defines row is expanded or not
|
|
283
|
-
* @param {sap.gantt.simple.GanttChartWithTable } oGantt ganttchart instance
|
|
284
|
-
* destroys current aggregation and adds a new aggregation.
|
|
285
|
-
*/
|
|
286
|
-
_addExpandStaticOverlay : function(oRowSettings,bExpanded,oGantt){
|
|
287
|
-
var rowIndex = oRowSettings.getParent().getIndex();
|
|
288
|
-
var pseudoShapeExpandArray = oGantt.oOverlapShapeIds && oGantt.oOverlapShapeIds[rowIndex];
|
|
289
|
-
//if pseudoshape is expanded then the dont add expand aggregation shapes.
|
|
290
|
-
if (pseudoShapeExpandArray && pseudoShapeExpandArray.length){
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
var aggrName, expandedOrStatic, currAggrName, newAggr, newAggrName, newAggrBinding, oLocaleBindingInfo;
|
|
294
|
-
var mBindingInfos = oGantt.getTable().getRowSettingsTemplate().mBindingInfos;
|
|
295
|
-
Object.keys(oRowSettings.getMetadata().getAllAggregations()).forEach(function(sName){
|
|
296
|
-
if (sName.indexOf("overlay") !== -1){
|
|
297
|
-
aggrName = oRowSettings.getAggregation(sName);
|
|
298
|
-
if (aggrName && aggrName[0]){
|
|
299
|
-
expandedOrStatic = bExpanded ? aggrName[0].getExpandedOverlay() : aggrName[0].getStaticOverlay();
|
|
300
|
-
if ( expandedOrStatic.length == 0) {
|
|
301
|
-
oLocaleBindingInfo = mBindingInfos[aggrName[0].sParentAggregationName].template._oLocaleBindingInfo;
|
|
302
|
-
currAggrName = bExpanded ? "staticOverlay" : "expandedOverlay";
|
|
303
|
-
newAggrName = bExpanded ? "expandedOverlay" : "staticOverlay";
|
|
304
|
-
newAggrBinding = bExpanded ? oLocaleBindingInfo.expandedOverlay : oLocaleBindingInfo.staticOverlay;
|
|
305
|
-
//unbind current aggregation
|
|
306
|
-
aggrName[0].unbindAggregation(currAggrName);
|
|
307
|
-
if (newAggrBinding){
|
|
308
|
-
//binds new Aggregation
|
|
309
|
-
oRowSettings.getAggregation(sName)[0]._bindAddon(newAggrName,newAggrBinding);
|
|
310
|
-
newAggr = newAggrName == "staticOverlay" ? aggrName[0].getStaticOverlay() : aggrName[0].getExpandedOverlay();
|
|
311
|
-
}
|
|
312
|
-
//creates shape id map.
|
|
313
|
-
this._createOverlayShapeIdMap(newAggr,oRowSettings);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}.bind(this));
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* fetch overlay aggregation shapes
|
|
322
|
-
*/
|
|
323
|
-
_fetchOverlayAggregation : function (oRowSettings,pseudoShapeExpanded,concatShapeRowArray){
|
|
324
271
|
var allOverlayAggr = [], aShapesInRow = [], allAggregations = oRowSettings.getMetadata().getAllAggregations();
|
|
325
272
|
Object.keys(allAggregations).forEach(function(sName){
|
|
326
|
-
var sNameAgg = oRowSettings.getAggregation(sName);allOverlayAggr = concatShapeRowArray ? [] : allOverlayAggr;
|
|
273
|
+
var sNameAgg = oRowSettings.getAggregation(sName); allOverlayAggr = concatShapeRowArray ? [] : allOverlayAggr;
|
|
327
274
|
if (sName.indexOf("overlay") !== -1 && sNameAgg && sNameAgg[0]){
|
|
328
|
-
var expandedOrStatic
|
|
275
|
+
var expandedOrStatic = sNameAgg[0].getActiveOverlays() || [];
|
|
329
276
|
expandedOrStatic.forEach(function(obj){
|
|
330
|
-
|
|
277
|
+
var oShape = obj.getShape();
|
|
278
|
+
var sShapeId = obj.getOverlayShapeId();
|
|
279
|
+
|
|
280
|
+
if (sShapeId){
|
|
281
|
+
oRowSettings._overlayShapeIdList[sShapeId] = sShapeId;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
allOverlayAggr.push(oShape);
|
|
331
285
|
});
|
|
332
286
|
aShapesInRow.push(allOverlayAggr);
|
|
333
287
|
}
|
|
@@ -349,7 +303,6 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
349
303
|
return iMaxLength;
|
|
350
304
|
}
|
|
351
305
|
};
|
|
352
|
-
|
|
353
306
|
return AggregationUtils;
|
|
354
307
|
|
|
355
|
-
}, /* bExport= */ true);
|
|
308
|
+
}, /* bExport= */ true);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/base/Log", "./BaseRectangle", "./BasePath", "./RenderUtils", "sap/gantt/library"
|
|
9
|
-
], function(Log, BaseRectangle, BasePath, RenderUtils, library) {
|
|
8
|
+
"sap/base/Log", "./BaseRectangle", "./BasePath", "./RenderUtils", "sap/gantt/library", "sap/gantt/misc/Utility"
|
|
9
|
+
], function(Log, BaseRectangle, BasePath, RenderUtils, library, Utility) {
|
|
10
10
|
"use strict";
|
|
11
11
|
var ShapeAlignment = library.simple.shapes.ShapeAlignment;
|
|
12
12
|
/**
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.gantt.simple.BaseRectangle
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.7
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @public
|
|
@@ -106,10 +106,10 @@ sap.ui.define([
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
BaseCursor.prototype._isPropertiesValid = function (nPointHeight, nWidth, nLength,nHalflength) {
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
return Utility.isNumeric(nPointHeight) &&
|
|
110
|
+
Utility.isNumeric(nWidth) &&
|
|
111
|
+
Utility.isNumeric(nLength) &&
|
|
112
|
+
Utility.isNumeric(nHalflength);
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
BaseCursor.prototype.renderElement = function () {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define(
|
|
8
|
-
["./BaseShape", "./RenderUtils", "./GanttUtils", "../misc/Format", "./BaseText"],
|
|
9
|
-
function (BaseShape, RenderUtils, GanttUtils, Format, BaseText) {
|
|
8
|
+
["./BaseShape", "./RenderUtils", "./GanttUtils", "../misc/Format", "./BaseText", "sap/gantt/misc/Utility"],
|
|
9
|
+
function (BaseShape, RenderUtils, GanttUtils, Format, BaseText, Utility) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -22,7 +22,7 @@ sap.ui.define(
|
|
|
22
22
|
* @extends sap.gantt.simple.BaseShape
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.120.
|
|
25
|
+
* @version 1.120.7
|
|
26
26
|
* @since 1.84
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
@@ -190,7 +190,7 @@ sap.ui.define(
|
|
|
190
190
|
);
|
|
191
191
|
|
|
192
192
|
//if nRetVal is not numeric, return itself
|
|
193
|
-
if (!
|
|
193
|
+
if (!Utility.isNumeric(startTime) || !Utility.isNumeric(endTime)) {
|
|
194
194
|
return 0;
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @extends sap.gantt.simple.BaseShape
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.120.
|
|
26
|
+
* @version 1.120.7
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -163,7 +163,7 @@ sap.ui.define([
|
|
|
163
163
|
endTime = oAxisTime.timeToView(Format.abapTimestampToDate(this.getEndTime()));
|
|
164
164
|
|
|
165
165
|
//if nRetVal is not numeric, return itself
|
|
166
|
-
if (!
|
|
166
|
+
if (!Utility.isNumeric(startTime) || !Utility.isNumeric(endTime)) {
|
|
167
167
|
return 0;
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -16,7 +16,10 @@ sap.ui.define([
|
|
|
16
16
|
"./CoordinateUtils",
|
|
17
17
|
"./AggregationUtils",
|
|
18
18
|
"../misc/Format",
|
|
19
|
-
"sap/ui/core/date/UI5Date"
|
|
19
|
+
"sap/ui/core/date/UI5Date",
|
|
20
|
+
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
21
|
+
"sap/ui/core/Theming",
|
|
22
|
+
"sap/gantt/misc/Utility"
|
|
20
23
|
], function (
|
|
21
24
|
Log,
|
|
22
25
|
Device,
|
|
@@ -29,7 +32,10 @@ sap.ui.define([
|
|
|
29
32
|
CoordinateUtils,
|
|
30
33
|
AggregationUtils,
|
|
31
34
|
Format,
|
|
32
|
-
UI5Date
|
|
35
|
+
UI5Date,
|
|
36
|
+
GanttChartConfigurationUtils,
|
|
37
|
+
Theming,
|
|
38
|
+
Utility
|
|
33
39
|
) {
|
|
34
40
|
"use strict";
|
|
35
41
|
|
|
@@ -53,7 +59,7 @@ sap.ui.define([
|
|
|
53
59
|
* @extends sap.ui.core.Element
|
|
54
60
|
*
|
|
55
61
|
* @author SAP SE
|
|
56
|
-
* @version 1.120.
|
|
62
|
+
* @version 1.120.7
|
|
57
63
|
*
|
|
58
64
|
* @abstract
|
|
59
65
|
* @constructor
|
|
@@ -484,7 +490,7 @@ sap.ui.define([
|
|
|
484
490
|
var oAxisTime = this.getAxisTime();
|
|
485
491
|
|
|
486
492
|
var nTimeX = oAxisTime && oAxisTime.timeToView(Format.abapTimestampToDate(vTime));
|
|
487
|
-
if (!
|
|
493
|
+
if (!Utility.isNumeric(nTimeX)) {
|
|
488
494
|
Log.warning("Cannot convert time:" + vTime + " to an valid coordinate. Invalid coordinate might not get rendered at all, check the property value!");
|
|
489
495
|
return 0;
|
|
490
496
|
}
|
|
@@ -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.7
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @static
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @extends sap.gantt.simple.ExpandModel
|
|
27
27
|
*
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.120.
|
|
29
|
+
* @version 1.120.7
|
|
30
30
|
*
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
@@ -68,8 +68,6 @@ sap.ui.define([
|
|
|
68
68
|
|
|
69
69
|
var oRowSettings = GanttUtils.getSelectedTableRowSettings(oTable, iSelectedIndex),overlayAggList;
|
|
70
70
|
if (oRowSettings){
|
|
71
|
-
//add expand or staticOverlay aggreagtion shapes
|
|
72
|
-
AggregationUtils._addExpandStaticOverlay(oRowSettings,bExpanded,oGantt);
|
|
73
71
|
//fetch overlay aggreagtion shapes
|
|
74
72
|
overlayAggList = AggregationUtils._fetchOverlayAggregation(oRowSettings,false);
|
|
75
73
|
}
|