@visactor/vtable-gantt 1.23.2 → 1.23.3

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