@thebuoyant-tsdev/mui-ts-library 3.15.0 → 3.17.0
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/README.de.md +56 -0
- package/README.md +56 -0
- package/dist/components/gantt-chart/GanttChart.d.ts +1 -1
- package/dist/components/gantt-chart/GanttChart.js +36 -33
- package/dist/components/gantt-chart/GanttChart.store.d.ts +2 -0
- package/dist/components/gantt-chart/GanttChart.store.js +3 -0
- package/dist/components/gantt-chart/GanttChart.types.d.ts +15 -0
- package/dist/components/gantt-chart/GanttChart.types.js +3 -0
- package/dist/components/gantt-chart/GanttTaskDialog.js +170 -124
- package/dist/components/gantt-chart/GanttTaskPanel.js +131 -124
- package/dist/components/gantt-chart/GanttTimeline.d.ts +2 -1
- package/dist/components/gantt-chart/GanttTimeline.js +99 -91
- package/dist/components/gantt-chart/GanttToolbar.js +155 -131
- package/dist/components/gantt-chart/hooks/useGanttDrag.d.ts +2 -1
- package/dist/components/gantt-chart/hooks/useGanttDrag.js +35 -35
- package/dist/components/gantt-chart/util/gantt-chart.util.d.ts +5 -0
- package/dist/components/gantt-chart/util/gantt-chart.util.js +36 -30
- package/dist/index.cjs +2 -2
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { getDependencyCycleCandidates as e } from "./util/gantt-chart.util.js";
|
|
2
2
|
import { useGanttChartStore as t, useGanttTranslations as n } from "./GanttChart.js";
|
|
3
3
|
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
|
-
import { Box as s, Button as c, Checkbox as l, Dialog as u, DialogActions as d, DialogContent as f, DialogTitle as p, FormControl as m, FormControlLabel as h, InputLabel as g, MenuItem as _, Select as v,
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { Box as s, Button as c, Checkbox as l, Dialog as u, DialogActions as d, DialogContent as f, DialogTitle as p, FormControl as m, FormControlLabel as h, InputLabel as g, MenuItem as _, Select as v, Slider as y, TextField as b, Tooltip as x, Typography as S } from "@mui/material";
|
|
5
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/gantt-chart/GanttTaskDialog.tsx
|
|
7
|
-
function
|
|
7
|
+
function T(e) {
|
|
8
8
|
return e.toISOString().slice(0, 10);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function E(e, t, n) {
|
|
11
11
|
return e < t ? t : e > n ? n : e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return e.flatMap((e) => [e, ...
|
|
13
|
+
function D(e) {
|
|
14
|
+
return e.flatMap((e) => [e, ...D(e.children)]);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function O({ label: e }) {
|
|
17
17
|
let t = a(null), [n, r] = o(!1);
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ C(x, {
|
|
19
19
|
title: e,
|
|
20
20
|
disableHoverListener: !n,
|
|
21
|
-
children: /* @__PURE__ */ S
|
|
21
|
+
children: /* @__PURE__ */ C(S, {
|
|
22
22
|
ref: t,
|
|
23
23
|
component: "span",
|
|
24
24
|
variant: "body2",
|
|
@@ -36,106 +36,111 @@ function D({ label: e }) {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
let
|
|
41
|
-
if (
|
|
42
|
-
let e = (t) => [t.id, ...t.children.flatMap(e)], t =
|
|
43
|
-
return new Set(t ? e(t) : [
|
|
39
|
+
function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, onClose: M }) {
|
|
40
|
+
let N = n(), P = t((e) => e.taskTree), F = t((e) => e.timelineRange), I = i(() => D(P), [P]), L = i(() => {
|
|
41
|
+
if (x === "add" || !k) return /* @__PURE__ */ new Set();
|
|
42
|
+
let e = (t) => [t.id, ...t.children.flatMap(e)], t = I.find((e) => e.id === k.id);
|
|
43
|
+
return new Set(t ? e(t) : [k.id]);
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
]),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]),
|
|
45
|
+
x,
|
|
46
|
+
k,
|
|
47
|
+
I
|
|
48
|
+
]), R = I.filter((e) => !L.has(e.id)), z = i(() => x === "add" || !k ? /* @__PURE__ */ new Set() : e(I, k.id), [
|
|
49
|
+
x,
|
|
50
|
+
k,
|
|
51
|
+
I
|
|
52
|
+
]), B = R.filter((e) => !z.has(e.id)), V = T(E(/* @__PURE__ */ new Date(), F.start, F.end)), [H, U] = o({
|
|
53
53
|
name: "",
|
|
54
|
-
startDate:
|
|
55
|
-
endDate:
|
|
54
|
+
startDate: V,
|
|
55
|
+
endDate: V,
|
|
56
56
|
status: "planned",
|
|
57
57
|
isMilestone: !1,
|
|
58
|
+
progress: 0,
|
|
58
59
|
parentId: "",
|
|
59
60
|
dependencies: [],
|
|
60
61
|
assignee: ""
|
|
61
62
|
});
|
|
62
63
|
r(() => {
|
|
63
64
|
if (!a) return;
|
|
64
|
-
let e =
|
|
65
|
-
|
|
66
|
-
name:
|
|
67
|
-
startDate:
|
|
68
|
-
endDate:
|
|
69
|
-
status:
|
|
70
|
-
isMilestone:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
let e = T(E(/* @__PURE__ */ new Date(), F.start, F.end));
|
|
66
|
+
U(x === "edit" && k ? {
|
|
67
|
+
name: k.name,
|
|
68
|
+
startDate: T(k.startDate),
|
|
69
|
+
endDate: T(k.endDate),
|
|
70
|
+
status: k.status,
|
|
71
|
+
isMilestone: k.isMilestone ?? !1,
|
|
72
|
+
progress: k.progress ?? 0,
|
|
73
|
+
parentId: k.parentId ?? "",
|
|
74
|
+
dependencies: k.dependencies ?? [],
|
|
75
|
+
assignee: k.assignee ?? ""
|
|
74
76
|
} : {
|
|
75
77
|
name: "",
|
|
76
78
|
startDate: e,
|
|
77
79
|
endDate: e,
|
|
78
80
|
status: "planned",
|
|
79
81
|
isMilestone: !1,
|
|
80
|
-
|
|
82
|
+
progress: 0,
|
|
83
|
+
parentId: A ?? "",
|
|
81
84
|
dependencies: [],
|
|
82
85
|
assignee: ""
|
|
83
86
|
});
|
|
84
87
|
}, [
|
|
85
88
|
a,
|
|
86
|
-
|
|
87
|
-
O,
|
|
89
|
+
x,
|
|
88
90
|
k,
|
|
89
|
-
|
|
91
|
+
A,
|
|
92
|
+
F
|
|
90
93
|
]);
|
|
91
|
-
let
|
|
92
|
-
|
|
94
|
+
let W = (e) => {
|
|
95
|
+
U((t) => ({
|
|
93
96
|
...t,
|
|
94
97
|
startDate: e,
|
|
95
98
|
endDate: t.isMilestone || t.endDate < e ? e : t.endDate
|
|
96
99
|
}));
|
|
97
|
-
},
|
|
98
|
-
|
|
100
|
+
}, G = (e) => {
|
|
101
|
+
U((t) => ({
|
|
99
102
|
...t,
|
|
100
103
|
endDate: e < t.startDate ? t.startDate : e
|
|
101
104
|
}));
|
|
102
|
-
},
|
|
103
|
-
|
|
105
|
+
}, K = (e) => {
|
|
106
|
+
U((t) => ({
|
|
104
107
|
...t,
|
|
105
108
|
isMilestone: e,
|
|
106
|
-
endDate: e ? t.startDate : t.endDate
|
|
109
|
+
endDate: e ? t.startDate : t.endDate,
|
|
110
|
+
progress: e ? 0 : t.progress
|
|
107
111
|
}));
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
name:
|
|
111
|
-
startDate: new Date(
|
|
112
|
-
endDate: new Date(
|
|
113
|
-
status:
|
|
114
|
-
isMilestone:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
}, q = H.name.trim() !== "" && H.startDate !== "" && H.endDate !== "" && H.endDate >= H.startDate, J = () => {
|
|
113
|
+
q && j({
|
|
114
|
+
name: H.name.trim(),
|
|
115
|
+
startDate: new Date(H.startDate),
|
|
116
|
+
endDate: new Date(H.endDate),
|
|
117
|
+
status: H.status,
|
|
118
|
+
isMilestone: H.isMilestone || void 0,
|
|
119
|
+
progress: H.progress > 0 ? H.progress : void 0,
|
|
120
|
+
parentId: H.parentId || void 0,
|
|
121
|
+
dependencies: H.dependencies.length > 0 ? H.dependencies : void 0,
|
|
122
|
+
assignee: H.assignee.trim() || void 0
|
|
118
123
|
});
|
|
119
|
-
},
|
|
124
|
+
}, Y = [
|
|
120
125
|
"planned",
|
|
121
126
|
"in-progress",
|
|
122
127
|
"done",
|
|
123
128
|
"blocked"
|
|
124
|
-
],
|
|
125
|
-
planned:
|
|
126
|
-
"in-progress":
|
|
127
|
-
done:
|
|
128
|
-
blocked:
|
|
129
|
+
], X = {
|
|
130
|
+
planned: N.statusPlanned,
|
|
131
|
+
"in-progress": N.statusInProgress,
|
|
132
|
+
done: N.statusDone,
|
|
133
|
+
blocked: N.statusBlocked
|
|
129
134
|
};
|
|
130
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ w(u, {
|
|
131
136
|
open: a,
|
|
132
|
-
onClose:
|
|
137
|
+
onClose: M,
|
|
133
138
|
maxWidth: "xs",
|
|
134
139
|
fullWidth: !0,
|
|
135
140
|
"data-testid": "gantt-task-dialog",
|
|
136
141
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ C(p, { children: x === "add" ? N.dialogAddTitle : N.dialogEditTitle }),
|
|
143
|
+
/* @__PURE__ */ w(f, {
|
|
139
144
|
sx: {
|
|
140
145
|
display: "flex",
|
|
141
146
|
flexDirection: "column",
|
|
@@ -143,10 +148,10 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
143
148
|
pt: "16px !important"
|
|
144
149
|
},
|
|
145
150
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
label:
|
|
148
|
-
value:
|
|
149
|
-
onChange: (e) =>
|
|
151
|
+
/* @__PURE__ */ C(b, {
|
|
152
|
+
label: N.dialogFieldName,
|
|
153
|
+
value: H.name,
|
|
154
|
+
onChange: (e) => U((t) => ({
|
|
150
155
|
...t,
|
|
151
156
|
name: e.target.value
|
|
152
157
|
})),
|
|
@@ -156,10 +161,10 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
156
161
|
autoFocus: !0,
|
|
157
162
|
slotProps: { htmlInput: { "data-testid": "gantt-dialog-field-name" } }
|
|
158
163
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
label:
|
|
161
|
-
value:
|
|
162
|
-
onChange: (e) =>
|
|
164
|
+
/* @__PURE__ */ C(b, {
|
|
165
|
+
label: N.columnAssignee,
|
|
166
|
+
value: H.assignee,
|
|
167
|
+
onChange: (e) => U((t) => ({
|
|
163
168
|
...t,
|
|
164
169
|
assignee: e.target.value
|
|
165
170
|
})),
|
|
@@ -168,11 +173,11 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
168
173
|
placeholder: "e.g. Jane Smith",
|
|
169
174
|
slotProps: { htmlInput: { "data-testid": "gantt-dialog-field-assignee" } }
|
|
170
175
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
label:
|
|
176
|
+
/* @__PURE__ */ C(b, {
|
|
177
|
+
label: N.dialogFieldStartDate,
|
|
173
178
|
type: "date",
|
|
174
|
-
value:
|
|
175
|
-
onChange: (e) =>
|
|
179
|
+
value: H.startDate,
|
|
180
|
+
onChange: (e) => W(e.target.value),
|
|
176
181
|
required: !0,
|
|
177
182
|
fullWidth: !0,
|
|
178
183
|
size: "small",
|
|
@@ -181,68 +186,109 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
181
186
|
htmlInput: { "data-testid": "gantt-dialog-field-start" }
|
|
182
187
|
}
|
|
183
188
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
label:
|
|
189
|
+
/* @__PURE__ */ C(b, {
|
|
190
|
+
label: N.dialogFieldEndDate,
|
|
186
191
|
type: "date",
|
|
187
|
-
value:
|
|
188
|
-
onChange: (e) =>
|
|
192
|
+
value: H.endDate,
|
|
193
|
+
onChange: (e) => G(e.target.value),
|
|
189
194
|
required: !0,
|
|
190
195
|
fullWidth: !0,
|
|
191
196
|
size: "small",
|
|
192
|
-
disabled:
|
|
197
|
+
disabled: H.isMilestone,
|
|
193
198
|
slotProps: {
|
|
194
199
|
inputLabel: { shrink: !0 },
|
|
195
200
|
htmlInput: {
|
|
196
201
|
"data-testid": "gantt-dialog-field-end",
|
|
197
|
-
min:
|
|
202
|
+
min: H.startDate
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ w(m, {
|
|
202
207
|
size: "small",
|
|
203
208
|
fullWidth: !0,
|
|
204
|
-
children: [/* @__PURE__ */
|
|
205
|
-
value:
|
|
206
|
-
label:
|
|
207
|
-
onChange: (e) =>
|
|
209
|
+
children: [/* @__PURE__ */ C(g, { children: N.dialogFieldStatus }), /* @__PURE__ */ C(v, {
|
|
210
|
+
value: H.status,
|
|
211
|
+
label: N.dialogFieldStatus,
|
|
212
|
+
onChange: (e) => U((t) => ({
|
|
208
213
|
...t,
|
|
209
214
|
status: e.target.value
|
|
210
215
|
})),
|
|
211
216
|
inputProps: { "data-testid": "gantt-dialog-field-status" },
|
|
212
|
-
children:
|
|
217
|
+
children: Y.map((e) => /* @__PURE__ */ C(_, {
|
|
213
218
|
value: e,
|
|
214
|
-
children:
|
|
219
|
+
children: X[e]
|
|
215
220
|
}, e))
|
|
216
221
|
})]
|
|
217
222
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
/* @__PURE__ */ w(s, {
|
|
224
|
+
"data-testid": "gantt-dialog-field-progress-wrapper",
|
|
225
|
+
children: [/* @__PURE__ */ w(s, {
|
|
226
|
+
sx: {
|
|
227
|
+
display: "flex",
|
|
228
|
+
justifyContent: "space-between",
|
|
229
|
+
alignItems: "baseline",
|
|
230
|
+
mb: .25
|
|
231
|
+
},
|
|
232
|
+
children: [/* @__PURE__ */ C(S, {
|
|
233
|
+
variant: "caption",
|
|
234
|
+
color: H.isMilestone ? "text.disabled" : "text.secondary",
|
|
235
|
+
children: N.dialogFieldProgress ?? "Fortschritt (%)"
|
|
236
|
+
}), /* @__PURE__ */ w(S, {
|
|
237
|
+
variant: "caption",
|
|
238
|
+
sx: { fontWeight: 600 },
|
|
239
|
+
color: H.isMilestone ? "text.disabled" : "text.primary",
|
|
240
|
+
children: [H.progress, " %"]
|
|
241
|
+
})]
|
|
242
|
+
}), /* @__PURE__ */ C(y, {
|
|
243
|
+
value: H.progress,
|
|
244
|
+
onChange: (e, t) => U((e) => ({
|
|
245
|
+
...e,
|
|
246
|
+
progress: t
|
|
247
|
+
})),
|
|
248
|
+
min: 0,
|
|
249
|
+
max: 100,
|
|
250
|
+
step: 1,
|
|
251
|
+
disabled: H.isMilestone,
|
|
252
|
+
size: "small",
|
|
253
|
+
marks: [
|
|
254
|
+
{ value: 0 },
|
|
255
|
+
{ value: 25 },
|
|
256
|
+
{ value: 50 },
|
|
257
|
+
{ value: 75 },
|
|
258
|
+
{ value: 100 }
|
|
259
|
+
],
|
|
260
|
+
"aria-label": N.dialogFieldProgress ?? "Fortschritt (%)",
|
|
261
|
+
"data-testid": "gantt-dialog-field-progress"
|
|
262
|
+
})]
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ C(h, {
|
|
265
|
+
control: /* @__PURE__ */ C(l, {
|
|
266
|
+
checked: H.isMilestone,
|
|
267
|
+
onChange: (e) => K(e.target.checked),
|
|
222
268
|
size: "small",
|
|
223
269
|
"data-testid": "gantt-dialog-field-milestone"
|
|
224
270
|
}),
|
|
225
|
-
label:
|
|
271
|
+
label: N.dialogFieldMilestone
|
|
226
272
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ w(m, {
|
|
228
274
|
size: "small",
|
|
229
275
|
fullWidth: !0,
|
|
230
|
-
children: [/* @__PURE__ */
|
|
231
|
-
value:
|
|
232
|
-
label:
|
|
233
|
-
onChange: (e) =>
|
|
276
|
+
children: [/* @__PURE__ */ C(g, { children: N.dialogFieldParent }), /* @__PURE__ */ w(v, {
|
|
277
|
+
value: H.parentId,
|
|
278
|
+
label: N.dialogFieldParent,
|
|
279
|
+
onChange: (e) => U((t) => ({
|
|
234
280
|
...t,
|
|
235
281
|
parentId: e.target.value
|
|
236
282
|
})),
|
|
237
283
|
inputProps: { "data-testid": "gantt-dialog-field-parent" },
|
|
238
284
|
MenuProps: { slotProps: { paper: { sx: { maxHeight: 280 } } } },
|
|
239
|
-
children: [/* @__PURE__ */
|
|
285
|
+
children: [/* @__PURE__ */ C(_, {
|
|
240
286
|
value: "",
|
|
241
|
-
children:
|
|
242
|
-
}),
|
|
287
|
+
children: N.dialogFieldParentNone
|
|
288
|
+
}), R.map((e) => /* @__PURE__ */ C(_, {
|
|
243
289
|
value: e.id,
|
|
244
290
|
sx: { minWidth: 0 },
|
|
245
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ w(s, {
|
|
246
292
|
sx: {
|
|
247
293
|
display: "flex",
|
|
248
294
|
alignItems: "center",
|
|
@@ -252,7 +298,7 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
252
298
|
width: "100%",
|
|
253
299
|
overflow: "hidden"
|
|
254
300
|
},
|
|
255
|
-
children: [e.depth > 0 && /* @__PURE__ */ S
|
|
301
|
+
children: [e.depth > 0 && /* @__PURE__ */ C(S, {
|
|
256
302
|
component: "span",
|
|
257
303
|
variant: "caption",
|
|
258
304
|
sx: {
|
|
@@ -261,32 +307,32 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
261
307
|
flexShrink: 0
|
|
262
308
|
},
|
|
263
309
|
children: "└"
|
|
264
|
-
}), /* @__PURE__ */
|
|
310
|
+
}), /* @__PURE__ */ C(O, { label: e.name })]
|
|
265
311
|
})
|
|
266
312
|
}, e.id))]
|
|
267
313
|
})]
|
|
268
314
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ w(m, {
|
|
270
316
|
size: "small",
|
|
271
317
|
fullWidth: !0,
|
|
272
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ C(g, { children: N.dialogFieldDependencies }), /* @__PURE__ */ C(v, {
|
|
273
319
|
multiple: !0,
|
|
274
|
-
value:
|
|
275
|
-
label:
|
|
320
|
+
value: H.dependencies,
|
|
321
|
+
label: N.dialogFieldDependencies,
|
|
276
322
|
onChange: (e) => {
|
|
277
323
|
let t = e.target.value;
|
|
278
|
-
|
|
324
|
+
U((e) => ({
|
|
279
325
|
...e,
|
|
280
326
|
dependencies: typeof t == "string" ? t.split(",") : t
|
|
281
327
|
}));
|
|
282
328
|
},
|
|
283
329
|
inputProps: { "data-testid": "gantt-dialog-field-dependencies" },
|
|
284
|
-
renderValue: (e) => e.length === 0 ?
|
|
330
|
+
renderValue: (e) => e.length === 0 ? N.dialogFieldDependenciesNone : e.map((e) => I.find((t) => t.id === e)?.name ?? e).join(", "),
|
|
285
331
|
MenuProps: { slotProps: { paper: { sx: { maxHeight: 280 } } } },
|
|
286
|
-
children:
|
|
332
|
+
children: B.map((e) => /* @__PURE__ */ C(_, {
|
|
287
333
|
value: e.id,
|
|
288
334
|
sx: { minWidth: 0 },
|
|
289
|
-
children: /* @__PURE__ */
|
|
335
|
+
children: /* @__PURE__ */ w(s, {
|
|
290
336
|
sx: {
|
|
291
337
|
display: "flex",
|
|
292
338
|
alignItems: "center",
|
|
@@ -296,7 +342,7 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
296
342
|
width: "100%",
|
|
297
343
|
overflow: "hidden"
|
|
298
344
|
},
|
|
299
|
-
children: [e.depth > 0 && /* @__PURE__ */ S
|
|
345
|
+
children: [e.depth > 0 && /* @__PURE__ */ C(S, {
|
|
300
346
|
component: "span",
|
|
301
347
|
variant: "caption",
|
|
302
348
|
sx: {
|
|
@@ -305,25 +351,25 @@ function O({ open: a, mode: b, initialTask: O, defaultParentId: k, onSave: A, on
|
|
|
305
351
|
flexShrink: 0
|
|
306
352
|
},
|
|
307
353
|
children: "└"
|
|
308
|
-
}), /* @__PURE__ */
|
|
354
|
+
}), /* @__PURE__ */ C(O, { label: e.name })]
|
|
309
355
|
})
|
|
310
356
|
}, e.id))
|
|
311
357
|
})]
|
|
312
358
|
})
|
|
313
359
|
]
|
|
314
360
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
onClick:
|
|
317
|
-
children:
|
|
318
|
-
}), /* @__PURE__ */
|
|
319
|
-
onClick:
|
|
361
|
+
/* @__PURE__ */ w(d, { children: [/* @__PURE__ */ C(c, {
|
|
362
|
+
onClick: M,
|
|
363
|
+
children: N.dialogCancel
|
|
364
|
+
}), /* @__PURE__ */ C(c, {
|
|
365
|
+
onClick: J,
|
|
320
366
|
variant: "contained",
|
|
321
|
-
disabled: !
|
|
367
|
+
disabled: !q,
|
|
322
368
|
"data-testid": "gantt-dialog-save",
|
|
323
|
-
children:
|
|
369
|
+
children: N.dialogSave
|
|
324
370
|
})] })
|
|
325
371
|
]
|
|
326
372
|
});
|
|
327
373
|
}
|
|
328
374
|
//#endregion
|
|
329
|
-
export {
|
|
375
|
+
export { k as GanttTaskDialog };
|