@box/metadata-editor 1.64.5 → 1.64.6
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/ai-suggestion-field.js +83 -0
- package/dist/chunks/autofill-overlay.js +63 -0
- package/dist/chunks/combobox-with-api-pagination.js +162 -0
- package/dist/chunks/custom-instance-new-field.js +60 -0
- package/dist/chunks/custom-instance.js +74 -0
- package/dist/chunks/delete-confirmation-modal.js +76 -0
- package/dist/chunks/field-action-bar.module.js +6 -8
- package/dist/chunks/filter-dropdown-menu.module.js +14 -13
- package/dist/chunks/filter-instances-dropdown.js +84 -0
- package/dist/chunks/interactive-header-text.js +19 -0
- package/dist/chunks/interactive-text.js +17 -0
- package/dist/chunks/metadata-editor.js +9 -0
- package/dist/chunks/metadata-instance-content.js +29 -0
- package/dist/chunks/metadata-instance-entry.js +82 -0
- package/dist/chunks/metadata-instance-footer.js +25 -0
- package/dist/chunks/metadata-instance-form-autofill-button.js +113 -0
- package/dist/chunks/metadata-instance-form-card-wrapper.js +47 -70
- package/dist/chunks/metadata-instance-form-footer.js +43 -0
- package/dist/chunks/metadata-instance-form-header.js +45 -0
- package/dist/chunks/metadata-instance-header.js +52 -0
- package/dist/chunks/metadata-instance-list.js +19 -0
- package/dist/chunks/metadata-instance.js +59 -0
- package/dist/chunks/shared-field-styles.module.js +5 -7
- package/dist/chunks/taxonomy-ancestor-status-pill.js +88 -109
- package/dist/chunks/types.js +8 -12
- package/dist/chunks/update-mode-field-wrapper.js +80 -0
- package/dist/chunks/utils.js +57 -54
- package/dist/chunks/utils2.js +50 -70
- package/dist/esm/index.js +27 -52
- package/dist/esm/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js +31 -43
- package/dist/esm/lib/components/add-metadata-template-dropdown/index.js +1 -3
- package/dist/esm/lib/components/add-metadata-template-dropdown/messages.js +15 -17
- package/dist/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +2 -205
- package/dist/esm/lib/components/combobox-with-api-pagination/index.js +2 -4
- package/dist/esm/lib/components/combobox-with-api-pagination/messages.js +31 -33
- package/dist/esm/lib/components/combobox-with-api-pagination/request.js +4 -6
- package/dist/esm/lib/components/combobox-with-api-pagination/use-async-list.js +113 -128
- package/dist/esm/lib/components/combobox-with-api-pagination/utils/is-abort-error.js +8 -10
- package/dist/esm/lib/components/combobox-with-api-pagination/utils/use-controllable-state.js +32 -34
- package/dist/esm/lib/components/combobox-with-api-pagination/utils/use-intersection-observer.js +72 -82
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-content.js +13 -18
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-empty-state.js +16 -19
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-item.js +12 -17
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-list.js +15 -20
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-root.js +13 -18
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.js +36 -44
- package/dist/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-trigger.js +7 -12
- package/dist/esm/lib/components/filter-dropdown-menu/index.js +16 -18
- package/dist/esm/lib/components/filter-dropdown-menu/messages.js +10 -12
- package/dist/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +2 -93
- package/dist/esm/lib/components/filter-instances-dropdown/index.js +2 -4
- package/dist/esm/lib/components/filter-instances-dropdown/messages.js +18 -20
- package/dist/esm/lib/components/interactive-header-text/interactive-header-text.js +2 -28
- package/dist/esm/lib/components/interactive-text/interactive-text.js +2 -30
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js +20 -32
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-logo-badge/index.js +2 -4
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +2 -110
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/index.js +2 -4
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +50 -52
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/utils.js +12 -17
- package/dist/esm/lib/components/metadata-editor-fields/components/constants.js +2 -6
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-badge/index.js +2 -4
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js +20 -24
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-suggestion-field/index.js +2 -4
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-suggestion-field/low-confidence-suggestion-field.js +66 -75
- package/dist/esm/lib/components/metadata-editor-fields/components/low-confidence-suggestion-field/messages.js +30 -32
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +43 -60
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +47 -71
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-float-field/metadata-float-field.js +32 -54
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-float-field/use-float-validation.js +8 -14
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +40 -62
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +28 -44
- package/dist/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +66 -95
- package/dist/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js +30 -32
- package/dist/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/mulitple-values-utils.js +7 -11
- package/dist/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +2 -92
- package/dist/esm/lib/components/metadata-editor-fields/editor-field-types.js +30 -34
- package/dist/esm/lib/components/metadata-editor-fields/hooks/use-memoized-field-label.js +11 -7
- package/dist/esm/lib/components/metadata-editor-fields/hooks/use-review-field-filter.js +35 -40
- package/dist/esm/lib/components/metadata-editor-fields/hooks/use-view-reference-tooltip.js +39 -34
- package/dist/esm/lib/components/metadata-editor-fields/messages.js +5 -9
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +186 -176
- package/dist/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +30 -42
- package/dist/esm/lib/components/metadata-editor-fields/utils.js +2 -13
- package/dist/esm/lib/components/metadata-empty-state/messages.js +42 -44
- package/dist/esm/lib/components/metadata-empty-state/metadata-empty-state.js +46 -62
- package/dist/esm/lib/components/metadata-instance-editor/index.js +7 -14
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +2 -64
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +39 -41
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/useErrorMessaging.js +21 -26
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js +2 -86
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/messages.js +15 -17
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +2 -62
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/messages.js +42 -44
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +2 -91
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +50 -52
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/constants.js +2 -7
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/messages.js +0 -1
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form-card-wrapper.js +2 -10
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +126 -155
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/utils.js +2 -9
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/messages.js +23 -25
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +2 -128
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/messages.js +19 -21
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +2 -53
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +6 -10
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +2 -58
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +18 -20
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +30 -37
- package/dist/esm/lib/components/metadata-instance-list/index.js +4 -8
- package/dist/esm/lib/components/metadata-instance-list/metadata-instance-list.js +2 -35
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +2 -79
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +2 -40
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/messages.js +5 -9
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.js +14 -24
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +2 -112
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +22 -24
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +2 -11
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.js +24 -36
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js +10 -12
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +2 -31
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/messages.js +15 -17
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +2 -63
- package/dist/esm/lib/components/metadata-instance-review-notice/messages.js +30 -32
- package/dist/esm/lib/components/metadata-instance-review-notice/metadata-instance-review-notice.js +22 -32
- package/dist/esm/lib/components/unsaved-changes-modal/index.js +2 -4
- package/dist/esm/lib/components/unsaved-changes-modal/messages.js +23 -25
- package/dist/esm/lib/components/unsaved-changes-modal/unsaved-changes-modal.js +41 -57
- package/dist/esm/lib/components/unsaved-changes-modal/utils.js +3 -5
- package/dist/esm/lib/constants.js +14 -18
- package/dist/esm/lib/defaults.js +14 -17
- package/dist/esm/lib/mappers.js +22 -28
- package/dist/esm/lib/messages.js +123 -126
- package/dist/esm/lib/metadata-editor.js +2 -14
- package/dist/esm/lib/utils/api-wrapper.js +12 -18
- package/dist/esm/lib/utils/autofill-context.js +65 -67
- package/dist/esm/lib/utils/check-if-has-bounding-boxes.js +2 -4
- package/dist/esm/lib/utils/confidence-score/format-confidence-score-percent.js +3 -5
- package/dist/esm/lib/utils/confidence-score/get-confidence-score-tooltip.js +12 -19
- package/dist/esm/lib/utils/confidence-score/get-fields-needing-review.js +5 -7
- package/dist/esm/lib/utils/confidence-score/index.js +5 -10
- package/dist/esm/lib/utils/confidence-score/is-confidence-score-needing-review.js +4 -6
- package/dist/esm/lib/utils/confidence-score/messages.js +14 -16
- package/dist/esm/lib/utils/convertDate.js +20 -31
- package/dist/esm/lib/utils/is-interactive-form-element.js +2 -4
- package/dist/esm/lib/utils/utils.js +4 -9
- package/dist/styles/autofill-overlay.css +1 -1
- package/dist/styles/combobox-with-api-pagination.css +1 -1
- package/dist/styles/custom-instance-new-field.css +1 -1
- package/dist/styles/custom-instance.css +1 -1
- package/dist/styles/delete-confirmation-modal.css +1 -1
- package/dist/styles/field-action-bar.css +1 -1
- package/dist/styles/filter-dropdown-menu.css +1 -1
- package/dist/styles/filter-instances-dropdown.css +1 -1
- package/dist/styles/interactive-header-text.css +1 -1
- package/dist/styles/interactive-text.css +1 -1
- package/dist/styles/metadata-editor.css +1 -0
- package/dist/styles/metadata-instance-content.css +1 -1
- package/dist/styles/metadata-instance-entry.css +1 -1
- package/dist/styles/metadata-instance-footer.css +1 -1
- package/dist/styles/metadata-instance-form-autofill-button.css +1 -1
- package/dist/styles/metadata-instance-form-card-wrapper.css +1 -1
- package/dist/styles/metadata-instance-form-footer.css +1 -1
- package/dist/styles/metadata-instance-form-header.css +1 -1
- package/dist/styles/metadata-instance-header.css +1 -1
- package/dist/styles/metadata-instance-list.css +1 -1
- package/dist/styles/shared-field-styles.css +1 -1
- package/dist/styles/taxonomy-ancestor-status-pill.css +1 -1
- package/dist/styles/update-mode-field-wrapper.css +1 -1
- package/dist/styles/utils.css +1 -1
- package/dist/types/lib/test-utils/index.d.ts +1 -0
- package/dist/types/lib/test-utils/pending-promise.d.ts +19 -0
- package/package.json +9 -9
|
@@ -1,112 +1,91 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import e from "../esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js";
|
|
2
|
+
import { FilterChip as t, InlineNotice as n, LoadingIndicator as r, Popover as i, TextButton as a } from "@box/blueprint-web";
|
|
3
|
+
import { Loader as o } from "@box/blueprint-web-assets/icons/Fill";
|
|
4
4
|
import { useState as s } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import '../styles/taxonomy-ancestor-status-pill.css';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(r.key === "ArrowLeft" || r.key === "ArrowRight") && r.stopPropagation();
|
|
5
|
+
import { FormattedMessage as c, useIntl as l } from "react-intl";
|
|
6
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import f from "lodash/orderBy";
|
|
8
|
+
import '../styles/taxonomy-ancestor-status-pill.css';var p = {
|
|
9
|
+
popoverContentContainer: "_popoverContentContainer_f0vo4_2",
|
|
10
|
+
popoverMainContent: "_popoverMainContent_f0vo4_7",
|
|
11
|
+
loadingIndicatorWrapper: "_loadingIndicatorWrapper_f0vo4_11",
|
|
12
|
+
errorMessageWrapper: "_errorMessageWrapper_f0vo4_18",
|
|
13
|
+
errorMessageWrapperText: "_errorMessageWrapperText_f0vo4_23",
|
|
14
|
+
container: "_container_f0vo4_31",
|
|
15
|
+
taxonomyAncestorTable: "_taxonomyAncestorTable_f0vo4_37",
|
|
16
|
+
taxonomyValueGroup: "_taxonomyValueGroup_f0vo4_80",
|
|
17
|
+
taxonomyValueButton: "_taxonomyValueButton_f0vo4_85",
|
|
18
|
+
taxonomyValueLabel: "_taxonomyValueLabel_f0vo4_95"
|
|
19
|
+
}, m = { right: 24 }, h = (e) => {
|
|
20
|
+
e.stopPropagation();
|
|
21
|
+
}, g = (e) => {
|
|
22
|
+
(e.key === "ArrowLeft" || e.key === "ArrowRight") && e.stopPropagation();
|
|
24
23
|
};
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
className: a.taxonomyAncestorTable,
|
|
92
|
-
children: /* @__PURE__ */ o("tbody", {
|
|
93
|
-
children: L.map((e) => /* @__PURE__ */ l("tr", {
|
|
94
|
-
children: [/* @__PURE__ */ o("th", {
|
|
95
|
-
scope: "row",
|
|
96
|
-
children: e.levelName
|
|
97
|
-
}), /* @__PURE__ */ o("td", {
|
|
98
|
-
children: e.levelValue || /* @__PURE__ */ o(_, {
|
|
99
|
-
...n.emptyAncestorLevelValue
|
|
100
|
-
})
|
|
101
|
-
})]
|
|
102
|
-
}, e.id || e.level))
|
|
103
|
-
})
|
|
104
|
-
})]
|
|
105
|
-
})
|
|
106
|
-
})]
|
|
107
|
-
});
|
|
24
|
+
function _({ taxonomyNodeFetcher: _, scope: v, taxonomyKey: y, value: b, displayValue: x }) {
|
|
25
|
+
let { formatMessage: S } = l(), [C, w] = s([]), [T, E] = s(!1), [D, O] = s(!1), [k, A] = s(!1), j = f(C, (e) => e.level), M = async () => {
|
|
26
|
+
E(!0), O(!1), A(!0);
|
|
27
|
+
try {
|
|
28
|
+
w(await _(v, y, b));
|
|
29
|
+
} catch {
|
|
30
|
+
O(!0);
|
|
31
|
+
} finally {
|
|
32
|
+
E(!1);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ d(i.Root, {
|
|
36
|
+
onOpenChange: A,
|
|
37
|
+
open: k,
|
|
38
|
+
children: [/* @__PURE__ */ u(i.Trigger, { children: /* @__PURE__ */ u(t.ChipButton, {
|
|
39
|
+
"aria-checked": void 0,
|
|
40
|
+
className: p.taxonomyValueButton,
|
|
41
|
+
disabled: !_,
|
|
42
|
+
onClick: M,
|
|
43
|
+
onKeyDown: g,
|
|
44
|
+
role: void 0,
|
|
45
|
+
value: x,
|
|
46
|
+
children: /* @__PURE__ */ u(t.Label, {
|
|
47
|
+
className: p.taxonomyValueLabel,
|
|
48
|
+
children: x
|
|
49
|
+
})
|
|
50
|
+
}) }), /* @__PURE__ */ u(i.ContentContainer, {
|
|
51
|
+
align: "start",
|
|
52
|
+
className: p.popoverContentContainer,
|
|
53
|
+
collisionPadding: m,
|
|
54
|
+
onEscapeKeyDown: h,
|
|
55
|
+
children: /* @__PURE__ */ d(i.MainContent, {
|
|
56
|
+
className: p.popoverMainContent,
|
|
57
|
+
children: [
|
|
58
|
+
D && /* @__PURE__ */ d("div", {
|
|
59
|
+
className: p.errorMessageWrapper,
|
|
60
|
+
children: [/* @__PURE__ */ u(n, {
|
|
61
|
+
variant: "error",
|
|
62
|
+
variantIconAriaLabel: S(e.loadingResultsErrorIconLabel),
|
|
63
|
+
children: /* @__PURE__ */ u(c, { ...e.loadingResultsErrorMessage })
|
|
64
|
+
}), /* @__PURE__ */ u(a, {
|
|
65
|
+
className: p.errorMessageWrapperText,
|
|
66
|
+
icon: o,
|
|
67
|
+
onClick: M,
|
|
68
|
+
"data-target-id": "TextButton-loadingResultsErrorAction",
|
|
69
|
+
children: S(e.loadingResultsErrorAction)
|
|
70
|
+
})]
|
|
71
|
+
}),
|
|
72
|
+
T && /* @__PURE__ */ u("div", {
|
|
73
|
+
className: p.loadingIndicatorWrapper,
|
|
74
|
+
children: /* @__PURE__ */ u(r, {
|
|
75
|
+
"aria-label": S(e.loadingAriaLabel),
|
|
76
|
+
size: "large"
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
!D && !T && /* @__PURE__ */ u("table", {
|
|
80
|
+
className: p.taxonomyAncestorTable,
|
|
81
|
+
children: /* @__PURE__ */ u("tbody", { children: j.map((t) => /* @__PURE__ */ d("tr", { children: [/* @__PURE__ */ u("th", {
|
|
82
|
+
scope: "row",
|
|
83
|
+
children: t.levelName
|
|
84
|
+
}), /* @__PURE__ */ u("td", { children: t.levelValue || /* @__PURE__ */ u(c, { ...e.emptyAncestorLevelValue }) })] }, t.id || t.level)) })
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
108
90
|
}
|
|
109
|
-
export {
|
|
110
|
-
X as T,
|
|
111
|
-
a as s
|
|
112
|
-
};
|
|
91
|
+
export { p as n, _ as t };
|
package/dist/chunks/types.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
n as A,
|
|
10
|
-
l as C,
|
|
11
|
-
r as U
|
|
12
|
-
};
|
|
1
|
+
var e = /* @__PURE__ */ function(e) {
|
|
2
|
+
return e.ClearAndReplace = "clearAndReplace", e.RemoveEntered = "removeEntered", e.ReplaceEntered = "replaceEntered", e.Append = "append", e;
|
|
3
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.Initial = "INITIAL", e.Pending = "PENDING", e.Applied = "APPLIED", e;
|
|
5
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.Low = "LOW", e.Medium = "MEDIUM", e.High = "HIGH", e;
|
|
7
|
+
}({});
|
|
8
|
+
export { n, e as r, t };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MULTI_VALUE_DEFAULT_OPTION as e } from "../esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/mulitple-values-utils.js";
|
|
2
|
+
import { r as t } from "./types.js";
|
|
3
|
+
import { messages as n } from "../esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js";
|
|
4
|
+
import { IconButton as r, Radio as i } from "@box/blueprint-web";
|
|
5
|
+
import { Settings as a, XMark as o } from "@box/blueprint-web-assets/icons/Fill";
|
|
6
|
+
import s from "react";
|
|
7
|
+
import { useIntl as c } from "react-intl";
|
|
8
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import d from "clsx";
|
|
10
|
+
import { Field as f, getIn as p, useFormikContext as m } from "formik";
|
|
11
|
+
import '../styles/update-mode-field-wrapper.css';var h = {
|
|
12
|
+
wrapperContianer: "_wrapperContianer_19nqy_1",
|
|
13
|
+
fieldContainer: "_fieldContainer_19nqy_6",
|
|
14
|
+
field: "_field_19nqy_6",
|
|
15
|
+
collapseButton: "_collapseButton_19nqy_14",
|
|
16
|
+
radioContainer: "_radioContainer_19nqy_20",
|
|
17
|
+
additionalFieldContainer: "_additionalFieldContainer_19nqy_23",
|
|
18
|
+
hidden: "_hidden_19nqy_27"
|
|
19
|
+
}, g = (e) => e === t.ReplaceEntered, _ = (e, t) => e === "string" || e === "multiSelect" || t, v = ({ children: v, fieldNamePrefix: y, fieldType: b, isTaxonomyMultiSelect: x }) => {
|
|
20
|
+
let { setFieldValue: S, values: C } = m(), w = c(), T = `${y}.updateMode.mode`, E = p(C, T), D = v && s.Children.only(v), O = p(C, `${y}.options`, []).filter((t) => t.id !== e.id).map(({ key: e }) => e), k = p(C, `${y}.updateMode.isOpened`);
|
|
21
|
+
return /* @__PURE__ */ u("div", {
|
|
22
|
+
className: h.wrapperContianer,
|
|
23
|
+
children: [/* @__PURE__ */ u("div", {
|
|
24
|
+
className: h.fieldContainer,
|
|
25
|
+
children: [/* @__PURE__ */ l("span", {
|
|
26
|
+
className: h.field,
|
|
27
|
+
children: v
|
|
28
|
+
}), /* @__PURE__ */ l(r, {
|
|
29
|
+
"aria-label": w.formatMessage(n.toggleUpdateModeSelectiorAriaLabel),
|
|
30
|
+
className: h.collapseButton,
|
|
31
|
+
"data-testid": `${D.props.label}-update-mode-toggle`,
|
|
32
|
+
icon: k ? o : a,
|
|
33
|
+
onClick: () => {
|
|
34
|
+
S(`${y}.updateMode.isOpened`, !k);
|
|
35
|
+
},
|
|
36
|
+
size: "small",
|
|
37
|
+
"data-target-id": "IconButton-toggleUpdateModeSelectiorAriaLabel"
|
|
38
|
+
})]
|
|
39
|
+
}), /* @__PURE__ */ u("div", {
|
|
40
|
+
className: d(h.radioContainer, { [h.hidden]: !k }),
|
|
41
|
+
children: [/* @__PURE__ */ l(f, {
|
|
42
|
+
name: `${y}.updateMode.mode`,
|
|
43
|
+
children: ({ field: e }) => /* @__PURE__ */ u(i.Group, {
|
|
44
|
+
"data-testid": `${D.props.label}-radio-group`,
|
|
45
|
+
loop: !0,
|
|
46
|
+
onValueChange: (e) => S(T, e),
|
|
47
|
+
orientation: "vertical",
|
|
48
|
+
value: e.value,
|
|
49
|
+
children: [
|
|
50
|
+
_(b, x) && /* @__PURE__ */ l(i.Item, {
|
|
51
|
+
label: w.formatMessage(n.append),
|
|
52
|
+
value: t.Append
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ l(i.Item, {
|
|
55
|
+
label: w.formatMessage(n.clearAndReplace),
|
|
56
|
+
value: t.ClearAndReplace
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ l(i.Item, {
|
|
59
|
+
label: w.formatMessage(n.removeEntered),
|
|
60
|
+
value: t.RemoveEntered
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ l(i.Item, {
|
|
63
|
+
label: w.formatMessage(n.replaceEntered),
|
|
64
|
+
value: t.ReplaceEntered
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
}), g(E) && D && /* @__PURE__ */ l("div", {
|
|
69
|
+
className: h.additionalFieldContainer,
|
|
70
|
+
children: /* @__PURE__ */ s.cloneElement(D, {
|
|
71
|
+
updateModePrefix: `${y}.updateMode`,
|
|
72
|
+
options: O,
|
|
73
|
+
label: w.formatMessage(n.with)
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
v.displayName = "UpdateModeFieldWrapper";
|
|
80
|
+
export { v as t };
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,55 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
import { isConfidenceScoreNeedingReview as e } from "../esm/lib/utils/confidence-score/is-confidence-score-needing-review.js";
|
|
2
|
+
import { convertISOStringtoRFC3339String as t } from "../esm/lib/utils/convertDate.js";
|
|
3
|
+
import { t as n } from "./interactive-text.js";
|
|
4
|
+
import { AiLogoBadge as r } from "../esm/lib/components/metadata-editor-fields/components/ai-logo-badge/ai-logo-badge.js";
|
|
5
|
+
import { LowConfidenceBadge as i } from "../esm/lib/components/metadata-editor-fields/components/low-confidence-badge/low-confidence-badge.js";
|
|
6
|
+
import { createElement as a, memo as o } from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import l from "clsx";
|
|
9
|
+
import '../styles/utils.css';var u = {
|
|
10
|
+
noAttributesText: "_noAttributesText_1lpn0_2",
|
|
11
|
+
fieldWrapper: "_fieldWrapper_1lpn0_6",
|
|
12
|
+
hasSuggestion: "_hasSuggestion_1lpn0_11",
|
|
13
|
+
hasConfidenceReview: "_hasConfidenceReview_1lpn0_16",
|
|
14
|
+
error: "_error_1lpn0_25",
|
|
15
|
+
dateField: "_dateField_1lpn0_44",
|
|
16
|
+
aiApproved: "_aiApproved_1lpn0_49",
|
|
17
|
+
comboboxContainer: "_comboboxContainer_1lpn0_49",
|
|
18
|
+
labelWrapper: "_labelWrapper_1lpn0_95",
|
|
19
|
+
labelText: "_labelText_1lpn0_101",
|
|
20
|
+
labelTruncated: "_labelTruncated_1lpn0_104",
|
|
21
|
+
labelIcon: "_labelIcon_1lpn0_111"
|
|
22
|
+
}, d = /* @__PURE__ */ o(function({ fieldName: t, fieldDescription: o, isAiSuggestionApplied: d, as: f, confidenceScore: p, labelProps: m }) {
|
|
23
|
+
let { className: h, ...g } = m, _ = l(h || u.labelText, u.labelTruncated), v = !!p && e(p), y = () => p && v ? /* @__PURE__ */ s(i, {}) : d || p ? /* @__PURE__ */ s(r, {
|
|
24
|
+
className: u.labelIcon,
|
|
25
|
+
confidenceScore: p
|
|
26
|
+
}) : null;
|
|
27
|
+
return /* @__PURE__ */ c("div", {
|
|
28
|
+
className: u.labelWrapper,
|
|
29
|
+
children: [o ? /* @__PURE__ */ s(n, {
|
|
30
|
+
as: f,
|
|
31
|
+
className: _,
|
|
32
|
+
tooltipText: o,
|
|
33
|
+
...g,
|
|
34
|
+
children: t
|
|
35
|
+
}) : /* @__PURE__ */ a(f, {
|
|
36
|
+
className: _,
|
|
37
|
+
...g
|
|
38
|
+
}, t), y()]
|
|
39
|
+
});
|
|
40
|
+
}, (e, t) => {
|
|
41
|
+
let n = e.labelProps, r = t.labelProps;
|
|
42
|
+
return e.fieldName === t.fieldName && e.fieldDescription === t.fieldDescription && e.isAiSuggestionApplied === t.isAiSuggestionApplied && e.confidenceScore === t.confidenceScore && e.as === t.as && n.className === r.className && n.htmlFor === r.htmlFor && n.id === r.id;
|
|
43
|
+
}), f = (e, t, n = !1, r = "label", i) => (a) => /* @__PURE__ */ s(d, {
|
|
44
|
+
as: r,
|
|
45
|
+
confidenceScore: i,
|
|
46
|
+
fieldDescription: t,
|
|
47
|
+
fieldName: e,
|
|
48
|
+
isAiSuggestionApplied: n,
|
|
49
|
+
labelProps: a
|
|
50
|
+
}), p = (e) => {
|
|
51
|
+
try {
|
|
52
|
+
let n = t(e), r = new Date(n);
|
|
53
|
+
return isNaN(r.getTime()) ? null : n;
|
|
54
|
+
} catch {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
55
57
|
};
|
|
58
|
+
export { p as n, u as r, f as t };
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,70 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}), G = (t, e, l = !1, n = "label", o) => (a) => /* @__PURE__ */ r(D, {
|
|
52
|
-
as: n,
|
|
53
|
-
confidenceScore: o,
|
|
54
|
-
fieldDescription: e,
|
|
55
|
-
fieldName: t,
|
|
56
|
-
isAiSuggestionApplied: l,
|
|
57
|
-
labelProps: a
|
|
58
|
-
}), H = (t) => {
|
|
59
|
-
try {
|
|
60
|
-
const e = g(t), l = new Date(e);
|
|
61
|
-
return isNaN(l.getTime()) ? null : e;
|
|
62
|
-
} catch {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
G as g,
|
|
68
|
-
s,
|
|
69
|
-
H as t
|
|
70
|
-
};
|
|
1
|
+
import { TEMPLATE_CUSTOM_PROPERTIES as e } from "../esm/lib/constants.js";
|
|
2
|
+
import t from "lodash/isEqual";
|
|
3
|
+
import n from "lodash/isArray";
|
|
4
|
+
import r from "lodash/isEmpty";
|
|
5
|
+
var i = {
|
|
6
|
+
ADD: "add",
|
|
7
|
+
REMOVE: "remove",
|
|
8
|
+
REPLACE: "replace",
|
|
9
|
+
TEST: "test"
|
|
10
|
+
}, a = "AI_ACCEPTED", o = (e, t) => e.value === t.value && e.level === t.level && e.isAccepted === t.isAccepted, s = (e) => e.value === void 0 || e.value === null || e.value === "" || n(e.value) && r(e.value), c = (e, t, n) => {
|
|
11
|
+
let r = t.confidenceScore, i = n.confidenceScore;
|
|
12
|
+
return !i || r && o(r, i) ? [] : l(e, i);
|
|
13
|
+
}, l = (e, t) => {
|
|
14
|
+
let n = [];
|
|
15
|
+
return t.isAccepted && n.push(m(`${e}/process`, a)), n.push(m(`${e}/confidenceScore`, t.value), m(`${e}/confidenceLevel`, t.level)), n;
|
|
16
|
+
}, u = (e, n, r) => {
|
|
17
|
+
let i = n.targetLocation, a = r.targetLocation, o = n.confidenceScore?.isAccepted ?? !1, s = r.confidenceScore?.isAccepted ?? !1, c = !o && s;
|
|
18
|
+
return a && (!t(i, a) || c) ? [m(`${e}/targetLocation`, JSON.stringify(a))] : [];
|
|
19
|
+
}, d = (n, r) => {
|
|
20
|
+
let i = [], a = n.metadata.fields, o = r.templateKey === e, l = new Map(r.fields.map((e) => [e.key, e])), d = new Map(a.map((e) => [e.key, e]));
|
|
21
|
+
return a.forEach((e) => {
|
|
22
|
+
let n = l.get(e.key);
|
|
23
|
+
if (!n) {
|
|
24
|
+
i.push(m(e.key, f(e)));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (t(e, n)) return;
|
|
28
|
+
let r = !t(e.value, n.value);
|
|
29
|
+
!o && s(n) && !s(e) ? i.push(m(e.key, f(e))) : (!o && r && n.value !== null && !s(e) || o && r) && (i.push(p(n.key, f(n))), i.push(g(e.key, f(e)))), i.push(...c(e.key, n, e)), i.push(...u(e.key, n, e));
|
|
30
|
+
}), r.fields.forEach((e) => {
|
|
31
|
+
let t = d.get(e.key);
|
|
32
|
+
(!t || !o && s(t) && !s(e)) && (i.push(p(e.key, f(e))), i.push(h(e.key)));
|
|
33
|
+
}), i;
|
|
34
|
+
}, f = (e) => e.type === "float" ? Number(e.value) : e.type === "taxonomy" ? e.value.map((e) => e.value) : e.type === "date" && typeof e.value == "string" ? new Date(e.value).toISOString() : e.value, p = (e, t) => ({
|
|
35
|
+
op: i.TEST,
|
|
36
|
+
path: `/${e}`,
|
|
37
|
+
value: t
|
|
38
|
+
}), m = (e, t) => ({
|
|
39
|
+
op: i.ADD,
|
|
40
|
+
path: `/${e}`,
|
|
41
|
+
value: t
|
|
42
|
+
}), h = (e) => ({
|
|
43
|
+
op: i.REMOVE,
|
|
44
|
+
path: `/${e}`
|
|
45
|
+
}), g = (e, t) => ({
|
|
46
|
+
op: i.REPLACE,
|
|
47
|
+
path: `/${e}`,
|
|
48
|
+
value: t
|
|
49
|
+
});
|
|
50
|
+
export { f as n, i as r, d as t };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,52 +1,27 @@
|
|
|
1
|
-
import { FilterDropdownMenu as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
I as ConfidenceLevel,
|
|
29
|
-
V as CustomInstanceNewField,
|
|
30
|
-
P as DeleteConfirmationModal,
|
|
31
|
-
o as FilterDropdownMenu,
|
|
32
|
-
h as FilterInstancesDropdown,
|
|
33
|
-
b as JSONPatchOp,
|
|
34
|
-
r as MULTI_VALUE_DEFAULT_OPTION,
|
|
35
|
-
n as MULTI_VALUE_DEFAULT_TAXONOMY_OPTION,
|
|
36
|
-
p as MULTI_VALUE_DEFAULT_VALUE,
|
|
37
|
-
s as MetadataEditor,
|
|
38
|
-
m as MetadataEmptyState,
|
|
39
|
-
J as MetadataInstance,
|
|
40
|
-
y as MetadataInstanceForm,
|
|
41
|
-
X as MetadataInstanceFormAutofillButton,
|
|
42
|
-
j as MetadataInstanceFormHeader,
|
|
43
|
-
q as MetadataInstanceHeader,
|
|
44
|
-
G as MetadataInstanceList,
|
|
45
|
-
c as TIMEOUT_10_SECONDS,
|
|
46
|
-
Q as UnsavedChangesModal,
|
|
47
|
-
U as UpdateMode,
|
|
48
|
-
x as defaultInitialValues,
|
|
49
|
-
i as defaultMetadataValueMap,
|
|
50
|
-
O as useAutofill,
|
|
51
|
-
L as withApiWrapper
|
|
52
|
-
};
|
|
1
|
+
import { FilterDropdownMenu as e } from "./lib/components/filter-dropdown-menu/index.js";
|
|
2
|
+
import { AddMetadataTemplateDropdown as t } from "./lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js";
|
|
3
|
+
import "./lib/components/add-metadata-template-dropdown/index.js";
|
|
4
|
+
import { t as n } from "../chunks/combobox-with-api-pagination.js";
|
|
5
|
+
import "./lib/components/combobox-with-api-pagination/index.js";
|
|
6
|
+
import { t as r } from "../chunks/filter-instances-dropdown.js";
|
|
7
|
+
import "./lib/components/filter-instances-dropdown/index.js";
|
|
8
|
+
import { MULTI_VALUE_DEFAULT_OPTION as i, MULTI_VALUE_DEFAULT_TAXONOMY_OPTION as a, MULTI_VALUE_DEFAULT_VALUE as o } from "./lib/components/metadata-editor-fields/components/update-mode-field-wrapper/mulitple-values-utils.js";
|
|
9
|
+
import { MetadataEmptyState as s } from "./lib/components/metadata-empty-state/metadata-empty-state.js";
|
|
10
|
+
import { t as c } from "../chunks/custom-instance-new-field.js";
|
|
11
|
+
import { t as l } from "../chunks/delete-confirmation-modal.js";
|
|
12
|
+
import { AutofillContext as u, AutofillContextProvider as d, TIMEOUT_10_SECONDS as f, useAutofill as p } from "./lib/utils/autofill-context.js";
|
|
13
|
+
import { t as m } from "../chunks/metadata-instance-form-autofill-button.js";
|
|
14
|
+
import { n as h, r as g, t as _ } from "../chunks/types.js";
|
|
15
|
+
import { t as v } from "../chunks/metadata-instance-form-header.js";
|
|
16
|
+
import { UnsavedChangesModal as y } from "./lib/components/unsaved-changes-modal/unsaved-changes-modal.js";
|
|
17
|
+
import { r as b } from "../chunks/utils2.js";
|
|
18
|
+
import { MetadataInstanceForm as x } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js";
|
|
19
|
+
import "./lib/components/metadata-instance-editor/index.js";
|
|
20
|
+
import { t as S } from "../chunks/metadata-instance-list.js";
|
|
21
|
+
import { t as C } from "../chunks/metadata-instance-header.js";
|
|
22
|
+
import { t as w } from "../chunks/metadata-instance.js";
|
|
23
|
+
import "./lib/components/metadata-instance-list/index.js";
|
|
24
|
+
import { defaultInitialValues as T, defaultMetadataValueMap as E } from "./lib/defaults.js";
|
|
25
|
+
import { t as D } from "../chunks/metadata-editor.js";
|
|
26
|
+
import { withApiWrapper as O } from "./lib/utils/api-wrapper.js";
|
|
27
|
+
export { t as AddMetadataTemplateDropdown, _ as AiSuggestionState, u as AutofillContext, d as AutofillContextProvider, n as ComboboxWithApiPagination, h as ConfidenceLevel, c as CustomInstanceNewField, l as DeleteConfirmationModal, e as FilterDropdownMenu, r as FilterInstancesDropdown, b as JSONPatchOp, i as MULTI_VALUE_DEFAULT_OPTION, a as MULTI_VALUE_DEFAULT_TAXONOMY_OPTION, o as MULTI_VALUE_DEFAULT_VALUE, D as MetadataEditor, s as MetadataEmptyState, w as MetadataInstance, x as MetadataInstanceForm, m as MetadataInstanceFormAutofillButton, v as MetadataInstanceFormHeader, C as MetadataInstanceHeader, S as MetadataInstanceList, f as TIMEOUT_10_SECONDS, y as UnsavedChangesModal, g as UpdateMode, T as defaultInitialValues, E as defaultMetadataValueMap, p as useAutofill, O as withApiWrapper };
|