folder-pane 4.0.1-1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +4 -0
  2. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/{trash-2.esm.js → chevron-left.esm.js} +4 -4
  5. package/dist/_virtual/~icons/lucide/chevron-left.esm.js.map +1 -0
  6. package/dist/accessCache.cjs.js +2 -0
  7. package/dist/accessCache.cjs.js.map +1 -0
  8. package/dist/accessCache.d.ts +37 -0
  9. package/dist/accessCache.d.ts.map +1 -0
  10. package/dist/accessCache.esm.js +34 -0
  11. package/dist/accessCache.esm.js.map +1 -0
  12. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +50 -38
  13. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
  14. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +29 -5
  15. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
  16. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +321 -194
  17. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -1
  18. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +1 -1
  19. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -1
  20. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +1 -1
  21. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -1
  22. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js.map +1 -1
  23. package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +1 -1
  24. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +1 -1
  25. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -1
  26. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +1 -1
  27. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -1
  28. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js +2 -0
  29. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js.map +1 -0
  30. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts +16 -0
  31. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts.map +1 -0
  32. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js +293 -0
  33. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js.map +1 -0
  34. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js +2 -0
  35. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js.map +1 -0
  36. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js +6 -0
  37. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js.map +1 -0
  38. package/dist/components/folder-pane-provider/index.cjs.js +1 -0
  39. package/dist/components/folder-pane-provider/index.d.ts +2 -0
  40. package/dist/components/folder-pane-provider/index.d.ts.map +1 -0
  41. package/dist/components/folder-pane-provider/index.esm.js +1 -0
  42. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +23 -23
  43. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -1
  44. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +17 -2
  45. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -1
  46. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +249 -113
  47. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -1
  48. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +1 -1
  49. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -1
  50. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +1 -1
  51. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -1
  52. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js.map +1 -1
  53. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -1
  54. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -1
  55. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -1
  56. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +35 -21
  57. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -1
  58. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +14 -2
  59. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -1
  60. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +201 -88
  61. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -1
  62. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +1 -1
  63. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -1
  64. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +1 -1
  65. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -1
  66. package/dist/components/folder-pane-view/FolderPaneView.cjs.js +90 -29
  67. package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
  68. package/dist/components/folder-pane-view/FolderPaneView.d.ts +41 -5
  69. package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
  70. package/dist/components/folder-pane-view/FolderPaneView.esm.js +573 -266
  71. package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -1
  72. package/dist/components/folder-pane-view/resourceLoad.cjs.js +2 -0
  73. package/dist/components/folder-pane-view/resourceLoad.cjs.js.map +1 -0
  74. package/dist/components/folder-pane-view/resourceLoad.d.ts +8 -0
  75. package/dist/components/folder-pane-view/resourceLoad.d.ts.map +1 -0
  76. package/dist/components/folder-pane-view/resourceLoad.esm.js +7 -0
  77. package/dist/components/folder-pane-view/resourceLoad.esm.js.map +1 -0
  78. package/dist/debug.cjs.js +2 -0
  79. package/dist/debug.cjs.js.map +1 -0
  80. package/dist/debug.d.ts +5 -0
  81. package/dist/debug.d.ts.map +1 -0
  82. package/dist/debug.esm.js +10 -0
  83. package/dist/debug.esm.js.map +1 -0
  84. package/dist/folderPane.cjs.js +2 -2
  85. package/dist/folderPane.cjs.js.map +1 -1
  86. package/dist/folderPane.d.ts +2 -2
  87. package/dist/folderPane.d.ts.map +1 -1
  88. package/dist/folderPane.esm.js +13 -10
  89. package/dist/folderPane.esm.js.map +1 -1
  90. package/dist/helpers.cjs.js +1 -1
  91. package/dist/helpers.cjs.js.map +1 -1
  92. package/dist/helpers.d.ts +13 -2
  93. package/dist/helpers.d.ts.map +1 -1
  94. package/dist/helpers.esm.js +34 -14
  95. package/dist/helpers.esm.js.map +1 -1
  96. package/dist/primitives/context.cjs.js +2 -0
  97. package/dist/primitives/context.cjs.js.map +1 -0
  98. package/dist/primitives/context.d.ts +14 -0
  99. package/dist/primitives/context.d.ts.map +1 -0
  100. package/dist/primitives/context.esm.js +6 -0
  101. package/dist/primitives/context.esm.js.map +1 -0
  102. package/dist/requestQueue.cjs.js +1 -1
  103. package/dist/requestQueue.cjs.js.map +1 -1
  104. package/dist/requestQueue.d.ts +10 -2
  105. package/dist/requestQueue.d.ts.map +1 -1
  106. package/dist/requestQueue.esm.js +32 -22
  107. package/dist/requestQueue.esm.js.map +1 -1
  108. package/dist/resourceActionItems.cjs.js +2 -0
  109. package/dist/resourceActionItems.cjs.js.map +1 -0
  110. package/dist/resourceActionItems.d.ts +19 -0
  111. package/dist/resourceActionItems.d.ts.map +1 -0
  112. package/dist/resourceActionItems.esm.js +42 -0
  113. package/dist/resourceActionItems.esm.js.map +1 -0
  114. package/package.json +12 -8
  115. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
  116. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
  117. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
@@ -1,10 +1,11 @@
1
1
  import { PropertyValues } from 'lit';
2
2
  import { DataBrowserContext, PaneDefinition } from 'pane-registry';
3
- import { WebComponent } from 'solid-ui';
3
+ import { WebComponent, PaneMenuItem } from 'solid-ui';
4
4
  import { NamedNode } from 'rdflib';
5
5
  export default class FolderPaneStorageHeader extends WebComponent {
6
6
  static styles: any;
7
7
  accessor subject: NamedNode | undefined;
8
+ accessor breadcrumbRoot: NamedNode | undefined;
8
9
  accessor selectedResource: NamedNode | undefined;
9
10
  accessor browserContext: DataBrowserContext | undefined;
10
11
  accessor paneList: PaneDefinition[];
@@ -12,9 +13,20 @@ export default class FolderPaneStorageHeader extends WebComponent {
12
13
  accessor searchQuery: string;
13
14
  accessor canCreate: boolean;
14
15
  accessor availablePanes: PaneDefinition[];
16
+ accessor resourceActionMenuItems: PaneMenuItem[];
17
+ accessor canManageAccess: boolean;
15
18
  private availablePanesGeneration;
16
- protected updated(changedProperties: PropertyValues<this>): void;
19
+ private resourceActionsGeneration;
20
+ private authListenersAttached;
21
+ protected willUpdate(changedProperties: PropertyValues<this>): void;
22
+ connectedCallback(): void;
23
+ disconnectedCallback(): void;
24
+ private handleAuthChange;
25
+ private get displayedResource();
26
+ private loadResourceActions;
27
+ private openAccessControls;
17
28
  private get breadcrumbResources();
29
+ private isHomeResource;
18
30
  private getResourceLabel;
19
31
  private selectHome;
20
32
  private selectView;
@@ -1 +1 @@
1
- {"version":3,"file":"FolderPaneStorageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,EAAwB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B,EAAE,YAAY,EAAE,CAAK;IAGrD,QAAQ,CAAC,eAAe,UAAQ;IAEhC,OAAO,CAAC,wBAAwB,CAAI;IACpC,OAAO,CAAC,yBAAyB,CAAI;IACrC,OAAO,CAAC,qBAAqB,CAAQ;IAErC,SAAS,CAAC,UAAU,CAAE,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAqB7D,iBAAiB;IASjB,oBAAoB;IAUpB,OAAO,CAAC,gBAAgB,CAEvB;IAED,OAAO,KAAK,iBAAiB,GAE5B;YAEa,mBAAmB;IA8CjC,OAAO,CAAC,kBAAkB,CASzB;IAED,OAAO,KAAK,mBAAmB,GAe9B;IAED,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,UAAU;IAQlB,MAAM;CAmGP"}
@@ -1,45 +1,51 @@
1
- import { getCreationPanes as e, getPaneLabel as t } from "../../helpers.esm.js";
2
1
  import "../../_virtual/~icons/lucide/folder-open.esm.js";
2
+ import "../../_virtual/~icons/lucide/folder.esm.js";
3
3
  import "../../_virtual/~icons/lucide/layout-grid.esm.js";
4
4
  import "../../_virtual/~icons/lucide/list.esm.js";
5
5
  import "../../_virtual/~icons/lucide/chevron-down.esm.js";
6
6
  import "../../_virtual/~icons/lucide/plus.esm.js";
7
7
  import "../../_virtual/~icons/lucide/upload.esm.js";
8
8
  import "../../_virtual/~icons/lucide/search.esm.js";
9
- import n from "./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";
9
+ import { getCreationPanes as e, getPaneLabel as t, isContainerResource as n } from "../../helpers.esm.js";
10
+ import { resourceAccessCache as r } from "../../accessCache.esm.js";
11
+ import { loadResourcePaneMenuItems as i } from "../../resourceActionItems.esm.js";
12
+ import { error as a, warn as o } from "../../debug.esm.js";
13
+ import s from "./FolderPaneStorageHeader.styles.esm.js";
14
+ import { WebComponent as c, customElement as l, login as u } from "solid-ui";
15
+ import { authSession as d } from "solid-logic";
16
+ import { html as f, nothing as p } from "lit";
17
+ import { property as m, state as h } from "lit/decorators.js";
18
+ import "solid-ui/components/resource-actions-menu";
13
19
  import "solid-ui/components/button";
14
20
  import "solid-ui/components/menu";
15
21
  import "solid-ui/components/menu-item";
16
22
  // src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts
17
- var 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);
23
+ var g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, M, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, oe, se;
24
+ function J(e, t, n) {
25
+ ce(e, t), t.set(e, n);
20
26
  }
21
- function H(e, t) {
27
+ function ce(e, t) {
22
28
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
23
29
  }
24
- function U(e, t, n) {
25
- return e.set(G(e, t), n), n;
30
+ function Y(e, t, n) {
31
+ return e.set(le(e, t), n), n;
26
32
  }
27
- function W(e, t) {
28
- return e.get(G(e, t));
33
+ function X(e, t) {
34
+ return e.get(le(e, t));
29
35
  }
30
- function G(e, t, n) {
36
+ function le(e, t, n) {
31
37
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
32
38
  throw TypeError("Private element is not present on this object");
33
39
  }
34
- function K(e, t, n) {
35
- return (t = J(t)) in e ? Object.defineProperty(e, t, {
40
+ function Z(e, t, n) {
41
+ return (t = Q(t)) in e ? Object.defineProperty(e, t, {
36
42
  value: n,
37
43
  enumerable: !0,
38
44
  configurable: !0,
39
45
  writable: !0
40
46
  }) : e[t] = n, e;
41
47
  }
42
- function q(e, t, n, r, i, a) {
48
+ function ue(e, t, n, r, i, a) {
43
49
  function o(e, t, n) {
44
50
  return function(r, i) {
45
51
  return n && n(r), e[t].call(r, i);
@@ -62,13 +68,13 @@ function q(e, t, n, r, i, a) {
62
68
  n || Array.isArray(_) || (_ = [_]);
63
69
  var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
64
70
  d ? (f || p ? b = {
65
- get: X(function() {
71
+ get: fe(function() {
66
72
  return v(this);
67
73
  }, r, "get"),
68
74
  set: function(e) {
69
75
  t[4](this, e);
70
76
  }
71
- } : b[S] = v, f || X(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
77
+ } : b[S] = v, f || fe(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
72
78
  }
73
79
  for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
74
80
  var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
@@ -128,7 +134,7 @@ function q(e, t, n, r, i, a) {
128
134
  if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
129
135
  var f = Object.create(d ?? null), p = function(e, t, n, r) {
130
136
  var i, a, o = [], c = function(t) {
131
- return Z(t) === e;
137
+ return pe(t) === e;
132
138
  }, u = /* @__PURE__ */ new Map();
133
139
  function d(e) {
134
140
  e && o.push(s.bind(null, e));
@@ -142,7 +148,7 @@ function q(e, t, n, r, i, a) {
142
148
  if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
143
149
  u.set(b, !(m > 2) || m);
144
150
  }
145
- l(v ? e : e.prototype, p, _, g ? "#" + h : J(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
151
+ l(v ? e : e.prototype, p, _, g ? "#" + h : Q(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
146
152
  }
147
153
  }
148
154
  return d(i), d(a), o;
@@ -155,11 +161,11 @@ function q(e, t, n, r, i, a) {
155
161
  }
156
162
  };
157
163
  }
158
- function J(e) {
159
- var t = Y(e, "string");
164
+ function Q(e) {
165
+ var t = de(e, "string");
160
166
  return typeof t == "symbol" ? t : t + "";
161
167
  }
162
- function Y(e, t) {
168
+ function de(e, t) {
163
169
  if (typeof e != "object" || !e) return e;
164
170
  var n;
165
171
  if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
@@ -169,7 +175,7 @@ function Y(e, t) {
169
175
  }
170
176
  return (t === "string" ? String : Number)(e);
171
177
  }
172
- function X(e, t, n) {
178
+ function fe(e, t, n) {
173
179
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
174
180
  try {
175
181
  Object.defineProperty(e, "name", {
@@ -179,76 +185,147 @@ function X(e, t, n) {
179
185
  } catch {}
180
186
  return e;
181
187
  }
182
- function Z(e) {
188
+ function pe(e) {
183
189
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
184
190
  return e;
185
191
  }
186
- function Q(e) {
192
+ function me(e) {
187
193
  return e;
188
194
  }
189
- S = [i("folder-pane-storage-header")];
195
+ j = [l("folder-pane-storage-header")];
190
196
  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 {
197
+ new (oe = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), se = (ee = m({ attribute: !1 }), ne = m({ attribute: !1 }), ie = m({ attribute: !1 }), M = m({ attribute: !1 }), P = m({ attribute: !1 }), I = m(), R = m(), B = m({ type: Boolean }), H = h(), W = h(), K = h(), "subject"), _ = class extends c {
192
198
  constructor(...e) {
193
- super(...e), 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);
199
+ super(...e), J(this, v, (k(this), te(this, void 0))), J(this, y, re(this, void 0)), J(this, b, ae(this, void 0)), J(this, x, N(this, void 0)), J(this, S, F(this, [])), J(this, C, L(this, "grid")), J(this, w, z(this, "")), J(this, T, V(this, !1)), J(this, E, U(this, [])), J(this, D, G(this, [])), J(this, O, q(this, !1)), Z(this, "availablePanesGeneration", 0), Z(this, "resourceActionsGeneration", 0), Z(this, "authListenersAttached", !1), Z(this, "handleAuthChange", () => {
200
+ this.loadResourceActions();
201
+ }), Z(this, "openAccessControls", () => {
202
+ let e = this.displayedResource;
203
+ e && (r.delete(e.uri), this.dispatchEvent(new CustomEvent("resource-open-pane", {
204
+ detail: {
205
+ resource: e,
206
+ paneName: "sharing"
207
+ },
208
+ bubbles: !0,
209
+ composed: !0
210
+ })));
211
+ });
194
212
  }
195
- get [B]() {
196
- return W(f, this);
213
+ get [se]() {
214
+ return X(v, this);
197
215
  }
198
216
  set subject(e) {
199
- U(f, this, e);
217
+ Y(v, this, e);
218
+ }
219
+ get breadcrumbRoot() {
220
+ return X(y, this);
221
+ }
222
+ set breadcrumbRoot(e) {
223
+ Y(y, this, e);
200
224
  }
201
225
  get selectedResource() {
202
- return W(p, this);
226
+ return X(b, this);
203
227
  }
204
228
  set selectedResource(e) {
205
- U(p, this, e);
229
+ Y(b, this, e);
206
230
  }
207
231
  get browserContext() {
208
- return W(m, this);
232
+ return X(x, this);
209
233
  }
210
234
  set browserContext(e) {
211
- U(m, this, e);
235
+ Y(x, this, e);
212
236
  }
213
237
  get paneList() {
214
- return W(h, this);
238
+ return X(S, this);
215
239
  }
216
240
  set paneList(e) {
217
- U(h, this, e);
241
+ Y(S, this, e);
218
242
  }
219
243
  get view() {
220
- return W(g, this);
244
+ return X(C, this);
221
245
  }
222
246
  set view(e) {
223
- U(g, this, e);
247
+ Y(C, this, e);
224
248
  }
225
249
  get searchQuery() {
226
- return W(_, this);
250
+ return X(w, this);
227
251
  }
228
252
  set searchQuery(e) {
229
- U(_, this, e);
253
+ Y(w, this, e);
230
254
  }
231
255
  get canCreate() {
232
- return W(v, this);
256
+ return X(T, this);
233
257
  }
234
258
  set canCreate(e) {
235
- U(v, this, e);
259
+ Y(T, this, e);
236
260
  }
237
261
  get availablePanes() {
238
- return W(y, this);
262
+ return X(E, this);
239
263
  }
240
264
  set availablePanes(e) {
241
- U(y, this, e);
265
+ Y(E, this, e);
266
+ }
267
+ get resourceActionMenuItems() {
268
+ return X(D, this);
269
+ }
270
+ set resourceActionMenuItems(e) {
271
+ Y(D, this, e);
272
+ }
273
+ get canManageAccess() {
274
+ return X(O, this);
275
+ }
276
+ set canManageAccess(e) {
277
+ Y(O, this, e);
242
278
  }
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));
279
+ willUpdate(t) {
280
+ if (t.has("paneList") || t.has("browserContext")) {
281
+ let t = ++this.availablePanesGeneration;
282
+ u.filterAvailablePanes(this.paneList).then((n) => {
283
+ t === this.availablePanesGeneration && (this.availablePanes = e(n));
284
+ }).catch((e) => a("Unable to load folder creation panes", e));
285
+ }
286
+ (t.has("selectedResource") || t.has("subject") || t.has("browserContext")) && this.loadResourceActions();
287
+ }
288
+ connectedCallback() {
289
+ super.connectedCallback(), this.authListenersAttached ||= (d.events.on("login", this.handleAuthChange), d.events.on("logout", this.handleAuthChange), !0);
290
+ }
291
+ disconnectedCallback() {
292
+ this.resourceActionsGeneration++, this.authListenersAttached &&= (d.events.off("login", this.handleAuthChange), d.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback();
293
+ }
294
+ get displayedResource() {
295
+ return this.selectedResource ?? this.subject;
296
+ }
297
+ async loadResourceActions() {
298
+ let e = ++this.resourceActionsGeneration, t = this.displayedResource, r = this.browserContext;
299
+ if (this.resourceActionMenuItems = [], this.canManageAccess = !1, !t || !r) return;
300
+ let a = r.session.logic.resource, s = a, c = a.fetchMetadata(t).then((e) => e.access.canManageAccess).catch((e) => (o("Unable to load storage-header access metadata", e), !1));
301
+ try {
302
+ let a = await i({
303
+ resource: t,
304
+ isContainer: n(t, s),
305
+ context: r,
306
+ resourceLogic: s,
307
+ openPane: (e, t, n) => {
308
+ n.stopPropagation(), this.dispatchEvent(new CustomEvent("resource-open-pane", {
309
+ detail: {
310
+ resource: e,
311
+ paneName: t
312
+ },
313
+ bubbles: !0,
314
+ composed: !0
315
+ }));
316
+ },
317
+ isCurrent: () => e === this.resourceActionsGeneration && t === this.displayedResource
318
+ });
319
+ a && (this.resourceActionMenuItems = a);
320
+ } catch (t) {
321
+ e === this.resourceActionsGeneration && o("Unable to load storage-header pane actions", t);
322
+ } finally {
323
+ let n = await c;
324
+ e === this.resourceActionsGeneration && t === this.displayedResource && (this.canManageAccess = n);
325
+ }
249
326
  }
250
327
  get breadcrumbResources() {
251
- let e = this.subject, t = this.selectedResource;
328
+ let e = this.breadcrumbRoot ?? this.subject, t = this.selectedResource;
252
329
  if (!e || !t) return e ? [e] : [];
253
330
  let n = [t], r = t;
254
331
  for (; !r.sameTerm(e);) {
@@ -257,8 +334,15 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
257
334
  }
258
335
  return n;
259
336
  }
260
- getResourceLabel(e, t) {
261
- if (this.subject?.sameTerm(e) || t === 0) return "Home";
337
+ isHomeResource(e) {
338
+ try {
339
+ return new URL(e.uri).pathname.split("/").filter(Boolean).length === 0;
340
+ } catch {
341
+ return !1;
342
+ }
343
+ }
344
+ getResourceLabel(e) {
345
+ if (this.isHomeResource(e)) return "Home";
262
346
  try {
263
347
  let t = new URL(e.uri).pathname.split("/").filter(Boolean);
264
348
  return decodeURIComponent(t[t.length - 1] || e.uri);
@@ -307,19 +391,19 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
307
391
  }));
308
392
  }
309
393
  render() {
310
- return o`
394
+ return f`
311
395
  <header class="folder-pane-storage-header">
312
396
  <nav class="folder-pane-storage-header-breadcrumbs" aria-label="Storage breadcrumb">
313
397
  <icon-lucide-folder-open aria-hidden="true"></icon-lucide-folder-open>
314
398
  <ol>
315
- ${this.breadcrumbResources.map((e, t, n) => o`
399
+ ${this.breadcrumbResources.map((e, t, n) => f`
316
400
  <li>
317
- ${t === n.length - 1 ? o`<span aria-current="page">${this.getResourceLabel(e, t)}</span>` : o`
401
+ ${t > 0 ? f`<span class="separator" aria-hidden="true">/</span>` : p}
402
+ ${t === n.length - 1 ? f`<span aria-current="page">${this.getResourceLabel(e)}</span>` : f`
318
403
  <button
319
404
  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>
405
+ @click=${() => this.isHomeResource(e) ? this.selectHome() : this.selectResource(e)}
406
+ >${this.getResourceLabel(e)}</button>
323
407
  `}
324
408
  </li>
325
409
  `)}
@@ -335,6 +419,17 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
335
419
  @input=${this.updateSearch}
336
420
  >
337
421
  </label>
422
+ ${this.displayedResource && this.browserContext ? f`
423
+ <solid-ui-resource-actions-menu
424
+ class="folder-pane-storage-header-resource-actions"
425
+ .store=${this.browserContext.session.store}
426
+ .subjectUri=${this.displayedResource.uri}
427
+ .menuItems=${this.resourceActionMenuItems}
428
+ .canManageAccess=${this.canManageAccess}
429
+ .showAccessInMenu=${!0}
430
+ .handleAccessClick=${this.openAccessControls}
431
+ ></solid-ui-resource-actions-menu>
432
+ ` : p}
338
433
  <div class="folder-pane-storage-header-view-controls" role="group" aria-label="Container view">
339
434
  <div class=${`folder-pane-storage-header-view-toggle ${this.view === "grid" ? "is-selected" : ""}`}>
340
435
  <solid-ui-button
@@ -357,23 +452,26 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
357
452
  </solid-ui-button>
358
453
  </div>
359
454
  </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`
455
+ ${this.canCreate ? f`<solid-ui-menu class="folder-pane-storage-header-add-menu" placement="bottom-end">
456
+ <div slot="trigger" class="folder-pane-storage-header-add-trigger">
457
+ <button
458
+ type="button"
459
+ class="folder-pane-storage-header-add-button"
460
+ aria-label="Add"
461
+ aria-haspopup="menu"
462
+ >
463
+ <icon-lucide-plus aria-hidden="true"></icon-lucide-plus>
464
+ <span class="folder-pane-storage-header-add-label">Add</span>
465
+ <icon-lucide-chevron-down class="folder-pane-storage-header-add-chevron" aria-hidden="true"></icon-lucide-chevron-down>
466
+ </button>
467
+ </div>
468
+ ${this.availablePanes.map((e) => f`
371
469
  <solid-ui-menu-item @solid-ui-select=${() => this.createPane(e)}>
372
- ${e.icon ? o`<img
470
+ ${e.icon ? f`<img
373
471
  slot="left-icon"
374
472
  src=${String(e.icon)}
375
473
  alt=""
376
- >` : s}
474
+ >` : p}
377
475
  New ${t(e)}
378
476
  </solid-ui-menu-item>
379
477
  `)}
@@ -381,57 +479,72 @@ new (z = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
381
479
  <icon-lucide-upload slot="left-icon" aria-hidden="true"></icon-lucide-upload>
382
480
  Upload
383
481
  </solid-ui-menu-item>
384
- </solid-ui-menu>` : s}
482
+ </solid-ui-menu>` : p}
385
483
  </div>
386
484
  </header>
387
485
  `;
388
486
  }
389
- }, {e: [w, E, O, A, M, P, I, R, b], c: [$, x]} = q(d, [
487
+ }, {e: [te, re, ae, N, F, L, z, V, U, G, q, k], c: [$, A]} = ue(_, [
390
488
  [
391
- C,
489
+ ee,
392
490
  1,
393
491
  "subject"
394
492
  ],
395
493
  [
396
- T,
494
+ ne,
495
+ 1,
496
+ "breadcrumbRoot"
497
+ ],
498
+ [
499
+ ie,
397
500
  1,
398
501
  "selectedResource"
399
502
  ],
400
503
  [
401
- D,
504
+ M,
402
505
  1,
403
506
  "browserContext"
404
507
  ],
405
508
  [
406
- k,
509
+ P,
407
510
  1,
408
511
  "paneList"
409
512
  ],
410
513
  [
411
- j,
514
+ I,
412
515
  1,
413
516
  "view"
414
517
  ],
415
518
  [
416
- N,
519
+ R,
417
520
  1,
418
521
  "searchQuery"
419
522
  ],
420
523
  [
421
- F,
524
+ B,
422
525
  1,
423
526
  "canCreate"
424
527
  ],
425
528
  [
426
- L,
529
+ H,
427
530
  1,
428
531
  "availablePanes"
532
+ ],
533
+ [
534
+ W,
535
+ 1,
536
+ "resourceActionMenuItems"
537
+ ],
538
+ [
539
+ K,
540
+ 1,
541
+ "canManageAccess"
429
542
  ]
430
- ], S, 0, void 0, r), d), u = class extends Q {
543
+ ], j, 0, void 0, c), _), g = class extends me {
431
544
  constructor() {
432
- super($), K(this, "styles", n), x();
545
+ super($), Z(this, "styles", s), A();
433
546
  }
434
- }, K(u, z, void 0), u)();
547
+ }, Z(g, oe, void 0), g)();
435
548
  export { $ as default };
436
549
 
437
550
  //# sourceMappingURL=FolderPaneStorageHeader.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FolderPaneStorageHeader.esm.js","names":["html","nothing","property","state","customElement","login","WebComponent","getCreationPanes","getPaneLabel","styles","_classDecs","_FolderPaneStorageHea","_FolderPaneStorageHea2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_subjectDecs","attribute","_selectedResourceDecs","_browserContextDecs","_paneListDecs","_viewDecs","_searchQueryDecs","_canCreateDecs","type","Boolean","_availablePanesDecs","_FolderPaneStorageHeader","FolderPaneStorageHeader","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_subject","undefined","_init_selectedResource","_init_browserContext","_init_paneList","_init_view","_init_searchQuery","_init_canCreate","_init_availablePanes","_defineProperty","_classPrivateFieldGet","subject","v","_classPrivateFieldSet","selectedResource","browserContext","paneList","view","searchQuery","canCreate","availablePanes","updated","changedProperties","has","generation","availablePanesGeneration","filterAvailablePanes","then","panes","catch","error","console","breadcrumbResources","root","selected","resources","current","sameTerm","parent","dir","unshift","length","getResourceLabel","resource","index","pathSegments","URL","uri","pathname","split","filter","decodeURIComponent","selectHome","dispatchEvent","CustomEvent","bubbles","composed","selectView","detail","selectResource","requestUpload","updateSearch","event","query","target","value","createPane","pane","render","map","String","icon","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","FolderPaneStorageHeader_styles_default","_Class","_FolderPaneStorageHeader","_A","_B","_C","_D","_E","_F","_G","_H","_initProto","_initClass","_classDecs","_subjectDecs","_init_subject","_selectedResourceDecs","_init_selectedResource","_browserContextDecs","_init_browserContext","_paneListDecs","_init_paneList","_viewDecs","_init_view","_searchQueryDecs","_init_searchQuery","_canCreateDecs","_init_canCreate","_availablePanesDecs","_init_availablePanes","_FolderPaneStorageHea2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FolderPaneStorageHea","property","state","WebComponent","args","changedProperties","generation","getCreationPanes","panes","error","root","selected","resources","current","parent","resource","index","pathSegments","event","pane","nothing","getPaneLabel"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts"],"sourcesContent":["import { html, nothing } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { customElement, login, WebComponent } from 'solid-ui'\nimport type { NamedNode } from 'rdflib'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/menu-item'\nimport '~icons/lucide/folder-open'\nimport '~icons/lucide/layout-grid'\nimport '~icons/lucide/list'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/plus'\nimport '~icons/lucide/upload'\nimport '~icons/lucide/search'\nimport { getCreationPanes, getPaneLabel } from '../../helpers'\nimport styles from './FolderPaneStorageHeader.styles.css'\n\n@customElement('folder-pane-storage-header')\nexport default class FolderPaneStorageHeader extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor browserContext: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor paneList: PaneDefinition[] = []\n\n @property()\n accessor view: 'grid' | 'list' = 'grid'\n\n @property()\n accessor searchQuery = ''\n\n @property({ type: Boolean })\n accessor canCreate = false\n\n @state()\n accessor availablePanes: PaneDefinition[] = []\n\n private availablePanesGeneration = 0\n\n protected updated (changedProperties: PropertyValues<this>) {\n if (!changedProperties.has('paneList') && !changedProperties.has('browserContext')) return\n const generation = ++this.availablePanesGeneration\n void login.filterAvailablePanes(this.paneList)\n .then(panes => {\n if (generation === this.availablePanesGeneration) {\n this.availablePanes = getCreationPanes(panes)\n }\n })\n .catch(error => console.error('Unable to load folder creation panes', error))\n }\n\n private get breadcrumbResources () {\n const root = this.subject\n const selected = this.selectedResource\n if (!root || !selected) return root ? [root] : []\n\n const resources = [selected]\n let current = selected\n while (!current.sameTerm(root)) {\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) return [root, selected]\n resources.unshift(parent)\n current = parent\n if (resources.length > 32) return [root, selected]\n }\n return resources\n }\n\n private getResourceLabel (resource: NamedNode, index: number) {\n if (this.subject?.sameTerm(resource) || index === 0) return 'Home'\n\n try {\n const pathSegments = new URL(resource.uri).pathname.split('/').filter(Boolean)\n return decodeURIComponent(pathSegments[pathSegments.length - 1] || resource.uri)\n } catch {\n return resource.uri\n }\n }\n\n private selectHome () {\n this.dispatchEvent(new CustomEvent('folder-pane-select-home', {\n bubbles: true,\n composed: true\n }))\n }\n\n private selectView (view: 'grid' | 'list') {\n this.dispatchEvent(new CustomEvent('folder-pane-change-view', {\n detail: { view },\n bubbles: true,\n composed: true\n }))\n }\n\n private selectResource (resource: NamedNode) {\n this.dispatchEvent(new CustomEvent('folder-pane-select-resource', {\n detail: { resource },\n bubbles: true,\n composed: true\n }))\n }\n\n private requestUpload () {\n this.dispatchEvent(new CustomEvent('folder-pane-upload', {\n bubbles: true,\n composed: true\n }))\n }\n\n private updateSearch (event: Event) {\n this.dispatchEvent(new CustomEvent('folder-pane-search', {\n detail: { query: (event.target as HTMLInputElement).value },\n bubbles: true,\n composed: true\n }))\n }\n\n private createPane (pane: PaneDefinition) {\n this.dispatchEvent(new CustomEvent('folder-pane-create-pane', {\n detail: { pane },\n bubbles: true,\n composed: true\n }))\n }\n\n render () {\n return html`\n <header class=\"folder-pane-storage-header\">\n <nav class=\"folder-pane-storage-header-breadcrumbs\" aria-label=\"Storage breadcrumb\">\n <icon-lucide-folder-open aria-hidden=\"true\"></icon-lucide-folder-open>\n <ol>\n ${this.breadcrumbResources.map((resource, index, resources) => html`\n <li>\n ${index === resources.length - 1\n ? html`<span aria-current=\"page\">${this.getResourceLabel(resource, index)}</span>`\n : html`\n <button\n type=\"button\"\n @click=${() => index === 0 ? this.selectHome() : this.selectResource(resource)}\n >${this.getResourceLabel(resource, index)}</button>\n <span class=\"separator\" aria-hidden=\"true\">/</span>\n `}\n </li>\n `)}\n </ol>\n </nav>\n <div class=\"folder-pane-storage-header-toolbar\">\n <label class=\"folder-pane-storage-header-search\">\n <icon-lucide-search aria-hidden=\"true\"></icon-lucide-search>\n <input\n aria-label=\"Search\"\n type=\"search\"\n .value=${this.searchQuery}\n @input=${this.updateSearch}\n >\n </label>\n <div class=\"folder-pane-storage-header-view-controls\" role=\"group\" aria-label=\"Container view\">\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'grid' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"Grid view\"\n aria-pressed=${String(this.view === 'grid')}\n @click=${() => this.selectView('grid')}\n >\n <icon-lucide-layout-grid slot=\"icon\" aria-hidden=\"true\"></icon-lucide-layout-grid>\n </solid-ui-button>\n </div>\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'list' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"List view\"\n aria-pressed=${String(this.view === 'list')}\n @click=${() => this.selectView('list')}\n >\n <icon-lucide-list slot=\"icon\" aria-hidden=\"true\"></icon-lucide-list>\n </solid-ui-button>\n </div>\n </div>\n ${this.canCreate ? html`<solid-ui-menu class=\"folder-pane-storage-header-add-menu\" placement=\"bottom-end\">\n <solid-ui-button\n slot=\"trigger\"\n variant=\"primary\"\n aria-haspopup=\"menu\"\n >\n <icon-lucide-plus slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-plus>\n Add\n <icon-lucide-chevron-down slot=\"right-icon\" aria-hidden=\"true\"></icon-lucide-chevron-down>\n </solid-ui-button>\n ${this.availablePanes.map(pane => html`\n <solid-ui-menu-item @solid-ui-select=${() => this.createPane(pane)}>\n ${pane.icon\n ? html`<img\n slot=\"left-icon\"\n src=${String(pane.icon)}\n alt=\"\"\n >`\n : nothing}\n New ${getPaneLabel(pane)}\n </solid-ui-menu-item>\n `)}\n <solid-ui-menu-item @solid-ui-select=${this.requestUpload}>\n <icon-lucide-upload slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-upload>\n Upload\n </solid-ui-menu-item>\n </solid-ui-menu>` : nothing}\n </div>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiByDU,IAAA,CAExDN,EAAc,4BAA4B,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IAAAP,QAAA,GAAAQ,KAAAC,IAIzCrB,EAAS,EAAEsB,WAAW,GAAM,CAAC,GAACC,IAG9BvB,EAAS,EAAEsB,WAAW,GAAM,CAAC,GAACE,IAG9BxB,EAAS,EAAEsB,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EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;AAAA,GAAAvB,GAAA,GAAA,KAAA,GAvMoDJ,CAAY,GAAA4B,IAAAkF,IAAA,cAAAC,EAAA;CAAAjF,cAAA;EAAA,MAAAzB,CAAA,GAAAsC,EAAA,MAAA,UAC/CxC,CAAM,GAAAyG,EAAA;CAAA;AAAA,GAAAjE,EAAAmE,GAAAxG,GAAA,KAAA,CAAA,GAAAwG,GAAA"}
1
+ {"version":3,"file":"FolderPaneStorageHeader.esm.js","names":["html","nothing","property","state","authSession","customElement","login","WebComponent","getCreationPanes","getPaneLabel","isContainerResource","resourceAccessCache","loadResourcePaneMenuItems","debug","styles","_classDecs","_FolderPaneStorageHea","_FolderPaneStorageHea2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_ref","_subjectDecs","attribute","_breadcrumbRootDecs","_selectedResourceDecs","_browserContextDecs","_paneListDecs","_viewDecs","_searchQueryDecs","_canCreateDecs","type","Boolean","_availablePanesDecs","_resourceActionMenuItemsDecs","_canManageAccessDecs","_FolderPaneStorageHeader","FolderPaneStorageHeader","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_subject","undefined","_init_breadcrumbRoot","_init_selectedResource","_init_browserContext","_init_paneList","_init_view","_init_searchQuery","_init_canCreate","_init_availablePanes","_init_resourceActionMenuItems","_init_canManageAccess","_defineProperty","loadResourceActions","resource","displayedResource","delete","uri","dispatchEvent","CustomEvent","detail","paneName","bubbles","composed","_classPrivateFieldGet","subject","v","_classPrivateFieldSet","breadcrumbRoot","selectedResource","browserContext","paneList","view","searchQuery","canCreate","availablePanes","resourceActionMenuItems","canManageAccess","willUpdate","changedProperties","has","generation","availablePanesGeneration","filterAvailablePanes","then","panes","catch","error","connectedCallback","authListenersAttached","events","on","handleAuthChange","disconnectedCallback","resourceActionsGeneration","off","context","resourceLogic","session","logic","folderPaneResourceLogic","accessMetadata","fetchMetadata","metadata","access","items","isContainer","openPane","event","stopPropagation","isCurrent","breadcrumbResources","root","selected","resources","current","sameTerm","parent","dir","unshift","length","isHomeResource","url","URL","pathSegments","pathname","split","filter","getResourceLabel","decodeURIComponent","selectHome","selectView","selectResource","requestUpload","updateSearch","query","target","value","createPane","pane","render","map","index","store","openAccessControls","String","icon","e","c","_initClass","_applyDecs","_Class","_identity","FolderPaneStorageHeader_styles_default","_Class","_FolderPaneStorageHeader","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_initProto","_initClass","_classDecs","_subjectDecs","_init_subject","_breadcrumbRootDecs","_init_breadcrumbRoot","_selectedResourceDecs","_init_selectedResource","_browserContextDecs","_init_browserContext","_paneListDecs","_init_paneList","_viewDecs","_init_view","_searchQueryDecs","_init_searchQuery","_canCreateDecs","_init_canCreate","_availablePanesDecs","_init_availablePanes","_resourceActionMenuItemsDecs","_init_resourceActionMenuItems","_canManageAccessDecs","_init_canManageAccess","_FolderPaneStorageHea2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FolderPaneStorageHea","property","state","WebComponent","args","resource","resourceAccessCache","changedProperties","generation","getCreationPanes","panes","error","error$1","authSession","context","resourceLogic","folderPaneResourceLogic","accessMetadata","metadata","warn","items","loadResourcePaneMenuItems","isContainerResource","event","subject","canManageAccess","root","selected","resources","current","parent","pathSegments","index","nothing","pane","getPaneLabel"],"sources":["../../../src/components/folder-pane-storage-header/FolderPaneStorageHeader.ts"],"sourcesContent":["import { html, nothing } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\nimport type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { authSession } from 'solid-logic'\nimport { customElement, login, WebComponent } from 'solid-ui'\nimport type { PaneMenuItem } from 'solid-ui'\nimport type { NamedNode } from 'rdflib'\nimport type { ResourceMetadata } from 'solid-logic'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/resource-actions-menu'\nimport '~icons/lucide/folder-open'\nimport '~icons/lucide/folder'\nimport '~icons/lucide/layout-grid'\nimport '~icons/lucide/list'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/plus'\nimport '~icons/lucide/upload'\nimport '~icons/lucide/search'\nimport { getCreationPanes, getPaneLabel, isContainerResource, type FolderPaneResourceLogic } from '../../helpers'\nimport { resourceAccessCache } from '../../accessCache'\nimport { loadResourcePaneMenuItems } from '../../resourceActionItems'\nimport * as debug from '../../debug'\nimport styles from './FolderPaneStorageHeader.styles.css'\n\n@customElement('folder-pane-storage-header')\nexport default class FolderPaneStorageHeader extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor subject: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor breadcrumbRoot: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor selectedResource: NamedNode | undefined = undefined\n\n @property({ attribute: false })\n accessor browserContext: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor paneList: PaneDefinition[] = []\n\n @property()\n accessor view: 'grid' | 'list' = 'grid'\n\n @property()\n accessor searchQuery = ''\n\n @property({ type: Boolean })\n accessor canCreate = false\n\n @state()\n accessor availablePanes: PaneDefinition[] = []\n\n @state()\n accessor resourceActionMenuItems: PaneMenuItem[] = []\n\n @state()\n accessor canManageAccess = false\n\n private availablePanesGeneration = 0\n private resourceActionsGeneration = 0\n private authListenersAttached = false\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneList') || changedProperties.has('browserContext')) {\n const generation = ++this.availablePanesGeneration\n void login.filterAvailablePanes(this.paneList)\n .then(panes => {\n if (generation === this.availablePanesGeneration) {\n this.availablePanes = getCreationPanes(panes)\n }\n })\n .catch(error => debug.error('Unable to load folder creation panes', error))\n }\n\n if (\n changedProperties.has('selectedResource') ||\n changedProperties.has('subject') ||\n changedProperties.has('browserContext')\n ) {\n void this.loadResourceActions()\n }\n }\n\n connectedCallback () {\n super.connectedCallback()\n if (!this.authListenersAttached) {\n authSession.events.on('login', this.handleAuthChange)\n authSession.events.on('logout', this.handleAuthChange)\n this.authListenersAttached = true\n }\n }\n\n disconnectedCallback () {\n this.resourceActionsGeneration++\n if (this.authListenersAttached) {\n authSession.events.off('login', this.handleAuthChange)\n authSession.events.off('logout', this.handleAuthChange)\n this.authListenersAttached = false\n }\n super.disconnectedCallback()\n }\n\n private handleAuthChange = () => {\n void this.loadResourceActions()\n }\n\n private get displayedResource () {\n return this.selectedResource ?? this.subject\n }\n\n private async loadResourceActions () {\n const generation = ++this.resourceActionsGeneration\n const resource = this.displayedResource\n const context = this.browserContext\n this.resourceActionMenuItems = []\n this.canManageAccess = false\n if (!resource || !context) return\n\n const resourceLogic = context.session.logic.resource\n const folderPaneResourceLogic = resourceLogic as FolderPaneResourceLogic\n const accessMetadata = resourceLogic.fetchMetadata(resource)\n .then((metadata: ResourceMetadata) => metadata.access.canManageAccess)\n .catch(error => {\n debug.warn('Unable to load storage-header access metadata', error)\n return false\n })\n\n try {\n const items = await loadResourcePaneMenuItems({\n resource,\n isContainer: isContainerResource(resource, folderPaneResourceLogic),\n context,\n resourceLogic: folderPaneResourceLogic,\n openPane: (subject, paneName, event) => {\n event.stopPropagation()\n this.dispatchEvent(new CustomEvent('resource-open-pane', {\n detail: { resource: subject, paneName },\n bubbles: true,\n composed: true\n }))\n },\n isCurrent: () => generation === this.resourceActionsGeneration && resource === this.displayedResource\n })\n if (items) this.resourceActionMenuItems = items\n } catch (error) {\n if (generation === this.resourceActionsGeneration) {\n debug.warn('Unable to load storage-header pane actions', error)\n }\n } finally {\n const canManageAccess = await accessMetadata\n if (generation === this.resourceActionsGeneration && resource === this.displayedResource) {\n this.canManageAccess = canManageAccess\n }\n }\n }\n\n private openAccessControls = () => {\n const resource = this.displayedResource\n if (!resource) return\n resourceAccessCache.delete(resource.uri)\n this.dispatchEvent(new CustomEvent('resource-open-pane', {\n detail: { resource, paneName: 'sharing' },\n bubbles: true,\n composed: true\n }))\n }\n\n private get breadcrumbResources () {\n const root = this.breadcrumbRoot ?? this.subject\n const selected = this.selectedResource\n if (!root || !selected) return root ? [root] : []\n\n const resources = [selected]\n let current = selected\n while (!current.sameTerm(root)) {\n const parent = current.dir()\n if (!parent || parent.sameTerm(current)) return [root, selected]\n resources.unshift(parent)\n current = parent\n if (resources.length > 32) return [root, selected]\n }\n return resources\n }\n\n private isHomeResource (resource: NamedNode) {\n try {\n const url = new URL(resource.uri)\n const pathSegments = url.pathname.split('/').filter(Boolean)\n return pathSegments.length === 0\n } catch {\n return false\n }\n }\n\n private getResourceLabel (resource: NamedNode) {\n if (this.isHomeResource(resource)) 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) => {\n return html`\n <li>\n ${index > 0 ? html`<span class=\"separator\" aria-hidden=\"true\">/</span>` : nothing}\n ${index === resources.length - 1\n ? html`<span aria-current=\"page\">${this.getResourceLabel(resource)}</span>`\n : html`\n <button\n type=\"button\"\n @click=${() => this.isHomeResource(resource) ? this.selectHome() : this.selectResource(resource)}\n >${this.getResourceLabel(resource)}</button>\n `}\n </li>\n `})}\n </ol>\n </nav>\n <div class=\"folder-pane-storage-header-toolbar\">\n <label class=\"folder-pane-storage-header-search\">\n <icon-lucide-search aria-hidden=\"true\"></icon-lucide-search>\n <input\n aria-label=\"Search\"\n type=\"search\"\n .value=${this.searchQuery}\n @input=${this.updateSearch}\n >\n </label>\n ${this.displayedResource && this.browserContext ? html`\n <solid-ui-resource-actions-menu\n class=\"folder-pane-storage-header-resource-actions\"\n .store=${this.browserContext.session.store}\n .subjectUri=${this.displayedResource.uri}\n .menuItems=${this.resourceActionMenuItems}\n .canManageAccess=${this.canManageAccess}\n .showAccessInMenu=${true}\n .handleAccessClick=${this.openAccessControls}\n ></solid-ui-resource-actions-menu>\n ` : nothing}\n <div class=\"folder-pane-storage-header-view-controls\" role=\"group\" aria-label=\"Container view\">\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'grid' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"Grid view\"\n aria-pressed=${String(this.view === 'grid')}\n @click=${() => this.selectView('grid')}\n >\n <icon-lucide-layout-grid slot=\"icon\" aria-hidden=\"true\"></icon-lucide-layout-grid>\n </solid-ui-button>\n </div>\n <div class=${`folder-pane-storage-header-view-toggle ${this.view === 'list' ? 'is-selected' : ''}`}>\n <solid-ui-button\n variant=\"ghost\"\n aria-label=\"List view\"\n aria-pressed=${String(this.view === 'list')}\n @click=${() => this.selectView('list')}\n >\n <icon-lucide-list slot=\"icon\" aria-hidden=\"true\"></icon-lucide-list>\n </solid-ui-button>\n </div>\n </div>\n ${this.canCreate ? html`<solid-ui-menu class=\"folder-pane-storage-header-add-menu\" placement=\"bottom-end\">\n <div slot=\"trigger\" class=\"folder-pane-storage-header-add-trigger\">\n <button\n type=\"button\"\n class=\"folder-pane-storage-header-add-button\"\n aria-label=\"Add\"\n aria-haspopup=\"menu\"\n >\n <icon-lucide-plus aria-hidden=\"true\"></icon-lucide-plus>\n <span class=\"folder-pane-storage-header-add-label\">Add</span>\n <icon-lucide-chevron-down class=\"folder-pane-storage-header-add-chevron\" aria-hidden=\"true\"></icon-lucide-chevron-down>\n </button>\n </div>\n ${this.availablePanes.map(pane => html`\n <solid-ui-menu-item @solid-ui-select=${() => this.createPane(pane)}>\n ${pane.icon\n ? html`<img\n slot=\"left-icon\"\n src=${String(pane.icon)}\n alt=\"\"\n >`\n : nothing}\n New ${getPaneLabel(pane)}\n </solid-ui-menu-item>\n `)}\n <solid-ui-menu-item @solid-ui-select=${this.requestUpload}>\n <icon-lucide-upload slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-upload>\n Upload\n </solid-ui-menu-item>\n </solid-ui-menu>` : nothing}\n </div>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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