@plumile/backoffice-react 0.1.183 → 0.1.185
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/esm/auth/authRefreshNotice.css.js +1 -0
- package/lib/esm/components/backoffice/billing/backofficeBillingUsageChart.css.js +0 -1
- package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +0 -1
- package/lib/esm/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.js +1 -0
- package/lib/esm/i18n/locales/en/backofficeReact.js +1 -0
- package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
- package/lib/esm/i18n/locales/fr/backofficeReact.js +1 -0
- package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailFramePage.js +11 -38
- package/lib/esm/pages/BackofficeEntityDetailFramePage.js.map +1 -1
- package/lib/esm/pages/BackofficeEntityDetailShellPage.js +11 -93
- package/lib/esm/pages/BackofficeEntityDetailShellPage.js.map +1 -1
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js +87 -0
- package/lib/esm/pages/detail/BackofficeEntityDetailManifestFallback.js.map +1 -0
- package/lib/esm/router/createBackofficeRoutes.js +123 -109
- package/lib/esm/router/createBackofficeRoutes.js.map +1 -1
- package/lib/types/i18n/resources.d.ts +2 -0
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailFramePage.d.ts.map +1 -1
- package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts +3 -3
- package/lib/types/pages/BackofficeEntityDetailShellPage.d.ts.map +1 -1
- package/lib/types/pages/detail/BackofficeEntityDetailManifestFallback.d.ts +10 -0
- package/lib/types/pages/detail/BackofficeEntityDetailManifestFallback.d.ts.map +1 -0
- package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { buildEntityGroupLookup as e, resolveSidebarGroups as t, resolveSidebarHubEntries as n } from "../components/backoffice/layout/sidebarUtils.js";
|
|
2
2
|
import { validateBackofficeDashboardRegistrations as r } from "../provider/dashboardRegistrations.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import c from "
|
|
7
|
-
import
|
|
3
|
+
import { BackofficeEntityDetailManifestFallback as i } from "../pages/detail/BackofficeEntityDetailManifestFallback.js";
|
|
4
|
+
import { useContext as a, useEffect as o } from "react";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import * as c from "react-relay";
|
|
7
|
+
import l from "@plumile/router/routing/RoutingContext.js";
|
|
8
|
+
import { BACKOFFICE_LIST_DEFAULTS as ee } from "@plumile/backoffice-core/constants.js";
|
|
8
9
|
import { getResourcePage as u } from "@plumile/router/ResourcePage.js";
|
|
9
10
|
import { r as d } from "@plumile/router/tools.js";
|
|
10
11
|
//#region src/router/createBackofficeRoutes.tsx
|
|
11
|
-
var { loadQuery: f, usePreloadedQuery: p } =
|
|
12
|
-
let t =
|
|
13
|
-
return
|
|
12
|
+
var { loadQuery: f, usePreloadedQuery: p } = c, m = u("WrapperPage", async () => ({ default: (await import("@plumile/ui/pages/WrapperPage.js")).WrapperPage })), h = u("BackofficeLayoutPage", async () => import("../pages/BackofficeLayoutPage.js")), g = u("BackofficeEntityListPage", async () => import("../pages/BackofficeEntityListPage.js")), _ = u("BackofficeEntityListShellPage", async () => import("../pages/BackofficeEntityListShellPage.js")), v = u("BackofficeEntityListDataPage", async () => import("../pages/BackofficeEntityListDataPage.js")), te = u("BackofficeEntityDetailPage", async () => import("../pages/BackofficeEntityDetailPage.js")), y = u("BackofficeEntityDetailFramePage", async () => import("../pages/BackofficeEntityDetailFramePage.js")), b = u("BackofficeEntityDetailLayoutPage", async () => import("../pages/BackofficeEntityDetailLayoutPage.js")), x = u("BackofficeEntityDetailPageConfigPage", async () => import("../pages/BackofficeEntityDetailPageConfigPage.js")), S = u("BackofficeEntityDetailShellPage", async () => import("../pages/BackofficeEntityDetailShellPage.js")), C = u("BackofficeEntityDetailUnknownPageRedirect", async () => import("../pages/BackofficeEntityDetailUnknownPageRedirect.js")), w = u("BackofficeDashboardPage", async () => import("../pages/BackofficeDashboardPage.js")), T = u("BackofficeDashboardShellPage", async () => import("../pages/BackofficeDashboardShellPage.js")), E = u("BackofficeToolShellPage", async () => import("../pages/BackofficeToolShellPage.js")), ne = u("BackofficeHubPage", async () => import("../pages/BackofficeHubPage.js")), re = u("BackofficeLoginPage", async () => import("../pages/BackofficeLoginPage.js")), ie = u("BackofficePasswordResetRequestPage", async () => import("../pages/BackofficePasswordResetRequestPage.js")), D = u("BackofficePasswordResetCompletePage", async () => import("../pages/BackofficePasswordResetCompletePage.js")), O = u("BackofficeVerifyEmailPage", async () => import("../pages/BackofficeVerifyEmailPage.js")), k = u("BackofficeAcceptInvitationPage", async () => import("../pages/BackofficeAcceptInvitationPage.js")), A = ({ pathname: e }) => {
|
|
13
|
+
let t = a(l);
|
|
14
|
+
return o(() => {
|
|
14
15
|
t?.history.set({ pathname: e });
|
|
15
16
|
}, [e, t]), null;
|
|
16
|
-
},
|
|
17
|
+
}, ae = ({ children: e, Component: t, preparedLayout: n, permissionsQuery: r, activeGroupId: i }) => /* @__PURE__ */ s(t, {
|
|
17
18
|
permissionsQuery: r,
|
|
18
19
|
prepared: n?.permissionsQuery ?? null,
|
|
19
20
|
authStatus: null,
|
|
20
21
|
activeGroupId: i,
|
|
21
22
|
children: e
|
|
22
|
-
}), j = ({ children: e, Component: t, preparedLayout: n, permissionsQuery: r, activeGroupId: i, authStatusQuery: a, authStatusPrepared:
|
|
23
|
-
let l = p(a,
|
|
24
|
-
return l?.isLoggedIn === !0 ? /* @__PURE__ */
|
|
23
|
+
}), j = ({ children: e, Component: t, preparedLayout: n, permissionsQuery: r, activeGroupId: i, authStatusQuery: a, authStatusPrepared: o, loginRedirectPath: c }) => {
|
|
24
|
+
let l = p(a, o);
|
|
25
|
+
return l?.isLoggedIn === !0 ? /* @__PURE__ */ s(t, {
|
|
25
26
|
permissionsQuery: r,
|
|
26
27
|
prepared: n?.permissionsQuery ?? null,
|
|
27
28
|
authStatus: l,
|
|
28
29
|
activeGroupId: i,
|
|
29
30
|
children: e
|
|
30
|
-
}) : /* @__PURE__ */
|
|
31
|
+
}) : /* @__PURE__ */ s(A, { pathname: c });
|
|
31
32
|
}, M = (e) => {
|
|
32
33
|
let t = e.trim();
|
|
33
34
|
return t === "" || t === "/" ? "" : t.replace(/^\/+|\/+$/g, "");
|
|
@@ -67,12 +68,12 @@ var { loadQuery: f, usePreloadedQuery: p } = s, m = u("WrapperPage", async () =>
|
|
|
67
68
|
let n = I(t);
|
|
68
69
|
return e.detailPages?.find((e) => I(e.pathSegment) === n) ?? null;
|
|
69
70
|
}, V = (e, t) => B(e, t)?.id ?? t, H = d;
|
|
70
|
-
function U(
|
|
71
|
-
let { basePath:
|
|
72
|
-
|
|
71
|
+
function U(a) {
|
|
72
|
+
let { basePath: o, entityManifest: c, entityRegistry: l, sidebar: u, auth: d, dashboard: p } = a, N = r(a.dashboards), I = M(o), B = P(I, "login"), U = P(I, "login/reset"), W = P(I, "login/reset/complete"), oe = P(I, "verify-email"), se = P(I, "accept-invitation"), ce = F(I, "login"), G = t(c, u), le = n(G, u), ue = e(G, u), K = /* @__PURE__ */ new Map();
|
|
73
|
+
ue.forEach((e, t) => {
|
|
73
74
|
K.set(t, e.groupId);
|
|
74
75
|
});
|
|
75
|
-
let q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = u?.permissionsQuery,
|
|
76
|
+
let q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Y = u?.permissionsQuery, de = async ({ context: e }) => {
|
|
76
77
|
let t = await d.session.load();
|
|
77
78
|
return {
|
|
78
79
|
permissionsQuery: Y == null ? null : f(e.relayEnvironment, Y, {}),
|
|
@@ -81,35 +82,35 @@ function U(i) {
|
|
|
81
82
|
}, X = async () => p == null ? null : {
|
|
82
83
|
dashboardId: "dashboard",
|
|
83
84
|
config: await p.load()
|
|
84
|
-
},
|
|
85
|
+
}, fe = () => p == null ? null : { dashboardId: "dashboard" }, Z = ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ s(t, { prepared: e }), Q = ({ children: e, prepared: t, Component: n }) => n == null ? null : /* @__PURE__ */ s(n, {
|
|
85
86
|
prepared: t,
|
|
86
87
|
children: e
|
|
87
|
-
}),
|
|
88
|
+
}), pe = H({
|
|
88
89
|
path: "",
|
|
89
|
-
resourcePage:
|
|
90
|
-
prepare:
|
|
90
|
+
resourcePage: T,
|
|
91
|
+
prepare: fe,
|
|
91
92
|
render: Q,
|
|
92
93
|
children: [H({
|
|
93
94
|
path: "",
|
|
94
|
-
resourcePage:
|
|
95
|
+
resourcePage: w,
|
|
95
96
|
prepare: X,
|
|
96
97
|
render: Z
|
|
97
98
|
})]
|
|
98
|
-
}),
|
|
99
|
+
}), me = H({
|
|
99
100
|
path: "dashboard",
|
|
100
|
-
resourcePage:
|
|
101
|
-
prepare:
|
|
101
|
+
resourcePage: T,
|
|
102
|
+
prepare: fe,
|
|
102
103
|
render: Q,
|
|
103
104
|
children: [H({
|
|
104
105
|
path: "",
|
|
105
|
-
resourcePage:
|
|
106
|
+
resourcePage: w,
|
|
106
107
|
prepare: X,
|
|
107
108
|
render: Z
|
|
108
109
|
})]
|
|
109
|
-
}),
|
|
110
|
+
}), he = N.map((e) => {
|
|
110
111
|
let t = H({
|
|
111
112
|
path: "",
|
|
112
|
-
resourcePage:
|
|
113
|
+
resourcePage: w,
|
|
113
114
|
prepare: async () => {
|
|
114
115
|
let t = await e.module.load();
|
|
115
116
|
return {
|
|
@@ -122,7 +123,7 @@ function U(i) {
|
|
|
122
123
|
});
|
|
123
124
|
return H({
|
|
124
125
|
path: `dashboard/${e.id}`,
|
|
125
|
-
resourcePage:
|
|
126
|
+
resourcePage: T,
|
|
126
127
|
prepare: () => ({
|
|
127
128
|
dashboardId: e.id,
|
|
128
129
|
label: e.label
|
|
@@ -130,41 +131,49 @@ function U(i) {
|
|
|
130
131
|
render: Q,
|
|
131
132
|
children: [t]
|
|
132
133
|
});
|
|
133
|
-
}),
|
|
134
|
+
}), ge = Object.values(c).filter((e) => e.kind === "list-detail"), _e = le.map((e) => {
|
|
134
135
|
let t = H({
|
|
135
136
|
path: L(e.hub.href, I),
|
|
136
|
-
resourcePage:
|
|
137
|
+
resourcePage: ne,
|
|
137
138
|
prepare: () => ({
|
|
138
139
|
hubId: e.hub.id,
|
|
139
140
|
hub: e.hub
|
|
140
141
|
}),
|
|
141
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
142
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ s(t, { prepared: e })
|
|
142
143
|
});
|
|
143
144
|
return e.groupId != null && J.set(t, e.groupId), t;
|
|
144
|
-
}),
|
|
145
|
-
let t = e.routes.list, n = L(t, I), r = []
|
|
145
|
+
}), ve = ge.map((e) => {
|
|
146
|
+
let t = e.routes.list, n = L(t, I), r = [], a = ({ match: t }) => {
|
|
147
|
+
let n = String(t?.params.id ?? ""), r = typeof t?.params.pagePath == "string" ? t.params.pagePath : null;
|
|
148
|
+
return /* @__PURE__ */ s(i, {
|
|
149
|
+
entityManifest: e,
|
|
150
|
+
id: n,
|
|
151
|
+
pageId: r == null ? e.defaultDetailPageId ?? "overview" : V(e, r),
|
|
152
|
+
pagePath: r
|
|
153
|
+
});
|
|
154
|
+
};
|
|
146
155
|
if (e.hasList) {
|
|
147
156
|
let t = H({
|
|
148
157
|
path: "",
|
|
149
158
|
resourcePage: v,
|
|
150
159
|
prepareSearchBehavior: "path",
|
|
151
160
|
prepare: async ({ context: t, query: n }) => {
|
|
152
|
-
let { config: r } = await
|
|
161
|
+
let { config: r } = await l.loadListEntity(e.id), { list: i, listUrlCodec: a, listDefaults: o } = r;
|
|
153
162
|
if (a == null || o == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
|
|
154
|
-
let s = z(n),
|
|
155
|
-
where:
|
|
156
|
-
sort:
|
|
157
|
-
count:
|
|
163
|
+
let s = z(n), c = a.parse(s), { pageSize: u } = ee, d = {
|
|
164
|
+
where: c.where,
|
|
165
|
+
sort: c.sort ?? o.sort,
|
|
166
|
+
count: u,
|
|
158
167
|
cursor: null
|
|
159
|
-
},
|
|
168
|
+
}, p = i.buildQueryVariables(d), m = f(t.relayEnvironment, i.query, p);
|
|
160
169
|
return {
|
|
161
170
|
entityId: e.id,
|
|
162
171
|
entityManifest: e,
|
|
163
172
|
entityConfig: r,
|
|
164
|
-
query:
|
|
173
|
+
query: m
|
|
165
174
|
};
|
|
166
175
|
},
|
|
167
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
176
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ s(t, { prepared: e })
|
|
168
177
|
});
|
|
169
178
|
q.set(t, e.id);
|
|
170
179
|
let n = H({
|
|
@@ -172,7 +181,7 @@ function U(i) {
|
|
|
172
181
|
resourcePage: g,
|
|
173
182
|
prepareSearchBehavior: "path",
|
|
174
183
|
prepare: async () => {
|
|
175
|
-
let { config: t } = await
|
|
184
|
+
let { config: t } = await l.loadListEntity(e.id), { listUrlCodec: n, listDefaults: r } = t;
|
|
176
185
|
if (n == null || r == null) throw Error(`Backoffice entity ${e.id} does not expose a list configuration.`);
|
|
177
186
|
return {
|
|
178
187
|
entityId: e.id,
|
|
@@ -183,7 +192,7 @@ function U(i) {
|
|
|
183
192
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
184
193
|
if (n == null) return null;
|
|
185
194
|
let r = t;
|
|
186
|
-
return /* @__PURE__ */
|
|
195
|
+
return /* @__PURE__ */ s(n, {
|
|
187
196
|
entityManifest: r.entityManifest,
|
|
188
197
|
config: r.entityConfig,
|
|
189
198
|
prepared: r,
|
|
@@ -204,7 +213,7 @@ function U(i) {
|
|
|
204
213
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
205
214
|
if (n == null) return null;
|
|
206
215
|
let r = t;
|
|
207
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ s(n, {
|
|
208
217
|
entityManifest: r.entityManifest,
|
|
209
218
|
prepared: r,
|
|
210
219
|
children: e
|
|
@@ -214,13 +223,14 @@ function U(i) {
|
|
|
214
223
|
});
|
|
215
224
|
q.set(i, e.id), r.push(i);
|
|
216
225
|
}
|
|
217
|
-
let
|
|
226
|
+
let o = (e.detailPages ?? []).map((t) => {
|
|
218
227
|
let n = H({
|
|
219
228
|
path: "",
|
|
220
|
-
resourcePage:
|
|
229
|
+
resourcePage: te,
|
|
221
230
|
suspenseBoundary: "segment",
|
|
231
|
+
fallback: a,
|
|
222
232
|
prepare: async ({ context: n, variables: r }) => {
|
|
223
|
-
let i = String(r.id ?? ""), a = await
|
|
233
|
+
let i = String(r.id ?? ""), a = await l.loadDetailPageEntity(e.id, t.id), o = a.config.page.buildVariables == null ? { variables: { id: i } } : a.config.page.buildVariables({ id: i }), s = f(n.relayEnvironment, a.config.page.query, o.variables);
|
|
224
234
|
return {
|
|
225
235
|
entityId: e.id,
|
|
226
236
|
entityManifest: e,
|
|
@@ -232,15 +242,16 @@ function U(i) {
|
|
|
232
242
|
pagePath: t.pathSegment
|
|
233
243
|
};
|
|
234
244
|
},
|
|
235
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
245
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ s(t, { prepared: e })
|
|
236
246
|
});
|
|
237
247
|
q.set(n, e.id);
|
|
238
248
|
let r = H({
|
|
239
249
|
path: t.pathSegment,
|
|
240
|
-
resourcePage:
|
|
250
|
+
resourcePage: x,
|
|
241
251
|
suspenseBoundary: "segment",
|
|
252
|
+
fallback: a,
|
|
242
253
|
prepare: async ({ variables: n }) => {
|
|
243
|
-
let r = String(n.id ?? ""), [i, a] = await Promise.all([
|
|
254
|
+
let r = String(n.id ?? ""), [i, a] = await Promise.all([l.loadDetailPageEntity(e.id, t.id), l.loadDetailLayoutEntity(e.id)]);
|
|
244
255
|
return {
|
|
245
256
|
entityId: e.id,
|
|
246
257
|
entityManifest: e,
|
|
@@ -254,7 +265,7 @@ function U(i) {
|
|
|
254
265
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
255
266
|
if (n == null) return null;
|
|
256
267
|
let r = t;
|
|
257
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ s(n, {
|
|
258
269
|
config: r.entityConfig,
|
|
259
270
|
prepared: r,
|
|
260
271
|
children: e
|
|
@@ -263,12 +274,13 @@ function U(i) {
|
|
|
263
274
|
children: [n]
|
|
264
275
|
});
|
|
265
276
|
return q.set(r, e.id), r;
|
|
266
|
-
}),
|
|
277
|
+
}), c = H({
|
|
267
278
|
path: "",
|
|
268
|
-
resourcePage:
|
|
279
|
+
resourcePage: b,
|
|
269
280
|
suspenseBoundary: "segment",
|
|
281
|
+
fallback: a,
|
|
270
282
|
prepare: async ({ context: t, variables: n }) => {
|
|
271
|
-
let { config: r } = await
|
|
283
|
+
let { config: r } = await l.loadDetailLayoutEntity(e.id), i = String(n.id ?? ""), a = r.layoutPage.buildVariables == null ? { variables: { id: i } } : r.layoutPage.buildVariables({ id: i }), o = f(t.relayEnvironment, r.layoutPage.query, a.variables);
|
|
272
284
|
return {
|
|
273
285
|
entityId: e.id,
|
|
274
286
|
entityManifest: e,
|
|
@@ -280,7 +292,7 @@ function U(i) {
|
|
|
280
292
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
281
293
|
if (n == null) return null;
|
|
282
294
|
let r = t;
|
|
283
|
-
return /* @__PURE__ */
|
|
295
|
+
return /* @__PURE__ */ s(n, {
|
|
284
296
|
entityManifest: r.entityManifest,
|
|
285
297
|
config: r.entityConfig,
|
|
286
298
|
prepared: r,
|
|
@@ -297,16 +309,17 @@ function U(i) {
|
|
|
297
309
|
},
|
|
298
310
|
render: ({ prepared: e }) => {
|
|
299
311
|
let t = e.redirectTo ?? null;
|
|
300
|
-
return t == null ? null : /* @__PURE__ */
|
|
312
|
+
return t == null ? null : /* @__PURE__ */ s(A, { pathname: t });
|
|
301
313
|
}
|
|
302
314
|
}),
|
|
303
|
-
...
|
|
315
|
+
...o,
|
|
304
316
|
H({
|
|
305
317
|
path: ":pagePath",
|
|
306
|
-
resourcePage:
|
|
318
|
+
resourcePage: C,
|
|
307
319
|
suspenseBoundary: "segment",
|
|
320
|
+
fallback: a,
|
|
308
321
|
prepare: async ({ variables: t }) => {
|
|
309
|
-
let n = await
|
|
322
|
+
let n = await l.loadDetailLayoutEntity(e.id), r = String(t.id ?? ""), i = String(t.pagePath ?? "");
|
|
310
323
|
return {
|
|
311
324
|
entityId: e.id,
|
|
312
325
|
entityManifest: e,
|
|
@@ -318,7 +331,7 @@ function U(i) {
|
|
|
318
331
|
render: ({ prepared: e, Component: t }) => {
|
|
319
332
|
if (t == null) return null;
|
|
320
333
|
let n = e;
|
|
321
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ s(t, {
|
|
322
335
|
entityManifest: n.entityManifest,
|
|
323
336
|
config: n.entityConfig,
|
|
324
337
|
prepared: n
|
|
@@ -327,38 +340,39 @@ function U(i) {
|
|
|
327
340
|
})
|
|
328
341
|
]
|
|
329
342
|
});
|
|
330
|
-
q.set(
|
|
331
|
-
let
|
|
343
|
+
q.set(c, e.id);
|
|
344
|
+
let u = H({
|
|
332
345
|
path: "",
|
|
333
|
-
resourcePage:
|
|
346
|
+
resourcePage: S,
|
|
334
347
|
suspenseBoundary: "segment",
|
|
335
|
-
|
|
336
|
-
|
|
348
|
+
fallback: a,
|
|
349
|
+
prepare: ({ variables: t }) => {
|
|
350
|
+
let n = String(t.id ?? ""), r = typeof t.pagePath == "string" ? t.pagePath : null, i = r == null ? e.defaultDetailPageId ?? "overview" : V(e, r);
|
|
337
351
|
return {
|
|
338
352
|
entityId: e.id,
|
|
339
353
|
entityManifest: e,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
pagePath: i
|
|
354
|
+
id: n,
|
|
355
|
+
pageId: i,
|
|
356
|
+
pagePath: r
|
|
344
357
|
};
|
|
345
358
|
},
|
|
346
359
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
347
360
|
if (n == null) return null;
|
|
348
361
|
let r = t;
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
|
|
362
|
+
return /* @__PURE__ */ s(n, {
|
|
363
|
+
entityManifest: r.entityManifest,
|
|
351
364
|
prepared: r,
|
|
352
365
|
children: e
|
|
353
366
|
});
|
|
354
367
|
},
|
|
355
|
-
children: [
|
|
368
|
+
children: [c]
|
|
356
369
|
});
|
|
357
|
-
q.set(
|
|
358
|
-
let
|
|
370
|
+
q.set(u, e.id);
|
|
371
|
+
let d = H({
|
|
359
372
|
path: ":id",
|
|
360
|
-
resourcePage:
|
|
373
|
+
resourcePage: y,
|
|
361
374
|
suspenseBoundary: "segment",
|
|
375
|
+
fallback: a,
|
|
362
376
|
prepare: ({ variables: t }) => {
|
|
363
377
|
let n = String(t.id ?? "");
|
|
364
378
|
return {
|
|
@@ -370,26 +384,26 @@ function U(i) {
|
|
|
370
384
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
371
385
|
if (n == null) return null;
|
|
372
386
|
let r = t;
|
|
373
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ s(n, {
|
|
374
388
|
entityManifest: r.entityManifest,
|
|
375
389
|
prepared: r,
|
|
376
390
|
children: e
|
|
377
391
|
});
|
|
378
392
|
},
|
|
379
|
-
children: [
|
|
393
|
+
children: [u]
|
|
380
394
|
});
|
|
381
|
-
return q.set(
|
|
395
|
+
return q.set(d, e.id), r.push(d), H({
|
|
382
396
|
path: n,
|
|
383
397
|
children: r,
|
|
384
398
|
resourcePage: m,
|
|
385
399
|
suspenseBoundary: "segment"
|
|
386
400
|
});
|
|
387
|
-
}),
|
|
401
|
+
}), ye = Object.values(c).filter((e) => e.kind === "tool").map((e) => {
|
|
388
402
|
let t = L(e.routes.list, I), n = H({
|
|
389
403
|
path: "",
|
|
390
|
-
resourcePage:
|
|
404
|
+
resourcePage: a.toolsOperationPage ?? null,
|
|
391
405
|
prepare: async () => {
|
|
392
|
-
let t = await
|
|
406
|
+
let t = await l.loadToolEntity(e.id);
|
|
393
407
|
return {
|
|
394
408
|
entityId: e.id,
|
|
395
409
|
entityManifest: e,
|
|
@@ -399,7 +413,7 @@ function U(i) {
|
|
|
399
413
|
render: ({ prepared: e, Component: t }) => {
|
|
400
414
|
if (t == null) return null;
|
|
401
415
|
let n = e;
|
|
402
|
-
return /* @__PURE__ */
|
|
416
|
+
return /* @__PURE__ */ s(t, {
|
|
403
417
|
entityManifest: n.entityManifest,
|
|
404
418
|
operation: n.entityConfig.tool.operation,
|
|
405
419
|
toolId: n.entityConfig.id
|
|
@@ -409,7 +423,7 @@ function U(i) {
|
|
|
409
423
|
q.set(n, e.id);
|
|
410
424
|
let r = H({
|
|
411
425
|
path: t,
|
|
412
|
-
resourcePage:
|
|
426
|
+
resourcePage: E,
|
|
413
427
|
prepare: () => ({
|
|
414
428
|
entityId: e.id,
|
|
415
429
|
entityManifest: e
|
|
@@ -417,7 +431,7 @@ function U(i) {
|
|
|
417
431
|
render: ({ children: e, prepared: t, Component: n }) => {
|
|
418
432
|
if (n == null) return null;
|
|
419
433
|
let r = t;
|
|
420
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ s(n, {
|
|
421
435
|
entityManifest: r.entityManifest,
|
|
422
436
|
prepared: r,
|
|
423
437
|
children: e
|
|
@@ -426,75 +440,75 @@ function U(i) {
|
|
|
426
440
|
children: [n]
|
|
427
441
|
});
|
|
428
442
|
return q.set(r, e.id), r;
|
|
429
|
-
}),
|
|
443
|
+
}), be = H({
|
|
430
444
|
path: I,
|
|
431
445
|
resourcePage: h,
|
|
432
446
|
prepareSearchBehavior: "path",
|
|
433
447
|
suspenseBoundary: "segment",
|
|
434
|
-
prepare:
|
|
448
|
+
prepare: de,
|
|
435
449
|
render: ({ children: e, prepared: t, route: n, Component: r }) => {
|
|
436
450
|
if (r == null) return null;
|
|
437
|
-
let i = t, a = R(n, q),
|
|
438
|
-
return l != null && i?.authStatusQuery != null ? /* @__PURE__ */
|
|
451
|
+
let i = t, a = R(n, q), o = a == null ? R(n, J) : K.get(a) ?? null, c = r, l = d.session.get()?.authStatusQuery ?? null;
|
|
452
|
+
return l != null && i?.authStatusQuery != null ? /* @__PURE__ */ s(j, {
|
|
439
453
|
Component: c,
|
|
440
454
|
preparedLayout: i,
|
|
441
455
|
permissionsQuery: u?.permissionsQuery,
|
|
442
|
-
activeGroupId:
|
|
456
|
+
activeGroupId: o,
|
|
443
457
|
authStatusQuery: l,
|
|
444
458
|
authStatusPrepared: i.authStatusQuery,
|
|
445
|
-
loginRedirectPath:
|
|
459
|
+
loginRedirectPath: ce,
|
|
446
460
|
children: e
|
|
447
|
-
}) : /* @__PURE__ */
|
|
461
|
+
}) : /* @__PURE__ */ s(ae, {
|
|
448
462
|
Component: c,
|
|
449
463
|
preparedLayout: i,
|
|
450
464
|
permissionsQuery: u?.permissionsQuery,
|
|
451
|
-
activeGroupId:
|
|
465
|
+
activeGroupId: o,
|
|
452
466
|
children: e
|
|
453
467
|
});
|
|
454
468
|
},
|
|
455
469
|
children: [
|
|
456
|
-
|
|
457
|
-
...ge,
|
|
470
|
+
pe,
|
|
458
471
|
..._e,
|
|
459
472
|
...ve,
|
|
460
|
-
...
|
|
461
|
-
|
|
473
|
+
...ye,
|
|
474
|
+
...he,
|
|
475
|
+
me
|
|
462
476
|
]
|
|
463
477
|
}), $ = [
|
|
464
478
|
H({
|
|
465
479
|
path: B,
|
|
466
|
-
resourcePage:
|
|
480
|
+
resourcePage: re,
|
|
467
481
|
prepare: async ({ context: e }) => {
|
|
468
482
|
let t = await d.login.load();
|
|
469
483
|
return { query: f(e.relayEnvironment, t.loginQuery, {}) };
|
|
470
484
|
},
|
|
471
|
-
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */
|
|
485
|
+
render: ({ prepared: e, Component: t }) => t == null ? null : /* @__PURE__ */ s(t, { prepared: e })
|
|
472
486
|
}),
|
|
473
487
|
H({
|
|
474
488
|
path: U,
|
|
475
|
-
resourcePage:
|
|
489
|
+
resourcePage: ie,
|
|
476
490
|
prepare: async () => (await d.passwordResetRequest.load(), null),
|
|
477
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
491
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ s(e, {})
|
|
478
492
|
}),
|
|
479
493
|
H({
|
|
480
494
|
path: W,
|
|
481
|
-
resourcePage:
|
|
495
|
+
resourcePage: D,
|
|
482
496
|
prepare: async () => (await d.passwordResetComplete.load(), null),
|
|
483
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
497
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ s(e, {})
|
|
484
498
|
}),
|
|
485
499
|
H({
|
|
486
|
-
path:
|
|
500
|
+
path: oe,
|
|
487
501
|
resourcePage: O,
|
|
488
502
|
prepare: async () => (await d.verifyEmail.load(), null),
|
|
489
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
503
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ s(e, {})
|
|
490
504
|
})
|
|
491
505
|
];
|
|
492
506
|
return (d.hasAcceptInvitation === !0 || d.acceptInvitation != null) && $.push(H({
|
|
493
|
-
path:
|
|
507
|
+
path: se,
|
|
494
508
|
resourcePage: k,
|
|
495
509
|
prepare: async () => (await d.acceptInvitation?.load(), null),
|
|
496
|
-
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */
|
|
497
|
-
})), $.push(
|
|
510
|
+
render: ({ Component: e }) => e == null ? null : /* @__PURE__ */ s(e, {})
|
|
511
|
+
})), $.push(be), $;
|
|
498
512
|
}
|
|
499
513
|
var W = {
|
|
500
514
|
normalizeBaseSegment: M,
|
|
@@ -510,6 +524,6 @@ var W = {
|
|
|
510
524
|
BackofficeLayoutRouteWithAuthStatus: j
|
|
511
525
|
};
|
|
512
526
|
//#endregion
|
|
513
|
-
export { k as BackofficeAcceptInvitationPageResource,
|
|
527
|
+
export { k as BackofficeAcceptInvitationPageResource, w as BackofficeDashboardPageResource, T as BackofficeDashboardShellPageResource, y as BackofficeEntityDetailFramePageResource, b as BackofficeEntityDetailLayoutPageResource, x as BackofficeEntityDetailPageConfigPageResource, te as BackofficeEntityDetailPageResource, S as BackofficeEntityDetailShellPageResource, C as BackofficeEntityDetailUnknownPageRedirectResource, v as BackofficeEntityListDataPageResource, g as BackofficeEntityListPageResource, _ as BackofficeEntityListShellPageResource, ne as BackofficeHubPageResource, h as BackofficeLayoutPageResource, re as BackofficeLoginPageResource, D as BackofficePasswordResetCompletePageResource, ie as BackofficePasswordResetRequestPageResource, E as BackofficeToolShellPageResource, O as BackofficeVerifyEmailPageResource, m as WrapperPageResource, W as __test, U as createBackofficeRoutes, U as default };
|
|
514
528
|
|
|
515
529
|
//# sourceMappingURL=createBackofficeRoutes.js.map
|