solid-panes 4.4.2-5 → 4.4.2-6

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 (142) hide show
  1. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  6. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
  12. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
  16. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
  20. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
  24. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/trash-2.esm.js +11 -0
  28. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
  29. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
  30. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  31. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +19 -0
  32. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  33. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
  34. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  35. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  36. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  37. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
  38. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  39. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +22 -0
  40. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  41. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +15 -0
  42. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  43. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +266 -0
  44. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  45. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  46. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  47. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
  48. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  49. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +19 -0
  50. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  51. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +19 -0
  52. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  53. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +321 -0
  54. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  55. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  56. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  57. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
  58. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  59. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
  60. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
  61. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
  62. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
  63. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +468 -0
  64. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
  65. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
  66. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
  67. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
  68. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
  69. package/dist/components/file-explorer-header/helper.cjs.js +2 -0
  70. package/dist/components/file-explorer-header/helper.cjs.js.map +1 -0
  71. package/dist/components/file-explorer-header/helper.d.ts +15 -0
  72. package/dist/components/file-explorer-header/helper.d.ts.map +1 -0
  73. package/dist/components/file-explorer-header/helper.esm.js +64 -0
  74. package/dist/components/file-explorer-header/helper.esm.js.map +1 -0
  75. package/dist/components/file-explorer-header/types.d.ts +2 -0
  76. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  77. package/dist/components/header/Header.cjs.js +1 -1
  78. package/dist/components/header/Header.cjs.js.map +1 -1
  79. package/dist/components/header/Header.esm.js +3 -3
  80. package/dist/components/navbar/Navbar.cjs.js +1 -1
  81. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  82. package/dist/components/navbar/Navbar.esm.js +3 -3
  83. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +16 -0
  84. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +1 -0
  85. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  86. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  87. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +215 -0
  88. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +1 -0
  89. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +18 -0
  90. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  91. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +16 -0
  92. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  93. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +260 -0
  94. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  95. package/dist/dashboard/basicPreferences.cjs.js +1 -1
  96. package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
  97. package/dist/dashboard/dashboardPane.cjs.js +1 -1
  98. package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
  99. package/dist/home/homePane.cjs.js +1 -1
  100. package/dist/home/homePane.cjs.js.map +1 -1
  101. package/dist/internal/internalPane2.cjs.js +1 -1
  102. package/dist/internal/internalPane2.cjs.js.map +1 -1
  103. package/dist/mainPage/header.cjs.js +1 -1
  104. package/dist/mainPage/header.cjs.js.map +1 -1
  105. package/dist/outline/manager2.cjs.js +1 -2
  106. package/dist/outline/manager2.cjs.js.map +1 -1
  107. package/dist/outline/manager2.esm.js +351 -394
  108. package/dist/outline/manager2.esm.js.map +1 -1
  109. package/dist/outline/propertyViews.cjs.js +1 -1
  110. package/dist/outline/propertyViews.cjs.js.map +1 -1
  111. package/dist/outline/sourcePaneIcon.d.ts +2 -0
  112. package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
  113. package/dist/pad/padPane2.cjs.js +1 -1
  114. package/dist/pad/padPane2.cjs.js.map +1 -1
  115. package/dist/sharing/sharingPane.cjs.js +1 -1
  116. package/dist/sharing/sharingPane.cjs.js.map +1 -1
  117. package/dist/social/editProfileDetails.cjs.js +1 -1
  118. package/dist/social/editProfileDetails.cjs.js.map +1 -1
  119. package/dist/social/editProfileDetails.esm.js +1 -1
  120. package/dist/social/socialPane2.cjs.js +1 -1
  121. package/dist/social/socialPane2.cjs.js.map +1 -1
  122. package/dist/social/socialSections.cjs.js +1 -1
  123. package/dist/social/socialSections.cjs.js.map +1 -1
  124. package/dist/social/triage.cjs.js +1 -1
  125. package/dist/social/triage.cjs.js.map +1 -1
  126. package/dist/tabbed/tabbedPane.cjs.js +1 -1
  127. package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
  128. package/dist/trustedApplications/trustedApplications.dom.cjs.js +1 -1
  129. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
  130. package/dist/trustedApplications/trustedApplications.utils.cjs.js +1 -1
  131. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
  132. package/dist/trustedApplications/trustedApplications.view.cjs.js +1 -1
  133. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
  134. package/dist/utils/podUtils.cjs.js +1 -1
  135. package/dist/utils/podUtils.cjs.js.map +1 -1
  136. package/dist/utils/webIdUtils.cjs.js +1 -1
  137. package/dist/utils/webIdUtils.cjs.js.map +1 -1
  138. package/dist/versionInfo.cjs.js +1 -1
  139. package/dist/versionInfo.cjs.js.map +1 -1
  140. package/dist/versionInfo.esm.js +3 -3
  141. package/dist/versionInfo.esm.js.map +1 -1
  142. package/package.json +3 -3
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 19l-7-7l7-7m7 7H5"/></svg>`}};customElements.get(`icon-lucide-arrow-left`)||customElements.define(`icon-lucide-arrow-left`,e),exports.default=e;
2
+ //# sourceMappingURL=arrow-left.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-left.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/arrow-left
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"/></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-arrow-left") || customElements.define("icon-lucide-arrow-left", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=arrow-left.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-left.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></g></svg>`}};customElements.get(`icon-lucide-ellipsis-vertical`)||customElements.define(`icon-lucide-ellipsis-vertical`,e),exports.default=e;
2
+ //# sourceMappingURL=ellipsis-vertical.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsis-vertical.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/ellipsis-vertical
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"5\" r=\"1\"/><circle cx=\"12\" cy=\"19\" r=\"1\"/></g></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-ellipsis-vertical") || customElements.define("icon-lucide-ellipsis-vertical", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=ellipsis-vertical.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ellipsis-vertical.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20"/></g></svg>`}};customElements.get(`icon-lucide-globe`)||customElements.define(`icon-lucide-globe`,e),exports.default=e;
2
+ //# sourceMappingURL=globe.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globe.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/globe
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"/></g></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-globe") || customElements.define("icon-lucide-globe", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=globe.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globe.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="16" r="1"/><rect width="18" height="12" x="3" y="10" rx="2"/><path d="M7 10V7a5 5 0 0 1 10 0v3"/></g></svg>`}};customElements.get(`icon-lucide-lock-keyhole`)||customElements.define(`icon-lucide-lock-keyhole`,e),exports.default=e;
2
+ //# sourceMappingURL=lock-keyhole.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock-keyhole.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/lock-keyhole
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"16\" r=\"1\"/><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 10 0v3\"/></g></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-lock-keyhole") || customElements.define("icon-lucide-lock-keyhole", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=lock-keyhole.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock-keyhole.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4"/></svg>`}};customElements.get(`icon-lucide-pencil`)||customElements.define(`icon-lucide-pencil`,e),exports.default=e;
2
+ //# sourceMappingURL=pencil.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pencil.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/pencil
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4\"/></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-pencil") || customElements.define("icon-lucide-pencil", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=pencil.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pencil.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98"/></g></svg>`}};customElements.get(`icon-lucide-share-2`)||customElements.define(`icon-lucide-share-2`,e),exports.default=e;
2
+ //# sourceMappingURL=share-2.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-2.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/share-2
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98\"/></g></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-share-2") || customElements.define("icon-lucide-share-2", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=share-2.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-2.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>`}};customElements.get(`icon-lucide-trash-2`)||customElements.define(`icon-lucide-trash-2`,e),exports.default=e;
2
+ //# sourceMappingURL=trash-2.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trash-2.cjs.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ //#region ~icons/lucide/trash-2
2
+ var e = class extends HTMLElement {
3
+ constructor() {
4
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/></svg>";
5
+ }
6
+ };
7
+ customElements.get("icon-lucide-trash-2") || customElements.define("icon-lucide-trash-2", e);
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=trash-2.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trash-2.esm.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const e=require("./FileExplorerHeader.styles.cjs.js");require("./FileExplorerHeaderSummary.cjs.js"),require("./FileExplorerHeaderControls.cjs.js");const t=require("./helper.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit"),a=require("@lit/context"),o=require("lit/decorators.js");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;function E(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function O(e,t,n){return e.set(A(e,t),n),n}function k(e,t){return e.get(A(e,t))}function A(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 j(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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:F(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||F(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 I(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:N(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 N(e){var t=P(e,`string`);return typeof t==`symbol`?t:t+``}function P(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==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 F(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 I(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 L(e){return e}h=[(0,o.customElement)(`file-explorer-header`)];var R;new(w=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,T=(g=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),v=(0,o.property)({attribute:!1}),b=(0,o.property)({attribute:!1}),S=(0,o.state)(),`_loadedMetadataForUri`),c=class extends n.WebComponent{constructor(...e){super(...e),j(this,T,void p(this)),E(this,l,_(this,void 0)),E(this,u,y(this,[])),E(this,d,x(this,void 0)),E(this,f,C(this,{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}))}get fileExplorerContext(){return k(l,this)}set fileExplorerContext(e){O(l,this,e)}get menuItems(){return k(u,this)}set menuItems(e){O(u,this,e)}get paneIcon(){return k(d,this)}set paneIcon(e){O(d,this,e)}get responseMetadata(){return k(f,this)}set responseMetadata(e){O(f,this,e)}getDefaultResponseMetadata(){return{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}}updated(){this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri&&this._loadedMetadataForUri!==this.fileExplorerContext.subjectUri&&(this._loadedMetadataForUri=this.fileExplorerContext.subjectUri,this.loadResponseMetadata())}async loadResponseMetadata(){if(!(!this.fileExplorerContext?.store||!this.fileExplorerContext.subjectUri))try{let{metadata:e}=await t.fetchContentAndMetadata(this.fileExplorerContext.store,(0,r.sym)(this.fileExplorerContext.subjectUri));this.responseMetadata={modified:e.modified,isPublic:e.isPublic,canEdit:e.canEdit,aclUri:e.aclUri}}catch(e){this.responseMetadata=this.getDefaultResponseMetadata(),console.warn(`Failed to load response metadata`,e)}}render(){return i.html`
2
+ <header>
3
+ <file-explorer-header-summary
4
+ .paneIcon=${this.paneIcon}
5
+ .onBackClick=${this.fileExplorerContext?.onBack}
6
+ .responseMetadata=${this.responseMetadata}
7
+ ></file-explorer-header-summary>
8
+ <file-explorer-header-controls
9
+ .menuItems=${this.menuItems}
10
+ .canEdit=${this.responseMetadata.canEdit}
11
+ ></file-explorer-header-controls>
12
+ </header>
13
+ `}},{e:[_,y,x,C,p],c:[R,m]}=M(c,[[g,1,`fileExplorerContext`],[v,1,`menuItems`],[b,1,`paneIcon`],[S,1,`responseMetadata`]],h,0,void 0,n.WebComponent),c),s=class extends L{constructor(){super(R),j(this,`styles`,e.default),m()}},j(s,w,void 0),s),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return R}});
14
+ //# sourceMappingURL=FileExplorerHeader.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeader.cjs.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchContentAndMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchContentAndMetadata, type FileExplorerResourceMetadata } from './helper'\n\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const { metadata } = await fetchContentAndMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ import { WebComponent, FileExplorerContext } from 'solid-ui';
2
+ import { PaneIcon } from './types';
3
+ import { FileExplorerResourceMetadata } from './helper';
4
+ export default class FileExplorerHeader extends WebComponent {
5
+ static styles: any;
6
+ private _loadedMetadataForUri;
7
+ accessor fileExplorerContext: FileExplorerContext;
8
+ accessor menuItems: Array<{
9
+ label: string;
10
+ action: (event: Event) => void;
11
+ }>;
12
+ accessor paneIcon: PaneIcon;
13
+ accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'>;
14
+ private getDefaultResponseMetadata;
15
+ protected updated(): void;
16
+ private loadResponseMetadata;
17
+ render(): import('lit-html').TemplateResult<1>;
18
+ }
19
+ //# sourceMappingURL=FileExplorerHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeader.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAuB,MAAM,UAAU,CAAA;AAItF,OAAO,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,iCAAiC,CAAA;AAExC,OAAO,6BAA6B,CAAA;AACpC,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAA2B,KAAK,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAGrF,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,MAAM,CAAC,MAAM,MAAS;IAEtB,OAAO,CAAC,qBAAqB,CAAoB;IAGjD,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAA8C;IAG/F,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE,CAAC,CAAK;IAGjF,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAmC;IAG9D,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,4BAA4B,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC,CAK5G;IAED,OAAO,CAAC,0BAA0B;IASlC,SAAS,CAAC,OAAO;YAOH,oBAAoB;IAiBlC,MAAM;CAeP"}
@@ -0,0 +1,292 @@
1
+ import "../../_virtual/~icons/lucide/share-2.esm.js";
2
+ import "../../_virtual/~icons/lucide/pencil.esm.js";
3
+ import "../../_virtual/~icons/lucide/ellipsis-vertical.esm.js";
4
+ import e from "./FileExplorerHeader.styles.esm.js";
5
+ import "./FileExplorerHeaderSummary.esm.js";
6
+ import "./FileExplorerHeaderControls.esm.js";
7
+ import { fetchContentAndMetadata as t } from "./helper.esm.js";
8
+ import { WebComponent as n, fileExplorerContext as r } from "solid-ui";
9
+ import { sym as i } from "rdflib";
10
+ import { html as a } from "lit";
11
+ import { consume as o } from "@lit/context";
12
+ import { customElement as s, property as c, state as l } from "lit/decorators.js";
13
+ //#region src/components/file-explorer-header/FileExplorerHeader.ts
14
+ var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O;
15
+ function k(e, t, n) {
16
+ A(e, t), t.set(e, n);
17
+ }
18
+ function A(e, t) {
19
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
20
+ }
21
+ function j(e, t, n) {
22
+ return e.set(N(e, t), n), n;
23
+ }
24
+ function M(e, t) {
25
+ return e.get(N(e, t));
26
+ }
27
+ function N(e, t, n) {
28
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
29
+ throw TypeError("Private element is not present on this object");
30
+ }
31
+ function P(e, t, n) {
32
+ return (t = I(t)) in e ? Object.defineProperty(e, t, {
33
+ value: n,
34
+ enumerable: !0,
35
+ configurable: !0,
36
+ writable: !0
37
+ }) : e[t] = n, e;
38
+ }
39
+ function F(e, t, n, r, i, a) {
40
+ function o(e, t, n) {
41
+ return function(r, i) {
42
+ return n && n(r), e[t].call(r, i);
43
+ };
44
+ }
45
+ function s(e, t) {
46
+ for (var n = 0; n < e.length; n++) e[n].call(t);
47
+ return t;
48
+ }
49
+ function c(e, t, n, r) {
50
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
51
+ return e;
52
+ }
53
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
54
+ function h(e) {
55
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
56
+ }
57
+ var g, _ = t[0], v = t[3], y = !l;
58
+ if (!y) {
59
+ n || Array.isArray(_) || (_ = [_]);
60
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
61
+ d ? (f || p ? b = {
62
+ get: R(function() {
63
+ return v(this);
64
+ }, r, "get"),
65
+ set: function(e) {
66
+ t[4](this, e);
67
+ }
68
+ } : b[S] = v, f || R(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
69
+ }
70
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
71
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
72
+ kind: [
73
+ "field",
74
+ "accessor",
75
+ "method",
76
+ "getter",
77
+ "setter",
78
+ "class"
79
+ ][i],
80
+ name: r,
81
+ metadata: a,
82
+ addInitializer: function(e, t) {
83
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
84
+ c(t, "An initializer", "be", !0), s.push(t);
85
+ }.bind(null, D)
86
+ };
87
+ try {
88
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
89
+ else {
90
+ var k, A;
91
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
92
+ return h(e), b.value;
93
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
94
+ return e[r];
95
+ }, (i < 2 || i === 4) && (A = function(e, t) {
96
+ e[r] = t;
97
+ }));
98
+ var j = O.access = { has: d ? m.bind() : function(e) {
99
+ return r in e;
100
+ } };
101
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
102
+ get: b.get,
103
+ set: b.set
104
+ } : b[S], O), p) {
105
+ 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);
106
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
107
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
108
+ }
109
+ } finally {
110
+ D.v = !0;
111
+ }
112
+ }
113
+ return (f || p) && l.push(function(e, t) {
114
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
115
+ return t;
116
+ }), 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;
117
+ }
118
+ function u(e, t) {
119
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
120
+ configurable: !0,
121
+ enumerable: !0,
122
+ value: t
123
+ });
124
+ }
125
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
126
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
127
+ var i, a, o = [], c = function(t) {
128
+ return z(t) === e;
129
+ }, u = /* @__PURE__ */ new Map();
130
+ function d(e) {
131
+ e && o.push(s.bind(null, e));
132
+ }
133
+ for (var f = 0; f < t.length; f++) {
134
+ var p = t[f];
135
+ if (Array.isArray(p)) {
136
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
137
+ if (!y && !g) {
138
+ var x = u.get(b);
139
+ 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);
140
+ u.set(b, !(m > 2) || m);
141
+ }
142
+ l(v ? e : e.prototype, p, _, g ? "#" + h : I(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
143
+ }
144
+ }
145
+ return d(i), d(a), o;
146
+ }(e, t, i, f);
147
+ return n.length || u(e, f), {
148
+ e: p,
149
+ get c() {
150
+ var t = [];
151
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
152
+ }
153
+ };
154
+ }
155
+ function I(e) {
156
+ var t = L(e, "string");
157
+ return typeof t == "symbol" ? t : t + "";
158
+ }
159
+ function L(e, t) {
160
+ if (typeof e != "object" || !e) return e;
161
+ var n = e[Symbol.toPrimitive];
162
+ if (n !== void 0) {
163
+ var r = n.call(e, t || "default");
164
+ if (typeof r != "object") return r;
165
+ throw TypeError("@@toPrimitive must return a primitive value.");
166
+ }
167
+ return (t === "string" ? String : Number)(e);
168
+ }
169
+ function R(e, t, n) {
170
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
171
+ try {
172
+ Object.defineProperty(e, "name", {
173
+ configurable: !0,
174
+ value: n ? n + " " + t : t
175
+ });
176
+ } catch {}
177
+ return e;
178
+ }
179
+ function z(e) {
180
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
181
+ return e;
182
+ }
183
+ function B(e) {
184
+ return e;
185
+ }
186
+ v = [s("file-explorer-header")];
187
+ var V;
188
+ new (D = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), O = (y = o({
189
+ context: r,
190
+ subscribe: !0
191
+ }), x = c({ attribute: !1 }), C = c({ attribute: !1 }), T = l(), "_loadedMetadataForUri"), d = class extends n {
192
+ constructor(...e) {
193
+ super(...e), P(this, O, void g(this)), k(this, f, b(this, void 0)), k(this, p, S(this, [])), k(this, m, w(this, void 0)), k(this, h, E(this, {
194
+ modified: void 0,
195
+ isPublic: !1,
196
+ canEdit: !1,
197
+ aclUri: void 0
198
+ }));
199
+ }
200
+ get fileExplorerContext() {
201
+ return M(f, this);
202
+ }
203
+ set fileExplorerContext(e) {
204
+ j(f, this, e);
205
+ }
206
+ get menuItems() {
207
+ return M(p, this);
208
+ }
209
+ set menuItems(e) {
210
+ j(p, this, e);
211
+ }
212
+ get paneIcon() {
213
+ return M(m, this);
214
+ }
215
+ set paneIcon(e) {
216
+ j(m, this, e);
217
+ }
218
+ get responseMetadata() {
219
+ return M(h, this);
220
+ }
221
+ set responseMetadata(e) {
222
+ j(h, this, e);
223
+ }
224
+ getDefaultResponseMetadata() {
225
+ return {
226
+ modified: void 0,
227
+ isPublic: !1,
228
+ canEdit: !1,
229
+ aclUri: void 0
230
+ };
231
+ }
232
+ updated() {
233
+ this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri && (this._loadedMetadataForUri = this.fileExplorerContext.subjectUri, this.loadResponseMetadata());
234
+ }
235
+ async loadResponseMetadata() {
236
+ if (!(!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri)) try {
237
+ let { metadata: e } = await t(this.fileExplorerContext.store, i(this.fileExplorerContext.subjectUri));
238
+ this.responseMetadata = {
239
+ modified: e.modified,
240
+ isPublic: e.isPublic,
241
+ canEdit: e.canEdit,
242
+ aclUri: e.aclUri
243
+ };
244
+ } catch (e) {
245
+ this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", e);
246
+ }
247
+ }
248
+ render() {
249
+ return a`
250
+ <header>
251
+ <file-explorer-header-summary
252
+ .paneIcon=${this.paneIcon}
253
+ .onBackClick=${this.fileExplorerContext?.onBack}
254
+ .responseMetadata=${this.responseMetadata}
255
+ ></file-explorer-header-summary>
256
+ <file-explorer-header-controls
257
+ .menuItems=${this.menuItems}
258
+ .canEdit=${this.responseMetadata.canEdit}
259
+ ></file-explorer-header-controls>
260
+ </header>
261
+ `;
262
+ }
263
+ }, {e: [b, S, w, E, g], c: [V, _]} = F(d, [
264
+ [
265
+ y,
266
+ 1,
267
+ "fileExplorerContext"
268
+ ],
269
+ [
270
+ x,
271
+ 1,
272
+ "menuItems"
273
+ ],
274
+ [
275
+ C,
276
+ 1,
277
+ "paneIcon"
278
+ ],
279
+ [
280
+ T,
281
+ 1,
282
+ "responseMetadata"
283
+ ]
284
+ ], v, 0, void 0, n), d), u = class extends B {
285
+ constructor() {
286
+ super(V), P(this, "styles", e), _();
287
+ }
288
+ }, P(u, D, void 0), u)();
289
+ //#endregion
290
+ export { V as default };
291
+
292
+ //# sourceMappingURL=FileExplorerHeader.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeader.esm.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchContentAndMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchContentAndMetadata, type FileExplorerResourceMetadata } from './helper'\n\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const { metadata } = await fetchContentAndMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ var e=require("lit").css`:host header{text-align:right;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:15px;display:flex}`;exports.default=e;
2
+ //# sourceMappingURL=FileExplorerHeader.styles.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeader.styles.cjs.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding: 15px;\n }\n}\n"],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { css as e } from "lit";
2
+ //#region src/components/file-explorer-header/FileExplorerHeader.styles.css
3
+ var t = e`:host header{text-align:right;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:15px;display:flex}`;
4
+ //#endregion
5
+ export { t as default };
6
+
7
+ //# sourceMappingURL=FileExplorerHeader.styles.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeader.styles.esm.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding: 15px;\n }\n}\n"],"mappings":""}
@@ -0,0 +1,22 @@
1
+ require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js");const e=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let t=require("solid-ui"),n=require("lit"),r=require("@lit/context"),i=require("lit/decorators.js");require("solid-ui/components/button");var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;function x(e,t,n){S(e,t),t.set(e,n)}function S(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function C(e,t,n){return e.set(T(e,t),n),n}function w(e,t){return e.get(T(e,t))}function T(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 E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(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:A(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||A(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,j;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&&(j=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(M.get=k),j&&(M.set=j),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 j(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:O(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 O(e){var t=k(e,`string`);return typeof t==`symbol`?t:t+``}function k(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==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 A(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 j(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 M(e){return e}f=[(0,i.customElement)(`file-explorer-header-controls`)];var N;new(y=(s=new WeakMap,c=new WeakMap,l=new WeakMap,b=(p=(0,r.consume)({context:t.fileExplorerContext,subscribe:!0}),h=(0,i.property)({attribute:!1}),_=(0,i.property)({type:Boolean}),`fileExplorerContext`),o=class extends t.WebComponent{constructor(...e){super(...e),x(this,s,(u(this),m(this,void 0))),x(this,c,g(this,[])),x(this,l,v(this,!1))}get[b](){return w(s,this)}set fileExplorerContext(e){C(s,this,e)}get menuItems(){return w(c,this)}set menuItems(e){C(c,this,e)}get canEdit(){return w(l,this)}set canEdit(e){C(l,this,e)}handleEditingClick(){this.fileExplorerContext.edit?.onEdit?.()}getEditTooltip(){return this.fileExplorerContext.paneSupportsEditing?this.canEdit?`Edit`:`No Access`:`Not Supported`}renderDirtyIndicator(){return this.fileExplorerContext.edit?.isDirty?n.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:n.nothing}render(){return n.html`
2
+ <div>
3
+ ${this.renderDirtyIndicator()}
4
+ <solid-ui-button variant="ghost" title="Share" @click=${this.fileExplorerContext.handleSharingClick}>
5
+ <icon-lucide-share-2 slot="icon"></icon-lucide-share-2>
6
+ </solid-ui-button>
7
+ <solid-ui-button
8
+ variant="ghost"
9
+ title=${this.getEditTooltip()}
10
+ ?disabled=${!this.fileExplorerContext.paneSupportsEditing||!this.canEdit}
11
+ @click=${this.handleEditingClick}
12
+ >
13
+ <icon-lucide-pencil slot="icon"></icon-lucide-pencil>
14
+ </solid-ui-button>
15
+ <resource-actions-menu
16
+ .store=${this.fileExplorerContext?.store}
17
+ .subjectUri=${this.fileExplorerContext?.subjectUri}
18
+ .menuItems=${this.menuItems}
19
+ ></resource-actions-menu>
20
+ </div>
21
+ `}},{e:[m,g,v,u],c:[N,d]}=D(o,[[p,1,`fileExplorerContext`],[h,1,`menuItems`],[_,1,`canEdit`]],f,0,void 0,t.WebComponent),o),a=class extends M{constructor(){super(N),E(this,`styles`,e.default),d()}},E(a,y,void 0),a),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return N}});
22
+ //# sourceMappingURL=FileExplorerHeaderControls.cjs.js.map