@box/metadata-editor 1.58.3 → 1.59.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/chunks/metadata-instance-form-card-wrapper.js +41 -40
- package/dist/chunks/shared-field-styles.module.js +8 -0
- package/dist/chunks/utils2.js +33 -33
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +128 -96
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +110 -106
- package/dist/esm/lib/components/metadata-instance-list/metadata-instance-list.js +19 -15
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +39 -35
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +27 -20
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +71 -55
- package/dist/esm/lib/utils/check-if-has-bounding-boxes.js +4 -0
- package/dist/esm/lib/utils/is-interactive-form-element.js +4 -0
- package/dist/i18n/en-x-pseudo.js +151 -151
- package/dist/i18n/en-x-pseudo.properties +151 -151
- package/dist/styles/metadata-instance-content.css +1 -1
- package/dist/styles/metadata-instance-form-card-wrapper.css +1 -1
- package/dist/styles/shared-field-styles.css +1 -0
- package/dist/styles/utils.css +1 -1
- package/dist/types/lib/components/metadata-editor-fields/types.d.ts +2 -0
- package/dist/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +2 -0
- 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 +3 -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 +3 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.d.ts +1 -1
- package/dist/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/types.d.ts +4 -1
- package/dist/types/lib/components/metadata-instance-list/types.d.ts +3 -1
- package/dist/types/lib/utils/check-if-has-bounding-boxes.d.ts +2 -0
- package/dist/types/lib/utils/is-interactive-form-element.d.ts +1 -0
- package/package.json +9 -9
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { useBlueprintModernization as
|
|
1
|
+
import { useBlueprintModernization as y, Card as A } from "@box/blueprint-web";
|
|
2
2
|
import M from "clsx";
|
|
3
|
-
import { TEMPLATE_CUSTOM_PROPERTIES as
|
|
4
|
-
import { MetadataInstanceFormFooter as
|
|
5
|
-
import { MetadataInstanceFormHeader as
|
|
6
|
-
import { jsx as a, jsxs as
|
|
7
|
-
import '../styles/metadata-instance-form-card-wrapper.css';const
|
|
8
|
-
metadataInstanceForm:
|
|
9
|
-
wrapperGradient:
|
|
10
|
-
suggestionsFetching:
|
|
11
|
-
metadataInstanceFormContent:
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import { TEMPLATE_CUSTOM_PROPERTIES as R } from "../esm/lib/constants.js";
|
|
4
|
+
import { MetadataInstanceFormFooter as b } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
|
|
5
|
+
import { MetadataInstanceFormHeader as z } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
|
|
6
|
+
import { jsx as a, jsxs as G } from "react/jsx-runtime";
|
|
7
|
+
import '../styles/metadata-instance-form-card-wrapper.css';const O = "_metadataInstanceForm_ztv76_1", T = "_wrapperGradient_ztv76_7", x = "_suggestionsFetching_ztv76_17", D = "_metadataInstanceFormContent_ztv76_23", L = "_metadataInstanceFormContentReducedGap_ztv76_30", N = "_showOverlay_ztv76_34", n = {
|
|
8
|
+
metadataInstanceForm: O,
|
|
9
|
+
wrapperGradient: T,
|
|
10
|
+
suggestionsFetching: x,
|
|
11
|
+
metadataInstanceFormContent: D,
|
|
12
|
+
metadataInstanceFormContentReducedGap: L,
|
|
13
|
+
showOverlay: N
|
|
14
|
+
}, W = (s) => {
|
|
14
15
|
const {
|
|
15
16
|
areAiSuggestionsAvailable: o,
|
|
16
|
-
children:
|
|
17
|
-
className:
|
|
18
|
-
formRef:
|
|
19
|
-
isAdvancedExtractAgentEnabled:
|
|
20
|
-
isAiSuggestionsFeatureEnabled:
|
|
21
|
-
isBetaLanguageEnabled:
|
|
17
|
+
children: r,
|
|
18
|
+
className: i,
|
|
19
|
+
formRef: d,
|
|
20
|
+
isAdvancedExtractAgentEnabled: c = !1,
|
|
21
|
+
isAiSuggestionsFeatureEnabled: l,
|
|
22
|
+
isBetaLanguageEnabled: m,
|
|
22
23
|
isConfidenceScoreReviewEnabled: g = !1,
|
|
23
24
|
isLargeFile: p = !1,
|
|
24
25
|
isDeleteButtonDisabled: u,
|
|
@@ -28,43 +29,43 @@ import '../styles/metadata-instance-form-card-wrapper.css';const x = "_metadataI
|
|
|
28
29
|
isFetchingSuggestions: e,
|
|
29
30
|
isFormDirty: h = !1,
|
|
30
31
|
selectedTemplateInstance: t,
|
|
31
|
-
getAiSuggestions:
|
|
32
|
-
handleCancel:
|
|
33
|
-
handleDelete:
|
|
34
|
-
} =
|
|
35
|
-
enableModernizedComponents:
|
|
36
|
-
} =
|
|
32
|
+
getAiSuggestions: v,
|
|
33
|
+
handleCancel: C,
|
|
34
|
+
handleDelete: I
|
|
35
|
+
} = s, {
|
|
36
|
+
enableModernizedComponents: w
|
|
37
|
+
} = y(), E = t?.templateKey === R, S = !!f[t?.templateKey];
|
|
37
38
|
return /* @__PURE__ */ a("div", {
|
|
38
|
-
className: e &&
|
|
39
|
-
"data-modern":
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
ref:
|
|
42
|
-
className: M(
|
|
43
|
-
[
|
|
39
|
+
className: e && n.wrapperGradient,
|
|
40
|
+
"data-modern": w,
|
|
41
|
+
children: /* @__PURE__ */ G(A, {
|
|
42
|
+
ref: d,
|
|
43
|
+
className: M(i, {
|
|
44
|
+
[n.suggestionsFetching]: e
|
|
44
45
|
}),
|
|
45
|
-
children: [/* @__PURE__ */ a(
|
|
46
|
+
children: [/* @__PURE__ */ a(z, {
|
|
46
47
|
areAiSuggestionsAvailable: o,
|
|
47
48
|
hasSuggestions: S,
|
|
48
|
-
isAdvancedExtractAgentEnabled:
|
|
49
|
-
isAiSuggestionsFeatureEnabled:
|
|
50
|
-
isBetaLanguageEnabled:
|
|
49
|
+
isAdvancedExtractAgentEnabled: c,
|
|
50
|
+
isAiSuggestionsFeatureEnabled: l && !E,
|
|
51
|
+
isBetaLanguageEnabled: m,
|
|
51
52
|
isConfidenceScoreReviewEnabled: g,
|
|
52
53
|
isLargeFile: p,
|
|
53
54
|
isLoading: e,
|
|
54
|
-
onAutofill:
|
|
55
|
+
onAutofill: v,
|
|
55
56
|
onToggleReviewFilter: F,
|
|
56
57
|
shouldShowOnlyReviewFields: _,
|
|
57
58
|
templateName: t?.displayName
|
|
58
|
-
}), t &&
|
|
59
|
+
}), t && r, /* @__PURE__ */ a(b, {
|
|
59
60
|
isDeleteButtonDisabled: u,
|
|
60
61
|
isLoading: e,
|
|
61
|
-
onCancel: () =>
|
|
62
|
-
onDelete:
|
|
62
|
+
onCancel: () => C(h),
|
|
63
|
+
onDelete: I
|
|
63
64
|
})]
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
-
s
|
|
69
|
+
W as M,
|
|
70
|
+
n as s
|
|
70
71
|
};
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import d from "clsx";
|
|
2
2
|
import { convertISOStringtoRFC3339String as b } from "../esm/lib/utils/convertDate.js";
|
|
3
3
|
import m from "../esm/lib/components/interactive-text/interactive-text.js";
|
|
4
|
-
import { jsxs as
|
|
5
|
-
import { isConfidenceScoreNeedingReview as
|
|
6
|
-
import { LowConfidenceBadge as
|
|
7
|
-
import { AiLogoBadge as
|
|
8
|
-
import '../styles/utils.css';const
|
|
9
|
-
noAttributesText:
|
|
10
|
-
fieldWrapper:
|
|
11
|
-
hasSuggestion:
|
|
12
|
-
hasConfidenceReview:
|
|
13
|
-
dateField:
|
|
14
|
-
aiApproved:
|
|
15
|
-
labelWrapper:
|
|
16
|
-
labelText:
|
|
17
|
-
labelTruncated:
|
|
18
|
-
labelIcon:
|
|
19
|
-
},
|
|
4
|
+
import { jsxs as v, jsx as a } from "react/jsx-runtime";
|
|
5
|
+
import { isConfidenceScoreNeedingReview as g } from "../esm/lib/utils/confidence-score/is-confidence-score-needing-review.js";
|
|
6
|
+
import { LowConfidenceBadge as T } from "../esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js";
|
|
7
|
+
import { AiLogoBadge as f } from "../esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js";
|
|
8
|
+
import '../styles/utils.css';const x = "_noAttributesText_1oruv_2", h = "_fieldWrapper_1oruv_6", C = "_hasSuggestion_1oruv_11", N = "_hasConfidenceReview_1oruv_16", w = "_dateField_1oruv_44", A = "_aiApproved_1oruv_49", W = "_labelWrapper_1oruv_96", I = "_labelText_1oruv_102", F = "_labelTruncated_1oruv_105", R = "_labelIcon_1oruv_112", l = {
|
|
9
|
+
noAttributesText: x,
|
|
10
|
+
fieldWrapper: h,
|
|
11
|
+
hasSuggestion: C,
|
|
12
|
+
hasConfidenceReview: N,
|
|
13
|
+
dateField: w,
|
|
14
|
+
aiApproved: A,
|
|
15
|
+
labelWrapper: W,
|
|
16
|
+
labelText: I,
|
|
17
|
+
labelTruncated: F,
|
|
18
|
+
labelIcon: R
|
|
19
|
+
}, z = (r, t, o = !1, i = "label", e) => (c) => {
|
|
20
20
|
const {
|
|
21
21
|
className: u,
|
|
22
|
-
...
|
|
23
|
-
} = c,
|
|
22
|
+
...s
|
|
23
|
+
} = c, n = d(u || l.labelText, l.labelTruncated), _ = !!e && g(e), p = () => e && _ ? /* @__PURE__ */ a(T, {
|
|
24
24
|
confidenceScore: e
|
|
25
|
-
}) :
|
|
25
|
+
}) : o || e ? /* @__PURE__ */ a(f, {
|
|
26
26
|
className: l.labelIcon,
|
|
27
27
|
confidenceScore: e
|
|
28
28
|
}) : null;
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ v("div", {
|
|
30
30
|
className: l.labelWrapper,
|
|
31
|
-
children: [t ? /* @__PURE__ */
|
|
31
|
+
children: [t ? /* @__PURE__ */ a(m, {
|
|
32
32
|
as: i,
|
|
33
|
-
className:
|
|
33
|
+
className: n,
|
|
34
34
|
tooltipText: t,
|
|
35
|
-
...
|
|
36
|
-
children:
|
|
37
|
-
}) : /* @__PURE__ */
|
|
38
|
-
className:
|
|
39
|
-
...
|
|
40
|
-
children:
|
|
35
|
+
...s,
|
|
36
|
+
children: r
|
|
37
|
+
}) : /* @__PURE__ */ a("label", {
|
|
38
|
+
className: n,
|
|
39
|
+
...s,
|
|
40
|
+
children: r
|
|
41
41
|
}), p()]
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, P = (r) => {
|
|
44
44
|
try {
|
|
45
|
-
const t = b(
|
|
46
|
-
return isNaN(
|
|
45
|
+
const t = b(r), o = new Date(t);
|
|
46
|
+
return isNaN(o.getTime()) ? null : t;
|
|
47
47
|
} catch {
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
z as g,
|
|
53
53
|
l as s,
|
|
54
|
-
|
|
54
|
+
P as t
|
|
55
55
|
};
|
|
@@ -1,109 +1,141 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useFormikContext as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { A as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { s as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import v from "clsx";
|
|
2
|
+
import { useFormikContext as R } from "formik";
|
|
3
|
+
import M from "lodash/isEqual";
|
|
4
|
+
import ee from "lodash/isUndefined";
|
|
5
|
+
import { forwardRef as oe, useCallback as a, useEffect as K, useMemo as ie } from "react";
|
|
6
|
+
import { A as p } from "../../../../chunks/types.js";
|
|
7
|
+
import { checkIfHasBoundingBoxes as te } from "../../utils/check-if-has-bounding-boxes.js";
|
|
8
|
+
import { isInteractiveFormElement as T } from "../../utils/is-interactive-form-element.js";
|
|
9
|
+
import { s as d } from "../../../../chunks/shared-field-styles.module.js";
|
|
10
|
+
import { UpdateModeFieldWrapper as ne } from "./components/update-mode-field-wrapper/update-mode-field-wrapper.js";
|
|
11
|
+
import { editorFieldTypes as se } from "./editor-field-types.js";
|
|
12
|
+
import { s as f } from "../../../../chunks/utils2.js";
|
|
13
|
+
import { jsx as l, jsxs as re } from "react/jsx-runtime";
|
|
14
|
+
import { isConfidenceScoreNeedingReview as q } from "../../utils/confidence-score/is-confidence-score-needing-review.js";
|
|
15
|
+
import { AiSuggestionField as ce } from "./components/ai-suggestion-field/ai-suggestion-field.js";
|
|
16
|
+
import { LowConfidenceSuggestionField as ae } from "./components/low-confidence-suggestion-field/low-confidence-suggestion-field.js";
|
|
17
|
+
const Ne = /* @__PURE__ */ oe(({
|
|
18
|
+
disableForm: x,
|
|
19
|
+
portalElement: N,
|
|
17
20
|
field: e,
|
|
18
|
-
index:
|
|
19
|
-
taxonomyOptionsFetcher:
|
|
20
|
-
isExternallyOwned:
|
|
21
|
-
isMultilevelTaxonomyFieldEnabled:
|
|
22
|
-
isConfidenceScoreReviewEnabled:
|
|
23
|
-
|
|
21
|
+
index: w,
|
|
22
|
+
taxonomyOptionsFetcher: I,
|
|
23
|
+
isExternallyOwned: V,
|
|
24
|
+
isMultilevelTaxonomyFieldEnabled: P,
|
|
25
|
+
isConfidenceScoreReviewEnabled: s = !1,
|
|
26
|
+
onSelectMetadataField: n,
|
|
27
|
+
selectedMetadataFieldId: H
|
|
28
|
+
}, B) => {
|
|
24
29
|
const {
|
|
25
30
|
setFieldValue: t
|
|
26
|
-
} =
|
|
27
|
-
aiSuggestion:
|
|
28
|
-
aiSuggestionConfidenceScore:
|
|
29
|
-
type:
|
|
30
|
-
value:
|
|
31
|
-
} = e,
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
}),
|
|
37
|
-
t(`${o}.aiSuggestionState`,
|
|
38
|
-
}, [o, t]),
|
|
39
|
-
t(`${o}.value`,
|
|
40
|
-
}, [o, t,
|
|
41
|
-
p
|
|
42
|
-
}, [
|
|
43
|
-
t(`${o}.confidenceScore.isAccepted`, !0);
|
|
44
|
-
}, [o, t]),
|
|
45
|
-
const
|
|
46
|
-
t(`${o}.value`,
|
|
47
|
-
}, [o, t,
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
31
|
+
} = R(), h = e.aiSuggestionState || p.Initial, c = h === p.Pending, W = h === p.Applied, F = h === p.Initial, y = se[e.type], {
|
|
32
|
+
aiSuggestion: r,
|
|
33
|
+
aiSuggestionConfidenceScore: k,
|
|
34
|
+
type: m,
|
|
35
|
+
value: u
|
|
36
|
+
} = e, z = y && !e.hidden, G = !ee(e.updateMode), o = `metadata.fields[${w}]`, J = e.type === "taxonomy" && e.optionsRules?.multiSelect, C = s && !!e.confidenceScore, L = C && q(e.confidenceScore), Q = C && !c && !q(e.confidenceScore), D = H === e.id, X = te(e.targetLocation), S = C && X && !!n, Y = v({
|
|
37
|
+
[f.aiApproved]: W || Q,
|
|
38
|
+
[f.hasSuggestion]: c,
|
|
39
|
+
[f.hasConfidenceReview]: !c && L,
|
|
40
|
+
[f.dateField]: m === "date"
|
|
41
|
+
}), g = a((i) => {
|
|
42
|
+
t(`${o}.aiSuggestionState`, i);
|
|
43
|
+
}, [o, t]), A = a((i) => {
|
|
44
|
+
t(`${o}.value`, i), g(p.Applied), s && (t(`${o}.confidenceScore`, k), t(`${o}.aiSuggestionConfidenceScore`, void 0));
|
|
45
|
+
}, [o, t, g, k, s]), $ = a(() => {
|
|
46
|
+
g(p.Initial), t(`${o}.aiSuggestion`, void 0), s && t(`${o}.aiSuggestionConfidenceScore`, void 0);
|
|
47
|
+
}, [g, t, o, s]), Z = a(() => {
|
|
48
|
+
t(`${o}.confidenceScore.isAccepted`, !0), n?.(null);
|
|
49
|
+
}, [o, t, n]), _ = a(() => {
|
|
50
|
+
const i = m === "multiSelect" || m === "taxonomy" ? [] : "";
|
|
51
|
+
t(`${o}.value`, i), t(`${o}.confidenceScore`, void 0), n?.(null);
|
|
52
|
+
}, [o, t, m, n]), U = a(() => {
|
|
53
|
+
$(), s && e.confidenceScore && (t(`${o}.confidenceScore`, void 0), n?.(null));
|
|
54
|
+
}, [$, s, e.confidenceScore, t, o, n]), b = a((i) => {
|
|
55
|
+
n && (T(i.target) || n(e));
|
|
56
|
+
}, [e, n]), O = a((i) => {
|
|
57
|
+
if (i.key === "Enter") {
|
|
58
|
+
if (!n || T(i.target))
|
|
59
|
+
return;
|
|
60
|
+
i.preventDefault(), i.stopPropagation(), n(e);
|
|
61
|
+
}
|
|
62
|
+
}, [e, n]);
|
|
63
|
+
K(() => {
|
|
64
|
+
c && (!u || Array.isArray(u) && u.length === 0) && A(r);
|
|
65
|
+
}, [r, c, A]), K(() => {
|
|
66
|
+
F && r && g(p.Pending);
|
|
67
|
+
}, [F, r, g]);
|
|
68
|
+
const E = ie(() => r ? M(u, r) : !1, [r, u]);
|
|
69
|
+
if (!z)
|
|
70
|
+
return null;
|
|
71
|
+
const j = {
|
|
72
|
+
"data-metadata-field": !0,
|
|
73
|
+
"data-testid": "metadata-field",
|
|
74
|
+
onClick: b,
|
|
75
|
+
onKeyDown: O,
|
|
76
|
+
role: "button",
|
|
77
|
+
tabIndex: 0
|
|
78
|
+
};
|
|
79
|
+
if (G) {
|
|
80
|
+
const i = /* @__PURE__ */ l(ne, {
|
|
64
81
|
fieldNamePrefix: o,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
fieldType: e.type,
|
|
83
|
+
isTaxonomyMultiSelect: J,
|
|
84
|
+
children: /* @__PURE__ */ l(y, {
|
|
85
|
+
ref: B,
|
|
86
|
+
description: e.description,
|
|
87
|
+
disableForm: x,
|
|
88
|
+
fieldNamePrefix: o,
|
|
89
|
+
isAiSuggestionApplied: !1,
|
|
90
|
+
isExternallyOwned: V,
|
|
91
|
+
isMultilevelTaxonomyFieldEnabled: P,
|
|
92
|
+
label: e.displayName,
|
|
93
|
+
levels: e.levels,
|
|
94
|
+
onValueEdited: U,
|
|
95
|
+
portalElement: N,
|
|
96
|
+
taxonomyOptionsFetcher: I
|
|
97
|
+
})
|
|
98
|
+
}, e.key);
|
|
99
|
+
return S ? /* @__PURE__ */ l("div", {
|
|
100
|
+
className: v(d.spacious, d.clickableField, D && d.selectedField),
|
|
101
|
+
...j,
|
|
102
|
+
children: i
|
|
103
|
+
}) : i;
|
|
104
|
+
}
|
|
105
|
+
return /* @__PURE__ */ re("div", {
|
|
106
|
+
className: v(f.fieldWrapper, s && d.spacious, S && d.clickableField, S && D && d.selectedField),
|
|
107
|
+
...S && j,
|
|
108
|
+
children: [/* @__PURE__ */ l(y, {
|
|
109
|
+
ref: B,
|
|
110
|
+
className: Y,
|
|
79
111
|
description: e.description,
|
|
80
|
-
disableForm:
|
|
112
|
+
disableForm: x,
|
|
81
113
|
fieldNamePrefix: o,
|
|
82
|
-
isAiSuggestionApplied:
|
|
83
|
-
isExternallyOwned:
|
|
84
|
-
confidenceScore:
|
|
85
|
-
isMultilevelTaxonomyFieldEnabled:
|
|
114
|
+
isAiSuggestionApplied: W,
|
|
115
|
+
isExternallyOwned: V,
|
|
116
|
+
confidenceScore: s && !c ? e.confidenceScore : void 0,
|
|
117
|
+
isMultilevelTaxonomyFieldEnabled: P,
|
|
86
118
|
label: e.displayName,
|
|
87
|
-
onValueEdited:
|
|
88
|
-
portalElement:
|
|
89
|
-
taxonomyOptionsFetcher:
|
|
90
|
-
}),
|
|
91
|
-
aiSuggestion:
|
|
92
|
-
confidenceLevel:
|
|
93
|
-
isSameValue:
|
|
119
|
+
onValueEdited: U,
|
|
120
|
+
portalElement: N,
|
|
121
|
+
taxonomyOptionsFetcher: I
|
|
122
|
+
}), c && /* @__PURE__ */ l(ce, {
|
|
123
|
+
aiSuggestion: r,
|
|
124
|
+
confidenceLevel: s ? k?.level : void 0,
|
|
125
|
+
isSameValue: E,
|
|
94
126
|
onAiSuggestionAppend: () => {
|
|
95
|
-
const
|
|
96
|
-
|
|
127
|
+
const i = [...new Set([u, r].flat().filter(Boolean))];
|
|
128
|
+
A(i);
|
|
97
129
|
},
|
|
98
|
-
onAiSuggestionIgnore:
|
|
99
|
-
onAiSuggestionReplace: () =>
|
|
100
|
-
type:
|
|
101
|
-
}), !
|
|
102
|
-
onAccept:
|
|
103
|
-
onClear:
|
|
130
|
+
onAiSuggestionIgnore: $,
|
|
131
|
+
onAiSuggestionReplace: () => A(r),
|
|
132
|
+
type: m
|
|
133
|
+
}), !c && L && /* @__PURE__ */ l(ae, {
|
|
134
|
+
onAccept: Z,
|
|
135
|
+
onClear: _
|
|
104
136
|
})]
|
|
105
|
-
}, e.key)
|
|
137
|
+
}, e.key);
|
|
106
138
|
});
|
|
107
139
|
export {
|
|
108
|
-
|
|
140
|
+
Ne as MetadataEditorFieldWrapper
|
|
109
141
|
};
|