@emailmaker/filemanager 1.1.85-dev.9 → 1.1.93
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/.build-meta.json +1 -1
- package/components/ImageIcons/iconStockSearch.d.ts +1 -3
- package/core.esm.js +255 -239
- package/core.js +1 -1
- package/{file-manager-FilerobotEditor.js → file-manager-FilerobotEditor-WbM5WTct.js} +6 -6
- package/file-manager-IconsTab-CCn0Q0ng.js +2434 -0
- package/{file-manager-ImageCodeGenerator.js → file-manager-ImageCodeGenerator-m06RVQr7.js} +8 -8
- package/{file-manager-JsBarcode.js → file-manager-JsBarcode-CyaffT5b.js} +30 -30
- package/{file-manager-browser.js → file-manager-browser-DDyRNDQk.js} +8 -8
- package/{file-manager-hooks-fhltHD9p.js → file-manager-hooks-UP2zpv8z.js} +1876 -1900
- package/{file-manager-imageEditorTranslations-rRWZAwnp.js → file-manager-imageEditorTranslations-CtNVql-A.js} +9 -12
- package/{file-manager-rolldown-runtime-DawGUBAG.js → file-manager-rolldown-runtime-DAVfCfog.js} +2 -2
- package/{file-manager-urls-BpPtVuK4.js → file-manager-useMediaListEngine-B9sz3gcs.js} +119 -139
- package/file-manager.esm.js +1218 -1271
- package/file-manager.js +12 -12
- package/package.json +1 -4
- package/types.d.ts +0 -7
- package/utils/imageCompression.d.ts +0 -5
- package/assets/icon-sets/lucide.json +0 -6275
- package/assets/icon-sets/tabler.json +0 -19336
- package/components/ImageIcons/iconSets.d.ts +0 -36
- package/components/ImageIcons/iconSets.test.d.ts +0 -1
- package/file-manager-IconsTab.js +0 -2046
- package/utils/generateId.d.ts +0 -5
- package/utils/imageCompression.editedImage.test.d.ts +0 -1
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { V as e, Z as t } from "./file-manager-hooks-
|
|
1
|
+
import { V as e, Z as t } from "./file-manager-hooks-UP2zpv8z.js";
|
|
2
2
|
import n, { useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
3
|
import { Button as c, Form as l, Input as u, Tooltip as d, Tree as f } from "antd";
|
|
4
4
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
5
|
import g, { AppstoreOutlined as _, BarsOutlined as v, CloseOutlined as y, DownOutlined as b, FileOutlined as x, FolderAddOutlined as S, FolderOpenOutlined as C, FolderOutlined as w, LinkOutlined as T, RightOutlined as E, UploadOutlined as D } from "@ant-design/icons";
|
|
6
|
-
import { FolderMinus as O } from "@untitledui/icons
|
|
7
|
-
import { FolderPlus as k } from "@untitledui/icons/FolderPlus";
|
|
8
|
-
import { FolderSearch as A } from "@untitledui/icons/FolderSearch";
|
|
9
|
-
import { ThumbsUp as j } from "@untitledui/icons/ThumbsUp";
|
|
10
|
-
import { Trash03 as M } from "@untitledui/icons/Trash03";
|
|
6
|
+
import { FolderMinus as O, FolderPlus as k, FolderSearch as A, ThumbsUp as j, Trash03 as ee } from "@untitledui/icons";
|
|
11
7
|
//#region packages/file-manager/src/components/EmIcons/EmIcons.tsx
|
|
12
|
-
var
|
|
8
|
+
var M = () => /* @__PURE__ */ m("svg", {
|
|
13
9
|
viewBox: "0 0 12 12",
|
|
14
10
|
focusable: "false",
|
|
15
11
|
"data-icon": "mixed-view",
|
|
@@ -18,7 +14,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
18
14
|
fill: "currentColor",
|
|
19
15
|
"aria-hidden": "true",
|
|
20
16
|
children: /* @__PURE__ */ m("path", { d: "M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm4-8h2v2H5V1zm0 4h2v2H5V5zm0 4h2v2H5V9zm4-8h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9z" })
|
|
21
|
-
}),
|
|
17
|
+
}), N = () => /* @__PURE__ */ m("svg", {
|
|
22
18
|
viewBox: "0 0 12 12",
|
|
23
19
|
focusable: "false",
|
|
24
20
|
"data-icon": "landscape-view",
|
|
@@ -27,7 +23,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
27
23
|
fill: "currentColor",
|
|
28
24
|
"aria-hidden": "true",
|
|
29
25
|
children: /* @__PURE__ */ m("path", { d: "M1 3h10v6H1V3zm1 1v4h8V4H2z" })
|
|
30
|
-
}),
|
|
26
|
+
}), P = () => /* @__PURE__ */ m("svg", {
|
|
31
27
|
viewBox: "0 0 12 12",
|
|
32
28
|
focusable: "false",
|
|
33
29
|
"data-icon": "portrait-view",
|
|
@@ -36,7 +32,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
36
32
|
fill: "currentColor",
|
|
37
33
|
"aria-hidden": "true",
|
|
38
34
|
children: /* @__PURE__ */ m("path", { d: "M3 1h6v10H3V1zm1 1v8h4V2H4z" })
|
|
39
|
-
}),
|
|
35
|
+
}), F = () => /* @__PURE__ */ m("svg", {
|
|
40
36
|
viewBox: "0 0 12 12",
|
|
41
37
|
focusable: "false",
|
|
42
38
|
"data-icon": "square-view",
|
|
@@ -45,7 +41,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
45
41
|
fill: "currentColor",
|
|
46
42
|
"aria-hidden": "true",
|
|
47
43
|
children: /* @__PURE__ */ m("path", { d: "M1 1h10v10H1V1zm1 1v8h8V2H2z" })
|
|
48
|
-
}),
|
|
44
|
+
}), I = () => /* @__PURE__ */ h("svg", {
|
|
49
45
|
viewBox: "0 0 12 12",
|
|
50
46
|
focusable: "false",
|
|
51
47
|
"data-icon": "ai-icon",
|
|
@@ -59,7 +55,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
59
55
|
/* @__PURE__ */ m("path", { d: "M1.63636 4.09091C1.63636 4.09091 1.44663 3.19402 1.10769 2.7986C0.768758 2.40318 0 2.18182 0 2.18182C0 2.18182 0.768758 1.96046 1.10769 1.56503C1.44663 1.16961 1.63636 0.272728 1.63636 0.272728C1.63636 0.272728 1.8261 1.16961 2.16503 1.56503C2.50397 1.96046 3.27273 2.18182 3.27273 2.18182C3.27273 2.18182 2.50397 2.40318 2.16503 2.7986C1.8261 3.19402 1.63636 4.09091 1.63636 4.09091Z" }),
|
|
60
56
|
/* @__PURE__ */ m("path", { d: "M10.6364 11.7273C10.6364 11.7273 10.4782 11.0866 10.1958 10.8042C9.91336 10.5218 9.27273 10.3636 9.27273 10.3636C9.27273 10.3636 9.91336 10.2055 10.1958 9.92307C10.4782 9.64064 10.6364 9 10.6364 9C10.6364 9 10.7945 9.64064 11.0769 9.92307C11.3594 10.2055 12 10.3636 12 10.3636C12 10.3636 11.3594 10.5218 11.0769 10.8042C10.7945 11.0866 10.6364 11.7273 10.6364 11.7273Z" })
|
|
61
57
|
]
|
|
62
|
-
}),
|
|
58
|
+
}), L = () => /* @__PURE__ */ m("svg", {
|
|
63
59
|
viewBox: "0 0 12 12",
|
|
64
60
|
focusable: "false",
|
|
65
61
|
"data-icon": "light-mode",
|
|
@@ -68,7 +64,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
68
64
|
fill: "currentColor",
|
|
69
65
|
"aria-hidden": "true",
|
|
70
66
|
children: /* @__PURE__ */ m("path", { d: "M6 7.81819C6.50303 7.81819 6.93182 7.64092 7.28637 7.28637C7.64092 6.93182 7.81819 6.50303 7.81819 6C7.81819 5.49697 7.64092 5.06818 7.28637 4.71363C6.93182 4.35908 6.50303 4.18181 6 4.18181C5.49697 4.18181 5.06818 4.35908 4.71363 4.71363C4.35908 5.06818 4.18181 5.49697 4.18181 6C4.18181 6.50303 4.35908 6.93182 4.71363 7.28637C5.06818 7.64092 5.49697 7.81819 6 7.81819ZM6 8.72727C5.24545 8.72727 4.60227 8.46136 4.07045 7.92955C3.53864 7.39773 3.27273 6.75455 3.27273 6C3.27273 5.24545 3.53864 4.60227 4.07045 4.07045C4.60227 3.53864 5.24545 3.27273 6 3.27273C6.75455 3.27273 7.39773 3.53864 7.92955 4.07045C8.46136 4.60227 8.72727 5.24545 8.72727 6C8.72727 6.75455 8.46136 7.39773 7.92955 7.92955C7.39773 8.46136 6.75455 8.72727 6 8.72727ZM2.18182 6.45454H0V5.54546H2.18182V6.45454ZM12 6.45454H9.81818V5.54546H12V6.45454ZM5.54546 2.18182V0H6.45454V2.18182H5.54546ZM5.54546 12V9.81818H6.45454V12H5.54546ZM3 3.6091L1.63182 2.28637L2.28181 1.61819L3.5909 2.98182L3 3.6091ZM9.72727 10.3727L8.39546 9.00454L9.0091 8.38182L10.3682 9.71363L9.72727 10.3727ZM8.38182 2.9909L9.71363 1.63182L10.3818 2.27273L9.02727 3.6L8.38182 2.9909ZM1.62727 9.71819L2.98636 8.38636L3.61818 9.0091L2.28637 10.3682L1.62727 9.71819Z" })
|
|
71
|
-
}),
|
|
67
|
+
}), R = () => /* @__PURE__ */ m("svg", {
|
|
72
68
|
viewBox: "0 0 12 12",
|
|
73
69
|
focusable: "false",
|
|
74
70
|
"data-icon": "dark-mode",
|
|
@@ -77,7 +73,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
77
73
|
fill: "currentColor",
|
|
78
74
|
"aria-hidden": "true",
|
|
79
75
|
children: /* @__PURE__ */ m("path", { d: "M6 11C4.61111 11 3.43056 10.5139 2.45833 9.54167C1.48611 8.56944 1 7.38889 1 6C1 4.61111 1.48611 3.43056 2.45833 2.45833C3.43056 1.48611 4.61111 1 6 1C6.09259 1 6.1875 1.00309 6.28472 1.00926C6.38194 1.01543 6.49382 1.02469 6.62036 1.03704C6.2716 1.32408 5.99769 1.68442 5.79861 2.11806C5.59954 2.55169 5.5 3.01234 5.5 3.5C5.5 4.33333 5.79167 5.04167 6.375 5.625C6.95833 6.20833 7.66667 6.5 8.5 6.5C8.99074 6.5 9.45216 6.40509 9.88426 6.21528C10.3164 6.02546 10.6759 5.76544 10.963 5.43519C10.9753 5.54939 10.9846 5.65047 10.9907 5.73843C10.9969 5.82639 11 5.91358 11 6C11 7.38889 10.5139 8.56944 9.54167 9.54167C8.56944 10.5139 7.38889 11 6 11ZM6 10.0741C6.94444 10.0741 7.77469 9.7909 8.49075 9.22454C9.20681 8.65818 9.67594 7.97376 9.89815 7.17129C9.68211 7.25463 9.45474 7.3179 9.21606 7.36111C8.97737 7.40431 8.73869 7.42592 8.5 7.42592C7.41242 7.42592 6.4862 7.0435 5.72135 6.27865C4.9565 5.5138 4.57408 4.58758 4.57408 3.5C4.57408 3.29012 4.59414 3.06944 4.63426 2.83796C4.67438 2.60648 4.74229 2.35185 4.83797 2.07407C3.99229 2.3395 3.29552 2.83487 2.74768 3.56018C2.19984 4.28549 1.92592 5.09876 1.92592 6C1.92592 7.12963 2.32252 8.09105 3.11574 8.88426C3.90895 9.67748 4.87037 10.0741 6 10.0741Z" })
|
|
80
|
-
}),
|
|
76
|
+
}), z = () => /* @__PURE__ */ h("svg", {
|
|
81
77
|
width: "64",
|
|
82
78
|
height: "64",
|
|
83
79
|
viewBox: "0 0 64 64",
|
|
@@ -101,7 +97,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
101
97
|
strokeLinejoin: "round"
|
|
102
98
|
})
|
|
103
99
|
]
|
|
104
|
-
}),
|
|
100
|
+
}), B = () => /* @__PURE__ */ h("svg", {
|
|
105
101
|
width: "64",
|
|
106
102
|
height: "64",
|
|
107
103
|
viewBox: "0 0 64 64",
|
|
@@ -125,7 +121,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
125
121
|
strokeLinejoin: "round"
|
|
126
122
|
})
|
|
127
123
|
]
|
|
128
|
-
}),
|
|
124
|
+
}), V = () => /* @__PURE__ */ m("svg", {
|
|
129
125
|
width: "20",
|
|
130
126
|
height: "20",
|
|
131
127
|
viewBox: "0 0 20 20",
|
|
@@ -137,7 +133,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
137
133
|
strokeLinecap: "round",
|
|
138
134
|
strokeLinejoin: "round"
|
|
139
135
|
})
|
|
140
|
-
}),
|
|
136
|
+
}), te = () => /* @__PURE__ */ m("svg", {
|
|
141
137
|
width: "48",
|
|
142
138
|
height: "49",
|
|
143
139
|
viewBox: "0 0 48 49",
|
|
@@ -150,7 +146,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
150
146
|
strokeLinecap: "round",
|
|
151
147
|
strokeLinejoin: "round"
|
|
152
148
|
})
|
|
153
|
-
}),
|
|
149
|
+
}), ne = () => /* @__PURE__ */ h("svg", {
|
|
154
150
|
width: "56",
|
|
155
151
|
height: "56",
|
|
156
152
|
viewBox: "0 0 56 56",
|
|
@@ -168,7 +164,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
168
164
|
strokeLinecap: "round",
|
|
169
165
|
strokeLinejoin: "round"
|
|
170
166
|
})]
|
|
171
|
-
}),
|
|
167
|
+
}), H = () => /* @__PURE__ */ h("svg", {
|
|
172
168
|
width: "56",
|
|
173
169
|
height: "56",
|
|
174
170
|
viewBox: "0 0 56 56",
|
|
@@ -186,7 +182,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
186
182
|
strokeLinecap: "round",
|
|
187
183
|
strokeLinejoin: "round"
|
|
188
184
|
})]
|
|
189
|
-
}),
|
|
185
|
+
}), U = () => /* @__PURE__ */ h("svg", {
|
|
190
186
|
width: "48",
|
|
191
187
|
height: "49",
|
|
192
188
|
viewBox: "0 0 48 49",
|
|
@@ -205,7 +201,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
205
201
|
strokeLinecap: "round",
|
|
206
202
|
strokeLinejoin: "round"
|
|
207
203
|
})]
|
|
208
|
-
}),
|
|
204
|
+
}), W = () => /* @__PURE__ */ m("svg", {
|
|
209
205
|
width: "48",
|
|
210
206
|
height: "49",
|
|
211
207
|
viewBox: "0 0 48 49",
|
|
@@ -218,75 +214,75 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
218
214
|
strokeLinecap: "round",
|
|
219
215
|
strokeLinejoin: "round"
|
|
220
216
|
})
|
|
221
|
-
}),
|
|
217
|
+
}), G = {
|
|
222
218
|
MixedView: (e) => /* @__PURE__ */ m(g, {
|
|
223
|
-
component:
|
|
219
|
+
component: M,
|
|
224
220
|
...e
|
|
225
221
|
}),
|
|
226
222
|
LandscapeView: (e) => /* @__PURE__ */ m(g, {
|
|
227
|
-
component:
|
|
223
|
+
component: N,
|
|
228
224
|
...e
|
|
229
225
|
}),
|
|
230
226
|
PortraitView: (e) => /* @__PURE__ */ m(g, {
|
|
231
|
-
component:
|
|
227
|
+
component: P,
|
|
232
228
|
...e
|
|
233
229
|
}),
|
|
234
230
|
SquareView: (e) => /* @__PURE__ */ m(g, {
|
|
235
|
-
component:
|
|
231
|
+
component: F,
|
|
236
232
|
...e
|
|
237
233
|
}),
|
|
238
234
|
AiIcon_2: (e) => /* @__PURE__ */ m(g, {
|
|
239
|
-
component:
|
|
235
|
+
component: I,
|
|
240
236
|
...e
|
|
241
237
|
}),
|
|
242
238
|
LightMode: (e) => /* @__PURE__ */ m(g, {
|
|
243
|
-
component:
|
|
239
|
+
component: L,
|
|
244
240
|
...e
|
|
245
241
|
}),
|
|
246
242
|
DarkMode: (e) => /* @__PURE__ */ m(g, {
|
|
247
|
-
component:
|
|
243
|
+
component: R,
|
|
248
244
|
...e
|
|
249
245
|
}),
|
|
250
246
|
FolderIcon: (e) => /* @__PURE__ */ m(g, {
|
|
251
|
-
component:
|
|
247
|
+
component: z,
|
|
252
248
|
...e
|
|
253
249
|
}),
|
|
254
250
|
FolderPreviewIcon: (e) => /* @__PURE__ */ m(g, {
|
|
255
|
-
component:
|
|
251
|
+
component: B,
|
|
256
252
|
...e
|
|
257
253
|
}),
|
|
258
254
|
EmptyFolderIcon: (e) => /* @__PURE__ */ m(g, {
|
|
259
|
-
component:
|
|
255
|
+
component: V,
|
|
260
256
|
...e
|
|
261
257
|
}),
|
|
262
258
|
DropZoneFileIcon: (e) => /* @__PURE__ */ m(g, {
|
|
263
|
-
component:
|
|
259
|
+
component: te,
|
|
264
260
|
...e
|
|
265
261
|
}),
|
|
266
262
|
BigStockIcon: (e) => /* @__PURE__ */ m(g, {
|
|
267
|
-
component:
|
|
263
|
+
component: ne,
|
|
268
264
|
...e
|
|
269
265
|
}),
|
|
270
266
|
BigAIIcon: (e) => /* @__PURE__ */ m(g, {
|
|
271
|
-
component:
|
|
267
|
+
component: H,
|
|
272
268
|
...e
|
|
273
269
|
}),
|
|
274
270
|
gifPlayIcon: (e) => /* @__PURE__ */ m(g, {
|
|
275
|
-
component:
|
|
271
|
+
component: U,
|
|
276
272
|
...e
|
|
277
273
|
}),
|
|
278
274
|
StockBigIcon: (e) => /* @__PURE__ */ m(g, {
|
|
279
|
-
component:
|
|
275
|
+
component: W,
|
|
280
276
|
...e
|
|
281
277
|
})
|
|
282
|
-
},
|
|
278
|
+
}, K = () => {
|
|
283
279
|
let { options: t } = e(), { customIcons: r } = t, i = n.useCallback((e, t, i) => {
|
|
284
280
|
let a = r?.[e];
|
|
285
281
|
return a ? n.createElement(a, i) : n.createElement(t, i);
|
|
286
282
|
}, [r]);
|
|
287
283
|
return n.useMemo(() => ({
|
|
288
284
|
RootFolderIcon: (e) => i("rootFolder", w, e),
|
|
289
|
-
FolderIcon: (e) => i("folder",
|
|
285
|
+
FolderIcon: (e) => i("folder", G.FolderIcon, e),
|
|
290
286
|
FolderOpenIcon: (e) => i("folderOpen", C, e),
|
|
291
287
|
AddFolderIcon: (e) => i("addFolder", S, e),
|
|
292
288
|
FileIcon: (e) => i("file", x, e),
|
|
@@ -296,54 +292,54 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
296
292
|
CollapseArrowIcon: (e) => i("collapseArrow", b, e),
|
|
297
293
|
ExpandFolderIcon: (e) => i("expandArrow", k, e),
|
|
298
294
|
CollapseFolderIcon: (e) => i("collapseArrow", O, e),
|
|
299
|
-
FolderPreviewIcon: (e) => i("folderPreview",
|
|
300
|
-
EmptyFolderIcon: (e) => i("folderPreview",
|
|
295
|
+
FolderPreviewIcon: (e) => i("folderPreview", G.FolderPreviewIcon, e),
|
|
296
|
+
EmptyFolderIcon: (e) => i("folderPreview", G.EmptyFolderIcon, e),
|
|
301
297
|
GridViewIcon: (e) => i("gridView", _, e),
|
|
302
298
|
ListViewIcon: (e) => i("listView", v, e),
|
|
303
|
-
DropZoneFileIcon: (e) => i("folderPreview",
|
|
304
|
-
BigStockIcon: (e) => i("folderPreview",
|
|
305
|
-
BigAIIcon: (e) => i("folderPreview",
|
|
306
|
-
GifPlayIcon: (e) => i("folderPreview",
|
|
307
|
-
StockBigIcon: (e) => i("folderPreview",
|
|
308
|
-
MixedViewIcon: (e) => i("mixedView",
|
|
309
|
-
LandscapeViewIcon: (e) => i("landscapeView",
|
|
310
|
-
PortraitViewIcon: (e) => i("portraitView",
|
|
311
|
-
SquareViewIcon: (e) => i("squareView",
|
|
312
|
-
LightModeIcon: (e) => i("lightMode",
|
|
313
|
-
DarkModeIcon: (e) => i("darkMode",
|
|
314
|
-
AiIcon_2: (e) => i("aiIcon_2",
|
|
299
|
+
DropZoneFileIcon: (e) => i("folderPreview", G.DropZoneFileIcon, e),
|
|
300
|
+
BigStockIcon: (e) => i("folderPreview", G.BigStockIcon, e),
|
|
301
|
+
BigAIIcon: (e) => i("folderPreview", G.BigAIIcon, e),
|
|
302
|
+
GifPlayIcon: (e) => i("folderPreview", G.gifPlayIcon, e),
|
|
303
|
+
StockBigIcon: (e) => i("folderPreview", G.StockBigIcon, e),
|
|
304
|
+
MixedViewIcon: (e) => i("mixedView", G.MixedView, e),
|
|
305
|
+
LandscapeViewIcon: (e) => i("landscapeView", G.LandscapeView, e),
|
|
306
|
+
PortraitViewIcon: (e) => i("portraitView", G.PortraitView, e),
|
|
307
|
+
SquareViewIcon: (e) => i("squareView", G.SquareView, e),
|
|
308
|
+
LightModeIcon: (e) => i("lightMode", G.LightMode, e),
|
|
309
|
+
DarkModeIcon: (e) => i("darkMode", G.DarkMode, e),
|
|
310
|
+
AiIcon_2: (e) => i("aiIcon_2", G.AiIcon_2, e),
|
|
315
311
|
NoFilesIcon: (e) => i("noFiles", A, e),
|
|
316
312
|
ThumbsUpIcon: (e) => i("thumbsUp", j, e),
|
|
317
313
|
getCustomIcon: i
|
|
318
314
|
}), [i]);
|
|
319
|
-
},
|
|
315
|
+
}, q = {
|
|
320
316
|
"em-filemanager": "em-filemanager",
|
|
321
317
|
emFilemanager: "em-filemanager",
|
|
322
318
|
noFilesContainer: "noFilesContainer",
|
|
323
319
|
noFilesImage: "noFilesImage",
|
|
324
320
|
noFilesTitle: "noFilesTitle",
|
|
325
321
|
noFilesDescription: "noFilesDescription"
|
|
326
|
-
},
|
|
327
|
-
let { t: e } = t(), { NoFilesIcon: n } =
|
|
322
|
+
}, J = () => {
|
|
323
|
+
let { t: e } = t(), { NoFilesIcon: n } = K();
|
|
328
324
|
return /* @__PURE__ */ h("div", {
|
|
329
|
-
className:
|
|
325
|
+
className: q.noFilesContainer,
|
|
330
326
|
children: [
|
|
331
327
|
/* @__PURE__ */ m(n, {
|
|
332
|
-
className:
|
|
328
|
+
className: q.noFilesImage,
|
|
333
329
|
size: 48,
|
|
334
330
|
strokeWidth: 1.4
|
|
335
331
|
}),
|
|
336
332
|
/* @__PURE__ */ m("h2", {
|
|
337
|
-
className:
|
|
333
|
+
className: q.noFilesTitle,
|
|
338
334
|
children: e("There's nothing here")
|
|
339
335
|
}),
|
|
340
336
|
/* @__PURE__ */ m("div", {
|
|
341
|
-
className:
|
|
337
|
+
className: q.noFilesDescription,
|
|
342
338
|
children: e("Try using a different search query.")
|
|
343
339
|
})
|
|
344
340
|
]
|
|
345
341
|
});
|
|
346
|
-
},
|
|
342
|
+
}, Y = class {
|
|
347
343
|
constructor() {
|
|
348
344
|
this.rowsById = /* @__PURE__ */ new Map();
|
|
349
345
|
}
|
|
@@ -363,7 +359,7 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
363
359
|
}
|
|
364
360
|
return this.rowsById = r, i;
|
|
365
361
|
}
|
|
366
|
-
},
|
|
362
|
+
}, re = class {
|
|
367
363
|
createRenderWindow(e, t) {
|
|
368
364
|
let n = t?.renderStrategy ?? "full";
|
|
369
365
|
if (n !== "windowed") {
|
|
@@ -405,9 +401,9 @@ var N = () => /* @__PURE__ */ m("svg", {
|
|
|
405
401
|
};
|
|
406
402
|
//#endregion
|
|
407
403
|
//#region packages/file-manager/src/presentation/list-core/useListPresentationEngine.ts
|
|
408
|
-
function
|
|
404
|
+
function X({ items: e, context: t, adapter: n, options: r }) {
|
|
409
405
|
let i = o(null), s = o(null);
|
|
410
|
-
i.current ||= new
|
|
406
|
+
i.current ||= new Y(), s.current ||= new re();
|
|
411
407
|
let c = a(() => i.current.reconcile(e, n, t), [
|
|
412
408
|
n,
|
|
413
409
|
t,
|
|
@@ -418,7 +414,7 @@ function J({ items: e, context: t, adapter: n, options: r }) {
|
|
|
418
414
|
renderWindow: a(() => s.current.createRenderWindow(c, r), [r, c])
|
|
419
415
|
};
|
|
420
416
|
}
|
|
421
|
-
var
|
|
417
|
+
var Z = {
|
|
422
418
|
"em-filemanager": "em-filemanager",
|
|
423
419
|
emFilemanager: "em-filemanager",
|
|
424
420
|
folderTree: "folderTree",
|
|
@@ -432,25 +428,25 @@ var Y = {
|
|
|
432
428
|
folderSelectionTree: "folderSelectionTree",
|
|
433
429
|
folderMenu: "folderMenu",
|
|
434
430
|
folderIcon: "folderIcon"
|
|
435
|
-
},
|
|
436
|
-
let { t: C } = t(), { options: w } = e(), { config: T } = w, { ExpandArrowIcon: E, CollapseArrowIcon: D, CollapseFolderIcon: O, ExpandFolderIcon: k, EmptyFolderIcon: A } =
|
|
431
|
+
}, ie = ({ selectedFolder: n, onSelect: o, onExpand: c, generateMenuItems: l, fetchChildFolders: u, disabledFolders: d = [], showFileCounts: p = !1, folderFileCounts: g = {}, className: _ = "", expandedKeys: v, setExpandedKeys: y, showTrashFolder: b = !1, mode: x = "navigation", defaultExpandAll: S = !1 }) => {
|
|
432
|
+
let { t: C } = t(), { options: w } = e(), { config: T } = w, { ExpandArrowIcon: E, CollapseArrowIcon: D, CollapseFolderIcon: O, ExpandFolderIcon: k, EmptyFolderIcon: A } = K(), j = r((e) => {
|
|
437
433
|
let t = [], n = (e) => {
|
|
438
434
|
e.forEach((e) => {
|
|
439
435
|
t.push(e.key), e.children && n(e.children);
|
|
440
436
|
});
|
|
441
437
|
};
|
|
442
438
|
return n(e), t;
|
|
443
|
-
}, []), [
|
|
439
|
+
}, []), [M, N] = s(() => {
|
|
444
440
|
if (S || x === "selection" && S) {
|
|
445
441
|
let e = l();
|
|
446
442
|
return j(e);
|
|
447
443
|
}
|
|
448
444
|
return [];
|
|
449
|
-
}),
|
|
445
|
+
}), P = v === void 0 ? M : v, F = y === void 0 ? N : y;
|
|
450
446
|
i(() => {
|
|
451
447
|
if (S || x === "selection" && S) {
|
|
452
448
|
let e = l(), t = j(e);
|
|
453
|
-
v === void 0 &&
|
|
449
|
+
v === void 0 && N(t);
|
|
454
450
|
}
|
|
455
451
|
}, [
|
|
456
452
|
S,
|
|
@@ -459,13 +455,13 @@ var Y = {
|
|
|
459
455
|
j,
|
|
460
456
|
v
|
|
461
457
|
]);
|
|
462
|
-
let
|
|
458
|
+
let I = r((e) => {
|
|
463
459
|
let t = e[0];
|
|
464
|
-
t
|
|
465
|
-
}, [o]),
|
|
466
|
-
if (
|
|
460
|
+
!t || t === "empty" || t.endsWith("_input") || o?.(e);
|
|
461
|
+
}, [o]), L = r(async (e, t) => {
|
|
462
|
+
if (F(e), c?.(e, t), T?.folderTreeLoading !== "lazy") return;
|
|
467
463
|
let n = t?.node?.key || void 0;
|
|
468
|
-
if (n
|
|
464
|
+
if (!(!n || n === "folders")) try {
|
|
469
465
|
await u?.(n);
|
|
470
466
|
} catch (e) {
|
|
471
467
|
console.warn("Failed to load child folders for", n, e);
|
|
@@ -474,26 +470,26 @@ var Y = {
|
|
|
474
470
|
T?.folderTreeLoading,
|
|
475
471
|
u,
|
|
476
472
|
c,
|
|
477
|
-
|
|
478
|
-
]),
|
|
473
|
+
F
|
|
474
|
+
]), R = r(() => {
|
|
479
475
|
let e = l(), t = (e) => e.filter((e) => e.key !== "Trash").map((e) => ({
|
|
480
476
|
...e,
|
|
481
477
|
children: e.children ? t(e.children) : void 0
|
|
482
478
|
})), r = b ? t(e) : e, i = (e) => {
|
|
483
479
|
if (x === "selection") {
|
|
484
|
-
|
|
480
|
+
I([e]);
|
|
485
481
|
return;
|
|
486
482
|
}
|
|
487
|
-
|
|
483
|
+
P.includes(e) && n === e ? F(P.filter((t) => t !== e)) : P.includes(e) || F([...P, e]), I([e]);
|
|
488
484
|
}, a = r.length === 0 || r.length === 1 && (!r[0].children || r[0].children.length === 0), o = (e) => {
|
|
489
|
-
let t = p ? g[e.key] : void 0, n = p && t === null ? null : p ? t ?? 0 : 0, r =
|
|
485
|
+
let t = p ? g[e.key] : void 0, n = p && t === null ? null : p ? t ?? 0 : 0, r = P.includes(e.key), a = d.includes(e.key), s = e.children?.length ? m(r ? O : k, {
|
|
490
486
|
size: 20,
|
|
491
487
|
strokeWidth: T?.iconStrokeWidth
|
|
492
488
|
}) : /* @__PURE__ */ m(A, {
|
|
493
489
|
size: 20,
|
|
494
490
|
strokeWidth: T?.iconStrokeWidth
|
|
495
491
|
}), c = /* @__PURE__ */ h("div", {
|
|
496
|
-
className: `${
|
|
492
|
+
className: `${Z.folderItemContainer} folder-item-container`,
|
|
497
493
|
onClick: (t) => {
|
|
498
494
|
t.stopPropagation(), a || i(e.key);
|
|
499
495
|
},
|
|
@@ -502,13 +498,13 @@ var Y = {
|
|
|
502
498
|
cursor: a ? "not-allowed" : "pointer"
|
|
503
499
|
},
|
|
504
500
|
children: [/* @__PURE__ */ h("div", {
|
|
505
|
-
className:
|
|
501
|
+
className: Z.folderLabel,
|
|
506
502
|
children: [e.icon === void 0 ? s : e.icon, /* @__PURE__ */ m("span", {
|
|
507
|
-
className:
|
|
503
|
+
className: Z.folderLabelItem,
|
|
508
504
|
children: e.label
|
|
509
505
|
})]
|
|
510
506
|
}), p && /* @__PURE__ */ m("div", {
|
|
511
|
-
className:
|
|
507
|
+
className: Z.fileCount,
|
|
512
508
|
title: n === null ? void 0 : `${n} ${C(n === 1 ? "item" : "items")}`,
|
|
513
509
|
children: n === null ? "—" : n
|
|
514
510
|
})]
|
|
@@ -519,35 +515,35 @@ var Y = {
|
|
|
519
515
|
children: e.children?.map(o),
|
|
520
516
|
disabled: a
|
|
521
517
|
};
|
|
522
|
-
}, s =
|
|
523
|
-
className:
|
|
518
|
+
}, s = P.includes("folders"), c = /* @__PURE__ */ m("div", {
|
|
519
|
+
className: Z.foldersTitle,
|
|
524
520
|
onClick: (e) => {
|
|
525
521
|
e.stopPropagation(), i("folders");
|
|
526
522
|
},
|
|
527
523
|
children: /* @__PURE__ */ h("div", {
|
|
528
|
-
className:
|
|
524
|
+
className: Z.foldersTitleItem,
|
|
529
525
|
children: [m(s ? O : k, {
|
|
530
526
|
size: 20,
|
|
531
527
|
strokeWidth: T?.iconStrokeWidth
|
|
532
528
|
}), /* @__PURE__ */ m("span", {
|
|
533
|
-
className: `${
|
|
529
|
+
className: `${Z.folderLabelItem} folder-label-item`,
|
|
534
530
|
children: r[0]?.key === "folders" ? r[0].label : C("Folders")
|
|
535
531
|
})]
|
|
536
532
|
})
|
|
537
533
|
}), u = () => ({
|
|
538
534
|
key: "Trash",
|
|
539
535
|
title: /* @__PURE__ */ m("div", {
|
|
540
|
-
className:
|
|
536
|
+
className: Z.foldersTitle,
|
|
541
537
|
onClick: (e) => {
|
|
542
538
|
e.stopPropagation(), i("Trash");
|
|
543
539
|
},
|
|
544
540
|
children: /* @__PURE__ */ h("div", {
|
|
545
|
-
className:
|
|
546
|
-
children: [/* @__PURE__ */ m(
|
|
541
|
+
className: Z.foldersTitleItem,
|
|
542
|
+
children: [/* @__PURE__ */ m(ee, {
|
|
547
543
|
size: 20,
|
|
548
544
|
strokeWidth: T?.iconStrokeWidth
|
|
549
545
|
}), /* @__PURE__ */ m("span", {
|
|
550
|
-
className:
|
|
546
|
+
className: Z.folderLabelItem,
|
|
551
547
|
children: C("Trash")
|
|
552
548
|
})]
|
|
553
549
|
})
|
|
@@ -558,7 +554,7 @@ var Y = {
|
|
|
558
554
|
if (!b) return [{
|
|
559
555
|
key: "empty",
|
|
560
556
|
title: /* @__PURE__ */ m("div", {
|
|
561
|
-
className:
|
|
557
|
+
className: Z.emptyFolderContainer,
|
|
562
558
|
children: C("No folders yet")
|
|
563
559
|
}),
|
|
564
560
|
disabled: !0
|
|
@@ -581,33 +577,33 @@ var Y = {
|
|
|
581
577
|
return r.map(o);
|
|
582
578
|
}, [
|
|
583
579
|
l,
|
|
584
|
-
|
|
580
|
+
P,
|
|
585
581
|
O,
|
|
586
582
|
T?.iconStrokeWidth,
|
|
587
583
|
k,
|
|
588
584
|
C,
|
|
589
585
|
n,
|
|
590
|
-
|
|
586
|
+
I,
|
|
591
587
|
p,
|
|
592
588
|
g,
|
|
593
589
|
A,
|
|
594
590
|
d,
|
|
595
591
|
b,
|
|
596
592
|
x,
|
|
597
|
-
|
|
598
|
-
]),
|
|
593
|
+
F
|
|
594
|
+
]), z = a(() => R(), [R]);
|
|
599
595
|
return /* @__PURE__ */ m(f, {
|
|
600
|
-
className: `${
|
|
596
|
+
className: `${Z.folderTree} ${Z.folderMenu} ${_}`,
|
|
601
597
|
selectedKeys: n ? [n] : [],
|
|
602
|
-
expandedKeys:
|
|
603
|
-
onSelect:
|
|
604
|
-
onExpand:
|
|
605
|
-
treeData:
|
|
598
|
+
expandedKeys: P,
|
|
599
|
+
onSelect: I,
|
|
600
|
+
onExpand: L,
|
|
601
|
+
treeData: z,
|
|
606
602
|
switcherIcon: ({ expanded: e }) => m(e ? D : E, {}),
|
|
607
603
|
showLine: !1,
|
|
608
604
|
focusable: x !== "selection"
|
|
609
605
|
});
|
|
610
|
-
},
|
|
606
|
+
}, Q = {
|
|
611
607
|
"em-filemanager": "em-filemanager",
|
|
612
608
|
emFilemanager: "em-filemanager",
|
|
613
609
|
formFooter: "formFooter",
|
|
@@ -627,7 +623,7 @@ var Y = {
|
|
|
627
623
|
closeIcon: "closeIcon",
|
|
628
624
|
modalContentWithLoader: "modalContentWithLoader",
|
|
629
625
|
modalLoaderOverlay: "modalLoaderOverlay"
|
|
630
|
-
},
|
|
626
|
+
}, ae = ({ folderId: e, activeFormField: t, EmptyFolderIcon: n, targetForm: r, handleModalOk: i, onComplete: a, setIsLoading: o, t: s }) => /* @__PURE__ */ m(l.Item, {
|
|
631
627
|
className: `form-item form-item-moveto ${t === e ? "form-item_active" : ""}`,
|
|
632
628
|
name: "folderName",
|
|
633
629
|
rules: [{
|
|
@@ -644,14 +640,14 @@ var Y = {
|
|
|
644
640
|
title: "Clean",
|
|
645
641
|
children: /* @__PURE__ */ m(c, {
|
|
646
642
|
icon: /* @__PURE__ */ m(y, { style: { fontSize: 10 } }),
|
|
647
|
-
className:
|
|
643
|
+
className: Q.inputButtonClose,
|
|
648
644
|
type: "text",
|
|
649
645
|
onClick: () => {
|
|
650
646
|
r.setFieldsValue({ folderName: "" });
|
|
651
647
|
}
|
|
652
648
|
})
|
|
653
649
|
}), /* @__PURE__ */ m(c, {
|
|
654
|
-
className:
|
|
650
|
+
className: Q.inputButtonOk,
|
|
655
651
|
type: "text",
|
|
656
652
|
onClick: () => {
|
|
657
653
|
o(!0), i(r).then((e) => {
|
|
@@ -663,8 +659,8 @@ var Y = {
|
|
|
663
659
|
})] })
|
|
664
660
|
})
|
|
665
661
|
});
|
|
666
|
-
function
|
|
667
|
-
let [s, l] = n.useState(""), u = n.useCallback((e, t) => (n) => /* @__PURE__ */ m(
|
|
662
|
+
function oe({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFolderModalOk: i, setIsLoading: a, t: o }) {
|
|
663
|
+
let [s, l] = n.useState(""), u = n.useCallback((e, t) => (n) => /* @__PURE__ */ m(ae, {
|
|
668
664
|
folderId: n,
|
|
669
665
|
activeFormField: s,
|
|
670
666
|
EmptyFolderIcon: r,
|
|
@@ -720,7 +716,7 @@ function ce({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
720
716
|
return {
|
|
721
717
|
key: e.id,
|
|
722
718
|
label: /* @__PURE__ */ h(p, { children: [e.name, t !== e.id && /* @__PURE__ */ h("div", {
|
|
723
|
-
className: `${
|
|
719
|
+
className: `${Q.folderToolsField} folder-tools-field`,
|
|
724
720
|
children: [/* @__PURE__ */ m(c, {
|
|
725
721
|
onClick: g,
|
|
726
722
|
children: "+"
|
|
@@ -744,7 +740,7 @@ function ce({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
744
740
|
return [{
|
|
745
741
|
key: "folders",
|
|
746
742
|
label: /* @__PURE__ */ h(p, { children: [o("Folders"), t !== "folders" && t !== null && /* @__PURE__ */ h("div", {
|
|
747
|
-
className: `${
|
|
743
|
+
className: `${Q.folderToolsField} folder-tools-field`,
|
|
748
744
|
children: [/* @__PURE__ */ m(c, {
|
|
749
745
|
onClick: y,
|
|
750
746
|
children: "+"
|
|
@@ -767,10 +763,10 @@ function ce({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
767
763
|
}
|
|
768
764
|
//#endregion
|
|
769
765
|
//#region packages/file-manager/src/presentation/media-list/MediaListAdapter.ts
|
|
770
|
-
function
|
|
766
|
+
function se(e, t) {
|
|
771
767
|
return !e || !t || e <= 0 || t <= 0 ? 1 : e / t;
|
|
772
768
|
}
|
|
773
|
-
function
|
|
769
|
+
function ce(e) {
|
|
774
770
|
return {
|
|
775
771
|
getId: e,
|
|
776
772
|
buildSignature: (t, n) => {
|
|
@@ -793,21 +789,21 @@ function ue(e) {
|
|
|
793
789
|
altText: t.getAltText(e),
|
|
794
790
|
width: r,
|
|
795
791
|
height: i,
|
|
796
|
-
aspectRatio:
|
|
792
|
+
aspectRatio: se(r, i)
|
|
797
793
|
};
|
|
798
794
|
}
|
|
799
795
|
};
|
|
800
796
|
}
|
|
801
797
|
//#endregion
|
|
802
798
|
//#region packages/file-manager/src/presentation/media-list/useMediaListEngine.ts
|
|
803
|
-
var
|
|
804
|
-
function
|
|
799
|
+
var le = 240, ue = 240, de = 20, fe = 800, pe = 1200, me = 40, $ = 1200, he = 800;
|
|
800
|
+
function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i, getHeight: o, layoutMode: c = "masonry", minColumnWidth: l = le, estimatedItemHeight: u = ue, gap: d = de, overscanPx: f = fe, prefetchThresholdPx: p = pe, resolveColumnCount: m, virtualizationThreshold: h = me }) {
|
|
805
801
|
let [g, _] = s({
|
|
806
802
|
scrollTop: 0,
|
|
807
|
-
viewportHeight:
|
|
808
|
-
viewportWidth:
|
|
803
|
+
viewportHeight: he,
|
|
804
|
+
viewportWidth: $,
|
|
809
805
|
scrollHeight: 0
|
|
810
|
-
}), v = a(() =>
|
|
806
|
+
}), v = a(() => ce(t), [t]), y = a(() => ({
|
|
811
807
|
getPreviewSrc: n,
|
|
812
808
|
getAltText: r,
|
|
813
809
|
getWidth: i,
|
|
@@ -818,7 +814,7 @@ function ve({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
818
814
|
n,
|
|
819
815
|
i
|
|
820
816
|
]), b = a(() => {
|
|
821
|
-
let e = Math.max(1, g.viewportWidth ||
|
|
817
|
+
let e = Math.max(1, g.viewportWidth || $);
|
|
822
818
|
return m ? Math.max(1, m(e)) : Math.max(1, Math.floor((e + d) / (l + d)));
|
|
823
819
|
}, [
|
|
824
820
|
d,
|
|
@@ -826,7 +822,7 @@ function ve({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
826
822
|
m,
|
|
827
823
|
g.viewportWidth
|
|
828
824
|
]), x = a(() => {
|
|
829
|
-
let e = Math.max(1, g.viewportWidth ||
|
|
825
|
+
let e = Math.max(1, g.viewportWidth || $);
|
|
830
826
|
return Math.max(1, (e - d * Math.max(0, b - 1)) / b);
|
|
831
827
|
}, [
|
|
832
828
|
b,
|
|
@@ -873,7 +869,7 @@ function ve({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
873
869
|
i,
|
|
874
870
|
e,
|
|
875
871
|
c
|
|
876
|
-
]), { rowModels: C, renderWindow: w } =
|
|
872
|
+
]), { rowModels: C, renderWindow: w } = X({
|
|
877
873
|
items: e,
|
|
878
874
|
context: y,
|
|
879
875
|
adapter: v,
|
|
@@ -920,22 +916,6 @@ function ve({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
920
916
|
};
|
|
921
917
|
}
|
|
922
918
|
//#endregion
|
|
923
|
-
|
|
924
|
-
function Q(e, t) {
|
|
925
|
-
return e ? t ? `${e.replace(/\/+$/, "")}/${t.replace(/^\/+/, "")}` : e : t;
|
|
926
|
-
}
|
|
927
|
-
function $(e) {
|
|
928
|
-
let t = typeof __webpack_public_path__ < "u" ? __webpack_public_path__ : "";
|
|
929
|
-
if (e && /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(e)) return e;
|
|
930
|
-
let n = Q(t, e || "");
|
|
931
|
-
return n && !n.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(n) && (n = "/" + n), n;
|
|
932
|
-
}
|
|
933
|
-
function ye(e, t) {
|
|
934
|
-
if (/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(t)) return t;
|
|
935
|
-
let n = Q($(e), t || "");
|
|
936
|
-
return n && !n.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(n) ? "/" + n : n;
|
|
937
|
-
}
|
|
938
|
-
//#endregion
|
|
939
|
-
export { ce as a, J as c, ve as i, q as l, $ as n, X as o, Q as r, oe as s, ye as t, G as u };
|
|
919
|
+
export { X as a, ie as i, oe as n, J as o, Q as r, K as s, ge as t };
|
|
940
920
|
|
|
941
|
-
//# sourceMappingURL=file-manager-
|
|
921
|
+
//# sourceMappingURL=file-manager-useMediaListEngine-B9sz3gcs.js.map
|