@alfadocs/ui-kit 0.84.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{ai-consent-banner-DUhr1yNj.js → ai-consent-banner-BXD7W6FI.js} +2 -2
- package/dist/_chunks/{alert-KJbsPYkI.js → alert-Cxaqd-QO.js} +12 -12
- package/dist/_chunks/{audio-recorder-Cc3KuL9y.js → audio-recorder-BjnB7V8n.js} +2 -2
- package/dist/_chunks/{booking-CLmeXtGv.js → booking-BvCu2XWY.js} +2 -2
- package/dist/_chunks/{document-preview-nwfulDEs.js → document-preview-DXl9migE.js} +2 -2
- package/dist/_chunks/{document-scanner-B6h1Ir56.js → document-scanner-cS_ispQs.js} +3 -3
- package/dist/_chunks/{entity-summary--vP698Jn.js → entity-summary-BILN4wEG.js} +2 -2
- package/dist/_chunks/{field-value-DHG6gEKS.js → field-value-BRVbZJej.js} +133 -144
- package/dist/_chunks/{file-manager-DLJlinIO.js → file-manager-B9LZzT5E.js} +129 -129
- package/dist/_chunks/{file-upload-DENvuhfs.js → file-upload-CwxdqkMK.js} +134 -146
- package/dist/_chunks/{freemium-paywall-CmV642PA.js → freemium-paywall-Dr2342_S.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Br2yebEK.js → marketplace-app-shell-Chcj4q4z.js} +2 -2
- package/dist/_chunks/message-square-Bye4ATvx.js +20 -0
- package/dist/_chunks/{notes-panel-Cvdp818a.js → notes-panel-BLjlYBt-.js} +2 -2
- package/dist/_chunks/{patient-details-COvYWp2e.js → patient-details-B9LCdyWW.js} +2 -2
- package/dist/_chunks/{patient-search-BaUJ_Y-N.js → patient-search-vtRTSdf6.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D6kgdTNn.js → patient-summary-card-vn1H4xWj.js} +2 -2
- package/dist/_chunks/{patient-table-BHzmUbzu.js → patient-table-B6AKMTm3.js} +182 -196
- package/dist/_chunks/{payment-form-DL9xk9BA.js → payment-form-BoGxEmGn.js} +2 -2
- package/dist/_chunks/{payment-request-card-d-RmzsUd.js → payment-request-card-CygO1anM.js} +72 -70
- package/dist/_chunks/{pdf-viewer-DF3VMaPo.js → pdf-viewer-CcOuR2wj.js} +2 -2
- package/dist/_chunks/{practice-results-BCr7jMt1.js → practice-results-yKbwIxqa.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-CxF9pVxd.js → radiograph-panel.agent-M9XD4ze4.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CCWjNkbx.js → rich-text-editor-RRkBN_WB.js} +2 -2
- package/dist/_chunks/{session-countdown-C8AsE072.js → session-countdown-Bc70VXN1.js} +58 -48
- package/dist/_chunks/{sign-document-Bfk0WpWV.js → sign-document-DI561d1C.js} +2 -2
- package/dist/_chunks/{signature-request-CEOrCDyk.js → signature-request-D_6jgDZd.js} +60 -77
- package/dist/_chunks/{task-tray-Br3vc0O1.js → task-tray-CLIqIXUZ.js} +58 -70
- package/dist/_chunks/{toast.agent-uV8CeAy6.js → toast.agent-Iw2jWdce.js} +2 -2
- package/dist/_chunks/{warning-stack-BlG_Ujy3.js → warning-stack-CAHQ0xxS.js} +2 -2
- package/dist/_chunks/{workflow-map-C643Q43h.js → workflow-map-SIfAhmWz.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -5
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +434 -445
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -3
- package/dist/_chunks/circle-x-W8Enq3i4.js +0 -16
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as O, useState as te, useRef as ee, useEffect as ne, useId as Pe, useCallback as y, forwardRef as
|
|
2
|
+
import { useMemo as O, useState as te, useRef as ee, useEffect as ne, useId as Pe, useCallback as y, forwardRef as bt, useImperativeHandle as vt } from "react";
|
|
3
3
|
import { c as Ve } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as J } from "react-i18next";
|
|
5
|
-
import { B as
|
|
6
|
-
import { E as
|
|
5
|
+
import { B as kt, b as He, c as ge } from "./breadcrumb-agut0PwN.js";
|
|
6
|
+
import { E as Mt } from "./empty-state-CrLsi0XI.js";
|
|
7
7
|
import { S as he } from "./skeleton-CZbwyJAA.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
8
|
+
import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
+
import { u as wt } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { B as X } from "./button-CPGiR_bH.js";
|
|
11
11
|
import { D as m } from "./dialog-UbKJCi1X.js";
|
|
12
|
-
import { a as
|
|
12
|
+
import { a as xt, F as St } from "./file-upload-CwxdqkMK.js";
|
|
13
13
|
import { T as We } from "./text-input-CUvCb6ST.js";
|
|
14
14
|
import { c as ie } from "./createLucideIcon-DhHxpK9K.js";
|
|
15
15
|
import { F as Nt, a as Tt } from "./file-Cwe9VC1A.js";
|
|
@@ -24,15 +24,15 @@ import { P as Ue } from "./pencil-B1sKKyuT.js";
|
|
|
24
24
|
import { T as Ye } from "./trash-2-uumy3fy1.js";
|
|
25
25
|
import { I as Q } from "./icon-button-C_kbcd7I.js";
|
|
26
26
|
import { I as _t } from "./icon-button-group-BLHPN6jg.js";
|
|
27
|
-
import { U as
|
|
28
|
-
import { P as
|
|
27
|
+
import { U as Ze } from "./upload-BfT2hzMg.js";
|
|
28
|
+
import { P as Lt } from "./plus-DzMQ_c6b.js";
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v1.22.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const Kt = [
|
|
36
36
|
[
|
|
37
37
|
"path",
|
|
38
38
|
{
|
|
@@ -48,14 +48,14 @@ const Et = [
|
|
|
48
48
|
key: "1etmh7"
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
|
-
],
|
|
51
|
+
], Et = ie("file-headphone", Kt);
|
|
52
52
|
/**
|
|
53
53
|
* @license lucide-react v1.22.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/
|
|
58
|
-
const
|
|
58
|
+
const Bt = [
|
|
59
59
|
[
|
|
60
60
|
"path",
|
|
61
61
|
{
|
|
@@ -71,14 +71,14 @@ const Ht = [
|
|
|
71
71
|
key: "1tzo1f"
|
|
72
72
|
}
|
|
73
73
|
]
|
|
74
|
-
],
|
|
74
|
+
], Ht = ie("file-play", Bt);
|
|
75
75
|
/**
|
|
76
76
|
* @license lucide-react v1.22.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
80
|
*/
|
|
81
|
-
const
|
|
81
|
+
const Ot = [
|
|
82
82
|
[
|
|
83
83
|
"path",
|
|
84
84
|
{
|
|
@@ -88,14 +88,14 @@ const qt = [
|
|
|
88
88
|
],
|
|
89
89
|
["path", { d: "M2 13h10", key: "pgb2dq" }],
|
|
90
90
|
["path", { d: "m9 16 3-3-3-3", key: "6m91ic" }]
|
|
91
|
-
],
|
|
91
|
+
], Xe = ie("folder-input", Ot);
|
|
92
92
|
/**
|
|
93
93
|
* @license lucide-react v1.22.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
97
|
*/
|
|
98
|
-
const
|
|
98
|
+
const qt = [
|
|
99
99
|
[
|
|
100
100
|
"path",
|
|
101
101
|
{
|
|
@@ -103,14 +103,14 @@ const jt = [
|
|
|
103
103
|
key: "usdka0"
|
|
104
104
|
}
|
|
105
105
|
]
|
|
106
|
-
],
|
|
106
|
+
], jt = ie("folder-open", qt);
|
|
107
107
|
/**
|
|
108
108
|
* @license lucide-react v1.22.0 - ISC
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the ISC license.
|
|
111
111
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
112
|
*/
|
|
113
|
-
const
|
|
113
|
+
const Pt = [
|
|
114
114
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
115
115
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
116
116
|
[
|
|
@@ -120,14 +120,14 @@ const Vt = [
|
|
|
120
120
|
key: "1kt360"
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
|
-
],
|
|
123
|
+
], Vt = ie("folder-plus", Pt);
|
|
124
124
|
/**
|
|
125
125
|
* @license lucide-react v1.22.0 - ISC
|
|
126
126
|
*
|
|
127
127
|
* This source code is licensed under the ISC license.
|
|
128
128
|
* See the LICENSE file in the root directory of this source tree.
|
|
129
129
|
*/
|
|
130
|
-
const
|
|
130
|
+
const Wt = [
|
|
131
131
|
[
|
|
132
132
|
"path",
|
|
133
133
|
{
|
|
@@ -135,20 +135,20 @@ const $t = [
|
|
|
135
135
|
key: "1kt360"
|
|
136
136
|
}
|
|
137
137
|
]
|
|
138
|
-
],
|
|
138
|
+
], Je = ie("folder", Wt);
|
|
139
139
|
/**
|
|
140
140
|
* @license lucide-react v1.22.0 - ISC
|
|
141
141
|
*
|
|
142
142
|
* This source code is licensed under the ISC license.
|
|
143
143
|
* See the LICENSE file in the root directory of this source tree.
|
|
144
144
|
*/
|
|
145
|
-
const
|
|
145
|
+
const $t = [
|
|
146
146
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }],
|
|
147
147
|
["circle", { cx: "6", cy: "12", r: "3", key: "w7nqdw" }],
|
|
148
148
|
["circle", { cx: "18", cy: "19", r: "3", key: "1xt0gg" }],
|
|
149
149
|
["line", { x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49", key: "47mynk" }],
|
|
150
150
|
["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49", key: "1n3mei" }]
|
|
151
|
-
],
|
|
151
|
+
], Qe = ie("share-2", $t), Gt = {
|
|
152
152
|
type: "array",
|
|
153
153
|
items: {
|
|
154
154
|
type: "object",
|
|
@@ -172,7 +172,7 @@ const Gt = [
|
|
|
172
172
|
},
|
|
173
173
|
required: ["id", "kind", "parentId"]
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, Ut = {
|
|
176
176
|
id: "file-manager",
|
|
177
177
|
// select_multiple → select_items / clear_selection; navigate → navigate;
|
|
178
178
|
// filter → set_type_filter (proxied to the DataTable's documentType column);
|
|
@@ -321,7 +321,7 @@ const Gt = [
|
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
returns: "Array<{ id, kind, parentId, size, updatedAt }>",
|
|
324
|
-
returnsSchema:
|
|
324
|
+
returnsSchema: Gt,
|
|
325
325
|
idempotent: !0,
|
|
326
326
|
descriptionKey: "ui.agent.fileManager.actions.listItems",
|
|
327
327
|
description: "List structural metadata (ids, kinds, sizes, dates — never names) for a folder or the whole tree.",
|
|
@@ -379,33 +379,33 @@ const Gt = [
|
|
|
379
379
|
description: "Grid cards and folder-tree nodes carry the item id as data-item-id (ids only — never names). List-view rows are AG Grid rows inside the composed DataTable and carry its native row-id attribute keyed to the same ids."
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, Yt = [
|
|
383
383
|
"fileManager.units.bytes",
|
|
384
384
|
"fileManager.units.kilobytes",
|
|
385
385
|
"fileManager.units.megabytes",
|
|
386
386
|
"fileManager.units.gigabytes"
|
|
387
387
|
], Oe = ["B", "KB", "MB", "GB"];
|
|
388
|
-
function
|
|
388
|
+
function Zt(t, r, l) {
|
|
389
389
|
let i = t, a = 0;
|
|
390
390
|
for (; i >= 1024 && a < Oe.length - 1; )
|
|
391
391
|
i /= 1024, a++;
|
|
392
392
|
return `${new Intl.NumberFormat(r, {
|
|
393
393
|
maximumFractionDigits: a === 0 ? 0 : 1
|
|
394
|
-
}).format(i)} ${l(
|
|
394
|
+
}).format(i)} ${l(Yt[a], Oe[a])}`;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
if (t.kind === "folder") return
|
|
396
|
+
function Xt(t) {
|
|
397
|
+
if (t.kind === "folder") return Je;
|
|
398
398
|
const r = t.mimeType ?? "";
|
|
399
|
-
return r.startsWith("image/") ? Nt : r.startsWith("audio/") ?
|
|
399
|
+
return r.startsWith("image/") ? Nt : r.startsWith("audio/") ? Et : r.startsWith("video/") ? Ht : r === "application/pdf" || r.startsWith("text/") || r.includes("word") || r.includes("rtf") ? Ft : r.includes("zip") || r.includes("compressed") || r.includes("tar") ? xt : r.includes("spreadsheet") || r.includes("excel") || r === "text/csv" ? At : Tt;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function et(t, r, l) {
|
|
402
402
|
const i = new Intl.Collator(l, {
|
|
403
403
|
numeric: !0,
|
|
404
404
|
sensitivity: "base"
|
|
405
405
|
});
|
|
406
406
|
return t.filter((a) => a.parentId === r).sort((a, u) => a.kind !== u.kind ? a.kind === "folder" ? -1 : 1 : i.compare(a.name, u.name));
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Jt(t, r, l) {
|
|
409
409
|
const i = /* @__PURE__ */ new Set();
|
|
410
410
|
for (const c of t)
|
|
411
411
|
c.parentId === r && i.add(c.id);
|
|
@@ -421,7 +421,7 @@ function Qt(t, r, l) {
|
|
|
421
421
|
});
|
|
422
422
|
return t.filter((c) => i.has(c.id)).sort((c, F) => c.kind !== F.kind ? c.kind === "folder" ? -1 : 1 : u.compare(c.name, F.name));
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Qt(t, r, l) {
|
|
425
425
|
const i = [];
|
|
426
426
|
let a = t;
|
|
427
427
|
const u = /* @__PURE__ */ new Set();
|
|
@@ -429,7 +429,7 @@ function en(t, r, l) {
|
|
|
429
429
|
a = a.parentId === null ? void 0 : r.get(a.parentId);
|
|
430
430
|
return i;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function en(t, r) {
|
|
433
433
|
const l = new Map(t.map((c) => [c.id, c])), i = [];
|
|
434
434
|
let a = r === null ? void 0 : l.get(r);
|
|
435
435
|
const u = /* @__PURE__ */ new Set();
|
|
@@ -437,7 +437,7 @@ function tn(t, r) {
|
|
|
437
437
|
u.add(a.id), i.unshift(a), a = a.parentId === null ? void 0 : l.get(a.parentId);
|
|
438
438
|
return i;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function tn(t, r) {
|
|
441
441
|
const l = new Set(r);
|
|
442
442
|
let i = !0;
|
|
443
443
|
for (; i; ) {
|
|
@@ -447,12 +447,12 @@ function nn(t, r) {
|
|
|
447
447
|
}
|
|
448
448
|
return l;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function tt(t, r) {
|
|
451
451
|
if (t.length !== r.length) return !1;
|
|
452
452
|
const l = new Set(t);
|
|
453
453
|
return r.every((i) => l.has(i));
|
|
454
454
|
}
|
|
455
|
-
const pe = "__root__", se = (t) => t ?? pe,
|
|
455
|
+
const pe = "__root__", se = (t) => t ?? pe, nn = Ve(
|
|
456
456
|
[
|
|
457
457
|
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
458
458
|
"ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
@@ -472,8 +472,8 @@ const pe = "__root__", se = (t) => t ?? pe, rn = Ve(
|
|
|
472
472
|
defaultVariants: { selected: !1 }
|
|
473
473
|
}
|
|
474
474
|
);
|
|
475
|
-
function
|
|
476
|
-
const i = (a) =>
|
|
475
|
+
function rn(t, r, l) {
|
|
476
|
+
const i = (a) => et(t, a, r).filter((u) => u.kind === "folder" && !(l != null && l.has(u.id))).map((u) => ({
|
|
477
477
|
key: se(u.id),
|
|
478
478
|
folderId: u.id,
|
|
479
479
|
item: u,
|
|
@@ -481,17 +481,17 @@ function an(t, r, l) {
|
|
|
481
481
|
}));
|
|
482
482
|
return { key: pe, folderId: null, children: i(null) };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function an(t, r) {
|
|
485
485
|
const l = [], i = (a) => {
|
|
486
486
|
l.push(a), r.has(a.key) && a.children.forEach(i);
|
|
487
487
|
};
|
|
488
488
|
return i(t), l;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function on(t) {
|
|
491
491
|
var r;
|
|
492
492
|
return t.folderId === null ? null : se(((r = t.item) == null ? void 0 : r.parentId) ?? null);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function nt({
|
|
495
495
|
items: t,
|
|
496
496
|
selectedFolderId: r,
|
|
497
497
|
onSelectFolder: l,
|
|
@@ -499,7 +499,7 @@ function tt({
|
|
|
499
499
|
excludeIds: a
|
|
500
500
|
}) {
|
|
501
501
|
const { t: u, i18n: c } = J(), F = c.dir() === "rtl", S = O(
|
|
502
|
-
() =>
|
|
502
|
+
() => rn(t, c.language, a),
|
|
503
503
|
[t, c.language, a]
|
|
504
504
|
), [b, k] = te(
|
|
505
505
|
() => /* @__PURE__ */ new Set([pe])
|
|
@@ -517,7 +517,7 @@ function tt({
|
|
|
517
517
|
}), z(se(r));
|
|
518
518
|
}, [r, t]);
|
|
519
519
|
const M = O(
|
|
520
|
-
() =>
|
|
520
|
+
() => an(S, b),
|
|
521
521
|
[S, b]
|
|
522
522
|
);
|
|
523
523
|
ne(() => {
|
|
@@ -554,7 +554,7 @@ function tt({
|
|
|
554
554
|
if (B && G)
|
|
555
555
|
V(A, !1);
|
|
556
556
|
else {
|
|
557
|
-
const L =
|
|
557
|
+
const L = on(E);
|
|
558
558
|
L !== null && _(L);
|
|
559
559
|
}
|
|
560
560
|
break;
|
|
@@ -575,7 +575,7 @@ function tt({
|
|
|
575
575
|
o.preventDefault(), o.stopPropagation();
|
|
576
576
|
}, W = (o) => {
|
|
577
577
|
var T;
|
|
578
|
-
const v = se(r) === o.key, A = b.has(o.key), g = o.children.length > 0, E = o.folderId === null ? u("fileManager.rootLabel", "All files") : ((T = o.item) == null ? void 0 : T.name) ?? "", B = A && g ?
|
|
578
|
+
const v = se(r) === o.key, A = b.has(o.key), g = o.children.length > 0, E = o.folderId === null ? u("fileManager.rootLabel", "All files") : ((T = o.item) == null ? void 0 : T.name) ?? "", B = A && g ? jt : Je, G = (L) => {
|
|
579
579
|
L.stopPropagation(), z(o.key), l(o.folderId), g && V(o.key, !0);
|
|
580
580
|
}, re = (L) => {
|
|
581
581
|
L.stopPropagation(), V(o.key);
|
|
@@ -602,7 +602,7 @@ function tt({
|
|
|
602
602
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
603
603
|
].join(" "),
|
|
604
604
|
children: [
|
|
605
|
-
/* @__PURE__ */ x("div", { className:
|
|
605
|
+
/* @__PURE__ */ x("div", { className: nn({ selected: v }), children: [
|
|
606
606
|
g ? /* @__PURE__ */ n(
|
|
607
607
|
"span",
|
|
608
608
|
{
|
|
@@ -656,11 +656,11 @@ function tt({
|
|
|
656
656
|
}
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const
|
|
660
|
-
function
|
|
661
|
-
return t.replace(
|
|
659
|
+
const ln = /[\\/:*?"<>|]/g, Ae = 128;
|
|
660
|
+
function rt(t) {
|
|
661
|
+
return t.replace(ln, "").slice(0, Ae);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function sn({
|
|
664
664
|
open: t,
|
|
665
665
|
onOpenChange: r,
|
|
666
666
|
onSubmit: l
|
|
@@ -692,7 +692,7 @@ function dn({
|
|
|
692
692
|
id: a,
|
|
693
693
|
value: u,
|
|
694
694
|
maxLength: Ae,
|
|
695
|
-
onChange: (S) => c(
|
|
695
|
+
onChange: (S) => c(rt(S.target.value)),
|
|
696
696
|
autoFocus: !0
|
|
697
697
|
}
|
|
698
698
|
)
|
|
@@ -712,7 +712,7 @@ function dn({
|
|
|
712
712
|
] })
|
|
713
713
|
] }) });
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function dn({
|
|
716
716
|
open: t,
|
|
717
717
|
onOpenChange: r,
|
|
718
718
|
onUpload: l,
|
|
@@ -725,7 +725,7 @@ function cn({
|
|
|
725
725
|
folder: i
|
|
726
726
|
}) }) }),
|
|
727
727
|
/* @__PURE__ */ n(m.Body, { children: /* @__PURE__ */ n(
|
|
728
|
-
|
|
728
|
+
St,
|
|
729
729
|
{
|
|
730
730
|
variant: "both",
|
|
731
731
|
multiple: (a == null ? void 0 : a.multiple) ?? !0,
|
|
@@ -737,7 +737,7 @@ function cn({
|
|
|
737
737
|
/* @__PURE__ */ n(m.Footer, { children: /* @__PURE__ */ n(m.Close, { asChild: !0, children: /* @__PURE__ */ n(X, { type: "button", intent: "outline", children: u("fileManager.dialogs.upload.close", "Done") }) }) })
|
|
738
738
|
] }) });
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function cn({
|
|
741
741
|
open: t,
|
|
742
742
|
onOpenChange: r,
|
|
743
743
|
initialName: l,
|
|
@@ -770,7 +770,7 @@ function un({
|
|
|
770
770
|
id: u,
|
|
771
771
|
value: c,
|
|
772
772
|
maxLength: Ae,
|
|
773
|
-
onChange: (b) => F(
|
|
773
|
+
onChange: (b) => F(rt(b.target.value)),
|
|
774
774
|
autoFocus: !0
|
|
775
775
|
}
|
|
776
776
|
)
|
|
@@ -790,7 +790,7 @@ function un({
|
|
|
790
790
|
] })
|
|
791
791
|
] }) });
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function un({
|
|
794
794
|
open: t,
|
|
795
795
|
onOpenChange: r,
|
|
796
796
|
count: l,
|
|
@@ -811,7 +811,7 @@ function fn({
|
|
|
811
811
|
] })
|
|
812
812
|
] }) });
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function fn({
|
|
815
815
|
open: t,
|
|
816
816
|
onOpenChange: r,
|
|
817
817
|
items: l,
|
|
@@ -823,13 +823,13 @@ function pn({
|
|
|
823
823
|
ne(() => {
|
|
824
824
|
t && S(a);
|
|
825
825
|
}, [t, a]);
|
|
826
|
-
const b =
|
|
826
|
+
const b = tn(l, i);
|
|
827
827
|
return /* @__PURE__ */ n(m.Root, { open: t, onOpenChange: r, children: /* @__PURE__ */ x(m.Content, { size: "sm", children: [
|
|
828
828
|
/* @__PURE__ */ n(m.Header, { children: /* @__PURE__ */ n(m.Title, { children: c("fileManager.dialogs.move.title", "Move {{count}} items", {
|
|
829
829
|
count: i.length
|
|
830
830
|
}) }) }),
|
|
831
831
|
/* @__PURE__ */ n(m.Body, { children: /* @__PURE__ */ n("div", { className: "ds:max-h-72 ds:overflow-y-auto ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)] ds:p-[var(--spacing-xs)]", children: /* @__PURE__ */ n(
|
|
832
|
-
|
|
832
|
+
nt,
|
|
833
833
|
{
|
|
834
834
|
items: l,
|
|
835
835
|
selectedFolderId: F,
|
|
@@ -855,7 +855,7 @@ function pn({
|
|
|
855
855
|
] })
|
|
856
856
|
] }) });
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const pn = {
|
|
859
859
|
signed: "success",
|
|
860
860
|
pending: "warning"
|
|
861
861
|
};
|
|
@@ -863,7 +863,7 @@ function qe(t) {
|
|
|
863
863
|
return function(l) {
|
|
864
864
|
const i = l.data;
|
|
865
865
|
if (!i) return null;
|
|
866
|
-
const a =
|
|
866
|
+
const a = Xt(i), u = !!t && i.id === t;
|
|
867
867
|
return /* @__PURE__ */ x(
|
|
868
868
|
"span",
|
|
869
869
|
{
|
|
@@ -888,18 +888,18 @@ function qe(t) {
|
|
|
888
888
|
);
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function mn(t) {
|
|
892
892
|
const r = t.data;
|
|
893
893
|
return !r || !r.documentType ? null : /* @__PURE__ */ n($e, { variant: "neutral", size: "sm", children: r.documentType });
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function gn(t) {
|
|
896
896
|
return function(l) {
|
|
897
897
|
var a;
|
|
898
898
|
const i = (a = l.data) == null ? void 0 : a.signatureStatus;
|
|
899
|
-
return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant:
|
|
899
|
+
return !i || i === "none" ? null : /* @__PURE__ */ n($e, { variant: pn[i], size: "sm", withDot: !0, children: t(`fileManager.signature.${i}`, i) });
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function hn({
|
|
903
903
|
items: t,
|
|
904
904
|
selectedIds: r,
|
|
905
905
|
previewedItemId: l,
|
|
@@ -949,7 +949,7 @@ function yn({
|
|
|
949
949
|
onClick: (d) => z(d),
|
|
950
950
|
hidden: (d) => d.signatureStatus !== "pending"
|
|
951
951
|
}), D && f.push({
|
|
952
|
-
icon: /* @__PURE__ */ n(
|
|
952
|
+
icon: /* @__PURE__ */ n(Qe, {}),
|
|
953
953
|
label: o("fileManager.toolbar.share", "Share"),
|
|
954
954
|
onClick: (d) => D([d.id]),
|
|
955
955
|
hidden: (d) => !c(d).share
|
|
@@ -959,7 +959,7 @@ function yn({
|
|
|
959
959
|
onClick: (d) => F(d.id),
|
|
960
960
|
hidden: (d) => !c(d).rename
|
|
961
961
|
}), f.push({
|
|
962
|
-
icon: /* @__PURE__ */ n(
|
|
962
|
+
icon: /* @__PURE__ */ n(Xe, {}),
|
|
963
963
|
label: o("fileManager.toolbar.move", "Move"),
|
|
964
964
|
onClick: (d) => S([d.id]),
|
|
965
965
|
hidden: (d) => !c(d).move
|
|
@@ -1001,7 +1001,7 @@ function yn({
|
|
|
1001
1001
|
R,
|
|
1002
1002
|
o
|
|
1003
1003
|
]), G = O(() => {
|
|
1004
|
-
const f =
|
|
1004
|
+
const f = gn(o), d = qe(l), h = [];
|
|
1005
1005
|
return M || h.push({
|
|
1006
1006
|
colId: "name",
|
|
1007
1007
|
field: "name",
|
|
@@ -1013,7 +1013,7 @@ function yn({
|
|
|
1013
1013
|
colId: "documentType",
|
|
1014
1014
|
field: "documentType",
|
|
1015
1015
|
headerName: o("fileManager.columns.type", "Type"),
|
|
1016
|
-
cellRenderer:
|
|
1016
|
+
cellRenderer: mn,
|
|
1017
1017
|
flex: 1,
|
|
1018
1018
|
minWidth: 120
|
|
1019
1019
|
}), g && h.push({
|
|
@@ -1029,7 +1029,7 @@ function yn({
|
|
|
1029
1029
|
headerName: o("fileManager.columns.size", "Size"),
|
|
1030
1030
|
valueFormatter: (I) => {
|
|
1031
1031
|
var $;
|
|
1032
|
-
return (($ = I.data) == null ? void 0 : $.kind) === "file" && I.data.size !== void 0 ?
|
|
1032
|
+
return (($ = I.data) == null ? void 0 : $.kind) === "file" && I.data.size !== void 0 ? Zt(I.data.size, v.language, o) : o("fileManager.emptyCell", "—");
|
|
1033
1033
|
},
|
|
1034
1034
|
filter: !1,
|
|
1035
1035
|
flex: 1,
|
|
@@ -1084,7 +1084,7 @@ function yn({
|
|
|
1084
1084
|
};
|
|
1085
1085
|
if (M) {
|
|
1086
1086
|
const d = qe(l);
|
|
1087
|
-
f.treeData = !0, f.getDataPath = (h) =>
|
|
1087
|
+
f.treeData = !0, f.getDataPath = (h) => Qt(h, A, _), f.groupDefaultExpanded = 1, f.autoGroupColumnDef = {
|
|
1088
1088
|
headerName: o("fileManager.columns.name", "Name"),
|
|
1089
1089
|
flex: 2,
|
|
1090
1090
|
minWidth: 200,
|
|
@@ -1105,7 +1105,7 @@ function yn({
|
|
|
1105
1105
|
_
|
|
1106
1106
|
]), T = (f) => {
|
|
1107
1107
|
const d = f.map((h) => h.id);
|
|
1108
|
-
|
|
1108
|
+
tt(d, r) || i(d);
|
|
1109
1109
|
}, L = y(
|
|
1110
1110
|
(f) => {
|
|
1111
1111
|
var d;
|
|
@@ -1129,7 +1129,7 @@ function yn({
|
|
|
1129
1129
|
}
|
|
1130
1130
|
);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function yn({
|
|
1133
1133
|
selectedIds: t,
|
|
1134
1134
|
permissions: r,
|
|
1135
1135
|
onRequestCreateFolder: l,
|
|
@@ -1156,7 +1156,7 @@ function bn({
|
|
|
1156
1156
|
{
|
|
1157
1157
|
intent: "primary",
|
|
1158
1158
|
"data-overflow-pin": !0,
|
|
1159
|
-
icon: /* @__PURE__ */ n(
|
|
1159
|
+
icon: /* @__PURE__ */ n(Ze, {}),
|
|
1160
1160
|
tooltip: k("fileManager.toolbar.upload", "Upload files"),
|
|
1161
1161
|
onClick: () => i == null ? void 0 : i()
|
|
1162
1162
|
}
|
|
@@ -1164,7 +1164,7 @@ function bn({
|
|
|
1164
1164
|
r.createFolder && /* @__PURE__ */ n(
|
|
1165
1165
|
Q,
|
|
1166
1166
|
{
|
|
1167
|
-
icon: /* @__PURE__ */ n(
|
|
1167
|
+
icon: /* @__PURE__ */ n(Vt, {}),
|
|
1168
1168
|
tooltip: k("fileManager.toolbar.newFolder", "New folder"),
|
|
1169
1169
|
onClick: l
|
|
1170
1170
|
}
|
|
@@ -1172,7 +1172,7 @@ function bn({
|
|
|
1172
1172
|
V.map((W) => /* @__PURE__ */ n(
|
|
1173
1173
|
Q,
|
|
1174
1174
|
{
|
|
1175
|
-
icon: W.icon ?? /* @__PURE__ */ n(
|
|
1175
|
+
icon: W.icon ?? /* @__PURE__ */ n(Lt, {}),
|
|
1176
1176
|
tooltip: W.label,
|
|
1177
1177
|
onClick: () => W.onSelect()
|
|
1178
1178
|
},
|
|
@@ -1190,7 +1190,7 @@ function bn({
|
|
|
1190
1190
|
_ && /* @__PURE__ */ n(
|
|
1191
1191
|
Q,
|
|
1192
1192
|
{
|
|
1193
|
-
icon: /* @__PURE__ */ n(
|
|
1193
|
+
icon: /* @__PURE__ */ n(Qe, {}),
|
|
1194
1194
|
tooltip: k("fileManager.toolbar.share", "Share"),
|
|
1195
1195
|
disabled: !D,
|
|
1196
1196
|
onClick: () => b == null ? void 0 : b(t)
|
|
@@ -1208,7 +1208,7 @@ function bn({
|
|
|
1208
1208
|
r.move && /* @__PURE__ */ n(
|
|
1209
1209
|
Q,
|
|
1210
1210
|
{
|
|
1211
|
-
icon: /* @__PURE__ */ n(
|
|
1211
|
+
icon: /* @__PURE__ */ n(Xe, {}),
|
|
1212
1212
|
tooltip: k("fileManager.toolbar.move", "Move"),
|
|
1213
1213
|
disabled: !D,
|
|
1214
1214
|
onClick: () => c(t)
|
|
@@ -1246,7 +1246,7 @@ const je = Ve(
|
|
|
1246
1246
|
move: !0,
|
|
1247
1247
|
delete: !0,
|
|
1248
1248
|
share: !0
|
|
1249
|
-
},
|
|
1249
|
+
}, bn = bt(
|
|
1250
1250
|
({
|
|
1251
1251
|
id: t,
|
|
1252
1252
|
items: r,
|
|
@@ -1282,13 +1282,13 @@ const je = Ve(
|
|
|
1282
1282
|
), d = O(() => f(), [f]), h = y(
|
|
1283
1283
|
(e) => f(e),
|
|
1284
1284
|
[f]
|
|
1285
|
-
), [I, $] =
|
|
1285
|
+
), [I, $] = Ct({
|
|
1286
1286
|
value: i,
|
|
1287
1287
|
defaultValue: a,
|
|
1288
1288
|
onChange: u
|
|
1289
1289
|
}), w = I ?? null, [K, de] = te([]), [C, De] = te({
|
|
1290
1290
|
type: "none"
|
|
1291
|
-
}), [
|
|
1291
|
+
}), [at, ye] = te(!1), ce = ee(0), be = ee(null), ve = ee(null), Re = y((e) => {
|
|
1292
1292
|
ve.current && (ve.current.textContent = e);
|
|
1293
1293
|
}, []), Ie = ee(null), ke = ee(!1), N = O(
|
|
1294
1294
|
() => new Map(r.map((e) => [e.id, e])),
|
|
@@ -1297,7 +1297,7 @@ const je = Ve(
|
|
|
1297
1297
|
(e) => {
|
|
1298
1298
|
de((s) => {
|
|
1299
1299
|
const p = e.filter((H) => N.has(H));
|
|
1300
|
-
return
|
|
1300
|
+
return tt(s, p) ? s : (c == null || c(p), p);
|
|
1301
1301
|
});
|
|
1302
1302
|
},
|
|
1303
1303
|
[N, c]
|
|
@@ -1328,19 +1328,19 @@ const je = Ve(
|
|
|
1328
1328
|
ke.current && (ke.current = !1, (e = Ie.current) == null || e.focus());
|
|
1329
1329
|
}, [w]);
|
|
1330
1330
|
const ze = v && N.has(v) ? v : w, Me = O(
|
|
1331
|
-
() =>
|
|
1331
|
+
() => en(r, ze),
|
|
1332
1332
|
[r, ze]
|
|
1333
1333
|
), ue = O(
|
|
1334
|
-
() =>
|
|
1334
|
+
() => et(r, w, L.language),
|
|
1335
1335
|
[r, w, L.language]
|
|
1336
|
-
),
|
|
1337
|
-
() => E ?
|
|
1336
|
+
), it = O(
|
|
1337
|
+
() => E ? Jt(r, w, L.language) : ue,
|
|
1338
1338
|
[E, r, w, L.language, ue]
|
|
1339
1339
|
), _e = w === null ? T("fileManager.rootLabel", "All files") : ((Be = N.get(w)) == null ? void 0 : Be.name) ?? "", U = y((e) => {
|
|
1340
1340
|
De((s) => s.type === "none" ? e : s);
|
|
1341
1341
|
}, []), q = y(() => {
|
|
1342
1342
|
De({ type: "none" });
|
|
1343
|
-
}, []),
|
|
1343
|
+
}, []), ot = y(() => {
|
|
1344
1344
|
!d.createFolder || !k || U({ type: "create-folder" });
|
|
1345
1345
|
}, [d.createFolder, k, U]), Ce = y(() => {
|
|
1346
1346
|
!d.upload || !P || U({ type: "upload" });
|
|
@@ -1400,47 +1400,47 @@ const je = Ve(
|
|
|
1400
1400
|
e.kind === "folder" ? Z(e.id) : (Y([e.id]), o == null || o(e));
|
|
1401
1401
|
},
|
|
1402
1402
|
[Z, Y, o]
|
|
1403
|
-
),
|
|
1403
|
+
), lt = y(
|
|
1404
1404
|
(e) => {
|
|
1405
1405
|
k == null || k(e, w), q();
|
|
1406
1406
|
},
|
|
1407
1407
|
[k, w, q]
|
|
1408
|
-
),
|
|
1408
|
+
), st = y(
|
|
1409
1409
|
(e) => {
|
|
1410
1410
|
C.type === "rename" && (D == null || D(C.itemId, e)), q();
|
|
1411
1411
|
},
|
|
1412
1412
|
[C, D, q]
|
|
1413
|
-
),
|
|
1413
|
+
), dt = y(() => {
|
|
1414
1414
|
C.type === "delete" && (z == null || z(C.itemIds), Y([])), q();
|
|
1415
|
-
}, [C, z, Y, q]),
|
|
1415
|
+
}, [C, z, Y, q]), ct = y(
|
|
1416
1416
|
(e) => {
|
|
1417
1417
|
C.type === "move" && (R == null || R(C.itemIds, e)), q();
|
|
1418
1418
|
},
|
|
1419
1419
|
[C, R, q]
|
|
1420
|
-
),
|
|
1420
|
+
), ut = y(
|
|
1421
1421
|
(e, s) => P ? P(e, s, w) : Promise.resolve(),
|
|
1422
1422
|
[P, w]
|
|
1423
1423
|
), j = d.upload && !!P, xe = (e) => {
|
|
1424
1424
|
var s;
|
|
1425
1425
|
return Array.from(((s = e.dataTransfer) == null ? void 0 : s.types) ?? []).includes("Files");
|
|
1426
|
-
},
|
|
1426
|
+
}, ft = y(
|
|
1427
1427
|
(e) => {
|
|
1428
1428
|
!j || !xe(e) || (e.preventDefault(), ce.current += 1, ye(!0));
|
|
1429
1429
|
},
|
|
1430
1430
|
[j]
|
|
1431
|
-
),
|
|
1431
|
+
), pt = y(
|
|
1432
1432
|
(e) => {
|
|
1433
1433
|
!j || !xe(e) || e.preventDefault();
|
|
1434
1434
|
},
|
|
1435
1435
|
[j]
|
|
1436
|
-
),
|
|
1436
|
+
), mt = y(() => {
|
|
1437
1437
|
j && (ce.current = Math.max(0, ce.current - 1), ce.current === 0 && ye(!1));
|
|
1438
|
-
}, [j]),
|
|
1438
|
+
}, [j]), gt = y(
|
|
1439
1439
|
(e) => {
|
|
1440
1440
|
!j || !xe(e) || (e.preventDefault(), ce.current = 0, ye(!1), Ce());
|
|
1441
1441
|
},
|
|
1442
1442
|
[j, Ce]
|
|
1443
|
-
),
|
|
1443
|
+
), ht = y(
|
|
1444
1444
|
(e) => {
|
|
1445
1445
|
if (!(C.type !== "none" || e.target.closest('input, textarea, [contenteditable="true"]')))
|
|
1446
1446
|
if (e.key === "F2" && K.length === 1)
|
|
@@ -1538,7 +1538,7 @@ const je = Ve(
|
|
|
1538
1538
|
}),
|
|
1539
1539
|
[]
|
|
1540
1540
|
);
|
|
1541
|
-
|
|
1541
|
+
vt(re, () => Se, [Se]), wt(Ut, Se, t);
|
|
1542
1542
|
const Ne = C.type === "rename" ? N.get(C.itemId) : void 0;
|
|
1543
1543
|
if (S)
|
|
1544
1544
|
return /* @__PURE__ */ x(
|
|
@@ -1567,12 +1567,12 @@ const je = Ve(
|
|
|
1567
1567
|
]
|
|
1568
1568
|
}
|
|
1569
1569
|
);
|
|
1570
|
-
const
|
|
1571
|
-
|
|
1570
|
+
const yt = /* @__PURE__ */ n(
|
|
1571
|
+
yn,
|
|
1572
1572
|
{
|
|
1573
1573
|
selectedIds: K,
|
|
1574
1574
|
permissions: d,
|
|
1575
|
-
onRequestCreateFolder:
|
|
1575
|
+
onRequestCreateFolder: ot,
|
|
1576
1576
|
onRequestUpload: j ? Ce : void 0,
|
|
1577
1577
|
addMenuItems: g,
|
|
1578
1578
|
onRequestRename: oe,
|
|
@@ -1591,16 +1591,16 @@ const je = Ve(
|
|
|
1591
1591
|
"data-component-id": t,
|
|
1592
1592
|
role: "region",
|
|
1593
1593
|
"aria-label": T("fileManager.regionLabel", "File manager"),
|
|
1594
|
-
onKeyDown:
|
|
1595
|
-
onDragEnter: j ?
|
|
1596
|
-
onDragOver: j ?
|
|
1597
|
-
onDragLeave: j ?
|
|
1598
|
-
onDrop: j ?
|
|
1594
|
+
onKeyDown: ht,
|
|
1595
|
+
onDragEnter: j ? ft : void 0,
|
|
1596
|
+
onDragOver: j ? pt : void 0,
|
|
1597
|
+
onDragLeave: j ? mt : void 0,
|
|
1598
|
+
onDrop: j ? gt : void 0,
|
|
1599
1599
|
className: je({ bordered: B, className: G }),
|
|
1600
1600
|
children: [
|
|
1601
1601
|
/* @__PURE__ */ x("div", { className: "ds:flex ds:min-h-0 ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
1602
1602
|
F && /* @__PURE__ */ n("div", { className: "ds:hidden ds:w-56 ds:shrink-0 ds:md:block", children: /* @__PURE__ */ n(
|
|
1603
|
-
|
|
1603
|
+
nt,
|
|
1604
1604
|
{
|
|
1605
1605
|
items: r,
|
|
1606
1606
|
selectedFolderId: w,
|
|
@@ -1615,7 +1615,7 @@ const je = Ve(
|
|
|
1615
1615
|
tabIndex: -1,
|
|
1616
1616
|
className: "ds:min-w-0 ds:flex-1 ds:outline-none",
|
|
1617
1617
|
children: ue.length === 0 ? /* @__PURE__ */ n(
|
|
1618
|
-
|
|
1618
|
+
Mt,
|
|
1619
1619
|
{
|
|
1620
1620
|
variant: "first-use",
|
|
1621
1621
|
size: "sm",
|
|
@@ -1632,9 +1632,9 @@ const je = Ve(
|
|
|
1632
1632
|
/* Remount on folder change so the DataTable's column filters
|
|
1633
1633
|
reset cleanly for the new folder. */
|
|
1634
1634
|
/* @__PURE__ */ n(
|
|
1635
|
-
|
|
1635
|
+
hn,
|
|
1636
1636
|
{
|
|
1637
|
-
items:
|
|
1637
|
+
items: it,
|
|
1638
1638
|
currentFolderId: w,
|
|
1639
1639
|
selectedIds: K,
|
|
1640
1640
|
previewedItemId: v ?? null,
|
|
@@ -1652,7 +1652,7 @@ const je = Ve(
|
|
|
1652
1652
|
groupByFolder: E,
|
|
1653
1653
|
gridId: t ? `${t}-list` : void 0,
|
|
1654
1654
|
tableRef: be,
|
|
1655
|
-
toolbarActions:
|
|
1655
|
+
toolbarActions: yt
|
|
1656
1656
|
},
|
|
1657
1657
|
w ?? "__root__"
|
|
1658
1658
|
)
|
|
@@ -1661,7 +1661,7 @@ const je = Ve(
|
|
|
1661
1661
|
)
|
|
1662
1662
|
] }),
|
|
1663
1663
|
/* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-sm)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)] ds:text-muted-foreground", children: /* @__PURE__ */ x(
|
|
1664
|
-
|
|
1664
|
+
kt,
|
|
1665
1665
|
{
|
|
1666
1666
|
"aria-label": T("fileManager.breadcrumbLabel", "Folder path"),
|
|
1667
1667
|
disableCollapse: !0,
|
|
@@ -1674,13 +1674,13 @@ const je = Ve(
|
|
|
1674
1674
|
/* @__PURE__ */ n("p", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: K.length > 0 ? T("fileManager.selected", "{{count}} items selected", {
|
|
1675
1675
|
count: K.length
|
|
1676
1676
|
}) : "" }),
|
|
1677
|
-
|
|
1677
|
+
at && /* @__PURE__ */ x(
|
|
1678
1678
|
"div",
|
|
1679
1679
|
{
|
|
1680
1680
|
"aria-hidden": "true",
|
|
1681
1681
|
className: "ds:pointer-events-none ds:absolute ds:inset-0 ds:z-20 ds:flex ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-sm)] ds:rounded-[var(--radius-lg)] ds:border-2 ds:border-dashed ds:border-primary ds:bg-primary/10",
|
|
1682
1682
|
children: [
|
|
1683
|
-
/* @__PURE__ */ n(
|
|
1683
|
+
/* @__PURE__ */ n(Ze, { className: "ds:size-8 ds:text-primary" }),
|
|
1684
1684
|
/* @__PURE__ */ n("span", { className: "type-label ds:text-primary", children: T(
|
|
1685
1685
|
"fileManager.dropOverlay",
|
|
1686
1686
|
"Drop files to upload to {{folder}}",
|
|
@@ -1701,51 +1701,51 @@ const je = Ve(
|
|
|
1701
1701
|
}
|
|
1702
1702
|
),
|
|
1703
1703
|
/* @__PURE__ */ n(
|
|
1704
|
-
|
|
1704
|
+
sn,
|
|
1705
1705
|
{
|
|
1706
1706
|
open: C.type === "create-folder",
|
|
1707
1707
|
onOpenChange: (e) => {
|
|
1708
1708
|
e || q();
|
|
1709
1709
|
},
|
|
1710
|
-
onSubmit:
|
|
1710
|
+
onSubmit: lt
|
|
1711
1711
|
}
|
|
1712
1712
|
),
|
|
1713
1713
|
/* @__PURE__ */ n(
|
|
1714
|
-
|
|
1714
|
+
dn,
|
|
1715
1715
|
{
|
|
1716
1716
|
open: C.type === "upload",
|
|
1717
1717
|
onOpenChange: (e) => {
|
|
1718
1718
|
e || q();
|
|
1719
1719
|
},
|
|
1720
|
-
onUpload:
|
|
1720
|
+
onUpload: ut,
|
|
1721
1721
|
destinationLabel: _e,
|
|
1722
1722
|
config: W
|
|
1723
1723
|
}
|
|
1724
1724
|
),
|
|
1725
1725
|
/* @__PURE__ */ n(
|
|
1726
|
-
|
|
1726
|
+
cn,
|
|
1727
1727
|
{
|
|
1728
1728
|
open: C.type === "rename",
|
|
1729
1729
|
onOpenChange: (e) => {
|
|
1730
1730
|
e || q();
|
|
1731
1731
|
},
|
|
1732
1732
|
initialName: (Ne == null ? void 0 : Ne.name) ?? "",
|
|
1733
|
-
onSubmit:
|
|
1733
|
+
onSubmit: st
|
|
1734
1734
|
}
|
|
1735
1735
|
),
|
|
1736
1736
|
/* @__PURE__ */ n(
|
|
1737
|
-
|
|
1737
|
+
un,
|
|
1738
1738
|
{
|
|
1739
1739
|
open: C.type === "delete",
|
|
1740
1740
|
onOpenChange: (e) => {
|
|
1741
1741
|
e || q();
|
|
1742
1742
|
},
|
|
1743
1743
|
count: C.type === "delete" ? C.itemIds.length : 0,
|
|
1744
|
-
onConfirm:
|
|
1744
|
+
onConfirm: dt
|
|
1745
1745
|
}
|
|
1746
1746
|
),
|
|
1747
1747
|
/* @__PURE__ */ n(
|
|
1748
|
-
|
|
1748
|
+
fn,
|
|
1749
1749
|
{
|
|
1750
1750
|
open: C.type === "move",
|
|
1751
1751
|
onOpenChange: (e) => {
|
|
@@ -1754,7 +1754,7 @@ const je = Ve(
|
|
|
1754
1754
|
items: r,
|
|
1755
1755
|
movingIds: C.type === "move" ? C.itemIds : [],
|
|
1756
1756
|
currentFolderId: w,
|
|
1757
|
-
onConfirm:
|
|
1757
|
+
onConfirm: ct
|
|
1758
1758
|
}
|
|
1759
1759
|
)
|
|
1760
1760
|
]
|
|
@@ -1763,9 +1763,9 @@ const je = Ve(
|
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
1765
|
);
|
|
1766
|
-
|
|
1766
|
+
bn.displayName = "FileManager";
|
|
1767
1767
|
export {
|
|
1768
|
-
|
|
1769
|
-
|
|
1768
|
+
bn as F,
|
|
1769
|
+
Ut as f
|
|
1770
1770
|
};
|
|
1771
|
-
//# sourceMappingURL=file-manager-
|
|
1771
|
+
//# sourceMappingURL=file-manager-B9LZzT5E.js.map
|