@thebuoyant-tsdev/mui-ts-library 3.33.1 → 3.35.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 +21 -2
- package/README.md +21 -2
- package/dist/components/gantt-chart/GanttTaskPanel.js +52 -52
- package/dist/components/kanban-board/KanbanBoard.d.ts +1 -1
- package/dist/components/kanban-board/KanbanBoard.js +129 -95
- package/dist/components/kanban-board/KanbanBoard.types.d.ts +31 -0
- package/dist/components/kanban-board/KanbanBoard.types.js +5 -1
- package/dist/components/kanban-board/KanbanBoardCard.d.ts +3 -1
- package/dist/components/kanban-board/KanbanBoardCard.js +151 -91
- package/dist/components/kanban-board/KanbanBoardCardDialog.d.ts +2 -1
- package/dist/components/kanban-board/KanbanBoardCardDialog.js +162 -66
- package/dist/components/kanban-board/KanbanBoardColumn.d.ts +2 -1
- package/dist/components/kanban-board/KanbanBoardColumn.js +30 -28
- package/dist/components/kanban-board/kanbanBoardClasses.d.ts +8 -0
- package/dist/components/kanban-board/kanbanBoardClasses.js +5 -1
- package/dist/components/rich-text-editor/RichTextEditorEmojiPicker.js +15 -15
- package/dist/components/rich-text-editor/RichTextEditorTableMenu.js +29 -29
- package/dist/components/tag-selection/TagSelectionAutocomplete.js +4 -4
- package/dist/index.cjs +2 -2
- package/package.json +5 -2
package/README.de.md
CHANGED
|
@@ -104,7 +104,7 @@ const tasks: GanttTask[] = [
|
|
|
104
104
|
|
|
105
105
|
### KanbanBoard
|
|
106
106
|
|
|
107
|
-
Ein Drag-and-Drop-Kanban-Board mit eingebauten Hinzufügen-/Bearbeiten-/Löschen-Dialogen, WIP-Limits und vollständiger i18n. Ideal für Task-Management-Dashboards, Sprint-Boards oder jeden Workflow, bei dem Nutzer Aufgaben zwischen Statusspalten verschieben sollen — mit Kartenfarben, Prioritäts-Punkten, Zuständige-Person-Chips, Fälligkeitsdatum-Chips mit Überfälligkeits-Warnung und `filterText`-Prop für Live-
|
|
107
|
+
Ein Drag-and-Drop-Kanban-Board mit eingebauten Hinzufügen-/Bearbeiten-/Löschen-Dialogen, WIP-Limits und vollständiger i18n. Ideal für Task-Management-Dashboards, Sprint-Boards oder jeden Workflow, bei dem Nutzer Aufgaben zwischen Statusspalten verschieben sollen — mit Kartenfarben, Prioritäts-Punkten, Zuständige-Person-Chips, Fälligkeitsdatum-Chips mit Überfälligkeits-Warnung, Subtask-Checkliste mit Fortschrittsbalken und eingebautem Suchfeld (`showSearchField`) oder `filterText`-Prop für Live-Filterung.
|
|
108
108
|
|
|
109
109
|
```tsx
|
|
110
110
|
import { KanbanBoard } from '@thebuoyant-tsdev/mui-ts-library';
|
|
@@ -497,7 +497,7 @@ import type {
|
|
|
497
497
|
GanttTask, GanttTranslations, GanttTheme, GanttToolbarConfig,
|
|
498
498
|
|
|
499
499
|
// KanbanBoard
|
|
500
|
-
KanbanTask, KanbanColumn, KanbanBoardProps, KanbanBoardTranslation,
|
|
500
|
+
KanbanTask, KanbanSubtask, KanbanColumn, KanbanBoardProps, KanbanBoardTranslation,
|
|
501
501
|
|
|
502
502
|
// DateRangePicker
|
|
503
503
|
DateRange, DateRangeEntry, DateRangeInput, DateRangePickerProps, DateRangePickerTranslation,
|
|
@@ -555,6 +555,25 @@ Dieses Projekt folgt [Semantic Versioning](https://semver.org/):
|
|
|
555
555
|
|
|
556
556
|
## Changelog
|
|
557
557
|
|
|
558
|
+
### [3.35.0] — 2026-07-20
|
|
559
|
+
|
|
560
|
+
**Hinzugefügt**
|
|
561
|
+
- **KanbanBoard — `subtasks` in `KanbanTask`**: Neues Feld `subtasks?: KanbanSubtask[]` — auf der Karte erscheint ein Fortschrittsbalken (`{erledigt} / {gesamt} ✓`), im Dialog eine Checkliste. Sichtbarkeit über `showSubtasks` steuerbar (Standard `true`).
|
|
562
|
+
- **KanbanBoard — Typ `KanbanSubtask`**: Neuer exportierter Typ `{ id: string; title: string; done: boolean }`.
|
|
563
|
+
- **KanbanBoard — `+`-Button in Subtask-Zeile**: Beim Hover erscheint ein kleiner `+`-Button mit Tooltip in der Fortschrittszeile der Karte, der den Bearbeiten-Dialog direkt öffnet.
|
|
564
|
+
- **KanbanBoard — CSS-Klassen**: `MuiTsKanbanBoard-cardSubtasks` und `MuiTsKanbanBoard-cardSubtasksBar`. Siehe [Vollständiger Changelog](https://github.com/thebuoyant/mui-ts-library/blob/main/CHANGELOG.de.md) für Details.
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
568
|
+
### [3.34.0] — 2026-07-18
|
|
569
|
+
|
|
570
|
+
**Hinzugefügt**
|
|
571
|
+
- **KanbanBoard — `showSearchField`**: Neues Boolean-Prop, das ein eingebautes `size="small"`-Suchfeld mit Lupen-Icon über dem Board rendert. Das Board verwaltet den Filterzustand intern — kein zusätzliches Wiring nötig. Placeholder-Text über `translation.searchFieldPlaceholder` anpassbar. Das bestehende `filterText`-Prop funktioniert weiterhin für Consumer, die ein eigenes Suchfeld bauen.
|
|
572
|
+
- **KanbanBoard — `translation.searchFieldPlaceholder`**: Neuer Translation-Key (Standard `"Search by title or assignee…"`).
|
|
573
|
+
- **KanbanBoard — CSS-Klassen**: `MuiTsKanbanBoard-searchFieldWrapper` und `MuiTsKanbanBoard-searchField`. Siehe [Vollständiger Changelog](https://github.com/thebuoyant/mui-ts-library/blob/main/CHANGELOG.de.md) für Details.
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
558
577
|
### [3.33.1] — 2026-07-18
|
|
559
578
|
|
|
560
579
|
**Geändert**
|
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ const tasks: GanttTask[] = [
|
|
|
104
104
|
|
|
105
105
|
### KanbanBoard
|
|
106
106
|
|
|
107
|
-
A drag-and-drop Kanban board with built-in Add / Edit / Delete dialogs, WIP limits, and full i18n. Use it for task management dashboards, sprint boards, or any workflow where users move work items between status columns — with card colors, priority dots, assignee chips, due-date chips with overdue highlighting, and a `filterText` prop for live card
|
|
107
|
+
A drag-and-drop Kanban board with built-in Add / Edit / Delete dialogs, WIP limits, and full i18n. Use it for task management dashboards, sprint boards, or any workflow where users move work items between status columns — with card colors, priority dots, assignee chips, due-date chips with overdue highlighting, a subtask checklist with progress bar, and a built-in search field (`showSearchField`) or controlled `filterText` prop for live card filtering.
|
|
108
108
|
|
|
109
109
|
```tsx
|
|
110
110
|
import { KanbanBoard } from '@thebuoyant-tsdev/mui-ts-library';
|
|
@@ -497,7 +497,7 @@ import type {
|
|
|
497
497
|
GanttTask, GanttTranslations, GanttTheme, GanttToolbarConfig,
|
|
498
498
|
|
|
499
499
|
// KanbanBoard
|
|
500
|
-
KanbanTask, KanbanColumn, KanbanBoardProps, KanbanBoardTranslation,
|
|
500
|
+
KanbanTask, KanbanSubtask, KanbanColumn, KanbanBoardProps, KanbanBoardTranslation,
|
|
501
501
|
|
|
502
502
|
// DateRangePicker
|
|
503
503
|
DateRange, DateRangeEntry, DateRangeInput, DateRangePickerProps, DateRangePickerTranslation,
|
|
@@ -555,6 +555,25 @@ This project follows [Semantic Versioning](https://semver.org/):
|
|
|
555
555
|
|
|
556
556
|
## Changelog
|
|
557
557
|
|
|
558
|
+
### [3.35.0] — 2026-07-20
|
|
559
|
+
|
|
560
|
+
**Added**
|
|
561
|
+
- **KanbanBoard — `subtasks` on `KanbanTask`**: New `subtasks?: KanbanSubtask[]` field renders a progress bar (`{done} / {total} ✓`) on the card and a checklist in the Add/Edit dialog. Control visibility with `showSubtasks` (default `true`).
|
|
562
|
+
- **KanbanBoard — `KanbanSubtask` type**: New exported type `{ id: string; title: string; done: boolean }`.
|
|
563
|
+
- **KanbanBoard — subtask `+` button**: A small `+` button with tooltip appears on hover in the card's subtask progress row, opening the Edit dialog directly.
|
|
564
|
+
- **KanbanBoard — CSS classes**: `MuiTsKanbanBoard-cardSubtasks` and `MuiTsKanbanBoard-cardSubtasksBar`. See [Full Changelog](https://github.com/thebuoyant/mui-ts-library/blob/main/CHANGELOG.md) for details.
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
568
|
+
### [3.34.0] — 2026-07-18
|
|
569
|
+
|
|
570
|
+
**Added**
|
|
571
|
+
- **KanbanBoard — `showSearchField`**: New boolean prop that renders a built-in `size="small"` search field with a magnifier icon above the board. The board manages the filter state internally — no extra wiring needed. Placeholder text customizable via `translation.searchFieldPlaceholder`. The existing `filterText` prop still works for consumers who build their own search UI.
|
|
572
|
+
- **KanbanBoard — `translation.searchFieldPlaceholder`**: New translation key (default `"Search by title or assignee…"`).
|
|
573
|
+
- **KanbanBoard — CSS classes**: `MuiTsKanbanBoard-searchFieldWrapper` and `MuiTsKanbanBoard-searchField`. See [Full Changelog](https://github.com/thebuoyant/mui-ts-library/blob/main/CHANGELOG.md) for details.
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
558
577
|
### [3.33.1] — 2026-07-18
|
|
559
578
|
|
|
560
579
|
**Changed**
|
|
@@ -5,9 +5,9 @@ import { GanttDeleteDialog as ee } from "./GanttDeleteDialog.js";
|
|
|
5
5
|
import { useGanttChartStore as a, useGanttTheme as te, useGanttTranslations as ne, useRawGanttChartStore as o } from "./GanttChart.js";
|
|
6
6
|
import { Box as s, Chip as c, IconButton as l, Menu as u, MenuItem as d, TextField as f, Tooltip as p, Typography as m } from "@mui/material";
|
|
7
7
|
import { useEffect as h, useMemo as g, useState as _ } from "react";
|
|
8
|
-
import
|
|
9
|
-
import x from "
|
|
10
|
-
import S from "@mui/icons-material/
|
|
8
|
+
import v from "@mui/icons-material/Add";
|
|
9
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
|
+
import S from "@mui/icons-material/Delete";
|
|
11
11
|
import { useVirtualizer as C } from "@tanstack/react-virtual";
|
|
12
12
|
import w from "@mui/icons-material/Edit";
|
|
13
13
|
//#region src/components/gantt-chart/GanttTaskPanel.tsx
|
|
@@ -19,11 +19,11 @@ function T(e, t) {
|
|
|
19
19
|
blocked: t.statusBlocked
|
|
20
20
|
}[e];
|
|
21
21
|
}
|
|
22
|
-
function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, showAssigneeColumn: a, onTaskClick: o, onAddTask: h, onEditTask: g, onDeleteTask:
|
|
22
|
+
function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, showAssigneeColumn: a, onTaskClick: o, onAddTask: h, onEditTask: g, onDeleteTask: y, onStatusChange: C, inlineEdit: E, onInlineRename: D, isSelected: O, onSelect: k }) {
|
|
23
23
|
let [A, j] = _(null), [M, N] = _(null), P = ne(), { statusColors: F } = te(), I = () => {
|
|
24
24
|
M !== null && M.trim() && D?.(e, M.trim()), N(null);
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ x(s, {
|
|
27
27
|
className: "gantt-task-row",
|
|
28
28
|
"data-testid": `gantt-task-row-${e.id}`,
|
|
29
29
|
"aria-selected": O ?? !1,
|
|
@@ -44,7 +44,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
44
44
|
k?.(), o?.(e);
|
|
45
45
|
},
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ x(s, {
|
|
48
48
|
sx: {
|
|
49
49
|
flex: 1,
|
|
50
50
|
minWidth: 0,
|
|
@@ -56,14 +56,14 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
56
56
|
height: "100%"
|
|
57
57
|
},
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ b(s, {
|
|
60
60
|
sx: {
|
|
61
61
|
width: 16,
|
|
62
62
|
flexShrink: 0,
|
|
63
63
|
display: "flex",
|
|
64
64
|
justifyContent: "center"
|
|
65
65
|
},
|
|
66
|
-
children: e.children.length > 0 && /* @__PURE__ */
|
|
66
|
+
children: e.children.length > 0 && /* @__PURE__ */ b(s, {
|
|
67
67
|
component: "span",
|
|
68
68
|
sx: {
|
|
69
69
|
fontSize: 9,
|
|
@@ -76,7 +76,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
76
76
|
children: t.has(e.id) ? "▼" : "▶"
|
|
77
77
|
})
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ b(s, { sx: {
|
|
80
80
|
width: 8,
|
|
81
81
|
height: 8,
|
|
82
82
|
borderRadius: e.isMilestone ? 0 : "50%",
|
|
@@ -84,7 +84,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
84
84
|
flexShrink: 0,
|
|
85
85
|
bgcolor: e.color ?? F?.[e.status] ?? n[e.status] ?? "grey.400"
|
|
86
86
|
} }),
|
|
87
|
-
M === null ? /* @__PURE__ */
|
|
87
|
+
M === null ? /* @__PURE__ */ b(m, {
|
|
88
88
|
variant: "body2",
|
|
89
89
|
noWrap: !0,
|
|
90
90
|
sx: {
|
|
@@ -96,7 +96,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
96
96
|
t.stopPropagation(), N(e.name);
|
|
97
97
|
} : void 0,
|
|
98
98
|
children: e.name
|
|
99
|
-
}) : /* @__PURE__ */
|
|
99
|
+
}) : /* @__PURE__ */ b(f, {
|
|
100
100
|
size: "small",
|
|
101
101
|
variant: "standard",
|
|
102
102
|
value: M,
|
|
@@ -115,7 +115,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
115
115
|
})
|
|
116
116
|
]
|
|
117
117
|
}),
|
|
118
|
-
a && /* @__PURE__ */
|
|
118
|
+
a && /* @__PURE__ */ b(s, {
|
|
119
119
|
sx: {
|
|
120
120
|
width: 110,
|
|
121
121
|
flexShrink: 0,
|
|
@@ -124,14 +124,14 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
124
124
|
px: 1,
|
|
125
125
|
overflow: "hidden"
|
|
126
126
|
},
|
|
127
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ b(m, {
|
|
128
128
|
variant: "caption",
|
|
129
129
|
noWrap: !0,
|
|
130
130
|
color: e.assignee ? "text.primary" : "text.disabled",
|
|
131
131
|
children: e.assignee ?? "—"
|
|
132
132
|
})
|
|
133
133
|
}),
|
|
134
|
-
ee && /* @__PURE__ */
|
|
134
|
+
ee && /* @__PURE__ */ x(s, {
|
|
135
135
|
className: "gantt-row-actions",
|
|
136
136
|
sx: {
|
|
137
137
|
width: 96,
|
|
@@ -142,45 +142,45 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
142
142
|
pr: .5
|
|
143
143
|
},
|
|
144
144
|
children: [
|
|
145
|
-
g && /* @__PURE__ */
|
|
145
|
+
g && /* @__PURE__ */ b(p, {
|
|
146
146
|
title: P.editTaskTooltip,
|
|
147
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ b(l, {
|
|
148
148
|
size: "small",
|
|
149
149
|
"aria-label": P.editTaskTooltip,
|
|
150
150
|
"data-testid": `gantt-edit-task-${e.id}`,
|
|
151
151
|
onClick: (t) => {
|
|
152
152
|
t.stopPropagation(), g(e);
|
|
153
153
|
},
|
|
154
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ b(w, { fontSize: "inherit" })
|
|
155
155
|
})
|
|
156
156
|
}),
|
|
157
|
-
h && /* @__PURE__ */
|
|
157
|
+
h && /* @__PURE__ */ b(p, {
|
|
158
158
|
title: P.addTaskTooltip,
|
|
159
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ b(l, {
|
|
160
160
|
size: "small",
|
|
161
161
|
"aria-label": P.addTaskTooltip,
|
|
162
162
|
"data-testid": `gantt-add-task-${e.id}`,
|
|
163
163
|
onClick: (t) => {
|
|
164
164
|
t.stopPropagation(), h(e);
|
|
165
165
|
},
|
|
166
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ b(v, { fontSize: "inherit" })
|
|
167
167
|
})
|
|
168
168
|
}),
|
|
169
|
-
|
|
169
|
+
y && /* @__PURE__ */ b(p, {
|
|
170
170
|
title: P.deleteTaskTooltip,
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ b(l, {
|
|
172
172
|
size: "small",
|
|
173
173
|
"aria-label": P.deleteTaskTooltip,
|
|
174
174
|
"data-testid": `gantt-delete-task-${e.id}`,
|
|
175
175
|
onClick: (t) => {
|
|
176
|
-
t.stopPropagation(),
|
|
176
|
+
t.stopPropagation(), y(e);
|
|
177
177
|
},
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ b(S, { fontSize: "inherit" })
|
|
179
179
|
})
|
|
180
180
|
})
|
|
181
181
|
]
|
|
182
182
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ x(s, {
|
|
184
184
|
sx: {
|
|
185
185
|
width: 90,
|
|
186
186
|
flexShrink: 0,
|
|
@@ -188,7 +188,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
188
188
|
alignItems: "center",
|
|
189
189
|
justifyContent: "center"
|
|
190
190
|
},
|
|
191
|
-
children: [/* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ b(c, {
|
|
192
192
|
label: T(e.status, P),
|
|
193
193
|
size: "small",
|
|
194
194
|
variant: "outlined",
|
|
@@ -205,7 +205,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
205
205
|
onClick: C ? (e) => {
|
|
206
206
|
e.stopPropagation(), j(e.currentTarget);
|
|
207
207
|
} : void 0
|
|
208
|
-
}), C && /* @__PURE__ */
|
|
208
|
+
}), C && /* @__PURE__ */ b(u, {
|
|
209
209
|
anchorEl: A,
|
|
210
210
|
open: !!A,
|
|
211
211
|
onClose: () => j(null),
|
|
@@ -214,7 +214,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
214
214
|
"in-progress",
|
|
215
215
|
"done",
|
|
216
216
|
"blocked"
|
|
217
|
-
].map((t) => /* @__PURE__ */
|
|
217
|
+
].map((t) => /* @__PURE__ */ b(d, {
|
|
218
218
|
selected: e.status === t,
|
|
219
219
|
onClick: () => {
|
|
220
220
|
C(e, t), j(null);
|
|
@@ -226,7 +226,7 @@ function E({ task: e, expandedIds: t, toggleExpand: i, hasActionsColumn: ee, sho
|
|
|
226
226
|
]
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTask: l, onEditTask: u, onDeleteTask: d, onStatusChange: f, onTasksChange: p, enableBuiltinDialogs:
|
|
229
|
+
function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTask: l, onEditTask: u, onDeleteTask: d, onStatusChange: f, onTasksChange: p, enableBuiltinDialogs: v, onTaskCreated: S, onTaskUpdated: w, onTaskDeleted: T, inlineEdit: D, virtualizeRows: O = !1, showAssigneeColumn: k = !1 }) {
|
|
230
230
|
let A = ne(), j = o(), M = a((e) => e.taskTree), N = a((e) => e.expandedIds), P = a((e) => e.toggleExpand), F = a((e) => e.timeScale), I = a((e) => e.addTask), re = a((e) => e.updateTask), ie = a((e) => e.deleteTask), L = a((e) => e.assigneeFilter), R = g(() => {
|
|
231
231
|
let n = t(M, N);
|
|
232
232
|
return L ? e(n, L) : n;
|
|
@@ -260,11 +260,11 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
260
260
|
name: t
|
|
261
261
|
};
|
|
262
262
|
re(n), p?.(j.getState().tasks), w?.(n);
|
|
263
|
-
}, K =
|
|
263
|
+
}, K = v ? (e) => {
|
|
264
264
|
W(e), B(!0);
|
|
265
|
-
} : l, q =
|
|
265
|
+
} : l, q = v ? (e) => {
|
|
266
266
|
W(e), V(!0);
|
|
267
|
-
} : u, J =
|
|
267
|
+
} : u, J = v ? (e) => {
|
|
268
268
|
W(e), H(!0);
|
|
269
269
|
} : d, Y = !!(K || q || J), X = F === "days" ? 80 : 40, [Z, Q] = _(null), $ = Z ? R.findIndex((e) => e.id === Z) : -1;
|
|
270
270
|
h(() => {
|
|
@@ -281,7 +281,7 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
281
281
|
let t = R.length;
|
|
282
282
|
t !== 0 && (e.key === "ArrowDown" ? (e.preventDefault(), Q(R[Math.min($ < 0 ? 0 : $ + 1, t - 1)].id)) : e.key === "ArrowUp" ? (e.preventDefault(), Q(R[Math.max($ <= 0 ? 0 : $ - 1, 0)].id)) : e.key === "Enter" && $ >= 0 ? (e.preventDefault(), q?.(R[$])) : e.key === "Escape" && Q(null));
|
|
283
283
|
}
|
|
284
|
-
return /* @__PURE__ */
|
|
284
|
+
return /* @__PURE__ */ x(s, {
|
|
285
285
|
ref: n,
|
|
286
286
|
onScroll: r,
|
|
287
287
|
tabIndex: 0,
|
|
@@ -295,7 +295,7 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
295
295
|
outline: "none"
|
|
296
296
|
},
|
|
297
297
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ x(s, {
|
|
299
299
|
sx: {
|
|
300
300
|
height: X,
|
|
301
301
|
position: "sticky",
|
|
@@ -308,7 +308,7 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
308
308
|
display: "flex",
|
|
309
309
|
flexDirection: "column"
|
|
310
310
|
},
|
|
311
|
-
children: [/* @__PURE__ */
|
|
311
|
+
children: [/* @__PURE__ */ x(s, {
|
|
312
312
|
sx: {
|
|
313
313
|
height: 40,
|
|
314
314
|
display: "flex",
|
|
@@ -318,19 +318,19 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
318
318
|
borderColor: F === "days" ? "divider" : void 0
|
|
319
319
|
},
|
|
320
320
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ b(s, {
|
|
322
322
|
sx: {
|
|
323
323
|
flex: 1,
|
|
324
324
|
minWidth: 0,
|
|
325
325
|
pl: 2
|
|
326
326
|
},
|
|
327
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ b(m, {
|
|
328
328
|
variant: "caption",
|
|
329
329
|
color: "text.secondary",
|
|
330
330
|
children: A.columnName
|
|
331
331
|
})
|
|
332
332
|
}),
|
|
333
|
-
k && /* @__PURE__ */
|
|
333
|
+
k && /* @__PURE__ */ b(s, {
|
|
334
334
|
sx: {
|
|
335
335
|
width: 110,
|
|
336
336
|
flexShrink: 0,
|
|
@@ -338,13 +338,13 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
338
338
|
alignItems: "center",
|
|
339
339
|
px: 1
|
|
340
340
|
},
|
|
341
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ b(m, {
|
|
342
342
|
variant: "caption",
|
|
343
343
|
color: "text.secondary",
|
|
344
344
|
children: A.columnAssignee
|
|
345
345
|
})
|
|
346
346
|
}),
|
|
347
|
-
Y && /* @__PURE__ */
|
|
347
|
+
Y && /* @__PURE__ */ b(s, {
|
|
348
348
|
sx: {
|
|
349
349
|
width: 96,
|
|
350
350
|
flexShrink: 0,
|
|
@@ -352,13 +352,13 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
352
352
|
alignItems: "center",
|
|
353
353
|
justifyContent: "center"
|
|
354
354
|
},
|
|
355
|
-
children: /* @__PURE__ */
|
|
355
|
+
children: /* @__PURE__ */ b(m, {
|
|
356
356
|
variant: "caption",
|
|
357
357
|
color: "text.secondary",
|
|
358
358
|
children: A.columnActions
|
|
359
359
|
})
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ b(s, {
|
|
362
362
|
sx: {
|
|
363
363
|
width: 90,
|
|
364
364
|
flexShrink: 0,
|
|
@@ -366,21 +366,21 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
366
366
|
alignItems: "center",
|
|
367
367
|
justifyContent: "center"
|
|
368
368
|
},
|
|
369
|
-
children: /* @__PURE__ */
|
|
369
|
+
children: /* @__PURE__ */ b(m, {
|
|
370
370
|
variant: "caption",
|
|
371
371
|
color: "text.secondary",
|
|
372
372
|
children: A.columnStatus
|
|
373
373
|
})
|
|
374
374
|
})
|
|
375
375
|
]
|
|
376
|
-
}), F === "days" && /* @__PURE__ */
|
|
376
|
+
}), F === "days" && /* @__PURE__ */ b(s, { sx: { flex: 1 } })]
|
|
377
377
|
}),
|
|
378
|
-
O ? /* @__PURE__ */
|
|
378
|
+
O ? /* @__PURE__ */ b(s, {
|
|
379
379
|
sx: {
|
|
380
380
|
position: "relative",
|
|
381
381
|
height: z.getTotalSize()
|
|
382
382
|
},
|
|
383
|
-
children: z.getVirtualItems().map((e) => /* @__PURE__ */
|
|
383
|
+
children: z.getVirtualItems().map((e) => /* @__PURE__ */ b(s, {
|
|
384
384
|
style: {
|
|
385
385
|
position: "absolute",
|
|
386
386
|
top: 0,
|
|
@@ -389,7 +389,7 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
389
389
|
height: 40,
|
|
390
390
|
transform: `translateY(${e.start}px)`
|
|
391
391
|
},
|
|
392
|
-
children: /* @__PURE__ */
|
|
392
|
+
children: /* @__PURE__ */ b(E, {
|
|
393
393
|
task: R[e.index],
|
|
394
394
|
expandedIds: N,
|
|
395
395
|
toggleExpand: P,
|
|
@@ -406,7 +406,7 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
406
406
|
onSelect: () => Q(R[e.index].id)
|
|
407
407
|
})
|
|
408
408
|
}, e.key))
|
|
409
|
-
}) : R.map((e) => /* @__PURE__ */
|
|
409
|
+
}) : R.map((e) => /* @__PURE__ */ b(E, {
|
|
410
410
|
task: e,
|
|
411
411
|
expandedIds: N,
|
|
412
412
|
toggleExpand: P,
|
|
@@ -422,22 +422,22 @@ function D({ scrollRef: n, onScroll: r, panelWidth: te, onTaskClick: c, onAddTas
|
|
|
422
422
|
isSelected: e.id === Z,
|
|
423
423
|
onSelect: () => Q(e.id)
|
|
424
424
|
}, e.id)),
|
|
425
|
-
|
|
426
|
-
/* @__PURE__ */
|
|
425
|
+
v && /* @__PURE__ */ x(y, { children: [
|
|
426
|
+
/* @__PURE__ */ b(i, {
|
|
427
427
|
open: ae,
|
|
428
428
|
mode: "add",
|
|
429
429
|
defaultParentId: U?.id,
|
|
430
430
|
onSave: ce,
|
|
431
431
|
onClose: () => B(!1)
|
|
432
432
|
}),
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ b(i, {
|
|
434
434
|
open: oe,
|
|
435
435
|
mode: "edit",
|
|
436
436
|
initialTask: U ?? void 0,
|
|
437
437
|
onSave: le,
|
|
438
438
|
onClose: () => V(!1)
|
|
439
439
|
}),
|
|
440
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ b(ee, {
|
|
441
441
|
open: se,
|
|
442
442
|
task: U,
|
|
443
443
|
onConfirm: ue,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type KanbanBoardProps } from "./KanbanBoard.types";
|
|
2
|
-
export declare function KanbanBoard({ tasks, columns, onTasksChange, onCardClick, enableBuiltinDialogs, onTaskCreated, onTaskUpdated, onTaskDeleted, onTaskMoved, showPriority, showAssignee, showDueDate, showDueDateWarning, chipVariant, filterText, width, height, translation, }: KanbanBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function KanbanBoard({ tasks, columns, onTasksChange, onCardClick, enableBuiltinDialogs, onTaskCreated, onTaskUpdated, onTaskDeleted, onTaskMoved, showPriority, showAssignee, showDueDate, showDueDateWarning, showSubtasks, chipVariant, showSearchField, filterText, width, height, translation, }: KanbanBoardProps): import("react/jsx-runtime").JSX.Element;
|