@thebuoyant-tsdev/mui-ts-library 3.35.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 +8 -1
- package/README.md +8 -1
- package/dist/components/gantt-chart/GanttTaskPanel.js +56 -56
- package/dist/components/kanban-board/KanbanBoard.d.ts +1 -1
- package/dist/components/kanban-board/KanbanBoard.js +160 -89
- package/dist/components/kanban-board/KanbanBoard.types.d.ts +31 -0
- package/dist/components/kanban-board/KanbanBoard.types.js +7 -1
- package/dist/components/kanban-board/KanbanBoardCard.js +19 -19
- package/dist/components/kanban-board/KanbanBoardCardDialog.js +40 -40
- package/dist/components/kanban-board/KanbanBoardColumn.d.ts +4 -1
- package/dist/components/kanban-board/KanbanBoardColumn.js +115 -56
- 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 +4 -0
- package/dist/components/kanban-board/kanbanBoardClasses.js +3 -1
- package/dist/components/rich-text-editor/RichTextEditorTableMenu.js +29 -29
- package/dist/index.cjs +2 -2
- package/package.json +3 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import c from "
|
|
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
4
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
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__ */ d(l, { children: [/* @__PURE__ */ u(
|
|
16
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(s, {
|
|
17
17
|
title: h.table,
|
|
18
18
|
arrow: !0,
|
|
19
|
-
children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(
|
|
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),
|
|
@@ -27,65 +27,65 @@ function m({ editor: m, translation: h, disabled: g }) {
|
|
|
27
27
|
"aria-pressed": b,
|
|
28
28
|
children: /* @__PURE__ */ u(p, { fontSize: "small" })
|
|
29
29
|
}) })
|
|
30
|
-
}), /* @__PURE__ */ d(
|
|
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__ */ d(
|
|
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__ */ u(
|
|
42
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(p, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.insertTable })]
|
|
43
43
|
}),
|
|
44
|
-
b && /* @__PURE__ */ u(
|
|
45
|
-
b && /* @__PURE__ */ d(
|
|
44
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
45
|
+
b && /* @__PURE__ */ d(o, {
|
|
46
46
|
onClick: () => S(() => m?.chain().focus().addRowBefore().run()),
|
|
47
|
-
children: [/* @__PURE__ */ u(
|
|
47
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addRowBefore })]
|
|
48
48
|
}),
|
|
49
|
-
b && /* @__PURE__ */ d(
|
|
49
|
+
b && /* @__PURE__ */ d(o, {
|
|
50
50
|
onClick: () => S(() => m?.chain().focus().addRowAfter().run()),
|
|
51
|
-
children: [/* @__PURE__ */ u(
|
|
51
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addRowAfter })]
|
|
52
52
|
}),
|
|
53
|
-
b && /* @__PURE__ */ d(
|
|
53
|
+
b && /* @__PURE__ */ d(o, {
|
|
54
54
|
onClick: () => S(() => m?.chain().focus().deleteRow().run()),
|
|
55
|
-
children: [/* @__PURE__ */ u(
|
|
55
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
56
56
|
fontSize: "small",
|
|
57
57
|
color: "error"
|
|
58
|
-
}) }), /* @__PURE__ */ u(
|
|
58
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
59
59
|
sx: { color: "error.main" },
|
|
60
60
|
children: h.deleteRow
|
|
61
61
|
})]
|
|
62
62
|
}),
|
|
63
|
-
b && /* @__PURE__ */ u(
|
|
64
|
-
b && /* @__PURE__ */ d(
|
|
63
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
64
|
+
b && /* @__PURE__ */ d(o, {
|
|
65
65
|
onClick: () => S(() => m?.chain().focus().addColumnBefore().run()),
|
|
66
|
-
children: [/* @__PURE__ */ u(
|
|
66
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addColumnBefore })]
|
|
67
67
|
}),
|
|
68
|
-
b && /* @__PURE__ */ d(
|
|
68
|
+
b && /* @__PURE__ */ d(o, {
|
|
69
69
|
onClick: () => S(() => m?.chain().focus().addColumnAfter().run()),
|
|
70
|
-
children: [/* @__PURE__ */ u(
|
|
70
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(e, { fontSize: "small" }) }), /* @__PURE__ */ u(i, { children: h.addColumnAfter })]
|
|
71
71
|
}),
|
|
72
|
-
b && /* @__PURE__ */ d(
|
|
72
|
+
b && /* @__PURE__ */ d(o, {
|
|
73
73
|
onClick: () => S(() => m?.chain().focus().deleteColumn().run()),
|
|
74
|
-
children: [/* @__PURE__ */ u(
|
|
74
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
75
75
|
fontSize: "small",
|
|
76
76
|
color: "error"
|
|
77
|
-
}) }), /* @__PURE__ */ u(
|
|
77
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
78
78
|
sx: { color: "error.main" },
|
|
79
79
|
children: h.deleteColumn
|
|
80
80
|
})]
|
|
81
81
|
}),
|
|
82
|
-
b && /* @__PURE__ */ u(
|
|
83
|
-
b && /* @__PURE__ */ d(
|
|
82
|
+
b && /* @__PURE__ */ u(t, {}),
|
|
83
|
+
b && /* @__PURE__ */ d(o, {
|
|
84
84
|
onClick: () => S(() => m?.chain().focus().deleteTable().run()),
|
|
85
|
-
children: [/* @__PURE__ */ u(
|
|
85
|
+
children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(f, {
|
|
86
86
|
fontSize: "small",
|
|
87
87
|
color: "error"
|
|
88
|
-
}) }), /* @__PURE__ */ u(
|
|
88
|
+
}) }), /* @__PURE__ */ u(i, {
|
|
89
89
|
sx: { color: "error.main" },
|
|
90
90
|
children: h.deleteTable
|
|
91
91
|
})]
|