@aiquants/directory-tree 6.0.0 → 6.1.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 +16 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +218 -199
- package/dist/palette.d.ts +8 -8
- package/dist/styles/directory-tree.standalone.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as he from "react";
|
|
2
|
-
import pr, { useRef as Y, useEffect as De, useCallback as _, memo as Ft, useState as fe, useMemo as
|
|
3
|
-
import { VIRTUAL_SCROLL_LABEL_KEYS as pt, VIRTUAL_SCROLL_LABEL_CATALOGS as
|
|
2
|
+
import pr, { useRef as Y, useEffect as De, useCallback as _, memo as Ft, useState as fe, useMemo as M, useLayoutEffect as In, useImperativeHandle as yr, useTransition as gr } from "react";
|
|
3
|
+
import { VIRTUAL_SCROLL_LABEL_KEYS as pt, VIRTUAL_SCROLL_LABEL_CATALOGS as kn, resolveVirtualScrollLocale as zn, resolveVirtualScrollLabels as br, VirtualScroll as vr, ScrollBar as Sr } from "@aiquants/virtualscroll";
|
|
4
4
|
import { twMerge as U } from "tailwind-merge";
|
|
5
|
-
import { FileIcon as wr, FileText as Er, FileCode as xr, FileZip as Rr, FileVideo as Ir, FileAudio as
|
|
5
|
+
import { FileIcon as wr, FileText as Er, FileCode as xr, FileZip as Rr, FileVideo as Ir, FileAudio as kr, FileImage as Nr, FilePpt as Tr, FileDoc as Pr, FileCsv as _r, FileXls as Cr, FilePdf as Or, FileMd as jr } from "@phosphor-icons/react";
|
|
6
6
|
var mt = { exports: {} }, qe = {};
|
|
7
7
|
var Nn;
|
|
8
8
|
function Ar() {
|
|
@@ -27,13 +27,13 @@ function Ar() {
|
|
|
27
27
|
return qe.Fragment = t, qe.jsx = n, qe.jsxs = n, qe;
|
|
28
28
|
}
|
|
29
29
|
var Qe = {};
|
|
30
|
-
var
|
|
30
|
+
var Tn;
|
|
31
31
|
function Lr() {
|
|
32
|
-
return
|
|
32
|
+
return Tn || (Tn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
33
33
|
function e(o) {
|
|
34
34
|
if (o == null) return null;
|
|
35
35
|
if (typeof o == "function")
|
|
36
|
-
return o.$$typeof ===
|
|
36
|
+
return o.$$typeof === z ? null : o.displayName || o.name || null;
|
|
37
37
|
if (typeof o == "string") return o;
|
|
38
38
|
switch (o) {
|
|
39
39
|
case w:
|
|
@@ -136,7 +136,7 @@ function Lr() {
|
|
|
136
136
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
137
137
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
138
138
|
}
|
|
139
|
-
function b(o, u, I, E, ve,
|
|
139
|
+
function b(o, u, I, E, ve, k) {
|
|
140
140
|
var j = I.ref;
|
|
141
141
|
return o = {
|
|
142
142
|
$$typeof: y,
|
|
@@ -166,10 +166,10 @@ function Lr() {
|
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
168
168
|
writable: !0,
|
|
169
|
-
value:
|
|
169
|
+
value: k
|
|
170
170
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
171
171
|
}
|
|
172
|
-
function N(o, u, I, E, ve,
|
|
172
|
+
function N(o, u, I, E, ve, k) {
|
|
173
173
|
var j = u.children;
|
|
174
174
|
if (j !== void 0)
|
|
175
175
|
if (E)
|
|
@@ -214,16 +214,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
214
214
|
I,
|
|
215
215
|
a(),
|
|
216
216
|
ve,
|
|
217
|
-
|
|
217
|
+
k
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
function x(o) {
|
|
221
|
-
|
|
221
|
+
T(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === Q && (o._payload.status === "fulfilled" ? T(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function T(o) {
|
|
224
224
|
return typeof o == "object" && o !== null && o.$$typeof === y;
|
|
225
225
|
}
|
|
226
|
-
var m = pr, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), g = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), Q = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"),
|
|
226
|
+
var m = pr, y = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), w = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), P = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), g = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), Q = /* @__PURE__ */ Symbol.for("react.lazy"), J = /* @__PURE__ */ Symbol.for("react.activity"), z = /* @__PURE__ */ Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, me = Object.prototype.hasOwnProperty, W = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
227
227
|
return null;
|
|
228
228
|
};
|
|
229
229
|
m = {
|
|
@@ -285,7 +285,7 @@ function $r({
|
|
|
285
285
|
}));
|
|
286
286
|
}
|
|
287
287
|
const Fr = /* @__PURE__ */ he.forwardRef($r);
|
|
288
|
-
function
|
|
288
|
+
function Mr({
|
|
289
289
|
title: e,
|
|
290
290
|
titleId: t,
|
|
291
291
|
...n
|
|
@@ -306,7 +306,7 @@ function zr({
|
|
|
306
306
|
clipRule: "evenodd"
|
|
307
307
|
}));
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const zr = /* @__PURE__ */ he.forwardRef(Mr);
|
|
310
310
|
function Hr({
|
|
311
311
|
title: e,
|
|
312
312
|
titleId: t,
|
|
@@ -326,7 +326,24 @@ function Hr({
|
|
|
326
326
|
d: "M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"
|
|
327
327
|
}));
|
|
328
328
|
}
|
|
329
|
-
const Wr = /* @__PURE__ */ he.forwardRef(Hr),
|
|
329
|
+
const Wr = /* @__PURE__ */ he.forwardRef(Hr), Br = {
|
|
330
|
+
icon: { light: "#6a7282", dark: "#99a1af" },
|
|
331
|
+
iconSelected: { light: "#1447e6", dark: "#51a2ff" },
|
|
332
|
+
checkedRing: { light: "#155dfc", dark: "#51a2ff" }
|
|
333
|
+
}, Jo = {
|
|
334
|
+
markdown: { light: "#0084d1", dark: "#00bcff" },
|
|
335
|
+
pdf: { light: "#e7000b", dark: "#ff6467" },
|
|
336
|
+
spreadsheet: { light: "#007a55", dark: "#00d492" },
|
|
337
|
+
csv: { light: "#007a55", dark: "#00d492" },
|
|
338
|
+
document: { light: "#155dfc", dark: "#51a2ff" },
|
|
339
|
+
presentation: { light: "#ca3500", dark: "#ff8904" },
|
|
340
|
+
image: { light: "#00786f", dark: "#00d5be" },
|
|
341
|
+
audio: { light: "#e60076", dark: "#fb64b6" },
|
|
342
|
+
video: { light: "#7f22fe", dark: "#a684ff" },
|
|
343
|
+
archive: { light: "#bb4d00", dark: "#ffb900" },
|
|
344
|
+
code: { light: "#9810fa", dark: "#c27aff" },
|
|
345
|
+
text: Br.icon
|
|
346
|
+
}, Hn = "#71829b", ce = {
|
|
330
347
|
rowHover: "hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",
|
|
331
348
|
rowSelected: "bg-[color:light-dark(#eff6ff,#162456)]",
|
|
332
349
|
checkedRing: "inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",
|
|
@@ -338,23 +355,23 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
338
355
|
}, ue = {
|
|
339
356
|
markdown: "text-[color:light-dark(#0084d1,#00bcff)]",
|
|
340
357
|
pdf: "text-[color:light-dark(#e7000b,#ff6467)]",
|
|
341
|
-
spreadsheet: "text-[color:light-dark(#
|
|
342
|
-
csv: "text-[color:light-dark(#
|
|
358
|
+
spreadsheet: "text-[color:light-dark(#007a55,#00d492)]",
|
|
359
|
+
csv: "text-[color:light-dark(#007a55,#00d492)]",
|
|
343
360
|
document: "text-[color:light-dark(#155dfc,#51a2ff)]",
|
|
344
|
-
presentation: "text-[color:light-dark(#
|
|
345
|
-
image: "text-[color:light-dark(#
|
|
361
|
+
presentation: "text-[color:light-dark(#ca3500,#ff8904)]",
|
|
362
|
+
image: "text-[color:light-dark(#00786f,#00d5be)]",
|
|
346
363
|
audio: "text-[color:light-dark(#e60076,#fb64b6)]",
|
|
347
364
|
video: "text-[color:light-dark(#7f22fe,#a684ff)]",
|
|
348
365
|
archive: "text-[color:light-dark(#bb4d00,#ffb900)]",
|
|
349
366
|
code: "text-[color:light-dark(#9810fa,#c27aff)]",
|
|
350
367
|
text: "text-[color:light-dark(#6a7282,#99a1af)]"
|
|
351
|
-
}, Wn = "text-[length:var(--dt-font-size-body,0.8125rem)]",
|
|
368
|
+
}, Wn = "text-[length:var(--dt-font-size-body,0.8125rem)]", Yr = `${Wn} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`, Ot = 44, Gr = 12, Vr = 8, de = 14, Xr = 14, Bn = (e) => e === void 0 ? void 0 : { fontSize: typeof e == "number" ? `${e}px` : e }, ae = (e) => ({ width: e, height: e }), L = {
|
|
352
369
|
container: "directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",
|
|
353
370
|
// 保留中も薄めない。薄めた文字と印は地と混ざり、配色表の組の対比 (文字 7:1・印 3:1) を割る
|
|
354
371
|
containerPending: "cursor-progress",
|
|
355
372
|
// 行は itemHeight の固定の箱で中身を縦の中央に置くため、上下の詰め物は行の高さを中身から奪うだけになる
|
|
356
373
|
// (行の中に置いたホストのボタンが行の高さいっぱいの的にならない)
|
|
357
|
-
entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${
|
|
374
|
+
entry: `directory-tree-entry flex items-center cursor-pointer relative select-none ${Yr}`,
|
|
358
375
|
entryHover: `directory-tree-entry--hover ${ce.rowHover}`,
|
|
359
376
|
entrySelected: `directory-tree-entry--selected ${ce.rowSelected}`,
|
|
360
377
|
// 輪は行の内側に描く。外側の輪は、後に描く隣の行の不透明な地 (ホバーや選択) に覆われる
|
|
@@ -369,12 +386,12 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
369
386
|
name: `directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Wn} font-normal ${ce.name}`,
|
|
370
387
|
nameDirectory: "directory-tree-name--directory font-medium",
|
|
371
388
|
nameSelected: `directory-tree-name--selected font-semibold ${ce.nameSelected}`
|
|
372
|
-
},
|
|
389
|
+
}, Mt = (e) => {
|
|
373
390
|
const t = e.slice(e.lastIndexOf("/") + 1), n = t.lastIndexOf(".");
|
|
374
391
|
return n <= 0 ? "" : t.slice(n + 1).toLowerCase();
|
|
375
|
-
},
|
|
392
|
+
}, Kr = /^[a-z][a-z\d+.-]*:\/\//i, _n = (e) => Mt(Kr.test(e) ? e.split(/[?#]/, 1)[0] : e), Yn = (e) => Mt(e.name) || _n(e.relativePath) || _n(e.absolutePath), Gn = ({ isDirectory: e, isExpanded: t, showExpandIcons: n, useCanvasExpandIcons: r, expandIconSize: a }) => {
|
|
376
393
|
const i = a ? { width: a, height: a } : void 0, l = a ? "" : "h-4 w-4";
|
|
377
|
-
return !(n && e) || r ? /* @__PURE__ */ f.jsx("span", { className: l, style: i, "aria-hidden": "true" }) : t ? /* @__PURE__ */ f.jsx(Fr, { className: l, style: i }) : /* @__PURE__ */ f.jsx(
|
|
394
|
+
return !(n && e) || r ? /* @__PURE__ */ f.jsx("span", { className: l, style: i, "aria-hidden": "true" }) : t ? /* @__PURE__ */ f.jsx(Fr, { className: l, style: i }) : /* @__PURE__ */ f.jsx(zr, { className: l, style: i });
|
|
378
395
|
}, At = (e, t) => {
|
|
379
396
|
if (e == null || typeof e == "boolean") return null;
|
|
380
397
|
if (typeof e == "function")
|
|
@@ -391,20 +408,20 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
391
408
|
return console.warn(`[DirectoryTree] Lazy component for "${t}". Not supported.`), null;
|
|
392
409
|
}
|
|
393
410
|
return e;
|
|
394
|
-
},
|
|
411
|
+
}, Ur = {
|
|
395
412
|
markdown: (e) => /* @__PURE__ */ f.jsx(jr, { className: ue.markdown, style: ae(e) }),
|
|
396
413
|
pdf: (e) => /* @__PURE__ */ f.jsx(Or, { className: ue.pdf, style: ae(e) }),
|
|
397
414
|
spreadsheet: (e) => /* @__PURE__ */ f.jsx(Cr, { className: ue.spreadsheet, style: ae(e) }),
|
|
398
415
|
csv: (e) => /* @__PURE__ */ f.jsx(_r, { className: ue.csv, style: ae(e) }),
|
|
399
416
|
document: (e) => /* @__PURE__ */ f.jsx(Pr, { className: ue.document, style: ae(e) }),
|
|
400
|
-
presentation: (e) => /* @__PURE__ */ f.jsx(
|
|
417
|
+
presentation: (e) => /* @__PURE__ */ f.jsx(Tr, { className: ue.presentation, style: ae(e) }),
|
|
401
418
|
image: (e) => /* @__PURE__ */ f.jsx(Nr, { className: ue.image, style: ae(e) }),
|
|
402
|
-
audio: (e) => /* @__PURE__ */ f.jsx(
|
|
419
|
+
audio: (e) => /* @__PURE__ */ f.jsx(kr, { className: ue.audio, style: ae(e) }),
|
|
403
420
|
video: (e) => /* @__PURE__ */ f.jsx(Ir, { className: ue.video, style: ae(e) }),
|
|
404
421
|
archive: (e) => /* @__PURE__ */ f.jsx(Rr, { className: ue.archive, style: ae(e) }),
|
|
405
422
|
code: (e) => /* @__PURE__ */ f.jsx(xr, { className: ue.code, style: ae(e) }),
|
|
406
423
|
text: (e) => /* @__PURE__ */ f.jsx(Er, { className: ue.text, style: ae(e) })
|
|
407
|
-
},
|
|
424
|
+
}, Jr = {
|
|
408
425
|
markdown: ["md", "markdown", "mdx"],
|
|
409
426
|
pdf: ["pdf"],
|
|
410
427
|
spreadsheet: ["xls", "xlsx", "xlsm", "xlsb", "ods"],
|
|
@@ -417,7 +434,7 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
417
434
|
archive: ["zip", "tar", "gz", "7z", "rar", "tgz", "bz2"],
|
|
418
435
|
code: ["js", "mjs", "cjs", "ts", "tsx", "jsx", "json", "html", "htm", "css", "scss", "py", "go", "rs", "c", "cpp", "h", "hpp", "sh", "bash", "yaml", "yml", "sql", "xml", "toml"],
|
|
419
436
|
text: ["txt", "log"]
|
|
420
|
-
},
|
|
437
|
+
}, Zr = new Map(Object.entries(Jr).flatMap(([e, t]) => t.map((n) => [n, e]))), qr = /* @__PURE__ */ new Set(["", "application/octet-stream", "binary/octet-stream", "text/plain", "application/x-empty"]), Qr = (e) => (e ?? "").split(";", 1)[0].trim().toLowerCase(), eo = (e) => {
|
|
421
438
|
if (e === "text/markdown" || e === "text/x-markdown") return "markdown";
|
|
422
439
|
if (e === "application/pdf") return "pdf";
|
|
423
440
|
if (e.includes("excel") || e.includes("spreadsheet")) return "spreadsheet";
|
|
@@ -431,21 +448,21 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
431
448
|
if (e === "application/json" || e.includes("javascript") || e.includes("typescript") || e.includes("xml") || e.startsWith("text/html") || e.startsWith("text/css") || e.includes("x-python") || e.includes("x-sh") || e.includes("x-go") || e.includes("x-rust"))
|
|
432
449
|
return "code";
|
|
433
450
|
if (e.startsWith("text/")) return "text";
|
|
434
|
-
},
|
|
435
|
-
const a =
|
|
436
|
-
return h === void 0 ? /* @__PURE__ */ f.jsx(wr, { className: ce.icon, style: ae(r) }) :
|
|
451
|
+
}, to = (e, t, n, r) => {
|
|
452
|
+
const a = Qr(e), i = eo(a), l = Zr.get((t || (n ? Mt(n) : "")).toLowerCase()), h = (qr.has(a) ? [l, i] : [i, l]).find((b) => b !== void 0);
|
|
453
|
+
return h === void 0 ? /* @__PURE__ */ f.jsx(wr, { className: ce.icon, style: ae(r) }) : Ur[h](r);
|
|
437
454
|
}, Vn = (e, t, n) => {
|
|
438
455
|
const { entry: r, isDirectory: a, isExpanded: i, extension: l, mimeType: d } = e;
|
|
439
456
|
let h;
|
|
440
457
|
const b = d || r.mimeType;
|
|
441
|
-
return r.icon !== void 0 ? h = r.icon : a ? h = i && t?.directoryExpanded || t?.directory || /* @__PURE__ */ f.jsx(Wr, { style: ae(n) }) : l && t?.fileByExtension?.[l] ? h = t.fileByExtension[l] : h = t?.file ||
|
|
442
|
-
},
|
|
458
|
+
return r.icon !== void 0 ? h = r.icon : a ? h = i && t?.directoryExpanded || t?.directory || /* @__PURE__ */ f.jsx(Wr, { style: ae(n) }) : l && t?.fileByExtension?.[l] ? h = t.fileByExtension[l] : h = t?.file || to(b, l, r.name, n), At(typeof h == "function" ? h(e) : h, r.absolutePath);
|
|
459
|
+
}, no = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Xn = (e) => {
|
|
443
460
|
if (!e)
|
|
444
461
|
return;
|
|
445
462
|
const t = Object.entries(e).filter(([, n]) => n != null);
|
|
446
463
|
if (t.length !== 0)
|
|
447
|
-
return Object.fromEntries(t.map(([n, r]) => [`data-${
|
|
448
|
-
},
|
|
464
|
+
return Object.fromEntries(t.map(([n, r]) => [`data-${no(n)}`, String(r)]));
|
|
465
|
+
}, ro = [
|
|
449
466
|
// 塗り: 箱の大きさと位置を変えずに行の面・縁・指す形だけを描く (アウトラインと影は箱の外に描かれ、場所を取らない)
|
|
450
467
|
"color",
|
|
451
468
|
"background",
|
|
@@ -492,7 +509,7 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
492
509
|
"textDecorationThickness",
|
|
493
510
|
"textUnderlineOffset",
|
|
494
511
|
"textTransform"
|
|
495
|
-
],
|
|
512
|
+
], oo = ["color", "opacity"], so = "the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)", ao = new Set(ro), io = new Set(oo), Cn = (e, t) => {
|
|
496
513
|
const n = t === void 0 ? e.option : `${e.option}.${t}`;
|
|
497
514
|
return e.absolutePath === void 0 ? n : `${n} of "${e.absolutePath}"`;
|
|
498
515
|
}, Kn = (e, t, n, r) => {
|
|
@@ -501,9 +518,9 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
501
518
|
throw new RangeError(`${Cn(n, void 0)} must be an object of CSS properties or undefined, got ${e === null ? "null" : typeof e}.`);
|
|
502
519
|
for (const [a, i] of Object.entries(e))
|
|
503
520
|
if (i !== void 0 && !t.has(a))
|
|
504
|
-
throw new RangeError(`${Cn(n, a)} cannot be set: ${
|
|
521
|
+
throw new RangeError(`${Cn(n, a)} cannot be set: ${so}, so ${r}.`);
|
|
505
522
|
}
|
|
506
|
-
}, Ge = (e, t) => Kn(e,
|
|
523
|
+
}, Ge = (e, t) => Kn(e, ao, t, "a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"), lo = (e, t) => Kn(e, io, t, "the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"), co = 500, Un = ({ entry: e, isDirectory: t, isExpanded: n, isItemSelected: r, selectionMode: a, onSelectionChange: i, onEntryClick: l, toggleDirectory: d, onToggleDirectoryRecursive: h }) => {
|
|
507
524
|
const b = Y(null);
|
|
508
525
|
return De(
|
|
509
526
|
() => () => {
|
|
@@ -523,7 +540,7 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
523
540
|
}
|
|
524
541
|
}), !(!t || x) && (b.current ? (window.clearTimeout(b.current), b.current = null, h(e)) : b.current = window.setTimeout(() => {
|
|
525
542
|
d(e.absolutePath), b.current = null;
|
|
526
|
-
},
|
|
543
|
+
}, co));
|
|
527
544
|
},
|
|
528
545
|
[t, e, n, h, d, l, a, i, r]
|
|
529
546
|
);
|
|
@@ -544,25 +561,25 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
544
561
|
rowHeight: b,
|
|
545
562
|
isDirOpen: N,
|
|
546
563
|
columns: x,
|
|
547
|
-
numericTemplate:
|
|
564
|
+
numericTemplate: T,
|
|
548
565
|
numericTotal: m,
|
|
549
566
|
nameWidth: y,
|
|
550
567
|
rowClassName: p,
|
|
551
568
|
selection: { onEntryClick: w, selectedPath: v, currentPath: F, mode: P = "none", selectedItems: C, onSelectionChange: g },
|
|
552
569
|
expansion: { toggleDirectory: D, onToggleDirectoryRecursive: $ },
|
|
553
|
-
visual: { iconOverrides: O, showExpandIcons: Q = !0, showDirectoryIcons: J = !0, showFileIcons:
|
|
570
|
+
visual: { iconOverrides: O, showExpandIcons: Q = !0, showDirectoryIcons: J = !0, showFileIcons: z = !0, useCanvasExpandIcons: B = !1, expandIconSize: me, typeIconSize: W, fontSize: oe, indentSize: pe, highlightStyles: V, expandIconClassName: X, expandIconStyle: xe }
|
|
554
571
|
}) => {
|
|
555
572
|
Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
|
|
556
|
-
const [be, o] = fe(!1), u = e.children !== void 0, I = u && N(e.absolutePath), E = e.absolutePath === v, ve = e.absolutePath === F,
|
|
573
|
+
const [be, o] = fe(!1), u = e.children !== void 0, I = u && N(e.absolutePath), E = e.absolutePath === v, ve = e.absolutePath === F, k = !u && !!C?.has(e.absolutePath), j = u ? void 0 : Yn(e), ee = Un({ entry: e, isDirectory: u, isExpanded: I, isItemSelected: k, selectionMode: P, onSelectionChange: g, onEntryClick: w, toggleDirectory: D, onToggleDirectoryRecursive: $ }), ye = be ? V?.hoverClassName !== void 0 ? V.hoverClassName : L.entryHover : "", Ne = (() => {
|
|
557
574
|
if (u) {
|
|
558
575
|
if (E) return V?.directorySelectedClassName !== void 0 ? V.directorySelectedClassName : L.entrySelected;
|
|
559
|
-
} else if (E ||
|
|
560
|
-
return V?.itemSelectedClassName !== void 0 ? V.itemSelectedClassName : U(E && L.entrySelected,
|
|
576
|
+
} else if (E || k)
|
|
577
|
+
return V?.itemSelectedClassName !== void 0 ? V.itemSelectedClassName : U(E && L.entrySelected, k && L.entryItemSelected);
|
|
561
578
|
return "";
|
|
562
|
-
})(), A = typeof p == "function" ? p(e) : p, Se = U("dt-grid-row cursor-pointer select-none", ye, Ne, A, e.className), Z = U(L.expandIcon, X, (E ||
|
|
579
|
+
})(), A = typeof p == "function" ? p(e) : p, Se = U("dt-grid-row cursor-pointer select-none", ye, Ne, A, e.className), Z = U(L.expandIcon, X, (E || k) && L.expandIconSelected), $e = U(L.typeIcon, (E || k) && L.typeIconSelected), se = U("dt-grid-name-label ml-1", ce.name, u && L.nameDirectory, (E || k) && L.nameSelected), te = Gn({ isDirectory: u, isExpanded: I, showExpandIcons: Q, useCanvasExpandIcons: B, expandIconSize: me }), ie = (u ? J : z) ? Vn({ entry: e, isDirectory: u, isExpanded: I, isSelected: E, isItemSelected: k, extension: j, mimeType: e.mimeType }, O, W) : null, Te = { indentLevel: t, isDirectory: u, isExpanded: I }, [Oe, ...Pe] = x, Fe = Oe?.render ? Oe.render(e, Te) : e.label ?? e.name, Re = {
|
|
563
580
|
...be ? V?.hoverStyle : {},
|
|
564
581
|
...u && E ? V?.directorySelectedStyle : {},
|
|
565
|
-
...!u && (E ||
|
|
582
|
+
...!u && (E || k) ? V?.itemSelectedStyle : {}
|
|
566
583
|
};
|
|
567
584
|
return /* @__PURE__ */ f.jsxs(
|
|
568
585
|
"div",
|
|
@@ -581,7 +598,7 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
581
598
|
"data-entry-type": u ? "directory" : "file",
|
|
582
599
|
"data-entry-expanded": u ? String(I) : void 0,
|
|
583
600
|
"data-entry-selected": E ? "true" : void 0,
|
|
584
|
-
"data-entry-item-selected":
|
|
601
|
+
"data-entry-item-selected": k ? "true" : void 0,
|
|
585
602
|
onClick: ee,
|
|
586
603
|
onMouseEnter: () => o(!0),
|
|
587
604
|
onMouseLeave: () => o(!1),
|
|
@@ -600,10 +617,10 @@ const Wr = /* @__PURE__ */ he.forwardRef(Hr), Hn = "#71829b", ce = {
|
|
|
600
617
|
children: [
|
|
601
618
|
/* @__PURE__ */ f.jsxs("div", { className: U("dt-grid-name-cell", Oe?.className), role: "gridcell", style: { width: y, paddingLeft: Math.max(0, t * pe) }, children: [
|
|
602
619
|
(Q || B) && /* @__PURE__ */ f.jsx("span", { className: Z, style: { ...xe, width: de, height: de }, children: te }),
|
|
603
|
-
(u ? J :
|
|
620
|
+
(u ? J : z) && /* @__PURE__ */ f.jsx("span", { className: $e, style: { width: W, height: W }, children: ie }),
|
|
604
621
|
/* @__PURE__ */ f.jsx("span", { className: se, style: Bn(oe), children: Fe })
|
|
605
622
|
] }),
|
|
606
|
-
Pe.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Zn(m,
|
|
623
|
+
Pe.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Zn(m, T), children: Pe.map((G) => /* @__PURE__ */ f.jsx("div", { className: U("dt-grid-cell", Jn(G.align), G.className), role: "gridcell", children: G.render ? G.render(e, Te) : null }, G.key)) }) })
|
|
607
624
|
]
|
|
608
625
|
}
|
|
609
626
|
);
|
|
@@ -627,19 +644,19 @@ const Qn = ({
|
|
|
627
644
|
nameContent: d,
|
|
628
645
|
renderCell: h
|
|
629
646
|
}) => {
|
|
630
|
-
const [, ...b] = t, N = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", x = e === "header" ? "dt-grid-header" : "dt-grid-footer",
|
|
647
|
+
const [, ...b] = t, N = e === "header" ? "dt-grid-name-header" : "dt-grid-name-footer", x = e === "header" ? "dt-grid-header" : "dt-grid-footer", T = e === "header" ? "columnheader" : "gridcell";
|
|
631
648
|
return /* @__PURE__ */ f.jsxs("div", { className: U(x, ce.gridEdge, l), role: "row", children: [
|
|
632
|
-
/* @__PURE__ */ f.jsx("div", { className: U(N, "px-1", t[0]?.className), role:
|
|
633
|
-
b.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Zn(r, n), children: b.map((m) => /* @__PURE__ */ f.jsx("div", { className: U("dt-grid-cell", Jn(m.align), m.className), role:
|
|
649
|
+
/* @__PURE__ */ f.jsx("div", { className: U(N, "px-1", t[0]?.className), role: T, style: { width: a }, children: d }),
|
|
650
|
+
b.length > 0 && /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-viewport", children: /* @__PURE__ */ f.jsx("div", { className: "dt-grid-numeric-track", style: Zn(r, n), children: b.map((m) => /* @__PURE__ */ f.jsx("div", { className: U("dt-grid-cell", Jn(m.align), m.className), role: T, children: h(m) }, m.key)) }) }),
|
|
634
651
|
/* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: i }, "aria-hidden": "true" })
|
|
635
652
|
] });
|
|
636
|
-
},
|
|
653
|
+
}, uo = ({ columns: e, className: t, ...n }) => /* @__PURE__ */ f.jsx(Qn, { kind: "header", columns: e, className: t, nameContent: e[0]?.header ?? null, renderCell: (r) => r.header ?? null, ...n }), jn = (e, t) => typeof e == "function" ? e(t) : e ?? null, fo = ({ columns: e, allEntries: t, className: n, ...r }) => /* @__PURE__ */ f.jsx(Qn, { kind: "footer", columns: e, className: n, nameContent: jn(e[0]?.footer, t), renderCell: (a) => jn(a.footer, t), ...r }), ho = 240, er = 96, tr = 12, Lt = (e, t) => {
|
|
637
654
|
const n = e?.width;
|
|
638
655
|
return typeof n == "number" && Number.isFinite(n) && n > 0 ? n : t;
|
|
639
|
-
},
|
|
640
|
-
const r = Lt(t[0],
|
|
656
|
+
}, mo = (e) => e.slice(1).map((t) => `${Lt(t, er)}px`).join(" "), po = ({ measuredWidth: e, columns: t, scrollBarWidth: n = tr }) => {
|
|
657
|
+
const r = Lt(t[0], ho), a = t.slice(1).reduce((h, b) => h + Lt(b, er), 0), i = Number.isFinite(e) && e > 0 ? e : 0, l = Math.max(0, i - r - Math.max(0, n)), d = Math.max(0, a - l);
|
|
641
658
|
return { nameWidth: r, numericTotal: a, numericVisible: l, maxHScroll: d };
|
|
642
|
-
}, jt = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e,
|
|
659
|
+
}, jt = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e, yo = (e) => {
|
|
643
660
|
const t = [], n = (r) => {
|
|
644
661
|
for (const a of r)
|
|
645
662
|
t.push(a), a.children && a.children.length > 0 && n(a.children);
|
|
@@ -654,10 +671,10 @@ const Qn = ({
|
|
|
654
671
|
entryKindDirectory: "ディレクトリ",
|
|
655
672
|
entryKindFile: "ファイル"
|
|
656
673
|
})
|
|
657
|
-
}),
|
|
658
|
-
en: Object.freeze({ ...
|
|
659
|
-
ja: Object.freeze({ ...
|
|
660
|
-
}), Ln = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e,
|
|
674
|
+
}), go = Object.freeze({
|
|
675
|
+
en: Object.freeze({ ...kn.en, ...Dt.en }),
|
|
676
|
+
ja: Object.freeze({ ...kn.ja, ...Dt.ja })
|
|
677
|
+
}), Ln = (e) => typeof e == "string" ? JSON.stringify(e) : e === null ? "null" : typeof e, bo = (e) => {
|
|
661
678
|
const t = {};
|
|
662
679
|
let n = !1;
|
|
663
680
|
for (const r of pt) {
|
|
@@ -665,10 +682,10 @@ const Qn = ({
|
|
|
665
682
|
a !== void 0 && (t[r] = a, n = !0);
|
|
666
683
|
}
|
|
667
684
|
return n ? t : void 0;
|
|
668
|
-
},
|
|
669
|
-
const n =
|
|
685
|
+
}, vo = (e, t) => {
|
|
686
|
+
const n = zn(e);
|
|
670
687
|
if (t === void 0)
|
|
671
|
-
return
|
|
688
|
+
return go[n];
|
|
672
689
|
if (t === null || typeof t != "object")
|
|
673
690
|
throw new RangeError(`[directory-tree] labels must be an object; got ${Ln(t)}`);
|
|
674
691
|
const r = Object.getPrototypeOf(t);
|
|
@@ -677,7 +694,7 @@ const Qn = ({
|
|
|
677
694
|
for (const l of Object.keys(t))
|
|
678
695
|
if (!An.includes(l))
|
|
679
696
|
throw new RangeError(`[directory-tree] labels.${l} is not a known label key; expected one of ${An.join(", ")}`);
|
|
680
|
-
const i = { ...br(n,
|
|
697
|
+
const i = { ...br(n, bo(t)), ...Dt[n] };
|
|
681
698
|
for (const l of nr) {
|
|
682
699
|
const d = Object.hasOwn(t, l) ? t[l] : void 0;
|
|
683
700
|
if (d !== void 0) {
|
|
@@ -687,12 +704,12 @@ const Qn = ({
|
|
|
687
704
|
}
|
|
688
705
|
}
|
|
689
706
|
return Object.freeze(i);
|
|
690
|
-
},
|
|
707
|
+
}, So = (e) => {
|
|
691
708
|
const t = {};
|
|
692
709
|
for (const n of pt)
|
|
693
710
|
t[n] = e[n];
|
|
694
711
|
return Object.freeze(t);
|
|
695
|
-
},
|
|
712
|
+
}, wo = () => {
|
|
696
713
|
let e = null;
|
|
697
714
|
return {
|
|
698
715
|
mark: (t) => {
|
|
@@ -707,23 +724,23 @@ const Qn = ({
|
|
|
707
724
|
if (typeof t != "number" || !Number.isFinite(t) || t <= 0)
|
|
708
725
|
throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${et(t)}.`);
|
|
709
726
|
return t;
|
|
710
|
-
},
|
|
727
|
+
}, Eo = (e) => {
|
|
711
728
|
if (typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) && e > 0)
|
|
712
729
|
return e;
|
|
713
730
|
throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${et(e)}.`);
|
|
714
|
-
},
|
|
715
|
-
indentSize: e === void 0 ?
|
|
716
|
-
typeIconSize: t === void 0 ?
|
|
717
|
-
fontSize: n === void 0 ? void 0 :
|
|
718
|
-
}),
|
|
731
|
+
}, xo = ({ indentSize: e, typeIconSize: t, fontSize: n }) => ({
|
|
732
|
+
indentSize: e === void 0 ? Gr : $t("indentSize", e),
|
|
733
|
+
typeIconSize: t === void 0 ? Xr : $t("typeIconSize", t),
|
|
734
|
+
fontSize: n === void 0 ? void 0 : Eo(n)
|
|
735
|
+
}), Ro = ({ indentSize: e, removeRootIndent: t, hasExpandBox: n }) => t ? Math.max(0, e - (n ? de : 0)) : 0, Io = (e, t, n) => {
|
|
719
736
|
if (typeof e != "function")
|
|
720
737
|
return $t("itemHeight", e);
|
|
721
738
|
const r = e(t, n);
|
|
722
739
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0)
|
|
723
740
|
throw new RangeError(`[directory-tree] visual.itemHeight returned ${et(r)} for ${JSON.stringify(t.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);
|
|
724
741
|
return r;
|
|
725
|
-
},
|
|
726
|
-
const r = t === void 0 ?
|
|
742
|
+
}, ko = (e, t, n) => {
|
|
743
|
+
const r = t === void 0 ? Vr : t;
|
|
727
744
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0 || r > de)
|
|
728
745
|
throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${de} (the expand box, px) while tree lines are drawn; got ${et(r)}.`);
|
|
729
746
|
const { indentSize: a, typeIconSize: i } = e, l = r / 2, d = de + i - r / 2;
|
|
@@ -732,7 +749,7 @@ const Qn = ({
|
|
|
732
749
|
`[directory-tree] visual.indentSize ${et(a)} does not fit the tree lines: with typeIconSize ${i} and an expand glyph of ${r} px it must be from ${l} (half the glyph) to ${d} (the ${de} px expand box + typeIconSize − half the glyph).`
|
|
733
750
|
);
|
|
734
751
|
return { indentSize: a, typeIconSize: i, glyphSize: r, originX: n };
|
|
735
|
-
},
|
|
752
|
+
}, No = ({ indentSize: e, typeIconSize: t, glyphSize: n }) => Math.min(Math.max(de + t / 2 - e, n / 2), de - n / 2), To = (e, t) => {
|
|
736
753
|
const n = e.length - 1;
|
|
737
754
|
if (n <= 0) return 0;
|
|
738
755
|
let r = 0, a = n - 1, i = 0;
|
|
@@ -741,22 +758,22 @@ const Qn = ({
|
|
|
741
758
|
e[l] <= t ? (i = l, r = l + 1) : a = l - 1;
|
|
742
759
|
}
|
|
743
760
|
return i;
|
|
744
|
-
},
|
|
761
|
+
}, Po = (e, t, n) => {
|
|
745
762
|
if (n <= 0 || e.length === 0 || t.length !== e.length + 1)
|
|
746
763
|
return null;
|
|
747
|
-
const r =
|
|
764
|
+
const r = To(t, n), a = e[r];
|
|
748
765
|
return a ? {
|
|
749
766
|
path: a.entry.absolutePath,
|
|
750
767
|
offsetInViewport: n - t[r]
|
|
751
768
|
} : null;
|
|
752
|
-
},
|
|
769
|
+
}, _o = (e, t, n) => {
|
|
753
770
|
if (t.length === 0 || n.length !== t.length + 1)
|
|
754
771
|
return null;
|
|
755
772
|
for (let r = 0; r < t.length; r++)
|
|
756
773
|
if (t[r].entry.absolutePath === e.path)
|
|
757
774
|
return Math.max(0, n[r] + e.offsetInViewport);
|
|
758
775
|
return null;
|
|
759
|
-
},
|
|
776
|
+
}, Co = (e, t, n) => {
|
|
760
777
|
const r = [];
|
|
761
778
|
for (let a = t; a < n; a++) {
|
|
762
779
|
const i = e[a];
|
|
@@ -765,7 +782,7 @@ const Qn = ({
|
|
|
765
782
|
r.push(l);
|
|
766
783
|
}
|
|
767
784
|
return r;
|
|
768
|
-
},
|
|
785
|
+
}, Oo = (e, t, n) => {
|
|
769
786
|
const r = [];
|
|
770
787
|
for (let a = t; a < n; a++) {
|
|
771
788
|
const i = e[a];
|
|
@@ -774,27 +791,27 @@ const Qn = ({
|
|
|
774
791
|
r.push(l);
|
|
775
792
|
}
|
|
776
793
|
return r;
|
|
777
|
-
},
|
|
794
|
+
}, jo = (e, t, n, r) => {
|
|
778
795
|
const a = Math.max(1, Math.floor(t * r)), i = Math.max(1, Math.floor(n * r));
|
|
779
796
|
(e.width !== a || e.height !== i) && (e.width = a, e.height = i);
|
|
780
797
|
const l = e.style;
|
|
781
798
|
l.width !== `${t}px` && (l.width = `${t}px`), l.height !== `${n}px` && (l.height = `${n}px`);
|
|
782
|
-
},
|
|
799
|
+
}, Ao = (e, t, n) => {
|
|
783
800
|
e.lineWidth = n, e.beginPath();
|
|
784
801
|
for (const r of t)
|
|
785
802
|
e.moveTo(r.x1, r.y1), e.lineTo(r.x2, r.y2);
|
|
786
803
|
e.stroke();
|
|
787
|
-
},
|
|
804
|
+
}, Lo = (e, t, n, r) => {
|
|
788
805
|
if (t.length === 0)
|
|
789
806
|
return;
|
|
790
807
|
const a = e.strokeStyle, i = e.lineWidth, l = e.lineCap, d = e.lineJoin;
|
|
791
808
|
e.strokeStyle = n, e.lineCap = "round", e.lineJoin = "round";
|
|
792
809
|
for (const h of t) {
|
|
793
|
-
const b = r ?? h.size, N = Math.max(0, b / 2), x = Math.max(1, Math.round(b * 0.08)),
|
|
794
|
-
e.lineWidth = x, e.beginPath(), e.arc(h.centerX, h.centerY, Math.max(0, N - x * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth =
|
|
810
|
+
const b = r ?? h.size, N = Math.max(0, b / 2), x = Math.max(1, Math.round(b * 0.08)), T = Math.max(1, Math.round(b * 0.14)), m = Math.max(0, N - x * 0.8), y = Math.max(0, m * 0.55);
|
|
811
|
+
e.lineWidth = x, e.beginPath(), e.arc(h.centerX, h.centerY, Math.max(0, N - x * 0.3), 0, Math.PI * 2), e.stroke(), e.lineWidth = T, e.beginPath(), e.moveTo(h.centerX - y, h.centerY), e.lineTo(h.centerX + y, h.centerY), e.stroke(), h.isExpanded || (e.beginPath(), e.moveTo(h.centerX, h.centerY - y), e.lineTo(h.centerX, h.centerY + y), e.stroke());
|
|
795
812
|
}
|
|
796
813
|
e.strokeStyle = a, e.lineWidth = i, e.lineCap = l, e.lineJoin = d;
|
|
797
|
-
}, rr = Ft(({ segmentsByItem: e, glyphsByItem: t, itemHeight: n, width: r, viewportHeight: a, scrollPosition: i, color: l = Hn, strokeWidth: d = 1, renderStartIndex: h, renderEndIndex: b, lookaheadEndIndex: N, devicePixelRatio: x, expandGlyphColor:
|
|
814
|
+
}, rr = Ft(({ segmentsByItem: e, glyphsByItem: t, itemHeight: n, width: r, viewportHeight: a, scrollPosition: i, color: l = Hn, strokeWidth: d = 1, renderStartIndex: h, renderEndIndex: b, lookaheadEndIndex: N, devicePixelRatio: x, expandGlyphColor: T, expandGlyphSize: m }) => {
|
|
798
815
|
const y = Y(null), p = Y(null), w = Y({
|
|
799
816
|
segmentsByItem: e,
|
|
800
817
|
glyphsByItem: t,
|
|
@@ -808,7 +825,7 @@ const Qn = ({
|
|
|
808
825
|
renderEndIndex: b,
|
|
809
826
|
lookaheadEndIndex: N,
|
|
810
827
|
devicePixelRatio: x,
|
|
811
|
-
expandGlyphColor:
|
|
828
|
+
expandGlyphColor: T,
|
|
812
829
|
expandGlyphSize: m
|
|
813
830
|
}), v = _(() => {
|
|
814
831
|
p.current = null;
|
|
@@ -824,21 +841,21 @@ const Qn = ({
|
|
|
824
841
|
return;
|
|
825
842
|
}
|
|
826
843
|
const D = Number.isFinite(g.devicePixelRatio ?? NaN) ? g.devicePixelRatio : typeof window < "u" && window.devicePixelRatio || 1;
|
|
827
|
-
|
|
844
|
+
jo(P, g.width, g.viewportHeight, D);
|
|
828
845
|
const $ = g.segmentsByItem.length, O = typeof g.renderStartIndex == "number" && Number.isFinite(g.renderStartIndex) ? Math.max(0, Math.floor(g.renderStartIndex)) : Math.max(0, Math.floor(g.scrollPosition / g.itemHeight)), Q = Math.min($, Math.ceil((g.scrollPosition + g.viewportHeight) / g.itemHeight)), J = (() => {
|
|
829
846
|
if (typeof g.renderEndIndex == "number" && Number.isFinite(g.renderEndIndex)) {
|
|
830
847
|
const W = Math.floor(g.renderEndIndex);
|
|
831
848
|
return Math.max(Math.min($, W + 1), O);
|
|
832
849
|
}
|
|
833
850
|
return Math.max(Q, O);
|
|
834
|
-
})(),
|
|
851
|
+
})(), z = (() => {
|
|
835
852
|
if (typeof g.lookaheadEndIndex == "number" && Number.isFinite(g.lookaheadEndIndex)) {
|
|
836
853
|
const W = Math.floor(g.lookaheadEndIndex), oe = Math.min($, W + 1);
|
|
837
854
|
return Math.max(oe, J);
|
|
838
855
|
}
|
|
839
856
|
return Math.max(Q, J);
|
|
840
|
-
})(), B =
|
|
841
|
-
C.save(), C.scale(D, D), C.clearRect(0, 0, g.width, g.viewportHeight), C.translate(0, -g.scrollPosition), C.strokeStyle = g.color,
|
|
857
|
+
})(), B = Co(g.segmentsByItem, O, z), me = Oo(g.glyphsByItem, O, z);
|
|
858
|
+
C.save(), C.scale(D, D), C.clearRect(0, 0, g.width, g.viewportHeight), C.translate(0, -g.scrollPosition), C.strokeStyle = g.color, Ao(C, B, g.strokeWidth), Lo(C, me, g.expandGlyphColor ?? g.color, g.expandGlyphSize), C.restore();
|
|
842
859
|
}, []), F = _(() => {
|
|
843
860
|
p.current === null && (p.current = window.requestAnimationFrame(v));
|
|
844
861
|
}, [v]);
|
|
@@ -856,22 +873,22 @@ const Qn = ({
|
|
|
856
873
|
renderEndIndex: b,
|
|
857
874
|
lookaheadEndIndex: N,
|
|
858
875
|
devicePixelRatio: x,
|
|
859
|
-
expandGlyphColor:
|
|
876
|
+
expandGlyphColor: T,
|
|
860
877
|
expandGlyphSize: m
|
|
861
878
|
}, F();
|
|
862
|
-
}, [e, t, n, r, a, i, l, d, h, b, N, x,
|
|
879
|
+
}, [e, t, n, r, a, i, l, d, h, b, N, x, T, m, F]), De(() => () => {
|
|
863
880
|
p.current !== null && (window.cancelAnimationFrame(p.current), p.current = null);
|
|
864
881
|
}, []), /* @__PURE__ */ f.jsx("canvas", { ref: y, className: "pointer-events-none absolute top-0 left-0 z-0" });
|
|
865
882
|
});
|
|
866
883
|
rr.displayName = "TreeLineCanvas";
|
|
867
|
-
const
|
|
884
|
+
const Do = (e) => {
|
|
868
885
|
const t = /* @__PURE__ */ new Map();
|
|
869
886
|
for (let n = 0; n < e.length; n++) {
|
|
870
887
|
const r = e[n].entry.absolutePath;
|
|
871
888
|
t.has(r) || t.set(r, n);
|
|
872
889
|
}
|
|
873
890
|
return t;
|
|
874
|
-
}, Dn = (e, t) => e.selectedPath === t ? e : { selectedPath: t, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor },
|
|
891
|
+
}, Dn = (e, t) => e.selectedPath === t ? e : { selectedPath: t, selectionGeneration: e.selectionGeneration + 1, anchor: e.anchor }, $o = (e, t) => ({ ...e, anchor: { path: t, selectionGeneration: e.selectionGeneration, focused: !0 } }), Fo = (e, t) => {
|
|
875
892
|
const { anchor: n, selectionGeneration: r, selectedPath: a } = t;
|
|
876
893
|
if (n !== null && (n.focused || n.selectionGeneration === r)) {
|
|
877
894
|
const i = e.get(n.path);
|
|
@@ -884,13 +901,13 @@ const Lo = (e) => {
|
|
|
884
901
|
return i;
|
|
885
902
|
}
|
|
886
903
|
return 0;
|
|
887
|
-
},
|
|
904
|
+
}, Mo = {
|
|
888
905
|
msOverflowStyle: "none",
|
|
889
906
|
scrollbarWidth: "none"
|
|
890
907
|
}, zo = () => {
|
|
891
908
|
let e = document.getElementById("directory-tree-webkit-scrollbar-hide");
|
|
892
909
|
e || (e = document.createElement("style"), e.id = "directory-tree-webkit-scrollbar-hide", e.textContent = ".directory-tree-container::-webkit-scrollbar { display: none; }", document.head.appendChild(e));
|
|
893
|
-
},
|
|
910
|
+
}, Ho = (e) => {
|
|
894
911
|
const t = Y(null), n = t.current;
|
|
895
912
|
return n !== null && pt.every((r) => n[r] === e[r]) ? n : (t.current = e, e);
|
|
896
913
|
}, $n = /* @__PURE__ */ new Set(["top", "bottom", "center", "nearest"]), Fn = (e) => {
|
|
@@ -900,7 +917,7 @@ const Lo = (e) => {
|
|
|
900
917
|
if (!$n.has(t))
|
|
901
918
|
throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(t)}; expected one of ${[...$n].join(", ")}.`);
|
|
902
919
|
return t;
|
|
903
|
-
},
|
|
920
|
+
}, Wo = {
|
|
904
921
|
position: "absolute",
|
|
905
922
|
width: 1,
|
|
906
923
|
height: 1,
|
|
@@ -910,15 +927,15 @@ const Lo = (e) => {
|
|
|
910
927
|
overflow: "hidden",
|
|
911
928
|
clipPath: "inset(50%)",
|
|
912
929
|
whiteSpace: "nowrap"
|
|
913
|
-
},
|
|
930
|
+
}, Bo = (e, t, n, r, a) => {
|
|
914
931
|
const i = [], l = [];
|
|
915
932
|
let d = 0;
|
|
916
933
|
const h = (b, N, x) => {
|
|
917
|
-
const
|
|
918
|
-
for (let m = 0; m <
|
|
919
|
-
const y =
|
|
934
|
+
const T = a ? [...b].sort(a) : b;
|
|
935
|
+
for (let m = 0; m < T.length; m++) {
|
|
936
|
+
const y = T[m], p = m === T.length - 1, w = [...x, p], v = y.children !== void 0, F = v && t(y.absolutePath, y.relativePath);
|
|
920
937
|
let P = N, C = x;
|
|
921
|
-
r && (P = N - 1, C = x.slice(1)), i.push({ entry: y, indentLevel: P, depth: N, positionInSet: m + 1, setSize:
|
|
938
|
+
r && (P = N - 1, C = x.slice(1)), i.push({ entry: y, indentLevel: P, depth: N, positionInSet: m + 1, setSize: T.length }), n && (P > d && (d = P), l.push({
|
|
922
939
|
id: y.absolutePath,
|
|
923
940
|
name: y.name,
|
|
924
941
|
absolutePath: y.absolutePath,
|
|
@@ -932,7 +949,7 @@ const Lo = (e) => {
|
|
|
932
949
|
}
|
|
933
950
|
};
|
|
934
951
|
return h(e, 0, []), { flatItems: i, lineItems: l, maxIndent: d };
|
|
935
|
-
},
|
|
952
|
+
}, Mn = (e, t) => {
|
|
936
953
|
const n = e.length - 1;
|
|
937
954
|
if (n <= 0) return 0;
|
|
938
955
|
let r = 0, a = n - 1, i = 0;
|
|
@@ -941,13 +958,13 @@ const Lo = (e) => {
|
|
|
941
958
|
e[l] <= t ? (i = l, r = l + 1) : a = l - 1;
|
|
942
959
|
}
|
|
943
960
|
return i;
|
|
944
|
-
},
|
|
945
|
-
const l = r?.renderStart ?? Math.max(0,
|
|
961
|
+
}, Yo = (e, t, n, r, a, i) => {
|
|
962
|
+
const l = r?.renderStart ?? Math.max(0, Mn(i, a)), d = t > 0 ? Mn(i, a + t) + n : l + n, h = e > 0 ? Math.min(e - 1, Math.max(l, d)) : l, b = r?.renderEnd ?? h, N = e > 0 ? Math.min(e - 1, b + n) : b;
|
|
946
963
|
return { renderStart: l, renderEnd: b, lookaheadEnd: N };
|
|
947
|
-
},
|
|
964
|
+
}, Go = (e, t, n, r) => {
|
|
948
965
|
if (e.length === 0)
|
|
949
966
|
return { segmentsByItem: [], glyphsByItem: [] };
|
|
950
|
-
const { indentSize: a, typeIconSize: i, glyphSize: l, originX: d } = r, h = Array.from({ length: e.length }, () => []), b = Array.from({ length: e.length }, () => []), N = d +
|
|
967
|
+
const { indentSize: a, typeIconSize: i, glyphSize: l, originX: d } = r, h = Array.from({ length: e.length }, () => []), b = Array.from({ length: e.length }, () => []), N = d + No(r), x = (m) => m * a + N, T = l / 2 + 2;
|
|
951
968
|
for (let m = 0; m < e.length; m++) {
|
|
952
969
|
const y = e[m], p = t[m] ?? 0, w = n[m] ?? 0, v = w + p / 2, F = e[m + 1], P = v + i / 2, C = w + p, g = F !== void 0 && F.indentLevel === y.indentLevel + 1 && P < C ? { key: `${y.id}-connector-children`, x1: x(F.indentLevel), y1: P, x2: x(F.indentLevel), y2: C, itemIndex: m } : null;
|
|
953
970
|
if (y.hideLines) {
|
|
@@ -959,22 +976,22 @@ const Lo = (e) => {
|
|
|
959
976
|
if (y.ancestorIsLast[O] ?? !1)
|
|
960
977
|
continue;
|
|
961
978
|
let J = !1;
|
|
962
|
-
for (let
|
|
963
|
-
const B = e[
|
|
979
|
+
for (let z = m; z < e.length; z++) {
|
|
980
|
+
const B = e[z];
|
|
964
981
|
if (B.indentLevel > O && B.ancestorIsLast.length > O && !B.ancestorIsLast[O]) {
|
|
965
982
|
J = !0;
|
|
966
983
|
break;
|
|
967
984
|
}
|
|
968
|
-
if (
|
|
985
|
+
if (z > m && B.indentLevel === O)
|
|
969
986
|
break;
|
|
970
987
|
}
|
|
971
988
|
if (J) {
|
|
972
|
-
const
|
|
989
|
+
const z = x(O);
|
|
973
990
|
D.push({
|
|
974
991
|
key: `${y.id}-ancestor-${O}`,
|
|
975
|
-
x1:
|
|
992
|
+
x1: z,
|
|
976
993
|
y1: w,
|
|
977
|
-
x2:
|
|
994
|
+
x2: z,
|
|
978
995
|
y2: w + p,
|
|
979
996
|
itemIndex: m
|
|
980
997
|
});
|
|
@@ -986,7 +1003,7 @@ const Lo = (e) => {
|
|
|
986
1003
|
x1: $,
|
|
987
1004
|
y1: w,
|
|
988
1005
|
x2: $,
|
|
989
|
-
y2: y.isDirectory ? v -
|
|
1006
|
+
y2: y.isDirectory ? v - T : v,
|
|
990
1007
|
itemIndex: m
|
|
991
1008
|
}), !y.isDirectory && y.isLastChild && D.push({
|
|
992
1009
|
key: `${y.id}-connector-horizontal`,
|
|
@@ -998,7 +1015,7 @@ const Lo = (e) => {
|
|
|
998
1015
|
}), y.isLastChild || (y.isDirectory ? D.push({
|
|
999
1016
|
key: `${y.id}-connector-bottom`,
|
|
1000
1017
|
x1: $,
|
|
1001
|
-
y1: v +
|
|
1018
|
+
y1: v + T,
|
|
1002
1019
|
x2: $,
|
|
1003
1020
|
y2: w + p,
|
|
1004
1021
|
itemIndex: m
|
|
@@ -1035,7 +1052,7 @@ const Lo = (e) => {
|
|
|
1035
1052
|
registerRowRef: b,
|
|
1036
1053
|
onNavigationKeyDown: N,
|
|
1037
1054
|
onRowFocus: x,
|
|
1038
|
-
onRowBlur:
|
|
1055
|
+
onRowBlur: T,
|
|
1039
1056
|
rowHeight: m,
|
|
1040
1057
|
entryKindDirectory: y,
|
|
1041
1058
|
entryKindFile: p,
|
|
@@ -1045,7 +1062,7 @@ const Lo = (e) => {
|
|
|
1045
1062
|
visual: {
|
|
1046
1063
|
iconOverrides: Q,
|
|
1047
1064
|
showExpandIcons: J = !0,
|
|
1048
|
-
showDirectoryIcons:
|
|
1065
|
+
showDirectoryIcons: z = !0,
|
|
1049
1066
|
showFileIcons: B = !0,
|
|
1050
1067
|
useCanvasExpandIcons: me = !1,
|
|
1051
1068
|
expandIconSize: W,
|
|
@@ -1060,20 +1077,20 @@ const Lo = (e) => {
|
|
|
1060
1077
|
directoryNameClassName: I,
|
|
1061
1078
|
directoryNameStyle: E,
|
|
1062
1079
|
fileNameClassName: ve,
|
|
1063
|
-
fileNameStyle:
|
|
1080
|
+
fileNameStyle: k,
|
|
1064
1081
|
expandIconClassName: j,
|
|
1065
1082
|
expandIconStyle: ee
|
|
1066
1083
|
}
|
|
1067
1084
|
}) => {
|
|
1068
1085
|
Ge(e.style, { option: "entry.style", absolutePath: e.absolutePath });
|
|
1069
|
-
const [ye, Ne] = fe(!1), A = e.children !== void 0, Se = A && w(e.absolutePath), Z = e.absolutePath === C, $e = e.absolutePath === g, se = !A && $?.has(e.absolutePath), te = _((ne) => b(d, ne), [b, d]), ie = A ? void 0 : Yn(e),
|
|
1086
|
+
const [ye, Ne] = fe(!1), A = e.children !== void 0, Se = A && w(e.absolutePath), Z = e.absolutePath === C, $e = e.absolutePath === g, se = !A && $?.has(e.absolutePath), te = _((ne) => b(d, ne), [b, d]), ie = A ? void 0 : Yn(e), Te = Un({ entry: e, isDirectory: A, isExpanded: Se, isItemSelected: !!se, selectionMode: D, onSelectionChange: O, onEntryClick: P, toggleDirectory: v, onToggleDirectoryRecursive: F }), Oe = ye ? X?.hoverClassName !== void 0 ? X.hoverClassName : L.entryHover : "", Pe = (() => {
|
|
1070
1087
|
if (A) {
|
|
1071
1088
|
if (Z)
|
|
1072
1089
|
return X?.directorySelectedClassName !== void 0 ? X.directorySelectedClassName : L.entrySelected;
|
|
1073
1090
|
} else if (Z || se)
|
|
1074
1091
|
return X?.itemSelectedClassName !== void 0 ? X.itemSelectedClassName : U(Z && L.entrySelected, se && L.entryItemSelected);
|
|
1075
1092
|
return "";
|
|
1076
|
-
})(), Fe = U(L.entry, Oe, Pe, xe, e.className), Re = U(L.expandIcon, j, (Z || se) && L.expandIconSelected), G = U(L.typeIcon, (Z || se) && L.typeIconSelected), Ve = U(L.name, o, A && L.nameDirectory, A && I, !A && ve, (Z || se) && L.nameSelected), tt = Gn({ isDirectory: A, isExpanded: Se, showExpandIcons: J && t >= 0, useCanvasExpandIcons: me, expandIconSize: W }), yt = (A ?
|
|
1093
|
+
})(), Fe = U(L.entry, Oe, Pe, xe, e.className), Re = U(L.expandIcon, j, (Z || se) && L.expandIconSelected), G = U(L.typeIcon, (Z || se) && L.typeIconSelected), Ve = U(L.name, o, A && L.nameDirectory, A && I, !A && ve, (Z || se) && L.nameSelected), tt = Gn({ isDirectory: A, isExpanded: Se, showExpandIcons: J && t >= 0, useCanvasExpandIcons: me, expandIconSize: W }), yt = (A ? z : B) ? Vn({ entry: e, isDirectory: A, isExpanded: Se, isSelected: Z, isItemSelected: !!se, extension: ie, mimeType: e.mimeType }, Q, oe) : null, Xe = {
|
|
1077
1094
|
...ye ? X?.hoverStyle : {},
|
|
1078
1095
|
...A && Z ? X?.directorySelectedStyle : {},
|
|
1079
1096
|
...!A && (Z || se) ? X?.itemSelectedStyle : {}
|
|
@@ -1099,15 +1116,15 @@ const Lo = (e) => {
|
|
|
1099
1116
|
"data-entry-expanded": A ? String(Se) : void 0,
|
|
1100
1117
|
"data-entry-selected": Z ? "true" : void 0,
|
|
1101
1118
|
"data-entry-item-selected": se ? "true" : void 0,
|
|
1102
|
-
onClick:
|
|
1119
|
+
onClick: Te,
|
|
1103
1120
|
onMouseEnter: () => Ne(!0),
|
|
1104
1121
|
onMouseLeave: () => Ne(!1),
|
|
1105
1122
|
onFocus: (ne) => x(d, e.absolutePath, ne.currentTarget),
|
|
1106
|
-
onBlur: (ne) =>
|
|
1123
|
+
onBlur: (ne) => T(e.absolutePath, ne.currentTarget),
|
|
1107
1124
|
ref: te,
|
|
1108
1125
|
onKeyDown: (ne) => {
|
|
1109
1126
|
if (ne.key === "Enter" || ne.key === " ") {
|
|
1110
|
-
ne.preventDefault(), ne.repeat ||
|
|
1127
|
+
ne.preventDefault(), ne.repeat || Te(ne);
|
|
1111
1128
|
return;
|
|
1112
1129
|
}
|
|
1113
1130
|
N(ne, d);
|
|
@@ -1123,7 +1140,7 @@ const Lo = (e) => {
|
|
|
1123
1140
|
"aria-label": `${e.name} (${A ? y : p})`,
|
|
1124
1141
|
children: [
|
|
1125
1142
|
(J || me) && /* @__PURE__ */ f.jsx("span", { className: Re, style: { ...ee, width: de, height: de }, children: tt }),
|
|
1126
|
-
(A ?
|
|
1143
|
+
(A ? z : B) && /* @__PURE__ */ f.jsx("span", { className: G, style: nt, children: yt }),
|
|
1127
1144
|
/* @__PURE__ */ f.jsx(
|
|
1128
1145
|
"span",
|
|
1129
1146
|
{
|
|
@@ -1131,7 +1148,7 @@ const Lo = (e) => {
|
|
|
1131
1148
|
style: {
|
|
1132
1149
|
...rt,
|
|
1133
1150
|
...u,
|
|
1134
|
-
...A ? E :
|
|
1151
|
+
...A ? E : k
|
|
1135
1152
|
},
|
|
1136
1153
|
"data-entry-type": A ? "directory" : "file",
|
|
1137
1154
|
"data-entry-role": "name",
|
|
@@ -1157,10 +1174,10 @@ const sr = (e) => {
|
|
|
1157
1174
|
for (const n of e.children)
|
|
1158
1175
|
n.type === "directory" && (t.push(n.absolutePath), t.push(...sr(n)));
|
|
1159
1176
|
return t;
|
|
1160
|
-
},
|
|
1177
|
+
}, Zo = ({
|
|
1161
1178
|
entries: e,
|
|
1162
1179
|
expansion: { toggle: t, isExpanded: n, expandMultiple: r, collapseMultiple: a, isPending: i, alwaysExpanded: l = !1, doubleClickAction: d = "recursive" },
|
|
1163
|
-
selection: { onEntryClick: h, selectedPath: b, currentPath: N, mode: x = "none", selectedItems:
|
|
1180
|
+
selection: { onEntryClick: h, selectedPath: b, currentPath: N, mode: x = "none", selectedItems: T, onSelectionChange: m },
|
|
1164
1181
|
visual: {
|
|
1165
1182
|
className: y,
|
|
1166
1183
|
style: p,
|
|
@@ -1175,7 +1192,7 @@ const sr = (e) => {
|
|
|
1175
1192
|
expandIconSize: O,
|
|
1176
1193
|
typeIconSize: Q,
|
|
1177
1194
|
fontSize: J,
|
|
1178
|
-
indentSize:
|
|
1195
|
+
indentSize: z,
|
|
1179
1196
|
itemHeight: B = Ot,
|
|
1180
1197
|
removeRootIndent: me = !1,
|
|
1181
1198
|
highlightStyles: W,
|
|
@@ -1191,26 +1208,26 @@ const sr = (e) => {
|
|
|
1191
1208
|
expandIconStyle: E
|
|
1192
1209
|
} = {},
|
|
1193
1210
|
virtualScroll: ve,
|
|
1194
|
-
grid:
|
|
1211
|
+
grid: k,
|
|
1195
1212
|
sort: j,
|
|
1196
1213
|
locale: ee,
|
|
1197
1214
|
labels: ye,
|
|
1198
1215
|
ref: Ne
|
|
1199
1216
|
}) => {
|
|
1200
|
-
const A =
|
|
1201
|
-
|
|
1202
|
-
Ge(pe, { option: "visual.entryStyle" }), Ge(W?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), Ge(W?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), Ge(W?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }),
|
|
1217
|
+
const A = zn(ee), Se = M(() => vo(ee, ye), [ee, ye]), Z = Ho(So(Se)), { entryKindDirectory: $e, entryKindFile: se } = Se, te = M(() => xo({ indentSize: z, typeIconSize: Q, fontSize: J }), [z, Q, J]);
|
|
1218
|
+
M(() => {
|
|
1219
|
+
Ge(pe, { option: "visual.entryStyle" }), Ge(W?.hoverStyle, { option: "visual.highlightStyles.hoverStyle" }), Ge(W?.directorySelectedStyle, { option: "visual.highlightStyles.directorySelectedStyle" }), Ge(W?.itemSelectedStyle, { option: "visual.highlightStyles.itemSelectedStyle" }), lo(E, { option: "visual.expandIconStyle" });
|
|
1203
1220
|
}, [pe, W, E]);
|
|
1204
|
-
const ie =
|
|
1221
|
+
const ie = k !== void 0, [Te, Oe] = fe(!1), Pe = Y(null), Fe = Y(null), Re = Y(null), [G, Ve] = fe(0), [tt, yt] = fe(0), [Xe, Ke] = fe(0), [nt, rt] = fe(null), {
|
|
1205
1222
|
overscanCount: we = 15,
|
|
1206
1223
|
className: ne,
|
|
1207
|
-
background:
|
|
1224
|
+
background: zt,
|
|
1208
1225
|
onScroll: Ht,
|
|
1209
1226
|
onRangeChange: Wt,
|
|
1210
1227
|
onScrollAdjust: Bt,
|
|
1211
1228
|
liveRegion: Yt,
|
|
1212
1229
|
initialScrollIndex: Gt,
|
|
1213
|
-
initialScrollOffset:
|
|
1230
|
+
initialScrollOffset: Me,
|
|
1214
1231
|
initialScrollAnchor: Vt,
|
|
1215
1232
|
callbackThrottleMs: Xt = 5,
|
|
1216
1233
|
contentInsets: Kt,
|
|
@@ -1223,7 +1240,7 @@ const sr = (e) => {
|
|
|
1223
1240
|
// 素通しの pass-through。型で受け付けているものは実際に転送する
|
|
1224
1241
|
testId: qt,
|
|
1225
1242
|
contentProps: bt
|
|
1226
|
-
} = ve ?? {}, Qt =
|
|
1243
|
+
} = ve ?? {}, Qt = M(
|
|
1227
1244
|
() => ie ? { ...bt, role: "rowgroup" } : {
|
|
1228
1245
|
...bt,
|
|
1229
1246
|
role: "tree",
|
|
@@ -1233,7 +1250,7 @@ const sr = (e) => {
|
|
|
1233
1250
|
"aria-busy": i ? !0 : void 0
|
|
1234
1251
|
},
|
|
1235
1252
|
[ie, bt, w, v, x, i]
|
|
1236
|
-
), en =
|
|
1253
|
+
), en = M(() => ({ ...Jt, enableKeyboardNavigation: !1 }), [Jt]), [ot, tn] = fe(typeof Me == "number" ? Me : 0), vt = Y(typeof Me == "number" ? Me : 0), nn = _(
|
|
1237
1254
|
(s, c) => {
|
|
1238
1255
|
vt.current = s, tn(s), Ht?.(s, c);
|
|
1239
1256
|
},
|
|
@@ -1265,9 +1282,9 @@ const sr = (e) => {
|
|
|
1265
1282
|
const R = new ResizeObserver(S);
|
|
1266
1283
|
return s && R.observe(s), c && c !== s && R.observe(c), () => R.disconnect();
|
|
1267
1284
|
}, [le, ie]);
|
|
1268
|
-
const
|
|
1285
|
+
const ze = typeof le == "number" ? le : G, Ee = _((s) => l || (Te ? n(s) : !1), [Te, n, l]), on = U(L.container, i && L.containerPending, y), sn = M(
|
|
1269
1286
|
() => ({
|
|
1270
|
-
...
|
|
1287
|
+
...Mo,
|
|
1271
1288
|
...p ?? {},
|
|
1272
1289
|
...typeof le == "number" ? { height: le, minHeight: le } : {}
|
|
1273
1290
|
}),
|
|
@@ -1275,13 +1292,13 @@ const sr = (e) => {
|
|
|
1275
1292
|
), St = _(
|
|
1276
1293
|
(s, c) => {
|
|
1277
1294
|
const S = [s.absolutePath, ...sr(s)], R = c || d;
|
|
1278
|
-
if (S.every((
|
|
1279
|
-
if (S.every((
|
|
1295
|
+
if (S.every((ke) => Ee(ke))) return a(S);
|
|
1296
|
+
if (S.every((ke) => !Ee(ke)) || R === "recursive") return r(S);
|
|
1280
1297
|
if (R === "toggle") return a(S);
|
|
1281
1298
|
console.warn(`[DirectoryTree] Unknown double click action: ${R}. No action taken.`);
|
|
1282
1299
|
},
|
|
1283
1300
|
[Ee, r, a, d]
|
|
1284
|
-
), wt = ie ? !1 : me, { flatItems: je, lineItems: Et, maxIndent: an } =
|
|
1301
|
+
), wt = ie ? !1 : me, { flatItems: je, lineItems: Et, maxIndent: an } = M(() => Bo(e, Ee, P, wt, j), [e, Ee, P, wt, j]), st = Ro({ indentSize: te.indentSize, removeRootIndent: wt, hasExpandBox: C || P }), ge = M(() => P ? ko(te, O, st) : null, [P, te, O, st]), K = M(() => je.map((s, c) => ({ ...s, rowHeight: Io(B, s.entry, c) })), [je, B]), _e = M(() => K.map((s) => s.rowHeight), [K]), Ae = M(() => {
|
|
1285
1302
|
const s = new Array(_e.length + 1);
|
|
1286
1303
|
s[0] = 0;
|
|
1287
1304
|
for (let c = 0; c < _e.length; c++)
|
|
@@ -1289,12 +1306,12 @@ const sr = (e) => {
|
|
|
1289
1306
|
return s;
|
|
1290
1307
|
}, [_e]), ln = _((s) => K[s]?.rowHeight ?? Ot, [K]), ir = _((s) => K[s]?.entry.absolutePath ?? s, [K]), cn = ar ?? ir, He = b ?? null, xt = N ?? null, [dn, Ue] = fe(() => ({ selectedPath: He, selectionGeneration: 0, anchor: null })), Rt = Dn(dn, He);
|
|
1291
1308
|
Rt !== dn && Ue((s) => Dn(s, He));
|
|
1292
|
-
const at =
|
|
1309
|
+
const at = M(() => Do(je), [je]), We = M(() => Fo(at, Rt), [at, Rt]), Je = Y(/* @__PURE__ */ new Map()), it = Y(null), [lt] = fe(wo), Ze = Y(null), [lr, un] = fe(!0), It = Y(je);
|
|
1293
1310
|
It.current = je;
|
|
1294
1311
|
const fn = Y(Ee);
|
|
1295
1312
|
fn.current = Ee;
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1313
|
+
const kt = Y(t);
|
|
1314
|
+
kt.current = t;
|
|
1298
1315
|
const hn = Y(at);
|
|
1299
1316
|
hn.current = at;
|
|
1300
1317
|
const Nt = Y(We);
|
|
@@ -1326,10 +1343,10 @@ const sr = (e) => {
|
|
|
1326
1343
|
In(() => {
|
|
1327
1344
|
un(Je.current.has(We));
|
|
1328
1345
|
}, [We]);
|
|
1329
|
-
const
|
|
1346
|
+
const Tt = _(
|
|
1330
1347
|
(s, c, S) => {
|
|
1331
1348
|
const R = it.current === S;
|
|
1332
|
-
it.current = null, R || (Ue((H) =>
|
|
1349
|
+
it.current = null, R || (Ue((H) => $o(H, c)), lt.landedOn(S) || Le(s)), mn.current?.(s);
|
|
1333
1350
|
},
|
|
1334
1351
|
[Le, lt]
|
|
1335
1352
|
), ct = _((s) => lt.mark(s.nativeEvent), [lt]), Pt = _((s, c) => {
|
|
@@ -1371,7 +1388,7 @@ const sr = (e) => {
|
|
|
1371
1388
|
return;
|
|
1372
1389
|
const S = It.current, R = S.length - 1;
|
|
1373
1390
|
if (R < 0) return;
|
|
1374
|
-
const H = S[c], q = H?.entry.children !== void 0,
|
|
1391
|
+
const H = S[c], q = H?.entry.children !== void 0, ke = q && fn.current(H.entry.absolutePath);
|
|
1375
1392
|
switch (s.key) {
|
|
1376
1393
|
case "ArrowDown":
|
|
1377
1394
|
s.preventDefault(), Ie(Math.min(c + 1, R));
|
|
@@ -1386,11 +1403,11 @@ const sr = (e) => {
|
|
|
1386
1403
|
s.preventDefault(), Ie(R);
|
|
1387
1404
|
break;
|
|
1388
1405
|
case "ArrowRight":
|
|
1389
|
-
s.preventDefault(), q && !
|
|
1406
|
+
s.preventDefault(), q && !ke ? kt.current(H.entry.absolutePath) : q && c < R && S[c + 1].depth > H.depth && Ie(c + 1);
|
|
1390
1407
|
break;
|
|
1391
1408
|
case "ArrowLeft": {
|
|
1392
|
-
if (s.preventDefault(), q &&
|
|
1393
|
-
|
|
1409
|
+
if (s.preventDefault(), q && ke) {
|
|
1410
|
+
kt.current(H.entry.absolutePath);
|
|
1394
1411
|
break;
|
|
1395
1412
|
}
|
|
1396
1413
|
const mr = H?.depth ?? 0;
|
|
@@ -1404,17 +1421,17 @@ const sr = (e) => {
|
|
|
1404
1421
|
}
|
|
1405
1422
|
},
|
|
1406
1423
|
[Ie]
|
|
1407
|
-
), dt =
|
|
1408
|
-
() =>
|
|
1409
|
-
[K.length,
|
|
1410
|
-
), Ct =
|
|
1424
|
+
), dt = M(() => ge === null || Et.length === 0 ? { segmentsByItem: [], glyphsByItem: [] } : Go(Et, _e, Ae, ge), [Et, _e, Ae, ge]), ut = M(() => ge === null || e.length === 0 ? 0 : ge.originX + an * ge.indentSize + de + ge.typeIconSize, [e.length, an, ge]), { renderStart: gn, renderEnd: bn, lookaheadEnd: vn } = M(
|
|
1425
|
+
() => Yo(K.length, ze, we, nt, ot, Ae),
|
|
1426
|
+
[K.length, ze, we, nt, ot, Ae]
|
|
1427
|
+
), Ct = M(() => ge === null || ut <= 0 || ze <= 0 || dt.segmentsByItem.length === 0 ? null : /* @__PURE__ */ f.jsx("div", { className: "pointer-events-none absolute inset-0 z-1", "aria-hidden": "true", children: /* @__PURE__ */ f.jsx("div", { className: "absolute top-0 left-0", style: { width: ut, height: ze }, children: /* @__PURE__ */ f.jsx(
|
|
1411
1428
|
rr,
|
|
1412
1429
|
{
|
|
1413
1430
|
segmentsByItem: dt.segmentsByItem,
|
|
1414
1431
|
glyphsByItem: dt.glyphsByItem,
|
|
1415
1432
|
itemHeight: _e[0] ?? Ot,
|
|
1416
1433
|
width: ut,
|
|
1417
|
-
viewportHeight:
|
|
1434
|
+
viewportHeight: ze,
|
|
1418
1435
|
scrollPosition: ot,
|
|
1419
1436
|
color: F,
|
|
1420
1437
|
expandGlyphColor: F,
|
|
@@ -1423,25 +1440,25 @@ const sr = (e) => {
|
|
|
1423
1440
|
renderEndIndex: bn,
|
|
1424
1441
|
lookaheadEndIndex: vn
|
|
1425
1442
|
}
|
|
1426
|
-
) }) }), [ut,
|
|
1443
|
+
) }) }), [ut, ze, gn, bn, vn, ot, dt, F, ge, _e]), Sn = _((s) => K[s], [K]), wn = Y(null);
|
|
1427
1444
|
In(() => {
|
|
1428
1445
|
const s = wn.current;
|
|
1429
1446
|
if (wn.current = { items: K, offsets: Ae }, !Zt || !s || s.items === K)
|
|
1430
1447
|
return;
|
|
1431
|
-
const c = Re.current, S = c?.getScrollPosition(), R = typeof S == "number" && S >= 0 ? S : vt.current, H =
|
|
1448
|
+
const c = Re.current, S = c?.getScrollPosition(), R = typeof S == "number" && S >= 0 ? S : vt.current, H = Po(s.items, s.offsets, R);
|
|
1432
1449
|
if (!H)
|
|
1433
1450
|
return;
|
|
1434
|
-
const q =
|
|
1451
|
+
const q = _o(H, K, Ae);
|
|
1435
1452
|
if (q === null || Math.abs(q - R) < 1)
|
|
1436
1453
|
return;
|
|
1437
|
-
const
|
|
1438
|
-
vt.current =
|
|
1454
|
+
const ke = c ? c.scrollTo(q) : q;
|
|
1455
|
+
vt.current = ke, tn(ke);
|
|
1439
1456
|
}, [K, Ae, Zt]);
|
|
1440
|
-
const Ce =
|
|
1457
|
+
const Ce = k?.columns, Be = k?.scrollBarWidth ?? gt?.width ?? tr, re = M(() => Ce ? po({ measuredWidth: tt, columns: Ce, scrollBarWidth: Be }) : null, [Ce, tt, Be]), ft = M(() => Ce ? mo(Ce) : "", [Ce]), dr = M(() => k?.showFooter && Ce ? yo(e) : [], [k?.showFooter, Ce, e]), Ye = re?.maxHScroll ?? 0;
|
|
1441
1458
|
De(() => {
|
|
1442
1459
|
Ke((s) => jt(s, Ye));
|
|
1443
1460
|
}, [Ye]);
|
|
1444
|
-
const En = _((s) => Ke((c) => jt(c + s, Ye)), [Ye]), xn =
|
|
1461
|
+
const En = _((s) => Ke((c) => jt(c + s, Ye)), [Ye]), xn = M(
|
|
1445
1462
|
() => ({
|
|
1446
1463
|
iconOverrides: $,
|
|
1447
1464
|
showExpandIcons: C,
|
|
@@ -1457,7 +1474,7 @@ const sr = (e) => {
|
|
|
1457
1474
|
expandIconStyle: E
|
|
1458
1475
|
}),
|
|
1459
1476
|
[$, C, g, D, P, O, te, W, I, E]
|
|
1460
|
-
), Rn =
|
|
1477
|
+
), Rn = M(
|
|
1461
1478
|
() => /* @__PURE__ */ f.jsx(
|
|
1462
1479
|
vr,
|
|
1463
1480
|
{
|
|
@@ -1483,35 +1500,35 @@ const sr = (e) => {
|
|
|
1483
1500
|
// Clip the connector-line canvas to the frozen name column so deep trees never bleed into the numeric region.
|
|
1484
1501
|
/* @__PURE__ */ f.jsx("div", { className: "pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden", style: { width: re.nameWidth }, "aria-hidden": "true", children: Ct })
|
|
1485
1502
|
) : Ct,
|
|
1486
|
-
|
|
1503
|
+
zt
|
|
1487
1504
|
] }),
|
|
1488
1505
|
initialScrollIndex: Gt,
|
|
1489
|
-
initialScrollOffset:
|
|
1506
|
+
initialScrollOffset: Me,
|
|
1490
1507
|
initialScrollAnchor: Vt,
|
|
1491
1508
|
callbackThrottleMs: Xt,
|
|
1492
1509
|
contentInsets: Kt,
|
|
1493
1510
|
scrollBarOptions: gt,
|
|
1494
1511
|
behaviorOptions: en,
|
|
1495
|
-
children: (s, c) => s ? ie &&
|
|
1512
|
+
children: (s, c) => s ? ie && k && re ? /* @__PURE__ */ f.jsx(
|
|
1496
1513
|
qn,
|
|
1497
1514
|
{
|
|
1498
1515
|
entry: s.entry,
|
|
1499
1516
|
indentLevel: s.indentLevel,
|
|
1500
1517
|
positionInSet: s.positionInSet,
|
|
1501
1518
|
setSize: s.setSize,
|
|
1502
|
-
rowIndex: c + (
|
|
1519
|
+
rowIndex: c + (k.showHeader ?? !0 ? 2 : 1),
|
|
1503
1520
|
flatIndex: c,
|
|
1504
|
-
onRowFocus:
|
|
1521
|
+
onRowFocus: Tt,
|
|
1505
1522
|
onRowBlur: Pt,
|
|
1506
|
-
isSelectedForAria: !!
|
|
1523
|
+
isSelectedForAria: !!T?.has(s.entry.absolutePath),
|
|
1507
1524
|
rowHeight: s.rowHeight,
|
|
1508
1525
|
isDirOpen: Ee,
|
|
1509
|
-
columns:
|
|
1526
|
+
columns: k.columns,
|
|
1510
1527
|
numericTemplate: ft,
|
|
1511
1528
|
numericTotal: re.numericTotal,
|
|
1512
1529
|
nameWidth: re.nameWidth,
|
|
1513
|
-
rowClassName:
|
|
1514
|
-
selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems:
|
|
1530
|
+
rowClassName: k.rowClassName,
|
|
1531
|
+
selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems: T, onSelectionChange: m },
|
|
1515
1532
|
expansion: { toggleDirectory: t, onToggleDirectoryRecursive: St },
|
|
1516
1533
|
visual: xn
|
|
1517
1534
|
},
|
|
@@ -1525,19 +1542,19 @@ const sr = (e) => {
|
|
|
1525
1542
|
depth: s.depth,
|
|
1526
1543
|
positionInSet: s.positionInSet,
|
|
1527
1544
|
setSize: s.setSize,
|
|
1528
|
-
isSelectedForAria: !!
|
|
1545
|
+
isSelectedForAria: !!T?.has(s.entry.absolutePath),
|
|
1529
1546
|
flatIndex: c,
|
|
1530
1547
|
isActive: c === We,
|
|
1531
1548
|
registerRowRef: pn,
|
|
1532
1549
|
onNavigationKeyDown: yn,
|
|
1533
|
-
onRowFocus:
|
|
1550
|
+
onRowFocus: Tt,
|
|
1534
1551
|
onRowBlur: Pt,
|
|
1535
1552
|
rowHeight: s.rowHeight,
|
|
1536
1553
|
entryKindDirectory: $e,
|
|
1537
1554
|
entryKindFile: se,
|
|
1538
1555
|
isDirOpen: Ee,
|
|
1539
1556
|
expansion: { toggleDirectory: t, onToggleDirectoryRecursive: St },
|
|
1540
|
-
selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems:
|
|
1557
|
+
selection: { onEntryClick: h, selectedPath: He, currentPath: xt, mode: x, selectedItems: T, onSelectionChange: m },
|
|
1541
1558
|
visual: {
|
|
1542
1559
|
iconOverrides: $,
|
|
1543
1560
|
showExpandIcons: C,
|
|
@@ -1579,7 +1596,7 @@ const sr = (e) => {
|
|
|
1579
1596
|
We,
|
|
1580
1597
|
pn,
|
|
1581
1598
|
yn,
|
|
1582
|
-
|
|
1599
|
+
Tt,
|
|
1583
1600
|
Pt,
|
|
1584
1601
|
le,
|
|
1585
1602
|
we,
|
|
@@ -1592,22 +1609,22 @@ const sr = (e) => {
|
|
|
1592
1609
|
En,
|
|
1593
1610
|
re,
|
|
1594
1611
|
Ct,
|
|
1595
|
-
|
|
1612
|
+
zt,
|
|
1596
1613
|
Gt,
|
|
1597
|
-
|
|
1614
|
+
Me,
|
|
1598
1615
|
Vt,
|
|
1599
1616
|
Xt,
|
|
1600
1617
|
Kt,
|
|
1601
1618
|
gt,
|
|
1602
1619
|
en,
|
|
1603
|
-
|
|
1620
|
+
k,
|
|
1604
1621
|
ft,
|
|
1605
1622
|
Ee,
|
|
1606
1623
|
h,
|
|
1607
1624
|
He,
|
|
1608
1625
|
xt,
|
|
1609
1626
|
x,
|
|
1610
|
-
|
|
1627
|
+
T,
|
|
1611
1628
|
m,
|
|
1612
1629
|
t,
|
|
1613
1630
|
St,
|
|
@@ -1633,14 +1650,14 @@ const sr = (e) => {
|
|
|
1633
1650
|
E
|
|
1634
1651
|
]
|
|
1635
1652
|
);
|
|
1636
|
-
if (!(
|
|
1653
|
+
if (!(k && re))
|
|
1637
1654
|
return /* @__PURE__ */ f.jsxs("div", { ref: Pe, className: on, style: sn, onPointerDownCapture: ct, onMouseDownCapture: ct, children: [
|
|
1638
1655
|
je.length > 0 && !lr && // biome-ignore lint/a11y/noNoninteractiveTabindex: 停止点の行が描画窓の外で DOM に無い間だけ Tab を受け、受けた瞬間にその行へ焦点を渡す。これが無いとツリーに Tab で入れない
|
|
1639
1656
|
// biome-ignore lint/a11y/noStaticElementInteractions: 同上 (焦点の受け渡しだけを担い、要素自身は操作の対象ではない)
|
|
1640
|
-
/* @__PURE__ */ f.jsx("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style:
|
|
1657
|
+
/* @__PURE__ */ f.jsx("span", { tabIndex: 0, "data-directory-tree-tab-stop": "", style: Wo, onFocus: cr }),
|
|
1641
1658
|
Rn
|
|
1642
1659
|
] });
|
|
1643
|
-
const ur =
|
|
1660
|
+
const ur = k.showHeader ?? !0, fr = k.showFooter ?? !1, hr = { ...sn, "--dt-hscroll": `${Xe}px` };
|
|
1644
1661
|
return /* @__PURE__ */ f.jsxs(
|
|
1645
1662
|
"div",
|
|
1646
1663
|
{
|
|
@@ -1652,12 +1669,12 @@ const sr = (e) => {
|
|
|
1652
1669
|
"aria-labelledby": v,
|
|
1653
1670
|
"aria-multiselectable": x === "multiple" ? !0 : void 0,
|
|
1654
1671
|
"aria-busy": i ? !0 : void 0,
|
|
1655
|
-
"aria-rowcount": K.length + (
|
|
1672
|
+
"aria-rowcount": K.length + (k.showHeader ?? !0 ? 1 : 0),
|
|
1656
1673
|
onPointerDownCapture: ct,
|
|
1657
1674
|
onMouseDownCapture: ct,
|
|
1658
1675
|
children: [
|
|
1659
1676
|
ur && // biome-ignore lint/a11y/useSemanticElements: 仮想スクロールの treegrid は絶対配置行を使うため native table 要素にできない。ARIA ロールで意味を提供する
|
|
1660
|
-
/* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(
|
|
1677
|
+
/* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(uo, { columns: k.columns, numericTemplate: ft, numericTotal: re.numericTotal, nameWidth: re.nameWidth, scrollBarWidth: Be, className: k.headerClassName }) }),
|
|
1661
1678
|
/* @__PURE__ */ f.jsx("div", { ref: Fe, className: "dt-grid-body", children: Rn }),
|
|
1662
1679
|
Ye > 0 && /* @__PURE__ */ f.jsxs("div", { className: "dt-grid-hscrollbar-row", children: [
|
|
1663
1680
|
/* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: re.nameWidth }, "aria-hidden": "true" }),
|
|
@@ -1680,11 +1697,11 @@ const sr = (e) => {
|
|
|
1680
1697
|
/* @__PURE__ */ f.jsx("div", { className: "dt-grid-scrollbar-spacer", style: { width: Be }, "aria-hidden": "true" })
|
|
1681
1698
|
] }),
|
|
1682
1699
|
fr && // biome-ignore lint/a11y/useSemanticElements: 同上 (フッタ行も絶対配置レイアウトの一部)
|
|
1683
|
-
/* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(
|
|
1700
|
+
/* @__PURE__ */ f.jsx("div", { role: "rowgroup", children: /* @__PURE__ */ f.jsx(fo, { columns: k.columns, numericTemplate: ft, numericTotal: re.numericTotal, nameWidth: re.nameWidth, scrollBarWidth: Be, allEntries: dr, className: k.footerClassName }) })
|
|
1684
1701
|
]
|
|
1685
1702
|
}
|
|
1686
1703
|
);
|
|
1687
|
-
},
|
|
1704
|
+
}, qo = ({ initialExpanded: e = /* @__PURE__ */ new Set(), storageKey: t } = {}) => {
|
|
1688
1705
|
const [n, r] = gr(), [a, i] = fe(() => {
|
|
1689
1706
|
if (typeof window < "u" && t)
|
|
1690
1707
|
try {
|
|
@@ -1749,7 +1766,7 @@ const sr = (e) => {
|
|
|
1749
1766
|
});
|
|
1750
1767
|
},
|
|
1751
1768
|
[d]
|
|
1752
|
-
),
|
|
1769
|
+
), T = _(
|
|
1753
1770
|
(p) => {
|
|
1754
1771
|
d(p, (w, v) => {
|
|
1755
1772
|
w.add(v);
|
|
@@ -1767,19 +1784,21 @@ const sr = (e) => {
|
|
|
1767
1784
|
expand: b,
|
|
1768
1785
|
collapse: N,
|
|
1769
1786
|
collapseMultiple: x,
|
|
1770
|
-
expandMultiple:
|
|
1787
|
+
expandMultiple: T,
|
|
1771
1788
|
collapseAll: m,
|
|
1772
1789
|
isExpanded: y,
|
|
1773
1790
|
isPending: n
|
|
1774
1791
|
};
|
|
1775
1792
|
};
|
|
1776
1793
|
export {
|
|
1777
|
-
|
|
1794
|
+
go as DIRECTORY_TREE_LABEL_CATALOGS,
|
|
1778
1795
|
An as DIRECTORY_TREE_LABEL_KEYS,
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1796
|
+
Zo as DirectoryTree,
|
|
1797
|
+
oo as EXPAND_ICON_STYLE_PROPERTIES,
|
|
1798
|
+
Jo as FILE_ICON_PAIRS,
|
|
1799
|
+
Br as MARK_PAIRS,
|
|
1800
|
+
ro as ROW_STYLE_PROPERTIES,
|
|
1782
1801
|
L as directoryTreeClasses,
|
|
1783
|
-
|
|
1784
|
-
|
|
1802
|
+
vo as resolveDirectoryTreeLabels,
|
|
1803
|
+
qo as useDirectoryTreeState
|
|
1785
1804
|
};
|