@sapui5/sap.gantt 1.123.0 → 1.125.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/LICENSE.txt +13 -10
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/sap/gantt/.library +11 -5
- package/src/sap/gantt/AdhocLine.js +1 -1
- package/src/sap/gantt/GanttChart.js +1 -1
- package/src/sap/gantt/GanttChartBase.js +4 -4
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +1 -3
- 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 +2 -2
- package/src/sap/gantt/config/ChartScheme.js +2 -2
- package/src/sap/gantt/config/ColumnAttribute.js +2 -2
- package/src/sap/gantt/config/ContainerLayout.js +2 -2
- package/src/sap/gantt/config/ExpandChart.js +2 -2
- package/src/sap/gantt/config/ExpandChartGroup.js +2 -2
- package/src/sap/gantt/config/GanttChartLayout.js +2 -2
- package/src/sap/gantt/config/Hierarchy.js +2 -2
- package/src/sap/gantt/config/HierarchyColumn.js +2 -2
- package/src/sap/gantt/config/LayoutGroup.js +3 -3
- package/src/sap/gantt/config/Locale.js +9 -11
- package/src/sap/gantt/config/Mode.js +2 -2
- package/src/sap/gantt/config/ModeGroup.js +2 -2
- package/src/sap/gantt/config/ObjectType.js +2 -2
- package/src/sap/gantt/config/SettingGroup.js +2 -2
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +2 -2
- 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 +2 -2
- package/src/sap/gantt/config/ToolbarGroup.js +2 -2
- package/src/sap/gantt/config/ToolbarScheme.js +2 -2
- package/src/sap/gantt/control/Cell.js +2 -2
- package/src/sap/gantt/control/Toolbar.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/flexibility/simple/GanttTableColumn.flexibility.js +1 -4
- package/src/sap/gantt/layouts/SidePanel.js +197 -0
- package/src/sap/gantt/layouts/SidePanelRenderer.js +28 -0
- package/src/sap/gantt/legend/DimensionLegend.js +2 -2
- package/src/sap/gantt/legend/LegendBase.js +2 -2
- package/src/sap/gantt/legend/LegendContainer.js +2 -2
- package/src/sap/gantt/legend/ListLegend.js +3 -3
- package/src/sap/gantt/library.js +4 -4
- package/src/sap/gantt/messagebundle_ar.properties +5 -2
- package/src/sap/gantt/messagebundle_bg.properties +5 -2
- package/src/sap/gantt/messagebundle_ca.properties +5 -2
- package/src/sap/gantt/messagebundle_cnr.properties +5 -2
- package/src/sap/gantt/messagebundle_cs.properties +5 -2
- package/src/sap/gantt/messagebundle_cy.properties +5 -2
- package/src/sap/gantt/messagebundle_da.properties +5 -2
- package/src/sap/gantt/messagebundle_de.properties +5 -2
- package/src/sap/gantt/messagebundle_el.properties +5 -2
- package/src/sap/gantt/messagebundle_en.properties +5 -2
- package/src/sap/gantt/messagebundle_en_GB.properties +5 -2
- package/src/sap/gantt/messagebundle_es.properties +5 -2
- package/src/sap/gantt/messagebundle_es_MX.properties +5 -2
- package/src/sap/gantt/messagebundle_et.properties +5 -2
- package/src/sap/gantt/messagebundle_fi.properties +5 -2
- package/src/sap/gantt/messagebundle_fr.properties +5 -2
- package/src/sap/gantt/messagebundle_fr_CA.properties +5 -2
- package/src/sap/gantt/messagebundle_hi.properties +5 -2
- package/src/sap/gantt/messagebundle_hr.properties +5 -2
- package/src/sap/gantt/messagebundle_hu.properties +5 -2
- package/src/sap/gantt/messagebundle_id.properties +5 -2
- package/src/sap/gantt/messagebundle_it.properties +5 -2
- package/src/sap/gantt/messagebundle_iw.properties +5 -2
- package/src/sap/gantt/messagebundle_ja.properties +5 -2
- package/src/sap/gantt/messagebundle_kk.properties +5 -2
- package/src/sap/gantt/messagebundle_ko.properties +5 -2
- package/src/sap/gantt/messagebundle_lt.properties +5 -2
- package/src/sap/gantt/messagebundle_lv.properties +5 -2
- package/src/sap/gantt/messagebundle_mk.properties +6 -3
- package/src/sap/gantt/messagebundle_ms.properties +5 -2
- package/src/sap/gantt/messagebundle_nl.properties +5 -2
- package/src/sap/gantt/messagebundle_no.properties +5 -2
- package/src/sap/gantt/messagebundle_pl.properties +5 -2
- package/src/sap/gantt/messagebundle_pt.properties +5 -2
- package/src/sap/gantt/messagebundle_pt_PT.properties +5 -2
- package/src/sap/gantt/messagebundle_ro.properties +5 -2
- package/src/sap/gantt/messagebundle_ru.properties +5 -2
- package/src/sap/gantt/messagebundle_sh.properties +5 -2
- package/src/sap/gantt/messagebundle_sk.properties +5 -2
- package/src/sap/gantt/messagebundle_sl.properties +5 -2
- package/src/sap/gantt/messagebundle_sr.properties +5 -2
- package/src/sap/gantt/messagebundle_sv.properties +10 -7
- package/src/sap/gantt/messagebundle_th.properties +5 -2
- package/src/sap/gantt/messagebundle_tr.properties +5 -2
- package/src/sap/gantt/messagebundle_uk.properties +5 -2
- package/src/sap/gantt/messagebundle_vi.properties +5 -2
- package/src/sap/gantt/messagebundle_zh_CN.properties +5 -2
- package/src/sap/gantt/messagebundle_zh_TW.properties +5 -2
- package/src/sap/gantt/misc/AxisTime.js +4 -4
- 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/misc/Utility.js +3 -3
- 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 +2 -2
- package/src/sap/gantt/shape/ClipPath.js +2 -2
- package/src/sap/gantt/shape/Definitions.js +2 -2
- package/src/sap/gantt/shape/Group.js +2 -2
- package/src/sap/gantt/shape/Image.js +2 -2
- package/src/sap/gantt/shape/Line.js +2 -2
- package/src/sap/gantt/shape/Path.js +2 -2
- package/src/sap/gantt/shape/Polygon.js +2 -2
- package/src/sap/gantt/shape/Polyline.js +2 -2
- package/src/sap/gantt/shape/Rectangle.js +2 -2
- package/src/sap/gantt/shape/ResizeShadowShape.js +2 -2
- package/src/sap/gantt/shape/SelectedShape.js +2 -2
- package/src/sap/gantt/shape/Shape.js +2 -2
- package/src/sap/gantt/shape/Text.js +2 -2
- package/src/sap/gantt/shape/cal/Calendar.js +2 -2
- package/src/sap/gantt/shape/ext/Chevron.js +2 -2
- package/src/sap/gantt/shape/ext/Cursor.js +2 -2
- package/src/sap/gantt/shape/ext/Diamond.js +2 -2
- package/src/sap/gantt/shape/ext/Iconfont.js +2 -2
- package/src/sap/gantt/shape/ext/Pentangle.js +2 -2
- package/src/sap/gantt/shape/ext/TextRepeat.js +2 -2
- package/src/sap/gantt/shape/ext/Triangle.js +2 -2
- package/src/sap/gantt/shape/ext/rls/Relationship.js +2 -2
- package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +3 -3
- package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +2 -2
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +2 -2
- package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +2 -2
- 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/BasePseudoShape.js +1 -1
- package/src/sap/gantt/simple/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +1 -1
- 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 +3 -3
- 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/DimensionLegendRenderer.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +1 -1
- package/src/sap/gantt/simple/FindAndSelectUtils.js +1 -1
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +31 -2
- package/src/sap/gantt/simple/GanttChartContainerRenderer.js +29 -12
- package/src/sap/gantt/simple/GanttChartWithTable.js +44 -17
- package/src/sap/gantt/simple/GanttDragDropExtension.js +4 -2
- 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 -3
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +97 -25
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttUtils.js +12 -4
- package/src/sap/gantt/simple/InnerGanttChart.js +11 -2
- package/src/sap/gantt/simple/InnerGanttChartRenderer.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/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 +5 -9
- package/src/sap/gantt/simple/SelectionModel.js +17 -12
- 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 +5 -23
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/themes/base/Gantt.less +9 -5
- package/src/sap/gantt/themes/sap_belize/library.source.less +10 -1
- package/src/sap/gantt/themes/sap_belize_base/Gantt.less +895 -0
- package/src/sap/gantt/themes/sap_belize_base/GanttPrinting.less +101 -0
- package/src/sap/gantt/themes/sap_belize_base/GanttSyncedControl.less +96 -0
- package/src/sap/gantt/themes/sap_belize_base/library.source.less +13 -0
- package/src/sap/gantt/themes/sap_belize_hcb/library.source.less +10 -1
- package/src/sap/gantt/themes/sap_belize_hcw/library.source.less +10 -1
- package/src/sap/gantt/themes/sap_bluecrystal/library.source.less +10 -1
- package/src/sap/gantt/themes/sap_bluecrystal_base/Gantt.less +899 -0
- package/src/sap/gantt/themes/sap_bluecrystal_base/GanttPrinting.less +101 -0
- package/src/sap/gantt/themes/sap_bluecrystal_base/GanttSyncedControl.less +96 -0
- package/src/sap/gantt/themes/sap_bluecrystal_base/library.source.less +13 -0
- package/src/sap/gantt/utils/GanttChartConfigurationUtils.js +4 -1
|
@@ -26,11 +26,17 @@ sap.ui.define([], function () {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
const bShowSearchSidePanel = oContainer.getShowSearchSidePanel();
|
|
30
|
+
const oLayoutSidePanel = oContainer.getSidePanel();
|
|
31
|
+
const bShowLayoutSidePanel = oLayoutSidePanel && oLayoutSidePanel.getVisible();
|
|
32
|
+
|
|
29
33
|
oRm.openStart("div", oContainer);
|
|
30
34
|
oRm.class("sapGanttContainer");
|
|
31
|
-
|
|
35
|
+
|
|
36
|
+
if (bShowSearchSidePanel || bShowLayoutSidePanel) {
|
|
32
37
|
oRm.class("sapGanttContainerWithSidePanel");
|
|
33
38
|
}
|
|
39
|
+
|
|
34
40
|
oRm.style("width", oContainer.getWidth());
|
|
35
41
|
oRm.style("height", oContainer.getHeight());
|
|
36
42
|
oRm.openEnd();
|
|
@@ -40,10 +46,22 @@ sap.ui.define([], function () {
|
|
|
40
46
|
|
|
41
47
|
this.renderToolbar(oRm, oContainer);
|
|
42
48
|
|
|
43
|
-
this.renderGanttCharts(oRm, oContainer
|
|
49
|
+
this.renderGanttCharts(oRm, oContainer, {
|
|
50
|
+
hasSidePanel: bShowSearchSidePanel || bShowLayoutSidePanel
|
|
51
|
+
});
|
|
44
52
|
|
|
45
|
-
if (
|
|
46
|
-
this.renderSidePanel(oRm, oContainer
|
|
53
|
+
if (bShowSearchSidePanel) {
|
|
54
|
+
this.renderSidePanel(oRm, oContainer, {
|
|
55
|
+
id: "ganttSearchSidePanel",
|
|
56
|
+
sidePanel: oContainer.getSearchSidePanel(),
|
|
57
|
+
classNames: "sapUiGanttSearchSidePanel"
|
|
58
|
+
});
|
|
59
|
+
} else if (bShowLayoutSidePanel) {
|
|
60
|
+
this.renderSidePanel(oRm, oContainer, {
|
|
61
|
+
id: "ganttLayoutSidePanel",
|
|
62
|
+
sidePanel: oLayoutSidePanel,
|
|
63
|
+
classNames: "sapUiGanttLayoutSidePanel"
|
|
64
|
+
});
|
|
47
65
|
}
|
|
48
66
|
|
|
49
67
|
if (oContainer.getEnableStatusBar()) {
|
|
@@ -87,14 +105,14 @@ sap.ui.define([], function () {
|
|
|
87
105
|
}
|
|
88
106
|
};
|
|
89
107
|
|
|
90
|
-
GanttChartContainerRenderer.renderGanttCharts = function (oRm, oContainer) {
|
|
108
|
+
GanttChartContainerRenderer.renderGanttCharts = function (oRm, oContainer, oOptions) {
|
|
91
109
|
oRm.openStart("div", oContainer.getId() + "-ganttContainerContent");
|
|
92
110
|
if (oContainer.getEnableStatusBar()) {
|
|
93
111
|
oRm.class("sapGanttContainerCntWithStatusBar");
|
|
94
112
|
} else {
|
|
95
113
|
oRm.class("sapGanttContainerCnt");
|
|
96
114
|
}
|
|
97
|
-
if (
|
|
115
|
+
if (oOptions.hasSidePanel) {
|
|
98
116
|
oRm.class("sapGanttContainerCntWithSidePanel");
|
|
99
117
|
}
|
|
100
118
|
oRm.openEnd();
|
|
@@ -102,13 +120,12 @@ sap.ui.define([], function () {
|
|
|
102
120
|
oRm.close("div");
|
|
103
121
|
};
|
|
104
122
|
|
|
105
|
-
GanttChartContainerRenderer.renderSidePanel = function(oRm, oContainer) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
oRm.
|
|
109
|
-
oRm.class("sapUiGanttSearchSidePanel");
|
|
123
|
+
GanttChartContainerRenderer.renderSidePanel = function (oRm, oContainer, oOptions) {
|
|
124
|
+
if (oOptions.sidePanel) {
|
|
125
|
+
oRm.openStart("div", oContainer.getId() + "-" + oOptions.id);
|
|
126
|
+
oRm.class(oOptions.classNames);
|
|
110
127
|
oRm.openEnd();
|
|
111
|
-
oRm.renderControl(
|
|
128
|
+
oRm.renderControl(oOptions.sidePanel);
|
|
112
129
|
oRm.close("div");
|
|
113
130
|
}
|
|
114
131
|
};
|
|
@@ -141,6 +141,13 @@ sap.ui.define([
|
|
|
141
141
|
var MARGIN_OF_ERROR = 10;
|
|
142
142
|
var MIN_AREA_WIDTH = 60;
|
|
143
143
|
|
|
144
|
+
// whenever model changed, need invalidate gantt as well
|
|
145
|
+
var aModelChangeReason = values(ChangeReason).slice();
|
|
146
|
+
|
|
147
|
+
// All reasons that need to invalidate the control which allows render manager to rerender it
|
|
148
|
+
// Each UI interaction shall only render once
|
|
149
|
+
var aInvalidateReasons = aModelChangeReason.concat(["Render", "FirstVisibleRowChange", "Resize"]);
|
|
150
|
+
|
|
144
151
|
function add(a, b) {
|
|
145
152
|
return a + b;
|
|
146
153
|
}
|
|
@@ -163,7 +170,7 @@ sap.ui.define([
|
|
|
163
170
|
* @extend sap.ui.core.Control
|
|
164
171
|
*
|
|
165
172
|
* @author SAP SE
|
|
166
|
-
* @version 1.
|
|
173
|
+
* @version 1.125.0
|
|
167
174
|
* @since 1.60
|
|
168
175
|
*
|
|
169
176
|
* @constructor
|
|
@@ -1386,6 +1393,9 @@ sap.ui.define([
|
|
|
1386
1393
|
if (oTable.getRowMode()) {
|
|
1387
1394
|
oTable.getRowMode().setRowContentHeight(80);
|
|
1388
1395
|
} else {
|
|
1396
|
+
/**
|
|
1397
|
+
* @deprecated As of version 1.119
|
|
1398
|
+
*/
|
|
1389
1399
|
oTable.setRowHeight(80);
|
|
1390
1400
|
}
|
|
1391
1401
|
}
|
|
@@ -1668,7 +1678,7 @@ sap.ui.define([
|
|
|
1668
1678
|
});
|
|
1669
1679
|
}
|
|
1670
1680
|
if (selectedShapeIDs.length > 0) {
|
|
1671
|
-
this.oSelection.updateSelectedShapes(selectedShapeIDs, overrideExisting);
|
|
1681
|
+
this.oSelection.updateSelectedShapes(selectedShapeIDs, overrideExisting, this.getId());
|
|
1672
1682
|
}
|
|
1673
1683
|
};
|
|
1674
1684
|
|
|
@@ -1720,7 +1730,7 @@ sap.ui.define([
|
|
|
1720
1730
|
}
|
|
1721
1731
|
});
|
|
1722
1732
|
if (deSelectedShapeIDs.length > 0) {
|
|
1723
|
-
this.oSelection.updateSelectedShapes(deSelectedShapeIDs, false);
|
|
1733
|
+
this.oSelection.updateSelectedShapes(deSelectedShapeIDs, false, this.getId());
|
|
1724
1734
|
}
|
|
1725
1735
|
};
|
|
1726
1736
|
|
|
@@ -2854,12 +2864,7 @@ sap.ui.define([
|
|
|
2854
2864
|
|
|
2855
2865
|
this._invalidateRowActionTemplate(oTable, sReason);
|
|
2856
2866
|
|
|
2857
|
-
// whenever model changed, need invalidate gantt as well
|
|
2858
|
-
var aModelChangeReason = values(ChangeReason).slice();
|
|
2859
|
-
|
|
2860
|
-
// All reasons that need to invalidate the control which allows render manager to rerender it
|
|
2861
2867
|
// Each UI interaction shall only render once
|
|
2862
|
-
var aInvalidateReasons = aModelChangeReason.concat(["Render", "FirstVisibleRowChange", "Resize"]);
|
|
2863
2868
|
if (this.getEnablePseudoShapes() && this.pseudoShapeSpecificData && ((this.pseudoShapeSpecificData.oDraggedShapeDates && this.pseudoShapeSpecificData.draggedShapeTRowIndex != null) || (this.pseudoShapeSpecificData.resizedShape && this.pseudoShapeSpecificData.resizedShapeRowIndex != null))){
|
|
2864
2869
|
var oDraggedShapeDates = this.pseudoShapeSpecificData.oDraggedShapeDates,
|
|
2865
2870
|
aRows = this.getTable().getRows(), aTRowIndexArr;
|
|
@@ -2927,11 +2932,14 @@ sap.ui.define([
|
|
|
2927
2932
|
this.pseudoShapeSpecificData.isPseudoShapesEnabled = false;
|
|
2928
2933
|
this._addBackTasksToRows();
|
|
2929
2934
|
}
|
|
2930
|
-
|
|
2935
|
+
|
|
2936
|
+
var bIsValidReason = aInvalidateReasons.indexOf(sReason) !== -1;
|
|
2937
|
+
|
|
2938
|
+
if ((!bIsValidReason && sReason !== "VerticalScroll") || this._createInnerGanttRenderPromise()) {
|
|
2931
2939
|
this.getInnerGantt().invalidate();
|
|
2932
2940
|
}
|
|
2933
|
-
if (aInvalidateReasons.indexOf(sReason) !== -1) {
|
|
2934
2941
|
|
|
2942
|
+
if (bIsValidReason) {
|
|
2935
2943
|
// do not scrolling while invalidating control
|
|
2936
2944
|
this.getSyncedControl().setAllowContentScroll(false);
|
|
2937
2945
|
this._oInnerGanttRenderPromiseResolve();
|
|
@@ -3279,12 +3287,12 @@ sap.ui.define([
|
|
|
3279
3287
|
return;
|
|
3280
3288
|
}
|
|
3281
3289
|
//Changes to set ZoomLevel during the Initial Rendering of the GanttChart
|
|
3282
|
-
var
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
&&
|
|
3290
|
+
var oAxisTimeStrategy = this.getAxisTimeStrategy();
|
|
3291
|
+
var oSyncZoomStrategyResult = oAxisTimeStrategy.syncContext(iVisibleWidth);
|
|
3292
|
+
if (oAxisTimeStrategy.initialSettings != null && oAxisTimeStrategy.initialSettings.zoomLevel != null
|
|
3293
|
+
&& oAxisTimeStrategy.initialSettings.zoomLevel != 0 && sReasonCode == "initialRender"
|
|
3294
|
+
&& !oAxisTimeStrategy.isA("sap.gantt.axistime.FullScreenStrategy")
|
|
3286
3295
|
&& !this.isPrint && this.getParent().isA("sap.gantt.simple.GanttChartContainer") && !this.getParent().isZoomLevelUpdated) {
|
|
3287
|
-
var oAxisTimeStrategy = this.getAxisTimeStrategy();
|
|
3288
3296
|
var binitialZoomLevel = oAxisTimeStrategy.initialSettings.zoomLevel;
|
|
3289
3297
|
oAxisTimeStrategy.setProperty("zoomLevel", binitialZoomLevel, true);
|
|
3290
3298
|
oSyncZoomStrategyResult.zoomLevel = binitialZoomLevel;
|
|
@@ -3292,6 +3300,12 @@ sap.ui.define([
|
|
|
3292
3300
|
oAxisTimeStrategy.updateInitialVisibleHorizon(visibleHorizon, binitialZoomLevel);
|
|
3293
3301
|
this.getParent().isZoomLevelUpdated = true;
|
|
3294
3302
|
}
|
|
3303
|
+
if (sReasonCode == "initialRender" && oAxisTimeStrategy.isA("sap.gantt.axistime.StepwiseZoomStrategy")) {
|
|
3304
|
+
var oHorizon = oAxisTimeStrategy._completeTimeHorizon(new TimeHorizon({
|
|
3305
|
+
startTime: oAxisTimeStrategy.getVisibleHorizon().getStartTime()
|
|
3306
|
+
}));
|
|
3307
|
+
oAxisTimeStrategy.getVisibleHorizon().setProperty("endTime", oHorizon.getEndTime(), true);
|
|
3308
|
+
}
|
|
3295
3309
|
this.fireEvent("_zoomInfoUpdated", oSyncZoomStrategyResult);
|
|
3296
3310
|
this._iLastVisibleWidth = null;
|
|
3297
3311
|
|
|
@@ -3557,7 +3571,12 @@ sap.ui.define([
|
|
|
3557
3571
|
})
|
|
3558
3572
|
);
|
|
3559
3573
|
}
|
|
3560
|
-
}
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
/**
|
|
3577
|
+
* @deprecated As of version 1.119
|
|
3578
|
+
*/
|
|
3579
|
+
if (!oRowMode) {
|
|
3561
3580
|
oTable.setVisibleRowCountMode(sap.ui.table.VisibleRowCountMode.Auto);
|
|
3562
3581
|
oTable.setMinAutoRowCount(1);//Change the default value of minAutoRowCount to 1 form the default vlue of 5 for GanttChart with minimal height.
|
|
3563
3582
|
}
|
|
@@ -3635,7 +3654,15 @@ sap.ui.define([
|
|
|
3635
3654
|
|
|
3636
3655
|
GanttChartWithTable.prototype._updateRowHeightInExpandModel = function(oTable) {
|
|
3637
3656
|
GanttUtils.setTableRowMode(oTable);
|
|
3638
|
-
var
|
|
3657
|
+
var oRowMode = oTable.getRowMode(), iTableRowHeight = 0;
|
|
3658
|
+
if (oRowMode) {
|
|
3659
|
+
iTableRowHeight = Math.ceil(oRowMode.getRowContentHeight());
|
|
3660
|
+
} else {
|
|
3661
|
+
/**
|
|
3662
|
+
* @deprecated As of version 1.119
|
|
3663
|
+
*/
|
|
3664
|
+
iTableRowHeight = Math.ceil(oTable.getRowHeight());
|
|
3665
|
+
}
|
|
3639
3666
|
if (iTableRowHeight === 0) {
|
|
3640
3667
|
iTableRowHeight = Math.ceil(oTable._getDefaultRowHeight());
|
|
3641
3668
|
}
|
|
@@ -100,7 +100,7 @@ sap.ui.define([
|
|
|
100
100
|
*
|
|
101
101
|
* @extends sap.gantt.simple.GanttExtension
|
|
102
102
|
* @author SAP SE
|
|
103
|
-
* @version 1.
|
|
103
|
+
* @version 1.125.0
|
|
104
104
|
* @constructor
|
|
105
105
|
* @private
|
|
106
106
|
* @alias sap.gantt.simple.GanttExtension
|
|
@@ -981,7 +981,9 @@ sap.ui.define([
|
|
|
981
981
|
} else {
|
|
982
982
|
this.updateCursorStyle("not-allowed", "none");
|
|
983
983
|
this.updateHeaderCursorStyle("not-allowed", "none");
|
|
984
|
-
|
|
984
|
+
if (oPointerExtension.isPointerInGanttChart() !== true){
|
|
985
|
+
this._stopAutoScroll();
|
|
986
|
+
}
|
|
985
987
|
}
|
|
986
988
|
this.showGhost(oEvent);
|
|
987
989
|
this._disableTextSelection();
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extend sap.ui.core.Element
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.125.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -349,7 +349,7 @@ sap.ui.define([
|
|
|
349
349
|
oRm.attr("aria-label", _oRb.getText("ARIA_GANTT_INNER_HEADER"));
|
|
350
350
|
oRm.openEnd();
|
|
351
351
|
oRm.openStart("g", "inner-header-g");
|
|
352
|
-
oRm.style("height", iMarkerAreaHeight);
|
|
352
|
+
oRm.style("height", iMarkerAreaHeight + "px");
|
|
353
353
|
oRm.openEnd();
|
|
354
354
|
var oRectArea = new BaseRectangle({
|
|
355
355
|
x: 0,
|
|
@@ -14,7 +14,6 @@ sap.ui.define([
|
|
|
14
14
|
"./GanttUtils",
|
|
15
15
|
"sap/ui/core/format/DateFormat",
|
|
16
16
|
"sap/m/Text",
|
|
17
|
-
"sap/ui/core/format/TimezoneUtil",
|
|
18
17
|
"sap/gantt/utils/GanttChartConfigurationUtils"
|
|
19
18
|
], function(
|
|
20
19
|
jQuery,
|
|
@@ -26,7 +25,6 @@ sap.ui.define([
|
|
|
26
25
|
GanttUtils,
|
|
27
26
|
DateFormat,
|
|
28
27
|
Text,
|
|
29
|
-
TimezoneUtil,
|
|
30
28
|
GanttChartConfigurationUtils
|
|
31
29
|
) {
|
|
32
30
|
"use strict";
|
|
@@ -242,7 +240,7 @@ sap.ui.define([
|
|
|
242
240
|
*
|
|
243
241
|
* @extends sap.gantt.simple.GanttExtension
|
|
244
242
|
* @author SAP SE
|
|
245
|
-
* @version 1.
|
|
243
|
+
* @version 1.125.0
|
|
246
244
|
* @constructor
|
|
247
245
|
* @private
|
|
248
246
|
* @alias sap.gantt.simple.GanttPointerExtension
|
|
@@ -158,7 +158,7 @@ sap.ui.define([
|
|
|
158
158
|
* @extend sap.ui.core.Element
|
|
159
159
|
*
|
|
160
160
|
* @author SAP SE
|
|
161
|
-
* @version 1.
|
|
161
|
+
* @version 1.125.0
|
|
162
162
|
* @since 1.66
|
|
163
163
|
*
|
|
164
164
|
* @constructor
|
|
@@ -396,9 +396,26 @@ sap.ui.define([
|
|
|
396
396
|
var iRowCount = that._getOriginalGanttChart().getTable()._getTotalRowCount();
|
|
397
397
|
that.iThreshold = Math.min(that.iThreshold, iRowCount - rowVal);
|
|
398
398
|
that.bLast = counter + 1 >= lastVal ? true : false;
|
|
399
|
-
that.
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
if (that._getOriginalGanttChart()._bExpandToggled) {
|
|
400
|
+
that._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
401
|
+
rowCount: that.iThreshold
|
|
402
|
+
}));
|
|
403
|
+
} else {
|
|
404
|
+
var oCloneTable = that._ganttChartClone.getTable();
|
|
405
|
+
var oRowMode = oCloneTable.getRowMode(), nRowHeight = 0;
|
|
406
|
+
if (oRowMode && oRowMode.getRowContentHeight()) {
|
|
407
|
+
nRowHeight = oRowMode.getRowContentHeight();
|
|
408
|
+
} else {
|
|
409
|
+
/**
|
|
410
|
+
* @deprecated As of version 1.119
|
|
411
|
+
*/
|
|
412
|
+
nRowHeight = oCloneTable.getRowHeight();
|
|
413
|
+
}
|
|
414
|
+
that._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
415
|
+
rowCount: that.iThreshold,
|
|
416
|
+
rowContentHeight: nRowHeight ? nRowHeight : Math.ceil(that._getOriginalGanttChart().getTableRowHeights()[0])
|
|
417
|
+
}));
|
|
418
|
+
}
|
|
402
419
|
that.bFirst = (index === 0) ? true : false;
|
|
403
420
|
that._ganttChartClone.getTable().setFirstVisibleRow(rowVal);
|
|
404
421
|
if (GanttChartConfigurationUtils.getRTL()) {
|
|
@@ -483,9 +500,26 @@ sap.ui.define([
|
|
|
483
500
|
var iRowCount = that._getOriginalGanttChart().getTable()._getTotalRowCount();
|
|
484
501
|
that.iThreshold = Math.min(that.iThreshold, iRowCount - rowVal);
|
|
485
502
|
that.bLast = counter + 1 >= lastVal ? true : false;
|
|
486
|
-
that.
|
|
487
|
-
|
|
488
|
-
|
|
503
|
+
if (that._getOriginalGanttChart._bExpandToggled) {
|
|
504
|
+
that._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
505
|
+
rowCount: that.iThreshold
|
|
506
|
+
}));
|
|
507
|
+
} else {
|
|
508
|
+
var oCloneTable = that._ganttChartClone.getTable();
|
|
509
|
+
var oRowMode = oCloneTable.getRowMode(), nRowHeight = 0;
|
|
510
|
+
if (oRowMode && oRowMode.getRowContentHeight()) {
|
|
511
|
+
nRowHeight = oRowMode.getRowContentHeight();
|
|
512
|
+
} else {
|
|
513
|
+
/**
|
|
514
|
+
* @deprecated As of version 1.119
|
|
515
|
+
*/
|
|
516
|
+
nRowHeight = oCloneTable.getRowHeight();
|
|
517
|
+
}
|
|
518
|
+
that._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
519
|
+
rowCount: that.iThreshold,
|
|
520
|
+
rowContentHeight: nRowHeight ? nRowHeight : Math.ceil(that._getOriginalGanttChart().getTableRowHeights()[0])
|
|
521
|
+
}));
|
|
522
|
+
}
|
|
489
523
|
that.bFirst = (index === 0) ? true : false;
|
|
490
524
|
that._ganttChartClone.getTable().setFirstVisibleRow(rowVal);
|
|
491
525
|
if (GanttChartConfigurationUtils.getRTL()) {
|
|
@@ -718,9 +752,26 @@ sap.ui.define([
|
|
|
718
752
|
this.iThreshold = Math.min(Math.round(oGanttChart.getPrintingBatchSize() / iZoomLevel), oGanttChart.getTable()._getTotalRowCount());
|
|
719
753
|
this._bMultipleBatches = oGanttChart.getTable()._getTotalRowCount() > this.iThreshold;
|
|
720
754
|
this.bFirst = true;
|
|
721
|
-
this.
|
|
722
|
-
|
|
723
|
-
|
|
755
|
+
if (this._getOriginalGanttChart._bExpandToggled) {
|
|
756
|
+
this._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
757
|
+
rowCount: this.iThreshold
|
|
758
|
+
}));
|
|
759
|
+
} else {
|
|
760
|
+
var oCloneTable = this._ganttChartClone.getTable();
|
|
761
|
+
var oRowMode = oCloneTable.getRowMode(), nRowHeight = 0;
|
|
762
|
+
if (oRowMode && oRowMode.getRowContentHeight()) {
|
|
763
|
+
nRowHeight = oRowMode.getRowContentHeight();
|
|
764
|
+
} else {
|
|
765
|
+
/**
|
|
766
|
+
* @deprecated As of version 1.119
|
|
767
|
+
*/
|
|
768
|
+
nRowHeight = oCloneTable.getRowHeight();
|
|
769
|
+
}
|
|
770
|
+
this._ganttChartClone.getTable().setRowMode(new FixedRowMode({
|
|
771
|
+
rowCount: this.iThreshold,
|
|
772
|
+
rowContentHeight: nRowHeight ? nRowHeight : Math.ceil(oGanttChart.getTableRowHeights()[0])
|
|
773
|
+
}));
|
|
774
|
+
}
|
|
724
775
|
this._ganttChartClone.getTable().setThreshold(this.iThreshold);
|
|
725
776
|
this._ganttChartClone.setParent(this._getOriginalGanttChart(), "originalGanttChart", true);
|
|
726
777
|
} else {
|
|
@@ -909,11 +960,13 @@ sap.ui.define([
|
|
|
909
960
|
};
|
|
910
961
|
|
|
911
962
|
GanttPrinting.prototype._onResize = function () {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
963
|
+
if (this._oHTMLDialogPreview) {
|
|
964
|
+
var $dialogPreviewContentDiv = this._oHTMLDialogPreview.getDomRef();
|
|
965
|
+
$dialogPreviewContentDiv.style.overflow = "hidden";
|
|
966
|
+
this._resizePrintingPreviewPage();
|
|
967
|
+
// overflow has to be set to visible because of the page shadow
|
|
968
|
+
$dialogPreviewContentDiv.style.overflow = "visible";
|
|
969
|
+
}
|
|
917
970
|
};
|
|
918
971
|
|
|
919
972
|
function mmToPx(iMm) {
|
|
@@ -1896,9 +1949,26 @@ sap.ui.define([
|
|
|
1896
1949
|
}
|
|
1897
1950
|
}
|
|
1898
1951
|
if (this._ganttChartClone._enableOptimisation) {
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1952
|
+
if (this._getOriginalGanttChart._bExpandToggled) {
|
|
1953
|
+
oTable.setRowMode(new FixedRowMode({
|
|
1954
|
+
rowCount: this.iThreshold
|
|
1955
|
+
}));
|
|
1956
|
+
} else {
|
|
1957
|
+
var oCloneTable = this._ganttChartClone.getTable();
|
|
1958
|
+
var oRowMode = oCloneTable.getRowMode(), nRowHeight = 0;
|
|
1959
|
+
if (oRowMode && oRowMode.getRowContentHeight()) {
|
|
1960
|
+
nRowHeight = oRowMode.getRowContentHeight();
|
|
1961
|
+
} else {
|
|
1962
|
+
/**
|
|
1963
|
+
* @deprecated As of version 1.119
|
|
1964
|
+
*/
|
|
1965
|
+
nRowHeight = oCloneTable.getRowHeight();
|
|
1966
|
+
}
|
|
1967
|
+
oTable.setRowMode(new FixedRowMode({
|
|
1968
|
+
rowCount: this.iThreshold,
|
|
1969
|
+
rowContentHeight: nRowHeight ? nRowHeight : Math.ceil(this._getOriginalGanttChart().getTableRowHeights()[0])
|
|
1970
|
+
}));
|
|
1971
|
+
}
|
|
1902
1972
|
oTable.setThreshold(this.iThreshold);
|
|
1903
1973
|
}
|
|
1904
1974
|
var oOriginalRowBinding = oOriginalGantt.getTable().getBinding("rows"),
|
|
@@ -3104,9 +3174,8 @@ sap.ui.define([
|
|
|
3104
3174
|
};
|
|
3105
3175
|
|
|
3106
3176
|
GanttPrinting.prototype._createDatePicker = function (bSinglePage) {
|
|
3107
|
-
var
|
|
3108
|
-
var
|
|
3109
|
-
var oTotalHorizon = oTimeStrategy.getTotalHorizon();
|
|
3177
|
+
var oLocale = this._ganttChartClone.getLocale();
|
|
3178
|
+
var oTotalHorizon = this._ganttChartClone.getAxisTimeStrategy().getTotalHorizon();
|
|
3110
3179
|
var oStartTime = Format.abapTimestampToDate(oTotalHorizon.getStartTime());
|
|
3111
3180
|
var oEndTime = Format.abapTimestampToDate(oTotalHorizon.getEndTime());
|
|
3112
3181
|
|
|
@@ -3123,9 +3192,12 @@ sap.ui.define([
|
|
|
3123
3192
|
this._oStartDateLabel.toStatic();
|
|
3124
3193
|
this._oEndDateLabel.toStatic();
|
|
3125
3194
|
|
|
3195
|
+
var oOriginalTotalHorizon = this._getOriginalGanttChart().getAxisTimeStrategy().getTotalHorizon();
|
|
3196
|
+
var oOriginalStartTime = Format.abapTimestampToDate(oOriginalTotalHorizon.getStartTime());
|
|
3197
|
+
var oOriginalEndTime = Format.abapTimestampToDate(oOriginalTotalHorizon.getEndTime());
|
|
3126
3198
|
this._oDatePickerFrom = new DateTimePicker({
|
|
3127
|
-
minDate: UI5Date.getInstance(
|
|
3128
|
-
maxDate: UI5Date.getInstance(
|
|
3199
|
+
minDate: UI5Date.getInstance(oOriginalStartTime),
|
|
3200
|
+
maxDate: UI5Date.getInstance(oOriginalEndTime),
|
|
3129
3201
|
value: {
|
|
3130
3202
|
parts: [{
|
|
3131
3203
|
path: "setting>/startDate",
|
|
@@ -3146,8 +3218,8 @@ sap.ui.define([
|
|
|
3146
3218
|
});
|
|
3147
3219
|
|
|
3148
3220
|
this._oDatePickerTo = new DateTimePicker({
|
|
3149
|
-
minDate: UI5Date.getInstance(
|
|
3150
|
-
maxDate: UI5Date.getInstance(
|
|
3221
|
+
minDate: UI5Date.getInstance(oOriginalStartTime),
|
|
3222
|
+
maxDate: UI5Date.getInstance(oOriginalEndTime),
|
|
3151
3223
|
value: {
|
|
3152
3224
|
parts: [{
|
|
3153
3225
|
path: "setting>/endDate",
|
|
@@ -121,9 +121,14 @@ sap.ui.define([
|
|
|
121
121
|
setTableRowMode: function(oTable) {
|
|
122
122
|
if (oTable) {
|
|
123
123
|
var oRowMode = oTable.getRowMode();
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated As of version 1.119
|
|
127
|
+
*/
|
|
124
128
|
if (!oRowMode && oTable.getVisibleRowCountMode()) {
|
|
125
129
|
return;
|
|
126
130
|
}
|
|
131
|
+
|
|
127
132
|
if (oRowMode === null || oRowMode === "Fixed") {
|
|
128
133
|
oTable.setRowMode(new FixedRowMode());
|
|
129
134
|
} else if (oRowMode === "Auto") {
|
|
@@ -231,10 +236,13 @@ sap.ui.define([
|
|
|
231
236
|
sShapeId = oPart.shapeId;
|
|
232
237
|
|
|
233
238
|
var selector = ["[id='", sContainerId, "']", " [" + GanttUtils.SHAPE_ID_DATASET_KEY + "='", sShapeId, "']"].join("");
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
var sElm = document.querySelector(selector);
|
|
240
|
+
if (sElm) {
|
|
241
|
+
const oElement = Element.getElementById(sElm.id);
|
|
242
|
+
if ( oElement && oElement.getShapeUid() === sShapeUid ) {
|
|
243
|
+
return oElement;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
238
246
|
};
|
|
239
247
|
return aShapeUid.map(fnElementFromShapeId);
|
|
240
248
|
},
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @extend sap.ui.core.Control
|
|
40
40
|
*
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.125.0
|
|
43
43
|
*
|
|
44
44
|
* @constructor
|
|
45
45
|
* @private
|
|
@@ -119,12 +119,21 @@ sap.ui.define([
|
|
|
119
119
|
var oGantt = this.getParent(), oTable = oGantt.getTable();
|
|
120
120
|
GanttUtils.setTableRowMode(oTable);
|
|
121
121
|
if (oGantt._enableOptimisation && !oGantt.getTable().getRowMode().isA("sap.ui.table.rowmodes.Fixed")) {
|
|
122
|
-
oGantt.getTable().
|
|
122
|
+
if (oGantt.getTable().getRowMode() && oGantt.getTable().getRowMode().getRowContentHeight()) {
|
|
123
|
+
oGantt.getTable().setRowMode(new FixedRowMode({
|
|
124
|
+
rowContentHeight: oGantt.getTable().getRowMode().getRowContentHeight()
|
|
125
|
+
}));
|
|
126
|
+
} else {
|
|
127
|
+
oGantt.getTable().setRowMode(new FixedRowMode());
|
|
128
|
+
}
|
|
123
129
|
}
|
|
124
130
|
var bRowMode;
|
|
125
131
|
if (oTable.getRowMode()) {
|
|
126
132
|
bRowMode = oGantt.getTable().getRowMode().isA("sap.ui.table.rowmodes.Auto") && oGantt.getSyncedControl().getRowStates().length < (oGantt.getTable().getRows().length - 1 + TableUtils.getHeaderRowCount(oGantt.getTable()));
|
|
127
133
|
} else {
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated As of version 1.119
|
|
136
|
+
*/
|
|
128
137
|
bRowMode = oGantt.getTable().getVisibleRowCountMode() === tableLibrary.VisibleRowCountMode.Auto && oGantt.getSyncedControl().getRowStates().length < (oGantt.getTable().getVisibleRowCount() + TableUtils.getHeaderRowCount(oGantt.getTable()));
|
|
129
138
|
}
|
|
130
139
|
if (bWithShapes && !oEvent.getParameter("hasRenderedShapes") ||
|
|
@@ -652,7 +652,7 @@ sap.ui.define([
|
|
|
652
652
|
fnRenderFakeRls(mEntities[sEntityKey].getProperty(sRelationshipShapeIdPath), sEntityKey[0] === "/" ? sEntityKey : "/" + sEntityKey);
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
|
-
} else { // ODataModel
|
|
655
|
+
} else if (oModel.isA("sap.ui.model.odata.v2.ODataModel")) { // ODataModel v2
|
|
656
656
|
var mEntities = oModel.getProperty("/"); // OData entities are in the root (even expanded ones)
|
|
657
657
|
Object.keys(mEntities).forEach(function (sEntityKey) {
|
|
658
658
|
if (sEntityKey.startsWith(oRelationshipsBindingInfo.path)) {
|