@sapui5/sap.gantt 1.126.0 → 1.127.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/FullScreenTimeLineOptions.js +7 -1
- package/src/sap/gantt/axistime/ProportionTimeLineOptions.js +7 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
- package/src/sap/gantt/axistime/StepwiseTimeLineOptions.js +7 -1
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
- package/src/sap/gantt/config/ChartScheme.js +1 -1
- package/src/sap/gantt/config/ColumnAttribute.js +1 -1
- package/src/sap/gantt/config/ContainerLayout.js +1 -1
- package/src/sap/gantt/config/ExpandChart.js +1 -1
- package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
- package/src/sap/gantt/config/GanttChartLayout.js +1 -1
- package/src/sap/gantt/config/Hierarchy.js +1 -1
- package/src/sap/gantt/config/HierarchyColumn.js +1 -1
- package/src/sap/gantt/config/LayoutGroup.js +1 -1
- package/src/sap/gantt/config/Locale.js +1 -1
- package/src/sap/gantt/config/Mode.js +1 -1
- package/src/sap/gantt/config/ModeGroup.js +1 -1
- package/src/sap/gantt/config/ObjectType.js +1 -1
- package/src/sap/gantt/config/SettingGroup.js +1 -1
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +1 -1
- package/src/sap/gantt/config/TimeAxis.js +1 -1
- package/src/sap/gantt/config/TimeHorizon.js +1 -1
- package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarScheme.js +1 -1
- package/src/sap/gantt/control/Cell.js +1 -1
- package/src/sap/gantt/def/DefBase.js +1 -1
- package/src/sap/gantt/def/SvgDefs.js +1 -1
- package/src/sap/gantt/def/cal/Calendar.js +1 -1
- package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
- package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
- package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
- package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
- package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
- package/src/sap/gantt/def/gradient/Stop.js +1 -1
- package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
- package/src/sap/gantt/drawer/AdhocLine.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/Legend.js +6 -0
- 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 +7 -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/AdhocLine.flexibility.js +7 -1
- package/src/sap/gantt/flexibility/simple/DeltaLine.flexibility.js +7 -1
- package/src/sap/gantt/flexibility/simple/GanttChartWithTable.flexibility.js +7 -1
- package/src/sap/gantt/flexibility/simple/GanttTableColumn.flexibility.js +6 -7
- 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.properties +8 -2
- package/src/sap/gantt/misc/AxisOrdinal.js +1 -1
- package/src/sap/gantt/misc/Format.js +2 -2
- 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 +11 -0
- package/src/sap/gantt/overlays/GanttRowOverlay.js +1 -1
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- package/src/sap/gantt/polyfills/lib.js +6 -0
- package/src/sap/gantt/polyfills/time.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/day.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/dayCount.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/days.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/interval.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/millisecond.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/monday.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/saturday.js +6 -0
- package/src/sap/gantt/polyfills/timeUtils/weeks.js +6 -0
- 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/AggregationUtils.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 +7 -7
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +4 -4
- 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 +2 -2
- package/src/sap/gantt/simple/BaseShape.js +7 -5
- package/src/sap/gantt/simple/BaseText.js +1 -1
- package/src/sap/gantt/simple/BaseTriangle.js +7 -1
- package/src/sap/gantt/simple/ContainerToolbar.js +7 -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 +8 -2
- package/src/sap/gantt/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +2 -2
- package/src/sap/gantt/simple/FindAndSelectUtils.js +6 -0
- package/src/sap/gantt/simple/FullScreenUtil.js +7 -1
- package/src/sap/gantt/simple/GanttAdaptationData.js +8 -2
- package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +28 -4
- package/src/sap/gantt/simple/GanttDragDropExtension.js +10 -5
- 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 +2 -2
- package/src/sap/gantt/simple/GanttPrinting.js +311 -197
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttScrollExtension.js +1 -1
- package/src/sap/gantt/simple/GanttSearchSidePanel.js +7 -1
- package/src/sap/gantt/simple/GanttUtils.js +6 -3
- package/src/sap/gantt/simple/GanttZoomExtension.js +4 -4
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChartRenderer.js +2 -0
- 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/PrintConfig.js +314 -0
- package/src/sap/gantt/simple/PrintDialogTemplate.js +38 -0
- package/src/sap/gantt/simple/PrintUtils.js +151 -0
- package/src/sap/gantt/simple/Relationship.js +1 -1
- package/src/sap/gantt/simple/RenderUtils.js +1 -1
- package/src/sap/gantt/simple/SelectionModel.js +14 -0
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +1 -1
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
- package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
- package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
- package/src/sap/gantt/simple/shapes/Shape.js +6 -6
- 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 +8 -2
- 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
- package/src/sap/gantt/skipTime/WeeklyDiscontinuousProvider.js +6 -0
- package/src/sap/gantt/utils/GanttChartConfigurationUtils.js +6 -0
- package/src/sap/gantt/utils/GanttCustomisationUtils.js +7 -1
- package/src/sap/gantt/utils/GanttFlexibilityUtils.js +7 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
1
7
|
sap.ui.define([
|
|
2
8
|
"sap/gantt/utils/GanttFlexibilityUtils"
|
|
3
9
|
], function (GanttFlexibilityUtils) {
|
|
@@ -8,4 +14,4 @@ sap.ui.define([
|
|
|
8
14
|
"moveControls": "default",
|
|
9
15
|
"ganttAdhocLineSettings": GanttFlexibilityUtils.fnCustomisationChangeHandler("ganttAdhocLineSettings")
|
|
10
16
|
};
|
|
11
|
-
}, /* bExport= */ true);
|
|
17
|
+
}, /* bExport= */ true);
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
1
7
|
sap.ui.define([
|
|
2
8
|
"sap/gantt/utils/GanttFlexibilityUtils"
|
|
3
9
|
], function (GanttFlexibilityUtils) {
|
|
@@ -9,4 +15,4 @@ sap.ui.define([
|
|
|
9
15
|
"moveControls": "default",
|
|
10
16
|
"ganttDeltaLineSettings": GanttFlexibilityUtils.fnCustomisationChangeHandler("ganttDeltaLineSettings")
|
|
11
17
|
};
|
|
12
|
-
}, /* bExport= */ true);
|
|
18
|
+
}, /* bExport= */ true);
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
1
7
|
sap.ui.define([
|
|
2
8
|
"sap/gantt/utils/GanttFlexibilityUtils"
|
|
3
9
|
], function (GanttFlexibilityUtils) {
|
|
@@ -9,4 +15,4 @@ sap.ui.define([
|
|
|
9
15
|
"moveControls": "default",
|
|
10
16
|
"ganttChartWithTableSettings": GanttFlexibilityUtils.fnCustomisationChangeHandler("ganttChartWithTableSettings")
|
|
11
17
|
};
|
|
12
|
-
}, /* bExport= */ true);
|
|
18
|
+
}, /* bExport= */ true);
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/gantt/utils/GanttFlexibilityUtils",
|
|
10
|
-
"sap/ui/fl/changeHandler/condenser/Classification"
|
|
11
|
-
|
|
10
|
+
"sap/ui/fl/changeHandler/condenser/Classification",
|
|
11
|
+
"sap/m/flexibility/EngineFlex"
|
|
12
|
+
], function (GanttFlexibilityUtils, Classification, EngineFlex) {
|
|
12
13
|
"use strict";
|
|
13
|
-
|
|
14
|
-
return {
|
|
14
|
+
return Object.assign(EngineFlex, {
|
|
15
15
|
"hideControl": "default",
|
|
16
16
|
"unhideControl": "default",
|
|
17
17
|
"moveControls": "default",
|
|
18
|
-
|
|
18
|
+
"GanttTableColumnOrder": {
|
|
19
19
|
"changeHandler": {
|
|
20
20
|
applyChange: function (oChange, oControl, mPropertyBag) {
|
|
21
21
|
var oModifier = mPropertyBag.modifier,
|
|
@@ -32,7 +32,6 @@ sap.ui.define([
|
|
|
32
32
|
var oColumn = oModifier.bySelector(columnId, oAppComponent, oView);
|
|
33
33
|
aNewColumns.push(oColumn);
|
|
34
34
|
});
|
|
35
|
-
|
|
36
35
|
// move children in `columns` aggregation around
|
|
37
36
|
if (aNewColumns.length > 0) {
|
|
38
37
|
return oModifier.removeAllAggregation(oControl, sAggregationName).then(function() {
|
|
@@ -142,5 +141,5 @@ sap.ui.define([
|
|
|
142
141
|
},
|
|
143
142
|
"TableColumnFilterValue": GanttFlexibilityUtils.fnChangeHandler("TableColumnFilterValue"),
|
|
144
143
|
"TableColumnVisibility": GanttFlexibilityUtils.fnChangeHandler("TableColumnVisibility")
|
|
145
|
-
};
|
|
144
|
+
});
|
|
146
145
|
}, /* bExport= */ true);
|
package/src/sap/gantt/library.js
CHANGED
|
@@ -175,7 +175,7 @@ sap.ui.define([
|
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
noLibraryCSS: false,
|
|
178
|
-
version: "1.
|
|
178
|
+
version: "1.127.1"
|
|
179
179
|
});
|
|
180
180
|
|
|
181
181
|
|
|
@@ -787,7 +787,7 @@ sap.ui.define([
|
|
|
787
787
|
|
|
788
788
|
/**
|
|
789
789
|
* Define the type of zoom control in global tool bar
|
|
790
|
-
* @version 1.
|
|
790
|
+
* @version 1.127.1
|
|
791
791
|
* @enum {string}
|
|
792
792
|
* @public
|
|
793
793
|
*/
|
|
@@ -494,6 +494,12 @@ GNT_PRNTG_SINGLE_PAGE_PORTRAIT=Set orientation as Portrait for better print qual
|
|
|
494
494
|
#XTOL
|
|
495
495
|
GNT_PRNTG_SINGLE_PAGE_LANDSCAPE=Set orientation as Landscape for better print quality.
|
|
496
496
|
|
|
497
|
+
#XTOL
|
|
498
|
+
GNT_PRNTG_ERROR_DATEDURATION=Enter a valid date duration.
|
|
499
|
+
|
|
500
|
+
#XTOL
|
|
501
|
+
GNT_PRNTG_ERROR_DATEDURATION_PREVIEW=Date duration is incorrect, enter a duration from the provided values.
|
|
502
|
+
|
|
497
503
|
#XFLD: Width for page
|
|
498
504
|
GNT_PRNTG_WIDTH = Width
|
|
499
505
|
|
|
@@ -685,10 +691,10 @@ TXT_CH_GC_DELTA_LINE = Enable Delta Line
|
|
|
685
691
|
#XFLD: Now line text
|
|
686
692
|
TXT_CH_GC_NOW_LINE = Enable Now Line
|
|
687
693
|
|
|
688
|
-
#XBUT:
|
|
694
|
+
#XBUT:
|
|
689
695
|
TXT_CH_GC_TRUE = TRUE
|
|
690
696
|
|
|
691
|
-
#XBUT:
|
|
697
|
+
#XBUT:
|
|
692
698
|
TXT_CH_GC_FALSE = FALSE
|
|
693
699
|
|
|
694
700
|
#XHED: Gantt chart container dialog header text
|
|
@@ -239,7 +239,7 @@ sap.ui.define([
|
|
|
239
239
|
if (curValue <= viewWidth[1] && curValue >= viewWidth[0]) {
|
|
240
240
|
//If current position is in the elements scale, calculate the row index
|
|
241
241
|
return this.viewToElementIndex(value);
|
|
242
|
-
} else if (
|
|
242
|
+
} else if (Utility.isNumeric(iMaxIndex) && iMaxIndex > this.elementArray.length) {
|
|
243
243
|
//if current position is out of elements scale, calculate the row index
|
|
244
244
|
var blankIndex = parseInt( ( value - viewWidth[1] - viewWidth[0] ) / this.viewBandWidth);
|
|
245
245
|
var rowIndex = blankIndex + this.elementArray.length;
|
|
@@ -71,7 +71,7 @@ sap.ui.define([
|
|
|
71
71
|
sTimestamp.substr(10, 2),
|
|
72
72
|
sTimestamp.substr(12, 2));
|
|
73
73
|
//In case ts is in format of "Fri Jun 12 2015 08:00:00 GMT+0800 (China Standard Time)"
|
|
74
|
-
if (
|
|
74
|
+
if (isNaN(date.getTime())){
|
|
75
75
|
date = new Date(sTimestamp);
|
|
76
76
|
//In case ts is in ISO format of "2021-04-19T17:13:10.000Z"
|
|
77
77
|
if (!isNaN(date.getTime()) && (date.toISOString() === sTimestamp)) {
|
|
@@ -85,7 +85,7 @@ sap.ui.define([
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
return date;
|
|
88
|
-
} else if (
|
|
88
|
+
} else if (sTimestamp instanceof Date){
|
|
89
89
|
return sTimestamp;
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
@@ -560,5 +560,16 @@ sap.ui.define([
|
|
|
560
560
|
return oFormatter.format(oDate, sLocalTimezone);
|
|
561
561
|
};
|
|
562
562
|
|
|
563
|
+
/**
|
|
564
|
+
* @param {object} value value to be checked
|
|
565
|
+
* @returns {boolean} returns whether the given value is coercible to number
|
|
566
|
+
*/
|
|
567
|
+
Utility.isNumeric = function (value) {
|
|
568
|
+
var type = typeof value;
|
|
569
|
+
|
|
570
|
+
return (type === "number" || type === "string") &&
|
|
571
|
+
(value - parseFloat(value) + 1) >= 0;
|
|
572
|
+
};
|
|
573
|
+
|
|
563
574
|
return Utility;
|
|
564
575
|
}, /* bExport= */ true);
|