@knkcs/importhub-ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +7 -2
- package/dist/importhub-client-fCWgKH03.js +29 -0
- package/dist/importhub-client-fCWgKH03.js.map +1 -0
- package/dist/index.d.ts +457 -0
- package/dist/index.js +1547 -849
- package/dist/index.js.map +1 -1
- package/dist/mapping-editor.d.ts +161 -0
- package/dist/mapping-editor.js +1 -1
- package/dist/{mapping-page-v0GJAPjW.js → mapping-page-D92XwUq5.js} +426 -418
- package/dist/mapping-page-D92XwUq5.js.map +1 -0
- package/dist/testing.d.ts +192 -0
- package/dist/testing.js +548 -270
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/importhub-client-CrS-3Zuu.js +0 -23
- package/dist/importhub-client-CrS-3Zuu.js.map +0 -1
- package/dist/mapping-page-v0GJAPjW.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,86 +1,99 @@
|
|
|
1
|
-
import { toJson as
|
|
2
|
-
import { file_google_protobuf_timestamp as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import { createConnectTransport as
|
|
5
|
-
import { messageDesc as
|
|
6
|
-
import { R as
|
|
7
|
-
import { jsxs as
|
|
8
|
-
import { Link as
|
|
9
|
-
import { ExternalLink as
|
|
1
|
+
import { toJson as Ee, fromJson as Dt, create as Ye } from "@bufbuild/protobuf";
|
|
2
|
+
import { file_google_protobuf_timestamp as ce, file_google_protobuf_struct as Te, timestampDate as Tt } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import { createClient as ae, ConnectError as ve, Code as T } from "@connectrpc/connect";
|
|
4
|
+
import { createConnectTransport as Pt } from "@connectrpc/connect-web";
|
|
5
|
+
import { messageDesc as ee, fileDesc as te, serviceDesc as se } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { S as jt, R as Ot, C as qt, N as He } from "./importhub-client-fCWgKH03.js";
|
|
7
|
+
import { jsxs as b, jsx as t, Fragment as P } from "react/jsx-runtime";
|
|
8
|
+
import { Link as Pe, Box as M, Spinner as _t, Stack as X, Alert as v, Text as Q, Grid as ht, HStack as j, NativeSelect as $t, Center as It, Progress as St, List as at, MenuRoot as el, MenuTrigger as tl, MenuContent as ll, MenuItem as nl } from "@knkcs/anker/primitives";
|
|
9
|
+
import { ExternalLink as il, Blocks as al, Ampersand as ol, Waypoints as rl, FileCog as cl, FileUp as sl, Trash2 as We, Plus as de, CircleStop as dl, Play as yt, ArrowUp as ml, ArrowDown as pl, Settings2 as ul, Lock as bl } from "lucide-react";
|
|
10
10
|
import { useTranslation as S } from "react-i18next";
|
|
11
|
-
import { I as
|
|
12
|
-
import { h as
|
|
13
|
-
import { EmptyState as
|
|
14
|
-
import { useHostIdentity as
|
|
15
|
-
import { IndexPageTemplate as
|
|
16
|
-
import { useQuery as
|
|
17
|
-
import { ContextRail as
|
|
18
|
-
import { InputField as
|
|
19
|
-
import { useState as
|
|
20
|
-
import { useForm as
|
|
21
|
-
import { Link as
|
|
22
|
-
import { zodResolver as
|
|
23
|
-
import { FieldKitProvider as
|
|
24
|
-
import { specToZodSchema as
|
|
25
|
-
const
|
|
26
|
-
var
|
|
27
|
-
const dt = /* @__PURE__ */ P("Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAQo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USKwoKcHJvY2Vzc29ycxgBIAMoCzIXLmltcG9ydGh1Yi52MS5Qcm9jZXNzb3IiuAEKCVByb2Nlc3NvchIMCgRuYW1lGAEgASgJEikKBGtpbmQYAiABKA4yGy5pbXBvcnRodWIudjEuUHJvY2Vzc29yS2luZBItCgZ0YXJnZXQYAyABKA4yHS5pbXBvcnRodWIudjEuUHJvY2Vzc29yVGFyZ2V0EhMKC2Rlc2NyaXB0aW9uGAQgASgJEi4KDXNldHRpbmdzX3NwZWMYBSADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0KnMKDVByb2Nlc3NvcktpbmQSHgoaUFJPQ0VTU09SX0tJTkRfVU5TUEVDSUZJRUQQABIfChtQUk9DRVNTT1JfS0lORF9QUkVQUk9DRVNTT1IQARIhCh1QUk9DRVNTT1JfS0lORF9QT1NUX1BST0NFU1NPUhACKnsKD1Byb2Nlc3NvclRhcmdldBIgChxQUk9DRVNTT1JfVEFSR0VUX1VOU1BFQ0lGSUVEEAASIAocUFJPQ0VTU09SX1RBUkdFVF9TT1VSQ0VfRklMRRABEiQKIFBST0NFU1NPUl9UQVJHRVRfUklDSF9URVhUX0ZJRUxEEAIybwoQUHJvY2Vzc29yU2VydmljZRJbCg5MaXN0UHJvY2Vzc29ycxIjLmltcG9ydGh1Yi52MS5MaXN0UHJvY2Vzc29yc1JlcXVlc3QaJC5pbXBvcnRodWIudjEuTGlzdFByb2Nlc3NvcnNSZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [Ee]);
|
|
28
|
-
var
|
|
29
|
-
const nl = /* @__PURE__ */ be(ll, 0), te = (e) => ({
|
|
11
|
+
import { I as y, u as w, i as h, L, a as me, b as pe, c as Gt, d as At, C as Zt, V as Et, D as Xt, R as Bt, e as le, f as je, r as Wt, M as gl, g as Vl } from "./mapping-page-D92XwUq5.js";
|
|
12
|
+
import { h as $n, j as ei, S as ti, k as li } from "./mapping-page-D92XwUq5.js";
|
|
13
|
+
import { EmptyState as ft, IconButton as Xe, Button as C, StatusBadge as Je, SearchInput as Rl } from "@knkcs/anker/atoms";
|
|
14
|
+
import { useHostIdentity as W } from "@knkcs/anker/host";
|
|
15
|
+
import { IndexPageTemplate as ne, DetailPageTemplate as z, usePageRail as Oe } from "@knkcs/anker/templates";
|
|
16
|
+
import { useQuery as J, useQueryClient as O, useMutation as ue, useInfiniteQuery as vt } from "@tanstack/react-query";
|
|
17
|
+
import { ContextRail as F, Card as U, Modal as qe, LinkCell as Ce, CountCell as hl, TruncatedTextCell as K, DataTable as ie, StatusBadgeCell as Il, SlugCell as Jt, CodeCell as Me, Toolbar as Ue, DescriptionList as Y, DateCell as Sl, NumberCell as we, UploadDropZone as yl } from "@knkcs/anker/components";
|
|
18
|
+
import { InputField as D, TextareaField as _e, BaseSelectField as fe, SwitchField as ot, DatePickerField as rt } from "@knkcs/anker/forms";
|
|
19
|
+
import { useState as x, useEffect as q, useMemo as k, useCallback as Gl, useRef as Ct } from "react";
|
|
20
|
+
import { useForm as be, useFieldArray as Al, FormProvider as ge, useFormContext as Nt, useWatch as Ve } from "react-hook-form";
|
|
21
|
+
import { Link as Yt } from "react-router";
|
|
22
|
+
import { zodResolver as Zl } from "@hookform/resolvers/zod";
|
|
23
|
+
import { FieldKitProvider as El, SpecForm as ct } from "@knkcs/fieldkit/renderer";
|
|
24
|
+
import { specToZodSchema as Xl, builtInFieldTypes as st } from "@knkcs/fieldkit/schema";
|
|
25
|
+
const Re = /* @__PURE__ */ te("CiBpbXBvcnRodWIvdjEvY29uZmlndXJhdGlvbi5wcm90bxIMaW1wb3J0aHViLnYxIkgKCFZhbGlkaXR5Eg0KBXZhbGlkGAEgASgIEi0KB3JlYXNvbnMYAiADKAsyHC5pbXBvcnRodWIudjEuVmFsaWRpdHlSZWFzb24iPQoOVmFsaWRpdHlSZWFzb24SDAoEcGF0aBgBIAEoCRIMCgRjb2RlGA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RVU19VTlNQRUNJRklFRBAAEiUKIUZJRUxEX0NPTVBBUklTT05fU1RBVFVTX1VOQ0hBTkdFRBABEiEKHUZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0FEREVEEAISIwofRklFTERfQ09NUEFSSVNPTl9TVEFUVVNfUkVNT1ZFRBADEiMKH0ZJRUxEX0NPTVBBUklTT05fU1RBVFVTX0NIQU5HRUQQBEI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [ce]), Bl = /* @__PURE__ */ ee(Re, 0), Wl = /* @__PURE__ */ ee(Re, 7);
|
|
26
|
+
var _ = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.UNCHANGED = 1] = "UNCHANGED", e[e.ADDED = 2] = "ADDED", e[e.REMOVED = 3] = "REMOVED", e[e.CHANGED = 4] = "CHANGED", e))(_ || {});
|
|
27
|
+
const Ut = /* @__PURE__ */ te("Ch1pbXBvcnRodWIvdjEvZW50aXR5X3NldC5wcm90bxIMaW1wb3J0aHViLnYxIugBCglFbnRpdHlTZXQSCgoCaWQYASABKAkSEwoLcmV2aXNpb25faWQYAiABKAkSLwoHY29udGVudBgDIAEoCzIeLmltcG9ydGh1Yi52MS5FbnRpdHlTZXRDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKmAQoQRW50aXR5U2V0Q29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEj4KCGVudGl0aWVzGAMgAygLMiwuaW1wb3J0aHViLnYxLkVudGl0eVNldENvbnRlbnQuRW50aXRpZX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SZXNwb25zZUI5WjdnaXRodWIuY29tL2tua2NzL2ltcG9ydGh1Yi9nZW4vaW1wb3J0aHViL3YxO2ltcG9ydGh1YnYxYgZwcm90bzM", [ce]);
|
|
28
|
+
var $ = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.QUEUED = 1] = "QUEUED", e[e.READING = 2] = "READING", e[e.WRITING = 3] = "WRITING", e[e.ENDED = 4] = "ENDED", e))($ || {}), oe = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SUCCEEDED = 1] = "SUCCEEDED", e[e.SUCCEEDED_WITH_PROBLEMS = 2] = "SUCCEEDED_WITH_PROBLEMS", e[e.FAILED = 3] = "FAILED", e[e.CANCELLED = 4] = "CANCELLED", e))(oe || {});
|
|
29
|
+
const Cl = /* @__PURE__ */ se(Jl, 0), $e = /* @__PURE__ */ te("CiFpbXBvcnRodWIvdjEvaW1wb3J0X3Byb2ZpbGUucHJvdG8SDGltcG9ydGh1Yi52MSKiAgoNSW1wb3J0UHJvZmlsZRIKCgJpZBgBIAEoCRITCgtyZXZpc2lvbl9pZBgCIAEoCRIzCgdjb250ZW50GAMgASgLMiIuaW1wb3J0aHViLnYxLkltcG9ydFByb2ZpbGVDb250ZW50EigKCHZhbGlkaXR5GAQgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5Ei8KBXN0YXRlGAUgASgLMiAuaW1wb3J0aHViLnYxLkNvbmZpZ3VyYXRpb25TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwChBjdXJyZW50X3ZhbGlkaXR5GAcgASgLMhYuaW1wb3J0aHViLnYxLlZhbGlkaXR5IowCChRJbXBvcnRQcm9maWxlQ29udGVudBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEhUKDWVudGl0eV9zZXRfaWQYAyABKAkSMgoNcHJlc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CESSOR", e[e.POST_PROCESSOR = 2] = "POST_PROCESSOR", e))(Kt || {}), Qt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SOURCE_FILE = 1] = "SOURCE_FILE", e[e.RICH_TEXT_FIELD = 2] = "RICH_TEXT_FIELD", e))(Qt || {});
|
|
31
|
+
const wl = /* @__PURE__ */ se(Ul, 0);
|
|
32
|
+
function Fl(e, l, n) {
|
|
33
|
+
return new Promise((i, s) => {
|
|
34
|
+
const r = new XMLHttpRequest();
|
|
35
|
+
r.open("PUT", e), r.setRequestHeader("x-ms-blob-type", "BlockBlob"), r.setRequestHeader("Content-Type", l.type || "application/xml"), r.upload.onprogress = (m) => {
|
|
36
|
+
m.lengthComputable && m.total > 0 && n(m.loaded / m.total);
|
|
37
|
+
}, r.onload = () => {
|
|
38
|
+
r.status >= 200 && r.status < 300 ? (n(1), i()) : s(new Error(`the upload failed: ${r.status} ${r.statusText}`));
|
|
39
|
+
}, r.onerror = () => s(new Error("the upload failed: the network is away")), r.send(l);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const he = (e) => ({
|
|
30
43
|
valid: e?.valid ?? !1,
|
|
31
|
-
reasons: (e?.reasons ?? []).map((
|
|
32
|
-
}),
|
|
44
|
+
reasons: (e?.reasons ?? []).map((l) => ({ path: l.path, code: l.code, message: l.message }))
|
|
45
|
+
}), tt = (e) => ({
|
|
33
46
|
draftRevisionId: e?.draftRevisionId ?? "",
|
|
34
47
|
draftDiffersFromRelease: e?.draftDiffersFromRelease ?? !0,
|
|
35
48
|
...e?.latestRelease ? { latestRelease: { id: e.latestRelease.id, number: e.latestRelease.number } } : {}
|
|
36
|
-
}),
|
|
49
|
+
}), mt = (e) => ({
|
|
37
50
|
processor: e.processor,
|
|
38
51
|
settings: { ...e.settings ?? {} }
|
|
39
|
-
}),
|
|
52
|
+
}), pt = (e) => ({
|
|
40
53
|
processor: e.processor,
|
|
41
54
|
settings: e.settings
|
|
42
55
|
});
|
|
43
|
-
function
|
|
44
|
-
const
|
|
56
|
+
function Ie(e) {
|
|
57
|
+
const l = e.content;
|
|
45
58
|
return {
|
|
46
59
|
id: e.id,
|
|
47
60
|
content: {
|
|
48
|
-
name:
|
|
49
|
-
description:
|
|
50
|
-
entitySetId:
|
|
51
|
-
preprocessors: (
|
|
52
|
-
mappingIds: [...
|
|
53
|
-
postProcessors: (
|
|
54
|
-
autoPublish:
|
|
55
|
-
deleteSourceFileOnSuccess:
|
|
61
|
+
name: l?.name ?? "",
|
|
62
|
+
description: l?.description ?? "",
|
|
63
|
+
entitySetId: l?.entitySetId ?? "",
|
|
64
|
+
preprocessors: (l?.preprocessors ?? []).map(mt),
|
|
65
|
+
mappingIds: [...l?.mappingIds ?? []],
|
|
66
|
+
postProcessors: (l?.postProcessors ?? []).map(mt),
|
|
67
|
+
autoPublish: l?.autoPublish ?? !1,
|
|
68
|
+
deleteSourceFileOnSuccess: l?.deleteSourceFileOnSuccess ?? !1
|
|
56
69
|
},
|
|
57
70
|
// What an Import would meet now, not only what was decided at the save
|
|
58
71
|
// (manage-import-profiles:AC6).
|
|
59
|
-
validity:
|
|
60
|
-
state:
|
|
72
|
+
validity: he(e.currentValidity ?? e.validity),
|
|
73
|
+
state: tt(e.state)
|
|
61
74
|
};
|
|
62
75
|
}
|
|
63
|
-
const
|
|
76
|
+
const ut = (e) => Ye(wt, {
|
|
64
77
|
...e,
|
|
65
|
-
preprocessors: e.preprocessors.map((
|
|
66
|
-
postProcessors: e.postProcessors.map((
|
|
78
|
+
preprocessors: e.preprocessors.map((l) => Ye(dt, pt(l))),
|
|
79
|
+
postProcessors: e.postProcessors.map((l) => Ye(dt, pt(l)))
|
|
67
80
|
});
|
|
68
|
-
function
|
|
69
|
-
const
|
|
81
|
+
function Se(e) {
|
|
82
|
+
const l = e.content ? Ee(et, e.content) : { name: "", blueprintId: "", blueprintReleaseId: "" };
|
|
70
83
|
return {
|
|
71
84
|
id: e.id,
|
|
72
85
|
content: {
|
|
73
|
-
...
|
|
74
|
-
name:
|
|
75
|
-
blueprintId:
|
|
76
|
-
blueprintReleaseId:
|
|
86
|
+
...l,
|
|
87
|
+
name: l.name ?? "",
|
|
88
|
+
blueprintId: l.blueprintId ?? "",
|
|
89
|
+
blueprintReleaseId: l.blueprintReleaseId ?? ""
|
|
77
90
|
},
|
|
78
|
-
validity:
|
|
79
|
-
state:
|
|
91
|
+
validity: he(e.currentValidity ?? e.validity),
|
|
92
|
+
state: tt(e.state)
|
|
80
93
|
};
|
|
81
94
|
}
|
|
82
|
-
const
|
|
83
|
-
function
|
|
95
|
+
const bt = (e) => Dt(et, e, { ignoreUnknownFields: !1 });
|
|
96
|
+
function ye(e) {
|
|
84
97
|
return {
|
|
85
98
|
id: e.id,
|
|
86
99
|
content: {
|
|
@@ -88,476 +101,583 @@ function ae(e) {
|
|
|
88
101
|
description: e.content?.description ?? "",
|
|
89
102
|
entities: { ...e.content?.entities ?? {} }
|
|
90
103
|
},
|
|
91
|
-
validity:
|
|
92
|
-
state:
|
|
104
|
+
validity: he(e.validity),
|
|
105
|
+
state: tt(e.state)
|
|
93
106
|
};
|
|
94
107
|
}
|
|
95
|
-
const
|
|
108
|
+
const re = (e) => e ? Tt(e).toISOString() : "", Be = (e) => ({
|
|
96
109
|
id: e?.id ?? "",
|
|
97
110
|
number: e?.number ?? 0,
|
|
98
111
|
revisionId: e?.revisionId ?? "",
|
|
99
112
|
releasedBy: e?.releasedBy ?? "",
|
|
100
|
-
releasedAt:
|
|
101
|
-
}),
|
|
113
|
+
releasedAt: re(e?.releasedAt)
|
|
114
|
+
}), Kl = (e) => ({
|
|
102
115
|
id: e.id,
|
|
103
116
|
savedBy: e.savedBy,
|
|
104
|
-
savedAt:
|
|
105
|
-
validity:
|
|
117
|
+
savedAt: re(e.savedAt),
|
|
118
|
+
validity: he(e.validity),
|
|
106
119
|
restoredFromRevisionId: e.restoredFromRevisionId
|
|
107
|
-
}),
|
|
108
|
-
revisions: e.revisions.map(
|
|
109
|
-
releases: e.releases.map(
|
|
120
|
+
}), Fe = (e) => ({
|
|
121
|
+
revisions: e.revisions.map(Kl),
|
|
122
|
+
releases: e.releases.map(Be),
|
|
110
123
|
nextPageToken: e.nextPageToken
|
|
111
|
-
}),
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
},
|
|
124
|
+
}), Ql = {
|
|
125
|
+
[_.UNSPECIFIED]: "changed",
|
|
126
|
+
[_.UNCHANGED]: "unchanged",
|
|
127
|
+
[_.ADDED]: "added",
|
|
128
|
+
[_.REMOVED]: "removed",
|
|
129
|
+
[_.CHANGED]: "changed"
|
|
130
|
+
}, gt = (e, l) => ({
|
|
118
131
|
revisionId: e?.revisionId ?? "",
|
|
119
|
-
content: e?.content ?
|
|
120
|
-
}),
|
|
121
|
-
from:
|
|
122
|
-
to:
|
|
123
|
-
fields: e.fields.map((
|
|
132
|
+
content: e?.content ? l(e.content) : {}
|
|
133
|
+
}), Ke = { useProtoFieldName: !0, alwaysEmitImplicit: !0 }, Qe = (e, l) => ({
|
|
134
|
+
from: gt(e.from, l),
|
|
135
|
+
to: gt(e.to, l),
|
|
136
|
+
fields: e.fields.map((n) => ({ field: n.field, status: Ql[n.status] ?? "changed" }))
|
|
137
|
+
}), zl = {
|
|
138
|
+
[$.UNSPECIFIED]: "queued",
|
|
139
|
+
[$.QUEUED]: "queued",
|
|
140
|
+
[$.READING]: "reading",
|
|
141
|
+
[$.WRITING]: "writing",
|
|
142
|
+
[$.ENDED]: "ended"
|
|
143
|
+
}, xl = {
|
|
144
|
+
[oe.SUCCEEDED]: "succeeded",
|
|
145
|
+
[oe.SUCCEEDED_WITH_PROBLEMS]: "succeeded_with_problems",
|
|
146
|
+
[oe.FAILED]: "failed",
|
|
147
|
+
[oe.CANCELLED]: "cancelled"
|
|
148
|
+
}, ze = (e) => ({
|
|
149
|
+
configurationId: e.configurationId,
|
|
150
|
+
name: e.name,
|
|
151
|
+
releaseId: e.releaseId,
|
|
152
|
+
number: e.number
|
|
124
153
|
});
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
154
|
+
function Ge(e) {
|
|
155
|
+
const l = e.counts, n = xl[e.outcome];
|
|
156
|
+
return {
|
|
157
|
+
id: e.id,
|
|
158
|
+
importProfileId: e.importProfileId,
|
|
159
|
+
importProfileName: e.importProfileName,
|
|
160
|
+
sourceFileId: e.sourceFileId,
|
|
161
|
+
startedBy: e.startedBy,
|
|
162
|
+
phase: zl[e.phase] ?? "queued",
|
|
163
|
+
...n ? { outcome: n } : {},
|
|
164
|
+
failureReason: e.failureReason,
|
|
165
|
+
progress: { done: e.progress?.done ?? 0, total: e.progress?.total ?? 0 },
|
|
166
|
+
counts: {
|
|
167
|
+
matched: l?.matched ?? 0,
|
|
168
|
+
created: l?.created ?? 0,
|
|
169
|
+
problems: l?.problems ?? 0,
|
|
170
|
+
planned: l?.planned ?? 0,
|
|
171
|
+
corrected: l?.corrected ?? 0,
|
|
172
|
+
kept: l?.kept ?? 0,
|
|
173
|
+
unchanged: l?.unchanged ?? 0
|
|
174
|
+
},
|
|
175
|
+
changeSetId: e.changeSetId,
|
|
176
|
+
releases: {
|
|
177
|
+
...e.releases?.importProfile ? { importProfile: ze(e.releases.importProfile) } : {},
|
|
178
|
+
mappings: (e.releases?.mappings ?? []).map(ze),
|
|
179
|
+
...e.releases?.entitySet ? { entitySet: ze(e.releases.entitySet) } : {}
|
|
180
|
+
},
|
|
181
|
+
createTime: re(e.createTime),
|
|
182
|
+
startTime: re(e.startTime),
|
|
183
|
+
endTime: re(e.endTime),
|
|
184
|
+
cancelledBy: e.cancelledBy,
|
|
185
|
+
effectiveDate: e.effectiveDate,
|
|
186
|
+
...e.source ? { source: { date: e.source.date, reference: e.source.reference } } : {}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
async function kl(e) {
|
|
190
|
+
try {
|
|
191
|
+
return await e();
|
|
192
|
+
} catch (l) {
|
|
193
|
+
const n = ve.from(l);
|
|
194
|
+
throw n.code === T.PermissionDenied || n.code === T.FailedPrecondition || n.code === T.NotFound ? new jt(n.rawMessage) : n;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function zt(e) {
|
|
198
|
+
const l = ve.from(e);
|
|
199
|
+
if (l.code === T.FailedPrecondition) {
|
|
200
|
+
const [n] = l.findDetails(Wl);
|
|
201
|
+
if (n)
|
|
202
|
+
throw new qt(
|
|
203
|
+
n.importProfiles.map((i) => ({ id: i.id, name: i.name })),
|
|
204
|
+
l.rawMessage
|
|
133
205
|
);
|
|
134
206
|
}
|
|
135
|
-
throw
|
|
207
|
+
throw l.code === T.AlreadyExists ? new He(l.rawMessage) : l;
|
|
136
208
|
}
|
|
137
|
-
async function
|
|
209
|
+
async function Ll(e) {
|
|
138
210
|
try {
|
|
139
211
|
return await e();
|
|
140
|
-
} catch (
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
const [
|
|
144
|
-
throw new
|
|
212
|
+
} catch (l) {
|
|
213
|
+
const n = ve.from(l);
|
|
214
|
+
if (n.code === T.FailedPrecondition) {
|
|
215
|
+
const [i] = n.findDetails(Bl);
|
|
216
|
+
throw new Ot(n.rawMessage, i ? he(i) : void 0);
|
|
145
217
|
}
|
|
146
|
-
|
|
218
|
+
zt(l);
|
|
147
219
|
}
|
|
148
220
|
}
|
|
149
|
-
async function
|
|
221
|
+
async function A(e) {
|
|
150
222
|
try {
|
|
151
223
|
return await e();
|
|
152
|
-
} catch (
|
|
153
|
-
|
|
224
|
+
} catch (l) {
|
|
225
|
+
zt(l);
|
|
154
226
|
}
|
|
155
227
|
}
|
|
156
|
-
function
|
|
157
|
-
const
|
|
228
|
+
function Qn(e) {
|
|
229
|
+
const l = e.transport ?? Pt({ baseUrl: e.baseUrl, fetch: e.fetch }), n = ae(Nl, l), i = ae(wl, l), s = ae(Yl, l), r = ae(vl, l), m = ae(Cl, l), u = e.putFile ?? Fl;
|
|
158
230
|
return {
|
|
159
|
-
listImportProfiles: () =>
|
|
160
|
-
getImportProfile: (
|
|
161
|
-
async () =>
|
|
231
|
+
listImportProfiles: () => A(async () => (await n.listImportProfiles({})).importProfiles.map(Ie)),
|
|
232
|
+
getImportProfile: (o) => A(
|
|
233
|
+
async () => Ie(N((await n.getImportProfile({ id: o })).importProfile))
|
|
162
234
|
),
|
|
163
|
-
createImportProfile: (
|
|
164
|
-
async () =>
|
|
165
|
-
|
|
166
|
-
(await
|
|
235
|
+
createImportProfile: (o) => A(
|
|
236
|
+
async () => Ie(
|
|
237
|
+
N(
|
|
238
|
+
(await n.createImportProfile({ content: ut(o) })).importProfile
|
|
167
239
|
)
|
|
168
240
|
)
|
|
169
241
|
),
|
|
170
|
-
updateImportProfile: (
|
|
171
|
-
async () =>
|
|
172
|
-
|
|
173
|
-
(await
|
|
174
|
-
id:
|
|
175
|
-
content:
|
|
176
|
-
draftRevisionId:
|
|
242
|
+
updateImportProfile: (o, d, c) => A(
|
|
243
|
+
async () => Ie(
|
|
244
|
+
N(
|
|
245
|
+
(await n.updateImportProfile({
|
|
246
|
+
id: o,
|
|
247
|
+
content: ut(d),
|
|
248
|
+
draftRevisionId: c
|
|
177
249
|
})).importProfile
|
|
178
250
|
)
|
|
179
251
|
)
|
|
180
252
|
),
|
|
181
|
-
deleteImportProfile: (
|
|
182
|
-
await
|
|
253
|
+
deleteImportProfile: (o) => A(async () => {
|
|
254
|
+
await n.deleteImportProfile({ id: o });
|
|
183
255
|
}),
|
|
184
|
-
listProcessors: () =>
|
|
185
|
-
async () => (await
|
|
186
|
-
name:
|
|
187
|
-
kind:
|
|
188
|
-
target:
|
|
189
|
-
description:
|
|
190
|
-
settingsSpec:
|
|
256
|
+
listProcessors: () => A(
|
|
257
|
+
async () => (await i.listProcessors({})).processors.map((o) => ({
|
|
258
|
+
name: o.name,
|
|
259
|
+
kind: o.kind === Kt.POST_PROCESSOR ? "post_processor" : "preprocessor",
|
|
260
|
+
target: o.target === Qt.RICH_TEXT_FIELD ? "rich_text_field" : "source_file",
|
|
261
|
+
description: o.description,
|
|
262
|
+
settingsSpec: o.settingsSpec
|
|
191
263
|
}))
|
|
192
264
|
),
|
|
193
|
-
listMappings: () =>
|
|
194
|
-
getMapping: (
|
|
195
|
-
createMapping: (
|
|
196
|
-
async () =>
|
|
197
|
-
|
|
198
|
-
(await
|
|
265
|
+
listMappings: () => A(async () => (await s.listMappings({})).mappings.map(Se)),
|
|
266
|
+
getMapping: (o) => A(async () => Se(N((await s.getMapping({ id: o })).mapping))),
|
|
267
|
+
createMapping: (o) => A(
|
|
268
|
+
async () => Se(
|
|
269
|
+
N(
|
|
270
|
+
(await s.createMapping({ content: bt(o) })).mapping
|
|
199
271
|
)
|
|
200
272
|
)
|
|
201
273
|
),
|
|
202
|
-
updateMapping: (
|
|
203
|
-
async () =>
|
|
204
|
-
|
|
205
|
-
(await
|
|
206
|
-
id:
|
|
207
|
-
content:
|
|
208
|
-
draftRevisionId:
|
|
274
|
+
updateMapping: (o, d, c) => A(
|
|
275
|
+
async () => Se(
|
|
276
|
+
N(
|
|
277
|
+
(await s.updateMapping({
|
|
278
|
+
id: o,
|
|
279
|
+
content: bt(d),
|
|
280
|
+
draftRevisionId: c
|
|
209
281
|
})).mapping
|
|
210
282
|
)
|
|
211
283
|
)
|
|
212
284
|
),
|
|
213
|
-
deleteMapping: (
|
|
214
|
-
await
|
|
285
|
+
deleteMapping: (o) => A(async () => {
|
|
286
|
+
await s.deleteMapping({ id: o });
|
|
215
287
|
}),
|
|
216
|
-
listMappingImportProfiles: (
|
|
217
|
-
async () => (await
|
|
218
|
-
id:
|
|
219
|
-
name:
|
|
288
|
+
listMappingImportProfiles: (o) => A(
|
|
289
|
+
async () => (await s.listMappingImportProfiles({ id: o })).importProfiles.map((d) => ({
|
|
290
|
+
id: d.id,
|
|
291
|
+
name: d.name
|
|
220
292
|
}))
|
|
221
293
|
),
|
|
222
|
-
checkMappingBlueprintRelease: (
|
|
223
|
-
const
|
|
294
|
+
checkMappingBlueprintRelease: (o, d) => A(async () => {
|
|
295
|
+
const c = await s.checkMappingBlueprintRelease({ id: o, blueprintReleaseId: d });
|
|
224
296
|
return {
|
|
225
|
-
blueprintId:
|
|
226
|
-
missingFieldPaths: [...
|
|
227
|
-
missingReleaseSpecFields: [...
|
|
297
|
+
blueprintId: c.blueprintId,
|
|
298
|
+
missingFieldPaths: [...c.missingFieldPaths],
|
|
299
|
+
missingReleaseSpecFields: [...c.missingReleaseSpecFields]
|
|
228
300
|
};
|
|
229
301
|
}),
|
|
230
|
-
listEntitySets: () =>
|
|
231
|
-
getEntitySet: (
|
|
232
|
-
async () =>
|
|
302
|
+
listEntitySets: () => A(async () => (await r.listEntitySets({})).entitySets.map(ye)),
|
|
303
|
+
getEntitySet: (o) => A(
|
|
304
|
+
async () => ye(N((await r.getEntitySet({ id: o })).entitySet))
|
|
233
305
|
),
|
|
234
|
-
createEntitySet: (
|
|
235
|
-
async () =>
|
|
306
|
+
createEntitySet: (o) => A(
|
|
307
|
+
async () => ye(N((await r.createEntitySet({ content: o })).entitySet))
|
|
236
308
|
),
|
|
237
|
-
updateEntitySet: (
|
|
238
|
-
async () =>
|
|
239
|
-
|
|
240
|
-
(await
|
|
309
|
+
updateEntitySet: (o, d, c) => A(
|
|
310
|
+
async () => ye(
|
|
311
|
+
N(
|
|
312
|
+
(await r.updateEntitySet({ id: o, content: d, draftRevisionId: c })).entitySet
|
|
241
313
|
)
|
|
242
314
|
)
|
|
243
315
|
),
|
|
244
|
-
deleteEntitySet: (
|
|
245
|
-
await
|
|
316
|
+
deleteEntitySet: (o) => A(async () => {
|
|
317
|
+
await r.deleteEntitySet({ id: o });
|
|
246
318
|
}),
|
|
247
319
|
// One RPC per kind of configuration, each on its own service (the
|
|
248
320
|
// protos have no configuration service: a client always knows which
|
|
249
321
|
// kind it looks at); the screens ask by kind.
|
|
250
|
-
cutRelease: (
|
|
251
|
-
const
|
|
252
|
-
switch (
|
|
322
|
+
cutRelease: (o, d, c) => Ll(async () => {
|
|
323
|
+
const a = { id: d, draftRevisionId: c };
|
|
324
|
+
switch (o) {
|
|
253
325
|
case "importProfile":
|
|
254
326
|
return {
|
|
255
|
-
release:
|
|
327
|
+
release: Be((await n.cutImportProfileRelease(a)).release),
|
|
256
328
|
importProfiles: []
|
|
257
329
|
};
|
|
258
330
|
case "mapping": {
|
|
259
|
-
const
|
|
331
|
+
const p = await s.cutMappingRelease(a);
|
|
260
332
|
return {
|
|
261
|
-
release:
|
|
262
|
-
importProfiles:
|
|
333
|
+
release: Be(p.release),
|
|
334
|
+
importProfiles: p.importProfiles.map((V) => ({ id: V.id, name: V.name }))
|
|
263
335
|
};
|
|
264
336
|
}
|
|
265
337
|
case "entitySet":
|
|
266
338
|
return {
|
|
267
|
-
release:
|
|
339
|
+
release: Be((await r.cutEntitySetRelease(a)).release),
|
|
268
340
|
importProfiles: []
|
|
269
341
|
};
|
|
270
342
|
}
|
|
271
343
|
}),
|
|
272
|
-
listHistory: (
|
|
273
|
-
const
|
|
274
|
-
switch (
|
|
344
|
+
listHistory: (o, d, c) => A(async () => {
|
|
345
|
+
const a = { id: d, pageToken: c };
|
|
346
|
+
switch (o) {
|
|
275
347
|
case "importProfile":
|
|
276
|
-
return
|
|
348
|
+
return Fe(await n.listImportProfileHistory(a));
|
|
277
349
|
case "mapping":
|
|
278
|
-
return
|
|
350
|
+
return Fe(await s.listMappingHistory(a));
|
|
279
351
|
case "entitySet":
|
|
280
|
-
return
|
|
352
|
+
return Fe(await r.listEntitySetHistory(a));
|
|
281
353
|
}
|
|
282
354
|
}),
|
|
283
|
-
compareRevisions: (
|
|
284
|
-
const
|
|
285
|
-
switch (
|
|
355
|
+
compareRevisions: (o, d, c, a) => A(async () => {
|
|
356
|
+
const p = { id: d, fromRevisionId: c, toRevisionId: a };
|
|
357
|
+
switch (o) {
|
|
286
358
|
case "importProfile":
|
|
287
|
-
return
|
|
288
|
-
await
|
|
289
|
-
(
|
|
359
|
+
return Qe(
|
|
360
|
+
await n.compareImportProfileRevisions(p),
|
|
361
|
+
(V) => Ee(wt, V, Ke)
|
|
290
362
|
);
|
|
291
363
|
case "mapping":
|
|
292
|
-
return
|
|
293
|
-
await
|
|
294
|
-
(
|
|
364
|
+
return Qe(
|
|
365
|
+
await s.compareMappingRevisions(p),
|
|
366
|
+
(V) => Ee(et, V, Ke)
|
|
295
367
|
);
|
|
296
368
|
case "entitySet":
|
|
297
|
-
return
|
|
298
|
-
await
|
|
299
|
-
(
|
|
369
|
+
return Qe(
|
|
370
|
+
await r.compareEntitySetRevisions(p),
|
|
371
|
+
(V) => Ee(fl, V, Ke)
|
|
300
372
|
);
|
|
301
373
|
}
|
|
302
374
|
}),
|
|
303
|
-
restoreRevision: (
|
|
304
|
-
const
|
|
305
|
-
switch (
|
|
375
|
+
restoreRevision: (o, d, c, a) => A(async () => {
|
|
376
|
+
const p = { id: d, revisionId: c, draftRevisionId: a };
|
|
377
|
+
switch (o) {
|
|
306
378
|
case "importProfile":
|
|
307
|
-
await
|
|
379
|
+
await n.restoreImportProfileRevision(p);
|
|
308
380
|
return;
|
|
309
381
|
case "mapping":
|
|
310
|
-
await
|
|
382
|
+
await s.restoreMappingRevision(p);
|
|
311
383
|
return;
|
|
312
384
|
case "entitySet":
|
|
313
|
-
await
|
|
385
|
+
await r.restoreEntitySetRevision(p);
|
|
314
386
|
return;
|
|
315
387
|
}
|
|
388
|
+
}),
|
|
389
|
+
uploadSourceFile: (o, d) => A(async () => {
|
|
390
|
+
const c = await m.createSourceFileUpload({ fileName: o.name }), a = N(c.sourceFile);
|
|
391
|
+
return await u(c.uploadUrl, o, d), { id: a.id, fileName: a.fileName };
|
|
392
|
+
}),
|
|
393
|
+
startImport: (o) => kl(
|
|
394
|
+
async () => Ge(
|
|
395
|
+
N(
|
|
396
|
+
(await m.startImport({
|
|
397
|
+
importProfileId: o.importProfileId,
|
|
398
|
+
sourceFileId: o.sourceFileId,
|
|
399
|
+
effectiveDate: o.effectiveDate ?? "",
|
|
400
|
+
source: o.source
|
|
401
|
+
})).import
|
|
402
|
+
)
|
|
403
|
+
)
|
|
404
|
+
),
|
|
405
|
+
listImports: (o) => A(async () => {
|
|
406
|
+
const d = await m.listImports({ pageToken: o });
|
|
407
|
+
return { imports: d.imports.map(Ge), nextPageToken: d.nextPageToken };
|
|
408
|
+
}),
|
|
409
|
+
getImport: (o) => A(async () => Ge(N((await m.getImport({ id: o })).import))),
|
|
410
|
+
cancelImport: (o) => A(async () => Ge(N((await m.cancelImport({ id: o })).import))),
|
|
411
|
+
listItemProblems: (o, d) => A(async () => {
|
|
412
|
+
const c = await m.listItemProblems({
|
|
413
|
+
importId: o,
|
|
414
|
+
mappingId: d.mappingId,
|
|
415
|
+
sourceKeyQuery: d.sourceKeyQuery,
|
|
416
|
+
pageToken: d.pageToken
|
|
417
|
+
});
|
|
418
|
+
return {
|
|
419
|
+
itemProblems: c.itemProblems.map((a) => ({
|
|
420
|
+
id: a.id,
|
|
421
|
+
mappingId: a.mappingId,
|
|
422
|
+
mappingName: a.mappingName,
|
|
423
|
+
sourceKey: a.sourceKey,
|
|
424
|
+
field: a.field,
|
|
425
|
+
reason: a.reason
|
|
426
|
+
})),
|
|
427
|
+
totalCount: c.totalCount,
|
|
428
|
+
matchingCount: c.matchingCount,
|
|
429
|
+
mappings: c.mappings.map((a) => ({
|
|
430
|
+
mappingId: a.mappingId,
|
|
431
|
+
mappingName: a.mappingName,
|
|
432
|
+
count: a.count
|
|
433
|
+
})),
|
|
434
|
+
nextPageToken: c.nextPageToken
|
|
435
|
+
};
|
|
316
436
|
})
|
|
317
437
|
};
|
|
318
438
|
}
|
|
319
|
-
function
|
|
439
|
+
function N(e) {
|
|
320
440
|
if (e === void 0)
|
|
321
|
-
throw new ve("importhub answered without a message",
|
|
441
|
+
throw new ve("importhub answered without a message", T.Internal);
|
|
322
442
|
return e;
|
|
323
443
|
}
|
|
324
|
-
function
|
|
325
|
-
const { t } = S(
|
|
326
|
-
return
|
|
327
|
-
|
|
328
|
-
/* @__PURE__ */
|
|
444
|
+
function Hl({ changeSetId: e }) {
|
|
445
|
+
const { t: l } = S(y), n = w().changeSetHref(e);
|
|
446
|
+
return n ? /* @__PURE__ */ b(Pe, { href: n, target: "_blank", rel: "noopener noreferrer", children: [
|
|
447
|
+
l("changeSet.open"),
|
|
448
|
+
/* @__PURE__ */ t(il, { size: 14, "aria-hidden": !0 })
|
|
329
449
|
] }) : null;
|
|
330
450
|
}
|
|
331
|
-
const
|
|
332
|
-
imports:
|
|
333
|
-
profiles:
|
|
334
|
-
mappings:
|
|
335
|
-
entitySets:
|
|
336
|
-
processors:
|
|
451
|
+
const Ml = {
|
|
452
|
+
imports: sl,
|
|
453
|
+
profiles: cl,
|
|
454
|
+
mappings: rl,
|
|
455
|
+
entitySets: ol,
|
|
456
|
+
processors: al
|
|
337
457
|
};
|
|
338
|
-
function
|
|
339
|
-
const { t:
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
-
|
|
458
|
+
function zn({ client: e, section: l }) {
|
|
459
|
+
const { t: n } = S(y), i = Ml[l];
|
|
460
|
+
return /* @__PURE__ */ t(ne, { title: n(`section.${l}.title`), children: /* @__PURE__ */ t(M, { px: "8", py: "6", children: /* @__PURE__ */ t(
|
|
461
|
+
ft,
|
|
342
462
|
{
|
|
343
|
-
icon: /* @__PURE__ */
|
|
344
|
-
header:
|
|
345
|
-
description: /* @__PURE__ */
|
|
463
|
+
icon: /* @__PURE__ */ t(i, { size: 32, "aria-hidden": !0 }),
|
|
464
|
+
header: n(`section.${l}.title`),
|
|
465
|
+
description: /* @__PURE__ */ t(Dl, { client: e, section: l })
|
|
346
466
|
}
|
|
347
467
|
) }) });
|
|
348
468
|
}
|
|
349
|
-
function
|
|
350
|
-
switch (
|
|
469
|
+
function Dl({ client: e, section: l }) {
|
|
470
|
+
switch (l) {
|
|
351
471
|
case "profiles":
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
|
|
472
|
+
return /* @__PURE__ */ t(
|
|
473
|
+
xe,
|
|
354
474
|
{
|
|
355
|
-
section:
|
|
356
|
-
queryKey:
|
|
475
|
+
section: l,
|
|
476
|
+
queryKey: h.importProfiles,
|
|
357
477
|
read: () => e.listImportProfiles()
|
|
358
478
|
}
|
|
359
479
|
);
|
|
360
480
|
case "entitySets":
|
|
361
|
-
return /* @__PURE__ */
|
|
362
|
-
|
|
481
|
+
return /* @__PURE__ */ t(
|
|
482
|
+
xe,
|
|
363
483
|
{
|
|
364
|
-
section:
|
|
365
|
-
queryKey:
|
|
484
|
+
section: l,
|
|
485
|
+
queryKey: h.entitySets,
|
|
366
486
|
read: () => e.listEntitySets()
|
|
367
487
|
}
|
|
368
488
|
);
|
|
369
489
|
case "processors":
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
|
|
490
|
+
return /* @__PURE__ */ t(
|
|
491
|
+
xe,
|
|
372
492
|
{
|
|
373
|
-
section:
|
|
374
|
-
queryKey:
|
|
493
|
+
section: l,
|
|
494
|
+
queryKey: h.processors,
|
|
375
495
|
read: () => e.listProcessors()
|
|
376
496
|
}
|
|
377
497
|
);
|
|
378
498
|
default:
|
|
379
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ t(Tl, { section: l });
|
|
380
500
|
}
|
|
381
501
|
}
|
|
382
|
-
function
|
|
383
|
-
const { t } = S(
|
|
384
|
-
return /* @__PURE__ */
|
|
502
|
+
function Tl({ section: e }) {
|
|
503
|
+
const { t: l } = S(y);
|
|
504
|
+
return /* @__PURE__ */ t(P, { children: l(`section.${e}.empty`) });
|
|
385
505
|
}
|
|
386
|
-
function
|
|
506
|
+
function xe({
|
|
387
507
|
section: e,
|
|
388
|
-
queryKey:
|
|
389
|
-
read:
|
|
508
|
+
queryKey: l,
|
|
509
|
+
read: n
|
|
390
510
|
}) {
|
|
391
|
-
const { t:
|
|
392
|
-
return
|
|
511
|
+
const { t: i } = S(y), { workspaceId: s } = W(), r = J({ queryKey: l(s), queryFn: n });
|
|
512
|
+
return r.isPending ? /* @__PURE__ */ t(_t, { size: "sm", "aria-label": i("startPage.loading") }) : r.isError ? /* @__PURE__ */ t(P, { children: i("startPage.error") }) : /* @__PURE__ */ t(P, { children: i(`section.${e}.summary`, { count: r.data.length }) });
|
|
393
513
|
}
|
|
394
|
-
const
|
|
514
|
+
const Ae = (e) => ({
|
|
395
515
|
name: e.name,
|
|
396
516
|
description: e.description,
|
|
397
|
-
entities: Object.entries(e.entities).sort(([
|
|
398
|
-
}),
|
|
517
|
+
entities: Object.entries(e.entities).sort(([l], [n]) => l.localeCompare(n)).map(([l, n]) => ({ name: l, text: n }))
|
|
518
|
+
}), Pl = (e) => ({
|
|
399
519
|
name: e.name,
|
|
400
520
|
description: e.description,
|
|
401
521
|
entities: Object.fromEntries(
|
|
402
|
-
e.entities.filter((
|
|
522
|
+
e.entities.filter((l) => l.name.trim() !== "").map((l) => [l.name.trim(), l.text])
|
|
403
523
|
)
|
|
404
524
|
});
|
|
405
|
-
function
|
|
406
|
-
const { t:
|
|
407
|
-
queryKey:
|
|
408
|
-
queryFn: () => e.getEntitySet(
|
|
525
|
+
function xn({ client: e, id: l, onDeleted: n }) {
|
|
526
|
+
const { t: i } = S(y), { workspaceId: s } = W(), r = J({
|
|
527
|
+
queryKey: h.entitySet(s, l),
|
|
528
|
+
queryFn: () => e.getEntitySet(l)
|
|
409
529
|
});
|
|
410
|
-
return
|
|
530
|
+
return r.isError || !r.data ? /* @__PURE__ */ t(z, { title: i("section.entitySets.title"), children: r.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(me, {}) }) : /* @__PURE__ */ t(jl, { client: e, entitySet: r.data, onDeleted: n });
|
|
411
531
|
}
|
|
412
|
-
function
|
|
532
|
+
function jl({
|
|
413
533
|
client: e,
|
|
414
|
-
entitySet:
|
|
415
|
-
onDeleted:
|
|
534
|
+
entitySet: l,
|
|
535
|
+
onDeleted: n
|
|
416
536
|
}) {
|
|
417
|
-
const { t:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
422
|
-
mutationFn: (
|
|
423
|
-
onSuccess: (
|
|
424
|
-
|
|
537
|
+
const { t: i } = S(y), { workspaceId: s } = W(), { paths: r } = w(), m = pe(), u = O(), [o, d] = x(!1), c = be({ defaultValues: Ae(l.content) }), { reset: a, formState: p, control: V } = c, R = Al({ control: V, name: "entities" });
|
|
538
|
+
q(() => {
|
|
539
|
+
p.isDirty || a(Ae(l.content));
|
|
540
|
+
}, [l, a, p.isDirty]);
|
|
541
|
+
const I = ue({
|
|
542
|
+
mutationFn: (Z) => e.updateEntitySet(l.id, Pl(Z), l.state.draftRevisionId),
|
|
543
|
+
onSuccess: (Z) => {
|
|
544
|
+
u.setQueryData(h.entitySet(s, Z.id), Z), a(Ae(Z.content)), u.invalidateQueries({ queryKey: h.entitySets(s) });
|
|
425
545
|
}
|
|
426
|
-
}),
|
|
546
|
+
}), g = c.handleSubmit((Z) => I.mutate(Z)), [H, G] = Gt(), B = At({
|
|
427
547
|
client: e,
|
|
428
548
|
kind: "entitySet",
|
|
429
|
-
id:
|
|
430
|
-
validity:
|
|
431
|
-
state:
|
|
432
|
-
unsaved:
|
|
549
|
+
id: l.id,
|
|
550
|
+
validity: l.validity,
|
|
551
|
+
state: l.state,
|
|
552
|
+
unsaved: p.isDirty
|
|
433
553
|
});
|
|
434
|
-
return
|
|
435
|
-
|
|
436
|
-
/* @__PURE__ */
|
|
437
|
-
/* @__PURE__ */
|
|
438
|
-
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
|
|
554
|
+
return Oe(
|
|
555
|
+
m ? /* @__PURE__ */ b(F, { storageKey: "importhub.entitySet.rail", children: [
|
|
556
|
+
/* @__PURE__ */ t(F.Header, { title: i("rail.title") }),
|
|
557
|
+
/* @__PURE__ */ b(F.Section, { id: "actions", label: i("rail.actions"), children: [
|
|
558
|
+
B.railAction,
|
|
559
|
+
/* @__PURE__ */ t(
|
|
560
|
+
F.IconButton,
|
|
441
561
|
{
|
|
442
|
-
label:
|
|
443
|
-
icon: /* @__PURE__ */
|
|
562
|
+
label: i("entitySets.delete"),
|
|
563
|
+
icon: /* @__PURE__ */ t(We, { size: 16 }),
|
|
444
564
|
tone: "outline-red",
|
|
445
|
-
onClick: () =>
|
|
565
|
+
onClick: () => d(!0)
|
|
446
566
|
}
|
|
447
567
|
)
|
|
448
568
|
] })
|
|
449
569
|
] }) : null
|
|
450
|
-
), /* @__PURE__ */
|
|
451
|
-
|
|
570
|
+
), /* @__PURE__ */ b(
|
|
571
|
+
z,
|
|
452
572
|
{
|
|
453
|
-
title:
|
|
454
|
-
breadcrumbs: [{ label:
|
|
455
|
-
badges: /* @__PURE__ */
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
|
|
573
|
+
title: l.content.name,
|
|
574
|
+
breadcrumbs: [{ label: i("section.entitySets.title"), to: r.entitySets }],
|
|
575
|
+
badges: /* @__PURE__ */ b(j, { gap: "2", children: [
|
|
576
|
+
/* @__PURE__ */ t(
|
|
577
|
+
Je,
|
|
458
578
|
{
|
|
459
|
-
tone:
|
|
460
|
-
label:
|
|
579
|
+
tone: l.validity.valid ? "success" : "danger",
|
|
580
|
+
label: l.validity.valid ? i("validity.valid") : i("validity.invalid")
|
|
461
581
|
}
|
|
462
582
|
),
|
|
463
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ t(Bt, { state: l.state })
|
|
464
584
|
] }),
|
|
465
|
-
tabs:
|
|
466
|
-
actions:
|
|
585
|
+
tabs: G,
|
|
586
|
+
actions: m ? /* @__PURE__ */ t(
|
|
467
587
|
C,
|
|
468
588
|
{
|
|
469
589
|
variant: "solid",
|
|
470
|
-
disabled: !
|
|
471
|
-
loading:
|
|
590
|
+
disabled: !p.isDirty,
|
|
591
|
+
loading: I.isPending,
|
|
472
592
|
onClick: () => {
|
|
473
|
-
|
|
593
|
+
g();
|
|
474
594
|
},
|
|
475
|
-
children:
|
|
595
|
+
children: i("common.save")
|
|
476
596
|
}
|
|
477
597
|
) : void 0,
|
|
478
598
|
children: [
|
|
479
|
-
|
|
480
|
-
|
|
599
|
+
H === "history" ? /* @__PURE__ */ t(
|
|
600
|
+
Zt,
|
|
481
601
|
{
|
|
482
602
|
client: e,
|
|
483
603
|
kind: "entitySet",
|
|
484
|
-
id:
|
|
485
|
-
draftRevisionId:
|
|
604
|
+
id: l.id,
|
|
605
|
+
draftRevisionId: l.state.draftRevisionId,
|
|
486
606
|
onRestored: async () => {
|
|
487
|
-
const
|
|
488
|
-
|
|
607
|
+
const Z = await e.getEntitySet(l.id);
|
|
608
|
+
u.setQueryData(h.entitySet(s, Z.id), Z), a(Ae(Z.content));
|
|
489
609
|
}
|
|
490
610
|
}
|
|
491
|
-
) : /* @__PURE__ */
|
|
611
|
+
) : /* @__PURE__ */ t(M, { px: "8", py: "6", children: /* @__PURE__ */ t(ge, { ...c, children: /* @__PURE__ */ t(
|
|
492
612
|
"form",
|
|
493
613
|
{
|
|
494
|
-
onSubmit: (
|
|
495
|
-
|
|
614
|
+
onSubmit: (Z) => {
|
|
615
|
+
Z.preventDefault(), m && g();
|
|
496
616
|
},
|
|
497
|
-
children: /* @__PURE__ */
|
|
498
|
-
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
-
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
|
|
617
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
618
|
+
B.notice,
|
|
619
|
+
/* @__PURE__ */ t(Et, { validity: l.validity }),
|
|
620
|
+
I.isError ? /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: i("save.failed"), children: I.error.message }) : null,
|
|
621
|
+
/* @__PURE__ */ t(U, { title: i("entitySets.general"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
622
|
+
/* @__PURE__ */ t(
|
|
623
|
+
D,
|
|
504
624
|
{
|
|
505
625
|
name: "name",
|
|
506
|
-
label:
|
|
626
|
+
label: i("fields.name"),
|
|
507
627
|
required: !0,
|
|
508
|
-
disabled: !
|
|
628
|
+
disabled: !m
|
|
509
629
|
}
|
|
510
630
|
),
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
|
|
631
|
+
/* @__PURE__ */ t(
|
|
632
|
+
_e,
|
|
513
633
|
{
|
|
514
634
|
name: "description",
|
|
515
|
-
label:
|
|
516
|
-
disabled: !
|
|
635
|
+
label: i("fields.description"),
|
|
636
|
+
disabled: !m
|
|
517
637
|
}
|
|
518
638
|
)
|
|
519
639
|
] }) }),
|
|
520
|
-
/* @__PURE__ */
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
|
|
640
|
+
/* @__PURE__ */ t(U, { title: i("entitySets.entities"), children: /* @__PURE__ */ b(X, { gap: "3", children: [
|
|
641
|
+
R.fields.length === 0 ? /* @__PURE__ */ t(Q, { color: "fg.muted", children: i("entitySets.noEntities") }) : null,
|
|
642
|
+
R.fields.map((Z, f) => /* @__PURE__ */ b(ht, { templateColumns: "1fr 1fr auto", gap: "3", alignItems: "end", children: [
|
|
643
|
+
/* @__PURE__ */ t(
|
|
644
|
+
D,
|
|
525
645
|
{
|
|
526
|
-
name: `entities.${
|
|
527
|
-
label:
|
|
646
|
+
name: `entities.${f}.name`,
|
|
647
|
+
label: i("entitySets.entityName", { index: f + 1 }),
|
|
528
648
|
prepend: "&",
|
|
529
649
|
append: ";",
|
|
530
|
-
disabled: !
|
|
650
|
+
disabled: !m
|
|
531
651
|
}
|
|
532
652
|
),
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
|
|
653
|
+
/* @__PURE__ */ t(
|
|
654
|
+
D,
|
|
535
655
|
{
|
|
536
|
-
name: `entities.${
|
|
537
|
-
label:
|
|
538
|
-
disabled: !
|
|
656
|
+
name: `entities.${f}.text`,
|
|
657
|
+
label: i("entitySets.entityText", { index: f + 1 }),
|
|
658
|
+
disabled: !m
|
|
539
659
|
}
|
|
540
660
|
),
|
|
541
|
-
|
|
542
|
-
|
|
661
|
+
m ? /* @__PURE__ */ t(
|
|
662
|
+
Xe,
|
|
543
663
|
{
|
|
544
|
-
"aria-label":
|
|
664
|
+
"aria-label": i("entitySets.removeEntity", { index: f + 1 }),
|
|
545
665
|
variant: "ghost",
|
|
546
666
|
colorPalette: "red",
|
|
547
|
-
onClick: () =>
|
|
548
|
-
children: /* @__PURE__ */
|
|
667
|
+
onClick: () => R.remove(f),
|
|
668
|
+
children: /* @__PURE__ */ t(We, { size: 16 })
|
|
549
669
|
}
|
|
550
|
-
) : /* @__PURE__ */
|
|
551
|
-
] },
|
|
552
|
-
|
|
670
|
+
) : /* @__PURE__ */ t("span", {})
|
|
671
|
+
] }, Z.id)),
|
|
672
|
+
m ? /* @__PURE__ */ t(M, { children: /* @__PURE__ */ b(
|
|
553
673
|
C,
|
|
554
674
|
{
|
|
555
675
|
variant: "outline",
|
|
556
676
|
size: "sm",
|
|
557
|
-
onClick: () =>
|
|
677
|
+
onClick: () => R.append({ name: "", text: "" }),
|
|
558
678
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
-
|
|
679
|
+
/* @__PURE__ */ t(de, { size: 14, "aria-hidden": !0 }),
|
|
680
|
+
i("entitySets.addEntity")
|
|
561
681
|
]
|
|
562
682
|
}
|
|
563
683
|
) }) : null
|
|
@@ -565,19 +685,19 @@ function ml({
|
|
|
565
685
|
] })
|
|
566
686
|
}
|
|
567
687
|
) }) }),
|
|
568
|
-
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
|
|
688
|
+
B.dialog,
|
|
689
|
+
/* @__PURE__ */ t(
|
|
690
|
+
Xt,
|
|
571
691
|
{
|
|
572
|
-
open:
|
|
573
|
-
onClose: () =>
|
|
574
|
-
title:
|
|
575
|
-
message:
|
|
576
|
-
onDelete: () => e.deleteEntitySet(
|
|
692
|
+
open: o,
|
|
693
|
+
onClose: () => d(!1),
|
|
694
|
+
title: i("entitySets.deleteTitle", { name: l.content.name }),
|
|
695
|
+
message: i("entitySets.deleteMessage"),
|
|
696
|
+
onDelete: () => e.deleteEntitySet(l.id),
|
|
577
697
|
onDeleted: () => {
|
|
578
|
-
|
|
579
|
-
queryKey:
|
|
580
|
-
}),
|
|
698
|
+
d(!1), u.removeQueries({
|
|
699
|
+
queryKey: h.entitySet(s, l.id)
|
|
700
|
+
}), u.invalidateQueries({ queryKey: h.entitySets(s) }), n();
|
|
581
701
|
}
|
|
582
702
|
}
|
|
583
703
|
)
|
|
@@ -585,138 +705,138 @@ function ml({
|
|
|
585
705
|
}
|
|
586
706
|
);
|
|
587
707
|
}
|
|
588
|
-
function
|
|
708
|
+
function lt({
|
|
589
709
|
open: e,
|
|
590
|
-
onClose:
|
|
591
|
-
title:
|
|
592
|
-
children:
|
|
593
|
-
defaultValues:
|
|
594
|
-
onCreate:
|
|
595
|
-
onCreated:
|
|
710
|
+
onClose: l,
|
|
711
|
+
title: n,
|
|
712
|
+
children: i,
|
|
713
|
+
defaultValues: s,
|
|
714
|
+
onCreate: r,
|
|
715
|
+
onCreated: m
|
|
596
716
|
}) {
|
|
597
|
-
const { t:
|
|
598
|
-
defaultValues: { name: "", description: "", ...
|
|
599
|
-
}),
|
|
600
|
-
|
|
601
|
-
e && (
|
|
602
|
-
}, [e,
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
605
|
-
|
|
717
|
+
const { t: u } = S(y), o = be({
|
|
718
|
+
defaultValues: { name: "", description: "", ...s }
|
|
719
|
+
}), d = ue({ mutationFn: r, onSuccess: m }), { reset: c } = o, { reset: a } = d;
|
|
720
|
+
q(() => {
|
|
721
|
+
e && (c({ name: "", description: "", ...s }), a());
|
|
722
|
+
}, [e, c, a, s]);
|
|
723
|
+
const p = o.handleSubmit((V) => {
|
|
724
|
+
if (!V.name.trim()) {
|
|
725
|
+
o.setError("name", { message: u("create.nameRequired") });
|
|
606
726
|
return;
|
|
607
727
|
}
|
|
608
|
-
|
|
609
|
-
onError: (
|
|
610
|
-
|
|
728
|
+
d.mutate(V, {
|
|
729
|
+
onError: (R) => {
|
|
730
|
+
R instanceof He && o.setError("name", { message: u("create.nameTaken") });
|
|
611
731
|
}
|
|
612
732
|
});
|
|
613
733
|
});
|
|
614
|
-
return /* @__PURE__ */
|
|
615
|
-
|
|
734
|
+
return /* @__PURE__ */ t(
|
|
735
|
+
qe,
|
|
616
736
|
{
|
|
617
737
|
open: e,
|
|
618
|
-
onClose:
|
|
619
|
-
header:
|
|
738
|
+
onClose: l,
|
|
739
|
+
header: n,
|
|
620
740
|
lazyMount: !0,
|
|
621
741
|
unmountOnExit: !0,
|
|
622
|
-
saveLabel:
|
|
623
|
-
cancelLabel:
|
|
742
|
+
saveLabel: u("common.create"),
|
|
743
|
+
cancelLabel: u("common.cancel"),
|
|
624
744
|
onSave: () => {
|
|
625
|
-
|
|
745
|
+
p();
|
|
626
746
|
},
|
|
627
|
-
loading:
|
|
628
|
-
children: /* @__PURE__ */
|
|
747
|
+
loading: d.isPending,
|
|
748
|
+
children: /* @__PURE__ */ t(ge, { ...o, children: /* @__PURE__ */ t(
|
|
629
749
|
"form",
|
|
630
750
|
{
|
|
631
|
-
onSubmit: (
|
|
632
|
-
|
|
751
|
+
onSubmit: (V) => {
|
|
752
|
+
V.preventDefault(), p();
|
|
633
753
|
},
|
|
634
|
-
children: /* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
|
|
638
|
-
|
|
754
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
755
|
+
/* @__PURE__ */ t(D, { name: "name", label: u("fields.name"), required: !0 }),
|
|
756
|
+
/* @__PURE__ */ t(_e, { name: "description", label: u("fields.description") }),
|
|
757
|
+
i,
|
|
758
|
+
d.isError && !(d.error instanceof He) ? /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: u("create.failed") }) : null
|
|
639
759
|
] })
|
|
640
760
|
}
|
|
641
761
|
) })
|
|
642
762
|
}
|
|
643
763
|
);
|
|
644
764
|
}
|
|
645
|
-
function
|
|
646
|
-
const { t:
|
|
647
|
-
queryKey:
|
|
765
|
+
function kn({ client: e, onOpen: l }) {
|
|
766
|
+
const { t: n } = S(y), { workspaceId: i } = W(), { paths: s } = w(), r = pe(), m = O(), [u, o] = x(!1), d = J({
|
|
767
|
+
queryKey: h.entitySets(i),
|
|
648
768
|
queryFn: () => e.listEntitySets()
|
|
649
|
-
}),
|
|
769
|
+
}), c = k(
|
|
650
770
|
() => [
|
|
651
771
|
{
|
|
652
772
|
id: "name",
|
|
653
|
-
header:
|
|
654
|
-
cell: (
|
|
655
|
-
|
|
773
|
+
header: n("fields.name"),
|
|
774
|
+
cell: (a) => /* @__PURE__ */ t(
|
|
775
|
+
Ce,
|
|
656
776
|
{
|
|
657
|
-
to:
|
|
658
|
-
label:
|
|
777
|
+
to: le(s, "entitySets", a.row.original.id),
|
|
778
|
+
label: a.row.original.content.name
|
|
659
779
|
}
|
|
660
780
|
)
|
|
661
781
|
},
|
|
662
782
|
{
|
|
663
783
|
id: "entities",
|
|
664
|
-
header:
|
|
784
|
+
header: n("entitySets.entities"),
|
|
665
785
|
size: 120,
|
|
666
|
-
cell: (
|
|
667
|
-
|
|
786
|
+
cell: (a) => /* @__PURE__ */ t(
|
|
787
|
+
hl,
|
|
668
788
|
{
|
|
669
|
-
value:
|
|
670
|
-
singular:
|
|
671
|
-
plural:
|
|
789
|
+
value: a.row.original.content.entities,
|
|
790
|
+
singular: n("entitySets.entity"),
|
|
791
|
+
plural: n("entitySets.entities")
|
|
672
792
|
}
|
|
673
793
|
)
|
|
674
794
|
},
|
|
675
795
|
{
|
|
676
796
|
id: "validity",
|
|
677
|
-
header:
|
|
678
|
-
cell: (
|
|
797
|
+
header: n("validity.column"),
|
|
798
|
+
cell: (a) => /* @__PURE__ */ t(je, { validity: a.row.original.validity })
|
|
679
799
|
},
|
|
680
800
|
{
|
|
681
801
|
id: "release",
|
|
682
|
-
header:
|
|
802
|
+
header: n("release.column"),
|
|
683
803
|
size: 140,
|
|
684
|
-
cell: (
|
|
804
|
+
cell: (a) => /* @__PURE__ */ t(K, { value: Wt(a.row.original.state, n) })
|
|
685
805
|
}
|
|
686
806
|
],
|
|
687
|
-
[
|
|
807
|
+
[n, s]
|
|
688
808
|
);
|
|
689
|
-
return /* @__PURE__ */
|
|
690
|
-
|
|
809
|
+
return /* @__PURE__ */ b(
|
|
810
|
+
ne,
|
|
691
811
|
{
|
|
692
|
-
title:
|
|
693
|
-
actions:
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
|
|
812
|
+
title: n("section.entitySets.title"),
|
|
813
|
+
actions: r ? /* @__PURE__ */ b(C, { variant: "solid", onClick: () => o(!0), children: [
|
|
814
|
+
/* @__PURE__ */ t(de, { size: 16, "aria-hidden": !0 }),
|
|
815
|
+
n("entitySets.new")
|
|
696
816
|
] }) : void 0,
|
|
697
817
|
children: [
|
|
698
|
-
|
|
699
|
-
|
|
818
|
+
d.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(
|
|
819
|
+
ie,
|
|
700
820
|
{
|
|
701
|
-
columns:
|
|
702
|
-
data:
|
|
703
|
-
loading:
|
|
704
|
-
getRowId: (
|
|
705
|
-
emptyState:
|
|
821
|
+
columns: c,
|
|
822
|
+
data: d.data ?? [],
|
|
823
|
+
loading: d.isPending,
|
|
824
|
+
getRowId: (a) => a.id,
|
|
825
|
+
emptyState: n("entitySets.empty")
|
|
706
826
|
}
|
|
707
827
|
),
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
|
|
828
|
+
/* @__PURE__ */ t(
|
|
829
|
+
lt,
|
|
710
830
|
{
|
|
711
|
-
open:
|
|
712
|
-
onClose: () =>
|
|
713
|
-
title:
|
|
714
|
-
onCreate: async ({ name:
|
|
715
|
-
const
|
|
716
|
-
return await
|
|
831
|
+
open: u,
|
|
832
|
+
onClose: () => o(!1),
|
|
833
|
+
title: n("entitySets.new"),
|
|
834
|
+
onCreate: async ({ name: a, description: p }) => {
|
|
835
|
+
const V = await e.createEntitySet({ name: a, description: p, entities: {} });
|
|
836
|
+
return await m.invalidateQueries({ queryKey: h.entitySets(i) }), V.id;
|
|
717
837
|
},
|
|
718
|
-
onCreated: (
|
|
719
|
-
|
|
838
|
+
onCreated: (a) => {
|
|
839
|
+
o(!1), l(a);
|
|
720
840
|
}
|
|
721
841
|
}
|
|
722
842
|
)
|
|
@@ -724,15 +844,402 @@ function Pl({ client: e, onOpen: t }) {
|
|
|
724
844
|
}
|
|
725
845
|
);
|
|
726
846
|
}
|
|
727
|
-
function
|
|
728
|
-
return
|
|
847
|
+
function xt(e) {
|
|
848
|
+
return e.outcome ? e.outcome : e.cancelledBy ? "cancelling" : e.phase === "ended" ? "succeeded" : e.phase;
|
|
849
|
+
}
|
|
850
|
+
const kt = {
|
|
851
|
+
queued: "neutral",
|
|
852
|
+
reading: "info",
|
|
853
|
+
writing: "info",
|
|
854
|
+
cancelling: "warning",
|
|
855
|
+
succeeded: "success",
|
|
856
|
+
succeeded_with_problems: "warning",
|
|
857
|
+
failed: "danger",
|
|
858
|
+
cancelled: "neutral"
|
|
859
|
+
};
|
|
860
|
+
function De(e, l) {
|
|
861
|
+
switch (e) {
|
|
862
|
+
case "queued":
|
|
863
|
+
case "reading":
|
|
864
|
+
case "writing":
|
|
865
|
+
case "cancelling":
|
|
866
|
+
return l(`imports.phase.${e}`);
|
|
867
|
+
default:
|
|
868
|
+
return l(`imports.outcome.${e}`);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
const Lt = 2e3, Ne = (e) => e.phase !== "ended";
|
|
872
|
+
function Ol({ im: e }) {
|
|
873
|
+
const { t: l } = S(y), n = xt(e);
|
|
874
|
+
return /* @__PURE__ */ t(Je, { tone: kt[n], label: De(n, l) });
|
|
875
|
+
}
|
|
876
|
+
function ql({ im: e }) {
|
|
877
|
+
const { t: l } = S(y), n = xt(e);
|
|
878
|
+
return /* @__PURE__ */ t(Il, { value: De(n, l), toneMap: { [De(n, l)]: kt[n] } });
|
|
879
|
+
}
|
|
880
|
+
function nt() {
|
|
881
|
+
const { t: e } = S(y), { members: l } = W();
|
|
882
|
+
return Gl(
|
|
883
|
+
(n) => l.byId(n)?.displayName ?? e("imports.someone"),
|
|
884
|
+
[l, e]
|
|
885
|
+
);
|
|
886
|
+
}
|
|
887
|
+
function it() {
|
|
888
|
+
return w().canImport ?? !1;
|
|
729
889
|
}
|
|
730
|
-
function
|
|
731
|
-
const { t:
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
890
|
+
function _l({ client: e, im: l }) {
|
|
891
|
+
const { t: n } = S(y), { workspaceId: i } = W(), [s, r] = x(""), [m, u] = x(""), o = vt({
|
|
892
|
+
queryKey: h.itemProblems(i, l.id, s, m),
|
|
893
|
+
queryFn: ({ pageParam: g }) => e.listItemProblems(l.id, { mappingId: s, sourceKeyQuery: m, pageToken: g }),
|
|
894
|
+
initialPageParam: "",
|
|
895
|
+
getNextPageParam: (g) => g.nextPageToken || void 0,
|
|
896
|
+
// Keeps the rows while a new filter's answer loads, rather than
|
|
897
|
+
// flashing an empty table at every keystroke.
|
|
898
|
+
placeholderData: (g) => g
|
|
899
|
+
}), d = l.counts.problems, c = Ct(d), { refetch: a } = o;
|
|
900
|
+
q(() => {
|
|
901
|
+
d !== c.current && (c.current = d, a());
|
|
902
|
+
}, [d, a]);
|
|
903
|
+
const p = o.data?.pages[0], V = k(
|
|
904
|
+
() => o.data?.pages.flatMap((g) => g.itemProblems) ?? [],
|
|
905
|
+
[o.data]
|
|
906
|
+
), R = k(
|
|
907
|
+
() => [
|
|
908
|
+
{
|
|
909
|
+
id: "sourceKey",
|
|
910
|
+
header: n("imports.sourceKey"),
|
|
911
|
+
size: 180,
|
|
912
|
+
cell: (g) => /* @__PURE__ */ t(Jt, { value: g.row.original.sourceKey || n("imports.noSourceKey") })
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
id: "mapping",
|
|
916
|
+
header: n("imports.mapping"),
|
|
917
|
+
size: 160,
|
|
918
|
+
cell: (g) => /* @__PURE__ */ t(K, { value: g.row.original.mappingName })
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
id: "field",
|
|
922
|
+
header: n("imports.field"),
|
|
923
|
+
size: 160,
|
|
924
|
+
cell: (g) => g.row.original.field ? /* @__PURE__ */ t(Me, { value: g.row.original.field }) : /* @__PURE__ */ t(K, { value: n("imports.wholeVersion") })
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
id: "reason",
|
|
928
|
+
header: n("imports.reason"),
|
|
929
|
+
minSize: 240,
|
|
930
|
+
cell: (g) => /* @__PURE__ */ t(K, { value: g.row.original.reason })
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
[n]
|
|
934
|
+
);
|
|
935
|
+
if (o.isError) return /* @__PURE__ */ t(L, {});
|
|
936
|
+
const I = p?.totalCount ?? 0;
|
|
937
|
+
return /* @__PURE__ */ b(X, { gap: "3", children: [
|
|
938
|
+
/* @__PURE__ */ b(Ue, { children: [
|
|
939
|
+
/* @__PURE__ */ t(
|
|
940
|
+
Rl,
|
|
941
|
+
{
|
|
942
|
+
"aria-label": n("imports.searchSourceKey"),
|
|
943
|
+
placeholder: n("imports.searchSourceKey"),
|
|
944
|
+
onSearch: u,
|
|
945
|
+
debounceMs: 200,
|
|
946
|
+
maxWidth: "260px"
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
/* @__PURE__ */ b(
|
|
950
|
+
$t,
|
|
951
|
+
{
|
|
952
|
+
"aria-label": n("imports.filterMapping"),
|
|
953
|
+
size: "sm",
|
|
954
|
+
width: "auto",
|
|
955
|
+
value: s,
|
|
956
|
+
onChange: (g) => r(g.currentTarget.value),
|
|
957
|
+
children: [
|
|
958
|
+
/* @__PURE__ */ t("option", { value: "", children: n("imports.allMappings", { count: I }) }),
|
|
959
|
+
(p?.mappings ?? []).map((g) => /* @__PURE__ */ t("option", { value: g.mappingId, children: n("imports.mappingCount", { name: g.mappingName, count: g.count }) }, g.mappingId))
|
|
960
|
+
]
|
|
961
|
+
}
|
|
962
|
+
),
|
|
963
|
+
/* @__PURE__ */ t(Ue.Right, { children: /* @__PURE__ */ t(Ue.Count, { children: n("imports.problemCount", { matching: p?.matchingCount ?? 0, total: I }) }) })
|
|
964
|
+
] }),
|
|
965
|
+
/* @__PURE__ */ t(
|
|
966
|
+
ie,
|
|
967
|
+
{
|
|
968
|
+
columns: R,
|
|
969
|
+
data: V,
|
|
970
|
+
loading: o.isPending,
|
|
971
|
+
getRowId: (g) => g.id,
|
|
972
|
+
emptyState: n(I === 0 ? "imports.noItemProblems" : "imports.noMatchingProblems")
|
|
973
|
+
}
|
|
974
|
+
),
|
|
975
|
+
o.hasNextPage ? /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(
|
|
976
|
+
C,
|
|
977
|
+
{
|
|
978
|
+
variant: "outline",
|
|
979
|
+
loading: o.isFetchingNextPage,
|
|
980
|
+
onClick: () => {
|
|
981
|
+
o.fetchNextPage();
|
|
982
|
+
},
|
|
983
|
+
children: n("imports.loadMore")
|
|
984
|
+
}
|
|
985
|
+
) }) : null
|
|
986
|
+
] });
|
|
987
|
+
}
|
|
988
|
+
function Ln({
|
|
989
|
+
client: e,
|
|
990
|
+
id: l,
|
|
991
|
+
pollIntervalMs: n = Lt
|
|
992
|
+
}) {
|
|
993
|
+
const { t: i } = S(y), { workspaceId: s } = W(), r = J({
|
|
994
|
+
queryKey: h.import(s, l),
|
|
995
|
+
queryFn: () => e.getImport(l),
|
|
996
|
+
refetchInterval: (m) => m.state.data && Ne(m.state.data) ? n : !1
|
|
997
|
+
});
|
|
998
|
+
return r.isError || !r.data ? /* @__PURE__ */ t(z, { title: i("section.imports.title"), children: r.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(me, {}) }) : /* @__PURE__ */ t($l, { client: e, im: r.data });
|
|
999
|
+
}
|
|
1000
|
+
function $l({ client: e, im: l }) {
|
|
1001
|
+
const { t: n, i18n: i } = S(y), s = i.language, { workspaceId: r } = W(), { paths: m } = w(), u = it(), o = nt(), d = O(), [c, a] = x(!1), p = u && Ne(l) && !l.cancelledBy;
|
|
1002
|
+
Oe(
|
|
1003
|
+
p ? /* @__PURE__ */ b(F, { storageKey: "importhub.import.rail", children: [
|
|
1004
|
+
/* @__PURE__ */ t(F.Header, { title: n("rail.title") }),
|
|
1005
|
+
/* @__PURE__ */ t(F.Section, { id: "actions", label: n("rail.actions"), children: /* @__PURE__ */ t(
|
|
1006
|
+
F.IconButton,
|
|
1007
|
+
{
|
|
1008
|
+
label: n("imports.cancel"),
|
|
1009
|
+
icon: /* @__PURE__ */ t(dl, { size: 16 }),
|
|
1010
|
+
tone: "outline-red",
|
|
1011
|
+
onClick: () => a(!0)
|
|
1012
|
+
}
|
|
1013
|
+
) })
|
|
1014
|
+
] }) : null
|
|
1015
|
+
);
|
|
1016
|
+
const V = ue({
|
|
1017
|
+
mutationFn: () => e.cancelImport(l.id),
|
|
1018
|
+
onSuccess: (I) => {
|
|
1019
|
+
d.setQueryData(h.import(r, I.id), I), d.invalidateQueries({ queryKey: h.imports(r) }), a(!1);
|
|
1020
|
+
}
|
|
1021
|
+
}), { reset: R } = V;
|
|
1022
|
+
return q(() => {
|
|
1023
|
+
c && R();
|
|
1024
|
+
}, [c, R]), /* @__PURE__ */ b(
|
|
1025
|
+
z,
|
|
1026
|
+
{
|
|
1027
|
+
title: l.importProfileName,
|
|
1028
|
+
subtitle: n("imports.subtitle", {
|
|
1029
|
+
person: o(l.startedBy),
|
|
1030
|
+
time: ke(s, l.createTime)
|
|
1031
|
+
}),
|
|
1032
|
+
breadcrumbs: [{ label: n("section.imports.title"), to: m.imports }],
|
|
1033
|
+
badges: /* @__PURE__ */ t(Ol, { im: l }),
|
|
1034
|
+
children: [
|
|
1035
|
+
/* @__PURE__ */ t(M, { px: "8", py: "6", children: /* @__PURE__ */ b(X, { gap: "6", children: [
|
|
1036
|
+
/* @__PURE__ */ t(en, { im: l }),
|
|
1037
|
+
l.phase === "reading" || l.phase === "writing" ? /* @__PURE__ */ t(tn, { im: l }) : null,
|
|
1038
|
+
/* @__PURE__ */ t(U, { title: n("imports.details"), children: /* @__PURE__ */ b(Y, { children: [
|
|
1039
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.startedBy"), children: o(l.startedBy) }),
|
|
1040
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.started"), children: ke(s, l.startTime || l.createTime) }),
|
|
1041
|
+
l.endTime ? /* @__PURE__ */ t(Y.Row, { label: n("imports.ended"), children: ke(s, l.endTime) }) : null,
|
|
1042
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.effectiveDate"), children: l.effectiveDate || n("imports.none") }),
|
|
1043
|
+
/* @__PURE__ */ t(Y.Row, { label: n("imports.source"), children: l.source ? n("imports.sourceValue", {
|
|
1044
|
+
reference: l.source.reference,
|
|
1045
|
+
date: l.source.date
|
|
1046
|
+
}) : n("imports.none") }),
|
|
1047
|
+
l.changeSetId ? /* @__PURE__ */ t(Y.Row, { label: n("imports.changeSet"), children: /* @__PURE__ */ t(Hl, { changeSetId: l.changeSetId }) }) : null
|
|
1048
|
+
] }) }),
|
|
1049
|
+
/* @__PURE__ */ t(U, { title: n("imports.counts"), children: /* @__PURE__ */ t(Y, { children: [
|
|
1050
|
+
"matched",
|
|
1051
|
+
"created",
|
|
1052
|
+
"planned",
|
|
1053
|
+
"corrected",
|
|
1054
|
+
"kept",
|
|
1055
|
+
"unchanged",
|
|
1056
|
+
"problems"
|
|
1057
|
+
].map((I) => /* @__PURE__ */ t(Y.Row, { label: n(`imports.${I}`), children: l.counts[I].toLocaleString() }, I)) }) }),
|
|
1058
|
+
/* @__PURE__ */ t(ln, { im: l }),
|
|
1059
|
+
/* @__PURE__ */ t(U, { title: n("imports.itemProblems"), children: /* @__PURE__ */ t(_l, { client: e, im: l }) })
|
|
1060
|
+
] }) }),
|
|
1061
|
+
/* @__PURE__ */ t(
|
|
1062
|
+
qe,
|
|
1063
|
+
{
|
|
1064
|
+
open: c,
|
|
1065
|
+
onClose: () => a(!1),
|
|
1066
|
+
header: n("imports.cancelTitle"),
|
|
1067
|
+
lazyMount: !0,
|
|
1068
|
+
unmountOnExit: !0,
|
|
1069
|
+
footer: /* @__PURE__ */ b(j, { gap: "2", children: [
|
|
1070
|
+
/* @__PURE__ */ t(C, { variant: "outline", onClick: () => a(!1), children: n("imports.keepRunning") }),
|
|
1071
|
+
/* @__PURE__ */ t(
|
|
1072
|
+
C,
|
|
1073
|
+
{
|
|
1074
|
+
variant: "solid",
|
|
1075
|
+
colorPalette: "red",
|
|
1076
|
+
loading: V.isPending,
|
|
1077
|
+
onClick: () => V.mutate(),
|
|
1078
|
+
children: n("imports.cancelConfirm")
|
|
1079
|
+
}
|
|
1080
|
+
)
|
|
1081
|
+
] }),
|
|
1082
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1083
|
+
/* @__PURE__ */ t(Q, { children: n("imports.cancelMessage") }),
|
|
1084
|
+
V.isError ? /* @__PURE__ */ t(
|
|
1085
|
+
v,
|
|
1086
|
+
{
|
|
1087
|
+
status: "error",
|
|
1088
|
+
colorPalette: "danger",
|
|
1089
|
+
title: n("imports.cancelFailed", { message: V.error.message })
|
|
1090
|
+
}
|
|
1091
|
+
) : null
|
|
1092
|
+
] })
|
|
1093
|
+
}
|
|
1094
|
+
)
|
|
1095
|
+
]
|
|
1096
|
+
}
|
|
1097
|
+
);
|
|
1098
|
+
}
|
|
1099
|
+
const ke = (e, l) => new Date(l).toLocaleString(e);
|
|
1100
|
+
function en({ im: e }) {
|
|
1101
|
+
const { t: l } = S(y), n = nt();
|
|
1102
|
+
return e.outcome === "failed" ? /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: l("imports.failedTitle"), children: e.failureReason }) : e.outcome === "cancelled" ? /* @__PURE__ */ t(v, { status: "info", colorPalette: "gray", children: l("imports.cancelledBody", { person: n(e.cancelledBy) }) }) : e.outcome === "succeeded_with_problems" ? /* @__PURE__ */ t(v, { status: "warning", colorPalette: "warning", children: l("imports.problemsBody", { count: e.counts.problems }) }) : Ne(e) && e.cancelledBy ? /* @__PURE__ */ t(v, { status: "warning", colorPalette: "warning", children: l("imports.cancellingBody", { person: n(e.cancelledBy) }) }) : e.phase === "queued" ? /* @__PURE__ */ t(v, { status: "info", colorPalette: "info", children: l("imports.queuedBody") }) : null;
|
|
1103
|
+
}
|
|
1104
|
+
function tn({ im: e }) {
|
|
1105
|
+
const { t: l } = S(y), { done: n, total: i } = e.progress, s = i > 0;
|
|
1106
|
+
return /* @__PURE__ */ t(U, { title: l("imports.progressTitle"), children: /* @__PURE__ */ b(X, { gap: "2", children: [
|
|
1107
|
+
/* @__PURE__ */ t(
|
|
1108
|
+
St,
|
|
1109
|
+
{
|
|
1110
|
+
label: l(`imports.phaseLong.${e.phase}`),
|
|
1111
|
+
value: s ? Math.round(n / i * 100) : null,
|
|
1112
|
+
colorPalette: "info"
|
|
1113
|
+
}
|
|
1114
|
+
),
|
|
1115
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: s ? l("imports.progressOf", { done: n, total: i }) : l("imports.progressUnknown") })
|
|
1116
|
+
] }) });
|
|
1117
|
+
}
|
|
1118
|
+
function ln({ im: e }) {
|
|
1119
|
+
const { t: l } = S(y), { importProfile: n, mappings: i, entitySet: s } = e.releases;
|
|
1120
|
+
return /* @__PURE__ */ t(U, { title: l("imports.releases"), children: /* @__PURE__ */ b(Y, { children: [
|
|
1121
|
+
n ? /* @__PURE__ */ t(Y.Row, { label: l("imports.profile"), children: /* @__PURE__ */ t(Le, { section: "profiles", release: n }) }) : null,
|
|
1122
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.mappings"), children: /* @__PURE__ */ t(at.Root, { ps: "0", listStyleType: "none", children: i.map((r) => /* @__PURE__ */ t(at.Item, { children: /* @__PURE__ */ t(Le, { section: "mappings", release: r }) }, r.releaseId)) }) }),
|
|
1123
|
+
/* @__PURE__ */ t(Y.Row, { label: l("imports.entitySet"), children: s ? /* @__PURE__ */ t(Le, { section: "entitySets", release: s }) : l("imports.none") })
|
|
1124
|
+
] }) });
|
|
1125
|
+
}
|
|
1126
|
+
function Le({
|
|
1127
|
+
section: e,
|
|
1128
|
+
release: l
|
|
1129
|
+
}) {
|
|
1130
|
+
const { t: n } = S(y), { paths: i } = w();
|
|
1131
|
+
return /* @__PURE__ */ t(Pe, { asChild: !0, children: /* @__PURE__ */ t(Yt, { to: le(i, e, l.configurationId), children: n("imports.releaseOf", { name: l.name, number: l.number }) }) });
|
|
1132
|
+
}
|
|
1133
|
+
function Hn({
|
|
1134
|
+
client: e,
|
|
1135
|
+
onStart: l,
|
|
1136
|
+
pollIntervalMs: n = Lt
|
|
1137
|
+
}) {
|
|
1138
|
+
const { t: i } = S(y), { workspaceId: s } = W(), { paths: r } = w(), m = it(), u = nt(), o = vt({
|
|
1139
|
+
queryKey: h.imports(s),
|
|
1140
|
+
queryFn: ({ pageParam: a }) => e.listImports(a),
|
|
1141
|
+
initialPageParam: "",
|
|
1142
|
+
getNextPageParam: (a) => a.nextPageToken || void 0,
|
|
1143
|
+
refetchInterval: (a) => a.state.data?.pages.some((p) => p.imports.some(Ne)) ? n : !1
|
|
1144
|
+
}), d = k(
|
|
1145
|
+
() => o.data?.pages.flatMap((a) => a.imports) ?? [],
|
|
1146
|
+
[o.data]
|
|
1147
|
+
), c = k(
|
|
1148
|
+
() => [
|
|
1149
|
+
{
|
|
1150
|
+
id: "profile",
|
|
1151
|
+
header: i("imports.profile"),
|
|
1152
|
+
cell: (a) => /* @__PURE__ */ t(
|
|
1153
|
+
Ce,
|
|
1154
|
+
{
|
|
1155
|
+
to: le(r, "imports", a.row.original.id),
|
|
1156
|
+
label: a.row.original.importProfileName
|
|
1157
|
+
}
|
|
1158
|
+
)
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
id: "startedBy",
|
|
1162
|
+
header: i("imports.startedBy"),
|
|
1163
|
+
size: 160,
|
|
1164
|
+
cell: (a) => /* @__PURE__ */ t(K, { value: u(a.row.original.startedBy) })
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
id: "started",
|
|
1168
|
+
header: i("imports.started"),
|
|
1169
|
+
size: 150,
|
|
1170
|
+
cell: (a) => /* @__PURE__ */ t(Sl, { value: a.row.original.createTime })
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
// Its Outcome once it has one, its phase until then.
|
|
1174
|
+
id: "outcome",
|
|
1175
|
+
header: i("imports.outcomeColumn"),
|
|
1176
|
+
size: 190,
|
|
1177
|
+
cell: (a) => /* @__PURE__ */ t(ql, { im: a.row.original })
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
id: "matched",
|
|
1181
|
+
header: i("imports.matched"),
|
|
1182
|
+
size: 90,
|
|
1183
|
+
cell: (a) => /* @__PURE__ */ t(we, { value: a.row.original.counts.matched })
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
id: "created",
|
|
1187
|
+
header: i("imports.created"),
|
|
1188
|
+
size: 90,
|
|
1189
|
+
cell: (a) => /* @__PURE__ */ t(we, { value: a.row.original.counts.created })
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
id: "problems",
|
|
1193
|
+
header: i("imports.problems"),
|
|
1194
|
+
size: 90,
|
|
1195
|
+
cell: (a) => /* @__PURE__ */ t(we, { value: a.row.original.counts.problems })
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
[i, r, u]
|
|
1199
|
+
);
|
|
1200
|
+
return /* @__PURE__ */ t(
|
|
1201
|
+
ne,
|
|
1202
|
+
{
|
|
1203
|
+
title: i("section.imports.title"),
|
|
1204
|
+
actions: m ? /* @__PURE__ */ b(C, { variant: "solid", onClick: l, children: [
|
|
1205
|
+
/* @__PURE__ */ t(yt, { size: 16, "aria-hidden": !0 }),
|
|
1206
|
+
i("imports.start")
|
|
1207
|
+
] }) : void 0,
|
|
1208
|
+
children: o.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ b(P, { children: [
|
|
1209
|
+
/* @__PURE__ */ t(
|
|
1210
|
+
ie,
|
|
1211
|
+
{
|
|
1212
|
+
columns: c,
|
|
1213
|
+
data: d,
|
|
1214
|
+
loading: o.isPending,
|
|
1215
|
+
getRowId: (a) => a.id,
|
|
1216
|
+
emptyState: i("imports.empty")
|
|
1217
|
+
}
|
|
1218
|
+
),
|
|
1219
|
+
o.hasNextPage ? /* @__PURE__ */ t(It, { py: "4", children: /* @__PURE__ */ t(
|
|
1220
|
+
C,
|
|
1221
|
+
{
|
|
1222
|
+
variant: "outline",
|
|
1223
|
+
loading: o.isFetchingNextPage,
|
|
1224
|
+
onClick: () => {
|
|
1225
|
+
o.fetchNextPage();
|
|
1226
|
+
},
|
|
1227
|
+
children: i("imports.loadMore")
|
|
1228
|
+
}
|
|
1229
|
+
) }) : null
|
|
1230
|
+
] })
|
|
1231
|
+
}
|
|
1232
|
+
);
|
|
1233
|
+
}
|
|
1234
|
+
function Mn({ client: e, id: l, onDeleted: n }) {
|
|
1235
|
+
return /* @__PURE__ */ t(gl, { client: e, id: l, onDeleted: n });
|
|
1236
|
+
}
|
|
1237
|
+
function nn() {
|
|
1238
|
+
const { t: e } = S(y), { blueprints: l } = w();
|
|
1239
|
+
return l ? /* @__PURE__ */ t(an, {}) : /* @__PURE__ */ b(P, { children: [
|
|
1240
|
+
/* @__PURE__ */ t(D, { name: "blueprintId", label: e("mappings.blueprintId"), required: !0 }),
|
|
1241
|
+
/* @__PURE__ */ t(
|
|
1242
|
+
D,
|
|
736
1243
|
{
|
|
737
1244
|
name: "blueprintReleaseId",
|
|
738
1245
|
label: e("mappings.releaseId"),
|
|
@@ -742,217 +1249,217 @@ function pl() {
|
|
|
742
1249
|
)
|
|
743
1250
|
] });
|
|
744
1251
|
}
|
|
745
|
-
function
|
|
746
|
-
const { t: e } = S(
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}, [
|
|
750
|
-
const
|
|
751
|
-
queryKey:
|
|
752
|
-
queryFn: () =>
|
|
753
|
-
}),
|
|
754
|
-
queryKey:
|
|
755
|
-
queryFn: () =>
|
|
756
|
-
enabled: !!
|
|
1252
|
+
function an() {
|
|
1253
|
+
const { t: e } = S(y), { blueprints: l } = w(), { workspaceId: n } = W(), { control: i, setValue: s } = Nt(), r = Ve({ control: i, name: "blueprintId" }), m = Ct(r);
|
|
1254
|
+
q(() => {
|
|
1255
|
+
m.current !== r && s("blueprintReleaseId", ""), m.current = r;
|
|
1256
|
+
}, [r, s]);
|
|
1257
|
+
const u = J({
|
|
1258
|
+
queryKey: h.blueprints(n),
|
|
1259
|
+
queryFn: () => l?.listBlueprints() ?? Promise.resolve([])
|
|
1260
|
+
}), o = J({
|
|
1261
|
+
queryKey: h.blueprintReleases(n, r ?? ""),
|
|
1262
|
+
queryFn: () => l?.listReleases(r) ?? Promise.resolve([]),
|
|
1263
|
+
enabled: !!r
|
|
757
1264
|
});
|
|
758
|
-
return /* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
|
|
1265
|
+
return /* @__PURE__ */ b(P, { children: [
|
|
1266
|
+
/* @__PURE__ */ t(
|
|
1267
|
+
fe,
|
|
761
1268
|
{
|
|
762
1269
|
name: "blueprintId",
|
|
763
1270
|
label: e("mappings.blueprint"),
|
|
764
1271
|
required: !0,
|
|
765
|
-
options: (
|
|
1272
|
+
options: (u.data ?? []).map((d) => ({ id: d.id, label: d.name }))
|
|
766
1273
|
}
|
|
767
1274
|
),
|
|
768
|
-
/* @__PURE__ */
|
|
769
|
-
|
|
1275
|
+
/* @__PURE__ */ t(
|
|
1276
|
+
fe,
|
|
770
1277
|
{
|
|
771
1278
|
name: "blueprintReleaseId",
|
|
772
1279
|
label: e("mappings.release"),
|
|
773
1280
|
required: !0,
|
|
774
|
-
disabled: !
|
|
775
|
-
options: (
|
|
1281
|
+
disabled: !r,
|
|
1282
|
+
options: (o.data ?? []).map((d) => ({ id: d.id, label: d.label }))
|
|
776
1283
|
}
|
|
777
1284
|
)
|
|
778
1285
|
] });
|
|
779
1286
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
const { t:
|
|
783
|
-
queryKey:
|
|
1287
|
+
const on = { blueprintId: "", blueprintReleaseId: "" };
|
|
1288
|
+
function Dn({ client: e, onOpen: l }) {
|
|
1289
|
+
const { t: n } = S(y), { workspaceId: i } = W(), { paths: s } = w(), r = pe(), m = O(), [u, o] = x(!1), d = J({
|
|
1290
|
+
queryKey: h.mappings(i),
|
|
784
1291
|
queryFn: () => e.listMappings()
|
|
785
|
-
}),
|
|
1292
|
+
}), c = Vl((d.data ?? []).map((p) => p.content.blueprintId)), a = k(
|
|
786
1293
|
() => [
|
|
787
1294
|
{
|
|
788
1295
|
id: "name",
|
|
789
|
-
header:
|
|
790
|
-
cell: (
|
|
791
|
-
|
|
1296
|
+
header: n("fields.name"),
|
|
1297
|
+
cell: (p) => /* @__PURE__ */ t(
|
|
1298
|
+
Ce,
|
|
792
1299
|
{
|
|
793
|
-
to:
|
|
794
|
-
label:
|
|
1300
|
+
to: le(s, "mappings", p.row.original.id),
|
|
1301
|
+
label: p.row.original.content.name
|
|
795
1302
|
}
|
|
796
1303
|
)
|
|
797
1304
|
},
|
|
798
|
-
|
|
1305
|
+
c.available ? {
|
|
799
1306
|
id: "blueprint",
|
|
800
|
-
header:
|
|
801
|
-
cell: (
|
|
802
|
-
|
|
1307
|
+
header: n("mappings.blueprint"),
|
|
1308
|
+
cell: (p) => /* @__PURE__ */ t(
|
|
1309
|
+
K,
|
|
803
1310
|
{
|
|
804
|
-
value:
|
|
1311
|
+
value: c.blueprintName(p.row.original.content.blueprintId) ?? ""
|
|
805
1312
|
}
|
|
806
1313
|
)
|
|
807
1314
|
} : {
|
|
808
1315
|
id: "blueprint",
|
|
809
|
-
header:
|
|
810
|
-
cell: (
|
|
1316
|
+
header: n("mappings.blueprintId"),
|
|
1317
|
+
cell: (p) => /* @__PURE__ */ t(Me, { value: p.row.original.content.blueprintId })
|
|
811
1318
|
},
|
|
812
|
-
|
|
1319
|
+
c.available ? {
|
|
813
1320
|
id: "release",
|
|
814
|
-
header:
|
|
815
|
-
cell: (
|
|
816
|
-
|
|
1321
|
+
header: n("mappings.release"),
|
|
1322
|
+
cell: (p) => /* @__PURE__ */ t(
|
|
1323
|
+
K,
|
|
817
1324
|
{
|
|
818
|
-
value:
|
|
819
|
-
|
|
820
|
-
|
|
1325
|
+
value: c.releaseLabel(
|
|
1326
|
+
p.row.original.content.blueprintId,
|
|
1327
|
+
p.row.original.content.blueprintReleaseId
|
|
821
1328
|
) ?? ""
|
|
822
1329
|
}
|
|
823
1330
|
)
|
|
824
1331
|
} : {
|
|
825
1332
|
id: "release",
|
|
826
|
-
header:
|
|
827
|
-
cell: (
|
|
1333
|
+
header: n("mappings.releaseId"),
|
|
1334
|
+
cell: (p) => /* @__PURE__ */ t(Me, { value: p.row.original.content.blueprintReleaseId })
|
|
828
1335
|
},
|
|
829
1336
|
{
|
|
830
1337
|
id: "validity",
|
|
831
|
-
header:
|
|
832
|
-
cell: (
|
|
1338
|
+
header: n("validity.column"),
|
|
1339
|
+
cell: (p) => /* @__PURE__ */ t(je, { validity: p.row.original.validity })
|
|
833
1340
|
}
|
|
834
1341
|
],
|
|
835
|
-
[
|
|
1342
|
+
[n, s, c]
|
|
836
1343
|
);
|
|
837
|
-
return /* @__PURE__ */
|
|
838
|
-
|
|
1344
|
+
return /* @__PURE__ */ b(
|
|
1345
|
+
ne,
|
|
839
1346
|
{
|
|
840
|
-
title:
|
|
841
|
-
actions:
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
|
|
1347
|
+
title: n("section.mappings.title"),
|
|
1348
|
+
actions: r ? /* @__PURE__ */ b(C, { variant: "solid", onClick: () => o(!0), children: [
|
|
1349
|
+
/* @__PURE__ */ t(de, { size: 16, "aria-hidden": !0 }),
|
|
1350
|
+
n("mappings.new")
|
|
844
1351
|
] }) : void 0,
|
|
845
1352
|
children: [
|
|
846
|
-
|
|
847
|
-
|
|
1353
|
+
d.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(
|
|
1354
|
+
ie,
|
|
848
1355
|
{
|
|
849
|
-
columns:
|
|
850
|
-
data:
|
|
851
|
-
loading:
|
|
852
|
-
getRowId: (
|
|
853
|
-
emptyState:
|
|
1356
|
+
columns: a,
|
|
1357
|
+
data: d.data ?? [],
|
|
1358
|
+
loading: d.isPending,
|
|
1359
|
+
getRowId: (p) => p.id,
|
|
1360
|
+
emptyState: n("mappings.empty")
|
|
854
1361
|
}
|
|
855
1362
|
),
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
|
|
1363
|
+
/* @__PURE__ */ t(
|
|
1364
|
+
lt,
|
|
858
1365
|
{
|
|
859
|
-
open:
|
|
860
|
-
onClose: () =>
|
|
861
|
-
title:
|
|
862
|
-
defaultValues:
|
|
863
|
-
onCreate: async ({ name:
|
|
864
|
-
const
|
|
865
|
-
name:
|
|
866
|
-
description:
|
|
867
|
-
blueprintId:
|
|
868
|
-
blueprintReleaseId:
|
|
1366
|
+
open: u,
|
|
1367
|
+
onClose: () => o(!1),
|
|
1368
|
+
title: n("mappings.new"),
|
|
1369
|
+
defaultValues: on,
|
|
1370
|
+
onCreate: async ({ name: p, description: V, blueprintId: R, blueprintReleaseId: I }) => {
|
|
1371
|
+
const g = await e.createMapping({
|
|
1372
|
+
name: p,
|
|
1373
|
+
description: V,
|
|
1374
|
+
blueprintId: R ?? "",
|
|
1375
|
+
blueprintReleaseId: I ?? ""
|
|
869
1376
|
});
|
|
870
|
-
return await
|
|
1377
|
+
return await m.invalidateQueries({ queryKey: h.mappings(i) }), g.id;
|
|
871
1378
|
},
|
|
872
|
-
onCreated: (
|
|
873
|
-
|
|
1379
|
+
onCreated: (p) => {
|
|
1380
|
+
o(!1), l(p);
|
|
874
1381
|
},
|
|
875
|
-
children: /* @__PURE__ */
|
|
1382
|
+
children: /* @__PURE__ */ t(nn, {})
|
|
876
1383
|
}
|
|
877
1384
|
)
|
|
878
1385
|
]
|
|
879
1386
|
}
|
|
880
1387
|
);
|
|
881
1388
|
}
|
|
882
|
-
function
|
|
883
|
-
const { t } = S(
|
|
884
|
-
queryKey:
|
|
1389
|
+
function Tn({ client: e }) {
|
|
1390
|
+
const { t: l } = S(y), { workspaceId: n } = W(), i = J({
|
|
1391
|
+
queryKey: h.processors(n),
|
|
885
1392
|
queryFn: () => e.listProcessors()
|
|
886
|
-
}),
|
|
1393
|
+
}), s = k(
|
|
887
1394
|
() => [
|
|
888
1395
|
{
|
|
889
1396
|
id: "name",
|
|
890
|
-
header:
|
|
1397
|
+
header: l("fields.name"),
|
|
891
1398
|
size: 180,
|
|
892
|
-
cell: (
|
|
1399
|
+
cell: (r) => /* @__PURE__ */ t(Jt, { value: r.row.original.name })
|
|
893
1400
|
},
|
|
894
1401
|
{
|
|
895
1402
|
id: "kind",
|
|
896
|
-
header:
|
|
1403
|
+
header: l("processors.kindColumn"),
|
|
897
1404
|
size: 140,
|
|
898
|
-
cell: (
|
|
1405
|
+
cell: (r) => /* @__PURE__ */ t(K, { value: l(`processors.kind.${r.row.original.kind}`) })
|
|
899
1406
|
},
|
|
900
1407
|
{
|
|
901
1408
|
id: "target",
|
|
902
|
-
header:
|
|
1409
|
+
header: l("processors.targetColumn"),
|
|
903
1410
|
size: 160,
|
|
904
|
-
cell: (
|
|
1411
|
+
cell: (r) => /* @__PURE__ */ t(K, { value: l(`processors.target.${r.row.original.target}`) })
|
|
905
1412
|
},
|
|
906
1413
|
{
|
|
907
1414
|
id: "description",
|
|
908
|
-
header:
|
|
909
|
-
cell: (
|
|
1415
|
+
header: l("fields.description"),
|
|
1416
|
+
cell: (r) => /* @__PURE__ */ t(K, { value: r.row.original.description })
|
|
910
1417
|
},
|
|
911
1418
|
{
|
|
912
1419
|
id: "settings",
|
|
913
|
-
header:
|
|
914
|
-
cell: (
|
|
915
|
-
|
|
1420
|
+
header: l("processors.settingsColumn"),
|
|
1421
|
+
cell: (r) => /* @__PURE__ */ t(
|
|
1422
|
+
K,
|
|
916
1423
|
{
|
|
917
|
-
value:
|
|
1424
|
+
value: r.row.original.settingsSpec.length === 0 ? l("processors.noSettings") : r.row.original.settingsSpec.map((m) => m.config.name || m.config.api_accessor).join(", ")
|
|
918
1425
|
}
|
|
919
1426
|
)
|
|
920
1427
|
}
|
|
921
1428
|
],
|
|
922
|
-
[
|
|
1429
|
+
[l]
|
|
923
1430
|
);
|
|
924
|
-
return /* @__PURE__ */
|
|
925
|
-
|
|
1431
|
+
return /* @__PURE__ */ t(ne, { title: l("section.processors.title"), children: i.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(
|
|
1432
|
+
ie,
|
|
926
1433
|
{
|
|
927
|
-
columns:
|
|
928
|
-
data:
|
|
929
|
-
loading:
|
|
930
|
-
getRowId: (
|
|
931
|
-
emptyState:
|
|
1434
|
+
columns: s,
|
|
1435
|
+
data: i.data ?? [],
|
|
1436
|
+
loading: i.isPending,
|
|
1437
|
+
getRowId: (r) => r.name,
|
|
1438
|
+
emptyState: l("processors.empty")
|
|
932
1439
|
}
|
|
933
1440
|
) });
|
|
934
1441
|
}
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
return
|
|
1442
|
+
function Vt(e, l, n) {
|
|
1443
|
+
const i = [...e], [s] = i.splice(l, 1);
|
|
1444
|
+
return i.splice(n, 0, s), i;
|
|
938
1445
|
}
|
|
939
|
-
function
|
|
1446
|
+
function Ht({
|
|
940
1447
|
items: e,
|
|
941
|
-
renderItem:
|
|
942
|
-
nameOf:
|
|
943
|
-
editable:
|
|
944
|
-
onChange:
|
|
945
|
-
emptyLabel:
|
|
946
|
-
addLabel:
|
|
947
|
-
addOptions:
|
|
948
|
-
onAdd:
|
|
1448
|
+
renderItem: l,
|
|
1449
|
+
nameOf: n,
|
|
1450
|
+
editable: i,
|
|
1451
|
+
onChange: s,
|
|
1452
|
+
emptyLabel: r,
|
|
1453
|
+
addLabel: m,
|
|
1454
|
+
addOptions: u,
|
|
1455
|
+
onAdd: o
|
|
949
1456
|
}) {
|
|
950
|
-
const { t:
|
|
951
|
-
return /* @__PURE__ */
|
|
952
|
-
e.length === 0 ? /* @__PURE__ */
|
|
953
|
-
const
|
|
954
|
-
return /* @__PURE__ */
|
|
955
|
-
|
|
1457
|
+
const { t: d } = S(y);
|
|
1458
|
+
return /* @__PURE__ */ b(X, { gap: "2", children: [
|
|
1459
|
+
e.length === 0 ? /* @__PURE__ */ t(Q, { color: "fg.muted", children: r }) : /* @__PURE__ */ t(X, { as: "ol", gap: "0", listStyleType: "none", ms: "0", children: e.map((c, a) => {
|
|
1460
|
+
const p = n(c);
|
|
1461
|
+
return /* @__PURE__ */ b(
|
|
1462
|
+
j,
|
|
956
1463
|
{
|
|
957
1464
|
as: "li",
|
|
958
1465
|
gap: "3",
|
|
@@ -961,310 +1468,310 @@ function Rt({
|
|
|
961
1468
|
borderColor: "border",
|
|
962
1469
|
align: "start",
|
|
963
1470
|
children: [
|
|
964
|
-
/* @__PURE__ */
|
|
965
|
-
|
|
1471
|
+
/* @__PURE__ */ b(Q, { color: "fg.muted", minW: "6", textAlign: "end", children: [
|
|
1472
|
+
a + 1,
|
|
966
1473
|
"."
|
|
967
1474
|
] }),
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
|
|
1475
|
+
/* @__PURE__ */ t(M, { flex: "1", minW: "0", children: l(c, a) }),
|
|
1476
|
+
i ? /* @__PURE__ */ b(j, { gap: "1", children: [
|
|
1477
|
+
/* @__PURE__ */ t(
|
|
1478
|
+
Xe,
|
|
972
1479
|
{
|
|
973
|
-
"aria-label":
|
|
1480
|
+
"aria-label": d("order.moveUp", { name: p }),
|
|
974
1481
|
size: "xs",
|
|
975
1482
|
variant: "ghost",
|
|
976
|
-
disabled:
|
|
977
|
-
onClick: () =>
|
|
978
|
-
children: /* @__PURE__ */
|
|
1483
|
+
disabled: a === 0,
|
|
1484
|
+
onClick: () => s(Vt(e, a, a - 1)),
|
|
1485
|
+
children: /* @__PURE__ */ t(ml, { size: 14 })
|
|
979
1486
|
}
|
|
980
1487
|
),
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
|
|
1488
|
+
/* @__PURE__ */ t(
|
|
1489
|
+
Xe,
|
|
983
1490
|
{
|
|
984
|
-
"aria-label":
|
|
1491
|
+
"aria-label": d("order.moveDown", { name: p }),
|
|
985
1492
|
size: "xs",
|
|
986
1493
|
variant: "ghost",
|
|
987
|
-
disabled:
|
|
988
|
-
onClick: () =>
|
|
989
|
-
children: /* @__PURE__ */
|
|
1494
|
+
disabled: a === e.length - 1,
|
|
1495
|
+
onClick: () => s(Vt(e, a, a + 1)),
|
|
1496
|
+
children: /* @__PURE__ */ t(pl, { size: 14 })
|
|
990
1497
|
}
|
|
991
1498
|
),
|
|
992
|
-
/* @__PURE__ */
|
|
993
|
-
|
|
1499
|
+
/* @__PURE__ */ t(
|
|
1500
|
+
Xe,
|
|
994
1501
|
{
|
|
995
|
-
"aria-label":
|
|
1502
|
+
"aria-label": d("order.remove", { name: p }),
|
|
996
1503
|
size: "xs",
|
|
997
1504
|
variant: "ghost",
|
|
998
1505
|
colorPalette: "red",
|
|
999
|
-
onClick: () =>
|
|
1000
|
-
children: /* @__PURE__ */
|
|
1506
|
+
onClick: () => s(e.filter((V, R) => R !== a)),
|
|
1507
|
+
children: /* @__PURE__ */ t(We, { size: 14 })
|
|
1001
1508
|
}
|
|
1002
1509
|
)
|
|
1003
1510
|
] }) : null
|
|
1004
1511
|
]
|
|
1005
1512
|
},
|
|
1006
|
-
|
|
1513
|
+
a
|
|
1007
1514
|
);
|
|
1008
1515
|
}) }),
|
|
1009
|
-
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
|
|
1516
|
+
i ? /* @__PURE__ */ t(M, { children: /* @__PURE__ */ b(el, { onSelect: (c) => o(c.value), children: [
|
|
1517
|
+
/* @__PURE__ */ t(tl, { asChild: !0, children: /* @__PURE__ */ b(C, { variant: "outline", size: "sm", disabled: u.length === 0, children: [
|
|
1518
|
+
/* @__PURE__ */ t(de, { size: 14, "aria-hidden": !0 }),
|
|
1519
|
+
m
|
|
1013
1520
|
] }) }),
|
|
1014
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ t(ll, { children: u.map((c) => /* @__PURE__ */ t(nl, { value: c.value, children: c.label }, c.value)) })
|
|
1015
1522
|
] }) }) : null
|
|
1016
1523
|
] });
|
|
1017
1524
|
}
|
|
1018
|
-
const
|
|
1019
|
-
function
|
|
1525
|
+
const rn = {};
|
|
1526
|
+
function cn({
|
|
1020
1527
|
open: e,
|
|
1021
|
-
onClose:
|
|
1022
|
-
processor:
|
|
1023
|
-
settings:
|
|
1024
|
-
readOnly:
|
|
1025
|
-
onApply:
|
|
1528
|
+
onClose: l,
|
|
1529
|
+
processor: n,
|
|
1530
|
+
settings: i,
|
|
1531
|
+
readOnly: s,
|
|
1532
|
+
onApply: r
|
|
1026
1533
|
}) {
|
|
1027
|
-
const { t:
|
|
1028
|
-
|
|
1029
|
-
e &&
|
|
1030
|
-
}, [e,
|
|
1031
|
-
const
|
|
1032
|
-
return /* @__PURE__ */
|
|
1033
|
-
|
|
1534
|
+
const { t: m } = S(y), u = n?.settingsSpec ?? [], o = k(() => Zl(Xl(u, st)), [u]), d = be({ defaultValues: i, resolver: o }), { reset: c } = d;
|
|
1535
|
+
q(() => {
|
|
1536
|
+
e && c(i ?? rn);
|
|
1537
|
+
}, [e, i, c]);
|
|
1538
|
+
const a = d.handleSubmit((p) => r(p));
|
|
1539
|
+
return /* @__PURE__ */ t(
|
|
1540
|
+
qe,
|
|
1034
1541
|
{
|
|
1035
1542
|
open: e,
|
|
1036
|
-
onClose:
|
|
1037
|
-
header:
|
|
1543
|
+
onClose: l,
|
|
1544
|
+
header: m("processors.settingsOf", { name: n?.name ?? "" }),
|
|
1038
1545
|
lazyMount: !0,
|
|
1039
1546
|
unmountOnExit: !0,
|
|
1040
|
-
cancelLabel:
|
|
1041
|
-
saveLabel:
|
|
1042
|
-
onSave:
|
|
1043
|
-
|
|
1547
|
+
cancelLabel: m(s ? "common.close" : "common.cancel"),
|
|
1548
|
+
saveLabel: m("common.apply"),
|
|
1549
|
+
onSave: s ? void 0 : () => {
|
|
1550
|
+
a();
|
|
1044
1551
|
},
|
|
1045
|
-
children: /* @__PURE__ */
|
|
1552
|
+
children: /* @__PURE__ */ t(ge, { ...d, children: /* @__PURE__ */ t(
|
|
1046
1553
|
"form",
|
|
1047
1554
|
{
|
|
1048
|
-
onSubmit: (
|
|
1049
|
-
|
|
1555
|
+
onSubmit: (p) => {
|
|
1556
|
+
p.preventDefault(), a();
|
|
1050
1557
|
},
|
|
1051
|
-
children: /* @__PURE__ */
|
|
1558
|
+
children: /* @__PURE__ */ t(El, { plugins: st, children: s ? /* @__PURE__ */ t(ct, { schema: u, mode: "read", values: i }) : /* @__PURE__ */ t(ct, { schema: u }) })
|
|
1052
1559
|
}
|
|
1053
1560
|
) })
|
|
1054
1561
|
}
|
|
1055
1562
|
);
|
|
1056
1563
|
}
|
|
1057
|
-
const
|
|
1564
|
+
const Ze = (e) => ({
|
|
1058
1565
|
...e,
|
|
1059
1566
|
entitySetId: e.entitySetId || null
|
|
1060
|
-
}),
|
|
1567
|
+
}), sn = (e) => ({
|
|
1061
1568
|
...e,
|
|
1062
1569
|
entitySetId: e.entitySetId ?? ""
|
|
1063
1570
|
});
|
|
1064
|
-
function
|
|
1065
|
-
const { t:
|
|
1066
|
-
queryKey:
|
|
1067
|
-
queryFn: () => e.getImportProfile(
|
|
1571
|
+
function Pn({ client: e, id: l, onDeleted: n }) {
|
|
1572
|
+
const { t: i } = S(y), { workspaceId: s } = W(), r = J({
|
|
1573
|
+
queryKey: h.importProfile(s, l),
|
|
1574
|
+
queryFn: () => e.getImportProfile(l)
|
|
1068
1575
|
});
|
|
1069
|
-
return
|
|
1576
|
+
return r.isError ? /* @__PURE__ */ t(z, { title: i("section.profiles.title"), children: /* @__PURE__ */ t(L, {}) }) : r.data ? /* @__PURE__ */ t(dn, { client: e, profile: r.data, onDeleted: n }) : /* @__PURE__ */ t(z, { title: i("section.profiles.title"), children: /* @__PURE__ */ t(me, {}) });
|
|
1070
1577
|
}
|
|
1071
|
-
function
|
|
1578
|
+
function dn({
|
|
1072
1579
|
client: e,
|
|
1073
|
-
profile:
|
|
1074
|
-
onDeleted:
|
|
1580
|
+
profile: l,
|
|
1581
|
+
onDeleted: n
|
|
1075
1582
|
}) {
|
|
1076
|
-
const { t:
|
|
1077
|
-
queryKey:
|
|
1583
|
+
const { t: i } = S(y), { workspaceId: s } = W(), { paths: r } = w(), m = pe(), u = O(), [o, d] = x(!1), c = J({
|
|
1584
|
+
queryKey: h.processors(s),
|
|
1078
1585
|
queryFn: () => e.listProcessors()
|
|
1079
|
-
}),
|
|
1080
|
-
queryKey:
|
|
1586
|
+
}), a = J({
|
|
1587
|
+
queryKey: h.mappings(s),
|
|
1081
1588
|
queryFn: () => e.listMappings()
|
|
1082
|
-
}),
|
|
1083
|
-
queryKey:
|
|
1589
|
+
}), p = J({
|
|
1590
|
+
queryKey: h.entitySets(s),
|
|
1084
1591
|
queryFn: () => e.listEntitySets()
|
|
1085
|
-
}),
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}, [
|
|
1089
|
-
const
|
|
1090
|
-
mutationFn: (
|
|
1091
|
-
onSuccess: (
|
|
1092
|
-
|
|
1592
|
+
}), V = be({ defaultValues: Ze(l.content) }), { reset: R, formState: I } = V;
|
|
1593
|
+
q(() => {
|
|
1594
|
+
I.isDirty || R(Ze(l.content));
|
|
1595
|
+
}, [l, R, I.isDirty]);
|
|
1596
|
+
const g = ue({
|
|
1597
|
+
mutationFn: (E) => e.updateImportProfile(l.id, sn(E), l.state.draftRevisionId),
|
|
1598
|
+
onSuccess: (E) => {
|
|
1599
|
+
u.setQueryData(h.importProfile(s, E.id), E), R(Ze(E.content)), u.invalidateQueries({ queryKey: h.importProfiles(s) });
|
|
1093
1600
|
}
|
|
1094
|
-
}),
|
|
1601
|
+
}), H = V.handleSubmit((E) => g.mutate(E)), G = Ve({ control: V.control, name: "name" }), [B, Z] = Gt(), f = At({
|
|
1095
1602
|
client: e,
|
|
1096
1603
|
kind: "importProfile",
|
|
1097
|
-
id:
|
|
1098
|
-
validity:
|
|
1099
|
-
state:
|
|
1100
|
-
unsaved:
|
|
1604
|
+
id: l.id,
|
|
1605
|
+
validity: l.validity,
|
|
1606
|
+
state: l.state,
|
|
1607
|
+
unsaved: I.isDirty
|
|
1101
1608
|
});
|
|
1102
|
-
return
|
|
1103
|
-
|
|
1104
|
-
/* @__PURE__ */
|
|
1105
|
-
/* @__PURE__ */
|
|
1106
|
-
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
|
|
1609
|
+
return Oe(
|
|
1610
|
+
m ? /* @__PURE__ */ b(F, { storageKey: "importhub.profile.rail", children: [
|
|
1611
|
+
/* @__PURE__ */ t(F.Header, { title: i("rail.title") }),
|
|
1612
|
+
/* @__PURE__ */ b(F.Section, { id: "actions", label: i("rail.actions"), children: [
|
|
1613
|
+
f.railAction,
|
|
1614
|
+
/* @__PURE__ */ t(
|
|
1615
|
+
F.IconButton,
|
|
1109
1616
|
{
|
|
1110
|
-
label:
|
|
1111
|
-
icon: /* @__PURE__ */
|
|
1617
|
+
label: i("profiles.delete"),
|
|
1618
|
+
icon: /* @__PURE__ */ t(We, { size: 16 }),
|
|
1112
1619
|
tone: "outline-red",
|
|
1113
|
-
onClick: () =>
|
|
1620
|
+
onClick: () => d(!0)
|
|
1114
1621
|
}
|
|
1115
1622
|
)
|
|
1116
1623
|
] })
|
|
1117
1624
|
] }) : null
|
|
1118
|
-
), /* @__PURE__ */
|
|
1119
|
-
|
|
1625
|
+
), /* @__PURE__ */ b(
|
|
1626
|
+
z,
|
|
1120
1627
|
{
|
|
1121
|
-
title:
|
|
1122
|
-
breadcrumbs: [{ label:
|
|
1123
|
-
badges: /* @__PURE__ */
|
|
1124
|
-
/* @__PURE__ */
|
|
1125
|
-
|
|
1628
|
+
title: l.content.name,
|
|
1629
|
+
breadcrumbs: [{ label: i("section.profiles.title"), to: r.profiles }],
|
|
1630
|
+
badges: /* @__PURE__ */ b(j, { gap: "2", children: [
|
|
1631
|
+
/* @__PURE__ */ t(
|
|
1632
|
+
Je,
|
|
1126
1633
|
{
|
|
1127
|
-
tone:
|
|
1128
|
-
label:
|
|
1634
|
+
tone: l.validity.valid ? "success" : "danger",
|
|
1635
|
+
label: l.validity.valid ? i("validity.valid") : i("validity.invalid")
|
|
1129
1636
|
}
|
|
1130
1637
|
),
|
|
1131
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ t(Bt, { state: l.state })
|
|
1132
1639
|
] }),
|
|
1133
|
-
tabs:
|
|
1134
|
-
actions:
|
|
1640
|
+
tabs: Z,
|
|
1641
|
+
actions: m ? /* @__PURE__ */ t(
|
|
1135
1642
|
C,
|
|
1136
1643
|
{
|
|
1137
1644
|
variant: "solid",
|
|
1138
|
-
disabled: !
|
|
1139
|
-
loading:
|
|
1645
|
+
disabled: !I.isDirty,
|
|
1646
|
+
loading: g.isPending,
|
|
1140
1647
|
onClick: () => {
|
|
1141
|
-
|
|
1648
|
+
H();
|
|
1142
1649
|
},
|
|
1143
|
-
children:
|
|
1650
|
+
children: i("common.save")
|
|
1144
1651
|
}
|
|
1145
1652
|
) : void 0,
|
|
1146
1653
|
children: [
|
|
1147
|
-
|
|
1148
|
-
|
|
1654
|
+
B === "history" ? /* @__PURE__ */ t(
|
|
1655
|
+
Zt,
|
|
1149
1656
|
{
|
|
1150
1657
|
client: e,
|
|
1151
1658
|
kind: "importProfile",
|
|
1152
|
-
id:
|
|
1153
|
-
draftRevisionId:
|
|
1659
|
+
id: l.id,
|
|
1660
|
+
draftRevisionId: l.state.draftRevisionId,
|
|
1154
1661
|
onRestored: async () => {
|
|
1155
|
-
const
|
|
1156
|
-
|
|
1662
|
+
const E = await e.getImportProfile(l.id);
|
|
1663
|
+
u.setQueryData(h.importProfile(s, E.id), E), R(Ze(E.content));
|
|
1157
1664
|
}
|
|
1158
1665
|
}
|
|
1159
|
-
) : /* @__PURE__ */
|
|
1666
|
+
) : /* @__PURE__ */ t(M, { px: "8", py: "6", children: c.isPending || a.isPending || p.isPending ? /* @__PURE__ */ t(me, {}) : /* @__PURE__ */ t(ge, { ...V, children: /* @__PURE__ */ t(
|
|
1160
1667
|
"form",
|
|
1161
1668
|
{
|
|
1162
|
-
onSubmit: (
|
|
1163
|
-
|
|
1669
|
+
onSubmit: (E) => {
|
|
1670
|
+
E.preventDefault(), m && H();
|
|
1164
1671
|
},
|
|
1165
|
-
children: /* @__PURE__ */
|
|
1166
|
-
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
|
|
1672
|
+
children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1673
|
+
f.notice,
|
|
1674
|
+
/* @__PURE__ */ t(Et, { validity: l.validity }),
|
|
1675
|
+
g.isError ? /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: i("save.failed"), children: g.error.message }) : null,
|
|
1676
|
+
/* @__PURE__ */ t(U, { title: i("profiles.general"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
1677
|
+
/* @__PURE__ */ t(
|
|
1678
|
+
D,
|
|
1172
1679
|
{
|
|
1173
1680
|
name: "name",
|
|
1174
|
-
label:
|
|
1681
|
+
label: i("fields.name"),
|
|
1175
1682
|
required: !0,
|
|
1176
|
-
disabled: !
|
|
1683
|
+
disabled: !m
|
|
1177
1684
|
}
|
|
1178
1685
|
),
|
|
1179
|
-
/* @__PURE__ */
|
|
1180
|
-
|
|
1686
|
+
/* @__PURE__ */ t(
|
|
1687
|
+
_e,
|
|
1181
1688
|
{
|
|
1182
1689
|
name: "description",
|
|
1183
|
-
label:
|
|
1184
|
-
disabled: !
|
|
1690
|
+
label: i("fields.description"),
|
|
1691
|
+
disabled: !m
|
|
1185
1692
|
}
|
|
1186
1693
|
),
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
|
|
1694
|
+
/* @__PURE__ */ t(
|
|
1695
|
+
fe,
|
|
1189
1696
|
{
|
|
1190
1697
|
name: "entitySetId",
|
|
1191
|
-
label:
|
|
1192
|
-
helperText:
|
|
1193
|
-
placeholder:
|
|
1194
|
-
options: (
|
|
1195
|
-
id:
|
|
1196
|
-
label:
|
|
1698
|
+
label: i("profiles.entitySet"),
|
|
1699
|
+
helperText: i("profiles.entitySetHelp"),
|
|
1700
|
+
placeholder: i("profiles.noEntitySet"),
|
|
1701
|
+
options: (p.data ?? []).map((E) => ({
|
|
1702
|
+
id: E.id,
|
|
1703
|
+
label: E.content.name
|
|
1197
1704
|
})),
|
|
1198
|
-
disabled: !
|
|
1705
|
+
disabled: !m
|
|
1199
1706
|
}
|
|
1200
1707
|
),
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
|
|
1708
|
+
/* @__PURE__ */ t(
|
|
1709
|
+
ot,
|
|
1203
1710
|
{
|
|
1204
1711
|
name: "autoPublish",
|
|
1205
|
-
label:
|
|
1206
|
-
helperText:
|
|
1207
|
-
disabled: !
|
|
1712
|
+
label: i("profiles.autoPublish"),
|
|
1713
|
+
helperText: i("profiles.autoPublishHelp"),
|
|
1714
|
+
disabled: !m
|
|
1208
1715
|
}
|
|
1209
1716
|
),
|
|
1210
|
-
/* @__PURE__ */
|
|
1211
|
-
|
|
1717
|
+
/* @__PURE__ */ t(
|
|
1718
|
+
ot,
|
|
1212
1719
|
{
|
|
1213
1720
|
name: "deleteSourceFileOnSuccess",
|
|
1214
|
-
label:
|
|
1215
|
-
helperText:
|
|
1216
|
-
disabled: !
|
|
1721
|
+
label: i("profiles.deleteOnSuccess"),
|
|
1722
|
+
helperText: i("profiles.deleteOnSuccessHelp"),
|
|
1723
|
+
disabled: !m
|
|
1217
1724
|
}
|
|
1218
1725
|
)
|
|
1219
1726
|
] }) }),
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
|
|
1727
|
+
/* @__PURE__ */ t(U, { title: i("profiles.preprocessors"), children: /* @__PURE__ */ t(
|
|
1728
|
+
Rt,
|
|
1222
1729
|
{
|
|
1223
1730
|
name: "preprocessors",
|
|
1224
1731
|
kind: "preprocessor",
|
|
1225
|
-
catalogue:
|
|
1226
|
-
editable:
|
|
1732
|
+
catalogue: c.data ?? [],
|
|
1733
|
+
editable: m
|
|
1227
1734
|
}
|
|
1228
1735
|
) }),
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
|
|
1736
|
+
/* @__PURE__ */ t(U, { title: i("profiles.mappings"), children: /* @__PURE__ */ t(
|
|
1737
|
+
pn,
|
|
1231
1738
|
{
|
|
1232
|
-
mappings: (
|
|
1233
|
-
id:
|
|
1234
|
-
name:
|
|
1235
|
-
valid:
|
|
1739
|
+
mappings: (a.data ?? []).map((E) => ({
|
|
1740
|
+
id: E.id,
|
|
1741
|
+
name: E.content.name,
|
|
1742
|
+
valid: E.validity.valid
|
|
1236
1743
|
})),
|
|
1237
|
-
editable:
|
|
1238
|
-
hrefOf: (
|
|
1744
|
+
editable: m,
|
|
1745
|
+
hrefOf: (E) => le(r, "mappings", E)
|
|
1239
1746
|
}
|
|
1240
1747
|
) }),
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
|
|
1748
|
+
/* @__PURE__ */ t(U, { title: i("profiles.postProcessors"), children: /* @__PURE__ */ t(
|
|
1749
|
+
Rt,
|
|
1243
1750
|
{
|
|
1244
1751
|
name: "postProcessors",
|
|
1245
1752
|
kind: "post_processor",
|
|
1246
|
-
catalogue:
|
|
1247
|
-
editable:
|
|
1753
|
+
catalogue: c.data ?? [],
|
|
1754
|
+
editable: m
|
|
1248
1755
|
}
|
|
1249
1756
|
) })
|
|
1250
1757
|
] })
|
|
1251
1758
|
}
|
|
1252
1759
|
) }) }),
|
|
1253
|
-
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
|
|
1760
|
+
f.dialog,
|
|
1761
|
+
/* @__PURE__ */ t(
|
|
1762
|
+
Xt,
|
|
1256
1763
|
{
|
|
1257
|
-
open:
|
|
1258
|
-
onClose: () =>
|
|
1259
|
-
title:
|
|
1260
|
-
message:
|
|
1261
|
-
onDelete: () => e.deleteImportProfile(
|
|
1764
|
+
open: o,
|
|
1765
|
+
onClose: () => d(!1),
|
|
1766
|
+
title: i("profiles.deleteTitle", { name: G || l.content.name }),
|
|
1767
|
+
message: i("profiles.deleteMessage"),
|
|
1768
|
+
onDelete: () => e.deleteImportProfile(l.id),
|
|
1262
1769
|
onDeleted: () => {
|
|
1263
|
-
|
|
1264
|
-
queryKey:
|
|
1265
|
-
}),
|
|
1266
|
-
queryKey:
|
|
1267
|
-
}),
|
|
1770
|
+
d(!1), u.removeQueries({
|
|
1771
|
+
queryKey: h.importProfile(s, l.id)
|
|
1772
|
+
}), u.invalidateQueries({
|
|
1773
|
+
queryKey: h.importProfiles(s)
|
|
1774
|
+
}), n();
|
|
1268
1775
|
}
|
|
1269
1776
|
}
|
|
1270
1777
|
)
|
|
@@ -1272,50 +1779,50 @@ function Gl({
|
|
|
1272
1779
|
}
|
|
1273
1780
|
);
|
|
1274
1781
|
}
|
|
1275
|
-
function
|
|
1782
|
+
function Rt({
|
|
1276
1783
|
name: e,
|
|
1277
|
-
kind:
|
|
1278
|
-
catalogue:
|
|
1279
|
-
editable:
|
|
1784
|
+
kind: l,
|
|
1785
|
+
catalogue: n,
|
|
1786
|
+
editable: i
|
|
1280
1787
|
}) {
|
|
1281
|
-
const { t:
|
|
1282
|
-
return /* @__PURE__ */
|
|
1283
|
-
/* @__PURE__ */
|
|
1284
|
-
|
|
1788
|
+
const { t: s } = S(y), { control: r, setValue: m } = Mt(), u = Ve({ control: r, name: e }) ?? [], [o, d] = x(null), c = (R) => m(e, R, { shouldDirty: !0 }), a = (R) => n.find((I) => I.name === R.processor), p = o === null ? void 0 : u[o], V = n.filter((R) => R.kind === l && R.target === "source_file");
|
|
1789
|
+
return /* @__PURE__ */ b(P, { children: [
|
|
1790
|
+
/* @__PURE__ */ t(
|
|
1791
|
+
Ht,
|
|
1285
1792
|
{
|
|
1286
|
-
items:
|
|
1287
|
-
nameOf: (
|
|
1288
|
-
editable:
|
|
1289
|
-
onChange:
|
|
1290
|
-
emptyLabel:
|
|
1291
|
-
|
|
1793
|
+
items: u,
|
|
1794
|
+
nameOf: (R) => R.processor,
|
|
1795
|
+
editable: i,
|
|
1796
|
+
onChange: c,
|
|
1797
|
+
emptyLabel: s(
|
|
1798
|
+
l === "preprocessor" ? "profiles.noPreprocessors" : "profiles.noPostProcessors"
|
|
1292
1799
|
),
|
|
1293
|
-
addLabel:
|
|
1294
|
-
|
|
1800
|
+
addLabel: s(
|
|
1801
|
+
l === "preprocessor" ? "profiles.addPreprocessor" : "profiles.addPostProcessor"
|
|
1295
1802
|
),
|
|
1296
|
-
addOptions:
|
|
1297
|
-
onAdd: (
|
|
1298
|
-
|
|
1803
|
+
addOptions: V.map((R) => ({ value: R.name, label: R.name })),
|
|
1804
|
+
onAdd: (R) => {
|
|
1805
|
+
c([...u, { processor: R, settings: {} }]), (V.find((I) => I.name === R)?.settingsSpec.length ?? 0) > 0 && d(u.length);
|
|
1299
1806
|
},
|
|
1300
|
-
renderItem: (
|
|
1301
|
-
const
|
|
1302
|
-
return /* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1807
|
+
renderItem: (R, I) => {
|
|
1808
|
+
const g = a(R), H = Object.keys(R.settings).length;
|
|
1809
|
+
return /* @__PURE__ */ b(j, { justify: "space-between", gap: "3", children: [
|
|
1810
|
+
/* @__PURE__ */ b(X, { gap: "0", minW: "0", children: [
|
|
1811
|
+
/* @__PURE__ */ t(Q, { fontFamily: "mono", fontSize: "sm", children: R.processor }),
|
|
1812
|
+
/* @__PURE__ */ t(Q, { color: "fg.muted", fontSize: "sm", children: g ? g.description : s("processors.unknown") })
|
|
1306
1813
|
] }),
|
|
1307
|
-
|
|
1814
|
+
g && g.settingsSpec.length > 0 ? /* @__PURE__ */ b(
|
|
1308
1815
|
C,
|
|
1309
1816
|
{
|
|
1310
1817
|
size: "xs",
|
|
1311
1818
|
variant: "outline",
|
|
1312
|
-
onClick: () =>
|
|
1313
|
-
"aria-label":
|
|
1314
|
-
name:
|
|
1819
|
+
onClick: () => d(I),
|
|
1820
|
+
"aria-label": s(i ? "processors.configure" : "processors.viewSettings", {
|
|
1821
|
+
name: R.processor
|
|
1315
1822
|
}),
|
|
1316
1823
|
children: [
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
|
|
1824
|
+
/* @__PURE__ */ t(ul, { size: 14, "aria-hidden": !0 }),
|
|
1825
|
+
s("processors.settingsCount", { count: H })
|
|
1319
1826
|
]
|
|
1320
1827
|
}
|
|
1321
1828
|
) : null
|
|
@@ -1323,110 +1830,110 @@ function _e({
|
|
|
1323
1830
|
}
|
|
1324
1831
|
}
|
|
1325
1832
|
),
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
|
|
1833
|
+
/* @__PURE__ */ t(
|
|
1834
|
+
cn,
|
|
1328
1835
|
{
|
|
1329
|
-
open:
|
|
1330
|
-
onClose: () =>
|
|
1331
|
-
processor:
|
|
1332
|
-
settings:
|
|
1333
|
-
readOnly: !
|
|
1334
|
-
onApply: (
|
|
1335
|
-
|
|
1836
|
+
open: p !== void 0,
|
|
1837
|
+
onClose: () => d(null),
|
|
1838
|
+
processor: p ? a(p) ?? null : null,
|
|
1839
|
+
settings: p?.settings ?? mn,
|
|
1840
|
+
readOnly: !i,
|
|
1841
|
+
onApply: (R) => {
|
|
1842
|
+
o !== null && (c(u.map((I, g) => g === o ? { ...I, settings: R } : I)), d(null));
|
|
1336
1843
|
}
|
|
1337
1844
|
}
|
|
1338
1845
|
)
|
|
1339
1846
|
] });
|
|
1340
1847
|
}
|
|
1341
|
-
const
|
|
1342
|
-
function
|
|
1848
|
+
const mn = {};
|
|
1849
|
+
function pn({
|
|
1343
1850
|
mappings: e,
|
|
1344
|
-
editable:
|
|
1345
|
-
hrefOf:
|
|
1851
|
+
editable: l,
|
|
1852
|
+
hrefOf: n
|
|
1346
1853
|
}) {
|
|
1347
|
-
const { t:
|
|
1348
|
-
return /* @__PURE__ */
|
|
1349
|
-
|
|
1854
|
+
const { t: i } = S(y), { control: s, setValue: r } = Mt(), m = Ve({ control: s, name: "mappingIds" }) ?? [], u = k(() => new Map(e.map((c) => [c.id, c])), [e]), o = (c) => r("mappingIds", c, { shouldDirty: !0 });
|
|
1855
|
+
return /* @__PURE__ */ t(
|
|
1856
|
+
Ht,
|
|
1350
1857
|
{
|
|
1351
|
-
items:
|
|
1352
|
-
nameOf: (
|
|
1353
|
-
editable:
|
|
1354
|
-
onChange:
|
|
1355
|
-
emptyLabel:
|
|
1356
|
-
addLabel:
|
|
1357
|
-
addOptions: e.filter((
|
|
1358
|
-
onAdd: (
|
|
1359
|
-
renderItem: (
|
|
1360
|
-
const
|
|
1361
|
-
return
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
|
|
1364
|
-
] }) : /* @__PURE__ */
|
|
1858
|
+
items: m,
|
|
1859
|
+
nameOf: (c) => u.get(c)?.name ?? i("profiles.missingMapping"),
|
|
1860
|
+
editable: l,
|
|
1861
|
+
onChange: o,
|
|
1862
|
+
emptyLabel: i("profiles.noMappings"),
|
|
1863
|
+
addLabel: i("profiles.addMapping"),
|
|
1864
|
+
addOptions: e.filter((c) => !m.includes(c.id)).map((c) => ({ value: c.id, label: c.name })),
|
|
1865
|
+
onAdd: (c) => o([...m, c]),
|
|
1866
|
+
renderItem: (c) => {
|
|
1867
|
+
const a = u.get(c);
|
|
1868
|
+
return a ? /* @__PURE__ */ b(j, { gap: "2", children: [
|
|
1869
|
+
/* @__PURE__ */ t(Pe, { asChild: !0, children: /* @__PURE__ */ t(Yt, { to: n(a.id), children: a.name }) }),
|
|
1870
|
+
a.valid ? null : /* @__PURE__ */ t(Je, { tone: "danger", label: i("validity.invalid") })
|
|
1871
|
+
] }) : /* @__PURE__ */ t(Q, { color: "fg.muted", children: i("profiles.missingMapping") });
|
|
1365
1872
|
}
|
|
1366
1873
|
}
|
|
1367
1874
|
);
|
|
1368
1875
|
}
|
|
1369
|
-
const
|
|
1370
|
-
function
|
|
1371
|
-
const { t:
|
|
1372
|
-
queryKey:
|
|
1876
|
+
const Mt = () => Nt();
|
|
1877
|
+
function jn({ client: e, onOpen: l }) {
|
|
1878
|
+
const { t: n } = S(y), { workspaceId: i } = W(), { paths: s } = w(), r = pe(), m = O(), [u, o] = x(!1), d = J({
|
|
1879
|
+
queryKey: h.importProfiles(i),
|
|
1373
1880
|
queryFn: () => e.listImportProfiles()
|
|
1374
|
-
}),
|
|
1881
|
+
}), c = k(
|
|
1375
1882
|
() => [
|
|
1376
1883
|
{
|
|
1377
1884
|
id: "name",
|
|
1378
|
-
header:
|
|
1379
|
-
cell: (
|
|
1380
|
-
|
|
1885
|
+
header: n("fields.name"),
|
|
1886
|
+
cell: (a) => /* @__PURE__ */ t(
|
|
1887
|
+
Ce,
|
|
1381
1888
|
{
|
|
1382
|
-
to:
|
|
1383
|
-
label:
|
|
1889
|
+
to: le(s, "profiles", a.row.original.id),
|
|
1890
|
+
label: a.row.original.content.name
|
|
1384
1891
|
}
|
|
1385
1892
|
)
|
|
1386
1893
|
},
|
|
1387
1894
|
{
|
|
1388
1895
|
id: "validity",
|
|
1389
|
-
header:
|
|
1390
|
-
cell: (
|
|
1896
|
+
header: n("validity.column"),
|
|
1897
|
+
cell: (a) => /* @__PURE__ */ t(je, { validity: a.row.original.validity })
|
|
1391
1898
|
},
|
|
1392
1899
|
{
|
|
1393
1900
|
id: "release",
|
|
1394
|
-
header:
|
|
1901
|
+
header: n("release.column"),
|
|
1395
1902
|
size: 140,
|
|
1396
|
-
cell: (
|
|
1903
|
+
cell: (a) => /* @__PURE__ */ t(K, { value: Wt(a.row.original.state, n) })
|
|
1397
1904
|
}
|
|
1398
1905
|
],
|
|
1399
|
-
[
|
|
1906
|
+
[n, s]
|
|
1400
1907
|
);
|
|
1401
|
-
return /* @__PURE__ */
|
|
1402
|
-
|
|
1908
|
+
return /* @__PURE__ */ b(
|
|
1909
|
+
ne,
|
|
1403
1910
|
{
|
|
1404
|
-
title:
|
|
1405
|
-
actions:
|
|
1406
|
-
/* @__PURE__ */
|
|
1407
|
-
|
|
1911
|
+
title: n("section.profiles.title"),
|
|
1912
|
+
actions: r ? /* @__PURE__ */ b(C, { variant: "solid", onClick: () => o(!0), children: [
|
|
1913
|
+
/* @__PURE__ */ t(de, { size: 16, "aria-hidden": !0 }),
|
|
1914
|
+
n("profiles.new")
|
|
1408
1915
|
] }) : void 0,
|
|
1409
1916
|
children: [
|
|
1410
|
-
|
|
1411
|
-
|
|
1917
|
+
d.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(
|
|
1918
|
+
ie,
|
|
1412
1919
|
{
|
|
1413
|
-
columns:
|
|
1414
|
-
data:
|
|
1415
|
-
loading:
|
|
1416
|
-
getRowId: (
|
|
1417
|
-
emptyState:
|
|
1920
|
+
columns: c,
|
|
1921
|
+
data: d.data ?? [],
|
|
1922
|
+
loading: d.isPending,
|
|
1923
|
+
getRowId: (a) => a.id,
|
|
1924
|
+
emptyState: n("profiles.empty")
|
|
1418
1925
|
}
|
|
1419
1926
|
),
|
|
1420
|
-
/* @__PURE__ */
|
|
1421
|
-
|
|
1927
|
+
/* @__PURE__ */ t(
|
|
1928
|
+
lt,
|
|
1422
1929
|
{
|
|
1423
|
-
open:
|
|
1424
|
-
onClose: () =>
|
|
1425
|
-
title:
|
|
1426
|
-
onCreate: async ({ name:
|
|
1427
|
-
const
|
|
1428
|
-
name:
|
|
1429
|
-
description:
|
|
1930
|
+
open: u,
|
|
1931
|
+
onClose: () => o(!1),
|
|
1932
|
+
title: n("profiles.new"),
|
|
1933
|
+
onCreate: async ({ name: a, description: p }) => {
|
|
1934
|
+
const V = await e.createImportProfile({
|
|
1935
|
+
name: a,
|
|
1936
|
+
description: p,
|
|
1430
1937
|
entitySetId: "",
|
|
1431
1938
|
preprocessors: [],
|
|
1432
1939
|
mappingIds: [],
|
|
@@ -1434,12 +1941,12 @@ function $l({ client: e, onOpen: t }) {
|
|
|
1434
1941
|
autoPublish: !1,
|
|
1435
1942
|
deleteSourceFileOnSuccess: !1
|
|
1436
1943
|
});
|
|
1437
|
-
return await
|
|
1438
|
-
queryKey:
|
|
1439
|
-
}),
|
|
1944
|
+
return await m.invalidateQueries({
|
|
1945
|
+
queryKey: h.importProfiles(i)
|
|
1946
|
+
}), V.id;
|
|
1440
1947
|
},
|
|
1441
|
-
onCreated: (
|
|
1442
|
-
|
|
1948
|
+
onCreated: (a) => {
|
|
1949
|
+
o(!1), l(a);
|
|
1443
1950
|
}
|
|
1444
1951
|
}
|
|
1445
1952
|
)
|
|
@@ -1447,29 +1954,220 @@ function $l({ client: e, onOpen: t }) {
|
|
|
1447
1954
|
}
|
|
1448
1955
|
);
|
|
1449
1956
|
}
|
|
1957
|
+
const un = {
|
|
1958
|
+
importProfileId: "",
|
|
1959
|
+
effectiveDate: "",
|
|
1960
|
+
sourceDate: "",
|
|
1961
|
+
sourceReference: ""
|
|
1962
|
+
}, bn = (e) => /\.xml$/i.test(e.name) || e.type === "text/xml" || e.type === "application/xml";
|
|
1963
|
+
function On({ client: e, onStarted: l }) {
|
|
1964
|
+
const { t: n } = S(y), { workspaceId: i } = W(), { paths: s } = w(), r = it(), m = O(), u = J({
|
|
1965
|
+
queryKey: h.importProfiles(i),
|
|
1966
|
+
queryFn: () => e.listImportProfiles(),
|
|
1967
|
+
enabled: r
|
|
1968
|
+
}), o = be({ defaultValues: un }), d = Ve({ control: o.control, name: "importProfileId" }), [c, a] = x(null), p = (G) => {
|
|
1969
|
+
const [B] = G;
|
|
1970
|
+
if (B) {
|
|
1971
|
+
if (!bn(B)) {
|
|
1972
|
+
a({
|
|
1973
|
+
state: "failed",
|
|
1974
|
+
name: B.name,
|
|
1975
|
+
message: n("startImport.notXml", { name: B.name })
|
|
1976
|
+
});
|
|
1977
|
+
return;
|
|
1978
|
+
}
|
|
1979
|
+
a({ state: "uploading", name: B.name, fraction: 0 }), e.uploadSourceFile(
|
|
1980
|
+
B,
|
|
1981
|
+
(Z) => a(
|
|
1982
|
+
(f) => f?.state === "uploading" && f.name === B.name ? { ...f, fraction: Z } : f
|
|
1983
|
+
)
|
|
1984
|
+
).then(
|
|
1985
|
+
(Z) => a({ state: "uploaded", name: B.name, sourceFile: Z }),
|
|
1986
|
+
(Z) => a({
|
|
1987
|
+
state: "failed",
|
|
1988
|
+
name: B.name,
|
|
1989
|
+
message: n("startImport.uploadFailed", {
|
|
1990
|
+
name: B.name,
|
|
1991
|
+
message: Z instanceof Error ? Z.message : String(Z)
|
|
1992
|
+
})
|
|
1993
|
+
})
|
|
1994
|
+
);
|
|
1995
|
+
}
|
|
1996
|
+
}, V = ue({
|
|
1997
|
+
mutationFn: (G) => e.startImport({
|
|
1998
|
+
importProfileId: G.importProfileId,
|
|
1999
|
+
sourceFileId: G.sourceFileId,
|
|
2000
|
+
effectiveDate: G.effectiveDate,
|
|
2001
|
+
...G.sourceDate ? { source: { date: G.sourceDate, reference: G.sourceReference.trim() } } : {}
|
|
2002
|
+
}),
|
|
2003
|
+
onSuccess: (G) => {
|
|
2004
|
+
m.invalidateQueries({ queryKey: h.imports(i) }), l(G.id);
|
|
2005
|
+
}
|
|
2006
|
+
}), R = o.handleSubmit((G) => {
|
|
2007
|
+
if (c?.state === "uploaded") {
|
|
2008
|
+
if (!G.importProfileId) {
|
|
2009
|
+
o.setError("importProfileId", { message: n("startImport.profileRequired") });
|
|
2010
|
+
return;
|
|
2011
|
+
}
|
|
2012
|
+
if (!!G.sourceDate != !!G.sourceReference.trim()) {
|
|
2013
|
+
o.setError(G.sourceDate ? "sourceReference" : "sourceDate", {
|
|
2014
|
+
message: n("startImport.sourceIncomplete")
|
|
2015
|
+
});
|
|
2016
|
+
return;
|
|
2017
|
+
}
|
|
2018
|
+
V.mutate({ ...G, sourceFileId: c.sourceFile.id });
|
|
2019
|
+
}
|
|
2020
|
+
}), I = d !== "" && c?.state === "uploaded", g = {
|
|
2021
|
+
title: n("startImport.title"),
|
|
2022
|
+
breadcrumbs: [{ label: n("section.imports.title"), to: s.imports }]
|
|
2023
|
+
};
|
|
2024
|
+
if (!r)
|
|
2025
|
+
return /* @__PURE__ */ t(z, { ...g, children: /* @__PURE__ */ t(M, { px: "8", py: "6", children: /* @__PURE__ */ t(ft, { icon: /* @__PURE__ */ t(bl, { size: 32, "aria-hidden": !0 }), header: n("startImport.notAllowed") }) }) });
|
|
2026
|
+
if (u.isError || !u.data)
|
|
2027
|
+
return /* @__PURE__ */ t(z, { ...g, children: u.isError ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(me, {}) });
|
|
2028
|
+
const H = u.data.filter((G) => G.state.latestRelease);
|
|
2029
|
+
return /* @__PURE__ */ t(
|
|
2030
|
+
z,
|
|
2031
|
+
{
|
|
2032
|
+
...g,
|
|
2033
|
+
actions: /* @__PURE__ */ b(
|
|
2034
|
+
C,
|
|
2035
|
+
{
|
|
2036
|
+
variant: "solid",
|
|
2037
|
+
disabled: !I,
|
|
2038
|
+
loading: V.isPending,
|
|
2039
|
+
onClick: () => {
|
|
2040
|
+
R();
|
|
2041
|
+
},
|
|
2042
|
+
children: [
|
|
2043
|
+
/* @__PURE__ */ t(yt, { size: 16, "aria-hidden": !0 }),
|
|
2044
|
+
n("imports.start")
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
),
|
|
2048
|
+
children: /* @__PURE__ */ t(M, { px: "8", py: "6", children: /* @__PURE__ */ t(ge, { ...o, children: /* @__PURE__ */ b(X, { gap: "6", children: [
|
|
2049
|
+
V.isError ? /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: n("startImport.refused"), children: V.error.message }) : null,
|
|
2050
|
+
/* @__PURE__ */ t(U, { title: n("startImport.fileCard"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2051
|
+
H.length === 0 ? /* @__PURE__ */ t(v, { status: "info", colorPalette: "info", title: n("startImport.noProfiles") }) : null,
|
|
2052
|
+
/* @__PURE__ */ t(
|
|
2053
|
+
fe,
|
|
2054
|
+
{
|
|
2055
|
+
name: "importProfileId",
|
|
2056
|
+
label: n("startImport.profile"),
|
|
2057
|
+
helperText: n("startImport.profileHelp"),
|
|
2058
|
+
required: !0,
|
|
2059
|
+
options: H.map((G) => ({
|
|
2060
|
+
id: G.id,
|
|
2061
|
+
label: n("startImport.profileOption", {
|
|
2062
|
+
name: G.content.name,
|
|
2063
|
+
number: G.state.latestRelease?.number
|
|
2064
|
+
})
|
|
2065
|
+
}))
|
|
2066
|
+
}
|
|
2067
|
+
),
|
|
2068
|
+
/* @__PURE__ */ b(X, { gap: "2", children: [
|
|
2069
|
+
/* @__PURE__ */ t(Q, { fontWeight: "medium", children: n("startImport.file") }),
|
|
2070
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: n("startImport.fileHelp") }),
|
|
2071
|
+
/* @__PURE__ */ t(
|
|
2072
|
+
yl,
|
|
2073
|
+
{
|
|
2074
|
+
onFiles: p,
|
|
2075
|
+
accept: ".xml,text/xml,application/xml",
|
|
2076
|
+
disabled: c?.state === "uploading" || V.isPending,
|
|
2077
|
+
dropHintText: n("startImport.dropHint"),
|
|
2078
|
+
dragActiveText: n("startImport.dragActive"),
|
|
2079
|
+
buttonLabel: n("startImport.chooseFile")
|
|
2080
|
+
}
|
|
2081
|
+
),
|
|
2082
|
+
/* @__PURE__ */ t(gn, { upload: c })
|
|
2083
|
+
] })
|
|
2084
|
+
] }) }),
|
|
2085
|
+
/* @__PURE__ */ t(U, { title: n("startImport.datesCard"), children: /* @__PURE__ */ b(X, { gap: "4", children: [
|
|
2086
|
+
/* @__PURE__ */ t(Q, { color: "muted", fontSize: "sm", children: n("startImport.datesHelp") }),
|
|
2087
|
+
/* @__PURE__ */ t(
|
|
2088
|
+
rt,
|
|
2089
|
+
{
|
|
2090
|
+
name: "effectiveDate",
|
|
2091
|
+
label: n("startImport.effectiveDate"),
|
|
2092
|
+
helperText: n("startImport.effectiveDateHelp")
|
|
2093
|
+
}
|
|
2094
|
+
),
|
|
2095
|
+
/* @__PURE__ */ b(ht, { templateColumns: { base: "1fr", md: "1fr 2fr" }, gap: "4", children: [
|
|
2096
|
+
/* @__PURE__ */ t(
|
|
2097
|
+
rt,
|
|
2098
|
+
{
|
|
2099
|
+
name: "sourceDate",
|
|
2100
|
+
label: n("startImport.sourceDate")
|
|
2101
|
+
}
|
|
2102
|
+
),
|
|
2103
|
+
/* @__PURE__ */ t(
|
|
2104
|
+
D,
|
|
2105
|
+
{
|
|
2106
|
+
name: "sourceReference",
|
|
2107
|
+
label: n("startImport.sourceReference"),
|
|
2108
|
+
helperText: n("startImport.sourceReferenceHelp")
|
|
2109
|
+
}
|
|
2110
|
+
)
|
|
2111
|
+
] })
|
|
2112
|
+
] }) }),
|
|
2113
|
+
/* @__PURE__ */ t(v, { status: "info", colorPalette: "info", title: n("startImport.consentTitle"), children: n("startImport.consent") })
|
|
2114
|
+
] }) }) })
|
|
2115
|
+
}
|
|
2116
|
+
);
|
|
2117
|
+
}
|
|
2118
|
+
function gn({ upload: e }) {
|
|
2119
|
+
const { t: l } = S(y);
|
|
2120
|
+
if (!e) return null;
|
|
2121
|
+
switch (e.state) {
|
|
2122
|
+
case "uploading":
|
|
2123
|
+
return /* @__PURE__ */ t(
|
|
2124
|
+
St,
|
|
2125
|
+
{
|
|
2126
|
+
label: l("startImport.uploading", { name: e.name }),
|
|
2127
|
+
value: Math.round(e.fraction * 100),
|
|
2128
|
+
showValue: !0
|
|
2129
|
+
}
|
|
2130
|
+
);
|
|
2131
|
+
case "uploaded":
|
|
2132
|
+
return /* @__PURE__ */ t(
|
|
2133
|
+
v,
|
|
2134
|
+
{
|
|
2135
|
+
status: "success",
|
|
2136
|
+
colorPalette: "success",
|
|
2137
|
+
title: l("startImport.uploaded", { name: e.name })
|
|
2138
|
+
}
|
|
2139
|
+
);
|
|
2140
|
+
case "failed":
|
|
2141
|
+
return /* @__PURE__ */ t(v, { status: "error", colorPalette: "danger", title: e.message });
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
1450
2144
|
export {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
2145
|
+
Hl as ChangeSetLink,
|
|
2146
|
+
Zt as ConfigurationHistory,
|
|
2147
|
+
qt as ConfigurationInUseError,
|
|
2148
|
+
xn as EntitySetDetail,
|
|
2149
|
+
kn as EntitySetsIndex,
|
|
2150
|
+
$n as IMPORTHUB_SECTIONS,
|
|
2151
|
+
Ml as IMPORTHUB_SECTION_ICONS,
|
|
2152
|
+
y as IMPORTHUB_UI_NS,
|
|
2153
|
+
Ln as ImportDetail,
|
|
2154
|
+
Pn as ImportProfileDetail,
|
|
2155
|
+
jn as ImportProfilesIndex,
|
|
2156
|
+
ei as ImporthubHostProvider,
|
|
2157
|
+
zn as ImporthubStartPage,
|
|
2158
|
+
Hn as ImportsIndex,
|
|
2159
|
+
Mn as MappingDetail,
|
|
2160
|
+
Dn as MappingsIndex,
|
|
2161
|
+
He as NameTakenError,
|
|
2162
|
+
Tn as ProcessorCatalogue,
|
|
2163
|
+
Ot as ReleaseRefusedError,
|
|
2164
|
+
ti as STANDALONE_IMPORTHUB_PATHS,
|
|
2165
|
+
On as StartImport,
|
|
2166
|
+
jt as StartRefusedError,
|
|
2167
|
+
Qn as createConnectImporthubClient,
|
|
2168
|
+
li as i18nResources,
|
|
2169
|
+
h as importhubKeys,
|
|
2170
|
+
le as itemPath,
|
|
2171
|
+
w as useImporthubHost
|
|
1474
2172
|
};
|
|
1475
2173
|
//# sourceMappingURL=index.js.map
|