@bigbinary/neeto-folders-frontend 2.1.0 → 2.2.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/README.md +175 -1
- package/app/javascript/src/translations/en.json +82 -0
- package/dist/.ready +1 -1
- package/dist/cjs/components.js +5 -4
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/hooks.js +2 -2
- package/dist/cjs/utils.js +2 -2
- package/dist/cjs/v2/components.js +946 -40
- package/dist/cjs/v2/components.js.map +1 -1
- package/dist/components.js +5 -4
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{index-BXvkr7vp.js → index-CbypYFzw.js} +2 -2
- package/dist/{index-BXvkr7vp.js.map → index-CbypYFzw.js.map} +1 -1
- package/dist/{index-DCIRHXw_.js → index-DPGZgR3c.js} +2 -2
- package/dist/{index-DCIRHXw_.js.map → index-DPGZgR3c.js.map} +1 -1
- package/dist/{internal-UIifJzTd.js → internal-Cg8w0New.js} +8 -2
- package/dist/internal-Cg8w0New.js.map +1 -0
- package/dist/{internal-DAkDv0P1.js → internal-DkESa3he.js} +8 -1
- package/dist/internal-DkESa3he.js.map +1 -0
- package/dist/{useFolderActions-DCKQrv0G.js → useFolderActions-C1AHYJua.js} +2 -2
- package/dist/{useFolderActions-DCKQrv0G.js.map → useFolderActions-C1AHYJua.js.map} +1 -1
- package/dist/{useFolderActions-DImaQ3gr.js → useFolderActions-D_egbV70.js} +2 -2
- package/dist/{useFolderActions-DImaQ3gr.js.map → useFolderActions-D_egbV70.js.map} +1 -1
- package/dist/utils.js +2 -2
- package/dist/v2/components.js +949 -46
- package/dist/v2/components.js.map +1 -1
- package/package.json +9 -9
- package/types.d.ts +64 -0
- package/dist/internal-DAkDv0P1.js.map +0 -1
- package/dist/internal-UIifJzTd.js.map +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var lucideReact = require('lucide-react');
|
|
4
|
+
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
5
|
+
var injectCss = require('../../inject-css-D3Ee0dJK.js');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
7
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
8
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
9
|
+
var React = require('react');
|
|
10
|
+
var ramda = require('ramda');
|
|
11
|
+
var classNames = require('classnames');
|
|
12
|
+
var reactI18next = require('react-i18next');
|
|
13
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
14
|
+
var primitives = require('@bigbinary/neeto-atoms/primitives');
|
|
15
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
5
16
|
var shallow = require('zustand/shallow');
|
|
6
|
-
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
7
17
|
var reactQuery = require('@tanstack/react-query');
|
|
8
|
-
var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
9
18
|
var utils$1 = require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
10
|
-
var reactI18next = require('react-i18next');
|
|
11
19
|
var reactRouterDom = require('react-router-dom');
|
|
12
|
-
var useFolderActions = require('../../useFolderActions-
|
|
13
|
-
var injectCss = require('../../inject-css-D3Ee0dJK.js');
|
|
20
|
+
var useFolderActions = require('../../useFolderActions-D_egbV70.js');
|
|
14
21
|
var constants = require('../constants.js');
|
|
15
|
-
var utils = require('../../index-
|
|
16
|
-
var internal = require('../../internal-
|
|
17
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
22
|
+
var utils = require('../../index-DPGZgR3c.js');
|
|
23
|
+
var internal = require('../../internal-DkESa3he.js');
|
|
18
24
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
19
|
-
var React = require('react');
|
|
20
25
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
21
26
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
22
27
|
var formik = require('@bigbinary/neeto-atoms/formik');
|
|
23
28
|
var i18next = require('i18next');
|
|
24
29
|
var yup = require('yup');
|
|
25
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
26
|
-
var primitives = require('@bigbinary/neeto-atoms/primitives');
|
|
27
30
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
28
31
|
var useHotkeys = require('@bigbinary/neeto-hotkeys');
|
|
29
|
-
var ramda = require('ramda');
|
|
30
|
-
var classNames = require('classnames');
|
|
31
32
|
var core = require('@dnd-kit/core');
|
|
32
|
-
var lucideReact = require('lucide-react');
|
|
33
33
|
var reactDom = require('react-dom');
|
|
34
34
|
var modifiers = require('@dnd-kit/modifiers');
|
|
35
35
|
var MoreDropdown = require('@bigbinary/neeto-molecules/v2/MoreDropdown');
|
|
@@ -37,6 +37,757 @@ var formik$1 = require('formik');
|
|
|
37
37
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
38
38
|
require('zustand');
|
|
39
39
|
|
|
40
|
+
var LABEL_KEYS = {
|
|
41
|
+
sharedWithYou: "access.pill.sharedWithYou",
|
|
42
|
+
onlyYou: "access.pill.onlyYou",
|
|
43
|
+
onlyName: "access.pill.onlyName",
|
|
44
|
+
restricted: "access.pill.restricted"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var AccessPill = function AccessPill(_ref) {
|
|
48
|
+
var access = _ref.access,
|
|
49
|
+
viewerId = _ref.viewerId;
|
|
50
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
51
|
+
t = _useTranslation.t;
|
|
52
|
+
var _ref2 = access !== null && access !== void 0 ? access : {},
|
|
53
|
+
accessType = _ref2.accessType,
|
|
54
|
+
memberCount = _ref2.memberCount,
|
|
55
|
+
creatorId = _ref2.creatorId,
|
|
56
|
+
creatorName = _ref2.creatorName,
|
|
57
|
+
viewerIsMember = _ref2.viewerIsMember,
|
|
58
|
+
own = _ref2.own;
|
|
59
|
+
if (!accessType || accessType === "workspace") return null;
|
|
60
|
+
var isCreator = viewerId === creatorId;
|
|
61
|
+
var isSharedWithYou = (own === null || own === void 0 ? void 0 : own.accessType) === "restricted" && viewerIsMember && !isCreator;
|
|
62
|
+
var label, pillIcon;
|
|
63
|
+
if (isSharedWithYou) {
|
|
64
|
+
pillIcon = lucideReact.Users;
|
|
65
|
+
label = t(LABEL_KEYS.sharedWithYou);
|
|
66
|
+
} else if (accessType === "only_me" || !memberCount) {
|
|
67
|
+
pillIcon = lucideReact.Lock;
|
|
68
|
+
label = isCreator ? t(LABEL_KEYS.onlyYou) : t(LABEL_KEYS.onlyName, {
|
|
69
|
+
name: creatorName
|
|
70
|
+
});
|
|
71
|
+
} else {
|
|
72
|
+
pillIcon = lucideReact.Users;
|
|
73
|
+
// The creator always has access, so count them as the share pane does.
|
|
74
|
+
label = t(LABEL_KEYS.restricted, {
|
|
75
|
+
count: memberCount + 1
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
79
|
+
label: label,
|
|
80
|
+
"data-testid": "access-pill",
|
|
81
|
+
icon: pillIcon,
|
|
82
|
+
size: "sm",
|
|
83
|
+
variant: "gray-subtle"
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var ACCESS_TYPES = [{
|
|
88
|
+
value: "only_me",
|
|
89
|
+
icon: lucideReact.Lock
|
|
90
|
+
}, {
|
|
91
|
+
value: "workspace",
|
|
92
|
+
icon: lucideReact.Globe
|
|
93
|
+
}, {
|
|
94
|
+
value: "restricted",
|
|
95
|
+
icon: lucideReact.Users
|
|
96
|
+
}];
|
|
97
|
+
var CAPABILITIES = ["view", "manage"];
|
|
98
|
+
var DEFAULT_CAPABILITY = "manage";
|
|
99
|
+
var MANAGE_CAPABILITY = "manage";
|
|
100
|
+
var NEW_MEMBER_CAPABILITY = "view";
|
|
101
|
+
var NOT_CUSTOM_DRAFT = {
|
|
102
|
+
accessType: null,
|
|
103
|
+
capability: null,
|
|
104
|
+
members: []
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var AccessTypeCards = function AccessTypeCards(_ref) {
|
|
108
|
+
var kind = _ref.kind,
|
|
109
|
+
ownerName = _ref.ownerName,
|
|
110
|
+
value = _ref.value,
|
|
111
|
+
onChange = _ref.onChange;
|
|
112
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
113
|
+
t = _useTranslation.t;
|
|
114
|
+
var onlyKey = ownerName ? "only_name" : "only_me";
|
|
115
|
+
var labelKey = function labelKey(type) {
|
|
116
|
+
return type === "only_me" ? onlyKey : type;
|
|
117
|
+
};
|
|
118
|
+
var descriptionKey = function descriptionKey(type) {
|
|
119
|
+
return type === "only_me" ? "".concat(onlyKey, "_").concat(kind) : type;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
// The radio and its label already fire onValueChange; only the rest of the card selects here.
|
|
123
|
+
var handleCardClick = function handleCardClick(event, type) {
|
|
124
|
+
if (event.target.closest('[role="radio"], label')) return;
|
|
125
|
+
onChange(type);
|
|
126
|
+
};
|
|
127
|
+
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.RadioGroup, {
|
|
128
|
+
value: value,
|
|
129
|
+
className: "w-full gap-2",
|
|
130
|
+
"data-testid": "access-type-picker",
|
|
131
|
+
onValueChange: onChange,
|
|
132
|
+
children: ACCESS_TYPES.map(function (_ref2) {
|
|
133
|
+
var type = _ref2.value,
|
|
134
|
+
Icon = _ref2.icon;
|
|
135
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
136
|
+
className: classNames("flex w-full cursor-pointer items-start justify-between gap-3 rounded-md border p-3", type === value ? "border-foreground ring-foreground ring-1" : "border-border"),
|
|
137
|
+
onClick: function onClick(event) {
|
|
138
|
+
return handleCardClick(event, type);
|
|
139
|
+
},
|
|
140
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.RadioGroup.Item, {
|
|
141
|
+
value: type,
|
|
142
|
+
helpText: t("access.dialog.descriptions.".concat(descriptionKey(type)), {
|
|
143
|
+
name: ownerName
|
|
144
|
+
}),
|
|
145
|
+
label: t("access.dialog.types.".concat(labelKey(type)), {
|
|
146
|
+
name: ownerName
|
|
147
|
+
})
|
|
148
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
149
|
+
className: "text-muted-foreground size-4 shrink-0"
|
|
150
|
+
})]
|
|
151
|
+
}, type);
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var AffectedNote = function AffectedNote(_ref) {
|
|
157
|
+
var _ref$affected = _ref.affected,
|
|
158
|
+
names = _ref$affected.names,
|
|
159
|
+
total = _ref$affected.total;
|
|
160
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
161
|
+
t = _useTranslation.t;
|
|
162
|
+
var more = total - names.length;
|
|
163
|
+
var joined = names.join(", ");
|
|
164
|
+
var nameList = more > 0 ? t("access.dialog.namesAndMore", {
|
|
165
|
+
names: joined,
|
|
166
|
+
more: more
|
|
167
|
+
}) : joined;
|
|
168
|
+
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Callout, {
|
|
169
|
+
"data-testid": "access-affected-note",
|
|
170
|
+
variant: "info",
|
|
171
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
172
|
+
count: total,
|
|
173
|
+
i18nKey: "access.dialog.affected",
|
|
174
|
+
values: {
|
|
175
|
+
count: total,
|
|
176
|
+
names: nameList
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
var toDraftMember = ramda.pick(["userId", "name", "email", "profileImageUrl", "capability"]);
|
|
183
|
+
|
|
184
|
+
// Inheriting nodes seed from the parent's access so turning custom on starts
|
|
185
|
+
// from what the node has today; nodes with nothing to inherit start from own.
|
|
186
|
+
var buildInitialDraft = function buildInitialDraft(_ref) {
|
|
187
|
+
var _source$accessType, _source$members, _source$capability;
|
|
188
|
+
var inheritable = _ref.inheritable,
|
|
189
|
+
own = _ref.own,
|
|
190
|
+
inheritedFrom = _ref.inheritedFrom,
|
|
191
|
+
creatorId = _ref.creatorId;
|
|
192
|
+
var source = inheritable && !own ? inheritedFrom : own;
|
|
193
|
+
var accessType = (_source$accessType = source === null || source === void 0 ? void 0 : source.accessType) !== null && _source$accessType !== void 0 ? _source$accessType : "workspace";
|
|
194
|
+
var members = accessType === "restricted" ? ((_source$members = source.members) !== null && _source$members !== void 0 ? _source$members : []).filter(function (_ref2) {
|
|
195
|
+
var userId = _ref2.userId;
|
|
196
|
+
return userId !== creatorId;
|
|
197
|
+
}).map(toDraftMember) : [];
|
|
198
|
+
return {
|
|
199
|
+
isCustom: !inheritable || !!own,
|
|
200
|
+
accessType: accessType,
|
|
201
|
+
capability: (_source$capability = source === null || source === void 0 ? void 0 : source.capability) !== null && _source$capability !== void 0 ? _source$capability : DEFAULT_CAPABILITY,
|
|
202
|
+
members: members
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// Badge label and "who" line describing an access source in the inherit box.
|
|
207
|
+
// Nothing set anywhere resolves to Workspace, so an empty source reads as Workspace.
|
|
208
|
+
var capWho = function capWho(t, _ref3, _ref4) {
|
|
209
|
+
var _ref3$accessType = _ref3.accessType,
|
|
210
|
+
accessType = _ref3$accessType === void 0 ? "workspace" : _ref3$accessType,
|
|
211
|
+
memberCount = _ref3.memberCount;
|
|
212
|
+
var isCreator = _ref4.isCreator,
|
|
213
|
+
name = _ref4.name;
|
|
214
|
+
if (accessType === "workspace") {
|
|
215
|
+
return {
|
|
216
|
+
label: t("access.dialog.label.workspace"),
|
|
217
|
+
who: t("access.dialog.who.workspace")
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
if (accessType === "restricted") {
|
|
221
|
+
return {
|
|
222
|
+
label: t("access.dialog.label.restricted"),
|
|
223
|
+
who: t("access.dialog.who.restricted", {
|
|
224
|
+
count: memberCount !== null && memberCount !== void 0 ? memberCount : 0
|
|
225
|
+
})
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
return isCreator ? {
|
|
229
|
+
label: t("access.dialog.label.onlyMe"),
|
|
230
|
+
who: t("access.dialog.who.onlyYou")
|
|
231
|
+
} : {
|
|
232
|
+
label: t("access.dialog.label.onlyName", {
|
|
233
|
+
name: name
|
|
234
|
+
}),
|
|
235
|
+
who: t("access.dialog.who.onlyName", {
|
|
236
|
+
name: name
|
|
237
|
+
})
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
var InheritBox = function InheritBox(_ref) {
|
|
242
|
+
var kind = _ref.kind,
|
|
243
|
+
access = _ref.access,
|
|
244
|
+
viewerId = _ref.viewerId,
|
|
245
|
+
isCustom = _ref.isCustom,
|
|
246
|
+
onToggle = _ref.onToggle;
|
|
247
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
248
|
+
t = _useTranslation.t;
|
|
249
|
+
var inheritedFrom = access.inheritedFrom,
|
|
250
|
+
creatorId = access.creatorId,
|
|
251
|
+
creatorName = access.creatorName;
|
|
252
|
+
var parent = inheritedFrom === null || inheritedFrom === void 0 ? void 0 : inheritedFrom.name;
|
|
253
|
+
var _capWho = capWho(t, inheritedFrom !== null && inheritedFrom !== void 0 ? inheritedFrom : {}, {
|
|
254
|
+
isCreator: viewerId === creatorId,
|
|
255
|
+
name: creatorName
|
|
256
|
+
}),
|
|
257
|
+
label = _capWho.label,
|
|
258
|
+
who = _capWho.who;
|
|
259
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
260
|
+
className: "border-border bg-muted flex gap-3 rounded-md border p-3",
|
|
261
|
+
"data-testid": "access-inherit-box",
|
|
262
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(lucideReact.CornerDownRight, {
|
|
263
|
+
className: "text-muted-foreground mt-0.5 size-4 shrink-0"
|
|
264
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
265
|
+
className: "min-w-0 flex-1",
|
|
266
|
+
children: [isCustom ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
267
|
+
variant: "body3",
|
|
268
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
269
|
+
i18nKey: "access.dialog.custom",
|
|
270
|
+
values: {
|
|
271
|
+
kind: kind,
|
|
272
|
+
parent: parent
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
}) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
276
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Typography, {
|
|
277
|
+
variant: "body3",
|
|
278
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
279
|
+
i18nKey: "access.dialog.inheriting",
|
|
280
|
+
values: {
|
|
281
|
+
kind: kind,
|
|
282
|
+
parent: parent
|
|
283
|
+
}
|
|
284
|
+
}), " ", /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
285
|
+
label: label,
|
|
286
|
+
size: "sm",
|
|
287
|
+
variant: "outline"
|
|
288
|
+
})]
|
|
289
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
290
|
+
className: "mt-1",
|
|
291
|
+
color: "muted",
|
|
292
|
+
variant: "body3",
|
|
293
|
+
children: who
|
|
294
|
+
})]
|
|
295
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
296
|
+
className: "border-border mt-3 flex cursor-pointer items-start gap-3 border-t pt-3",
|
|
297
|
+
"data-testid": "access-custom-toggle",
|
|
298
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Switch, {
|
|
299
|
+
checked: isCustom,
|
|
300
|
+
className: "mt-0.5",
|
|
301
|
+
onCheckedChange: onToggle
|
|
302
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
303
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
304
|
+
variant: "body3",
|
|
305
|
+
weight: "semibold",
|
|
306
|
+
children: t("access.dialog.customToggle", {
|
|
307
|
+
kind: kind
|
|
308
|
+
})
|
|
309
|
+
}), !isCustom && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
310
|
+
color: "muted",
|
|
311
|
+
variant: "body3",
|
|
312
|
+
children: t("access.dialog.customToggleHelp", {
|
|
313
|
+
kind: kind
|
|
314
|
+
})
|
|
315
|
+
})]
|
|
316
|
+
})]
|
|
317
|
+
})]
|
|
318
|
+
})]
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
var CapabilityToggle = function CapabilityToggle(_ref) {
|
|
323
|
+
var t = _ref.t,
|
|
324
|
+
label = _ref.label,
|
|
325
|
+
value = _ref.value,
|
|
326
|
+
onChange = _ref.onChange;
|
|
327
|
+
return /*#__PURE__*/jsxRuntime.jsx(primitives.ToggleGroup, {
|
|
328
|
+
value: value,
|
|
329
|
+
"aria-label": label,
|
|
330
|
+
size: "sm",
|
|
331
|
+
type: "single",
|
|
332
|
+
variant: "outline",
|
|
333
|
+
onValueChange: function onValueChange(next) {
|
|
334
|
+
return next && onChange(next);
|
|
335
|
+
},
|
|
336
|
+
children: CAPABILITIES.map(function (capability) {
|
|
337
|
+
return /*#__PURE__*/jsxRuntime.jsx(primitives.ToggleGroupItem, {
|
|
338
|
+
className: "data-[state=on]:bg-foreground data-[state=on]:text-background",
|
|
339
|
+
value: capability,
|
|
340
|
+
children: t("access.dialog.".concat(capability))
|
|
341
|
+
}, capability);
|
|
342
|
+
})
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
var CapabilityToggle$1 = reactUtils.withT(CapabilityToggle);
|
|
346
|
+
|
|
347
|
+
var MemberPicker = function MemberPicker(_ref) {
|
|
348
|
+
var candidates = _ref.candidates,
|
|
349
|
+
onAdd = _ref.onAdd;
|
|
350
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
351
|
+
t = _useTranslation.t;
|
|
352
|
+
var _useState = React.useState(""),
|
|
353
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
354
|
+
query = _useState2[0],
|
|
355
|
+
setQuery = _useState2[1];
|
|
356
|
+
var _useState3 = React.useState(false),
|
|
357
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
358
|
+
isOpen = _useState4[0],
|
|
359
|
+
setIsOpen = _useState4[1];
|
|
360
|
+
var _useState5 = React.useState([]),
|
|
361
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
362
|
+
selectedIds = _useState6[0],
|
|
363
|
+
setSelectedIds = _useState6[1];
|
|
364
|
+
var term = query.trim().toLowerCase();
|
|
365
|
+
var matches = candidates.filter(function (_ref2) {
|
|
366
|
+
var name = _ref2.name,
|
|
367
|
+
email = _ref2.email;
|
|
368
|
+
return !term || (name === null || name === void 0 ? void 0 : name.toLowerCase().includes(term)) || (email === null || email === void 0 ? void 0 : email.toLowerCase().includes(term));
|
|
369
|
+
});
|
|
370
|
+
var close = function close() {
|
|
371
|
+
setIsOpen(false);
|
|
372
|
+
setQuery("");
|
|
373
|
+
setSelectedIds([]);
|
|
374
|
+
};
|
|
375
|
+
var toggle = function toggle(id) {
|
|
376
|
+
return setSelectedIds(function (ids) {
|
|
377
|
+
return ids.includes(id) ? ids.filter(function (other) {
|
|
378
|
+
return other !== id;
|
|
379
|
+
}) : [].concat(_toConsumableArray(ids), [id]);
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
var handleDone = function handleDone() {
|
|
383
|
+
onAdd(candidates.filter(function (_ref3) {
|
|
384
|
+
var id = _ref3.id;
|
|
385
|
+
return selectedIds.includes(id);
|
|
386
|
+
}));
|
|
387
|
+
close();
|
|
388
|
+
};
|
|
389
|
+
var handleBlur = function handleBlur(event) {
|
|
390
|
+
if (!event.currentTarget.contains(event.relatedTarget)) close();
|
|
391
|
+
};
|
|
392
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
393
|
+
"data-testid": "access-member-picker",
|
|
394
|
+
onBlur: handleBlur,
|
|
395
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Input, {
|
|
396
|
+
"aria-label": t("access.dialog.searchPlaceholder"),
|
|
397
|
+
placeholder: t("access.dialog.searchPlaceholder"),
|
|
398
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(lucideReact.Search, {}),
|
|
399
|
+
value: query,
|
|
400
|
+
onChange: function onChange(event) {
|
|
401
|
+
return setQuery(event.target.value);
|
|
402
|
+
},
|
|
403
|
+
onFocus: function onFocus() {
|
|
404
|
+
return setIsOpen(true);
|
|
405
|
+
}
|
|
406
|
+
}), isOpen && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
407
|
+
className: "border-border bg-background mt-1 rounded-md border shadow-sm",
|
|
408
|
+
tabIndex: -1,
|
|
409
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
410
|
+
className: "max-h-60 overflow-y-auto p-2",
|
|
411
|
+
children: matches.length === 0 ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
412
|
+
className: "p-2",
|
|
413
|
+
color: "muted",
|
|
414
|
+
variant: "body3",
|
|
415
|
+
children: t("access.dialog.noMatch", {
|
|
416
|
+
query: query.trim()
|
|
417
|
+
})
|
|
418
|
+
}) : matches.map(function (_ref4) {
|
|
419
|
+
var id = _ref4.id,
|
|
420
|
+
name = _ref4.name,
|
|
421
|
+
email = _ref4.email;
|
|
422
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
423
|
+
className: "p-2",
|
|
424
|
+
title: email,
|
|
425
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Checkbox, {
|
|
426
|
+
checked: selectedIds.includes(id),
|
|
427
|
+
label: name || email,
|
|
428
|
+
onCheckedChange: function onCheckedChange() {
|
|
429
|
+
return toggle(id);
|
|
430
|
+
}
|
|
431
|
+
})
|
|
432
|
+
}, id);
|
|
433
|
+
})
|
|
434
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
435
|
+
className: "border-border flex items-center justify-between border-t p-2",
|
|
436
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
437
|
+
color: "muted",
|
|
438
|
+
variant: "body3",
|
|
439
|
+
children: selectedIds.length ? t("access.dialog.selectedCount", {
|
|
440
|
+
count: selectedIds.length
|
|
441
|
+
}) : t("access.dialog.selectOneOrMore")
|
|
442
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
443
|
+
disabled: !selectedIds.length,
|
|
444
|
+
label: t("access.dialog.done"),
|
|
445
|
+
size: "sm",
|
|
446
|
+
onClick: handleDone
|
|
447
|
+
})]
|
|
448
|
+
})]
|
|
449
|
+
})]
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
454
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
455
|
+
var MemberRow = function MemberRow(_ref) {
|
|
456
|
+
var name = _ref.name,
|
|
457
|
+
email = _ref.email,
|
|
458
|
+
profileImageUrl = _ref.profileImageUrl,
|
|
459
|
+
tag = _ref.tag,
|
|
460
|
+
children = _ref.children;
|
|
461
|
+
return /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
462
|
+
className: "border-border flex items-center gap-3 border-t py-2 first:border-t-0",
|
|
463
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Avatar, {
|
|
464
|
+
size: "sm",
|
|
465
|
+
user: {
|
|
466
|
+
name: name,
|
|
467
|
+
email: email,
|
|
468
|
+
imageUrl: profileImageUrl
|
|
469
|
+
}
|
|
470
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
471
|
+
className: "min-w-0 flex-1",
|
|
472
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Typography, {
|
|
473
|
+
variant: "body3",
|
|
474
|
+
weight: "medium",
|
|
475
|
+
children: [name || email, tag && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
476
|
+
className: "ml-2",
|
|
477
|
+
label: tag,
|
|
478
|
+
size: "sm",
|
|
479
|
+
variant: "gray-subtle"
|
|
480
|
+
})]
|
|
481
|
+
})
|
|
482
|
+
}), children]
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
var RestrictedMembers = function RestrictedMembers(_ref2) {
|
|
486
|
+
var kind = _ref2.kind,
|
|
487
|
+
access = _ref2.access,
|
|
488
|
+
viewerId = _ref2.viewerId,
|
|
489
|
+
members = _ref2.members,
|
|
490
|
+
candidates = _ref2.candidates,
|
|
491
|
+
initialCapabilities = _ref2.initialCapabilities,
|
|
492
|
+
onChange = _ref2.onChange;
|
|
493
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
494
|
+
t = _useTranslation.t;
|
|
495
|
+
var creatorId = access.creatorId,
|
|
496
|
+
creatorName = access.creatorName;
|
|
497
|
+
var memberIds = members.map(function (_ref3) {
|
|
498
|
+
var userId = _ref3.userId;
|
|
499
|
+
return userId;
|
|
500
|
+
});
|
|
501
|
+
var pickable = candidates.filter(function (_ref4) {
|
|
502
|
+
var id = _ref4.id;
|
|
503
|
+
return id !== creatorId && !memberIds.includes(id);
|
|
504
|
+
});
|
|
505
|
+
var handleAdd = function handleAdd(picked) {
|
|
506
|
+
return onChange([].concat(_toConsumableArray(members), _toConsumableArray(picked.map(function (_ref5) {
|
|
507
|
+
var id = _ref5.id,
|
|
508
|
+
name = _ref5.name,
|
|
509
|
+
email = _ref5.email,
|
|
510
|
+
profileImageUrl = _ref5.profileImageUrl;
|
|
511
|
+
return {
|
|
512
|
+
userId: id,
|
|
513
|
+
name: name,
|
|
514
|
+
email: email,
|
|
515
|
+
profileImageUrl: profileImageUrl,
|
|
516
|
+
capability: NEW_MEMBER_CAPABILITY
|
|
517
|
+
};
|
|
518
|
+
}))));
|
|
519
|
+
};
|
|
520
|
+
var updateCapability = function updateCapability(userId, capability) {
|
|
521
|
+
return onChange(members.map(function (member) {
|
|
522
|
+
return member.userId === userId ? _objectSpread$k(_objectSpread$k({}, member), {}, {
|
|
523
|
+
capability: capability
|
|
524
|
+
}) : member;
|
|
525
|
+
}));
|
|
526
|
+
};
|
|
527
|
+
var remove = function remove(userId) {
|
|
528
|
+
return onChange(members.filter(function (member) {
|
|
529
|
+
return member.userId !== userId;
|
|
530
|
+
}));
|
|
531
|
+
};
|
|
532
|
+
var emptySummary = viewerId === creatorId ? t("access.dialog.onlyYouUntil") : t("access.dialog.onlyNameUntil", {
|
|
533
|
+
name: creatorName
|
|
534
|
+
});
|
|
535
|
+
var isDemoted = function isDemoted(_ref6) {
|
|
536
|
+
var userId = _ref6.userId,
|
|
537
|
+
capability = _ref6.capability;
|
|
538
|
+
return kind === "folder" && capability === "view" && initialCapabilities[userId] === "manage";
|
|
539
|
+
};
|
|
540
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
541
|
+
className: "space-y-3",
|
|
542
|
+
"data-testid": "access-restricted-members",
|
|
543
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
544
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
545
|
+
variant: "body2",
|
|
546
|
+
weight: "semibold",
|
|
547
|
+
children: t("access.dialog.selectMembers")
|
|
548
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
549
|
+
color: "muted",
|
|
550
|
+
variant: "body3",
|
|
551
|
+
children: t("access.dialog.selectMembersHint.".concat(kind))
|
|
552
|
+
})]
|
|
553
|
+
}), /*#__PURE__*/jsxRuntime.jsx(MemberPicker, {
|
|
554
|
+
candidates: pickable,
|
|
555
|
+
onAdd: handleAdd
|
|
556
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
557
|
+
className: "flex items-center justify-between",
|
|
558
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
559
|
+
variant: "body3",
|
|
560
|
+
weight: "semibold",
|
|
561
|
+
children: t("access.dialog.peopleWithAccess")
|
|
562
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
563
|
+
color: "muted",
|
|
564
|
+
variant: "body3",
|
|
565
|
+
children: members.length ? t("access.dialog.peopleCount", {
|
|
566
|
+
count: members.length + 1
|
|
567
|
+
}) : emptySummary
|
|
568
|
+
})]
|
|
569
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("ul", {
|
|
570
|
+
"data-testid": "access-member-list",
|
|
571
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(MemberRow, {
|
|
572
|
+
name: creatorName,
|
|
573
|
+
tag: viewerId === creatorId ? t("access.dialog.you") : t("access.dialog.createdThisFolder")
|
|
574
|
+
}), members.map(function (member) {
|
|
575
|
+
return /*#__PURE__*/React.createElement(MemberRow, _objectSpread$k(_objectSpread$k({}, member), {}, {
|
|
576
|
+
key: member.userId
|
|
577
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
578
|
+
className: "flex flex-col items-end gap-1",
|
|
579
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
580
|
+
className: "flex items-center gap-2",
|
|
581
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(CapabilityToggle$1, {
|
|
582
|
+
value: member.capability,
|
|
583
|
+
label: t("access.dialog.capabilityFor", {
|
|
584
|
+
name: member.name || member.email
|
|
585
|
+
}),
|
|
586
|
+
onChange: function onChange(capability) {
|
|
587
|
+
return updateCapability(member.userId, capability);
|
|
588
|
+
}
|
|
589
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
590
|
+
label: t("access.dialog.remove"),
|
|
591
|
+
size: "sm",
|
|
592
|
+
variant: "link",
|
|
593
|
+
"aria-label": t("access.dialog.removeName", {
|
|
594
|
+
name: member.name || member.email
|
|
595
|
+
}),
|
|
596
|
+
onClick: function onClick() {
|
|
597
|
+
return remove(member.userId);
|
|
598
|
+
}
|
|
599
|
+
})]
|
|
600
|
+
}), isDemoted(member) && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
601
|
+
color: "muted",
|
|
602
|
+
variant: "body3",
|
|
603
|
+
children: t("access.dialog.demoteHint")
|
|
604
|
+
})]
|
|
605
|
+
}));
|
|
606
|
+
})]
|
|
607
|
+
})]
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
var WorkspaceCapability = function WorkspaceCapability(_ref) {
|
|
612
|
+
var t = _ref.t,
|
|
613
|
+
value = _ref.value,
|
|
614
|
+
onChange = _ref.onChange;
|
|
615
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
616
|
+
className: "space-y-2",
|
|
617
|
+
"data-testid": "access-capability-picker",
|
|
618
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
619
|
+
variant: "body2",
|
|
620
|
+
weight: "semibold",
|
|
621
|
+
children: t("access.dialog.capability")
|
|
622
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
623
|
+
className: "flex items-center justify-between gap-3",
|
|
624
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
625
|
+
variant: "body3",
|
|
626
|
+
children: t("access.dialog.everyoneCan")
|
|
627
|
+
}), /*#__PURE__*/jsxRuntime.jsx(CapabilityToggle$1, {
|
|
628
|
+
onChange: onChange,
|
|
629
|
+
value: value,
|
|
630
|
+
label: t("access.dialog.everyoneCan")
|
|
631
|
+
})]
|
|
632
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
633
|
+
color: "muted",
|
|
634
|
+
variant: "body3",
|
|
635
|
+
children: t("access.dialog.manageHint")
|
|
636
|
+
})]
|
|
637
|
+
});
|
|
638
|
+
};
|
|
639
|
+
var WorkspaceCapability$1 = reactUtils.withT(WorkspaceCapability);
|
|
640
|
+
|
|
641
|
+
var AccessShareDialog = function AccessShareDialog(_ref) {
|
|
642
|
+
var isOpen = _ref.isOpen,
|
|
643
|
+
kind = _ref.kind,
|
|
644
|
+
node = _ref.node,
|
|
645
|
+
access = _ref.access,
|
|
646
|
+
viewerId = _ref.viewerId,
|
|
647
|
+
_ref$members = _ref.members,
|
|
648
|
+
candidates = _ref$members === void 0 ? [] : _ref$members,
|
|
649
|
+
affected = _ref.affected,
|
|
650
|
+
_ref$isSaving = _ref.isSaving,
|
|
651
|
+
isSaving = _ref$isSaving === void 0 ? false : _ref$isSaving,
|
|
652
|
+
onClose = _ref.onClose,
|
|
653
|
+
onSave = _ref.onSave;
|
|
654
|
+
var _useTranslation = injectCss.useTranslation(),
|
|
655
|
+
t = _useTranslation.t;
|
|
656
|
+
var initialDraft = React.useMemo(function () {
|
|
657
|
+
return buildInitialDraft(access !== null && access !== void 0 ? access : {});
|
|
658
|
+
}, [access]);
|
|
659
|
+
var _useState = React.useState(initialDraft),
|
|
660
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
661
|
+
draft = _useState2[0],
|
|
662
|
+
setDraft = _useState2[1];
|
|
663
|
+
var isCustom = draft.isCustom,
|
|
664
|
+
accessType = draft.accessType,
|
|
665
|
+
capability = draft.capability,
|
|
666
|
+
members = draft.members;
|
|
667
|
+
var initialCapabilities = React.useMemo(function () {
|
|
668
|
+
return Object.fromEntries(initialDraft.members.map(function (_ref2) {
|
|
669
|
+
var userId = _ref2.userId,
|
|
670
|
+
capability = _ref2.capability;
|
|
671
|
+
return [userId, capability];
|
|
672
|
+
}));
|
|
673
|
+
}, [initialDraft]);
|
|
674
|
+
var update = function update(changes) {
|
|
675
|
+
return setDraft(ramda.mergeLeft(changes));
|
|
676
|
+
};
|
|
677
|
+
var isOwner = viewerId === (access === null || access === void 0 ? void 0 : access.creatorId);
|
|
678
|
+
var ownerName = isOwner ? null : access === null || access === void 0 ? void 0 : access.creatorName;
|
|
679
|
+
|
|
680
|
+
// A non-owner Manager switching to Restricted starts on the list as Manage,
|
|
681
|
+
// so saving doesn't silently lock them out; they can still remove themselves.
|
|
682
|
+
var handleTypeChange = function handleTypeChange(type) {
|
|
683
|
+
var _candidates$find;
|
|
684
|
+
var addViewer = type === "restricted" && accessType !== "restricted" && !isOwner && !members.some(function (_ref3) {
|
|
685
|
+
var userId = _ref3.userId;
|
|
686
|
+
return userId === viewerId;
|
|
687
|
+
});
|
|
688
|
+
if (!addViewer) return update({
|
|
689
|
+
accessType: type
|
|
690
|
+
});
|
|
691
|
+
var viewer = (_candidates$find = candidates.find(function (_ref4) {
|
|
692
|
+
var id = _ref4.id;
|
|
693
|
+
return id === viewerId;
|
|
694
|
+
})) !== null && _candidates$find !== void 0 ? _candidates$find : {};
|
|
695
|
+
return update({
|
|
696
|
+
accessType: type,
|
|
697
|
+
members: [].concat(_toConsumableArray(members), [{
|
|
698
|
+
userId: viewerId,
|
|
699
|
+
name: viewer.name,
|
|
700
|
+
email: viewer.email,
|
|
701
|
+
profileImageUrl: viewer.profileImageUrl,
|
|
702
|
+
capability: MANAGE_CAPABILITY
|
|
703
|
+
}])
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
var handleSave = function handleSave() {
|
|
707
|
+
return onSave(isCustom ? {
|
|
708
|
+
accessType: accessType,
|
|
709
|
+
capability: capability,
|
|
710
|
+
members: accessType === "restricted" ? members.map(function (_ref5) {
|
|
711
|
+
var userId = _ref5.userId,
|
|
712
|
+
capability = _ref5.capability;
|
|
713
|
+
return {
|
|
714
|
+
userId: userId,
|
|
715
|
+
capability: capability
|
|
716
|
+
};
|
|
717
|
+
}) : []
|
|
718
|
+
} : NOT_CUSTOM_DRAFT);
|
|
719
|
+
};
|
|
720
|
+
if (!access) return null;
|
|
721
|
+
return /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet, {
|
|
722
|
+
isOpen: isOpen,
|
|
723
|
+
onClose: onClose,
|
|
724
|
+
size: "large",
|
|
725
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Header, {
|
|
726
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Title, {
|
|
727
|
+
children: t("access.dialog.title", {
|
|
728
|
+
kind: kind
|
|
729
|
+
})
|
|
730
|
+
}), (node === null || node === void 0 ? void 0 : node.name) && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
731
|
+
color: "muted",
|
|
732
|
+
variant: "body3",
|
|
733
|
+
children: node.name
|
|
734
|
+
})]
|
|
735
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Body, {
|
|
736
|
+
className: "items-stretch space-y-4",
|
|
737
|
+
children: [access.inheritable && /*#__PURE__*/jsxRuntime.jsx(InheritBox, {
|
|
738
|
+
access: access,
|
|
739
|
+
isCustom: isCustom,
|
|
740
|
+
kind: kind,
|
|
741
|
+
viewerId: viewerId,
|
|
742
|
+
onToggle: function onToggle(checked) {
|
|
743
|
+
return update({
|
|
744
|
+
isCustom: checked
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
}), isCustom && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
748
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(AccessTypeCards, {
|
|
749
|
+
kind: kind,
|
|
750
|
+
ownerName: ownerName,
|
|
751
|
+
value: accessType,
|
|
752
|
+
onChange: handleTypeChange
|
|
753
|
+
}), accessType === "workspace" && /*#__PURE__*/jsxRuntime.jsx(WorkspaceCapability$1, {
|
|
754
|
+
value: capability,
|
|
755
|
+
onChange: function onChange(next) {
|
|
756
|
+
return update({
|
|
757
|
+
capability: next
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
}), accessType === "restricted" && /*#__PURE__*/jsxRuntime.jsx(RestrictedMembers, {
|
|
761
|
+
access: access,
|
|
762
|
+
candidates: candidates,
|
|
763
|
+
initialCapabilities: initialCapabilities,
|
|
764
|
+
kind: kind,
|
|
765
|
+
members: members,
|
|
766
|
+
viewerId: viewerId,
|
|
767
|
+
onChange: function onChange(next) {
|
|
768
|
+
return update({
|
|
769
|
+
members: next
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
}), (affected === null || affected === void 0 ? void 0 : affected.total) > 0 && /*#__PURE__*/jsxRuntime.jsx(AffectedNote, {
|
|
773
|
+
affected: affected
|
|
774
|
+
})]
|
|
775
|
+
})]
|
|
776
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Sheet.Footer, {
|
|
777
|
+
className: "flex justify-end gap-2",
|
|
778
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
779
|
+
label: t("common.cancel"),
|
|
780
|
+
variant: "ghost",
|
|
781
|
+
onClick: onClose
|
|
782
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
783
|
+
label: t("common.save"),
|
|
784
|
+
loading: isSaving,
|
|
785
|
+
onClick: handleSave
|
|
786
|
+
})]
|
|
787
|
+
})]
|
|
788
|
+
});
|
|
789
|
+
};
|
|
790
|
+
|
|
40
791
|
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
41
792
|
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
42
793
|
var FoldersAlerts = function FoldersAlerts(_ref) {
|
|
@@ -348,6 +1099,119 @@ var AddEditPane = function AddEditPane(_ref) {
|
|
|
348
1099
|
});
|
|
349
1100
|
};
|
|
350
1101
|
|
|
1102
|
+
var buildMessage = function buildMessage(t, preview) {
|
|
1103
|
+
var movedCount = preview.movedCount,
|
|
1104
|
+
changingCount = preview.changingCount,
|
|
1105
|
+
name = preview.name,
|
|
1106
|
+
destinationName = preview.destinationName,
|
|
1107
|
+
affectedCount = preview.affectedCount;
|
|
1108
|
+
var summary;
|
|
1109
|
+
if (movedCount === 1) {
|
|
1110
|
+
summary = t("moveAccess.single", {
|
|
1111
|
+
name: name,
|
|
1112
|
+
destination: destinationName
|
|
1113
|
+
});
|
|
1114
|
+
} else if (destinationName) {
|
|
1115
|
+
summary = t("moveAccess.batch", {
|
|
1116
|
+
count: changingCount,
|
|
1117
|
+
total: movedCount,
|
|
1118
|
+
destination: destinationName
|
|
1119
|
+
});
|
|
1120
|
+
} else {
|
|
1121
|
+
summary = t("moveAccess.batchNewFolders", {
|
|
1122
|
+
count: changingCount,
|
|
1123
|
+
total: movedCount
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1127
|
+
children: [summary, affectedCount > 0 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1128
|
+
children: [" ", t("moveAccess.affected", {
|
|
1129
|
+
count: affectedCount
|
|
1130
|
+
})]
|
|
1131
|
+
})]
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
// moves: [{ id, kind: "folder" | "item", parentId }]. Without config.api.previewMove, or when the
|
|
1136
|
+
// preview fails, the move goes ahead unconfirmed, as before.
|
|
1137
|
+
var useMoveAccessConfirmation = function useMoveAccessConfirmation(config) {
|
|
1138
|
+
var _useState = React.useState(null),
|
|
1139
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1140
|
+
pending = _useState2[0],
|
|
1141
|
+
setPending = _useState2[1];
|
|
1142
|
+
var _useTranslation = injectCss.useTranslation(config),
|
|
1143
|
+
t = _useTranslation.t;
|
|
1144
|
+
var confirmMove = /*#__PURE__*/function () {
|
|
1145
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(moves, performMove) {
|
|
1146
|
+
var _preview;
|
|
1147
|
+
var preview;
|
|
1148
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
1149
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1150
|
+
case 0:
|
|
1151
|
+
if (config.api.previewMove) {
|
|
1152
|
+
_context.next = 2;
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
return _context.abrupt("return", performMove());
|
|
1156
|
+
case 2:
|
|
1157
|
+
preview = null;
|
|
1158
|
+
_context.prev = 3;
|
|
1159
|
+
_context.next = 6;
|
|
1160
|
+
return config.api.previewMove({
|
|
1161
|
+
moves: moves
|
|
1162
|
+
});
|
|
1163
|
+
case 6:
|
|
1164
|
+
preview = _context.sent;
|
|
1165
|
+
_context.next = 12;
|
|
1166
|
+
break;
|
|
1167
|
+
case 9:
|
|
1168
|
+
_context.prev = 9;
|
|
1169
|
+
_context.t0 = _context["catch"](3);
|
|
1170
|
+
return _context.abrupt("return", performMove());
|
|
1171
|
+
case 12:
|
|
1172
|
+
if ((_preview = preview) !== null && _preview !== void 0 && _preview.changingCount) {
|
|
1173
|
+
_context.next = 14;
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
return _context.abrupt("return", performMove());
|
|
1177
|
+
case 14:
|
|
1178
|
+
return _context.abrupt("return", setPending({
|
|
1179
|
+
preview: preview,
|
|
1180
|
+
performMove: performMove
|
|
1181
|
+
}));
|
|
1182
|
+
case 15:
|
|
1183
|
+
case "end":
|
|
1184
|
+
return _context.stop();
|
|
1185
|
+
}
|
|
1186
|
+
}, _callee, null, [[3, 9]]);
|
|
1187
|
+
}));
|
|
1188
|
+
return function confirmMove(_x, _x2) {
|
|
1189
|
+
return _ref.apply(this, arguments);
|
|
1190
|
+
};
|
|
1191
|
+
}();
|
|
1192
|
+
var onClose = function onClose() {
|
|
1193
|
+
return setPending(null);
|
|
1194
|
+
};
|
|
1195
|
+
var onSubmit = function onSubmit() {
|
|
1196
|
+
pending.performMove();
|
|
1197
|
+
onClose();
|
|
1198
|
+
};
|
|
1199
|
+
var confirmationAlert = /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Alert, {
|
|
1200
|
+
onClose: onClose,
|
|
1201
|
+
onSubmit: onSubmit,
|
|
1202
|
+
isOpen: !!pending,
|
|
1203
|
+
message: pending && buildMessage(t, pending.preview),
|
|
1204
|
+
style: "warning",
|
|
1205
|
+
submitButtonLabel: t("moveAccess.submit"),
|
|
1206
|
+
title: t("moveAccess.title")
|
|
1207
|
+
});
|
|
1208
|
+
return {
|
|
1209
|
+
confirmMove: confirmMove,
|
|
1210
|
+
confirmationAlert: confirmationAlert,
|
|
1211
|
+
isConfirming: !!pending
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
|
|
351
1215
|
var _excluded$6 = ["icon", "itemLabel", "folder", "folderLabel", "depth", "hideTreeIndent", "className", "onClick"];
|
|
352
1216
|
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
353
1217
|
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -501,7 +1365,8 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
501
1365
|
onSubmit = _ref.onSubmit,
|
|
502
1366
|
onClose = _ref.onClose,
|
|
503
1367
|
onRemove = _ref.onRemove,
|
|
504
|
-
parentId = _ref.parentId
|
|
1368
|
+
parentId = _ref.parentId,
|
|
1369
|
+
getMoves = _ref.getMoves;
|
|
505
1370
|
var parent = (item === null || item === void 0 ? void 0 : item.parentId) || parentId || null;
|
|
506
1371
|
var _useState = React.useState(parent),
|
|
507
1372
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -526,6 +1391,17 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
526
1391
|
};
|
|
527
1392
|
}, shallow.shallow),
|
|
528
1393
|
type = _useFolderStore2.type;
|
|
1394
|
+
var _useMoveAccessConfirm = useMoveAccessConfirmation(config),
|
|
1395
|
+
confirmMove = _useMoveAccessConfirm.confirmMove,
|
|
1396
|
+
confirmationAlert = _useMoveAccessConfirm.confirmationAlert,
|
|
1397
|
+
isConfirming = _useMoveAccessConfirm.isConfirming;
|
|
1398
|
+
|
|
1399
|
+
// getMoves(selection) lists the moves so a change of access can be confirmed first.
|
|
1400
|
+
var handleSubmit = function handleSubmit() {
|
|
1401
|
+
return getMoves ? confirmMove(getMoves(selection), function () {
|
|
1402
|
+
return onSubmit(selection);
|
|
1403
|
+
}) : onSubmit(selection);
|
|
1404
|
+
};
|
|
529
1405
|
var tree = React.useMemo(function () {
|
|
530
1406
|
return createTree(folders, isRootEnabled);
|
|
531
1407
|
}, [folders, isRootEnabled]);
|
|
@@ -569,17 +1445,15 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
569
1445
|
}, shallow.shallow),
|
|
570
1446
|
lastCreatedFolderId = _useFolderStore3.lastCreatedFolderId;
|
|
571
1447
|
React.useEffect(function () {
|
|
572
|
-
if (lastCreatedFolderId
|
|
1448
|
+
if (ramda.isNil(lastCreatedFolderId)) return;
|
|
573
1449
|
setSelection(lastCreatedFolderId);
|
|
574
1450
|
setFolderState({
|
|
575
1451
|
lastCreatedFolderId: null
|
|
576
1452
|
});
|
|
577
1453
|
}, [lastCreatedFolderId]);
|
|
578
|
-
useHotkeys(["command+enter", "enter"],
|
|
579
|
-
return onSubmit(selection);
|
|
580
|
-
}, {
|
|
1454
|
+
useHotkeys(["command+enter", "enter"], handleSubmit, {
|
|
581
1455
|
mode: "global",
|
|
582
|
-
enabled: !!type
|
|
1456
|
+
enabled: !!type && !isConfirming
|
|
583
1457
|
});
|
|
584
1458
|
if (isFetching) {
|
|
585
1459
|
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Body, {
|
|
@@ -630,9 +1504,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
630
1504
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, _objectSpread$f(_objectSpread$f({
|
|
631
1505
|
label: t("common.save"),
|
|
632
1506
|
variant: "default",
|
|
633
|
-
onClick:
|
|
634
|
-
return onSubmit(selection);
|
|
635
|
-
}
|
|
1507
|
+
onClick: handleSubmit
|
|
636
1508
|
}, submitButtonProps), {}, {
|
|
637
1509
|
"data-testid": "save-changes-button",
|
|
638
1510
|
disabled: selection === parent || (submitButtonProps === null || submitButtonProps === void 0 ? void 0 : submitButtonProps.disabled)
|
|
@@ -650,7 +1522,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
650
1522
|
}, removeButtonProps), {}, {
|
|
651
1523
|
"data-testid": "remove-from-folder-button"
|
|
652
1524
|
}))]
|
|
653
|
-
})]
|
|
1525
|
+
}), confirmationAlert]
|
|
654
1526
|
});
|
|
655
1527
|
};
|
|
656
1528
|
|
|
@@ -677,7 +1549,8 @@ var MoveFolderPane = function MoveFolderPane(_ref) {
|
|
|
677
1549
|
payload: payload,
|
|
678
1550
|
config: {
|
|
679
1551
|
showToastr: false
|
|
680
|
-
}
|
|
1552
|
+
},
|
|
1553
|
+
initialSlug: item.sid
|
|
681
1554
|
}, {
|
|
682
1555
|
onSuccess: function onSuccess() {
|
|
683
1556
|
var _config$onUpdateSucce;
|
|
@@ -691,6 +1564,13 @@ var MoveFolderPane = function MoveFolderPane(_ref) {
|
|
|
691
1564
|
config: config,
|
|
692
1565
|
item: item,
|
|
693
1566
|
onClose: onClose,
|
|
1567
|
+
getMoves: function getMoves(parentId) {
|
|
1568
|
+
return [{
|
|
1569
|
+
id: item.id,
|
|
1570
|
+
kind: "folder",
|
|
1571
|
+
parentId: parentId
|
|
1572
|
+
}];
|
|
1573
|
+
},
|
|
694
1574
|
submitButtonProps: {
|
|
695
1575
|
loading: isPending,
|
|
696
1576
|
disabled: isPending
|
|
@@ -969,10 +1849,11 @@ var _DraggableNode = function DraggableNode(_ref) {
|
|
|
969
1849
|
var isOverItem = folder.id === (overItem === null || overItem === void 0 ? void 0 : overItem.id);
|
|
970
1850
|
var isOverParent = folder.id === (overItem === null || overItem === void 0 || (_overItem$meta$parent = overItem.meta.parent) === null || _overItem$meta$parent === void 0 ? void 0 : _overItem$meta$parent.id);
|
|
971
1851
|
var isRoot = folder.meta.depth <= 0;
|
|
1852
|
+
var isLocked = internal.isViewOnly(folder);
|
|
972
1853
|
var _useDraggable = core.useDraggable({
|
|
973
1854
|
id: "draggable-item--".concat(folder.id),
|
|
974
1855
|
data: folder,
|
|
975
|
-
disabled: isRoot
|
|
1856
|
+
disabled: isRoot || isLocked
|
|
976
1857
|
}),
|
|
977
1858
|
isDragging = _useDraggable.isDragging,
|
|
978
1859
|
attributes = _useDraggable.attributes,
|
|
@@ -982,7 +1863,8 @@ var _DraggableNode = function DraggableNode(_ref) {
|
|
|
982
1863
|
var _useDroppable = core.useDroppable({
|
|
983
1864
|
id: "droppable-item--".concat(folder.id),
|
|
984
1865
|
data: folder,
|
|
985
|
-
|
|
1866
|
+
// Dropping on a node places the dragged folder beside it, inside its parent.
|
|
1867
|
+
disabled: isRoot || isInDraggedSubtree || internal.isViewOnly(folder.meta.parent)
|
|
986
1868
|
}),
|
|
987
1869
|
setDroppableRef = _useDroppable.setNodeRef;
|
|
988
1870
|
|
|
@@ -992,7 +1874,7 @@ var _DraggableNode = function DraggableNode(_ref) {
|
|
|
992
1874
|
children: [/*#__PURE__*/jsxRuntime.jsx(PlaceholderNode, {
|
|
993
1875
|
dragState: dragState,
|
|
994
1876
|
folder: folder,
|
|
995
|
-
disabled: isInDraggedSubtree
|
|
1877
|
+
disabled: isInDraggedSubtree || isLocked
|
|
996
1878
|
}), internal.isArray(folder.children) && folder.children.map(function (child) {
|
|
997
1879
|
var _child$children$lengt, _child$children;
|
|
998
1880
|
return /*#__PURE__*/React.createElement(_DraggableNode, _objectSpread$c(_objectSpread$c({}, _objectSpread$c(_objectSpread$c({}, rest), {}, {
|
|
@@ -1019,7 +1901,9 @@ var _DraggableNode = function DraggableNode(_ref) {
|
|
|
1019
1901
|
itemLabel: itemLabel
|
|
1020
1902
|
})), {}, {
|
|
1021
1903
|
className: classNames({
|
|
1022
|
-
"hover:bg-muted w-full
|
|
1904
|
+
"hover:bg-muted w-full transition-colors": true,
|
|
1905
|
+
"cursor-move": !isLocked,
|
|
1906
|
+
"cursor-not-allowed": isLocked,
|
|
1023
1907
|
"bg-muted opacity-50": isInDraggedSubtree,
|
|
1024
1908
|
"bg-accent": isOverParent,
|
|
1025
1909
|
"border-primary border-b-2": isOverItem
|
|
@@ -1077,6 +1961,10 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1077
1961
|
};
|
|
1078
1962
|
}, shallow.shallow),
|
|
1079
1963
|
type = _useFolderStore.type;
|
|
1964
|
+
var _useMoveAccessConfirm = useMoveAccessConfirmation(config),
|
|
1965
|
+
confirmMove = _useMoveAccessConfirm.confirmMove,
|
|
1966
|
+
confirmationAlert = _useMoveAccessConfirm.confirmationAlert,
|
|
1967
|
+
isConfirming = _useMoveAccessConfirm.isConfirming;
|
|
1080
1968
|
var _useStateWithDependen = reactUtils.useStateWithDependency(function () {
|
|
1081
1969
|
return {
|
|
1082
1970
|
name: "/",
|
|
@@ -1104,6 +1992,9 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1104
1992
|
|
|
1105
1993
|
// Guards: Check moving inside invalid directories.
|
|
1106
1994
|
if (!targetFolder || activeFolder.id === targetFolder.id) return;
|
|
1995
|
+
|
|
1996
|
+
// The server refuses the whole batch without Manage on both ends.
|
|
1997
|
+
if (internal.isViewOnly(activeFolder) || internal.isViewOnly(targetFolder)) return;
|
|
1107
1998
|
if (activeFolder.meta.parent.id === targetFolder.id && activeFolder.meta.index === targetIndex) {
|
|
1108
1999
|
return;
|
|
1109
2000
|
}
|
|
@@ -1128,11 +2019,10 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1128
2019
|
index: targetIndex
|
|
1129
2020
|
}));
|
|
1130
2021
|
};
|
|
1131
|
-
var
|
|
1132
|
-
|
|
2022
|
+
var saveChanges = function saveChanges() {
|
|
2023
|
+
return reorderFolders({
|
|
1133
2024
|
changes: changes
|
|
1134
|
-
}
|
|
1135
|
-
reorderFolders(payload, {
|
|
2025
|
+
}, {
|
|
1136
2026
|
onSuccess: function onSuccess() {
|
|
1137
2027
|
var _config$onUpdateSucce;
|
|
1138
2028
|
onClose();
|
|
@@ -1140,9 +2030,22 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1140
2030
|
}
|
|
1141
2031
|
});
|
|
1142
2032
|
};
|
|
2033
|
+
var onSubmit = function onSubmit() {
|
|
2034
|
+
var moves = Object.entries(changes).map(function (_ref3) {
|
|
2035
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
2036
|
+
id = _ref4[0],
|
|
2037
|
+
parentId = _ref4[1].parentId;
|
|
2038
|
+
return {
|
|
2039
|
+
id: id,
|
|
2040
|
+
kind: "folder",
|
|
2041
|
+
parentId: parentId
|
|
2042
|
+
};
|
|
2043
|
+
});
|
|
2044
|
+
confirmMove(moves, saveChanges);
|
|
2045
|
+
};
|
|
1143
2046
|
useHotkeys(["command+enter", "enter"], onSubmit, {
|
|
1144
2047
|
mode: "global",
|
|
1145
|
-
enabled: !!type
|
|
2048
|
+
enabled: !!type && !isConfirming
|
|
1146
2049
|
});
|
|
1147
2050
|
var nodeProps = {
|
|
1148
2051
|
icon: /*#__PURE__*/jsxRuntime.jsx(lucideReact.GripVertical, {
|
|
@@ -1165,12 +2068,12 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1165
2068
|
sensors: sensors,
|
|
1166
2069
|
collisionDetection: injectCss.closestCenter(dragState),
|
|
1167
2070
|
measuring: measuringConfig,
|
|
1168
|
-
onDragOver: function onDragOver(
|
|
1169
|
-
var over =
|
|
2071
|
+
onDragOver: function onDragOver(_ref5) {
|
|
2072
|
+
var over = _ref5.over;
|
|
1170
2073
|
setDragState(ramda.assoc("overItem", over === null || over === void 0 ? void 0 : over.data.current));
|
|
1171
2074
|
},
|
|
1172
|
-
onDragStart: function onDragStart(
|
|
1173
|
-
var active =
|
|
2075
|
+
onDragStart: function onDragStart(_ref6) {
|
|
2076
|
+
var active = _ref6.active;
|
|
1174
2077
|
setDragState(ramda.assoc("activeItem", active.data.current));
|
|
1175
2078
|
},
|
|
1176
2079
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Sheet.Body, {
|
|
@@ -1208,7 +2111,7 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1208
2111
|
itemLabel: config.labels[((_dragState$activeItem3 = dragState.activeItem) === null || _dragState$activeItem3 === void 0 ? void 0 : _dragState$activeItem3.itemCount) > 1 ? "items" : "item"]
|
|
1209
2112
|
}))
|
|
1210
2113
|
}), document.body)]
|
|
1211
|
-
})]
|
|
2114
|
+
}), confirmationAlert]
|
|
1212
2115
|
});
|
|
1213
2116
|
};
|
|
1214
2117
|
|
|
@@ -1930,6 +2833,8 @@ TreeSelect.displayName = "TreeSelect";
|
|
|
1930
2833
|
var css = ".neeto-sidebar-folders-tree__folder-node{align-items:center;border-radius:.375rem;border-radius:var(--radius-md,.375rem);color:inherit!important;display:flex;flex:1 1 auto;min-height:1.5rem;min-width:0;padding-inline:8px 0;transition:background-color .15s ease}.neeto-sidebar-folders-tree__folder-node:hover{background-color:var(--sidebar-accent)}.neeto-sidebar-folders-tree [role=treeitem]>*>:first-child:not(:has(.neeto-sidebar-folders-tree__folder-node)){align-items:center;border-radius:.375rem;border-radius:var(--radius-md,.375rem);cursor:pointer;display:flex;flex-shrink:0;height:1.5rem;justify-content:center;transition:background-color .15s ease;width:1.5rem}.neeto-sidebar-folders-tree [role=treeitem]>*>:first-child:not(:has(.neeto-sidebar-folders-tree__folder-node)):hover{background-color:var(--sidebar-accent)!important}.neeto-sidebar-folders-tree [role=treeitem] :has(>.neeto-sidebar-folders-tree__folder-node){padding-block:2px!important}.neeto-sidebar-folders-tree [role=treeitem][aria-selected=true] .neeto-sidebar-folders-tree__folder-node{background-color:var(--sidebar-accent)}.neeto-sidebar-folders-tree [role=treeitem]{outline:none}.neeto-sidebar-folders-tree [role=treeitem]>*{background-color:transparent!important;box-shadow:none!important;-moz-column-gap:0;column-gap:0;padding-inline:0}.neeto-sidebar-folders-tree__folder-node-actions{opacity:0;transition:opacity .15s ease}.neeto-sidebar-folders-tree__folder-node:hover .neeto-sidebar-folders-tree__folder-node-actions{background:linear-gradient(to right,transparent 0,var(--sidebar-accent) 1.5rem);opacity:1}[dir=rtl] .neeto-sidebar-folders-tree__folder-node:hover .neeto-sidebar-folders-tree__folder-node-actions{background:linear-gradient(to left,transparent 0,var(--sidebar-accent) 1.5rem)}[dir=rtl] .neeto-sidebar-folders-tree [role=tree]>div{direction:rtl!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem]>*{padding-left:0!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem][aria-level=\"2\"]>*{padding-right:20px!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem][aria-level=\"3\"]>*{padding-right:40px!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem][aria-level=\"4\"]>*{padding-right:60px!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem][aria-level=\"5\"]>*{padding-right:80px!important}[dir=rtl] .neeto-sidebar-folders-tree [role=treeitem][aria-level=\"6\"]>*{padding-right:100px!important}[dir=rtl] .neeto-sidebar-folders-tree__switcher-collapsed{transform:scaleX(-1)}.neeto-folders-grid-view-wrapper{grid-template-columns:repeat(auto-fill,minmax(256px,1fr))}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy92Mi9jb21wb25lbnRzL25lZXRvLWZvbGRlcnMtbmFuby5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVBLHlDQUdFLGtCQUFBLENBVUEscUJBQUEsQ0FBQSxzQ0FBQSxDQUNBLHVCQUFBLENBYkEsWUFBQSxDQUNBLGFBQUEsQ0FHQSxpQkFBQSxDQURBLFdBQUEsQ0FRQSxvQkFBQSxDQUdBLHFDQWZGLENBaUJFLCtDQUNFLHNDQWZKLENBdUJBLCtHQU1FLGtCQUFBLENBSUEscUJBQUEsQ0FBQSxzQ0FBQSxDQUNBLGNBQUEsQ0FQQSxZQUFBLENBQ0EsYUFBQSxDQUlBLGFBQUEsQ0FGQSxzQkFBQSxDQUtBLHFDQUFBLENBSkEsWUFuQkYsQ0F5QkUscUhBQ0UsZ0RBdk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AgdHJhbnNmb3JtOiBzY2FsZVgoLTEpO1xufVxuXG4ubmVldG8tZm9sZGVycy1ncmlkLXZpZXctd3JhcHBlciB7XG4gIGdyaWQtdGVtcGxhdGUtY29sdW1uczogcmVwZWF0KGF1dG8tZmlsbCwgbWlubWF4KDI1NnB4LCAxZnIpKTtcbn1cbiJdfQ== */";
|
|
1931
2834
|
injectCss.n(css,{});
|
|
1932
2835
|
|
|
2836
|
+
exports.AccessPill = AccessPill;
|
|
2837
|
+
exports.AccessShareDialog = AccessShareDialog;
|
|
1933
2838
|
exports.AddEditPane = AddEditPane;
|
|
1934
2839
|
exports.DraggableWrapper = DraggableWrapper;
|
|
1935
2840
|
exports.FoldersContext = FoldersContext;
|
|
@@ -1938,4 +2843,5 @@ exports.FoldersList = FoldersList;
|
|
|
1938
2843
|
exports.FoldersTree = FoldersTree;
|
|
1939
2844
|
exports.MoveToFolderPane = MoveToFolderPane;
|
|
1940
2845
|
exports.TreeSelect = TreeSelect;
|
|
2846
|
+
exports.capWho = capWho;
|
|
1941
2847
|
//# sourceMappingURL=components.js.map
|