@box/metadata-view 1.6.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/lib/components/filter-row/metadata-filter-chip.js +28 -26
- package/dist/esm/lib/components/filter-row/select-filter-chip.js +43 -38
- package/dist/i18n/en-x-pseudo.js +31 -31
- package/dist/i18n/en-x-pseudo.properties +31 -31
- package/dist/types/lib/components/filter-row/select-filter-chip.d.ts +2 -1
- package/dist/types/lib/test-utils/mock-data.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MetadataStringField as
|
|
2
|
-
import { useIntl as
|
|
3
|
-
import { MetadataFileChip as
|
|
1
|
+
import { MetadataStringField as f, MetadataFloatField as h, MetadataDateField as M } from "@box/metadata-filter";
|
|
2
|
+
import { useIntl as C } from "react-intl";
|
|
3
|
+
import { MetadataFileChip as b } from "../metadata-value/metadata-file-chip.js";
|
|
4
4
|
import { FormFilterChip as n } from "./form-filter-chip.js";
|
|
5
|
-
import { SelectFilterChip as
|
|
5
|
+
import { SelectFilterChip as v } from "./select-filter-chip.js";
|
|
6
6
|
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
-
const
|
|
7
|
+
const w = ({
|
|
8
8
|
filterOption: c,
|
|
9
9
|
formRef: i
|
|
10
10
|
}) => {
|
|
@@ -12,65 +12,67 @@ const j = ({
|
|
|
12
12
|
canUseRelativeDates: d,
|
|
13
13
|
customDateFilterOptions: s,
|
|
14
14
|
fieldType: o,
|
|
15
|
-
icon:
|
|
15
|
+
icon: l,
|
|
16
16
|
id: e,
|
|
17
17
|
name: a,
|
|
18
18
|
options: m,
|
|
19
|
-
|
|
19
|
+
placeholder: p,
|
|
20
|
+
variant: u
|
|
20
21
|
} = c, {
|
|
21
|
-
locale:
|
|
22
|
-
} =
|
|
22
|
+
locale: F
|
|
23
|
+
} = C(), r = `metadata.fields.${e}`;
|
|
23
24
|
switch (o) {
|
|
24
25
|
case "date":
|
|
25
26
|
return /* @__PURE__ */ t(n, {
|
|
26
27
|
formRef: i,
|
|
27
|
-
icon:
|
|
28
|
+
icon: l,
|
|
28
29
|
id: e,
|
|
29
30
|
name: a,
|
|
30
|
-
children: /* @__PURE__ */ t(
|
|
31
|
+
children: /* @__PURE__ */ t(M, {
|
|
31
32
|
canUseRelativeDates: d,
|
|
32
33
|
customDateFilterOptions: s,
|
|
33
34
|
direction: "vertical",
|
|
34
|
-
fieldNamePrefix:
|
|
35
|
+
fieldNamePrefix: r,
|
|
35
36
|
label: a,
|
|
36
|
-
locale:
|
|
37
|
+
locale: F
|
|
37
38
|
})
|
|
38
39
|
}, e);
|
|
39
40
|
case "float":
|
|
40
41
|
return /* @__PURE__ */ t(n, {
|
|
41
42
|
formRef: i,
|
|
42
|
-
icon:
|
|
43
|
+
icon: l,
|
|
43
44
|
id: e,
|
|
44
45
|
name: a,
|
|
45
|
-
children: /* @__PURE__ */ t(
|
|
46
|
-
fieldNamePrefix:
|
|
46
|
+
children: /* @__PURE__ */ t(h, {
|
|
47
|
+
fieldNamePrefix: r,
|
|
47
48
|
label: a
|
|
48
49
|
})
|
|
49
50
|
}, e);
|
|
50
51
|
case "string":
|
|
51
52
|
return /* @__PURE__ */ t(n, {
|
|
52
53
|
formRef: i,
|
|
53
|
-
icon:
|
|
54
|
+
icon: l,
|
|
54
55
|
id: e,
|
|
55
56
|
name: a,
|
|
56
|
-
children: /* @__PURE__ */ t(
|
|
57
|
-
fieldNamePrefix:
|
|
57
|
+
children: /* @__PURE__ */ t(f, {
|
|
58
|
+
fieldNamePrefix: r,
|
|
58
59
|
label: a
|
|
59
60
|
})
|
|
60
61
|
}, e);
|
|
61
62
|
case "multiSelect":
|
|
62
|
-
if (
|
|
63
|
-
return /* @__PURE__ */ t(
|
|
63
|
+
if (u === "file")
|
|
64
|
+
return /* @__PURE__ */ t(b, {
|
|
64
65
|
id: e
|
|
65
66
|
});
|
|
66
67
|
case "enum":
|
|
67
|
-
return /* @__PURE__ */ t(
|
|
68
|
-
fieldNamePrefix:
|
|
68
|
+
return /* @__PURE__ */ t(v, {
|
|
69
|
+
fieldNamePrefix: r,
|
|
69
70
|
formRef: i,
|
|
70
|
-
icon:
|
|
71
|
+
icon: l,
|
|
71
72
|
id: e,
|
|
72
73
|
name: a,
|
|
73
74
|
options: m,
|
|
75
|
+
placeholder: p,
|
|
74
76
|
type: o
|
|
75
77
|
});
|
|
76
78
|
default:
|
|
@@ -78,6 +80,6 @@ const j = ({
|
|
|
78
80
|
}
|
|
79
81
|
};
|
|
80
82
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
w as MetadataFilterChip,
|
|
84
|
+
w as default
|
|
83
85
|
};
|
|
@@ -1,55 +1,60 @@
|
|
|
1
|
-
import { DropdownMenu as
|
|
2
|
-
import { useFormikContext as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import
|
|
6
|
-
import { jsxs as
|
|
7
|
-
const
|
|
8
|
-
fieldNamePrefix:
|
|
9
|
-
formRef:
|
|
10
|
-
icon:
|
|
11
|
-
id:
|
|
1
|
+
import { DropdownMenu as s, FilterChip as a } from "@box/blueprint-web";
|
|
2
|
+
import { useFormikContext as V } from "formik";
|
|
3
|
+
import { useState as j } from "react";
|
|
4
|
+
import { useIntl as D } from "react-intl";
|
|
5
|
+
import L from "./messages.js";
|
|
6
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
7
|
+
const W = ({
|
|
8
|
+
fieldNamePrefix: v,
|
|
9
|
+
formRef: x,
|
|
10
|
+
icon: h,
|
|
11
|
+
id: i,
|
|
12
12
|
name: l,
|
|
13
13
|
options: o,
|
|
14
|
-
type:
|
|
14
|
+
type: u,
|
|
15
|
+
placeholder: n
|
|
15
16
|
}) => {
|
|
16
|
-
var
|
|
17
|
+
var f, p, g, k;
|
|
17
18
|
const {
|
|
18
|
-
formatMessage:
|
|
19
|
-
} =
|
|
20
|
-
values:
|
|
21
|
-
setFieldValue:
|
|
22
|
-
submitForm:
|
|
23
|
-
} =
|
|
19
|
+
formatMessage: b
|
|
20
|
+
} = D(), [w, F] = j(!1), {
|
|
21
|
+
values: I,
|
|
22
|
+
setFieldValue: y,
|
|
23
|
+
submitForm: z
|
|
24
|
+
} = V(), d = (k = (g = (p = (f = I.metadata) == null ? void 0 : f.fields) == null ? void 0 : p[i]) == null ? void 0 : g.value) == null ? void 0 : k.enum, A = Array.isArray(d) ? d : [], e = new Set(A), O = e.size > 0 ? b(L.chipNameWithCount, {
|
|
24
25
|
name: l,
|
|
25
26
|
count: e.size
|
|
26
|
-
}) : l,
|
|
27
|
-
|
|
27
|
+
}) : l, S = !!n && u !== "multiSelect", C = async (r, c) => {
|
|
28
|
+
u === "enum" ? e.clear() : e.delete(c), r && c !== n && e.add(c), await y(`${v}.value.enum`, Array.from(e)), z();
|
|
28
29
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
onOpenChange:
|
|
30
|
+
return /* @__PURE__ */ m(s.Root, {
|
|
31
|
+
onOpenChange: F,
|
|
31
32
|
open: w,
|
|
32
|
-
children: [/* @__PURE__ */ t(
|
|
33
|
+
children: [/* @__PURE__ */ t(s.Trigger, {
|
|
33
34
|
asChild: !0,
|
|
34
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ m(a.TriggerChip, {
|
|
35
36
|
selected: e.size > 0,
|
|
36
|
-
value:
|
|
37
|
-
children: [
|
|
38
|
-
icon:
|
|
39
|
-
}), /* @__PURE__ */ t(
|
|
40
|
-
children:
|
|
41
|
-
}), /* @__PURE__ */ t(
|
|
42
|
-
},
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
container:
|
|
45
|
-
children:
|
|
37
|
+
value: i,
|
|
38
|
+
children: [h && /* @__PURE__ */ t(a.Icon, {
|
|
39
|
+
icon: h
|
|
40
|
+
}), /* @__PURE__ */ t(a.Label, {
|
|
41
|
+
children: O
|
|
42
|
+
}), /* @__PURE__ */ t(a.DropdownIndicator, {})]
|
|
43
|
+
}, i)
|
|
44
|
+
}), /* @__PURE__ */ m(s.Content, {
|
|
45
|
+
container: x.current,
|
|
46
|
+
children: [S && /* @__PURE__ */ t(s.CheckboxItem, {
|
|
47
|
+
checked: e.size === 0,
|
|
48
|
+
onCheckedChange: (r) => C(r, n),
|
|
49
|
+
children: n
|
|
50
|
+
}, n), o == null ? void 0 : o.map((r) => /* @__PURE__ */ t(s.CheckboxItem, {
|
|
46
51
|
checked: e.has(r),
|
|
47
|
-
onCheckedChange: (
|
|
52
|
+
onCheckedChange: (c) => C(c, r),
|
|
48
53
|
children: r
|
|
49
|
-
}, r))
|
|
54
|
+
}, r))]
|
|
50
55
|
})]
|
|
51
56
|
});
|
|
52
57
|
};
|
|
53
58
|
export {
|
|
54
|
-
|
|
59
|
+
W as SelectFilterChip
|
|
55
60
|
};
|
package/dist/i18n/en-x-pseudo.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"groupSharedFeatures.emptyState.body": "⟦萬萬萬萬萬萬萬萬萬萬萬
|
|
3
|
-
"groupSharedFeatures.emptyState.heading": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬
|
|
4
|
-
"groupSharedFeatures.metadataView.actionBar.sliderDecreaseSize": "⟦萬萬
|
|
5
|
-
"groupSharedFeatures.metadataView.actionBar.sliderIncreaseSize": "⟦萬萬
|
|
6
|
-
"groupSharedFeatures.metadataView.actionBar.sliderLabel": "⟦萬
|
|
7
|
-
"groupSharedFeatures.metadataView.actionBar.switchToGridView": "⟦萬萬萬萬萬
|
|
8
|
-
"groupSharedFeatures.metadataView.actionBar.switchToListView": "⟦萬萬萬萬萬
|
|
9
|
-
"groupSharedFeatures.metadataView.filterRow.AllFilters": "⟦萬萬萬
|
|
10
|
-
"groupSharedFeatures.metadataView.filterRow.applyButton": "⟦萬
|
|
2
|
+
"groupSharedFeatures.emptyState.body": "⟦萬萬萬萬萬萬萬萬萬萬萬 Τяÿ âďĵúşţιňġ ŷóμŗ ƒіļτеґŝ øѓ ĸěýώôяďş. 國國國國國國國國國國國⟧",
|
|
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": "⟦萬萬
|
|
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": "⟦萬萬
|
|
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": "⟦萬萬萬
|
|
24
|
-
"groupSharedFeatures.metadataView.itemList.errorMessage": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬
|
|
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": "⟦萬萬萬萬萬萬萬萬萬萬萬
|
|
33
|
-
"groupSharedFeatures.metadataView.pagination.paginationLabel": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 P
|
|
34
|
-
"groupSharedFeatures.metadataView.pagination.previousPageButton": "⟦萬萬 P
|
|
23
|
+
"groupSharedFeatures.metadataView.itemActionMenu.actionMenu": "⟦萬萬萬 Äĉťíøй mέʼnų 國國國⟧",
|
|
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άĝιπāŧіóʼ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 = ⟦萬萬萬萬萬萬萬萬萬萬萬 Τяÿ âďĵúşţιňġ ŷóμŗ ƒіļτеґŝ øѓ ĸěýώôяďş. 國國國國國國國國國國國⟧
|
|
3
3
|
# Heading for the empty state when no items are found
|
|
4
|
-
groupSharedFeatures.emptyState.heading = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬
|
|
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 = ⟦萬萬萬萬萬
|
|
12
|
+
groupSharedFeatures.metadataView.actionBar.switchToGridView = ⟦萬萬萬萬萬 Ŝωїţсĥ τø Ğяϊď Vιέш 國國國國國⟧
|
|
13
13
|
# Label to switch to list view
|
|
14
|
-
groupSharedFeatures.metadataView.actionBar.switchToListView = ⟦萬萬萬萬萬
|
|
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 = ⟦萬萬
|
|
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 = ⟦萬萬
|
|
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 = ⟦萬萬萬
|
|
44
|
+
groupSharedFeatures.metadataView.itemActionMenu.actionMenu = ⟦萬萬萬 Äĉťíøй mέʼnų 國國國⟧
|
|
45
45
|
# Error message displayed when metadata fails to load
|
|
46
|
-
groupSharedFeatures.metadataView.itemList.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬
|
|
46
|
+
groupSharedFeatures.metadataView.itemList.errorMessage = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ѕômëŧħįňĝ щёπŧ ẁѓοпġ. 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 = ⟦萬萬萬萬萬萬萬萬萬萬萬
|
|
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
|
|
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ѓēνíóûś 國國⟧
|
|
@@ -6,6 +6,7 @@ export interface SelectFilterChipProps {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
options?: string[];
|
|
9
|
+
placeholder?: string;
|
|
9
10
|
type: MetadataFieldType;
|
|
10
11
|
}
|
|
11
|
-
export declare const SelectFilterChip: ({ fieldNamePrefix, formRef, icon, id, name, options, type, }: SelectFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const SelectFilterChip: ({ fieldNamePrefix, formRef, icon, id, name, options, type, placeholder, }: SelectFilterChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,7 @@ export declare const mockFilterOptionsWithoutName: FilterOption[];
|
|
|
22
22
|
export declare const mockFilterGroupsWithoutName: FilterGroup[];
|
|
23
23
|
export declare const mockFilterOptionsWithInvalidType: FilterOption[];
|
|
24
24
|
export declare const mockFilterOptionsWithSomeChipsHidden: FilterOption[];
|
|
25
|
+
export declare const mockFilterOptionsWithEnumPlaceholder: FilterOption[];
|
|
25
26
|
export declare const mockMetadata: Item[];
|
|
26
27
|
export declare const mockMetadataWithThumbnail: Item[];
|
|
27
28
|
export declare const mockSortableColumns: Column[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-view",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@box/blueprint-web": "^12.76.2",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"react-intl": "^6.4.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@box/blueprint-web": "^12.
|
|
21
|
+
"@box/blueprint-web": "^12.90.0",
|
|
22
22
|
"@box/blueprint-web-assets": "^4.75.0",
|
|
23
|
-
"@box/box-item-type-selector": "^1.
|
|
23
|
+
"@box/box-item-type-selector": "^1.3.0",
|
|
24
24
|
"@box/eslint-plugin-blueprint": "1.0.5",
|
|
25
|
-
"@box/item-icon": "^1.
|
|
26
|
-
"@box/metadata-filter": "^1.
|
|
25
|
+
"@box/item-icon": "^1.4.0",
|
|
26
|
+
"@box/metadata-filter": "^1.40.0",
|
|
27
27
|
"@box/storybook-utils": "0.14.11",
|
|
28
28
|
"@box/types": "1.0.0",
|
|
29
29
|
"@tanstack/react-virtual": "^3.10.8",
|