@thebuoyant-tsdev/mui-ts-library 3.29.2 → 3.30.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.
Files changed (53) hide show
  1. package/README.de.md +49 -1
  2. package/README.md +49 -1
  3. package/dist/components/chord-chart/ChordChart.js +112 -112
  4. package/dist/components/circle-packing-chart/CirclePackingChart.js +135 -135
  5. package/dist/components/color-picker/ColorPicker.js +217 -217
  6. package/dist/components/color-picker/PopoverColorPicker.js +7 -7
  7. package/dist/components/date-range-picker/DateRangePicker.js +9 -9
  8. package/dist/components/gantt-chart/GanttChart.js +18 -18
  9. package/dist/components/gantt-chart/GanttTaskDialog.js +43 -43
  10. package/dist/components/gantt-chart/GanttTaskPanel.js +128 -128
  11. package/dist/components/gantt-chart/GanttTimeline.js +16 -16
  12. package/dist/components/gantt-chart/GanttToolbar.js +24 -24
  13. package/dist/components/horizontal-tree-chart/HorizontalTreeChart.js +244 -244
  14. package/dist/components/json-editor/JsonEditor.js +9 -9
  15. package/dist/components/json-editor/JsonEditorContent.js +54 -54
  16. package/dist/components/json-editor/JsonEditorToolbar.js +12 -12
  17. package/dist/components/kanban-board/KanbanBoard.d.ts +2 -0
  18. package/dist/components/kanban-board/KanbanBoard.js +129 -0
  19. package/dist/components/kanban-board/KanbanBoard.types.d.ts +84 -0
  20. package/dist/components/kanban-board/KanbanBoard.types.js +19 -0
  21. package/dist/components/kanban-board/KanbanBoardCard.d.ts +13 -0
  22. package/dist/components/kanban-board/KanbanBoardCard.js +104 -0
  23. package/dist/components/kanban-board/KanbanBoardCardDialog.d.ts +23 -0
  24. package/dist/components/kanban-board/KanbanBoardCardDialog.js +120 -0
  25. package/dist/components/kanban-board/KanbanBoardColumn.d.ts +14 -0
  26. package/dist/components/kanban-board/KanbanBoardColumn.js +129 -0
  27. package/dist/components/kanban-board/kanbanBoardClasses.d.ts +47 -0
  28. package/dist/components/kanban-board/kanbanBoardClasses.js +18 -0
  29. package/dist/components/password-strength-meter/PasswordStrengthMeter.js +27 -27
  30. package/dist/components/radial-stacked-bar-chart/RadialStackedBarChart.js +48 -48
  31. package/dist/components/radial-tree-chart/RadialTreeChart.js +173 -173
  32. package/dist/components/rich-text-editor/RichTextEditor.js +32 -32
  33. package/dist/components/rich-text-editor/RichTextEditorColorPicker.js +20 -20
  34. package/dist/components/rich-text-editor/RichTextEditorEmojiPicker.js +12 -12
  35. package/dist/components/rich-text-editor/RichTextEditorImageDialog.js +11 -11
  36. package/dist/components/rich-text-editor/RichTextEditorLinkDialog.js +11 -11
  37. package/dist/components/rich-text-editor/RichTextEditorMarkdownDialog.js +14 -14
  38. package/dist/components/rich-text-editor/RichTextEditorMentionList.js +14 -14
  39. package/dist/components/rich-text-editor/RichTextEditorTableMenu.js +28 -28
  40. package/dist/components/rich-text-editor/RichTextEditorToolbar.js +35 -35
  41. package/dist/components/sql-editor/SqlEditor.js +24 -24
  42. package/dist/components/sql-editor/SqlEditorContent.js +16 -16
  43. package/dist/components/sql-editor/SqlEditorHistoryMenu.js +15 -15
  44. package/dist/components/sql-editor/SqlEditorToolbar.js +21 -21
  45. package/dist/components/sunburst-chart/SunburstChart.js +126 -126
  46. package/dist/components/tag-selection/TagSelection.js +18 -18
  47. package/dist/components/tag-selection/TagSelectionAutocomplete.js +120 -120
  48. package/dist/components/tag-selection/TagSelectionSelectedTags.js +10 -10
  49. package/dist/index.cjs +2 -2
  50. package/dist/index.d.cts +3 -0
  51. package/dist/index.d.ts +3 -0
  52. package/dist/index.js +38 -35
  53. package/package.json +9 -2
@@ -2,8 +2,8 @@ import { muiTsStateClasses as e } from "../../utils/muiTsClasses.js";
2
2
  import { popoverColorPickerClasses as t } from "./popoverColorPickerClasses.js";
3
3
  import { DEFAULT_POPOVER_COLOR_PICKER_TRANSLATION as n } from "./ColorPicker.types.js";
4
4
  import { ColorPicker as r } from "./ColorPicker.js";
5
- import { useState as i } from "react";
6
- import { Box as a, Popover as o, useTheme as s } from "@mui/material";
5
+ import { Box as i, Popover as a, useTheme as o } from "@mui/material";
6
+ import { useState as s } from "react";
7
7
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  //#region src/components/color-picker/PopoverColorPicker.tsx
9
9
  var d = {
@@ -12,11 +12,11 @@ var d = {
12
12
  backgroundPosition: "0 0, 0 4px, 4px -4px, -4px 0px"
13
13
  };
14
14
  function f({ value: f, onChange: p, onChangeCommitted: m, swatchSize: h = 28, swatchShape: g = "square", disabled: _ = !1, translation: v, ...y }) {
15
- let b = s(), x = {
15
+ let b = o(), x = {
16
16
  ...n,
17
17
  ...v
18
- }, [S, C] = i(null), w = !!S, T = g === "circle" ? "50%" : `${b.shape.borderRadius}px`;
19
- return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(a, {
18
+ }, [S, C] = s(null), w = !!S, T = g === "circle" ? "50%" : `${b.shape.borderRadius}px`;
19
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(i, {
20
20
  component: "button",
21
21
  type: "button",
22
22
  disabled: _,
@@ -42,7 +42,7 @@ function f({ value: f, onChange: p, onChangeCommitted: m, swatchSize: h = 28, sw
42
42
  outlineOffset: 2
43
43
  }
44
44
  },
45
- children: /* @__PURE__ */ l(a, {
45
+ children: /* @__PURE__ */ l(i, {
46
46
  className: t.swatch,
47
47
  sx: {
48
48
  width: "100%",
@@ -51,7 +51,7 @@ function f({ value: f, onChange: p, onChangeCommitted: m, swatchSize: h = 28, sw
51
51
  backgroundColor: f
52
52
  }
53
53
  })
54
- }), /* @__PURE__ */ l(o, {
54
+ }), /* @__PURE__ */ l(a, {
55
55
  open: w,
56
56
  anchorEl: S,
57
57
  onClose: () => C(null),
@@ -1,8 +1,8 @@
1
1
  import { muiTsStateClasses as e } from "../../utils/muiTsClasses.js";
2
2
  import { dateRangePickerClasses as t } from "./dateRangePickerClasses.js";
3
3
  import { DEFAULT_DATE_RANGE_PICKER_TRANSLATION as n } from "./DateRangePicker.types.js";
4
- import { useState as r } from "react";
5
- import { Box as i, FormHelperText as a, TextField as o } from "@mui/material";
4
+ import { Box as r, FormHelperText as i, TextField as a } from "@mui/material";
5
+ import { useState as o } from "react";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  //#region src/components/date-range-picker/DateRangePicker.tsx
8
8
  function l(e) {
@@ -34,7 +34,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
34
34
  let E = {
35
35
  ...n,
36
36
  ...T
37
- }, D = m !== void 0, [O, k] = r(h ?? p), [A, j] = r({
37
+ }, D = m !== void 0, [O, k] = o(h ?? p), [A, j] = o({
38
38
  start: !1,
39
39
  end: !1
40
40
  }), M = D ? m : O, { startError: N, endError: P } = f(M, A, b, E);
@@ -72,7 +72,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
72
72
  }));
73
73
  }
74
74
  let B = _ ? l(_) : void 0, V = v ? l(v) : void 0, H = M.start ? l(M.start) : B, U = x || !!N || !!P;
75
- return /* @__PURE__ */ c(i, {
75
+ return /* @__PURE__ */ c(r, {
76
76
  className: [
77
77
  t.root,
78
78
  y && e.disabled,
@@ -83,7 +83,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
83
83
  flexDirection: "column",
84
84
  gap: .25
85
85
  },
86
- children: [/* @__PURE__ */ c(i, {
86
+ children: [/* @__PURE__ */ c(r, {
87
87
  className: t.inputs,
88
88
  sx: {
89
89
  display: "inline-flex",
@@ -91,7 +91,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
91
91
  gap: 1
92
92
  },
93
93
  children: [
94
- /* @__PURE__ */ s(o, {
94
+ /* @__PURE__ */ s(a, {
95
95
  className: t.startInput,
96
96
  type: "date",
97
97
  label: E.fromLabel,
@@ -113,7 +113,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
113
113
  }
114
114
  }
115
115
  }),
116
- /* @__PURE__ */ s(i, {
116
+ /* @__PURE__ */ s(r, {
117
117
  component: "span",
118
118
  className: t.separator,
119
119
  "aria-hidden": !0,
@@ -126,7 +126,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
126
126
  },
127
127
  children: "–"
128
128
  }),
129
- /* @__PURE__ */ s(o, {
129
+ /* @__PURE__ */ s(a, {
130
130
  className: t.endInput,
131
131
  type: "date",
132
132
  label: E.toLabel,
@@ -149,7 +149,7 @@ function m({ value: m, defaultValue: h, onChange: g, minDate: _, maxDate: v, dis
149
149
  }
150
150
  })
151
151
  ]
152
- }), S && /* @__PURE__ */ s(a, {
152
+ }), S && /* @__PURE__ */ s(i, {
153
153
  className: t.helperText,
154
154
  error: x,
155
155
  sx: { mx: "14px" },
@@ -3,9 +3,9 @@ import { createGanttChartStore as n } from "./GanttChart.store.js";
3
3
  import { DEFAULT_GANTT_TRANSLATIONS as r } from "./GanttChart.types.js";
4
4
  import { GanttTaskPanel as i } from "./GanttTaskPanel.js";
5
5
  import { GanttTimeline as a } from "./GanttTimeline.js";
6
- import { GanttToolbar as o } from "./GanttToolbar.js";
7
- import { createContext as s, useCallback as c, useContext as l, useEffect as u, useMemo as d, useRef as f, useState as ee } from "react";
8
- import { Box as p } from "@mui/material";
6
+ import { GanttToolbar as ee } from "./GanttToolbar.js";
7
+ import { Box as o } from "@mui/material";
8
+ import { createContext as s, useCallback as c, useContext as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
9
9
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
10
10
  import { useStore as g } from "zustand";
11
11
  //#region src/components/gantt-chart/GanttChart.tsx
@@ -53,7 +53,7 @@ function D({ tasks: t, onTaskClick: n, onMilestoneClick: r, onAddTask: s, onEdit
53
53
  let H = w(A, 400), U = d(() => ({
54
54
  ...E,
55
55
  ...k
56
- }), [k]), W = w(j, "100%"), G = v((e) => e.setTasks), K = v((e) => e.timeScale), q = v((e) => e.setTimeScale), J = v((e) => e.timelineRange), Y = f(null), X = f(null), Z = f(!1), [Q, ae] = ee(320 + (L ? 110 : 0)), oe = Math.max(M, 90 + (x || s || l || g ? 96 : 0) + (L ? 110 : 0) + 80), $ = y(), se = c(() => {
56
+ }), [k]), W = w(j, "100%"), G = v((e) => e.setTasks), K = v((e) => e.timeScale), q = v((e) => e.setTimeScale), J = v((e) => e.timelineRange), Y = f(null), X = f(null), Z = f(!1), [Q, ae] = p(320 + (L ? 110 : 0)), oe = Math.max(M, 90 + (x || s || l || g ? 96 : 0) + (L ? 110 : 0) + 80), $ = y(), se = c(() => {
57
57
  let e = $.getState().tasks, t = [[
58
58
  "id",
59
59
  "name",
@@ -125,7 +125,7 @@ function D({ tasks: t, onTaskClick: n, onMilestoneClick: r, onAddTask: s, onEdit
125
125
  oe,
126
126
  N
127
127
  ]);
128
- return /* @__PURE__ */ h(p, {
128
+ return /* @__PURE__ */ h(o, {
129
129
  sx: {
130
130
  display: "flex",
131
131
  flexDirection: "column",
@@ -136,11 +136,11 @@ function D({ tasks: t, onTaskClick: n, onMilestoneClick: r, onAddTask: s, onEdit
136
136
  borderRadius: 1,
137
137
  overflow: "hidden"
138
138
  },
139
- children: [O && /* @__PURE__ */ m(o, {
139
+ children: [O && /* @__PURE__ */ m(ee, {
140
140
  onScrollToToday: ue,
141
141
  config: U,
142
142
  onExportCSV: U.showExportCSV ? se : void 0
143
- }), /* @__PURE__ */ h(p, {
143
+ }), /* @__PURE__ */ h(o, {
144
144
  sx: {
145
145
  display: "flex",
146
146
  flex: 1,
@@ -165,7 +165,7 @@ function D({ tasks: t, onTaskClick: n, onMilestoneClick: r, onAddTask: s, onEdit
165
165
  virtualizeRows: I,
166
166
  showAssigneeColumn: L
167
167
  }),
168
- /* @__PURE__ */ m(p, {
168
+ /* @__PURE__ */ m(o, {
169
169
  "data-testid": "gantt-panel-divider",
170
170
  sx: {
171
171
  width: 4,
@@ -196,16 +196,16 @@ function D({ tasks: t, onTaskClick: n, onMilestoneClick: r, onAddTask: s, onEdit
196
196
  })]
197
197
  });
198
198
  }
199
- function O({ tasks: e, timeScale: i = "months", initialExpandAll: a = !1, showToolbar: o = !0, defaultRangeStart: s, defaultRangeEnd: c, translations: l, enableBuiltinDialogs: u = !0, toolbarConfig: f, zoomable: p = !1, draggable: h = !1, resizable: g = !1, inlineEdit: v = !1, progressDraggable: y = !1, showCriticalPath: x = !1, virtualizeRows: C = !1, showAssigneeColumn: w = !1, cascadeDependencies: T = !1, statusColors: E, ganttTheme: O, onExportCSV: k, onDragStart: A, onTaskClick: j, onMilestoneClick: M, onAddTask: N, onEditTask: P, onDeleteTask: F, onStatusChange: te, onTasksChange: ne, onTaskMoved: re, onTaskResized: ie, onTaskCreated: I, onTaskUpdated: L, onTaskDeleted: R, height: z, width: B, minPanelWidth: V, maxPanelWidth: H }) {
199
+ function O({ tasks: e, timeScale: i = "months", initialExpandAll: a = !1, showToolbar: ee = !0, defaultRangeStart: o, defaultRangeEnd: s, translations: c, enableBuiltinDialogs: l = !0, toolbarConfig: u, zoomable: f = !1, draggable: h = !1, resizable: g = !1, inlineEdit: v = !1, progressDraggable: y = !1, showCriticalPath: x = !1, virtualizeRows: C = !1, showAssigneeColumn: w = !1, cascadeDependencies: T = !1, statusColors: E, ganttTheme: O, onExportCSV: k, onDragStart: A, onTaskClick: j, onMilestoneClick: M, onAddTask: N, onEditTask: P, onDeleteTask: F, onStatusChange: te, onTasksChange: ne, onTaskMoved: re, onTaskResized: ie, onTaskCreated: I, onTaskUpdated: L, onTaskDeleted: R, height: z, width: B, minPanelWidth: V, maxPanelWidth: H }) {
200
200
  let U = d(() => ({
201
201
  ...r,
202
- ...l
203
- }), [l]), [W] = ee(() => {
204
- if (!(s !== void 0 || c !== void 0)) return n(e, i, a, void 0, T);
202
+ ...c
203
+ }), [c]), [W] = p(() => {
204
+ if (!(o !== void 0 || s !== void 0)) return n(e, i, a, void 0, T);
205
205
  let r = t(e);
206
206
  return n(e, i, a, {
207
- start: s ?? r.start,
208
- end: c ?? r.end
207
+ start: o ?? r.start,
208
+ end: s ?? r.end
209
209
  }, T);
210
210
  }), G = d(() => ({
211
211
  ...O,
@@ -223,10 +223,10 @@ function O({ tasks: e, timeScale: i = "months", initialExpandAll: a = !1, showTo
223
223
  children: /* @__PURE__ */ m(D, {
224
224
  tasks: e,
225
225
  timeScale: i,
226
- enableBuiltinDialogs: u,
227
- showToolbar: o,
228
- toolbarConfig: f,
229
- zoomable: p,
226
+ enableBuiltinDialogs: l,
227
+ showToolbar: ee,
228
+ toolbarConfig: u,
229
+ zoomable: f,
230
230
  draggable: h,
231
231
  resizable: g,
232
232
  inlineEdit: v,
@@ -1,7 +1,7 @@
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
- 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, Slider as y, TextField as b, Tooltip as x, Typography as S } from "@mui/material";
3
+ import { Box as r, Button as i, Checkbox as a, Dialog as o, DialogActions as s, DialogContent as c, DialogTitle as l, FormControl as u, FormControlLabel as d, InputLabel as f, MenuItem as p, Select as m, Slider as h, TextField as g, Tooltip as _, Typography as v } from "@mui/material";
4
+ import { useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
5
5
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
6
6
  //#region src/components/gantt-chart/GanttTaskDialog.tsx
7
7
  function T(e) {
@@ -14,11 +14,11 @@ function D(e) {
14
14
  return e.flatMap((e) => [e, ...D(e.children)]);
15
15
  }
16
16
  function O({ label: e }) {
17
- let t = a(null), [n, r] = o(!1);
18
- return /* @__PURE__ */ C(x, {
17
+ let t = x(null), [n, r] = S(!1);
18
+ return /* @__PURE__ */ C(_, {
19
19
  title: e,
20
20
  disableHoverListener: !n,
21
- children: /* @__PURE__ */ C(S, {
21
+ children: /* @__PURE__ */ C(v, {
22
22
  ref: t,
23
23
  component: "span",
24
24
  variant: "body2",
@@ -36,8 +36,8 @@ function O({ label: e }) {
36
36
  })
37
37
  });
38
38
  }
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(() => {
39
+ function k({ open: _, 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 = b(() => D(P), [P]), L = b(() => {
41
41
  if (x === "add" || !k) return /* @__PURE__ */ new Set();
42
42
  let e = (t) => [t.id, ...t.children.flatMap(e)], t = I.find((e) => e.id === k.id);
43
43
  return new Set(t ? e(t) : [k.id]);
@@ -45,11 +45,11 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
45
45
  x,
46
46
  k,
47
47
  I
48
- ]), R = I.filter((e) => !L.has(e.id)), z = i(() => x === "add" || !k ? /* @__PURE__ */ new Set() : e(I, k.id), [
48
+ ]), R = I.filter((e) => !L.has(e.id)), z = b(() => x === "add" || !k ? /* @__PURE__ */ new Set() : e(I, k.id), [
49
49
  x,
50
50
  k,
51
51
  I
52
- ]), B = R.filter((e) => !z.has(e.id)), V = T(E(/* @__PURE__ */ new Date(), F.start, F.end)), [H, U] = o({
52
+ ]), B = R.filter((e) => !z.has(e.id)), V = T(E(/* @__PURE__ */ new Date(), F.start, F.end)), [H, U] = S({
53
53
  name: "",
54
54
  startDate: V,
55
55
  endDate: V,
@@ -60,8 +60,8 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
60
60
  dependencies: [],
61
61
  assignee: ""
62
62
  });
63
- r(() => {
64
- if (!a) return;
63
+ y(() => {
64
+ if (!_) return;
65
65
  let e = T(E(/* @__PURE__ */ new Date(), F.start, F.end));
66
66
  U(x === "edit" && k ? {
67
67
  name: k.name,
@@ -85,7 +85,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
85
85
  assignee: ""
86
86
  });
87
87
  }, [
88
- a,
88
+ _,
89
89
  x,
90
90
  k,
91
91
  A,
@@ -132,15 +132,15 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
132
132
  done: N.statusDone,
133
133
  blocked: N.statusBlocked
134
134
  };
135
- return /* @__PURE__ */ w(u, {
136
- open: a,
135
+ return /* @__PURE__ */ w(o, {
136
+ open: _,
137
137
  onClose: M,
138
138
  maxWidth: "xs",
139
139
  fullWidth: !0,
140
140
  "data-testid": "gantt-task-dialog",
141
141
  children: [
142
- /* @__PURE__ */ C(p, { children: x === "add" ? N.dialogAddTitle : N.dialogEditTitle }),
143
- /* @__PURE__ */ w(f, {
142
+ /* @__PURE__ */ C(l, { children: x === "add" ? N.dialogAddTitle : N.dialogEditTitle }),
143
+ /* @__PURE__ */ w(c, {
144
144
  sx: {
145
145
  display: "flex",
146
146
  flexDirection: "column",
@@ -148,7 +148,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
148
148
  pt: "16px !important"
149
149
  },
150
150
  children: [
151
- /* @__PURE__ */ C(b, {
151
+ /* @__PURE__ */ C(g, {
152
152
  label: N.dialogFieldName,
153
153
  value: H.name,
154
154
  onChange: (e) => U((t) => ({
@@ -161,7 +161,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
161
161
  autoFocus: !0,
162
162
  slotProps: { htmlInput: { "data-testid": "gantt-dialog-field-name" } }
163
163
  }),
164
- /* @__PURE__ */ C(b, {
164
+ /* @__PURE__ */ C(g, {
165
165
  label: N.columnAssignee,
166
166
  value: H.assignee,
167
167
  onChange: (e) => U((t) => ({
@@ -173,7 +173,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
173
173
  placeholder: "e.g. Jane Smith",
174
174
  slotProps: { htmlInput: { "data-testid": "gantt-dialog-field-assignee" } }
175
175
  }),
176
- /* @__PURE__ */ C(b, {
176
+ /* @__PURE__ */ C(g, {
177
177
  label: N.dialogFieldStartDate,
178
178
  type: "date",
179
179
  value: H.startDate,
@@ -186,7 +186,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
186
186
  htmlInput: { "data-testid": "gantt-dialog-field-start" }
187
187
  }
188
188
  }),
189
- /* @__PURE__ */ C(b, {
189
+ /* @__PURE__ */ C(g, {
190
190
  label: N.dialogFieldEndDate,
191
191
  type: "date",
192
192
  value: H.endDate,
@@ -203,10 +203,10 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
203
203
  }
204
204
  }
205
205
  }),
206
- /* @__PURE__ */ w(m, {
206
+ /* @__PURE__ */ w(u, {
207
207
  size: "small",
208
208
  fullWidth: !0,
209
- children: [/* @__PURE__ */ C(g, { children: N.dialogFieldStatus }), /* @__PURE__ */ C(v, {
209
+ children: [/* @__PURE__ */ C(f, { children: N.dialogFieldStatus }), /* @__PURE__ */ C(m, {
210
210
  value: H.status,
211
211
  label: N.dialogFieldStatus,
212
212
  onChange: (e) => U((t) => ({
@@ -214,32 +214,32 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
214
214
  status: e.target.value
215
215
  })),
216
216
  inputProps: { "data-testid": "gantt-dialog-field-status" },
217
- children: Y.map((e) => /* @__PURE__ */ C(_, {
217
+ children: Y.map((e) => /* @__PURE__ */ C(p, {
218
218
  value: e,
219
219
  children: X[e]
220
220
  }, e))
221
221
  })]
222
222
  }),
223
- /* @__PURE__ */ w(s, {
223
+ /* @__PURE__ */ w(r, {
224
224
  "data-testid": "gantt-dialog-field-progress-wrapper",
225
- children: [/* @__PURE__ */ w(s, {
225
+ children: [/* @__PURE__ */ w(r, {
226
226
  sx: {
227
227
  display: "flex",
228
228
  justifyContent: "space-between",
229
229
  alignItems: "baseline",
230
230
  mb: .25
231
231
  },
232
- children: [/* @__PURE__ */ C(S, {
232
+ children: [/* @__PURE__ */ C(v, {
233
233
  variant: "caption",
234
234
  color: H.isMilestone ? "text.disabled" : "text.secondary",
235
235
  children: N.dialogFieldProgress ?? "Fortschritt (%)"
236
- }), /* @__PURE__ */ w(S, {
236
+ }), /* @__PURE__ */ w(v, {
237
237
  variant: "caption",
238
238
  sx: { fontWeight: 600 },
239
239
  color: H.isMilestone ? "text.disabled" : "text.primary",
240
240
  children: [H.progress, " %"]
241
241
  })]
242
- }), /* @__PURE__ */ C(y, {
242
+ }), /* @__PURE__ */ C(h, {
243
243
  value: H.progress,
244
244
  onChange: (e, t) => U((e) => ({
245
245
  ...e,
@@ -261,8 +261,8 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
261
261
  "data-testid": "gantt-dialog-field-progress"
262
262
  })]
263
263
  }),
264
- /* @__PURE__ */ C(h, {
265
- control: /* @__PURE__ */ C(l, {
264
+ /* @__PURE__ */ C(d, {
265
+ control: /* @__PURE__ */ C(a, {
266
266
  checked: H.isMilestone,
267
267
  onChange: (e) => K(e.target.checked),
268
268
  size: "small",
@@ -270,10 +270,10 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
270
270
  }),
271
271
  label: N.dialogFieldMilestone
272
272
  }),
273
- /* @__PURE__ */ w(m, {
273
+ /* @__PURE__ */ w(u, {
274
274
  size: "small",
275
275
  fullWidth: !0,
276
- children: [/* @__PURE__ */ C(g, { children: N.dialogFieldParent }), /* @__PURE__ */ w(v, {
276
+ children: [/* @__PURE__ */ C(f, { children: N.dialogFieldParent }), /* @__PURE__ */ w(m, {
277
277
  value: H.parentId,
278
278
  label: N.dialogFieldParent,
279
279
  onChange: (e) => U((t) => ({
@@ -282,13 +282,13 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
282
282
  })),
283
283
  inputProps: { "data-testid": "gantt-dialog-field-parent" },
284
284
  MenuProps: { slotProps: { paper: { sx: { maxHeight: 280 } } } },
285
- children: [/* @__PURE__ */ C(_, {
285
+ children: [/* @__PURE__ */ C(p, {
286
286
  value: "",
287
287
  children: N.dialogFieldParentNone
288
- }), R.map((e) => /* @__PURE__ */ C(_, {
288
+ }), R.map((e) => /* @__PURE__ */ C(p, {
289
289
  value: e.id,
290
290
  sx: { minWidth: 0 },
291
- children: /* @__PURE__ */ w(s, {
291
+ children: /* @__PURE__ */ w(r, {
292
292
  sx: {
293
293
  display: "flex",
294
294
  alignItems: "center",
@@ -298,7 +298,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
298
298
  width: "100%",
299
299
  overflow: "hidden"
300
300
  },
301
- children: [e.depth > 0 && /* @__PURE__ */ C(S, {
301
+ children: [e.depth > 0 && /* @__PURE__ */ C(v, {
302
302
  component: "span",
303
303
  variant: "caption",
304
304
  sx: {
@@ -312,10 +312,10 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
312
312
  }, e.id))]
313
313
  })]
314
314
  }),
315
- /* @__PURE__ */ w(m, {
315
+ /* @__PURE__ */ w(u, {
316
316
  size: "small",
317
317
  fullWidth: !0,
318
- children: [/* @__PURE__ */ C(g, { children: N.dialogFieldDependencies }), /* @__PURE__ */ C(v, {
318
+ children: [/* @__PURE__ */ C(f, { children: N.dialogFieldDependencies }), /* @__PURE__ */ C(m, {
319
319
  multiple: !0,
320
320
  value: H.dependencies,
321
321
  label: N.dialogFieldDependencies,
@@ -329,10 +329,10 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
329
329
  inputProps: { "data-testid": "gantt-dialog-field-dependencies" },
330
330
  renderValue: (e) => e.length === 0 ? N.dialogFieldDependenciesNone : e.map((e) => I.find((t) => t.id === e)?.name ?? e).join(", "),
331
331
  MenuProps: { slotProps: { paper: { sx: { maxHeight: 280 } } } },
332
- children: B.map((e) => /* @__PURE__ */ C(_, {
332
+ children: B.map((e) => /* @__PURE__ */ C(p, {
333
333
  value: e.id,
334
334
  sx: { minWidth: 0 },
335
- children: /* @__PURE__ */ w(s, {
335
+ children: /* @__PURE__ */ w(r, {
336
336
  sx: {
337
337
  display: "flex",
338
338
  alignItems: "center",
@@ -342,7 +342,7 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
342
342
  width: "100%",
343
343
  overflow: "hidden"
344
344
  },
345
- children: [e.depth > 0 && /* @__PURE__ */ C(S, {
345
+ children: [e.depth > 0 && /* @__PURE__ */ C(v, {
346
346
  component: "span",
347
347
  variant: "caption",
348
348
  sx: {
@@ -358,10 +358,10 @@ function k({ open: a, mode: x, initialTask: k, defaultParentId: A, onSave: j, on
358
358
  })
359
359
  ]
360
360
  }),
361
- /* @__PURE__ */ w(d, { children: [/* @__PURE__ */ C(c, {
361
+ /* @__PURE__ */ w(s, { children: [/* @__PURE__ */ C(i, {
362
362
  onClick: M,
363
363
  children: N.dialogCancel
364
- }), /* @__PURE__ */ C(c, {
364
+ }), /* @__PURE__ */ C(i, {
365
365
  onClick: J,
366
366
  variant: "contained",
367
367
  disabled: !q,