gantt-task-react-powern 0.4.8 → 0.4.10
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/dist/index.css +7 -0
- package/dist/index.js +13 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -288,7 +288,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
288
288
|
minWidth: parseInt(rowWidth) / 2,
|
|
289
289
|
maxWidth: parseInt(rowWidth) / 2
|
|
290
290
|
}
|
|
291
|
-
}, "\
|
|
291
|
+
}, "\xA0WBS"), React.createElement("div", {
|
|
292
292
|
className: styles.ganttTable_HeaderSeparator,
|
|
293
293
|
style: {
|
|
294
294
|
height: headerHeight * 0.5,
|
|
@@ -325,7 +325,7 @@ var TaskListHeaderDefault = function TaskListHeaderDefault(_ref) {
|
|
|
325
325
|
}, "\xA0Finish")));
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListEmptyExpander":"_2TfEi"};
|
|
328
|
+
var styles$1 = {"taskListWrapper":"_3ZbQT","taskListTableRow":"_34SS0","taskListCell":"_3lLk3","taskListNameWrapper":"_nI1Xw","taskListExpander":"_2QjE6","taskListEmptyExpander":"_2TfEi","taskListText":"_2ZvXU"};
|
|
329
329
|
|
|
330
330
|
var localeDateStringCache = {};
|
|
331
331
|
|
|
@@ -393,41 +393,39 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
|
|
|
393
393
|
},
|
|
394
394
|
title: t.id
|
|
395
395
|
}, React.createElement("div", {
|
|
396
|
-
className: styles$1.taskListNameWrapper
|
|
397
|
-
style: {
|
|
398
|
-
minWidth: parseInt(rowWidth) / 2,
|
|
399
|
-
maxWidth: parseInt(rowWidth) / 2
|
|
400
|
-
}
|
|
396
|
+
className: styles$1.taskListNameWrapper
|
|
401
397
|
}, React.createElement("div", {
|
|
402
398
|
className: styles$1.taskListExpander,
|
|
403
399
|
onClick: function onClick() {
|
|
404
400
|
return onExpanderClick(t);
|
|
405
401
|
}
|
|
406
|
-
}, expanderSymbol), React.createElement("div",
|
|
402
|
+
}, expanderSymbol), React.createElement("div", {
|
|
403
|
+
className: styles$1.taskListText
|
|
404
|
+
}, t.id))), React.createElement("div", {
|
|
407
405
|
className: styles$1.taskListCell,
|
|
408
406
|
style: {
|
|
409
407
|
minWidth: parseInt(rowWidth) * 1.5,
|
|
410
408
|
maxWidth: parseInt(rowWidth) * 1.5
|
|
411
409
|
}
|
|
412
410
|
}, React.createElement("div", {
|
|
413
|
-
|
|
414
|
-
minWidth: parseInt(rowWidth) * 1.3,
|
|
415
|
-
maxWidth: parseInt(rowWidth) * 1.3,
|
|
416
|
-
overflow: "hidden"
|
|
417
|
-
}
|
|
411
|
+
className: styles$1.taskListText
|
|
418
412
|
}, taskLabelRenderer(t))), React.createElement("div", {
|
|
419
413
|
className: styles$1.taskListCell,
|
|
420
414
|
style: {
|
|
421
415
|
minWidth: rowWidth,
|
|
422
416
|
maxWidth: rowWidth
|
|
423
417
|
}
|
|
424
|
-
},
|
|
418
|
+
}, React.createElement("div", {
|
|
419
|
+
className: styles$1.taskListText
|
|
420
|
+
}, "\xA0", toLocaleDateString(t.start, dateTimeOptions))), React.createElement("div", {
|
|
425
421
|
className: styles$1.taskListCell,
|
|
426
422
|
style: {
|
|
427
423
|
minWidth: rowWidth,
|
|
428
424
|
maxWidth: rowWidth
|
|
429
425
|
}
|
|
430
|
-
}, "
|
|
426
|
+
}, React.createElement("div", {
|
|
427
|
+
className: styles$1.taskListText
|
|
428
|
+
}, "\xA0", toLocaleDateString(t.end, dateTimeOptions))));
|
|
431
429
|
}));
|
|
432
430
|
};
|
|
433
431
|
|
|
@@ -1276,11 +1274,9 @@ var convertToMilestone = function convertToMilestone(task, index, dates, columnW
|
|
|
1276
1274
|
};
|
|
1277
1275
|
|
|
1278
1276
|
var taskXCoordinate = function taskXCoordinate(xDate, dates, columnWidth) {
|
|
1279
|
-
console.log(dates);
|
|
1280
1277
|
var index = dates.findIndex(function (d) {
|
|
1281
1278
|
return d.getTime() >= xDate.getTime();
|
|
1282
1279
|
}) - 1;
|
|
1283
|
-
console.log(index);
|
|
1284
1280
|
var remainderMillis = xDate.getTime() - dates[index].getTime();
|
|
1285
1281
|
var percentOfInterval = remainderMillis / (dates[index + 1].getTime() - dates[index].getTime());
|
|
1286
1282
|
var x = index * columnWidth + percentOfInterval * columnWidth;
|
|
@@ -2520,7 +2516,6 @@ var Gantt = function Gantt(_ref) {
|
|
|
2520
2516
|
setIgnoreScrollEvent(true);
|
|
2521
2517
|
};
|
|
2522
2518
|
|
|
2523
|
-
console.log(scrollX, scrollY);
|
|
2524
2519
|
(_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.addEventListener("wheel", handleWheel, {
|
|
2525
2520
|
passive: false
|
|
2526
2521
|
});
|