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,429 @@
1
+ import { getResourcesForContainer as e } from "../../helpers.esm.js";
2
+ import "../../_virtual/~icons/lucide/folder.esm.js";
3
+ import "../../_virtual/~icons/lucide/globe.esm.js";
4
+ import t from "./FolderPaneSidebar.styles.esm.js";
5
+ import "../../_virtual/~icons/lucide/chevron-right.esm.js";
6
+ import "../../_virtual/~icons/lucide/circle-small.esm.js";
7
+ import "../../_virtual/~icons/lucide/trash-2.esm.js";
8
+ import { WebComponent as n, customElement as r, utils as i } from "solid-ui";
9
+ import { html as a, nothing as o } from "lit";
10
+ import { property as s, state as c } from "lit/decorators.js";
11
+ import { repeat as l } from "lit/directives/repeat.js";
12
+ // src/components/folder-pane-sidebar/FolderPaneSidebar.ts
13
+ 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;
14
+ function V(e, t, n) {
15
+ H(e, t), t.set(e, n);
16
+ }
17
+ function H(e, t) {
18
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
19
+ }
20
+ function U(e, t, n) {
21
+ return e.set(G(e, t), n), n;
22
+ }
23
+ function W(e, t) {
24
+ return e.get(G(e, t));
25
+ }
26
+ function G(e, t, n) {
27
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
28
+ throw TypeError("Private element is not present on this object");
29
+ }
30
+ function K(e, t, n) {
31
+ return (t = J(t)) in e ? Object.defineProperty(e, t, {
32
+ value: n,
33
+ enumerable: !0,
34
+ configurable: !0,
35
+ writable: !0
36
+ }) : e[t] = n, e;
37
+ }
38
+ function q(e, t, n, r, i, a) {
39
+ function o(e, t, n) {
40
+ return function(r, i) {
41
+ return n && n(r), e[t].call(r, i);
42
+ };
43
+ }
44
+ function s(e, t) {
45
+ for (var n = 0; n < e.length; n++) e[n].call(t);
46
+ return t;
47
+ }
48
+ function c(e, t, n, r) {
49
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
50
+ return e;
51
+ }
52
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
53
+ function h(e) {
54
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
55
+ }
56
+ var g, _ = t[0], v = t[3], y = !l;
57
+ if (!y) {
58
+ n || Array.isArray(_) || (_ = [_]);
59
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
60
+ d ? (f || p ? b = {
61
+ get: X(function() {
62
+ return v(this);
63
+ }, r, "get"),
64
+ set: function(e) {
65
+ t[4](this, e);
66
+ }
67
+ } : b[S] = v, f || X(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
68
+ }
69
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
70
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
71
+ kind: [
72
+ "field",
73
+ "accessor",
74
+ "method",
75
+ "getter",
76
+ "setter",
77
+ "class"
78
+ ][i],
79
+ name: r,
80
+ metadata: a,
81
+ addInitializer: function(e, t) {
82
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
83
+ c(t, "An initializer", "be", !0), s.push(t);
84
+ }.bind(null, D)
85
+ };
86
+ try {
87
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
88
+ else {
89
+ var k, A;
90
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
91
+ return h(e), b.value;
92
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
93
+ return e[r];
94
+ }, (i < 2 || i === 4) && (A = function(e, t) {
95
+ e[r] = t;
96
+ }));
97
+ var j = O.access = { has: d ? m.bind() : function(e) {
98
+ return r in e;
99
+ } };
100
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
101
+ get: b.get,
102
+ set: b.set
103
+ } : b[S], O), p) {
104
+ 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);
105
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
106
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
107
+ }
108
+ } finally {
109
+ D.v = !0;
110
+ }
111
+ }
112
+ return (f || p) && l.push(function(e, t) {
113
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
114
+ return t;
115
+ }), 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;
116
+ }
117
+ function u(e, t) {
118
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
119
+ configurable: !0,
120
+ enumerable: !0,
121
+ value: t
122
+ });
123
+ }
124
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
125
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
126
+ var i, a, o = [], c = function(t) {
127
+ return Z(t) === e;
128
+ }, u = /* @__PURE__ */ new Map();
129
+ function d(e) {
130
+ e && o.push(s.bind(null, e));
131
+ }
132
+ for (var f = 0; f < t.length; f++) {
133
+ var p = t[f];
134
+ if (Array.isArray(p)) {
135
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
136
+ if (!y && !g) {
137
+ var x = u.get(b);
138
+ 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);
139
+ u.set(b, !(m > 2) || m);
140
+ }
141
+ 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);
142
+ }
143
+ }
144
+ return d(i), d(a), o;
145
+ }(e, t, i, f);
146
+ return n.length || u(e, f), {
147
+ e: p,
148
+ get c() {
149
+ var t = [];
150
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
151
+ }
152
+ };
153
+ }
154
+ function J(e) {
155
+ var t = Y(e, "string");
156
+ return typeof t == "symbol" ? t : t + "";
157
+ }
158
+ function Y(e, t) {
159
+ if (typeof e != "object" || !e) return e;
160
+ var n;
161
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
162
+ var r = n.call(e, t || "default");
163
+ if (typeof r != "object") return r;
164
+ throw TypeError("@@toPrimitive must return a primitive value.");
165
+ }
166
+ return (t === "string" ? String : Number)(e);
167
+ }
168
+ function X(e, t, n) {
169
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
170
+ try {
171
+ Object.defineProperty(e, "name", {
172
+ configurable: !0,
173
+ value: n ? n + " " + t : t
174
+ });
175
+ } catch {}
176
+ return e;
177
+ }
178
+ function Z(e) {
179
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
180
+ return e;
181
+ }
182
+ function Q(e) {
183
+ return e;
184
+ }
185
+ S = [r("folder-pane-sidebar")];
186
+ var $;
187
+ 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 = s({ attribute: !1 }), T = s({ attribute: !1 }), D = s({ attribute: !1 }), k = s({ attribute: !1 }), j = c(), N = c(), F = c(), L = c(), "store"), d = class extends n {
188
+ constructor(...e) {
189
+ super(...e), V(this, f, (b(this), w(this, null))), V(this, p, E(this, void 0)), V(this, m, O(this, null)), V(this, h, A(this, void 0)), V(this, g, M(this, /* @__PURE__ */ new Map())), V(this, _, P(this, /* @__PURE__ */ new Set())), V(this, v, I(this, !0)), V(this, y, R(this, void 0)), K(this, "resourceGeneration", 0);
190
+ }
191
+ get [B]() {
192
+ return W(f, this);
193
+ }
194
+ set store(e) {
195
+ U(f, this, e);
196
+ }
197
+ get subject() {
198
+ return W(p, this);
199
+ }
200
+ set subject(e) {
201
+ U(p, this, e);
202
+ }
203
+ get resourceLogic() {
204
+ return W(m, this);
205
+ }
206
+ set resourceLogic(e) {
207
+ U(m, this, e);
208
+ }
209
+ get selectedResource() {
210
+ return W(h, this);
211
+ }
212
+ set selectedResource(e) {
213
+ U(h, this, e);
214
+ }
215
+ get resources() {
216
+ return W(g, this);
217
+ }
218
+ set resources(e) {
219
+ U(g, this, e);
220
+ }
221
+ get expandedContainers() {
222
+ return W(_, this);
223
+ }
224
+ set expandedContainers(e) {
225
+ U(_, this, e);
226
+ }
227
+ get homeExpanded() {
228
+ return W(v, this);
229
+ }
230
+ set homeExpanded(e) {
231
+ U(v, this, e);
232
+ }
233
+ get expansionError() {
234
+ return W(y, this);
235
+ }
236
+ set expansionError(e) {
237
+ U(y, this, e);
238
+ }
239
+ loadResources() {
240
+ this.resourceGeneration++, !this.store || !this.subject ? (this.resources = /* @__PURE__ */ new Map(), this.expandedContainers = /* @__PURE__ */ new Set()) : this.resources = e(this.subject, this.resourceLogic);
241
+ }
242
+ refreshResources(e) {
243
+ if (this.loadResources(), !e || !this.subject || e.sameTerm(this.subject)) return;
244
+ let t = new Set(this.expandedContainers), n = e;
245
+ for (; !n.sameTerm(this.subject);) {
246
+ t.add(n.value);
247
+ let e = n.dir();
248
+ if (!e || e.sameTerm(n)) break;
249
+ n = e;
250
+ }
251
+ this.expandedContainers = t;
252
+ }
253
+ async toggleContainer(e) {
254
+ if (!e.isContainer) return;
255
+ let t = this.resourceGeneration, n = new Set(this.expandedContainers);
256
+ if (n.has(e.id)) n.delete(e.id), this.expandedContainers = n;
257
+ else {
258
+ try {
259
+ await this.store?.fetcher?.load(e.subject);
260
+ } catch (t) {
261
+ console.error("Unable to expand storage container", t), this.expansionError = `Unable to load ${i.label(e.subject)}. Try expanding it again.`;
262
+ return;
263
+ }
264
+ t === this.resourceGeneration && (this.expansionError = void 0, this.expandedContainers = new Set(this.expandedContainers).add(e.id));
265
+ }
266
+ }
267
+ isSelected(e) {
268
+ return e ? this.selectedResource?.sameTerm(e.subject) ?? !1 : !1;
269
+ }
270
+ isNamed(e, t) {
271
+ return i.label(e.subject).toLowerCase() === t;
272
+ }
273
+ getHomeResource() {
274
+ return this.subject ? {
275
+ id: this.subject.value,
276
+ subject: this.subject,
277
+ parentId: null,
278
+ isContainer: !0
279
+ } : null;
280
+ }
281
+ selectResource(e) {
282
+ this.dispatchEvent(new CustomEvent("resource-selected", {
283
+ detail: { resource: e.subject },
284
+ bubbles: !0,
285
+ composed: !0
286
+ }));
287
+ }
288
+ renderRow(e, t, n, r, i, o = !1) {
289
+ let s = e.isContainer ? a`
290
+ <button
291
+ class="resource-expand-button"
292
+ type="button"
293
+ tabindex="-1"
294
+ aria-label=${r ? `Collapse ${t}` : `Expand ${t}`}
295
+ @click=${(e) => {
296
+ e.preventDefault(), e.stopPropagation(), i();
297
+ }}
298
+ >
299
+ <icon-lucide-chevron-right></icon-lucide-chevron-right>
300
+ </button>
301
+ ` : a`<span class="resource-expand-spacer" aria-hidden="true"></span>`;
302
+ return a`
303
+ <div
304
+ class=${o ? "resource-row resource-row-special" : "resource-row"}
305
+ tabindex="0"
306
+ @click=${() => this.selectResource(e)}
307
+ @keydown=${(t) => {
308
+ t.key === "Enter" || t.key === " " ? (t.preventDefault(), this.selectResource(e)) : e.isContainer && (t.key === "ArrowRight" || t.key === "ArrowLeft") && t.key === "ArrowRight" !== r && (t.preventDefault(), i());
309
+ }}
310
+ >
311
+ ${s}
312
+ ${n}
313
+ <span class="resource-label">${t}</span>
314
+ </div>
315
+ `;
316
+ }
317
+ renderItem(e, t, n, r, i, s, c = !1) {
318
+ let l = this.isSelected(e);
319
+ return a`
320
+ <li
321
+ class=${l ? "resource-item selected" : "resource-item"}
322
+ notSelectable="false"
323
+ role="treeitem"
324
+ aria-label=${t}
325
+ aria-selected=${String(l)}
326
+ aria-expanded=${e.isContainer ? String(r) : o}
327
+ data-expanded=${String(r)}
328
+ about=${e.subject.toNT()}
329
+ .subject=${e.subject}
330
+ >
331
+ ${this.renderRow(e, t, n, r, i, c)}
332
+ ${r ? s : o}
333
+ </li>
334
+ `;
335
+ }
336
+ renderSpecialIcon(e) {
337
+ return e === "globe" ? a`<icon-lucide-globe></icon-lucide-globe>` : e === "trash" ? a`<icon-lucide-trash-2></icon-lucide-trash-2>` : a`<icon-lucide-folder></icon-lucide-folder>`;
338
+ }
339
+ renderResourceItem(t, n = i.label(t.subject), r) {
340
+ let s = this.expandedContainers.has(t.id), c = t.isContainer && s ? this.renderResourceGroup(e(t.subject, this.resourceLogic)) : o, l = r ? this.renderSpecialIcon(r) : a`<icon-lucide-circle-small></icon-lucide-circle-small>`;
341
+ return this.renderItem(t, n, l, s, () => {
342
+ this.toggleContainer(t);
343
+ }, c, !!r);
344
+ }
345
+ renderResourceGroup(e) {
346
+ let t = Array.isArray(e) ? e : [...e.values()];
347
+ return a`
348
+ <ul role="group" class="resource-group">
349
+ ${l(t, (e) => e.id, (e) => this.renderResourceItem(e))}
350
+ </ul>
351
+ `;
352
+ }
353
+ renderTree() {
354
+ let e = this.getHomeResource();
355
+ if (!e) return o;
356
+ let t = [...this.resources.values()], n = (e) => {
357
+ let n = t.findIndex((t) => this.isNamed(t, e));
358
+ return n >= 0 ? t.splice(n, 1)[0] : null;
359
+ }, r = n("public"), i = n("trash");
360
+ return a`
361
+ <ul role="tree" class="resource-tree" aria-label="Storage resources">
362
+ ${this.renderItem(e, "Home", this.renderSpecialIcon("folder"), this.homeExpanded, () => {
363
+ this.homeExpanded = !this.homeExpanded;
364
+ }, this.renderResourceGroup(t), !0)}
365
+ ${r ? this.renderResourceItem(r, "Public", "globe") : o}
366
+ ${i ? this.renderResourceItem(i, "Trash", "trash") : o}
367
+ </ul>
368
+ `;
369
+ }
370
+ willUpdate(e) {
371
+ super.willUpdate(e), e.has("subject") && (this.expandedContainers = /* @__PURE__ */ new Set(), this.homeExpanded = !0), (e.has("store") || e.has("subject") || e.has("resourceLogic")) && this.loadResources();
372
+ }
373
+ render() {
374
+ return a`
375
+ <aside>
376
+ ${this.expansionError ? a`<div class="folder-pane-sidebar-error" role="alert">${this.expansionError}</div>` : o}
377
+ ${this.renderTree()}
378
+ </aside>
379
+ `;
380
+ }
381
+ }, {e: [w, E, O, A, M, P, I, R, b], c: [$, x]} = q(d, [
382
+ [
383
+ C,
384
+ 1,
385
+ "store"
386
+ ],
387
+ [
388
+ T,
389
+ 1,
390
+ "subject"
391
+ ],
392
+ [
393
+ D,
394
+ 1,
395
+ "resourceLogic"
396
+ ],
397
+ [
398
+ k,
399
+ 1,
400
+ "selectedResource"
401
+ ],
402
+ [
403
+ j,
404
+ 1,
405
+ "resources"
406
+ ],
407
+ [
408
+ N,
409
+ 1,
410
+ "expandedContainers"
411
+ ],
412
+ [
413
+ F,
414
+ 1,
415
+ "homeExpanded"
416
+ ],
417
+ [
418
+ L,
419
+ 1,
420
+ "expansionError"
421
+ ]
422
+ ], S, 0, void 0, n), d), u = class extends Q {
423
+ constructor() {
424
+ super($), K(this, "styles", t), x();
425
+ }
426
+ }, K(u, z, void 0), u)();
427
+ export { $ as default };
428
+
429
+ //# sourceMappingURL=FolderPaneSidebar.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneSidebar.esm.js","names":["customElement","utils","WebComponent","html","nothing","repeat","property","state","styles","getResourcesForContainer","_classDecs","_FolderPaneSidebar","_FolderPaneSidebar2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_storeDecs","attribute","_subjectDecs","_resourceLogicDecs","_selectedResourceDecs","_resourcesDecs","_expandedContainersDecs","_homeExpandedDecs","_expansionErrorDecs","_FolderPaneSidebar3","FolderPaneSidebar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subject","undefined","_init_resourceLogic","_init_selectedResource","_init_resources","Map","_init_expandedContainers","Set","_init_homeExpanded","_init_expansionError","_defineProperty","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subject","resourceLogic","selectedResource","resources","expandedContainers","homeExpanded","expansionError","loadResources","resourceGeneration","refreshResources","container","sameTerm","expanded","current","add","value","parent","dir","toggleContainer","resource","isContainer","generation","nextExpandedContainers","has","id","delete","fetcher","load","error","console","label","isSelected","isNamed","name","toLowerCase","getHomeResource","parentId","selectResource","dispatchEvent","CustomEvent","detail","bubbles","composed","renderRow","icon","toggle","special","chevron","event","preventDefault","stopPropagation","key","shouldExpand","renderItem","children","selected","String","toNT","renderSpecialIcon","renderResourceItem","specialIcon","renderResourceGroup","Boolean","list","Array","isArray","values","renderTree","homeResource","orderedResources","takeNamed","index","findIndex","splice","publicResource","trashResource","willUpdate","changedProperties","render","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","FolderPaneSidebar_styles_default","_Class","_FolderPaneSidebar3","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectDecs","_init_subject","_resourceLogicDecs","_init_resourceLogic","_selectedResourceDecs","_init_selectedResource","_resourcesDecs","_init_resources","_expandedContainersDecs","_init_expandedContainers","_homeExpandedDecs","_init_homeExpanded","_expansionErrorDecs","_init_expansionError","_FolderPaneSidebar2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FolderPaneSidebar","property","state","WebComponent","args","getResourcesForContainer","container","expanded","current","parent","resource","generation","nextExpandedContainers","error","utils","name","chevron","label","event","toggle","special","icon","selected","nothing","children","specialIcon","list","resources","repeat","homeResource","orderedResources","takeNamed","index","publicResource","trashResource","changedProperties"],"sources":["../../../src/components/folder-pane-sidebar/FolderPaneSidebar.ts"],"sourcesContent":["import { customElement, utils, WebComponent } from 'solid-ui'\nimport { html, nothing } from 'lit'\nimport { repeat } from 'lit/directives/repeat.js'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport styles from './FolderPaneSidebar.styles.css'\nimport type { LiveStore, NamedNode } from 'rdflib'\nimport type { Resource, ResourceMap } from '../../types'\nimport '~icons/lucide/chevron-right'\nimport '~icons/lucide/circle-small'\nimport '~icons/lucide/folder'\nimport '~icons/lucide/globe'\nimport '~icons/lucide/trash-2'\nimport { getResourcesForContainer, type FolderPaneResourceLogic } from '../../helpers'\n\ntype SpecialIcon = 'folder' | 'globe' | 'trash'\n\n@customElement('folder-pane-sidebar')\nexport default class FolderPaneSidebar extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | null = null\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor resourceLogic: FolderPaneResourceLogic | null = null\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @state()\n accessor resources: ResourceMap = new Map()\n\n @state()\n accessor expandedContainers: Set<string> = new Set()\n\n @state()\n accessor homeExpanded = true\n @state()\n accessor expansionError: string | undefined = undefined\n private resourceGeneration = 0\n\n private loadResources () {\n this.resourceGeneration++\n if (!this.store || !this.subject) {\n this.resources = new Map()\n this.expandedContainers = new Set()\n return\n }\n\n this.resources = getResourcesForContainer(this.subject, this.resourceLogic)\n }\n\n refreshResources (container?: NamedNode) {\n this.loadResources()\n if (!container || !this.subject || container.sameTerm(this.subject)) return\n\n const expanded = new Set(this.expandedContainers)\n let current = container\n while (!current.sameTerm(this.subject)) {\n expanded.add(current.value)\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) break\n current = parent\n }\n this.expandedContainers = expanded\n }\n\n private async toggleContainer (resource: Resource) {\n if (!resource.isContainer) return\n\n const generation = this.resourceGeneration\n const nextExpandedContainers = new Set(this.expandedContainers)\n if (nextExpandedContainers.has(resource.id)) {\n nextExpandedContainers.delete(resource.id)\n this.expandedContainers = nextExpandedContainers\n return\n }\n\n try {\n await this.store?.fetcher?.load(resource.subject)\n } catch (error) {\n console.error('Unable to expand storage container', error)\n this.expansionError = `Unable to load ${utils.label(resource.subject)}. Try expanding it again.`\n return\n }\n\n if (generation !== this.resourceGeneration) return\n this.expansionError = undefined\n this.expandedContainers = new Set(this.expandedContainers).add(resource.id)\n }\n\n private isSelected (resource: Resource | null) {\n return resource ? this.selectedResource?.sameTerm(resource.subject) ?? false : false\n }\n\n private isNamed (resource: Resource, name: string) {\n return utils.label(resource.subject).toLowerCase() === name\n }\n\n private getHomeResource (): Resource | null {\n if (!this.subject) return null\n\n return {\n id: this.subject.value,\n subject: this.subject,\n parentId: null,\n isContainer: true,\n }\n }\n\n private selectResource (resource: Resource) {\n this.dispatchEvent(new CustomEvent('resource-selected', {\n detail: { resource: resource.subject },\n bubbles: true,\n composed: true,\n }))\n }\n\n private renderRow (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n special = false\n ) {\n const chevron = resource.isContainer\n ? html`\n <button\n class=\"resource-expand-button\"\n type=\"button\"\n tabindex=\"-1\"\n aria-label=${expanded ? `Collapse ${label}` : `Expand ${label}`}\n @click=${(event: MouseEvent) => {\n event.preventDefault()\n event.stopPropagation()\n toggle()\n }}\n >\n <icon-lucide-chevron-right></icon-lucide-chevron-right>\n </button>\n `\n : html`<span class=\"resource-expand-spacer\" aria-hidden=\"true\"></span>`\n\n return html`\n <div\n class=${special ? 'resource-row resource-row-special' : 'resource-row'}\n tabindex=\"0\"\n @click=${() => this.selectResource(resource)}\n @keydown=${(event: KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault()\n this.selectResource(resource)\n } else if (resource.isContainer && (event.key === 'ArrowRight' || event.key === 'ArrowLeft')) {\n const shouldExpand = event.key === 'ArrowRight'\n if (shouldExpand !== expanded) {\n event.preventDefault()\n toggle()\n }\n }\n }}\n >\n ${chevron}\n ${icon}\n <span class=\"resource-label\">${label}</span>\n </div>\n `\n }\n\n private renderItem (\n resource: Resource,\n label: string,\n icon: unknown,\n expanded: boolean,\n toggle: () => void,\n children: unknown,\n special = false\n ) {\n const selected = this.isSelected(resource)\n\n return html`\n <li\n class=${selected ? 'resource-item selected' : 'resource-item'}\n notSelectable=\"false\"\n role=\"treeitem\"\n aria-label=${label}\n aria-selected=${String(selected)}\n aria-expanded=${resource.isContainer ? String(expanded) : nothing}\n data-expanded=${String(expanded)}\n about=${resource.subject.toNT()}\n .subject=${resource.subject}\n >\n ${this.renderRow(resource, label, icon, expanded, toggle, special)}\n ${expanded ? children : nothing}\n </li>\n `\n }\n\n private renderSpecialIcon (icon: SpecialIcon) {\n if (icon === 'globe') return html`<icon-lucide-globe></icon-lucide-globe>`\n if (icon === 'trash') return html`<icon-lucide-trash-2></icon-lucide-trash-2>`\n return html`<icon-lucide-folder></icon-lucide-folder>`\n }\n\n private renderResourceItem (resource: Resource, label = utils.label(resource.subject), specialIcon?: SpecialIcon) {\n const expanded = this.expandedContainers.has(resource.id)\n const children = resource.isContainer && expanded\n ? this.renderResourceGroup(getResourcesForContainer(resource.subject, this.resourceLogic))\n : nothing\n const icon = specialIcon\n ? this.renderSpecialIcon(specialIcon)\n : html`<icon-lucide-circle-small></icon-lucide-circle-small>`\n\n return this.renderItem(\n resource,\n label,\n icon,\n expanded,\n () => { void this.toggleContainer(resource) },\n children,\n Boolean(specialIcon)\n )\n }\n\n private renderResourceGroup (resources: ResourceMap | Resource[]) {\n const list = Array.isArray(resources) ? resources : [...resources.values()]\n\n return html`\n <ul role=\"group\" class=\"resource-group\">\n ${repeat(list, (resource) => resource.id, (resource) => this.renderResourceItem(resource))}\n </ul>\n `\n }\n\n private renderTree () {\n const homeResource = this.getHomeResource()\n if (!homeResource) return nothing\n\n const orderedResources = [...this.resources.values()]\n const takeNamed = (name: string) => {\n const index = orderedResources.findIndex(resource => this.isNamed(resource, name))\n return index >= 0 ? orderedResources.splice(index, 1)[0] : null\n }\n const publicResource = takeNamed('public')\n const trashResource = takeNamed('trash')\n\n return html`\n <ul role=\"tree\" class=\"resource-tree\" aria-label=\"Storage resources\">\n ${this.renderItem(\n homeResource,\n 'Home',\n this.renderSpecialIcon('folder'),\n this.homeExpanded,\n () => { this.homeExpanded = !this.homeExpanded },\n this.renderResourceGroup(orderedResources),\n true\n )}\n ${publicResource ? this.renderResourceItem(publicResource, 'Public', 'globe') : nothing}\n ${trashResource ? this.renderResourceItem(trashResource, 'Trash', 'trash') : nothing}\n </ul>\n `\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n if (changedProperties.has('subject')) {\n this.expandedContainers = new Set()\n this.homeExpanded = true\n }\n if (\n changedProperties.has('store') ||\n changedProperties.has('subject') ||\n changedProperties.has('resourceLogic')\n ) {\n this.loadResources()\n }\n }\n\n render () {\n return html`\n <aside>\n ${this.expansionError ? html`<div class=\"folder-pane-sidebar-error\" role=\"alert\">${this.expansionError}</div>` : nothing}\n ${this.renderTree()}\n </aside>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA;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;AAAA,GAAArB,GAAA,GAAA,KAAA,GAhR8CR,CAAY,GAAA8B,IAAAyG,IAAA,cAAAC,EAAA;CAAAxG,cAAA;EAAA,MAAAvB,CAAA,GAAAsC,EAAA,MAAA,UACzCzC,CAAM,GAAA+H,EAAA;CAAA;AAAA,GAAAtF,EAAAwF,GAAA7H,GAAA,KAAA,CAAA,GAAA6H,GAAA"}
@@ -0,0 +1,2 @@
1
+ var e=require("lit").css`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:10px 5px 10px 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible{outline:2px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-2px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder,:host .resource-row-special icon-lucide-globe,:host .resource-row-special icon-lucide-trash-2{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button icon-lucide-chevron-right{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc);transition:transform .12s}:host li[data-expanded=true]>.resource-row icon-lucide-chevron-right{transform:rotate(90deg)}`;exports.default=e;
2
+ //# sourceMappingURL=FolderPaneSidebar.styles.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneSidebar.styles.cjs.js","names":["FolderPaneSidebar_styles_default"],"sources":["../../../src/components/folder-pane-sidebar/FolderPaneSidebar.styles.css"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n\n aside {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n box-sizing: border-box;\n padding: 17px 10px 0;\n border-radius: 5px 0 0 5px;\n background: var(--solid-ui-color-neutral-50, #fafafa);\n /* Firefox */\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n }\n\n /* Chrome, Edge, Safari */\n aside::-webkit-scrollbar {\n width: 6px;\n }\n\n aside::-webkit-scrollbar-track {\n background: transparent;\n }\n\n aside::-webkit-scrollbar-thumb {\n background: transparent;\n border-radius: 999px;\n }\n\n aside:hover {\n scrollbar-color: var(--solid-ui-color-gray-300, #d1d5dc) transparent;\n }\n\n aside:hover::-webkit-scrollbar-thumb {\n background: var(--solid-ui-color-gray-300, #d1d5dc);\n }\n\n ul {\n list-style: none;\n }\n\n .resource-tree {\n flex: 1 1 auto;\n padding: 0 0 10px;\n margin: 0;\n width: 100%;\n }\n\n .resource-item {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n align-self: stretch;\n }\n\n .resource-group {\n position: relative;\n display: flex;\n margin: 0;\n padding: 10px 5px 10px 25px;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n }\n\n .resource-group::before {\n content: '';\n position: absolute;\n left: 20px;\n top: 10px;\n bottom: 10px;\n border-left: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n\n .resource-row {\n color: var(--solid-ui-color-gray-500, #6a7282);\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: var(--solid-ui-font-size-sm, .875rem);\n width: 100%;\n box-sizing: border-box;\n padding: 5px 15px 5px 10px;\n cursor: pointer;\n border-radius: 5px;\n }\n\n .resource-row:hover {\n background: color-mix(in srgb, var(--solid-ui-color-gray-200, #cbd5e1) 40%, transparent);\n }\n\n .resource-row:focus-visible {\n outline: 2px solid var(--solid-ui-color-primary, #7c4dff);\n outline-offset: -2px;\n }\n\n .resource-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .resource-item.selected > .resource-row {\n background: var(--solid-ui-color-primary-selected);\n color: var(--solid-ui-color-primary);\n }\n\n .resource-item.selected > .resource-row icon-lucide-chevron-right,\n .resource-item.selected > .resource-row icon-lucide-circle-small {\n color: currentColor;\n stroke: currentColor;\n }\n\n .resource-row-special icon-lucide-folder,\n .resource-row-special icon-lucide-globe,\n .resource-row-special icon-lucide-trash-2 {\n width: 16px;\n height: 16px;\n flex-shrink: 0;\n }\n\n icon-lucide-circle-small {\n width: 6px;\n height: 6px;\n flex-shrink: 0;\n aspect-ratio: 1/1;\n stroke-width: 1px;\n stroke: var(--solid-ui-color-gray-500, #6a7282);\n }\n\n .resource-expand-button,\n .resource-expand-spacer {\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n }\n\n .resource-expand-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n cursor: pointer;\n }\n\n .resource-expand-button icon-lucide-chevron-right {\n width: 16px;\n height: 16px;\n /* The lucide icon strokes with currentColor, so fill has no effect. */\n color: var(--solid-ui-color-gray-300, #d1d5dc);\n transition: transform 120ms ease;\n }\n\n li[data-expanded='true'] > .resource-row icon-lucide-chevron-right {\n transform: rotate(90deg);\n }\n}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { css as e } from "lit";
2
+ // src/components/folder-pane-sidebar/FolderPaneSidebar.styles.css
3
+ var t = e`:host{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}:host aside{box-sizing:border-box;background:var(--solid-ui-color-neutral-50,#fafafa);scrollbar-width:thin;scrollbar-color:transparent transparent;border-radius:5px 0 0 5px;flex-direction:column;flex:auto;min-height:0;padding:17px 10px 0;display:flex;overflow:auto}:host aside::-webkit-scrollbar{width:6px}:host aside::-webkit-scrollbar-track{background:0 0}:host aside::-webkit-scrollbar-thumb{background:0 0;border-radius:999px}:host aside:hover{scrollbar-color:var(--solid-ui-color-gray-300,#d1d5dc) transparent}:host aside:hover::-webkit-scrollbar-thumb{background:var(--solid-ui-color-gray-300,#d1d5dc)}:host ul{list-style:none}:host .resource-tree{flex:auto;width:100%;margin:0;padding:0 0 10px}:host .resource-item{flex-direction:column;justify-content:center;align-self:stretch;align-items:flex-start;display:flex}:host .resource-group{flex-direction:column;align-self:stretch;align-items:flex-start;gap:4px;margin:0;padding:10px 5px 10px 25px;display:flex;position:relative}:host .resource-group:before{content:\"\";border-left:1px solid var(--solid-ui-color-gray-200,#cbd5e1);position:absolute;top:10px;bottom:10px;left:20px}:host .resource-row{color:var(--solid-ui-color-gray-500,#6a7282);font-size:var(--solid-ui-font-size-sm,.875rem);box-sizing:border-box;cursor:pointer;border-radius:5px;align-items:center;gap:10px;width:100%;padding:5px 15px 5px 10px;display:flex}:host .resource-row:hover{background:color-mix(in srgb, var(--solid-ui-color-gray-200,#cbd5e1) 40%, transparent)}:host .resource-row:focus-visible{outline:2px solid var(--solid-ui-color-primary,#7c4dff);outline-offset:-2px}:host .resource-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}:host .resource-item.selected>.resource-row{background:var(--solid-ui-color-primary-selected);color:var(--solid-ui-color-primary)}:host .resource-item.selected>.resource-row icon-lucide-chevron-right,:host .resource-item.selected>.resource-row icon-lucide-circle-small{color:currentColor;stroke:currentColor}:host .resource-row-special icon-lucide-folder,:host .resource-row-special icon-lucide-globe,:host .resource-row-special icon-lucide-trash-2{flex-shrink:0;width:16px;height:16px}:host icon-lucide-circle-small{aspect-ratio:1;stroke-width:1px;width:6px;height:6px;stroke:var(--solid-ui-color-gray-500,#6a7282);flex-shrink:0}:host .resource-expand-button,:host .resource-expand-spacer{flex:0 0 16px;width:16px;height:16px}:host .resource-expand-button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}:host .resource-expand-button icon-lucide-chevron-right{width:16px;height:16px;color:var(--solid-ui-color-gray-300,#d1d5dc);transition:transform .12s}:host li[data-expanded=true]>.resource-row icon-lucide-chevron-right{transform:rotate(90deg)}`;
4
+ export { t as default };
5
+
6
+ //# sourceMappingURL=FolderPaneSidebar.styles.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneSidebar.styles.esm.js","names":["FolderPaneSidebar_styles_default"],"sources":["../../../src/components/folder-pane-sidebar/FolderPaneSidebar.styles.css"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n\n aside {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n box-sizing: border-box;\n padding: 17px 10px 0;\n border-radius: 5px 0 0 5px;\n background: var(--solid-ui-color-neutral-50, #fafafa);\n /* Firefox */\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n }\n\n /* Chrome, Edge, Safari */\n aside::-webkit-scrollbar {\n width: 6px;\n }\n\n aside::-webkit-scrollbar-track {\n background: transparent;\n }\n\n aside::-webkit-scrollbar-thumb {\n background: transparent;\n border-radius: 999px;\n }\n\n aside:hover {\n scrollbar-color: var(--solid-ui-color-gray-300, #d1d5dc) transparent;\n }\n\n aside:hover::-webkit-scrollbar-thumb {\n background: var(--solid-ui-color-gray-300, #d1d5dc);\n }\n\n ul {\n list-style: none;\n }\n\n .resource-tree {\n flex: 1 1 auto;\n padding: 0 0 10px;\n margin: 0;\n width: 100%;\n }\n\n .resource-item {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n align-self: stretch;\n }\n\n .resource-group {\n position: relative;\n display: flex;\n margin: 0;\n padding: 10px 5px 10px 25px;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n }\n\n .resource-group::before {\n content: '';\n position: absolute;\n left: 20px;\n top: 10px;\n bottom: 10px;\n border-left: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n\n .resource-row {\n color: var(--solid-ui-color-gray-500, #6a7282);\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: var(--solid-ui-font-size-sm, .875rem);\n width: 100%;\n box-sizing: border-box;\n padding: 5px 15px 5px 10px;\n cursor: pointer;\n border-radius: 5px;\n }\n\n .resource-row:hover {\n background: color-mix(in srgb, var(--solid-ui-color-gray-200, #cbd5e1) 40%, transparent);\n }\n\n .resource-row:focus-visible {\n outline: 2px solid var(--solid-ui-color-primary, #7c4dff);\n outline-offset: -2px;\n }\n\n .resource-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .resource-item.selected > .resource-row {\n background: var(--solid-ui-color-primary-selected);\n color: var(--solid-ui-color-primary);\n }\n\n .resource-item.selected > .resource-row icon-lucide-chevron-right,\n .resource-item.selected > .resource-row icon-lucide-circle-small {\n color: currentColor;\n stroke: currentColor;\n }\n\n .resource-row-special icon-lucide-folder,\n .resource-row-special icon-lucide-globe,\n .resource-row-special icon-lucide-trash-2 {\n width: 16px;\n height: 16px;\n flex-shrink: 0;\n }\n\n icon-lucide-circle-small {\n width: 6px;\n height: 6px;\n flex-shrink: 0;\n aspect-ratio: 1/1;\n stroke-width: 1px;\n stroke: var(--solid-ui-color-gray-500, #6a7282);\n }\n\n .resource-expand-button,\n .resource-expand-spacer {\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n }\n\n .resource-expand-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n cursor: pointer;\n }\n\n .resource-expand-button icon-lucide-chevron-right {\n width: 16px;\n height: 16px;\n /* The lucide icon strokes with currentColor, so fill has no effect. */\n color: var(--solid-ui-color-gray-300, #d1d5dc);\n transition: transform 120ms ease;\n }\n\n li[data-expanded='true'] > .resource-row icon-lucide-chevron-right {\n transform: rotate(90deg);\n }\n}\n"],"mappings":""}
@@ -0,0 +1 @@
1
+ require("./FolderPaneSidebar.cjs.js");
@@ -0,0 +1,2 @@
1
+ export { default as FolderPaneSidebar } from './FolderPaneSidebar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/folder-pane-sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1 @@
1
+ import "./FolderPaneSidebar.esm.js";
@@ -0,0 +1,32 @@
1
+ const e=require("../../helpers.cjs.js"),t=require("../../creationSafety.cjs.js"),n=require("./FolderPaneCreateDialog.styles.cjs.js");require("../../_virtual/~icons/lucide/x.cjs.js");let r=require("solid-ui"),i=require("lit"),a=require("lit/decorators.js");require("solid-ui/components/button"),require("solid-ui/components/dialog"),require("solid-ui/components/dialog-content"),require("solid-ui/components/dialog-footer"),require("solid-ui/components/dialog-header");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(e,t,n){E(e,t),t.set(e,n)}function E(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function D(e,t,n){return e.set(k(e,t),n),n}function O(e,t){return e.get(k(e,t))}function k(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 A(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(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:P(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||P(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 F(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:M(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 M(e){var t=N(e,`string`);return typeof t==`symbol`?t:t+``}function N(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 P(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 F(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function I(e){return e}m=[(0,r.customElement)(`folder-pane-create-dialog`)];var L;new(C=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,w=(h=(0,a.property)({attribute:!1}),_=(0,a.state)(),y=(0,a.state)(),x=(0,a.query)(`input`),`label`),s=class extends r.DialogComponent{constructor(...e){super(...e),T(this,c,(f(this),g(this,null))),T(this,l,v(this,``)),T(this,u,b(this,``)),T(this,d,S(this,null)),A(this,`cancel`,()=>this.close()),A(this,`confirm`,()=>{let e=this.name.trim();t.isSafeCreationName(e)?this.close(e):this.validationMessage=t.invalidCreationNameMessage}),A(this,`onNameInput`,e=>{this.name=e.target.value,this.validationMessage=``}),A(this,`onNameKeydown`,e=>{e.key===`Enter`&&(e.preventDefault(),this.confirm())})}get[w](){return O(c,this)}set label(e){D(c,this,e)}get name(){return O(l,this)}set name(e){D(l,this,e)}get validationMessage(){return O(u,this)}set validationMessage(e){D(u,this,e)}get nameInput(){return O(d,this)}set nameInput(e){D(d,this,e)}firstUpdated(){requestAnimationFrame(()=>{this.nameInput?.focus(),this.nameInput?.setSelectionRange(0,this.nameInput.value.length)})}render(){let t=this.label??`Container`,{title:n,placeholder:r}=e.getCreationDialogText(t),a=`${n.slice(4)} name`;return i.html`
2
+ <solid-ui-dialog>
3
+ <solid-ui-dialog-header slot="header" class="folder-pane-create-dialog-header">
4
+ <h1>${n}</h1>
5
+ <solid-ui-button variant="ghost" @click=${this.cancel} title="Close" aria-label="Close">
6
+ <icon-lucide-x slot="icon"></icon-lucide-x>
7
+ </solid-ui-button>
8
+ </solid-ui-dialog-header>
9
+ <solid-ui-dialog-content>
10
+ <label class="folder-pane-create-dialog-label">
11
+ <span>${a}</span>
12
+ <input
13
+ type="text"
14
+ placeholder=${r}
15
+ .value=${this.name}
16
+ @input=${this.onNameInput}
17
+ @keydown=${this.onNameKeydown}
18
+ />
19
+ ${this.validationMessage?i.html`<span class="folder-pane-create-dialog-error" role="alert">${this.validationMessage}</span>`:``}
20
+ </label>
21
+ </solid-ui-dialog-content>
22
+ <solid-ui-dialog-footer>
23
+ <solid-ui-button variant="secondary" @click=${this.cancel}>
24
+ Cancel
25
+ </solid-ui-button>
26
+ <solid-ui-button ?disabled=${!this.name.trim()} @click=${this.confirm}>
27
+ Create
28
+ </solid-ui-button>
29
+ </solid-ui-dialog-footer>
30
+ </solid-ui-dialog>
31
+ `}},{e:[g,v,b,S,f],c:[L,p]}=j(s,[[h,1,`label`],[_,1,`name`],[y,1,`validationMessage`],[x,1,`nameInput`]],m,0,void 0,r.DialogComponent),s),o=class extends I{constructor(){super(L),A(this,`styles`,n.default),p()}},A(o,C,void 0),o),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return L}});
32
+ //# sourceMappingURL=FolderPaneCreateDialog.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneCreateDialog.cjs.js","names":["DialogComponent","customElement","html","property","query","state","getCreationDialogText","invalidCreationNameMessage","isSafeCreationName","styles","_classDecs","_FolderPaneCreateDial","_FolderPaneCreateDial2","_A","WeakMap","_B","_C","_D","_ref","_labelDecs","attribute","_nameDecs","_validationMessageDecs","_nameInputDecs","_FolderPaneCreateDialog","FolderPaneCreateDialog","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_label","_init_name","_init_validationMessage","_init_nameInput","_defineProperty","close","name","trim","validationMessage","event","target","value","key","preventDefault","confirm","_classPrivateFieldGet","label","v","_classPrivateFieldSet","nameInput","firstUpdated","requestAnimationFrame","focus","setSelectionRange","length","render","paneLabel","title","placeholder","displayLabel","slice","fieldLabel","cancel","onNameInput","onNameKeydown","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","property","state","query","DialogComponent","isSafeCreationName","invalidCreationNameMessage","getCreationDialogText","styles","require_helpers","require_creationSafety","require_FolderPaneCreateDialog_styles","solid_ui","lit","lit_decorators_js","_Class","_FolderPaneCreateDialog","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_labelDecs","_init_label","_nameDecs","_init_name","_validationMessageDecs","_init_validationMessage","_nameInputDecs","_init_nameInput","_FolderPaneCreateDial2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_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","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FolderPaneCreateDial","args","name","event","paneLabel","fieldLabel","title","placeholder"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneCreateDialog.ts"],"sourcesContent":["import { DialogComponent, customElement } from 'solid-ui'\nimport { html } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport { getCreationDialogText } from '../../helpers'\nimport { invalidCreationNameMessage, isSafeCreationName } from '../../creationSafety'\nimport styles from './FolderPaneCreateDialog.styles.css'\n\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/dialog'\nimport 'solid-ui/components/dialog-content'\nimport 'solid-ui/components/dialog-footer'\nimport 'solid-ui/components/dialog-header'\nimport '~icons/lucide/x'\n\n@customElement('folder-pane-create-dialog')\nexport default class FolderPaneCreateDialog extends DialogComponent<string> {\n static styles = styles\n\n @property({ attribute: false })\n accessor label: string | null = null\n\n @state()\n accessor name = ''\n\n @state()\n accessor validationMessage = ''\n\n @query('input')\n private accessor nameInput: HTMLInputElement | null = null\n\n private cancel = () => this.close()\n\n private confirm = () => {\n const name = this.name.trim()\n\n if (!isSafeCreationName(name)) {\n this.validationMessage = invalidCreationNameMessage\n return\n }\n\n this.close(name)\n }\n\n private onNameInput = (event: Event) => {\n this.name = (event.target as HTMLInputElement).value\n this.validationMessage = ''\n }\n\n private onNameKeydown = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n event.preventDefault()\n this.confirm()\n }\n }\n\n protected firstUpdated () {\n requestAnimationFrame(() => {\n this.nameInput?.focus()\n this.nameInput?.setSelectionRange(0, this.nameInput.value.length)\n })\n }\n\n protected render () {\n const paneLabel = this.label ?? 'Container'\n const { title, placeholder } = getCreationDialogText(paneLabel)\n const displayLabel = title.slice(4)\n const fieldLabel = `${displayLabel} name`\n\n return html`\n <solid-ui-dialog>\n <solid-ui-dialog-header slot=\"header\" class=\"folder-pane-create-dialog-header\">\n <h1>${title}</h1>\n <solid-ui-button variant=\"ghost\" @click=${this.cancel} title=\"Close\" aria-label=\"Close\">\n <icon-lucide-x slot=\"icon\"></icon-lucide-x>\n </solid-ui-button>\n </solid-ui-dialog-header>\n <solid-ui-dialog-content>\n <label class=\"folder-pane-create-dialog-label\">\n <span>${fieldLabel}</span>\n <input\n type=\"text\"\n placeholder=${placeholder}\n .value=${this.name}\n @input=${this.onNameInput}\n @keydown=${this.onNameKeydown}\n />\n ${this.validationMessage\n ? html`<span class=\"folder-pane-create-dialog-error\" role=\"alert\">${this.validationMessage}</span>`\n : ''}\n </label>\n </solid-ui-dialog-content>\n <solid-ui-dialog-footer>\n <solid-ui-button variant=\"secondary\" @click=${this.cancel}>\n Cancel\n </solid-ui-button>\n <solid-ui-button ?disabled=${!this.name.trim()} @click=${this.confirm}>\n Create\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </solid-ui-dialog>\n `\n }\n}\n"],"mappings":"A,ukJAYwBU,EAAA,EAAA,EAEvBT,EAAAA,cAAAA,CAAc,2BAA2B,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAIxChB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BhB,EAAAA,MAAAA,CAAM,EAACiB,GAAAA,EAGPjB,EAAAA,MAAAA,CAAM,EAACkB,GAAAA,EAGPnB,EAAAA,MAAAA,CAAM,OAAO,EAAC,SAAAoB,EAbjB,cACoDxB,EAAAA,eAAwB,CAAA0B,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAf,GAAAgB,EAAA,IAAA,EAAAC,EAAA,KAI1C,IAAI,EAAA,EAAAF,EAAA,KAAAb,EAAAgB,EAAA,KAGpB,EAAE,CAAA,EAAAH,EAAA,KAAAZ,EAAAgB,EAAA,KAGW,EAAE,CAAA,EAAAJ,EAAA,KAAAX,EAAAgB,EAAA,KAGuB,IAAI,CAAA,EAAAC,EAAA,KAAA,aAEnC,KAAKC,MAAM,CAAC,EAAAD,EAAA,KAAA,cAEX,CACtB,IAAME,EAAO,KAAKA,KAAKC,KAAK,EAEvB7B,EAAAA,mBAAmB4B,CAAI,EAK5B,KAAKD,MAAMC,CAAI,EAJb,KAAKE,kBAAoB/B,EAAAA,0BAK7B,CAAC,EAAA2B,EAAA,KAAA,cAEsBK,GAAiB,CACtC,KAAKH,KAAQG,EAAMC,OAA4BC,MAC/C,KAAKH,kBAAoB,EAC3B,CAAC,EAAAJ,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AAC,UAAW,KAAKO,QAAO;;;;;KAM7E,CACF,EAAC,CAAAqB,EAAA,CAAAnC,EAAAC,EAAAC,EAAAC,EAAAJ,GAAAqC,EAAA,CAAAvD,EAAAwD,IAAAC,EAAA5C,EAAA,CAAA,CAAAL,EAAA,EAAA,OAAA,EAAA,CAAAE,EAAA,EAAA,MAAA,EAAA,CAAAC,EAAA,EAAA,mBAAA,EAAA,CAAAC,EAAA,EAAA,WAAA,CAAA,EAAAb,EAAA,EAAA,IAAA,GAvFmDV,EAAAA,eAAe,EAAAwB,GAAA6C,EAAA,cAAAC,CAAA,CAAA5C,aAAA,CAAA,MAAAf,CAAA,EAAAuB,EAAA,KAAA,SACjDzB,EAAAA,OAAM,EAAA0D,EAAA,CAAA,CAAA,EAAAjC,EAAAmC,EAAAzD,EAAA,IAAA,EAAA,EAAAyD,G"}
@@ -0,0 +1,15 @@
1
+ import { DialogComponent } from 'solid-ui';
2
+ export default class FolderPaneCreateDialog extends DialogComponent<string> {
3
+ static styles: any;
4
+ accessor label: string | null;
5
+ accessor name: string;
6
+ accessor validationMessage: string;
7
+ private accessor nameInput;
8
+ private cancel;
9
+ private confirm;
10
+ private onNameInput;
11
+ private onNameKeydown;
12
+ protected firstUpdated(): void;
13
+ protected render(): import('lit-html').TemplateResult<1>;
14
+ }
15
+ //# sourceMappingURL=FolderPaneCreateDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderPaneCreateDialog.d.ts","sourceRoot":"","sources":["../../../src/components/folder-pane-storage-header/FolderPaneCreateDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,UAAU,CAAA;AAOzD,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,oCAAoC,CAAA;AAC3C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,iBAAiB,CAAA;AAGxB,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,eAAe,CAAC,MAAM,CAAC;IACzE,MAAM,CAAC,MAAM,MAAS;IAGtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAO;IAGpC,QAAQ,CAAC,IAAI,SAAK;IAGlB,QAAQ,CAAC,iBAAiB,SAAK;IAG/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAE1D,OAAO,CAAC,MAAM,CAAqB;IAEnC,OAAO,CAAC,OAAO,CASd;IAED,OAAO,CAAC,WAAW,CAGlB;IAED,OAAO,CAAC,aAAa,CAKpB;IAED,SAAS,CAAC,YAAY;IAOtB,SAAS,CAAC,MAAM;CAwCjB"}