@box/metadata-editor 1.37.0 → 1.38.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/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +103 -104
- package/dist/esm/lib/components/metadata-instance-list/metadata-instance-list.js +11 -13
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +25 -27
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +12 -13
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +0 -2
- package/dist/types/lib/components/metadata-instance-list/metadata-instance-list.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/types.d.ts +0 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/types.d.ts +0 -1
- package/dist/types/lib/components/metadata-instance-list/types.d.ts +0 -1
- package/dist/types/lib/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,144 +1,143 @@
|
|
|
1
1
|
import "../custom-instance-new-field/custom-instance-new-field.js";
|
|
2
|
-
import { DeleteConfirmationModal as
|
|
2
|
+
import { DeleteConfirmationModal as z } from "../delete-confirmation-modal/delete-confirmation-modal.js";
|
|
3
3
|
import "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
|
|
4
4
|
import "../metadata-instance-form-header/metadata-instance-form-header.js";
|
|
5
|
-
import
|
|
6
|
-
import { Formik as
|
|
7
|
-
import
|
|
8
|
-
import { useState as y, useEffect as
|
|
9
|
-
import { TEMPLATE_CUSTOM_PROPERTIES as
|
|
10
|
-
import { useAutofill as
|
|
11
|
-
import { ConfidenceScoreContextProvider as
|
|
12
|
-
import { TemplateInstance as
|
|
13
|
-
import { MetadataEmptyState as
|
|
14
|
-
import { AutofillOverlay as
|
|
15
|
-
import { CustomInstance as
|
|
16
|
-
import { c as
|
|
17
|
-
import { s as d, M as
|
|
18
|
-
import { jsx as t, jsxs as
|
|
19
|
-
import { UnsavedChangesModal as
|
|
20
|
-
const
|
|
5
|
+
import G from "clsx";
|
|
6
|
+
import { Formik as H, Form as Q } from "formik";
|
|
7
|
+
import X from "lodash/isEqual";
|
|
8
|
+
import { useState as y, useEffect as S, useRef as x, useMemo as Y } from "react";
|
|
9
|
+
import { TEMPLATE_CUSTOM_PROPERTIES as Z } from "../../../../constants.js";
|
|
10
|
+
import { useAutofill as ee } from "../../../../utils/autofill-context.js";
|
|
11
|
+
import { ConfidenceScoreContextProvider as te } from "../../../../utils/confidence-score-context.js";
|
|
12
|
+
import { TemplateInstance as ne } from "../../../metadata-editor-fields/metadata-editor-fields.js";
|
|
13
|
+
import { MetadataEmptyState as ae } from "../../../metadata-empty-state/metadata-empty-state.js";
|
|
14
|
+
import { AutofillOverlay as oe } from "../autofill-overlay/autofill-overlay.js";
|
|
15
|
+
import { CustomInstance as se } from "../custom-instance/custom-instance.js";
|
|
16
|
+
import { c as re } from "../../../../../../chunks/utils.js";
|
|
17
|
+
import { s as d, M as ie } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
|
|
18
|
+
import { jsx as t, jsxs as O } from "react/jsx-runtime";
|
|
19
|
+
import { UnsavedChangesModal as le } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
|
|
20
|
+
const me = ({
|
|
21
21
|
dirty: i,
|
|
22
22
|
onChange: l,
|
|
23
|
-
values:
|
|
23
|
+
values: n
|
|
24
24
|
}) => {
|
|
25
|
-
const s =
|
|
26
|
-
return i && !
|
|
27
|
-
},
|
|
25
|
+
const s = x(n);
|
|
26
|
+
return i && !X(s.current.metadata.fields, n.metadata.fields) && (s.current = n, l(n)), null;
|
|
27
|
+
}, Ae = (i) => {
|
|
28
28
|
const {
|
|
29
29
|
areAiSuggestionsAvailable: l,
|
|
30
|
-
customRef:
|
|
30
|
+
customRef: n,
|
|
31
31
|
isLargeFile: s,
|
|
32
32
|
errorCode: m,
|
|
33
33
|
isAiSuggestionsFeatureEnabled: c,
|
|
34
|
-
isAdvancedExtractAgentEnabled:
|
|
35
|
-
isBetaLanguageEnabled:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
MetadataInstanceFormCustomWrapper: L,
|
|
34
|
+
isAdvancedExtractAgentEnabled: D = !1,
|
|
35
|
+
isBetaLanguageEnabled: v,
|
|
36
|
+
isDeleteButtonDisabled: I,
|
|
37
|
+
isDeleteConfirmationModalCheckboxEnabled: A,
|
|
38
|
+
isMultilevelTaxonomyFieldEnabled: f,
|
|
39
|
+
isUnsavedChangesModalOpen: T = !1,
|
|
40
|
+
MetadataInstanceFormCustomWrapper: w,
|
|
42
41
|
selectedTemplateInstance: e,
|
|
43
|
-
onCancel:
|
|
44
|
-
onChange:
|
|
45
|
-
onDelete:
|
|
46
|
-
onDiscardUnsavedChanges:
|
|
47
|
-
onSubmit:
|
|
48
|
-
setIsUnsavedChangesModalOpen:
|
|
49
|
-
taxonomyOptionsFetcher:
|
|
50
|
-
isConfidenceScoreReviewEnabled:
|
|
51
|
-
} = i,
|
|
52
|
-
isFetchingSuggestions:
|
|
42
|
+
onCancel: R,
|
|
43
|
+
onChange: p,
|
|
44
|
+
onDelete: L,
|
|
45
|
+
onDiscardUnsavedChanges: P,
|
|
46
|
+
onSubmit: k,
|
|
47
|
+
setIsUnsavedChangesModalOpen: u,
|
|
48
|
+
taxonomyOptionsFetcher: g,
|
|
49
|
+
isConfidenceScoreReviewEnabled: N = !1
|
|
50
|
+
} = i, U = w ?? ie, [B, C] = y(!1), {
|
|
51
|
+
isFetchingSuggestions: o,
|
|
53
52
|
isLongLoading: E,
|
|
54
|
-
getAiSuggestions:
|
|
55
|
-
clearState:
|
|
56
|
-
suggestions:
|
|
57
|
-
} =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, [
|
|
61
|
-
const
|
|
62
|
-
await
|
|
63
|
-
},
|
|
64
|
-
a ?
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
53
|
+
getAiSuggestions: K,
|
|
54
|
+
clearState: h,
|
|
55
|
+
suggestions: V
|
|
56
|
+
} = ee();
|
|
57
|
+
S(() => () => {
|
|
58
|
+
h();
|
|
59
|
+
}, [h, e?.id]);
|
|
60
|
+
const b = e?.templateKey === Z, W = async (a) => {
|
|
61
|
+
await k(a, re(a, e));
|
|
62
|
+
}, j = (a) => {
|
|
63
|
+
a ? u(!0) : R();
|
|
64
|
+
}, _ = () => {
|
|
65
|
+
C(!0);
|
|
66
|
+
}, $ = {
|
|
68
67
|
metadata: {
|
|
69
68
|
...e
|
|
70
69
|
}
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}, [
|
|
75
|
-
const
|
|
70
|
+
}, F = x(null), [M, q] = y(null);
|
|
71
|
+
S(() => {
|
|
72
|
+
q(n ?? F.current);
|
|
73
|
+
}, [n, e?.templateKey, e?.scope]);
|
|
74
|
+
const J = Y(() => {
|
|
76
75
|
const a = e?.fields.length === 0;
|
|
77
|
-
if (
|
|
78
|
-
return /* @__PURE__ */ t(
|
|
79
|
-
isLoading:
|
|
76
|
+
if (b)
|
|
77
|
+
return /* @__PURE__ */ t(se, {
|
|
78
|
+
isLoading: o
|
|
80
79
|
});
|
|
81
80
|
if (a)
|
|
82
|
-
return /* @__PURE__ */ t(
|
|
81
|
+
return /* @__PURE__ */ t(ae, {
|
|
83
82
|
isBoxAiSuggestionsFeatureEnabled: c,
|
|
84
83
|
level: "instance"
|
|
85
84
|
});
|
|
86
|
-
const r = !!(
|
|
87
|
-
return /* @__PURE__ */
|
|
88
|
-
className:
|
|
89
|
-
children: [/* @__PURE__ */ t(
|
|
85
|
+
const r = !!(o || m);
|
|
86
|
+
return /* @__PURE__ */ O("div", {
|
|
87
|
+
className: G(d.metadataInstanceFormContent, r && d.showOverlay),
|
|
88
|
+
children: [/* @__PURE__ */ t(oe, {
|
|
90
89
|
errorCode: m,
|
|
91
|
-
isFetchingSuggestions:
|
|
90
|
+
isFetchingSuggestions: o,
|
|
92
91
|
isLongLoading: E
|
|
93
|
-
}), /* @__PURE__ */ t(
|
|
94
|
-
disableForm:
|
|
95
|
-
isExternallyOwned:
|
|
96
|
-
isMultilevelTaxonomyFieldEnabled:
|
|
97
|
-
portalElement:
|
|
98
|
-
taxonomyOptionsFetcher:
|
|
92
|
+
}), /* @__PURE__ */ t(ne, {
|
|
93
|
+
disableForm: o,
|
|
94
|
+
isExternallyOwned: e?.isExternallyOwned,
|
|
95
|
+
isMultilevelTaxonomyFieldEnabled: f,
|
|
96
|
+
portalElement: n ?? M,
|
|
97
|
+
taxonomyOptionsFetcher: g
|
|
99
98
|
})]
|
|
100
99
|
});
|
|
101
|
-
}, [e?.fields.length,
|
|
102
|
-
return /* @__PURE__ */ t(
|
|
103
|
-
isConfidenceScoreReviewEnabled:
|
|
104
|
-
children: /* @__PURE__ */ t(
|
|
105
|
-
initialValues:
|
|
106
|
-
onSubmit:
|
|
100
|
+
}, [e?.fields.length, b, o, E, n, M, g, c, f, m, e?.isExternallyOwned]);
|
|
101
|
+
return /* @__PURE__ */ t(te, {
|
|
102
|
+
isConfidenceScoreReviewEnabled: N,
|
|
103
|
+
children: /* @__PURE__ */ t(H, {
|
|
104
|
+
initialValues: $,
|
|
105
|
+
onSubmit: W,
|
|
107
106
|
children: ({
|
|
108
107
|
values: a,
|
|
109
108
|
dirty: r
|
|
110
|
-
}) => /* @__PURE__ */
|
|
111
|
-
children: [/* @__PURE__ */ t(
|
|
109
|
+
}) => /* @__PURE__ */ O(Q, {
|
|
110
|
+
children: [/* @__PURE__ */ t(U, {
|
|
112
111
|
areAiSuggestionsAvailable: l,
|
|
113
112
|
className: d.metadataInstanceForm,
|
|
114
|
-
formRef:
|
|
113
|
+
formRef: F,
|
|
115
114
|
formValues: a,
|
|
116
|
-
getAiSuggestions:
|
|
117
|
-
handleCancel:
|
|
118
|
-
handleDelete:
|
|
119
|
-
isAdvancedExtractAgentEnabled:
|
|
115
|
+
getAiSuggestions: K,
|
|
116
|
+
handleCancel: j,
|
|
117
|
+
handleDelete: _,
|
|
118
|
+
isAdvancedExtractAgentEnabled: D,
|
|
120
119
|
isAiSuggestionsFeatureEnabled: c,
|
|
121
|
-
isBetaLanguageEnabled:
|
|
122
|
-
isDeleteButtonDisabled:
|
|
123
|
-
isFetchingSuggestions:
|
|
120
|
+
isBetaLanguageEnabled: v,
|
|
121
|
+
isDeleteButtonDisabled: I,
|
|
122
|
+
isFetchingSuggestions: o,
|
|
124
123
|
isFormDirty: r,
|
|
125
124
|
isLargeFile: s,
|
|
126
125
|
selectedTemplateInstance: e,
|
|
127
|
-
suggestions:
|
|
128
|
-
children: e &&
|
|
129
|
-
}),
|
|
126
|
+
suggestions: V,
|
|
127
|
+
children: e && J
|
|
128
|
+
}), p && /* @__PURE__ */ t(me, {
|
|
130
129
|
dirty: r,
|
|
131
|
-
onChange:
|
|
130
|
+
onChange: p,
|
|
132
131
|
values: a
|
|
133
|
-
}), /* @__PURE__ */ t(
|
|
134
|
-
onBackToEdit: () =>
|
|
135
|
-
onDiscardChanges:
|
|
136
|
-
open:
|
|
137
|
-
}), /* @__PURE__ */ t(
|
|
138
|
-
isCheckboxEnabled:
|
|
139
|
-
onConfirm: () =>
|
|
140
|
-
onDismiss: () =>
|
|
141
|
-
open:
|
|
132
|
+
}), /* @__PURE__ */ t(le, {
|
|
133
|
+
onBackToEdit: () => u(!1),
|
|
134
|
+
onDiscardChanges: P,
|
|
135
|
+
open: T
|
|
136
|
+
}), /* @__PURE__ */ t(z, {
|
|
137
|
+
isCheckboxEnabled: A,
|
|
138
|
+
onConfirm: () => L(e),
|
|
139
|
+
onDismiss: () => C(!1),
|
|
140
|
+
open: B,
|
|
142
141
|
templateName: e?.displayName
|
|
143
142
|
})]
|
|
144
143
|
})
|
|
@@ -146,5 +145,5 @@ const ce = ({
|
|
|
146
145
|
});
|
|
147
146
|
};
|
|
148
147
|
export {
|
|
149
|
-
|
|
148
|
+
Ae as MetadataInstanceForm
|
|
150
149
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConfidenceScoreContextProvider as
|
|
2
|
-
import { getVisibleTemplates as
|
|
3
|
-
import { MetadataInstance as
|
|
1
|
+
import { ConfidenceScoreContextProvider as d } from "../../utils/confidence-score-context.js";
|
|
2
|
+
import { getVisibleTemplates as f } from "../../utils/utils.js";
|
|
3
|
+
import { MetadataInstance as l } from "./subcomponents/metadata-instance/metadata-instance.js";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
import "./subcomponents/metadata-instance-header/metadata-instance-header.js";
|
|
6
|
-
import '../../../../styles/metadata-instance-list.css';const
|
|
7
|
-
metadataInstanceList:
|
|
8
|
-
},
|
|
6
|
+
import '../../../../styles/metadata-instance-list.css';const p = "_metadataInstanceList_bd83w_1", I = {
|
|
7
|
+
metadataInstanceList: p
|
|
8
|
+
}, v = ({
|
|
9
9
|
areAiSuggestionsAvailable: e,
|
|
10
10
|
isAiSuggestionsFeatureEnabled: s,
|
|
11
11
|
isBetaLanguageEnabled: n,
|
|
@@ -13,18 +13,16 @@ import '../../../../styles/metadata-instance-list.css';const I = "_metadataInsta
|
|
|
13
13
|
templateInstances: o,
|
|
14
14
|
taxonomyNodeFetcher: r,
|
|
15
15
|
isAdvancedExtractAgentEnabled: m = !1,
|
|
16
|
-
isConfidenceScoreReviewEnabled: c = !1
|
|
17
|
-
|
|
18
|
-
}) => /* @__PURE__ */ t(f, {
|
|
16
|
+
isConfidenceScoreReviewEnabled: c = !1
|
|
17
|
+
}) => /* @__PURE__ */ t(d, {
|
|
19
18
|
isConfidenceScoreReviewEnabled: c,
|
|
20
19
|
children: /* @__PURE__ */ t("div", {
|
|
21
|
-
className:
|
|
22
|
-
children:
|
|
20
|
+
className: I.metadataInstanceList,
|
|
21
|
+
children: f(o).map((a) => /* @__PURE__ */ t(l, {
|
|
23
22
|
areAiSuggestionsAvailable: e,
|
|
24
23
|
isAdvancedExtractAgentEnabled: m,
|
|
25
24
|
isAiSuggestionsFeatureEnabled: s,
|
|
26
25
|
isBetaLanguageEnabled: n,
|
|
27
|
-
isExternallyOwned: d,
|
|
28
26
|
onEdit: i,
|
|
29
27
|
taxonomyNodeFetcher: r,
|
|
30
28
|
templateInstance: a
|
|
@@ -32,5 +30,5 @@ import '../../../../styles/metadata-instance-list.css';const I = "_metadataInsta
|
|
|
32
30
|
})
|
|
33
31
|
});
|
|
34
32
|
export {
|
|
35
|
-
|
|
33
|
+
v as MetadataInstanceList
|
|
36
34
|
};
|
|
@@ -1,56 +1,54 @@
|
|
|
1
|
-
import { Card as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useAutofill as
|
|
4
|
-
import { MetadataEmptyState as
|
|
5
|
-
import { MetadataInstanceContent as
|
|
6
|
-
import { MetadataInstanceFooter as
|
|
7
|
-
import { MetadataInstanceHeader as
|
|
1
|
+
import { Card as S, Divider as n } from "@box/blueprint-web";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { useAutofill as g } from "../../../../utils/autofill-context.js";
|
|
4
|
+
import { MetadataEmptyState as H } from "../../../metadata-empty-state/metadata-empty-state.js";
|
|
5
|
+
import { MetadataInstanceContent as _ } from "../metadata-instance-content/metadata-instance-content.js";
|
|
6
|
+
import { MetadataInstanceFooter as M } from "../metadata-instance-footer/metadata-instance-footer.js";
|
|
7
|
+
import { MetadataInstanceHeader as N } from "../metadata-instance-header/metadata-instance-header.js";
|
|
8
8
|
import { jsxs as r, jsx as o, Fragment as u } from "react/jsx-runtime";
|
|
9
|
-
import '../../../../../../styles/metadata-instance.css';const
|
|
10
|
-
topDivider:
|
|
11
|
-
bottomDivider:
|
|
12
|
-
},
|
|
9
|
+
import '../../../../../../styles/metadata-instance.css';const x = "_topDivider_tzhlb_1", F = "_bottomDivider_tzhlb_5", p = {
|
|
10
|
+
topDivider: x,
|
|
11
|
+
bottomDivider: F
|
|
12
|
+
}, q = ({
|
|
13
13
|
areAiSuggestionsAvailable: y,
|
|
14
14
|
isAiSuggestionsFeatureEnabled: l,
|
|
15
15
|
isBetaLanguageEnabled: c,
|
|
16
16
|
onEdit: d,
|
|
17
17
|
templateInstance: t,
|
|
18
18
|
taxonomyNodeFetcher: h,
|
|
19
|
-
isAdvancedExtractAgentEnabled: v = !1
|
|
20
|
-
isExternallyOwned: E
|
|
19
|
+
isAdvancedExtractAgentEnabled: v = !1
|
|
21
20
|
}) => {
|
|
22
|
-
const i = t.fields, m = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0,
|
|
23
|
-
getAiSuggestions:
|
|
24
|
-
} =
|
|
25
|
-
d(t),
|
|
21
|
+
const i = t.fields, m = (e) => !e.value || Array.isArray(e.value) && e.value.length === 0, E = i.every(m), f = i.some(m), V = i.length > 0, [a, s] = b(!0), {
|
|
22
|
+
getAiSuggestions: A
|
|
23
|
+
} = g(), D = (e) => {
|
|
24
|
+
d(t), A(t.templateKey, t.scope, e);
|
|
26
25
|
};
|
|
27
|
-
return /* @__PURE__ */ r(
|
|
28
|
-
children: [/* @__PURE__ */ o(
|
|
26
|
+
return /* @__PURE__ */ r(S, {
|
|
27
|
+
children: [/* @__PURE__ */ o(N, {
|
|
29
28
|
areAiSuggestionsAvailable: y,
|
|
30
29
|
canEdit: t.canEdit,
|
|
31
30
|
isAdvancedExtractAgentEnabled: v,
|
|
32
31
|
isAiSuggestionsFeatureEnabled: l,
|
|
33
32
|
isBetaLanguageEnabled: c,
|
|
34
|
-
onAutofill:
|
|
33
|
+
onAutofill: D,
|
|
35
34
|
onEdit: () => d(t),
|
|
36
35
|
templateName: t?.displayName
|
|
37
36
|
}), /* @__PURE__ */ o(n, {
|
|
38
37
|
className: p.topDivider
|
|
39
|
-
}), a &&
|
|
40
|
-
isAnyEmptyValueHidden:
|
|
38
|
+
}), a && E ? /* @__PURE__ */ o(H, {
|
|
39
|
+
isAnyEmptyValueHidden: V,
|
|
41
40
|
isBoxAiSuggestionsFeatureEnabled: l,
|
|
42
41
|
level: "instance",
|
|
43
42
|
onShowEmptyValues: () => s(!1)
|
|
44
43
|
}) : /* @__PURE__ */ r(u, {
|
|
45
|
-
children: [/* @__PURE__ */ o(
|
|
46
|
-
isExternallyOwned: E,
|
|
44
|
+
children: [/* @__PURE__ */ o(_, {
|
|
47
45
|
shouldHideEmptyValues: a,
|
|
48
46
|
taxonomyNodeFetcher: h,
|
|
49
47
|
templateInstance: t
|
|
50
|
-
}),
|
|
48
|
+
}), f && /* @__PURE__ */ r(u, {
|
|
51
49
|
children: [/* @__PURE__ */ o(n, {
|
|
52
50
|
className: p.bottomDivider
|
|
53
|
-
}), /* @__PURE__ */ o(
|
|
51
|
+
}), /* @__PURE__ */ o(M, {
|
|
54
52
|
isAnyEmptyValueHidden: a,
|
|
55
53
|
onHideEmptyValues: () => s(!0),
|
|
56
54
|
onShowEmptyValues: () => s(!1)
|
|
@@ -60,5 +58,5 @@ import '../../../../../../styles/metadata-instance.css';const F = "_topDivider_t
|
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
60
|
export {
|
|
63
|
-
|
|
61
|
+
q as MetadataInstance
|
|
64
62
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { MetadataInstanceEntry as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import '../../../../../../styles/metadata-instance-content.css';const r = "_metadataInstanceContent_1a9zf_1",
|
|
1
|
+
import { MetadataInstanceEntry as c } from "../metadata-instance-entry/metadata-instance-entry.js";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import '../../../../../../styles/metadata-instance-content.css';const r = "_metadataInstanceContent_1a9zf_1", m = {
|
|
4
4
|
metadataInstanceContent: r
|
|
5
|
-
},
|
|
5
|
+
}, p = ({
|
|
6
6
|
shouldHideEmptyValues: a,
|
|
7
|
-
templateInstance:
|
|
8
|
-
taxonomyNodeFetcher: o
|
|
9
|
-
isExternallyOwned: c
|
|
7
|
+
templateInstance: n,
|
|
8
|
+
taxonomyNodeFetcher: o
|
|
10
9
|
}) => {
|
|
11
10
|
const {
|
|
12
11
|
fields: s = []
|
|
13
|
-
} =
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
className:
|
|
16
|
-
children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */
|
|
12
|
+
} = n;
|
|
13
|
+
return /* @__PURE__ */ e("div", {
|
|
14
|
+
className: m.metadataInstanceContent,
|
|
15
|
+
children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ e(c, {
|
|
17
16
|
confidenceScore: t.confidenceScore,
|
|
18
17
|
description: t.description,
|
|
19
|
-
isExternallyOwned:
|
|
18
|
+
isExternallyOwned: n.isExternallyOwned,
|
|
20
19
|
name: t.displayName || t.key,
|
|
21
20
|
scope: t.namespace,
|
|
22
21
|
shouldHideEmptyValues: a,
|
|
@@ -28,5 +27,5 @@ import '../../../../../../styles/metadata-instance-content.css';const r = "_meta
|
|
|
28
27
|
});
|
|
29
28
|
};
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
p as MetadataInstanceContent
|
|
32
31
|
};
|
|
@@ -11,8 +11,6 @@ export type MetadataInstanceFormProps = {
|
|
|
11
11
|
isDeleteButtonDisabled: boolean;
|
|
12
12
|
isDeleteConfirmationModalCheckboxEnabled: boolean;
|
|
13
13
|
isLargeFile: boolean;
|
|
14
|
-
/** When true, the form is disabled for cross-enterprise metadata taxonomy fields */
|
|
15
|
-
isExternallyOwned?: boolean;
|
|
16
14
|
/** When true enables the multilevel taxonomy filed component with tree selection */
|
|
17
15
|
isMultilevelTaxonomyFieldEnabled: boolean;
|
|
18
16
|
isUnsavedChangesModalOpen: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceListProps } from './types';
|
|
2
|
-
export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstances, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isConfidenceScoreReviewEnabled,
|
|
2
|
+
export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstances, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, isConfidenceScoreReviewEnabled, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceProps } from './types';
|
|
2
|
-
export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstance, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled,
|
|
2
|
+
export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, isBetaLanguageEnabled, onEdit, templateInstance, taxonomyNodeFetcher, isAdvancedExtractAgentEnabled, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MetadataInstanceContentProps } from './types';
|
|
2
|
-
export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher,
|
|
2
|
+
export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MetadataTemplateInstance } from '../../../../types';
|
|
2
2
|
import { TaxonomyNodeFetcher } from '../metadata-instance-entry/types';
|
|
3
3
|
export type MetadataInstanceContentProps = {
|
|
4
|
-
isExternallyOwned?: boolean;
|
|
5
4
|
shouldHideEmptyValues: boolean;
|
|
6
5
|
templateInstance: MetadataTemplateInstance;
|
|
7
6
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
@@ -6,7 +6,6 @@ export type MetadataInstanceListProps = {
|
|
|
6
6
|
isBetaLanguageEnabled: boolean;
|
|
7
7
|
isAdvancedExtractAgentEnabled?: boolean;
|
|
8
8
|
isConfidenceScoreReviewEnabled?: boolean;
|
|
9
|
-
isExternallyOwned?: boolean;
|
|
10
9
|
onEdit: (templateInstacne: MetadataTemplateInstance) => void;
|
|
11
10
|
templateInstances: MetadataTemplateInstance[];
|
|
12
11
|
taxonomyNodeFetcher: TaxonomyNodeFetcher;
|
|
@@ -104,6 +104,7 @@ export type MetadataTemplateInstance = {
|
|
|
104
104
|
scope: string;
|
|
105
105
|
templateKey: string;
|
|
106
106
|
type: string;
|
|
107
|
+
isExternallyOwned?: boolean;
|
|
107
108
|
};
|
|
108
109
|
export type TemplateSuggestion = Record<MetadataTemplateField['key'], MetadataTemplateField['aiSuggestion']>;
|
|
109
110
|
export type AutofillSuggestions = Record<MetadataTemplateInstance['templateKey'], TemplateSuggestion>;
|