folder-pane 4.0.0-0 → 4.0.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.
Files changed (176) hide show
  1. package/declarations.d.ts +4 -4
  2. package/dist/_virtual/~icons/lucide/chevron-down.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/chevron-down.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/chevron-down.esm.js +10 -0
  5. package/dist/_virtual/~icons/lucide/chevron-down.esm.js.map +1 -0
  6. package/dist/_virtual/~icons/lucide/chevron-right.cjs.js +2 -0
  7. package/dist/_virtual/~icons/lucide/chevron-right.cjs.js.map +1 -0
  8. package/dist/_virtual/~icons/lucide/chevron-right.esm.js +10 -0
  9. package/dist/_virtual/~icons/lucide/chevron-right.esm.js.map +1 -0
  10. package/dist/_virtual/~icons/lucide/circle-small.cjs.js +2 -0
  11. package/dist/_virtual/~icons/lucide/circle-small.cjs.js.map +1 -0
  12. package/dist/_virtual/~icons/lucide/circle-small.esm.js +10 -0
  13. package/dist/_virtual/~icons/lucide/circle-small.esm.js.map +1 -0
  14. package/dist/_virtual/~icons/lucide/file-box.cjs.js +2 -0
  15. package/dist/_virtual/~icons/lucide/file-box.cjs.js.map +1 -0
  16. package/dist/_virtual/~icons/lucide/file-box.esm.js +10 -0
  17. package/dist/_virtual/~icons/lucide/file-box.esm.js.map +1 -0
  18. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  19. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  20. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  21. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  22. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  23. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  24. package/dist/_virtual/~icons/lucide/folder-open.esm.js +10 -0
  25. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  26. package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
  27. package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
  28. package/dist/_virtual/~icons/lucide/folder.esm.js +10 -0
  29. package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
  30. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  31. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  32. package/dist/_virtual/~icons/lucide/globe.esm.js +10 -0
  33. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  34. package/dist/_virtual/~icons/lucide/layout-grid.cjs.js +2 -0
  35. package/dist/_virtual/~icons/lucide/layout-grid.cjs.js.map +1 -0
  36. package/dist/_virtual/~icons/lucide/layout-grid.esm.js +10 -0
  37. package/dist/_virtual/~icons/lucide/layout-grid.esm.js.map +1 -0
  38. package/dist/_virtual/~icons/lucide/list.cjs.js +2 -0
  39. package/dist/_virtual/~icons/lucide/list.cjs.js.map +1 -0
  40. package/dist/_virtual/~icons/lucide/list.esm.js +10 -0
  41. package/dist/_virtual/~icons/lucide/list.esm.js.map +1 -0
  42. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  43. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  44. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  45. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  46. package/dist/_virtual/~icons/lucide/plus.cjs.js +2 -0
  47. package/dist/_virtual/~icons/lucide/plus.cjs.js.map +1 -0
  48. package/dist/_virtual/~icons/lucide/plus.esm.js +10 -0
  49. package/dist/_virtual/~icons/lucide/plus.esm.js.map +1 -0
  50. package/dist/_virtual/~icons/lucide/search.cjs.js +2 -0
  51. package/dist/_virtual/~icons/lucide/search.cjs.js.map +1 -0
  52. package/dist/_virtual/~icons/lucide/search.esm.js +10 -0
  53. package/dist/_virtual/~icons/lucide/search.esm.js.map +1 -0
  54. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
  55. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
  56. package/dist/_virtual/~icons/lucide/trash-2.esm.js +10 -0
  57. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
  58. package/dist/_virtual/~icons/lucide/upload.cjs.js +2 -0
  59. package/dist/_virtual/~icons/lucide/upload.cjs.js.map +1 -0
  60. package/dist/_virtual/~icons/lucide/upload.esm.js +10 -0
  61. package/dist/_virtual/~icons/lucide/upload.esm.js.map +1 -0
  62. package/dist/_virtual/~icons/lucide/x.cjs.js +2 -0
  63. package/dist/_virtual/~icons/lucide/x.cjs.js.map +1 -0
  64. package/dist/_virtual/~icons/lucide/x.esm.js +10 -0
  65. package/dist/_virtual/~icons/lucide/x.esm.js.map +1 -0
  66. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +91 -0
  67. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -0
  68. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +44 -0
  69. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -0
  70. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +585 -0
  71. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -0
  72. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +2 -0
  73. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -0
  74. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +6 -0
  75. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -0
  76. package/dist/components/folder-pane-container/index.cjs.js +1 -0
  77. package/dist/components/folder-pane-container/index.d.ts +2 -0
  78. package/dist/components/folder-pane-container/index.d.ts.map +1 -0
  79. package/dist/components/folder-pane-container/index.esm.js +1 -0
  80. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js +4 -0
  81. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js.map +1 -0
  82. package/dist/components/folder-pane-content/FolderPaneContent.d.ts +6 -0
  83. package/dist/components/folder-pane-content/FolderPaneContent.d.ts.map +1 -0
  84. package/dist/components/folder-pane-content/FolderPaneContent.esm.js +176 -0
  85. package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +1 -0
  86. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +2 -0
  87. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -0
  88. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +6 -0
  89. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -0
  90. package/dist/components/folder-pane-content/index.cjs.js +1 -0
  91. package/dist/components/folder-pane-content/index.d.ts +2 -0
  92. package/dist/components/folder-pane-content/index.d.ts.map +1 -0
  93. package/dist/components/folder-pane-content/index.esm.js +1 -0
  94. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +53 -0
  95. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -0
  96. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +33 -0
  97. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -0
  98. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +429 -0
  99. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -0
  100. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +2 -0
  101. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -0
  102. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +6 -0
  103. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -0
  104. package/dist/components/folder-pane-sidebar/index.cjs.js +1 -0
  105. package/dist/components/folder-pane-sidebar/index.d.ts +2 -0
  106. package/dist/components/folder-pane-sidebar/index.d.ts.map +1 -0
  107. package/dist/components/folder-pane-sidebar/index.esm.js +1 -0
  108. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js +32 -0
  109. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js.map +1 -0
  110. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts +15 -0
  111. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts.map +1 -0
  112. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js +290 -0
  113. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -0
  114. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js +2 -0
  115. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -0
  116. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js +6 -0
  117. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -0
  118. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +79 -0
  119. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -0
  120. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +27 -0
  121. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -0
  122. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +437 -0
  123. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -0
  124. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +2 -0
  125. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -0
  126. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +6 -0
  127. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -0
  128. package/dist/components/folder-pane-storage-header/index.cjs.js +1 -0
  129. package/dist/components/folder-pane-storage-header/index.d.ts +2 -0
  130. package/dist/components/folder-pane-storage-header/index.d.ts.map +1 -0
  131. package/dist/components/folder-pane-storage-header/index.esm.js +1 -0
  132. package/dist/components/folder-pane-view/FolderPaneView.cjs.js +51 -0
  133. package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -0
  134. package/dist/components/folder-pane-view/FolderPaneView.d.ts +82 -0
  135. package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -0
  136. package/dist/components/folder-pane-view/FolderPaneView.esm.js +728 -0
  137. package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -0
  138. package/dist/components/folder-pane-view/index.cjs.js +1 -0
  139. package/dist/components/folder-pane-view/index.d.ts +2 -0
  140. package/dist/components/folder-pane-view/index.d.ts.map +1 -0
  141. package/dist/components/folder-pane-view/index.esm.js +1 -0
  142. package/dist/components/folder-pane-view/renderRequest.cjs.js +2 -0
  143. package/dist/components/folder-pane-view/renderRequest.cjs.js.map +1 -0
  144. package/dist/components/folder-pane-view/renderRequest.d.ts +8 -0
  145. package/dist/components/folder-pane-view/renderRequest.d.ts.map +1 -0
  146. package/dist/components/folder-pane-view/renderRequest.esm.js +10 -0
  147. package/dist/components/folder-pane-view/renderRequest.esm.js.map +1 -0
  148. package/dist/creationSafety.cjs.js +2 -0
  149. package/dist/creationSafety.cjs.js.map +1 -0
  150. package/dist/creationSafety.d.ts +9 -0
  151. package/dist/creationSafety.d.ts.map +1 -0
  152. package/dist/creationSafety.esm.js +17 -0
  153. package/dist/creationSafety.esm.js.map +1 -0
  154. package/dist/folderPane.cjs.js +2 -2
  155. package/dist/folderPane.cjs.js.map +1 -1
  156. package/dist/folderPane.d.ts +2 -1
  157. package/dist/folderPane.d.ts.map +1 -1
  158. package/dist/folderPane.esm.js +23 -60
  159. package/dist/folderPane.esm.js.map +1 -1
  160. package/dist/helpers.cjs.js +2 -0
  161. package/dist/helpers.cjs.js.map +1 -0
  162. package/dist/helpers.d.ts +30 -0
  163. package/dist/helpers.d.ts.map +1 -0
  164. package/dist/helpers.esm.js +59 -0
  165. package/dist/helpers.esm.js.map +1 -0
  166. package/dist/index.esm.js +1 -2
  167. package/dist/mintPaneInstance.cjs.js +2 -0
  168. package/dist/mintPaneInstance.cjs.js.map +1 -0
  169. package/dist/mintPaneInstance.d.ts +43 -0
  170. package/dist/mintPaneInstance.d.ts.map +1 -0
  171. package/dist/mintPaneInstance.esm.js +104 -0
  172. package/dist/mintPaneInstance.esm.js.map +1 -0
  173. package/dist/types.d.ts +9 -0
  174. package/dist/types.d.ts.map +1 -0
  175. package/package.json +9 -6
  176. package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
@@ -0,0 +1,437 @@
1
+ import { getCreationPanes as e, getPaneLabel as t } from "../../helpers.esm.js";
2
+ import "../../_virtual/~icons/lucide/folder-open.esm.js";
3
+ import "../../_virtual/~icons/lucide/layout-grid.esm.js";
4
+ import "../../_virtual/~icons/lucide/list.esm.js";
5
+ import "../../_virtual/~icons/lucide/chevron-down.esm.js";
6
+ import "../../_virtual/~icons/lucide/plus.esm.js";
7
+ import "../../_virtual/~icons/lucide/upload.esm.js";
8
+ import "../../_virtual/~icons/lucide/search.esm.js";
9
+ import n from "./FolderPaneStorageHeader.styles.esm.js";
10
+ import { WebComponent as r, customElement as i, login as a } from "solid-ui";
11
+ import { html as o, nothing as s } from "lit";
12
+ import { property as c, state as l } from "lit/decorators.js";
13
+ import "solid-ui/components/button";
14
+ import "solid-ui/components/menu";
15
+ import "solid-ui/components/menu-item";
16
+ // src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts
17
+ var u, d, f, p, 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;
18
+ function V(e, t, n) {
19
+ H(e, t), t.set(e, n);
20
+ }
21
+ function H(e, t) {
22
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
23
+ }
24
+ function U(e, t, n) {
25
+ return e.set(G(e, t), n), n;
26
+ }
27
+ function W(e, t) {
28
+ return e.get(G(e, t));
29
+ }
30
+ function G(e, t, n) {
31
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
32
+ throw TypeError("Private element is not present on this object");
33
+ }
34
+ function K(e, t, n) {
35
+ return (t = J(t)) in e ? Object.defineProperty(e, t, {
36
+ value: n,
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0
40
+ }) : e[t] = n, e;
41
+ }
42
+ function q(e, t, n, r, i, a) {
43
+ function o(e, t, n) {
44
+ return function(r, i) {
45
+ return n && n(r), e[t].call(r, i);
46
+ };
47
+ }
48
+ function s(e, t) {
49
+ for (var n = 0; n < e.length; n++) e[n].call(t);
50
+ return t;
51
+ }
52
+ function c(e, t, n, r) {
53
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
54
+ return e;
55
+ }
56
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
57
+ function h(e) {
58
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
59
+ }
60
+ var g, _ = t[0], v = t[3], y = !l;
61
+ if (!y) {
62
+ n || Array.isArray(_) || (_ = [_]);
63
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
64
+ d ? (f || p ? b = {
65
+ get: X(function() {
66
+ return v(this);
67
+ }, r, "get"),
68
+ set: function(e) {
69
+ t[4](this, e);
70
+ }
71
+ } : b[S] = v, f || X(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
72
+ }
73
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
74
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
75
+ kind: [
76
+ "field",
77
+ "accessor",
78
+ "method",
79
+ "getter",
80
+ "setter",
81
+ "class"
82
+ ][i],
83
+ name: r,
84
+ metadata: a,
85
+ addInitializer: function(e, t) {
86
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
87
+ c(t, "An initializer", "be", !0), s.push(t);
88
+ }.bind(null, D)
89
+ };
90
+ try {
91
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
92
+ else {
93
+ var k, A;
94
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
95
+ return h(e), b.value;
96
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
97
+ return e[r];
98
+ }, (i < 2 || i === 4) && (A = function(e, t) {
99
+ e[r] = t;
100
+ }));
101
+ var j = O.access = { has: d ? m.bind() : function(e) {
102
+ return r in e;
103
+ } };
104
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
105
+ get: b.get,
106
+ set: b.set
107
+ } : b[S], O), p) {
108
+ if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
109
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
110
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
111
+ }
112
+ } finally {
113
+ D.v = !0;
114
+ }
115
+ }
116
+ return (f || p) && l.push(function(e, t) {
117
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
118
+ return t;
119
+ }), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
120
+ }
121
+ function u(e, t) {
122
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
123
+ configurable: !0,
124
+ enumerable: !0,
125
+ value: t
126
+ });
127
+ }
128
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
129
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
130
+ var i, a, o = [], c = function(t) {
131
+ return Z(t) === e;
132
+ }, u = /* @__PURE__ */ new Map();
133
+ function d(e) {
134
+ e && o.push(s.bind(null, e));
135
+ }
136
+ for (var f = 0; f < t.length; f++) {
137
+ var p = t[f];
138
+ if (Array.isArray(p)) {
139
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
140
+ if (!y && !g) {
141
+ var x = u.get(b);
142
+ 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
+ u.set(b, !(m > 2) || m);
144
+ }
145
+ l(v ? e : e.prototype, p, _, g ? "#" + h : J(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
146
+ }
147
+ }
148
+ return d(i), d(a), o;
149
+ }(e, t, i, f);
150
+ return n.length || u(e, f), {
151
+ e: p,
152
+ get c() {
153
+ var t = [];
154
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
155
+ }
156
+ };
157
+ }
158
+ function J(e) {
159
+ var t = Y(e, "string");
160
+ return typeof t == "symbol" ? t : t + "";
161
+ }
162
+ function Y(e, t) {
163
+ if (typeof e != "object" || !e) return e;
164
+ var n;
165
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
166
+ var r = n.call(e, t || "default");
167
+ if (typeof r != "object") return r;
168
+ throw TypeError("@@toPrimitive must return a primitive value.");
169
+ }
170
+ return (t === "string" ? String : Number)(e);
171
+ }
172
+ function X(e, t, n) {
173
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
174
+ try {
175
+ Object.defineProperty(e, "name", {
176
+ configurable: !0,
177
+ value: n ? n + " " + t : t
178
+ });
179
+ } catch {}
180
+ return e;
181
+ }
182
+ function Z(e) {
183
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
184
+ return e;
185
+ }
186
+ function Q(e) {
187
+ return e;
188
+ }
189
+ S = [i("folder-pane-storage-header")];
190
+ var $;
191
+ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), B = (C = c({ attribute: !1 }), T = c({ attribute: !1 }), D = c({ attribute: !1 }), k = c({ attribute: !1 }), j = c(), N = c(), F = c({ type: Boolean }), L = l(), "subject"), d = class extends r {
192
+ constructor(...e) {
193
+ super(...e), V(this, f, (b(this), w(this, void 0))), V(this, p, E(this, void 0)), V(this, m, O(this, void 0)), V(this, h, A(this, [])), V(this, g, M(this, "grid")), V(this, _, P(this, "")), V(this, v, I(this, !1)), V(this, y, R(this, [])), K(this, "availablePanesGeneration", 0);
194
+ }
195
+ get [B]() {
196
+ return W(f, this);
197
+ }
198
+ set subject(e) {
199
+ U(f, this, e);
200
+ }
201
+ get selectedResource() {
202
+ return W(p, this);
203
+ }
204
+ set selectedResource(e) {
205
+ U(p, this, e);
206
+ }
207
+ get browserContext() {
208
+ return W(m, this);
209
+ }
210
+ set browserContext(e) {
211
+ U(m, this, e);
212
+ }
213
+ get paneList() {
214
+ return W(h, this);
215
+ }
216
+ set paneList(e) {
217
+ U(h, this, e);
218
+ }
219
+ get view() {
220
+ return W(g, this);
221
+ }
222
+ set view(e) {
223
+ U(g, this, e);
224
+ }
225
+ get searchQuery() {
226
+ return W(_, this);
227
+ }
228
+ set searchQuery(e) {
229
+ U(_, this, e);
230
+ }
231
+ get canCreate() {
232
+ return W(v, this);
233
+ }
234
+ set canCreate(e) {
235
+ U(v, this, e);
236
+ }
237
+ get availablePanes() {
238
+ return W(y, this);
239
+ }
240
+ set availablePanes(e) {
241
+ U(y, this, e);
242
+ }
243
+ updated(t) {
244
+ if (!t.has("paneList") && !t.has("browserContext")) return;
245
+ let n = ++this.availablePanesGeneration;
246
+ a.filterAvailablePanes(this.paneList).then((t) => {
247
+ n === this.availablePanesGeneration && (this.availablePanes = e(t));
248
+ }).catch((e) => console.error("Unable to load folder creation panes", e));
249
+ }
250
+ get breadcrumbResources() {
251
+ let e = this.subject, t = this.selectedResource;
252
+ if (!e || !t) return e ? [e] : [];
253
+ let n = [t], r = t;
254
+ for (; !r.sameTerm(e);) {
255
+ let i = r.dir();
256
+ if (!i || i.sameTerm(r) || (n.unshift(i), r = i, n.length > 32)) return [e, t];
257
+ }
258
+ return n;
259
+ }
260
+ getResourceLabel(e, t) {
261
+ if (this.subject?.sameTerm(e) || t === 0) return "Home";
262
+ try {
263
+ let t = new URL(e.uri).pathname.split("/").filter(Boolean);
264
+ return decodeURIComponent(t[t.length - 1] || e.uri);
265
+ } catch {
266
+ return e.uri;
267
+ }
268
+ }
269
+ selectHome() {
270
+ this.dispatchEvent(new CustomEvent("folder-pane-select-home", {
271
+ bubbles: !0,
272
+ composed: !0
273
+ }));
274
+ }
275
+ selectView(e) {
276
+ this.dispatchEvent(new CustomEvent("folder-pane-change-view", {
277
+ detail: { view: e },
278
+ bubbles: !0,
279
+ composed: !0
280
+ }));
281
+ }
282
+ selectResource(e) {
283
+ this.dispatchEvent(new CustomEvent("folder-pane-select-resource", {
284
+ detail: { resource: e },
285
+ bubbles: !0,
286
+ composed: !0
287
+ }));
288
+ }
289
+ requestUpload() {
290
+ this.dispatchEvent(new CustomEvent("folder-pane-upload", {
291
+ bubbles: !0,
292
+ composed: !0
293
+ }));
294
+ }
295
+ updateSearch(e) {
296
+ this.dispatchEvent(new CustomEvent("folder-pane-search", {
297
+ detail: { query: e.target.value },
298
+ bubbles: !0,
299
+ composed: !0
300
+ }));
301
+ }
302
+ createPane(e) {
303
+ this.dispatchEvent(new CustomEvent("folder-pane-create-pane", {
304
+ detail: { pane: e },
305
+ bubbles: !0,
306
+ composed: !0
307
+ }));
308
+ }
309
+ render() {
310
+ return o`
311
+ <header class="folder-pane-storage-header">
312
+ <nav class="folder-pane-storage-header-breadcrumbs" aria-label="Storage breadcrumb">
313
+ <icon-lucide-folder-open aria-hidden="true"></icon-lucide-folder-open>
314
+ <ol>
315
+ ${this.breadcrumbResources.map((e, t, n) => o`
316
+ <li>
317
+ ${t === n.length - 1 ? o`<span aria-current="page">${this.getResourceLabel(e, t)}</span>` : o`
318
+ <button
319
+ type="button"
320
+ @click=${() => t === 0 ? this.selectHome() : this.selectResource(e)}
321
+ >${this.getResourceLabel(e, t)}</button>
322
+ <span class="separator" aria-hidden="true">/</span>
323
+ `}
324
+ </li>
325
+ `)}
326
+ </ol>
327
+ </nav>
328
+ <div class="folder-pane-storage-header-toolbar">
329
+ <label class="folder-pane-storage-header-search">
330
+ <icon-lucide-search aria-hidden="true"></icon-lucide-search>
331
+ <input
332
+ aria-label="Search"
333
+ type="search"
334
+ .value=${this.searchQuery}
335
+ @input=${this.updateSearch}
336
+ >
337
+ </label>
338
+ <div class="folder-pane-storage-header-view-controls" role="group" aria-label="Container view">
339
+ <div class=${`folder-pane-storage-header-view-toggle ${this.view === "grid" ? "is-selected" : ""}`}>
340
+ <solid-ui-button
341
+ variant="ghost"
342
+ aria-label="Grid view"
343
+ aria-pressed=${String(this.view === "grid")}
344
+ @click=${() => this.selectView("grid")}
345
+ >
346
+ <icon-lucide-layout-grid slot="icon" aria-hidden="true"></icon-lucide-layout-grid>
347
+ </solid-ui-button>
348
+ </div>
349
+ <div class=${`folder-pane-storage-header-view-toggle ${this.view === "list" ? "is-selected" : ""}`}>
350
+ <solid-ui-button
351
+ variant="ghost"
352
+ aria-label="List view"
353
+ aria-pressed=${String(this.view === "list")}
354
+ @click=${() => this.selectView("list")}
355
+ >
356
+ <icon-lucide-list slot="icon" aria-hidden="true"></icon-lucide-list>
357
+ </solid-ui-button>
358
+ </div>
359
+ </div>
360
+ ${this.canCreate ? o`<solid-ui-menu class="folder-pane-storage-header-add-menu" placement="bottom-end">
361
+ <solid-ui-button
362
+ slot="trigger"
363
+ variant="primary"
364
+ aria-haspopup="menu"
365
+ >
366
+ <icon-lucide-plus slot="left-icon" aria-hidden="true"></icon-lucide-plus>
367
+ Add
368
+ <icon-lucide-chevron-down slot="right-icon" aria-hidden="true"></icon-lucide-chevron-down>
369
+ </solid-ui-button>
370
+ ${this.availablePanes.map((e) => o`
371
+ <solid-ui-menu-item @solid-ui-select=${() => this.createPane(e)}>
372
+ ${e.icon ? o`<img
373
+ slot="left-icon"
374
+ src=${String(e.icon)}
375
+ alt=""
376
+ >` : s}
377
+ New ${t(e)}
378
+ </solid-ui-menu-item>
379
+ `)}
380
+ <solid-ui-menu-item @solid-ui-select=${this.requestUpload}>
381
+ <icon-lucide-upload slot="left-icon" aria-hidden="true"></icon-lucide-upload>
382
+ Upload
383
+ </solid-ui-menu-item>
384
+ </solid-ui-menu>` : s}
385
+ </div>
386
+ </header>
387
+ `;
388
+ }
389
+ }, {e: [w, E, O, A, M, P, I, R, b], c: [$, x]} = q(d, [
390
+ [
391
+ C,
392
+ 1,
393
+ "subject"
394
+ ],
395
+ [
396
+ T,
397
+ 1,
398
+ "selectedResource"
399
+ ],
400
+ [
401
+ D,
402
+ 1,
403
+ "browserContext"
404
+ ],
405
+ [
406
+ k,
407
+ 1,
408
+ "paneList"
409
+ ],
410
+ [
411
+ j,
412
+ 1,
413
+ "view"
414
+ ],
415
+ [
416
+ N,
417
+ 1,
418
+ "searchQuery"
419
+ ],
420
+ [
421
+ F,
422
+ 1,
423
+ "canCreate"
424
+ ],
425
+ [
426
+ L,
427
+ 1,
428
+ "availablePanes"
429
+ ]
430
+ ], S, 0, void 0, r), d), u = class extends Q {
431
+ constructor() {
432
+ super($), K(this, "styles", n), x();
433
+ }
434
+ }, K(u, z, void 0), u)();
435
+ export { $ as default };
436
+
437
+ //# sourceMappingURL=FolderPaneStorageHeader.esm.js.map
@@ -0,0 +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-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+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:.35rem;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:.35rem;margin:0;padding:0;list-style:none}.folder-pane-storage-header-breadcrumbs li{gap:.35rem;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{flex:none;justify-content:flex-end;gap:.5rem;min-width:0}.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:.35rem;padding:.25rem .5rem;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-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-menu img[slot=left-icon]{object-fit:contain;flex:none;width:13.333px;height:12.664px;display:block}`;exports.default=e;
2
+ //# sourceMappingURL=FolderPaneStorageHeader.styles.cjs.js.map
@@ -0,0 +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: 0.35rem;\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: 0.35rem;\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: 0.35rem;\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: 0.5rem;\n min-width: 0;\n}\n\n.folder-pane-storage-header-search {\n display: none;\n align-items: center;\n gap: 0.35rem;\n min-width: 8rem;\n max-width: 14rem;\n padding: 0.25rem 0.5rem;\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-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-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"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { css as e } from "lit";
2
+ // src/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.css
3
+ var t = e`: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:.35rem;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:.35rem;margin:0;padding:0;list-style:none}.folder-pane-storage-header-breadcrumbs li{gap:.35rem;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{flex:none;justify-content:flex-end;gap:.5rem;min-width:0}.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:.35rem;padding:.25rem .5rem;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-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-menu img[slot=left-icon]{object-fit:contain;flex:none;width:13.333px;height:12.664px;display:block}`;
4
+ export { t as default };
5
+
6
+ //# sourceMappingURL=FolderPaneStorageHeader.styles.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneStorageHeader.styles.esm.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: 0.35rem;\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: 0.35rem;\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: 0.35rem;\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: 0.5rem;\n min-width: 0;\n}\n\n.folder-pane-storage-header-search {\n display: none;\n align-items: center;\n gap: 0.35rem;\n min-width: 8rem;\n max-width: 14rem;\n padding: 0.25rem 0.5rem;\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-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-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"],"mappings":""}
@@ -0,0 +1 @@
1
+ require("./FolderPaneStorageHeader.cjs.js");
@@ -0,0 +1,2 @@
1
+ export { default as FolderPaneStorageHeader } from './FolderPaneStorageHeader';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/folder-pane-storage-header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1 @@
1
+ import "./FolderPaneStorageHeader.esm.js";
@@ -0,0 +1,51 @@
1
+ const e=require("../../helpers.cjs.js");require("../folder-pane-container/index.cjs.js"),require("../folder-pane-sidebar/index.cjs.js"),require("../folder-pane-content/index.cjs.js"),require("../folder-pane-storage-header/index.cjs.js");const t=require("./renderRequest.cjs.js"),n=require("../../creationSafety.cjs.js"),r=require("../folder-pane-storage-header/FolderPaneCreateDialog.cjs.js"),i=require("../../mintPaneInstance.cjs.js");let a=require("solid-ui"),o=require("solid-logic"),s=require("lit"),c=require("lit/decorators.js");require("solid-ui/components/file-explorer-provider"),require("solid-ui/components/error-state"),require("solid-ui/components/file-explorer-header");var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F;function I(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t,n){ee(e,t),t.set(e,n)}function ee(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function R(e,t,n){return e.set(B(e,t),n),n}function z(e,t){return e.get(B(e,t))}function B(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function te(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:H(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||H(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return re(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:V(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function V(e){var t=ne(e,`string`);return typeof t==`symbol`?t:t+``}function ne(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function H(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function re(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}f=[(0,a.customElement)(`folder-pane-view`)];var ie,U=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap,q=new WeakMap,J=new WeakMap,Y=new WeakMap,X=new WeakMap,Z=new WeakMap,Q=new WeakMap,$=new WeakMap;F=(p=(0,c.property)({attribute:!1}),h=(0,c.property)({attribute:!1}),_=(0,c.property)({type:Boolean,attribute:`full-view`}),y=(0,c.state)(),x=(0,c.state)(),C=(0,c.state)(),T=(0,c.state)(),D=(0,c.query)(`folder-pane-content`),k=(0,c.query)(`.folder-pane-full-view`),j=(0,c.query)(`folder-pane-sidebar`),N=(0,c.query)(`.folder-pane-status`),`browserContext`),l=class extends a.WebComponent{constructor(...t){super(...t),L(this,U,(u(this),m(this,void 0))),L(this,W,g(this,void 0)),L(this,G,v(this,!1)),L(this,K,b(this,void 0)),L(this,q,S(this,`grid`)),L(this,J,w(this,``)),L(this,Y,E(this,void 0)),I(this,`initialLoadGeneration`,0),I(this,`renderGeneration`,0),I(this,`creationInFlight`,!1),I(this,`authListenersAttached`,!1),I(this,`dropProtectionAttached`,!1),L(this,X,O(this,null)),L(this,Z,A(this,null)),L(this,Q,M(this,null)),L(this,$,P(this,null)),I(this,`handleAuthChange`,()=>{this.requestUpdate()}),I(this,`handleCreatePane`,async t=>{if(t.stopPropagation(),this.creationInFlight||!o.authn.currentUser())return;let s=t.detail?.pane;if(!s?.mintNew)return;let c=this.getActiveContainer(),l=this.ownerDocument,u=this.statusArea;if(!c||!u)return;this.creationInFlight=!0;let d=++this.renderGeneration,f=e.getPaneLabel(s);try{let e=await new Promise(e=>{(0,a.showDialog)(r.default,{props:{label:f},onClose:e})});if(!e||!o.authn.currentUser()||d!==this.renderGeneration||this.getActiveContainer()?.sameTerm(c)!==!0)return;if(!n.isSafeCreationName(e)){i.setMintStatus(u,`error`,n.invalidCreationNameMessage);return}this.clearContentForCreation();let t=await i.mintPaneInstance({context:this.browserContext,container:c,pane:s,name:e,noun:f,statusArea:u,me:o.authn.currentUser()??void 0,dom:l}),p=d===this.renderGeneration&&this.getActiveContainer()?.sameTerm(c)===!0;await this.showCreatedResource({container:c,...t,pane:s,newInstance:p?t.newInstance:void 0})}catch(e){console.error(`Unable to create folder-pane resource`,e),!(e instanceof i.PaneMintError)&&this.statusArea&&i.setMintStatus(this.statusArea,`error`,`Unable to create ${f}: ${e instanceof Error?e.message:String(e)}`)}finally{this.creationInFlight=!1}}),I(this,`handleUpload`,e=>{if(e.stopPropagation(),this.creationInFlight||!o.authn.currentUser())return;let t=this.getActiveContainer(),r=this.statusArea;if(!t||!r||!this.store)return;let s=this.ownerDocument.createElement(`input`);s.type=`file`,s.multiple=!0,s.addEventListener(`change`,()=>{let e=Array.from(s.files??[]),o=e.filter(e=>n.isSafeCreationName(e.name));if(e.filter(e=>!n.isSafeCreationName(e.name)).forEach(e=>i.setMintStatus(r,`error`,`${e.name}: ${n.invalidCreationNameMessage}`)),!o.length)return;this.creationInFlight=!0;let c=o.length,l=Promise.resolve();i.setMintStatus(r,`progress`,`Uploading ${o.length} file${o.length===1?``:`s`}`);let u=()=>{c--,c===0&&(this.creationInFlight=!1,r.dataset.status===`progress`&&r.replaceChildren())};a.widgets.uploadFiles(this.store.fetcher,o,t.uri,t.uri,(e,n)=>{l=l.then(()=>this.showCreatedResource({container:t,containedResource:this.store.sym(n)})).finally(u)},(e,t)=>{i.setMintStatus(r,`error`,t),u()})}),s.click()}),I(this,`clearContentError`,()=>{this.contentError=void 0}),I(this,`retryContent`,()=>{let e=this.selectedResource,t=this.subject;(e||t)&&(this.clearContentError(),e?this.showResourceInContentView(e):t&&this.showInitialContainer(t))}),I(this,`handleResourceSelected`,e=>{let t=e.detail?.resource;t&&(e.stopPropagation(),this.searchQuery=``,this.showSubject(t))}),I(this,`handleResourceOpenPane`,e=>{let t=e.detail?.resource,n=e.detail?.paneName,r=n?this.browserContext?.session.paneRegistry.byName(n):void 0;t&&r&&(e.stopPropagation(),this.searchQuery=``,this.showSubject(t,typeof r?.render==`function`?r:void 0))}),I(this,`handleSelectHome`,()=>{this.searchQuery=``,this.subject&&this.showSubject(this.subject)}),I(this,`handleSearch`,e=>{e.stopPropagation(),this.searchQuery=e.detail?.query||``;let t=this.resourceTarget?.querySelector(`folder-pane-container`);t&&(t.searchQuery=this.searchQuery)}),I(this,`handleSelectBreadcrumbResource`,e=>{let t=e.detail?.resource;t&&(e.stopPropagation(),this.showSubject(t))}),I(this,`handleContainerViewChange`,e=>{let t=e.detail?.view;t&&(e.stopPropagation(),this.setContainerView(t))})}get[F](){return z(U,this)}set browserContext(e){R(U,this,e)}get store(){return this.browserContext?.session.store}get subject(){return z(W,this)}set subject(e){R(W,this,e)}get resourceLogic(){return this.browserContext?.session.logic.resource}get fullView(){return z(G,this)}set fullView(e){R(G,this,e)}get selectedResource(){return z(K,this)}set selectedResource(e){R(K,this,e)}get containerView(){return z(q,this)}set containerView(e){R(q,this,e)}get searchQuery(){return z(J,this)}set searchQuery(e){R(J,this,e)}get contentError(){return z(Y,this)}set contentError(e){R(Y,this,e)}get contentView(){return z(X,this)}set contentView(e){R(X,this,e)}get fullViewTarget(){return z(Z,this)}set fullViewTarget(e){R(Z,this,e)}get sidebar(){return z(Q,this)}set sidebar(e){R(Q,this,e)}get statusArea(){return z($,this)}set statusArea(e){R($,this,e)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.dropProtectionAttached||=(a.aclControl.preventBrowserDropEvents(this.ownerDocument),!0),this.addEventListener(`folder-pane-create-pane`,this.handleCreatePane),this.addEventListener(`folder-pane-upload`,this.handleUpload),this.authListenersAttached||=(o.authSession.events.on(`login`,this.handleAuthChange),o.authSession.events.on(`logout`,this.handleAuthChange),!0)}disconnectedCallback(){this.renderGeneration=t.invalidateRenderRequest(this.renderGeneration),this.initialLoadGeneration++,this.removeEventListener(`folder-pane-create-pane`,this.handleCreatePane),this.removeEventListener(`folder-pane-upload`,this.handleUpload),this.authListenersAttached&&=(o.authSession.events.off(`login`,this.handleAuthChange),o.authSession.events.off(`logout`,this.handleAuthChange),!1),super.disconnectedCallback()}updated(e){(e.has(`subject`)||e.has(`browserContext`))&&this.subject?((e.has(`subject`)||e.has(`browserContext`))&&(this.selectedResource=void 0,this.renderGeneration++,this.initialLoadGeneration++),this.showInitialContainer(this.subject)):e.has(`fullView`)&&e.get(`fullView`)!==void 0&&(this.selectedResource?this.showResourceInContentView(this.selectedResource):this.subject&&this.renderContainerView(this.subject))}get resourceTarget(){return this.fullView?this.fullViewTarget:this.contentView}showContentError(e){this.resourceTarget?.replaceChildren(),this.contentError=e}renderAccessDeniedScreen(){this.showContentError({title:`Access denied`,message:`You do not have access to the contents of this container.`})}openCreatedResource(e,t){this.searchQuery=``;let n=t?.name?this.browserContext?.session.paneRegistry.byName(t.name)??t:t;this.showSubject(e,typeof n?.render==`function`?n:void 0)}getActiveContainer(){let t=this.selectedResource;if(t&&this.resourceLogic&&e.isContainerResource(t,this.resourceLogic))return t;let n=this.subject,r=t?.dir(),i=n?.uri.endsWith(`/`)?n.uri:`${n?.uri}/`;return n&&r&&i&&r.uri.startsWith(i)?r:this.subject}clearContentForCreation(){this.resourceTarget?.replaceChildren()}async showCreatedResource({container:e,containedResource:t,newInstance:n,pane:r}){let i=this.store;if(!i)return;let o=this.renderGeneration,s=this.browserContext,c=async e=>{try{return await i.fetcher.load(e,{force:!0,clearPreviousData:!0}),!0}catch(t){return a.log.warn(`Unable to reload `+e.uri+`: `+t),!1}},l=await c(e);if(t.uri.endsWith(`/`)){await c(t);let e=i.each(t,a.ns.ldp(`contains`),void 0,t.doc());for(let t of e)t.termType===`NamedNode`&&i.fetcher.getState(t.value)===`failed`&&i.fetcher.unload(t)}this.sidebar?.refreshResources?.(e);let u=this.resourceTarget?.querySelector(`folder-pane-container`);!l&&u?.addOptimisticResource&&u.addOptimisticResource(t),l&&u?.refresh?.(),n&&this.isConnected&&this.renderGeneration===o&&this.browserContext===s&&this.openCreatedResource(n,r)}renderContainerView(e){let t=this.resourceTarget;if(!t)return;this.contentError=void 0;let n=document.createElement(`folder-pane-container`);n.subject=e,n.resourceLogic=this.resourceLogic??null,n.browserContext=this.browserContext,n.view=this.containerView,n.searchQuery=this.searchQuery,n.hideRootSpecialFolders=this.subject?e.sameTerm(this.subject):!1,t.replaceChildren(n)}async showInitialContainer(t){let n=++this.initialLoadGeneration;if(e.isJavaScriptFile(t))this.showSubject(t);else if(this.store&&this.resourceLogic){try{await this.store.fetcher.load(t)}catch(r){if(n!==this.initialLoadGeneration||!this.subject?.sameTerm(t))return;if(e.isAccessDeniedError(r)){this.resourceTarget&&this.renderAccessDeniedScreen();return}a.log.error(`Unable to load storage container: `+r),this.showContentError({title:`Unable to load this folder`,message:`The folder could not be loaded. Try again.`});return}n===this.initialLoadGeneration&&this.subject?.sameTerm(t)&&(this.sidebar?.refreshResources?.(),this.selectedResource||this.showSubject(t))}}getPaneForSubject(e,t){let n=this.store&&(this.store.any(e,a.ns.ui(`mintClass`),void 0,e.doc())||this.store.any(e.doc(),a.ns.ui(`mintClass`),void 0,e.doc()));if(n){let e=t.find(e=>e.mintClass?.sameTerm(n));if(e)return e}return t.find(t=>t.shouldGetFocus?.(e))||t[0]}async renderExplorerInto(e,n,r,i={}){if(!this.browserContext)return;let o=await(0,a.getRelevantPanes)(n,this.browserContext,{excludedPaneNames:[`sharing`],fallbackPaneName:`internal`});if(i.isCurrent&&!i.isCurrent())return;let s=r||this.getPaneForSubject(n,o);if(!s){this.renderExplorerError(n,`No pane is available to display this resource.`);return}let c;try{c=s.render(n,this.browserContext,i.paneOptions||{})}catch(e){a.log.error(`Unable to render selected pane: `+e),this.renderExplorerError(n,`The selected pane could not render this resource.`);return}let l=e.ownerDocument.createElement(`solid-ui-file-explorer-provider`),u=o.map(e=>{let t=e.label(n,this.browserContext);if(t)return{label:t,action:t=>{l.dispatchEvent(new CustomEvent(a.FILE_EXPLORER_OPEN_PANE_EVENT,{bubbles:!0,composed:!0,detail:{subjectUri:n.uri,paneName:e.name}}))}}}).filter(e=>e!==void 0);l.addEventListener(a.FILE_EXPLORER_BACK_EVENT,e=>{(0,a.isExplorerEvent)(e,l)&&(e.stopPropagation(),this.renderGeneration++,this.selectedResource=void 0,this.renderContainerView(this.subject||n))}),l.addEventListener(a.FILE_EXPLORER_OPEN_PANE_EVENT,r=>{if(!(0,a.isExplorerEvent)(r,l))return;r.stopPropagation();let o=r.detail?.paneName,s=o?this.browserContext?.session.paneRegistry.byName(o):void 0;if(s){let r={generation:++this.renderGeneration,subjectUri:n.uri,context:this.browserContext};this.renderExplorerInto(e,n,s,{...i,isCurrent:()=>t.isCurrentRenderRequest(r,this.renderGeneration,this.selectedResource?.uri,this.browserContext)}).catch(e=>{a.log.error(`Unable to switch selected pane: `+e)})}}),(0,a.composeExplorer)(l,{context:this.browserContext,subjectUri:n.uri,pane:s,relevantPanes:o,header:i.showHeader===!1?void 0:{paneIcon:s.icon,menuItems:u},paneElement:c}),(!i.isCurrent||i.isCurrent())&&(this.contentError=void 0,e.replaceChildren(l))}renderExplorerError(e,t){this.showContentError({title:t,message:e.uri})}async showResourceInContentView(n,r,i=!1){let o=++this.renderGeneration;try{let s=this.resourceTarget;if(!s||!this.store||!this.resourceLogic)return;let c={generation:o,subjectUri:n.uri,context:this.browserContext},l=e=>t.isCurrentRenderRequest(c,this.renderGeneration,this.selectedResource?.uri,this.browserContext)&&e.uri===c.subjectUri;if(!l(n))return;if(this.subject?.sameTerm(n)&&!i&&!e.isJavaScriptFile(n)){this.renderContainerView(n);return}if(e.isContainerResource(n,this.resourceLogic)){try{await this.store.fetcher.load(n)}catch(t){if(!l(n))return;if(e.isAccessDeniedError(t)){this.renderAccessDeniedScreen();return}a.log.error(`Unable to load selected container: `+t),this.showContentError({title:`Unable to load this folder`,message:`The folder could not be loaded. Try again.`});return}if(!l(n))return;if(this.sidebar?.refreshResources?.(),i||this.resourceLogic.containerHasIndexDocument(n)){let t=this.store.sym(e.getIndexedApplicationSubject(n,r?.name));try{await this.store.fetcher.load(t.doc())}catch(t){if(!l(n))return;if(e.isAccessDeniedError(t)){this.renderAccessDeniedScreen();return}a.log.error(`Unable to load container index document: `+t)}await this.renderExplorerInto(s,t,r,{isCurrent:()=>l(n),showHeader:!1});return}this.renderContainerView(n);return}try{await this.store.fetcher.load(n)}catch(t){if(!l(n))return;if(e.isAccessDeniedError(t)){this.renderAccessDeniedScreen();return}a.log.warn(`Unable to load selected resource metadata: `+t)}if(!l(n))return;let u=e.isJavaScriptFile(n)?this.browserContext?.session.paneRegistry.byName(`source`):void 0;if(!r&&e.isJavaScriptFile(n)&&!u){this.renderExplorerError(n,`The Source pane is unavailable to display this JavaScript file.`);return}await this.renderExplorerInto(s,n,r||u,{isCurrent:()=>l(n)})}catch(t){if(a.log.error(`Unable to render selected resource: `+t),o===this.renderGeneration&&this.resourceTarget){if(e.isAccessDeniedError(t)){this.renderAccessDeniedScreen();return}this.renderExplorerError(n,`Unable to display the selected resource.`)}}}showSubject(t,n){let r=e.getIndexedContainer(t),i=r&&this.store?this.store.sym(r):void 0,a=i??t,o=!i&&!!this.resourceLogic&&e.isContainerResource(t,this.resourceLogic)&&this.resourceLogic.containerHasIndexDocument(t);this.selectedResource=a,this.showResourceInContentView(a,n,!!i||o)}setContainerView(e){this.containerView=e;let t=this.resourceTarget?.querySelector(`folder-pane-container`);t&&(t.view=e)}render(){return this.fullView?s.html`
2
+ ${this.renderContentError()}
3
+ <div
4
+ class="folder-pane-full-view"
5
+ ?hidden=${!!this.contentError}
6
+ @resource-selected=${this.handleResourceSelected}
7
+ @resource-open-pane=${this.handleResourceOpenPane}
8
+ ></div>
9
+ `:s.html`
10
+ <folder-pane-storage-header
11
+ .subject=${this.subject}
12
+ .selectedResource=${this.selectedResource??this.subject}
13
+ .browserContext=${this.browserContext}
14
+ .paneList=${this.browserContext?.session.paneRegistry.list??[]}
15
+ .view=${this.containerView}
16
+ .searchQuery=${this.searchQuery}
17
+ .canCreate=${!!o.authn.currentUser()}
18
+ @folder-pane-select-home=${this.handleSelectHome}
19
+ @folder-pane-select-resource=${this.handleSelectBreadcrumbResource}
20
+ @folder-pane-change-view=${this.handleContainerViewChange}
21
+ @folder-pane-search=${this.handleSearch}
22
+ ></folder-pane-storage-header>
23
+ <div
24
+ class="folder-pane-main-content"
25
+ @resource-selected=${this.handleResourceSelected}
26
+ @resource-open-pane=${this.handleResourceOpenPane}
27
+ >
28
+ <folder-pane-sidebar
29
+ .store=${this.store}
30
+ .resourceLogic=${this.resourceLogic}
31
+ .subject=${this.subject}
32
+ .selectedResource=${this.selectedResource??this.subject}
33
+ ></folder-pane-sidebar>
34
+ <div class="folder-pane-content-column">
35
+ <div class="folder-pane-status"></div>
36
+ ${this.renderContentError()}
37
+ <folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
38
+ </div>
39
+ </div>
40
+ `}renderContentError(){return this.contentError?s.html`
41
+ <div class="folder-pane-resource-error" role="status">
42
+ <solid-ui-error-state
43
+ .title=${this.contentError.title}
44
+ .message=${this.contentError.message}
45
+ @close=${this.clearContentError}
46
+ >
47
+ <button type="button" @click=${this.retryContent}>Retry</button>
48
+ </solid-ui-error-state>
49
+ </div>
50
+ `:s.nothing}},{e:[m,g,v,b,S,w,E,O,A,M,P,u],c:[ie,d]}=te(l,[[p,1,`browserContext`],[h,1,`subject`],[_,1,`fullView`],[y,1,`selectedResource`],[x,1,`containerView`],[C,1,`searchQuery`],[T,1,`contentError`],[D,1,`contentView`],[k,1,`fullViewTarget`],[j,1,`sidebar`],[N,1,`statusArea`]],f,0,void 0,a.WebComponent),d(),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return ie}});
51
+ //# sourceMappingURL=FolderPaneView.cjs.js.map