@vidispine/vdt-materialui 23.3.0-pre.4 → 23.3.0-pre.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),ge=require("clsx"),n=require("@material-ui/core"),s=require("@material-ui/icons"),z=require("@vidispine/vdt-js"),fe=require("../../icons/FolderMultipleIcon.js"),ve=require("./SavedSearchAccessList.js"),Me=require("./ShareSearch.js"),_="SHARE_MENU",p="LISTACCESS_MENU",be=i=>({root:{"&:hover $SubmitSearchIcon":{visibility:"visible"}},FolderIcon:{minWidth:32},SubmitSearchIcon:{visibility:"hidden"},inputDisabled:{cursor:"pointer"},disabled:{opacity:1},menuContext:{},menuExpand:{minWidth:i.breakpoints.values.sm/2},invisibleCursor:{caretColor:"transparent"},CancelEditIcon:{marginRight:i.spacing(.5),"&:hover":{color:"red"}},SubmitTitleIcon:{marginRight:i.spacing(.5),"&:hover":{color:"green"}},OptionsIcon:{marginRight:i.spacing(.5)}});function Ee({classes:i,collectionType:U,onSelect:V,onAddRow:D,onExpand:$,onDelete:W,onUpdateSearchMetadata:H,disableDeletion:S,type:l,accessTranslate:w,extraMenuItems:G=[],isFolderRow:J=!1,hideSubFolderSharing:K=!1,isLoading:Y,allowDelete:C=()=>!0,allowShare:g=()=>!0,allowListAccess:x=()=>!0,allowEditTitle:f=()=>!0,ListAccessComponent:Q=ve.default,ListAccessProps:X={},ShareComponent:Z=Me.default,ShareProps:ee={},addFolderText:ne="Add folder",addSearchText:te="Add search",editTitleText:ie="Edit",shareText:re="Share",listAccessText:se="Access",deleteText:v="Delete",backText:oe="Back",FolderSingleIcon:le=s.Folder,FolderMultiIcon:ce=fe.default,QueryIcon:ae=s.Search,CreateFolderIcon:M=s.CreateNewFolderOutlined,AddNewSearch:b=s.Search,SubmitSearchIcon:E=s.YoutubeSearchedFor,ListAccessIcon:L=s.Lock,SubmitTitleIcon:de=s.Check,CancelEditIcon:ue=s.Close,EditTitleIcon:k=s.Edit,ShareSearchIcon:y=s.Share,DeleteSearchIcon:T=s.Delete,OptionsIcon:xe=s.MoreVert}){const{metadata:N={}}=U,r=z.parseMetadataType(N,{joinValue:",",flat:!0}),O=u.useRef(),[h,c]=u.useState(null),[q,F]=u.useState(r.title||""),[m,a]=u.useState(null),[o,j]=u.useState(!1),he=t=>{t.stopPropagation&&t.stopPropagation(),a(t.currentTarget)},d=(t=()=>null,Ce="")=>B=>{B.stopPropagation&&B.stopPropagation(),a(null),t(Ce)},R=()=>H(z.createMetadataType({title:q})).then(()=>j(!1)),me=d(()=>{j(!0),O.current.focus()}),je=()=>{F(r.title),j(!1)},Ie=d(W),I=d(V),P=d($),A=t=>d(D,t),pe=t=>{t(N),a(null)},Se=l!=="folder"?I:P;return e.jsxs(e.Fragment,{children:[e.jsxs(n.ListItem,{disableGutters:!0,dense:!0,className:i.root,button:!0,onClick:l==="query"?I:P,disabled:Y,children:[J?{folder:e.jsx(n.ListItemIcon,{className:i.FolderIcon,children:S?e.jsx(ce,{}):e.jsx(le,{})}),query:e.jsx(n.ListItemIcon,{className:i.FolderIcon,children:e.jsx(ae,{})})}[l]:E&&e.jsx(n.ListItemIcon,{children:e.jsx(n.IconButton,{size:"small",onClick:I,children:e.jsx(E,{className:i.SubmitSearchIcon})})}),e.jsx(n.ListItemText,{primary:e.jsx(n.TextField,{fullWidth:!0,className:o?"":`${i.invisibleCursor}`,value:q,onChange:o?t=>F(t.target.value):void 0,onClick:o?t=>t.stopPropagation():Se,onKeyPress:t=>{t.key==="Enter"&&(t.preventDefault(),R())},InputProps:{inputProps:{ref:O,className:ge(i.input,{[i.inputDisabled]:!o})},disableUnderline:!o,endAdornment:e.jsx(n.InputAdornment,{position:"end",children:o?e.jsxs(e.Fragment,{children:[e.jsx(n.ButtonBase,{size:"small",onClick:je,children:e.jsx(ue,{className:i.CancelEditIcon})}),e.jsx(n.ButtonBase,{size:"small",onClick:R,children:e.jsx(de,{className:i.SubmitTitleIcon})})]}):[g,x,C,f].some(t=>t(r))&&e.jsx(n.ButtonBase,{size:"small",onClick:he,children:e.jsx(xe,{className:i.OptionsIcon})})})}})})]}),e.jsx(n.Menu,{anchorEl:m,open:!!m&&h===null,keepMounted:!0,onClose:()=>a(null),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:e.jsxs("div",{className:i.menuContext,children:[x(r)&&l==="folder"&&e.jsxs(n.MenuItem,{dense:!0,onClick:A({id:r.collectionId,type:"folder"}),children:[M?e.jsx(n.ListItemIcon,{children:e.jsx(M,{})}):null,e.jsx(n.ListItemText,{primary:ne})]},1),x(r)&&l==="folder"&&e.jsxs(n.MenuItem,{dense:!0,onClick:A({id:r.collectionId,type:"query"}),children:[b?e.jsx(n.ListItemIcon,{children:e.jsx(b,{})}):null,e.jsx(n.ListItemText,{primary:te})]},2),f(r)&&e.jsxs(n.MenuItem,{dense:!0,onClick:me,children:[k?e.jsx(n.ListItemIcon,{children:e.jsx(k,{})}):null,e.jsx(n.ListItemText,{primary:ie})]},3),x(r)&&e.jsxs(n.MenuItem,{dense:!0,onClick:()=>c(p),children:[L?e.jsx(n.ListItemIcon,{children:e.jsx(L,{})}):null,e.jsx(n.ListItemText,{primary:se})]},4),g(r)&&!K&&e.jsxs(n.MenuItem,{dense:!0,onClick:()=>c(_),children:[y?e.jsx(n.ListItemIcon,{children:e.jsx(y,{})}):null,e.jsx(n.ListItemText,{primary:re})]},5),C(r)&&e.jsxs(n.MenuItem,{dense:!0,onClick:Ie,disabled:S,children:[T?e.jsx(n.ListItemIcon,{children:e.jsx(T,{})}):null,e.jsx(n.ListItemText,{primary:v})]},6),G.map(t=>e.jsxs(n.MenuItem,{dense:!0,onClick:()=>pe(t.function),children:[e.jsx(n.ListItemIcon,{children:e.jsx(t.icon,{})}),e.jsx(n.ListItemText,{primary:t.name})]},`extraMenu${t.id}`))]})}),e.jsx(n.Popover,{open:h!==null,anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{c(null),a(null)},children:e.jsxs("div",{className:i.menuExpand,children:[e.jsxs(n.MenuItem,{onClick:()=>c(null),children:[e.jsx(n.ListItemIcon,{children:e.jsx(s.ChevronLeft,{})}),e.jsx(n.ListItemText,{primary:oe})]}),e.jsx(n.Divider,{}),h===_&&e.jsx(Z,{collectionId:r.collectionId,onSuccess:()=>c(p),...ee}),h===p&&e.jsx(Q,{entityAccessMenuText:v,collectionId:r.collectionId,accessTranslate:w,...X})]})})]})}const Le=n.withStyles(be,{name:"VdtSavedSearchRow"})(Ee);exports.default=Le;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as ye, useState as f } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { withStyles as
|
|
5
|
-
import { ChevronLeft as
|
|
6
|
-
import { parseMetadataType as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const q = "SHARE_MENU",
|
|
3
|
+
import Me from "clsx";
|
|
4
|
+
import { withStyles as Ne, ListItem as xe, ListItemIcon as o, IconButton as Oe, ListItemText as l, TextField as Fe, InputAdornment as Re, ButtonBase as v, Menu as Te, MenuItem as c, Popover as Ae, Divider as Pe } from "@material-ui/core";
|
|
5
|
+
import { ChevronLeft as ze, Folder as Be, Search as j, CreateNewFolderOutlined as Ue, YoutubeSearchedFor as Ve, Lock as De, Check as Le, Close as _e, Edit as $e, Share as je, Delete as qe, MoreVert as We } from "@material-ui/icons";
|
|
6
|
+
import { parseMetadataType as He, createMetadataType as we } from "@vidispine/vdt-js";
|
|
7
|
+
import Ge from "../../icons/FolderMultipleIcon.js";
|
|
8
|
+
import Ke from "./SavedSearchAccessList.js";
|
|
9
|
+
import Ye from "./ShareSearch.js";
|
|
10
|
+
const q = "SHARE_MENU", I = "LISTACCESS_MENU", Je = (r) => ({
|
|
11
11
|
root: {
|
|
12
12
|
"&:hover $SubmitSearchIcon": {
|
|
13
13
|
visibility: "visible"
|
|
@@ -27,120 +27,123 @@ const q = "SHARE_MENU", v = "LISTACCESS_MENU", Ye = (t) => ({
|
|
|
27
27
|
},
|
|
28
28
|
menuContext: {},
|
|
29
29
|
menuExpand: {
|
|
30
|
-
minWidth:
|
|
30
|
+
minWidth: r.breakpoints.values.sm / 2
|
|
31
|
+
},
|
|
32
|
+
invisibleCursor: {
|
|
33
|
+
caretColor: "transparent"
|
|
31
34
|
},
|
|
32
35
|
CancelEditIcon: {
|
|
33
|
-
marginRight:
|
|
36
|
+
marginRight: r.spacing(0.5),
|
|
34
37
|
"&:hover": {
|
|
35
38
|
color: "red"
|
|
36
39
|
}
|
|
37
40
|
},
|
|
38
41
|
SubmitTitleIcon: {
|
|
39
|
-
marginRight:
|
|
42
|
+
marginRight: r.spacing(0.5),
|
|
40
43
|
"&:hover": {
|
|
41
44
|
color: "green"
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
OptionsIcon: {
|
|
45
|
-
marginRight:
|
|
48
|
+
marginRight: r.spacing(0.5)
|
|
46
49
|
}
|
|
47
50
|
});
|
|
48
|
-
function
|
|
49
|
-
classes:
|
|
51
|
+
function Qe({
|
|
52
|
+
classes: r,
|
|
50
53
|
collectionType: W,
|
|
51
|
-
onSelect:
|
|
52
|
-
onAddRow:
|
|
53
|
-
onExpand:
|
|
54
|
-
onDelete:
|
|
55
|
-
onUpdateSearchMetadata:
|
|
56
|
-
disableDeletion:
|
|
57
|
-
type:
|
|
58
|
-
accessTranslate:
|
|
59
|
-
extraMenuItems:
|
|
60
|
-
isFolderRow:
|
|
61
|
-
hideSubFolderSharing:
|
|
62
|
-
isLoading:
|
|
63
|
-
allowDelete:
|
|
54
|
+
onSelect: H,
|
|
55
|
+
onAddRow: w,
|
|
56
|
+
onExpand: G,
|
|
57
|
+
onDelete: K,
|
|
58
|
+
onUpdateSearchMetadata: Y,
|
|
59
|
+
disableDeletion: E,
|
|
60
|
+
type: d,
|
|
61
|
+
accessTranslate: J,
|
|
62
|
+
extraMenuItems: Q = [],
|
|
63
|
+
isFolderRow: X = !1,
|
|
64
|
+
hideSubFolderSharing: Z = !1,
|
|
65
|
+
isLoading: ee,
|
|
66
|
+
allowDelete: b = () => !0,
|
|
64
67
|
allowShare: k = () => !0,
|
|
65
68
|
allowListAccess: m = () => !0,
|
|
66
69
|
allowEditTitle: y = () => !0,
|
|
67
|
-
ListAccessComponent:
|
|
68
|
-
ListAccessProps:
|
|
69
|
-
ShareComponent: te =
|
|
70
|
+
ListAccessComponent: ne = Ke,
|
|
71
|
+
ListAccessProps: re = {},
|
|
72
|
+
ShareComponent: te = Ye,
|
|
70
73
|
ShareProps: ie = {},
|
|
71
|
-
addFolderText:
|
|
72
|
-
addSearchText:
|
|
73
|
-
editTitleText:
|
|
74
|
-
shareText:
|
|
75
|
-
listAccessText:
|
|
76
|
-
deleteText:
|
|
77
|
-
backText:
|
|
78
|
-
FolderSingleIcon:
|
|
79
|
-
FolderMultiIcon:
|
|
80
|
-
QueryIcon:
|
|
81
|
-
CreateFolderIcon:
|
|
74
|
+
addFolderText: oe = "Add folder",
|
|
75
|
+
addSearchText: le = "Add search",
|
|
76
|
+
editTitleText: ce = "Edit",
|
|
77
|
+
shareText: ae = "Share",
|
|
78
|
+
listAccessText: de = "Access",
|
|
79
|
+
deleteText: M = "Delete",
|
|
80
|
+
backText: se = "Back",
|
|
81
|
+
FolderSingleIcon: ue = Be,
|
|
82
|
+
FolderMultiIcon: he = Ge,
|
|
83
|
+
QueryIcon: me = j,
|
|
84
|
+
CreateFolderIcon: N = Ue,
|
|
82
85
|
AddNewSearch: x = j,
|
|
83
|
-
SubmitSearchIcon:
|
|
84
|
-
ListAccessIcon:
|
|
85
|
-
SubmitTitleIcon:
|
|
86
|
-
CancelEditIcon:
|
|
87
|
-
EditTitleIcon: R =
|
|
86
|
+
SubmitSearchIcon: O = Ve,
|
|
87
|
+
ListAccessIcon: F = De,
|
|
88
|
+
SubmitTitleIcon: pe = Le,
|
|
89
|
+
CancelEditIcon: fe = _e,
|
|
90
|
+
EditTitleIcon: R = $e,
|
|
88
91
|
ShareSearchIcon: T = je,
|
|
89
92
|
DeleteSearchIcon: A = qe,
|
|
90
|
-
OptionsIcon:
|
|
93
|
+
OptionsIcon: Ce = We
|
|
91
94
|
}) {
|
|
92
|
-
const { metadata:
|
|
93
|
-
n.stopPropagation && n.stopPropagation(),
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
g(!0),
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
n(
|
|
102
|
-
};
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
95
|
+
const { metadata: P = {} } = W, t = He(P, { joinValue: ",", flat: !0 }), z = ye(), [p, s] = f(null), [B, U] = f(t.title || ""), [C, u] = f(null), [a, g] = f(!1), ge = (n) => {
|
|
96
|
+
n.stopPropagation && n.stopPropagation(), u(n.currentTarget);
|
|
97
|
+
}, h = (n = () => null, ke = "") => (_) => {
|
|
98
|
+
_.stopPropagation && _.stopPropagation(), u(null), n(ke);
|
|
99
|
+
}, V = () => Y(we({ title: B })).then(() => g(!1)), Se = h(() => {
|
|
100
|
+
g(!0), z.current.focus();
|
|
101
|
+
}), ve = () => {
|
|
102
|
+
U(t.title), g(!1);
|
|
103
|
+
}, Ie = h(K), S = h(H), D = h(G), L = (n) => h(w, n), Ee = (n) => {
|
|
104
|
+
n(P), u(null);
|
|
105
|
+
}, be = d !== "folder" ? S : D;
|
|
106
|
+
return /* @__PURE__ */ i($, { children: [
|
|
107
|
+
/* @__PURE__ */ i(
|
|
105
108
|
xe,
|
|
106
109
|
{
|
|
107
110
|
disableGutters: !0,
|
|
108
111
|
dense: !0,
|
|
109
|
-
className:
|
|
112
|
+
className: r.root,
|
|
110
113
|
button: !0,
|
|
111
|
-
onClick:
|
|
112
|
-
disabled:
|
|
114
|
+
onClick: d === "query" ? S : D,
|
|
115
|
+
disabled: ee,
|
|
113
116
|
children: [
|
|
114
|
-
|
|
115
|
-
folder: /* @__PURE__ */ e(o, { className:
|
|
116
|
-
query: /* @__PURE__ */ e(o, { className:
|
|
117
|
-
}[
|
|
117
|
+
X ? {
|
|
118
|
+
folder: /* @__PURE__ */ e(o, { className: r.FolderIcon, children: E ? /* @__PURE__ */ e(he, {}) : /* @__PURE__ */ e(ue, {}) }),
|
|
119
|
+
query: /* @__PURE__ */ e(o, { className: r.FolderIcon, children: /* @__PURE__ */ e(me, {}) })
|
|
120
|
+
}[d] : O && /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(Oe, { size: "small", onClick: S, children: /* @__PURE__ */ e(O, { className: r.SubmitSearchIcon }) }) }),
|
|
118
121
|
/* @__PURE__ */ e(
|
|
119
122
|
l,
|
|
120
123
|
{
|
|
121
124
|
primary: /* @__PURE__ */ e(
|
|
122
|
-
|
|
125
|
+
Fe,
|
|
123
126
|
{
|
|
124
127
|
fullWidth: !0,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
className: a ? "" : `${r.invisibleCursor}`,
|
|
129
|
+
value: B,
|
|
130
|
+
onChange: a ? (n) => U(n.target.value) : void 0,
|
|
131
|
+
onClick: a ? (n) => n.stopPropagation() : be,
|
|
128
132
|
onKeyPress: (n) => {
|
|
129
|
-
n.key === "Enter" && (n.preventDefault(),
|
|
133
|
+
n.key === "Enter" && (n.preventDefault(), V());
|
|
130
134
|
},
|
|
131
135
|
InputProps: {
|
|
132
136
|
inputProps: {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
className: be(t.input, { [t.inputDisabled]: !a })
|
|
137
|
+
ref: z,
|
|
138
|
+
className: Me(r.input, { [r.inputDisabled]: !a })
|
|
136
139
|
},
|
|
137
140
|
disableUnderline: !a,
|
|
138
|
-
endAdornment: /* @__PURE__ */ e(Re, { position: "end", children: a ? /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */ e(
|
|
141
|
-
] }) : [k, m,
|
|
142
|
-
(n) => n(
|
|
143
|
-
) && /* @__PURE__ */ e(
|
|
141
|
+
endAdornment: /* @__PURE__ */ e(Re, { position: "end", children: a ? /* @__PURE__ */ i($, { children: [
|
|
142
|
+
/* @__PURE__ */ e(v, { size: "small", onClick: ve, children: /* @__PURE__ */ e(fe, { className: r.CancelEditIcon }) }),
|
|
143
|
+
/* @__PURE__ */ e(v, { size: "small", onClick: V, children: /* @__PURE__ */ e(pe, { className: r.SubmitTitleIcon }) })
|
|
144
|
+
] }) : [k, m, b, y].some(
|
|
145
|
+
(n) => n(t)
|
|
146
|
+
) && /* @__PURE__ */ e(v, { size: "small", onClick: ge, children: /* @__PURE__ */ e(Ce, { className: r.OptionsIcon }) }) })
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
149
|
)
|
|
@@ -155,7 +158,7 @@ function Je({
|
|
|
155
158
|
anchorEl: C,
|
|
156
159
|
open: !!C && p === null,
|
|
157
160
|
keepMounted: !0,
|
|
158
|
-
onClose: () =>
|
|
161
|
+
onClose: () => u(null),
|
|
159
162
|
getContentAnchorEl: null,
|
|
160
163
|
anchorOrigin: {
|
|
161
164
|
vertical: "bottom",
|
|
@@ -165,48 +168,48 @@ function Je({
|
|
|
165
168
|
vertical: "top",
|
|
166
169
|
horizontal: "right"
|
|
167
170
|
},
|
|
168
|
-
children: /* @__PURE__ */
|
|
169
|
-
m(
|
|
171
|
+
children: /* @__PURE__ */ i("div", { className: r.menuContext, children: [
|
|
172
|
+
m(t) && d === "folder" && /* @__PURE__ */ i(
|
|
170
173
|
c,
|
|
171
174
|
{
|
|
172
175
|
dense: !0,
|
|
173
|
-
onClick:
|
|
176
|
+
onClick: L({ id: t.collectionId, type: "folder" }),
|
|
174
177
|
children: [
|
|
175
|
-
|
|
176
|
-
/* @__PURE__ */ e(l, { primary:
|
|
178
|
+
N ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(N, {}) }) : null,
|
|
179
|
+
/* @__PURE__ */ e(l, { primary: oe })
|
|
177
180
|
]
|
|
178
181
|
},
|
|
179
182
|
1
|
|
180
183
|
),
|
|
181
|
-
m(
|
|
184
|
+
m(t) && d === "folder" && /* @__PURE__ */ i(
|
|
182
185
|
c,
|
|
183
186
|
{
|
|
184
187
|
dense: !0,
|
|
185
|
-
onClick:
|
|
188
|
+
onClick: L({ id: t.collectionId, type: "query" }),
|
|
186
189
|
children: [
|
|
187
190
|
x ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(x, {}) }) : null,
|
|
188
|
-
/* @__PURE__ */ e(l, { primary:
|
|
191
|
+
/* @__PURE__ */ e(l, { primary: le })
|
|
189
192
|
]
|
|
190
193
|
},
|
|
191
194
|
2
|
|
192
195
|
),
|
|
193
|
-
y(
|
|
196
|
+
y(t) && /* @__PURE__ */ i(c, { dense: !0, onClick: Se, children: [
|
|
194
197
|
R ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(R, {}) }) : null,
|
|
195
|
-
/* @__PURE__ */ e(l, { primary:
|
|
198
|
+
/* @__PURE__ */ e(l, { primary: ce })
|
|
196
199
|
] }, 3),
|
|
197
|
-
m(
|
|
198
|
-
|
|
199
|
-
/* @__PURE__ */ e(l, { primary:
|
|
200
|
+
m(t) && /* @__PURE__ */ i(c, { dense: !0, onClick: () => s(I), children: [
|
|
201
|
+
F ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(F, {}) }) : null,
|
|
202
|
+
/* @__PURE__ */ e(l, { primary: de })
|
|
200
203
|
] }, 4),
|
|
201
|
-
k(
|
|
204
|
+
k(t) && !Z && /* @__PURE__ */ i(c, { dense: !0, onClick: () => s(q), children: [
|
|
202
205
|
T ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(T, {}) }) : null,
|
|
203
|
-
/* @__PURE__ */ e(l, { primary:
|
|
206
|
+
/* @__PURE__ */ e(l, { primary: ae })
|
|
204
207
|
] }, 5),
|
|
205
|
-
|
|
208
|
+
b(t) && /* @__PURE__ */ i(c, { dense: !0, onClick: Ie, disabled: E, children: [
|
|
206
209
|
A ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(A, {}) }) : null,
|
|
207
|
-
/* @__PURE__ */ e(l, { primary:
|
|
210
|
+
/* @__PURE__ */ e(l, { primary: M })
|
|
208
211
|
] }, 6),
|
|
209
|
-
|
|
212
|
+
Q.map((n) => /* @__PURE__ */ i(
|
|
210
213
|
c,
|
|
211
214
|
{
|
|
212
215
|
dense: !0,
|
|
@@ -235,29 +238,29 @@ function Je({
|
|
|
235
238
|
horizontal: "right"
|
|
236
239
|
},
|
|
237
240
|
onClose: () => {
|
|
238
|
-
|
|
241
|
+
s(null), u(null);
|
|
239
242
|
},
|
|
240
|
-
children: /* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
|
|
243
|
-
/* @__PURE__ */ e(l, { primary:
|
|
243
|
+
children: /* @__PURE__ */ i("div", { className: r.menuExpand, children: [
|
|
244
|
+
/* @__PURE__ */ i(c, { onClick: () => s(null), children: [
|
|
245
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(ze, {}) }),
|
|
246
|
+
/* @__PURE__ */ e(l, { primary: se })
|
|
244
247
|
] }),
|
|
245
|
-
/* @__PURE__ */ e(
|
|
248
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
246
249
|
p === q && /* @__PURE__ */ e(
|
|
247
250
|
te,
|
|
248
251
|
{
|
|
249
|
-
collectionId:
|
|
250
|
-
onSuccess: () =>
|
|
252
|
+
collectionId: t.collectionId,
|
|
253
|
+
onSuccess: () => s(I),
|
|
251
254
|
...ie
|
|
252
255
|
}
|
|
253
256
|
),
|
|
254
|
-
p ===
|
|
255
|
-
|
|
257
|
+
p === I && /* @__PURE__ */ e(
|
|
258
|
+
ne,
|
|
256
259
|
{
|
|
257
|
-
entityAccessMenuText:
|
|
258
|
-
collectionId:
|
|
259
|
-
accessTranslate:
|
|
260
|
-
...
|
|
260
|
+
entityAccessMenuText: M,
|
|
261
|
+
collectionId: t.collectionId,
|
|
262
|
+
accessTranslate: J,
|
|
263
|
+
...re
|
|
261
264
|
}
|
|
262
265
|
)
|
|
263
266
|
] })
|
|
@@ -265,7 +268,7 @@ function Je({
|
|
|
265
268
|
)
|
|
266
269
|
] });
|
|
267
270
|
}
|
|
268
|
-
const
|
|
271
|
+
const an = Ne(Je, { name: "VdtSavedSearchRow" })(Qe);
|
|
269
272
|
export {
|
|
270
|
-
|
|
273
|
+
an as default
|
|
271
274
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidispine/vdt-materialui",
|
|
3
|
-
"version": "23.3.0-pre.
|
|
3
|
+
"version": "23.3.0-pre.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.21.0",
|
|
38
|
-
"@vidispine/proptypes": "23.3.0-pre.
|
|
39
|
-
"@vidispine/vdt-api": "23.3.0-pre.
|
|
40
|
-
"@vidispine/vdt-js": "23.3.0-pre.
|
|
41
|
-
"@vidispine/vdt-react": "23.3.0-pre.
|
|
42
|
-
"@vidispine/vdt-videojs-react": "23.3.0-pre.
|
|
38
|
+
"@vidispine/proptypes": "23.3.0-pre.5",
|
|
39
|
+
"@vidispine/vdt-api": "23.3.0-pre.5",
|
|
40
|
+
"@vidispine/vdt-js": "23.3.0-pre.5",
|
|
41
|
+
"@vidispine/vdt-react": "23.3.0-pre.5",
|
|
42
|
+
"@vidispine/vdt-videojs-react": "23.3.0-pre.5",
|
|
43
43
|
"clsx": "^1.2.1",
|
|
44
44
|
"filesize": "^10.0.6",
|
|
45
45
|
"final-form": "^4.20.9",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/jest": "28.1.8",
|
|
73
|
-
"@vidispine/eslint-config-mdx": "23.3.0-pre.
|
|
74
|
-
"@vidispine/eslint-config-react": "23.3.0-pre.
|
|
75
|
-
"@vidispine/eslint-config-storybook": "23.3.0-pre.
|
|
76
|
-
"@vidispine/prettier-config": "23.3.0-pre.
|
|
77
|
-
"@vidispine/proptypes": "23.3.0-pre.
|
|
73
|
+
"@vidispine/eslint-config-mdx": "23.3.0-pre.5",
|
|
74
|
+
"@vidispine/eslint-config-react": "23.3.0-pre.5",
|
|
75
|
+
"@vidispine/eslint-config-storybook": "23.3.0-pre.5",
|
|
76
|
+
"@vidispine/prettier-config": "23.3.0-pre.5",
|
|
77
|
+
"@vidispine/proptypes": "23.3.0-pre.5",
|
|
78
78
|
"@vitejs/plugin-react": "3.1.0",
|
|
79
79
|
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
|
|
80
80
|
"axios": "0.21.4",
|