@vidispine/vdt-mui 23.4.0-pre.2 → 23.4.0-pre.4
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/cjs/collection/CollectionList/CollectionList.js +1 -1
- package/dist/cjs/entity/EntityList/EntityList.js +1 -1
- package/dist/cjs/event/EventList/components/EventListHeader.js +1 -1
- package/dist/cjs/event/EventListItem/EventListItem.js +1 -1
- package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -1
- package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -1
- package/dist/cjs/general/Form/Form.js +1 -1
- package/dist/cjs/general/MediaIcon/index.js +1 -1
- package/dist/cjs/general/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/general/Sort/Sort.js +1 -1
- package/dist/cjs/general/Sort/components/MenuItem.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -1
- package/dist/cjs/inputs/_components/MenuItem.js +1 -1
- package/dist/cjs/item/ItemList/ItemList.js +1 -1
- package/dist/cjs/metadata/MetadataGroupTreeView/MetadataGroupTreeView.js +1 -1
- package/dist/cjs/upload/UploadDropzone/UploadDropzone.js +1 -0
- package/dist/cjs/upload/UploadDropzone/index.js +1 -0
- package/dist/cjs/upload/UploadFileTree/UploadFileTree.js +1 -0
- package/dist/cjs/upload/UploadFileTree/index.js +1 -0
- package/dist/cjs/upload/UploadFileTreeItem/UploadFileTreeItem.js +1 -0
- package/dist/cjs/upload/UploadFileTreeItem/index.js +1 -0
- package/dist/cjs/upload/UploadListItem/UploadListItem.js +1 -0
- package/dist/cjs/upload/UploadListItem/components/UploadListItemProgress.js +1 -0
- package/dist/cjs/upload/UploadListItem/components/UploadListItemSecondaryAction.js +1 -0
- package/dist/cjs/upload/UploadListItem/components/UploadListItemText.js +1 -0
- package/dist/cjs/upload/UploadListItem/components/UploadListItemThumbnail.js +1 -0
- package/dist/cjs/upload/UploadListItem/index.js +1 -0
- package/dist/es/_utils/withOverrides.d.ts +1 -0
- package/dist/es/collection/CollectionList/CollectionList.js +8 -8
- package/dist/es/entity/EntityIcon/EntityIcon.js +10 -10
- package/dist/es/entity/EntityList/EntityList.js +4 -4
- package/dist/es/event/EventListItem/EventListItem.js +25 -25
- package/dist/es/general/AvatarMenu/components/MenuItem.js +6 -6
- package/dist/es/general/CalendarPicker/components/PickersDay.d.ts +1 -1
- package/dist/es/general/CompactBadge/CompactBadge.js +2 -2
- package/dist/es/general/CompactLabel/CompactLabel.js +3 -3
- package/dist/es/general/Form/Form.js +1 -1
- package/dist/es/general/MediaIcon/index.js +2 -2
- package/dist/es/general/Sort/Sort.js +1 -1
- package/dist/es/general/Sort/components/MenuItem.js +4 -4
- package/dist/es/general/ThemeContext/ThemeContext.d.ts +1 -1
- package/dist/es/general/index.d.ts +1 -1
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +57 -49
- package/dist/es/inputs/BooleanInput/BooleanInput.d.ts +2 -2
- package/dist/es/inputs/BooleanInput/BooleanInput.js +61 -58
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.d.ts +1 -1
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.d.ts +1 -1
- package/dist/es/inputs/SliderInput/components/Slider.d.ts +1 -1
- package/dist/es/inputs/_components/MenuItem.js +2 -2
- package/dist/es/item/ItemList/ItemList.js +13 -13
- package/dist/es/metadata/MetadataForm/hooks/UseMetadataFormInputs.d.ts +1 -0
- package/dist/es/metadata/MetadataGroupTreeView/MetadataGroupTreeView.d.ts +3 -3
- package/dist/es/metadata/MetadataGroupTreeView/MetadataGroupTreeView.js +21 -22
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.d.ts +1 -0
- package/dist/es/upload/UploadDropzone/UploadDropzone.d.ts +59 -0
- package/dist/es/upload/UploadDropzone/UploadDropzone.js +111 -0
- package/dist/es/upload/UploadDropzone/index.d.ts +3 -0
- package/dist/es/upload/UploadDropzone/index.js +12 -0
- package/dist/es/upload/UploadFileTree/UploadFileTree.d.ts +35 -0
- package/dist/es/upload/UploadFileTree/UploadFileTree.js +30 -0
- package/dist/es/upload/UploadFileTree/index.d.ts +3 -0
- package/dist/es/upload/UploadFileTree/index.js +12 -0
- package/dist/es/upload/UploadFileTreeItem/UploadFileTreeItem.d.ts +34 -0
- package/dist/es/upload/UploadFileTreeItem/UploadFileTreeItem.js +55 -0
- package/dist/es/upload/UploadFileTreeItem/index.d.ts +3 -0
- package/dist/es/upload/UploadFileTreeItem/index.js +12 -0
- package/dist/es/upload/UploadListItem/UploadListItem.d.ts +48 -0
- package/dist/es/upload/UploadListItem/UploadListItem.js +90 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemProgress.d.ts +7 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemProgress.js +16 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemSecondaryAction.d.ts +9 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemSecondaryAction.js +33 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemText.d.ts +8 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemText.js +30 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemThumbnail.d.ts +6 -0
- package/dist/es/upload/UploadListItem/components/UploadListItemThumbnail.js +52 -0
- package/dist/es/upload/UploadListItem/index.d.ts +3 -0
- package/dist/es/upload/UploadListItem/index.js +12 -0
- package/dist/es/upload/_utils.d.ts +6 -0
- package/dist/es/upload/index.d.ts +4 -0
- package/package.json +30 -25
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled as r } from "@mui/material/styles";
|
|
2
2
|
import m from "./MediaIcon.js";
|
|
3
3
|
import { withOverrides as s } from "../../_utils/withOverrides.js";
|
|
4
|
-
const o = "MediaIcon", e = `Vdt${o}`,
|
|
4
|
+
const o = "MediaIcon", e = `Vdt${o}`, i = s(e)(m), t = r(i, {
|
|
5
5
|
name: e,
|
|
6
|
-
overridesResolver: (
|
|
6
|
+
overridesResolver: (d, n) => n.root
|
|
7
7
|
})(() => ({}));
|
|
8
8
|
t.displayName = o;
|
|
9
9
|
const l = t;
|
|
@@ -93,7 +93,7 @@ const r = {
|
|
|
93
93
|
}), f();
|
|
94
94
|
}, k = e === void 0 || e.length === 0, T = d.direction !== r.ascending;
|
|
95
95
|
return /* @__PURE__ */ V(S, { ...i.root, children: [
|
|
96
|
-
/* @__PURE__ */ m(C, { onClick: I, disabled: k, label: t, optionLabel: d.option.label || "", descending: T, ...i.buttonBase }),
|
|
96
|
+
/* @__PURE__ */ m(C, { onClick: I, disabled: k, label: t, optionLabel: d.option.label || "", descending: T, role: "button", ...i.buttonBase }),
|
|
97
97
|
/* @__PURE__ */ m(y, { anchorEl: g, keepMounted: !0, open: !!g, onClose: f, elevation: 1, marginThreshold: 0, PaperProps: {
|
|
98
98
|
style: {
|
|
99
99
|
minWidth: 150,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import p from "@mui/material/MenuItem";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "@mui/material/Typography";
|
|
4
|
+
const c = ({
|
|
5
5
|
value: e,
|
|
6
6
|
label: o = "",
|
|
7
7
|
selected: r,
|
|
8
8
|
onClick: n,
|
|
9
9
|
...i
|
|
10
|
-
}) => /* @__PURE__ */ t(p, { selected: r, onClick: (m) => n(m, e), dense: !0, ...i, children: /* @__PURE__ */ t(
|
|
10
|
+
}) => /* @__PURE__ */ t(p, { selected: r, onClick: (m) => n(m, e), dense: !0, ...i, children: /* @__PURE__ */ t(a, { variant: "caption", children: o ?? "" }) }), f = c;
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
f as default
|
|
13
13
|
};
|
|
@@ -24,7 +24,7 @@ export interface ThemeProviderProps<TLightKey extends string = 'light', TDarkKey
|
|
|
24
24
|
children?: ReactNode;
|
|
25
25
|
}
|
|
26
26
|
declare const ThemeProvider: {
|
|
27
|
-
({ themes, muiLocale, defaultPaletteKey, lightPaletteKey, darkPaletteKey, systemPaletteKey, localStoragePaletteKey, MuiThemeProviderProps, CssBaselineProps, children, ...props }: PropsWithChildren<ThemeProviderProps>): JSX.Element;
|
|
27
|
+
({ themes, muiLocale, defaultPaletteKey, lightPaletteKey, darkPaletteKey, systemPaletteKey, localStoragePaletteKey, MuiThemeProviderProps, CssBaselineProps, children, ...props }: PropsWithChildren<ThemeProviderProps>): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
defaultProps: ThemeProviderProps<"light", "dark">;
|
|
29
29
|
};
|
|
30
30
|
declare const useThemeContext: () => ThemeContextValue<"light", "dark">;
|
|
@@ -13,4 +13,4 @@ export { default as ScrubLine } from './ScrubLine';
|
|
|
13
13
|
export { default as Sort } from './Sort';
|
|
14
14
|
export { default as TablePagination } from './TablePagination';
|
|
15
15
|
export { default as Form } from './Form';
|
|
16
|
-
export
|
|
16
|
+
export * from './ThemeContext';
|
package/dist/es/index.d.ts
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as a } from "./collection/CollectionList/index.js";
|
|
2
2
|
import { default as r } from "./collection/CollectionListItem/index.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
3
|
+
import { default as l } from "./collection/CollectionRepresentativeThumbnail/index.js";
|
|
4
|
+
import { default as p } from "./collection/CollectionCard/index.js";
|
|
5
5
|
import { default as d } from "./entity/EntityIcon/index.js";
|
|
6
6
|
import { default as x } from "./entity/EntityAvatar/index.js";
|
|
7
7
|
import { default as i } from "./entity/EntityList/index.js";
|
|
@@ -11,24 +11,24 @@ import { default as b } from "./general/CalendarPicker/index.js";
|
|
|
11
11
|
import { default as B } from "./general/CompactBadge/index.js";
|
|
12
12
|
import { default as P } from "./general/CompactLabel/index.js";
|
|
13
13
|
import { default as v } from "./general/CornerLabelPlacer/index.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
14
|
+
import { default as F } from "./general/ExpandButton/index.js";
|
|
15
|
+
import { default as k } from "./general/ImageCollage/index.js";
|
|
16
|
+
import { default as R } from "./general/MediaIcon/index.js";
|
|
17
|
+
import { default as w } from "./general/MenuItem/index.js";
|
|
18
|
+
import { default as G } from "./general/VirtualizedList/index.js";
|
|
19
19
|
import { default as z } from "./general/ScrubLine/index.js";
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { ThemeProvider as
|
|
20
|
+
import { default as N } from "./general/Sort/index.js";
|
|
21
|
+
import { default as q } from "./general/TablePagination/index.js";
|
|
22
|
+
import { default as J } from "./general/Form/index.js";
|
|
23
|
+
import { ThemeProvider as O, useThemeContext as Q } from "./general/ThemeContext/ThemeContext.js";
|
|
24
24
|
import { default as X } from "./item/ItemList/index.js";
|
|
25
25
|
import { default as Z } from "./item/ItemListItem/index.js";
|
|
26
26
|
import { default as $ } from "./item/ItemThumbnail/index.js";
|
|
27
27
|
import { default as te } from "./item/ItemCard/index.js";
|
|
28
28
|
import { default as oe } from "./item/ItemTable/index.js";
|
|
29
29
|
import { default as fe } from "./item/ItemTableRow/index.js";
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
30
|
+
import { default as me } from "./item/ItemPoster/index.js";
|
|
31
|
+
import { default as ue } from "./item/ItemPosterViewer/index.js";
|
|
32
32
|
import { default as se } from "./item/ItemPosterList/index.js";
|
|
33
33
|
import { default as ne } from "./inputs/BasicDateTimeInput/index.js";
|
|
34
34
|
import { default as Ie } from "./inputs/BooleanInput/index.js";
|
|
@@ -38,17 +38,21 @@ import { default as ge } from "./inputs/DateTimeInput/index.js";
|
|
|
38
38
|
import { default as Me } from "./inputs/MaskedTextInput/index.js";
|
|
39
39
|
import { default as he } from "./inputs/NumberInput/index.js";
|
|
40
40
|
import { default as Ee } from "./inputs/RadioGroupInput/index.js";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as Xe } from "./
|
|
41
|
+
import { default as Se } from "./inputs/SelectInput/index.js";
|
|
42
|
+
import { default as De } from "./inputs/SliderInput/index.js";
|
|
43
|
+
import { default as Ue } from "./inputs/TagInput/index.js";
|
|
44
|
+
import { default as ye } from "./inputs/TextInput/index.js";
|
|
45
|
+
import { default as Ve } from "./shape/ShapeMediaBadges/index.js";
|
|
46
|
+
import { default as Ae } from "./search/SearchFilterForm/index.js";
|
|
47
|
+
import { default as je } from "./transcode/TranscodePresetMediaBadges/index.js";
|
|
48
|
+
import { default as He } from "./upload/UploadDropzone/index.js";
|
|
49
|
+
import { default as Ke } from "./upload/UploadListItem/index.js";
|
|
50
|
+
import { default as Qe } from "./upload/UploadFileTree/index.js";
|
|
51
|
+
import { default as Xe } from "./upload/UploadFileTreeItem/index.js";
|
|
52
|
+
import { default as Ze } from "./event/EventList/index.js";
|
|
53
|
+
import { default as $e } from "./event/EventListItem/index.js";
|
|
54
|
+
import { default as tt } from "./metadata/MetadataGroupTreeView/index.js";
|
|
55
|
+
import { default as ot } from "./metadata/MetadataForm/index.js";
|
|
52
56
|
export {
|
|
53
57
|
c as AvatarMenu,
|
|
54
58
|
ne as BasicDateTimeInput,
|
|
@@ -56,10 +60,10 @@ export {
|
|
|
56
60
|
Ie as BooleanInput,
|
|
57
61
|
b as CalendarPicker,
|
|
58
62
|
Te as CheckboxGroupInput,
|
|
59
|
-
|
|
63
|
+
p as CollectionCard,
|
|
60
64
|
a as CollectionList,
|
|
61
65
|
r as CollectionListItem,
|
|
62
|
-
|
|
66
|
+
l as CollectionRepresentativeThumbnail,
|
|
63
67
|
B as CompactBadge,
|
|
64
68
|
P as CompactLabel,
|
|
65
69
|
v as CornerLabelPlacer,
|
|
@@ -68,38 +72,42 @@ export {
|
|
|
68
72
|
x as EntityAvatar,
|
|
69
73
|
d as EntityIcon,
|
|
70
74
|
i as EntityList,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
Ze as EventList,
|
|
76
|
+
$e as EventListItem,
|
|
77
|
+
F as ExpandButton,
|
|
78
|
+
J as Form,
|
|
79
|
+
k as ImageCollage,
|
|
76
80
|
te as ItemCard,
|
|
77
81
|
X as ItemList,
|
|
78
82
|
Z as ItemListItem,
|
|
79
|
-
|
|
83
|
+
me as ItemPoster,
|
|
80
84
|
se as ItemPosterList,
|
|
81
|
-
|
|
85
|
+
ue as ItemPosterViewer,
|
|
82
86
|
oe as ItemTable,
|
|
83
87
|
fe as ItemTableRow,
|
|
84
88
|
$ as ItemThumbnail,
|
|
85
89
|
Me as MaskedTextInput,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
R as MediaIcon,
|
|
91
|
+
w as MenuItem,
|
|
92
|
+
ot as MetadataForm,
|
|
93
|
+
tt as MetadataGroupTreeView,
|
|
90
94
|
he as NumberInput,
|
|
91
95
|
Ee as RadioGroupInput,
|
|
92
96
|
z as ScrubLine,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
Ae as SearchFilterForm,
|
|
98
|
+
Se as SelectInput,
|
|
99
|
+
Ve as ShapeMediaBadges,
|
|
100
|
+
De as SliderInput,
|
|
101
|
+
N as Sort,
|
|
102
|
+
q as TablePagination,
|
|
103
|
+
Ue as TagInput,
|
|
104
|
+
ye as TextInput,
|
|
105
|
+
O as ThemeProvider,
|
|
106
|
+
je as TranscodePresetMediaBadges,
|
|
107
|
+
He as UploadDropzone,
|
|
108
|
+
Qe as UploadFileTree,
|
|
109
|
+
Xe as UploadFileTreeItem,
|
|
110
|
+
Ke as UploadListItem,
|
|
111
|
+
G as VirtualizedList,
|
|
112
|
+
Q as useThemeContext
|
|
105
113
|
};
|
|
@@ -25,11 +25,11 @@ export interface BooleanInputProps extends WithOverrideProps<typeof defaultCompo
|
|
|
25
25
|
/**
|
|
26
26
|
* Value of input
|
|
27
27
|
*/
|
|
28
|
-
value?: boolean;
|
|
28
|
+
value?: boolean | '' | 'true' | 'false';
|
|
29
29
|
/**
|
|
30
30
|
* Default value of input (use for uncontrolled)
|
|
31
31
|
*/
|
|
32
|
-
defaultValue?: boolean;
|
|
32
|
+
defaultValue?: boolean | '' | 'true' | 'false';
|
|
33
33
|
/**
|
|
34
34
|
* Label to use
|
|
35
35
|
*/
|
|
@@ -1,92 +1,95 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { styled as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import D from "@mui/material/FormControl";
|
|
3
|
+
import E from "@mui/material/FormControlLabel";
|
|
4
|
+
import P from "@mui/material/FormHelperText";
|
|
5
|
+
import V from "@mui/material/Switch";
|
|
6
|
+
import W from "@mui/material/Checkbox";
|
|
7
|
+
import { styled as C } from "@mui/material/styles";
|
|
8
|
+
const $ = C(E, {
|
|
9
9
|
shouldForwardProp: (o) => o !== "size"
|
|
10
10
|
})(({
|
|
11
11
|
theme: o,
|
|
12
|
-
size:
|
|
13
|
-
labelPlacement:
|
|
12
|
+
size: e,
|
|
13
|
+
labelPlacement: t
|
|
14
14
|
}) => ({
|
|
15
15
|
"& .MuiTypography-root": {
|
|
16
|
-
...
|
|
16
|
+
...e === "small" && {
|
|
17
17
|
fontSize: "0.8rem"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"&.Mui-error": {
|
|
21
21
|
color: o.palette.error.main
|
|
22
22
|
},
|
|
23
|
-
...
|
|
23
|
+
...t === "end" ? {
|
|
24
24
|
marginRight: 0
|
|
25
25
|
} : {},
|
|
26
|
-
...
|
|
26
|
+
...t === "start" ? {
|
|
27
27
|
marginLeft: 0
|
|
28
28
|
} : {},
|
|
29
|
-
...["bottom", "top"].includes(
|
|
29
|
+
...["bottom", "top"].includes(t) ? {
|
|
30
30
|
marginRight: 0,
|
|
31
31
|
marginLeft: 0
|
|
32
32
|
} : {}
|
|
33
|
-
})),
|
|
33
|
+
})), q = C(P, {
|
|
34
34
|
shouldForwardProp: (o) => !["fullWidth", "textAlign"].includes(o)
|
|
35
35
|
})(({
|
|
36
36
|
fullWidth: o,
|
|
37
|
-
textAlign:
|
|
37
|
+
textAlign: e
|
|
38
38
|
}) => o ? {
|
|
39
|
-
textAlign:
|
|
40
|
-
} : {}),
|
|
41
|
-
Root:
|
|
42
|
-
FormControlLabel:
|
|
43
|
-
FormHelperText:
|
|
44
|
-
Switch:
|
|
45
|
-
Checkbox:
|
|
46
|
-
},
|
|
39
|
+
textAlign: e
|
|
40
|
+
} : {}), G = {
|
|
41
|
+
Root: D,
|
|
42
|
+
FormControlLabel: $,
|
|
43
|
+
FormHelperText: q,
|
|
44
|
+
Switch: V,
|
|
45
|
+
Checkbox: W
|
|
46
|
+
}, b = ({
|
|
47
47
|
name: o,
|
|
48
|
-
label:
|
|
49
|
-
value:
|
|
50
|
-
defaultValue:
|
|
51
|
-
helperText:
|
|
52
|
-
error:
|
|
53
|
-
required:
|
|
54
|
-
disabled:
|
|
55
|
-
labelPlacement:
|
|
56
|
-
size:
|
|
57
|
-
fullWidth:
|
|
58
|
-
type:
|
|
59
|
-
onChange:
|
|
60
|
-
onBlur:
|
|
61
|
-
onFocus:
|
|
62
|
-
components:
|
|
48
|
+
label: e,
|
|
49
|
+
value: t,
|
|
50
|
+
defaultValue: l,
|
|
51
|
+
helperText: d,
|
|
52
|
+
error: s,
|
|
53
|
+
required: h,
|
|
54
|
+
disabled: F,
|
|
55
|
+
labelPlacement: p,
|
|
56
|
+
size: u,
|
|
57
|
+
fullWidth: f,
|
|
58
|
+
type: k,
|
|
59
|
+
onChange: v,
|
|
60
|
+
onBlur: y,
|
|
61
|
+
onFocus: T,
|
|
62
|
+
components: L,
|
|
63
63
|
componentsProps: r
|
|
64
64
|
}) => {
|
|
65
65
|
const {
|
|
66
|
-
Root:
|
|
67
|
-
FormControlLabel:
|
|
68
|
-
FormHelperText:
|
|
69
|
-
Switch:
|
|
70
|
-
Checkbox:
|
|
71
|
-
} =
|
|
66
|
+
Root: w,
|
|
67
|
+
FormControlLabel: M,
|
|
68
|
+
FormHelperText: S,
|
|
69
|
+
Switch: H,
|
|
70
|
+
Checkbox: R
|
|
71
|
+
} = L, A = {
|
|
72
72
|
end: "left",
|
|
73
73
|
start: "right",
|
|
74
74
|
top: "center",
|
|
75
75
|
bottom: "center"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
};
|
|
77
|
+
let i, m;
|
|
78
|
+
typeof l == "string" ? i = l === "true" : i = l, typeof t == "string" ? m = t === "true" : m = t;
|
|
79
|
+
const j = (n) => {
|
|
80
|
+
var g;
|
|
81
|
+
v(n, {
|
|
82
|
+
value: (g = n == null ? void 0 : n.target) == null ? void 0 : g.checked
|
|
80
83
|
});
|
|
81
|
-
},
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
+
}, a = !!s, x = (s || "").trim(), [z, B] = k === "switch" ? [H, r.switch] : [R, r.checkbox];
|
|
85
|
+
return /* @__PURE__ */ I(w, { error: a, required: h, disabled: F, fullWidth: f, ...r.root, children: [
|
|
86
|
+
/* @__PURE__ */ c(M, { label: h ? `${e} *` : e, labelPlacement: e ? p : "end", size: u, control: /* @__PURE__ */ c(z, { id: o, name: o, checked: m, size: u, type: "checkbox", defaultChecked: i, ...a ? {
|
|
84
87
|
color: "error"
|
|
85
|
-
} : {}, onChange:
|
|
86
|
-
(
|
|
88
|
+
} : {}, onChange: j, onBlur: y, onFocus: T, ...B }), ...r.formControlLabel }),
|
|
89
|
+
(x || d) && /* @__PURE__ */ c(S, { fullWidth: f, textAlign: A[p], ...r.formHelperText, children: a ? x : d })
|
|
87
90
|
] });
|
|
88
91
|
};
|
|
89
|
-
|
|
92
|
+
b.defaultProps = {
|
|
90
93
|
name: void 0,
|
|
91
94
|
label: void 0,
|
|
92
95
|
value: void 0,
|
|
@@ -102,10 +105,10 @@ x.defaultProps = {
|
|
|
102
105
|
onChange: () => null,
|
|
103
106
|
onBlur: void 0,
|
|
104
107
|
onFocus: void 0,
|
|
105
|
-
components:
|
|
108
|
+
components: G,
|
|
106
109
|
componentsProps: void 0
|
|
107
110
|
};
|
|
108
|
-
const
|
|
111
|
+
const Z = b;
|
|
109
112
|
export {
|
|
110
|
-
|
|
113
|
+
Z as default
|
|
111
114
|
};
|
|
@@ -37,5 +37,5 @@ export interface CheckboxGroupProps extends Omit<MuiFormGroupProps, 'onChange'>
|
|
|
37
37
|
rows: boolean;
|
|
38
38
|
type: string;
|
|
39
39
|
}
|
|
40
|
-
declare const CheckboxGroup: import("react").ForwardRefExoticComponent<
|
|
40
|
+
declare const CheckboxGroup: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
41
41
|
export default CheckboxGroup;
|
|
@@ -37,5 +37,5 @@ export interface RadioGroupProps extends Omit<MuiRadioGroupProps, 'onChange'> {
|
|
|
37
37
|
rows: boolean;
|
|
38
38
|
type: string;
|
|
39
39
|
}
|
|
40
|
-
declare const RadioGroup: import("react").ForwardRefExoticComponent<
|
|
40
|
+
declare const RadioGroup: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
41
41
|
export default RadioGroup;
|
|
@@ -25,5 +25,5 @@ export interface SliderProps extends Omit<MuiSliderProps, 'onChange'> {
|
|
|
25
25
|
rows?: boolean;
|
|
26
26
|
type?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const Slider: import("react").ForwardRefExoticComponent<
|
|
28
|
+
declare const Slider: import("react").ForwardRefExoticComponent<Omit<SliderProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
29
29
|
export default Slider;
|
|
@@ -17,8 +17,8 @@ const q = () => /* @__PURE__ */ m(w, { children: "No items found..." }), A = D(C
|
|
|
17
17
|
}, d = ({
|
|
18
18
|
itemListType: t,
|
|
19
19
|
header: l,
|
|
20
|
-
primary:
|
|
21
|
-
secondary:
|
|
20
|
+
primary: p,
|
|
21
|
+
secondary: u,
|
|
22
22
|
avatarVariant: c,
|
|
23
23
|
dense: f,
|
|
24
24
|
amountLoading: h,
|
|
@@ -27,29 +27,29 @@ const q = () => /* @__PURE__ */ m(w, { children: "No items found..." }), A = D(C
|
|
|
27
27
|
onListItemDelete: L,
|
|
28
28
|
emptySlot: y,
|
|
29
29
|
components: S,
|
|
30
|
-
componentsProps:
|
|
30
|
+
componentsProps: r
|
|
31
31
|
}) => {
|
|
32
32
|
const {
|
|
33
33
|
Root: v,
|
|
34
|
-
ListSubheader:
|
|
35
|
-
ListItem:
|
|
36
|
-
} = S,
|
|
34
|
+
ListSubheader: g,
|
|
35
|
+
ListItem: k
|
|
36
|
+
} = S, M = [...Array(Math.max(h, 0)).keys()].map(() => ({
|
|
37
37
|
key: n()
|
|
38
38
|
})), s = x(() => {
|
|
39
39
|
var o;
|
|
40
|
-
return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((
|
|
40
|
+
return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((i) => ({
|
|
41
41
|
key: n(),
|
|
42
|
-
itemType:
|
|
42
|
+
itemType: i
|
|
43
43
|
}))) || [];
|
|
44
44
|
}, [t.item]);
|
|
45
|
-
return /* @__PURE__ */ a(v, { dense: f, ...
|
|
46
|
-
/* @__PURE__ */ m(
|
|
45
|
+
return /* @__PURE__ */ a(v, { dense: f, ...r.root, children: [
|
|
46
|
+
/* @__PURE__ */ m(g, { ...r.listSubheader, children: l }),
|
|
47
47
|
/* @__PURE__ */ a(b, { children: [
|
|
48
48
|
!e && s.length === 0 && V(y),
|
|
49
|
-
(e ?
|
|
49
|
+
(e ? M : s).map(({
|
|
50
50
|
key: o,
|
|
51
|
-
itemType:
|
|
52
|
-
}) => /* @__PURE__ */ m(
|
|
51
|
+
itemType: i
|
|
52
|
+
}) => /* @__PURE__ */ m(k, { itemType: i, primary: p, secondary: u, avatarVariant: c, isLoading: e, onClick: I, onDelete: L, ...r.listItem }, o))
|
|
53
53
|
] })
|
|
54
54
|
] });
|
|
55
55
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { MetadataGroupValueType } from '@vidispine/types';
|
|
3
|
-
import { WithOverrideProps } from '../../_types';
|
|
3
|
+
import type { WithOverrideProps, StyledComponent } from '../../_types';
|
|
4
4
|
declare const defaultComponents: {
|
|
5
5
|
Root: any;
|
|
6
|
-
GroupTreeItem: any
|
|
7
|
-
FieldTreeItem: any
|
|
6
|
+
GroupTreeItem: StyledComponent<any>;
|
|
7
|
+
FieldTreeItem: StyledComponent<any>;
|
|
8
8
|
};
|
|
9
9
|
export interface MetadataGroupTreeViewProps extends WithOverrideProps<typeof defaultComponents> {
|
|
10
10
|
/**
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as t, jsxs as a, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import C from "@mui/
|
|
6
|
-
import { styled as i } from "@mui/material/styles";
|
|
1
|
+
import { jsx as t, jsxs as a, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import b from "@mui/icons-material/esm/ChevronRight";
|
|
3
|
+
import g from "@mui/icons-material/esm/ExpandMore";
|
|
4
|
+
import { styled as o } from "@mui/material/styles";
|
|
5
|
+
import { TreeItem as M, TreeView as C } from "@mui/x-tree-view";
|
|
7
6
|
import { parseFieldList as F } from "@vidispine/vdt-js";
|
|
8
|
-
const m =
|
|
7
|
+
const m = o(M)(() => ({
|
|
9
8
|
userSelect: "all",
|
|
10
9
|
"&:focus, &:hover, &.Mui-selected": {
|
|
11
10
|
"& > .MuiTreeItem-content, .MuiTreeItem-label": {
|
|
@@ -20,10 +19,10 @@ const m = i(g)(() => ({
|
|
|
20
19
|
Root: C,
|
|
21
20
|
GroupTreeItem: m,
|
|
22
21
|
FieldTreeItem: m
|
|
23
|
-
}, s =
|
|
22
|
+
}, s = o("span")(() => ({
|
|
24
23
|
fontWeight: 600,
|
|
25
24
|
fontSize: ".75rem"
|
|
26
|
-
})), S =
|
|
25
|
+
})), S = o("span")(() => ({
|
|
27
26
|
fontSize: ".75rem"
|
|
28
27
|
})), c = ({
|
|
29
28
|
group: n,
|
|
@@ -31,33 +30,33 @@ const m = i(g)(() => ({
|
|
|
31
30
|
componentsProps: r
|
|
32
31
|
}) => {
|
|
33
32
|
const {
|
|
34
|
-
Root:
|
|
35
|
-
GroupTreeItem:
|
|
33
|
+
Root: I,
|
|
34
|
+
GroupTreeItem: p,
|
|
36
35
|
FieldTreeItem: h
|
|
37
|
-
} = f, T = (e = {}) => /* @__PURE__ */ t(h, { nodeId: e.uuid, label: /* @__PURE__ */ a(
|
|
36
|
+
} = f, T = (e = {}) => /* @__PURE__ */ t(h, { nodeId: e.uuid, label: /* @__PURE__ */ a(x, { children: [
|
|
38
37
|
/* @__PURE__ */ t(s, { children: `${e.name}: ` }),
|
|
39
38
|
/* @__PURE__ */ t(S, { children: e.value.join(", ") })
|
|
40
|
-
] }), ...r.fieldTreeItem }, e.uuid),
|
|
41
|
-
var
|
|
42
|
-
return /* @__PURE__ */ a(
|
|
43
|
-
((
|
|
39
|
+
] }), ...r.fieldTreeItem }, e.uuid), d = (e = {}) => {
|
|
40
|
+
var i, u;
|
|
41
|
+
return /* @__PURE__ */ a(p, { nodeId: e.uuid, label: /* @__PURE__ */ t(s, { children: e.name }), ...r.groupTreeItem, children: [
|
|
42
|
+
((i = e.field) == null ? void 0 : i.length) > 0 ? F(e.field, {
|
|
44
43
|
includeFieldAttributes: !0,
|
|
45
44
|
fieldAsList: !0,
|
|
46
45
|
arrayOnSingleValue: !0
|
|
47
|
-
}).map((
|
|
48
|
-
((u = e.group) == null ? void 0 : u.length) > 0 ? e.group.map((
|
|
46
|
+
}).map((l) => T(l)) : null,
|
|
47
|
+
((u = e.group) == null ? void 0 : u.length) > 0 ? e.group.map((l) => d(l)) : null
|
|
49
48
|
] }, e.uuid);
|
|
50
49
|
};
|
|
51
|
-
return /* @__PURE__ */ t(
|
|
50
|
+
return /* @__PURE__ */ t(I, { defaultCollapseIcon: /* @__PURE__ */ t(g, {}), defaultExpanded: [n == null ? void 0 : n.uuid], defaultExpandIcon: /* @__PURE__ */ t(b, {}), sx: {
|
|
52
51
|
maxWidth: 400
|
|
53
|
-
}, ...r.root, children:
|
|
52
|
+
}, ...r.root, children: d(n) });
|
|
54
53
|
};
|
|
55
54
|
c.defaultProps = {
|
|
56
55
|
group: void 0,
|
|
57
56
|
components: v,
|
|
58
57
|
componentsProps: void 0
|
|
59
58
|
};
|
|
60
|
-
const
|
|
59
|
+
const R = c;
|
|
61
60
|
export {
|
|
62
|
-
|
|
61
|
+
R as default
|
|
63
62
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { FacetType, MetadataFieldType } from '@vidispine/types';
|
|
2
3
|
declare const useSearchFilterFormInputs: ({ fieldList, facetList, includeFacetsAsOptions, dataToPropsMap, errorMessages, inputsProps, }: {
|
|
3
4
|
fieldList?: MetadataFieldType[];
|