folder-pane 4.0.0 → 4.0.1-1
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/declarations.d.ts +4 -4
- package/dist/_virtual/~icons/lucide/chevron-down.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/chevron-down.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-down.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/chevron-down.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-right.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/chevron-right.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-right.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/chevron-right.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/circle-small.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/circle-small.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/circle-small.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/circle-small.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file-box.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/file-box.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file-box.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/file-box.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder-open.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/folder.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/layout-grid.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/layout-grid.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/layout-grid.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/layout-grid.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/list.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/list.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/list.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/list.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/plus.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/plus.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/plus.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/plus.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/search.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/search.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/search.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/search.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/upload.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/upload.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/upload.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/upload.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/x.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/x.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/x.esm.js +10 -0
- package/dist/_virtual/~icons/lucide/x.esm.js.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +93 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +52 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +627 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +2 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +6 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-container/index.cjs.js +1 -0
- package/dist/components/folder-pane-container/index.d.ts +2 -0
- package/dist/components/folder-pane-container/index.d.ts.map +1 -0
- package/dist/components/folder-pane-container/index.esm.js +1 -0
- package/dist/components/folder-pane-content/FolderPaneContent.cjs.js +4 -0
- package/dist/components/folder-pane-content/FolderPaneContent.cjs.js.map +1 -0
- package/dist/components/folder-pane-content/FolderPaneContent.d.ts +6 -0
- package/dist/components/folder-pane-content/FolderPaneContent.d.ts.map +1 -0
- package/dist/components/folder-pane-content/FolderPaneContent.esm.js +176 -0
- package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +1 -0
- package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +2 -0
- package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +6 -0
- package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-content/index.cjs.js +1 -0
- package/dist/components/folder-pane-content/index.d.ts +2 -0
- package/dist/components/folder-pane-content/index.d.ts.map +1 -0
- package/dist/components/folder-pane-content/index.esm.js +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +53 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +33 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +429 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +2 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +6 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-sidebar/index.cjs.js +1 -0
- package/dist/components/folder-pane-sidebar/index.d.ts +2 -0
- package/dist/components/folder-pane-sidebar/index.d.ts.map +1 -0
- package/dist/components/folder-pane-sidebar/index.esm.js +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js +32 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts +15 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js +290 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js +2 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js +6 -0
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +79 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +27 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +437 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +2 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +6 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-storage-header/index.cjs.js +1 -0
- package/dist/components/folder-pane-storage-header/index.d.ts +2 -0
- package/dist/components/folder-pane-storage-header/index.d.ts.map +1 -0
- package/dist/components/folder-pane-storage-header/index.esm.js +1 -0
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js +53 -0
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -0
- package/dist/components/folder-pane-view/FolderPaneView.d.ts +85 -0
- package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -0
- package/dist/components/folder-pane-view/FolderPaneView.esm.js +747 -0
- package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -0
- package/dist/components/folder-pane-view/index.cjs.js +1 -0
- package/dist/components/folder-pane-view/index.d.ts +2 -0
- package/dist/components/folder-pane-view/index.d.ts.map +1 -0
- package/dist/components/folder-pane-view/index.esm.js +1 -0
- package/dist/components/folder-pane-view/renderRequest.cjs.js +2 -0
- package/dist/components/folder-pane-view/renderRequest.cjs.js.map +1 -0
- package/dist/components/folder-pane-view/renderRequest.d.ts +8 -0
- package/dist/components/folder-pane-view/renderRequest.d.ts.map +1 -0
- package/dist/components/folder-pane-view/renderRequest.esm.js +10 -0
- package/dist/components/folder-pane-view/renderRequest.esm.js.map +1 -0
- package/dist/creationSafety.cjs.js +2 -0
- package/dist/creationSafety.cjs.js.map +1 -0
- package/dist/creationSafety.d.ts +9 -0
- package/dist/creationSafety.d.ts.map +1 -0
- package/dist/creationSafety.esm.js +17 -0
- package/dist/creationSafety.esm.js.map +1 -0
- package/dist/folderPane.cjs.js +2 -2
- package/dist/folderPane.cjs.js.map +1 -1
- package/dist/folderPane.d.ts +15 -1
- package/dist/folderPane.d.ts.map +1 -1
- package/dist/folderPane.esm.js +33 -60
- package/dist/folderPane.esm.js.map +1 -1
- package/dist/helpers.cjs.js +2 -0
- package/dist/helpers.cjs.js.map +1 -0
- package/dist/helpers.d.ts +30 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.esm.js +59 -0
- package/dist/helpers.esm.js.map +1 -0
- package/dist/index.esm.js +1 -2
- package/dist/mintPaneInstance.cjs.js +2 -0
- package/dist/mintPaneInstance.cjs.js.map +1 -0
- package/dist/mintPaneInstance.d.ts +43 -0
- package/dist/mintPaneInstance.d.ts.map +1 -0
- package/dist/mintPaneInstance.esm.js +104 -0
- package/dist/mintPaneInstance.esm.js.map +1 -0
- package/dist/requestQueue.cjs.js +2 -0
- package/dist/requestQueue.cjs.js.map +1 -0
- package/dist/requestQueue.d.ts +30 -0
- package/dist/requestQueue.d.ts.map +1 -0
- package/dist/requestQueue.esm.js +67 -0
- package/dist/requestQueue.esm.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +8 -5
- package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
import { getContainerMemberCountLabel as e, getResourceAccessState as t, getResourcesForContainer as n } from "../../helpers.esm.js";
|
|
2
|
+
import { createRequestQueue as r } from "../../requestQueue.esm.js";
|
|
3
|
+
import "../../_virtual/~icons/lucide/file.esm.js";
|
|
4
|
+
import "../../_virtual/~icons/lucide/file-box.esm.js";
|
|
5
|
+
import "../../_virtual/~icons/lucide/folder.esm.js";
|
|
6
|
+
import i from "./FolderPaneContainer.styles.esm.js";
|
|
7
|
+
import "../../_virtual/~icons/lucide/globe.esm.js";
|
|
8
|
+
import "../../_virtual/~icons/lucide/lock-keyhole.esm.js";
|
|
9
|
+
import { FILE_EXPLORER_MANAGE_ACCESS_EVENT as a, WebComponent as o, customElement as s, getRelevantPanes as c, utils as l } from "solid-ui";
|
|
10
|
+
import { html as u, nothing as d } from "lit";
|
|
11
|
+
import { property as f, state as p } from "lit/decorators.js";
|
|
12
|
+
import "solid-ui/components/resource-actions-menu";
|
|
13
|
+
// src/components/folder-pane-container/FolderPaneContainer.ts
|
|
14
|
+
var m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, M, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, se, ce, le, ue, de;
|
|
15
|
+
function J(e, t, n) {
|
|
16
|
+
fe(e, t), t.set(e, n);
|
|
17
|
+
}
|
|
18
|
+
function fe(e, t) {
|
|
19
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
20
|
+
}
|
|
21
|
+
function Y(e, t, n) {
|
|
22
|
+
return e.set(pe(e, t), n), n;
|
|
23
|
+
}
|
|
24
|
+
function X(e, t) {
|
|
25
|
+
return e.get(pe(e, t));
|
|
26
|
+
}
|
|
27
|
+
function pe(e, t, n) {
|
|
28
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
29
|
+
throw TypeError("Private element is not present on this object");
|
|
30
|
+
}
|
|
31
|
+
function Z(e, t, n) {
|
|
32
|
+
return (t = Q(t)) in e ? Object.defineProperty(e, t, {
|
|
33
|
+
value: n,
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
configurable: !0,
|
|
36
|
+
writable: !0
|
|
37
|
+
}) : e[t] = n, e;
|
|
38
|
+
}
|
|
39
|
+
function me(e, t, n, r, i, a) {
|
|
40
|
+
function o(e, t, n) {
|
|
41
|
+
return function(r, i) {
|
|
42
|
+
return n && n(r), e[t].call(r, i);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function s(e, t) {
|
|
46
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
49
|
+
function c(e, t, n, r) {
|
|
50
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
51
|
+
return e;
|
|
52
|
+
}
|
|
53
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
54
|
+
function h(e) {
|
|
55
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
56
|
+
}
|
|
57
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
58
|
+
if (!y) {
|
|
59
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
60
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
61
|
+
d ? (f || p ? b = {
|
|
62
|
+
get: ge(function() {
|
|
63
|
+
return v(this);
|
|
64
|
+
}, r, "get"),
|
|
65
|
+
set: function(e) {
|
|
66
|
+
t[4](this, e);
|
|
67
|
+
}
|
|
68
|
+
} : b[S] = v, f || ge(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
69
|
+
}
|
|
70
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
71
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
72
|
+
kind: [
|
|
73
|
+
"field",
|
|
74
|
+
"accessor",
|
|
75
|
+
"method",
|
|
76
|
+
"getter",
|
|
77
|
+
"setter",
|
|
78
|
+
"class"
|
|
79
|
+
][i],
|
|
80
|
+
name: r,
|
|
81
|
+
metadata: a,
|
|
82
|
+
addInitializer: function(e, t) {
|
|
83
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
84
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
85
|
+
}.bind(null, D)
|
|
86
|
+
};
|
|
87
|
+
try {
|
|
88
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
89
|
+
else {
|
|
90
|
+
var k, A;
|
|
91
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
92
|
+
return h(e), b.value;
|
|
93
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
94
|
+
return e[r];
|
|
95
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
96
|
+
e[r] = t;
|
|
97
|
+
}));
|
|
98
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
99
|
+
return r in e;
|
|
100
|
+
} };
|
|
101
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
102
|
+
get: b.get,
|
|
103
|
+
set: b.set
|
|
104
|
+
} : b[S], O), p) {
|
|
105
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
106
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
107
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
108
|
+
}
|
|
109
|
+
} finally {
|
|
110
|
+
D.v = !0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return (f || p) && l.push(function(e, t) {
|
|
114
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
115
|
+
return t;
|
|
116
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
117
|
+
}
|
|
118
|
+
function u(e, t) {
|
|
119
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
120
|
+
configurable: !0,
|
|
121
|
+
enumerable: !0,
|
|
122
|
+
value: t
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
126
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
127
|
+
var i, a, o = [], c = function(t) {
|
|
128
|
+
return _e(t) === e;
|
|
129
|
+
}, u = /* @__PURE__ */ new Map();
|
|
130
|
+
function d(e) {
|
|
131
|
+
e && o.push(s.bind(null, e));
|
|
132
|
+
}
|
|
133
|
+
for (var f = 0; f < t.length; f++) {
|
|
134
|
+
var p = t[f];
|
|
135
|
+
if (Array.isArray(p)) {
|
|
136
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
137
|
+
if (!y && !g) {
|
|
138
|
+
var x = u.get(b);
|
|
139
|
+
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
140
|
+
u.set(b, !(m > 2) || m);
|
|
141
|
+
}
|
|
142
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Q(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return d(i), d(a), o;
|
|
146
|
+
}(e, t, i, f);
|
|
147
|
+
return n.length || u(e, f), {
|
|
148
|
+
e: p,
|
|
149
|
+
get c() {
|
|
150
|
+
var t = [];
|
|
151
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function Q(e) {
|
|
156
|
+
var t = he(e, "string");
|
|
157
|
+
return typeof t == "symbol" ? t : t + "";
|
|
158
|
+
}
|
|
159
|
+
function he(e, t) {
|
|
160
|
+
if (typeof e != "object" || !e) return e;
|
|
161
|
+
var n;
|
|
162
|
+
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
163
|
+
var r = n.call(e, t || "default");
|
|
164
|
+
if (typeof r != "object") return r;
|
|
165
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
166
|
+
}
|
|
167
|
+
return (t === "string" ? String : Number)(e);
|
|
168
|
+
}
|
|
169
|
+
function ge(e, t, n) {
|
|
170
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
171
|
+
try {
|
|
172
|
+
Object.defineProperty(e, "name", {
|
|
173
|
+
configurable: !0,
|
|
174
|
+
value: n ? n + " " + t : t
|
|
175
|
+
});
|
|
176
|
+
} catch {}
|
|
177
|
+
return e;
|
|
178
|
+
}
|
|
179
|
+
function _e(e) {
|
|
180
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
181
|
+
return e;
|
|
182
|
+
}
|
|
183
|
+
function ve(e) {
|
|
184
|
+
return e;
|
|
185
|
+
}
|
|
186
|
+
j = [s("folder-pane-container")];
|
|
187
|
+
var $;
|
|
188
|
+
new (ue = (g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), de = (ee = f({ attribute: !1 }), ne = f({ attribute: !1 }), ie = f({ attribute: !1 }), oe = f(), N = f(), F = f({
|
|
189
|
+
type: Boolean,
|
|
190
|
+
attribute: "hide-root-special-folders"
|
|
191
|
+
}), L = p(), z = p(), V = p(), U = p(), G = p(), q = p(), ce = p(), "subject"), h = class extends o {
|
|
192
|
+
constructor(...e) {
|
|
193
|
+
super(...e), J(this, g, (k(this), te(this, void 0))), J(this, _, re(this, null)), J(this, v, ae(this, void 0)), J(this, y, M(this, "grid")), J(this, b, P(this, "")), J(this, x, I(this, !1)), J(this, S, R(this, /* @__PURE__ */ new Map())), J(this, C, B(this, [])), J(this, w, H(this, [])), J(this, T, W(this, /* @__PURE__ */ new Map())), J(this, E, K(this, /* @__PURE__ */ new Map())), J(this, D, se(this, !0)), J(this, O, le(this, void 0)), Z(this, "actionMenuGeneration", 0), Z(this, "resourceGeneration", 0), Z(this, "detailsQueue", r()), Z(this, "detailsObserver", void 0);
|
|
194
|
+
}
|
|
195
|
+
get [de]() {
|
|
196
|
+
return X(g, this);
|
|
197
|
+
}
|
|
198
|
+
set subject(e) {
|
|
199
|
+
Y(g, this, e);
|
|
200
|
+
}
|
|
201
|
+
get resourceLogic() {
|
|
202
|
+
return X(_, this);
|
|
203
|
+
}
|
|
204
|
+
set resourceLogic(e) {
|
|
205
|
+
Y(_, this, e);
|
|
206
|
+
}
|
|
207
|
+
get browserContext() {
|
|
208
|
+
return X(v, this);
|
|
209
|
+
}
|
|
210
|
+
set browserContext(e) {
|
|
211
|
+
Y(v, this, e);
|
|
212
|
+
}
|
|
213
|
+
get view() {
|
|
214
|
+
return X(y, this);
|
|
215
|
+
}
|
|
216
|
+
set view(e) {
|
|
217
|
+
Y(y, this, e);
|
|
218
|
+
}
|
|
219
|
+
get searchQuery() {
|
|
220
|
+
return X(b, this);
|
|
221
|
+
}
|
|
222
|
+
set searchQuery(e) {
|
|
223
|
+
Y(b, this, e);
|
|
224
|
+
}
|
|
225
|
+
get hideRootSpecialFolders() {
|
|
226
|
+
return X(x, this);
|
|
227
|
+
}
|
|
228
|
+
set hideRootSpecialFolders(e) {
|
|
229
|
+
Y(x, this, e);
|
|
230
|
+
}
|
|
231
|
+
get resourceActionMenuItems() {
|
|
232
|
+
return X(S, this);
|
|
233
|
+
}
|
|
234
|
+
set resourceActionMenuItems(e) {
|
|
235
|
+
Y(S, this, e);
|
|
236
|
+
}
|
|
237
|
+
get resources() {
|
|
238
|
+
return X(C, this);
|
|
239
|
+
}
|
|
240
|
+
set resources(e) {
|
|
241
|
+
Y(C, this, e);
|
|
242
|
+
}
|
|
243
|
+
get optimisticResources() {
|
|
244
|
+
return X(w, this);
|
|
245
|
+
}
|
|
246
|
+
set optimisticResources(e) {
|
|
247
|
+
Y(w, this, e);
|
|
248
|
+
}
|
|
249
|
+
get resourceAccess() {
|
|
250
|
+
return X(T, this);
|
|
251
|
+
}
|
|
252
|
+
set resourceAccess(e) {
|
|
253
|
+
Y(T, this, e);
|
|
254
|
+
}
|
|
255
|
+
get memberLoad() {
|
|
256
|
+
return X(E, this);
|
|
257
|
+
}
|
|
258
|
+
set memberLoad(e) {
|
|
259
|
+
Y(E, this, e);
|
|
260
|
+
}
|
|
261
|
+
get loading() {
|
|
262
|
+
return X(D, this);
|
|
263
|
+
}
|
|
264
|
+
set loading(e) {
|
|
265
|
+
Y(D, this, e);
|
|
266
|
+
}
|
|
267
|
+
get loadError() {
|
|
268
|
+
return X(O, this);
|
|
269
|
+
}
|
|
270
|
+
set loadError(e) {
|
|
271
|
+
Y(O, this, e);
|
|
272
|
+
}
|
|
273
|
+
selectResource(e) {
|
|
274
|
+
this.dispatchEvent(new CustomEvent("resource-selected", {
|
|
275
|
+
detail: { resource: e.subject },
|
|
276
|
+
bubbles: !0,
|
|
277
|
+
composed: !0
|
|
278
|
+
}));
|
|
279
|
+
}
|
|
280
|
+
handleResourceKeyDown(e, t) {
|
|
281
|
+
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.selectResource(t));
|
|
282
|
+
}
|
|
283
|
+
getVisibleMemberCount(e) {
|
|
284
|
+
if (!e.isContainer || !this.resourceLogic) return 0;
|
|
285
|
+
let t = this.resourceLogic;
|
|
286
|
+
return t.getContainerMembers(e.subject).filter((e) => !t.isHiddenFile(e)).length;
|
|
287
|
+
}
|
|
288
|
+
isRootSpecialFolder(e) {
|
|
289
|
+
if (!e.isContainer) return !1;
|
|
290
|
+
let t = l.label(e.subject).toLowerCase();
|
|
291
|
+
return t === "public" || t === "trash";
|
|
292
|
+
}
|
|
293
|
+
getResourcesFromStore() {
|
|
294
|
+
let e = this.subject ? [...n(this.subject, this.resourceLogic).values()] : [], t = this.optimisticResources.filter((t) => !e.some((e) => e.id === t.id)), r = [...e, ...t];
|
|
295
|
+
return this.hideRootSpecialFolders ? r.filter((e) => !this.isRootSpecialFolder(e)) : r;
|
|
296
|
+
}
|
|
297
|
+
addOptimisticResource(e) {
|
|
298
|
+
if (!this.resourceLogic || this.optimisticResources.some((t) => t.id === e.value)) return;
|
|
299
|
+
let t = {
|
|
300
|
+
id: e.value,
|
|
301
|
+
subject: e,
|
|
302
|
+
parentId: this.subject?.value ?? null,
|
|
303
|
+
isContainer: e.uri.endsWith("/") || this.resourceLogic.isContainer(e)
|
|
304
|
+
};
|
|
305
|
+
this.optimisticResources = [...this.optimisticResources, t], this.loadResources();
|
|
306
|
+
}
|
|
307
|
+
get visibleResources() {
|
|
308
|
+
let e = this.searchQuery.trim().toLowerCase();
|
|
309
|
+
return e ? this.resources.filter((t) => l.label(t.subject).toLowerCase().includes(e)) : this.resources;
|
|
310
|
+
}
|
|
311
|
+
async loadResources() {
|
|
312
|
+
let e = ++this.resourceGeneration, t = this.getResourcesFromStore();
|
|
313
|
+
this.resources = t, this.loading = !1, this.loadError = void 0, e === this.resourceGeneration && this.loadResourceActionMenuItems(e);
|
|
314
|
+
}
|
|
315
|
+
loadResourceDetails(e) {
|
|
316
|
+
this.loadMemberCount(e), this.loadResourceAccess(e);
|
|
317
|
+
}
|
|
318
|
+
async loadMemberCount(e, t = this.resourceGeneration) {
|
|
319
|
+
if (!e.isContainer || this.memberLoad.has(e.id) || !this.browserContext) return;
|
|
320
|
+
let n = this.browserContext.session.store.fetcher;
|
|
321
|
+
this.memberLoad = new Map(this.memberLoad).set(e.id, "loading");
|
|
322
|
+
try {
|
|
323
|
+
if (await this.detailsQueue.run(() => n.load(e.subject)), t !== this.resourceGeneration) return;
|
|
324
|
+
this.memberLoad = new Map(this.memberLoad).set(e.id, "loaded");
|
|
325
|
+
} catch (n) {
|
|
326
|
+
if (t !== this.resourceGeneration) return;
|
|
327
|
+
console.warn("Unable to load folder-pane container member count", n), this.memberLoad = new Map(this.memberLoad).set(e.id, "error");
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
async loadResourceAccess(e, n = this.resourceGeneration) {
|
|
331
|
+
if (this.resourceAccess.has(e.id) || !this.browserContext) return;
|
|
332
|
+
let r = this.browserContext.session.logic.resource;
|
|
333
|
+
this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
|
|
334
|
+
state: "unknown",
|
|
335
|
+
canManageAccess: !1
|
|
336
|
+
});
|
|
337
|
+
try {
|
|
338
|
+
let i = await this.detailsQueue.run(() => r.fetchMetadata(e.subject));
|
|
339
|
+
if (n !== this.resourceGeneration) return;
|
|
340
|
+
let a = t(i.access);
|
|
341
|
+
this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
|
|
342
|
+
state: a,
|
|
343
|
+
canManageAccess: i.access.canManageAccess
|
|
344
|
+
});
|
|
345
|
+
} catch {
|
|
346
|
+
n === this.resourceGeneration && (this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
|
|
347
|
+
state: "error",
|
|
348
|
+
canManageAccess: !1
|
|
349
|
+
}));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
renderAccessIndicator(e) {
|
|
353
|
+
let t = this.resourceAccess.get(e.id);
|
|
354
|
+
return t ? t.state === "public" ? u`<icon-lucide-globe class="resource-access-indicator resource-access-indicator--public" role="img" aria-label="Public" title="Public"></icon-lucide-globe>` : t.state === "private" ? u`<icon-lucide-lock-keyhole class="resource-access-indicator resource-access-indicator--private" role="img" aria-label="Private" title="Private"></icon-lucide-lock-keyhole>` : d : d;
|
|
355
|
+
}
|
|
356
|
+
resetResourceDetails() {
|
|
357
|
+
this.detailsQueue.clear(), this.detailsObserver?.disconnect(), this.resourceAccess = /* @__PURE__ */ new Map(), this.memberLoad = /* @__PURE__ */ new Map();
|
|
358
|
+
}
|
|
359
|
+
observeResourceItems() {
|
|
360
|
+
let e = Array.from(this.renderRoot.querySelectorAll("[data-resource-id]")), t = new Map(this.resources.map((e) => [e.id, e])), n = e.filter((e) => {
|
|
361
|
+
let n = t.get(e.dataset.resourceId);
|
|
362
|
+
return n && (n.isContainer && !this.memberLoad.has(n.id) || !this.resourceAccess.has(n.id));
|
|
363
|
+
});
|
|
364
|
+
if (n.length !== 0) {
|
|
365
|
+
if (typeof IntersectionObserver > "u") for (let e of n) this.loadResourceDetails(t.get(e.dataset.resourceId));
|
|
366
|
+
else {
|
|
367
|
+
this.detailsObserver ??= new IntersectionObserver((e) => {
|
|
368
|
+
for (let t of e) {
|
|
369
|
+
if (!t.isIntersecting) continue;
|
|
370
|
+
let e = t.target;
|
|
371
|
+
this.detailsObserver?.unobserve(e);
|
|
372
|
+
let n = this.resources.find((t) => t.id === e.dataset.resourceId);
|
|
373
|
+
n && this.loadResourceDetails(n);
|
|
374
|
+
}
|
|
375
|
+
}, { rootMargin: "200px" });
|
|
376
|
+
for (let e of n) this.detailsObserver.observe(e);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
connectedCallback() {
|
|
381
|
+
super.connectedCallback(), this.hasUpdated && this.requestUpdate();
|
|
382
|
+
}
|
|
383
|
+
disconnectedCallback() {
|
|
384
|
+
super.disconnectedCallback(), this.resourceGeneration++, this.resetResourceDetails();
|
|
385
|
+
}
|
|
386
|
+
async refresh(e = !0) {
|
|
387
|
+
if (this.resourceGeneration++, this.resetResourceDetails(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.optimisticResources = [], e && this.subject && this.browserContext) try {
|
|
388
|
+
await this.browserContext.session.store.fetcher.load(this.subject, {
|
|
389
|
+
force: !0,
|
|
390
|
+
clearPreviousData: !0
|
|
391
|
+
});
|
|
392
|
+
} catch (e) {
|
|
393
|
+
await this.loadResources(), this.loadError = "The folder could not be refreshed. Showing the last known listing.", console.warn("Unable to refresh folder-pane container", e);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
await this.loadResources();
|
|
397
|
+
}
|
|
398
|
+
async loadResourceActionMenuItems(e = this.resourceGeneration) {
|
|
399
|
+
let t = ++this.actionMenuGeneration;
|
|
400
|
+
if (!this.browserContext) {
|
|
401
|
+
this.resourceActionMenuItems = /* @__PURE__ */ new Map();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
let n = await Promise.all(this.resources.map(async (e) => {
|
|
405
|
+
let t = await c(e.subject, this.browserContext, {
|
|
406
|
+
excludedPaneNames: ["sharing"],
|
|
407
|
+
fallbackPaneName: "internal"
|
|
408
|
+
}), n = await Promise.all(t.map(async (t) => {
|
|
409
|
+
let n = t.label(e.subject, this.browserContext) || t.name, r = t.icon;
|
|
410
|
+
return {
|
|
411
|
+
label: n,
|
|
412
|
+
icon: typeof r == "function" ? await r(e.subject, this.browserContext) : r,
|
|
413
|
+
action: () => {
|
|
414
|
+
this.dispatchEvent(new CustomEvent("resource-open-pane", {
|
|
415
|
+
detail: {
|
|
416
|
+
resource: e.subject,
|
|
417
|
+
paneName: t.name
|
|
418
|
+
},
|
|
419
|
+
bubbles: !0,
|
|
420
|
+
composed: !0
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
}));
|
|
425
|
+
return [e.id, n];
|
|
426
|
+
}));
|
|
427
|
+
e === this.resourceGeneration && t === this.actionMenuGeneration && (this.resourceActionMenuItems = new Map(n));
|
|
428
|
+
}
|
|
429
|
+
updated(e) {
|
|
430
|
+
(e.has("subject") || e.has("resourceLogic") || e.has("browserContext") || e.has("hideRootSpecialFolders")) && (this.resourceGeneration++, this.resetResourceDetails(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.loadResources()), this.observeResourceItems();
|
|
431
|
+
}
|
|
432
|
+
openAccessControls(e) {
|
|
433
|
+
this.dispatchEvent(new CustomEvent(a, {
|
|
434
|
+
detail: { subjectUri: e.subject.uri },
|
|
435
|
+
bubbles: !0,
|
|
436
|
+
composed: !0
|
|
437
|
+
}));
|
|
438
|
+
}
|
|
439
|
+
renderResourceActionsMenu(e, t) {
|
|
440
|
+
return u`
|
|
441
|
+
<div
|
|
442
|
+
class="resource-actions-menu resource-actions-menu--${t}"
|
|
443
|
+
@click=${(e) => e.stopPropagation()}
|
|
444
|
+
>
|
|
445
|
+
<solid-ui-resource-actions-menu
|
|
446
|
+
.store=${this.browserContext?.session.store}
|
|
447
|
+
.subjectUri=${e.subject.uri}
|
|
448
|
+
.handleAccessClick=${() => this.openAccessControls(e)}
|
|
449
|
+
.showAccessInMenu=${!0}
|
|
450
|
+
.canManageAccess=${this.resourceAccess.get(e.id)?.canManageAccess === !0}
|
|
451
|
+
.menuItems=${this.resourceActionMenuItems.get(e.id) || []}
|
|
452
|
+
></solid-ui-resource-actions-menu>
|
|
453
|
+
</div>
|
|
454
|
+
`;
|
|
455
|
+
}
|
|
456
|
+
renderResourceItem(t) {
|
|
457
|
+
let n = l.label(t.subject), r = t.isContainer && this.memberLoad.get(t.id) === "loaded" ? this.getVisibleMemberCount(t) : -1;
|
|
458
|
+
return u`
|
|
459
|
+
<li
|
|
460
|
+
class="resource-list-item"
|
|
461
|
+
data-resource-id=${t.id}
|
|
462
|
+
notSelectable="false"
|
|
463
|
+
aria-selected="false"
|
|
464
|
+
aria-label=${n}
|
|
465
|
+
about=${t.subject.toNT()}
|
|
466
|
+
role="option"
|
|
467
|
+
tabindex="0"
|
|
468
|
+
.subject=${t.subject}
|
|
469
|
+
@click=${() => this.selectResource(t)}
|
|
470
|
+
@keydown=${(e) => this.handleResourceKeyDown(e, t)}
|
|
471
|
+
>
|
|
472
|
+
<span class="resource-list-main">
|
|
473
|
+
<span class=${t.isContainer ? "resource-list-icon resource-list-icon--container" : "resource-list-icon"} aria-hidden="true">
|
|
474
|
+
${t.isContainer ? u`<icon-lucide-folder></icon-lucide-folder>` : u`<icon-lucide-file></icon-lucide-file>`}
|
|
475
|
+
</span>
|
|
476
|
+
<span class="resource-list-label">${n}</span>
|
|
477
|
+
${r >= 0 ? u`<span class="container-member-count">${e(r)}</span>` : d}
|
|
478
|
+
${this.renderAccessIndicator(t)}
|
|
479
|
+
</span>
|
|
480
|
+
${this.renderResourceActionsMenu(t, "list")}
|
|
481
|
+
</li>
|
|
482
|
+
`;
|
|
483
|
+
}
|
|
484
|
+
renderListView(e) {
|
|
485
|
+
return u`
|
|
486
|
+
<ul class="resource-list" role="listbox" aria-label="Container resources">
|
|
487
|
+
<li class="resource-list-header" role="presentation" aria-hidden="true">
|
|
488
|
+
<span>Name</span>
|
|
489
|
+
<span>Actions</span>
|
|
490
|
+
</li>
|
|
491
|
+
${e.map((e) => this.renderResourceItem(e))}
|
|
492
|
+
</ul>
|
|
493
|
+
`;
|
|
494
|
+
}
|
|
495
|
+
renderGridItem(t) {
|
|
496
|
+
let n = l.label(t.subject), r = t.isContainer && this.memberLoad.get(t.id) === "loaded" ? this.getVisibleMemberCount(t) : -1;
|
|
497
|
+
return u`
|
|
498
|
+
<li
|
|
499
|
+
class="resource-grid-item"
|
|
500
|
+
data-resource-id=${t.id}
|
|
501
|
+
notSelectable="false"
|
|
502
|
+
aria-selected="false"
|
|
503
|
+
aria-label=${n}
|
|
504
|
+
about=${t.subject.toNT()}
|
|
505
|
+
role="option"
|
|
506
|
+
tabindex="0"
|
|
507
|
+
.subject=${t.subject}
|
|
508
|
+
@click=${() => this.selectResource(t)}
|
|
509
|
+
@keydown=${(e) => this.handleResourceKeyDown(e, t)}
|
|
510
|
+
>
|
|
511
|
+
<span class=${t.isContainer ? "resource-grid-icon resource-grid-icon--container" : "resource-grid-icon"} aria-hidden="true">
|
|
512
|
+
${t.isContainer ? u`<icon-lucide-folder></icon-lucide-folder>` : u`<icon-lucide-file></icon-lucide-file>`}
|
|
513
|
+
</span>
|
|
514
|
+
${t.isContainer ? u`<span class="resource-grid-label resource-grid-label--container">${n}</span>` : d}
|
|
515
|
+
<div class="resource-grid-item-footer">
|
|
516
|
+
${t.isContainer && r >= 0 ? u`<span class="container-member-count">${e(r)}</span>` : t.isContainer ? d : u`<span class="resource-grid-label">${n}</span>`}
|
|
517
|
+
${this.renderAccessIndicator(t)}
|
|
518
|
+
</div>
|
|
519
|
+
${this.renderResourceActionsMenu(t, "grid")}
|
|
520
|
+
</li>
|
|
521
|
+
`;
|
|
522
|
+
}
|
|
523
|
+
renderGridView(e) {
|
|
524
|
+
return u`
|
|
525
|
+
<ul class="resource-grid" role="listbox" aria-label="Container resources">
|
|
526
|
+
${e.map((e) => this.renderGridItem(e))}
|
|
527
|
+
</ul>
|
|
528
|
+
`;
|
|
529
|
+
}
|
|
530
|
+
renderEmptyContainer() {
|
|
531
|
+
return this.searchQuery.trim() ? u`
|
|
532
|
+
<div class="folder-pane-container-empty-message" role="status">
|
|
533
|
+
<h2 class="folder-pane-container-empty-message-title">No resources match this search.</h2>
|
|
534
|
+
</div>
|
|
535
|
+
` : u`
|
|
536
|
+
<div class="folder-pane-container-empty-message" role="status">
|
|
537
|
+
<div class="folder-pane-container-empty-message-icon" aria-hidden="true">
|
|
538
|
+
<icon-lucide-file-box></icon-lucide-file-box>
|
|
539
|
+
</div>
|
|
540
|
+
<h2 class="folder-pane-container-empty-message-title">This folder is empty</h2>
|
|
541
|
+
<p class="folder-pane-container-empty-message-body">Resources added to this folder will appear here.</p>
|
|
542
|
+
</div>
|
|
543
|
+
`;
|
|
544
|
+
}
|
|
545
|
+
render() {
|
|
546
|
+
let e = this.visibleResources;
|
|
547
|
+
return u`
|
|
548
|
+
<div class="folder-pane-container-content">
|
|
549
|
+
${this.loadError ? u`<div class="folder-pane-container-error" role="alert">${this.loadError}</div>` : d}
|
|
550
|
+
${this.loading ? u`<div class="folder-pane-container-loading" role="status">Loading resources…</div>` : e.length > 0 ? this.view === "grid" ? this.renderGridView(e) : this.renderListView(e) : this.renderEmptyContainer()}
|
|
551
|
+
</div>
|
|
552
|
+
`;
|
|
553
|
+
}
|
|
554
|
+
}, {e: [te, re, ae, M, P, I, R, B, H, W, K, se, le, k], c: [$, A]} = me(h, [
|
|
555
|
+
[
|
|
556
|
+
ee,
|
|
557
|
+
1,
|
|
558
|
+
"subject"
|
|
559
|
+
],
|
|
560
|
+
[
|
|
561
|
+
ne,
|
|
562
|
+
1,
|
|
563
|
+
"resourceLogic"
|
|
564
|
+
],
|
|
565
|
+
[
|
|
566
|
+
ie,
|
|
567
|
+
1,
|
|
568
|
+
"browserContext"
|
|
569
|
+
],
|
|
570
|
+
[
|
|
571
|
+
oe,
|
|
572
|
+
1,
|
|
573
|
+
"view"
|
|
574
|
+
],
|
|
575
|
+
[
|
|
576
|
+
N,
|
|
577
|
+
1,
|
|
578
|
+
"searchQuery"
|
|
579
|
+
],
|
|
580
|
+
[
|
|
581
|
+
F,
|
|
582
|
+
1,
|
|
583
|
+
"hideRootSpecialFolders"
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
L,
|
|
587
|
+
1,
|
|
588
|
+
"resourceActionMenuItems"
|
|
589
|
+
],
|
|
590
|
+
[
|
|
591
|
+
z,
|
|
592
|
+
1,
|
|
593
|
+
"resources"
|
|
594
|
+
],
|
|
595
|
+
[
|
|
596
|
+
V,
|
|
597
|
+
1,
|
|
598
|
+
"optimisticResources"
|
|
599
|
+
],
|
|
600
|
+
[
|
|
601
|
+
U,
|
|
602
|
+
1,
|
|
603
|
+
"resourceAccess"
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
G,
|
|
607
|
+
1,
|
|
608
|
+
"memberLoad"
|
|
609
|
+
],
|
|
610
|
+
[
|
|
611
|
+
q,
|
|
612
|
+
1,
|
|
613
|
+
"loading"
|
|
614
|
+
],
|
|
615
|
+
[
|
|
616
|
+
ce,
|
|
617
|
+
1,
|
|
618
|
+
"loadError"
|
|
619
|
+
]
|
|
620
|
+
], j, 0, void 0, o), h), m = class extends ve {
|
|
621
|
+
constructor() {
|
|
622
|
+
super($), Z(this, "styles", i), A();
|
|
623
|
+
}
|
|
624
|
+
}, Z(m, ue, void 0), m)();
|
|
625
|
+
export { $ as default };
|
|
626
|
+
|
|
627
|
+
//# sourceMappingURL=FolderPaneContainer.esm.js.map
|