@box/metadata-view 0.49.13 → 0.51.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.
@@ -1,98 +1,105 @@
1
- import { useIntl as _ } from "react-intl";
2
- import { IconButton as h, DropdownMenu as n, GridList as M } from "@box/blueprint-web";
3
- import { Ellipsis as S } from "@box/blueprint-web-assets/icons/Fill";
4
- import B from "./messages.js";
5
- import { V as u } from "../../../../chunks/types.js";
6
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
7
- import '../../../../styles/item-action-menu.css';const L = "_tableActionBar_akgtp_1", T = "_actionItemIcon_akgtp_6", d = {
8
- tableActionBar: L,
9
- actionItemIcon: T
1
+ import { useMemo as i } from "react";
2
+ import { useIntl as s } from "react-intl";
3
+ import { IconButton as C, DropdownMenu as t, GridList as _ } from "@box/blueprint-web";
4
+ import { Ellipsis as b } from "@box/blueprint-web-assets/icons/Fill";
5
+ import { V as d } from "../../../../chunks/types.js";
6
+ import L from "./messages.js";
7
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
8
+ import '../../../../styles/item-action-menu.css';const x = "_tableActionBar_akgtp_1", N = "_actionItemIcon_akgtp_6", S = {
9
+ tableActionBar: x,
10
+ actionItemIcon: N
10
11
  };
11
- function k({
12
- item: l,
13
- label: t,
14
- onClick: m,
15
- icon: r
12
+ function T({
13
+ item: e,
14
+ label: n,
15
+ onClick: p,
16
+ icon: o,
17
+ isDisabled: l
16
18
  }) {
17
19
  const I = () => {
18
- m(l);
19
- };
20
- return /* @__PURE__ */ e(n.Item, {
20
+ p(e);
21
+ }, f = i(() => (l == null ? void 0 : l(e)) ?? !1, [l, e]);
22
+ return /* @__PURE__ */ m(t.Item, {
23
+ disabled: f,
21
24
  onClick: I,
22
- children: [/* @__PURE__ */ o(r, {
23
- className: d.actionItemIcon
24
- }), t]
25
- }, t);
25
+ children: [/* @__PURE__ */ r(o, {
26
+ className: S.actionItemIcon
27
+ }), n]
28
+ }, n);
26
29
  }
27
- function G({
28
- actions: l,
29
- inlineActions: t,
30
- isDisabled: m,
31
- item: r,
32
- onOpenChange: I,
33
- subMenuActions: p,
34
- subMenuTrigger: b,
35
- viewMode: i = u.LIST
30
+ function E({
31
+ actions: e,
32
+ inlineActions: n,
33
+ isDisabled: p,
34
+ item: o,
35
+ onOpenChange: l,
36
+ subMenuActions: I,
37
+ subMenuTrigger: f,
38
+ viewMode: h = d.LIST
36
39
  }) {
37
40
  const {
38
- formatMessage: f
39
- } = _(), {
40
- label: C,
41
- icon: g
42
- } = b || {};
43
- return /* @__PURE__ */ e("div", {
44
- className: d.tableActionBar,
45
- children: [i === u.LIST && (t == null ? void 0 : t.map(({
41
+ formatMessage: B
42
+ } = s(), {
43
+ label: $,
44
+ icon: k
45
+ } = f || {};
46
+ return /* @__PURE__ */ m("div", {
47
+ className: S.tableActionBar,
48
+ children: [h === d.LIST && (n == null ? void 0 : n.map(({
46
49
  onClick: a,
47
- label: c,
48
- icon: s
49
- }) => /* @__PURE__ */ o(h, {
50
- "aria-label": c,
51
- icon: s,
52
- onClick: () => a(r),
50
+ label: u,
51
+ icon: M,
52
+ isDisabled: c
53
+ }) => /* @__PURE__ */ r(C, {
54
+ "aria-label": u,
55
+ disabled: (c == null ? void 0 : c(o)) ?? !1,
56
+ icon: M,
57
+ onClick: () => a(o),
53
58
  size: "large"
54
- }, `${r.id}-${c}`))), l ? /* @__PURE__ */ e(n.Root, {
55
- onOpenChange: I,
56
- children: [/* @__PURE__ */ o(n.Trigger, {
57
- children: i === u.LIST ? /* @__PURE__ */ o(h, {
58
- "aria-label": f(B.actionMenu),
59
- disabled: m,
60
- icon: S,
59
+ }, `${o.id}-${u}`))), e ? /* @__PURE__ */ m(t.Root, {
60
+ onOpenChange: l,
61
+ children: [/* @__PURE__ */ r(t.Trigger, {
62
+ children: h === d.LIST ? /* @__PURE__ */ r(C, {
63
+ "aria-label": B(L.actionMenu),
64
+ disabled: p,
65
+ icon: b,
61
66
  size: "large"
62
- }) : /* @__PURE__ */ o(M.ActionIconButton, {
63
- "aria-label": f(B.actionMenu),
64
- disabled: m,
65
- icon: S
67
+ }) : /* @__PURE__ */ r(_.ActionIconButton, {
68
+ "aria-label": B(L.actionMenu),
69
+ disabled: p,
70
+ icon: b
66
71
  })
67
- }), /* @__PURE__ */ e(n.Content, {
72
+ }), /* @__PURE__ */ m(t.Content, {
68
73
  align: "start",
69
- children: [l.map((a) => /* @__PURE__ */ o(k, {
70
- item: r,
74
+ children: [e.map((a) => /* @__PURE__ */ r(T, {
75
+ item: o,
71
76
  ...a
72
- }, a.label)), p && b && /* @__PURE__ */ e(n.SubMenuRoot, {
73
- children: [/* @__PURE__ */ e(n.SubMenuTrigger, {
74
- children: [g && /* @__PURE__ */ o(g, {
75
- className: d.actionItemIcon
76
- }), C]
77
- }), /* @__PURE__ */ o(n.SubMenuContent, {
78
- children: p.map((a) => /* @__PURE__ */ o(k, {
79
- item: r,
77
+ }, a.label)), I && f && /* @__PURE__ */ m(t.SubMenuRoot, {
78
+ children: [/* @__PURE__ */ m(t.SubMenuTrigger, {
79
+ children: [k && /* @__PURE__ */ r(k, {
80
+ className: S.actionItemIcon
81
+ }), $]
82
+ }), /* @__PURE__ */ r(t.SubMenuContent, {
83
+ children: I.map((a) => /* @__PURE__ */ r(T, {
84
+ item: o,
80
85
  ...a
81
86
  }, a.label))
82
87
  })]
83
88
  })]
84
89
  })]
85
- }) : null, i === u.GRID && (t == null ? void 0 : t.map(({
90
+ }) : null, h === d.GRID && (n == null ? void 0 : n.map(({
86
91
  onClick: a,
87
- label: c,
88
- icon: s
89
- }) => /* @__PURE__ */ o(M.ActionIconButton, {
90
- "aria-label": c,
91
- icon: s,
92
- onClick: () => a(r)
93
- }, `${r.id}-${c}`)))]
92
+ label: u,
93
+ icon: M,
94
+ isDisabled: c
95
+ }) => /* @__PURE__ */ r(_.ActionIconButton, {
96
+ "aria-label": u,
97
+ disabled: (c == null ? void 0 : c(o)) ?? !1,
98
+ icon: M,
99
+ onClick: () => a(o)
100
+ }, `${o.id}-${u}`)))]
94
101
  });
95
102
  }
96
103
  export {
97
- G as ItemActionMenu
104
+ E as ItemActionMenu
98
105
  };
@@ -1,35 +1,35 @@
1
1
  export default {
2
- "groupSharedFeatures.emptyState.body": "⟦萬萬萬萬萬萬萬萬萬萬萬 Ťгÿ ăďĵµѕτíňġ ÿοúŕ ƒïĺτêŕŝ ŏг κéŷщőгďŝ. 國國國國國國國國國國國⟧",
3
- "groupSharedFeatures.emptyState.heading": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ŝόřŕÿ, ώě ¢όůĺďʼn'ŧ ƒϊпď ωħâτ ỳøũ'řĕ ļôöκĭŋĝ ƒőř. 國國國國國國國國國國國國國國⟧",
4
- "groupSharedFeatures.metadataView.actionBar.sliderDecreaseSize": "⟦萬萬 Ďêĉřёāѕê 國國⟧",
5
- "groupSharedFeatures.metadataView.actionBar.sliderIncreaseSize": "⟦萬萬 İņčяĕăŝé 國國⟧",
6
- "groupSharedFeatures.metadataView.actionBar.sliderLabel": "⟦萬 Şļіďěґ 國⟧",
7
- "groupSharedFeatures.metadataView.actionBar.switchToGridView": "⟦萬萬萬萬萬 Şŵϊťсн ŧø Ĝŗìď Vіёώ 國國國國國⟧",
8
- "groupSharedFeatures.metadataView.actionBar.switchToListView": "⟦萬萬萬萬萬 Ŝшīţćн τò Ŀїśτ Vîєω 國國國國國⟧",
9
- "groupSharedFeatures.metadataView.filterRow.AllFilters": "⟦萬萬萬 Ãļļ ₣ĭľτεяŝ 國國國⟧",
10
- "groupSharedFeatures.metadataView.filterRow.applyButton": "⟦萬 ÁΡΡĺў 國⟧",
2
+ "groupSharedFeatures.emptyState.body": "⟦萬萬萬萬萬萬萬萬萬萬萬 Τŕγ ąďĵũŝŧĩʼnġ Уóμŗ ƒїľťëřѕ σŕ κέŷшōяďś. 國國國國國國國國國國國⟧",
3
+ "groupSharedFeatures.emptyState.heading": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ѕοягý, ẁέ çóŭļďŋ'τ ƒїŋď шнαţ ўòù'ѓє ľőσĸįлĝ ƒοґ. 國國國國國國國國國國國國國國⟧",
4
+ "groupSharedFeatures.metadataView.actionBar.sliderDecreaseSize": "⟦萬萬 Ðεćѓëåśę 國國⟧",
5
+ "groupSharedFeatures.metadataView.actionBar.sliderIncreaseSize": "⟦萬萬 İπćŕέäśè 國國⟧",
6
+ "groupSharedFeatures.metadataView.actionBar.sliderLabel": "⟦萬 Ŝĺіďèѓ 國⟧",
7
+ "groupSharedFeatures.metadataView.actionBar.switchToGridView": "⟦萬萬萬萬萬 Ŝẁіť¢н τŏ Ġѓíď Vіêẃ 國國國國國⟧",
8
+ "groupSharedFeatures.metadataView.actionBar.switchToListView": "⟦萬萬萬萬萬 Śщíťĉħ ŧо Ļìşŧ Vįēω 國國國國國⟧",
9
+ "groupSharedFeatures.metadataView.filterRow.AllFilters": "⟦萬萬萬 Ăļľ ₣ϊĺťëяş 國國國⟧",
10
+ "groupSharedFeatures.metadataView.filterRow.applyButton": "⟦萬 ÀΡΡĺў 國⟧",
11
11
  "groupSharedFeatures.metadataView.filterRow.chipNameWithCount": "⟦萬萬萬 {name} ({count}) 國國國⟧",
12
- "groupSharedFeatures.metadataView.filterRow.clearButton": "⟦萬 Ĉľέάŗ 國⟧",
13
- "groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle": "⟦萬萬 ₣ιļє ŤÿΡê 國國⟧",
14
- "groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder": "⟦萬萬萬萬 Êňŧêř ķéỳωøґďŝ 國國國國⟧",
15
- "groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "⟦萬萬 Ĺσĉαţįŏň 國國⟧",
16
- "groupSharedFeatures.metadataView.filterRow.textInputPlaceholder": "⟦萬萬 Şěŧ Váļüè 國國⟧",
17
- "groupSharedFeatures.metadataView.filterSidepanel.clearAllButton": "⟦萬萬 Ĉĺĕãґ Αľľ 國國⟧",
18
- "groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel": "⟦萬 Çľöѕē 國⟧",
19
- "groupSharedFeatures.metadataView.filterSidepanel.filtersHeader": "⟦萬萬 ₣īľτēѓѕ 國國⟧",
20
- "groupSharedFeatures.metadataView.filterSidepanel.showResultsButton": "⟦萬 Ѕеãř¢ħ 國⟧",
21
- "groupSharedFeatures.metadataView.gridList.gridView": "⟦萬萬 Ġŗíď Vіёẁ 國國⟧",
12
+ "groupSharedFeatures.metadataView.filterRow.clearButton": "⟦萬 Čĺёăѓ 國⟧",
13
+ "groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle": "⟦萬萬 ₣ιļé ŦўΡё 國國⟧",
14
+ "groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder": "⟦萬萬萬萬 Ĕлťеř ķěỳшøяďś 國國國國⟧",
15
+ "groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "⟦萬萬 Ĺôсăţιôŋ 國國⟧",
16
+ "groupSharedFeatures.metadataView.filterRow.textInputPlaceholder": "⟦萬萬 Śєţ Vąļůе 國國⟧",
17
+ "groupSharedFeatures.metadataView.filterSidepanel.clearAllButton": "⟦萬萬 Ĉļĕàя Ăĺĺ 國國⟧",
18
+ "groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel": "⟦萬 Çļοѕе 國⟧",
19
+ "groupSharedFeatures.metadataView.filterSidepanel.filtersHeader": "⟦萬萬 ₣îļŧеřş 國國⟧",
20
+ "groupSharedFeatures.metadataView.filterSidepanel.showResultsButton": "⟦萬 Śêäřĉħ 國⟧",
21
+ "groupSharedFeatures.metadataView.gridList.gridView": "⟦萬萬 Ĝґîď Vîεω 國國⟧",
22
22
  "groupSharedFeatures.metadataView.inlineEditingCell.unselectedOptionLabel": "⟦ -- ⟧",
23
- "groupSharedFeatures.metadataView.itemActionMenu.actionMenu": "⟦萬萬萬 Ăċťîöй mεńû 國國國⟧",
24
- "groupSharedFeatures.metadataView.itemList.errorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ѕòmëţħϊŋġ шёйţ щяøńġ. Pĺєǻşè ѓеƒřĕşĥ ŧніŝ Ρàğě. 國國國國國國國國國國國國國國⟧",
25
- "groupSharedFeatures.metadataView.itemList.listView": "⟦萬萬 Ļіŝť νíèш 國國⟧",
26
- "groupSharedFeatures.metadataView.itemList.refreshButton": "⟦萬萬 Ґεƒŕéşн 國國⟧",
27
- "groupSharedFeatures.metadataView.itemList.selectAll": "⟦萬萬 Ŝêĺēĉţ äļļ 國國⟧",
28
- "groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "⟦萬萬萬萬 Ŝёļëćť ã ƒōĺďęѓ 國國國國⟧",
29
- "groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel": "⟦萬 Śëâŗćħ 國⟧",
30
- "groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel": "⟦萬 Ćĺēāŗ 國⟧",
31
- "groupSharedFeatures.metadataView.pagination.nextPageButton": "⟦萬 Νę×ŧ 國⟧",
32
- "groupSharedFeatures.metadataView.pagination.pageEntryStatus": "⟦萬萬萬萬萬萬萬萬萬萬萬 Śħŏωĭŋĝ {startEntryIndex} τó {endEntryIndex} öƒ {totalCount} ėпţґíέş 國國國國國國國國國國國⟧",
33
- "groupSharedFeatures.metadataView.pagination.paginationLabel": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Păġíňατĭôл ηανįğãťīŏŋ сôйŧгσĺŝ àпď ĉůґѓêηť Ρǻġё îņƒōяmàŧíôп 國國國國國國國國國國國國國國國國國⟧",
34
- "groupSharedFeatures.metadataView.pagination.previousPageButton": "⟦萬萬 Pŗëνϊóüŝ 國國⟧"
23
+ "groupSharedFeatures.metadataView.itemActionMenu.actionMenu": "⟦萬萬萬 Á¢ţïоη męʼnù 國國國⟧",
24
+ "groupSharedFeatures.metadataView.itemList.errorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Şòmёťнîʼnĝ шέņť щгοйġ. Pļёąŝė řèƒяēşн ŧнїś Ράĝε. 國國國國國國國國國國國國國國⟧",
25
+ "groupSharedFeatures.metadataView.itemList.listView": "⟦萬萬 Ĺĭѕŧ νīëώ 國國⟧",
26
+ "groupSharedFeatures.metadataView.itemList.refreshButton": "⟦萬萬 Ŕєƒřëşн 國國⟧",
27
+ "groupSharedFeatures.metadataView.itemList.selectAll": "⟦萬萬 Şëĺèċŧ ąļĺ 國國⟧",
28
+ "groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "⟦萬萬萬萬 Ŝéľέćţ α ƒοĺďēř 國國國國⟧",
29
+ "groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel": "⟦萬 Ѕėąŗçħ 國⟧",
30
+ "groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel": "⟦萬 Çĺеàя 國⟧",
31
+ "groupSharedFeatures.metadataView.pagination.nextPageButton": "⟦萬 Ñē×τ 國⟧",
32
+ "groupSharedFeatures.metadataView.pagination.pageEntryStatus": "⟦萬萬萬萬萬萬萬萬萬萬萬 Ѕнοŵїήğ {startEntryIndex} ŧо {endEntryIndex} őƒ {totalCount} èлťѓіéѕ 國國國國國國國國國國國⟧",
33
+ "groupSharedFeatures.metadataView.pagination.paginationLabel": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Pǻġϊиãťíσŋ пâνìġãťϊόň ĉòлťŕõļş ãпď çцŗřėʼnŧ Ρǻğê ĩπƒόгmατîóй 國國國國國國國國國國國國國國國國國⟧",
34
+ "groupSharedFeatures.metadataView.pagination.previousPageButton": "⟦萬萬 Pяēνїσųş 國國⟧"
35
35
  }
@@ -1,66 +1,66 @@
1
1
  # Body text for the empty state when no items are found
2
- groupSharedFeatures.emptyState.body = ⟦萬萬萬萬萬萬萬萬萬萬萬 Ťгÿ ăďĵµѕτíňġ ÿοúŕ ƒïĺτêŕŝ ŏг κéŷщőгďŝ. 國國國國國國國國國國國⟧
2
+ groupSharedFeatures.emptyState.body = ⟦萬萬萬萬萬萬萬萬萬萬萬 Τŕγ ąďĵũŝŧĩʼnġ Уóμŗ ƒїľťëřѕ σŕ κέŷшōяďś. 國國國國國國國國國國國⟧
3
3
  # Heading for the empty state when no items are found
4
- groupSharedFeatures.emptyState.heading = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ŝόřŕÿ, ώě ¢όůĺďʼn'ŧ ƒϊпď ωħâτ ỳøũ'řĕ ļôöκĭŋĝ ƒőř. 國國國國國國國國國國國國國國⟧
4
+ groupSharedFeatures.emptyState.heading = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ѕοягý, ẁέ çóŭļďŋ'τ ƒїŋď шнαţ ўòù'ѓє ľőσĸįлĝ ƒοґ. 國國國國國國國國國國國國國國⟧
5
5
  # Label for decreasing the size of column.
6
- groupSharedFeatures.metadataView.actionBar.sliderDecreaseSize = ⟦萬萬 Ďêĉřёāѕê 國國⟧
6
+ groupSharedFeatures.metadataView.actionBar.sliderDecreaseSize = ⟦萬萬 Ðεćѓëåśę 國國⟧
7
7
  # Label for increasing the size of column.
8
- groupSharedFeatures.metadataView.actionBar.sliderIncreaseSize = ⟦萬萬 İņčяĕăŝé 國國⟧
8
+ groupSharedFeatures.metadataView.actionBar.sliderIncreaseSize = ⟦萬萬 İπćŕέäśè 國國⟧
9
9
  # Label for the slider that controls the size of column.
10
- groupSharedFeatures.metadataView.actionBar.sliderLabel = ⟦萬 Şļіďěґ 國⟧
10
+ groupSharedFeatures.metadataView.actionBar.sliderLabel = ⟦萬 Ŝĺіďèѓ 國⟧
11
11
  # Label to switch to grid view
12
- groupSharedFeatures.metadataView.actionBar.switchToGridView = ⟦萬萬萬萬萬 Şŵϊťсн ŧø Ĝŗìď Vіёώ 國國國國國⟧
12
+ groupSharedFeatures.metadataView.actionBar.switchToGridView = ⟦萬萬萬萬萬 Ŝẁіť¢н τŏ Ġѓíď Vіêẃ 國國國國國⟧
13
13
  # Label to switch to list view
14
- groupSharedFeatures.metadataView.actionBar.switchToListView = ⟦萬萬萬萬萬 Ŝшīţćн τò Ŀїśτ Vîєω 國國國國國⟧
14
+ groupSharedFeatures.metadataView.actionBar.switchToListView = ⟦萬萬萬萬萬 Śщíťĉħ ŧо Ļìşŧ Vįēω 國國國國國⟧
15
15
  # Button label to open the sidepanel with all filters
16
- groupSharedFeatures.metadataView.filterRow.AllFilters = ⟦萬萬萬 Ãļļ ₣ĭľτεяŝ 國國國⟧
16
+ groupSharedFeatures.metadataView.filterRow.AllFilters = ⟦萬萬萬 Ăļľ ₣ϊĺťëяş 國國國⟧
17
17
  # Button label to apply the current input as a filter to the metadata table
18
- groupSharedFeatures.metadataView.filterRow.applyButton = ⟦萬 ÁΡΡĺў 國⟧
18
+ groupSharedFeatures.metadataView.filterRow.applyButton = ⟦萬 ÀΡΡĺў 國⟧
19
19
  # Label for a filter chip that includes the name and count of selected options
20
20
  groupSharedFeatures.metadataView.filterRow.chipNameWithCount = ⟦萬萬萬 {name} ({count}) 國國國⟧
21
21
  # Button label to clear the current input in a textarea
22
- groupSharedFeatures.metadataView.filterRow.clearButton = ⟦萬 Ĉľέάŗ 國⟧
22
+ groupSharedFeatures.metadataView.filterRow.clearButton = ⟦萬 Čĺёăѓ 國⟧
23
23
  # Title for the file type filter group
24
- groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle = ⟦萬萬 ₣ιļє ŤÿΡê 國國⟧
24
+ groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle = ⟦萬萬 ₣ιļé ŦўΡё 國國⟧
25
25
  # Placeholder text for the keyword search filter
26
- groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder = ⟦萬萬萬萬 Êňŧêř ķéỳωøґďŝ 國國國國⟧
26
+ groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder = ⟦萬萬萬萬 Ĕлťеř ķěỳшøяďś 國國國國⟧
27
27
  # Title for the location filter group
28
- groupSharedFeatures.metadataView.filterRow.locationFilterTitle = ⟦萬萬 Ĺσĉαţįŏň 國國⟧
28
+ groupSharedFeatures.metadataView.filterRow.locationFilterTitle = ⟦萬萬 Ĺôсăţιôŋ 國國⟧
29
29
  # Placeholder text for the input field in the filter row
30
- groupSharedFeatures.metadataView.filterRow.textInputPlaceholder = ⟦萬萬 Şěŧ Váļüè 國國⟧
30
+ groupSharedFeatures.metadataView.filterRow.textInputPlaceholder = ⟦萬萬 Śєţ Vąļůе 國國⟧
31
31
  # Button label to clear all filters in the sidepanel
32
- groupSharedFeatures.metadataView.filterSidepanel.clearAllButton = ⟦萬萬 Ĉĺĕãґ Αľľ 國國⟧
32
+ groupSharedFeatures.metadataView.filterSidepanel.clearAllButton = ⟦萬萬 Ĉļĕàя Ăĺĺ 國國⟧
33
33
  # Aria label for the close button in the filter sidepanel
34
- groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel = ⟦萬 Çľöѕē 國⟧
34
+ groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel = ⟦萬 Çļοѕе 國⟧
35
35
  # Header for the filter sidepanel
36
- groupSharedFeatures.metadataView.filterSidepanel.filtersHeader = ⟦萬萬 ₣īľτēѓѕ 國國⟧
36
+ groupSharedFeatures.metadataView.filterSidepanel.filtersHeader = ⟦萬萬 ₣îļŧеřş 國國⟧
37
37
  # Button label to apply filters and show results
38
- groupSharedFeatures.metadataView.filterSidepanel.showResultsButton = ⟦萬 Ѕеãř¢ħ 國⟧
38
+ groupSharedFeatures.metadataView.filterSidepanel.showResultsButton = ⟦萬 Śêäřĉħ 國⟧
39
39
  # Label for the grid view of files and folders
40
- groupSharedFeatures.metadataView.gridList.gridView = ⟦萬萬 Ġŗíď Vіёẁ 國國⟧
40
+ groupSharedFeatures.metadataView.gridList.gridView = ⟦萬萬 Ĝґîď Vîεω 國國⟧
41
41
  # Label for the default unselected option in inline editing dropdowns
42
42
  groupSharedFeatures.metadataView.inlineEditingCell.unselectedOptionLabel = ⟦ -- ⟧
43
43
  # Label for the action menu for an item in the metadata view list
44
- groupSharedFeatures.metadataView.itemActionMenu.actionMenu = ⟦萬萬萬 Ăċťîöй mεńû 國國國⟧
44
+ groupSharedFeatures.metadataView.itemActionMenu.actionMenu = ⟦萬萬萬 Á¢ţïоη męʼnù 國國國⟧
45
45
  # Error message displayed when metadata fails to load
46
- groupSharedFeatures.metadataView.itemList.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ѕòmëţħϊŋġ шёйţ щяøńġ. Pĺєǻşè ѓеƒřĕşĥ ŧніŝ Ρàğě. 國國國國國國國國國國國國國國⟧
46
+ groupSharedFeatures.metadataView.itemList.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Şòmёťнîʼnĝ шέņť щгοйġ. Pļёąŝė řèƒяēşн ŧнїś Ράĝε. 國國國國國國國國國國國國國國⟧
47
47
  # Label for the list of files and folders displayed in a list view
48
- groupSharedFeatures.metadataView.itemList.listView = ⟦萬萬 Ļіŝť νíèш 國國⟧
48
+ groupSharedFeatures.metadataView.itemList.listView = ⟦萬萬 Ĺĭѕŧ νīëώ 國國⟧
49
49
  # Label for the refresh button in error state
50
- groupSharedFeatures.metadataView.itemList.refreshButton = ⟦萬萬 Ґεƒŕéşн 國國⟧
50
+ groupSharedFeatures.metadataView.itemList.refreshButton = ⟦萬萬 Ŕєƒřëşн 國國⟧
51
51
  # Label for the select all checkbox in the metadata table
52
- groupSharedFeatures.metadataView.itemList.selectAll = ⟦萬萬 Ŝêĺēĉţ äļļ 國國⟧
52
+ groupSharedFeatures.metadataView.itemList.selectAll = ⟦萬萬 Şëĺèċŧ ąļĺ 國國⟧
53
53
  # Placeholder for select folder trigger
54
- groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint = ⟦萬萬萬萬 Ŝёļëćť ã ƒōĺďęѓ 國國國國⟧
54
+ groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint = ⟦萬萬萬萬 Ŝéľέćţ α ƒοĺďēř 國國國國⟧
55
55
  # Aria label for the search input
56
- groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel = ⟦萬 Śëâŗćħ 國⟧
56
+ groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel = ⟦萬 Ѕėąŗçħ 國⟧
57
57
  # Aria label for the clear button in the search input
58
- groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel = ⟦萬 Ćĺēāŗ 國⟧
58
+ groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel = ⟦萬 Çĺеàя 國⟧
59
59
  # Label for the next page button
60
- groupSharedFeatures.metadataView.pagination.nextPageButton = ⟦萬 Νę×ŧ 國⟧
60
+ groupSharedFeatures.metadataView.pagination.nextPageButton = ⟦萬 Ñē×τ 國⟧
61
61
  # Pagination menu status with the range of entries shown
62
- groupSharedFeatures.metadataView.pagination.pageEntryStatus = ⟦萬萬萬萬萬萬萬萬萬萬萬 Śħŏωĭŋĝ {startEntryIndex} τó {endEntryIndex} öƒ {totalCount} ėпţґíέş 國國國國國國國國國國國⟧
62
+ groupSharedFeatures.metadataView.pagination.pageEntryStatus = ⟦萬萬萬萬萬萬萬萬萬萬萬 Ѕнοŵїήğ {startEntryIndex} ŧо {endEntryIndex} őƒ {totalCount} èлťѓіéѕ 國國國國國國國國國國國⟧
63
63
  # Aria label for the pagination component, which includes entry status and previous/next page controls
64
- groupSharedFeatures.metadataView.pagination.paginationLabel = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Păġíňατĭôл ηανįğãťīŏŋ сôйŧгσĺŝ àпď ĉůґѓêηť Ρǻġё îņƒōяmàŧíôп 國國國國國國國國國國國國國國國國國⟧
64
+ groupSharedFeatures.metadataView.pagination.paginationLabel = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Pǻġϊиãťíσŋ пâνìġãťϊόň ĉòлťŕõļş ãпď çцŗřėʼnŧ Ρǻğê ĩπƒόгmατîóй 國國國國國國國國國國國國國國國國國⟧
65
65
  # Label for the previous page button
66
- groupSharedFeatures.metadataView.pagination.previousPageButton = ⟦萬萬 Pŗëνϊóüŝ 國國⟧
66
+ groupSharedFeatures.metadataView.pagination.previousPageButton = ⟦萬萬 Pяēνїσųş 國國⟧
@@ -5,6 +5,7 @@ export interface ItemAction {
5
5
  label: string;
6
6
  onClick: (item: Item) => void;
7
7
  icon: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
8
+ isDisabled?: (item: Item) => boolean;
8
9
  }
9
10
  export interface ItemActionMenuProps {
10
11
  actions?: ItemAction[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-view",
3
- "version": "0.49.13",
3
+ "version": "0.51.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^12.66.0",
@@ -20,10 +20,10 @@
20
20
  "devDependencies": {
21
21
  "@box/blueprint-web": "^12.76.0",
22
22
  "@box/blueprint-web-assets": "^4.68.0",
23
- "@box/box-item-type-selector": "^0.70.13",
23
+ "@box/box-item-type-selector": "^0.71.0",
24
24
  "@box/eslint-plugin-blueprint": "1.0.4",
25
- "@box/item-icon": "^0.24.13",
26
- "@box/metadata-filter": "^1.27.13",
25
+ "@box/item-icon": "^0.25.0",
26
+ "@box/metadata-filter": "^1.28.0",
27
27
  "@box/storybook-utils": "0.14.4",
28
28
  "@box/types": "0.2.1",
29
29
  "@tanstack/react-virtual": "^3.10.8",