solid-panes 5.1.0-1 → 5.1.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/RDFXMLPane2.esm.js +1 -2
  2. package/dist/_virtual/~icons/lucide/cake.esm.js +1 -2
  3. package/dist/_virtual/~icons/lucide/camera.esm.js +1 -2
  4. package/dist/_virtual/~icons/lucide/circle-user-round.esm.js +1 -2
  5. package/dist/_virtual/~icons/lucide/folder-open.esm.js +1 -2
  6. package/dist/_virtual/~icons/lucide/help-circle.esm.js +1 -2
  7. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +1 -2
  8. package/dist/_virtual/~icons/lucide/mail.esm.js +1 -2
  9. package/dist/_virtual/~icons/lucide/map-pin.esm.js +1 -2
  10. package/dist/_virtual/~icons/lucide/pencil.esm.js +1 -2
  11. package/dist/_virtual/~icons/lucide/phone.esm.js +1 -2
  12. package/dist/_virtual/~icons/lucide/settings-2.esm.js +1 -2
  13. package/dist/_virtual/~icons/lucide/user-round-plus.esm.js +1 -2
  14. package/dist/_virtual/~icons/lucide/user.esm.js +1 -2
  15. package/dist/_virtual/~icons/lucide/users.esm.js +1 -2
  16. package/dist/_virtual/~icons/lucide/x.esm.js +1 -2
  17. package/dist/audio/audioPane.esm.js +1 -2
  18. package/dist/classInstancePane.esm.js +1 -2
  19. package/dist/components/editor-card/EditorCard.cjs.js +1 -1
  20. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
  21. package/dist/components/editor-card/EditorCard.esm.js +6 -7
  22. package/dist/components/editor-card/EditorCard.styles.esm.js +1 -2
  23. package/dist/components/header/Header.cjs.js +1 -1
  24. package/dist/components/header/Header.cjs.js.map +1 -1
  25. package/dist/components/header/Header.esm.js +7 -8
  26. package/dist/components/header/Header.styles.esm.js +1 -2
  27. package/dist/components/navbar/Navbar.cjs.js +2 -2
  28. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  29. package/dist/components/navbar/Navbar.esm.js +8 -9
  30. package/dist/components/navbar/Navbar.styles.esm.js +1 -2
  31. package/dist/components/profile-heading/ProfileHeading.cjs.js +17 -17
  32. package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
  33. package/dist/components/profile-heading/ProfileHeading.esm.js +28 -29
  34. package/dist/components/profile-heading/ProfileHeading.styles.esm.js +1 -2
  35. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +1 -1
  36. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +2 -3
  37. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js +1 -2
  38. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js +1 -2
  39. package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js +1 -2
  40. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +1 -2
  41. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js +1 -2
  42. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js +1 -2
  43. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js +0 -1
  44. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js +1 -2
  45. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js +1 -2
  46. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js +1 -2
  47. package/dist/components/profile-heading/editor/textUtils.esm.js +1 -2
  48. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js +1 -2
  49. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js +1 -2
  50. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +3 -3
  51. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
  52. package/dist/components/profile-heading/editor/ui/dialog2.esm.js +4 -19
  53. package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
  54. package/dist/components/profile-heading/editor/ui/spinner.esm.js +1 -2
  55. package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js +1 -2
  56. package/dist/components/profile-heading/friendActions.esm.js +1 -2
  57. package/dist/components/profile-heading/profileHeadingData.esm.js +1 -2
  58. package/dist/dashboard/basicPreferences.esm.js +1 -2
  59. package/dist/dashboard/dashboardPane.esm.js +0 -1
  60. package/dist/dashboard/homepage.esm.js +1 -2
  61. package/dist/dashboard/ontologyData.esm.js +1 -2
  62. package/dist/dashboard/preferencesFormText.esm.js +1 -2
  63. package/dist/dataContentPane2.cjs.js +1 -1
  64. package/dist/dataContentPane2.esm.js +2 -3
  65. package/dist/defaultPane2.cjs.js +1 -1
  66. package/dist/defaultPane2.esm.js +2 -3
  67. package/dist/dokieli/dokieliPane.cjs.js +1 -1
  68. package/dist/dokieli/dokieliPane.cjs.js.map +1 -1
  69. package/dist/dokieli/dokieliPane.esm.js +7 -12
  70. package/dist/dokieli/dokieliPane.esm.js.map +1 -1
  71. package/dist/dokieli/new.esm.js +1 -2
  72. package/dist/form/pane.esm.js +1 -2
  73. package/dist/home/homePane.esm.js +1 -2
  74. package/dist/humanReadablePane.d.ts +3 -0
  75. package/dist/humanReadablePane.d.ts.map +1 -1
  76. package/dist/humanReadablePane2.cjs.js +276 -1
  77. package/dist/humanReadablePane2.cjs.js.map +1 -1
  78. package/dist/humanReadablePane2.esm.js +428 -31
  79. package/dist/humanReadablePane2.esm.js.map +1 -1
  80. package/dist/icons/folder.esm.js +1 -2
  81. package/dist/icons/friends.esm.js +1 -2
  82. package/dist/icons/person.esm.js +1 -2
  83. package/dist/imagePane.d.ts.map +1 -1
  84. package/dist/imagePane2.cjs.js +1 -1
  85. package/dist/imagePane2.cjs.js.map +1 -1
  86. package/dist/imagePane2.esm.js +2 -3
  87. package/dist/imagePane2.esm.js.map +1 -1
  88. package/dist/index.esm.js +1 -2
  89. package/dist/internal/internalPane2.cjs.js +1 -1
  90. package/dist/internal/internalPane2.esm.js +2 -3
  91. package/dist/mainPage/header.esm.js +1 -2
  92. package/dist/mainPage/index.cjs.js +1 -1
  93. package/dist/mainPage/index.cjs.js.map +1 -1
  94. package/dist/mainPage/index.d.ts +1 -1
  95. package/dist/mainPage/index.d.ts.map +1 -1
  96. package/dist/mainPage/index.esm.js +6 -2
  97. package/dist/mainPage/index.esm.js.map +1 -1
  98. package/dist/mainPage/navbar.esm.js +1 -2
  99. package/dist/mainPage/navigation.cjs.js +1 -1
  100. package/dist/mainPage/navigation.cjs.js.map +1 -1
  101. package/dist/mainPage/navigation.d.ts.map +1 -1
  102. package/dist/mainPage/navigation.esm.js +14 -11
  103. package/dist/mainPage/navigation.esm.js.map +1 -1
  104. package/dist/mainPage/profileHeading2.esm.js +1 -2
  105. package/dist/n3Pane2.esm.js +1 -2
  106. package/dist/navigation/browserEvents.esm.js +1 -2
  107. package/dist/navigation/chrome.esm.js +1 -2
  108. package/dist/navigation/controller.cjs.js +1 -1
  109. package/dist/navigation/controller.cjs.js.map +1 -1
  110. package/dist/navigation/controller.esm.js +6 -7
  111. package/dist/navigation/controller.esm.js.map +1 -1
  112. package/dist/navigation/events.esm.js +1 -2
  113. package/dist/navigation/navbarVisibility.esm.js +1 -2
  114. package/dist/navigation/options.esm.js +1 -2
  115. package/dist/navigation/podContext.esm.js +1 -2
  116. package/dist/navigation/state.esm.js +1 -2
  117. package/dist/outline/context.esm.js +1 -2
  118. package/dist/outline/fileExplorerHelpers.cjs.js +2 -0
  119. package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -0
  120. package/dist/outline/fileExplorerHelpers.d.ts +13 -0
  121. package/dist/outline/fileExplorerHelpers.d.ts.map +1 -0
  122. package/dist/outline/fileExplorerHelpers.esm.js +24 -0
  123. package/dist/outline/fileExplorerHelpers.esm.js.map +1 -0
  124. package/dist/outline/manager2.cjs.js +1 -1
  125. package/dist/outline/manager2.cjs.js.map +1 -1
  126. package/dist/outline/manager2.esm.js +422 -433
  127. package/dist/outline/manager2.esm.js.map +1 -1
  128. package/dist/outline/outlineDomHelpers.cjs.js +2 -0
  129. package/dist/outline/outlineDomHelpers.cjs.js.map +1 -0
  130. package/dist/outline/outlineDomHelpers.d.ts +30 -0
  131. package/dist/outline/outlineDomHelpers.d.ts.map +1 -0
  132. package/dist/outline/outlineDomHelpers.esm.js +79 -0
  133. package/dist/outline/outlineDomHelpers.esm.js.map +1 -0
  134. package/dist/outline/outlineIcons.esm.js +1 -2
  135. package/dist/outline/propertyViews.esm.js +1 -2
  136. package/dist/outline/queryByExample.cjs.js.map +1 -1
  137. package/dist/outline/queryByExample.esm.js +1 -2
  138. package/dist/outline/queryByExample.esm.js.map +1 -1
  139. package/dist/outline/userInput.cjs.js +9 -9
  140. package/dist/outline/userInput.cjs.js.map +1 -1
  141. package/dist/outline/userInput.esm.js +50 -40
  142. package/dist/outline/userInput.esm.js.map +1 -1
  143. package/dist/outline/viewAsImage.esm.js +1 -2
  144. package/dist/outline/viewAsMbox.esm.js +1 -2
  145. package/dist/pad/padPane2.cjs.js +1 -1
  146. package/dist/pad/padPane2.esm.js +2 -3
  147. package/dist/playlist/playlistPane.esm.js +1 -2
  148. package/dist/registerPanes.esm.js +1 -2
  149. package/dist/schedule/formsForSchedule.esm.js +1 -2
  150. package/dist/schedule/schedulePane.d.ts.map +1 -1
  151. package/dist/schedule/schedulePane2.cjs.js +1 -1
  152. package/dist/schedule/schedulePane2.cjs.js.map +1 -1
  153. package/dist/schedule/schedulePane2.esm.js +60 -59
  154. package/dist/schedule/schedulePane2.esm.js.map +1 -1
  155. package/dist/sharing/sharingPane.esm.js +1 -2
  156. package/dist/slideshow/slideshowPane.esm.js +1 -2
  157. package/dist/social/editProfileDetails.cjs.js +1 -1
  158. package/dist/social/editProfileDetails.esm.js +1 -2
  159. package/dist/social/icons.esm.js +1 -2
  160. package/dist/social/socialPane2.esm.js +1 -2
  161. package/dist/social/socialSections.esm.js +1 -2
  162. package/dist/social/triage.esm.js +1 -2
  163. package/dist/tabbed/tabbedPane.esm.js +1 -2
  164. package/dist/tableViewPane.esm.js +1 -2
  165. package/dist/transaction/pane.esm.js +1 -2
  166. package/dist/transaction/period.esm.js +1 -2
  167. package/dist/trip/tripPane.esm.js +1 -2
  168. package/dist/trustedApplications/trustedApplications.dom.esm.js +1 -2
  169. package/dist/trustedApplications/trustedApplications.utils.esm.js +1 -2
  170. package/dist/trustedApplications/trustedApplications.view.esm.js +1 -2
  171. package/dist/ui/pane.esm.js +1 -2
  172. package/dist/utils/paneUtils.cjs.js +1 -1
  173. package/dist/utils/paneUtils.cjs.js.map +1 -1
  174. package/dist/utils/paneUtils.d.ts +5 -3
  175. package/dist/utils/paneUtils.d.ts.map +1 -1
  176. package/dist/utils/paneUtils.esm.js +36 -29
  177. package/dist/utils/paneUtils.esm.js.map +1 -1
  178. package/dist/utils/podUtils.cjs.js +1 -1
  179. package/dist/utils/podUtils.cjs.js.map +1 -1
  180. package/dist/utils/podUtils.d.ts +9 -1
  181. package/dist/utils/podUtils.d.ts.map +1 -1
  182. package/dist/utils/podUtils.esm.js +22 -95
  183. package/dist/utils/podUtils.esm.js.map +1 -1
  184. package/dist/utils/viewerUtils.esm.js +1 -2
  185. package/dist/utils/webIdUtils.esm.js +1 -2
  186. package/dist/versionInfo.cjs.js +1 -1
  187. package/dist/versionInfo.cjs.js.map +1 -1
  188. package/dist/versionInfo.esm.js +4 -5
  189. package/dist/versionInfo.esm.js.map +1 -1
  190. package/dist/video/videoPane.esm.js +1 -2
  191. package/package.json +7 -6
  192. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +0 -2
  193. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +0 -1
  194. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +0 -11
  195. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +0 -1
  196. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +0 -2
  197. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +0 -1
  198. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +0 -11
  199. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +0 -1
  200. package/dist/_virtual/~icons/lucide/folder.cjs.js +0 -2
  201. package/dist/_virtual/~icons/lucide/folder.cjs.js.map +0 -1
  202. package/dist/_virtual/~icons/lucide/folder.esm.js +0 -11
  203. package/dist/_virtual/~icons/lucide/folder.esm.js.map +0 -1
  204. package/dist/_virtual/~icons/lucide/globe.cjs.js +0 -2
  205. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +0 -1
  206. package/dist/_virtual/~icons/lucide/globe.esm.js +0 -11
  207. package/dist/_virtual/~icons/lucide/globe.esm.js.map +0 -1
  208. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +0 -2
  209. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +0 -1
  210. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +0 -11
  211. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +0 -1
  212. package/dist/_virtual/~icons/lucide/share-2.cjs.js +0 -2
  213. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +0 -1
  214. package/dist/_virtual/~icons/lucide/share-2.esm.js +0 -11
  215. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +0 -1
  216. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +0 -2
  217. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +0 -1
  218. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +0 -11
  219. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +0 -1
  220. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +0 -14
  221. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +0 -1
  222. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +0 -18
  223. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +0 -1
  224. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +0 -292
  225. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +0 -1
  226. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +0 -2
  227. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +0 -1
  228. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +0 -7
  229. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +0 -1
  230. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +0 -32
  231. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +0 -1
  232. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +0 -21
  233. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +0 -1
  234. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +0 -294
  235. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +0 -1
  236. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +0 -2
  237. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +0 -1
  238. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +0 -7
  239. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +0 -1
  240. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +0 -34
  241. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +0 -1
  242. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +0 -20
  243. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +0 -1
  244. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +0 -346
  245. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +0 -1
  246. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +0 -2
  247. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +0 -1
  248. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +0 -7
  249. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +0 -1
  250. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +0 -13
  251. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +0 -1
  252. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +0 -36
  253. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +0 -1
  254. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +0 -470
  255. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +0 -1
  256. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +0 -2
  257. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +0 -1
  258. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +0 -7
  259. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +0 -1
  260. package/dist/components/file-explorer-header/index.cjs.js +0 -1
  261. package/dist/components/file-explorer-header/index.d.ts +0 -3
  262. package/dist/components/file-explorer-header/index.d.ts.map +0 -1
  263. package/dist/components/file-explorer-header/index.esm.js +0 -2
  264. package/dist/components/file-explorer-header/types.d.ts +0 -10
  265. package/dist/components/file-explorer-header/types.d.ts.map +0 -1
  266. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +0 -8
  267. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +0 -1
  268. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +0 -32
  269. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +0 -1
  270. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +0 -19
  271. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +0 -1
  272. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +0 -322
  273. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +0 -1
  274. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +0 -2
  275. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +0 -1
  276. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +0 -7
  277. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +0 -1
@@ -1,346 +0,0 @@
1
- import { getContainerItemCount as e, isContainerSubject as t } from "../../utils/podUtils.esm.js";
2
- import "../../_virtual/~icons/lucide/globe.esm.js";
3
- import "../../_virtual/~icons/lucide/lock-keyhole.esm.js";
4
- import "../../_virtual/~icons/lucide/arrow-left.esm.js";
5
- import "../../_virtual/~icons/lucide/folder.esm.js";
6
- import n from "./FileExplorerHeaderSummary.styles.esm.js";
7
- import { WebComponent as r, fileExplorerContext as i, utils as a, widgets as o } from "solid-ui";
8
- import { sym as s } from "rdflib";
9
- import { customElement as c, property as l, query as u, state as d } from "lit/decorators.js";
10
- import { consume as f } from "@lit/context";
11
- import { html as p } from "lit";
12
- import "solid-ui/components/button";
13
- //#region src/components/file-explorer-header/FileExplorerHeaderSummary.ts
14
- var m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R;
15
- function z(e, t, n) {
16
- B(e, t), t.set(e, n);
17
- }
18
- function B(e, t) {
19
- if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
20
- }
21
- function V(e, t, n) {
22
- return e.set(U(e, t), n), n;
23
- }
24
- function H(e, t) {
25
- return e.get(U(e, t));
26
- }
27
- function U(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 W(e, t, n) {
32
- return (t = K(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 G(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: J(function() {
63
- return v(this);
64
- }, r, "get"),
65
- set: function(e) {
66
- t[4](this, e);
67
- }
68
- } : b[S] = v, f || J(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 Y(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 : K(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 K(e) {
156
- var t = q(e, "string");
157
- return typeof t == "symbol" ? t : t + "";
158
- }
159
- function q(e, t) {
160
- if (typeof e != "object" || !e) return e;
161
- var n;
162
- if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== 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 J(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 Y(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 X(e) {
184
- return e;
185
- }
186
- w = [c("file-explorer-header-summary")];
187
- var Z;
188
- new (L = (g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), R = (T = f({
189
- context: i,
190
- subscribe: !0
191
- }), D = l({ attribute: !1 }), k = l({ attribute: !1 }), j = l({ attribute: !1 }), N = d(), F = u("h1"), "_draggableSubjectUri"), h = class extends r {
192
- constructor(...e) {
193
- super(...e), W(this, R, void S(this)), W(this, "_resolvedPaneIconFor", void 0), z(this, g, E(this, void 0)), z(this, _, O(this)), z(this, v, A(this)), z(this, y, M(this, {
194
- modified: void 0,
195
- isPublic: !1
196
- })), z(this, b, P(this, void 0)), z(this, x, I(this, null));
197
- }
198
- get fileExplorerContext() {
199
- return H(g, this);
200
- }
201
- set fileExplorerContext(e) {
202
- V(g, this, e);
203
- }
204
- get paneIcon() {
205
- return H(_, this);
206
- }
207
- set paneIcon(e) {
208
- V(_, this, e);
209
- }
210
- get onBackClick() {
211
- return H(v, this);
212
- }
213
- set onBackClick(e) {
214
- V(v, this, e);
215
- }
216
- get responseMetadata() {
217
- return H(y, this);
218
- }
219
- set responseMetadata(e) {
220
- V(y, this, e);
221
- }
222
- get resolvedPaneIcon() {
223
- return H(b, this);
224
- }
225
- set resolvedPaneIcon(e) {
226
- V(b, this, e);
227
- }
228
- get titleHeading() {
229
- return H(x, this);
230
- }
231
- set titleHeading(e) {
232
- V(x, this, e);
233
- }
234
- formatModifiedDate(e) {
235
- if (!e) return "";
236
- let t = new Date(e);
237
- if (Number.isNaN(t.getTime())) return e;
238
- let n = new Intl.DateTimeFormat("en-GB", {
239
- day: "2-digit",
240
- month: "short",
241
- year: "numeric",
242
- hour: "2-digit",
243
- minute: "2-digit",
244
- hour12: !0
245
- }).formatToParts(t), r = (e) => n.find((t) => t.type === e)?.value ?? "";
246
- return `${r("day")} ${r("month")}, ${r("year")} at ${r("hour")}:${r("minute")} ${r("dayPeriod").toUpperCase()}`;
247
- }
248
- updated() {
249
- this.paneIcon !== void 0 && this._resolvedPaneIconFor !== this.paneIcon && (this._resolvedPaneIconFor = this.paneIcon, this.resolvePaneIcon()), this.titleHeading && this.fileExplorerContext?.subjectUri && this._draggableSubjectUri !== this.fileExplorerContext.subjectUri && (o.makeDraggable(this.titleHeading, s(this.fileExplorerContext.subjectUri)), this._draggableSubjectUri = this.fileExplorerContext.subjectUri);
250
- }
251
- async resolvePaneIcon() {
252
- try {
253
- if (this.paneIcon == null) {
254
- this.resolvedPaneIcon = void 0;
255
- return;
256
- }
257
- let e = await this.paneIcon;
258
- this.resolvedPaneIcon = e ?? void 0;
259
- } catch (e) {
260
- this.resolvedPaneIcon = void 0, console.warn("file-explorer-header-summary: failed to resolve pane icon", e);
261
- }
262
- }
263
- renderContainerResourceHeader(t, n) {
264
- let r = e(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
265
- return p`
266
- <div class="container-info">
267
- <h1>
268
- <span>${t}</span>
269
- </h1>
270
- <p>
271
- ${r} items
272
- ${n ? p`<span class="public"><icon-lucide-globe></icon-lucide-globe></span>` : p`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole></span>`}
273
- </p>
274
- </div>
275
- `;
276
- }
277
- renderResourceHeader(e, t) {
278
- let n = this.formatModifiedDate(this.responseMetadata.modified);
279
- return p`
280
- <div class="resource-info">
281
- <h1>
282
- <span>${e}</span>
283
- </h1>
284
- <p><span class="resource-date">${n}</span> ${t ? p`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : p`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
285
- </div>
286
- `;
287
- }
288
- render() {
289
- let e = this.fileExplorerContext?.subjectUri ? s(this.fileExplorerContext.subjectUri) : void 0, n = e ? a.label(e) : "", r = this.responseMetadata.isPublic, i = t(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
290
- return p`
291
- <div class="file-explorer-header-summary">
292
- <solid-ui-button
293
- variant="ghost"
294
- @click=${this.onBackClick}
295
- title="Back"
296
- >
297
- <icon-lucide-arrow-left></icon-lucide-arrow-left>
298
- </solid-ui-button>
299
- <span class="pane-icon">
300
- ${this.resolvedPaneIcon ? p`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
301
- </span>
302
- ${i ? this.renderContainerResourceHeader(n, r) : this.renderResourceHeader(n, r)}
303
- </div>
304
- </div>
305
- `;
306
- }
307
- }, {e: [E, O, A, M, P, I, S], c: [Z, C]} = G(h, [
308
- [
309
- T,
310
- 1,
311
- "fileExplorerContext"
312
- ],
313
- [
314
- D,
315
- 1,
316
- "paneIcon"
317
- ],
318
- [
319
- k,
320
- 1,
321
- "onBackClick"
322
- ],
323
- [
324
- j,
325
- 1,
326
- "responseMetadata"
327
- ],
328
- [
329
- N,
330
- 1,
331
- "resolvedPaneIcon"
332
- ],
333
- [
334
- F,
335
- 1,
336
- "titleHeading"
337
- ]
338
- ], w, 0, void 0, r), h), m = class extends X {
339
- constructor() {
340
- super(Z), W(this, "styles", n), C();
341
- }
342
- }, W(m, L, void 0), m)();
343
- //#endregion
344
- export { Z as default };
345
-
346
- //# sourceMappingURL=FileExplorerHeaderSummary.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.esm.js","names":["sym","widgets","utils","WebComponent","fileExplorerContext","customElement","property","query","state","html","consume","styles","getContainerItemCount","isContainerSubject","_classDecs","_FileExplorerHeaderSu","_FileExplorerHeaderSu2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_fileExplorerContextDecs","context","subscribe","_paneIconDecs","attribute","_onBackClickDecs","_responseMetadataDecs","_resolvedPaneIconDecs","_titleHeadingDecs","_FileExplorerHeaderSummary","FileExplorerHeaderSummary","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","isPublic","_init_resolvedPaneIcon","_init_titleHeading","_classPrivateFieldGet","v","_classPrivateFieldSet","paneIcon","onBackClick","responseMetadata","resolvedPaneIcon","titleHeading","formatModifiedDate","date","Date","Number","isNaN","getTime","parts","Intl","DateTimeFormat","day","month","year","hour","minute","hour12","formatToParts","getPart","type","find","part","value","dayPeriod","toUpperCase","updated","_resolvedPaneIconFor","resolvePaneIcon","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","styles","FileExplorerHeaderSummary_styles_default","customElement$1","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_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","_FileExplorerHeaderSu","consume","fileExplorerContext","property","state","query","WebComponent","args","modified","date","parts","getPart","part","type","widgets","sym","icon","error","itemCount","getContainerItemCount","label","isPublic","subject","utils","isContainerResource","isContainerSubject"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { widgets, utils, WebComponent, fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport 'solid-ui/components/button'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { html } from 'lit'\nimport { consume } from '@lit/context'\nimport { PaneIcon } from './types'\nimport '~icons/lucide/globe'\nimport '~icons/lucide/lock-keyhole'\nimport '~icons/lucide/arrow-left'\nimport '~icons/lucide/folder'\nimport styles from './FileExplorerHeaderSummary.styles.css'\nimport { getContainerItemCount, isContainerSubject } from '../../utils/podUtils'\nimport type { FileExplorerResourceMetadata } from './types'\n\n@customElement('file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _resolvedPaneIconFor: PaneIcon | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon | undefined\n\n @property({ attribute: false })\n accessor onBackClick: (() => void) | undefined\n\n @property({ attribute: false })\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic'> = {\n modified: undefined,\n isPublic: false\n }\n\n @state()\n accessor resolvedPaneIcon: string | undefined = undefined\n\n @query('h1')\n private accessor titleHeading: HTMLHeadingElement | null = null\n\n private formatModifiedDate (modified: string | undefined) {\n if (!modified) return ''\n\n const date = new Date(modified)\n if (Number.isNaN(date.getTime())) return modified\n\n const parts = new Intl.DateTimeFormat('en-GB', {\n day: '2-digit',\n month: 'short',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n }).formatToParts(date)\n\n const getPart = (type: Intl.DateTimeFormatPartTypes) => parts.find(part => part.type === type)?.value ?? ''\n const day = getPart('day')\n const month = getPart('month')\n const year = getPart('year')\n const hour = getPart('hour')\n const minute = getPart('minute')\n const dayPeriod = getPart('dayPeriod').toUpperCase()\n\n return `${day} ${month}, ${year} at ${hour}:${minute} ${dayPeriod}`\n }\n\n protected updated () {\n if (this.paneIcon !== undefined && this._resolvedPaneIconFor !== this.paneIcon) {\n this._resolvedPaneIconFor = this.paneIcon\n this.resolvePaneIcon()\n }\n\n if (!this.titleHeading || !this.fileExplorerContext?.subjectUri || this._draggableSubjectUri === this.fileExplorerContext.subjectUri) return\n\n widgets.makeDraggable(this.titleHeading, sym(this.fileExplorerContext.subjectUri)) // doing it this way for now, just to keep the same functionality\n this._draggableSubjectUri = this.fileExplorerContext.subjectUri\n }\n\n // Needed because humanReadable pane can return a promise for an icon.\n private async resolvePaneIcon () {\n try {\n if (this.paneIcon == null) {\n this.resolvedPaneIcon = undefined\n return\n }\n\n const icon = await this.paneIcon\n this.resolvedPaneIcon = icon ?? undefined\n } catch (error) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\n }\n\n private renderContainerResourceHeader (label: string, isPublic: boolean) {\n const itemCount = getContainerItemCount(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0\n return html`\n <div class=\"container-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p>\n ${itemCount} items\n ${isPublic\n ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole></span>`}\n </p>\n </div>\n `\n }\n\n private renderResourceHeader (label: string, isPublic: boolean) {\n const modified = this.formatModifiedDate(this.responseMetadata.modified)\n\n return html`\n <div class=\"resource-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p><span class=\"resource-date\">${modified}</span> ${isPublic ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe> Public</span>` : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>\n </div>\n `\n }\n\n render () {\n const subject = this.fileExplorerContext?.subjectUri ? sym(this.fileExplorerContext.subjectUri) : undefined\n const label = subject ? utils.label(subject) : ''\n const isPublic = this.responseMetadata.isPublic\n const isContainerResource = isContainerSubject(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri)\n\n return html`\n <div class=\"file-explorer-header-summary\">\n <solid-ui-button\n variant=\"ghost\"\n @click=${this.onBackClick}\n title=\"Back\"\n >\n <icon-lucide-arrow-left></icon-lucide-arrow-left>\n </solid-ui-button>\n <span class=\"pane-icon\">\n ${this.resolvedPaneIcon ? html`<img src=${this.resolvedPaneIcon} alt=\"\" />` : ''}\n </span>\n ${isContainerResource ? this.renderContainerResourceHeader(label, isPublic) : this.renderResourceHeader(label, isPublic)}\n </div>\n </div>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYgFc,IAAA,CAG/ET,EAAc,8BAA8B,CAAC;AAAA,IAAAU;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,I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BAII,KAAK6C,YAAW;;;;;;YAMvB,KAAKE,mBAAmB/C,CAAI,YAAY,KAAK+C,iBAAgB,cAAe,GAAE;;UAEhF0C,IAAsB,KAAKP,8BAA8BC,GAAO7C,CAAQ,IAAI,KAAKgD,qBAAqBH,GAAO7C,CAAQ,EAAC;;;;CAI9H;AACF,GAAC,CAAAoD,GAAA,CAAA1D,GAAAE,GAAAC,GAAAC,GAAAG,GAAAC,GAAAV,IAAA6D,GAAA,CAAArF,GAAAsF,MAAAC,EAAApE,GAAA;CAAA;EAAAT;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAnB,GAAA,GAAA,KAAA,GAtIsDX,CAAY,GAAA+B,IAAAqE,IAAA,cAAAC,EAAA;CAAApE,cAAA;EAAA,MAAArB,CAAA,GAAAuB,EAAA,MAAA,UACjD3B,CAAM,GAAA0F,EAAA;CAAA;AAAA,GAAA/D,EAAAiE,GAAAvF,GAAA,KAAA,CAAA,GAAAuF,GAAA"}
@@ -1,2 +0,0 @@
1
- var e=require("lit").css`:host .file-explorer-header-summary{text-align:left;flex-wrap:wrap;flex:auto;justify-content:flex-start;align-items:center;gap:6px;min-width:0;display:flex}:host h1{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-xl,1.25rem);align-items:center;gap:8px;margin:0;font-weight:500;display:flex}:host .resource-info{flex-direction:column;min-width:0;display:flex}:host .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}:host .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}:host .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}:host p{color:var(--solid-ui-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);align-items:center;gap:5px;font-weight:500;display:flex}:host .public{color:var(--blue-400,#51a2ff);background:var(--blue-50,#eff6ff);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}:host icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}:host .private{color:var(--yellow-600,#d08700);background:var(--yellow-100,#fef9c2);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}:host icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}:host icon-lucide-globe,:host icon-lucide-lock-keyhole{width:.875rem;height:.875rem}:host .resource-date{font-size:inherit}:host icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){:host .file-explorer-header-summary{gap:7px}:host h1{font-size:14px}:host .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}:host p{font-size:14px}:host .resource-date{font-size:10px}:host .public,:host .private{font-size:9px}:host icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}`;exports.default=e;
2
- //# sourceMappingURL=FileExplorerHeaderSummary.styles.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.styles.cjs.js","names":["FileExplorerHeaderSummary_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css"],"sourcesContent":[" :host {\n .file-explorer-header-summary {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n flex: 1 1 auto;\n min-width: 0;\n text-align: left;\n }\n\n h1 {\n color: var(--solid-ui-color-gray-700, #364153);\n font-size: var(--solid-ui-font-size-xl, 1.25rem); /* while in expand; will go to 2xl when new design is complete */\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n }\n\n .resource-info {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .container-info {\n display: flex;\n flex-direction: row;\n gap: 10px;\n min-width: 0;\n }\n\n .pane-icon {\n display: flex;\n width: 40px;\n height: 40px;\n padding: 7.5px 7px 6.5px 7px;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1/1;\n /* border-radius: 100px; */\n /* background: var(--slate-600, #45556C); */\n }\n\n .pane-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n display: block;\n }\n\n p {\n display: flex;\n align-items: center;\n gap: 5px;\n color: var(--solid-ui-gray-500, #6A7282);\n font-size: var(--solid-ui-font-size-xs, .75rem);\n font-weight: 500;\n }\n\n .public {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--blue-400, #51A2FF);\n border-radius: 5px;\n background: var(--blue-50, #EFF6FF);\n }\n\n icon-lucide-globe {\n stroke-width: 1.021px;\n stroke: var(--blue-400, #51A2FF);\n }\n\n .private {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--yellow-600, #D08700);\n border-radius: 5px;\n background: var(--yellow-100, #FEF9C2);\n }\n\n icon-lucide-lock-keyhole {\n stroke-width: 1.021px;\n stroke: var(--yellow-600, #D08700);\n }\n\n icon-lucide-globe,\n icon-lucide-lock-keyhole {\n width: 0.875rem;\n height: 0.875rem;\n }\n\n .resource-date {\n font-size: inherit;\n }\n\n icon-lucide-arrow-left {\n width: 1.125rem;\n height: 1.125rem;\n }\n\n @media (max-width: 600px) {\n .file-explorer-header-summary {\n gap: 7px;\n }\n\n h1 {\n font-size: 14px;\n }\n\n .pane-icon {\n width: 18.2px;\n height: 18.2px;\n flex-shrink: 0;\n aspect-ratio: 1 / 1;\n padding: 0;\n }\n\n p {\n font-size: 14px;\n }\n\n .resource-date {\n font-size: 10px;\n }\n\n .public,\n .private {\n font-size: 9px;\n }\n\n icon-lucide-arrow-left {\n width: 15px;\n height: 18px;\n flex-shrink: 0;\n aspect-ratio: 5 / 6;\n }\n }\n}\n"],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { css as e } from "lit";
2
- //#region src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css
3
- var t = e`:host .file-explorer-header-summary{text-align:left;flex-wrap:wrap;flex:auto;justify-content:flex-start;align-items:center;gap:6px;min-width:0;display:flex}:host h1{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-xl,1.25rem);align-items:center;gap:8px;margin:0;font-weight:500;display:flex}:host .resource-info{flex-direction:column;min-width:0;display:flex}:host .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}:host .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}:host .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}:host p{color:var(--solid-ui-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);align-items:center;gap:5px;font-weight:500;display:flex}:host .public{color:var(--blue-400,#51a2ff);background:var(--blue-50,#eff6ff);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}:host icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}:host .private{color:var(--yellow-600,#d08700);background:var(--yellow-100,#fef9c2);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}:host icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}:host icon-lucide-globe,:host icon-lucide-lock-keyhole{width:.875rem;height:.875rem}:host .resource-date{font-size:inherit}:host icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){:host .file-explorer-header-summary{gap:7px}:host h1{font-size:14px}:host .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}:host p{font-size:14px}:host .resource-date{font-size:10px}:host .public,:host .private{font-size:9px}:host icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}`;
4
- //#endregion
5
- export { t as default };
6
-
7
- //# sourceMappingURL=FileExplorerHeaderSummary.styles.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.styles.esm.js","names":["FileExplorerHeaderSummary_styles_default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css"],"sourcesContent":[" :host {\n .file-explorer-header-summary {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n flex: 1 1 auto;\n min-width: 0;\n text-align: left;\n }\n\n h1 {\n color: var(--solid-ui-color-gray-700, #364153);\n font-size: var(--solid-ui-font-size-xl, 1.25rem); /* while in expand; will go to 2xl when new design is complete */\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 0;\n }\n\n .resource-info {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .container-info {\n display: flex;\n flex-direction: row;\n gap: 10px;\n min-width: 0;\n }\n\n .pane-icon {\n display: flex;\n width: 40px;\n height: 40px;\n padding: 7.5px 7px 6.5px 7px;\n justify-content: center;\n align-items: center;\n aspect-ratio: 1/1;\n /* border-radius: 100px; */\n /* background: var(--slate-600, #45556C); */\n }\n\n .pane-icon img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n display: block;\n }\n\n p {\n display: flex;\n align-items: center;\n gap: 5px;\n color: var(--solid-ui-gray-500, #6A7282);\n font-size: var(--solid-ui-font-size-xs, .75rem);\n font-weight: 500;\n }\n\n .public {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--blue-400, #51A2FF);\n border-radius: 5px;\n background: var(--blue-50, #EFF6FF);\n }\n\n icon-lucide-globe {\n stroke-width: 1.021px;\n stroke: var(--blue-400, #51A2FF);\n }\n\n .private {\n display: flex;\n padding: 2px 5px;\n justify-content: center;\n align-items: center;\n gap: 3px;\n color: var(--yellow-600, #D08700);\n border-radius: 5px;\n background: var(--yellow-100, #FEF9C2);\n }\n\n icon-lucide-lock-keyhole {\n stroke-width: 1.021px;\n stroke: var(--yellow-600, #D08700);\n }\n\n icon-lucide-globe,\n icon-lucide-lock-keyhole {\n width: 0.875rem;\n height: 0.875rem;\n }\n\n .resource-date {\n font-size: inherit;\n }\n\n icon-lucide-arrow-left {\n width: 1.125rem;\n height: 1.125rem;\n }\n\n @media (max-width: 600px) {\n .file-explorer-header-summary {\n gap: 7px;\n }\n\n h1 {\n font-size: 14px;\n }\n\n .pane-icon {\n width: 18.2px;\n height: 18.2px;\n flex-shrink: 0;\n aspect-ratio: 1 / 1;\n padding: 0;\n }\n\n p {\n font-size: 14px;\n }\n\n .resource-date {\n font-size: 10px;\n }\n\n .public,\n .private {\n font-size: 9px;\n }\n\n icon-lucide-arrow-left {\n width: 15px;\n height: 18px;\n flex-shrink: 0;\n aspect-ratio: 5 / 6;\n }\n }\n}\n"],"mappings":""}
@@ -1,13 +0,0 @@
1
- const e=require("../../navigation/chrome.cjs.js"),t=require("../../icons/person.cjs.js"),n=require("../../icons/friends.cjs.js");require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("./FileExplorerHeader.cjs.js");const r=require("./FileExplorerProvider.styles.cjs.js");let i=require("solid-ui"),a=require("lit/decorators.js"),o=require("@lit/context"),s=require("lit");var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,ee,te,ne,re,ie,ae,oe,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,se,ce,le,ue,de,fe,pe,me;function J(e,t,n){he(e,t),t.set(e,n)}function he(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Y(e,t,n){return e.set(ge(e,t),n),n}function X(e,t){return e.get(ge(e,t))}function ge(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 Z(e,t,n){return(t=Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(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:ye(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ye(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 be(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:Q(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 Q(e){var t=ve(e,`string`);return typeof t==`symbol`?t:t+``}function ve(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ye(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 be(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 xe(e){return e}var Se=t.default,Ce=n.default;function we(e){return{store:e.store,subjectUri:e.subjectUri,pane:e.pane,soloPane:e.soloPane,onBack:e.onBack,openPane:e.openPane,handleAccessClick:e.handleAccessClick,paneSupportsEditing:e.paneSupportsEditing,edit:e.edit}}O=[(0,a.customElement)(`file-explorer-provider`)];var $;new(pe=(u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,T=new WeakMap,me=(k=(0,a.property)({attribute:!1}),j=(0,a.property)({attribute:!1}),te=(0,a.property)({attribute:!1}),re=(0,a.property)({attribute:!1}),ae=(0,a.property)({attribute:!1}),M=(0,a.property)({attribute:!1}),P=(0,a.property)({attribute:!1}),I=(0,a.property)({attribute:!1}),R=(0,a.property)({attribute:!1}),B=(0,a.property)({attribute:!1}),H=(0,a.state)(),W=(0,a.state)(),K=(0,a.state)(),se=(0,a.state)(),le=(0,a.state)(),de=(0,o.provide)({context:i.fileExplorerContext}),`context`),l=class extends i.WebComponent{constructor(...e){super(...e),J(this,u,(E(this),A(this,void 0))),J(this,d,ee(this,void 0)),J(this,f,ne(this,void 0)),J(this,p,ie(this,[])),J(this,m,oe(this,void 0)),J(this,h,N(this,{})),J(this,g,F(this,!0)),J(this,_,L(this,void 0)),J(this,v,z(this,void 0)),J(this,y,V(this,void 0)),J(this,b,U(this,[])),J(this,x,G(this,!1)),J(this,S,q(this,!1)),J(this,C,ce(this,!1)),Z(this,`beginEditingInSourcePane`,()=>{this.querySelector(`source-pane-source-provider`)?.beginEditing?.()}),J(this,w,ue(this,{onEdit:this.beginEditingInSourcePane,isDirty:!1,updateDirtyState:e=>{this.isDirty!==e&&(this.isDirty=e,this.edit={...this.edit,isDirty:e},this.refreshFileExplorerContextValue())}})),J(this,T,fe(this,we({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:!1,edit:this.edit})))}get[me](){return X(u,this)}set context(e){Y(u,this,e)}get subjectUri(){return X(d,this)}set subjectUri(e){Y(d,this,e)}get onBack(){return X(f,this)}set onBack(e){Y(f,this,e)}get relevantPanes(){return X(p,this)}set relevantPanes(e){Y(p,this,e)}get pane(){return X(m,this)}set pane(e){Y(m,this,e)}get paneRenderOptions(){return X(h,this)}set paneRenderOptions(e){Y(h,this,e)}get showHeader(){return X(g,this)}set showHeader(e){Y(g,this,e)}get handleAccessClick(){return X(_,this)}set handleAccessClick(e){Y(_,this,e)}get soloPane(){return X(v,this)}set soloPane(e){Y(v,this,e)}get openPane(){return X(y,this)}set openPane(e){Y(y,this,e)}get menuItems(){return X(b,this)}set menuItems(e){Y(b,this,e)}get isEditing(){return X(x,this)}set isEditing(e){Y(x,this,e)}get isDirty(){return X(S,this)}set isDirty(e){Y(S,this,e)}get paneSupportsEditing(){return X(C,this)}set paneSupportsEditing(e){Y(C,this,e)}get edit(){return X(w,this)}set edit(e){Y(w,this,e)}get fileExplorerContextValue(){return X(T,this)}set fileExplorerContextValue(e){Y(T,this,e)}openSelectedPane(e){this.context?.session.store&&this.subjectUri&&(this.paneSupportsEditing=e.name===`source`,this.pane=e)}getPaneIcon(e,t,n){if(e)return typeof e.icon==`function`?e.icon(t,n):e.icon}async getPaneItems(e,t,n){let r=t.dom;return await Promise.all(n.map(async n=>{let a=n.label(e,t),o=``;o=n.name===`profile`?Se:n.name===`social`?Ce:await this.getPaneIcon(n,e,t);let s=i.utils.AJARImage(o,a,a,r);return s.setAttribute(`slot`,`left-icon`),{label:a,icon:s,action:()=>this.openPane?.(e,n.name)}}))}refreshFileExplorerContextValue(){this.fileExplorerContextValue=we({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:this.paneSupportsEditing,edit:this.edit})}async refreshMenuItems(){let e=this.context?.session.store;if(!e||!this.subjectUri)return;let t=e.sym(this.subjectUri),n=await this.getPaneItems(t,this.context,this.relevantPanes);this.menuItems=n}willUpdate(e){if(super.willUpdate(e),!this.context?.session.store)throw Error("The element is missing the required `context.session.store` value. Ensure the `context` property is set.");if(!this.subjectUri)throw Error("The element is missing the required `subjectUri` property.");(e.has(`subjectUri`)||e.has(`relevantPanes`)||e.has(`context`))&&this.refreshMenuItems().catch(e=>{console.warn(`Failed to refresh menu items`,e)}),(e.has(`pane`)||e.has(`subjectUri`)||e.has(`context`))&&(this.paneSupportsEditing=this.pane?.name===`source`),(e.has(`context`)||e.has(`subjectUri`)||e.has(`pane`)||e.has(`soloPane`)||e.has(`onBack`)||e.has(`openPane`)||e.has(`handleAccessClick`)||e.has(`pane`)||e.has(`isDirty`))&&this.refreshFileExplorerContextValue()}render(){let t=(this.context?.session.store).sym(this.subjectUri),n=e.explorerHeaderForPane(this.showHeader,this.pane?.name);return s.html`
2
- <div class="file-explorer-provider">
3
- ${n?s.html`
4
- <file-explorer-header
5
- .paneIcon=${this.getPaneIcon(this.pane,t,this.context)}
6
- .menuItems=${this.menuItems}
7
- .paneSupportsEditing=${this.paneSupportsEditing}
8
- ></file-explorer-header>
9
- `:s.nothing}
10
- <slot class="pane"></slot>
11
- </div>
12
- `}},{e:[A,ee,ne,ie,oe,N,F,L,z,V,U,G,q,ce,ue,fe,E],c:[$,D]}=_e(l,[[k,1,`context`],[j,1,`subjectUri`],[te,1,`onBack`],[re,1,`relevantPanes`],[ae,1,`pane`],[M,1,`paneRenderOptions`],[P,1,`showHeader`],[I,1,`handleAccessClick`],[R,1,`soloPane`],[B,1,`openPane`],[H,1,`menuItems`],[W,1,`isEditing`],[K,1,`isDirty`],[se,1,`paneSupportsEditing`],[le,1,`edit`],[de,1,`fileExplorerContextValue`]],O,0,void 0,i.WebComponent),l),c=class extends xe{constructor(){super($),Z(this,`styles`,r.default),D()}},Z(c,pe,void 0),c),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return $}});
13
- //# sourceMappingURL=FileExplorerProvider.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","nothing","utils","WebComponent","provide","fileExplorerContext","customElement","property","state","styles","personIcon","friendsIcon","explorerHeaderForPane","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","store","subjectUri","pane","soloPane","onBack","openPane","handleAccessClick","paneSupportsEditing","edit","_classDecs","_FileExplorerProvider","_FileExplorerProvider2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_ref","_contextDecs","attribute","_subjectUriDecs","_onBackDecs","_relevantPanesDecs","_paneDecs","_paneRenderOptionsDecs","_showHeaderDecs","_handleAccessClickDecs","_soloPaneDecs","_openPaneDecs","_menuItemsDecs","_isEditingDecs","_isDirtyDecs","_paneSupportsEditingDecs","_editDecs","_fileExplorerContextValueDecs","context","_FileExplorerProvider3","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","undefined","_init_subjectUri","_init_onBack","_init_relevantPanes","_init_pane","_init_paneRenderOptions","_init_showHeader","_init_handleAccessClick","_init_soloPane","_init_openPane","_init_menuItems","_init_isEditing","_init_isDirty","_init_paneSupportsEditing","_defineProperty","sourceProvider","querySelector","beginEditing","_init_edit","onEdit","beginEditingInSourcePane","isDirty","updateDirtyState","dirty","refreshFileExplorerContextValue","_init_fileExplorerContextValue","session","_classPrivateFieldGet","v","_classPrivateFieldSet","relevantPanes","paneRenderOptions","showHeader","menuItems","isEditing","fileExplorerContextValue","openSelectedPane","name","getPaneIcon","subject","icon","getPaneItems","dom","Promise","all","map","label","iconSrc","AJARImage","setAttribute","action","refreshMenuItems","sym","willUpdate","changedProperties","Error","has","catch","error","console","warn","render","e","c","_initClass","_applyDecs","_Class","_identity","default","personIcon","friendsIcon","customElement","property","state","provide","fileExplorerContext","WebComponent","utils","explorerHeaderForPane","nothing","styles","require_chrome","require_person","require_friends","require_FileExplorerProvider_styles","solid_ui","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerProvider3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_onBackDecs","_init_onBack","_relevantPanesDecs","_init_relevantPanes","_paneDecs","_init_pane","_paneRenderOptionsDecs","_init_paneRenderOptions","_showHeaderDecs","_init_showHeader","_handleAccessClickDecs","_init_handleAccessClick","_soloPaneDecs","_init_soloPane","_openPaneDecs","_init_openPane","_menuItemsDecs","_init_menuItems","_isEditingDecs","_init_isEditing","_isDirtyDecs","_init_isDirty","_paneSupportsEditingDecs","_init_paneSupportsEditing","_editDecs","_init_edit","_fileExplorerContextValueDecs","_init_fileExplorerContextValue","_FileExplorerProvider2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","_FileExplorerProvider","args","dirty","pane","subject","context","dom","relevantPanes","label","iconSrc","icon","store","menuItems","changedProperties","error","showHeader"],"sources":["../../../src/components/file-explorer-header/FileExplorerProvider.ts"],"sourcesContent":["import { html, nothing, type PropertyValues } from 'lit'\nimport type { NamedNode, LiveStore } from 'rdflib'\nimport { DataBrowserContext, type PaneDefinition } from 'pane-registry'\nimport { utils, WebComponent } from 'solid-ui'\nimport { provide } from '@lit/context'\nimport { fileExplorerContext, type FileExplorerContext, type FileExplorerEdit } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport './FileExplorerHeader'\nimport styles from './FileExplorerProvider.styles.css'\nimport personIcon from '../../icons/person.svg'\nimport friendsIcon from '../../icons/friends.svg'\nimport '~icons/lucide/share-2'\nimport { explorerHeaderForPane } from '../../navigation/chrome'\n\nconst PERSON_ICON = personIcon\nconst FRIENDS_ICON = friendsIcon\n\nfunction createFileExplorerContextValue (value: {\n store: LiveStore | undefined\n subjectUri: string | undefined\n pane?: PaneDefinition\n soloPane?: boolean\n onBack?: () => void\n openPane?: (subject: NamedNode, paneName: string) => void\n handleAccessClick?: () => void\n paneSupportsEditing?: boolean\n edit?: {\n onEdit?: () => void\n isDirty?: boolean\n updateDirtyState?: (dirty: boolean) => void\n }\n}): FileExplorerContext {\n return {\n store: value.store as LiveStore,\n subjectUri: value.subjectUri,\n pane: value.pane,\n soloPane: value.soloPane,\n onBack: value.onBack,\n openPane: value.openPane,\n handleAccessClick: value.handleAccessClick,\n paneSupportsEditing: value.paneSupportsEditing,\n edit: value.edit\n }\n}\n@customElement('file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined = undefined\n\n @property({ attribute: false })\n accessor onBack: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined = undefined\n\n @property({ attribute: false })\n accessor paneRenderOptions: Record<string, unknown> = {}\n\n @property({ attribute: false })\n accessor showHeader: boolean = true\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n // TODO: Need to research this more, brought it over from manager.\n @property({ attribute: false })\n accessor soloPane: boolean | undefined = undefined\n\n @property({ attribute: false })\n accessor openPane: ((subject: NamedNode, paneName: string) => void) | undefined = undefined\n\n @state()\n accessor menuItems: Array<{ label: string, icon?: HTMLElement, action: (event: Event) => void }> = []\n\n @state()\n accessor isEditing: boolean = false\n\n @state()\n accessor isDirty: boolean = false\n\n @state()\n accessor paneSupportsEditing: boolean = false\n\n // TODO: For now this works, but check if there is a better way.\n // because this means file explorer will know about the pane.\n // what if other panes want to use this. If so maybe we should\n // add more to the context to capture the provider for the pane that\n // will be editing... anyway this shouldn't be just for source pane.\n private beginEditingInSourcePane = () => {\n const sourceProvider = this.querySelector('source-pane-source-provider') as {\n beginEditing?: () => void\n } | null\n\n sourceProvider?.beginEditing?.()\n }\n\n // TODO: same as below. on Edit should be something more generic\n @state()\n accessor edit: FileExplorerEdit = {\n onEdit: this.beginEditingInSourcePane,\n isDirty: false,\n updateDirtyState: (dirty: boolean) => {\n if (this.isDirty === dirty) return\n\n this.isDirty = dirty\n this.edit = {\n ...this.edit,\n isDirty: dirty\n }\n this.refreshFileExplorerContextValue()\n }\n }\n\n @provide({ context: fileExplorerContext })\n accessor fileExplorerContextValue: FileExplorerContext = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: false,\n edit: this.edit\n })\n\n // Change the state for the pane so it can show the new icon.\n openSelectedPane (pane: PaneDefinition) {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n this.paneSupportsEditing = pane.name === 'source'\n this.pane = pane\n }\n\n private getPaneIcon (pane, subject, context) {\n if (!pane) return undefined\n\n const icon = typeof pane.icon === 'function'\n ? pane.icon(subject, context)\n : pane.icon\n return icon\n }\n\n private async getPaneItems (subject, context, relevantPanes) {\n const dom = context.dom\n const menuItems = await Promise.all(relevantPanes.map(async pane => {\n const label = pane.label(subject, context)\n\n let iconSrc = ''\n if (pane.name === 'profile') {\n iconSrc = PERSON_ICON\n } else if (pane.name === 'social') {\n iconSrc = FRIENDS_ICON\n } else {\n iconSrc = await this.getPaneIcon(pane, subject, context)\n }\n\n const icon = utils.AJARImage(iconSrc, label, label, dom)\n icon.setAttribute('slot', 'left-icon')\n\n return {\n label,\n icon,\n action: () => this.openPane?.(subject, pane.name)\n }\n }))\n return menuItems\n }\n\n private refreshFileExplorerContextValue () {\n this.fileExplorerContextValue = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: this.paneSupportsEditing,\n edit: this.edit\n })\n }\n\n private async refreshMenuItems () {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n\n const subject = store.sym(this.subjectUri)\n const menuItems = await this.getPaneItems(subject, this.context as DataBrowserContext, this.relevantPanes)\n\n this.menuItems = menuItems\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n const store = this.context?.session.store as LiveStore\n if (!store) {\n throw new Error('The element is missing the required `context.session.store` value. Ensure the `context` property is set.')\n }\n if (!this.subjectUri) {\n throw new Error('The element is missing the required `subjectUri` property.')\n }\n\n if (\n changedProperties.has('subjectUri') ||\n changedProperties.has('relevantPanes') ||\n changedProperties.has('context')\n ) {\n this.refreshMenuItems().catch(error => {\n console.warn('Failed to refresh menu items', error)\n })\n }\n\n if (changedProperties.has('pane') || changedProperties.has('subjectUri') || changedProperties.has('context')) {\n this.paneSupportsEditing = this.pane?.name === 'source'\n }\n\n if (\n changedProperties.has('context') ||\n changedProperties.has('subjectUri') ||\n changedProperties.has('pane') ||\n changedProperties.has('soloPane') ||\n changedProperties.has('onBack') ||\n changedProperties.has('openPane') ||\n changedProperties.has('handleAccessClick') ||\n changedProperties.has('pane') ||\n changedProperties.has('isDirty')\n ) {\n this.refreshFileExplorerContextValue()\n }\n }\n\n render () {\n const store = this.context?.session.store as LiveStore\n const subject = store.sym(this.subjectUri as string)\n // Profile and friends panes present a person, not the resource they are opened on.\n const showHeader = explorerHeaderForPane(this.showHeader, this.pane?.name)\n return html`\n <div class=\"file-explorer-provider\">\n ${showHeader\n ? html`\n <file-explorer-header\n .paneIcon=${this.getPaneIcon(this.pane, subject, this.context as DataBrowserContext)}\n .menuItems=${this.menuItems}\n .paneSupportsEditing=${this.paneSupportsEditing}\n ></file-explorer-header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A,EAAA,qBAAA,EAAA,CAAAC,GAAA,EAAA,MAAA,EAAA,CAAAC,GAAA,EAAA,0BAAA,CAAA,EAAArC,EAAA,EAAA,IAAA,GAvNiDvB,EAAAA,YAAY,EAAA8D,GAAAyE,EAAA,cAAAC,EAAA,CAAAxE,aAAA,CAAA,MAAAxC,CAAA,EAAA2D,EAAA,KAAA,SAC5C7E,EAAAA,OAAM,EAAA+H,EAAA,CAAA,CAAA,EAAAlD,EAAAoD,EAAA9G,GAAA,IAAA,EAAA,EAAA8G,G"}
@@ -1,36 +0,0 @@
1
- import { PropertyValues } from 'lit';
2
- import { NamedNode } from '../../../node_modules/rdflib';
3
- import { DataBrowserContext, PaneDefinition } from '../../../node_modules/pane-registry';
4
- import { WebComponent, FileExplorerContext, FileExplorerEdit } from 'solid-ui';
5
- export default class FileExplorerProvider extends WebComponent {
6
- static styles: any;
7
- accessor context: DataBrowserContext | undefined;
8
- accessor subjectUri: string | undefined;
9
- accessor onBack: (() => void) | undefined;
10
- accessor relevantPanes: PaneDefinition[];
11
- accessor pane: PaneDefinition | undefined;
12
- accessor paneRenderOptions: Record<string, unknown>;
13
- accessor showHeader: boolean;
14
- accessor handleAccessClick: (() => void) | undefined;
15
- accessor soloPane: boolean | undefined;
16
- accessor openPane: ((subject: NamedNode, paneName: string) => void) | undefined;
17
- accessor menuItems: Array<{
18
- label: string;
19
- icon?: HTMLElement;
20
- action: (event: Event) => void;
21
- }>;
22
- accessor isEditing: boolean;
23
- accessor isDirty: boolean;
24
- accessor paneSupportsEditing: boolean;
25
- private beginEditingInSourcePane;
26
- accessor edit: FileExplorerEdit;
27
- accessor fileExplorerContextValue: FileExplorerContext;
28
- openSelectedPane(pane: PaneDefinition): void;
29
- private getPaneIcon;
30
- private getPaneItems;
31
- private refreshFileExplorerContextValue;
32
- private refreshMenuItems;
33
- protected willUpdate(changedProperties: PropertyValues<this>): void;
34
- render(): import('lit-html').TemplateResult<1>;
35
- }
36
- //# sourceMappingURL=FileExplorerProvider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