@sapui5/sap.gantt 1.120.2 → 1.121.0
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 +16 -18
- package/src/sap/gantt/GanttChartBase.js +1 -1
- package/src/sap/gantt/GanttChartContainer.js +14 -16
- package/src/sap/gantt/GanttChartWithTable.js +2 -2
- package/src/sap/gantt/GanttChartWithTableRenderer.js +2 -2
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +45 -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 +2 -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 +2 -2
- 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 -5
- 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/control/Toolbar.js +5 -5
- 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 +11 -3
- 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/AdhocLine.js +0 -2
- package/src/sap/gantt/drawer/CursorLine.js +6 -12
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/SelectionPanel.js +0 -2
- package/src/sap/gantt/drawer/ShapeInRow.js +1 -2
- 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 +3 -7
- 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 +2 -4
- package/src/sap/gantt/legend/DimensionLegend.js +4 -3
- 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 +4 -3
- package/src/sap/gantt/messagebundle.properties +51 -48
- package/src/sap/gantt/messagebundle_ar.properties +37 -19
- package/src/sap/gantt/messagebundle_bg.properties +39 -21
- package/src/sap/gantt/messagebundle_ca.properties +2 -0
- package/src/sap/gantt/messagebundle_cnr.properties +2 -0
- package/src/sap/gantt/messagebundle_cs.properties +36 -18
- package/src/sap/gantt/messagebundle_cy.properties +37 -19
- package/src/sap/gantt/messagebundle_da.properties +37 -19
- package/src/sap/gantt/messagebundle_de.properties +37 -19
- package/src/sap/gantt/messagebundle_el.properties +35 -17
- package/src/sap/gantt/messagebundle_en.properties +2 -260
- package/src/sap/gantt/messagebundle_en_GB.properties +37 -19
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +2 -0
- package/src/sap/gantt/messagebundle_es.properties +37 -19
- package/src/sap/gantt/messagebundle_es_MX.properties +37 -19
- package/src/sap/gantt/messagebundle_et.properties +37 -19
- package/src/sap/gantt/messagebundle_fi.properties +37 -19
- package/src/sap/gantt/messagebundle_fr.properties +37 -19
- package/src/sap/gantt/messagebundle_fr_CA.properties +37 -19
- package/src/sap/gantt/messagebundle_hi.properties +36 -18
- package/src/sap/gantt/messagebundle_hr.properties +37 -19
- package/src/sap/gantt/messagebundle_hu.properties +35 -17
- package/src/sap/gantt/messagebundle_id.properties +37 -19
- package/src/sap/gantt/messagebundle_it.properties +37 -19
- package/src/sap/gantt/messagebundle_iw.properties +37 -19
- package/src/sap/gantt/messagebundle_ja.properties +34 -16
- package/src/sap/gantt/messagebundle_kk.properties +39 -21
- package/src/sap/gantt/messagebundle_ko.properties +37 -19
- package/src/sap/gantt/messagebundle_lt.properties +34 -16
- package/src/sap/gantt/messagebundle_lv.properties +37 -19
- package/src/sap/gantt/messagebundle_mk.properties +188 -170
- package/src/sap/gantt/messagebundle_ms.properties +37 -19
- package/src/sap/gantt/messagebundle_nl.properties +37 -19
- package/src/sap/gantt/messagebundle_no.properties +35 -17
- package/src/sap/gantt/messagebundle_pl.properties +36 -18
- package/src/sap/gantt/messagebundle_pt.properties +37 -19
- package/src/sap/gantt/messagebundle_pt_PT.properties +37 -19
- package/src/sap/gantt/messagebundle_ro.properties +37 -19
- package/src/sap/gantt/messagebundle_ru.properties +37 -19
- package/src/sap/gantt/messagebundle_sh.properties +87 -69
- package/src/sap/gantt/messagebundle_sk.properties +38 -20
- package/src/sap/gantt/messagebundle_sl.properties +37 -19
- package/src/sap/gantt/messagebundle_sr.properties +429 -0
- package/src/sap/gantt/messagebundle_sv.properties +39 -21
- package/src/sap/gantt/messagebundle_th.properties +36 -18
- package/src/sap/gantt/messagebundle_tr.properties +37 -19
- package/src/sap/gantt/messagebundle_uk.properties +39 -21
- package/src/sap/gantt/messagebundle_vi.properties +36 -18
- package/src/sap/gantt/messagebundle_zh_CN.properties +37 -19
- package/src/sap/gantt/messagebundle_zh_TW.properties +37 -19
- package/src/sap/gantt/misc/AxisOrdinal.js +1 -1
- package/src/sap/gantt/misc/AxisTime.js +1 -1
- package/src/sap/gantt/misc/Format.js +3 -36
- 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 +3 -3
- package/src/sap/gantt/misc/ShapeSelectionModel.js +1 -1
- package/src/sap/gantt/overlays/GanttRowOverlay.js +1 -1
- 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 +5 -5
- package/src/sap/gantt/shape/SelectedShape.js +5 -5
- 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 +2 -2
- 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 +2 -2
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +2 -2
- package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +2 -2
- package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +2 -2
- package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +2 -2
- package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +2 -4
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +3 -5
- 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 +2 -2
- 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 +5 -5
- package/src/sap/gantt/simple/BaseCalendar.js +2 -4
- package/src/sap/gantt/simple/BaseChevron.js +3 -3
- package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
- package/src/sap/gantt/simple/BaseCursor.js +3 -3
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseDiamond.js +3 -3
- package/src/sap/gantt/simple/BaseGroup.js +3 -3
- 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 +5 -8
- package/src/sap/gantt/simple/BaseRectangle.js +3 -3
- package/src/sap/gantt/simple/BaseShape.js +3 -15
- package/src/sap/gantt/simple/BaseText.js +3 -3
- package/src/sap/gantt/simple/BaseTriangle.js +4 -4
- package/src/sap/gantt/simple/ContainerToolbar.js +9 -5
- 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 +3 -5
- package/src/sap/gantt/simple/FindAndSelectUtils.js +18 -8
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +18 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +9 -39
- package/src/sap/gantt/simple/GanttDragDropExtension.js +13 -23
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +6 -2
- package/src/sap/gantt/simple/GanttPointerExtension.js +5 -4
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +73 -73
- package/src/sap/gantt/simple/GanttResizeExtension.js +7 -14
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttSearchSidePanel.js +52 -46
- package/src/sap/gantt/simple/GanttSyncedControl.js +2 -2
- package/src/sap/gantt/simple/GanttUtils.js +22 -48
- package/src/sap/gantt/simple/GanttZoomExtension.js +2 -2
- package/src/sap/gantt/simple/HighlightModel.js +1 -3
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +2 -2
- 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 +8 -14
- package/src/sap/gantt/simple/RenderUtils.js +4 -6
- package/src/sap/gantt/simple/SelectionModel.js +1 -3
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +3 -8
- 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 +2 -2
- package/src/sap/gantt/thirdparty/svg2pdf.js +4605 -4605
- package/ui5.yaml +1 -1
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.121.0
|
|
91
91
|
*
|
|
92
92
|
* @constructor
|
|
93
93
|
* @public
|
|
@@ -1115,7 +1115,7 @@ function (
|
|
|
1115
1115
|
var $svg = jQuery(this.getDomSelectorById("svg"))[0];
|
|
1116
1116
|
var oClickPoint = this._getSvgCoodinateByDiv($svg, this._getMouseXPos(event), event.pageY - window.pageYOffset);
|
|
1117
1117
|
|
|
1118
|
-
var iRowIndex = parseInt(this._oAxisOrdinalOfVisibleRow.viewToElementIndex(oClickPoint.y)
|
|
1118
|
+
var iRowIndex = parseInt(this._oAxisOrdinalOfVisibleRow.viewToElementIndex(oClickPoint.y));
|
|
1119
1119
|
if (iRowIndex < 0){
|
|
1120
1120
|
return false;
|
|
1121
1121
|
}
|
|
@@ -1222,10 +1222,10 @@ function (
|
|
|
1222
1222
|
var y = oEvent.pageY - aSvg.offset().top || oEvent.offsetY;
|
|
1223
1223
|
var shapeX, shapeY, shapeWidth, shapeHeight;
|
|
1224
1224
|
if (oEvent.target.getAttribute("x") && oEvent.target.getAttribute("width")) {
|
|
1225
|
-
shapeX = parseInt(oEvent.target.getAttribute("x")
|
|
1226
|
-
shapeY = parseInt(oEvent.target.getAttribute("y")
|
|
1227
|
-
shapeWidth = parseInt(oEvent.target.getAttribute("width")
|
|
1228
|
-
shapeHeight = parseInt(oEvent.target.getAttribute("height")
|
|
1225
|
+
shapeX = parseInt(oEvent.target.getAttribute("x"));
|
|
1226
|
+
shapeY = parseInt(oEvent.target.getAttribute("y"));
|
|
1227
|
+
shapeWidth = parseInt(oEvent.target.getAttribute("width"));
|
|
1228
|
+
shapeHeight = parseInt(oEvent.target.getAttribute("height"));
|
|
1229
1229
|
} else if (oSourceShapeData.startTime) {
|
|
1230
1230
|
var x1 = this.getAxisTime().timeToView(Format.abapTimestampToDate(oSourceShapeData.startTime));
|
|
1231
1231
|
var x2 = this.getAxisTime().timeToView(Format.abapTimestampToDate(oSourceShapeData.endTime));
|
|
@@ -1343,14 +1343,12 @@ function (
|
|
|
1343
1343
|
dragDiv = d3.select("body").append("div").attr("id", "dragDropShadow");
|
|
1344
1344
|
dragDiv.classed("sapGanttDraggingShadow", true);
|
|
1345
1345
|
|
|
1346
|
-
var svgRight = 12;
|
|
1347
1346
|
var fontSize = 12;
|
|
1348
1347
|
|
|
1349
1348
|
var oClientRect = this._oDraggingData.groupDom.getBoundingClientRect();
|
|
1350
1349
|
if (oClientRect) {
|
|
1351
1350
|
svgContentWidth = oClientRect.width;
|
|
1352
1351
|
svgContentHeight = oClientRect.height;
|
|
1353
|
-
svgRight = bRtl ? svgRight : Math.ceil(oClientRect.right);
|
|
1354
1352
|
}
|
|
1355
1353
|
|
|
1356
1354
|
// getBoundingClientRect has some defects in Safari
|
|
@@ -1387,7 +1385,7 @@ function (
|
|
|
1387
1385
|
iCurrentX = bRtl ? (iMousePageX - this._oDraggingData.dragStartPoint.shapeWidth) : iMousePageX;
|
|
1388
1386
|
} else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.None) {
|
|
1389
1387
|
iCurrentX = iShapeX + iMousePageX - iStartMouseX;
|
|
1390
|
-
}else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.End) {
|
|
1388
|
+
} else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.End) {
|
|
1391
1389
|
iCurrentX = bRtl ? iMousePageX : (iMousePageX - this._oDraggingData.dragStartPoint.shapeWidth);
|
|
1392
1390
|
}
|
|
1393
1391
|
|
|
@@ -1537,17 +1535,17 @@ function (
|
|
|
1537
1535
|
|
|
1538
1536
|
GanttChart.prototype._collectDraggingShapeData = function (oDraggingSource, oEvent) {
|
|
1539
1537
|
var aSvg = jQuery(this.getDomSelectorById("svg"));
|
|
1540
|
-
var x = parseInt((this._getMouseXPos(oEvent) - aSvg.offset().left || oEvent.offsetX)
|
|
1538
|
+
var x = parseInt((this._getMouseXPos(oEvent) - aSvg.offset().left || oEvent.offsetX));
|
|
1541
1539
|
var sStartPointX = oDraggingSource.dragStartPoint.x;
|
|
1542
|
-
var iDragDistance = x - parseInt(sStartPointX
|
|
1540
|
+
var iDragDistance = x - parseInt(sStartPointX);
|
|
1543
1541
|
var sShapeCurrentStartX;
|
|
1544
1542
|
var iShapeDuration = Format.abapTimestampToDate(oDraggingSource.sourceShapeData[0].shapeData.endTime) - Format.abapTimestampToDate(oDraggingSource.sourceShapeData[0].shapeData.startTime);
|
|
1545
1543
|
if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.Start) {
|
|
1546
1544
|
sShapeCurrentStartX = x;
|
|
1547
1545
|
} else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.None) {
|
|
1548
|
-
sShapeCurrentStartX = parseInt(oDraggingSource.dragStartPoint.shapeX
|
|
1549
|
-
}else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.End) {
|
|
1550
|
-
sShapeCurrentStartX = x - parseInt(oDraggingSource.dragStartPoint.shapeWidth
|
|
1546
|
+
sShapeCurrentStartX = parseInt(oDraggingSource.dragStartPoint.shapeX) + iDragDistance;
|
|
1547
|
+
} else if (this.getGhostAlignment() === sap.gantt.dragdrop.GhostAlignment.End) {
|
|
1548
|
+
sShapeCurrentStartX = x - parseInt(oDraggingSource.dragStartPoint.shapeWidth);
|
|
1551
1549
|
}
|
|
1552
1550
|
var sNewStartTime, sNewEndTime;
|
|
1553
1551
|
if (Core.getConfiguration().getRTL() === true) {
|
|
@@ -1667,7 +1665,7 @@ function (
|
|
|
1667
1665
|
*/
|
|
1668
1666
|
if (oEvent.button == 2){
|
|
1669
1667
|
this._handleRightClick(oEvent);
|
|
1670
|
-
}else if (oEvent.button == 0 && !this._bDragging && this._bMouseDown && !this._oShapeResizeHandler.getIsResizing()) {
|
|
1668
|
+
} else if (oEvent.button == 0 && !this._bDragging && this._bMouseDown && !this._oShapeResizeHandler.getIsResizing()) {
|
|
1671
1669
|
this._handleSelectionChange(oEvent);
|
|
1672
1670
|
}
|
|
1673
1671
|
};
|
|
@@ -1852,7 +1850,7 @@ function (
|
|
|
1852
1850
|
});
|
|
1853
1851
|
if (oShapeData !== undefined) {
|
|
1854
1852
|
this._lastHoverShapeUid = oShapeData.uid;
|
|
1855
|
-
}else {
|
|
1853
|
+
} else {
|
|
1856
1854
|
this._lastHoverShapeUid = undefined;
|
|
1857
1855
|
}
|
|
1858
1856
|
}
|
|
@@ -2920,14 +2918,14 @@ function (
|
|
|
2920
2918
|
d3.selectAll(".sapGanttChartHeader .sapGanttTimeHeaderSvgText0")
|
|
2921
2919
|
.each(function(d,i) {
|
|
2922
2920
|
d3.select(this).attr("transform", function(d) {
|
|
2923
|
-
var sOffsetTranslate = "translate(" + ( -Utility.calculateStringLength(d.label) * parseInt(jQuery(".sapGanttTimeHeaderSvgText0").css("font-size")
|
|
2921
|
+
var sOffsetTranslate = "translate(" + ( -Utility.calculateStringLength(d.label) * parseInt(jQuery(".sapGanttTimeHeaderSvgText0").css("font-size") ) / 2) + ")";
|
|
2924
2922
|
return sOffsetTranslate;
|
|
2925
2923
|
});
|
|
2926
2924
|
});
|
|
2927
2925
|
d3.selectAll(".sapGanttChartHeader .sapGanttTimeHeaderSvgText1")
|
|
2928
2926
|
.each(function(d,i) {
|
|
2929
2927
|
d3.select(this).attr("transform", function(d) {
|
|
2930
|
-
var sOffsetTranslate = "translate(" + ( -Utility.calculateStringLength(d.label) * parseInt(jQuery(".sapGanttTimeHeaderSvgText1").css("font-size")
|
|
2928
|
+
var sOffsetTranslate = "translate(" + ( -Utility.calculateStringLength(d.label) * parseInt(jQuery(".sapGanttTimeHeaderSvgText1").css("font-size") ) / 2) + ")";
|
|
2931
2929
|
return sOffsetTranslate;
|
|
2932
2930
|
});
|
|
2933
2931
|
});
|
|
@@ -62,7 +62,7 @@ function (
|
|
|
62
62
|
* @extend sap.ui.core.Control
|
|
63
63
|
*
|
|
64
64
|
* @author SAP SE
|
|
65
|
-
* @version 1.
|
|
65
|
+
* @version 1.121.0
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @public
|
|
@@ -698,11 +698,9 @@ function (
|
|
|
698
698
|
} else {
|
|
699
699
|
oContent.getLayoutData().setSize(sLayoutSize);
|
|
700
700
|
}
|
|
701
|
-
} else {
|
|
702
|
-
if (oContent.getLayoutData().getSize() !== "auto") {
|
|
701
|
+
} else if (oContent.getLayoutData().getSize() !== "auto") {
|
|
703
702
|
oContent.getLayoutData().setSize("auto");
|
|
704
703
|
}
|
|
705
|
-
}
|
|
706
704
|
}
|
|
707
705
|
});
|
|
708
706
|
}
|
|
@@ -1012,7 +1010,7 @@ function (
|
|
|
1012
1010
|
if (oParam.timePopoverData) {
|
|
1013
1011
|
this._oTimePopoverData = oParam.timePopoverData;
|
|
1014
1012
|
}
|
|
1015
|
-
}else {
|
|
1013
|
+
} else {
|
|
1016
1014
|
this._oDraggingSource = undefined;
|
|
1017
1015
|
this._oTimePopoverData = undefined;
|
|
1018
1016
|
}
|
|
@@ -1127,7 +1125,7 @@ function (
|
|
|
1127
1125
|
if (iGanttChart != undefined && iGanttChart < aGanttCharts.length) {
|
|
1128
1126
|
oGanttChart = aGanttCharts[iGanttChart];
|
|
1129
1127
|
bRetVal = oGanttChart.selectShapes(aIds, isExclusive);
|
|
1130
|
-
}else {
|
|
1128
|
+
} else {
|
|
1131
1129
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1132
1130
|
oGanttChart = aGanttCharts[i];
|
|
1133
1131
|
if (oGanttChart.selectShapes(aIds, isExclusive)) {
|
|
@@ -1155,7 +1153,7 @@ function (
|
|
|
1155
1153
|
if (iGanttChartIndex != undefined && iGanttChartIndex < this.getGanttCharts().length) {
|
|
1156
1154
|
oGanttChart = this.getGanttCharts()[iGanttChartIndex];
|
|
1157
1155
|
bRetVal = oGanttChart.deselectShapes(aIds);
|
|
1158
|
-
}else {
|
|
1156
|
+
} else {
|
|
1159
1157
|
for (var iGanttChart in aGanttCharts) {
|
|
1160
1158
|
oGanttChart = aGanttCharts[iGanttChart];
|
|
1161
1159
|
if (oGanttChart.deselectShapes(aIds)) {
|
|
@@ -1184,7 +1182,7 @@ function (
|
|
|
1184
1182
|
if (iGanttChartIndex != undefined && iGanttChartIndex < aGanttCharts.length) {
|
|
1185
1183
|
oGanttChart = aGanttCharts[iGanttChartIndex];
|
|
1186
1184
|
bRetVal = oGanttChart.selectRelationships(aIds, isExclusive);
|
|
1187
|
-
}else {
|
|
1185
|
+
} else {
|
|
1188
1186
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1189
1187
|
oGanttChart = aGanttCharts[i];
|
|
1190
1188
|
if (oGanttChart.selectRelationships(aIds, isExclusive)) {
|
|
@@ -1212,7 +1210,7 @@ function (
|
|
|
1212
1210
|
if (iGanttChartIndex != undefined && iGanttChartIndex < aGanttCharts.length) {
|
|
1213
1211
|
oGanttChart = aGanttCharts[iGanttChartIndex];
|
|
1214
1212
|
bRetVal = oGanttChart.deselectRelationships(aIds);
|
|
1215
|
-
}else {
|
|
1213
|
+
} else {
|
|
1216
1214
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1217
1215
|
oGanttChart = aGanttCharts[i];
|
|
1218
1216
|
if (oGanttChart.deselectRelationships(aIds)) {
|
|
@@ -1242,7 +1240,7 @@ function (
|
|
|
1242
1240
|
if (iGanttChartIndex != undefined && iGanttChartIndex < aGanttCharts.length) {
|
|
1243
1241
|
oGanttChart = aGanttCharts[iGanttChartIndex];
|
|
1244
1242
|
bRetVal = oGanttChart.selectRows(aIds, isExclusive);
|
|
1245
|
-
}else {
|
|
1243
|
+
} else {
|
|
1246
1244
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1247
1245
|
oGanttChart = aGanttCharts[i];
|
|
1248
1246
|
if (oGanttChart.selectRows(aIds, isExclusive)) {
|
|
@@ -1271,7 +1269,7 @@ function (
|
|
|
1271
1269
|
if (iGanttChartIndex != undefined && iGanttChartIndex < aGanttCharts.length) {
|
|
1272
1270
|
oGanttChart = aGanttCharts[iGanttChartIndex];
|
|
1273
1271
|
bRetVal = oGanttChart.deselectRows(aIds);
|
|
1274
|
-
}else {
|
|
1272
|
+
} else {
|
|
1275
1273
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1276
1274
|
oGanttChart = aGanttCharts[i];
|
|
1277
1275
|
if (oGanttChart.deselectRows(aIds)) {
|
|
@@ -1300,7 +1298,7 @@ function (
|
|
|
1300
1298
|
if (iGanttChartIndex != undefined && iGanttChartIndex < aGanttCharts.length) {
|
|
1301
1299
|
oGanttChart = aGanttCharts[iGanttChartIndex];
|
|
1302
1300
|
bRetVal = oGanttChart.selectRowsAndShapes(aIds, bIsExclusive);
|
|
1303
|
-
}else {
|
|
1301
|
+
} else {
|
|
1304
1302
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1305
1303
|
oGanttChart = aGanttCharts[i];
|
|
1306
1304
|
if (oGanttChart.selectRowsAndShapes(aIds, bIsExclusive)) {
|
|
@@ -1331,7 +1329,7 @@ function (
|
|
|
1331
1329
|
if (oSelectedShapes !== undefined) {
|
|
1332
1330
|
aRetVal.push({"ganttChartIndex": iGanttChartIndex, "selectedShapes": oSelectedShapes});
|
|
1333
1331
|
}
|
|
1334
|
-
}else {
|
|
1332
|
+
} else {
|
|
1335
1333
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1336
1334
|
oGanttChart = aGanttCharts[i];
|
|
1337
1335
|
oSelectedShapes = oGanttChart.getSelectedShapes();
|
|
@@ -1363,7 +1361,7 @@ function (
|
|
|
1363
1361
|
if (aRows !== undefined && aRows.length > 0) {
|
|
1364
1362
|
aRetVal.push({"ganttChartIndex": iGanttChartIndex, "selectedRows": aRows});
|
|
1365
1363
|
}
|
|
1366
|
-
}else {
|
|
1364
|
+
} else {
|
|
1367
1365
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1368
1366
|
oGanttChart = aGanttCharts[i];
|
|
1369
1367
|
aRows = oGanttChart.getSelectedRows();
|
|
@@ -1395,7 +1393,7 @@ function (
|
|
|
1395
1393
|
if (aRelationships !== undefined) {
|
|
1396
1394
|
aRetVal.push({"ganttChartIndex": iGanttChartIndex, "selectedRelationships": aRelationships});
|
|
1397
1395
|
}
|
|
1398
|
-
}else {
|
|
1396
|
+
} else {
|
|
1399
1397
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1400
1398
|
oGanttChart = aGanttCharts[i];
|
|
1401
1399
|
aRelationships = oGanttChart.getSelectedRelationships();
|
|
@@ -1427,7 +1425,7 @@ function (
|
|
|
1427
1425
|
if (oSelections !== undefined) {
|
|
1428
1426
|
aRetVal.push({"ganttChartIndex": iGanttChartIndex, "allSelection": oSelections});
|
|
1429
1427
|
}
|
|
1430
|
-
}else {
|
|
1428
|
+
} else {
|
|
1431
1429
|
for (var i = 0; i < aGanttCharts.length; i++) {
|
|
1432
1430
|
oGanttChart = aGanttCharts[i];
|
|
1433
1431
|
oSelections = oGanttChart.getAllSelections();
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @extends sap.gantt.GanttChartBase
|
|
60
60
|
*
|
|
61
61
|
* @author SAP SE
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.121.0
|
|
63
63
|
*
|
|
64
64
|
* @constructor
|
|
65
65
|
* @public
|
|
@@ -1188,7 +1188,7 @@ sap.ui.define([
|
|
|
1188
1188
|
|
|
1189
1189
|
if (Device.browser.firefox) { // ticket 1880488199
|
|
1190
1190
|
var $tableContentDiv = this._oTT.$().find(".sapUiTableCCnt");
|
|
1191
|
-
iGanttChartHeaderHeight = parseInt($tableContentDiv[0].getBoundingClientRect().top - this._oTT.$()[0].getBoundingClientRect().top
|
|
1191
|
+
iGanttChartHeaderHeight = parseInt($tableContentDiv[0].getBoundingClientRect().top - this._oTT.$()[0].getBoundingClientRect().top);
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
1194
1194
|
var $headerDiv = this._oGanttChart.$().find(".sapGanttChartHeader");
|
|
@@ -41,9 +41,9 @@ sap.ui.define(['sap/ui/core/theming/Parameters', 'sap/gantt/misc/Utility'], func
|
|
|
41
41
|
iHeight = 0,
|
|
42
42
|
iPaddingTop = bHcbTheme ? 4 : 2;
|
|
43
43
|
if (sMode === "sapUiSizeCozy") {
|
|
44
|
-
iHeight = parseInt(Parameters.get("_sap_gantt_Gantt_HeaderHeight")
|
|
44
|
+
iHeight = parseInt(Parameters.get("_sap_gantt_Gantt_HeaderHeight")) - iPaddingTop;
|
|
45
45
|
} else {
|
|
46
|
-
iHeight = parseInt(Parameters.get("_sap_gantt_Gantt_CompactHeaderHeight")
|
|
46
|
+
iHeight = parseInt(Parameters.get("_sap_gantt_Gantt_CompactHeaderHeight")) - iPaddingTop;
|
|
47
47
|
}
|
|
48
48
|
oGanttChartWithTable._oTT.setColumnHeaderHeight(iHeight);
|
|
49
49
|
}
|
|
@@ -17,7 +17,9 @@ sap.ui.define([
|
|
|
17
17
|
"../misc/Format",
|
|
18
18
|
"../misc/RelativeTimeFormatter",
|
|
19
19
|
"../config/TimeHorizon",
|
|
20
|
-
"../misc/AxisTime"
|
|
20
|
+
"../misc/AxisTime",
|
|
21
|
+
"sap/ui/core/date/CalendarUtils",
|
|
22
|
+
"sap/ui/core/Configuration"
|
|
21
23
|
], function (
|
|
22
24
|
Log,
|
|
23
25
|
library,
|
|
@@ -31,7 +33,9 @@ sap.ui.define([
|
|
|
31
33
|
Format,
|
|
32
34
|
RelativeTimeFormatter,
|
|
33
35
|
TimeHorizon,
|
|
34
|
-
AxisTime
|
|
36
|
+
AxisTime,
|
|
37
|
+
CalendarUtils,
|
|
38
|
+
Configuration
|
|
35
39
|
) {
|
|
36
40
|
"use strict";
|
|
37
41
|
|
|
@@ -67,7 +71,7 @@ sap.ui.define([
|
|
|
67
71
|
* @abstract
|
|
68
72
|
*
|
|
69
73
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
74
|
+
* @version 1.121.0
|
|
71
75
|
*
|
|
72
76
|
* @constructor
|
|
73
77
|
* @public
|
|
@@ -513,6 +517,27 @@ sap.ui.define([
|
|
|
513
517
|
return oFormatter;
|
|
514
518
|
};
|
|
515
519
|
|
|
520
|
+
/**
|
|
521
|
+
* @returns {string} returns given calendar week numbering or from the global configuration
|
|
522
|
+
* @public
|
|
523
|
+
* @since 1.121.0
|
|
524
|
+
*/
|
|
525
|
+
AxisTimeStrategyBase.prototype.getCalendarWeekNumbering = function () {
|
|
526
|
+
var eCalendarWeekNumbering = this.getProperty("calendarWeekNumbering");
|
|
527
|
+
|
|
528
|
+
return eCalendarWeekNumbering || Configuration.getCalendarWeekNumbering();
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @returns {string} returns Calendar Week Configuration
|
|
533
|
+
* @private
|
|
534
|
+
*/
|
|
535
|
+
AxisTimeStrategyBase.prototype._getCalendarWeekConfig = function () {
|
|
536
|
+
return CalendarUtils.getWeekConfigurationValues(
|
|
537
|
+
this.getCalendarWeekNumbering()
|
|
538
|
+
);
|
|
539
|
+
};
|
|
540
|
+
|
|
516
541
|
/**
|
|
517
542
|
* Checks whether the current level is hour sensitive
|
|
518
543
|
* @private
|
|
@@ -611,7 +636,14 @@ sap.ui.define([
|
|
|
611
636
|
*/
|
|
612
637
|
AxisTimeStrategyBase.prototype.checkFirstDayOfWeek = function (mSettings) {
|
|
613
638
|
if (typeof mSettings.firstDayOfWeek === "undefined") {
|
|
614
|
-
|
|
639
|
+
var oWeekConfig = this._getCalendarWeekConfig();
|
|
640
|
+
|
|
641
|
+
if (oWeekConfig) {
|
|
642
|
+
mSettings.firstDayOfWeek = oWeekConfig.firstDayOfWeek;
|
|
643
|
+
} else {
|
|
644
|
+
mSettings.firstDayOfWeek = LocaleData.getInstance(Core.getConfiguration().getLocale()).getFirstDayOfWeek();
|
|
645
|
+
}
|
|
646
|
+
|
|
615
647
|
Core.attachLocalizationChanged(this._onLocalizationChanged, this);
|
|
616
648
|
}
|
|
617
649
|
};
|
|
@@ -746,7 +778,7 @@ sap.ui.define([
|
|
|
746
778
|
|
|
747
779
|
var nNewEndTimeInMs = nNewStartTimeInMs + nNewVisibleTimeRange;
|
|
748
780
|
if (nNewEndTimeInMs >= nTotalHorizonEndTimeInMs) {
|
|
749
|
-
nNewStartTimeInMs = nNewStartTimeInMs - (nTotalHorizonEndTimeInMs - nNewEndTimeInMs);
|
|
781
|
+
nNewStartTimeInMs = nNewStartTimeInMs - Math.abs(nTotalHorizonEndTimeInMs - nNewEndTimeInMs);
|
|
750
782
|
nNewEndTimeInMs = nTotalHorizonEndTimeInMs;
|
|
751
783
|
if (nNewStartTimeInMs <= nTotalHorizonStartTimeInMs) {
|
|
752
784
|
nNewStartTimeInMs = nTotalHorizonStartTimeInMs;
|
|
@@ -777,7 +809,14 @@ sap.ui.define([
|
|
|
777
809
|
* @private
|
|
778
810
|
*/
|
|
779
811
|
AxisTimeStrategyBase.prototype._onLocalizationChanged = function () {
|
|
780
|
-
this.
|
|
812
|
+
var oWeekConfig = this._getCalendarWeekConfig();
|
|
813
|
+
|
|
814
|
+
if (oWeekConfig) {
|
|
815
|
+
this.setFirstDayOfWeek(oWeekConfig.firstDayOfWeek);
|
|
816
|
+
} else {
|
|
817
|
+
this.setFirstDayOfWeek(LocaleData.getInstance(Core.getConfiguration().getLocale()).getFirstDayOfWeek());
|
|
818
|
+
}
|
|
819
|
+
|
|
781
820
|
var oGantt = this.getParent();
|
|
782
821
|
if (oGantt && oGantt.getEnablePseudoShapes && oGantt.getEnablePseudoShapes()){
|
|
783
822
|
if (!oGantt.pseudoShapeSpecificData){
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* The class allows you to define a zoom strategy whose time line options are stepwise, i.e. the width of each time line option
|
|
24
24
|
* is pre-defined and won't be changed during zooming.
|
|
25
25
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.121.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
*
|
|
36
36
|
* @author SAP SE
|
|
37
37
|
*
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.121.0
|
|
39
39
|
*
|
|
40
40
|
* @since 1.90
|
|
41
41
|
*/
|
|
@@ -65,7 +65,7 @@ sap.ui.define([
|
|
|
65
65
|
new GroupElement({
|
|
66
66
|
label: oResourceBundle.getText("TXT_CH_GCT_HEIGHT"),
|
|
67
67
|
elements: [
|
|
68
|
-
new Slider({value: parseInt(oTable.getHeight().split("%")[0]
|
|
68
|
+
new Slider({value: parseInt(oTable.getHeight().split("%")[0])})
|
|
69
69
|
]
|
|
70
70
|
})
|
|
71
71
|
]
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.core.Element
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.121.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @public
|
|
@@ -66,10 +66,6 @@ sap.ui.define([
|
|
|
66
66
|
* The configured time zone is considered as the default time zone for the locale, see {@link sap.ui.core.Configuration#getTimezone}..
|
|
67
67
|
*/
|
|
68
68
|
Locale.prototype.getTimeZone = function () {
|
|
69
|
-
if (Format._getEnableDateTimezoneFormatter()) {
|
|
70
|
-
return TimezoneUtil.getLocalTimezone();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
69
|
var sTimeZone = this.getProperty("timeZone");
|
|
74
70
|
|
|
75
71
|
return sTimeZone || Configuration.getTimezone();
|