@edifice.io/collect-frontend 0.2.2-develop.4.20260518072830 → 0.2.2-develop.4.20260518091047
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/lib/{AppHeaderCollection-66c2o2Tr.js → AppHeaderCollection-CnQ2pqtl.js} +4 -4
- package/lib/{CXEL7IU7-Cq4BOk9I.js → CXEL7IU7-Dei8UEaR.js} +4 -4
- package/lib/{Collection-Cl_dSRb7.js → Collection-BcJujQH9.js} +9 -9
- package/lib/{CollectionsLayout-CvG9DsNd.js → CollectionsLayout-BWau0fFT.js} +6 -6
- package/lib/{CollectionsList-B0nEi6p1.js → CollectionsList-DoYvRzYy.js} +19 -19
- package/lib/{DeleteCollectionModal-BwDv_sAJ.js → DeleteCollectionModal-C8NPFHjI.js} +6 -6
- package/lib/{DropdownActionTable-Bs5EaiPg.js → DropdownActionTable-CJA3djIr.js} +1 -1
- package/lib/{FormEdit-DPdAv-EI.js → FormEdit-DrlhrKl6.js} +11 -11
- package/lib/{HASRA6WW-CKUmmELb.js → HASRA6WW-Lcj-6-Jg.js} +4 -4
- package/lib/{I3HPI4QX-qq_FZ0An.js → I3HPI4QX-BiqSZkoI.js} +11 -11
- package/lib/{MembersEdit-BpEFzaac.js → MembersEdit--SFUJ5dS.js} +19 -19
- package/lib/{Root-Dr9QdDIZ.js → Root-4Xv-j-fs.js} +1 -1
- package/lib/{Submission-BYOQgSji.js → Submission-Bi1puhNG.js} +21 -21
- package/lib/{SubmissionList-Bh7QvfHf.js → SubmissionList-BUexy8AF.js} +30 -30
- package/lib/{index-CpH8PYs9.js → index-DPvhGf6m.js} +88 -88
- package/lib/index.js +6 -6
- package/lib/{submission.queries-DnYMP3qt.js → submission.queries-rlTI0q9h.js} +7 -7
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEdificeClient as m, Flex as r, Button as u, IconButton as I, useBreakpoint as f, useDate as g, Badge as S } from "@edifice.io/react";
|
|
3
3
|
import { IconPinOn as O, IconOptions as y, IconSave as L, IconSend as v, IconArrowLeft as M, IconCalendarLight as N } from "@edifice.io/react/icons";
|
|
4
4
|
import { useTranslation as p } from "react-i18next";
|
|
5
|
-
import { u as b, D as w } from "./DropdownActionTable-
|
|
5
|
+
import { u as b, D as w } from "./DropdownActionTable-CJA3djIr.js";
|
|
6
6
|
import { ContribSubmissionStatus as x } from "@edifice.io/collect-client-rest";
|
|
7
7
|
import { create as A } from "zustand";
|
|
8
|
-
import {
|
|
8
|
+
import { J as H } from "./index-DPvhGf6m.js";
|
|
9
9
|
const D = ({
|
|
10
10
|
collection: o
|
|
11
11
|
}) => {
|
|
@@ -95,7 +95,7 @@ const D = ({
|
|
|
95
95
|
] });
|
|
96
96
|
};
|
|
97
97
|
var h = /* @__PURE__ */ ((o) => (o.COLLECTION = "COLLECTION", o.SUBMISSION = "SUBMISSION", o))(h || {});
|
|
98
|
-
const
|
|
98
|
+
const R = ({
|
|
99
99
|
collection: o,
|
|
100
100
|
onClickBack: t,
|
|
101
101
|
context: i,
|
|
@@ -166,7 +166,7 @@ const W = ({
|
|
|
166
166
|
] });
|
|
167
167
|
};
|
|
168
168
|
export {
|
|
169
|
-
|
|
169
|
+
R as A,
|
|
170
170
|
h as C,
|
|
171
171
|
B as u
|
|
172
172
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c,
|
|
2
|
-
import {
|
|
1
|
+
import { c as s, T as c, a as u, b as i, P as m, C as P, Q as d } from "./HASRA6WW-Lcj-6-Jg.js";
|
|
2
|
+
import { T as v, E as C, x as e } from "./index-DPvhGf6m.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -36,7 +36,7 @@ var h = (t) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
},
|
|
39
|
+
}, p = h;
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
p as default
|
|
42
42
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as Q } from "react/jsx-runtime";
|
|
2
2
|
import { SubmissionStatus as f, ManagerSubmissionStatus as M, WORKFLOW_RIGHTS as z } from "@edifice.io/collect-client-rest";
|
|
3
|
-
import { useDirectory as R, Flex as u, Avatar as P, Badge as v, useEdificeClient as w, Heading as O, Table as C, Button as x, LoadingScreen as T, Modal as I, Dropdown as N, useToast as G, useBreakpoint as j, useDate as _, EmptyScreen as
|
|
3
|
+
import { useDirectory as R, Flex as u, Avatar as P, Badge as v, useEdificeClient as w, Heading as O, Table as C, Button as x, LoadingScreen as T, Modal as I, Dropdown as N, useToast as G, useBreakpoint as j, useDate as _, EmptyScreen as J, Checkbox as K, Grid as L, useHasWorkflow as Y } from "@edifice.io/react";
|
|
4
4
|
import { useNavigate as $, useParams as X } from "react-router-dom";
|
|
5
5
|
import { useState as A, useEffect as k } from "react";
|
|
6
|
-
import { A as Z, C as q } from "./AppHeaderCollection-
|
|
6
|
+
import { A as Z, C as q } from "./AppHeaderCollection-CnQ2pqtl.js";
|
|
7
7
|
import { IconUsers as ee, IconRafterDown as U, IconEdit as te, IconTextPage as se, IconCalendarLight as ne } from "@edifice.io/react/icons";
|
|
8
8
|
import { useTranslation as D } from "react-i18next";
|
|
9
|
-
import {
|
|
9
|
+
import { b as ie, d as oe, a as ae } from "./submission.queries-rlTI0q9h.js";
|
|
10
10
|
import { create as ce } from "zustand";
|
|
11
|
-
import {
|
|
11
|
+
import { J as le, ai as re, P as de, t as ue } from "./index-DPvhGf6m.js";
|
|
12
12
|
import { u as F } from "./useGetStatusSubmission-DxHmLPxr.js";
|
|
13
|
-
import { u as E } from "./DropdownActionTable-
|
|
14
|
-
import { D as me } from "./DeleteCollectionModal-
|
|
13
|
+
import { u as E } from "./DropdownActionTable-CJA3djIr.js";
|
|
14
|
+
import { D as me } from "./DeleteCollectionModal-C8NPFHjI.js";
|
|
15
15
|
import { Editor as H } from "@edifice.io/react/editor";
|
|
16
16
|
import { E as he } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
17
17
|
const W = (t) => {
|
|
@@ -371,7 +371,7 @@ const W = (t) => {
|
|
|
371
371
|
}
|
|
372
372
|
),
|
|
373
373
|
i.status === f.EMPTY ? /* @__PURE__ */ e(
|
|
374
|
-
|
|
374
|
+
J,
|
|
375
375
|
{
|
|
376
376
|
imageSrc: he,
|
|
377
377
|
title: s("collection.collectionList.emptyScreen.title"),
|
|
@@ -382,7 +382,7 @@ const W = (t) => {
|
|
|
382
382
|
{
|
|
383
383
|
className: `border rounded p-8 ${h ? "bg-secondary-200 border-secondary" : ""}`,
|
|
384
384
|
children: /* @__PURE__ */ e(
|
|
385
|
-
|
|
385
|
+
K,
|
|
386
386
|
{
|
|
387
387
|
"data-testid": "collect-collection-submissions-list-checkbox-validate",
|
|
388
388
|
checked: h,
|
|
@@ -461,7 +461,7 @@ const W = (t) => {
|
|
|
461
461
|
ae(s)
|
|
462
462
|
), null;
|
|
463
463
|
}, $e = () => {
|
|
464
|
-
const t = X(), o =
|
|
464
|
+
const t = X(), o = Y(z.COLLECTION_CREATE), { data: s, isLoading: r } = re(
|
|
465
465
|
Number(t.collectionId)
|
|
466
466
|
);
|
|
467
467
|
return r ? /* @__PURE__ */ e(T, {}) : !o || !s ? /* @__PURE__ */ e(de, {}) : /* @__PURE__ */ e(Se, { collection: s });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { WORKFLOW_RIGHTS as u } from "@edifice.io/collect-client-rest";
|
|
3
|
-
import { useEdificeClient as f, useHasWorkflow as
|
|
3
|
+
import { useEdificeClient as f, useHasWorkflow as h, useBreakpoint as C, Flex as L, AppHeader as S, Breadcrumb as g, Grid as r, LoadingScreen as x } from "@edifice.io/react";
|
|
4
4
|
import { Suspense as N } from "react";
|
|
5
5
|
import { useLocation as I, Navigate as O, Outlet as A } from "react-router-dom";
|
|
6
|
-
import {
|
|
6
|
+
import { ah as E, M as a, A as T, d as w } from "./index-DPvhGf6m.js";
|
|
7
7
|
const B = async () => null, F = () => {
|
|
8
|
-
const { currentApp:
|
|
9
|
-
return n !== void 0 && !n && p ? /* @__PURE__ */ e(O, { to: `/${
|
|
10
|
-
|
|
8
|
+
const { currentApp: l } = f(), { pathname: s } = I(), n = h(u.COLLECTION_CREATE), { header: c, showMenu: i } = E(), { lg: d } = C(), m = c !== !1, o = i !== !1, p = s === "/" || s === `/${a.LIST_COLLECTIONS}`;
|
|
9
|
+
return n !== void 0 && !n && p ? /* @__PURE__ */ e(O, { to: `/${a.LIST_SUBMISSIONS}`, replace: !0 }) : /* @__PURE__ */ t(L, { direction: "column", className: "flex-grow-1", children: [
|
|
10
|
+
m && /* @__PURE__ */ e(S, { render: () => /* @__PURE__ */ e(T, {}), children: /* @__PURE__ */ e(g, { app: l }) }),
|
|
11
11
|
/* @__PURE__ */ t(r, { className: "flex-grow-1", children: [
|
|
12
12
|
o && /* @__PURE__ */ e(
|
|
13
13
|
r.Col,
|
|
@@ -28,7 +28,7 @@ const B = async () => null, F = () => {
|
|
|
28
28
|
md: "8",
|
|
29
29
|
lg: o ? "6" : "12",
|
|
30
30
|
xl: o ? "9" : "12",
|
|
31
|
-
className: `${o &&
|
|
31
|
+
className: `${o && d ? "cancel-gap" : ""}`,
|
|
32
32
|
children: /* @__PURE__ */ e(N, { fallback: /* @__PURE__ */ e(x, {}), children: /* @__PURE__ */ e(A, {}) })
|
|
33
33
|
}
|
|
34
34
|
)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e, Fragment as T, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as D, useMemo as L, useCallback as B, useEffect as E } from "react";
|
|
3
3
|
import { S as A } from "./SearchBarCollect-DBKaVVDV.js";
|
|
4
|
-
import {
|
|
4
|
+
import { J as F, aj as M, W as O, u as R } from "./index-DPvhGf6m.js";
|
|
5
5
|
import { useDate as $, Table as m, Flex as I, Badge as k, IconButton as S, useEdificeClient as v, EmptyScreen as G, LoadingScreen as j } from "@edifice.io/react";
|
|
6
6
|
import { useTranslation as N } from "react-i18next";
|
|
7
7
|
import { E as Q } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
8
|
-
import { D as W } from "./DeleteCollectionModal-
|
|
9
|
-
import { SortDirection as
|
|
8
|
+
import { D as W } from "./DeleteCollectionModal-C8NPFHjI.js";
|
|
9
|
+
import { SortDirection as b, CollectionSortField as y } from "@edifice.io/collect-client-rest";
|
|
10
10
|
import { create as _ } from "zustand";
|
|
11
|
-
import { IconOptions as H, IconRafterLeft as z, IconRafterRight as
|
|
12
|
-
import { t as
|
|
13
|
-
import { useNavigate as
|
|
14
|
-
import { D as V } from "./DropdownActionTable-
|
|
11
|
+
import { IconOptions as H, IconRafterLeft as z, IconRafterRight as J, IconListOrder as K, IconArrowUp as U, IconArrowDown as Y } from "@edifice.io/react/icons";
|
|
12
|
+
import { t as Z } from "i18next";
|
|
13
|
+
import { useNavigate as q } from "react-router-dom";
|
|
14
|
+
import { D as V } from "./DropdownActionTable-CJA3djIr.js";
|
|
15
15
|
const X = {
|
|
16
16
|
search: "",
|
|
17
17
|
sortBy: y.DEADLINE,
|
|
18
|
-
sortDirection:
|
|
18
|
+
sortDirection: b.DESC
|
|
19
19
|
}, x = F(
|
|
20
20
|
_((n) => ({
|
|
21
21
|
...X,
|
|
@@ -29,15 +29,15 @@ const X = {
|
|
|
29
29
|
sortBy: o,
|
|
30
30
|
sortDirection: a
|
|
31
31
|
}), [t, l] = D(1), c = L(() => {
|
|
32
|
-
var
|
|
33
|
-
const h = (
|
|
32
|
+
var C, p;
|
|
33
|
+
const h = (C = r == null ? void 0 : r.pages) == null ? void 0 : C[r.pages.length - 1];
|
|
34
34
|
return ((p = h == null ? void 0 : h.meta) == null ? void 0 : p.totalPages) ?? 1;
|
|
35
35
|
}, [r]), f = L(() => {
|
|
36
36
|
var h;
|
|
37
37
|
if ((h = r == null ? void 0 : r.pages) != null && h.length)
|
|
38
|
-
return r.pages.find((
|
|
38
|
+
return r.pages.find((C) => {
|
|
39
39
|
var p;
|
|
40
|
-
return ((p =
|
|
40
|
+
return ((p = C.meta) == null ? void 0 : p.currentPage) === t;
|
|
41
41
|
}) ?? r.pages[t - 1];
|
|
42
42
|
}, [r, t]);
|
|
43
43
|
return {
|
|
@@ -80,7 +80,7 @@ const X = {
|
|
|
80
80
|
}, oe = ({
|
|
81
81
|
collections: n
|
|
82
82
|
}) => {
|
|
83
|
-
const { fromNow: o, formatDate: a } = $(), r =
|
|
83
|
+
const { fromNow: o, formatDate: a } = $(), r = q(), {
|
|
84
84
|
isHovered: d,
|
|
85
85
|
setHoveredCollectionId: s,
|
|
86
86
|
getBgColor: i,
|
|
@@ -145,7 +145,7 @@ const X = {
|
|
|
145
145
|
"data-testid": "collect-collection-list-row-action-button",
|
|
146
146
|
className: "icon-button-hover-no-transition bg-white",
|
|
147
147
|
type: "button",
|
|
148
|
-
"aria-label":
|
|
148
|
+
"aria-label": Z("collection.table.th.action"),
|
|
149
149
|
color: "tertiary",
|
|
150
150
|
variant: "filled",
|
|
151
151
|
icon: /* @__PURE__ */ e(H, {}),
|
|
@@ -191,7 +191,7 @@ const X = {
|
|
|
191
191
|
{
|
|
192
192
|
variant: "ghost",
|
|
193
193
|
color: "tertiary",
|
|
194
|
-
icon: /* @__PURE__ */ e(
|
|
194
|
+
icon: /* @__PURE__ */ e(J, {}),
|
|
195
195
|
disabled: !r || d || s,
|
|
196
196
|
onClick: g
|
|
197
197
|
}
|
|
@@ -222,12 +222,12 @@ const X = {
|
|
|
222
222
|
label: o("collection.table.th.action")
|
|
223
223
|
}
|
|
224
224
|
], i = (l) => l.sortField && l.sortField === a, g = (l) => {
|
|
225
|
-
let c = /* @__PURE__ */ e(
|
|
226
|
-
return i(l) && (r ===
|
|
225
|
+
let c = /* @__PURE__ */ e(K, { width: 16, height: 16 });
|
|
226
|
+
return i(l) && (r === b.ASC ? c = /* @__PURE__ */ e(U, {}) : c = /* @__PURE__ */ e(Y, {})), c;
|
|
227
227
|
}, t = B(
|
|
228
228
|
(l) => {
|
|
229
|
-
let c =
|
|
230
|
-
a === l && r ===
|
|
229
|
+
let c = b.ASC;
|
|
230
|
+
a === l && r === b.ASC && (c = b.DESC), d(l, c);
|
|
231
231
|
},
|
|
232
232
|
[a, r, d]
|
|
233
233
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useEdificeClient as m, useToast as
|
|
3
|
-
import { IconDelete as
|
|
2
|
+
import { useEdificeClient as m, useToast as f, Modal as d, Button as C } from "@edifice.io/react";
|
|
3
|
+
import { IconDelete as h } from "@edifice.io/react/icons";
|
|
4
4
|
import { useTranslation as p } from "react-i18next";
|
|
5
|
-
import {
|
|
6
|
-
import { u as D } from "./DropdownActionTable-
|
|
5
|
+
import { al as M } from "./index-DPvhGf6m.js";
|
|
6
|
+
import { u as D } from "./DropdownActionTable-CJA3djIr.js";
|
|
7
7
|
const y = () => {
|
|
8
|
-
const { appCode: r } = m(), { t: n } = p(r), e =
|
|
8
|
+
const { appCode: r } = m(), { t: n } = p(r), e = f(), a = M(), { isDeleteModalOpen: l, onCloseDeleteModal: c, deleteCollectionId: i } = D((o) => ({
|
|
9
9
|
isDeleteModalOpen: o.isDeleteModalOpen,
|
|
10
10
|
onCloseDeleteModal: o.onCloseDeleteModal,
|
|
11
11
|
deleteCollectionId: o.deleteCollectionId
|
|
@@ -57,7 +57,7 @@ const y = () => {
|
|
|
57
57
|
"data-testid": "collect-collection-delete-modal-button-delete",
|
|
58
58
|
color: "danger",
|
|
59
59
|
onClick: i,
|
|
60
|
-
leftIcon: /* @__PURE__ */ t(
|
|
60
|
+
leftIcon: /* @__PURE__ */ t(h, {}),
|
|
61
61
|
children: e("collection.delete")
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -6,7 +6,7 @@ import { IconExternalLink as I, IconEdit as h, IconShare as O, IconDelete as w }
|
|
|
6
6
|
import { useTranslation as D } from "react-i18next";
|
|
7
7
|
import { useNavigate as C } from "react-router-dom";
|
|
8
8
|
import { create as b } from "zustand";
|
|
9
|
-
import {
|
|
9
|
+
import { J as M } from "./index-DPvhGf6m.js";
|
|
10
10
|
const T = b((e) => ({
|
|
11
11
|
isDeleteModalOpen: !1,
|
|
12
12
|
deleteCollectionId: null,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { WORKFLOW_RIGHTS as b, MediaType as v } from "@edifice.io/collect-client-rest";
|
|
3
|
-
import { useEdificeClient as x, useBreakpoint as I, useToast as w, useHasWorkflow as E, LoadingScreen as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useTranslation as
|
|
3
|
+
import { useEdificeClient as x, useBreakpoint as I, useToast as w, useHasWorkflow as E, LoadingScreen as L, Grid as h, Flex as y, Button as C } from "@edifice.io/react";
|
|
4
|
+
import { useState as O } from "react";
|
|
5
|
+
import { useTranslation as F } from "react-i18next";
|
|
6
6
|
import { useParams as P, useNavigate as k } from "react-router-dom";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { ap as A, ai as Q, P as R, e as W, t as j } from "./index-DPvhGf6m.js";
|
|
8
|
+
import { a as H } from "./submission.queries-rlTI0q9h.js";
|
|
9
9
|
const K = (s) => async ({ params: i }) => {
|
|
10
10
|
const a = Number(i.collectionId);
|
|
11
11
|
return await s.ensureQueryData(j(a)), await s.prefetchInfiniteQuery(
|
|
12
12
|
H(a)
|
|
13
13
|
), null;
|
|
14
14
|
}, J = () => {
|
|
15
|
-
const { appCode: s } = x(), { t: i } =
|
|
15
|
+
const { appCode: s } = x(), { t: i } = F(s), { lg: a } = I(), d = P(), p = k(), u = w(), f = E(b.COLLECTION_CREATE), m = A(), [e, N] = O(void 0), { data: o, isLoading: l } = Q(
|
|
16
16
|
Number(d.collectionId)
|
|
17
17
|
);
|
|
18
18
|
if (l)
|
|
19
|
-
return /* @__PURE__ */ t(
|
|
19
|
+
return /* @__PURE__ */ t(L, {});
|
|
20
20
|
if (!f || !o) return /* @__PURE__ */ t(R, {});
|
|
21
21
|
const T = async () => {
|
|
22
22
|
const r = Number(d.collectionId);
|
|
@@ -29,7 +29,7 @@ const K = (s) => async ({ params: i }) => {
|
|
|
29
29
|
sharings: (e == null ? void 0 : e.sharings) ?? []
|
|
30
30
|
};
|
|
31
31
|
try {
|
|
32
|
-
await
|
|
32
|
+
await m.mutateAsync({
|
|
33
33
|
id: r,
|
|
34
34
|
data: {
|
|
35
35
|
name: c.title,
|
|
@@ -45,7 +45,7 @@ const K = (s) => async ({ params: i }) => {
|
|
|
45
45
|
}), u.success(i("collection.toast.success.collection.update"), {
|
|
46
46
|
duration: 1e4,
|
|
47
47
|
isDismissible: !0
|
|
48
|
-
}),
|
|
48
|
+
}), p(`/list-collections/id/${r}`);
|
|
49
49
|
} catch (n) {
|
|
50
50
|
u.error(i("collection.toast.error.collection.update"), {
|
|
51
51
|
duration: 1e4,
|
|
@@ -76,7 +76,7 @@ const K = (s) => async ({ params: i }) => {
|
|
|
76
76
|
variant: "outline",
|
|
77
77
|
color: "primary",
|
|
78
78
|
isLoading: l,
|
|
79
|
-
onClick: () =>
|
|
79
|
+
onClick: () => p(-1),
|
|
80
80
|
"data-testid": "collect-cancel-sharings-button",
|
|
81
81
|
children: i("collection.cancel")
|
|
82
82
|
}
|
|
@@ -86,7 +86,7 @@ const K = (s) => async ({ params: i }) => {
|
|
|
86
86
|
{
|
|
87
87
|
variant: "filled",
|
|
88
88
|
color: "primary",
|
|
89
|
-
isLoading: l ||
|
|
89
|
+
isLoading: l || m.isPending,
|
|
90
90
|
loadingPosition: "right",
|
|
91
91
|
onClick: T,
|
|
92
92
|
"data-testid": "collect-save-sharings-button",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var bs = Object.defineProperty;
|
|
2
2
|
var ps = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var qe = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import {
|
|
4
|
+
import { K as z, B as H, E as D, x as v, z as xe, a3 as wt, j as _o, l as N, Z as k, G, r as T, s as ws, N as or, ak as $e, a2 as V, a8 as Gn, a0 as Vn, a1 as dt, a7 as A, ac as q, Y as xs, af as cn, L as Ne, p as $s, X as qt, R as zt, U as Cs, V as Ss, Q as $n, F as ks, w as Br, ad as Kt, $ as Ro, aa as Es, _ as W, H as Nr, a6 as Ds, I as Ms, ae as ir, ao as As, n as Ts, ab as Fs, f as zn, m as Is, O as Os, a9 as oe, D as Ls, y as Ps } from "./index-DPvhGf6m.js";
|
|
5
5
|
var qs = (e) => e != null, _s = (e) => e.filter(qs);
|
|
6
6
|
function Rs(e) {
|
|
7
7
|
return (...t) => {
|
|
@@ -9084,10 +9084,10 @@ or(["click", "mousedown", "input"]);
|
|
|
9084
9084
|
export {
|
|
9085
9085
|
ys as C,
|
|
9086
9086
|
l0 as D,
|
|
9087
|
-
|
|
9087
|
+
c0 as P,
|
|
9088
9088
|
Ys as Q,
|
|
9089
9089
|
s0 as T,
|
|
9090
|
-
|
|
9091
|
-
|
|
9090
|
+
a0 as a,
|
|
9091
|
+
Xs as b,
|
|
9092
9092
|
i0 as c
|
|
9093
9093
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { c, T as l,
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
const [r,
|
|
1
|
+
import { c, T as l, a as m, b as u, D as v, Q as i } from "./HASRA6WW-Lcj-6-Jg.js";
|
|
2
|
+
import { T as d, E as f, x as e } from "./index-DPvhGf6m.js";
|
|
3
|
+
var p = (a) => {
|
|
4
|
+
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), n =
|
|
7
|
-
const
|
|
8
|
-
return
|
|
6
|
+
}), n = d(), s = f(() => {
|
|
7
|
+
const o = r.theme_preference || l;
|
|
8
|
+
return o !== "system" ? o : n();
|
|
9
9
|
});
|
|
10
10
|
return e(i.Provider, {
|
|
11
11
|
value: a,
|
|
12
12
|
get children() {
|
|
13
13
|
return e(m, {
|
|
14
14
|
localStore: r,
|
|
15
|
-
setLocalStore:
|
|
15
|
+
setLocalStore: t,
|
|
16
16
|
get children() {
|
|
17
17
|
return e(u.Provider, {
|
|
18
18
|
value: s,
|
|
19
19
|
get children() {
|
|
20
20
|
return e(v, {
|
|
21
21
|
localStore: r,
|
|
22
|
-
setLocalStore:
|
|
22
|
+
setLocalStore: t
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -27,7 +27,7 @@ var f = (a) => {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
},
|
|
30
|
+
}, E = p;
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
E as default
|
|
33
33
|
};
|
|
@@ -3,32 +3,32 @@ import { WORKFLOW_RIGHTS as N } from "@edifice.io/collect-client-rest";
|
|
|
3
3
|
import { useEdificeClient as T, useBreakpoint as v, useToast as I, useHasWorkflow as w, LoadingScreen as D, Grid as l, Flex as d, Button as u } from "@edifice.io/react";
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
5
|
import { useParams as O, useNavigate as S } from "react-router-dom";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const _ = (
|
|
9
|
-
const s = Number(
|
|
10
|
-
return await
|
|
11
|
-
|
|
6
|
+
import { aq as A, ar as m, ai as L, P as k, g as P, t as Q, q as R } from "./index-DPvhGf6m.js";
|
|
7
|
+
import { a as U } from "./submission.queries-rlTI0q9h.js";
|
|
8
|
+
const _ = (o) => async ({ params: t }) => {
|
|
9
|
+
const s = Number(t.collectionId);
|
|
10
|
+
return await o.ensureQueryData(Q(s)), await o.prefetchInfiniteQuery(
|
|
11
|
+
U(s)
|
|
12
12
|
), null;
|
|
13
|
-
},
|
|
14
|
-
const { appCode:
|
|
13
|
+
}, q = () => {
|
|
14
|
+
const { appCode: o } = T(), { t } = E(o), { lg: s } = v(), p = O(), r = I(), n = S(), g = w(N.COLLECTION_CREATE), h = A(), f = m.use.usersToAdd(), b = m.use.usersToDelete(), { data: i, isLoading: a } = L(
|
|
15
15
|
Number(p.collectionId)
|
|
16
16
|
);
|
|
17
|
-
if (
|
|
17
|
+
if (a)
|
|
18
18
|
return /* @__PURE__ */ e(D, {});
|
|
19
|
-
if (!g || !i) return /* @__PURE__ */ e(
|
|
19
|
+
if (!g || !i) return /* @__PURE__ */ e(k, {});
|
|
20
20
|
const C = async () => {
|
|
21
|
-
const y =
|
|
21
|
+
const y = R(b, f);
|
|
22
22
|
try {
|
|
23
23
|
await h.mutateAsync({
|
|
24
24
|
id: i.id,
|
|
25
25
|
data: y
|
|
26
|
-
}),
|
|
26
|
+
}), r.success(t("collection.toast.success.collection.update.members"), {
|
|
27
27
|
duration: 1e4,
|
|
28
28
|
isDismissible: !0
|
|
29
29
|
}), n(-1);
|
|
30
30
|
} catch (x) {
|
|
31
|
-
|
|
31
|
+
r.error(t("collection.toast.error.collection.update.members"), {
|
|
32
32
|
duration: 1e4,
|
|
33
33
|
isDismissible: !0
|
|
34
34
|
}), console.log(x);
|
|
@@ -41,7 +41,7 @@ const _ = (t) => async ({ params: o }) => {
|
|
|
41
41
|
direction: "column",
|
|
42
42
|
gap: "16",
|
|
43
43
|
className: "h-100 py-24 pb-lg-48 pt-lg-32",
|
|
44
|
-
children: /* @__PURE__ */ e(
|
|
44
|
+
children: /* @__PURE__ */ e(P, { collection: i })
|
|
45
45
|
}
|
|
46
46
|
) }) }),
|
|
47
47
|
/* @__PURE__ */ c(d, { justify: "end", className: "mt-auto px-48 pb-64 gap-16", children: [
|
|
@@ -50,10 +50,10 @@ const _ = (t) => async ({ params: o }) => {
|
|
|
50
50
|
{
|
|
51
51
|
variant: "outline",
|
|
52
52
|
color: "primary",
|
|
53
|
-
isLoading:
|
|
53
|
+
isLoading: a,
|
|
54
54
|
onClick: () => n(-1),
|
|
55
55
|
"data-testid": "collect-cancel-sharings-button",
|
|
56
|
-
children:
|
|
56
|
+
children: t("collection.cancel")
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
/* @__PURE__ */ e(
|
|
@@ -61,17 +61,17 @@ const _ = (t) => async ({ params: o }) => {
|
|
|
61
61
|
{
|
|
62
62
|
variant: "filled",
|
|
63
63
|
color: "primary",
|
|
64
|
-
isLoading:
|
|
64
|
+
isLoading: a,
|
|
65
65
|
loadingPosition: "right",
|
|
66
66
|
onClick: C,
|
|
67
67
|
"data-testid": "collect-save-sharings-button",
|
|
68
|
-
children:
|
|
68
|
+
children: t("collection.members.edit.save")
|
|
69
69
|
}
|
|
70
70
|
)
|
|
71
71
|
] })
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
q as MembersEdit,
|
|
76
76
|
_ as loader
|
|
77
77
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as t, Fragment as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { WORKFLOW_RIGHTS as f } from "@edifice.io/collect-client-rest";
|
|
3
3
|
import { useEdificeClient as u, useHasWorkflow as l, LoadingScreen as m, Layout as p } from "@edifice.io/react";
|
|
4
4
|
import { useLoaderData as L, Outlet as e, ScrollRestoration as n } from "react-router-dom";
|
|
5
|
-
import { P as d } from "./index-
|
|
5
|
+
import { P as d } from "./index-DPvhGf6m.js";
|
|
6
6
|
const g = async () => null;
|
|
7
7
|
function E() {
|
|
8
8
|
const { init: s } = u(), i = l(f.COLLECTION_ACCESS), o = L(), a = (o == null ? void 0 : o.header) !== !1;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useEdificeClient as m, Flex as l, Heading as y, IconButton as v, Modal as u, Button as
|
|
2
|
+
import { useEdificeClient as m, Flex as l, Heading as y, IconButton as v, Modal as u, Button as f, useToast as E, useBreakpoint as O, Grid as h, LoadingScreen as P } from "@edifice.io/react";
|
|
3
3
|
import { useNavigate as x, useParams as k } from "react-router-dom";
|
|
4
4
|
import { useState as B, useEffect as N } from "react";
|
|
5
|
-
import { u as g, A as T, C as j } from "./AppHeaderCollection-
|
|
5
|
+
import { u as g, A as T, C as j } from "./AppHeaderCollection-CnQ2pqtl.js";
|
|
6
6
|
import { Editor as U } from "@edifice.io/react/editor";
|
|
7
7
|
import { IconPinOn as A, IconRafterUp as H, IconRafterDown as Q, IconSend as F, IconTextPage as R } from "@edifice.io/react/icons";
|
|
8
|
-
import { useTranslation as
|
|
8
|
+
import { useTranslation as p } from "react-i18next";
|
|
9
9
|
import { ContribSubmissionStatus as $ } from "@edifice.io/collect-client-rest";
|
|
10
|
-
import { u as w } from "./DropdownActionTable-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { u as w } from "./DropdownActionTable-CJA3djIr.js";
|
|
11
|
+
import { c as W, u as z, s as G } from "./submission.queries-rlTI0q9h.js";
|
|
12
|
+
import { ai as V, P as J, t as K } from "./index-DPvhGf6m.js";
|
|
13
13
|
const I = ({
|
|
14
14
|
collection: n,
|
|
15
15
|
isMobile: o = !1
|
|
16
16
|
}) => {
|
|
17
|
-
const { appCode: i } = m(), { t } =
|
|
17
|
+
const { appCode: i } = m(), { t } = p(i), [e, c] = B(!o);
|
|
18
18
|
return /* @__PURE__ */ a("div", { className: `bg-white shadow rounded-4 ${o ? "p-16" : "p-24"}`, children: [
|
|
19
19
|
/* @__PURE__ */ a(l, { justify: "between", children: [
|
|
20
20
|
/* @__PURE__ */ a(l, { gap: "8", align: "center", children: [
|
|
@@ -55,7 +55,7 @@ const I = ({
|
|
|
55
55
|
isOpen: o,
|
|
56
56
|
handleUpdateSubmission: i
|
|
57
57
|
}) => {
|
|
58
|
-
const { appCode: t } = m(), { t: e } =
|
|
58
|
+
const { appCode: t } = m(), { t: e } = p(t), c = g.use.submissionIsLoading();
|
|
59
59
|
return /* @__PURE__ */ a(
|
|
60
60
|
u,
|
|
61
61
|
{
|
|
@@ -71,7 +71,7 @@ const I = ({
|
|
|
71
71
|
] }),
|
|
72
72
|
/* @__PURE__ */ a(u.Footer, { children: [
|
|
73
73
|
/* @__PURE__ */ s(
|
|
74
|
-
|
|
74
|
+
f,
|
|
75
75
|
{
|
|
76
76
|
"data-testid": "collect-submission-modal-button-cancel",
|
|
77
77
|
color: "tertiary",
|
|
@@ -81,7 +81,7 @@ const I = ({
|
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
83
|
/* @__PURE__ */ s(
|
|
84
|
-
|
|
84
|
+
f,
|
|
85
85
|
{
|
|
86
86
|
"data-testid": "collect-submission-modal-button-send",
|
|
87
87
|
onClick: () => i({
|
|
@@ -100,7 +100,7 @@ const I = ({
|
|
|
100
100
|
}, Y = ({
|
|
101
101
|
submission: n
|
|
102
102
|
}) => {
|
|
103
|
-
const { appCode: o } = m(), { t: i } =
|
|
103
|
+
const { appCode: o } = m(), { t: i } = p(o), t = w.use.isPastDeadline(), { setSubmissionData: e, hydrateSubmissionContent: c } = g((d) => ({
|
|
104
104
|
setSubmissionData: d.setSubmissionData,
|
|
105
105
|
hydrateSubmissionContent: d.hydrateSubmissionContent
|
|
106
106
|
}));
|
|
@@ -137,11 +137,11 @@ const I = ({
|
|
|
137
137
|
collection: n,
|
|
138
138
|
submission: o
|
|
139
139
|
}) => {
|
|
140
|
-
const { appCode: i } = m(), { t } =
|
|
140
|
+
const { appCode: i } = m(), { t } = p(i), e = E(), c = x(), {
|
|
141
141
|
submissionContent: d,
|
|
142
|
-
isUpdateSubmissionModalOpen:
|
|
142
|
+
isUpdateSubmissionModalOpen: b,
|
|
143
143
|
onCloseUpdateSubmissionModal: S,
|
|
144
|
-
setSubmissionIsLoading:
|
|
144
|
+
setSubmissionIsLoading: C
|
|
145
145
|
} = g((r) => ({
|
|
146
146
|
submissionContent: r.submissionContent,
|
|
147
147
|
isUpdateSubmissionModalOpen: r.isUpdateSubmissionModalOpen,
|
|
@@ -149,14 +149,14 @@ const I = ({
|
|
|
149
149
|
setSubmissionIsLoading: r.setSubmissionIsLoading
|
|
150
150
|
})), D = W();
|
|
151
151
|
return {
|
|
152
|
-
isOpen:
|
|
152
|
+
isOpen: b,
|
|
153
153
|
onClose: S,
|
|
154
154
|
handleUpdateSubmission: async ({
|
|
155
155
|
status: r,
|
|
156
156
|
isRedirect: L
|
|
157
157
|
}) => {
|
|
158
158
|
try {
|
|
159
|
-
|
|
159
|
+
C(!0), await D.mutateAsync({
|
|
160
160
|
collectionId: n.id,
|
|
161
161
|
submissionId: o.id,
|
|
162
162
|
data: {
|
|
@@ -169,7 +169,7 @@ const I = ({
|
|
|
169
169
|
} catch (M) {
|
|
170
170
|
console.error("Error updating submission:", M), e.error(t("collection.toast.error.submission.update"));
|
|
171
171
|
} finally {
|
|
172
|
-
|
|
172
|
+
C(!1), L && c("/list-submissions"), S();
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
};
|
|
@@ -180,9 +180,9 @@ const I = ({
|
|
|
180
180
|
const i = x(), { lg: t } = O(), { isOpen: e, onClose: c, handleUpdateSubmission: d } = Z({
|
|
181
181
|
collection: n,
|
|
182
182
|
submission: o
|
|
183
|
-
}),
|
|
183
|
+
}), b = w.use.setIsPastDeadline();
|
|
184
184
|
return N(() => {
|
|
185
|
-
|
|
185
|
+
b(new Date(n.deadline) < /* @__PURE__ */ new Date());
|
|
186
186
|
}, [n.deadline]), /* @__PURE__ */ a(
|
|
187
187
|
l,
|
|
188
188
|
{
|
|
@@ -242,7 +242,7 @@ const I = ({
|
|
|
242
242
|
return await n.ensureQueryData(
|
|
243
243
|
G(i, t)
|
|
244
244
|
), await n.ensureQueryData(K(i)), null;
|
|
245
|
-
},
|
|
245
|
+
}, ps = () => {
|
|
246
246
|
const n = k(), { isLoading: o, data: i } = z(
|
|
247
247
|
Number(n.collectionId),
|
|
248
248
|
Number(n.submissionId)
|
|
@@ -252,6 +252,6 @@ const I = ({
|
|
|
252
252
|
return o || e ? /* @__PURE__ */ s(P, {}) : !t || !i ? /* @__PURE__ */ s(J, {}) : /* @__PURE__ */ s(_, { collection: t, submission: i });
|
|
253
253
|
};
|
|
254
254
|
export {
|
|
255
|
-
|
|
255
|
+
ps as Submission,
|
|
256
256
|
ms as loader
|
|
257
257
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t, Fragment as C, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useEdificeClient as x, SegmentedControl as D, useDate as I, useDirectory as B, Card as p, Flex as g, Avatar as w, Badge as F, LoadingScreen as M, EmptyScreen as E, Grid as f, Button as P, useBreakpoint as $ } from "@edifice.io/react";
|
|
3
3
|
import { S as j } from "./SearchBarCollect-DBKaVVDV.js";
|
|
4
|
-
import { CollectionStatus as
|
|
4
|
+
import { CollectionStatus as v, SubmissionStatus as N } from "@edifice.io/collect-client-rest";
|
|
5
5
|
import { useTranslation as S } from "react-i18next";
|
|
6
6
|
import { create as R } from "zustand";
|
|
7
|
-
import {
|
|
7
|
+
import { J as U, am as Y, v as k } from "./index-DPvhGf6m.js";
|
|
8
8
|
import { IconRafterDown as z } from "@edifice.io/react/icons";
|
|
9
9
|
import { useNavigate as A } from "react-router-dom";
|
|
10
10
|
import { E as G } from "./emptyscreen-list-collection-CWGxO4Ss.js";
|
|
@@ -19,18 +19,18 @@ const Q = {
|
|
|
19
19
|
setSearchSubmission: (s) => e({ search: s })
|
|
20
20
|
}))
|
|
21
21
|
), V = () => {
|
|
22
|
-
const { appCode: e } = x(), { t: s } = S(e), { filter: o, setFilter:
|
|
22
|
+
const { appCode: e } = x(), { t: s } = S(e), { filter: o, setFilter: a } = b(), i = [
|
|
23
23
|
{
|
|
24
24
|
label: s("collection.submissionList.filter.all"),
|
|
25
25
|
value: "all"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
label: s("collection.submissionList.filter.toSubmit"),
|
|
29
|
-
value:
|
|
29
|
+
value: v.TO_SUBMIT
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
label: s("collection.submissionList.filter.submitted"),
|
|
33
|
-
value:
|
|
33
|
+
value: v.SUBMITTED
|
|
34
34
|
}
|
|
35
35
|
];
|
|
36
36
|
return /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t(
|
|
@@ -38,17 +38,17 @@ const Q = {
|
|
|
38
38
|
{
|
|
39
39
|
"data-testid": "collect-segmented-control-submission-filter",
|
|
40
40
|
onChange: (l) => {
|
|
41
|
-
|
|
41
|
+
a(l === "all" ? void 0 : l);
|
|
42
42
|
},
|
|
43
43
|
options: i,
|
|
44
44
|
value: o ?? "all"
|
|
45
45
|
}
|
|
46
46
|
) });
|
|
47
|
-
},
|
|
47
|
+
}, J = ({
|
|
48
48
|
collectionToSubmit: e,
|
|
49
49
|
onClick: s
|
|
50
50
|
}) => {
|
|
51
|
-
const { fromNow: o, formatDate:
|
|
51
|
+
const { fromNow: o, formatDate: a } = I(), { getAvatarURL: i } = B(), { appCode: m } = x(), { t: l } = S(m), { getSubmissionStatus: c } = O(), n = e.status === N.SUBMITTED || e.status === N.VERIFIED, u = i(e.createdBy.entId, "user"), d = new Date(e.deadline) < /* @__PURE__ */ new Date(), h = c({
|
|
52
52
|
status: e.status,
|
|
53
53
|
isPastDeadline: d,
|
|
54
54
|
isSubmissionCard: !0
|
|
@@ -61,28 +61,28 @@ const Q = {
|
|
|
61
61
|
justify: "center",
|
|
62
62
|
align: "center",
|
|
63
63
|
direction: "column",
|
|
64
|
-
className: `rounded-2 ${d ? "bg-gray-300" :
|
|
64
|
+
className: `rounded-2 ${d ? "bg-gray-300" : n ? "bg-green-200" : "bg-orange-200"}`,
|
|
65
65
|
style: { minWidth: "80px", height: "80px" },
|
|
66
66
|
children: [
|
|
67
67
|
/* @__PURE__ */ t(
|
|
68
68
|
"p",
|
|
69
69
|
{
|
|
70
|
-
className: `h2 ${d ? "text-gray-800" :
|
|
71
|
-
children:
|
|
70
|
+
className: `h2 ${d ? "text-gray-800" : n ? "text-green-800" : "text-orange-500"}`,
|
|
71
|
+
children: a(e.deadline, "D")
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ t(
|
|
75
75
|
"p",
|
|
76
76
|
{
|
|
77
|
-
className: `caption ${d ? "text-gray-800" :
|
|
78
|
-
children:
|
|
77
|
+
className: `caption ${d ? "text-gray-800" : n ? "text-green-800" : "text-orange-500"}`,
|
|
78
|
+
children: a(e.deadline, "MMM")
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
/* @__PURE__ */ t(
|
|
82
82
|
"p",
|
|
83
83
|
{
|
|
84
|
-
className: `caption ${d ? "text-gray-800" :
|
|
85
|
-
children:
|
|
84
|
+
className: `caption ${d ? "text-gray-800" : n ? "text-green-800" : "text-orange-500"}`,
|
|
85
|
+
children: a(e.deadline, "YYYY")
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
]
|
|
@@ -113,35 +113,35 @@ const Q = {
|
|
|
113
113
|
/* @__PURE__ */ t(g, { className: "gap-8", align: "center", children: /* @__PURE__ */ t(F, { variant: h.variant, children: h.text }) })
|
|
114
114
|
] }) })
|
|
115
115
|
] });
|
|
116
|
-
},
|
|
116
|
+
}, W = () => {
|
|
117
117
|
var h, y;
|
|
118
|
-
const { filter: e, search: s } = b(), o = e || void 0,
|
|
118
|
+
const { filter: e, search: s } = b(), o = e || void 0, a = s || void 0, { data: i, isLoading: m, fetchNextPage: l } = Y({
|
|
119
119
|
filter: o,
|
|
120
|
-
search:
|
|
121
|
-
}), c = (y = (h = i == null ? void 0 : i.pages) == null ? void 0 : h[i.pages.length - 1]) == null ? void 0 : y.meta,
|
|
120
|
+
search: a
|
|
121
|
+
}), c = (y = (h = i == null ? void 0 : i.pages) == null ? void 0 : h[i.pages.length - 1]) == null ? void 0 : y.meta, n = !!c && Number(c.currentPage ?? 0) < Number(c.totalPages ?? 0), u = (i == null ? void 0 : i.pages.flatMap((L) => L.items)) ?? [], d = u.length > 0;
|
|
122
122
|
return {
|
|
123
123
|
collectionsToSubmit: u,
|
|
124
124
|
isLoading: m,
|
|
125
|
-
hasMoreResources:
|
|
125
|
+
hasMoreResources: n,
|
|
126
126
|
hasData: d,
|
|
127
127
|
fetchNextPage: l
|
|
128
128
|
};
|
|
129
|
-
},
|
|
129
|
+
}, _ = () => {
|
|
130
130
|
const { appCode: e } = x(), { t: s } = S(e), o = A(), {
|
|
131
|
-
collectionsToSubmit:
|
|
131
|
+
collectionsToSubmit: a,
|
|
132
132
|
isLoading: i,
|
|
133
133
|
hasMoreResources: m,
|
|
134
134
|
hasData: l,
|
|
135
135
|
fetchNextPage: c
|
|
136
|
-
} =
|
|
136
|
+
} = W();
|
|
137
137
|
return i ? /* @__PURE__ */ t(M, {}) : l ? /* @__PURE__ */ r(f, { className: "w-100 p-24", "data-testid": "collect-list-submissions-grid", children: [
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
a.map((n, u) => /* @__PURE__ */ t(f.Col, { sm: "4", md: "4", lg: "4", xl: "4", children: /* @__PURE__ */ t(
|
|
139
|
+
J,
|
|
140
140
|
{
|
|
141
141
|
"data-testid": "collect-list-submissions-card",
|
|
142
|
-
collectionToSubmit:
|
|
142
|
+
collectionToSubmit: n,
|
|
143
143
|
onClick: () => o(
|
|
144
|
-
`/list-collections/id/${
|
|
144
|
+
`/list-collections/id/${n.collectionId}/submission/${n.submissionId}`
|
|
145
145
|
)
|
|
146
146
|
}
|
|
147
147
|
) }, u)),
|
|
@@ -166,7 +166,7 @@ const Q = {
|
|
|
166
166
|
text: s("collection.collectionList.emptyScreen.description")
|
|
167
167
|
}
|
|
168
168
|
) });
|
|
169
|
-
},
|
|
169
|
+
}, ne = async (e) => (await e.prefetchInfiniteQuery(
|
|
170
170
|
k({
|
|
171
171
|
search: void 0,
|
|
172
172
|
filter: void 0
|
|
@@ -188,10 +188,10 @@ const Q = {
|
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
|
-
/* @__PURE__ */ t(
|
|
191
|
+
/* @__PURE__ */ t(_, {})
|
|
192
192
|
] });
|
|
193
193
|
};
|
|
194
194
|
export {
|
|
195
195
|
re as SubmissionsList,
|
|
196
|
-
|
|
196
|
+
ne as loader
|
|
197
197
|
};
|
|
@@ -1983,7 +1983,7 @@ var il = (e, t = !1) => {
|
|
|
1983
1983
|
const t = jn(() => {
|
|
1984
1984
|
const n = this, [r] = g(this, ge), [s] = g(this, ye), [o] = g(this, ve), [i] = g(this, be), [l] = g(this, me);
|
|
1985
1985
|
let c;
|
|
1986
|
-
return g(this, Se) ? c = g(this, Se) : (c = Gn(() => import("./I3HPI4QX-
|
|
1986
|
+
return g(this, Se) ? c = g(this, Se) : (c = Gn(() => import("./I3HPI4QX-BiqSZkoI.js")), A(this, Se, c)), ur(g(this, He), g(this, pe)), qn(c, Dn({
|
|
1987
1987
|
get queryFlavor() {
|
|
1988
1988
|
return g(n, je);
|
|
1989
1989
|
},
|
|
@@ -2077,7 +2077,7 @@ var il = (e, t = !1) => {
|
|
|
2077
2077
|
const t = jn(() => {
|
|
2078
2078
|
const n = this, [r] = g(this, Ie), [s] = g(this, Ae), [o] = g(this, Oe), [i] = g(this, Te), [l] = g(this, we), [c] = g(this, Ee);
|
|
2079
2079
|
let a;
|
|
2080
|
-
return g(this, Ne) ? a = g(this, Ne) : (a = Gn(() => import("./CXEL7IU7-
|
|
2080
|
+
return g(this, Ne) ? a = g(this, Ne) : (a = Gn(() => import("./CXEL7IU7-Dei8UEaR.js")), A(this, Ne, a)), ur(g(this, Ze), g(this, Ce)), qn(a, Dn({
|
|
2081
2081
|
get queryFlavor() {
|
|
2082
2082
|
return g(n, Ye);
|
|
2083
2083
|
},
|
|
@@ -3171,7 +3171,7 @@ const vr = (e, t) => {
|
|
|
3171
3171
|
path: "/",
|
|
3172
3172
|
loader: r,
|
|
3173
3173
|
async lazy() {
|
|
3174
|
-
const { loader: s, Root: o } = await import("./Root-
|
|
3174
|
+
const { loader: s, Root: o } = await import("./Root-4Xv-j-fs.js");
|
|
3175
3175
|
return {
|
|
3176
3176
|
loader: async () => {
|
|
3177
3177
|
const i = await r(), l = await s() ?? {};
|
|
@@ -3183,14 +3183,14 @@ const vr = (e, t) => {
|
|
|
3183
3183
|
children: [
|
|
3184
3184
|
{
|
|
3185
3185
|
async lazy() {
|
|
3186
|
-
const { loader: s, Component: o } = await import("./CollectionsLayout-
|
|
3186
|
+
const { loader: s, Component: o } = await import("./CollectionsLayout-BWau0fFT.js");
|
|
3187
3187
|
return { loader: s, Component: o };
|
|
3188
3188
|
},
|
|
3189
3189
|
children: [
|
|
3190
3190
|
{
|
|
3191
3191
|
index: !0,
|
|
3192
3192
|
async lazy() {
|
|
3193
|
-
const { loader: s, CollectionsList: o } = await import("./CollectionsList-
|
|
3193
|
+
const { loader: s, CollectionsList: o } = await import("./CollectionsList-DoYvRzYy.js");
|
|
3194
3194
|
return {
|
|
3195
3195
|
loader: () => s(e),
|
|
3196
3196
|
Component: o
|
|
@@ -3200,7 +3200,7 @@ const vr = (e, t) => {
|
|
|
3200
3200
|
{
|
|
3201
3201
|
path: "list-collections",
|
|
3202
3202
|
async lazy() {
|
|
3203
|
-
const { loader: s, CollectionsList: o } = await import("./CollectionsList-
|
|
3203
|
+
const { loader: s, CollectionsList: o } = await import("./CollectionsList-DoYvRzYy.js");
|
|
3204
3204
|
return {
|
|
3205
3205
|
loader: () => s(e),
|
|
3206
3206
|
Component: o
|
|
@@ -3210,7 +3210,7 @@ const vr = (e, t) => {
|
|
|
3210
3210
|
{
|
|
3211
3211
|
path: "list-submissions",
|
|
3212
3212
|
async lazy() {
|
|
3213
|
-
const { loader: s, SubmissionsList: o } = await import("./SubmissionList-
|
|
3213
|
+
const { loader: s, SubmissionsList: o } = await import("./SubmissionList-BUexy8AF.js");
|
|
3214
3214
|
return {
|
|
3215
3215
|
loader: () => s(e),
|
|
3216
3216
|
Component: o
|
|
@@ -3226,21 +3226,21 @@ const vr = (e, t) => {
|
|
|
3226
3226
|
{
|
|
3227
3227
|
path: "list-collections/id/:collectionId",
|
|
3228
3228
|
async lazy() {
|
|
3229
|
-
const { loader: s, Collection: o } = await import("./Collection-
|
|
3229
|
+
const { loader: s, Collection: o } = await import("./Collection-BcJujQH9.js");
|
|
3230
3230
|
return { loader: () => s(e), Component: o };
|
|
3231
3231
|
}
|
|
3232
3232
|
},
|
|
3233
3233
|
{
|
|
3234
3234
|
path: "list-collections/id/:collectionId/submission/:submissionId",
|
|
3235
3235
|
async lazy() {
|
|
3236
|
-
const { loader: s, Submission: o } = await import("./Submission-
|
|
3236
|
+
const { loader: s, Submission: o } = await import("./Submission-Bi1puhNG.js");
|
|
3237
3237
|
return { loader: () => s(e), Component: o };
|
|
3238
3238
|
}
|
|
3239
3239
|
},
|
|
3240
3240
|
{
|
|
3241
3241
|
path: "id/:collectionId/members",
|
|
3242
3242
|
async lazy() {
|
|
3243
|
-
const { loader: s, MembersEdit: o } = await import("./MembersEdit
|
|
3243
|
+
const { loader: s, MembersEdit: o } = await import("./MembersEdit--SFUJ5dS.js");
|
|
3244
3244
|
return {
|
|
3245
3245
|
loader: () => s(e),
|
|
3246
3246
|
Component: o
|
|
@@ -3250,7 +3250,7 @@ const vr = (e, t) => {
|
|
|
3250
3250
|
{
|
|
3251
3251
|
path: "id/:collectionId/form",
|
|
3252
3252
|
async lazy() {
|
|
3253
|
-
const { loader: s, FormEdit: o } = await import("./FormEdit-
|
|
3253
|
+
const { loader: s, FormEdit: o } = await import("./FormEdit-DrlhrKl6.js");
|
|
3254
3254
|
return { loader: () => s(e), Component: o };
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
@@ -3400,86 +3400,86 @@ const wi = () => gt(Sr), Ci = () => {
|
|
|
3400
3400
|
);
|
|
3401
3401
|
}, Al = ({ showMenu: e, basePath: t }) => /* @__PURE__ */ d(Si, { showMenu: e, basePath: t, children: /* @__PURE__ */ d(Ci, {}) });
|
|
3402
3402
|
export {
|
|
3403
|
-
|
|
3403
|
+
kn as $,
|
|
3404
3404
|
hs as A,
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3405
|
+
_n as B,
|
|
3406
|
+
Cl as C,
|
|
3407
|
+
Ji as D,
|
|
3408
|
+
F as E,
|
|
3409
|
+
ji as F,
|
|
3410
|
+
ie as G,
|
|
3411
|
+
oe as H,
|
|
3412
|
+
Qi as I,
|
|
3413
|
+
Jt as J,
|
|
3414
|
+
L as K,
|
|
3415
|
+
Ki as L,
|
|
3416
3416
|
H as M,
|
|
3417
|
-
|
|
3418
|
-
|
|
3417
|
+
Gs as N,
|
|
3418
|
+
ot as O,
|
|
3419
3419
|
Do as P,
|
|
3420
|
-
|
|
3421
|
-
|
|
3420
|
+
il as Q,
|
|
3421
|
+
sl as R,
|
|
3422
3422
|
dl as S,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3423
|
+
ul as T,
|
|
3424
|
+
rl as U,
|
|
3425
|
+
ol as V,
|
|
3426
3426
|
kt as W,
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3427
|
+
tl as X,
|
|
3428
|
+
nl as Y,
|
|
3429
|
+
qt as Z,
|
|
3430
|
+
Dn as _,
|
|
3431
|
+
Rn as a,
|
|
3432
|
+
cl as a0,
|
|
3433
|
+
Bi as a1,
|
|
3434
|
+
Fe as a2,
|
|
3435
|
+
bs as a3,
|
|
3436
|
+
Ht as a4,
|
|
3437
|
+
Sl as a5,
|
|
3438
|
+
Lo as a6,
|
|
3439
|
+
$t as a7,
|
|
3440
|
+
ll as a8,
|
|
3441
|
+
Ps as a9,
|
|
3442
|
+
Ys as aa,
|
|
3443
|
+
el as ab,
|
|
3444
|
+
Yi as ac,
|
|
3445
|
+
B as ad,
|
|
3446
|
+
st as ae,
|
|
3447
|
+
zs as af,
|
|
3448
|
+
fs as ag,
|
|
3449
|
+
wl as ah,
|
|
3450
|
+
gl as ai,
|
|
3451
|
+
ml as aj,
|
|
3452
|
+
Gi as ak,
|
|
3453
|
+
vl as al,
|
|
3454
|
+
pl as am,
|
|
3455
|
+
wi as an,
|
|
3456
|
+
qi as ao,
|
|
3457
|
+
yl as ap,
|
|
3458
|
+
bl as aq,
|
|
3459
|
+
ue as ar,
|
|
3460
|
+
us as b,
|
|
3461
|
+
Il as c,
|
|
3462
|
+
Al as d,
|
|
3463
|
+
Ho as e,
|
|
3464
|
+
Xi as f,
|
|
3465
|
+
ii as g,
|
|
3466
|
+
Sr as h,
|
|
3467
|
+
Si as i,
|
|
3468
|
+
Zi as j,
|
|
3469
|
+
fl as k,
|
|
3470
|
+
Hi as l,
|
|
3471
|
+
Wi as m,
|
|
3472
|
+
Hs as n,
|
|
3473
|
+
pi as o,
|
|
3474
|
+
Fi as p,
|
|
3475
|
+
hl as q,
|
|
3476
|
+
Qs as r,
|
|
3477
|
+
zi as s,
|
|
3478
|
+
fi as t,
|
|
3479
|
+
ai as u,
|
|
3480
|
+
ui as v,
|
|
3481
|
+
al as w,
|
|
3482
|
+
qn as x,
|
|
3483
|
+
gs as y,
|
|
3484
|
+
Di as z
|
|
3485
3485
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o,
|
|
1
|
+
import { A as o, a as t, b as r, C as s, c as n, d as p, h as A, i, k as c, o as d, a4 as C, a5 as u, ag as l, an as x } from "./index-DPvhGf6m.js";
|
|
2
2
|
export * from "@edifice.io/collect-client-rest";
|
|
3
3
|
export {
|
|
4
4
|
o as AppActionHeader,
|
|
@@ -9,10 +9,10 @@ export {
|
|
|
9
9
|
p as CollectMenu,
|
|
10
10
|
A as MenuContext,
|
|
11
11
|
i as MenuProvider,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
c as Providers,
|
|
13
|
+
d as basename,
|
|
14
|
+
C as queryClient,
|
|
15
|
+
u as router,
|
|
16
|
+
l as useAppActionHeaderContext,
|
|
17
17
|
x as useMenuContext
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuery as S, useQueryClient as a, useMutation as m, useInfiniteQuery as b } from "@tanstack/react-query";
|
|
2
|
-
import { S as c } from "./index-
|
|
2
|
+
import { S as c } from "./index-DPvhGf6m.js";
|
|
3
3
|
import { odeServices as p } from "@edifice.io/client";
|
|
4
4
|
import { SubmissionClient as y } from "@edifice.io/collect-client-rest";
|
|
5
5
|
const d = "/collect/api", n = new y({
|
|
@@ -77,10 +77,10 @@ const d = "/collect/api", n = new y({
|
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
l as a,
|
|
81
|
+
O as b,
|
|
82
|
+
_ as c,
|
|
83
|
+
v as d,
|
|
84
|
+
g as s,
|
|
85
|
+
U as u
|
|
86
86
|
};
|