gantt-task-react-v 1.5.20 → 1.5.21
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/gantt-task-react.es.js +31 -52
- package/dist/gantt-task-react.umd.js +31 -52
- package/package.json +1 -1
|
@@ -10224,7 +10224,9 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10224
10224
|
if (task.type !== "empty") {
|
|
10225
10225
|
scrollToTask(task);
|
|
10226
10226
|
}
|
|
10227
|
-
|
|
10227
|
+
if (event.detail < 2) {
|
|
10228
|
+
selectTaskOnMouseDown(task.id, event);
|
|
10229
|
+
}
|
|
10228
10230
|
if (onClick) {
|
|
10229
10231
|
onClick(task);
|
|
10230
10232
|
}
|
|
@@ -19559,12 +19561,12 @@ const GanttDrawerInner = ({
|
|
|
19559
19561
|
)
|
|
19560
19562
|
] }),
|
|
19561
19563
|
/* @__PURE__ */ jsxs("div", { className: styles.body, children: [
|
|
19562
|
-
data && onGoToTask && /* @__PURE__ */
|
|
19563
|
-
|
|
19564
|
+
data && onGoToTask && /* @__PURE__ */ jsx("div", { className: styles.goToTaskBar, children: data.type === "arrow" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
19565
|
+
/* @__PURE__ */ jsxs(
|
|
19564
19566
|
"button",
|
|
19565
19567
|
{
|
|
19566
19568
|
className: styles.goToTaskButton,
|
|
19567
|
-
onClick: () => onGoToTask(data.
|
|
19569
|
+
onClick: () => onGoToTask(data.taskFrom.id),
|
|
19568
19570
|
type: "button",
|
|
19569
19571
|
children: [
|
|
19570
19572
|
/* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsx(
|
|
@@ -19577,57 +19579,34 @@ const GanttDrawerInner = ({
|
|
|
19577
19579
|
strokeLinejoin: "round"
|
|
19578
19580
|
}
|
|
19579
19581
|
) }),
|
|
19580
|
-
"Go to
|
|
19582
|
+
"Go to ",
|
|
19583
|
+
data.taskFrom.name
|
|
19581
19584
|
]
|
|
19582
19585
|
}
|
|
19583
19586
|
),
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
|
|
19591
|
-
children:
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
|
|
19595
|
-
|
|
19596
|
-
|
|
19597
|
-
|
|
19598
|
-
|
|
19599
|
-
|
|
19600
|
-
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
/* @__PURE__ */ jsxs(
|
|
19608
|
-
"button",
|
|
19609
|
-
{
|
|
19610
|
-
className: styles.goToTaskButton,
|
|
19611
|
-
onClick: () => onGoToTask(data.taskTo.id),
|
|
19612
|
-
type: "button",
|
|
19613
|
-
children: [
|
|
19614
|
-
/* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsx(
|
|
19615
|
-
"path",
|
|
19616
|
-
{
|
|
19617
|
-
d: "M2 7h10M8 3l4 4-4 4",
|
|
19618
|
-
stroke: "currentColor",
|
|
19619
|
-
strokeWidth: "1.5",
|
|
19620
|
-
strokeLinecap: "round",
|
|
19621
|
-
strokeLinejoin: "round"
|
|
19622
|
-
}
|
|
19623
|
-
) }),
|
|
19624
|
-
"Go to ",
|
|
19625
|
-
data.taskTo.name
|
|
19626
|
-
]
|
|
19627
|
-
}
|
|
19628
|
-
)
|
|
19629
|
-
] })
|
|
19630
|
-
] }),
|
|
19587
|
+
/* @__PURE__ */ jsxs(
|
|
19588
|
+
"button",
|
|
19589
|
+
{
|
|
19590
|
+
className: styles.goToTaskButton,
|
|
19591
|
+
onClick: () => onGoToTask(data.taskTo.id),
|
|
19592
|
+
type: "button",
|
|
19593
|
+
children: [
|
|
19594
|
+
/* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsx(
|
|
19595
|
+
"path",
|
|
19596
|
+
{
|
|
19597
|
+
d: "M2 7h10M8 3l4 4-4 4",
|
|
19598
|
+
stroke: "currentColor",
|
|
19599
|
+
strokeWidth: "1.5",
|
|
19600
|
+
strokeLinecap: "round",
|
|
19601
|
+
strokeLinejoin: "round"
|
|
19602
|
+
}
|
|
19603
|
+
) }),
|
|
19604
|
+
"Go to ",
|
|
19605
|
+
data.taskTo.name
|
|
19606
|
+
]
|
|
19607
|
+
}
|
|
19608
|
+
)
|
|
19609
|
+
] }) }),
|
|
19631
19610
|
data && renderContent ? renderContent(data) : null
|
|
19632
19611
|
] })
|
|
19633
19612
|
]
|
|
@@ -10241,7 +10241,9 @@
|
|
|
10241
10241
|
if (task.type !== "empty") {
|
|
10242
10242
|
scrollToTask(task);
|
|
10243
10243
|
}
|
|
10244
|
-
|
|
10244
|
+
if (event.detail < 2) {
|
|
10245
|
+
selectTaskOnMouseDown(task.id, event);
|
|
10246
|
+
}
|
|
10245
10247
|
if (onClick) {
|
|
10246
10248
|
onClick(task);
|
|
10247
10249
|
}
|
|
@@ -19576,12 +19578,12 @@
|
|
|
19576
19578
|
)
|
|
19577
19579
|
] }),
|
|
19578
19580
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.body, children: [
|
|
19579
|
-
data && onGoToTask && /* @__PURE__ */ jsxRuntime.
|
|
19580
|
-
|
|
19581
|
+
data && onGoToTask && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.goToTaskBar, children: data.type === "arrow" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19582
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19581
19583
|
"button",
|
|
19582
19584
|
{
|
|
19583
19585
|
className: styles.goToTaskButton,
|
|
19584
|
-
onClick: () => onGoToTask(data.
|
|
19586
|
+
onClick: () => onGoToTask(data.taskFrom.id),
|
|
19585
19587
|
type: "button",
|
|
19586
19588
|
children: [
|
|
19587
19589
|
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -19594,57 +19596,34 @@
|
|
|
19594
19596
|
strokeLinejoin: "round"
|
|
19595
19597
|
}
|
|
19596
19598
|
) }),
|
|
19597
|
-
"Go to
|
|
19599
|
+
"Go to ",
|
|
19600
|
+
data.taskFrom.name
|
|
19598
19601
|
]
|
|
19599
19602
|
}
|
|
19600
19603
|
),
|
|
19601
|
-
|
|
19602
|
-
|
|
19603
|
-
|
|
19604
|
-
|
|
19605
|
-
|
|
19606
|
-
|
|
19607
|
-
|
|
19608
|
-
children:
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19619
|
-
|
|
19620
|
-
|
|
19621
|
-
|
|
19622
|
-
|
|
19623
|
-
|
|
19624
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19625
|
-
"button",
|
|
19626
|
-
{
|
|
19627
|
-
className: styles.goToTaskButton,
|
|
19628
|
-
onClick: () => onGoToTask(data.taskTo.id),
|
|
19629
|
-
type: "button",
|
|
19630
|
-
children: [
|
|
19631
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19632
|
-
"path",
|
|
19633
|
-
{
|
|
19634
|
-
d: "M2 7h10M8 3l4 4-4 4",
|
|
19635
|
-
stroke: "currentColor",
|
|
19636
|
-
strokeWidth: "1.5",
|
|
19637
|
-
strokeLinecap: "round",
|
|
19638
|
-
strokeLinejoin: "round"
|
|
19639
|
-
}
|
|
19640
|
-
) }),
|
|
19641
|
-
"Go to ",
|
|
19642
|
-
data.taskTo.name
|
|
19643
|
-
]
|
|
19644
|
-
}
|
|
19645
|
-
)
|
|
19646
|
-
] })
|
|
19647
|
-
] }),
|
|
19604
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19605
|
+
"button",
|
|
19606
|
+
{
|
|
19607
|
+
className: styles.goToTaskButton,
|
|
19608
|
+
onClick: () => onGoToTask(data.taskTo.id),
|
|
19609
|
+
type: "button",
|
|
19610
|
+
children: [
|
|
19611
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19612
|
+
"path",
|
|
19613
|
+
{
|
|
19614
|
+
d: "M2 7h10M8 3l4 4-4 4",
|
|
19615
|
+
stroke: "currentColor",
|
|
19616
|
+
strokeWidth: "1.5",
|
|
19617
|
+
strokeLinecap: "round",
|
|
19618
|
+
strokeLinejoin: "round"
|
|
19619
|
+
}
|
|
19620
|
+
) }),
|
|
19621
|
+
"Go to ",
|
|
19622
|
+
data.taskTo.name
|
|
19623
|
+
]
|
|
19624
|
+
}
|
|
19625
|
+
)
|
|
19626
|
+
] }) }),
|
|
19648
19627
|
data && renderContent ? renderContent(data) : null
|
|
19649
19628
|
] })
|
|
19650
19629
|
]
|
package/package.json
CHANGED