@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
|
@@ -189,6 +189,9 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
189
189
|
if (oElement.isPseudoShape && !mAggregations["button"]) {
|
|
190
190
|
mAggregations["button"] = oMetadata.getAllPrivateAggregations()["button"];
|
|
191
191
|
}
|
|
192
|
+
if (oElement.isA("sap.gantt.simple.GanttRowSettings") && !mAggregations["pseudoShapes"]){
|
|
193
|
+
mAggregations["pseudoShapes"] = oMetadata.getAllPrivateAggregations()["pseudoShapes"];
|
|
194
|
+
}
|
|
192
195
|
var mResult = {};
|
|
193
196
|
for (var sName in mAggregations) {
|
|
194
197
|
if (mAggregations.hasOwnProperty(sName)) {
|
|
@@ -255,6 +258,95 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
|
255
258
|
if (nonLabelGroup.length > 0 || labelGroup.length > 0){
|
|
256
259
|
fnCallback(labelGroup,nonLabelGroup);
|
|
257
260
|
}
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* creates overlay shape id map so that in the ongoing flow the values can be replaced by corresponding shape level.
|
|
266
|
+
*/
|
|
267
|
+
_createOverlayShapeIdMap : function(newAggr,oRowSettings){
|
|
268
|
+
if (newAggr && newAggr.length > 0){
|
|
269
|
+
if (!oRowSettings._overlayShapeIdList){
|
|
270
|
+
oRowSettings._overlayShapeIdList = {};
|
|
271
|
+
}
|
|
272
|
+
newAggr.forEach(function(oTask){
|
|
273
|
+
if (oTask.getOverlayShapeId()){
|
|
274
|
+
oRowSettings._overlayShapeIdList[oTask.getOverlayShapeId()] = oTask.getOverlayShapeId();
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
|
|
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
|
+
var allOverlayAggr = [], aShapesInRow = [], allAggregations = oRowSettings.getMetadata().getAllAggregations();
|
|
325
|
+
Object.keys(allAggregations).forEach(function(sName){
|
|
326
|
+
var sNameAgg = oRowSettings.getAggregation(sName);allOverlayAggr = concatShapeRowArray ? [] : allOverlayAggr;
|
|
327
|
+
if (sName.indexOf("overlay") !== -1 && sNameAgg && sNameAgg[0]){
|
|
328
|
+
var expandedOrStatic = pseudoShapeExpanded ? sNameAgg[0].getStaticOverlay() : sNameAgg[0].getExpandedOverlay();
|
|
329
|
+
expandedOrStatic.forEach(function(obj){
|
|
330
|
+
allOverlayAggr.push(obj.getShape());
|
|
331
|
+
});
|
|
332
|
+
aShapesInRow.push(allOverlayAggr);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
return concatShapeRowArray ? aShapesInRow : allOverlayAggr;
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* adds level to overlay shape and updates max length.
|
|
340
|
+
*/
|
|
341
|
+
_addLevelAndUpdateMaxLength : function (overlayAggList,iMaxLength,oRowSettings){
|
|
342
|
+
var shapeLength = iMaxLength;
|
|
343
|
+
overlayAggList.forEach(function(obj){
|
|
344
|
+
var overlayShape = obj.getParent();
|
|
345
|
+
var overlayShapeId = overlayShape.getOverlayShapeId();
|
|
346
|
+
obj._level = overlayShapeId && !isNaN(oRowSettings._overlayShapeIdList[overlayShapeId]) ? oRowSettings._overlayShapeIdList[overlayShapeId] : Number(overlayShape.getOverlayLevel()) + shapeLength;
|
|
347
|
+
iMaxLength = Math.max(obj._level,iMaxLength);
|
|
348
|
+
});
|
|
349
|
+
return iMaxLength;
|
|
258
350
|
}
|
|
259
351
|
};
|
|
260
352
|
|