@thebuoyant-tsdev/mui-ts-library 3.34.0 → 3.36.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 +19 -2
- package/README.md +19 -2
- package/dist/components/gantt-chart/GanttTaskPanel.js +66 -66
- package/dist/components/kanban-board/KanbanBoard.d.ts +1 -1
- package/dist/components/kanban-board/KanbanBoard.js +163 -88
- package/dist/components/kanban-board/KanbanBoard.types.d.ts +49 -0
- package/dist/components/kanban-board/KanbanBoard.types.js +10 -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 +5 -1
- package/dist/components/kanban-board/KanbanBoardColumn.js +115 -54
- package/dist/components/kanban-board/KanbanBoardColumnDialog.d.ts +17 -0
- package/dist/components/kanban-board/KanbanBoardColumnDialog.js +78 -0
- 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/RichTextEditorTableMenu.js +32 -32
- package/dist/components/tag-selection/TagSelectionAutocomplete.js +4 -4
- package/dist/index.cjs +2 -2
- package/package.json +6 -2
|
@@ -2,13 +2,24 @@ import { kanbanBoardClasses as e } from "./kanbanBoardClasses.js";
|
|
|
2
2
|
import { KanbanBoardCard as t } from "./KanbanBoardCard.js";
|
|
3
3
|
import { useDroppable as n } from "@dnd-kit/core";
|
|
4
4
|
import { SortableContext as r, verticalListSortingStrategy as i } from "@dnd-kit/sortable";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import a from "@mui/icons-material/Add";
|
|
6
|
+
import { Box as o, Button as s, Chip as c, IconButton as l, TextField as u, Tooltip as d, Typography as f } from "@mui/material";
|
|
7
|
+
import { useState as p } from "react";
|
|
8
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import g from "@mui/icons-material/DeleteOutlined";
|
|
10
|
+
import _ from "@mui/icons-material/EditOutlined";
|
|
8
11
|
//#region src/components/kanban-board/KanbanBoardColumn.tsx
|
|
9
|
-
function
|
|
10
|
-
let { setNodeRef:
|
|
11
|
-
|
|
12
|
+
function v({ column: v, tasks: y, totalCount: b, showPriority: x, showAssignee: S, showDueDate: C, showDueDateWarning: w, showSubtasks: T, chipVariant: E, t: D, enableBuiltinDialogs: O, enableColumnManagement: k, onCardClick: A, onAddClick: j, onColumnRename: M, onColumnDeleteRequest: N }) {
|
|
13
|
+
let { setNodeRef: P, isOver: F } = n({ id: v.id }), [I, L] = p(!1), [R, z] = p(v.label);
|
|
14
|
+
function B() {
|
|
15
|
+
let e = R.trim();
|
|
16
|
+
e && e !== v.label ? M(v.id, e) : z(v.label), L(!1);
|
|
17
|
+
}
|
|
18
|
+
function V() {
|
|
19
|
+
z(v.label), L(!0);
|
|
20
|
+
}
|
|
21
|
+
let H = v.wipLimit !== void 0 && b > v.wipLimit, U = v.wipLimit === void 0 ? `${y.length}` : `${y.length} / ${v.wipLimit}`, W = v.color ?? "primary.main";
|
|
22
|
+
return /* @__PURE__ */ h(o, {
|
|
12
23
|
className: e.column,
|
|
13
24
|
sx: {
|
|
14
25
|
display: "flex",
|
|
@@ -23,7 +34,7 @@ function f({ column: f, tasks: p, totalCount: m, showPriority: h, showAssignee:
|
|
|
23
34
|
borderColor: "divider"
|
|
24
35
|
},
|
|
25
36
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ h(o, {
|
|
27
38
|
className: e.columnHeader,
|
|
28
39
|
sx: {
|
|
29
40
|
px: 2,
|
|
@@ -33,38 +44,86 @@ function f({ column: f, tasks: p, totalCount: m, showPriority: h, showAssignee:
|
|
|
33
44
|
gap: 1,
|
|
34
45
|
borderBottom: "1px solid",
|
|
35
46
|
borderColor: "divider",
|
|
36
|
-
borderTop: `3px solid ${
|
|
47
|
+
borderTop: `3px solid ${v.color ?? "transparent"}`,
|
|
37
48
|
bgcolor: (e) => e.palette.mode === "dark" ? "grey.800" : "grey.300"
|
|
38
49
|
},
|
|
39
|
-
children: [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
children: [
|
|
51
|
+
I ? /* @__PURE__ */ m(u, {
|
|
52
|
+
autoFocus: !0,
|
|
53
|
+
size: "small",
|
|
54
|
+
value: R,
|
|
55
|
+
onChange: (e) => z(e.target.value),
|
|
56
|
+
onBlur: B,
|
|
57
|
+
onKeyDown: (e) => {
|
|
58
|
+
e.key === "Enter" && (e.preventDefault(), B()), e.key === "Escape" && (z(v.label), L(!1));
|
|
59
|
+
},
|
|
60
|
+
sx: {
|
|
61
|
+
flex: 1,
|
|
62
|
+
"& .MuiInputBase-input": {
|
|
63
|
+
fontWeight: 700,
|
|
64
|
+
fontSize: "0.875rem",
|
|
65
|
+
py: .5
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
slotProps: { htmlInput: { "aria-label": D.columnRenameTooltip } }
|
|
69
|
+
}) : /* @__PURE__ */ m(f, {
|
|
70
|
+
className: e.columnTitle,
|
|
71
|
+
variant: "subtitle2",
|
|
72
|
+
sx: {
|
|
73
|
+
flex: 1,
|
|
74
|
+
fontWeight: 700
|
|
75
|
+
},
|
|
76
|
+
children: v.label
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ m(c, {
|
|
79
|
+
className: e.columnCount,
|
|
80
|
+
label: U,
|
|
81
|
+
size: "small",
|
|
82
|
+
color: H ? "error" : "default",
|
|
83
|
+
sx: {
|
|
84
|
+
height: 20,
|
|
85
|
+
fontSize: "0.7rem",
|
|
86
|
+
...!H && v.color && {
|
|
87
|
+
bgcolor: v.color,
|
|
88
|
+
color: "#fff"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"aria-label": `${y.length} cards${v.wipLimit ? ` of ${v.wipLimit} limit` : ""}${y.length === b ? "" : ` (${b} total)`}`
|
|
92
|
+
}),
|
|
93
|
+
k && !I && /* @__PURE__ */ h(o, {
|
|
94
|
+
className: e.columnActions,
|
|
95
|
+
sx: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
gap: .25
|
|
98
|
+
},
|
|
99
|
+
children: [/* @__PURE__ */ m(d, {
|
|
100
|
+
title: D.columnRenameTooltip,
|
|
101
|
+
children: /* @__PURE__ */ m(l, {
|
|
102
|
+
size: "small",
|
|
103
|
+
onClick: V,
|
|
104
|
+
sx: { p: .25 },
|
|
105
|
+
children: /* @__PURE__ */ m(_, { sx: { fontSize: 18 } })
|
|
106
|
+
})
|
|
107
|
+
}), /* @__PURE__ */ m(d, {
|
|
108
|
+
title: D.columnDeleteTooltip,
|
|
109
|
+
children: /* @__PURE__ */ m(l, {
|
|
110
|
+
size: "small",
|
|
111
|
+
onClick: () => N(v.id),
|
|
112
|
+
sx: {
|
|
113
|
+
p: .25,
|
|
114
|
+
color: "error.main"
|
|
115
|
+
},
|
|
116
|
+
children: /* @__PURE__ */ m(g, { sx: { fontSize: 18 } })
|
|
117
|
+
})
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
120
|
+
]
|
|
62
121
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
items:
|
|
122
|
+
/* @__PURE__ */ m(r, {
|
|
123
|
+
items: y.map((e) => e.id),
|
|
65
124
|
strategy: i,
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
ref:
|
|
125
|
+
children: /* @__PURE__ */ h(o, {
|
|
126
|
+
ref: P,
|
|
68
127
|
className: e.columnBody,
|
|
69
128
|
sx: {
|
|
70
129
|
flex: 1,
|
|
@@ -73,10 +132,10 @@ function f({ column: f, tasks: p, totalCount: m, showPriority: h, showAssignee:
|
|
|
73
132
|
"&::-webkit-scrollbar": { display: "none" },
|
|
74
133
|
p: 1,
|
|
75
134
|
minHeight: 80,
|
|
76
|
-
bgcolor: (e) =>
|
|
135
|
+
bgcolor: (e) => F ? e.palette.action.selected : e.palette.mode === "dark" ? e.palette.grey[900] : e.palette.grey[100],
|
|
77
136
|
transition: "background-color 0.15s"
|
|
78
137
|
},
|
|
79
|
-
children: [
|
|
138
|
+
children: [y.length === 0 && !F && /* @__PURE__ */ m(f, {
|
|
80
139
|
variant: "caption",
|
|
81
140
|
color: "text.disabled",
|
|
82
141
|
sx: {
|
|
@@ -84,36 +143,38 @@ function f({ column: f, tasks: p, totalCount: m, showPriority: h, showAssignee:
|
|
|
84
143
|
textAlign: "center",
|
|
85
144
|
mt: 2
|
|
86
145
|
},
|
|
87
|
-
children:
|
|
88
|
-
}),
|
|
146
|
+
children: D.noCardsLabel
|
|
147
|
+
}), y.map((e) => /* @__PURE__ */ m(t, {
|
|
89
148
|
task: e,
|
|
90
|
-
showPriority:
|
|
91
|
-
showAssignee:
|
|
92
|
-
showDueDate:
|
|
93
|
-
showDueDateWarning:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
149
|
+
showPriority: x,
|
|
150
|
+
showAssignee: S,
|
|
151
|
+
showDueDate: C,
|
|
152
|
+
showDueDateWarning: w,
|
|
153
|
+
showSubtasks: T,
|
|
154
|
+
enableBuiltinDialogs: O,
|
|
155
|
+
chipVariant: E,
|
|
156
|
+
t: D,
|
|
157
|
+
onCardClick: A
|
|
97
158
|
}, e.id))]
|
|
98
159
|
})
|
|
99
160
|
}),
|
|
100
|
-
|
|
161
|
+
O && /* @__PURE__ */ m(o, {
|
|
101
162
|
sx: {
|
|
102
163
|
p: 1,
|
|
103
164
|
borderTop: "1px solid",
|
|
104
165
|
borderColor: "divider"
|
|
105
166
|
},
|
|
106
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ m(s, {
|
|
107
168
|
className: e.addButton,
|
|
108
|
-
startIcon: /* @__PURE__ */
|
|
169
|
+
startIcon: /* @__PURE__ */ m(a, {}),
|
|
109
170
|
size: "small",
|
|
110
171
|
fullWidth: !0,
|
|
111
|
-
onClick: () =>
|
|
172
|
+
onClick: () => j(v.id),
|
|
112
173
|
sx: {
|
|
113
174
|
justifyContent: "flex-start",
|
|
114
|
-
color:
|
|
175
|
+
color: W,
|
|
115
176
|
border: "1px dashed",
|
|
116
|
-
borderColor:
|
|
177
|
+
borderColor: W,
|
|
117
178
|
borderRadius: 1,
|
|
118
179
|
py: .75,
|
|
119
180
|
fontWeight: 600,
|
|
@@ -123,11 +184,11 @@ function f({ column: f, tasks: p, totalCount: m, showPriority: h, showAssignee:
|
|
|
123
184
|
borderStyle: "dashed"
|
|
124
185
|
}
|
|
125
186
|
},
|
|
126
|
-
children:
|
|
187
|
+
children: D.addCardLabel
|
|
127
188
|
})
|
|
128
189
|
})
|
|
129
190
|
]
|
|
130
191
|
});
|
|
131
192
|
}
|
|
132
193
|
//#endregion
|
|
133
|
-
export {
|
|
194
|
+
export { v as KanbanBoardColumn };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { KanbanBoardTranslation, KanbanColumn } from "./KanbanBoard.types";
|
|
2
|
+
export type KanbanColumnDialogState = {
|
|
3
|
+
mode: "add";
|
|
4
|
+
} | {
|
|
5
|
+
mode: "delete";
|
|
6
|
+
column: KanbanColumn;
|
|
7
|
+
cardCount: number;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
state: KanbanColumnDialogState | null;
|
|
11
|
+
t: Required<KanbanBoardTranslation>;
|
|
12
|
+
onAdd: (column: KanbanColumn) => void;
|
|
13
|
+
onDelete: (columnId: string) => void;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function KanbanBoardColumnDialog({ state, t, onAdd, onDelete, onClose }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Box as e, Button as t, Dialog as n, DialogActions as r, DialogContent as i, DialogTitle as a, TextField as o, Typography as s } from "@mui/material";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/kanban-board/KanbanBoardColumnDialog.tsx
|
|
5
|
+
function d({ state: d, t: f, onAdd: p, onDelete: m, onClose: h }) {
|
|
6
|
+
let [g, _] = c("");
|
|
7
|
+
if (!d) return null;
|
|
8
|
+
function v() {
|
|
9
|
+
let e = g.trim();
|
|
10
|
+
e && (p({
|
|
11
|
+
id: crypto.randomUUID(),
|
|
12
|
+
label: e
|
|
13
|
+
}), _(""));
|
|
14
|
+
}
|
|
15
|
+
if (d.mode === "add") return /* @__PURE__ */ u(n, {
|
|
16
|
+
open: !0,
|
|
17
|
+
onClose: h,
|
|
18
|
+
maxWidth: "xs",
|
|
19
|
+
fullWidth: !0,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ l(a, { children: f.columnAddLabel }),
|
|
22
|
+
/* @__PURE__ */ l(i, { children: /* @__PURE__ */ l(o, {
|
|
23
|
+
autoFocus: !0,
|
|
24
|
+
fullWidth: !0,
|
|
25
|
+
size: "small",
|
|
26
|
+
placeholder: f.columnAddPlaceholder,
|
|
27
|
+
value: g,
|
|
28
|
+
onChange: (e) => _(e.target.value),
|
|
29
|
+
onKeyDown: (e) => {
|
|
30
|
+
e.key === "Enter" && v(), e.key === "Escape" && h();
|
|
31
|
+
},
|
|
32
|
+
sx: { mt: 1 }
|
|
33
|
+
}) }),
|
|
34
|
+
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(t, {
|
|
35
|
+
onClick: h,
|
|
36
|
+
children: f.dialogCancel
|
|
37
|
+
}), /* @__PURE__ */ l(t, {
|
|
38
|
+
variant: "contained",
|
|
39
|
+
onClick: v,
|
|
40
|
+
disabled: !g.trim(),
|
|
41
|
+
children: f.dialogSave
|
|
42
|
+
})] })
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
let y = f.columnDeleteConfirm.replace("{label}", d.column.label), b = d.cardCount > 0;
|
|
46
|
+
return /* @__PURE__ */ u(n, {
|
|
47
|
+
open: !0,
|
|
48
|
+
onClose: h,
|
|
49
|
+
maxWidth: "xs",
|
|
50
|
+
fullWidth: !0,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ l(a, { children: y }),
|
|
53
|
+
b && /* @__PURE__ */ l(i, { children: /* @__PURE__ */ l(e, {
|
|
54
|
+
sx: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
gap: 1
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ l(s, {
|
|
60
|
+
variant: "body2",
|
|
61
|
+
color: "text.secondary",
|
|
62
|
+
children: f.columnDeleteCardsWarning.replace("{count}", String(d.cardCount))
|
|
63
|
+
})
|
|
64
|
+
}) }),
|
|
65
|
+
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(t, {
|
|
66
|
+
onClick: h,
|
|
67
|
+
children: f.dialogCancel
|
|
68
|
+
}), /* @__PURE__ */ l(t, {
|
|
69
|
+
color: "error",
|
|
70
|
+
variant: "contained",
|
|
71
|
+
onClick: () => m(d.column.id),
|
|
72
|
+
children: f.dialogDelete
|
|
73
|
+
})] })
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { d as KanbanBoardColumnDialog };
|
|
@@ -50,4 +50,12 @@ export declare const kanbanBoardClasses: {
|
|
|
50
50
|
readonly searchFieldWrapper: "MuiTsKanbanBoard-searchFieldWrapper";
|
|
51
51
|
/** The built-in search TextField (`showSearchField={true}`). */
|
|
52
52
|
readonly searchField: "MuiTsKanbanBoard-searchField";
|
|
53
|
+
/** The subtask progress row at the bottom of a card (bar + "N / M ✓" label). */
|
|
54
|
+
readonly cardSubtasks: "MuiTsKanbanBoard-cardSubtasks";
|
|
55
|
+
/** The LinearProgress bar inside the subtask row. */
|
|
56
|
+
readonly cardSubtasksBar: "MuiTsKanbanBoard-cardSubtasksBar";
|
|
57
|
+
/** The edit / delete icon row that appears on column header hover (`enableColumnManagement`). */
|
|
58
|
+
readonly columnActions: "MuiTsKanbanBoard-columnActions";
|
|
59
|
+
/** The "Add column" ghost button at the end of the columns row (`enableColumnManagement`). */
|
|
60
|
+
readonly columnAddButton: "MuiTsKanbanBoard-columnAddButton";
|
|
53
61
|
};
|
|
@@ -15,7 +15,11 @@ var e = {
|
|
|
15
15
|
cardPriorityDot: "MuiTsKanbanBoard-cardPriorityDot",
|
|
16
16
|
addButton: "MuiTsKanbanBoard-addButton",
|
|
17
17
|
searchFieldWrapper: "MuiTsKanbanBoard-searchFieldWrapper",
|
|
18
|
-
searchField: "MuiTsKanbanBoard-searchField"
|
|
18
|
+
searchField: "MuiTsKanbanBoard-searchField",
|
|
19
|
+
cardSubtasks: "MuiTsKanbanBoard-cardSubtasks",
|
|
20
|
+
cardSubtasksBar: "MuiTsKanbanBoard-cardSubtasksBar",
|
|
21
|
+
columnActions: "MuiTsKanbanBoard-columnActions",
|
|
22
|
+
columnAddButton: "MuiTsKanbanBoard-columnAddButton"
|
|
19
23
|
};
|
|
20
24
|
//#endregion
|
|
21
25
|
export { e as kanbanBoardClasses };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import d from "
|
|
5
|
-
import f from "@mui/icons-material/
|
|
1
|
+
import e from "@mui/icons-material/Add";
|
|
2
|
+
import { Divider as t, IconButton as n, ListItemIcon as r, ListItemText as i, Menu as a, MenuItem as o, Tooltip as s } from "@mui/material";
|
|
3
|
+
import { useState as c } from "react";
|
|
4
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
import f from "@mui/icons-material/Delete";
|
|
6
6
|
import p from "@mui/icons-material/TableChart";
|
|
7
7
|
//#region src/components/rich-text-editor/RichTextEditorTableMenu.tsx
|
|
8
8
|
function m({ editor: m, translation: h, disabled: g }) {
|
|
9
|
-
let [_, v] =
|
|
9
|
+
let [_, v] = c(null), y = g || !m, b = m?.isActive("table") ?? !1;
|
|
10
10
|
function x() {
|
|
11
11
|
v(null);
|
|
12
12
|
}
|
|
13
13
|
function S(e) {
|
|
14
14
|
e(), x();
|
|
15
15
|
}
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(s, {
|
|
17
17
|
title: h.table,
|
|
18
18
|
arrow: !0,
|
|
19
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(n, {
|
|
20
20
|
size: "small",
|
|
21
21
|
onMouseDown: (e) => e.preventDefault(),
|
|
22
22
|
onClick: (e) => v(e.currentTarget),
|
|
@@ -25,67 +25,67 @@ function m({ editor: m, translation: h, disabled: g }) {
|
|
|
25
25
|
sx: { borderRadius: 1 },
|
|
26
26
|
"aria-label": h.table,
|
|
27
27
|
"aria-pressed": b,
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ u(p, { fontSize: "small" })
|
|
29
29
|
}) })
|
|
30
|
-
}), /* @__PURE__ */
|
|
30
|
+
}), /* @__PURE__ */ d(a, {
|
|
31
31
|
anchorEl: _,
|
|
32
32
|
open: !!_,
|
|
33
33
|
onClose: x,
|
|
34
34
|
slotProps: { paper: { sx: { minWidth: 220 } } },
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ d(o, {
|
|
37
37
|
onClick: () => S(() => m?.chain().focus().insertTable({
|
|
38
38
|
rows: 3,
|
|
39
39
|
cols: 3,
|
|
40
40
|
withHeaderRow: !0
|
|
41
41
|
}).run()),
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(p, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.insertTable })]
|
|
43
43
|
}),
|
|
44
|
-
b && /* @__PURE__ */
|
|
45
|
-
b && /* @__PURE__ */
|
|
44
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
45
|
+
b && /* @__PURE__ */ d(o, {
|
|
46
46
|
onClick: () => S(() => m?.chain().focus().addRowBefore().run()),
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addRowBefore })]
|
|
48
48
|
}),
|
|
49
|
-
b && /* @__PURE__ */
|
|
49
|
+
b && /* @__PURE__ */ d(o, {
|
|
50
50
|
onClick: () => S(() => m?.chain().focus().addRowAfter().run()),
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addRowAfter })]
|
|
52
52
|
}),
|
|
53
|
-
b && /* @__PURE__ */
|
|
53
|
+
b && /* @__PURE__ */ d(o, {
|
|
54
54
|
onClick: () => S(() => m?.chain().focus().deleteRow().run()),
|
|
55
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
56
56
|
fontSize: "small",
|
|
57
57
|
color: "error"
|
|
58
|
-
}) }), /* @__PURE__ */
|
|
58
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
59
59
|
sx: { color: "error.main" },
|
|
60
60
|
children: h.deleteRow
|
|
61
61
|
})]
|
|
62
62
|
}),
|
|
63
|
-
b && /* @__PURE__ */
|
|
64
|
-
b && /* @__PURE__ */
|
|
63
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
64
|
+
b && /* @__PURE__ */ d(o, {
|
|
65
65
|
onClick: () => S(() => m?.chain().focus().addColumnBefore().run()),
|
|
66
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addColumnBefore })]
|
|
67
67
|
}),
|
|
68
|
-
b && /* @__PURE__ */
|
|
68
|
+
b && /* @__PURE__ */ d(o, {
|
|
69
69
|
onClick: () => S(() => m?.chain().focus().addColumnAfter().run()),
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addColumnAfter })]
|
|
71
71
|
}),
|
|
72
|
-
b && /* @__PURE__ */
|
|
72
|
+
b && /* @__PURE__ */ d(o, {
|
|
73
73
|
onClick: () => S(() => m?.chain().focus().deleteColumn().run()),
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
75
75
|
fontSize: "small",
|
|
76
76
|
color: "error"
|
|
77
|
-
}) }), /* @__PURE__ */
|
|
77
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
78
78
|
sx: { color: "error.main" },
|
|
79
79
|
children: h.deleteColumn
|
|
80
80
|
})]
|
|
81
81
|
}),
|
|
82
|
-
b && /* @__PURE__ */
|
|
83
|
-
b && /* @__PURE__ */
|
|
82
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
83
|
+
b && /* @__PURE__ */ d(o, {
|
|
84
84
|
onClick: () => S(() => m?.chain().focus().deleteTable().run()),
|
|
85
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
86
86
|
fontSize: "small",
|
|
87
87
|
color: "error"
|
|
88
|
-
}) }), /* @__PURE__ */
|
|
88
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
89
89
|
sx: { color: "error.main" },
|
|
90
90
|
children: h.deleteTable
|
|
91
91
|
})]
|
|
@@ -2,8 +2,8 @@ import { tagSelectionClasses as e } from "./tagSelectionClasses.js";
|
|
|
2
2
|
import { Autocomplete as t, Box as n, Chip as r, IconButton as i, Stack as a, Switch as ee, TextField as o, Tooltip as s, Typography as c } from "@mui/material";
|
|
3
3
|
import { useState as l } from "react";
|
|
4
4
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
5
|
-
import p from "@mui/icons-material/
|
|
6
|
-
import m from "@mui/icons-material/
|
|
5
|
+
import p from "@mui/icons-material/Close";
|
|
6
|
+
import m from "@mui/icons-material/Check";
|
|
7
7
|
//#region src/components/tag-selection/TagSelectionAutocomplete.tsx
|
|
8
8
|
var te = [
|
|
9
9
|
"default",
|
|
@@ -191,13 +191,13 @@ function x({ availableTags: x, searchValue: S, translation: C, onSearchChange: w
|
|
|
191
191
|
onClick: Z,
|
|
192
192
|
disabled: q,
|
|
193
193
|
"aria-label": C.confirmCreateLabel,
|
|
194
|
-
children: /* @__PURE__ */ d(
|
|
194
|
+
children: /* @__PURE__ */ d(m, { fontSize: "small" })
|
|
195
195
|
}), /* @__PURE__ */ d(i, {
|
|
196
196
|
size: "small",
|
|
197
197
|
onMouseDown: $,
|
|
198
198
|
onClick: Q,
|
|
199
199
|
"aria-label": C.cancelCreateLabel,
|
|
200
|
-
children: /* @__PURE__ */ d(
|
|
200
|
+
children: /* @__PURE__ */ d(p, { fontSize: "small" })
|
|
201
201
|
})] }), e.slotProps?.input?.endAdornment] })
|
|
202
202
|
}
|
|
203
203
|
}
|