folder-pane 4.0.1-0 → 4.0.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/~icons/lucide/chevron-left.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/chevron-left.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/{trash-2.esm.js → chevron-left.esm.js} +4 -4
- package/dist/_virtual/~icons/lucide/chevron-left.esm.js.map +1 -0
- package/dist/accessCache.cjs.js +2 -0
- package/dist/accessCache.cjs.js.map +1 -0
- package/dist/accessCache.d.ts +37 -0
- package/dist/accessCache.d.ts.map +1 -0
- package/dist/accessCache.esm.js +34 -0
- package/dist/accessCache.esm.js.map +1 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +38 -33
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +27 -5
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +305 -189
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +1 -1
- package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +1 -1
- package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js +2 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js.map +1 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts +16 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts.map +1 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js +293 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js.map +1 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js +2 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js.map +1 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js +6 -0
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js.map +1 -0
- package/dist/components/folder-pane-provider/index.cjs.js +1 -0
- package/dist/components/folder-pane-provider/index.d.ts +2 -0
- package/dist/components/folder-pane-provider/index.d.ts.map +1 -0
- package/dist/components/folder-pane-provider/index.esm.js +1 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +18 -19
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +15 -2
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +237 -108
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +32 -18
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +13 -2
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +191 -84
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js +91 -28
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.d.ts +36 -3
- package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.esm.js +520 -240
- package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -1
- package/dist/components/folder-pane-view/resourceLoad.cjs.js +2 -0
- package/dist/components/folder-pane-view/resourceLoad.cjs.js.map +1 -0
- package/dist/components/folder-pane-view/resourceLoad.d.ts +8 -0
- package/dist/components/folder-pane-view/resourceLoad.d.ts.map +1 -0
- package/dist/components/folder-pane-view/resourceLoad.esm.js +7 -0
- package/dist/components/folder-pane-view/resourceLoad.esm.js.map +1 -0
- package/dist/debug.cjs.js +2 -0
- package/dist/debug.cjs.js.map +1 -0
- package/dist/debug.d.ts +5 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.esm.js +10 -0
- package/dist/debug.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 +13 -0
- package/dist/folderPane.d.ts.map +1 -1
- package/dist/folderPane.esm.js +24 -13
- package/dist/folderPane.esm.js.map +1 -1
- package/dist/helpers.cjs.js +1 -1
- package/dist/helpers.cjs.js.map +1 -1
- package/dist/helpers.d.ts +12 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.esm.js +34 -14
- package/dist/helpers.esm.js.map +1 -1
- package/dist/primitives/context.cjs.js +2 -0
- package/dist/primitives/context.cjs.js.map +1 -0
- package/dist/primitives/context.d.ts +14 -0
- package/dist/primitives/context.d.ts.map +1 -0
- package/dist/primitives/context.esm.js +6 -0
- package/dist/primitives/context.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 +38 -0
- package/dist/requestQueue.d.ts.map +1 -0
- package/dist/requestQueue.esm.js +77 -0
- package/dist/requestQueue.esm.js.map +1 -0
- package/dist/resourceActionItems.cjs.js +2 -0
- package/dist/resourceActionItems.cjs.js.map +1 -0
- package/dist/resourceActionItems.d.ts +20 -0
- package/dist/resourceActionItems.d.ts.map +1 -0
- package/dist/resourceActionItems.esm.js +42 -0
- package/dist/resourceActionItems.esm.js.map +1 -0
- package/package.json +12 -8
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
|
@@ -1,46 +1,51 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resourceAccessCache as e } from "../../accessCache.esm.js";
|
|
2
2
|
import "../folder-pane-container/index.esm.js";
|
|
3
3
|
import "../folder-pane-sidebar/index.esm.js";
|
|
4
4
|
import "../folder-pane-content/index.esm.js";
|
|
5
5
|
import "../folder-pane-storage-header/index.esm.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import "../../_virtual/~icons/lucide/chevron-left.esm.js";
|
|
7
|
+
import { getIndexedApplicationSubject as t, getIndexedContainer as n, getPaneLabel as r, isAccessDeniedError as i, isContainerResource as a, isJavaScriptFile as o } from "../../helpers.esm.js";
|
|
8
|
+
import { invalidateRenderRequest as s, isCurrentRenderRequest as c } from "./renderRequest.esm.js";
|
|
9
|
+
import l from "../folder-pane-storage-header/FolderPaneCreateDialog.esm.js";
|
|
10
|
+
import { invalidCreationNameMessage as u, isSafeCreationName as d } from "../../creationSafety.esm.js";
|
|
11
|
+
import { PaneMintError as f, mintPaneInstance as p, setMintStatus as m } from "../../mintPaneInstance.esm.js";
|
|
12
|
+
import { error as h, warn as g } from "../../debug.esm.js";
|
|
13
|
+
import { clearFailedResource as _ } from "./resourceLoad.esm.js";
|
|
14
|
+
import { FILE_EXPLORER_BACK_EVENT as v, FILE_EXPLORER_OPEN_PANE_EVENT as y, WebComponent as b, aclControl as x, composeExplorer as S, customElement as C, getPreferredPane as w, getRelevantPanes as T, isExplorerEvent as E, log as D, ns as O, preparePaneMenuItems as k, showDialog as A, widgets as j } from "solid-ui";
|
|
15
|
+
import { authSession as M, authn as N } from "solid-logic";
|
|
16
|
+
import { html as P, nothing as ee } from "lit";
|
|
17
|
+
import { property as F, query as I, state as L } from "lit/decorators.js";
|
|
18
|
+
import "solid-ui/components/button";
|
|
14
19
|
import "solid-ui/components/file-explorer-provider";
|
|
15
20
|
import "solid-ui/components/error-state";
|
|
16
21
|
import "solid-ui/components/file-explorer-header";
|
|
17
22
|
// src/components/folder-pane-view/FolderPaneView.ts
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
return (t =
|
|
23
|
+
var te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge, _e, ve, ye, be, xe, Se, Ce, we, Te, Ee, De, Oe, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze;
|
|
24
|
+
function R(e, t, n) {
|
|
25
|
+
return (t = Ue(t)) in e ? Object.defineProperty(e, t, {
|
|
21
26
|
value: n,
|
|
22
27
|
enumerable: !0,
|
|
23
28
|
configurable: !0,
|
|
24
29
|
writable: !0
|
|
25
30
|
}) : e[t] = n, e;
|
|
26
31
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
32
|
+
function z(e, t, n) {
|
|
33
|
+
Be(e, t), t.set(e, n);
|
|
29
34
|
}
|
|
30
|
-
function
|
|
35
|
+
function Be(e, t) {
|
|
31
36
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
32
37
|
}
|
|
33
|
-
function
|
|
34
|
-
return e.set(
|
|
38
|
+
function B(e, t, n) {
|
|
39
|
+
return e.set(Ve(e, t), n), n;
|
|
35
40
|
}
|
|
36
|
-
function
|
|
37
|
-
return e.get(
|
|
41
|
+
function V(e, t) {
|
|
42
|
+
return e.get(Ve(e, t));
|
|
38
43
|
}
|
|
39
|
-
function
|
|
44
|
+
function Ve(e, t, n) {
|
|
40
45
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
41
46
|
throw TypeError("Private element is not present on this object");
|
|
42
47
|
}
|
|
43
|
-
function
|
|
48
|
+
function He(e, t, n, r, i, a) {
|
|
44
49
|
function o(e, t, n) {
|
|
45
50
|
return function(r, i) {
|
|
46
51
|
return n && n(r), e[t].call(r, i);
|
|
@@ -63,13 +68,13 @@ function Ce(e, t, n, r, i, a) {
|
|
|
63
68
|
n || Array.isArray(_) || (_ = [_]);
|
|
64
69
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
65
70
|
d ? (f || p ? b = {
|
|
66
|
-
get:
|
|
71
|
+
get: Ge(function() {
|
|
67
72
|
return v(this);
|
|
68
73
|
}, r, "get"),
|
|
69
74
|
set: function(e) {
|
|
70
75
|
t[4](this, e);
|
|
71
76
|
}
|
|
72
|
-
} : b[S] = v, f ||
|
|
77
|
+
} : b[S] = v, f || Ge(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
73
78
|
}
|
|
74
79
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
75
80
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -129,7 +134,7 @@ function Ce(e, t, n, r, i, a) {
|
|
|
129
134
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
130
135
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
131
136
|
var i, a, o = [], c = function(t) {
|
|
132
|
-
return
|
|
137
|
+
return Ke(t) === e;
|
|
133
138
|
}, u = /* @__PURE__ */ new Map();
|
|
134
139
|
function d(e) {
|
|
135
140
|
e && o.push(s.bind(null, e));
|
|
@@ -143,7 +148,7 @@ function Ce(e, t, n, r, i, a) {
|
|
|
143
148
|
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);
|
|
144
149
|
u.set(b, !(m > 2) || m);
|
|
145
150
|
}
|
|
146
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
151
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Ue(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
147
152
|
}
|
|
148
153
|
}
|
|
149
154
|
return d(i), d(a), o;
|
|
@@ -156,11 +161,11 @@ function Ce(e, t, n, r, i, a) {
|
|
|
156
161
|
}
|
|
157
162
|
};
|
|
158
163
|
}
|
|
159
|
-
function
|
|
160
|
-
var t =
|
|
164
|
+
function Ue(e) {
|
|
165
|
+
var t = We(e, "string");
|
|
161
166
|
return typeof t == "symbol" ? t : t + "";
|
|
162
167
|
}
|
|
163
|
-
function
|
|
168
|
+
function We(e, t) {
|
|
164
169
|
if (typeof e != "object" || !e) return e;
|
|
165
170
|
var n;
|
|
166
171
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -170,7 +175,7 @@ function Te(e, t) {
|
|
|
170
175
|
}
|
|
171
176
|
return (t === "string" ? String : Number)(e);
|
|
172
177
|
}
|
|
173
|
-
function
|
|
178
|
+
function Ge(e, t, n) {
|
|
174
179
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
175
180
|
try {
|
|
176
181
|
Object.defineProperty(e, "name", {
|
|
@@ -180,198 +185,322 @@ function Ee(e, t, n) {
|
|
|
180
185
|
} catch {}
|
|
181
186
|
return e;
|
|
182
187
|
}
|
|
183
|
-
function
|
|
188
|
+
function Ke(e) {
|
|
184
189
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
185
190
|
return e;
|
|
186
191
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
function H(e, t) {
|
|
193
|
+
if (!Number.isFinite(t) || t <= 320) return 256;
|
|
194
|
+
let n = t - 320;
|
|
195
|
+
return n < 180 ? 256 : Math.min(480, n, Math.max(180, Number.isFinite(e) ? e : 256));
|
|
196
|
+
}
|
|
197
|
+
ie = [C("folder-pane-view")];
|
|
198
|
+
var qe, U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), X = /*#__PURE__*/ new WeakMap(), Z = /*#__PURE__*/ new WeakMap(), Q = /*#__PURE__*/ new WeakMap(), Je = /*#__PURE__*/ new WeakMap(), Ye = /*#__PURE__*/ new WeakMap(), Xe = /*#__PURE__*/ new WeakMap(), Ze = /*#__PURE__*/ new WeakMap(), Qe = /*#__PURE__*/ new WeakMap(), $e = /*#__PURE__*/ new WeakMap(), $ = /*#__PURE__*/ new WeakMap();
|
|
199
|
+
ze = (ae = F({ attribute: !1 }), se = F({ attribute: !1 }), le = F({
|
|
190
200
|
type: Boolean,
|
|
191
201
|
attribute: "full-view"
|
|
192
|
-
}),
|
|
193
|
-
constructor(...
|
|
194
|
-
super(...
|
|
195
|
-
this.requestUpdate();
|
|
196
|
-
}),
|
|
197
|
-
if (e.stopPropagation(), this.creationInFlight || !
|
|
202
|
+
}), de = L(), pe = L(), he = L(), _e = L(), ye = L(), xe = L(), Ce = L(), Te = L(), De = L(), ke = L(), je = I("folder-pane-content"), Ne = I(".folder-pane-full-view"), Fe = I("folder-pane-sidebar"), Le = I(".folder-pane-status"), "browserContext"), te = class extends b {
|
|
203
|
+
constructor(...t) {
|
|
204
|
+
super(...t), z(this, U, (ne(this), oe(this, void 0))), z(this, W, ce(this, void 0)), z(this, G, ue(this, !1)), z(this, K, fe(this, void 0)), z(this, q, me(this, void 0)), z(this, J, ge(this, "grid")), z(this, Y, ve(this, "")), z(this, X, be(this, !1)), z(this, Z, Se(this, 256)), z(this, Q, we(this, 480)), z(this, Je, Ee(this, void 0)), z(this, Ye, Oe(this, !1)), z(this, Xe, Ae(this, !1)), R(this, "initialLoadGeneration", 0), R(this, "renderGeneration", 0), R(this, "permissionGeneration", 0), R(this, "permissionRequest", void 0), R(this, "creationInFlight", !1), R(this, "authListenersAttached", !1), R(this, "dropProtectionAttached", !1), R(this, "sidebarResizeObserver", void 0), R(this, "responsiveLayoutInitialized", !1), R(this, "sidebarDrag", void 0), z(this, Ze, Me(this, null)), z(this, Qe, Pe(this, null)), z(this, $e, Ie(this, null)), z(this, $, Re(this, null)), R(this, "handleAuthChange", () => {
|
|
205
|
+
e.clear(), this.refreshCreationPermission(!0), this.requestUpdate();
|
|
206
|
+
}), R(this, "handleCreatePane", async (e) => {
|
|
207
|
+
if (e.stopPropagation(), this.creationInFlight || !N.currentUser()) return;
|
|
198
208
|
let t = e.detail?.pane;
|
|
199
209
|
if (!t?.mintNew) return;
|
|
200
|
-
let
|
|
201
|
-
if (!
|
|
210
|
+
let n = this.getActiveContainer(), i = this.ownerDocument, a = this.statusArea;
|
|
211
|
+
if (!n || !a) return;
|
|
202
212
|
this.creationInFlight = !0;
|
|
203
|
-
let o = ++this.renderGeneration, s =
|
|
213
|
+
let o = ++this.renderGeneration, s = r(t);
|
|
204
214
|
try {
|
|
205
215
|
let e = await new Promise((e) => {
|
|
206
|
-
|
|
216
|
+
A(l, {
|
|
207
217
|
props: { label: s },
|
|
208
218
|
onClose: e
|
|
209
219
|
});
|
|
210
220
|
});
|
|
211
|
-
if (!e || !
|
|
212
|
-
if (!
|
|
213
|
-
|
|
221
|
+
if (!e || !N.currentUser() || o !== this.renderGeneration || this.getActiveContainer()?.sameTerm(n) !== !0) return;
|
|
222
|
+
if (!d(e)) {
|
|
223
|
+
m(a, "error", u);
|
|
214
224
|
return;
|
|
215
225
|
}
|
|
216
226
|
this.clearContentForCreation();
|
|
217
|
-
let
|
|
227
|
+
let r = await p({
|
|
218
228
|
context: this.browserContext,
|
|
219
|
-
container:
|
|
229
|
+
container: n,
|
|
220
230
|
pane: t,
|
|
221
231
|
name: e,
|
|
222
232
|
noun: s,
|
|
223
233
|
statusArea: a,
|
|
224
|
-
me:
|
|
234
|
+
me: N.currentUser() ?? void 0,
|
|
225
235
|
dom: i
|
|
226
|
-
}),
|
|
236
|
+
}), c = o === this.renderGeneration && this.getActiveContainer()?.sameTerm(n) === !0;
|
|
227
237
|
await this.showCreatedResource({
|
|
228
|
-
container:
|
|
229
|
-
...
|
|
238
|
+
container: n,
|
|
239
|
+
...r,
|
|
230
240
|
pane: t,
|
|
231
|
-
newInstance:
|
|
241
|
+
newInstance: c ? r.newInstance : void 0
|
|
232
242
|
});
|
|
233
243
|
} catch (e) {
|
|
234
|
-
|
|
244
|
+
h("Unable to create folder-pane resource", e), !(e instanceof f) && this.statusArea && m(this.statusArea, "error", `Unable to create ${s}: ${e instanceof Error ? e.message : String(e)}`);
|
|
235
245
|
} finally {
|
|
236
246
|
this.creationInFlight = !1;
|
|
237
247
|
}
|
|
238
|
-
}),
|
|
239
|
-
if (e.stopPropagation(), this.creationInFlight || !
|
|
248
|
+
}), R(this, "handleUpload", (e) => {
|
|
249
|
+
if (e.stopPropagation(), this.creationInFlight || !N.currentUser()) return;
|
|
240
250
|
let t = this.getActiveContainer(), n = this.statusArea;
|
|
241
251
|
if (!t || !n || !this.store) return;
|
|
242
252
|
let r = this.ownerDocument.createElement("input");
|
|
243
253
|
r.type = "file", r.multiple = !0, r.addEventListener("change", () => {
|
|
244
|
-
let e = Array.from(r.files ?? []), i = e.filter((e) =>
|
|
245
|
-
if (e.filter((e) => !
|
|
254
|
+
let e = Array.from(r.files ?? []), i = e.filter((e) => d(e.name));
|
|
255
|
+
if (e.filter((e) => !d(e.name)).forEach((e) => m(n, "error", `${e.name}: ${u}`)), !i.length) return;
|
|
246
256
|
this.creationInFlight = !0;
|
|
247
|
-
let a = i.length,
|
|
248
|
-
|
|
249
|
-
let
|
|
250
|
-
|
|
257
|
+
let a = this.renderGeneration, o = this.browserContext, s = i.length, c = Promise.resolve();
|
|
258
|
+
m(n, "progress", `Uploading ${i.length} file${i.length === 1 ? "" : "s"}`);
|
|
259
|
+
let l = () => {
|
|
260
|
+
s--, s === 0 && (this.creationInFlight = !1, n.dataset.status === "progress" && n.replaceChildren());
|
|
251
261
|
};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
262
|
+
j.uploadFiles(this.store.fetcher, i, t.uri, t.uri, (e, n) => {
|
|
263
|
+
c = c.then(() => {
|
|
264
|
+
let e = this.renderGeneration === a && this.browserContext === o;
|
|
265
|
+
return this.showCreatedResource({
|
|
266
|
+
container: t,
|
|
267
|
+
containedResource: this.store.sym(n),
|
|
268
|
+
newInstance: i.length === 1 && e ? this.store.sym(n) : void 0
|
|
269
|
+
});
|
|
270
|
+
}).finally(l);
|
|
257
271
|
}, (e, t) => {
|
|
258
|
-
|
|
272
|
+
m(n, "error", t), l();
|
|
259
273
|
});
|
|
260
274
|
}), r.click();
|
|
261
|
-
}),
|
|
275
|
+
}), R(this, "clearContentError", () => {
|
|
262
276
|
this.contentError = void 0;
|
|
263
|
-
}),
|
|
264
|
-
let e = this.
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
}), R(this, "retryContent", () => {
|
|
278
|
+
let e = this.contentError?.retry;
|
|
279
|
+
if (e) {
|
|
280
|
+
this.clearContentError(), e();
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
let t = this.selectedResource, n = this.subject;
|
|
284
|
+
(t || n) && (this.clearContentError(), t ? this.showResourceInContentView(t, void 0, !1, !0) : n && (this.store && _(this.store.fetcher, n), this.showInitialContainer(n)));
|
|
285
|
+
}), R(this, "handleResourceSelected", (e) => {
|
|
267
286
|
let t = e.detail?.resource;
|
|
268
287
|
t && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t));
|
|
269
|
-
}),
|
|
288
|
+
}), R(this, "handleResourceOpenPane", (e) => {
|
|
270
289
|
let t = e.detail?.resource, n = e.detail?.paneName, r = n ? this.browserContext?.session.paneRegistry.byName(n) : void 0;
|
|
271
|
-
t && r && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t, typeof r?.render == "function" ? r : void 0));
|
|
272
|
-
}),
|
|
273
|
-
this.searchQuery = ""
|
|
274
|
-
|
|
290
|
+
t && r && (e.stopPropagation(), this.searchQuery = "", r.name === "folder" ? this.showSubject(t, r) : this.showSubject(t, typeof r?.render == "function" ? r : void 0));
|
|
291
|
+
}), R(this, "handleSelectHome", () => {
|
|
292
|
+
this.searchQuery = "";
|
|
293
|
+
let e = this.subject && this.standaloneBreadcrumbRoot?.sameTerm(this.subject) ? this.subject : this.standaloneBreadcrumbRoot;
|
|
294
|
+
e && this.showSubject(e);
|
|
295
|
+
}), R(this, "handleSearch", (e) => {
|
|
275
296
|
e.stopPropagation(), this.searchQuery = e.detail?.query || "";
|
|
276
297
|
let t = this.resourceTarget?.querySelector("folder-pane-container");
|
|
277
298
|
t && (t.searchQuery = this.searchQuery);
|
|
278
|
-
}),
|
|
299
|
+
}), R(this, "handleSelectBreadcrumbResource", (e) => {
|
|
279
300
|
let t = e.detail?.resource;
|
|
280
301
|
t && (e.stopPropagation(), this.showSubject(t));
|
|
281
|
-
}),
|
|
302
|
+
}), R(this, "handleContainerViewChange", (e) => {
|
|
282
303
|
let t = e.detail?.view;
|
|
283
304
|
t && (e.stopPropagation(), this.setContainerView(t));
|
|
305
|
+
}), R(this, "updateSidebarBounds", () => {
|
|
306
|
+
this.isConnected && (this.sidebarMaximumWidth = H(480, this.sidebarAvailableWidth), this.resizeSidebar(this.sidebarWidth));
|
|
307
|
+
}), R(this, "handleSidebarPointerDown", (e) => {
|
|
308
|
+
if (!this.isConnected || this.sidebarCollapsed || this.sidebarDrag || e.button !== 0 || !e.isPrimary) return;
|
|
309
|
+
e.preventDefault();
|
|
310
|
+
let t = e.currentTarget;
|
|
311
|
+
t.setPointerCapture(e.pointerId), t.focus(), this.sidebarDrag = {
|
|
312
|
+
separator: t,
|
|
313
|
+
pointerId: e.pointerId,
|
|
314
|
+
startX: e.clientX,
|
|
315
|
+
startWidth: this.sidebarWidth
|
|
316
|
+
}, this.requestUpdate();
|
|
317
|
+
}), R(this, "handleSidebarPointerMove", (e) => {
|
|
318
|
+
let t = this.sidebarDrag;
|
|
319
|
+
this.isConnected && !this.sidebarCollapsed && t && t.pointerId === e.pointerId && this.resizeSidebar(t.startWidth + e.clientX - t.startX);
|
|
320
|
+
}), R(this, "handleSidebarPointerEnd", (e) => {
|
|
321
|
+
this.sidebarDrag?.pointerId === e.pointerId && this.finishSidebarResize();
|
|
322
|
+
}), R(this, "handleSidebarResizeKey", (e) => {
|
|
323
|
+
if (!this.isConnected || this.sidebarCollapsed || this.sidebarDrag || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
324
|
+
let t;
|
|
325
|
+
switch (e.key) {
|
|
326
|
+
case "ArrowLeft":
|
|
327
|
+
t = this.sidebarWidth - 16;
|
|
328
|
+
break;
|
|
329
|
+
case "ArrowRight":
|
|
330
|
+
t = this.sidebarWidth + 16;
|
|
331
|
+
break;
|
|
332
|
+
case "Home":
|
|
333
|
+
t = 180;
|
|
334
|
+
break;
|
|
335
|
+
case "End":
|
|
336
|
+
t = 480;
|
|
337
|
+
break;
|
|
338
|
+
default: return;
|
|
339
|
+
}
|
|
340
|
+
e.preventDefault(), e.stopPropagation(), this.resizeSidebar(t);
|
|
341
|
+
}), R(this, "handleSidebarToggle", async (e) => {
|
|
342
|
+
e.stopPropagation();
|
|
343
|
+
let t = this.sidebar, n = this.renderRoot.querySelector(".folder-pane-sidebar-resize-handle"), r = !!t && (t.matches(":focus-within") || t.shadowRoot?.activeElement != null), i = n === this.ownerDocument.activeElement;
|
|
344
|
+
this.finishSidebarResize(), this.sidebarCollapsed = !this.sidebarCollapsed, this.sidebarCollapsed && (r || i) && (await this.updateComplete, this.renderRoot.querySelector(".folder-pane-sidebar-toggle")?.focus());
|
|
345
|
+
}), R(this, "handleFolderPaneResourceError", (e) => {
|
|
346
|
+
e.stopPropagation();
|
|
347
|
+
let t = e.detail?.title || "Unable to load this folder", n = e.detail?.message || "The folder could not be loaded. Try again.";
|
|
348
|
+
this.showContentError({
|
|
349
|
+
title: t,
|
|
350
|
+
message: n,
|
|
351
|
+
retry: e.detail?.retry
|
|
352
|
+
}, !1);
|
|
284
353
|
});
|
|
285
354
|
}
|
|
286
|
-
get [
|
|
287
|
-
return
|
|
355
|
+
get [ze]() {
|
|
356
|
+
return V(U, this);
|
|
288
357
|
}
|
|
289
358
|
set browserContext(e) {
|
|
290
|
-
|
|
359
|
+
B(U, this, e);
|
|
291
360
|
}
|
|
292
361
|
get store() {
|
|
293
362
|
return this.browserContext?.session.store;
|
|
294
363
|
}
|
|
295
364
|
get subject() {
|
|
296
|
-
return
|
|
365
|
+
return V(W, this);
|
|
297
366
|
}
|
|
298
367
|
set subject(e) {
|
|
299
|
-
|
|
368
|
+
B(W, this, e);
|
|
300
369
|
}
|
|
301
370
|
get resourceLogic() {
|
|
302
371
|
return this.browserContext?.session.logic.resource;
|
|
303
372
|
}
|
|
373
|
+
get displayedResource() {
|
|
374
|
+
return this.selectedResource ?? this.subject;
|
|
375
|
+
}
|
|
304
376
|
get fullView() {
|
|
305
|
-
return
|
|
377
|
+
return V(G, this);
|
|
306
378
|
}
|
|
307
379
|
set fullView(e) {
|
|
308
|
-
|
|
380
|
+
B(G, this, e);
|
|
309
381
|
}
|
|
310
382
|
get selectedResource() {
|
|
311
|
-
return
|
|
383
|
+
return V(K, this);
|
|
312
384
|
}
|
|
313
385
|
set selectedResource(e) {
|
|
314
|
-
|
|
386
|
+
B(K, this, e);
|
|
387
|
+
}
|
|
388
|
+
get standaloneBreadcrumbRoot() {
|
|
389
|
+
return V(q, this);
|
|
390
|
+
}
|
|
391
|
+
set standaloneBreadcrumbRoot(e) {
|
|
392
|
+
B(q, this, e);
|
|
315
393
|
}
|
|
316
394
|
get containerView() {
|
|
317
|
-
return
|
|
395
|
+
return V(J, this);
|
|
318
396
|
}
|
|
319
397
|
set containerView(e) {
|
|
320
|
-
|
|
398
|
+
B(J, this, e);
|
|
321
399
|
}
|
|
322
400
|
get searchQuery() {
|
|
323
|
-
return
|
|
401
|
+
return V(Y, this);
|
|
324
402
|
}
|
|
325
403
|
set searchQuery(e) {
|
|
326
|
-
|
|
404
|
+
B(Y, this, e);
|
|
405
|
+
}
|
|
406
|
+
get sidebarCollapsed() {
|
|
407
|
+
return V(X, this);
|
|
408
|
+
}
|
|
409
|
+
set sidebarCollapsed(e) {
|
|
410
|
+
B(X, this, e);
|
|
411
|
+
}
|
|
412
|
+
get sidebarWidth() {
|
|
413
|
+
return V(Z, this);
|
|
414
|
+
}
|
|
415
|
+
set sidebarWidth(e) {
|
|
416
|
+
B(Z, this, e);
|
|
417
|
+
}
|
|
418
|
+
get sidebarMaximumWidth() {
|
|
419
|
+
return V(Q, this);
|
|
420
|
+
}
|
|
421
|
+
set sidebarMaximumWidth(e) {
|
|
422
|
+
B(Q, this, e);
|
|
327
423
|
}
|
|
328
424
|
get contentError() {
|
|
329
|
-
return
|
|
425
|
+
return V(Je, this);
|
|
330
426
|
}
|
|
331
427
|
set contentError(e) {
|
|
332
|
-
|
|
428
|
+
B(Je, this, e);
|
|
429
|
+
}
|
|
430
|
+
get showingContainer() {
|
|
431
|
+
return V(Ye, this);
|
|
432
|
+
}
|
|
433
|
+
set showingContainer(e) {
|
|
434
|
+
B(Ye, this, e);
|
|
435
|
+
}
|
|
436
|
+
get canCreate() {
|
|
437
|
+
return V(Xe, this);
|
|
438
|
+
}
|
|
439
|
+
set canCreate(e) {
|
|
440
|
+
B(Xe, this, e);
|
|
333
441
|
}
|
|
334
442
|
get contentView() {
|
|
335
|
-
return
|
|
443
|
+
return V(Ze, this);
|
|
336
444
|
}
|
|
337
445
|
set contentView(e) {
|
|
338
|
-
|
|
446
|
+
B(Ze, this, e);
|
|
339
447
|
}
|
|
340
448
|
get fullViewTarget() {
|
|
341
|
-
return
|
|
449
|
+
return V(Qe, this);
|
|
342
450
|
}
|
|
343
451
|
set fullViewTarget(e) {
|
|
344
|
-
|
|
452
|
+
B(Qe, this, e);
|
|
345
453
|
}
|
|
346
454
|
get sidebar() {
|
|
347
|
-
return
|
|
455
|
+
return V($e, this);
|
|
348
456
|
}
|
|
349
457
|
set sidebar(e) {
|
|
350
|
-
|
|
458
|
+
B($e, this, e);
|
|
351
459
|
}
|
|
352
460
|
get statusArea() {
|
|
353
|
-
return
|
|
461
|
+
return V($, this);
|
|
354
462
|
}
|
|
355
463
|
set statusArea(e) {
|
|
356
|
-
|
|
464
|
+
B($, this, e);
|
|
357
465
|
}
|
|
358
466
|
createRenderRoot() {
|
|
359
467
|
return this;
|
|
360
468
|
}
|
|
361
469
|
connectedCallback() {
|
|
362
|
-
super.connectedCallback()
|
|
470
|
+
super.connectedCallback();
|
|
471
|
+
let e = this.querySelector(".folder-pane-main-content");
|
|
472
|
+
e && this.sidebarResizeObserver?.observe(e), this.dropProtectionAttached ||= (x.preventBrowserDropEvents(this.ownerDocument), !0), this.addEventListener("folder-pane-create-pane", this.handleCreatePane), this.addEventListener("folder-pane-upload", this.handleUpload), this.addEventListener("resource-open-pane", this.handleResourceOpenPane), this.authListenersAttached ||= (M.events.on("login", this.handleAuthChange), M.events.on("logout", this.handleAuthChange), !0);
|
|
363
473
|
}
|
|
364
474
|
disconnectedCallback() {
|
|
365
|
-
this.renderGeneration =
|
|
475
|
+
this.finishSidebarResize(), this.sidebarResizeObserver?.disconnect(), this.renderGeneration = s(this.renderGeneration), this.initialLoadGeneration++, this.removeEventListener("folder-pane-create-pane", this.handleCreatePane), this.removeEventListener("folder-pane-upload", this.handleUpload), this.removeEventListener("resource-open-pane", this.handleResourceOpenPane), this.authListenersAttached &&= (M.events.off("login", this.handleAuthChange), M.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback();
|
|
476
|
+
}
|
|
477
|
+
firstUpdated() {
|
|
478
|
+
if (this.updateSidebarBounds(), typeof ResizeObserver < "u") {
|
|
479
|
+
this.sidebarResizeObserver = new ResizeObserver((e) => {
|
|
480
|
+
this.updateSidebarBounds();
|
|
481
|
+
let t = e[0]?.contentRect.width ?? 0;
|
|
482
|
+
this.responsiveLayoutInitialized || t <= 0 || (this.responsiveLayoutInitialized = !0, t < 768 && this.handleSidebarToggle(new Event("folder-pane-responsive-collapse")));
|
|
483
|
+
});
|
|
484
|
+
let e = this.querySelector(".folder-pane-main-content");
|
|
485
|
+
e && this.sidebarResizeObserver.observe(e), this.sidebarResizeObserver.observe(this);
|
|
486
|
+
}
|
|
366
487
|
}
|
|
367
488
|
updated(e) {
|
|
368
|
-
(e.has("subject") || e.has("browserContext")) && this.subject ? ((e.has("subject") || e.has("browserContext")) && (this.selectedResource = void 0, this.renderGeneration++, this.initialLoadGeneration++), this.showInitialContainer(this.subject)) : e.has("fullView") && e.get("fullView") !== void 0 && (this.selectedResource ? this.showResourceInContentView(this.selectedResource) : this.subject && this.renderContainerView(this.subject));
|
|
489
|
+
(e.has("subject") || e.has("browserContext")) && this.subject ? (this.standaloneBreadcrumbRoot = this.fullView ? this.getStandaloneBreadcrumbRoot(this.subject) : this.subject, (e.has("subject") || e.has("browserContext")) && (this.selectedResource = void 0, this.renderGeneration++, this.initialLoadGeneration++), this.refreshCreationPermission(), this.showInitialContainer(this.subject)) : (e.has("selectedResource") && this.refreshCreationPermission(), e.has("fullView") && e.get("fullView") !== void 0 && (this.subject && (this.standaloneBreadcrumbRoot = this.fullView ? this.getStandaloneBreadcrumbRoot(this.subject) : this.subject), this.selectedResource ? this.showResourceInContentView(this.selectedResource) : this.subject && this.renderContainerView(this.subject)));
|
|
490
|
+
}
|
|
491
|
+
getStandaloneBreadcrumbRoot(e) {
|
|
492
|
+
try {
|
|
493
|
+
let t = new URL(e.uri), n = t.pathname.split("/").filter(Boolean);
|
|
494
|
+
return n.length <= 1 ? e : this.store?.sym(`${t.origin}/${n[0]}/`) ?? e;
|
|
495
|
+
} catch {
|
|
496
|
+
return e;
|
|
497
|
+
}
|
|
369
498
|
}
|
|
370
499
|
get resourceTarget() {
|
|
371
500
|
return this.fullView ? this.fullViewTarget : this.contentView;
|
|
372
501
|
}
|
|
373
|
-
showContentError(e) {
|
|
374
|
-
this.resourceTarget?.replaceChildren(), this.contentError = e;
|
|
502
|
+
showContentError(e, t = !0) {
|
|
503
|
+
t && this.resourceTarget?.replaceChildren(), this.contentError = e;
|
|
375
504
|
}
|
|
376
505
|
renderAccessDeniedScreen() {
|
|
377
506
|
this.showContentError({
|
|
@@ -379,6 +508,21 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
379
508
|
message: "You do not have access to the contents of this container."
|
|
380
509
|
});
|
|
381
510
|
}
|
|
511
|
+
async loadResource(e, t = !1) {
|
|
512
|
+
let n = this.store;
|
|
513
|
+
if (!n) return;
|
|
514
|
+
let r = n.fetcher;
|
|
515
|
+
t && _(r, e);
|
|
516
|
+
try {
|
|
517
|
+
await r.load(e);
|
|
518
|
+
} catch (n) {
|
|
519
|
+
if (!t || !i(n) || !N.currentUser()) throw n;
|
|
520
|
+
await r.load(e, {
|
|
521
|
+
force: !0,
|
|
522
|
+
clearPreviousData: !0
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
}
|
|
382
526
|
openCreatedResource(e, t) {
|
|
383
527
|
this.searchQuery = "";
|
|
384
528
|
let n = t?.name ? this.browserContext?.session.paneRegistry.byName(t.name) ?? t : t;
|
|
@@ -386,10 +530,23 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
386
530
|
}
|
|
387
531
|
getActiveContainer() {
|
|
388
532
|
let e = this.selectedResource;
|
|
389
|
-
if (e && this.resourceLogic &&
|
|
390
|
-
let t = this.subject, n = e?.dir(), r = t?.uri.endsWith("/") ? t.uri : `${t?.uri}/`;
|
|
533
|
+
if (e && this.resourceLogic && a(e, this.resourceLogic)) return e;
|
|
534
|
+
let t = this.fullView ? this.standaloneBreadcrumbRoot : this.subject, n = e?.dir(), r = t?.uri.endsWith("/") ? t.uri : `${t?.uri}/`;
|
|
391
535
|
return t && n && r && n.uri.startsWith(r) ? n : this.subject;
|
|
392
536
|
}
|
|
537
|
+
refreshCreationPermission(e = !1) {
|
|
538
|
+
let t = this.getActiveContainer(), n = this.browserContext?.session.logic.resource;
|
|
539
|
+
if (!e && t && n && this.permissionRequest?.containerUri === t.uri && this.permissionRequest.resourceLogic === n) return;
|
|
540
|
+
let r = ++this.permissionGeneration;
|
|
541
|
+
this.canCreate = !1, this.permissionRequest = t && n ? {
|
|
542
|
+
containerUri: t.uri,
|
|
543
|
+
resourceLogic: n
|
|
544
|
+
} : void 0, t && n && n.fetchMetadata(t).then((e) => {
|
|
545
|
+
r === this.permissionGeneration && this.getActiveContainer()?.sameTerm(t) === !0 && (this.canCreate = e.access.canEdit);
|
|
546
|
+
}).catch((e) => {
|
|
547
|
+
r === this.permissionGeneration && (this.permissionRequest = void 0, g("Unable to determine folder creation permission", e));
|
|
548
|
+
});
|
|
549
|
+
}
|
|
393
550
|
clearContentForCreation() {
|
|
394
551
|
this.resourceTarget?.replaceChildren();
|
|
395
552
|
}
|
|
@@ -403,12 +560,12 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
403
560
|
clearPreviousData: !0
|
|
404
561
|
}), !0;
|
|
405
562
|
} catch (t) {
|
|
406
|
-
return
|
|
563
|
+
return D.warn("Unable to reload " + e.uri + ": " + t), !1;
|
|
407
564
|
}
|
|
408
565
|
}, c = await s(e);
|
|
409
566
|
if (t.uri.endsWith("/")) {
|
|
410
567
|
await s(t);
|
|
411
|
-
let e = i.each(t,
|
|
568
|
+
let e = i.each(t, O.ldp("contains"), void 0, t.doc());
|
|
412
569
|
for (let t of e) t.termType === "NamedNode" && i.fetcher.getState(t.value) === "failed" && i.fetcher.unload(t);
|
|
413
570
|
}
|
|
414
571
|
this.sidebar?.refreshResources?.(e);
|
|
@@ -420,45 +577,37 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
420
577
|
if (!t) return;
|
|
421
578
|
this.contentError = void 0;
|
|
422
579
|
let n = document.createElement("folder-pane-container");
|
|
423
|
-
n.subject = e, n.resourceLogic = this.resourceLogic ?? null, n.browserContext = this.browserContext, n.view = this.containerView, n.searchQuery = this.searchQuery,
|
|
580
|
+
n.subject = e, n.resourceLogic = this.resourceLogic ?? null, n.browserContext = this.browserContext, n.view = this.containerView, n.searchQuery = this.searchQuery, this.showingContainer = !0, t.replaceChildren(n);
|
|
424
581
|
}
|
|
425
582
|
async showInitialContainer(e) {
|
|
426
583
|
let t = ++this.initialLoadGeneration;
|
|
427
|
-
if (
|
|
584
|
+
if (o(e)) this.showSubject(e);
|
|
428
585
|
else if (this.store && this.resourceLogic) {
|
|
429
586
|
try {
|
|
430
|
-
await this.
|
|
587
|
+
await this.loadResource(e);
|
|
431
588
|
} catch (n) {
|
|
432
589
|
if (t !== this.initialLoadGeneration || !this.subject?.sameTerm(e)) return;
|
|
433
|
-
if (
|
|
590
|
+
if (i(n)) {
|
|
434
591
|
this.resourceTarget && this.renderAccessDeniedScreen();
|
|
435
592
|
return;
|
|
436
593
|
}
|
|
437
|
-
|
|
594
|
+
D.error("Unable to load storage container: " + n), this.showContentError({
|
|
438
595
|
title: "Unable to load this folder",
|
|
439
596
|
message: "The folder could not be loaded. Try again."
|
|
440
597
|
});
|
|
441
598
|
return;
|
|
442
599
|
}
|
|
443
|
-
t === this.initialLoadGeneration && this.subject?.sameTerm(e) && (this.sidebar?.refreshResources?.(), this.selectedResource || this.showSubject(e));
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
getPaneForSubject(e, t) {
|
|
447
|
-
let n = this.store && (this.store.any(e, C.ui("mintClass"), void 0, e.doc()) || this.store.any(e.doc(), C.ui("mintClass"), void 0, e.doc()));
|
|
448
|
-
if (n) {
|
|
449
|
-
let e = t.find((e) => e.mintClass?.sameTerm(n));
|
|
450
|
-
if (e) return e;
|
|
600
|
+
t === this.initialLoadGeneration && this.subject?.sameTerm(e) && (this.sidebar?.refreshResources?.(), this.requestUpdate(), this.selectedResource || this.showSubject(e));
|
|
451
601
|
}
|
|
452
|
-
return t.find((t) => t.shouldGetFocus?.(e)) || t[0];
|
|
453
602
|
}
|
|
454
603
|
async renderExplorerInto(e, t, n, r = {}) {
|
|
455
604
|
if (!this.browserContext) return;
|
|
456
|
-
let i = await
|
|
605
|
+
let i = await T(t, this.browserContext, {
|
|
457
606
|
excludedPaneNames: ["sharing"],
|
|
458
607
|
fallbackPaneName: "internal"
|
|
459
608
|
});
|
|
460
609
|
if (r.isCurrent && !r.isCurrent()) return;
|
|
461
|
-
let a = n ||
|
|
610
|
+
let a = n || w(t, this.browserContext, i);
|
|
462
611
|
if (!a) {
|
|
463
612
|
this.renderExplorerError(t, "No pane is available to display this resource.");
|
|
464
613
|
return;
|
|
@@ -467,29 +616,31 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
467
616
|
try {
|
|
468
617
|
o = a.render(t, this.browserContext, r.paneOptions || {});
|
|
469
618
|
} catch (e) {
|
|
470
|
-
|
|
619
|
+
D.error("Unable to render selected pane: " + e), this.renderExplorerError(t, "The selected pane could not render this resource.");
|
|
471
620
|
return;
|
|
472
621
|
}
|
|
473
|
-
let
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
622
|
+
let s = e.ownerDocument.createElement("solid-ui-file-explorer-provider"), l = await k({
|
|
623
|
+
subject: t,
|
|
624
|
+
context: this.browserContext,
|
|
625
|
+
panes: i,
|
|
626
|
+
openPane: (e, t) => {
|
|
627
|
+
s.dispatchEvent(new CustomEvent(y, {
|
|
628
|
+
bubbles: !0,
|
|
629
|
+
composed: !0,
|
|
630
|
+
detail: {
|
|
631
|
+
subjectUri: e.uri,
|
|
632
|
+
paneName: t
|
|
633
|
+
}
|
|
634
|
+
}));
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
s.addEventListener(v, (e) => {
|
|
638
|
+
if (!E(e, s)) return;
|
|
639
|
+
e.stopPropagation();
|
|
640
|
+
let n = this.getActiveContainer() || this.subject || t;
|
|
641
|
+
this.renderGeneration++, this.selectedResource = n, this.renderContainerView(n);
|
|
642
|
+
}), s.addEventListener(y, (n) => {
|
|
643
|
+
if (!E(n, s)) return;
|
|
493
644
|
n.stopPropagation();
|
|
494
645
|
let i = n.detail?.paneName, a = i ? this.browserContext?.session.paneRegistry.byName(i) : void 0;
|
|
495
646
|
if (a) {
|
|
@@ -500,12 +651,17 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
500
651
|
};
|
|
501
652
|
this.renderExplorerInto(e, t, a, {
|
|
502
653
|
...r,
|
|
503
|
-
|
|
654
|
+
paneOptions: a.name === "folder" ? {
|
|
655
|
+
folderView: "container",
|
|
656
|
+
fullView: !0,
|
|
657
|
+
solo: !0
|
|
658
|
+
} : r.paneOptions,
|
|
659
|
+
isCurrent: () => c(n, this.renderGeneration, this.selectedResource?.uri, this.browserContext)
|
|
504
660
|
}).catch((e) => {
|
|
505
|
-
|
|
661
|
+
D.error("Unable to switch selected pane: " + e);
|
|
506
662
|
});
|
|
507
663
|
}
|
|
508
|
-
}),
|
|
664
|
+
}), S(s, {
|
|
509
665
|
context: this.browserContext,
|
|
510
666
|
subjectUri: t.uri,
|
|
511
667
|
pane: a,
|
|
@@ -515,7 +671,7 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
515
671
|
menuItems: l
|
|
516
672
|
},
|
|
517
673
|
paneElement: o
|
|
518
|
-
}), (!r.isCurrent || r.isCurrent()) && (this.contentError = void 0, e.replaceChildren(
|
|
674
|
+
}), (!r.isCurrent || r.isCurrent()) && (this.contentError = void 0, this.showingContainer = !1, e.replaceChildren(s));
|
|
519
675
|
}
|
|
520
676
|
renderExplorerError(e, t) {
|
|
521
677
|
this.showContentError({
|
|
@@ -523,138 +679,232 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
523
679
|
message: e.uri
|
|
524
680
|
});
|
|
525
681
|
}
|
|
526
|
-
async showResourceInContentView(
|
|
527
|
-
let
|
|
682
|
+
async showResourceInContentView(e, n, r = !1, s = !1) {
|
|
683
|
+
let l = ++this.renderGeneration;
|
|
528
684
|
try {
|
|
529
|
-
let
|
|
530
|
-
if (!
|
|
531
|
-
let
|
|
532
|
-
generation:
|
|
533
|
-
subjectUri:
|
|
685
|
+
let u = this.resourceTarget, d = this.browserContext;
|
|
686
|
+
if (!u || !this.store || !this.resourceLogic || !d) return;
|
|
687
|
+
let f = {
|
|
688
|
+
generation: l,
|
|
689
|
+
subjectUri: e.uri,
|
|
534
690
|
context: this.browserContext
|
|
535
|
-
},
|
|
536
|
-
if (!
|
|
537
|
-
if (this.subject?.sameTerm(
|
|
538
|
-
this.renderContainerView(
|
|
691
|
+
}, p = (e) => c(f, this.renderGeneration, this.selectedResource?.uri, this.browserContext) && e.uri === f.subjectUri;
|
|
692
|
+
if (!p(e)) return;
|
|
693
|
+
if (this.subject?.sameTerm(e) && !n && !r && a(e, this.resourceLogic)) {
|
|
694
|
+
this.renderContainerView(e);
|
|
539
695
|
return;
|
|
540
696
|
}
|
|
541
|
-
if (
|
|
697
|
+
if (a(e, this.resourceLogic) && (n?.name !== "source" || r)) {
|
|
542
698
|
try {
|
|
543
|
-
await this.
|
|
544
|
-
} catch (
|
|
545
|
-
if (!
|
|
546
|
-
if (
|
|
699
|
+
await this.loadResource(e, s);
|
|
700
|
+
} catch (t) {
|
|
701
|
+
if (!p(e)) return;
|
|
702
|
+
if (i(t)) {
|
|
547
703
|
this.renderAccessDeniedScreen();
|
|
548
704
|
return;
|
|
549
705
|
}
|
|
550
|
-
|
|
706
|
+
D.error("Unable to load selected container: " + t), this.showContentError({
|
|
551
707
|
title: "Unable to load this folder",
|
|
552
708
|
message: "The folder could not be loaded. Try again."
|
|
553
709
|
});
|
|
554
710
|
return;
|
|
555
711
|
}
|
|
556
|
-
if (!
|
|
557
|
-
if (this.sidebar?.refreshResources?.(),
|
|
558
|
-
|
|
712
|
+
if (!p(e)) return;
|
|
713
|
+
if (this.sidebar?.refreshResources?.(), n?.name === "folder") {
|
|
714
|
+
this.renderContainerView(e);
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
if (n?.name !== "sharing" && (r || this.resourceLogic.containerHasIndexDocument(e))) {
|
|
718
|
+
let r = this.store.sym(t(e, n?.name));
|
|
559
719
|
try {
|
|
560
|
-
await this.
|
|
561
|
-
} catch (
|
|
562
|
-
if (!
|
|
563
|
-
if (
|
|
720
|
+
await this.loadResource(r.doc(), s);
|
|
721
|
+
} catch (t) {
|
|
722
|
+
if (!p(e)) return;
|
|
723
|
+
if (i(t)) {
|
|
564
724
|
this.renderAccessDeniedScreen();
|
|
565
725
|
return;
|
|
566
726
|
}
|
|
567
|
-
|
|
727
|
+
D.error("Unable to load container index document: " + t);
|
|
568
728
|
}
|
|
569
|
-
await this.renderExplorerInto(
|
|
570
|
-
isCurrent: () =>
|
|
729
|
+
await this.renderExplorerInto(u, r, n, {
|
|
730
|
+
isCurrent: () => p(e),
|
|
571
731
|
showHeader: !1
|
|
572
732
|
});
|
|
573
733
|
return;
|
|
574
734
|
}
|
|
575
|
-
|
|
735
|
+
let a = await T(e, d, {
|
|
736
|
+
excludedPaneNames: ["sharing"],
|
|
737
|
+
fallbackPaneName: "internal"
|
|
738
|
+
});
|
|
739
|
+
if (!p(e)) return;
|
|
740
|
+
let o = n || w(e, d, a);
|
|
741
|
+
if (o?.name !== "folder") {
|
|
742
|
+
await this.renderExplorerInto(u, e, o, {
|
|
743
|
+
isCurrent: () => p(e),
|
|
744
|
+
showHeader: !1
|
|
745
|
+
});
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
this.renderContainerView(e);
|
|
576
749
|
return;
|
|
577
750
|
}
|
|
578
751
|
try {
|
|
579
|
-
await this.
|
|
580
|
-
} catch (
|
|
581
|
-
if (!
|
|
582
|
-
if (
|
|
752
|
+
await this.loadResource(e, s);
|
|
753
|
+
} catch (t) {
|
|
754
|
+
if (!p(e)) return;
|
|
755
|
+
if (i(t)) {
|
|
583
756
|
this.renderAccessDeniedScreen();
|
|
584
757
|
return;
|
|
585
758
|
}
|
|
586
|
-
|
|
759
|
+
D.warn("Unable to load selected resource metadata: " + t);
|
|
587
760
|
}
|
|
588
|
-
if (!
|
|
589
|
-
let
|
|
590
|
-
if (!n &&
|
|
591
|
-
this.renderExplorerError(
|
|
761
|
+
if (!p(e)) return;
|
|
762
|
+
let m = o(e) ? this.browserContext?.session.paneRegistry.byName("source") : void 0;
|
|
763
|
+
if (!n && o(e) && !m) {
|
|
764
|
+
this.renderExplorerError(e, "The Source pane is unavailable to display this JavaScript file.");
|
|
592
765
|
return;
|
|
593
766
|
}
|
|
594
|
-
await this.renderExplorerInto(
|
|
595
|
-
} catch (
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
767
|
+
await this.renderExplorerInto(u, e, n || m, { isCurrent: () => p(e) });
|
|
768
|
+
} catch (t) {
|
|
769
|
+
if (D.error("Unable to render selected resource: " + t), l === this.renderGeneration && this.resourceTarget) {
|
|
770
|
+
if (i(t)) {
|
|
598
771
|
this.renderAccessDeniedScreen();
|
|
599
772
|
return;
|
|
600
773
|
}
|
|
601
|
-
this.renderExplorerError(
|
|
774
|
+
this.renderExplorerError(e, "Unable to display the selected resource.");
|
|
602
775
|
}
|
|
603
776
|
}
|
|
604
777
|
}
|
|
605
|
-
showSubject(e,
|
|
606
|
-
let r = t(e),
|
|
607
|
-
this.selectedResource =
|
|
778
|
+
showSubject(e, t) {
|
|
779
|
+
let r = t?.name !== "sharing", i = r ? n(e) : void 0, o = i && this.store ? this.store.sym(i) : void 0, s = o ?? e, c = r && !o && !!this.resourceLogic && a(e, this.resourceLogic) && this.resourceLogic.containerHasIndexDocument(e);
|
|
780
|
+
this.selectedResource = s, this.showResourceInContentView(s, t, !!o || c);
|
|
608
781
|
}
|
|
609
782
|
setContainerView(e) {
|
|
610
783
|
this.containerView = e;
|
|
611
784
|
let t = this.resourceTarget?.querySelector("folder-pane-container");
|
|
612
785
|
t && (t.view = e);
|
|
613
786
|
}
|
|
787
|
+
get sidebarAvailableWidth() {
|
|
788
|
+
let e = this.renderRoot.querySelector(".folder-pane-main-content"), t = this.renderRoot.querySelector(".folder-pane-sidebar-resizer");
|
|
789
|
+
return (e?.clientWidth ?? 0) - (t?.getBoundingClientRect().width ?? 0);
|
|
790
|
+
}
|
|
791
|
+
resizeSidebar(e) {
|
|
792
|
+
this.sidebarWidth = H(e, this.sidebarAvailableWidth);
|
|
793
|
+
}
|
|
794
|
+
finishSidebarResize() {
|
|
795
|
+
let e = this.sidebarDrag;
|
|
796
|
+
e && (this.sidebarDrag = void 0, e.separator.hasPointerCapture(e.pointerId) && e.separator.releasePointerCapture(e.pointerId), this.isConnected && this.requestUpdate());
|
|
797
|
+
}
|
|
614
798
|
render() {
|
|
615
|
-
return this.fullView ?
|
|
616
|
-
|
|
799
|
+
return this.fullView ? P`
|
|
800
|
+
<folder-pane-provider
|
|
801
|
+
.rootResource=${this.subject}
|
|
802
|
+
.displayedResource=${this.displayedResource}
|
|
803
|
+
.activeContainer=${this.getActiveContainer()}
|
|
804
|
+
.view=${this.containerView}
|
|
805
|
+
.searchQuery=${this.searchQuery}
|
|
806
|
+
.canCreate=${this.canCreate}
|
|
807
|
+
>
|
|
808
|
+
${this.showingContainer ? this.renderStorageHeader() : ee}
|
|
809
|
+
${this.renderContentError()}
|
|
810
|
+
<div
|
|
811
|
+
class="folder-pane-full-view"
|
|
812
|
+
?hidden=${!!this.contentError}
|
|
813
|
+
@resource-selected=${this.handleResourceSelected}
|
|
814
|
+
></div>
|
|
815
|
+
<div class="folder-pane-status"></div>
|
|
816
|
+
</folder-pane-provider>
|
|
817
|
+
` : P`
|
|
818
|
+
<folder-pane-provider
|
|
819
|
+
.rootResource=${this.subject}
|
|
820
|
+
.displayedResource=${this.displayedResource}
|
|
821
|
+
.activeContainer=${this.getActiveContainer()}
|
|
822
|
+
.view=${this.containerView}
|
|
823
|
+
.searchQuery=${this.searchQuery}
|
|
824
|
+
.canCreate=${this.canCreate}
|
|
825
|
+
.sidebarCollapsed=${this.sidebarCollapsed}
|
|
826
|
+
>
|
|
827
|
+
${this.renderStorageHeader()}
|
|
617
828
|
<div
|
|
618
|
-
class="folder-pane-
|
|
619
|
-
|
|
829
|
+
class="folder-pane-main-content"
|
|
830
|
+
data-sidebar-collapsed=${String(this.sidebarCollapsed)}
|
|
831
|
+
style=${`--folder-pane-sidebar-width: ${this.sidebarWidth}px`}
|
|
620
832
|
@resource-selected=${this.handleResourceSelected}
|
|
621
|
-
@resource-
|
|
622
|
-
|
|
623
|
-
|
|
833
|
+
@folder-pane-resource-error=${this.handleFolderPaneResourceError}
|
|
834
|
+
@folder-pane-toggle-sidebar=${this.handleSidebarToggle}
|
|
835
|
+
>
|
|
836
|
+
<folder-pane-sidebar
|
|
837
|
+
?inert=${this.sidebarCollapsed}
|
|
838
|
+
aria-hidden=${this.sidebarCollapsed ? "true" : "false"}
|
|
839
|
+
.store=${this.store}
|
|
840
|
+
.resourceLogic=${this.resourceLogic}
|
|
841
|
+
.subject=${this.subject}
|
|
842
|
+
.selectedResource=${this.displayedResource}
|
|
843
|
+
></folder-pane-sidebar>
|
|
844
|
+
<div
|
|
845
|
+
class="folder-pane-sidebar-resizer"
|
|
846
|
+
data-resizing=${String(!!this.sidebarDrag)}
|
|
847
|
+
>
|
|
848
|
+
<div
|
|
849
|
+
class="folder-pane-sidebar-resize-handle"
|
|
850
|
+
role="separator"
|
|
851
|
+
aria-orientation="vertical"
|
|
852
|
+
aria-label="Resize navigation sidebar"
|
|
853
|
+
aria-valuemin=${180}
|
|
854
|
+
aria-valuemax=${this.sidebarMaximumWidth}
|
|
855
|
+
aria-valuenow=${this.sidebarWidth}
|
|
856
|
+
tabindex=${this.sidebarCollapsed ? -1 : 0}
|
|
857
|
+
?hidden=${this.sidebarCollapsed}
|
|
858
|
+
?inert=${this.sidebarCollapsed}
|
|
859
|
+
@pointerdown=${this.handleSidebarPointerDown}
|
|
860
|
+
@pointermove=${this.handleSidebarPointerMove}
|
|
861
|
+
@pointerup=${this.handleSidebarPointerEnd}
|
|
862
|
+
@pointercancel=${this.handleSidebarPointerEnd}
|
|
863
|
+
@lostpointercapture=${this.handleSidebarPointerEnd}
|
|
864
|
+
@keydown=${this.handleSidebarResizeKey}
|
|
865
|
+
></div>
|
|
866
|
+
<button
|
|
867
|
+
type="button"
|
|
868
|
+
class="folder-pane-sidebar-toggle"
|
|
869
|
+
aria-label=${this.sidebarCollapsed ? "Expand navigation" : "Collapse navigation"}
|
|
870
|
+
aria-expanded=${String(!this.sidebarCollapsed)}
|
|
871
|
+
@click=${this.handleSidebarToggle}
|
|
872
|
+
>
|
|
873
|
+
<icon-lucide-chevron-left
|
|
874
|
+
class=${`folder-pane-sidebar-toggle-icon${this.sidebarCollapsed ? " folder-pane-sidebar-toggle-icon-collapsed" : ""}`}
|
|
875
|
+
aria-hidden="true"
|
|
876
|
+
></icon-lucide-chevron-left>
|
|
877
|
+
</button>
|
|
878
|
+
</div>
|
|
879
|
+
<div class="folder-pane-content-column">
|
|
880
|
+
${this.renderContentError()}
|
|
881
|
+
<folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
|
|
882
|
+
<div class="folder-pane-status"></div>
|
|
883
|
+
</div>
|
|
884
|
+
</div>
|
|
885
|
+
</folder-pane-provider>
|
|
886
|
+
`;
|
|
887
|
+
}
|
|
888
|
+
renderStorageHeader() {
|
|
889
|
+
return P`
|
|
624
890
|
<folder-pane-storage-header
|
|
625
891
|
.subject=${this.subject}
|
|
626
|
-
.
|
|
892
|
+
.breadcrumbRoot=${this.standaloneBreadcrumbRoot}
|
|
893
|
+
.selectedResource=${this.displayedResource}
|
|
627
894
|
.browserContext=${this.browserContext}
|
|
628
895
|
.paneList=${this.browserContext?.session.paneRegistry.list ?? []}
|
|
629
896
|
.view=${this.containerView}
|
|
630
897
|
.searchQuery=${this.searchQuery}
|
|
631
|
-
.canCreate=${
|
|
898
|
+
.canCreate=${this.canCreate}
|
|
632
899
|
@folder-pane-select-home=${this.handleSelectHome}
|
|
633
900
|
@folder-pane-select-resource=${this.handleSelectBreadcrumbResource}
|
|
634
901
|
@folder-pane-change-view=${this.handleContainerViewChange}
|
|
635
902
|
@folder-pane-search=${this.handleSearch}
|
|
636
903
|
></folder-pane-storage-header>
|
|
637
|
-
<div
|
|
638
|
-
class="folder-pane-main-content"
|
|
639
|
-
@resource-selected=${this.handleResourceSelected}
|
|
640
|
-
@resource-open-pane=${this.handleResourceOpenPane}
|
|
641
|
-
>
|
|
642
|
-
<folder-pane-sidebar
|
|
643
|
-
.store=${this.store}
|
|
644
|
-
.resourceLogic=${this.resourceLogic}
|
|
645
|
-
.subject=${this.subject}
|
|
646
|
-
.selectedResource=${this.selectedResource ?? this.subject}
|
|
647
|
-
></folder-pane-sidebar>
|
|
648
|
-
<div class="folder-pane-content-column">
|
|
649
|
-
<div class="folder-pane-status"></div>
|
|
650
|
-
${this.renderContentError()}
|
|
651
|
-
<folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
|
|
652
|
-
</div>
|
|
653
|
-
</div>
|
|
654
904
|
`;
|
|
655
905
|
}
|
|
656
906
|
renderContentError() {
|
|
657
|
-
return this.contentError ?
|
|
907
|
+
return this.contentError ? P`
|
|
658
908
|
<div class="folder-pane-resource-error" role="status">
|
|
659
909
|
<solid-ui-error-state
|
|
660
910
|
.title=${this.contentError.title}
|
|
@@ -664,65 +914,95 @@ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
|
|
|
664
914
|
<button type="button" @click=${this.retryContent}>Retry</button>
|
|
665
915
|
</solid-ui-error-state>
|
|
666
916
|
</div>
|
|
667
|
-
` :
|
|
917
|
+
` : ee;
|
|
668
918
|
}
|
|
669
|
-
}, {e: [
|
|
919
|
+
}, {e: [oe, ce, ue, fe, me, ge, ve, be, Se, we, Ee, Oe, Ae, Me, Pe, Ie, Re, ne], c: [qe, re]} = He(te, [
|
|
670
920
|
[
|
|
671
|
-
|
|
921
|
+
ae,
|
|
672
922
|
1,
|
|
673
923
|
"browserContext"
|
|
674
924
|
],
|
|
675
925
|
[
|
|
676
|
-
|
|
926
|
+
se,
|
|
677
927
|
1,
|
|
678
928
|
"subject"
|
|
679
929
|
],
|
|
680
930
|
[
|
|
681
|
-
|
|
931
|
+
le,
|
|
682
932
|
1,
|
|
683
933
|
"fullView"
|
|
684
934
|
],
|
|
685
935
|
[
|
|
686
|
-
|
|
936
|
+
de,
|
|
687
937
|
1,
|
|
688
938
|
"selectedResource"
|
|
689
939
|
],
|
|
690
940
|
[
|
|
691
|
-
|
|
941
|
+
pe,
|
|
942
|
+
1,
|
|
943
|
+
"standaloneBreadcrumbRoot"
|
|
944
|
+
],
|
|
945
|
+
[
|
|
946
|
+
he,
|
|
692
947
|
1,
|
|
693
948
|
"containerView"
|
|
694
949
|
],
|
|
695
950
|
[
|
|
696
|
-
|
|
951
|
+
_e,
|
|
697
952
|
1,
|
|
698
953
|
"searchQuery"
|
|
699
954
|
],
|
|
700
955
|
[
|
|
701
|
-
|
|
956
|
+
ye,
|
|
957
|
+
1,
|
|
958
|
+
"sidebarCollapsed"
|
|
959
|
+
],
|
|
960
|
+
[
|
|
961
|
+
xe,
|
|
962
|
+
1,
|
|
963
|
+
"sidebarWidth"
|
|
964
|
+
],
|
|
965
|
+
[
|
|
966
|
+
Ce,
|
|
967
|
+
1,
|
|
968
|
+
"sidebarMaximumWidth"
|
|
969
|
+
],
|
|
970
|
+
[
|
|
971
|
+
Te,
|
|
702
972
|
1,
|
|
703
973
|
"contentError"
|
|
704
974
|
],
|
|
705
975
|
[
|
|
706
|
-
|
|
976
|
+
De,
|
|
977
|
+
1,
|
|
978
|
+
"showingContainer"
|
|
979
|
+
],
|
|
980
|
+
[
|
|
981
|
+
ke,
|
|
982
|
+
1,
|
|
983
|
+
"canCreate"
|
|
984
|
+
],
|
|
985
|
+
[
|
|
986
|
+
je,
|
|
707
987
|
1,
|
|
708
988
|
"contentView"
|
|
709
989
|
],
|
|
710
990
|
[
|
|
711
|
-
|
|
991
|
+
Ne,
|
|
712
992
|
1,
|
|
713
993
|
"fullViewTarget"
|
|
714
994
|
],
|
|
715
995
|
[
|
|
716
|
-
|
|
996
|
+
Fe,
|
|
717
997
|
1,
|
|
718
998
|
"sidebar"
|
|
719
999
|
],
|
|
720
1000
|
[
|
|
721
|
-
|
|
1001
|
+
Le,
|
|
722
1002
|
1,
|
|
723
1003
|
"statusArea"
|
|
724
1004
|
]
|
|
725
|
-
],
|
|
726
|
-
export {
|
|
1005
|
+
], ie, 0, void 0, b), re();
|
|
1006
|
+
export { H as clampSidebarWidth, qe as default };
|
|
727
1007
|
|
|
728
1008
|
//# sourceMappingURL=FolderPaneView.esm.js.map
|