@parallelworks/tandem-web 0.185.0 → 0.186.1
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/_virtual/_virtual_i18n/en/common.js +19 -4
- package/_virtual/_virtual_i18n/es/common.js +19 -4
- package/_virtual/_virtual_i18n/ja/common.js +19 -4
- package/_virtual/_virtual_i18n/ko/common.js +19 -4
- package/_virtual/_virtual_i18n/zh/common.js +19 -4
- package/components/DocsTree.js +149 -139
- package/components/FavoriteStar.js +13 -1
- package/components/FavoritesNav.js +97 -60
- package/components/StatusRules.js +119 -85
- package/package.json +1 -1
- package/pages/areas.js +183 -173
- package/pages/decisions.js +61 -57
- package/pages/projects.js +71 -67
- package/pages/triage.js +197 -184
- package/routes/_workspace/agents/index2.js +95 -87
- package/routes/_workspace/dashboards/index2.js +61 -53
- package/routes/_workspace/docs/space2._space.js +105 -94
- package/routes/_workspace/graph3.js +69 -60
- package/routes/_workspace/measures3.js +82 -74
- package/routes/_workspace/notifications2.js +236 -230
- package/routes/_workspace/teams/_key/cycles/index2.js +98 -88
- package/routes/_workspace2.js +3 -2
|
@@ -7,23 +7,23 @@ import { useNavigate as a } from "../lib/router.js";
|
|
|
7
7
|
import { teamPath as o } from "../lib/teamPaths.js";
|
|
8
8
|
import { DocIcon as s } from "./DocIcon.js";
|
|
9
9
|
import { EntityIcon as c } from "./EntityIcon.js";
|
|
10
|
-
import {
|
|
11
|
-
import { NewProjectDialog as
|
|
12
|
-
import { menuDivider as
|
|
13
|
-
import { useState as
|
|
14
|
-
import { useTranslations as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { useQuery as
|
|
17
|
-
import { MoreButton as
|
|
18
|
-
import { AppFrameNavGroup as
|
|
10
|
+
import { AreaIcon as l, ChartIcon as u, CycleIcon as d, FileTextIcon as f, InboxIcon as p, LibraryIcon as m, ListViewIcon as h, NotificationIcon as g, ProjectIcon as _, StatusIcon as v, TriageIcon as y, UserIcon as b } from "./icons.js";
|
|
11
|
+
import { NewProjectDialog as x } from "./NewProjectDialog.js";
|
|
12
|
+
import { menuDivider as S, useOpenMenu as C } from "@parallelworks/ui";
|
|
13
|
+
import { useState as w } from "react";
|
|
14
|
+
import { useTranslations as T } from "use-intl";
|
|
15
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
16
|
+
import { useQuery as O } from "@tanstack/react-query";
|
|
17
|
+
import { MoreButton as k } from "@parallelworks/ui/list";
|
|
18
|
+
import { AppFrameNavGroup as A, AppFrameNavItem as j } from "@parallelworks/ui/app-frame";
|
|
19
19
|
// src/components/FavoritesNav.tsx
|
|
20
|
-
var
|
|
21
|
-
function
|
|
20
|
+
var M = (...e) => e.filter(Boolean).join(" ");
|
|
21
|
+
function N(e, n, r, i) {
|
|
22
22
|
switch (e.kind) {
|
|
23
23
|
case "issue": return {
|
|
24
24
|
href: `/${n}/issues/${e.issue?.identifier ?? ""}`,
|
|
25
25
|
label: e.issue ? `${e.issue.identifier} ${e.issue.title}` : i("issue"),
|
|
26
|
-
icon: e.issue ? /* @__PURE__ */
|
|
26
|
+
icon: e.issue ? /* @__PURE__ */ E(v, {
|
|
27
27
|
category: e.issue.status.category,
|
|
28
28
|
review: e.issue.status.review,
|
|
29
29
|
step: e.issue.status.step
|
|
@@ -32,7 +32,7 @@ function k(e, n, r, i) {
|
|
|
32
32
|
case "team": return {
|
|
33
33
|
href: o(n, e.team?.key ?? "", "issues"),
|
|
34
34
|
label: e.team?.name ?? i("team"),
|
|
35
|
-
icon: e.team ? /* @__PURE__ */
|
|
35
|
+
icon: e.team ? /* @__PURE__ */ E(c, {
|
|
36
36
|
icon: e.team.icon,
|
|
37
37
|
color: e.team.color,
|
|
38
38
|
name: e.team.name
|
|
@@ -41,7 +41,7 @@ function k(e, n, r, i) {
|
|
|
41
41
|
case "doc": return {
|
|
42
42
|
href: `/${n}/docs/${e.doc ? t(e.doc) : ""}`,
|
|
43
43
|
label: e.doc?.title ?? i("doc"),
|
|
44
|
-
icon: /* @__PURE__ */
|
|
44
|
+
icon: /* @__PURE__ */ E(s, {
|
|
45
45
|
icon: e.doc?.icon,
|
|
46
46
|
className: "size-4"
|
|
47
47
|
})
|
|
@@ -49,11 +49,11 @@ function k(e, n, r, i) {
|
|
|
49
49
|
case "project": return {
|
|
50
50
|
href: `/${n}/projects/${e.plan?.ref ?? e.target}`,
|
|
51
51
|
label: e.plan?.name ?? i("project"),
|
|
52
|
-
icon: e.plan?.icon || e.plan?.color ? /* @__PURE__ */
|
|
52
|
+
icon: e.plan?.icon || e.plan?.color ? /* @__PURE__ */ E(c, {
|
|
53
53
|
icon: e.plan.icon ?? "",
|
|
54
54
|
color: e.plan.color ?? "",
|
|
55
55
|
name: e.plan.name
|
|
56
|
-
}) : /* @__PURE__ */
|
|
56
|
+
}) : /* @__PURE__ */ E(_, { className: "size-4" })
|
|
57
57
|
};
|
|
58
58
|
case "cycle": return {
|
|
59
59
|
href: `${o(n, e.team?.key ?? "", "cycles")}/${e.plan?.ref ?? ""}`,
|
|
@@ -61,46 +61,83 @@ function k(e, n, r, i) {
|
|
|
61
61
|
team: e.team?.key ?? "",
|
|
62
62
|
number: e.plan.ref
|
|
63
63
|
}) : i("cycle"),
|
|
64
|
-
icon: /* @__PURE__ */
|
|
64
|
+
icon: /* @__PURE__ */ E(d, { className: "size-4" })
|
|
65
65
|
};
|
|
66
66
|
case "view": return {
|
|
67
67
|
href: e.target,
|
|
68
68
|
label: e.label || i("view"),
|
|
69
|
-
icon: /* @__PURE__ */
|
|
69
|
+
icon: /* @__PURE__ */ E(h, { className: "size-4" })
|
|
70
70
|
};
|
|
71
|
-
case "page": return
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
case "page": return {
|
|
72
|
+
decisions: {
|
|
73
|
+
href: `/${n}/decisions`,
|
|
74
|
+
label: i("decisions"),
|
|
75
|
+
icon: /* @__PURE__ */ E(p, { className: "size-4" })
|
|
76
|
+
},
|
|
77
|
+
agents: {
|
|
78
|
+
href: `/${n}/agents`,
|
|
79
|
+
label: i("agents"),
|
|
80
|
+
icon: /* @__PURE__ */ E(b, { className: "size-4" })
|
|
81
|
+
},
|
|
82
|
+
projects: {
|
|
83
|
+
href: `/${n}/projects`,
|
|
84
|
+
label: i("projects"),
|
|
85
|
+
icon: /* @__PURE__ */ E(_, { className: "size-4" })
|
|
86
|
+
},
|
|
87
|
+
knowledge: {
|
|
88
|
+
href: `/${n}/knowledge`,
|
|
89
|
+
label: i("knowledge"),
|
|
90
|
+
icon: /* @__PURE__ */ E(m, { className: "size-4" })
|
|
91
|
+
},
|
|
92
|
+
docs: {
|
|
93
|
+
href: `/${n}/docs`,
|
|
94
|
+
label: i("docs"),
|
|
95
|
+
icon: /* @__PURE__ */ E(f, { className: "size-4" })
|
|
96
|
+
},
|
|
97
|
+
"my-issues": {
|
|
98
|
+
href: `/${n}/issues?assignee=${r}`,
|
|
99
|
+
label: i("myIssues"),
|
|
100
|
+
icon: /* @__PURE__ */ E(b, { className: "size-4" })
|
|
101
|
+
},
|
|
102
|
+
notifications: {
|
|
103
|
+
href: `/${n}/notifications`,
|
|
104
|
+
label: i("notifications"),
|
|
105
|
+
icon: /* @__PURE__ */ E(g, { className: "size-4" })
|
|
106
|
+
},
|
|
107
|
+
dashboards: {
|
|
108
|
+
href: `/${n}/dashboards`,
|
|
109
|
+
label: i("dashboards"),
|
|
110
|
+
icon: /* @__PURE__ */ E(u, { className: "size-4" })
|
|
111
|
+
},
|
|
112
|
+
areas: {
|
|
113
|
+
href: `/${n}/areas`,
|
|
114
|
+
label: i("areas"),
|
|
115
|
+
icon: /* @__PURE__ */ E(l, { className: "size-4" })
|
|
116
|
+
},
|
|
117
|
+
triage: {
|
|
118
|
+
href: `/${n}/triage`,
|
|
119
|
+
label: i("triage"),
|
|
120
|
+
icon: /* @__PURE__ */ E(y, { className: "size-4" })
|
|
121
|
+
},
|
|
122
|
+
graph: {
|
|
123
|
+
href: `/${n}/graph`,
|
|
124
|
+
label: i("graph"),
|
|
125
|
+
icon: /* @__PURE__ */ E(m, { className: "size-4" })
|
|
126
|
+
},
|
|
127
|
+
measures: {
|
|
128
|
+
href: `/${n}/measures`,
|
|
129
|
+
label: i("measures"),
|
|
130
|
+
icon: /* @__PURE__ */ E(h, { className: "size-4" })
|
|
131
|
+
}
|
|
132
|
+
}[e.target] ?? {
|
|
96
133
|
href: `/${n}/issues`,
|
|
97
134
|
label: i("issues"),
|
|
98
|
-
icon: /* @__PURE__ */
|
|
135
|
+
icon: /* @__PURE__ */ E(h, { className: "size-4" })
|
|
99
136
|
};
|
|
100
137
|
}
|
|
101
138
|
}
|
|
102
|
-
function
|
|
103
|
-
let { favorites: c, remove: l, move: u } = n(t), d =
|
|
139
|
+
function P({ workspace: t, myUsername: o, currentHref: s }) {
|
|
140
|
+
let { favorites: c, remove: l, move: u } = n(t), d = C(), f = T("favorites"), p = T("common"), m = T("planning"), h = a(), [g, _] = w(null), [v, y] = w(null), [b, P] = w(null), F = i(t, "manage_projects"), { data: I = [] } = O({
|
|
104
141
|
...e(t),
|
|
105
142
|
enabled: F && c.some((e) => e.kind === "project")
|
|
106
143
|
});
|
|
@@ -122,7 +159,7 @@ function A({ workspace: t, myUsername: o, currentHref: s }) {
|
|
|
122
159
|
href: t,
|
|
123
160
|
target: "_blank"
|
|
124
161
|
},
|
|
125
|
-
|
|
162
|
+
S,
|
|
126
163
|
{
|
|
127
164
|
label: f("remove"),
|
|
128
165
|
onClick: () => l(e.id)
|
|
@@ -136,42 +173,42 @@ function A({ workspace: t, myUsername: o, currentHref: s }) {
|
|
|
136
173
|
...i && { before: i.id }
|
|
137
174
|
});
|
|
138
175
|
};
|
|
139
|
-
return /* @__PURE__ */
|
|
176
|
+
return /* @__PURE__ */ D(A, {
|
|
140
177
|
label: f("title"),
|
|
141
178
|
collapsible: !1,
|
|
142
179
|
children: [c.map((e) => {
|
|
143
|
-
let n =
|
|
144
|
-
return /* @__PURE__ */
|
|
180
|
+
let n = N(e, t, o, f);
|
|
181
|
+
return /* @__PURE__ */ E(j, {
|
|
145
182
|
label: n.label,
|
|
146
183
|
icon: n.icon,
|
|
147
184
|
href: n.href,
|
|
148
185
|
selected: n.href === s,
|
|
149
186
|
draggable: !0,
|
|
150
187
|
onDragStart: (t) => {
|
|
151
|
-
|
|
188
|
+
_(e.id), t.dataTransfer.effectAllowed = "move";
|
|
152
189
|
},
|
|
153
190
|
onDragOver: (t) => {
|
|
154
|
-
t.preventDefault(),
|
|
191
|
+
t.preventDefault(), y(e.id);
|
|
155
192
|
},
|
|
156
|
-
onDragLeave: () =>
|
|
193
|
+
onDragLeave: () => y((t) => t === e.id ? null : t),
|
|
157
194
|
onDrop: (t) => {
|
|
158
|
-
t.preventDefault(), B(e.id),
|
|
195
|
+
t.preventDefault(), B(e.id), _(null), y(null);
|
|
159
196
|
},
|
|
160
197
|
onDragEnd: () => {
|
|
161
|
-
|
|
198
|
+
_(null), y(null);
|
|
162
199
|
},
|
|
163
200
|
onContextMenu: (t) => d(t, z(e, n.href)),
|
|
164
|
-
className:
|
|
165
|
-
action: /* @__PURE__ */
|
|
201
|
+
className: M(g === e.id && "opacity-40", v === e.id && g !== e.id && "ring-1 ring-primary/60"),
|
|
202
|
+
action: /* @__PURE__ */ E(k, {
|
|
166
203
|
items: () => z(e, n.href),
|
|
167
204
|
label: p("moreActionsFor", { name: n.label })
|
|
168
205
|
})
|
|
169
206
|
}, e.id);
|
|
170
|
-
}),
|
|
207
|
+
}), b && /* @__PURE__ */ E(x, {
|
|
171
208
|
workspace: t,
|
|
172
|
-
parentId:
|
|
209
|
+
parentId: b,
|
|
173
210
|
onClose: () => P(null)
|
|
174
211
|
})]
|
|
175
212
|
});
|
|
176
213
|
}
|
|
177
|
-
export {
|
|
214
|
+
export { P as FavoritesNav };
|
|
@@ -1,134 +1,168 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
2
|
import { statusesQuery as n, teamsQuery as r } from "../api/queries.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { StatusIcon as i } from "./icons.js";
|
|
4
|
+
import { Checkbox as a, ErrorText as o, InfoTip as s, SegmentedControl as c, SettingRow as l, SettingsCard as u, Switch as d, Table as f } from "@parallelworks/ui";
|
|
5
|
+
import { useState as p } from "react";
|
|
6
|
+
import { useErrorMessage as m } from "@parallelworks/problem/react";
|
|
7
|
+
import { useTranslations as h } from "use-intl";
|
|
8
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
+
import { useMutation as v, useQueryClient as y, useSuspenseQuery as b } from "@tanstack/react-query";
|
|
9
10
|
// src/components/StatusRules.tsx
|
|
10
|
-
var
|
|
11
|
+
var x = [
|
|
11
12
|
"member",
|
|
12
13
|
"agent",
|
|
13
14
|
"admin"
|
|
14
|
-
],
|
|
15
|
+
], S = [
|
|
15
16
|
"assignee",
|
|
16
17
|
"estimate",
|
|
17
18
|
"pullRequest",
|
|
18
19
|
"comment"
|
|
19
20
|
];
|
|
20
|
-
function
|
|
21
|
-
|
|
21
|
+
function C({ status: e }) {
|
|
22
|
+
return /* @__PURE__ */ _("span", {
|
|
23
|
+
className: "inline-flex items-center gap-1.5 whitespace-nowrap",
|
|
24
|
+
children: [/* @__PURE__ */ g(i, {
|
|
25
|
+
category: e.category,
|
|
26
|
+
review: e.review,
|
|
27
|
+
step: e.step
|
|
28
|
+
}), e.name]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function w({ workspace: i, team: w, isAdmin: T }) {
|
|
32
|
+
let E = h("statusRules"), D = m(), O = y(), { data: k } = b(n(i, w.key)), [A, j] = p("member"), M = w.statusRules, N = v({
|
|
22
33
|
mutationFn: async (n) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
23
34
|
params: { path: {
|
|
24
|
-
workspace:
|
|
25
|
-
key:
|
|
35
|
+
workspace: i,
|
|
36
|
+
key: w.key
|
|
26
37
|
} },
|
|
27
38
|
body: { statusRules: n }
|
|
28
39
|
})),
|
|
29
|
-
onMutate: (e) =>
|
|
40
|
+
onMutate: (e) => O.setQueryData(r(i).queryKey, (t) => t?.map((t) => t.id === w.id ? {
|
|
30
41
|
...t,
|
|
31
42
|
statusRules: e
|
|
32
43
|
} : t)),
|
|
33
|
-
onSettled: () =>
|
|
34
|
-
}),
|
|
35
|
-
...
|
|
36
|
-
moves: [...
|
|
37
|
-
role:
|
|
44
|
+
onSettled: () => O.invalidateQueries({ queryKey: r(i).queryKey })
|
|
45
|
+
}), P = M.moves.find((e) => e.role === A), F = (e) => N.mutate({
|
|
46
|
+
...M,
|
|
47
|
+
moves: [...M.moves.filter((e) => e.role !== A), ...e ? [{
|
|
48
|
+
role: A,
|
|
38
49
|
moves: e
|
|
39
50
|
}] : []]
|
|
40
|
-
}),
|
|
51
|
+
}), I = (e, t) => !P || P.moves.some((n) => n.from === e && n.to === t), L = (e, t, n) => F(n ? [...P?.moves ?? [], {
|
|
41
52
|
from: e,
|
|
42
53
|
to: t
|
|
43
|
-
}] : (
|
|
44
|
-
let r = n ? [...
|
|
45
|
-
|
|
46
|
-
...
|
|
47
|
-
requires: [...
|
|
54
|
+
}] : (P?.moves ?? []).filter((n) => n.from !== e || n.to !== t)), R = (e) => M.requires.find((t) => t.statusId === e)?.fields ?? [], z = (e, t, n) => {
|
|
55
|
+
let r = n ? [...R(e), t] : R(e).filter((e) => e !== t);
|
|
56
|
+
N.mutate({
|
|
57
|
+
...M,
|
|
58
|
+
requires: [...M.requires.filter((t) => t.statusId !== e), ...r.length > 0 ? [{
|
|
48
59
|
statusId: e,
|
|
49
60
|
fields: r
|
|
50
61
|
}] : []]
|
|
51
62
|
});
|
|
52
|
-
},
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
title:
|
|
55
|
-
description:
|
|
63
|
+
}, B = !T;
|
|
64
|
+
return /* @__PURE__ */ _(u, {
|
|
65
|
+
title: E("title"),
|
|
66
|
+
description: E("description"),
|
|
56
67
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
children:
|
|
61
|
-
|
|
68
|
+
/* @__PURE__ */ _("section", {
|
|
69
|
+
"aria-labelledby": "status-needs",
|
|
70
|
+
className: "space-y-2 px-4 py-3",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ g("h3", {
|
|
73
|
+
id: "status-needs",
|
|
74
|
+
className: "text-sm font-medium",
|
|
75
|
+
children: E("needsTitle")
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ g("p", {
|
|
78
|
+
className: "text-xs text-muted-foreground",
|
|
79
|
+
children: E("needsIntro")
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ _(f, {
|
|
82
|
+
rounded: !0,
|
|
83
|
+
caps: !1,
|
|
84
|
+
density: "compact",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ g(f.Header, { children: E("status") }),
|
|
87
|
+
S.map((e) => /* @__PURE__ */ g(f.Header, {
|
|
88
|
+
className: "text-center",
|
|
89
|
+
children: /* @__PURE__ */ _("span", {
|
|
90
|
+
className: "inline-flex items-center justify-center gap-1 whitespace-nowrap",
|
|
91
|
+
children: [E(`fields.${e}`), /* @__PURE__ */ g(s, { text: E(`fieldHelp.${e}`) })]
|
|
92
|
+
})
|
|
93
|
+
}, e)),
|
|
94
|
+
k.map((e) => /* @__PURE__ */ _("tr", { children: [/* @__PURE__ */ g(f.Item, { children: /* @__PURE__ */ g(C, { status: e }) }), S.map((t) => /* @__PURE__ */ g(f.Item, { children: /* @__PURE__ */ g(a, {
|
|
95
|
+
className: "mx-auto",
|
|
96
|
+
"aria-label": E("need", {
|
|
97
|
+
field: E(`fields.${t}`),
|
|
98
|
+
status: e.name
|
|
99
|
+
}),
|
|
100
|
+
checked: R(e.id).includes(t),
|
|
101
|
+
disabled: B,
|
|
102
|
+
onCheckedChange: (n) => z(e.id, t, n)
|
|
103
|
+
}) }, t))] }, e.id))
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ g(l, {
|
|
109
|
+
label: E("movesTitle"),
|
|
110
|
+
helpText: E("movesHelp"),
|
|
111
|
+
children: /* @__PURE__ */ g(c, {
|
|
112
|
+
label: E("role"),
|
|
62
113
|
size: "sm",
|
|
63
|
-
value:
|
|
64
|
-
onValueChange:
|
|
65
|
-
options:
|
|
114
|
+
value: A,
|
|
115
|
+
onValueChange: j,
|
|
116
|
+
options: x.map((e) => ({
|
|
66
117
|
value: e,
|
|
67
|
-
label:
|
|
118
|
+
label: E(`roles.${e}`)
|
|
68
119
|
}))
|
|
69
120
|
})
|
|
70
121
|
}),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
label:
|
|
73
|
-
helpText:
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
-
"aria-label":
|
|
76
|
-
checked: !!
|
|
77
|
-
disabled:
|
|
78
|
-
onCheckedChange: (e) =>
|
|
122
|
+
/* @__PURE__ */ g(l, {
|
|
123
|
+
label: E("limit", { role: E(`roles.${A}`) }),
|
|
124
|
+
helpText: E("limitHelp"),
|
|
125
|
+
children: /* @__PURE__ */ g(d, {
|
|
126
|
+
"aria-label": E("limit", { role: E(`roles.${A}`) }),
|
|
127
|
+
checked: !!P,
|
|
128
|
+
disabled: B,
|
|
129
|
+
onCheckedChange: (e) => F(e ? k.flatMap((e) => k.filter((t) => t.id !== e.id).map((t) => ({
|
|
79
130
|
from: e.id,
|
|
80
131
|
to: t.id
|
|
81
132
|
}))) : null)
|
|
82
133
|
})
|
|
83
134
|
}),
|
|
84
|
-
|
|
85
|
-
className: "
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
children: e.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
children: e.id !== t.id && /* @__PURE__ */ p(i, {
|
|
100
|
-
"aria-label": C("move", {
|
|
135
|
+
P && /* @__PURE__ */ g("div", {
|
|
136
|
+
className: "px-4 py-3",
|
|
137
|
+
children: /* @__PURE__ */ _(f, {
|
|
138
|
+
rounded: !0,
|
|
139
|
+
caps: !1,
|
|
140
|
+
density: "compact",
|
|
141
|
+
children: [
|
|
142
|
+
/* @__PURE__ */ g(f.Header, { children: E("fromTo") }),
|
|
143
|
+
k.map((e) => /* @__PURE__ */ g(f.Header, {
|
|
144
|
+
className: "text-center",
|
|
145
|
+
children: /* @__PURE__ */ g(C, { status: e })
|
|
146
|
+
}, e.id)),
|
|
147
|
+
k.map((e) => /* @__PURE__ */ _("tr", { children: [/* @__PURE__ */ g(f.Item, { children: /* @__PURE__ */ g(C, { status: e }) }), k.map((t) => /* @__PURE__ */ g(f.Item, { children: e.id !== t.id && /* @__PURE__ */ g(a, {
|
|
148
|
+
className: "mx-auto",
|
|
149
|
+
"aria-label": E("move", {
|
|
101
150
|
from: e.name,
|
|
102
151
|
to: t.name
|
|
103
152
|
}),
|
|
104
|
-
checked:
|
|
105
|
-
disabled:
|
|
106
|
-
onCheckedChange: (n) =>
|
|
107
|
-
})
|
|
108
|
-
|
|
153
|
+
checked: I(e.id, t.id),
|
|
154
|
+
disabled: B,
|
|
155
|
+
onCheckedChange: (n) => L(e.id, t.id, n)
|
|
156
|
+
}) }, t.id))] }, e.id))
|
|
157
|
+
]
|
|
109
158
|
})
|
|
110
159
|
}),
|
|
111
|
-
|
|
112
|
-
label: C("needs", { status: e.name }),
|
|
113
|
-
helpText: C("needsHelp"),
|
|
114
|
-
children: /* @__PURE__ */ p("div", {
|
|
115
|
-
className: "flex flex-wrap justify-end gap-x-4 gap-y-2",
|
|
116
|
-
children: y.map((t) => /* @__PURE__ */ m("label", {
|
|
117
|
-
className: "flex items-center gap-1.5 text-sm",
|
|
118
|
-
children: [/* @__PURE__ */ p(i, {
|
|
119
|
-
checked: F(e.id).includes(t),
|
|
120
|
-
disabled: L,
|
|
121
|
-
onCheckedChange: (n) => I(e.id, t, n)
|
|
122
|
-
}), C(`fields.${t}`)]
|
|
123
|
-
}, t))
|
|
124
|
-
})
|
|
125
|
-
}, e.id)),
|
|
126
|
-
A.isError && /* @__PURE__ */ p(a, {
|
|
160
|
+
N.isError && /* @__PURE__ */ g(o, {
|
|
127
161
|
size: "md",
|
|
128
162
|
className: "px-4 pb-3",
|
|
129
|
-
children:
|
|
163
|
+
children: D(N.error)
|
|
130
164
|
})
|
|
131
165
|
]
|
|
132
166
|
});
|
|
133
167
|
}
|
|
134
|
-
export {
|
|
168
|
+
export { w as StatusRules };
|