folder-pane 4.0.1-1 → 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 -35
- package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +19 -5
- package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
- package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +271 -197
- 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 +90 -29
- package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.d.ts +35 -5
- package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
- package/dist/components/folder-pane-view/FolderPaneView.esm.js +495 -234
- 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 +2 -2
- package/dist/folderPane.d.ts.map +1 -1
- package/dist/folderPane.esm.js +20 -19
- 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 +1 -1
- package/dist/requestQueue.cjs.js.map +1 -1
- package/dist/requestQueue.d.ts +10 -2
- package/dist/requestQueue.d.ts.map +1 -1
- package/dist/requestQueue.esm.js +32 -22
- package/dist/requestQueue.esm.js.map +1 -1
- 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,45 +1,51 @@
|
|
|
1
|
-
import { getCreationPanes as e, getPaneLabel as t } from "../../helpers.esm.js";
|
|
2
1
|
import "../../_virtual/~icons/lucide/folder-open.esm.js";
|
|
2
|
+
import "../../_virtual/~icons/lucide/folder.esm.js";
|
|
3
3
|
import "../../_virtual/~icons/lucide/layout-grid.esm.js";
|
|
4
4
|
import "../../_virtual/~icons/lucide/list.esm.js";
|
|
5
5
|
import "../../_virtual/~icons/lucide/chevron-down.esm.js";
|
|
6
6
|
import "../../_virtual/~icons/lucide/plus.esm.js";
|
|
7
7
|
import "../../_virtual/~icons/lucide/upload.esm.js";
|
|
8
8
|
import "../../_virtual/~icons/lucide/search.esm.js";
|
|
9
|
-
import n from "
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { getCreationPanes as e, getPaneLabel as t, isContainerResource as n } from "../../helpers.esm.js";
|
|
10
|
+
import { resourceAccessCache as r } from "../../accessCache.esm.js";
|
|
11
|
+
import { loadResourcePaneMenuItems as i } from "../../resourceActionItems.esm.js";
|
|
12
|
+
import { error as a, warn as o } from "../../debug.esm.js";
|
|
13
|
+
import s from "./FolderPaneStorageHeader.styles.esm.js";
|
|
14
|
+
import { WebComponent as c, customElement as l, login as u } from "solid-ui";
|
|
15
|
+
import { authSession as d } from "solid-logic";
|
|
16
|
+
import { html as f, nothing as p } from "lit";
|
|
17
|
+
import { property as m, state as h } from "lit/decorators.js";
|
|
18
|
+
import "solid-ui/components/resource-actions-menu";
|
|
13
19
|
import "solid-ui/components/button";
|
|
14
20
|
import "solid-ui/components/menu";
|
|
15
21
|
import "solid-ui/components/menu-item";
|
|
16
22
|
// src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
|
|
23
|
+
var g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, M, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, oe, se;
|
|
24
|
+
function J(e, t, n) {
|
|
25
|
+
ce(e, t), t.set(e, n);
|
|
20
26
|
}
|
|
21
|
-
function
|
|
27
|
+
function ce(e, t) {
|
|
22
28
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
23
29
|
}
|
|
24
|
-
function
|
|
25
|
-
return e.set(
|
|
30
|
+
function Y(e, t, n) {
|
|
31
|
+
return e.set(le(e, t), n), n;
|
|
26
32
|
}
|
|
27
|
-
function
|
|
28
|
-
return e.get(
|
|
33
|
+
function X(e, t) {
|
|
34
|
+
return e.get(le(e, t));
|
|
29
35
|
}
|
|
30
|
-
function
|
|
36
|
+
function le(e, t, n) {
|
|
31
37
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
32
38
|
throw TypeError("Private element is not present on this object");
|
|
33
39
|
}
|
|
34
|
-
function
|
|
35
|
-
return (t =
|
|
40
|
+
function Z(e, t, n) {
|
|
41
|
+
return (t = Q(t)) in e ? Object.defineProperty(e, t, {
|
|
36
42
|
value: n,
|
|
37
43
|
enumerable: !0,
|
|
38
44
|
configurable: !0,
|
|
39
45
|
writable: !0
|
|
40
46
|
}) : e[t] = n, e;
|
|
41
47
|
}
|
|
42
|
-
function
|
|
48
|
+
function ue(e, t, n, r, i, a) {
|
|
43
49
|
function o(e, t, n) {
|
|
44
50
|
return function(r, i) {
|
|
45
51
|
return n && n(r), e[t].call(r, i);
|
|
@@ -62,13 +68,13 @@ function q(e, t, n, r, i, a) {
|
|
|
62
68
|
n || Array.isArray(_) || (_ = [_]);
|
|
63
69
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
64
70
|
d ? (f || p ? b = {
|
|
65
|
-
get:
|
|
71
|
+
get: fe(function() {
|
|
66
72
|
return v(this);
|
|
67
73
|
}, r, "get"),
|
|
68
74
|
set: function(e) {
|
|
69
75
|
t[4](this, e);
|
|
70
76
|
}
|
|
71
|
-
} : b[S] = v, f ||
|
|
77
|
+
} : b[S] = v, f || fe(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
72
78
|
}
|
|
73
79
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
74
80
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -128,7 +134,7 @@ function q(e, t, n, r, i, a) {
|
|
|
128
134
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
129
135
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
130
136
|
var i, a, o = [], c = function(t) {
|
|
131
|
-
return
|
|
137
|
+
return pe(t) === e;
|
|
132
138
|
}, u = /* @__PURE__ */ new Map();
|
|
133
139
|
function d(e) {
|
|
134
140
|
e && o.push(s.bind(null, e));
|
|
@@ -142,7 +148,7 @@ function q(e, t, n, r, i, a) {
|
|
|
142
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);
|
|
143
149
|
u.set(b, !(m > 2) || m);
|
|
144
150
|
}
|
|
145
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
151
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Q(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
146
152
|
}
|
|
147
153
|
}
|
|
148
154
|
return d(i), d(a), o;
|
|
@@ -155,11 +161,11 @@ function q(e, t, n, r, i, a) {
|
|
|
155
161
|
}
|
|
156
162
|
};
|
|
157
163
|
}
|
|
158
|
-
function
|
|
159
|
-
var t =
|
|
164
|
+
function Q(e) {
|
|
165
|
+
var t = de(e, "string");
|
|
160
166
|
return typeof t == "symbol" ? t : t + "";
|
|
161
167
|
}
|
|
162
|
-
function
|
|
168
|
+
function de(e, t) {
|
|
163
169
|
if (typeof e != "object" || !e) return e;
|
|
164
170
|
var n;
|
|
165
171
|
if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
|
|
@@ -169,7 +175,7 @@ function Y(e, t) {
|
|
|
169
175
|
}
|
|
170
176
|
return (t === "string" ? String : Number)(e);
|
|
171
177
|
}
|
|
172
|
-
function
|
|
178
|
+
function fe(e, t, n) {
|
|
173
179
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
174
180
|
try {
|
|
175
181
|
Object.defineProperty(e, "name", {
|
|
@@ -179,76 +185,148 @@ function X(e, t, n) {
|
|
|
179
185
|
} catch {}
|
|
180
186
|
return e;
|
|
181
187
|
}
|
|
182
|
-
function
|
|
188
|
+
function pe(e) {
|
|
183
189
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
184
190
|
return e;
|
|
185
191
|
}
|
|
186
|
-
function
|
|
192
|
+
function me(e) {
|
|
187
193
|
return e;
|
|
188
194
|
}
|
|
189
|
-
|
|
195
|
+
j = [l("folder-pane-storage-header")];
|
|
190
196
|
var $;
|
|
191
|
-
new (
|
|
197
|
+
new (oe = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), se = (ee = m({ attribute: !1 }), ne = m({ attribute: !1 }), ie = m({ attribute: !1 }), M = m({ attribute: !1 }), P = m({ attribute: !1 }), I = m(), R = m(), B = m({ type: Boolean }), H = h(), W = h(), K = h(), "subject"), _ = class extends c {
|
|
192
198
|
constructor(...e) {
|
|
193
|
-
super(...e),
|
|
199
|
+
super(...e), J(this, v, (k(this), te(this, void 0))), J(this, y, re(this, void 0)), J(this, b, ae(this, void 0)), J(this, x, N(this, void 0)), J(this, S, F(this, [])), J(this, C, L(this, "grid")), J(this, w, z(this, "")), J(this, T, V(this, !1)), J(this, E, U(this, [])), J(this, D, G(this, [])), J(this, O, q(this, !1)), Z(this, "availablePanesGeneration", 0), Z(this, "resourceActionsGeneration", 0), Z(this, "authListenersAttached", !1), Z(this, "handleAuthChange", () => {
|
|
200
|
+
this.loadResourceActions();
|
|
201
|
+
}), Z(this, "openAccessControls", () => {
|
|
202
|
+
let e = this.displayedResource;
|
|
203
|
+
e && (r.delete(e.uri), this.dispatchEvent(new CustomEvent("resource-open-pane", {
|
|
204
|
+
detail: {
|
|
205
|
+
resource: e,
|
|
206
|
+
paneName: "sharing"
|
|
207
|
+
},
|
|
208
|
+
bubbles: !0,
|
|
209
|
+
composed: !0
|
|
210
|
+
})));
|
|
211
|
+
});
|
|
194
212
|
}
|
|
195
|
-
get [
|
|
196
|
-
return
|
|
213
|
+
get [se]() {
|
|
214
|
+
return X(v, this);
|
|
197
215
|
}
|
|
198
216
|
set subject(e) {
|
|
199
|
-
|
|
217
|
+
Y(v, this, e);
|
|
218
|
+
}
|
|
219
|
+
get breadcrumbRoot() {
|
|
220
|
+
return X(y, this);
|
|
221
|
+
}
|
|
222
|
+
set breadcrumbRoot(e) {
|
|
223
|
+
Y(y, this, e);
|
|
200
224
|
}
|
|
201
225
|
get selectedResource() {
|
|
202
|
-
return
|
|
226
|
+
return X(b, this);
|
|
203
227
|
}
|
|
204
228
|
set selectedResource(e) {
|
|
205
|
-
|
|
229
|
+
Y(b, this, e);
|
|
206
230
|
}
|
|
207
231
|
get browserContext() {
|
|
208
|
-
return
|
|
232
|
+
return X(x, this);
|
|
209
233
|
}
|
|
210
234
|
set browserContext(e) {
|
|
211
|
-
|
|
235
|
+
Y(x, this, e);
|
|
212
236
|
}
|
|
213
237
|
get paneList() {
|
|
214
|
-
return
|
|
238
|
+
return X(S, this);
|
|
215
239
|
}
|
|
216
240
|
set paneList(e) {
|
|
217
|
-
|
|
241
|
+
Y(S, this, e);
|
|
218
242
|
}
|
|
219
243
|
get view() {
|
|
220
|
-
return
|
|
244
|
+
return X(C, this);
|
|
221
245
|
}
|
|
222
246
|
set view(e) {
|
|
223
|
-
|
|
247
|
+
Y(C, this, e);
|
|
224
248
|
}
|
|
225
249
|
get searchQuery() {
|
|
226
|
-
return
|
|
250
|
+
return X(w, this);
|
|
227
251
|
}
|
|
228
252
|
set searchQuery(e) {
|
|
229
|
-
|
|
253
|
+
Y(w, this, e);
|
|
230
254
|
}
|
|
231
255
|
get canCreate() {
|
|
232
|
-
return
|
|
256
|
+
return X(T, this);
|
|
233
257
|
}
|
|
234
258
|
set canCreate(e) {
|
|
235
|
-
|
|
259
|
+
Y(T, this, e);
|
|
236
260
|
}
|
|
237
261
|
get availablePanes() {
|
|
238
|
-
return
|
|
262
|
+
return X(E, this);
|
|
239
263
|
}
|
|
240
264
|
set availablePanes(e) {
|
|
241
|
-
|
|
265
|
+
Y(E, this, e);
|
|
266
|
+
}
|
|
267
|
+
get resourceActionMenuItems() {
|
|
268
|
+
return X(D, this);
|
|
269
|
+
}
|
|
270
|
+
set resourceActionMenuItems(e) {
|
|
271
|
+
Y(D, this, e);
|
|
272
|
+
}
|
|
273
|
+
get canManageAccess() {
|
|
274
|
+
return X(O, this);
|
|
242
275
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
276
|
+
set canManageAccess(e) {
|
|
277
|
+
Y(O, this, e);
|
|
278
|
+
}
|
|
279
|
+
willUpdate(t) {
|
|
280
|
+
if (t.has("paneList") || t.has("browserContext")) {
|
|
281
|
+
let t = ++this.availablePanesGeneration;
|
|
282
|
+
u.filterAvailablePanes(this.paneList).then((n) => {
|
|
283
|
+
t === this.availablePanesGeneration && (this.availablePanes = e(n));
|
|
284
|
+
}).catch((e) => a("Unable to load folder creation panes", e));
|
|
285
|
+
}
|
|
286
|
+
(t.has("selectedResource") || t.has("subject") || t.has("browserContext")) && this.loadResourceActions();
|
|
287
|
+
}
|
|
288
|
+
connectedCallback() {
|
|
289
|
+
super.connectedCallback(), this.authListenersAttached ||= (d.events.on("login", this.handleAuthChange), d.events.on("logout", this.handleAuthChange), !0);
|
|
290
|
+
}
|
|
291
|
+
disconnectedCallback() {
|
|
292
|
+
this.resourceActionsGeneration++, this.authListenersAttached &&= (d.events.off("login", this.handleAuthChange), d.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback();
|
|
293
|
+
}
|
|
294
|
+
get displayedResource() {
|
|
295
|
+
return this.selectedResource ?? this.subject;
|
|
296
|
+
}
|
|
297
|
+
async loadResourceActions() {
|
|
298
|
+
let e = ++this.resourceActionsGeneration, t = this.displayedResource, r = this.browserContext;
|
|
299
|
+
if (this.resourceActionMenuItems = [], this.canManageAccess = !1, !t || !r) return;
|
|
300
|
+
let a = r.session.logic.resource, s = a, c = a.fetchMetadata(t).then((e) => e.access.canManageAccess).catch((e) => (o("Unable to load storage-header access metadata", e), !1));
|
|
301
|
+
try {
|
|
302
|
+
let a = await i({
|
|
303
|
+
resource: t,
|
|
304
|
+
isContainer: n(t, s),
|
|
305
|
+
context: r,
|
|
306
|
+
resourceLogic: s,
|
|
307
|
+
includeFolderPane: !0,
|
|
308
|
+
openPane: (e, n) => {
|
|
309
|
+
n.stopPropagation(), this.dispatchEvent(new CustomEvent("resource-open-pane", {
|
|
310
|
+
detail: {
|
|
311
|
+
resource: t,
|
|
312
|
+
paneName: e
|
|
313
|
+
},
|
|
314
|
+
bubbles: !0,
|
|
315
|
+
composed: !0
|
|
316
|
+
}));
|
|
317
|
+
},
|
|
318
|
+
isCurrent: () => e === this.resourceActionsGeneration && t === this.displayedResource
|
|
319
|
+
});
|
|
320
|
+
a && (this.resourceActionMenuItems = a);
|
|
321
|
+
} catch (t) {
|
|
322
|
+
e === this.resourceActionsGeneration && o("Unable to load storage-header pane actions", t);
|
|
323
|
+
} finally {
|
|
324
|
+
let n = await c;
|
|
325
|
+
e === this.resourceActionsGeneration && t === this.displayedResource && (this.canManageAccess = n);
|
|
326
|
+
}
|
|
249
327
|
}
|
|
250
328
|
get breadcrumbResources() {
|
|
251
|
-
let e = this.subject, t = this.selectedResource;
|
|
329
|
+
let e = this.breadcrumbRoot ?? this.subject, t = this.selectedResource;
|
|
252
330
|
if (!e || !t) return e ? [e] : [];
|
|
253
331
|
let n = [t], r = t;
|
|
254
332
|
for (; !r.sameTerm(e);) {
|
|
@@ -258,7 +336,7 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
258
336
|
return n;
|
|
259
337
|
}
|
|
260
338
|
getResourceLabel(e, t) {
|
|
261
|
-
if (
|
|
339
|
+
if (t === 0) return "Home";
|
|
262
340
|
try {
|
|
263
341
|
let t = new URL(e.uri).pathname.split("/").filter(Boolean);
|
|
264
342
|
return decodeURIComponent(t[t.length - 1] || e.uri);
|
|
@@ -307,14 +385,14 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
307
385
|
}));
|
|
308
386
|
}
|
|
309
387
|
render() {
|
|
310
|
-
return
|
|
388
|
+
return f`
|
|
311
389
|
<header class="folder-pane-storage-header">
|
|
312
390
|
<nav class="folder-pane-storage-header-breadcrumbs" aria-label="Storage breadcrumb">
|
|
313
391
|
<icon-lucide-folder-open aria-hidden="true"></icon-lucide-folder-open>
|
|
314
392
|
<ol>
|
|
315
|
-
${this.breadcrumbResources.map((e, t, n) =>
|
|
393
|
+
${this.breadcrumbResources.map((e, t, n) => f`
|
|
316
394
|
<li>
|
|
317
|
-
${t === n.length - 1 ?
|
|
395
|
+
${t === n.length - 1 ? f`<span aria-current="page">${this.getResourceLabel(e, t)}</span>` : f`
|
|
318
396
|
<button
|
|
319
397
|
type="button"
|
|
320
398
|
@click=${() => t === 0 ? this.selectHome() : this.selectResource(e)}
|
|
@@ -335,6 +413,17 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
335
413
|
@input=${this.updateSearch}
|
|
336
414
|
>
|
|
337
415
|
</label>
|
|
416
|
+
${this.displayedResource && this.browserContext ? f`
|
|
417
|
+
<solid-ui-resource-actions-menu
|
|
418
|
+
class="folder-pane-storage-header-resource-actions"
|
|
419
|
+
.store=${this.browserContext.session.store}
|
|
420
|
+
.subjectUri=${this.displayedResource.uri}
|
|
421
|
+
.menuItems=${this.resourceActionMenuItems}
|
|
422
|
+
.canManageAccess=${this.canManageAccess}
|
|
423
|
+
.showAccessInMenu=${!0}
|
|
424
|
+
.handleAccessClick=${this.openAccessControls}
|
|
425
|
+
></solid-ui-resource-actions-menu>
|
|
426
|
+
` : p}
|
|
338
427
|
<div class="folder-pane-storage-header-view-controls" role="group" aria-label="Container view">
|
|
339
428
|
<div class=${`folder-pane-storage-header-view-toggle ${this.view === "grid" ? "is-selected" : ""}`}>
|
|
340
429
|
<solid-ui-button
|
|
@@ -357,23 +446,26 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
357
446
|
</solid-ui-button>
|
|
358
447
|
</div>
|
|
359
448
|
</div>
|
|
360
|
-
${this.canCreate ?
|
|
361
|
-
<
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
449
|
+
${this.canCreate ? f`<solid-ui-menu class="folder-pane-storage-header-add-menu" placement="bottom-end">
|
|
450
|
+
<div slot="trigger" class="folder-pane-storage-header-add-trigger">
|
|
451
|
+
<button
|
|
452
|
+
type="button"
|
|
453
|
+
class="folder-pane-storage-header-add-button"
|
|
454
|
+
aria-label="Add"
|
|
455
|
+
aria-haspopup="menu"
|
|
456
|
+
>
|
|
457
|
+
<icon-lucide-plus aria-hidden="true"></icon-lucide-plus>
|
|
458
|
+
<span class="folder-pane-storage-header-add-label">Add</span>
|
|
459
|
+
<icon-lucide-chevron-down class="folder-pane-storage-header-add-chevron" aria-hidden="true"></icon-lucide-chevron-down>
|
|
460
|
+
</button>
|
|
461
|
+
</div>
|
|
462
|
+
${this.availablePanes.map((e) => f`
|
|
371
463
|
<solid-ui-menu-item @solid-ui-select=${() => this.createPane(e)}>
|
|
372
|
-
${e.icon ?
|
|
464
|
+
${e.icon ? f`<img
|
|
373
465
|
slot="left-icon"
|
|
374
466
|
src=${String(e.icon)}
|
|
375
467
|
alt=""
|
|
376
|
-
>` :
|
|
468
|
+
>` : p}
|
|
377
469
|
New ${t(e)}
|
|
378
470
|
</solid-ui-menu-item>
|
|
379
471
|
`)}
|
|
@@ -381,57 +473,72 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
381
473
|
<icon-lucide-upload slot="left-icon" aria-hidden="true"></icon-lucide-upload>
|
|
382
474
|
Upload
|
|
383
475
|
</solid-ui-menu-item>
|
|
384
|
-
</solid-ui-menu>` :
|
|
476
|
+
</solid-ui-menu>` : p}
|
|
385
477
|
</div>
|
|
386
478
|
</header>
|
|
387
479
|
`;
|
|
388
480
|
}
|
|
389
|
-
}, {e: [
|
|
481
|
+
}, {e: [te, re, ae, N, F, L, z, V, U, G, q, k], c: [$, A]} = ue(_, [
|
|
390
482
|
[
|
|
391
|
-
|
|
483
|
+
ee,
|
|
392
484
|
1,
|
|
393
485
|
"subject"
|
|
394
486
|
],
|
|
395
487
|
[
|
|
396
|
-
|
|
488
|
+
ne,
|
|
489
|
+
1,
|
|
490
|
+
"breadcrumbRoot"
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
ie,
|
|
397
494
|
1,
|
|
398
495
|
"selectedResource"
|
|
399
496
|
],
|
|
400
497
|
[
|
|
401
|
-
|
|
498
|
+
M,
|
|
402
499
|
1,
|
|
403
500
|
"browserContext"
|
|
404
501
|
],
|
|
405
502
|
[
|
|
406
|
-
|
|
503
|
+
P,
|
|
407
504
|
1,
|
|
408
505
|
"paneList"
|
|
409
506
|
],
|
|
410
507
|
[
|
|
411
|
-
|
|
508
|
+
I,
|
|
412
509
|
1,
|
|
413
510
|
"view"
|
|
414
511
|
],
|
|
415
512
|
[
|
|
416
|
-
|
|
513
|
+
R,
|
|
417
514
|
1,
|
|
418
515
|
"searchQuery"
|
|
419
516
|
],
|
|
420
517
|
[
|
|
421
|
-
|
|
518
|
+
B,
|
|
422
519
|
1,
|
|
423
520
|
"canCreate"
|
|
424
521
|
],
|
|
425
522
|
[
|
|
426
|
-
|
|
523
|
+
H,
|
|
427
524
|
1,
|
|
428
525
|
"availablePanes"
|
|
526
|
+
],
|
|
527
|
+
[
|
|
528
|
+
W,
|
|
529
|
+
1,
|
|
530
|
+
"resourceActionMenuItems"
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
K,
|
|
534
|
+
1,
|
|
535
|
+
"canManageAccess"
|
|
429
536
|
]
|
|
430
|
-
],
|
|
537
|
+
], j, 0, void 0, c), _), g = class extends me {
|
|
431
538
|
constructor() {
|
|
432
|
-
super($),
|
|
539
|
+
super($), Z(this, "styles", s), A();
|
|
433
540
|
}
|
|
434
|
-
},
|
|
541
|
+
}, Z(g, oe, void 0), g)();
|
|
435
542
|
export { $ as default };
|
|
436
543
|
|
|
437
544
|
//# sourceMappingURL=FolderPaneStorageHeader.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FolderPaneStorageHeader.esm.js","names":["html","nothing","property","state","customElement","login","WebComponent","getCreationPanes","getPaneLabel","styles","_classDecs","_FolderPaneStorageHea","_FolderPaneStorageHea2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_subjectDecs","attribute","_selectedResourceDecs","_browserContextDecs","_paneListDecs","_viewDecs","_searchQueryDecs","_canCreateDecs","type","Boolean","_availablePanesDecs","_FolderPaneStorageHeader","FolderPaneStorageHeader","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_subject","undefined","_init_selectedResource","_init_browserContext","_init_paneList","_init_view","_init_searchQuery","_init_canCreate","_init_availablePanes","_defineProperty","_classPrivateFieldGet","subject","v","_classPrivateFieldSet","selectedResource","browserContext","paneList","view","searchQuery","canCreate","availablePanes","updated","changedProperties","has","generation","availablePanesGeneration","filterAvailablePanes","then","panes","catch","error","console","breadcrumbResources","root","selected","resources","current","sameTerm","parent","dir","unshift","length","getResourceLabel","resource","index","pathSegments","URL","uri","pathname","split","filter","decodeURIComponent","selectHome","dispatchEvent","CustomEvent","bubbles","composed","selectView","detail","selectResource","requestUpload","updateSearch","event","query","target","value","createPane","pane","render","map","String","icon","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","FolderPaneStorageHeader_styles_default","_Class","_FolderPaneStorageHeader","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_subjectDecs","_init_subject","_selectedResourceDecs","_init_selectedResource","_browserContextDecs","_init_browserContext","_paneListDecs","_init_paneList","_viewDecs","_init_view","_searchQueryDecs","_init_searchQuery","_canCreateDecs","_init_canCreate","_availablePanesDecs","_init_availablePanes","_FolderPaneStorageHea2","_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","_FolderPaneStorageHea","property","state","WebComponent","args","changedProperties","generation","getCreationPanes","panes","error","root","selected","resources","current","parent","resource","index","pathSegments","event","pane","nothing","getPaneLabel"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts"],"sourcesContent":["import { html, nothing } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { customElement, login, WebComponent } from 'solid-ui'\nimport type { NamedNode } from 'rdflib'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/menu-item'\nimport '~icons/lucide/folder-open'\nimport '~icons/lucide/layout-grid'\nimport '~icons/lucide/list'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/plus'\nimport '~icons/lucide/upload'\nimport '~icons/lucide/search'\nimport { getCreationPanes, getPaneLabel } from '../../helpers'\nimport styles from './FolderPaneStorageHeader.styles.css'\n\n@customElement('folder-pane-storage-header')\nexport default class FolderPaneStorageHeader extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor browserContext: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor paneList: PaneDefinition[] = []\n\n @property()\n accessor view: 'grid' | 'list' = 'grid'\n\n @property()\n accessor searchQuery = ''\n\n @property({ type: Boolean })\n accessor canCreate = false\n\n @state()\n accessor availablePanes: PaneDefinition[] = []\n\n private availablePanesGeneration = 0\n\n protected updated (changedProperties: PropertyValues<this>) {\n if (!changedProperties.has('paneList') && !changedProperties.has('browserContext')) return\n const generation = ++this.availablePanesGeneration\n void login.filterAvailablePanes(this.paneList)\n .then(panes => {\n if (generation === this.availablePanesGeneration) {\n this.availablePanes = getCreationPanes(panes)\n }\n })\n .catch(error => console.error('Unable to load folder creation panes', error))\n }\n\n private get breadcrumbResources () {\n const root = this.subject\n const selected = this.selectedResource\n if (!root || !selected) return root ? [root] : []\n\n const resources = [selected]\n let current = selected\n while (!current.sameTerm(root)) {\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) return [root, selected]\n resources.unshift(parent)\n current = parent\n if (resources.length > 32) return [root, selected]\n }\n return resources\n }\n\n private getResourceLabel (resource: NamedNode, index: number) {\n if (this.subject?.sameTerm(resource) || index === 0) return 'Home'\n\n try {\n const pathSegments = new URL(resource.uri).pathname.split('/').filter(Boolean)\n return decodeURIComponent(pathSegments[pathSegments.length - 1] || resource.uri)\n } catch {\n return resource.uri\n }\n }\n\n private selectHome () {\n this.dispatchEvent(new CustomEvent('folder-pane-select-home', {\n bubbles: true,\n composed: true\n }))\n }\n\n private selectView (view: 'grid' | 'list') {\n this.dispatchEvent(new CustomEvent('folder-pane-change-view', {\n detail: { view },\n bubbles: true,\n composed: true\n }))\n }\n\n private selectResource (resource: NamedNode) {\n this.dispatchEvent(new CustomEvent('folder-pane-select-resource', {\n detail: { resource },\n bubbles: true,\n composed: true\n }))\n }\n\n private requestUpload () {\n this.dispatchEvent(new CustomEvent('folder-pane-upload', {\n bubbles: true,\n composed: true\n }))\n }\n\n private updateSearch (event: Event) {\n this.dispatchEvent(new CustomEvent('folder-pane-search', {\n detail: { query: (event.target as HTMLInputElement).value },\n bubbles: true,\n composed: true\n }))\n }\n\n private createPane (pane: PaneDefinition) {\n this.dispatchEvent(new CustomEvent('folder-pane-create-pane', {\n detail: { pane },\n bubbles: true,\n composed: true\n }))\n }\n\n render () {\n return html`\n <header class=\"folder-pane-storage-header\">\n <nav class=\"folder-pane-storage-header-breadcrumbs\" aria-label=\"Storage breadcrumb\">\n <icon-lucide-folder-open aria-hidden=\"true\"></icon-lucide-folder-open>\n <ol>\n ${this.breadcrumbResources.map((resource, index, resources) => html`\n <li>\n ${index === resources.length - 1\n ? html`<span aria-current=\"page\">${this.getResourceLabel(resource, index)}</span>`\n : html`\n <button\n type=\"button\"\n @click=${() => index === 0 ? this.selectHome() : this.selectResource(resource)}\n >${this.getResourceLabel(resource, index)}</button>\n <span class=\"separator\" aria-hidden=\"true\">/</span>\n `}\n </li>\n `)}\n </ol>\n </nav>\n <div class=\"folder-pane-storage-header-toolbar\">\n <label class=\"folder-pane-storage-header-search\">\n <icon-lucide-search aria-hidden=\"true\"></icon-lucide-search>\n <input\n aria-label=\"Search\"\n type=\"search\"\n .value=${this.searchQuery}\n @input=${this.updateSearch}\n >\n </label>\n <div class=\"folder-pane-storage-header-view-controls\" role=\"group\" aria-label=\"Container view\">\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'grid' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"Grid view\"\n aria-pressed=${String(this.view === 'grid')}\n @click=${() => this.selectView('grid')}\n >\n <icon-lucide-layout-grid slot=\"icon\" aria-hidden=\"true\"></icon-lucide-layout-grid>\n </solid-ui-button>\n </div>\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'list' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"List view\"\n aria-pressed=${String(this.view === 'list')}\n @click=${() => this.selectView('list')}\n >\n <icon-lucide-list slot=\"icon\" aria-hidden=\"true\"></icon-lucide-list>\n </solid-ui-button>\n </div>\n </div>\n ${this.canCreate ? html`<solid-ui-menu class=\"folder-pane-storage-header-add-menu\" placement=\"bottom-end\">\n <solid-ui-button\n slot=\"trigger\"\n variant=\"primary\"\n aria-haspopup=\"menu\"\n >\n <icon-lucide-plus slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-plus>\n Add\n <icon-lucide-chevron-down slot=\"right-icon\" aria-hidden=\"true\"></icon-lucide-chevron-down>\n </solid-ui-button>\n ${this.availablePanes.map(pane => html`\n <solid-ui-menu-item @solid-ui-select=${() => this.createPane(pane)}>\n ${pane.icon\n ? html`<img\n slot=\"left-icon\"\n src=${String(pane.icon)}\n alt=\"\"\n >`\n : nothing}\n New ${getPaneLabel(pane)}\n </solid-ui-menu-item>\n `)}\n <solid-ui-menu-item @solid-ui-select=${this.requestUpload}>\n <icon-lucide-upload slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-upload>\n Upload\n </solid-ui-menu-item>\n </solid-ui-menu>` : nothing}\n </div>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiByDU,IAAA,CAExDN,EAAc,4BAA4B,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IAAAP,QAAA,GAAAQ,KAAAC,IAIzCrB,EAAS,EAAEsB,WAAW,GAAM,CAAC,GAACC,IAG9BvB,EA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jF,GAAA;CAAA;EAAAX;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;AAAA,GAAAvB,GAAA,GAAA,KAAA,GAvMoDJ,CAAY,GAAA4B,IAAAkF,IAAA,cAAAC,EAAA;CAAAjF,cAAA;EAAA,MAAAzB,CAAA,GAAAsC,EAAA,MAAA,UAC/CxC,CAAM,GAAAyG,EAAA;CAAA;AAAA,GAAAjE,EAAAmE,GAAAxG,GAAA,KAAA,CAAA,GAAAwG,GAAA"}
|
|
1
|
+
{"version":3,"file":"FolderPaneStorageHeader.esm.js","names":["html","nothing","property","state","authSession","customElement","login","WebComponent","getCreationPanes","getPaneLabel","isContainerResource","resourceAccessCache","loadResourcePaneMenuItems","debug","styles","_classDecs","_FolderPaneStorageHea","_FolderPaneStorageHea2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_ref","_subjectDecs","attribute","_breadcrumbRootDecs","_selectedResourceDecs","_browserContextDecs","_paneListDecs","_viewDecs","_searchQueryDecs","_canCreateDecs","type","Boolean","_availablePanesDecs","_resourceActionMenuItemsDecs","_canManageAccessDecs","_FolderPaneStorageHeader","FolderPaneStorageHeader","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_subject","undefined","_init_breadcrumbRoot","_init_selectedResource","_init_browserContext","_init_paneList","_init_view","_init_searchQuery","_init_canCreate","_init_availablePanes","_init_resourceActionMenuItems","_init_canManageAccess","_defineProperty","loadResourceActions","resource","displayedResource","delete","uri","dispatchEvent","CustomEvent","detail","paneName","bubbles","composed","_classPrivateFieldGet","subject","v","_classPrivateFieldSet","breadcrumbRoot","selectedResource","browserContext","paneList","view","searchQuery","canCreate","availablePanes","resourceActionMenuItems","canManageAccess","willUpdate","changedProperties","has","generation","availablePanesGeneration","filterAvailablePanes","then","panes","catch","error","connectedCallback","authListenersAttached","events","on","handleAuthChange","disconnectedCallback","resourceActionsGeneration","off","context","resourceLogic","session","logic","folderPaneResourceLogic","accessMetadata","fetchMetadata","metadata","access","warn","items","isContainer","includeFolderPane","openPane","event","stopPropagation","isCurrent","breadcrumbResources","root","selected","resources","current","sameTerm","parent","dir","unshift","length","getResourceLabel","index","pathSegments","URL","pathname","split","filter","decodeURIComponent","selectHome","selectView","selectResource","requestUpload","updateSearch","query","target","value","createPane","pane","render","map","store","openAccessControls","String","icon","e","c","_initClass","_applyDecs","_Class","_identity","default","debug.error","error","styles","FolderPaneStorageHeader_styles_default","_Class","_FolderPaneStorageHeader","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_initProto","_initClass","_classDecs","_subjectDecs","_init_subject","_breadcrumbRootDecs","_init_breadcrumbRoot","_selectedResourceDecs","_init_selectedResource","_browserContextDecs","_init_browserContext","_paneListDecs","_init_paneList","_viewDecs","_init_view","_searchQueryDecs","_init_searchQuery","_canCreateDecs","_init_canCreate","_availablePanesDecs","_init_availablePanes","_resourceActionMenuItemsDecs","_init_resourceActionMenuItems","_canManageAccessDecs","_init_canManageAccess","_FolderPaneStorageHea2","_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","_FolderPaneStorageHea","property","state","WebComponent","args","resource","resourceAccessCache","changedProperties","generation","getCreationPanes","panes","error","error$1","authSession","context","resourceLogic","folderPaneResourceLogic","accessMetadata","metadata","warn","items","loadResourcePaneMenuItems","isContainerResource","event","canManageAccess","root","selected","resources","current","parent","index","pathSegments","nothing","pane","getPaneLabel"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts"],"sourcesContent":["import { html, nothing } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { authSession } from 'solid-logic'\nimport { customElement, login, WebComponent } from 'solid-ui'\nimport type { PaneMenuItem } from 'solid-ui'\nimport type { NamedNode } from 'rdflib'\nimport type { ResourceMetadata } from 'solid-logic'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/resource-actions-menu'\nimport '~icons/lucide/folder-open'\nimport '~icons/lucide/folder'\nimport '~icons/lucide/layout-grid'\nimport '~icons/lucide/list'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/plus'\nimport '~icons/lucide/upload'\nimport '~icons/lucide/search'\nimport { getCreationPanes, getPaneLabel, isContainerResource, type FolderPaneResourceLogic } from '../../helpers'\nimport { resourceAccessCache } from '../../accessCache'\nimport { loadResourcePaneMenuItems } from '../../resourceActionItems'\nimport * as debug from '../../debug'\nimport styles from './FolderPaneStorageHeader.styles.css'\n\n@customElement('folder-pane-storage-header')\nexport default class FolderPaneStorageHeader extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor breadcrumbRoot: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor browserContext: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor paneList: PaneDefinition[] = []\n\n @property()\n accessor view: 'grid' | 'list' = 'grid'\n\n @property()\n accessor searchQuery = ''\n\n @property({ type: Boolean })\n accessor canCreate = false\n\n @state()\n accessor availablePanes: PaneDefinition[] = []\n\n @state()\n accessor resourceActionMenuItems: PaneMenuItem[] = []\n\n @state()\n accessor canManageAccess = false\n\n private availablePanesGeneration = 0\n private resourceActionsGeneration = 0\n private authListenersAttached = false\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneList') || changedProperties.has('browserContext')) {\n const generation = ++this.availablePanesGeneration\n void login.filterAvailablePanes(this.paneList)\n .then(panes => {\n if (generation === this.availablePanesGeneration) {\n this.availablePanes = getCreationPanes(panes)\n }\n })\n .catch(error => debug.error('Unable to load folder creation panes', error))\n }\n\n if (\n changedProperties.has('selectedResource') ||\n changedProperties.has('subject') ||\n changedProperties.has('browserContext')\n ) {\n void this.loadResourceActions()\n }\n }\n\n connectedCallback () {\n super.connectedCallback()\n if (!this.authListenersAttached) {\n authSession.events.on('login', this.handleAuthChange)\n authSession.events.on('logout', this.handleAuthChange)\n this.authListenersAttached = true\n }\n }\n\n disconnectedCallback () {\n this.resourceActionsGeneration++\n if (this.authListenersAttached) {\n authSession.events.off('login', this.handleAuthChange)\n authSession.events.off('logout', this.handleAuthChange)\n this.authListenersAttached = false\n }\n super.disconnectedCallback()\n }\n\n private handleAuthChange = () => {\n void this.loadResourceActions()\n }\n\n private get displayedResource () {\n return this.selectedResource ?? this.subject\n }\n\n private async loadResourceActions () {\n const generation = ++this.resourceActionsGeneration\n const resource = this.displayedResource\n const context = this.browserContext\n this.resourceActionMenuItems = []\n this.canManageAccess = false\n if (!resource || !context) return\n\n const resourceLogic = context.session.logic.resource\n const folderPaneResourceLogic = resourceLogic as FolderPaneResourceLogic\n const accessMetadata = resourceLogic.fetchMetadata(resource)\n .then((metadata: ResourceMetadata) => metadata.access.canManageAccess)\n .catch(error => {\n debug.warn('Unable to load storage-header access metadata', error)\n return false\n })\n\n try {\n const items = await loadResourcePaneMenuItems({\n resource,\n isContainer: isContainerResource(resource, folderPaneResourceLogic),\n context,\n resourceLogic: folderPaneResourceLogic,\n includeFolderPane: true,\n openPane: (paneName, event) => {\n event.stopPropagation()\n this.dispatchEvent(new CustomEvent('resource-open-pane', {\n detail: { resource, paneName },\n bubbles: true,\n composed: true\n }))\n },\n isCurrent: () => generation === this.resourceActionsGeneration && resource === this.displayedResource\n })\n if (items) this.resourceActionMenuItems = items\n } catch (error) {\n if (generation === this.resourceActionsGeneration) {\n debug.warn('Unable to load storage-header pane actions', error)\n }\n } finally {\n const canManageAccess = await accessMetadata\n if (generation === this.resourceActionsGeneration && resource === this.displayedResource) {\n this.canManageAccess = canManageAccess\n }\n }\n }\n\n private openAccessControls = () => {\n const resource = this.displayedResource\n if (!resource) return\n resourceAccessCache.delete(resource.uri)\n this.dispatchEvent(new CustomEvent('resource-open-pane', {\n detail: { resource, paneName: 'sharing' },\n bubbles: true,\n composed: true\n }))\n }\n\n private get breadcrumbResources () {\n const root = this.breadcrumbRoot ?? this.subject\n const selected = this.selectedResource\n if (!root || !selected) return root ? [root] : []\n\n const resources = [selected]\n let current = selected\n while (!current.sameTerm(root)) {\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) return [root, selected]\n resources.unshift(parent)\n current = parent\n if (resources.length > 32) return [root, selected]\n }\n return resources\n }\n\n private getResourceLabel (resource: NamedNode, index: number) {\n if (index === 0) return 'Home'\n\n try {\n const pathSegments = new URL(resource.uri).pathname.split('/').filter(Boolean)\n return decodeURIComponent(pathSegments[pathSegments.length - 1] || resource.uri)\n } catch {\n return resource.uri\n }\n }\n\n private selectHome () {\n this.dispatchEvent(new CustomEvent('folder-pane-select-home', {\n bubbles: true,\n composed: true\n }))\n }\n\n private selectView (view: 'grid' | 'list') {\n this.dispatchEvent(new CustomEvent('folder-pane-change-view', {\n detail: { view },\n bubbles: true,\n composed: true\n }))\n }\n\n private selectResource (resource: NamedNode) {\n this.dispatchEvent(new CustomEvent('folder-pane-select-resource', {\n detail: { resource },\n bubbles: true,\n composed: true\n }))\n }\n\n private requestUpload () {\n this.dispatchEvent(new CustomEvent('folder-pane-upload', {\n bubbles: true,\n composed: true\n }))\n }\n\n private updateSearch (event: Event) {\n this.dispatchEvent(new CustomEvent('folder-pane-search', {\n detail: { query: (event.target as HTMLInputElement).value },\n bubbles: true,\n composed: true\n }))\n }\n\n private createPane (pane: PaneDefinition) {\n this.dispatchEvent(new CustomEvent('folder-pane-create-pane', {\n detail: { pane },\n bubbles: true,\n composed: true\n }))\n }\n\n render () {\n return html`\n <header class=\"folder-pane-storage-header\">\n <nav class=\"folder-pane-storage-header-breadcrumbs\" aria-label=\"Storage breadcrumb\">\n <icon-lucide-folder-open aria-hidden=\"true\"></icon-lucide-folder-open>\n <ol>\n ${this.breadcrumbResources.map((resource, index, resources) => html`\n <li>\n ${index === resources.length - 1\n ? html`<span aria-current=\"page\">${this.getResourceLabel(resource, index)}</span>`\n : html`\n <button\n type=\"button\"\n @click=${() => index === 0 ? this.selectHome() : this.selectResource(resource)}\n >${this.getResourceLabel(resource, index)}</button>\n <span class=\"separator\" aria-hidden=\"true\">/</span>\n `}\n </li>\n `)}\n </ol>\n </nav>\n <div class=\"folder-pane-storage-header-toolbar\">\n <label class=\"folder-pane-storage-header-search\">\n <icon-lucide-search aria-hidden=\"true\"></icon-lucide-search>\n <input\n aria-label=\"Search\"\n type=\"search\"\n .value=${this.searchQuery}\n @input=${this.updateSearch}\n >\n </label>\n ${this.displayedResource && this.browserContext ? html`\n <solid-ui-resource-actions-menu\n class=\"folder-pane-storage-header-resource-actions\"\n .store=${this.browserContext.session.store}\n .subjectUri=${this.displayedResource.uri}\n .menuItems=${this.resourceActionMenuItems}\n .canManageAccess=${this.canManageAccess}\n .showAccessInMenu=${true}\n .handleAccessClick=${this.openAccessControls}\n ></solid-ui-resource-actions-menu>\n ` : nothing}\n <div class=\"folder-pane-storage-header-view-controls\" role=\"group\" aria-label=\"Container view\">\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'grid' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"Grid view\"\n aria-pressed=${String(this.view === 'grid')}\n @click=${() => this.selectView('grid')}\n >\n <icon-lucide-layout-grid slot=\"icon\" aria-hidden=\"true\"></icon-lucide-layout-grid>\n </solid-ui-button>\n </div>\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'list' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"List view\"\n aria-pressed=${String(this.view === 'list')}\n @click=${() => this.selectView('list')}\n >\n <icon-lucide-list slot=\"icon\" aria-hidden=\"true\"></icon-lucide-list>\n </solid-ui-button>\n </div>\n </div>\n ${this.canCreate ? html`<solid-ui-menu class=\"folder-pane-storage-header-add-menu\" placement=\"bottom-end\">\n <div slot=\"trigger\" class=\"folder-pane-storage-header-add-trigger\">\n <button\n type=\"button\"\n class=\"folder-pane-storage-header-add-button\"\n aria-label=\"Add\"\n aria-haspopup=\"menu\"\n >\n <icon-lucide-plus aria-hidden=\"true\"></icon-lucide-plus>\n <span class=\"folder-pane-storage-header-add-label\">Add</span>\n <icon-lucide-chevron-down class=\"folder-pane-storage-header-add-chevron\" aria-hidden=\"true\"></icon-lucide-chevron-down>\n </button>\n </div>\n ${this.availablePanes.map(pane => html`\n <solid-ui-menu-item @solid-ui-select=${() => this.createPane(pane)}>\n ${pane.icon\n ? html`<img\n slot=\"left-icon\"\n src=${String(pane.icon)}\n alt=\"\"\n >`\n : nothing}\n New ${getPaneLabel(pane)}\n </solid-ui-menu-item>\n `)}\n <solid-ui-menu-item @solid-ui-select=${this.requestUpload}>\n <icon-lucide-upload slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-upload>\n Upload\n </solid-ui-menu-item>\n </solid-ui-menu>` : nothing}\n </div>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyByDe,IAAA,CAExDV,EAAc,4BAA4B,CAAC;AAA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A9ToDR,CAAY,GAAAsC,IAAAqH,IAAA,cAAAC,GAAA;CAAApH,cAAA;EAAA,MAAA/B,CAAA,GAAA+C,EAAA,MAAA,UAC/CjD,CAAM,GAAAkJ,EAAA;CAAA;AAAA,GAAAjG,EAAAmG,GAAAjJ,IAAA,KAAA,CAAA,GAAAiJ,GAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=require("lit").css`:host{z-index:100;background:var(--solid-ui-color-white,#fff);flex:none;min-width:0;display:block;position:sticky;top:0}.folder-pane-storage-header{justify-content:space-between;align-items:center;padding:10px 0;display:flex}.folder-pane-storage-header-breadcrumbs,.folder-pane-storage-header-breadcrumbs ol,.folder-pane-storage-header-breadcrumbs li,.folder-pane-storage-header-toolbar,.folder-pane-storage-header-view-controls{align-items:center;display:flex}.folder-pane-storage-header-breadcrumbs{gap
|
|
1
|
+
var e=require("lit").css`:host{z-index:100;background:var(--solid-ui-color-white,#fff);flex:none;min-width:0;display:block;position:sticky;top:0}.folder-pane-storage-header{justify-content:space-between;align-items:center;padding:10px 0;display:flex}.folder-pane-storage-header-breadcrumbs,.folder-pane-storage-header-breadcrumbs ol,.folder-pane-storage-header-breadcrumbs li,.folder-pane-storage-header-toolbar,.folder-pane-storage-header-view-controls{align-items:center;display:flex}.folder-pane-storage-header-breadcrumbs{gap:5.6px;min-width:0;overflow:auto hidden}.folder-pane-storage-header-breadcrumbs icon-lucide-folder-open{width:12px;height:12px;color:var(--solid-ui-color-gray-500,#6a7282);flex:none}.folder-pane-storage-header-breadcrumbs ol{min-width:0;color:var(--solid-ui-color-gray-600,#4a5565);font-size:var(--solid-ui-font-size-sm,.875rem);flex-wrap:nowrap;gap:5.6px;margin:0;padding:0;list-style:none}.folder-pane-storage-header-breadcrumbs li{gap:5.6px;min-width:0}.folder-pane-storage-header-breadcrumbs button{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;padding:0}.folder-pane-storage-header-breadcrumbs button:hover,.folder-pane-storage-header-breadcrumbs button:focus-visible{color:var(--solid-ui-color-primary,#7c4dff)}.folder-pane-storage-header-breadcrumbs [aria-current=page]{white-space:nowrap}.folder-pane-storage-header-toolbar{min-width:0;padding-right:var(--folder-pane-storage-toolbar-right-padding,0);flex:none;justify-content:flex-end;gap:8px}.folder-pane-storage-header-search{border:1px solid var(--solid-ui-color-gray-300,#d1d5dc);min-width:8rem;max-width:14rem;color:var(--solid-ui-color-gray-500,#6a7282);border-radius:.35rem;align-items:center;gap:5.6px;padding:4px 8px;display:none}.folder-pane-storage-header-search icon-lucide-search{flex:none;width:1rem;height:1rem}.folder-pane-storage-header-search input{width:100%;min-width:0;color:inherit;font:inherit;background:0 0;border:0;outline:0}.folder-pane-storage-header-view-controls{gap:0}.folder-pane-storage-header-resource-actions{flex:none;align-items:center;display:inline-flex}.folder-pane-storage-header-view-toggle{border:1px solid var(--solid-ui-color-gray-300,#d1d5dc);background:var(--solid-ui-color-white,#fff);justify-content:center;align-items:center;gap:5px;width:44px;height:36px;padding:0 5px;display:flex}.folder-pane-storage-header-view-toggle:first-child{border-radius:5px 0 0 5px}.folder-pane-storage-header-view-toggle:last-child{border-left:0;border-radius:0 5px 5px 0}.folder-pane-storage-header-view-toggle.is-selected{background:var(--solid-ui-color-lavender-300,#e6dcff)}.folder-pane-storage-header-view-toggle solid-ui-button{width:100%;height:100%}.folder-pane-storage-header-view-toggle icon-lucide-layout-grid,.folder-pane-storage-header-view-toggle icon-lucide-list{flex-shrink:0;width:16px;height:16px}.folder-pane-storage-header-view-toggle solid-ui-button[aria-pressed=true]{color:var(--solid-ui-color-primary,#7c4dff)}.folder-pane-storage-header-add-menu{align-items:center;margin-left:22px;display:inline-flex}.folder-pane-storage-header-add-trigger{align-items:center;display:inline-flex}.folder-pane-storage-header-add-button{background:var(--solid-ui-color-primary,#7c4dff);min-height:36px;color:var(--solid-ui-color-white,#fff);cursor:pointer;font:inherit;border:0;border-radius:5.6px;justify-content:center;align-items:center;gap:5.6px;padding:5.6px 12px;display:inline-flex}.folder-pane-storage-header-add-button:hover{background:var(--solid-ui-color-primary-hover,#b9a2ff)}.folder-pane-storage-header-add-button:focus-visible{outline:2px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:2px}.folder-pane-storage-header-add-button icon-lucide-plus,.folder-pane-storage-header-add-chevron{flex:none;width:1.25rem;height:1.25rem}.folder-pane-storage-header-add-menu img[slot=left-icon]{object-fit:contain;flex:none;width:13.333px;height:12.664px;display:block}@media (width<=768px){.folder-pane-storage-header{gap:var(--folder-pane-storage-header-mobile-gap,8px);padding:var(--folder-pane-storage-header-mobile-padding,10px 0);border-bottom:1px solid var(--solid-ui-color-gray-200,#e5e7eb);flex-wrap:wrap}.folder-pane-storage-header-breadcrumbs{flex:auto;max-width:100%;display:none}.folder-pane-storage-header-toolbar{flex:0 auto;margin-left:auto}.folder-pane-storage-header-add-menu{margin:0}.folder-pane-storage-header-add-trigger{z-index:200;box-sizing:border-box;aspect-ratio:1;background:var(--solid-ui-color-primary,#7c4dff);border-radius:6.944px;justify-content:center;align-items:center;gap:11.111px;width:50px;height:50px;padding:9.722px 13.889px;display:flex;position:fixed;bottom:50px;right:30px;box-shadow:1.389px 5.556px 9.722px #0000008f}.folder-pane-storage-header-add-button{box-sizing:border-box;background:0 0;width:100%;height:100%;min-height:0;padding:0}.folder-pane-storage-header-add-button:hover{background:0 0}.folder-pane-storage-header-add-button icon-lucide-plus{width:20px;height:20px}.folder-pane-storage-header-add-label,.folder-pane-storage-header-add-chevron{display:none}}`;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=FolderPaneStorageHeader.styles.cjs.js.map
|
package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FolderPaneStorageHeader.styles.cjs.js","names":["FolderPaneStorageHeader_styles_default"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.css"],"sourcesContent":[":host {\n display: block;\n flex: 0 0 auto;\n min-width: 0;\n position: sticky;\n top: 0;\n z-index: 100;\n background: var(--solid-ui-color-white, #ffffff);\n}\n\n.folder-pane-storage-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 0;\n}\n\n.folder-pane-storage-header-breadcrumbs,\n.folder-pane-storage-header-breadcrumbs ol,\n.folder-pane-storage-header-breadcrumbs li,\n.folder-pane-storage-header-toolbar,\n.folder-pane-storage-header-view-controls {\n display: flex;\n align-items: center;\n}\n\n.folder-pane-storage-header-breadcrumbs {\n min-width: 0;\n gap:
|
|
1
|
+
{"version":3,"file":"FolderPaneStorageHeader.styles.cjs.js","names":["FolderPaneStorageHeader_styles_default"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.css"],"sourcesContent":[":host {\n display: block;\n flex: 0 0 auto;\n min-width: 0;\n position: sticky;\n top: 0;\n z-index: 100;\n background: var(--solid-ui-color-white, #ffffff);\n}\n\n.folder-pane-storage-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 0;\n}\n\n.folder-pane-storage-header-breadcrumbs,\n.folder-pane-storage-header-breadcrumbs ol,\n.folder-pane-storage-header-breadcrumbs li,\n.folder-pane-storage-header-toolbar,\n.folder-pane-storage-header-view-controls {\n display: flex;\n align-items: center;\n}\n\n.folder-pane-storage-header-breadcrumbs {\n min-width: 0;\n gap: 5.6px;\n overflow-x: auto;\n overflow-y: hidden;\n}\n\n.folder-pane-storage-header-breadcrumbs icon-lucide-folder-open {\n width: 12px;\n height: 12px;\n flex: 0 0 auto;\n color: var(--solid-ui-color-gray-500, #6a7282);\n}\n\n.folder-pane-storage-header-breadcrumbs ol {\n min-width: 0;\n flex-wrap: nowrap;\n gap: 5.6px;\n margin: 0;\n padding: 0;\n list-style: none;\n color: var(--solid-ui-color-gray-600, #4a5565);\n font-size: var(--solid-ui-font-size-sm, 0.875rem);\n}\n\n.folder-pane-storage-header-breadcrumbs li {\n min-width: 0;\n gap: 5.6px;\n}\n\n.folder-pane-storage-header-breadcrumbs button {\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n cursor: pointer;\n font: inherit;\n}\n\n.folder-pane-storage-header-breadcrumbs button:hover,\n.folder-pane-storage-header-breadcrumbs button:focus-visible {\n color: var(--solid-ui-color-primary, #7c4dff);\n}\n\n.folder-pane-storage-header-breadcrumbs [aria-current='page'] {\n white-space: nowrap;\n}\n\n.folder-pane-storage-header-toolbar {\n flex: 0 0 auto;\n justify-content: flex-end;\n gap: 8px;\n min-width: 0;\n padding-right: var(--folder-pane-storage-toolbar-right-padding, 0);\n}\n\n.folder-pane-storage-header-search {\n display: none;\n align-items: center;\n gap: 5.6px;\n min-width: 8rem;\n max-width: 14rem;\n padding: 4px 8px;\n border: 1px solid var(--solid-ui-color-gray-300, #d1d5dc);\n border-radius: 0.35rem;\n color: var(--solid-ui-color-gray-500, #6a7282);\n}\n\n.folder-pane-storage-header-search icon-lucide-search {\n width: 1rem;\n height: 1rem;\n flex: 0 0 auto;\n}\n\n.folder-pane-storage-header-search input {\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n}\n\n.folder-pane-storage-header-view-controls {\n gap: 0;\n}\n\n.folder-pane-storage-header-resource-actions {\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.folder-pane-storage-header-view-toggle {\n display: flex;\n width: 44px;\n height: 36px;\n padding: 0 5px;\n justify-content: center;\n align-items: center;\n gap: 5px;\n border: 1px solid var(--solid-ui-color-gray-300, #d1d5dc);\n background: var(--solid-ui-color-white, #ffffff);\n}\n\n.folder-pane-storage-header-view-toggle:first-child {\n border-radius: 5px 0 0 5px;\n}\n\n.folder-pane-storage-header-view-toggle:last-child {\n border-left: 0;\n border-radius: 0 5px 5px 0;\n}\n\n.folder-pane-storage-header-view-toggle.is-selected {\n background: var(--solid-ui-color-lavender-300, #e6dcff);\n}\n\n.folder-pane-storage-header-view-toggle solid-ui-button {\n width: 100%;\n height: 100%;\n}\n\n.folder-pane-storage-header-view-toggle icon-lucide-layout-grid,\n.folder-pane-storage-header-view-toggle icon-lucide-list {\n width: 16px;\n height: 16px;\n flex-shrink: 0;\n}\n\n.folder-pane-storage-header-view-toggle solid-ui-button[aria-pressed='true'] {\n color: var(--solid-ui-color-primary, #7c4dff);\n}\n\n.folder-pane-storage-header-add-menu {\n display: inline-flex;\n align-items: center;\n margin-left: 22px;\n}\n\n.folder-pane-storage-header-add-trigger {\n display: inline-flex;\n align-items: center;\n}\n\n.folder-pane-storage-header-add-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5.6px;\n min-height: 36px;\n padding: 5.6px 12px;\n border: 0;\n border-radius: 5.6px;\n background: var(--solid-ui-color-primary, #7c4dff);\n color: var(--solid-ui-color-white, #ffffff);\n cursor: pointer;\n font: inherit;\n}\n\n.folder-pane-storage-header-add-button:hover {\n background: var(--solid-ui-color-primary-hover, #b9a2ff);\n}\n\n.folder-pane-storage-header-add-button:focus-visible {\n outline: 2px solid var(--solid-ui-color-primary, #7c4dff);\n outline-offset: 2px;\n}\n\n.folder-pane-storage-header-add-button icon-lucide-plus,\n.folder-pane-storage-header-add-chevron {\n width: 1.25rem;\n height: 1.25rem;\n flex: 0 0 auto;\n}\n\n.folder-pane-storage-header-add-menu img[slot=\"left-icon\"] {\n display: block;\n width: 1.25rem;\n height: 1.25rem;\n object-fit: contain;\n flex: 0 0 auto;\n}\n\n.folder-pane-storage-header-add-menu img[slot=\"left-icon\"] {\n width: 13.333px;\n height: 12.664px;\n}\n\n@media (max-width: 768px) {\n .folder-pane-storage-header {\n flex-wrap: wrap;\n gap: var(--folder-pane-storage-header-mobile-gap, 8px);\n padding: var(--folder-pane-storage-header-mobile-padding, 10px 0);\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #e5e7eb);\n }\n\n .folder-pane-storage-header-breadcrumbs {\n display: none;\n }\n\n .folder-pane-storage-header-breadcrumbs {\n flex: 1 1 auto;\n max-width: 100%;\n }\n\n .folder-pane-storage-header-toolbar {\n flex: 0 1 auto;\n margin-left: auto;\n }\n\n .folder-pane-storage-header-add-menu {\n margin: 0;\n }\n\n .folder-pane-storage-header-add-trigger {\n position: fixed;\n right: 30px;\n bottom: 50px;\n z-index: 200;\n display: flex;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n padding: 9.722px 13.889px;\n justify-content: center;\n align-items: center;\n gap: 11.111px;\n aspect-ratio: 1 / 1;\n border-radius: 6.944px;\n background: var(--solid-ui-color-primary, #7c4dff);\n box-shadow: 1.389px 5.556px 9.722px 0 rgb(0 0 0 / 56%);\n }\n\n .folder-pane-storage-header-add-button {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n min-height: 0;\n padding: 0;\n background: transparent;\n }\n\n .folder-pane-storage-header-add-button:hover {\n background: transparent;\n }\n\n .folder-pane-storage-header-add-button icon-lucide-plus {\n width: 20px;\n height: 20px;\n }\n\n .folder-pane-storage-header-add-label,\n .folder-pane-storage-header-add-chevron {\n display: none;\n }\n}\n"],"mappings":""}
|