@wimi/vtable-gantt 1.0.3 → 1.0.4

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.
Files changed (77) hide show
  1. package/cjs/Gantt.d.ts +19 -0
  2. package/cjs/Gantt.js +135 -9
  3. package/cjs/Gantt.js.map +1 -1
  4. package/cjs/event/event-manager.js +17 -6
  5. package/cjs/event/event-manager.js.map +1 -1
  6. package/cjs/event/scroll.js +2 -1
  7. package/cjs/event/touch.js +0 -1
  8. package/cjs/gantt-helper.d.ts +7 -0
  9. package/cjs/gantt-helper.js +76 -66
  10. package/cjs/gantt-helper.js.map +1 -1
  11. package/cjs/index.d.ts +1 -1
  12. package/cjs/index.js +1 -1
  13. package/cjs/index.js.map +1 -1
  14. package/cjs/plugins/index.js.map +1 -1
  15. package/cjs/scenegraph/dependency-link.js +28 -38
  16. package/cjs/scenegraph/dependency-link.js.map +1 -1
  17. package/cjs/scenegraph/grid.js +11 -10
  18. package/cjs/scenegraph/grid.js.map +1 -1
  19. package/cjs/scenegraph/mark-line.js +10 -12
  20. package/cjs/scenegraph/mark-line.js.map +1 -1
  21. package/cjs/scenegraph/task-bar.d.ts +11 -1
  22. package/cjs/scenegraph/task-bar.js +189 -29
  23. package/cjs/scenegraph/task-bar.js.map +1 -1
  24. package/cjs/scenegraph/timeline-header.js +2 -6
  25. package/cjs/scenegraph/timeline-header.js.map +1 -1
  26. package/cjs/state/state-manager.js +23 -18
  27. package/cjs/state/state-manager.js.map +1 -1
  28. package/cjs/tools/isx.d.ts +1 -1
  29. package/cjs/tools/util.js +2 -1
  30. package/cjs/tools/util.js.map +1 -1
  31. package/cjs/ts-types/gantt-engine.d.ts +8 -0
  32. package/cjs/ts-types/gantt-engine.js +2 -1
  33. package/cjs/ts-types/gantt-engine.js.map +1 -1
  34. package/cjs/zoom-scale/DataZoomIntegration.d.ts +2 -0
  35. package/cjs/zoom-scale/DataZoomIntegration.js +32 -20
  36. package/cjs/zoom-scale/DataZoomIntegration.js.map +1 -1
  37. package/cjs/zoom-scale/ZoomScaleManager.js +1 -2
  38. package/dist/vtable-gantt.js +4153 -1803
  39. package/dist/vtable-gantt.min.js +1 -15
  40. package/es/Gantt.d.ts +19 -0
  41. package/es/Gantt.js +135 -8
  42. package/es/Gantt.js.map +1 -1
  43. package/es/event/event-manager.js +17 -6
  44. package/es/event/event-manager.js.map +1 -1
  45. package/es/event/scroll.js +2 -1
  46. package/es/event/touch.js +1 -2
  47. package/es/gantt-helper.d.ts +7 -0
  48. package/es/gantt-helper.js +75 -63
  49. package/es/gantt-helper.js.map +1 -1
  50. package/es/index.d.ts +1 -1
  51. package/es/index.js +1 -1
  52. package/es/index.js.map +1 -1
  53. package/es/plugins/index.js.map +1 -1
  54. package/es/scenegraph/dependency-link.js +29 -27
  55. package/es/scenegraph/dependency-link.js.map +1 -1
  56. package/es/scenegraph/grid.js +9 -11
  57. package/es/scenegraph/grid.js.map +1 -1
  58. package/es/scenegraph/mark-line.js +10 -11
  59. package/es/scenegraph/mark-line.js.map +1 -1
  60. package/es/scenegraph/task-bar.d.ts +11 -1
  61. package/es/scenegraph/task-bar.js +190 -29
  62. package/es/scenegraph/task-bar.js.map +1 -1
  63. package/es/scenegraph/timeline-header.js +3 -5
  64. package/es/scenegraph/timeline-header.js.map +1 -1
  65. package/es/state/state-manager.js +24 -19
  66. package/es/state/state-manager.js.map +1 -1
  67. package/es/tools/isx.d.ts +1 -1
  68. package/es/tools/util.js +2 -1
  69. package/es/tools/util.js.map +1 -1
  70. package/es/ts-types/gantt-engine.d.ts +8 -0
  71. package/es/ts-types/gantt-engine.js +2 -1
  72. package/es/ts-types/gantt-engine.js.map +1 -1
  73. package/es/zoom-scale/DataZoomIntegration.d.ts +2 -0
  74. package/es/zoom-scale/DataZoomIntegration.js +32 -20
  75. package/es/zoom-scale/DataZoomIntegration.js.map +1 -1
  76. package/es/zoom-scale/ZoomScaleManager.js +1 -2
  77. package/package.json +11 -9
@@ -12,6 +12,14 @@ export const defaultTaskBarStyle = {
12
12
  fontSize: 14
13
13
  };
14
14
 
15
+ export const defaultBaselineStyle = {
16
+ barColor: "#d3d3d3",
17
+ completedBarColor: "#a9a9a9",
18
+ width: 20,
19
+ cornerRadius: 3,
20
+ borderWidth: 0
21
+ };
22
+
15
23
  function setWidthToDefaultTaskBarStyle(width) {
16
24
  defaultTaskBarStyle.width = width;
17
25
  }
@@ -21,8 +29,7 @@ const isNode = "undefined" == typeof window || void 0 === window.window;
21
29
  export const DayTimes = 864e5;
22
30
 
23
31
  export function getDateIndexByX(x, gantt) {
24
- const totalX = x + gantt.stateManager.scroll.horizontalBarPos, firstDateColWidth = gantt.getDateColWidth(0);
25
- return Math.floor((totalX - firstDateColWidth) / gantt.parsedOptions.timelineColWidth) + 1;
32
+ return gantt.getDateIndexByX(x);
26
33
  }
27
34
 
28
35
  export function generateMarkLine(markLine) {
@@ -73,7 +80,7 @@ export function getVerticalScrollBarSize(scrollStyle) {
73
80
  export { isNode };
74
81
 
75
82
  export function initOptions(gantt) {
76
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100;
77
84
  const options = gantt.options;
78
85
  gantt.parsedOptions.tasksShowMode = null !== (_a = null == options ? void 0 : options.tasksShowMode) && void 0 !== _a ? _a : TasksShowMode.Tasks_Separate,
79
86
  gantt.parsedOptions.pixelRatio = null !== (_b = null == options ? void 0 : options.pixelRatio) && void 0 !== _b ? _b : 1,
@@ -82,15 +89,19 @@ export function initOptions(gantt) {
82
89
  gantt.parsedOptions.startDateField = null !== (_g = null === (_f = options.taskBar) || void 0 === _f ? void 0 : _f.startDateField) && void 0 !== _g ? _g : "startDate",
83
90
  gantt.parsedOptions.endDateField = null !== (_j = null === (_h = options.taskBar) || void 0 === _h ? void 0 : _h.endDateField) && void 0 !== _j ? _j : "endDate",
84
91
  gantt.parsedOptions.progressField = null !== (_l = null === (_k = options.taskBar) || void 0 === _k ? void 0 : _k.progressField) && void 0 !== _l ? _l : "progress",
85
- gantt.parsedOptions.taskBarClip = null === (_o = null === (_m = null == options ? void 0 : options.taskBar) || void 0 === _m ? void 0 : _m.clip) || void 0 === _o || _o,
86
- gantt.parsedOptions.projectSubTasksExpandable = null === (_p = null == options ? void 0 : options.projectSubTasksExpandable) || void 0 === _p || _p;
92
+ gantt.parsedOptions.baselineStartDateField = null === (_m = options.taskBar) || void 0 === _m ? void 0 : _m.baselineStartDateField,
93
+ gantt.parsedOptions.baselineEndDateField = null === (_o = options.taskBar) || void 0 === _o ? void 0 : _o.baselineEndDateField,
94
+ gantt.parsedOptions.baselinePosition = null !== (_q = null === (_p = options.taskBar) || void 0 === _p ? void 0 : _p.baselinePosition) && void 0 !== _q ? _q : "bottom",
95
+ gantt.parsedOptions.taskBarClip = null === (_s = null === (_r = null == options ? void 0 : options.taskBar) || void 0 === _r ? void 0 : _r.clip) || void 0 === _s || _s,
96
+ gantt.parsedOptions.taskBarLocateIcon = null !== (_u = null === (_t = null == options ? void 0 : options.taskBar) || void 0 === _t ? void 0 : _t.locateIcon) && void 0 !== _u && _u,
97
+ gantt.parsedOptions.projectSubTasksExpandable = null === (_v = null == options ? void 0 : options.projectSubTasksExpandable) || void 0 === _v || _v;
87
98
  const {unit: minTimeUnit, startOfWeek: startOfWeek, step: step} = gantt.parsedOptions.reverseSortedTimelineScales[0];
88
99
  gantt.parsedOptions.minDate = (null == options ? void 0 : options.minDate) ? getStartDateByTimeUnit(new Date(options.minDate), minTimeUnit, startOfWeek) : void 0,
89
- gantt.parsedOptions.maxDate = (null == options ? void 0 : options.maxDate) && (null === (_q = gantt.parsedOptions) || void 0 === _q ? void 0 : _q.minDate) ? getEndDateByTimeUnit(null === (_r = gantt.parsedOptions) || void 0 === _r ? void 0 : _r.minDate, new Date(options.maxDate), minTimeUnit, step) : void 0,
90
- gantt.parsedOptions._minDateTime = null === (_s = gantt.parsedOptions.minDate) || void 0 === _s ? void 0 : _s.getTime(),
91
- gantt.parsedOptions._maxDateTime = null === (_t = gantt.parsedOptions.maxDate) || void 0 === _t ? void 0 : _t.getTime(),
92
- gantt.parsedOptions.overscrollBehavior = null !== (_u = null == options ? void 0 : options.overscrollBehavior) && void 0 !== _u ? _u : "auto",
93
- gantt.parsedOptions.underlayBackgroundColor = null !== (_v = null == options ? void 0 : options.underlayBackgroundColor) && void 0 !== _v ? _v : "#FFF",
100
+ gantt.parsedOptions.maxDate = (null == options ? void 0 : options.maxDate) && (null === (_w = gantt.parsedOptions) || void 0 === _w ? void 0 : _w.minDate) ? getEndDateByTimeUnit(null === (_x = gantt.parsedOptions) || void 0 === _x ? void 0 : _x.minDate, new Date(options.maxDate), minTimeUnit, step) : void 0,
101
+ gantt.parsedOptions._minDateTime = null === (_y = gantt.parsedOptions.minDate) || void 0 === _y ? void 0 : _y.getTime(),
102
+ gantt.parsedOptions._maxDateTime = null === (_z = gantt.parsedOptions.maxDate) || void 0 === _z ? void 0 : _z.getTime(),
103
+ gantt.parsedOptions.overscrollBehavior = null !== (_0 = null == options ? void 0 : options.overscrollBehavior) && void 0 !== _0 ? _0 : "auto",
104
+ gantt.parsedOptions.underlayBackgroundColor = null !== (_1 = null == options ? void 0 : options.underlayBackgroundColor) && void 0 !== _1 ? _1 : "#FFF",
94
105
  gantt.parsedOptions.scrollStyle = Object.assign({}, {
95
106
  scrollRailColor: "rgba(100, 100, 100, 0.2)",
96
107
  scrollSliderColor: "rgba(100, 100, 100, 0.5)",
@@ -99,9 +110,9 @@ export function initOptions(gantt) {
99
110
  visible: "always",
100
111
  hoverOn: !0,
101
112
  barToSide: !1
102
- }, null == options ? void 0 : options.scrollStyle), gantt.parsedOptions.timelineHeaderHorizontalLineStyle = null === (_w = null == options ? void 0 : options.timelineHeader) || void 0 === _w ? void 0 : _w.horizontalLine,
103
- gantt.parsedOptions.timelineHeaderVerticalLineStyle = null === (_x = null == options ? void 0 : options.timelineHeader) || void 0 === _x ? void 0 : _x.verticalLine,
104
- gantt.parsedOptions.timelineHeaderBackgroundColor = null === (_y = null == options ? void 0 : options.timelineHeader) || void 0 === _y ? void 0 : _y.backgroundColor,
113
+ }, null == options ? void 0 : options.scrollStyle), gantt.parsedOptions.timelineHeaderHorizontalLineStyle = null === (_2 = null == options ? void 0 : options.timelineHeader) || void 0 === _2 ? void 0 : _2.horizontalLine,
114
+ gantt.parsedOptions.timelineHeaderVerticalLineStyle = null === (_3 = null == options ? void 0 : options.timelineHeader) || void 0 === _3 ? void 0 : _3.verticalLine,
115
+ gantt.parsedOptions.timelineHeaderBackgroundColor = null === (_4 = null == options ? void 0 : options.timelineHeader) || void 0 === _4 ? void 0 : _4.backgroundColor,
105
116
  gantt.parsedOptions.timeLineHeaderRowHeights = [], gantt.parsedOptions.timelineHeaderStyles = [];
106
117
  for (let i = 0; i < gantt.parsedOptions.sortedTimelineScales.length; i++) {
107
118
  const style = gantt.parsedOptions.sortedTimelineScales[i].style;
@@ -112,15 +123,16 @@ export function initOptions(gantt) {
112
123
  textBaseline: "middle",
113
124
  color: "#000",
114
125
  backgroundColor: "#fff"
115
- }, style)), gantt.parsedOptions.timeLineHeaderRowHeights.push(null !== (_0 = null !== (_z = gantt.parsedOptions.sortedTimelineScales[i].rowHeight) && void 0 !== _z ? _z : null == options ? void 0 : options.headerRowHeight) && void 0 !== _0 ? _0 : 40);
126
+ }, style)), gantt.parsedOptions.timeLineHeaderRowHeights.push(null !== (_6 = null !== (_5 = gantt.parsedOptions.sortedTimelineScales[i].rowHeight) && void 0 !== _5 ? _5 : null == options ? void 0 : options.headerRowHeight) && void 0 !== _6 ? _6 : 40);
116
127
  }
117
128
  gantt.parsedOptions.grid = Object.assign({}, null == options ? void 0 : options.grid),
118
- setWidthToDefaultTaskBarStyle(3 * gantt.parsedOptions.rowHeight / 4), gantt.parsedOptions.taskBarStyle = (null === (_1 = null == options ? void 0 : options.taskBar) || void 0 === _1 ? void 0 : _1.barStyle) && "function" == typeof (null === (_2 = null == options ? void 0 : options.taskBar) || void 0 === _2 ? void 0 : _2.barStyle) ? options.taskBar.barStyle : Object.assign({}, defaultTaskBarStyle, null === (_3 = null == options ? void 0 : options.taskBar) || void 0 === _3 ? void 0 : _3.barStyle),
119
- gantt.parsedOptions.projectBarStyle = (null === (_4 = null == options ? void 0 : options.taskBar) || void 0 === _4 ? void 0 : _4.projectStyle) && "function" == typeof (null === (_5 = null == options ? void 0 : options.taskBar) || void 0 === _5 ? void 0 : _5.projectStyle) ? options.taskBar.projectStyle : (null === (_6 = null == options ? void 0 : options.taskBar) || void 0 === _6 ? void 0 : _6.projectStyle) ? Object.assign({}, defaultTaskBarStyle, null === (_7 = null == options ? void 0 : options.taskBar) || void 0 === _7 ? void 0 : _7.projectStyle) : gantt.parsedOptions.taskBarStyle;
129
+ setWidthToDefaultTaskBarStyle(3 * gantt.parsedOptions.rowHeight / 4), gantt.parsedOptions.taskBarStyle = (null === (_7 = null == options ? void 0 : options.taskBar) || void 0 === _7 ? void 0 : _7.barStyle) && "function" == typeof (null === (_8 = null == options ? void 0 : options.taskBar) || void 0 === _8 ? void 0 : _8.barStyle) ? options.taskBar.barStyle : Object.assign({}, defaultTaskBarStyle, null === (_9 = null == options ? void 0 : options.taskBar) || void 0 === _9 ? void 0 : _9.barStyle),
130
+ gantt.parsedOptions.projectBarStyle = (null === (_10 = null == options ? void 0 : options.taskBar) || void 0 === _10 ? void 0 : _10.projectStyle) && "function" == typeof (null === (_11 = null == options ? void 0 : options.taskBar) || void 0 === _11 ? void 0 : _11.projectStyle) ? options.taskBar.projectStyle : (null === (_12 = null == options ? void 0 : options.taskBar) || void 0 === _12 ? void 0 : _12.projectStyle) ? Object.assign({}, defaultTaskBarStyle, null === (_13 = null == options ? void 0 : options.taskBar) || void 0 === _13 ? void 0 : _13.projectStyle) : gantt.parsedOptions.taskBarStyle,
131
+ gantt.parsedOptions.baselineStyle = (null === (_14 = null == options ? void 0 : options.taskBar) || void 0 === _14 ? void 0 : _14.baselineStyle) && "function" == typeof (null === (_15 = null == options ? void 0 : options.taskBar) || void 0 === _15 ? void 0 : _15.baselineStyle) ? options.taskBar.baselineStyle : Object.assign({}, defaultBaselineStyle, null === (_16 = null == options ? void 0 : options.taskBar) || void 0 === _16 ? void 0 : _16.baselineStyle);
120
132
  gantt.parsedOptions.taskBarMilestoneStyle = Object.assign("function" == typeof gantt.parsedOptions.taskBarStyle ? {} : {
121
133
  width: gantt.parsedOptions.taskBarStyle.width,
122
134
  borderColor: gantt.parsedOptions.taskBarStyle.borderColor,
123
- borderLineWidth: null !== (_8 = gantt.parsedOptions.taskBarStyle.borderLineWidth) && void 0 !== _8 ? _8 : 1,
135
+ borderLineWidth: null !== (_17 = gantt.parsedOptions.taskBarStyle.borderLineWidth) && void 0 !== _17 ? _17 : 1,
124
136
  fillColor: gantt.parsedOptions.taskBarStyle.barColor,
125
137
  cornerRadius: 0
126
138
  }, {
@@ -130,13 +142,13 @@ export function initOptions(gantt) {
130
142
  fontFamily: "Arial",
131
143
  padding: 4
132
144
  }
133
- }, null === (_9 = null == options ? void 0 : options.taskBar) || void 0 === _9 ? void 0 : _9.milestoneStyle),
145
+ }, null === (_18 = null == options ? void 0 : options.taskBar) || void 0 === _18 ? void 0 : _18.milestoneStyle),
134
146
  gantt.parsedOptions.taskBarMilestoneHypotenuse = gantt.parsedOptions.taskBarMilestoneStyle.width * Math.sqrt(2),
135
147
  gantt.parsedOptions.dateFormat = null == options ? void 0 : options.dateFormat,
136
148
  gantt.parsedOptions.taskBarHoverStyle = Object.assign({
137
149
  barOverlayColor: "rgba(99, 144, 0, 0.4)"
138
- }, null === (_10 = null == options ? void 0 : options.taskBar) || void 0 === _10 ? void 0 : _10.hoverBarStyle),
139
- gantt.parsedOptions.taskBarSelectable = null === (_12 = null === (_11 = null == options ? void 0 : options.taskBar) || void 0 === _11 ? void 0 : _11.selectable) || void 0 === _12 || _12,
150
+ }, null === (_19 = null == options ? void 0 : options.taskBar) || void 0 === _19 ? void 0 : _19.hoverBarStyle),
151
+ gantt.parsedOptions.taskBarSelectable = null === (_21 = null === (_20 = null == options ? void 0 : options.taskBar) || void 0 === _20 ? void 0 : _20.selectable) || void 0 === _21 || _21,
140
152
  gantt.parsedOptions.taskBarSelectedStyle = Object.assign("function" == typeof gantt.parsedOptions.taskBarStyle ? {
141
153
  shadowBlur: 6,
142
154
  shadowOffsetX: 0,
@@ -149,85 +161,85 @@ export function initOptions(gantt) {
149
161
  shadowColor: gantt.parsedOptions.taskBarStyle.barColor,
150
162
  borderColor: gantt.parsedOptions.taskBarStyle.barColor,
151
163
  borderLineWidth: 1
152
- }, null === (_13 = null == options ? void 0 : options.taskBar) || void 0 === _13 ? void 0 : _13.selectedBarStyle),
153
- gantt.parsedOptions.taskBarLabelText = null !== (_15 = null === (_14 = null == options ? void 0 : options.taskBar) || void 0 === _14 ? void 0 : _14.labelText) && void 0 !== _15 ? _15 : "",
154
- gantt.parsedOptions.taskBarMoveable = null === (_17 = null === (_16 = null == options ? void 0 : options.taskBar) || void 0 === _16 ? void 0 : _16.moveable) || void 0 === _17 || _17,
155
- gantt.parsedOptions.moveTaskBarToExtendDateRange = null === (_19 = null === (_18 = null == options ? void 0 : options.taskBar) || void 0 === _18 ? void 0 : _18.moveToExtendDateRange) || void 0 === _19 || _19,
156
- gantt.parsedOptions.taskBarResizable = null === (_21 = null === (_20 = null == options ? void 0 : options.taskBar) || void 0 === _20 ? void 0 : _20.resizable) || void 0 === _21 || _21,
157
- gantt.parsedOptions.taskBarProgressAdjustable = null !== (_23 = null === (_22 = null == options ? void 0 : options.taskBar) || void 0 === _22 ? void 0 : _22.progressAdjustable) && void 0 !== _23 && _23,
158
- gantt.parsedOptions.taskBarDragOrder = null === (_25 = null === (_24 = null == options ? void 0 : options.taskBar) || void 0 === _24 ? void 0 : _24.dragOrder) || void 0 === _25 || _25,
164
+ }, null === (_22 = null == options ? void 0 : options.taskBar) || void 0 === _22 ? void 0 : _22.selectedBarStyle),
165
+ gantt.parsedOptions.taskBarLabelText = null !== (_24 = null === (_23 = null == options ? void 0 : options.taskBar) || void 0 === _23 ? void 0 : _23.labelText) && void 0 !== _24 ? _24 : "",
166
+ gantt.parsedOptions.taskBarMoveable = null === (_26 = null === (_25 = null == options ? void 0 : options.taskBar) || void 0 === _25 ? void 0 : _25.moveable) || void 0 === _26 || _26,
167
+ gantt.parsedOptions.moveTaskBarToExtendDateRange = null === (_28 = null === (_27 = null == options ? void 0 : options.taskBar) || void 0 === _27 ? void 0 : _27.moveToExtendDateRange) || void 0 === _28 || _28,
168
+ gantt.parsedOptions.taskBarResizable = null === (_30 = null === (_29 = null == options ? void 0 : options.taskBar) || void 0 === _29 ? void 0 : _29.resizable) || void 0 === _30 || _30,
169
+ gantt.parsedOptions.taskBarProgressAdjustable = null !== (_32 = null === (_31 = null == options ? void 0 : options.taskBar) || void 0 === _31 ? void 0 : _31.progressAdjustable) && void 0 !== _32 && _32,
170
+ gantt.parsedOptions.taskBarDragOrder = null === (_34 = null === (_33 = null == options ? void 0 : options.taskBar) || void 0 === _33 ? void 0 : _33.dragOrder) || void 0 === _34 || _34,
159
171
  gantt.parsedOptions.taskBarLabelStyle = {
160
- fontFamily: null !== (_28 = null === (_27 = null === (_26 = null == options ? void 0 : options.taskBar) || void 0 === _26 ? void 0 : _26.labelTextStyle) || void 0 === _27 ? void 0 : _27.fontFamily) && void 0 !== _28 ? _28 : "Arial",
161
- fontSize: null !== (_31 = null === (_30 = null === (_29 = null == options ? void 0 : options.taskBar) || void 0 === _29 ? void 0 : _29.labelTextStyle) || void 0 === _30 ? void 0 : _30.fontSize) && void 0 !== _31 ? _31 : 20,
162
- color: null !== (_34 = null === (_33 = null === (_32 = null == options ? void 0 : options.taskBar) || void 0 === _32 ? void 0 : _32.labelTextStyle) || void 0 === _33 ? void 0 : _33.color) && void 0 !== _34 ? _34 : "#F01",
163
- outsideColor: null !== (_37 = null === (_36 = null === (_35 = null == options ? void 0 : options.taskBar) || void 0 === _35 ? void 0 : _35.labelTextStyle) || void 0 === _36 ? void 0 : _36.outsideColor) && void 0 !== _37 ? _37 : "#333333",
164
- textAlign: null !== (_40 = null === (_39 = null === (_38 = null == options ? void 0 : options.taskBar) || void 0 === _38 ? void 0 : _38.labelTextStyle) || void 0 === _39 ? void 0 : _39.textAlign) && void 0 !== _40 ? _40 : "left",
165
- textBaseline: null !== (_43 = null === (_42 = null === (_41 = null == options ? void 0 : options.taskBar) || void 0 === _41 ? void 0 : _41.labelTextStyle) || void 0 === _42 ? void 0 : _42.textBaseline) && void 0 !== _43 ? _43 : "middle",
166
- padding: null !== (_46 = null === (_45 = null === (_44 = null == options ? void 0 : options.taskBar) || void 0 === _44 ? void 0 : _44.labelTextStyle) || void 0 === _45 ? void 0 : _45.padding) && void 0 !== _46 ? _46 : [ 0, 0, 0, 10 ],
167
- textOverflow: null === (_48 = null === (_47 = null == options ? void 0 : options.taskBar) || void 0 === _47 ? void 0 : _47.labelTextStyle) || void 0 === _48 ? void 0 : _48.textOverflow,
168
- orient: null === (_50 = null === (_49 = null == options ? void 0 : options.taskBar) || void 0 === _49 ? void 0 : _49.labelTextStyle) || void 0 === _50 ? void 0 : _50.orient,
169
- orientHandleWithOverflow: null === (_52 = null === (_51 = null == options ? void 0 : options.taskBar) || void 0 === _51 ? void 0 : _51.labelTextStyle) || void 0 === _52 ? void 0 : _52.orientHandleWithOverflow
170
- }, gantt.parsedOptions.taskBarCustomLayout = null === (_53 = null == options ? void 0 : options.taskBar) || void 0 === _53 ? void 0 : _53.customLayout,
171
- gantt.parsedOptions.taskBarCreatable = null !== (_55 = null === (_54 = null == options ? void 0 : options.taskBar) || void 0 === _54 ? void 0 : _54.scheduleCreatable) && void 0 !== _55 ? _55 : !(gantt.parsedOptions.tasksShowMode !== TasksShowMode.Sub_Tasks_Separate && gantt.parsedOptions.tasksShowMode !== TasksShowMode.Tasks_Separate),
172
+ fontFamily: null !== (_37 = null === (_36 = null === (_35 = null == options ? void 0 : options.taskBar) || void 0 === _35 ? void 0 : _35.labelTextStyle) || void 0 === _36 ? void 0 : _36.fontFamily) && void 0 !== _37 ? _37 : "Arial",
173
+ fontSize: null !== (_40 = null === (_39 = null === (_38 = null == options ? void 0 : options.taskBar) || void 0 === _38 ? void 0 : _38.labelTextStyle) || void 0 === _39 ? void 0 : _39.fontSize) && void 0 !== _40 ? _40 : 20,
174
+ color: null !== (_43 = null === (_42 = null === (_41 = null == options ? void 0 : options.taskBar) || void 0 === _41 ? void 0 : _41.labelTextStyle) || void 0 === _42 ? void 0 : _42.color) && void 0 !== _43 ? _43 : "#F01",
175
+ outsideColor: null !== (_46 = null === (_45 = null === (_44 = null == options ? void 0 : options.taskBar) || void 0 === _44 ? void 0 : _44.labelTextStyle) || void 0 === _45 ? void 0 : _45.outsideColor) && void 0 !== _46 ? _46 : "#333333",
176
+ textAlign: null !== (_49 = null === (_48 = null === (_47 = null == options ? void 0 : options.taskBar) || void 0 === _47 ? void 0 : _47.labelTextStyle) || void 0 === _48 ? void 0 : _48.textAlign) && void 0 !== _49 ? _49 : "left",
177
+ textBaseline: null !== (_52 = null === (_51 = null === (_50 = null == options ? void 0 : options.taskBar) || void 0 === _50 ? void 0 : _50.labelTextStyle) || void 0 === _51 ? void 0 : _51.textBaseline) && void 0 !== _52 ? _52 : "middle",
178
+ padding: null !== (_55 = null === (_54 = null === (_53 = null == options ? void 0 : options.taskBar) || void 0 === _53 ? void 0 : _53.labelTextStyle) || void 0 === _54 ? void 0 : _54.padding) && void 0 !== _55 ? _55 : [ 0, 0, 0, 10 ],
179
+ textOverflow: null === (_57 = null === (_56 = null == options ? void 0 : options.taskBar) || void 0 === _56 ? void 0 : _56.labelTextStyle) || void 0 === _57 ? void 0 : _57.textOverflow,
180
+ orient: null === (_59 = null === (_58 = null == options ? void 0 : options.taskBar) || void 0 === _58 ? void 0 : _58.labelTextStyle) || void 0 === _59 ? void 0 : _59.orient,
181
+ orientHandleWithOverflow: null === (_61 = null === (_60 = null == options ? void 0 : options.taskBar) || void 0 === _60 ? void 0 : _60.labelTextStyle) || void 0 === _61 ? void 0 : _61.orientHandleWithOverflow
182
+ }, gantt.parsedOptions.taskBarCustomLayout = null === (_62 = null == options ? void 0 : options.taskBar) || void 0 === _62 ? void 0 : _62.customLayout,
183
+ gantt.parsedOptions.taskBarCreatable = null !== (_64 = null === (_63 = null == options ? void 0 : options.taskBar) || void 0 === _63 ? void 0 : _63.scheduleCreatable) && void 0 !== _64 ? _64 : !(gantt.parsedOptions.tasksShowMode !== TasksShowMode.Sub_Tasks_Separate && gantt.parsedOptions.tasksShowMode !== TasksShowMode.Tasks_Separate),
172
184
  gantt.parsedOptions.taskBarCreationButtonStyle = Object.assign({
173
185
  lineColor: "rgb(99, 144, 0)",
174
186
  lineWidth: 1,
175
187
  lineDash: [ 5, 5 ],
176
188
  cornerRadius: 4,
177
189
  backgroundColor: "#FFF"
178
- }, null === (_57 = null === (_56 = null == options ? void 0 : options.taskBar) || void 0 === _56 ? void 0 : _56.scheduleCreation) || void 0 === _57 ? void 0 : _57.buttonStyle),
179
- gantt.parsedOptions.taskBarCreationCustomLayout = null === (_59 = null === (_58 = null == options ? void 0 : options.taskBar) || void 0 === _58 ? void 0 : _58.scheduleCreation) || void 0 === _59 ? void 0 : _59.customLayout,
180
- gantt.parsedOptions.taskBarCreationMaxWidth = null === (_61 = null === (_60 = null == options ? void 0 : options.taskBar) || void 0 === _60 ? void 0 : _60.scheduleCreation) || void 0 === _61 ? void 0 : _61.maxWidth,
181
- gantt.parsedOptions.taskBarCreationMinWidth = null === (_63 = null === (_62 = null == options ? void 0 : options.taskBar) || void 0 === _62 ? void 0 : _62.scheduleCreation) || void 0 === _63 ? void 0 : _63.minWidth,
190
+ }, null === (_66 = null === (_65 = null == options ? void 0 : options.taskBar) || void 0 === _65 ? void 0 : _65.scheduleCreation) || void 0 === _66 ? void 0 : _66.buttonStyle),
191
+ gantt.parsedOptions.taskBarCreationCustomLayout = null === (_68 = null === (_67 = null == options ? void 0 : options.taskBar) || void 0 === _67 ? void 0 : _67.scheduleCreation) || void 0 === _68 ? void 0 : _68.customLayout,
192
+ gantt.parsedOptions.taskBarCreationMaxWidth = null === (_70 = null === (_69 = null == options ? void 0 : options.taskBar) || void 0 === _69 ? void 0 : _69.scheduleCreation) || void 0 === _70 ? void 0 : _70.maxWidth,
193
+ gantt.parsedOptions.taskBarCreationMinWidth = null === (_72 = null === (_71 = null == options ? void 0 : options.taskBar) || void 0 === _71 ? void 0 : _71.scheduleCreation) || void 0 === _72 ? void 0 : _72.minWidth,
182
194
  gantt.parsedOptions.outerFrameStyle = Object.assign({
183
195
  borderColor: "#e1e4e8",
184
196
  borderLineWidth: 1,
185
197
  cornerRadius: 4
186
- }, null === (_64 = options.frame) || void 0 === _64 ? void 0 : _64.outerFrameStyle),
198
+ }, null === (_73 = options.frame) || void 0 === _73 ? void 0 : _73.outerFrameStyle),
187
199
  gantt.parsedOptions.markLine = generateMarkLine(null == options ? void 0 : options.markLine),
188
- null !== (_66 = null === (_65 = gantt.parsedOptions.markLine) || void 0 === _65 ? void 0 : _65.length) && void 0 !== _66 && _66 && ((null === (_67 = gantt.parsedOptions.markLine) || void 0 === _67 ? void 0 : _67.every((item => void 0 === item.scrollToMarkLine))) && (gantt.parsedOptions.markLine[0].scrollToMarkLine = !0),
189
- (null === (_68 = gantt.parsedOptions.markLine) || void 0 === _68 ? void 0 : _68.find((item => item.scrollToMarkLine))) && (gantt.parsedOptions.scrollToMarkLineDate = getStartDateByTimeUnit(new Date(null === (_69 = gantt.parsedOptions.markLine) || void 0 === _69 ? void 0 : _69.find((item => item.scrollToMarkLine)).date), minTimeUnit, startOfWeek))),
190
- gantt.parsedOptions.verticalSplitLineHighlight = null === (_70 = options.frame) || void 0 === _70 ? void 0 : _70.verticalSplitLineHighlight,
200
+ null !== (_75 = null === (_74 = gantt.parsedOptions.markLine) || void 0 === _74 ? void 0 : _74.length) && void 0 !== _75 && _75 && ((null === (_76 = gantt.parsedOptions.markLine) || void 0 === _76 ? void 0 : _76.every((item => void 0 === item.scrollToMarkLine))) && (gantt.parsedOptions.markLine[0].scrollToMarkLine = !0),
201
+ (null === (_77 = gantt.parsedOptions.markLine) || void 0 === _77 ? void 0 : _77.find((item => item.scrollToMarkLine))) && (gantt.parsedOptions.scrollToMarkLineDate = getStartDateByTimeUnit(new Date(null === (_78 = gantt.parsedOptions.markLine) || void 0 === _78 ? void 0 : _78.find((item => item.scrollToMarkLine)).date), minTimeUnit, startOfWeek))),
202
+ gantt.parsedOptions.verticalSplitLineHighlight = null === (_79 = options.frame) || void 0 === _79 ? void 0 : _79.verticalSplitLineHighlight,
191
203
  gantt.parsedOptions.verticalSplitLine = Object.assign({
192
- lineColor: null === (_71 = gantt.parsedOptions.outerFrameStyle) || void 0 === _71 ? void 0 : _71.borderColor,
193
- lineWidth: null === (_72 = gantt.parsedOptions.outerFrameStyle) || void 0 === _72 ? void 0 : _72.borderLineWidth
194
- }, null === (_73 = options.frame) || void 0 === _73 ? void 0 : _73.verticalSplitLine),
195
- gantt.parsedOptions.horizontalSplitLine = null === (_74 = options.frame) || void 0 === _74 ? void 0 : _74.horizontalSplitLine,
196
- gantt.parsedOptions.verticalSplitLineMoveable = null === (_75 = options.frame) || void 0 === _75 ? void 0 : _75.verticalSplitLineMoveable,
197
- gantt.parsedOptions.taskKeyField = null !== (_76 = options.taskKeyField) && void 0 !== _76 ? _76 : "id",
198
- gantt.parsedOptions.dependencyLinks = null !== (_78 = null === (_77 = options.dependency) || void 0 === _77 ? void 0 : _77.links) && void 0 !== _78 ? _78 : [],
199
- gantt.parsedOptions.dependencyLinkCreatable = null !== (_80 = null === (_79 = options.dependency) || void 0 === _79 ? void 0 : _79.linkCreatable) && void 0 !== _80 && _80,
200
- gantt.parsedOptions.dependencyLinkSelectable = null === (_82 = null === (_81 = options.dependency) || void 0 === _81 ? void 0 : _81.linkSelectable) || void 0 === _82 || _82,
201
- gantt.parsedOptions.dependencyLinkDeletable = null !== (_84 = null === (_83 = options.dependency) || void 0 === _83 ? void 0 : _83.linkDeletable) && void 0 !== _84 && _84,
204
+ lineColor: null === (_80 = gantt.parsedOptions.outerFrameStyle) || void 0 === _80 ? void 0 : _80.borderColor,
205
+ lineWidth: null === (_81 = gantt.parsedOptions.outerFrameStyle) || void 0 === _81 ? void 0 : _81.borderLineWidth
206
+ }, null === (_82 = options.frame) || void 0 === _82 ? void 0 : _82.verticalSplitLine),
207
+ gantt.parsedOptions.horizontalSplitLine = null === (_83 = options.frame) || void 0 === _83 ? void 0 : _83.horizontalSplitLine,
208
+ gantt.parsedOptions.verticalSplitLineMoveable = null === (_84 = options.frame) || void 0 === _84 ? void 0 : _84.verticalSplitLineMoveable,
209
+ gantt.parsedOptions.taskKeyField = null !== (_85 = options.taskKeyField) && void 0 !== _85 ? _85 : "id",
210
+ gantt.parsedOptions.dependencyLinks = null !== (_87 = null === (_86 = options.dependency) || void 0 === _86 ? void 0 : _86.links) && void 0 !== _87 ? _87 : [],
211
+ gantt.parsedOptions.dependencyLinkCreatable = null !== (_89 = null === (_88 = options.dependency) || void 0 === _88 ? void 0 : _88.linkCreatable) && void 0 !== _89 && _89,
212
+ gantt.parsedOptions.dependencyLinkSelectable = null === (_91 = null === (_90 = options.dependency) || void 0 === _90 ? void 0 : _90.linkSelectable) || void 0 === _91 || _91,
213
+ gantt.parsedOptions.dependencyLinkDeletable = null !== (_93 = null === (_92 = options.dependency) || void 0 === _92 ? void 0 : _92.linkDeletable) && void 0 !== _93 && _93,
202
214
  gantt.parsedOptions.dependencyLinkLineStyle = Object.assign({
203
215
  lineColor: "red",
204
216
  lineWidth: 1
205
- }, null === (_85 = options.dependency) || void 0 === _85 ? void 0 : _85.linkLineStyle),
217
+ }, null === (_94 = options.dependency) || void 0 === _94 ? void 0 : _94.linkLineStyle),
206
218
  gantt.parsedOptions.dependencyLinkSelectedLineStyle = Object.assign({
207
219
  shadowBlur: 4,
208
220
  shadowOffset: 0,
209
221
  shadowColor: gantt.parsedOptions.dependencyLinkLineStyle.lineColor,
210
222
  lineColor: gantt.parsedOptions.dependencyLinkLineStyle.lineColor,
211
223
  lineWidth: gantt.parsedOptions.dependencyLinkLineStyle.lineWidth
212
- }, null === (_86 = null == options ? void 0 : options.dependency) || void 0 === _86 ? void 0 : _86.linkSelectedLineStyle),
224
+ }, null === (_95 = null == options ? void 0 : options.dependency) || void 0 === _95 ? void 0 : _95.linkSelectedLineStyle),
213
225
  gantt.parsedOptions.dependencyLinkLineCreatePointStyle = Object.assign({
214
226
  strokeColor: "red",
215
227
  fillColor: "white",
216
228
  radius: 5,
217
229
  strokeWidth: 1
218
- }, null === (_87 = null == options ? void 0 : options.dependency) || void 0 === _87 ? void 0 : _87.linkCreatePointStyle),
230
+ }, null === (_96 = null == options ? void 0 : options.dependency) || void 0 === _96 ? void 0 : _96.linkCreatePointStyle),
219
231
  gantt.parsedOptions.dependencyLinkLineCreatingPointStyle = Object.assign({
220
232
  strokeColor: "red",
221
233
  fillColor: "red",
222
234
  radius: 5,
223
235
  strokeWidth: 1
224
- }, null === (_88 = null == options ? void 0 : options.dependency) || void 0 === _88 ? void 0 : _88.linkCreatingPointStyle),
236
+ }, null === (_97 = null == options ? void 0 : options.dependency) || void 0 === _97 ? void 0 : _97.linkCreatingPointStyle),
225
237
  gantt.parsedOptions.dependencyLinkLineCreatingStyle = Object.assign({
226
238
  lineColor: "red",
227
239
  lineWidth: 1,
228
240
  lineDash: [ 5, 5 ]
229
- }, null === (_89 = null == options ? void 0 : options.dependency) || void 0 === _89 ? void 0 : _89.linkCreatingLineStyle),
230
- gantt.parsedOptions.dependencyLinkDistanceToTaskBar = null !== (_91 = null === (_90 = null == options ? void 0 : options.dependency) || void 0 === _90 ? void 0 : _90.distanceToTaskBar) && void 0 !== _91 ? _91 : 20,
241
+ }, null === (_98 = null == options ? void 0 : options.dependency) || void 0 === _98 ? void 0 : _98.linkCreatingLineStyle),
242
+ gantt.parsedOptions.dependencyLinkDistanceToTaskBar = null !== (_100 = null === (_99 = null == options ? void 0 : options.dependency) || void 0 === _99 ? void 0 : _99.distanceToTaskBar) && void 0 !== _100 ? _100 : 20,
231
243
  gantt.parsedOptions.eventOptions = null == options ? void 0 : options.eventOptions,
232
244
  gantt.parsedOptions.keyboardOptions = null == options ? void 0 : options.keyboardOptions,
233
245
  gantt.parsedOptions.markLineCreateOptions = null == options ? void 0 : options.markLineCreateOptions;