@box/metadata-editor 0.72.4 → 0.73.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.
Files changed (56) hide show
  1. package/chunks/taxonomy-ancestor-status-pill.js +114 -0
  2. package/esm/lib/components/metadata-instance-list/metadata-instance-list.js +10 -8
  3. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.js +27 -25
  4. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.js +10 -6
  5. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.js +22 -0
  6. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +32 -30
  7. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +26 -0
  8. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +11 -0
  9. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.js +23 -0
  10. package/i18n/bn-IN.js +6 -1
  11. package/i18n/da-DK.js +6 -1
  12. package/i18n/de-DE.js +6 -1
  13. package/i18n/en-AU.js +6 -1
  14. package/i18n/en-CA.js +6 -1
  15. package/i18n/en-GB.js +6 -1
  16. package/i18n/en-US.js +6 -1
  17. package/i18n/en-US.properties +10 -0
  18. package/i18n/en-x-pseudo.js +6 -1
  19. package/i18n/es-419.js +6 -1
  20. package/i18n/es-ES.js +6 -1
  21. package/i18n/fi-FI.js +6 -1
  22. package/i18n/fr-CA.js +6 -1
  23. package/i18n/fr-FR.js +6 -1
  24. package/i18n/hi-IN.js +6 -1
  25. package/i18n/it-IT.js +6 -1
  26. package/i18n/ja-JP.js +6 -1
  27. package/i18n/json/src/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.json +1 -0
  28. package/i18n/ko-KR.js +6 -1
  29. package/i18n/nb-NO.js +6 -1
  30. package/i18n/nl-NL.js +6 -1
  31. package/i18n/pl-PL.js +6 -1
  32. package/i18n/pt-BR.js +6 -1
  33. package/i18n/ru-RU.js +6 -1
  34. package/i18n/sv-SE.js +6 -1
  35. package/i18n/tr-TR.js +6 -1
  36. package/i18n/zh-CN.js +6 -1
  37. package/i18n/zh-TW.js +6 -1
  38. package/package.json +2 -2
  39. package/styles/metadata-instance-entry.css +1 -1
  40. package/styles/taxonomy-ancestor-status-pill.css +1 -0
  41. package/types/lib/components/metadata-instance-list/metadata-instance-list.d.ts +1 -1
  42. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/metadata-instance.d.ts +1 -1
  43. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance/types.d.ts +2 -0
  44. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/metadata-instance-content.d.ts +1 -1
  45. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-content/types.d.ts +2 -0
  46. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-entry-display.d.ts +2 -0
  47. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.d.ts +1 -1
  48. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.d.ts +28 -0
  49. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.d.ts +2 -0
  50. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-value.d.ts +2 -0
  51. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/types.d.ts +33 -0
  52. package/types/lib/components/metadata-instance-list/types.d.ts +2 -0
  53. package/types/lib/types.d.ts +1 -0
  54. package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-value.js +0 -25
  55. package/styles/taxonomy-value.css +0 -1
  56. package/types/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-value.d.ts +0 -6
@@ -0,0 +1,114 @@
1
+ import "../styles/taxonomy-ancestor-status-pill.css";
2
+ import { Popover as t, FilterChip as y, InlineNotice as L, TextButton as A, LoadingIndicator as T } from "@box/blueprint-web";
3
+ import { Loader as I } from "@box/blueprint-web-assets/icons/Fill";
4
+ import W from "lodash/orderBy";
5
+ import { useState as s } from "react";
6
+ import { useIntl as V, FormattedMessage as h } from "react-intl";
7
+ import a from "../esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js";
8
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
9
+ const B = "_popoverContentContainer_6luwd_1", N = "_popoverMainContent_6luwd_6", E = "_loadingIndicatorWrapper_6luwd_10", D = "_errorMessageWrapper_6luwd_17", P = "_errorMessageWrapperText_6luwd_22", R = "_container_6luwd_30", k = "_taxonomyAncestorTable_6luwd_36", K = "_taxonomyValueGroup_6luwd_79", G = "_taxonomyValueButton_6luwd_84", O = "_taxonomyValueLabel_6luwd_91", n = {
10
+ popoverContentContainer: B,
11
+ popoverMainContent: N,
12
+ loadingIndicatorWrapper: E,
13
+ errorMessageWrapper: D,
14
+ errorMessageWrapperText: P,
15
+ container: R,
16
+ taxonomyAncestorTable: k,
17
+ taxonomyValueGroup: K,
18
+ taxonomyValueButton: G,
19
+ taxonomyValueLabel: O
20
+ }, j = {
21
+ right: 24
22
+ }, S = (r) => {
23
+ r.stopPropagation();
24
+ }, z = (r) => {
25
+ (r.key === "ArrowLeft" || r.key === "ArrowRight") && r.stopPropagation();
26
+ };
27
+ function Z({
28
+ taxonomyNodeFetcher: r,
29
+ scope: v,
30
+ taxonomyKey: x,
31
+ value: C,
32
+ displayValue: c
33
+ }) {
34
+ const {
35
+ formatMessage: i
36
+ } = V(), [w, f] = s([]), [p, d] = s(!1), [m, u] = s(!1), [b, g] = s(!1), M = W(w, (o) => o.level), _ = async () => {
37
+ d(!0), u(!1), g(!0);
38
+ try {
39
+ const o = await r(v, x, C);
40
+ f(o);
41
+ } catch {
42
+ u(!0);
43
+ } finally {
44
+ d(!1);
45
+ }
46
+ };
47
+ return /* @__PURE__ */ l(t.Root, {
48
+ onOpenChange: g,
49
+ open: b,
50
+ children: [/* @__PURE__ */ e(t.Trigger, {
51
+ children: /* @__PURE__ */ e(y.ChipButton, {
52
+ "aria-checked": void 0,
53
+ className: n.taxonomyValueButton,
54
+ disabled: !r,
55
+ onClick: _,
56
+ onKeyDown: z,
57
+ role: void 0,
58
+ value: c,
59
+ children: /* @__PURE__ */ e(y.Label, {
60
+ className: n.taxonomyValueLabel,
61
+ children: c
62
+ })
63
+ })
64
+ }), /* @__PURE__ */ e(t.ContentContainer, {
65
+ align: "start",
66
+ className: n.popoverContentContainer,
67
+ collisionPadding: j,
68
+ onEscapeKeyDown: S,
69
+ children: /* @__PURE__ */ l(t.MainContent, {
70
+ className: n.popoverMainContent,
71
+ children: [m && /* @__PURE__ */ l("div", {
72
+ className: n.errorMessageWrapper,
73
+ children: [/* @__PURE__ */ e(L, {
74
+ variant: "error",
75
+ variantIconAriaLabel: i(a.loadingResultsErrorIconLabel),
76
+ children: /* @__PURE__ */ e(h, {
77
+ ...a.loadingResultsErrorMessage
78
+ })
79
+ }), /* @__PURE__ */ e(A, {
80
+ className: n.errorMessageWrapperText,
81
+ icon: I,
82
+ onClick: _,
83
+ "data-target-id": "TextButton-loadingResultsErrorAction",
84
+ children: i(a.loadingResultsErrorAction)
85
+ })]
86
+ }), p && /* @__PURE__ */ e("div", {
87
+ className: n.loadingIndicatorWrapper,
88
+ children: /* @__PURE__ */ e(T, {
89
+ "aria-label": i(a.loadingAriaLabel),
90
+ size: "large"
91
+ })
92
+ }), !m && !p && /* @__PURE__ */ e("table", {
93
+ className: n.taxonomyAncestorTable,
94
+ children: /* @__PURE__ */ e("tbody", {
95
+ children: M.map((o) => /* @__PURE__ */ l("tr", {
96
+ children: [/* @__PURE__ */ e("th", {
97
+ scope: "row",
98
+ children: o.levelName
99
+ }), /* @__PURE__ */ e("td", {
100
+ children: o.levelValue || /* @__PURE__ */ e(h, {
101
+ ...a.emptyAncestorLevelValue
102
+ })
103
+ })]
104
+ }, o.id || o.level))
105
+ })
106
+ })]
107
+ })
108
+ })]
109
+ });
110
+ }
111
+ export {
112
+ Z as T,
113
+ n as s
114
+ };
@@ -1,22 +1,24 @@
1
1
  import "../../../../styles/metadata-instance-list.css";
2
- import { MetadataInstance as d } from "./subcomponents/metadata-instance/metadata-instance.js";
2
+ import { MetadataInstance as c } from "./subcomponents/metadata-instance/metadata-instance.js";
3
3
  import { jsx as a } from "react/jsx-runtime";
4
- const c = "_metadataInstanceList_bd83w_1", m = {
5
- metadataInstanceList: c
6
- }, L = ({
4
+ const m = "_metadataInstanceList_bd83w_1", r = {
5
+ metadataInstanceList: m
6
+ }, p = ({
7
7
  areAiSuggestionsAvailable: s,
8
8
  isAiSuggestionsFeatureEnabled: e,
9
9
  onEdit: n,
10
- templateInstances: i
10
+ templateInstances: i,
11
+ taxonomyNodeFetcher: d
11
12
  }) => /* @__PURE__ */ a("div", {
12
- className: m.metadataInstanceList,
13
- children: i.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ a(d, {
13
+ className: r.metadataInstanceList,
14
+ children: i.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ a(c, {
14
15
  areAiSuggestionsAvailable: s,
15
16
  isAiSuggestionsFeatureEnabled: e,
16
17
  onEdit: n,
18
+ taxonomyNodeFetcher: d,
17
19
  templateInstance: t
18
20
  }, t.id))
19
21
  });
20
22
  export {
21
- L as MetadataInstanceList
23
+ p as MetadataInstanceList
22
24
  };
@@ -1,49 +1,51 @@
1
1
  import "../../../../../../styles/metadata-instance.css";
2
- import { Card as V, Divider as n } from "@box/blueprint-web";
3
- import { useState as A } from "react";
4
- import { useAutofill as D } from "../../../../utils/autofill-context.js";
5
- import { MetadataEmptyState as S } from "../../../metadata-empty-state/metadata-empty-state.js";
6
- import { MetadataInstanceContent as b } from "../metadata-instance-content/metadata-instance-content.js";
7
- import { MetadataInstanceFooter as g } from "../metadata-instance-footer/metadata-instance-footer.js";
8
- import { MetadataInstanceHeader as H } from "../metadata-instance-header/metadata-instance-header.js";
2
+ import { Card as A, Divider as n } from "@box/blueprint-web";
3
+ import { useState as D } from "react";
4
+ import { useAutofill as S } from "../../../../utils/autofill-context.js";
5
+ import { MetadataEmptyState as b } from "../../../metadata-empty-state/metadata-empty-state.js";
6
+ import { MetadataInstanceContent as g } from "../metadata-instance-content/metadata-instance-content.js";
7
+ import { MetadataInstanceFooter as H } from "../metadata-instance-footer/metadata-instance-footer.js";
8
+ import { MetadataInstanceHeader as _ } from "../metadata-instance-header/metadata-instance-header.js";
9
9
  import { jsxs as a, jsx as t, Fragment as u } from "react/jsx-runtime";
10
- const _ = "_topDivider_tzhlb_1", M = "_bottomDivider_tzhlb_5", y = {
11
- topDivider: _,
12
- bottomDivider: M
13
- }, W = ({
10
+ const M = "_topDivider_tzhlb_1", N = "_bottomDivider_tzhlb_5", y = {
11
+ topDivider: M,
12
+ bottomDivider: N
13
+ }, k = ({
14
14
  areAiSuggestionsAvailable: p,
15
15
  isAiSuggestionsFeatureEnabled: d,
16
16
  onEdit: m,
17
- templateInstance: o
17
+ templateInstance: o,
18
+ taxonomyNodeFetcher: c
18
19
  }) => {
19
- const e = o.fields, l = (s) => !s.value || Array.isArray(s.value) && s.value.length === 0, c = e.every(l), h = e.some(l), v = e.length > 0, [i, r] = A(!0), {
20
- getAiSuggestions: E
21
- } = D(), f = () => {
22
- m(o), E(o.templateKey, e);
20
+ const e = o.fields, l = (s) => !s.value || Array.isArray(s.value) && s.value.length === 0, h = e.every(l), v = e.some(l), E = e.length > 0, [i, r] = D(!0), {
21
+ getAiSuggestions: f
22
+ } = S(), V = () => {
23
+ m(o), f(o.templateKey, e);
23
24
  };
24
- return /* @__PURE__ */ a(V, {
25
- children: [/* @__PURE__ */ t(H, {
25
+ return /* @__PURE__ */ a(A, {
26
+ children: [/* @__PURE__ */ t(_, {
26
27
  areAiSuggestionsAvailable: p,
27
28
  canEdit: o.canEdit,
28
29
  isAiSuggestionsFeatureEnabled: d,
29
- onAutofill: f,
30
+ onAutofill: V,
30
31
  onEdit: () => m(o),
31
32
  templateName: o == null ? void 0 : o.displayName
32
33
  }), /* @__PURE__ */ t(n, {
33
34
  className: y.topDivider
34
- }), i && c ? /* @__PURE__ */ t(S, {
35
- isAnyEmptyValueHidden: v,
35
+ }), i && h ? /* @__PURE__ */ t(b, {
36
+ isAnyEmptyValueHidden: E,
36
37
  isBoxAiSuggestionsFeatureEnabled: d,
37
38
  level: "instance",
38
39
  onShowEmptyValues: () => r(!1)
39
40
  }) : /* @__PURE__ */ a(u, {
40
- children: [/* @__PURE__ */ t(b, {
41
+ children: [/* @__PURE__ */ t(g, {
41
42
  shouldHideEmptyValues: i,
43
+ taxonomyNodeFetcher: c,
42
44
  templateInstance: o
43
- }), h && /* @__PURE__ */ a(u, {
45
+ }), v && /* @__PURE__ */ a(u, {
44
46
  children: [/* @__PURE__ */ t(n, {
45
47
  className: y.bottomDivider
46
- }), /* @__PURE__ */ t(g, {
48
+ }), /* @__PURE__ */ t(H, {
47
49
  isAnyEmptyValueHidden: i,
48
50
  onHideEmptyValues: () => r(!0),
49
51
  onShowEmptyValues: () => r(!1)
@@ -53,5 +55,5 @@ const _ = "_topDivider_tzhlb_1", M = "_bottomDivider_tzhlb_5", y = {
53
55
  });
54
56
  };
55
57
  export {
56
- W as MetadataInstance
58
+ k as MetadataInstance
57
59
  };
@@ -1,21 +1,25 @@
1
1
  import "../../../../../../styles/metadata-instance-content.css";
2
- import { MetadataInstanceEntry as o } from "../metadata-instance-entry/metadata-instance-entry.js";
2
+ import { MetadataInstanceEntry as c } from "../metadata-instance-entry/metadata-instance-entry.js";
3
3
  import { jsx as a } from "react/jsx-runtime";
4
- const c = "_metadataInstanceContent_1a9zf_1", m = {
5
- metadataInstanceContent: c
4
+ const m = "_metadataInstanceContent_1a9zf_1", r = {
5
+ metadataInstanceContent: m
6
6
  }, i = ({
7
7
  shouldHideEmptyValues: n,
8
- templateInstance: e
8
+ templateInstance: e,
9
+ taxonomyNodeFetcher: o
9
10
  }) => {
10
11
  const {
11
12
  fields: s = []
12
13
  } = e;
13
14
  return /* @__PURE__ */ a("div", {
14
- className: m.metadataInstanceContent,
15
- children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ a(o, {
15
+ className: r.metadataInstanceContent,
16
+ children: s.filter((t) => !t.hidden).map((t) => /* @__PURE__ */ a(c, {
16
17
  description: t.description,
17
18
  name: t.displayName || t.key,
19
+ scope: t.namespace,
18
20
  shouldHideEmptyValues: n,
21
+ taxonomyKey: t.taxonomyKey,
22
+ taxonomyNodeFetcher: o,
19
23
  type: t.type,
20
24
  value: t.value
21
25
  }, t.id))
@@ -0,0 +1,22 @@
1
+ import { Text as y } from "@box/blueprint-web";
2
+ import { TaxonomyValue as s } from "./taxonomy-entry/taxonomy-value.js";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ const c = ({
5
+ type: t,
6
+ formattedValue: o,
7
+ value: n,
8
+ taxonomyNodeFetcher: m,
9
+ taxonomyKey: a,
10
+ scope: i
11
+ }) => t === "taxonomy" ? /* @__PURE__ */ r(s, {
12
+ scope: i,
13
+ taxonomyKey: a,
14
+ taxonomyNodeFetcher: m,
15
+ value: n
16
+ }) : o && /* @__PURE__ */ r(y, {
17
+ as: "p",
18
+ children: o
19
+ });
20
+ export {
21
+ c as MetadataEntryDisplay
22
+ };
@@ -1,19 +1,22 @@
1
1
  import "../../../../../../styles/metadata-instance-entry.css";
2
- import { Text as m } from "@box/blueprint-web";
3
- import { FormattedDate as d } from "react-intl";
4
- import y from "../../../interactive-text/interactive-text.js";
5
- import { TaxonomyValue as f } from "./taxonomy-value.js";
6
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
7
- const u = "_metadataInstanceEntry_kd217_1", x = {
8
- metadataInstanceEntry: u
9
- }, V = ({
10
- description: o,
2
+ import { Text as f } from "@box/blueprint-web";
3
+ import { FormattedDate as y } from "react-intl";
4
+ import l from "../../../interactive-text/interactive-text.js";
5
+ import { MetadataEntryDisplay as p } from "./metadata-entry-display.js";
6
+ import { jsxs as u, jsx as r } from "react/jsx-runtime";
7
+ const x = "_metadataInstanceEntry_gwoh6_1", h = {
8
+ metadataInstanceEntry: x
9
+ }, T = ({
10
+ description: n,
11
11
  name: a,
12
- shouldHideEmptyValues: s,
12
+ shouldHideEmptyValues: i,
13
13
  type: e,
14
- value: t
14
+ value: t,
15
+ taxonomyNodeFetcher: m,
16
+ taxonomyKey: s,
17
+ scope: c
15
18
  }) => {
16
- const n = (() => {
19
+ const o = (() => {
17
20
  if (typeof t == "number")
18
21
  return t.toString();
19
22
  if (!t)
@@ -21,40 +24,39 @@ const u = "_metadataInstanceEntry_kd217_1", x = {
21
24
  if (Array.isArray(t))
22
25
  return t.join(", ");
23
26
  if (e === "date" && typeof t == "string") {
24
- const i = new Date(t);
25
- return /* @__PURE__ */ r(d, {
27
+ const d = new Date(t);
28
+ return /* @__PURE__ */ r(y, {
26
29
  day: "numeric",
27
30
  month: "long",
28
- value: i,
31
+ value: d,
29
32
  year: "numeric"
30
33
  });
31
34
  }
32
35
  return t;
33
36
  })();
34
- if (s && !n)
35
- return null;
36
- const c = () => e === "taxonomy" ? /* @__PURE__ */ r(f, {
37
- value: t
38
- }) : n && /* @__PURE__ */ r(m, {
39
- as: "p",
40
- children: n
41
- });
42
- return /* @__PURE__ */ l("div", {
43
- className: x.metadataInstanceEntry,
44
- children: [/* @__PURE__ */ r(m, {
37
+ return i && !o ? null : /* @__PURE__ */ u("div", {
38
+ className: h.metadataInstanceEntry,
39
+ children: [/* @__PURE__ */ r(f, {
45
40
  as: "p",
46
41
  color: "textOnLightSecondary",
47
42
  variant: "bodyDefaultBold",
48
- children: o ? /* @__PURE__ */ r(y, {
43
+ children: n ? /* @__PURE__ */ r(l, {
49
44
  as: "span",
50
45
  color: "textOnLightSecondary",
51
- tooltipText: o,
46
+ tooltipText: n,
52
47
  variant: "bodyDefaultBold",
53
48
  children: a
54
49
  }) : a
55
- }), c()]
50
+ }), /* @__PURE__ */ r(p, {
51
+ formattedValue: o,
52
+ scope: c,
53
+ taxonomyKey: s,
54
+ taxonomyNodeFetcher: m,
55
+ type: e,
56
+ value: t
57
+ })]
56
58
  });
57
59
  };
58
60
  export {
59
- V as MetadataInstanceEntry
61
+ T as MetadataInstanceEntry
60
62
  };
@@ -0,0 +1,26 @@
1
+ import { defineMessages as e } from "react-intl";
2
+ const o = e({
3
+ loadingResultsErrorAction: {
4
+ id: "taxonomyAncestorStatusPill.errorAction",
5
+ defaultMessage: "Reload"
6
+ },
7
+ loadingResultsErrorMessage: {
8
+ id: "taxonomyAncestorStatusPill.errorMessage",
9
+ defaultMessage: "Failed to load details"
10
+ },
11
+ loadingResultsErrorIconLabel: {
12
+ id: "taxonomyAncestorStatusPill.errorIconLabel",
13
+ defaultMessage: "Error"
14
+ },
15
+ loadingAriaLabel: {
16
+ id: "taxonomyAncestorStatusPill.loadingAriaLabel",
17
+ defaultMessage: "Loading..."
18
+ },
19
+ emptyAncestorLevelValue: {
20
+ id: "taxonomyAncestorStatusPill.emptyAncestorLevelValue",
21
+ defaultMessage: "- -"
22
+ }
23
+ });
24
+ export {
25
+ o as default
26
+ };
@@ -0,0 +1,11 @@
1
+ import "@box/blueprint-web";
2
+ import "@box/blueprint-web-assets/icons/Fill";
3
+ import "lodash/orderBy";
4
+ import "react";
5
+ import "react-intl";
6
+ import "./messages.js";
7
+ import { T as l } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
8
+ import "react/jsx-runtime";
9
+ export {
10
+ l as TaxonomyAncestorStatusPill
11
+ };
@@ -0,0 +1,23 @@
1
+ import { FilterChip as t } from "@box/blueprint-web";
2
+ import { s as n, T as i } from "../../../../../../../chunks/taxonomy-ancestor-status-pill.js";
3
+ import { jsx as o } from "react/jsx-runtime";
4
+ const y = ({
5
+ value: r,
6
+ taxonomyNodeFetcher: l,
7
+ taxonomyKey: e,
8
+ scope: s
9
+ }) => !r || !Array.isArray(r) || !r.length ? null : /* @__PURE__ */ o(t.Group, {
10
+ className: n.taxonomyValueGroup,
11
+ name: void 0,
12
+ type: "single",
13
+ children: r.map((a) => /* @__PURE__ */ o(i, {
14
+ displayValue: a.displayValue,
15
+ scope: s,
16
+ taxonomyKey: e,
17
+ taxonomyNodeFetcher: l,
18
+ value: a.value
19
+ }, a.value))
20
+ });
21
+ export {
22
+ y as TaxonomyValue
23
+ };
package/i18n/bn-IN.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Box AI দিয়ে {templateName} অটোফিল করুন",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "কাস্টম মেটাডেটা",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} এডিট করুন",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "সম্পাদনা করুন"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "সম্পাদনা করুন",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/da-DK.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Automatisk udfyldning af {templateName} med Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Brugerdefineret metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Rediger {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Rediger"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Rediger",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/de-DE.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Mit Box KI automatisch ausfüllen {templateName}",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Benutzerdefinierte Metadaten",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} bearbeiten",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Bearbeiten"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Bearbeiten",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/en-AU.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofill {templateName} with Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Custom Metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Edit {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/en-CA.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofill {templateName} with Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Custom Metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Edit {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/en-GB.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofill {templateName} with Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Custom Metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Edit {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/en-US.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofill {templateName} with Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Custom Metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Edit {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edit",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
@@ -194,3 +194,13 @@ metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle = Custom
194
194
  metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel = Edit {templateName}
195
195
  # Tooltip text explaining that by clicking button user can edit template
196
196
  metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip = Edit
197
+ # Default value for ancestor level value when it is empty
198
+ taxonomyAncestorStatusPill.emptyAncestorLevelValue = - -
199
+ # Error message displayed resembling button that calls to action to reload the details
200
+ taxonomyAncestorStatusPill.errorAction = Reload
201
+ # Aria-label text for the error icon in the loading results error message
202
+ taxonomyAncestorStatusPill.errorIconLabel = Error
203
+ # Error message displayed as inline notice that informs the user that the taxonomy details failed to load
204
+ taxonomyAncestorStatusPill.errorMessage = Failed to load details
205
+ # Visually hidden aria-label text for the loading spinner
206
+ taxonomyAncestorStatusPill.loadingAriaLabel = Loading...
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "⟦萬萬萬萬萬萬萬 Âųŧоƒīĺĺ {templateName} ώĩţн Βø× ÅÍ 國國國國國國國⟧",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "⟦萬萬萬萬 Ĉůśţόm Мêŧãďάτά 國國國國⟧",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "⟦萬萬 Ёďіť {templateName} 國國⟧",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "⟦萬 Éďїť 國⟧"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "⟦萬 Éďїť 國⟧",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/es-419.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autocompletar {templateName} con Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Metadatos personalizados",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Editar {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/es-ES.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autocompletar {templateName} con Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Metadatos personalizados",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Editar {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/fi-FI.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Täytä {templateName} automaattisesti Box AI:n avulla",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Mukautetut metatiedot",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Muokkaa mallia {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Muokkaa"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Muokkaa",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/fr-CA.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Remplir automatiquement {templateName} avec Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Métadonnées personnalisées",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Modifier {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifier"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifier",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/fr-FR.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Remplir automatiquement {templateName} avec Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Métadonnées personnalisées",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Modifier {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifier"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifier",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/hi-IN.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Box AI के साथ {templateName} को ऑटोफ़ाइल करें",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "कस्टम मेटाडेटा",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} संपादित करें",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "संपादित करें"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "संपादित करें",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/it-IT.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Compila automaticamente {templateName} con Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Metadati personalizzati",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Modifica {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifica"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Modifica",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/ja-JP.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Box AIで{templateName}を自動入力",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "カスタムメタデータ",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName}を編集",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "編集"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "編集",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
@@ -0,0 +1 @@
1
+ [{"id":"taxonomyAncestorStatusPill.errorAction","description":"Error message displayed resembling button that calls to action to reload the details","defaultMessage":"Reload"},{"id":"taxonomyAncestorStatusPill.errorMessage","description":"Error message displayed as inline notice that informs the user that the taxonomy details failed to load","defaultMessage":"Failed to load details"},{"id":"taxonomyAncestorStatusPill.errorIconLabel","description":"Aria-label text for the error icon in the loading results error message","defaultMessage":"Error"},{"id":"taxonomyAncestorStatusPill.loadingAriaLabel","description":"Visually hidden aria-label text for the loading spinner","defaultMessage":"Loading..."},{"id":"taxonomyAncestorStatusPill.emptyAncestorLevelValue","description":"Default value for ancestor level value when it is empty","defaultMessage":"- -"}]
package/i18n/ko-KR.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Box AI를 사용한 {templateName}자동 입력",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "사용자 정의 메타데이터",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} 편집",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "편집"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "편집",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/nb-NO.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Fyll {templateName} automatisk med Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Tilpasset metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Rediger {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Rediger"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Rediger",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/nl-NL.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofill {templateName} met Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Aangepaste metagegevens",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} bewerken",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Bewerken"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Bewerken",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/pl-PL.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Automatycznie wypełnij {templateName} za pomocą Box AI.",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Niestandardowe metadane",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Edycja {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edycja"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Edycja",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/pt-BR.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Preencher automaticamente {templateName} com o Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Metadados personalizados",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Editar {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Editar",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/ru-RU.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Автозаполнение {templateName} с помощью Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Настраиваемые метаданные",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Изменить {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Изменить"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Изменить",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/sv-SE.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Autofyll {templateName} med Box AI",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Anpassade metadata",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "Redigera {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Redigera"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Redigera",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/tr-TR.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "Box AI ile {templateName} şablonunu otomatik olarak doldurun",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "Özel Meta Veri",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "{templateName} şablonunu düzenle",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Düzenle"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "Düzenle",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/zh-CN.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "使用 Box AI 自动填充 {templateName}",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "自定义元数据",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "编辑 {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "编辑"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "编辑",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/i18n/zh-TW.js CHANGED
@@ -96,5 +96,10 @@ export default {
96
96
  "metadataEditor.viewInstance.metadataInstanceHeader.autofillButtonTooltip": "使用 Box AI 自動填充 {templateName}",
97
97
  "metadataEditor.viewInstance.metadataInstanceHeader.customMetadataTitle": "自訂中繼資料",
98
98
  "metadataEditor.viewInstance.metadataInstanceHeader.editButtonAriaLabel": "編輯 {templateName}",
99
- "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "編輯"
99
+ "metadataEditor.viewInstance.metadataInstanceHeader.editButtonTooltip": "編輯",
100
+ "taxonomyAncestorStatusPill.emptyAncestorLevelValue": "- -",
101
+ "taxonomyAncestorStatusPill.errorAction": "Reload",
102
+ "taxonomyAncestorStatusPill.errorIconLabel": "Error",
103
+ "taxonomyAncestorStatusPill.errorMessage": "Failed to load details",
104
+ "taxonomyAncestorStatusPill.loadingAriaLabel": "Loading..."
100
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.72.4",
3
+ "version": "0.73.0",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.5",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "057276bec06cb3038669d8e87106aaa2bd86c718"
56
+ "gitHead": "9b731d3f3e779007e68f32e8a42269301e328912"
57
57
  }
@@ -1 +1 @@
1
- ._metadataInstanceEntry_kd217_1{display:flex;flex-direction:column;gap:var(--space-1)}
1
+ ._metadataInstanceEntry_gwoh6_1{display:flex;flex-direction:column;gap:var(--space-2)}
@@ -0,0 +1 @@
1
+ ._popoverContentContainer_6luwd_1{width:18.25rem;outline:none}._popoverMainContent_6luwd_6{max-height:calc(var(--radix-popover-content-available-height) - var(--space-8) - var(--space-2) - var(--border-1))}._loadingIndicatorWrapper_6luwd_10{position:relative;display:flex;align-items:end;height:var(--size-8)}._errorMessageWrapper_6luwd_17{display:flex;flex-direction:column;justify-content:center}._errorMessageWrapper_6luwd_17 ._errorMessageWrapperText_6luwd_22{display:flex;gap:var(--space-1);align-items:center;justify-content:center;height:var(--size-8)}._container_6luwd_30{display:flex;gap:var(--space-1);justify-content:center}table._taxonomyAncestorTable_6luwd_36{width:100%;table-layout:fixed;border-spacing:0}table._taxonomyAncestorTable_6luwd_36>tbody>tr{display:flex;flex-direction:column}table._taxonomyAncestorTable_6luwd_36>tbody>tr:not(:last-child){margin-block-end:var(--space-2)}table._taxonomyAncestorTable_6luwd_36>tbody>tr>th{font-weight:700;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;padding:0;color:var(--text-text-on-light-secondary-hover);text-align:start}table._taxonomyAncestorTable_6luwd_36>tbody>tr>td{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;display:block;padding:0;color:var(--text-text-on-light);word-break:break-all}@media (max-width: 767px){._taxonomyValueGroup_6luwd_79{flex-wrap:wrap}}._taxonomyValueButton_6luwd_84{overflow-x:hidden}._taxonomyValueButton_6luwd_84:focus-visible{overflow-x:hidden}._taxonomyValueButton_6luwd_84 ._taxonomyValueLabel_6luwd_91{overflow-x:hidden;text-overflow:ellipsis}
@@ -1,2 +1,2 @@
1
1
  import { type MetadataInstanceListProps } from './types';
2
- export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, onEdit, templateInstances, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceList: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, onEdit, templateInstances, taxonomyNodeFetcher, }: MetadataInstanceListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { type MetadataInstanceProps } from './types';
2
- export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, onEdit, templateInstance, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstance: ({ areAiSuggestionsAvailable, isAiSuggestionsFeatureEnabled, onEdit, templateInstance, taxonomyNodeFetcher, }: MetadataInstanceProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
1
  import { type MetadataTemplateInstance } from '../../../../types';
2
+ import { type TaxonomyNodeFetcher } from '../metadata-instance-entry/types';
2
3
  export type MetadataInstanceProps = {
3
4
  areAiSuggestionsAvailable: boolean;
4
5
  isAiSuggestionsFeatureEnabled: boolean;
5
6
  onEdit: (templateInstance: MetadataTemplateInstance) => void;
6
7
  templateInstance: MetadataTemplateInstance;
8
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
7
9
  };
@@ -1,2 +1,2 @@
1
1
  import { type MetadataInstanceContentProps } from './types';
2
- export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceContent: ({ shouldHideEmptyValues, templateInstance, taxonomyNodeFetcher, }: MetadataInstanceContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { type MetadataTemplateInstance } from '../../../../types';
2
+ import { type TaxonomyNodeFetcher } from '../metadata-instance-entry/types';
2
3
  export type MetadataInstanceContentProps = {
3
4
  shouldHideEmptyValues: boolean;
4
5
  templateInstance: MetadataTemplateInstance;
6
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
5
7
  };
@@ -0,0 +1,2 @@
1
+ import { type MetadataEntryDisplayProps } from './types';
2
+ export declare const MetadataEntryDisplay: ({ type, formattedValue, value, taxonomyNodeFetcher, taxonomyKey, scope, }: MetadataEntryDisplayProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { type MetadataInstanceEntryProps } from './types';
2
- export declare const MetadataInstanceEntry: ({ description, name, shouldHideEmptyValues, type, value, }: MetadataInstanceEntryProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MetadataInstanceEntry: ({ description, name, shouldHideEmptyValues, type, value, taxonomyNodeFetcher, taxonomyKey, scope, }: MetadataInstanceEntryProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ declare const messages: {
2
+ loadingResultsErrorAction: {
3
+ defaultMessage: string;
4
+ description: string;
5
+ id: string;
6
+ };
7
+ loadingResultsErrorMessage: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ loadingResultsErrorIconLabel: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
17
+ loadingAriaLabel: {
18
+ defaultMessage: string;
19
+ description: string;
20
+ id: string;
21
+ };
22
+ emptyAncestorLevelValue: {
23
+ defaultMessage: string;
24
+ description: string;
25
+ id: string;
26
+ };
27
+ };
28
+ export default messages;
@@ -0,0 +1,2 @@
1
+ import { type TaxonomyAncestorStatusPillProps } from '../types';
2
+ export declare function TaxonomyAncestorStatusPill({ taxonomyNodeFetcher, scope, taxonomyKey, value, displayValue, }: TaxonomyAncestorStatusPillProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type TaxonomyValueProps } from '../types';
2
+ export declare const TaxonomyValue: ({ value, taxonomyNodeFetcher, taxonomyKey, scope }: TaxonomyValueProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,41 @@
1
+ import { type ReactNode } from 'react';
1
2
  import { type MetadataFieldValue, type MetadataTemplateFieldType } from '../../../../types';
3
+ export type MetadataTaxonomyAncestor = {
4
+ description?: string;
5
+ id: string;
6
+ level: number;
7
+ levelName: string;
8
+ levelValue: string;
9
+ };
10
+ export type TaxonomyNodeFetcher = (scope: string, taxonomyKey: string, taxonomyValue: string) => Promise<MetadataTaxonomyAncestor[]>;
11
+ export type TaxonomyValueProps = {
12
+ scope: string;
13
+ taxonomyKey: string;
14
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
15
+ value?: MetadataFieldValue;
16
+ };
17
+ export type TaxonomyAncestorStatusPillProps = {
18
+ displayValue: string;
19
+ scope: string;
20
+ taxonomyKey: string;
21
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
22
+ value: string;
23
+ };
2
24
  export type MetadataInstanceEntryProps = {
3
25
  name: string;
4
26
  shouldHideEmptyValues: boolean;
5
27
  type: MetadataTemplateFieldType;
6
28
  value?: MetadataFieldValue;
29
+ scope: string;
30
+ taxonomyKey: string;
31
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
7
32
  description?: string;
8
33
  };
34
+ export type MetadataEntryDisplayProps = {
35
+ formattedValue: ReactNode;
36
+ value: MetadataFieldValue;
37
+ type: MetadataTemplateFieldType;
38
+ scope: string;
39
+ taxonomyKey: string;
40
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
41
+ };
@@ -1,7 +1,9 @@
1
1
  import { type MetadataTemplateInstance } from '../../types';
2
+ import { type TaxonomyNodeFetcher } from './subcomponents/metadata-instance-entry/types';
2
3
  export type MetadataInstanceListProps = {
3
4
  areAiSuggestionsAvailable: boolean;
4
5
  isAiSuggestionsFeatureEnabled: boolean;
5
6
  onEdit: (templateInstacne: MetadataTemplateInstance) => void;
6
7
  templateInstances: MetadataTemplateInstance[];
8
+ taxonomyNodeFetcher: TaxonomyNodeFetcher;
7
9
  };
@@ -39,6 +39,7 @@ export type MetadataTemplateField = {
39
39
  key: string;
40
40
  options?: MetadataTemplateFieldOption[];
41
41
  optionsRules?: TaxonomyOptionsRules;
42
+ namespace?: string;
42
43
  taxonomyKey?: string;
43
44
  taxonomyId?: string;
44
45
  type: MetadataTemplateFieldType;
@@ -1,25 +0,0 @@
1
- import "../../../../../../styles/taxonomy-value.css";
2
- import { FilterChip as n } from "@box/blueprint-web";
3
- import { jsx as t } from "react/jsx-runtime";
4
- const l = "_taxonomyValueContainer_1m6f6_1", m = "_taxonomyValueButton_1m6f6_1", u = "_taxonomyValueLabel_1m6f6_8", e = {
5
- taxonomyValueContainer: l,
6
- taxonomyValueButton: m,
7
- taxonomyValueLabel: u
8
- }, x = ({
9
- value: a
10
- }) => !a || !Array.isArray(a) || !a.length ? null : /* @__PURE__ */ t(n.Group, {
11
- className: e.taxonomyValueContainer,
12
- name: "taxonomy-value",
13
- type: "single",
14
- children: a.map((o) => /* @__PURE__ */ t(n.ChipButton, {
15
- className: e.taxonomyValueButton,
16
- value: o.value,
17
- children: /* @__PURE__ */ t(n.Label, {
18
- className: e.taxonomyValueLabel,
19
- children: o.displayValue
20
- })
21
- }, o.value))
22
- });
23
- export {
24
- x as TaxonomyValue
25
- };
@@ -1 +0,0 @@
1
- ._taxonomyValueContainer_1m6f6_1 ._taxonomyValueButton_1m6f6_1{overflow-x:hidden}._taxonomyValueContainer_1m6f6_1 ._taxonomyValueButton_1m6f6_1:focus-visible{overflow-x:hidden}._taxonomyValueButton_1m6f6_1 ._taxonomyValueLabel_1m6f6_8{overflow-x:hidden;text-overflow:ellipsis}
@@ -1,6 +0,0 @@
1
- import { type MetadataFieldValue } from '../../../../types';
2
- type Props = {
3
- value?: MetadataFieldValue;
4
- };
5
- export declare const TaxonomyValue: ({ value }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export {};