@sapui5/sap.gantt 1.107.0 → 1.108.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 +2 -2
- package/src/sap/gantt/GanttChartBase.js +2 -2
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +5 -5
- 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 +2 -2
- 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/CursorLine.js +13 -6
- 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/flexibility/simple/GanttTableColumn.flexibility.js +25 -21
- 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 +3 -2
- 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 +3 -3
- 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 +36 -30
- 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 +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 +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 +19 -15
- package/src/sap/gantt/simple/FindAndSelectUtils.js +2 -2
- 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 +65 -9
- package/src/sap/gantt/simple/GanttDragDropExtension.js +42 -9
- 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 +21 -3
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +1 -1
- package/src/sap/gantt/simple/GanttResizeExtension.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/GanttScrollExtension.js +10 -0
- package/src/sap/gantt/simple/GanttUtils.js +6 -2
- package/src/sap/gantt/simple/GanttZoomExtension.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/ListLegendRenderer.js +3 -3
- 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 +49 -41
- package/src/sap/gantt/simple/SelectionModel.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 +7 -7
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/themes/base/Gantt.less +0 -2
- package/src/sap/gantt/themes/base/GanttSyncedControl.less +7 -0
package/package.json
CHANGED
package/src/sap/gantt/.library
CHANGED
|
@@ -87,7 +87,7 @@ function (
|
|
|
87
87
|
* @extends sap.gantt.GanttChartBase
|
|
88
88
|
*
|
|
89
89
|
* @author SAP SE
|
|
90
|
-
* @version 1.
|
|
90
|
+
* @version 1.108.1
|
|
91
91
|
*
|
|
92
92
|
* @constructor
|
|
93
93
|
* @public
|
|
@@ -3227,7 +3227,7 @@ function (
|
|
|
3227
3227
|
* @param {int} iRowIndex The row index to be set as the first visible row
|
|
3228
3228
|
* @return {sap.gantt.GanttChart} A reference to the GanttChart control, which can be used for chaining
|
|
3229
3229
|
* @public
|
|
3230
|
-
* @deprecated We recommend use setTableProperties function instead
|
|
3230
|
+
* @deprecated Since version 1.50.7. We recommend use setTableProperties function instead
|
|
3231
3231
|
*/
|
|
3232
3232
|
GanttChart.prototype.setFirstVisibleRow = function(iRowIndex) {
|
|
3233
3233
|
this.setTableProperties({
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* @abstract
|
|
64
64
|
*
|
|
65
65
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
66
|
+
* @version 1.108.1
|
|
67
67
|
*
|
|
68
68
|
* @constructor
|
|
69
69
|
* @public
|
|
@@ -135,7 +135,7 @@ sap.ui.define([
|
|
|
135
135
|
* for shapes. It may also affect the visual appearance, such as whether check boxes are available for selection.
|
|
136
136
|
* From version 1.40 to upper versions, multi is replaced by multiToggle selection mode in tree table
|
|
137
137
|
*
|
|
138
|
-
* @deprecated
|
|
138
|
+
* @deprecated Since version 1.50.7.
|
|
139
139
|
*
|
|
140
140
|
* Please use <code>tableProperties</code>(e.g. <code>setTableproperties({selectionMode: "None"})</code>)
|
|
141
141
|
* to control table selection mode, and <code>shapeSelectionMode</code>(e.g. <code>setShapeSelectionMode("None")</code>)
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.gantt.GanttChartBase
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.108.1
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @public
|
|
@@ -308,7 +308,7 @@ sap.ui.define([
|
|
|
308
308
|
* @param {int} iFixedColumnCount
|
|
309
309
|
* @returns {this} A reference to the GanttChartWithTable control, which can be used for chaining
|
|
310
310
|
* @public
|
|
311
|
-
* @deprecated We recommend use setTableProperties function instead
|
|
311
|
+
* @deprecated Since version 1.50.7. We recommend use setTableProperties function instead
|
|
312
312
|
*/
|
|
313
313
|
GanttChartWithTable.prototype.setFixedColumnCount = function (iFixedColumnCount) {
|
|
314
314
|
this.setTableProperties({
|
|
@@ -322,7 +322,7 @@ sap.ui.define([
|
|
|
322
322
|
* @see sap.ui.table.Table.getFixedColumnCount
|
|
323
323
|
* @return {int} The value of fixedColumnCount
|
|
324
324
|
* @public
|
|
325
|
-
* @deprecated We recommend use getTableProperties function instead
|
|
325
|
+
* @deprecated Since version 1.50.7. We recommend use getTableProperties function instead
|
|
326
326
|
*/
|
|
327
327
|
GanttChartWithTable.prototype.getFixedColumnCount = function () {
|
|
328
328
|
return this.getTableProperties().fixedColumnCount;
|
|
@@ -1456,7 +1456,7 @@ sap.ui.define([
|
|
|
1456
1456
|
*
|
|
1457
1457
|
* @return {int} the first visible row index
|
|
1458
1458
|
* @public
|
|
1459
|
-
* @deprecated We recommend use getTableProperties function instead
|
|
1459
|
+
* @deprecated Since version 1.50.7. We recommend use getTableProperties function instead
|
|
1460
1460
|
*/
|
|
1461
1461
|
GanttChartWithTable.prototype.getFirstVisibleRow = function() {
|
|
1462
1462
|
return this.getTableProperties().firstVisibleRow;
|
|
@@ -1470,7 +1470,7 @@ sap.ui.define([
|
|
|
1470
1470
|
* @param {int} iRowIndex The row index to be set as the first visible row
|
|
1471
1471
|
* @returns {this} A reference to the GanttChartWithTable control, which can be used for chaining
|
|
1472
1472
|
* @public
|
|
1473
|
-
* @deprecated We recommend use setTableProperties function instead
|
|
1473
|
+
* @deprecated Since version 1.50.7. We recommend use setTableProperties function instead
|
|
1474
1474
|
*/
|
|
1475
1475
|
GanttChartWithTable.prototype.setFirstVisibleRow = function(iRowIndex) {
|
|
1476
1476
|
this.setTableProperties({
|
|
@@ -240,7 +240,7 @@ sap.ui.define([
|
|
|
240
240
|
* The class allows you to define a zoom strategy whose time line options are stepwise, i.e. the width of each time line option
|
|
241
241
|
* is pre-defined and won't be changed during zooming.
|
|
242
242
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
243
|
-
* @version 1.
|
|
243
|
+
* @version 1.108.1
|
|
244
244
|
*
|
|
245
245
|
* @constructor
|
|
246
246
|
* @public
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
* @extends sap.ui.core.Element
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.108.1
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @public
|
|
@@ -63,7 +63,7 @@ sap.ui.define([
|
|
|
63
63
|
* with the first child array representing the first level and so forth. For example, if
|
|
64
64
|
* this property is set to [["02", "03"], ["05"]], rows containing data of object types 02 or 03 in the
|
|
65
65
|
* first level and rows containing data of object type 05 in the second level are expanded.
|
|
66
|
-
* @deprecated This feature may cause severe performance issue! Since TreeTable doesn't have API to
|
|
66
|
+
* @deprecated Since version 1.46.8. This feature may cause severe performance issue! Since TreeTable doesn't have API to
|
|
67
67
|
* expand specific multiple rows in one call, GanttChart expand the tree tale to level calculated from
|
|
68
68
|
* the configuration, then loop all data in the model, collapse the node which does not full-fill the
|
|
69
69
|
* configuration one by one. This feature is application specific and should be handled by application.
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Core", "sap/ui/Device", "sap/gantt/misc/Format", "sap/gantt/drawer/Drawer", "sap/gantt/misc/Utility",
|
|
9
|
+
"../simple/GanttUtils","sap/ui/core/theming/Parameters",
|
|
9
10
|
// 3rd party lib
|
|
10
11
|
"sap/ui/thirdparty/d3"
|
|
11
|
-
], function (Core, Device, Format, Drawer, Utility) {
|
|
12
|
+
], function (Core, Device, Format, Drawer, Utility,GanttUtils,Parameters) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -144,6 +145,12 @@ sap.ui.define([
|
|
|
144
145
|
var yAxis = oSvgPoint.y;
|
|
145
146
|
var iHeight;
|
|
146
147
|
// update path
|
|
148
|
+
var getLabel = function(x){
|
|
149
|
+
return that._getTimeLabel(
|
|
150
|
+
Format.dateToAbapTimestamp(oAxisTime.viewToTime(x)),
|
|
151
|
+
that._oLocale,
|
|
152
|
+
oAxisTime);
|
|
153
|
+
};
|
|
147
154
|
var aRect = aGroup.selectAll("rect")
|
|
148
155
|
.data(function(d) {
|
|
149
156
|
if (oAvailSvg !== null){
|
|
@@ -165,7 +172,10 @@ sap.ui.define([
|
|
|
165
172
|
.attr("width", function (d) {
|
|
166
173
|
// Since width and height are not style class in SVG for FF and IE
|
|
167
174
|
// Have provide default width and height here
|
|
168
|
-
|
|
175
|
+
var txt = getLabel(d.x),
|
|
176
|
+
textwidth = GanttUtils.getShapeTextWidth(txt, parseInt(Parameters.get("sapUiFontSmallSize"), 10),"Arial","normal");
|
|
177
|
+
// If text width is more than 64px then rectangle box gets width same as that of text width with padding of 5 each on both side by default.
|
|
178
|
+
return textwidth < 64 ? 64 : textwidth + 10;
|
|
169
179
|
}).attr("height", function (d) {
|
|
170
180
|
// If more than 80, most likely it's in Cozy Mode, so make the height larger
|
|
171
181
|
return d.svgHeight > 80 ? 30 : 25;
|
|
@@ -215,10 +225,7 @@ sap.ui.define([
|
|
|
215
225
|
return d.y;
|
|
216
226
|
})
|
|
217
227
|
.text(function (d) {
|
|
218
|
-
return
|
|
219
|
-
Format.dateToAbapTimestamp(oAxisTime.viewToTime(d.x)),
|
|
220
|
-
that._oLocale,
|
|
221
|
-
oAxisTime);
|
|
228
|
+
return getLabel(d.x);
|
|
222
229
|
});
|
|
223
230
|
aText.exit().remove();
|
|
224
231
|
};
|