folder-pane 4.0.1-2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +14 -5
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +11 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +174 -121
- 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.cjs.js.map +1 -1
- package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +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.map +1 -1
- package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js.map +1 -1
- package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js.map +1 -1
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +8 -7
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +2 -0
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -1
- package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +84 -77
- 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/FolderPaneCreateDialog.cjs.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +5 -5
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +1 -0
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -1
- package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +16 -10
- 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 +2 -2
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.d.ts +6 -0
- package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.esm.js +164 -118
- package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -1
- package/dist/folderPane.cjs.js +2 -2
- package/dist/folderPane.cjs.js.map +1 -1
- package/dist/folderPane.d.ts.map +1 -1
- package/dist/folderPane.esm.js +17 -15
- package/dist/folderPane.esm.js.map +1 -1
- package/dist/helpers.cjs.js.map +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.esm.js.map +1 -1
- package/dist/resourceActionItems.cjs.js +1 -1
- package/dist/resourceActionItems.cjs.js.map +1 -1
- package/dist/resourceActionItems.d.ts +4 -5
- package/dist/resourceActionItems.d.ts.map +1 -1
- package/dist/resourceActionItems.esm.js +14 -14
- package/dist/resourceActionItems.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
import e from "./FolderPaneSidebar.styles.esm.js";
|
|
2
|
+
import "../../_virtual/~icons/lucide/chevron-down.esm.js";
|
|
2
3
|
import "../../_virtual/~icons/lucide/chevron-right.esm.js";
|
|
3
4
|
import "../../_virtual/~icons/lucide/circle-small.esm.js";
|
|
4
5
|
import "../../_virtual/~icons/lucide/folder.esm.js";
|
|
5
6
|
import { getResourcesForContainer as t } from "../../helpers.esm.js";
|
|
6
7
|
import { error as n } from "../../debug.esm.js";
|
|
7
|
-
import { WebComponent as r, customElement as i, utils as a } from "solid-ui";
|
|
8
|
-
import { html as
|
|
9
|
-
import { property as
|
|
10
|
-
import {
|
|
8
|
+
import { WebComponent as r, customElement as i, utils as a, widgets as o } from "solid-ui";
|
|
9
|
+
import { html as s, nothing as c } from "lit";
|
|
10
|
+
import { property as l, state as u } from "lit/decorators.js";
|
|
11
|
+
import { ref as d } from "lit/directives/ref.js";
|
|
12
|
+
import { repeat as f } from "lit/directives/repeat.js";
|
|
13
|
+
import { keyed as p } from "lit/directives/keyed.js";
|
|
11
14
|
// src/components/folder-pane-sidebar/FolderPaneSidebar.ts
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
+
var m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, V, H, U, W;
|
|
16
|
+
function G(e, t, n) {
|
|
17
|
+
K(e, t), t.set(e, n);
|
|
15
18
|
}
|
|
16
|
-
function
|
|
19
|
+
function K(e, t) {
|
|
17
20
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
18
21
|
}
|
|
19
|
-
function
|
|
20
|
-
return e.set(
|
|
22
|
+
function q(e, t, n) {
|
|
23
|
+
return e.set(Y(e, t), n), n;
|
|
21
24
|
}
|
|
22
|
-
function
|
|
23
|
-
return e.get(
|
|
25
|
+
function J(e, t) {
|
|
26
|
+
return e.get(Y(e, t));
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function Y(e, t, n) {
|
|
26
29
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
27
30
|
throw TypeError("Private element is not present on this object");
|
|
28
31
|
}
|
|
29
|
-
function
|
|
30
|
-
return (t =
|
|
32
|
+
function X(e, t, n) {
|
|
33
|
+
return (t = Z(t)) in e ? Object.defineProperty(e, t, {
|
|
31
34
|
value: n,
|
|
32
35
|
enumerable: !0,
|
|
33
36
|
configurable: !0,
|
|
34
37
|
writable: !0
|
|
35
38
|
}) : e[t] = n, e;
|
|
36
39
|
}
|
|
37
|
-
function
|
|
40
|
+
function ee(e, t, n, r, i, a) {
|
|
38
41
|
function o(e, t, n) {
|
|
39
42
|
return function(r, i) {
|
|
40
43
|
return n && n(r), e[t].call(r, i);
|
|
@@ -57,13 +60,13 @@ function J(e, t, n, r, i, a) {
|
|
|
57
60
|
n || Array.isArray(_) || (_ = [_]);
|
|
58
61
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
59
62
|
d ? (f || p ? b = {
|
|
60
|
-
get:
|
|
63
|
+
get: Q(function() {
|
|
61
64
|
return v(this);
|
|
62
65
|
}, r, "get"),
|
|
63
66
|
set: function(e) {
|
|
64
67
|
t[4](this, e);
|
|
65
68
|
}
|
|
66
|
-
} : b[S] = v, f ||
|
|
69
|
+
} : b[S] = v, f || Q(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
67
70
|
}
|
|
68
71
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
69
72
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -123,7 +126,7 @@ function J(e, t, n, r, i, a) {
|
|
|
123
126
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
124
127
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
125
128
|
var i, a, o = [], c = function(t) {
|
|
126
|
-
return
|
|
129
|
+
return ne(t) === e;
|
|
127
130
|
}, u = /* @__PURE__ */ new Map();
|
|
128
131
|
function d(e) {
|
|
129
132
|
e && o.push(s.bind(null, e));
|
|
@@ -137,7 +140,7 @@ function J(e, t, n, r, i, a) {
|
|
|
137
140
|
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);
|
|
138
141
|
u.set(b, !(m > 2) || m);
|
|
139
142
|
}
|
|
140
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
143
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Z(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
146
|
return d(i), d(a), o;
|
|
@@ -150,11 +153,11 @@ function J(e, t, n, r, i, a) {
|
|
|
150
153
|
}
|
|
151
154
|
};
|
|
152
155
|
}
|
|
153
|
-
function
|
|
154
|
-
var t =
|
|
156
|
+
function Z(e) {
|
|
157
|
+
var t = te(e, "string");
|
|
155
158
|
return typeof t == "symbol" ? t : t + "";
|
|
156
159
|
}
|
|
157
|
-
function
|
|
160
|
+
function te(e, t) {
|
|
158
161
|
if (typeof e != "object" || !e) return e;
|
|
159
162
|
var n;
|
|
160
163
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -164,7 +167,7 @@ function X(e, t) {
|
|
|
164
167
|
}
|
|
165
168
|
return (t === "string" ? String : Number)(e);
|
|
166
169
|
}
|
|
167
|
-
function
|
|
170
|
+
function Q(e, t, n) {
|
|
168
171
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
169
172
|
try {
|
|
170
173
|
Object.defineProperty(e, "name", {
|
|
@@ -174,66 +177,69 @@ function Z(e, t, n) {
|
|
|
174
177
|
} catch {}
|
|
175
178
|
return e;
|
|
176
179
|
}
|
|
177
|
-
function
|
|
180
|
+
function ne(e) {
|
|
178
181
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
179
182
|
return e;
|
|
180
183
|
}
|
|
181
|
-
function
|
|
184
|
+
function re(e) {
|
|
182
185
|
return e;
|
|
183
186
|
}
|
|
184
|
-
|
|
187
|
+
E = [i("folder-pane-sidebar")];
|
|
185
188
|
var $;
|
|
186
|
-
new (
|
|
189
|
+
new (U = (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 = (D = l({ attribute: !1 }), k = l({ attribute: !1 }), j = l({ attribute: !1 }), N = l({ attribute: !1 }), F = u(), L = u(), z = u(), V = u(), "store"), h = class extends r {
|
|
187
190
|
constructor(...e) {
|
|
188
|
-
super(...e),
|
|
191
|
+
super(...e), G(this, g, (w(this), O(this, null))), G(this, _, A(this, void 0)), G(this, v, M(this, null)), G(this, y, P(this, void 0)), G(this, b, I(this, /* @__PURE__ */ new Map())), G(this, x, R(this, /* @__PURE__ */ new Set())), G(this, S, B(this, !0)), G(this, C, H(this, null)), X(this, "pendingFocusResourceId", null), X(this, "resourceGeneration", 0), X(this, "focusHomeOnUpdate", !1), X(this, "draggableRows", /* @__PURE__ */ new WeakSet());
|
|
189
192
|
}
|
|
190
|
-
get [
|
|
191
|
-
return
|
|
193
|
+
get [W]() {
|
|
194
|
+
return J(g, this);
|
|
192
195
|
}
|
|
193
196
|
set store(e) {
|
|
194
|
-
|
|
197
|
+
q(g, this, e);
|
|
195
198
|
}
|
|
196
199
|
get subject() {
|
|
197
|
-
return
|
|
200
|
+
return J(_, this);
|
|
198
201
|
}
|
|
199
202
|
set subject(e) {
|
|
200
|
-
|
|
203
|
+
q(_, this, e);
|
|
201
204
|
}
|
|
202
205
|
get resourceLogic() {
|
|
203
|
-
return
|
|
206
|
+
return J(v, this);
|
|
204
207
|
}
|
|
205
208
|
set resourceLogic(e) {
|
|
206
|
-
|
|
209
|
+
q(v, this, e);
|
|
207
210
|
}
|
|
208
211
|
get selectedResource() {
|
|
209
|
-
return
|
|
212
|
+
return J(y, this);
|
|
210
213
|
}
|
|
211
214
|
set selectedResource(e) {
|
|
212
|
-
|
|
215
|
+
q(y, this, e);
|
|
213
216
|
}
|
|
214
217
|
get resources() {
|
|
215
|
-
return
|
|
218
|
+
return J(b, this);
|
|
216
219
|
}
|
|
217
220
|
set resources(e) {
|
|
218
|
-
|
|
221
|
+
q(b, this, e);
|
|
219
222
|
}
|
|
220
223
|
get expandedContainers() {
|
|
221
|
-
return
|
|
224
|
+
return J(x, this);
|
|
222
225
|
}
|
|
223
226
|
set expandedContainers(e) {
|
|
224
|
-
|
|
227
|
+
q(x, this, e);
|
|
225
228
|
}
|
|
226
229
|
get homeExpanded() {
|
|
227
|
-
return
|
|
230
|
+
return J(S, this);
|
|
228
231
|
}
|
|
229
232
|
set homeExpanded(e) {
|
|
230
|
-
|
|
233
|
+
q(S, this, e);
|
|
231
234
|
}
|
|
232
235
|
get activeResourceId() {
|
|
233
|
-
return
|
|
236
|
+
return J(C, this);
|
|
234
237
|
}
|
|
235
238
|
set activeResourceId(e) {
|
|
236
|
-
|
|
239
|
+
q(C, this, e);
|
|
240
|
+
}
|
|
241
|
+
makeResourceDraggable(e, t) {
|
|
242
|
+
e && !this.draggableRows.has(e) && (o.makeDraggable(e, t.subject), this.draggableRows.add(e));
|
|
237
243
|
}
|
|
238
244
|
loadResources() {
|
|
239
245
|
let e = this.isTreeFocused(), n = new Map(this.getVisibleResources().map((e) => [e.id, e])), r = this.activeResourceId;
|
|
@@ -365,7 +371,7 @@ new (B = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h =
|
|
|
365
371
|
}));
|
|
366
372
|
}
|
|
367
373
|
renderRow(e, t, n, r, i, a = !1) {
|
|
368
|
-
let
|
|
374
|
+
let o = e.isContainer ? s`
|
|
369
375
|
<button
|
|
370
376
|
class="resource-expand-button"
|
|
371
377
|
type="button"
|
|
@@ -375,23 +381,24 @@ new (B = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h =
|
|
|
375
381
|
t.preventDefault(), t.stopPropagation(), this.focusResource(e.id, !1).then(i);
|
|
376
382
|
}}
|
|
377
383
|
>
|
|
378
|
-
|
|
384
|
+
${r ? s`<icon-lucide-chevron-down></icon-lucide-chevron-down>` : s`<icon-lucide-chevron-right></icon-lucide-chevron-right>`}
|
|
379
385
|
</button>
|
|
380
|
-
` :
|
|
381
|
-
return
|
|
386
|
+
` : s`<span class="resource-expand-spacer" aria-hidden="true"></span>`;
|
|
387
|
+
return s`
|
|
382
388
|
<div
|
|
389
|
+
${d((t) => this.makeResourceDraggable(t, e))}
|
|
383
390
|
class=${a ? "resource-row resource-row-special" : "resource-row"}
|
|
384
391
|
@click=${() => this.selectResource(e)}
|
|
385
392
|
>
|
|
386
|
-
${
|
|
393
|
+
${o}
|
|
387
394
|
${n}
|
|
388
395
|
<span class="resource-label">${t}</span>
|
|
389
396
|
</div>
|
|
390
397
|
`;
|
|
391
398
|
}
|
|
392
|
-
renderItem(e, t, n, r, i, a,
|
|
399
|
+
renderItem(e, t, n, r, i, a, o = !1) {
|
|
393
400
|
let l = this.isSelected(e);
|
|
394
|
-
return
|
|
401
|
+
return s`
|
|
395
402
|
<li
|
|
396
403
|
class=${l ? "resource-item selected" : "resource-item"}
|
|
397
404
|
notSelectable="false"
|
|
@@ -400,15 +407,15 @@ new (B = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h =
|
|
|
400
407
|
data-resource-id=${e.id}
|
|
401
408
|
aria-label=${t}
|
|
402
409
|
aria-selected=${String(l)}
|
|
403
|
-
aria-expanded=${e.isContainer ? String(r) :
|
|
410
|
+
aria-expanded=${e.isContainer ? String(r) : c}
|
|
404
411
|
data-expanded=${String(r)}
|
|
405
412
|
about=${e.subject.toNT()}
|
|
406
413
|
.subject=${e.subject}
|
|
407
414
|
@focusin=${this.setActiveFromFocus}
|
|
408
415
|
@keydown=${(t) => this.handleKeydown(t, e, r, i)}
|
|
409
416
|
>
|
|
410
|
-
${this.renderRow(e, t, n, r, i,
|
|
411
|
-
${r ? a :
|
|
417
|
+
${this.renderRow(e, t, n, r, i, o)}
|
|
418
|
+
${r ? a : c}
|
|
412
419
|
</li>
|
|
413
420
|
`;
|
|
414
421
|
}
|
|
@@ -456,27 +463,27 @@ new (B = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h =
|
|
|
456
463
|
}
|
|
457
464
|
}
|
|
458
465
|
renderSpecialIcon(e) {
|
|
459
|
-
return
|
|
466
|
+
return s`<icon-lucide-folder></icon-lucide-folder>`;
|
|
460
467
|
}
|
|
461
468
|
renderResourceItem(e, n = a.label(e.subject), r) {
|
|
462
|
-
let i = this.expandedContainers.has(e.id),
|
|
469
|
+
let i = this.expandedContainers.has(e.id), o = e.isContainer && i ? this.renderResourceGroup(t(e.subject, this.resourceLogic)) : c, l = r ? this.renderSpecialIcon(r) : s`<icon-lucide-circle-small></icon-lucide-circle-small>`;
|
|
463
470
|
return this.renderItem(e, n, l, i, () => {
|
|
464
471
|
this.toggleContainer(e);
|
|
465
|
-
},
|
|
472
|
+
}, o, !!r);
|
|
466
473
|
}
|
|
467
474
|
renderResourceGroup(e) {
|
|
468
475
|
let t = Array.isArray(e) ? e : [...e.values()];
|
|
469
|
-
return t.length === 0 ?
|
|
476
|
+
return t.length === 0 ? c : s`
|
|
470
477
|
<ul role="group" class="resource-group">
|
|
471
|
-
${
|
|
478
|
+
${f(t, (e) => e.id, (e) => this.renderResourceItem(e))}
|
|
472
479
|
</ul>
|
|
473
480
|
`;
|
|
474
481
|
}
|
|
475
482
|
renderTree() {
|
|
476
483
|
let e = this.getHomeResource();
|
|
477
|
-
if (!e) return
|
|
484
|
+
if (!e) return c;
|
|
478
485
|
let t = [...this.resources.values()];
|
|
479
|
-
return
|
|
486
|
+
return s`
|
|
480
487
|
<ul role="tree" class="resource-tree" aria-label="Storage resources">
|
|
481
488
|
${this.renderItem(e, "Home", this.renderSpecialIcon("folder"), this.homeExpanded, () => {
|
|
482
489
|
this.homeExpanded = !this.homeExpanded;
|
|
@@ -501,58 +508,58 @@ new (B = (p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h =
|
|
|
501
508
|
}
|
|
502
509
|
}
|
|
503
510
|
render() {
|
|
504
|
-
return
|
|
511
|
+
return s`
|
|
505
512
|
<aside>
|
|
506
|
-
${this.renderTree()}
|
|
513
|
+
${p(this.subject?.value, this.renderTree())}
|
|
507
514
|
</aside>
|
|
508
515
|
`;
|
|
509
516
|
}
|
|
510
|
-
}, {e: [
|
|
517
|
+
}, {e: [O, A, M, P, I, R, B, H, w], c: [$, T]} = ee(h, [
|
|
511
518
|
[
|
|
512
|
-
|
|
519
|
+
D,
|
|
513
520
|
1,
|
|
514
521
|
"store"
|
|
515
522
|
],
|
|
516
523
|
[
|
|
517
|
-
|
|
524
|
+
k,
|
|
518
525
|
1,
|
|
519
526
|
"subject"
|
|
520
527
|
],
|
|
521
528
|
[
|
|
522
|
-
|
|
529
|
+
j,
|
|
523
530
|
1,
|
|
524
531
|
"resourceLogic"
|
|
525
532
|
],
|
|
526
533
|
[
|
|
527
|
-
|
|
534
|
+
N,
|
|
528
535
|
1,
|
|
529
536
|
"selectedResource"
|
|
530
537
|
],
|
|
531
538
|
[
|
|
532
|
-
|
|
539
|
+
F,
|
|
533
540
|
1,
|
|
534
541
|
"resources"
|
|
535
542
|
],
|
|
536
543
|
[
|
|
537
|
-
|
|
544
|
+
L,
|
|
538
545
|
1,
|
|
539
546
|
"expandedContainers"
|
|
540
547
|
],
|
|
541
548
|
[
|
|
542
|
-
|
|
549
|
+
z,
|
|
543
550
|
1,
|
|
544
551
|
"homeExpanded"
|
|
545
552
|
],
|
|
546
553
|
[
|
|
547
|
-
|
|
554
|
+
V,
|
|
548
555
|
1,
|
|
549
556
|
"activeResourceId"
|
|
550
557
|
]
|
|
551
|
-
],
|
|
558
|
+
], E, 0, void 0, r), h), m = class extends re {
|
|
552
559
|
constructor() {
|
|
553
|
-
super($),
|
|
560
|
+
super($), X(this, "styles", e), T();
|
|
554
561
|
}
|
|
555
|
-
},
|
|
562
|
+
}, X(m, U, void 0), m)();
|
|
556
563
|
export { $ as default };
|
|
557
564
|
|
|
558
565
|
//# sourceMappingURL=FolderPaneSidebar.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FolderPaneSidebar.esm.js","names":["customElement","utils","WebComponent","html","nothing","repeat","property","state","styles","getResourcesForContainer","debug","_classDecs","_FolderPaneSidebar","_FolderPaneSidebar2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_storeDecs","attribute","_subjectDecs","_resourceLogicDecs","_selectedResourceDecs","_resourcesDecs","_expandedContainersDecs","_homeExpandedDecs","_activeResourceIdDecs","_FolderPaneSidebar3","FolderPaneSidebar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subject","undefined","_init_resourceLogic","_init_selectedResource","_init_resources","Map","_init_expandedContainers","Set","_init_homeExpanded","_init_activeResourceId","_defineProperty","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subject","resourceLogic","selectedResource","resources","expandedContainers","homeExpanded","activeResourceId","loadResources","hadFocus","isTreeFocused","previousResources","getVisibleResources","map","resource","id","previousActiveId","resourceGeneration","visibleIds","getVisibleResourceIds","includes","candidate","get","fallback","parentId","getParentResourceId","getHomeResource","pendingFocusResourceId","home","visible","addChildren","expanded","has","isContainer","children","values","child","push","getFirstChildResource","getNextVisibleResourceId","ids","indexOf","getPreviousVisibleResourceId","tree","renderRoot","querySelector","activeElement","document","contains","focusResource","scroll","fromTreeEvent","updateComplete","item","Array","from","querySelectorAll","find","dataset","resourceId","isConnected","focus","scrollIntoView","block","setActiveFromFocus","event","target","closest","refreshResources","container","sameTerm","current","add","value","parent","dir","toggleContainer","generation","nextExpandedContainers","delete","fetcher","reportExpansionError","load","error","some","dispatchEvent","CustomEvent","detail","title","label","message","retry","bubbles","composed","isSelected","selectResource","renderRow","icon","toggle","special","chevron","preventDefault","stopPropagation","then","renderItem","selected","String","toNT","handleKeydown","currentTarget","key","currentId","currentResource","slice","renderSpecialIcon","renderResourceItem","specialIcon","renderResourceGroup","Boolean","list","isArray","length","renderTree","homeResource","orderedResources","willUpdate","changedProperties","focusHomeOnUpdate","updated","render","e","c","_initClass","_applyDecs","_Class","_identity","default","error","styles","FolderPaneSidebar_styles_default","_Class","_FolderPaneSidebar3","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectDecs","_init_subject","_resourceLogicDecs","_init_resourceLogic","_selectedResourceDecs","_init_selectedResource","_resourcesDecs","_init_resources","_expandedContainersDecs","_init_expandedContainers","_homeExpandedDecs","_init_homeExpanded","_activeResourceIdDecs","_init_activeResourceId","_FolderPaneSidebar2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FolderPaneSidebar","property","state","WebComponent","args","hadFocus","previousResources","resource","previousActiveId","getResourcesForContainer","visibleIds","candidate","fallback","parentId","home","visible","addChildren","expanded","children","child","ids","id","tree","activeElement","fromTreeEvent","item","scroll","event","container","current","parent","generation","subject","store","resourceLogic","nextExpandedContainers","fetcher","error","error$1","utils","chevron","label","toggle","special","icon","selected","nothing","currentId","currentResource","focus","specialIcon","list","resources","repeat","homeResource","orderedResources","changedProperties"],"sources":["../../../src/components/folder-pane-sidebar/FolderPaneSidebar.ts"],"sourcesContent":["import { customElement, utils, WebComponent } from 'solid-ui'\nimport { html, nothing } from 'lit'\nimport { repeat } from 'lit/directives/repeat.js'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport styles from './FolderPaneSidebar.styles.css'\nimport type { LiveStore, NamedNode } from 'rdflib'\nimport type { Resource, ResourceMap } from '../../types'\nimport '~icons/lucide/chevron-right'\nimport '~icons/lucide/circle-small'\nimport '~icons/lucide/folder'\nimport { getResourcesForContainer, type FolderPaneResourceLogic } from '../../helpers'\nimport * as debug from '../../debug'\n\ntype SpecialIcon = 'folder'\n\n@customElement('folder-pane-sidebar')\nexport default class FolderPaneSidebar extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | null = null\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor resourceLogic: FolderPaneResourceLogic | null = null\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @state()\n accessor resources: ResourceMap = new Map()\n\n @state()\n accessor expandedContainers: Set<string> = new Set()\n\n @state()\n accessor homeExpanded = true\n @state()\n private accessor activeResourceId: string | null = null\n private pendingFocusResourceId: string | null = null\n private resourceGeneration = 0\n private focusHomeOnUpdate = false\n\n private loadResources () {\n const hadFocus = this.isTreeFocused()\n const previousResources = new Map(this.getVisibleResources().map(resource => [resource.id, resource]))\n const previousActiveId = this.activeResourceId\n this.resourceGeneration++\n if (!this.store || !this.subject) {\n this.resources = new Map()\n this.expandedContainers = new Set()\n this.activeResourceId = null\n return\n }\n\n this.resources = getResourcesForContainer(this.subject, this.resourceLogic)\n const visibleIds = this.getVisibleResourceIds()\n if (previousActiveId && !visibleIds.includes(previousActiveId)) {\n let candidate = previousResources.get(previousActiveId)\n let fallback: string | null = null\n while (candidate) {\n const parentId = this.getParentResourceId(candidate)\n if (parentId && visibleIds.includes(parentId)) {\n fallback = parentId\n break\n }\n candidate = parentId ? previousResources.get(parentId) : undefined\n }\n this.activeResourceId = fallback ?? this.getHomeResource()?.id ?? null\n }\n if (hadFocus && this.activeResourceId) this.pendingFocusResourceId = this.activeResourceId\n }\n\n private getVisibleResources (): Resource[] {\n const home = this.getHomeResource()\n if (!home) return []\n const visible: Resource[] = [home]\n const addChildren = (resource: Resource) => {\n const expanded = resource.id === home.id ? this.homeExpanded : this.expandedContainers.has(resource.id)\n if (!resource.isContainer || !expanded) return\n const children = resource.id === home.id\n ? [...this.resources.values()]\n : [...getResourcesForContainer(resource.subject, this.resourceLogic).values()]\n for (const child of children) {\n visible.push(child)\n addChildren(child)\n }\n }\n addChildren(home)\n return visible\n }\n\n private getVisibleResourceIds () {\n return this.getVisibleResources().map(resource => resource.id)\n }\n\n private getParentResourceId (resource: Resource) {\n return resource.parentId ?? this.getHomeResource()?.id ?? null\n }\n\n private getFirstChildResource (resource: Resource) {\n if (!resource.isContainer) return null\n const children = resource.id === this.getHomeResource()?.id\n ? [...this.resources.values()]\n : [...getResourcesForContainer(resource.subject, this.resourceLogic).values()]\n return children[0] ?? null\n }\n\n private getNextVisibleResourceId (id: string) {\n const ids = this.getVisibleResourceIds()\n return ids[ids.indexOf(id) + 1] ?? null\n }\n\n private getPreviousVisibleResourceId (id: string) {\n const ids = this.getVisibleResourceIds()\n return ids[ids.indexOf(id) - 1] ?? null\n }\n\n private isTreeFocused () {\n const tree = this.renderRoot?.querySelector('[role=\"tree\"]')\n const activeElement = (this.renderRoot as ShadowRoot)?.activeElement ?? document.activeElement\n return !!tree && (tree.contains(activeElement) || document.activeElement === this)\n }\n\n private async focusResource (id: string | null, scroll = true, fromTreeEvent = false) {\n if (!id || (!fromTreeEvent && !this.isTreeFocused())) return\n this.activeResourceId = id\n await this.updateComplete\n const item = Array.from(this.renderRoot.querySelectorAll<HTMLElement>('[role=\"treeitem\"]'))\n .find(candidate => candidate.dataset.resourceId === id)\n if (!item?.isConnected) {\n this.pendingFocusResourceId = null\n return\n }\n if (!fromTreeEvent && !this.isTreeFocused()) return\n this.pendingFocusResourceId = id\n item.focus()\n this.pendingFocusResourceId = null\n if (scroll && typeof item.scrollIntoView === 'function') item.scrollIntoView({ block: 'nearest' })\n }\n\n private setActiveFromFocus (event: FocusEvent) {\n const item = (event.target as HTMLElement).closest<HTMLElement>('[role=\"treeitem\"]')\n if (this.pendingFocusResourceId && item?.dataset.resourceId !== this.pendingFocusResourceId) return\n if (item && (this.renderRoot as ShadowRoot)?.activeElement &&\n (this.renderRoot as ShadowRoot).activeElement !== item) return\n if (item?.dataset.resourceId) this.activeResourceId = item.dataset.resourceId\n }\n\n refreshResources (container?: NamedNode) {\n this.loadResources()\n if (!container || !this.subject || container.sameTerm(this.subject)) return\n\n const expanded = new Set(this.expandedContainers)\n let current = container\n while (!current.sameTerm(this.subject)) {\n expanded.add(current.value)\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) break\n current = parent\n }\n this.expandedContainers = expanded\n }\n\n private async toggleContainer (resource: Resource) {\n if (!resource.isContainer) return\n\n const generation = this.resourceGeneration\n const subject = this.subject\n const store = this.store\n const resourceLogic = this.resourceLogic\n const hadFocus = this.isTreeFocused()\n const nextExpandedContainers = new Set(this.expandedContainers)\n if (nextExpandedContainers.has(resource.id)) {\n nextExpandedContainers.delete(resource.id)\n this.expandedContainers = nextExpandedContainers\n return\n }\n\n const fetcher = this.store?.fetcher\n if (!fetcher) {\n this.reportExpansionError(resource)\n return\n }\n\n try {\n await fetcher.load(resource.subject)\n } catch (error) {\n if (generation !== this.resourceGeneration ||\n this.subject !== subject ||\n this.store !== store ||\n this.resourceLogic !== resourceLogic) return\n this.reportExpansionError(resource, error)\n return\n }\n\n if (generation !== this.resourceGeneration ||\n this.subject !== subject ||\n this.store !== store ||\n this.resourceLogic !== resourceLogic ||\n !this.getVisibleResources().some(candidate =>\n candidate.id === resource.id && candidate.subject.sameTerm(resource.subject))) return\n // Loading a container updates the RDF store asynchronously. Refresh the\n // root snapshot so a subsequent render sees the newly loaded members.\n if (this.store && this.subject) {\n this.resources = getResourcesForContainer(this.subject, this.resourceLogic)\n }\n this.expandedContainers = new Set(this.expandedContainers).add(resource.id)\n if (hadFocus && this.activeResourceId === resource.id && this.isTreeFocused()) {\n await this.updateComplete\n if (this.activeResourceId !== resource.id || !this.isTreeFocused()) return\n await this.focusResource(resource.id, false, true)\n }\n }\n\n private reportExpansionError (resource: Resource, error?: unknown) {\n if (error) debug.error('Unable to expand storage container', error)\n this.dispatchEvent(new CustomEvent('folder-pane-resource-error', {\n detail: {\n title: `Unable to load ${utils.label(resource.subject)}`,\n message: 'Try expanding the folder again.',\n retry: () => { void this.toggleContainer(resource) }\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private isSelected (resource: Resource | null) {\n return resource ? this.selectedResource?.sameTerm(resource.subject) ?? false : false\n }\n\n private getHomeResource (): Resource | null {\n if (!this.subject) return null\n\n return {\n id: this.subject.value,\n subject: this.subject,\n parentId: null,\n isContainer: true,\n }\n }\n\n private selectResource (resource: Resource) {\n this.dispatchEvent(new CustomEvent('resource-selected', {\n detail: { resource: resource.subject },\n bubbles: true,\n composed: true,\n }))\n }\n\n private renderRow (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n special = false\n ) {\n const chevron = resource.isContainer\n ? html`\n <button\n class=\"resource-expand-button\"\n type=\"button\"\n tabindex=\"-1\"\n aria-label=${expanded ? `Collapse ${label}` : `Expand ${label}`}\n @click=${(event: MouseEvent) => {\n event.preventDefault()\n event.stopPropagation()\n void this.focusResource(resource.id, false).then(toggle)\n }}\n >\n <icon-lucide-chevron-right></icon-lucide-chevron-right>\n </button>\n `\n : html`<span class=\"resource-expand-spacer\" aria-hidden=\"true\"></span>`\n\n return html`\n <div\n class=${special ? 'resource-row resource-row-special' : 'resource-row'}\n @click=${() => this.selectResource(resource)}\n >\n ${chevron}\n ${icon}\n <span class=\"resource-label\">${label}</span>\n </div>\n `\n }\n\n private renderItem (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n children: unknown,\n special = false\n ) {\n const selected = this.isSelected(resource)\n\n return html`\n <li\n class=${selected ? 'resource-item selected' : 'resource-item'}\n notSelectable=\"false\"\n role=\"treeitem\"\n tabindex=${this.activeResourceId === resource.id || this.activeResourceId === null && resource.id === this.getHomeResource()?.id ? '0' : '-1'}\n data-resource-id=${resource.id}\n aria-label=${label}\n aria-selected=${String(selected)}\n aria-expanded=${resource.isContainer ? String(expanded) : nothing}\n data-expanded=${String(expanded)}\n about=${resource.subject.toNT()}\n .subject=${resource.subject}\n @focusin=${this.setActiveFromFocus}\n @keydown=${(event: KeyboardEvent) => this.handleKeydown(event, resource, expanded, toggle)}\n >\n ${this.renderRow(resource, label, icon, expanded, toggle, special)}\n ${expanded ? children : nothing}\n </li>\n `\n }\n\n private handleKeydown (event: KeyboardEvent, resource: Resource, expanded: boolean, toggle: () => void) {\n if ((event.target as HTMLElement).closest('[role=\"treeitem\"]') !== event.currentTarget) return\n if (!['ArrowDown', 'ArrowUp', 'Home', 'End', 'ArrowRight', 'ArrowLeft', 'Enter', ' '].includes(event.key)) return\n event.stopPropagation()\n // Keep the navigation origin current even when focusin was not emitted\n // (for example, repeated key events on the same DOM node).\n const currentId = (event.currentTarget as HTMLElement).dataset.resourceId ?? resource.id\n const currentResource = this.getVisibleResources().find(candidate => candidate.id === currentId)\n if (currentResource) {\n resource = currentResource\n expanded = resource.id === this.getHomeResource()?.id\n ? this.homeExpanded\n : this.expandedContainers.has(resource.id)\n toggle = () => {\n if (resource.id === this.getHomeResource()?.id) this.homeExpanded = !this.homeExpanded\n else void this.toggleContainer(resource)\n }\n }\n this.activeResourceId = currentId\n const focus = (id: string | null) => {\n if (id) {\n event.preventDefault()\n this.activeResourceId = id\n void this.focusResource(id, true, true)\n }\n }\n switch (event.key) {\n case 'ArrowDown':\n focus(this.getNextVisibleResourceId(resource.id))\n break\n case 'ArrowUp':\n focus(this.getPreviousVisibleResourceId(resource.id))\n break\n case 'Home':\n focus(this.getVisibleResourceIds()[0] ?? null)\n break\n case 'End':\n focus(this.getVisibleResourceIds().slice(-1)[0] ?? null)\n break\n case 'ArrowRight':\n if (!resource.isContainer) break\n if (!expanded) {\n event.preventDefault()\n void toggle()\n } else {\n focus(this.getFirstChildResource(resource)?.id ?? null)\n }\n break\n case 'ArrowLeft': {\n if (resource.isContainer && expanded) {\n event.preventDefault()\n void this.focusResource(resource.id, false, true).then(toggle)\n } else {\n focus(this.getParentResourceId(resource))\n }\n break\n }\n case 'Enter':\n case ' ':\n event.preventDefault()\n this.selectResource(resource)\n break\n }\n }\n\n private renderSpecialIcon (icon: SpecialIcon) {\n return html`<icon-lucide-folder></icon-lucide-folder>`\n }\n\n private renderResourceItem (resource: Resource, label = utils.label(resource.subject), specialIcon?: SpecialIcon) {\n const expanded = this.expandedContainers.has(resource.id)\n const children = resource.isContainer && expanded\n ? this.renderResourceGroup(getResourcesForContainer(resource.subject, this.resourceLogic))\n : nothing\n const icon = specialIcon\n ? this.renderSpecialIcon(specialIcon)\n : html`<icon-lucide-circle-small></icon-lucide-circle-small>`\n\n return this.renderItem(\n resource,\n label,\n icon,\n expanded,\n () => { void this.toggleContainer(resource) },\n children,\n Boolean(specialIcon)\n )\n }\n\n private renderResourceGroup (resources: ResourceMap | Resource[]) {\n const list = Array.isArray(resources) ? resources : [...resources.values()]\n if (list.length === 0) return nothing\n\n return html`\n <ul role=\"group\" class=\"resource-group\">\n ${repeat(list, (resource) => resource.id, (resource) => this.renderResourceItem(resource))}\n </ul>\n `\n }\n\n private renderTree () {\n const homeResource = this.getHomeResource()\n if (!homeResource) return nothing\n\n const orderedResources = [...this.resources.values()]\n\n return html`\n <ul role=\"tree\" class=\"resource-tree\" aria-label=\"Storage resources\">\n ${this.renderItem(\n homeResource,\n 'Home',\n this.renderSpecialIcon('folder'),\n this.homeExpanded,\n () => { this.homeExpanded = !this.homeExpanded },\n this.renderResourceGroup(orderedResources),\n true\n )}\n </ul>\n `\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n if (this.pendingFocusResourceId && !this.isTreeFocused()) {\n this.pendingFocusResourceId = null\n }\n if (changedProperties.has('subject')) {\n const hadFocus = this.isTreeFocused()\n this.focusHomeOnUpdate = !!this.subject &&\n (hadFocus || changedProperties.get('subject') === undefined)\n this.expandedContainers = new Set()\n this.homeExpanded = true\n this.activeResourceId = this.subject?.value ?? null\n }\n if (\n changedProperties.has('store') ||\n changedProperties.has('subject') ||\n changedProperties.has('resourceLogic')\n ) {\n this.loadResources()\n }\n }\n\n protected updated (changedProperties: PropertyValues<this>) {\n super.updated(changedProperties)\n if (this.focusHomeOnUpdate) {\n const home = this.renderRoot.querySelector<HTMLElement>('[role=\"treeitem\"]')\n if (home) {\n this.focusHomeOnUpdate = false\n home.focus()\n this.pendingFocusResourceId = null\n }\n return\n }\n if (this.pendingFocusResourceId) {\n const item = Array.from(this.renderRoot.querySelectorAll<HTMLElement>('[role=\"treeitem\"]'))\n .find(candidate => candidate.dataset.resourceId === this.pendingFocusResourceId)\n if (item?.isConnected) item.focus()\n this.pendingFocusResourceId = null\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AAA;AAAA,GAAArB,GAAA,GAAA,KAAA,GA7d8CT,CAAY,GAAA+B,IAAA2J,IAAA,cAAAC,GAAA;CAAA1J,cAAA;EAAA,MAAAvB,CAAA,GAAAsC,EAAA,MAAA,UACzC1C,CAAM,GAAAkL,EAAA;CAAA;AAAA,GAAAxI,EAAA0I,GAAA/K,GAAA,KAAA,CAAA,GAAA+K,GAAA"}
|
|
1
|
+
{"version":3,"file":"FolderPaneSidebar.esm.js","names":["customElement","utils","WebComponent","widgets","html","nothing","keyed","ref","repeat","property","state","styles","getResourcesForContainer","debug","_classDecs","_FolderPaneSidebar","_FolderPaneSidebar2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_storeDecs","attribute","_subjectDecs","_resourceLogicDecs","_selectedResourceDecs","_resourcesDecs","_expandedContainersDecs","_homeExpandedDecs","_activeResourceIdDecs","_FolderPaneSidebar3","FolderPaneSidebar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subject","undefined","_init_resourceLogic","_init_selectedResource","_init_resources","Map","_init_expandedContainers","Set","_init_homeExpanded","_init_activeResourceId","_defineProperty","WeakSet","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subject","resourceLogic","selectedResource","resources","expandedContainers","homeExpanded","activeResourceId","makeResourceDraggable","element","resource","draggableRows","has","makeDraggable","add","loadResources","hadFocus","isTreeFocused","previousResources","getVisibleResources","map","id","previousActiveId","resourceGeneration","visibleIds","getVisibleResourceIds","includes","candidate","get","fallback","parentId","getParentResourceId","getHomeResource","pendingFocusResourceId","home","visible","addChildren","expanded","isContainer","children","values","child","push","getFirstChildResource","getNextVisibleResourceId","ids","indexOf","getPreviousVisibleResourceId","tree","renderRoot","querySelector","activeElement","document","contains","focusResource","scroll","fromTreeEvent","updateComplete","item","Array","from","querySelectorAll","find","dataset","resourceId","isConnected","focus","scrollIntoView","block","setActiveFromFocus","event","target","closest","refreshResources","container","sameTerm","current","value","parent","dir","toggleContainer","generation","nextExpandedContainers","delete","fetcher","reportExpansionError","load","error","some","dispatchEvent","CustomEvent","detail","title","label","message","retry","bubbles","composed","isSelected","selectResource","renderRow","icon","toggle","special","chevron","preventDefault","stopPropagation","then","renderItem","selected","String","toNT","handleKeydown","currentTarget","key","currentId","currentResource","slice","renderSpecialIcon","renderResourceItem","specialIcon","renderResourceGroup","Boolean","list","isArray","length","renderTree","homeResource","orderedResources","willUpdate","changedProperties","focusHomeOnUpdate","updated","render","e","c","_initClass","_applyDecs","_Class","_identity","FolderPaneSidebar_styles_default","_Class","_FolderPaneSidebar3","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectDecs","_init_subject","_resourceLogicDecs","_init_resourceLogic","_selectedResourceDecs","_init_selectedResource","_resourcesDecs","_init_resources","_expandedContainersDecs","_init_expandedContainers","_homeExpandedDecs","_init_homeExpanded","_activeResourceIdDecs","_init_activeResourceId","_FolderPaneSidebar2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FolderPaneSidebar","property","state","WebComponent","args","element","widgets","resource","hadFocus","previousResources","previousActiveId","getResourcesForContainer","visibleIds","candidate","fallback","parentId","home","visible","addChildren","expanded","children","child","ids","id","tree","activeElement","fromTreeEvent","item","scroll","event","container","current","parent","generation","subject","store","resourceLogic","nextExpandedContainers","fetcher","error","error$1","utils","chevron","label","toggle","ref","special","icon","selected","nothing","currentId","currentResource","focus","specialIcon","list","resources","repeat","homeResource","orderedResources","changedProperties","keyed"],"sources":["../../../src/components/folder-pane-sidebar/FolderPaneSidebar.ts"],"sourcesContent":["import { customElement, utils, WebComponent, widgets } from 'solid-ui'\nimport { html, nothing } from 'lit'\nimport { keyed } from 'lit/directives/keyed.js'\nimport { ref } from 'lit/directives/ref.js'\nimport { repeat } from 'lit/directives/repeat.js'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport styles from './FolderPaneSidebar.styles.css'\nimport type { LiveStore, NamedNode } from 'rdflib'\nimport type { Resource, ResourceMap } from '../../types'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/chevron-right'\nimport '~icons/lucide/circle-small'\nimport '~icons/lucide/folder'\nimport { getResourcesForContainer, type FolderPaneResourceLogic } from '../../helpers'\nimport * as debug from '../../debug'\n\ntype SpecialIcon = 'folder'\n\n@customElement('folder-pane-sidebar')\nexport default class FolderPaneSidebar extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | null = null\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor resourceLogic: FolderPaneResourceLogic | null = null\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @state()\n accessor resources: ResourceMap = new Map()\n\n @state()\n accessor expandedContainers: Set<string> = new Set()\n\n @state()\n accessor homeExpanded = true\n @state()\n private accessor activeResourceId: string | null = null\n private pendingFocusResourceId: string | null = null\n private resourceGeneration = 0\n private focusHomeOnUpdate = false\n private draggableRows = new WeakSet<Element>()\n\n private makeResourceDraggable (element: Element | undefined, resource: Resource) {\n if (!element || this.draggableRows.has(element)) return\n widgets.makeDraggable(element, resource.subject)\n this.draggableRows.add(element)\n }\n\n private loadResources () {\n const hadFocus = this.isTreeFocused()\n const previousResources = new Map(this.getVisibleResources().map(resource => [resource.id, resource]))\n const previousActiveId = this.activeResourceId\n this.resourceGeneration++\n if (!this.store || !this.subject) {\n this.resources = new Map()\n this.expandedContainers = new Set()\n this.activeResourceId = null\n return\n }\n\n this.resources = getResourcesForContainer(this.subject, this.resourceLogic)\n const visibleIds = this.getVisibleResourceIds()\n if (previousActiveId && !visibleIds.includes(previousActiveId)) {\n let candidate = previousResources.get(previousActiveId)\n let fallback: string | null = null\n while (candidate) {\n const parentId = this.getParentResourceId(candidate)\n if (parentId && visibleIds.includes(parentId)) {\n fallback = parentId\n break\n }\n candidate = parentId ? previousResources.get(parentId) : undefined\n }\n this.activeResourceId = fallback ?? this.getHomeResource()?.id ?? null\n }\n if (hadFocus && this.activeResourceId) this.pendingFocusResourceId = this.activeResourceId\n }\n\n private getVisibleResources (): Resource[] {\n const home = this.getHomeResource()\n if (!home) return []\n const visible: Resource[] = [home]\n const addChildren = (resource: Resource) => {\n const expanded = resource.id === home.id ? this.homeExpanded : this.expandedContainers.has(resource.id)\n if (!resource.isContainer || !expanded) return\n const children = resource.id === home.id\n ? [...this.resources.values()]\n : [...getResourcesForContainer(resource.subject, this.resourceLogic).values()]\n for (const child of children) {\n visible.push(child)\n addChildren(child)\n }\n }\n addChildren(home)\n return visible\n }\n\n private getVisibleResourceIds () {\n return this.getVisibleResources().map(resource => resource.id)\n }\n\n private getParentResourceId (resource: Resource) {\n return resource.parentId ?? this.getHomeResource()?.id ?? null\n }\n\n private getFirstChildResource (resource: Resource) {\n if (!resource.isContainer) return null\n const children = resource.id === this.getHomeResource()?.id\n ? [...this.resources.values()]\n : [...getResourcesForContainer(resource.subject, this.resourceLogic).values()]\n return children[0] ?? null\n }\n\n private getNextVisibleResourceId (id: string) {\n const ids = this.getVisibleResourceIds()\n return ids[ids.indexOf(id) + 1] ?? null\n }\n\n private getPreviousVisibleResourceId (id: string) {\n const ids = this.getVisibleResourceIds()\n return ids[ids.indexOf(id) - 1] ?? null\n }\n\n private isTreeFocused () {\n const tree = this.renderRoot?.querySelector('[role=\"tree\"]')\n const activeElement = (this.renderRoot as ShadowRoot)?.activeElement ?? document.activeElement\n return !!tree && (tree.contains(activeElement) || document.activeElement === this)\n }\n\n private async focusResource (id: string | null, scroll = true, fromTreeEvent = false) {\n if (!id || (!fromTreeEvent && !this.isTreeFocused())) return\n this.activeResourceId = id\n await this.updateComplete\n const item = Array.from(this.renderRoot.querySelectorAll<HTMLElement>('[role=\"treeitem\"]'))\n .find(candidate => candidate.dataset.resourceId === id)\n if (!item?.isConnected) {\n this.pendingFocusResourceId = null\n return\n }\n if (!fromTreeEvent && !this.isTreeFocused()) return\n this.pendingFocusResourceId = id\n item.focus()\n this.pendingFocusResourceId = null\n if (scroll && typeof item.scrollIntoView === 'function') item.scrollIntoView({ block: 'nearest' })\n }\n\n private setActiveFromFocus (event: FocusEvent) {\n const item = (event.target as HTMLElement).closest<HTMLElement>('[role=\"treeitem\"]')\n if (this.pendingFocusResourceId && item?.dataset.resourceId !== this.pendingFocusResourceId) return\n if (item && (this.renderRoot as ShadowRoot)?.activeElement &&\n (this.renderRoot as ShadowRoot).activeElement !== item) return\n if (item?.dataset.resourceId) this.activeResourceId = item.dataset.resourceId\n }\n\n refreshResources (container?: NamedNode) {\n this.loadResources()\n if (!container || !this.subject || container.sameTerm(this.subject)) return\n\n const expanded = new Set(this.expandedContainers)\n let current = container\n while (!current.sameTerm(this.subject)) {\n expanded.add(current.value)\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) break\n current = parent\n }\n this.expandedContainers = expanded\n }\n\n private async toggleContainer (resource: Resource) {\n if (!resource.isContainer) return\n\n const generation = this.resourceGeneration\n const subject = this.subject\n const store = this.store\n const resourceLogic = this.resourceLogic\n const hadFocus = this.isTreeFocused()\n const nextExpandedContainers = new Set(this.expandedContainers)\n if (nextExpandedContainers.has(resource.id)) {\n nextExpandedContainers.delete(resource.id)\n this.expandedContainers = nextExpandedContainers\n return\n }\n\n const fetcher = this.store?.fetcher\n if (!fetcher) {\n this.reportExpansionError(resource)\n return\n }\n\n try {\n await fetcher.load(resource.subject)\n } catch (error) {\n if (generation !== this.resourceGeneration ||\n this.subject !== subject ||\n this.store !== store ||\n this.resourceLogic !== resourceLogic) return\n this.reportExpansionError(resource, error)\n return\n }\n\n if (generation !== this.resourceGeneration ||\n this.subject !== subject ||\n this.store !== store ||\n this.resourceLogic !== resourceLogic ||\n !this.getVisibleResources().some(candidate =>\n candidate.id === resource.id && candidate.subject.sameTerm(resource.subject))) return\n // Loading a container updates the RDF store asynchronously. Refresh the\n // root snapshot so a subsequent render sees the newly loaded members.\n if (this.store && this.subject) {\n this.resources = getResourcesForContainer(this.subject, this.resourceLogic)\n }\n this.expandedContainers = new Set(this.expandedContainers).add(resource.id)\n if (hadFocus && this.activeResourceId === resource.id && this.isTreeFocused()) {\n await this.updateComplete\n if (this.activeResourceId !== resource.id || !this.isTreeFocused()) return\n await this.focusResource(resource.id, false, true)\n }\n }\n\n private reportExpansionError (resource: Resource, error?: unknown) {\n if (error) debug.error('Unable to expand storage container', error)\n this.dispatchEvent(new CustomEvent('folder-pane-resource-error', {\n detail: {\n title: `Unable to load ${utils.label(resource.subject)}`,\n message: 'Try expanding the folder again.',\n retry: () => { void this.toggleContainer(resource) }\n },\n bubbles: true,\n composed: true\n }))\n }\n\n private isSelected (resource: Resource | null) {\n return resource ? this.selectedResource?.sameTerm(resource.subject) ?? false : false\n }\n\n private getHomeResource (): Resource | null {\n if (!this.subject) return null\n\n return {\n id: this.subject.value,\n subject: this.subject,\n parentId: null,\n isContainer: true,\n }\n }\n\n private selectResource (resource: Resource) {\n this.dispatchEvent(new CustomEvent('resource-selected', {\n detail: { resource: resource.subject },\n bubbles: true,\n composed: true,\n }))\n }\n\n private renderRow (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n special = false\n ) {\n const chevron = resource.isContainer\n ? html`\n <button\n class=\"resource-expand-button\"\n type=\"button\"\n tabindex=\"-1\"\n aria-label=${expanded ? `Collapse ${label}` : `Expand ${label}`}\n @click=${(event: MouseEvent) => {\n event.preventDefault()\n event.stopPropagation()\n void this.focusResource(resource.id, false).then(toggle)\n }}\n >\n ${expanded\n ? html`<icon-lucide-chevron-down></icon-lucide-chevron-down>`\n : html`<icon-lucide-chevron-right></icon-lucide-chevron-right>`}\n </button>\n `\n : html`<span class=\"resource-expand-spacer\" aria-hidden=\"true\"></span>`\n\n return html`\n <div\n ${ref(element => this.makeResourceDraggable(element, resource))}\n class=${special ? 'resource-row resource-row-special' : 'resource-row'}\n @click=${() => this.selectResource(resource)}\n >\n ${chevron}\n ${icon}\n <span class=\"resource-label\">${label}</span>\n </div>\n `\n }\n\n private renderItem (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n children: unknown,\n special = false\n ) {\n const selected = this.isSelected(resource)\n\n return html`\n <li\n class=${selected ? 'resource-item selected' : 'resource-item'}\n notSelectable=\"false\"\n role=\"treeitem\"\n tabindex=${this.activeResourceId === resource.id || this.activeResourceId === null && resource.id === this.getHomeResource()?.id ? '0' : '-1'}\n data-resource-id=${resource.id}\n aria-label=${label}\n aria-selected=${String(selected)}\n aria-expanded=${resource.isContainer ? String(expanded) : nothing}\n data-expanded=${String(expanded)}\n about=${resource.subject.toNT()}\n .subject=${resource.subject}\n @focusin=${this.setActiveFromFocus}\n @keydown=${(event: KeyboardEvent) => this.handleKeydown(event, resource, expanded, toggle)}\n >\n ${this.renderRow(resource, label, icon, expanded, toggle, special)}\n ${expanded ? children : nothing}\n </li>\n `\n }\n\n private handleKeydown (event: KeyboardEvent, resource: Resource, expanded: boolean, toggle: () => void) {\n if ((event.target as HTMLElement).closest('[role=\"treeitem\"]') !== event.currentTarget) return\n if (!['ArrowDown', 'ArrowUp', 'Home', 'End', 'ArrowRight', 'ArrowLeft', 'Enter', ' '].includes(event.key)) return\n event.stopPropagation()\n // Keep the navigation origin current even when focusin was not emitted\n // (for example, repeated key events on the same DOM node).\n const currentId = (event.currentTarget as HTMLElement).dataset.resourceId ?? resource.id\n const currentResource = this.getVisibleResources().find(candidate => candidate.id === currentId)\n if (currentResource) {\n resource = currentResource\n expanded = resource.id === this.getHomeResource()?.id\n ? this.homeExpanded\n : this.expandedContainers.has(resource.id)\n toggle = () => {\n if (resource.id === this.getHomeResource()?.id) this.homeExpanded = !this.homeExpanded\n else void this.toggleContainer(resource)\n }\n }\n this.activeResourceId = currentId\n const focus = (id: string | null) => {\n if (id) {\n event.preventDefault()\n this.activeResourceId = id\n void this.focusResource(id, true, true)\n }\n }\n switch (event.key) {\n case 'ArrowDown':\n focus(this.getNextVisibleResourceId(resource.id))\n break\n case 'ArrowUp':\n focus(this.getPreviousVisibleResourceId(resource.id))\n break\n case 'Home':\n focus(this.getVisibleResourceIds()[0] ?? null)\n break\n case 'End':\n focus(this.getVisibleResourceIds().slice(-1)[0] ?? null)\n break\n case 'ArrowRight':\n if (!resource.isContainer) break\n if (!expanded) {\n event.preventDefault()\n void toggle()\n } else {\n focus(this.getFirstChildResource(resource)?.id ?? null)\n }\n break\n case 'ArrowLeft': {\n if (resource.isContainer && expanded) {\n event.preventDefault()\n void this.focusResource(resource.id, false, true).then(toggle)\n } else {\n focus(this.getParentResourceId(resource))\n }\n break\n }\n case 'Enter':\n case ' ':\n event.preventDefault()\n this.selectResource(resource)\n break\n }\n }\n\n private renderSpecialIcon (icon: SpecialIcon) {\n return html`<icon-lucide-folder></icon-lucide-folder>`\n }\n\n private renderResourceItem (resource: Resource, label = utils.label(resource.subject), specialIcon?: SpecialIcon) {\n const expanded = this.expandedContainers.has(resource.id)\n const children = resource.isContainer && expanded\n ? this.renderResourceGroup(getResourcesForContainer(resource.subject, this.resourceLogic))\n : nothing\n const icon = specialIcon\n ? this.renderSpecialIcon(specialIcon)\n : html`<icon-lucide-circle-small></icon-lucide-circle-small>`\n\n return this.renderItem(\n resource,\n label,\n icon,\n expanded,\n () => { void this.toggleContainer(resource) },\n children,\n Boolean(specialIcon)\n )\n }\n\n private renderResourceGroup (resources: ResourceMap | Resource[]) {\n const list = Array.isArray(resources) ? resources : [...resources.values()]\n if (list.length === 0) return nothing\n\n return html`\n <ul role=\"group\" class=\"resource-group\">\n ${repeat(list, (resource) => resource.id, (resource) => this.renderResourceItem(resource))}\n </ul>\n `\n }\n\n private renderTree () {\n const homeResource = this.getHomeResource()\n if (!homeResource) return nothing\n\n const orderedResources = [...this.resources.values()]\n\n return html`\n <ul role=\"tree\" class=\"resource-tree\" aria-label=\"Storage resources\">\n ${this.renderItem(\n homeResource,\n 'Home',\n this.renderSpecialIcon('folder'),\n this.homeExpanded,\n () => { this.homeExpanded = !this.homeExpanded },\n this.renderResourceGroup(orderedResources),\n true\n )}\n </ul>\n `\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n if (this.pendingFocusResourceId && !this.isTreeFocused()) {\n this.pendingFocusResourceId = null\n }\n if (changedProperties.has('subject')) {\n const hadFocus = this.isTreeFocused()\n this.focusHomeOnUpdate = !!this.subject &&\n (hadFocus || changedProperties.get('subject') === undefined)\n this.expandedContainers = new Set()\n this.homeExpanded = true\n this.activeResourceId = this.subject?.value ?? null\n }\n if (\n changedProperties.has('store') ||\n changedProperties.has('subject') ||\n changedProperties.has('resourceLogic')\n ) {\n this.loadResources()\n }\n }\n\n protected updated (changedProperties: PropertyValues<this>) {\n super.updated(changedProperties)\n if (this.focusHomeOnUpdate) {\n const home = this.renderRoot.querySelector<HTMLElement>('[role=\"treeitem\"]')\n if (home) {\n this.focusHomeOnUpdate = false\n home.focus()\n this.pendingFocusResourceId = null\n }\n return\n }\n if (this.pendingFocusResourceId) {\n const item = Array.from(this.renderRoot.querySelectorAll<HTMLElement>('[role=\"treeitem\"]'))\n .find(candidate => candidate.dataset.resourceId === this.pendingFocusResourceId)\n if (item?.isConnected) item.focus()\n this.pendingFocusResourceId = null\n }\n }\n\n render () {\n return html`\n <aside>\n ${keyed(this.subject?.value, this.renderTree())}\n </aside>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeoCc,IAAA,CAInCd,EAAc,qB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AAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAArB,GAAA,GAAA,KAAA,GAve8CZ,CAAY,GAAAkC,IAAAgK,IAAA,cAAAC,GAAA;CAAA/J,cAAA;EAAA,MAAAvB,CAAA,GAAAsC,EAAA,MAAA,UACzC1C,CAAM,GAAAuL,EAAA;CAAA;AAAA,GAAA7I,EAAA+I,GAAApL,GAAA,KAAA,CAAA,GAAAoL,GAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=require("lit").css`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:0 5px 0 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible,:host .resource-item:focus-visible>.resource-row{outline:1px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-1px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button:focus-visible{outline:1px solid var(--solid-ui-color-lavender-300,#e6dcff);outline-offset:1px}:host .resource-expand-button icon-lucide-chevron-right{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc)
|
|
1
|
+
var e=require("lit").css`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:0 5px 0 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible,:host .resource-item:focus-visible>.resource-row{outline:1px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-1px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-chevron-down,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button:focus-visible{outline:1px solid var(--solid-ui-color-lavender-300,#e6dcff);outline-offset:1px}:host .resource-expand-button icon-lucide-chevron-right,:host .resource-expand-button icon-lucide-chevron-down{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc)}`;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=FolderPaneSidebar.styles.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FolderPaneSidebar.styles.cjs.js","names":["FolderPaneSidebar_styles_default"],"sources":[
|
|
1
|
+
{"version":3,"file":"FolderPaneSidebar.styles.cjs.js","names":["FolderPaneSidebar_styles_default"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
// src/components/folder-pane-sidebar/FolderPaneSidebar.styles.css
|
|
3
|
-
var t = e`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:0 5px 0 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible,:host .resource-item:focus-visible>.resource-row{outline:1px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-1px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button:focus-visible{outline:1px solid var(--solid-ui-color-lavender-300,#e6dcff);outline-offset:1px}:host .resource-expand-button icon-lucide-chevron-right{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc)
|
|
3
|
+
var t = e`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:0 5px 0 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible,:host .resource-item:focus-visible>.resource-row{outline:1px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-1px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-chevron-down,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button:focus-visible{outline:1px solid var(--solid-ui-color-lavender-300,#e6dcff);outline-offset:1px}:host .resource-expand-button icon-lucide-chevron-right,:host .resource-expand-button icon-lucide-chevron-down{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc)}`;
|
|
4
4
|
export { t as default };
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=FolderPaneSidebar.styles.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FolderPaneSidebar.styles.esm.js","names":["FolderPaneSidebar_styles_default"],"sources":[
|
|
1
|
+
{"version":3,"file":"FolderPaneSidebar.styles.esm.js","names":["FolderPaneSidebar_styles_default"],"sources":[],"mappings":""}
|