@box/metadata-view 0.41.3 → 0.42.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/chunks/form-filter-chip.js +66 -68
- package/dist/esm/lib/components/filter-row/all-filters-chip.js +31 -33
- package/dist/esm/lib/components/filter-row/filter-row.js +28 -32
- package/dist/esm/lib/components/filter-row/form-filter-chip.js +5 -3
- package/dist/esm/lib/components/filter-row/index.js +2 -3
- package/dist/esm/lib/components/filter-row/initial-field-values.js +26 -15
- package/dist/esm/lib/components/filter-row/is-filter-selected.js +16 -0
- package/dist/esm/lib/components/filter-row/metadata-filter-chip.js +26 -16
- package/dist/i18n/bn-IN.js +2 -2
- package/dist/i18n/bn-IN.properties +6 -0
- package/dist/i18n/da-DK.js +2 -2
- package/dist/i18n/da-DK.properties +6 -0
- package/dist/i18n/de-DE.js +2 -2
- package/dist/i18n/de-DE.properties +6 -0
- package/dist/i18n/en-AU.properties +6 -0
- package/dist/i18n/en-CA.properties +6 -0
- package/dist/i18n/en-GB.properties +6 -0
- package/dist/i18n/en-x-pseudo.js +32 -32
- package/dist/i18n/en-x-pseudo.properties +35 -29
- package/dist/i18n/es-419.js +2 -2
- package/dist/i18n/es-419.properties +6 -0
- package/dist/i18n/es-ES.js +2 -2
- package/dist/i18n/es-ES.properties +6 -0
- package/dist/i18n/fi-FI.js +2 -2
- package/dist/i18n/fi-FI.properties +6 -0
- package/dist/i18n/fr-CA.js +2 -2
- package/dist/i18n/fr-CA.properties +6 -0
- package/dist/i18n/fr-FR.js +2 -2
- package/dist/i18n/fr-FR.properties +6 -0
- package/dist/i18n/hi-IN.js +2 -2
- package/dist/i18n/hi-IN.properties +6 -0
- package/dist/i18n/it-IT.js +2 -2
- package/dist/i18n/it-IT.properties +6 -0
- package/dist/i18n/ja-JP.js +3 -3
- package/dist/i18n/ja-JP.properties +7 -1
- package/dist/i18n/ko-KR.js +2 -2
- package/dist/i18n/ko-KR.properties +6 -0
- package/dist/i18n/nb-NO.js +2 -2
- package/dist/i18n/nb-NO.properties +6 -0
- package/dist/i18n/nl-NL.js +2 -2
- package/dist/i18n/nl-NL.properties +6 -0
- package/dist/i18n/pl-PL.js +2 -2
- package/dist/i18n/pl-PL.properties +6 -0
- package/dist/i18n/pt-BR.js +2 -2
- package/dist/i18n/pt-BR.properties +6 -0
- package/dist/i18n/ru-RU.js +2 -2
- package/dist/i18n/ru-RU.properties +6 -0
- package/dist/i18n/sv-SE.js +2 -2
- package/dist/i18n/sv-SE.properties +6 -0
- package/dist/i18n/tr-TR.js +2 -2
- package/dist/i18n/tr-TR.properties +6 -0
- package/dist/i18n/zh-CN.js +2 -2
- package/dist/i18n/zh-CN.properties +6 -0
- package/dist/i18n/zh-TW.js +2 -2
- package/dist/i18n/zh-TW.properties +6 -0
- package/dist/types/lib/components/filter-row/filter-row.d.ts +2 -6
- package/dist/types/lib/components/filter-row/initial-field-values.d.ts +4 -11
- package/dist/types/lib/components/filter-row/is-filter-selected.d.ts +5 -0
- package/dist/types/lib/components/filter-row/types.d.ts +6 -1
- package/dist/types/lib/test-utils/mock-data.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,84 +1,82 @@
|
|
|
1
|
-
import { Popover as
|
|
2
|
-
import { useFormikContext as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { Popover as s, FilterChip as a, Button as f } from "@box/blueprint-web";
|
|
2
|
+
import { useFormikContext as x, getIn as n } from "formik";
|
|
3
|
+
import { useState as v, useMemo as O } from "react";
|
|
4
|
+
import { useIntl as V } from "react-intl";
|
|
5
|
+
import { getDefaultFieldValue as G } from "../esm/lib/components/filter-row/initial-field-values.js";
|
|
6
|
+
import { isFilterSelected as M } from "../esm/lib/components/filter-row/is-filter-selected.js";
|
|
7
|
+
import h from "../esm/lib/components/filter-row/messages.js";
|
|
8
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
import '../styles/form-filter-chip.css';const j = "_popoverFooter_z1gpu_1", N = "_popoverContent_z1gpu_9", P = "_filterChipGroup_z1gpu_13", C = {
|
|
10
|
+
popoverFooter: j,
|
|
11
|
+
popoverContent: N,
|
|
12
|
+
filterChipGroup: P
|
|
13
|
+
}, U = ({
|
|
14
|
+
children: F,
|
|
15
|
+
formRef: y,
|
|
16
|
+
icon: i,
|
|
15
17
|
id: e,
|
|
16
|
-
name:
|
|
18
|
+
name: g
|
|
17
19
|
}) => {
|
|
18
20
|
const {
|
|
19
|
-
formatMessage:
|
|
20
|
-
} =
|
|
21
|
-
handleSubmit:
|
|
22
|
-
setFieldValue:
|
|
23
|
-
resetForm:
|
|
24
|
-
values:
|
|
25
|
-
} =
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
|
|
29
|
-
values:
|
|
21
|
+
formatMessage: p
|
|
22
|
+
} = V(), [T, c] = v(!1), {
|
|
23
|
+
handleSubmit: _,
|
|
24
|
+
setFieldValue: D,
|
|
25
|
+
resetForm: S,
|
|
26
|
+
values: r
|
|
27
|
+
} = x(), m = n(r, `metadata.fields.${e}.fieldType`), b = () => {
|
|
28
|
+
_(), c(!1);
|
|
29
|
+
}, [z, B] = v(r), I = (t) => {
|
|
30
|
+
c(t), t ? B(r) : S({
|
|
31
|
+
values: z
|
|
30
32
|
});
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
return (
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return o && o.length > 0 && !!o[0];
|
|
41
|
-
}
|
|
42
|
-
if (a === "date") {
|
|
43
|
-
const o = r(t, `metadata.fields.${e}.value.range`);
|
|
44
|
-
return o && (o.gt || o.lt);
|
|
33
|
+
}, R = () => {
|
|
34
|
+
D(`metadata.fields.${e}.value`, G(m));
|
|
35
|
+
}, u = O(() => {
|
|
36
|
+
const t = n(r, `metadata.fields.${e}.value`);
|
|
37
|
+
return M(t);
|
|
38
|
+
}, [r, e]), $ = () => {
|
|
39
|
+
if (m === "date") {
|
|
40
|
+
const t = n(r, `metadata.fields.${e}.value.customType`), k = t && t !== "anyTime" && t !== "customRange", d = n(r, `metadata.fields.${e}.value.relativeType`);
|
|
41
|
+
return (k || d && d !== "customRange") && !u;
|
|
45
42
|
}
|
|
46
43
|
return !1;
|
|
47
|
-
}
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
onOpenChange:
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ o("div", {
|
|
46
|
+
children: /* @__PURE__ */ l(s.Root, {
|
|
47
|
+
onOpenChange: I,
|
|
51
48
|
open: T,
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
children: /* @__PURE__ */
|
|
54
|
-
selected:
|
|
49
|
+
children: [/* @__PURE__ */ o(s.Trigger, {
|
|
50
|
+
children: /* @__PURE__ */ l(a.TriggerChip, {
|
|
51
|
+
selected: u,
|
|
55
52
|
value: e,
|
|
56
|
-
children: [
|
|
57
|
-
icon:
|
|
58
|
-
}), /* @__PURE__ */
|
|
59
|
-
children:
|
|
60
|
-
}), /* @__PURE__ */
|
|
53
|
+
children: [i && /* @__PURE__ */ o(a.Icon, {
|
|
54
|
+
icon: i
|
|
55
|
+
}), /* @__PURE__ */ o(a.Label, {
|
|
56
|
+
children: g
|
|
57
|
+
}), /* @__PURE__ */ o(a.DropdownIndicator, {})]
|
|
61
58
|
}, e)
|
|
62
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ l(s.ContentContainer, {
|
|
63
60
|
align: "start",
|
|
64
|
-
className:
|
|
65
|
-
container:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
className: C.popoverContent,
|
|
62
|
+
container: y.current,
|
|
63
|
+
"data-testid": "form-filter-chip-popover",
|
|
64
|
+
children: [/* @__PURE__ */ o(s.MainContent, {
|
|
65
|
+
children: F
|
|
66
|
+
}), /* @__PURE__ */ l(s.Footer, {
|
|
67
|
+
className: C.popoverFooter,
|
|
68
|
+
children: [/* @__PURE__ */ o(f, {
|
|
69
|
+
onClick: R,
|
|
72
70
|
size: "small",
|
|
73
71
|
variant: "secondary",
|
|
74
|
-
children:
|
|
75
|
-
}), /* @__PURE__ */
|
|
76
|
-
disabled:
|
|
77
|
-
onClick:
|
|
72
|
+
children: p(h.clearButton)
|
|
73
|
+
}), /* @__PURE__ */ o(f, {
|
|
74
|
+
disabled: $(),
|
|
75
|
+
onClick: b,
|
|
78
76
|
size: "small",
|
|
79
77
|
type: "submit",
|
|
80
78
|
variant: "primary",
|
|
81
|
-
children:
|
|
79
|
+
children: p(h.applyButton)
|
|
82
80
|
})]
|
|
83
81
|
})]
|
|
84
82
|
})]
|
|
@@ -86,6 +84,6 @@ import '../styles/form-filter-chip.css';const M = "_popoverFooter_z1gpu_1", j =
|
|
|
86
84
|
});
|
|
87
85
|
};
|
|
88
86
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
U as F,
|
|
88
|
+
C as s
|
|
91
89
|
};
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
import { FilterChip as
|
|
2
|
-
import { Filter as
|
|
3
|
-
import { useFormikContext as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import
|
|
7
|
-
import { getInitialFieldValues as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { FilterChip as e } from "@box/blueprint-web";
|
|
2
|
+
import { Filter as c } from "@box/blueprint-web-assets/icons/Line";
|
|
3
|
+
import { useFormikContext as f } from "formik";
|
|
4
|
+
import { useState as d, useMemo as u } from "react";
|
|
5
|
+
import { useIntl as h } from "react-intl";
|
|
6
|
+
import F from "../filter-sidepanel/filter-sidepanel.js";
|
|
7
|
+
import { getInitialFieldValues as g } from "./initial-field-values.js";
|
|
8
|
+
import { isFilterSelected as S } from "./is-filter-selected.js";
|
|
9
|
+
import C from "./messages.js";
|
|
10
|
+
import { jsxs as a, Fragment as I, jsx as t } from "react/jsx-runtime";
|
|
11
|
+
const L = ({
|
|
12
|
+
filterGroups: l
|
|
12
13
|
}) => {
|
|
13
14
|
const {
|
|
14
|
-
formatMessage:
|
|
15
|
-
} =
|
|
16
|
-
values:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
return ((m = e.value) == null ? void 0 : m.enum) && e.value.enum.length > 0 && !!e.value.enum[0] || ((u = e.value) == null ? void 0 : u.range) && (((c = (p = e.value) == null ? void 0 : p.range) == null ? void 0 : c.gt) || ((h = (g = e.value) == null ? void 0 : g.range) == null ? void 0 : h.lt));
|
|
20
|
-
}, s = x(() => Object.entries(i.metadata.fields).filter(v).length, [i]);
|
|
21
|
-
return /* @__PURE__ */ F(A, {
|
|
15
|
+
formatMessage: m
|
|
16
|
+
} = h(), {
|
|
17
|
+
values: r
|
|
18
|
+
} = f(), [o, n] = d(!1), p = () => n(!0), s = u(() => Object.values(r.metadata.fields).filter((i) => S(i.value)).length, [r.metadata.fields]);
|
|
19
|
+
return /* @__PURE__ */ a(I, {
|
|
22
20
|
children: [
|
|
23
21
|
// We need to initialize the sidepanel state at the moment it is opened
|
|
24
|
-
|
|
25
|
-
filterGroups:
|
|
26
|
-
getInitialFormValues: () =>
|
|
27
|
-
filters:
|
|
28
|
-
}) =>
|
|
29
|
-
isOpen:
|
|
22
|
+
o && /* @__PURE__ */ t(F, {
|
|
23
|
+
filterGroups: l,
|
|
24
|
+
getInitialFormValues: () => g(l.flatMap(({
|
|
25
|
+
filters: i
|
|
26
|
+
}) => i)),
|
|
27
|
+
isOpen: o,
|
|
30
28
|
onIsOpenChange: n
|
|
31
29
|
}),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
onClick:
|
|
30
|
+
/* @__PURE__ */ a(e.ChipButton, {
|
|
31
|
+
onClick: p,
|
|
34
32
|
value: "all-filters-chip-btn",
|
|
35
|
-
children: [/* @__PURE__ */
|
|
36
|
-
icon:
|
|
37
|
-
}), /* @__PURE__ */
|
|
38
|
-
children:
|
|
39
|
-
}), s > 0 ? /* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ t(e.Icon, {
|
|
34
|
+
icon: c
|
|
35
|
+
}), /* @__PURE__ */ t(e.Label, {
|
|
36
|
+
children: m(C.allFilters)
|
|
37
|
+
}), s > 0 ? /* @__PURE__ */ t(e.Status, {
|
|
40
38
|
children: s.toString()
|
|
41
39
|
}) : null]
|
|
42
40
|
})
|
|
@@ -44,5 +42,5 @@ const D = ({
|
|
|
44
42
|
});
|
|
45
43
|
};
|
|
46
44
|
export {
|
|
47
|
-
|
|
45
|
+
L as default
|
|
48
46
|
};
|
|
@@ -1,53 +1,49 @@
|
|
|
1
1
|
import { FilterChip as d } from "@box/blueprint-web";
|
|
2
2
|
import { Formik as c, Form as h } from "formik";
|
|
3
3
|
import { useRef as F } from "react";
|
|
4
|
-
import
|
|
5
|
-
import { getInitialFieldValues as
|
|
4
|
+
import C from "./all-filters-chip.js";
|
|
5
|
+
import { getInitialFieldValues as R } from "./initial-field-values.js";
|
|
6
6
|
import { MetadataFilterChip as G } from "./metadata-filter-chip.js";
|
|
7
|
-
import { usePredefinedFilter as
|
|
8
|
-
import { s as
|
|
9
|
-
import { jsx as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
initialFilterValues: r,
|
|
17
|
-
isAllFiltersDisabled: i,
|
|
18
|
-
onFilterSubmit: m
|
|
7
|
+
import { usePredefinedFilter as x } from "./predefinedFilters/use-predefined-filter.js";
|
|
8
|
+
import { s as V } from "../../../../chunks/form-filter-chip.js";
|
|
9
|
+
import { jsx as i, jsxs as b } from "react/jsx-runtime";
|
|
10
|
+
const I = ({
|
|
11
|
+
predefinedFilterOptions: s,
|
|
12
|
+
filterGroups: m = [],
|
|
13
|
+
initialFilterValues: a,
|
|
14
|
+
isAllFiltersDisabled: p,
|
|
15
|
+
onFilterSubmit: r
|
|
19
16
|
}) => {
|
|
20
|
-
const
|
|
17
|
+
const f = x(s), n = ({
|
|
21
18
|
metadata: {
|
|
22
19
|
fields: e
|
|
23
20
|
}
|
|
24
21
|
}) => {
|
|
25
|
-
|
|
26
|
-
},
|
|
22
|
+
r && r(e);
|
|
23
|
+
}, t = [...f, ...m], l = t.flatMap(({
|
|
27
24
|
filters: e
|
|
28
|
-
}) => e),
|
|
29
|
-
return /* @__PURE__ */
|
|
25
|
+
}) => e), u = R(l, a), o = F(null);
|
|
26
|
+
return /* @__PURE__ */ i(c, {
|
|
30
27
|
enableReinitialize: !0,
|
|
31
|
-
initialValues:
|
|
32
|
-
onSubmit:
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
ref:
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
-
className:
|
|
28
|
+
initialValues: u,
|
|
29
|
+
onSubmit: n,
|
|
30
|
+
children: /* @__PURE__ */ i(h, {
|
|
31
|
+
ref: o,
|
|
32
|
+
children: /* @__PURE__ */ b(d.Group, {
|
|
33
|
+
className: V.filterChipGroup,
|
|
37
34
|
name: "metadata-view-filters",
|
|
38
35
|
type: "multiple",
|
|
39
|
-
children: [
|
|
40
|
-
filterGroups:
|
|
41
|
-
}),
|
|
36
|
+
children: [p ? null : /* @__PURE__ */ i(C, {
|
|
37
|
+
filterGroups: t
|
|
38
|
+
}), l.filter((e) => e.shouldRenderChip).map((e) => /* @__PURE__ */ i(G, {
|
|
42
39
|
filterOption: e,
|
|
43
|
-
formRef:
|
|
40
|
+
formRef: o
|
|
44
41
|
}, e.id))]
|
|
45
42
|
})
|
|
46
43
|
})
|
|
47
44
|
});
|
|
48
45
|
};
|
|
49
46
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
z as getSelectedFilterIds
|
|
47
|
+
I as FilterRow,
|
|
48
|
+
I as default
|
|
53
49
|
};
|
|
@@ -2,10 +2,12 @@ import "@box/blueprint-web";
|
|
|
2
2
|
import "formik";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-intl";
|
|
5
|
-
import { F as
|
|
5
|
+
import { F as l, F as s } from "../../../../chunks/form-filter-chip.js";
|
|
6
|
+
import "./initial-field-values.js";
|
|
7
|
+
import "./is-filter-selected.js";
|
|
6
8
|
import "./messages.js";
|
|
7
9
|
import "react/jsx-runtime";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
l as FormFilterChip,
|
|
12
|
+
s as default
|
|
11
13
|
};
|
|
@@ -1,25 +1,36 @@
|
|
|
1
|
-
const
|
|
1
|
+
const l = (e) => ({
|
|
2
2
|
key: e,
|
|
3
3
|
id: e
|
|
4
|
-
}),
|
|
4
|
+
}), d = ({
|
|
5
5
|
fieldType: e,
|
|
6
|
-
options:
|
|
7
|
-
}) => ["enum", "multiSelect"].includes(e) ? (
|
|
6
|
+
options: t
|
|
7
|
+
}) => ["enum", "multiSelect"].includes(e) ? (t || []).map(l) : [], o = (e) => e === "date" ? {
|
|
8
|
+
customType: "anyTime",
|
|
9
|
+
range: {
|
|
10
|
+
gt: "",
|
|
11
|
+
lt: ""
|
|
12
|
+
}
|
|
13
|
+
} : e === "float" ? {
|
|
14
|
+
range: {
|
|
15
|
+
gt: "",
|
|
16
|
+
lt: ""
|
|
17
|
+
}
|
|
18
|
+
} : {
|
|
19
|
+
enum: []
|
|
20
|
+
}, g = (e, t) => ({
|
|
8
21
|
metadata: {
|
|
9
|
-
fields: e.reduce((a,
|
|
10
|
-
var
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
value: u || d,
|
|
17
|
-
fieldType: t.fieldType,
|
|
18
|
-
options: o(t)
|
|
22
|
+
fields: e.reduce((a, n) => {
|
|
23
|
+
var u;
|
|
24
|
+
const i = (u = t == null ? void 0 : t[n.id]) == null ? void 0 : u.value, r = o(n.fieldType);
|
|
25
|
+
return a[n.id] = {
|
|
26
|
+
value: i ?? r,
|
|
27
|
+
fieldType: n.fieldType,
|
|
28
|
+
options: d(n)
|
|
19
29
|
}, a;
|
|
20
30
|
}, {})
|
|
21
31
|
}
|
|
22
32
|
});
|
|
23
33
|
export {
|
|
24
|
-
|
|
34
|
+
o as getDefaultFieldValue,
|
|
35
|
+
g as getInitialFieldValues
|
|
25
36
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function t(e) {
|
|
2
|
+
if ("range" in e) {
|
|
3
|
+
const {
|
|
4
|
+
range: n
|
|
5
|
+
} = e;
|
|
6
|
+
return !!(n && (n.gt || n.lt));
|
|
7
|
+
}
|
|
8
|
+
if ("enum" in e) {
|
|
9
|
+
const n = e.enum;
|
|
10
|
+
return !!(n && n.length > 0 && n[0]);
|
|
11
|
+
}
|
|
12
|
+
return !1;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
t as isFilterSelected
|
|
16
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { MetadataStringField as f, MetadataDateField as
|
|
2
|
-
import { useIntl as
|
|
1
|
+
import { MetadataStringField as F, MetadataFloatField as f, MetadataDateField as h } from "@box/metadata-filter";
|
|
2
|
+
import { useIntl as M } from "react-intl";
|
|
3
|
+
import { MetadataFileChip as C } from "../metadata-value/metadata-file-chip.js";
|
|
3
4
|
import { F as n } from "../../../../chunks/form-filter-chip.js";
|
|
4
|
-
import { SelectFilterChip as
|
|
5
|
-
import { MetadataFileChip as M } from "../metadata-value/metadata-file-chip.js";
|
|
5
|
+
import { SelectFilterChip as b } from "./select-filter-chip.js";
|
|
6
6
|
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
-
const
|
|
8
|
-
filterOption:
|
|
7
|
+
const j = ({
|
|
8
|
+
filterOption: c,
|
|
9
9
|
formRef: i
|
|
10
10
|
}) => {
|
|
11
11
|
const {
|
|
12
|
-
canUseRelativeDates:
|
|
12
|
+
canUseRelativeDates: s,
|
|
13
13
|
customDateFilterOptions: d,
|
|
14
14
|
fieldType: o,
|
|
15
15
|
icon: r,
|
|
@@ -17,9 +17,9 @@ const y = ({
|
|
|
17
17
|
name: a,
|
|
18
18
|
options: m,
|
|
19
19
|
variant: p
|
|
20
|
-
} =
|
|
20
|
+
} = c, {
|
|
21
21
|
locale: u
|
|
22
|
-
} =
|
|
22
|
+
} = M(), l = `metadata.fields.${e}`;
|
|
23
23
|
switch (o) {
|
|
24
24
|
case "date":
|
|
25
25
|
return /* @__PURE__ */ t(n, {
|
|
@@ -27,8 +27,8 @@ const y = ({
|
|
|
27
27
|
icon: r,
|
|
28
28
|
id: e,
|
|
29
29
|
name: a,
|
|
30
|
-
children: /* @__PURE__ */ t(
|
|
31
|
-
canUseRelativeDates:
|
|
30
|
+
children: /* @__PURE__ */ t(h, {
|
|
31
|
+
canUseRelativeDates: s,
|
|
32
32
|
customDateFilterOptions: d,
|
|
33
33
|
direction: "vertical",
|
|
34
34
|
fieldNamePrefix: l,
|
|
@@ -37,7 +37,6 @@ const y = ({
|
|
|
37
37
|
})
|
|
38
38
|
}, e);
|
|
39
39
|
case "float":
|
|
40
|
-
case "string":
|
|
41
40
|
return /* @__PURE__ */ t(n, {
|
|
42
41
|
formRef: i,
|
|
43
42
|
icon: r,
|
|
@@ -48,13 +47,24 @@ const y = ({
|
|
|
48
47
|
label: a
|
|
49
48
|
})
|
|
50
49
|
}, e);
|
|
50
|
+
case "string":
|
|
51
|
+
return /* @__PURE__ */ t(n, {
|
|
52
|
+
formRef: i,
|
|
53
|
+
icon: r,
|
|
54
|
+
id: e,
|
|
55
|
+
name: a,
|
|
56
|
+
children: /* @__PURE__ */ t(F, {
|
|
57
|
+
fieldNamePrefix: l,
|
|
58
|
+
label: a
|
|
59
|
+
})
|
|
60
|
+
}, e);
|
|
51
61
|
case "multiSelect":
|
|
52
62
|
if (p === "file")
|
|
53
|
-
return /* @__PURE__ */ t(
|
|
63
|
+
return /* @__PURE__ */ t(C, {
|
|
54
64
|
id: e
|
|
55
65
|
});
|
|
56
66
|
case "enum":
|
|
57
|
-
return /* @__PURE__ */ t(
|
|
67
|
+
return /* @__PURE__ */ t(b, {
|
|
58
68
|
fieldNamePrefix: l,
|
|
59
69
|
formRef: i,
|
|
60
70
|
icon: r,
|
|
@@ -68,6 +78,6 @@ const y = ({
|
|
|
68
78
|
}
|
|
69
79
|
};
|
|
70
80
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
j as MetadataFilterChip,
|
|
82
|
+
j as default
|
|
73
83
|
};
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
"groupSharedFeatures.metadataView.filterRow.clearButton": "পরিষ্কার করুন",
|
|
13
13
|
"groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle": "ফাইলের ধরন",
|
|
14
14
|
"groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder": "কিওয়ার্ড লিখুন",
|
|
15
|
-
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "
|
|
15
|
+
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "অবস্থান",
|
|
16
16
|
"groupSharedFeatures.metadataView.filterRow.textInputPlaceholder": "মূল্য সেট করুন",
|
|
17
17
|
"groupSharedFeatures.metadataView.filterSidepanel.clearAllButton": "সমস্ত মুছুন",
|
|
18
18
|
"groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel": "বন্ধ করুন",
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
"groupSharedFeatures.metadataView.itemList.listView": "তালিকা ভিউ",
|
|
26
26
|
"groupSharedFeatures.metadataView.itemList.refreshButton": "রিফ্রেশ করুন",
|
|
27
27
|
"groupSharedFeatures.metadataView.itemList.selectAll": "সমস্ত নির্বাচন করুন",
|
|
28
|
-
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "
|
|
28
|
+
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "একটি ফোল্ডার বেছে নিন",
|
|
29
29
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel": "অনুসন্ধান করুন",
|
|
30
30
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel": "পরিষ্কার করুন",
|
|
31
31
|
"groupSharedFeatures.metadataView.pagination.nextPageButton": "পরবর্তী",
|
|
@@ -24,6 +24,8 @@ groupSharedFeatures.metadataView.filterRow.clearButton = পরিষ্কা
|
|
|
24
24
|
groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle = ফাইলের ধরন
|
|
25
25
|
# Placeholder text for the keyword search filter
|
|
26
26
|
groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder = কিওয়ার্ড লিখুন
|
|
27
|
+
# Title for the location filter group
|
|
28
|
+
groupSharedFeatures.metadataView.filterRow.locationFilterTitle = অবস্থান
|
|
27
29
|
# Placeholder text for the input field in the filter row
|
|
28
30
|
groupSharedFeatures.metadataView.filterRow.textInputPlaceholder = মূল্য সেট করুন
|
|
29
31
|
# Button label to clear all filters in the sidepanel
|
|
@@ -36,6 +38,8 @@ groupSharedFeatures.metadataView.filterSidepanel.filtersHeader = ফিল্ট
|
|
|
36
38
|
groupSharedFeatures.metadataView.filterSidepanel.showResultsButton = অনুসন্ধান করুন
|
|
37
39
|
# Label for the grid view of files and folders
|
|
38
40
|
groupSharedFeatures.metadataView.gridList.gridView = গ্রিড ভিউ
|
|
41
|
+
# Label for the default unselected option in inline editing dropdowns
|
|
42
|
+
groupSharedFeatures.metadataView.inlineEditingCell.unselectedOptionLabel = --
|
|
39
43
|
# Label for the action menu for an item in the metadata view list
|
|
40
44
|
groupSharedFeatures.metadataView.itemActionMenu.actionMenu = অ্যাকশন মেনু
|
|
41
45
|
# Error message displayed when metadata fails to load
|
|
@@ -46,6 +50,8 @@ groupSharedFeatures.metadataView.itemList.listView = তালিকা ভি
|
|
|
46
50
|
groupSharedFeatures.metadataView.itemList.refreshButton = রিফ্রেশ করুন
|
|
47
51
|
# Label for the select all checkbox in the metadata table
|
|
48
52
|
groupSharedFeatures.metadataView.itemList.selectAll = সমস্ত নির্বাচন করুন
|
|
53
|
+
# Placeholder for select folder trigger
|
|
54
|
+
groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint = একটি ফোল্ডার বেছে নিন
|
|
49
55
|
# Aria label for the search input
|
|
50
56
|
groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel = অনুসন্ধান করুন
|
|
51
57
|
# Aria label for the clear button in the search input
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
"groupSharedFeatures.metadataView.filterRow.clearButton": "Ryd",
|
|
13
13
|
"groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle": "Filtype",
|
|
14
14
|
"groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder": "Indtast nøgleord",
|
|
15
|
-
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "
|
|
15
|
+
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "Placering",
|
|
16
16
|
"groupSharedFeatures.metadataView.filterRow.textInputPlaceholder": "Indstil værdi",
|
|
17
17
|
"groupSharedFeatures.metadataView.filterSidepanel.clearAllButton": "Ryd alt",
|
|
18
18
|
"groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel": "Luk",
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
"groupSharedFeatures.metadataView.itemList.listView": "Listevisning",
|
|
26
26
|
"groupSharedFeatures.metadataView.itemList.refreshButton": "Opdater",
|
|
27
27
|
"groupSharedFeatures.metadataView.itemList.selectAll": "Vælg alt/alle",
|
|
28
|
-
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "
|
|
28
|
+
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "Vælg en mappe",
|
|
29
29
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel": "Søg",
|
|
30
30
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel": "Ryd",
|
|
31
31
|
"groupSharedFeatures.metadataView.pagination.nextPageButton": "Næste",
|
|
@@ -24,6 +24,8 @@ groupSharedFeatures.metadataView.filterRow.clearButton = Ryd
|
|
|
24
24
|
groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle = Filtype
|
|
25
25
|
# Placeholder text for the keyword search filter
|
|
26
26
|
groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder = Indtast nøgleord
|
|
27
|
+
# Title for the location filter group
|
|
28
|
+
groupSharedFeatures.metadataView.filterRow.locationFilterTitle = Placering
|
|
27
29
|
# Placeholder text for the input field in the filter row
|
|
28
30
|
groupSharedFeatures.metadataView.filterRow.textInputPlaceholder = Indstil værdi
|
|
29
31
|
# Button label to clear all filters in the sidepanel
|
|
@@ -36,6 +38,8 @@ groupSharedFeatures.metadataView.filterSidepanel.filtersHeader = Filtre
|
|
|
36
38
|
groupSharedFeatures.metadataView.filterSidepanel.showResultsButton = Søg
|
|
37
39
|
# Label for the grid view of files and folders
|
|
38
40
|
groupSharedFeatures.metadataView.gridList.gridView = Gittervisning
|
|
41
|
+
# Label for the default unselected option in inline editing dropdowns
|
|
42
|
+
groupSharedFeatures.metadataView.inlineEditingCell.unselectedOptionLabel = --
|
|
39
43
|
# Label for the action menu for an item in the metadata view list
|
|
40
44
|
groupSharedFeatures.metadataView.itemActionMenu.actionMenu = Handlingsmenu
|
|
41
45
|
# Error message displayed when metadata fails to load
|
|
@@ -46,6 +50,8 @@ groupSharedFeatures.metadataView.itemList.listView = Listevisning
|
|
|
46
50
|
groupSharedFeatures.metadataView.itemList.refreshButton = Opdater
|
|
47
51
|
# Label for the select all checkbox in the metadata table
|
|
48
52
|
groupSharedFeatures.metadataView.itemList.selectAll = Vælg alt/alle
|
|
53
|
+
# Placeholder for select folder trigger
|
|
54
|
+
groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint = Vælg en mappe
|
|
49
55
|
# Aria label for the search input
|
|
50
56
|
groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel = Søg
|
|
51
57
|
# Aria label for the clear button in the search input
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
"groupSharedFeatures.metadataView.filterRow.clearButton": "Leeren",
|
|
13
13
|
"groupSharedFeatures.metadataView.filterRow.fileTypeFilterTitle": "Dateityp",
|
|
14
14
|
"groupSharedFeatures.metadataView.filterRow.keywordSearchFilterPlaceholder": "Schlüsselwörter eingeben",
|
|
15
|
-
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "
|
|
15
|
+
"groupSharedFeatures.metadataView.filterRow.locationFilterTitle": "Standort",
|
|
16
16
|
"groupSharedFeatures.metadataView.filterRow.textInputPlaceholder": "Wert festlegen",
|
|
17
17
|
"groupSharedFeatures.metadataView.filterSidepanel.clearAllButton": "Alles löschen",
|
|
18
18
|
"groupSharedFeatures.metadataView.filterSidepanel.closeAriaLabel": "Schließen",
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
"groupSharedFeatures.metadataView.itemList.listView": "Listenansicht",
|
|
26
26
|
"groupSharedFeatures.metadataView.itemList.refreshButton": "Aktualisieren",
|
|
27
27
|
"groupSharedFeatures.metadataView.itemList.selectAll": "Alle auswählen",
|
|
28
|
-
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "
|
|
28
|
+
"groupSharedFeatures.metadataView.metadataValue.metadataLocation.locationTriggerHint": "Wählen Sie einen Ordner aus",
|
|
29
29
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputAriaLabel": "Suchen",
|
|
30
30
|
"groupSharedFeatures.metadataView.metadataValue.metadataSearch.searchInputClearAriaLabel": "Leeren",
|
|
31
31
|
"groupSharedFeatures.metadataView.pagination.nextPageButton": "Weiter",
|