@box/metadata-view 1.3.1 → 1.5.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-sidepanel/filter.js +57 -50
- package/dist/esm/lib/components/metadata-value/metadata-radio-field.js +24 -20
- 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/types.d.ts +1 -0
- package/dist/types/lib/components/metadata-value/metadata-radio-field.d.ts +2 -1
- package/package.json +4 -4
|
@@ -1,143 +1,150 @@
|
|
|
1
|
-
import { MetadataStringField as f, MetadataMultiSelectField as
|
|
2
|
-
import { useIntl as
|
|
1
|
+
import { MetadataStringField as f, MetadataMultiSelectField as m, MetadataEnumField as s, MetadataFloatField as F, MetadataDateField as M } from "@box/metadata-filter";
|
|
2
|
+
import { useIntl as o } from "react-intl";
|
|
3
3
|
import { MetadataFileField as x } from "../metadata-value/metadata-file-field.js";
|
|
4
4
|
import { MetadataLocationField as b } from "../metadata-value/metadata-location-field.js";
|
|
5
|
-
import { MetadataRadioField as
|
|
6
|
-
import { MetadataCheckboxField as
|
|
7
|
-
import { MetadataSearchField as
|
|
8
|
-
import { jsx as
|
|
9
|
-
const i = (e) => `metadata.fields.${e}`,
|
|
5
|
+
import { MetadataRadioField as S } from "../metadata-value/metadata-radio-field.js";
|
|
6
|
+
import { MetadataCheckboxField as h } from "../metadata-value/metadata-checkbox-field.js";
|
|
7
|
+
import { MetadataSearchField as P } from "../metadata-value/metadata-search-field.js";
|
|
8
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
9
|
+
const i = (e) => `metadata.fields.${e}`, g = ({
|
|
10
10
|
id: e,
|
|
11
|
-
name:
|
|
11
|
+
name: t,
|
|
12
12
|
placeholder: l,
|
|
13
13
|
variant: r
|
|
14
14
|
}) => {
|
|
15
15
|
switch (r) {
|
|
16
16
|
case "search":
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ a(P, {
|
|
18
18
|
id: e,
|
|
19
|
-
name:
|
|
19
|
+
name: t,
|
|
20
20
|
placeholder: l
|
|
21
21
|
});
|
|
22
22
|
case "default":
|
|
23
23
|
default:
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ a(f, {
|
|
25
25
|
fieldNamePrefix: i(e),
|
|
26
|
-
label:
|
|
26
|
+
label: t || "",
|
|
27
27
|
placeholder: l
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}, N = ({
|
|
31
31
|
id: e,
|
|
32
|
-
name:
|
|
32
|
+
name: t,
|
|
33
33
|
variant: l,
|
|
34
34
|
parentRef: r
|
|
35
35
|
}) => {
|
|
36
36
|
switch (l) {
|
|
37
37
|
case "file":
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ a(x, {
|
|
39
39
|
id: e
|
|
40
40
|
});
|
|
41
41
|
case "checkbox":
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ a(h, {
|
|
43
43
|
id: e,
|
|
44
|
-
name:
|
|
44
|
+
name: t
|
|
45
45
|
});
|
|
46
46
|
case "default":
|
|
47
47
|
default:
|
|
48
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ a(m, {
|
|
49
49
|
fieldNamePrefix: i(e),
|
|
50
|
-
label:
|
|
50
|
+
label: t || "",
|
|
51
51
|
portalElement: r
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}, w = ({
|
|
55
55
|
id: e,
|
|
56
|
-
name:
|
|
56
|
+
name: t,
|
|
57
57
|
parentRef: l,
|
|
58
58
|
variant: r,
|
|
59
59
|
renderer: c,
|
|
60
|
-
triggerCallback:
|
|
61
|
-
placeholder:
|
|
60
|
+
triggerCallback: n,
|
|
61
|
+
placeholder: d
|
|
62
62
|
}) => {
|
|
63
63
|
const {
|
|
64
64
|
locale: u
|
|
65
|
-
} =
|
|
65
|
+
} = o();
|
|
66
66
|
switch (r) {
|
|
67
67
|
case "file":
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ a(b, {
|
|
69
69
|
id: e,
|
|
70
70
|
renderer: c,
|
|
71
|
-
triggerSetValueCallback:
|
|
71
|
+
triggerSetValueCallback: n
|
|
72
72
|
});
|
|
73
73
|
case "radio":
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ a(S, {
|
|
75
75
|
id: e,
|
|
76
|
-
name:
|
|
76
|
+
name: t,
|
|
77
|
+
placeholder: d
|
|
77
78
|
});
|
|
78
79
|
case "default":
|
|
79
80
|
default:
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ a(s, {
|
|
81
82
|
fieldNamePrefix: i(e),
|
|
82
|
-
label:
|
|
83
|
+
label: t || "",
|
|
83
84
|
locale: u,
|
|
84
|
-
placeholder:
|
|
85
|
+
placeholder: d,
|
|
85
86
|
portalElement: l
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
}, E = ({
|
|
89
90
|
id: e,
|
|
90
|
-
name:
|
|
91
|
-
}) => /* @__PURE__ */
|
|
91
|
+
name: t
|
|
92
|
+
}) => /* @__PURE__ */ a(F, {
|
|
92
93
|
fieldNamePrefix: i(e),
|
|
93
|
-
label:
|
|
94
|
+
label: t || ""
|
|
94
95
|
}), k = ({
|
|
95
96
|
customLabels: e,
|
|
96
|
-
canUseRelativeDates:
|
|
97
|
+
canUseRelativeDates: t,
|
|
97
98
|
customDateFilterOptions: l,
|
|
98
99
|
id: r,
|
|
99
100
|
name: c
|
|
100
101
|
}) => {
|
|
101
102
|
const {
|
|
102
|
-
locale:
|
|
103
|
-
} =
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
canUseRelativeDates:
|
|
103
|
+
locale: n
|
|
104
|
+
} = o();
|
|
105
|
+
return /* @__PURE__ */ a(M, {
|
|
106
|
+
canUseRelativeDates: t,
|
|
106
107
|
customDateFilterOptions: l,
|
|
107
108
|
customFieldLabels: e,
|
|
108
109
|
direction: "vertical",
|
|
109
110
|
fieldNamePrefix: i(r),
|
|
110
111
|
label: c || "",
|
|
111
|
-
locale:
|
|
112
|
+
locale: n
|
|
112
113
|
});
|
|
113
|
-
},
|
|
114
|
+
}, T = ({
|
|
114
115
|
...e
|
|
115
116
|
}) => {
|
|
117
|
+
const t = e.shouldRenderNameInSidePanel === !1 ? "" : e.name;
|
|
116
118
|
switch (e.fieldType) {
|
|
117
119
|
case "string":
|
|
118
|
-
return /* @__PURE__ */
|
|
119
|
-
...e
|
|
120
|
+
return /* @__PURE__ */ a(g, {
|
|
121
|
+
...e,
|
|
122
|
+
name: t
|
|
120
123
|
});
|
|
121
124
|
case "float":
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
...e
|
|
125
|
+
return /* @__PURE__ */ a(E, {
|
|
126
|
+
...e,
|
|
127
|
+
name: t
|
|
124
128
|
});
|
|
125
129
|
case "date":
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
...e
|
|
130
|
+
return /* @__PURE__ */ a(k, {
|
|
131
|
+
...e,
|
|
132
|
+
name: t
|
|
128
133
|
});
|
|
129
134
|
case "multiSelect":
|
|
130
|
-
return /* @__PURE__ */
|
|
131
|
-
...e
|
|
135
|
+
return /* @__PURE__ */ a(N, {
|
|
136
|
+
...e,
|
|
137
|
+
name: t
|
|
132
138
|
});
|
|
133
139
|
case "enum":
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
...e
|
|
140
|
+
return /* @__PURE__ */ a(w, {
|
|
141
|
+
...e,
|
|
142
|
+
name: t
|
|
136
143
|
});
|
|
137
144
|
default:
|
|
138
145
|
return null;
|
|
139
146
|
}
|
|
140
147
|
};
|
|
141
148
|
export {
|
|
142
|
-
|
|
149
|
+
T as Filter
|
|
143
150
|
};
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import { useFormikContext as
|
|
2
|
-
import { Radio as
|
|
3
|
-
import { jsx as
|
|
4
|
-
const
|
|
5
|
-
id:
|
|
6
|
-
name:
|
|
1
|
+
import { useFormikContext as v } from "formik";
|
|
2
|
+
import { Radio as a } from "@box/blueprint-web";
|
|
3
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
const b = ({
|
|
5
|
+
id: t,
|
|
6
|
+
name: i,
|
|
7
|
+
placeholder: o
|
|
7
8
|
}) => {
|
|
8
|
-
var
|
|
9
|
+
var u, m, n, d;
|
|
9
10
|
const {
|
|
10
|
-
values:
|
|
11
|
-
setFieldValue:
|
|
12
|
-
} =
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
header:
|
|
15
|
-
children: /* @__PURE__ */
|
|
11
|
+
values: s,
|
|
12
|
+
setFieldValue: r
|
|
13
|
+
} = v(), f = ((n = (m = (u = s.metadata.fields[t]) == null ? void 0 : u.value) == null ? void 0 : m.enum) == null ? void 0 : n[0]) || "", p = ((d = s.metadata.fields[t]) == null ? void 0 : d.options) || [];
|
|
14
|
+
return /* @__PURE__ */ l(a.Legend, {
|
|
15
|
+
header: i,
|
|
16
|
+
children: /* @__PURE__ */ c(a.Group, {
|
|
16
17
|
loop: !0,
|
|
17
|
-
name:
|
|
18
|
+
name: i,
|
|
18
19
|
onValueChange: (e) => {
|
|
19
|
-
|
|
20
|
+
r(`metadata.fields.${t}.value.enum[0]`, e);
|
|
20
21
|
},
|
|
21
|
-
value:
|
|
22
|
-
children:
|
|
22
|
+
value: f,
|
|
23
|
+
children: [o && /* @__PURE__ */ l(a.Item, {
|
|
24
|
+
label: o,
|
|
25
|
+
value: ""
|
|
26
|
+
}, o), p.map(({
|
|
23
27
|
key: e
|
|
24
|
-
}) => /* @__PURE__ */
|
|
28
|
+
}) => /* @__PURE__ */ l(a.Item, {
|
|
25
29
|
label: e,
|
|
26
30
|
value: e
|
|
27
|
-
}, e))
|
|
31
|
+
}, e))]
|
|
28
32
|
})
|
|
29
33
|
});
|
|
30
34
|
};
|
|
31
35
|
export {
|
|
32
|
-
|
|
36
|
+
b as MetadataRadioField
|
|
33
37
|
};
|
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": "⟦萬萬萬萬 Êʼnτέŕ ķëγшőѓďś 國國國國⟧",
|
|
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еňü 國國國⟧",
|
|
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ѓеνίοцś 國國⟧"
|
|
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 = ⟦萬萬萬萬 Êʼnτέŕ ķëγшőѓďś 國國國國⟧
|
|
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еňü 國國國⟧
|
|
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áğîлαŧіоп лäνíġǻţїőп ćόйťŗόľś āņď сůŕŗĕήť Ράğè īйƒōґmąţĭŏи 國國國國國國國國國國國國國國國國國⟧
|
|
65
65
|
# Label for the previous page button
|
|
66
|
-
groupSharedFeatures.metadataView.pagination.previousPageButton = ⟦萬萬 P
|
|
66
|
+
groupSharedFeatures.metadataView.pagination.previousPageButton = ⟦萬萬 Pѓеνίοцś 國國⟧
|
|
@@ -34,6 +34,7 @@ export interface FilterOption {
|
|
|
34
34
|
variant?: FilterVariant;
|
|
35
35
|
renderer?: (component: ReactNode) => ReactNode;
|
|
36
36
|
triggerCallback?: (...args: unknown[]) => unknown;
|
|
37
|
+
shouldRenderNameInSidePanel?: boolean;
|
|
37
38
|
}
|
|
38
39
|
export interface FilterChipProps {
|
|
39
40
|
formRef: React.RefObject<HTMLFormElement>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface MetadataRadioFieldProps {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
|
+
placeholder?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const MetadataRadioField: ({ id, name }: MetadataRadioFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const MetadataRadioField: ({ id, name, placeholder }: MetadataRadioFieldProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-view",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@box/blueprint-web": "^12.76.2",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@box/blueprint-web": "^12.86.0",
|
|
22
22
|
"@box/blueprint-web-assets": "^4.73.0",
|
|
23
|
-
"@box/box-item-type-selector": "^1.
|
|
23
|
+
"@box/box-item-type-selector": "^1.2.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.3.0",
|
|
26
|
+
"@box/metadata-filter": "^1.39.0",
|
|
27
27
|
"@box/storybook-utils": "0.14.9",
|
|
28
28
|
"@box/types": "1.0.0",
|
|
29
29
|
"@tanstack/react-virtual": "^3.10.8",
|