@sapui5/sap.gantt 1.138.0 → 1.139.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 +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 +3 -4
- 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 +3 -3
- 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 +3 -3
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +3 -4
- package/src/sap/gantt/drawer/AdhocLine.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/VerticalLine.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 +23 -4
- package/src/sap/gantt/layouts/SidePanel.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_ar.properties +12 -0
- package/src/sap/gantt/messagebundle_bg.properties +13 -1
- package/src/sap/gantt/messagebundle_ca.properties +12 -0
- package/src/sap/gantt/messagebundle_cnr.properties +12 -0
- package/src/sap/gantt/messagebundle_cs.properties +12 -0
- package/src/sap/gantt/messagebundle_cy.properties +12 -0
- package/src/sap/gantt/messagebundle_da.properties +12 -0
- package/src/sap/gantt/messagebundle_de.properties +12 -0
- package/src/sap/gantt/messagebundle_el.properties +12 -0
- package/src/sap/gantt/messagebundle_en.properties +12 -0
- package/src/sap/gantt/messagebundle_en_GB.properties +12 -0
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +14 -2
- package/src/sap/gantt/messagebundle_es.properties +12 -0
- package/src/sap/gantt/messagebundle_es_MX.properties +12 -0
- package/src/sap/gantt/messagebundle_et.properties +12 -0
- package/src/sap/gantt/messagebundle_fi.properties +12 -0
- package/src/sap/gantt/messagebundle_fr.properties +12 -0
- package/src/sap/gantt/messagebundle_fr_CA.properties +12 -0
- package/src/sap/gantt/messagebundle_hi.properties +12 -0
- package/src/sap/gantt/messagebundle_hr.properties +12 -0
- package/src/sap/gantt/messagebundle_hu.properties +12 -0
- package/src/sap/gantt/messagebundle_id.properties +12 -0
- package/src/sap/gantt/messagebundle_it.properties +13 -1
- package/src/sap/gantt/messagebundle_iw.properties +12 -0
- package/src/sap/gantt/messagebundle_ja.properties +12 -0
- package/src/sap/gantt/messagebundle_kk.properties +12 -0
- package/src/sap/gantt/messagebundle_ko.properties +12 -0
- package/src/sap/gantt/messagebundle_lt.properties +12 -0
- package/src/sap/gantt/messagebundle_lv.properties +12 -0
- package/src/sap/gantt/messagebundle_mk.properties +13 -1
- package/src/sap/gantt/messagebundle_ms.properties +12 -0
- package/src/sap/gantt/messagebundle_nl.properties +12 -0
- package/src/sap/gantt/messagebundle_no.properties +12 -0
- package/src/sap/gantt/messagebundle_pl.properties +12 -0
- package/src/sap/gantt/messagebundle_pt.properties +12 -0
- package/src/sap/gantt/messagebundle_pt_PT.properties +12 -0
- package/src/sap/gantt/messagebundle_ro.properties +12 -0
- package/src/sap/gantt/messagebundle_ru.properties +13 -1
- package/src/sap/gantt/messagebundle_sh.properties +12 -0
- package/src/sap/gantt/messagebundle_sk.properties +12 -0
- package/src/sap/gantt/messagebundle_sl.properties +12 -0
- package/src/sap/gantt/messagebundle_sr.properties +12 -0
- package/src/sap/gantt/messagebundle_sv.properties +12 -0
- package/src/sap/gantt/messagebundle_th.properties +12 -0
- package/src/sap/gantt/messagebundle_tr.properties +12 -0
- package/src/sap/gantt/messagebundle_uk.properties +12 -0
- package/src/sap/gantt/messagebundle_vi.properties +12 -0
- package/src/sap/gantt/messagebundle_zh_CN.properties +12 -0
- package/src/sap/gantt/messagebundle_zh_TW.properties +12 -0
- 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/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 +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 +5 -6
- 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 +1 -1
- package/src/sap/gantt/simple/BaseShape.js +19 -3
- package/src/sap/gantt/simple/BaseText.js +8 -6
- 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 +41 -1
- package/src/sap/gantt/simple/GanttConnectExtension.js +5 -12
- 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 +33 -32
- package/src/sap/gantt/simple/GanttResizeExtension.js +4 -10
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttZoomExtension.js +42 -31
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +5 -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/PrintDialogTemplate.js +1 -1
- package/src/sap/gantt/simple/PrintUtils.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +10 -17
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/ShapeStyle.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +32 -6
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +3 -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
- package/src/sap/gantt/skipTime/DayInterval.js +1 -1
- package/src/sap/gantt/skipTime/DiscontinuousProvider.js +1 -1
- package/src/sap/gantt/skipTime/SkipInterval.js +1 -1
- package/src/sap/gantt/skipTime/SkipPattern.js +1 -1
- package/src/sap/gantt/skipTime/WeekPattern.js +1 -1
|
@@ -19,7 +19,7 @@ sap.ui.define(["./BaseRectangle", "./BasePath", "sap/gantt/misc/Utility", "sap/g
|
|
|
19
19
|
* @extends sap.gantt.simple.BaseRectangle
|
|
20
20
|
*
|
|
21
21
|
* @author SAP SE
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.139.1
|
|
23
23
|
*
|
|
24
24
|
* @constructor
|
|
25
25
|
* @public
|
|
@@ -96,20 +96,19 @@ sap.ui.define(["./BaseRectangle", "./BasePath", "sap/gantt/misc/Utility", "sap/g
|
|
|
96
96
|
|
|
97
97
|
BaseDiamond.prototype.getShapeAnchors = function () {
|
|
98
98
|
var mBias = Utility.getShapeBias(this);
|
|
99
|
-
var oBBox = this.getDomRef().getBBox();
|
|
100
99
|
var leftAnchorPosition = this.getLeftAnchorPosition() / 100,
|
|
101
100
|
rightAnchorPosition = this.getRightAnchorPosition() / 100;
|
|
102
101
|
|
|
103
102
|
return {
|
|
104
103
|
head: {
|
|
105
|
-
x:
|
|
106
|
-
y:
|
|
104
|
+
x: this.getX() - this.getWidth() / 2 + mBias.x,
|
|
105
|
+
y: this.getY() + this.getHeight() * leftAnchorPosition + mBias.y, //Change Shape Anchor position based on AlignShape
|
|
107
106
|
dx: this.getWidth() / 2,
|
|
108
107
|
dy: this.getHeight() * leftAnchorPosition
|
|
109
108
|
},
|
|
110
109
|
tail: {
|
|
111
|
-
x:
|
|
112
|
-
y:
|
|
110
|
+
x: this.getX() + this.getWidth() / 2 + mBias.x,
|
|
111
|
+
y: this.getY() + this.getHeight() * rightAnchorPosition + mBias.y, //Change Shape Anchor position based on AlignShape
|
|
113
112
|
dx: this.getWidth() / 2,
|
|
114
113
|
dy: this.getHeight() * rightAnchorPosition
|
|
115
114
|
}
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.ui.core.Element
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.139.1
|
|
61
61
|
*
|
|
62
62
|
* @abstract
|
|
63
63
|
* @constructor
|
|
@@ -356,12 +356,12 @@ sap.ui.define([
|
|
|
356
356
|
/** Postion of left anchor for a shape to connect with other shapes whose value ranges from 0-100
|
|
357
357
|
* @since 1.131
|
|
358
358
|
*/
|
|
359
|
-
leftAnchorPosition: {
|
|
359
|
+
leftAnchorPosition: {type: "int"},
|
|
360
360
|
|
|
361
361
|
/** Postion of right anchor for a shape to connect with other shapes whose value ranges from 0-100
|
|
362
362
|
* @since 1.131
|
|
363
363
|
*/
|
|
364
|
-
rightAnchorPosition: {
|
|
364
|
+
rightAnchorPosition: {type: "int"}
|
|
365
365
|
},
|
|
366
366
|
designtime: "sap/ui/dt/designtime/notAdaptable.designtime"
|
|
367
367
|
},
|
|
@@ -416,6 +416,22 @@ sap.ui.define([
|
|
|
416
416
|
return this._buildTransformByXYBias();
|
|
417
417
|
};
|
|
418
418
|
|
|
419
|
+
BaseShape.prototype.getLeftAnchorPosition = function () {
|
|
420
|
+
var iLeftAnchorPosition = this.getProperty("leftAnchorPosition");
|
|
421
|
+
if (iLeftAnchorPosition === undefined || iLeftAnchorPosition === null) {
|
|
422
|
+
iLeftAnchorPosition = this.getDomRef("nonLabelGroup") ? 75 : 50;
|
|
423
|
+
}
|
|
424
|
+
return iLeftAnchorPosition;
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
BaseShape.prototype.getRightAnchorPosition = function () {
|
|
428
|
+
var iRightAnchorPosition = this.getProperty("rightAnchorPosition");
|
|
429
|
+
if (iRightAnchorPosition === undefined || iRightAnchorPosition === null) {
|
|
430
|
+
iRightAnchorPosition = this.getDomRef("nonLabelGroup") ? 75 : 50;
|
|
431
|
+
}
|
|
432
|
+
return iRightAnchorPosition;
|
|
433
|
+
};
|
|
434
|
+
|
|
419
435
|
BaseShape.prototype.setLeftAnchorPosition = function (iPosition, bSuppressInvalidate) {
|
|
420
436
|
iPosition = Math.max(0, Math.min(iPosition, 100));
|
|
421
437
|
this.setProperty("leftAnchorPosition", iPosition, bSuppressInvalidate);
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @extends sap.gantt.simple.BaseShape
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.139.1
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @public
|
|
@@ -316,12 +316,18 @@ sap.ui.define([
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
if (iParentWidth < iOriginalWidth) {
|
|
319
|
-
|
|
319
|
+
iOriginalWidth = iParentWidth;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
if (this.getTextAnchor().toLowerCase() === library.simple.horizontalTextAlignment.Dynamic.toLowerCase() && this.getProperty("_shapeCropped")) {
|
|
323
323
|
iOriginalWidth = GanttChartConfigurationUtils.getRTL() ? iOriginalWidth + this.getProperty("_xBiassed") : iOriginalWidth - this.getProperty("_xBiassed");
|
|
324
324
|
}
|
|
325
|
+
if (iOriginalWidth !== undefined) {
|
|
326
|
+
var iXBias = this.getProperty("xBias") || 0;
|
|
327
|
+
if (iXBias > 0 || !this.isA("sap.gantt.simple.BaseImage")) {
|
|
328
|
+
iOriginalWidth = Math.max(iOriginalWidth - iXBias, 0);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
325
331
|
return iOriginalWidth;
|
|
326
332
|
};
|
|
327
333
|
|
|
@@ -380,7 +386,6 @@ sap.ui.define([
|
|
|
380
386
|
BaseText.prototype._processTextForTruncation = function(sSourceText, bPseudoShape, iIconHeight) {
|
|
381
387
|
var iTruncateWidth = this.getTruncateWidth(),
|
|
382
388
|
iEllipsisWidth = this.measureTextWidth("..."),
|
|
383
|
-
iXBias = this.getProperty("xBias") || 0,
|
|
384
389
|
iTextTotalLength = this.measureTextWidth(sSourceText);
|
|
385
390
|
var iAdditionalPadding;
|
|
386
391
|
if (bPseudoShape){
|
|
@@ -403,9 +408,6 @@ sap.ui.define([
|
|
|
403
408
|
if (iTargetWidth > iAdditionalPadding){
|
|
404
409
|
iTargetWidth = iTargetWidth - iAdditionalPadding;
|
|
405
410
|
}
|
|
406
|
-
if (iTargetWidth > iXBias){
|
|
407
|
-
iTargetWidth = iTargetWidth - iXBias;
|
|
408
|
-
}
|
|
409
411
|
|
|
410
412
|
// truncate
|
|
411
413
|
var sTruncatedText;
|
|
@@ -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.
|
|
20
|
+
* @version 1.139.1
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @static
|
|
@@ -170,7 +170,7 @@ sap.ui.define([
|
|
|
170
170
|
* @extend sap.ui.core.Control
|
|
171
171
|
*
|
|
172
172
|
* @author SAP SE
|
|
173
|
-
* @version 1.
|
|
173
|
+
* @version 1.139.1
|
|
174
174
|
* @since 1.60
|
|
175
175
|
*
|
|
176
176
|
* @constructor
|
|
@@ -2788,6 +2788,7 @@ sap.ui.define([
|
|
|
2788
2788
|
//once changes are complete, write them
|
|
2789
2789
|
this._addChangesToControlPersonalizationWriteAPI(oEvent, aChanges);
|
|
2790
2790
|
};
|
|
2791
|
+
|
|
2791
2792
|
GanttChartWithTable.prototype._onTableSorter = function (oEvent) {
|
|
2792
2793
|
var oSortedColumn = oEvent.getParameter("column");
|
|
2793
2794
|
var oParentTable = oSortedColumn.getParent();
|
|
@@ -2813,6 +2814,45 @@ sap.ui.define([
|
|
|
2813
2814
|
this._addChangesToControlPersonalizationWriteAPI(oEvent, aChanges);
|
|
2814
2815
|
};
|
|
2815
2816
|
|
|
2817
|
+
/**
|
|
2818
|
+
*
|
|
2819
|
+
* @param {object} oEvent must be structured as the following
|
|
2820
|
+
* {
|
|
2821
|
+
* control: table control,
|
|
2822
|
+
* oColumns: [], an array of sorted columns, a column must have a new value
|
|
2823
|
+
* oldValues: [], an array of old values for sorted columns
|
|
2824
|
+
* }
|
|
2825
|
+
* @public
|
|
2826
|
+
* @since 1.139
|
|
2827
|
+
*/
|
|
2828
|
+
GanttChartWithTable.prototype.multiColumnSort = function (oEvent) {
|
|
2829
|
+
var oParentTable = oEvent.control;
|
|
2830
|
+
var oSortedColumns = oEvent.oColumns;
|
|
2831
|
+
var oldValues = oEvent.oldValues;
|
|
2832
|
+
var aDependentControls = [];
|
|
2833
|
+
oParentTable.getColumns().forEach(function(oColumn) {
|
|
2834
|
+
if (oSortedColumns.indexOf(oColumn) == -1) {
|
|
2835
|
+
aDependentControls.push(oColumn.getId());
|
|
2836
|
+
}
|
|
2837
|
+
});
|
|
2838
|
+
|
|
2839
|
+
var aChanges = [{
|
|
2840
|
+
"selectorElement": oParentTable,
|
|
2841
|
+
"changeSpecificData": {
|
|
2842
|
+
"changeType": "TableColumnSortOrder",
|
|
2843
|
+
"content": {
|
|
2844
|
+
propertyName: "sortOrder",
|
|
2845
|
+
columns: oSortedColumns.map((column) => column.getId()),
|
|
2846
|
+
newValue: oSortedColumns.map((column) => column.getSortOrder()),
|
|
2847
|
+
oldValue: oldValues,
|
|
2848
|
+
affectedControls: aDependentControls
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
}];
|
|
2852
|
+
//once changes are complete, write them
|
|
2853
|
+
this._addChangesToControlPersonalizationWriteAPI(oEvent, aChanges);
|
|
2854
|
+
};
|
|
2855
|
+
|
|
2816
2856
|
GanttChartWithTable.prototype._onColumnVisible = function (oEvent) {
|
|
2817
2857
|
var visible = oEvent.mParameters.newVisible;
|
|
2818
2858
|
var aChanges = [{
|