@sapui5/sap.gantt 1.108.9 → 1.108.10
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 +31 -10
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +190 -190
- package/src/sap/gantt/misc/AxisTime.js +11 -10
- package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
- package/src/sap/gantt/misc/ShapeManager.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/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +1 -17
- 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 +3 -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 +8 -3
- 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/InnerGanttChartRenderer.js +7 -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/RenderUtils.js +1 -0
- 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 +1 -1
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
* @extends sap.ui.core.Element
|
|
52
52
|
*
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.108.
|
|
54
|
+
* @version 1.108.10
|
|
55
55
|
*
|
|
56
56
|
* @abstract
|
|
57
57
|
* @constructor
|
|
@@ -685,22 +685,6 @@ sap.ui.define([
|
|
|
685
685
|
return this;
|
|
686
686
|
};
|
|
687
687
|
|
|
688
|
-
BaseShape.prototype.setTime = function (oDate, bSuppressInvalidate) {
|
|
689
|
-
if (oDate) {
|
|
690
|
-
this.setProperty("time", GanttUtils.getFormatedDateByTimeZone(oDate), bSuppressInvalidate);
|
|
691
|
-
} else {
|
|
692
|
-
this.setProperty("time", oDate, bSuppressInvalidate);
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
BaseShape.prototype.setEndTime = function (oDate, bSuppressInvalidate) {
|
|
697
|
-
if (oDate) {
|
|
698
|
-
this.setProperty("endTime", GanttUtils.getFormatedDateByTimeZone(oDate), bSuppressInvalidate);
|
|
699
|
-
} else {
|
|
700
|
-
this.setProperty("endTime", oDate, bSuppressInvalidate);
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
|
|
704
688
|
/**
|
|
705
689
|
* Set highlight property and mark the shape highlighted in Highlight Model
|
|
706
690
|
* @param {Boolean} bHighlighted Flag to higlight shape.
|
|
@@ -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.108.
|
|
20
|
+
* @version 1.108.10
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @static
|
|
@@ -157,7 +157,7 @@ sap.ui.define([
|
|
|
157
157
|
* @extend sap.ui.core.Control
|
|
158
158
|
*
|
|
159
159
|
* @author SAP SE
|
|
160
|
-
* @version 1.108.
|
|
160
|
+
* @version 1.108.10
|
|
161
161
|
* @since 1.60
|
|
162
162
|
*
|
|
163
163
|
* @constructor
|
|
@@ -2425,7 +2425,8 @@ sap.ui.define([
|
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
this.setTimeForGroupShape(oShape);
|
|
2428
|
-
|
|
2428
|
+
var sShapeSelectionMode = this.getShapeSelectionMode();
|
|
2429
|
+
if ((sShapeSelectionMode !== library.SelectionMode.Multiple) && (sShapeSelectionMode !== library.SelectionMode.MultipleWithLasso) && !bCtrl) {
|
|
2429
2430
|
this.oSelection.clearAllSelectedShapeIds();
|
|
2430
2431
|
this.searchTxt = [];
|
|
2431
2432
|
this.searchProperty = [];
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @extend sap.ui.core.Element
|
|
118
118
|
*
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.108.
|
|
120
|
+
* @version 1.108.10
|
|
121
121
|
* @since 1.66
|
|
122
122
|
*
|
|
123
123
|
* @constructor
|
|
@@ -399,16 +399,21 @@ sap.ui.define([
|
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* Opens the print dialog.
|
|
402
|
-
*
|
|
402
|
+
* @param {function} fnUpdateTable Optional function which takes cloned gantt chart's table for modification.
|
|
403
|
+
* Applications can loop through the table columns and update certain properties like maxLines to overcome html2canvas limitations.
|
|
403
404
|
* @returns {Promise} A promise for chaining actions after the print dialog is ready.
|
|
404
405
|
* @public
|
|
405
406
|
*/
|
|
406
|
-
GanttPrinting.prototype.open = function () {
|
|
407
|
+
GanttPrinting.prototype.open = function (fnUpdateTable) {
|
|
407
408
|
if (!this.getGanttChart() || !this._getOriginalGanttChart().isA("sap.gantt.simple.GanttChartWithTable")) {
|
|
408
409
|
throw new Error("Association 'ganttChart' of type 'sap.gantt.simple.GanttChartWithTable' is not set");
|
|
409
410
|
}
|
|
410
411
|
var that = this;
|
|
411
412
|
|
|
413
|
+
if (fnUpdateTable) {
|
|
414
|
+
fnUpdateTable(this._ganttChartClone.getTable());
|
|
415
|
+
}
|
|
416
|
+
|
|
412
417
|
this._createAndOpenDialog();
|
|
413
418
|
this._oDialog.getContent()[0].setBusy(true);
|
|
414
419
|
this._oButtonExport.setEnabled(false);
|
|
@@ -308,7 +308,9 @@ sap.ui.define([
|
|
|
308
308
|
|
|
309
309
|
InnerGanttChartRenderer.renderRowBackgrounds = function(oRm, oGantt, aRowStates) {
|
|
310
310
|
var nHeightOfPreviousRows = 0;
|
|
311
|
-
|
|
311
|
+
var oTable = oGantt.getTable();
|
|
312
|
+
var visibleRowCount = oTable.getVisibleRowCount();
|
|
313
|
+
var aTableRows = oTable.getRows();
|
|
312
314
|
oRm.openStart("g", oGantt.getId() + "-rowBackgrounds");
|
|
313
315
|
oRm.class("rowBackgrounds");
|
|
314
316
|
oRm.openEnd();
|
|
@@ -319,6 +321,10 @@ sap.ui.define([
|
|
|
319
321
|
oRm.attr("width", "100%");
|
|
320
322
|
oRm.attr("height", oRowState.height);
|
|
321
323
|
oRm.attr("data-sap-ui-index", iIndex);
|
|
324
|
+
var oRow = aTableRows[iIndex];
|
|
325
|
+
if (oRow) {
|
|
326
|
+
oRm.attr("data-sap-ui-related", oRow.getId());
|
|
327
|
+
}
|
|
322
328
|
oRm.class("sapGanttBackgroundSVGRow");
|
|
323
329
|
if (oRowState.selected && oGantt.getEnableChartSelectionState()) {
|
|
324
330
|
oRm.class("sapGanttBackgroundSVGRowSelected");
|
|
@@ -694,6 +694,7 @@
|
|
|
694
694
|
|
|
695
695
|
oRm.openStart("g", oRowSetting);
|
|
696
696
|
oRm.class(sTopRowClassName);
|
|
697
|
+
oRm.attr("data-sap-ui-related", oRowSetting.getParent().getId());
|
|
697
698
|
oRm.openEnd();
|
|
698
699
|
oRm.openStart("g");
|
|
699
700
|
// set default rowId to empty string to prevent assertion failure
|