solid-panes 4.5.3 → 5.0.0-1

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 (553) hide show
  1. package/README.md +10 -40
  2. package/dist/RDFXMLPane.d.ts +2 -3
  3. package/dist/RDFXMLPane.d.ts.map +1 -1
  4. package/dist/RDFXMLPane2.cjs.js +2 -0
  5. package/dist/RDFXMLPane2.cjs.js.map +1 -0
  6. package/dist/RDFXMLPane2.esm.js +28 -0
  7. package/dist/RDFXMLPane2.esm.js.map +1 -0
  8. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
  9. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
  12. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
  16. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/folder-open.esm.js +11 -0
  20. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/folder.esm.js +11 -0
  24. package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
  28. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  29. package/dist/_virtual/~icons/lucide/help-circle.cjs.js +2 -0
  30. package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +1 -0
  31. package/dist/_virtual/~icons/lucide/help-circle.esm.js +11 -0
  32. package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +1 -0
  33. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +2 -0
  34. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +1 -0
  35. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +11 -0
  36. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +1 -0
  37. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  38. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  39. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
  40. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  41. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  42. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  43. package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
  44. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  45. package/dist/_virtual/~icons/lucide/settings-2.cjs.js +2 -0
  46. package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +1 -0
  47. package/dist/_virtual/~icons/lucide/settings-2.esm.js +11 -0
  48. package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +1 -0
  49. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  50. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  51. package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
  52. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  53. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
  54. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
  55. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +11 -0
  56. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
  57. package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
  58. package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
  59. package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
  60. package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
  61. package/dist/_virtual/~icons/lucide/users.cjs.js +2 -0
  62. package/dist/_virtual/~icons/lucide/users.cjs.js.map +1 -0
  63. package/dist/_virtual/~icons/lucide/users.esm.js +11 -0
  64. package/dist/_virtual/~icons/lucide/users.esm.js.map +1 -0
  65. package/dist/audio/audioPane.cjs.js +2 -0
  66. package/dist/audio/audioPane.cjs.js.map +1 -0
  67. package/dist/audio/audioPane.esm.js +99 -0
  68. package/dist/audio/audioPane.esm.js.map +1 -0
  69. package/dist/classInstancePane.cjs.js +2 -0
  70. package/dist/classInstancePane.cjs.js.map +1 -0
  71. package/dist/classInstancePane.esm.js +50 -0
  72. package/dist/classInstancePane.esm.js.map +1 -0
  73. package/dist/components/editor-card/EditorCard.cjs.js +6 -0
  74. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -0
  75. package/dist/components/editor-card/EditorCard.d.ts +16 -0
  76. package/dist/components/editor-card/EditorCard.d.ts.map +1 -0
  77. package/dist/components/editor-card/EditorCard.esm.js +268 -0
  78. package/dist/components/editor-card/EditorCard.esm.js.map +1 -0
  79. package/dist/components/editor-card/EditorCard.styles.cjs.js +2 -0
  80. package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -0
  81. package/dist/components/editor-card/EditorCard.styles.esm.js +7 -0
  82. package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -0
  83. package/dist/components/editor-card/index.cjs.js +1 -0
  84. package/dist/components/editor-card/index.d.ts +4 -0
  85. package/dist/components/editor-card/index.d.ts.map +1 -0
  86. package/dist/components/editor-card/index.esm.js +1 -0
  87. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
  88. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  89. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +18 -0
  90. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  91. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
  92. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  93. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  94. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  95. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
  96. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  97. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +32 -0
  98. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  99. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +21 -0
  100. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  101. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +294 -0
  102. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  103. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  104. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  105. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
  106. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  107. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +34 -0
  108. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  109. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +20 -0
  110. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  111. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +346 -0
  112. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  113. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  114. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  115. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
  116. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  117. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
  118. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
  119. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
  120. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
  121. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +469 -0
  122. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
  123. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
  124. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
  125. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
  126. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
  127. package/dist/components/file-explorer-header/index.cjs.js +1 -0
  128. package/dist/components/file-explorer-header/index.d.ts +3 -0
  129. package/dist/components/file-explorer-header/index.d.ts.map +1 -0
  130. package/dist/components/file-explorer-header/index.esm.js +2 -0
  131. package/dist/components/file-explorer-header/types.d.ts +10 -0
  132. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  133. package/dist/components/header/Header.cjs.js +19 -0
  134. package/dist/components/header/Header.cjs.js.map +1 -0
  135. package/dist/components/header/Header.d.ts +8 -0
  136. package/dist/components/header/Header.d.ts.map +1 -0
  137. package/dist/components/header/Header.esm.js +228 -0
  138. package/dist/components/header/Header.esm.js.map +1 -0
  139. package/dist/components/header/Header.styles.cjs.js +2 -0
  140. package/dist/components/header/Header.styles.cjs.js.map +1 -0
  141. package/dist/components/header/Header.styles.esm.js +7 -0
  142. package/dist/components/header/Header.styles.esm.js.map +1 -0
  143. package/dist/components/header/index.cjs.js +1 -0
  144. package/dist/components/header/index.d.ts +4 -0
  145. package/dist/components/header/index.d.ts.map +1 -0
  146. package/dist/components/header/index.esm.js +1 -0
  147. package/dist/components/navbar/Navbar.cjs.js +15 -0
  148. package/dist/components/navbar/Navbar.cjs.js.map +1 -0
  149. package/dist/components/navbar/Navbar.d.ts +14 -0
  150. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  151. package/dist/components/navbar/Navbar.esm.js +232 -0
  152. package/dist/components/navbar/Navbar.esm.js.map +1 -0
  153. package/dist/components/navbar/Navbar.styles.cjs.js +2 -0
  154. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -0
  155. package/dist/components/navbar/Navbar.styles.esm.js +7 -0
  156. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -0
  157. package/dist/components/navbar/index.cjs.js +1 -0
  158. package/dist/components/navbar/index.d.ts +4 -0
  159. package/dist/components/navbar/index.d.ts.map +1 -0
  160. package/dist/components/navbar/index.esm.js +1 -0
  161. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  162. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  163. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +32 -0
  164. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  165. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +19 -0
  166. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  167. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +322 -0
  168. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  169. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
  170. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
  171. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +7 -0
  172. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
  173. package/dist/dashboard/basicPreferences.cjs.js +2 -0
  174. package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
  175. package/dist/dashboard/basicPreferences.d.ts +1 -1
  176. package/dist/dashboard/basicPreferences.esm.js +70 -0
  177. package/dist/dashboard/basicPreferences.esm.js.map +1 -0
  178. package/dist/dashboard/dashboardPane.cjs.js +2 -0
  179. package/dist/dashboard/dashboardPane.cjs.js.map +1 -0
  180. package/dist/dashboard/dashboardPane.d.ts +1 -1
  181. package/dist/dashboard/dashboardPane.esm.js +7 -0
  182. package/dist/dashboard/dashboardPane.esm.js.map +1 -0
  183. package/dist/dashboard/homepage.cjs.js +2 -0
  184. package/dist/dashboard/homepage.cjs.js.map +1 -0
  185. package/dist/dashboard/homepage.d.ts +1 -1
  186. package/dist/dashboard/homepage.esm.js +26 -0
  187. package/dist/dashboard/homepage.esm.js.map +1 -0
  188. package/dist/dashboard/ontologyData.cjs.js +37 -0
  189. package/dist/dashboard/ontologyData.cjs.js.map +1 -0
  190. package/dist/dashboard/ontologyData.esm.js +6 -0
  191. package/dist/dashboard/ontologyData.esm.js.map +1 -0
  192. package/dist/dashboard/preferencesFormText.cjs.js +20 -0
  193. package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
  194. package/dist/dashboard/preferencesFormText.esm.js +6 -0
  195. package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
  196. package/dist/dataContentPane.d.ts +2 -3
  197. package/dist/dataContentPane2.cjs.js +2 -0
  198. package/dist/dataContentPane2.cjs.js.map +1 -0
  199. package/dist/dataContentPane2.esm.js +109 -0
  200. package/dist/dataContentPane2.esm.js.map +1 -0
  201. package/dist/defaultPane.d.ts +2 -3
  202. package/dist/defaultPane2.cjs.js +2 -0
  203. package/dist/defaultPane2.cjs.js.map +1 -0
  204. package/dist/defaultPane2.esm.js +41 -0
  205. package/dist/defaultPane2.esm.js.map +1 -0
  206. package/dist/dev.d.ts +10 -0
  207. package/dist/dev.d.ts.map +1 -0
  208. package/dist/dokieli/dokieliPane.cjs.js +2 -0
  209. package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
  210. package/dist/dokieli/dokieliPane.esm.js +39 -0
  211. package/dist/dokieli/dokieliPane.esm.js.map +1 -0
  212. package/dist/dokieli/{new.js → new.cjs.js} +4 -10
  213. package/dist/dokieli/new.cjs.js.map +1 -0
  214. package/dist/dokieli/new.esm.js +6 -0
  215. package/dist/dokieli/new.esm.js.map +1 -0
  216. package/dist/form/pane.cjs.js +4 -0
  217. package/dist/form/pane.cjs.js.map +1 -0
  218. package/dist/form/pane.d.ts +1 -2
  219. package/dist/form/pane.esm.js +122 -0
  220. package/dist/form/pane.esm.js.map +1 -0
  221. package/dist/home/homePane.cjs.js +2 -0
  222. package/dist/home/homePane.cjs.js.map +1 -0
  223. package/dist/home/homePane.d.ts +1 -1
  224. package/dist/home/homePane.esm.js +35 -0
  225. package/dist/home/homePane.esm.js.map +1 -0
  226. package/dist/humanReadablePane.d.ts +3 -4
  227. package/dist/humanReadablePane.d.ts.map +1 -1
  228. package/dist/humanReadablePane2.cjs.js +2 -0
  229. package/dist/humanReadablePane2.cjs.js.map +1 -0
  230. package/dist/humanReadablePane2.esm.js +123 -0
  231. package/dist/humanReadablePane2.esm.js.map +1 -0
  232. package/dist/icons/folder.cjs.js +2 -0
  233. package/dist/icons/folder.cjs.js.map +1 -0
  234. package/dist/icons/folder.esm.js +6 -0
  235. package/dist/icons/folder.esm.js.map +1 -0
  236. package/dist/icons/friends.cjs.js +2 -0
  237. package/dist/icons/friends.cjs.js.map +1 -0
  238. package/dist/icons/friends.esm.js +6 -0
  239. package/dist/icons/friends.esm.js.map +1 -0
  240. package/dist/icons/person.cjs.js +2 -0
  241. package/dist/icons/person.cjs.js.map +1 -0
  242. package/dist/icons/person.esm.js +6 -0
  243. package/dist/icons/person.esm.js.map +1 -0
  244. package/dist/imagePane.d.ts +2 -3
  245. package/dist/imagePane2.cjs.js +2 -0
  246. package/dist/imagePane2.cjs.js.map +1 -0
  247. package/dist/imagePane2.esm.js +32 -0
  248. package/dist/imagePane2.esm.js.map +1 -0
  249. package/dist/index.cjs.js +2 -0
  250. package/dist/index.cjs.js.map +1 -0
  251. package/dist/index.d.ts +4 -4
  252. package/dist/index.esm.js +31 -0
  253. package/dist/index.esm.js.map +1 -0
  254. package/dist/internal/internalPane.d.ts +1 -2
  255. package/dist/internal/internalPane2.cjs.js +2 -0
  256. package/dist/internal/internalPane2.cjs.js.map +1 -0
  257. package/dist/internal/internalPane2.esm.js +104 -0
  258. package/dist/internal/internalPane2.esm.js.map +1 -0
  259. package/dist/mainPage/header.cjs.js +2 -0
  260. package/dist/mainPage/header.cjs.js.map +1 -0
  261. package/dist/mainPage/header.d.ts +1 -15
  262. package/dist/mainPage/header.d.ts.map +1 -1
  263. package/dist/mainPage/header.esm.js +72 -0
  264. package/dist/mainPage/header.esm.js.map +1 -0
  265. package/dist/mainPage/index.cjs.js +2 -0
  266. package/dist/mainPage/index.cjs.js.map +1 -0
  267. package/dist/mainPage/index.d.ts +3 -15
  268. package/dist/mainPage/index.d.ts.map +1 -1
  269. package/dist/mainPage/index.esm.js +36 -0
  270. package/dist/mainPage/index.esm.js.map +1 -0
  271. package/dist/mainPage/navbar.cjs.js +2 -0
  272. package/dist/mainPage/navbar.cjs.js.map +1 -0
  273. package/dist/mainPage/navbar.d.ts +3 -0
  274. package/dist/mainPage/navbar.d.ts.map +1 -0
  275. package/dist/mainPage/navbar.esm.js +66 -0
  276. package/dist/mainPage/navbar.esm.js.map +1 -0
  277. package/dist/n3Pane.d.ts +2 -3
  278. package/dist/n3Pane.d.ts.map +1 -1
  279. package/dist/n3Pane2.cjs.js +2 -0
  280. package/dist/n3Pane2.cjs.js.map +1 -0
  281. package/dist/n3Pane2.esm.js +28 -0
  282. package/dist/n3Pane2.esm.js.map +1 -0
  283. package/dist/outline/context.cjs.js +2 -0
  284. package/dist/outline/context.cjs.js.map +1 -0
  285. package/dist/outline/context.d.ts +3 -3
  286. package/dist/outline/context.esm.js +18 -0
  287. package/dist/outline/context.esm.js.map +1 -0
  288. package/dist/outline/manager2.cjs.js +2 -0
  289. package/dist/outline/manager2.cjs.js.map +1 -0
  290. package/dist/outline/manager2.esm.js +708 -0
  291. package/dist/outline/manager2.esm.js.map +1 -0
  292. package/dist/outline/outlineIcons.cjs.js +2 -0
  293. package/dist/outline/outlineIcons.cjs.js.map +1 -0
  294. package/dist/outline/outlineIcons.esm.js +10 -0
  295. package/dist/outline/outlineIcons.esm.js.map +1 -0
  296. package/dist/outline/propertyViews.cjs.js +2 -0
  297. package/dist/outline/propertyViews.cjs.js.map +1 -0
  298. package/dist/outline/propertyViews.esm.js +19 -0
  299. package/dist/outline/propertyViews.esm.js.map +1 -0
  300. package/dist/outline/queryByExample.cjs.js +2 -0
  301. package/dist/outline/queryByExample.cjs.js.map +1 -0
  302. package/dist/outline/queryByExample.esm.js +26 -0
  303. package/dist/outline/queryByExample.esm.js.map +1 -0
  304. package/dist/outline/sourcePaneIcon.d.ts +2 -0
  305. package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
  306. package/dist/outline/userInput.cjs.js +61 -0
  307. package/dist/outline/userInput.cjs.js.map +1 -0
  308. package/dist/outline/userInput.esm.js +784 -0
  309. package/dist/outline/userInput.esm.js.map +1 -0
  310. package/dist/outline/viewAsImage.cjs.js +2 -0
  311. package/dist/outline/viewAsImage.cjs.js.map +1 -0
  312. package/dist/outline/viewAsImage.esm.js +10 -0
  313. package/dist/outline/viewAsImage.esm.js.map +1 -0
  314. package/dist/outline/viewAsMbox.cjs.js +2 -0
  315. package/dist/outline/viewAsMbox.cjs.js.map +1 -0
  316. package/dist/outline/viewAsMbox.esm.js +9 -0
  317. package/dist/outline/viewAsMbox.esm.js.map +1 -0
  318. package/dist/pad/padPane.d.ts +1 -2
  319. package/dist/pad/padPane2.cjs.js +2 -0
  320. package/dist/pad/padPane2.cjs.js.map +1 -0
  321. package/dist/pad/padPane2.esm.js +173 -0
  322. package/dist/pad/padPane2.esm.js.map +1 -0
  323. package/dist/playlist/playlistPane.cjs.js +2 -0
  324. package/dist/playlist/playlistPane.cjs.js.map +1 -0
  325. package/dist/playlist/playlistPane.esm.js +49 -0
  326. package/dist/playlist/playlistPane.esm.js.map +1 -0
  327. package/dist/registerPanes.cjs.js +2 -0
  328. package/dist/registerPanes.cjs.js.map +1 -0
  329. package/dist/registerPanes.esm.js +46 -0
  330. package/dist/registerPanes.esm.js.map +1 -0
  331. package/dist/schedule/formsForSchedule.cjs.js +117 -0
  332. package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
  333. package/dist/schedule/formsForSchedule.esm.js +6 -0
  334. package/dist/schedule/formsForSchedule.esm.js.map +1 -0
  335. package/dist/schedule/schedulePane.d.ts +2 -4
  336. package/dist/schedule/schedulePane2.cjs.js +8 -0
  337. package/dist/schedule/schedulePane2.cjs.js.map +1 -0
  338. package/dist/schedule/schedulePane2.esm.js +385 -0
  339. package/dist/schedule/schedulePane2.esm.js.map +1 -0
  340. package/dist/sharing/sharingPane.cjs.js +2 -0
  341. package/dist/sharing/sharingPane.cjs.js.map +1 -0
  342. package/dist/sharing/sharingPane.esm.js +22 -0
  343. package/dist/sharing/sharingPane.esm.js.map +1 -0
  344. package/dist/slideshow/slideshowPane.cjs.js +2 -0
  345. package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
  346. package/dist/slideshow/slideshowPane.esm.js +46 -0
  347. package/dist/slideshow/slideshowPane.esm.js.map +1 -0
  348. package/dist/social/editProfileDetails.cjs.js +2 -0
  349. package/dist/social/editProfileDetails.cjs.js.map +1 -0
  350. package/dist/social/editProfileDetails.d.ts +1 -2
  351. package/dist/social/editProfileDetails.esm.js +12 -0
  352. package/dist/social/editProfileDetails.esm.js.map +1 -0
  353. package/dist/social/icons.cjs.js +82 -0
  354. package/dist/social/icons.cjs.js.map +1 -0
  355. package/dist/social/{icons.js → icons.esm.js} +12 -18
  356. package/dist/social/icons.esm.js.map +1 -0
  357. package/dist/social/socialPane.d.ts +2 -3
  358. package/dist/social/socialPane2.cjs.js +6 -0
  359. package/dist/social/socialPane2.cjs.js.map +1 -0
  360. package/dist/social/socialPane2.esm.js +326 -0
  361. package/dist/social/socialPane2.esm.js.map +1 -0
  362. package/dist/social/socialSections.cjs.js +2 -0
  363. package/dist/social/socialSections.cjs.js.map +1 -0
  364. package/dist/social/socialSections.d.ts +2 -2
  365. package/dist/social/socialSections.esm.js +222 -0
  366. package/dist/social/socialSections.esm.js.map +1 -0
  367. package/dist/social/spinner.cjs.js +1 -0
  368. package/dist/social/spinner.esm.js +1 -0
  369. package/dist/social/triage.cjs.js +2 -0
  370. package/dist/social/triage.cjs.js.map +1 -0
  371. package/dist/social/triage.d.ts +2 -2
  372. package/dist/social/triage.esm.js +44 -0
  373. package/dist/social/triage.esm.js.map +1 -0
  374. package/dist/tabbed/tabbedPane.cjs.js +2 -0
  375. package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
  376. package/dist/tabbed/tabbedPane.d.ts +1 -1
  377. package/dist/tabbed/tabbedPane.esm.js +38 -0
  378. package/dist/tabbed/tabbedPane.esm.js.map +1 -0
  379. package/dist/tableViewPane.cjs.js +2 -0
  380. package/dist/tableViewPane.cjs.js.map +1 -0
  381. package/dist/tableViewPane.esm.js +20 -0
  382. package/dist/tableViewPane.esm.js.map +1 -0
  383. package/dist/transaction/pane.cjs.js +8 -0
  384. package/dist/transaction/pane.cjs.js.map +1 -0
  385. package/dist/transaction/pane.esm.js +212 -0
  386. package/dist/transaction/pane.esm.js.map +1 -0
  387. package/dist/transaction/period.cjs.js +4 -0
  388. package/dist/transaction/period.cjs.js.map +1 -0
  389. package/dist/transaction/period.esm.js +126 -0
  390. package/dist/transaction/period.esm.js.map +1 -0
  391. package/dist/trip/tripPane.cjs.js +2 -0
  392. package/dist/trip/tripPane.cjs.js.map +1 -0
  393. package/dist/trip/tripPane.esm.js +85 -0
  394. package/dist/trip/tripPane.esm.js.map +1 -0
  395. package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
  396. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
  397. package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
  398. package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
  399. package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
  400. package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
  401. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
  402. package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
  403. package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
  404. package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
  405. package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
  406. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
  407. package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
  408. package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
  409. package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
  410. package/dist/ui/pane.cjs.js +4 -0
  411. package/dist/ui/pane.cjs.js.map +1 -0
  412. package/dist/ui/pane.esm.js +56 -0
  413. package/dist/ui/pane.esm.js.map +1 -0
  414. package/dist/utils/paneUtils.cjs.js +2 -0
  415. package/dist/utils/paneUtils.cjs.js.map +1 -0
  416. package/dist/utils/paneUtils.d.ts +19 -0
  417. package/dist/utils/paneUtils.d.ts.map +1 -0
  418. package/dist/utils/paneUtils.esm.js +52 -0
  419. package/dist/utils/paneUtils.esm.js.map +1 -0
  420. package/dist/utils/podUtils.cjs.js +2 -0
  421. package/dist/utils/podUtils.cjs.js.map +1 -0
  422. package/dist/utils/podUtils.d.ts +9 -0
  423. package/dist/utils/podUtils.d.ts.map +1 -0
  424. package/dist/utils/podUtils.esm.js +117 -0
  425. package/dist/utils/podUtils.esm.js.map +1 -0
  426. package/dist/utils/webIdUtils.cjs.js +2 -0
  427. package/dist/utils/webIdUtils.cjs.js.map +1 -0
  428. package/dist/utils/webIdUtils.d.ts +6 -0
  429. package/dist/utils/webIdUtils.d.ts.map +1 -0
  430. package/dist/utils/webIdUtils.esm.js +48 -0
  431. package/dist/utils/webIdUtils.esm.js.map +1 -0
  432. package/dist/versionInfo.cjs.js +2 -0
  433. package/dist/versionInfo.cjs.js.map +1 -0
  434. package/dist/versionInfo.esm.js +40 -0
  435. package/dist/versionInfo.esm.js.map +1 -0
  436. package/dist/video/videoPane.cjs.js +2 -0
  437. package/dist/video/videoPane.cjs.js.map +1 -0
  438. package/dist/video/videoPane.esm.js +25 -0
  439. package/dist/video/videoPane.esm.js.map +1 -0
  440. package/package.json +51 -66
  441. package/dist/0314353e28ce6e5539af.svg +0 -9
  442. package/dist/04567ff683933c35c465.png +0 -0
  443. package/dist/10163fd9b5a0e00d63a0.png +0 -0
  444. package/dist/1234dcb2eec2e45f252b.png +0 -0
  445. package/dist/20899934157df4db56cb.png +0 -0
  446. package/dist/33760bf79f097f449da5.png +0 -0
  447. package/dist/4cceba29ab33b1ddd9bb.svg +0 -6
  448. package/dist/578d2b6ed32e7624164e.png +0 -0
  449. package/dist/5f62a5b2b7e99b9640c7.png +0 -0
  450. package/dist/6525766ecd288ec60129.png +0 -0
  451. package/dist/7800be6f6c4b5b0f4f20.png +0 -0
  452. package/dist/7b7538c6f6b317968009.svg +0 -9
  453. package/dist/92d03142abe6efc0b42d.svg +0 -6
  454. package/dist/976473cf5fe24d657d4b.png +0 -0
  455. package/dist/RDFXMLPane.css +0 -70
  456. package/dist/RDFXMLPane.js +0 -100
  457. package/dist/argument/argumentPane.js +0 -60
  458. package/dist/attach/attachPane.js +0 -393
  459. package/dist/audio/audioPane.js +0 -181
  460. package/dist/bda84f59e7216675a208.png +0 -0
  461. package/dist/cd68e8f3990ba8b2139e.png +0 -0
  462. package/dist/classInstancePane.js +0 -91
  463. package/dist/dashboard/basicPreferences.js +0 -147
  464. package/dist/dashboard/dashboardPane.js +0 -73
  465. package/dist/dashboard/homepage.js +0 -42
  466. package/dist/dataContentPane.css +0 -271
  467. package/dist/dataContentPane.js +0 -226
  468. package/dist/defaultPane.css +0 -97
  469. package/dist/defaultPane.js +0 -81
  470. package/dist/dokieli/dokieliPane.js +0 -74
  471. package/dist/e7074a7e2cb69e51cfd3.png +0 -0
  472. package/dist/f3772696fb7ee53c23d8.png +0 -0
  473. package/dist/form/formPane.css +0 -120
  474. package/dist/form/pane.js +0 -250
  475. package/dist/home/homePane.js +0 -74
  476. package/dist/humanReadablePane.css +0 -129
  477. package/dist/humanReadablePane.js +0 -243
  478. package/dist/icons/clock.svg +0 -7
  479. package/dist/icons/comment.svg +0 -6
  480. package/dist/icons/dashboard.svg +0 -9
  481. package/dist/icons/downArrow.svg +0 -6
  482. package/dist/icons/folder.svg +0 -6
  483. package/dist/icons/friends.svg +0 -9
  484. package/dist/icons/help.svg +0 -8
  485. package/dist/icons/iconHelper.js +0 -23
  486. package/dist/icons/menu.svg +0 -8
  487. package/dist/icons/person.svg +0 -6
  488. package/dist/icons/personInCircle.svg +0 -8
  489. package/dist/icons/sharing.svg +0 -10
  490. package/dist/icons/signOut.svg +0 -8
  491. package/dist/icons/signUp.svg +0 -9
  492. package/dist/icons/star.svg +0 -3
  493. package/dist/imagePane.css +0 -4
  494. package/dist/imagePane.js +0 -67
  495. package/dist/index.js +0 -123
  496. package/dist/internal/internalPane.css +0 -14
  497. package/dist/internal/internalPane.js +0 -183
  498. package/dist/mainPage/footer.d.ts +0 -15
  499. package/dist/mainPage/footer.d.ts.map +0 -1
  500. package/dist/mainPage/footer.js +0 -29
  501. package/dist/mainPage/header.js +0 -203
  502. package/dist/mainPage/index.js +0 -92
  503. package/dist/mainPage/menu.css +0 -243
  504. package/dist/mainPage/menu.d.ts +0 -7
  505. package/dist/mainPage/menu.d.ts.map +0 -1
  506. package/dist/mainPage/menu.js +0 -436
  507. package/dist/microblogPane/mbStyle.css +0 -267
  508. package/dist/microblogPane/microblogPane.js +0 -1031
  509. package/dist/n3Pane.css +0 -49
  510. package/dist/n3Pane.js +0 -88
  511. package/dist/outline/context.js +0 -21
  512. package/dist/outline/manager.css +0 -78
  513. package/dist/outline/manager.js +0 -2115
  514. package/dist/outline/outlineIcons.js +0 -126
  515. package/dist/outline/propertyViews.js +0 -43
  516. package/dist/outline/queryByExample.js +0 -285
  517. package/dist/outline/userInput.js +0 -1821
  518. package/dist/outline/viewAsImage.js +0 -14
  519. package/dist/outline/viewAsMbox.js +0 -21
  520. package/dist/pad/padPane.css +0 -40
  521. package/dist/pad/padPane.js +0 -421
  522. package/dist/playlist/playlistPane.js +0 -119
  523. package/dist/profileUtils/ownerProfile.d.ts +0 -5
  524. package/dist/profileUtils/ownerProfile.d.ts.map +0 -1
  525. package/dist/profileUtils/ownerProfile.js +0 -84
  526. package/dist/registerPanes.js +0 -145
  527. package/dist/schedule/schedulePane.css +0 -294
  528. package/dist/schedule/schedulePane.js +0 -1022
  529. package/dist/sharing/sharingPane.js +0 -48
  530. package/dist/slideshow/slideshowPane.js +0 -79
  531. package/dist/social/editProfileDetails.js +0 -362
  532. package/dist/social/socialPane.css +0 -1464
  533. package/dist/social/socialPane.js +0 -651
  534. package/dist/social/socialSections.js +0 -393
  535. package/dist/social/spinner.js +0 -13
  536. package/dist/social/triage.js +0 -79
  537. package/dist/solid-panes.js +0 -85648
  538. package/dist/solid-panes.js.map +0 -1
  539. package/dist/solid-panes.min.js +0 -3932
  540. package/dist/solid-panes.min.js.map +0 -1
  541. package/dist/styles/tabbedtab.css +0 -1066
  542. package/dist/styles/utilities.css +0 -5
  543. package/dist/tabbed/tabbedPane.js +0 -59
  544. package/dist/tableViewPane.js +0 -56
  545. package/dist/transaction/pane.js +0 -477
  546. package/dist/transaction/period.js +0 -323
  547. package/dist/trip/tripPane.js +0 -174
  548. package/dist/trustedApplications/trustedApplications.dom.js +0 -145
  549. package/dist/trustedApplications/trustedApplications.utils.js +0 -23
  550. package/dist/trustedApplications/trustedApplications.view.js +0 -55
  551. package/dist/ui/pane.js +0 -146
  552. package/dist/versionInfo.js +0 -41
  553. package/dist/video/videoPane.js +0 -42
@@ -0,0 +1,346 @@
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 = 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 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
@@ -0,0 +1 @@
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"],"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,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,KAAAC,IAO3Cf,EAAQ;CAAEgB,SAAStB;CAA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,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"}
@@ -0,0 +1,2 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeaderSummary.styles.cjs.js","names":[],"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":""}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerHeaderSummary.styles.esm.js","names":[],"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":""}
@@ -0,0 +1,13 @@
1
+ require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("./FileExplorerHeader.cjs.js");const e=require("./FileExplorerProvider.styles.cjs.js"),t=require("../../icons/person.cjs.js"),n=require("../../icons/friends.cjs.js");let r=require("solid-ui"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,ie,ae,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,oe,se,ce,le,ue,de,fe;function Y(e,t,n){pe(e,t),t.set(e,n)}function pe(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function X(e,t,n){return e.set(me(e,t),n),n}function Z(e,t){return e.get(me(e,t))}function me(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 Q(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(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:ve(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ve(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 ye(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:ge(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 ge(e){var t=_e(e,`string`);return typeof t==`symbol`?t:t+``}function _e(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 ve(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 ye(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 be(e){return e}var xe=t.default,Se=n.default;function Ce(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}}D=[(0,i.customElement)(`file-explorer-provider`)];var $;new(de=(l=new WeakMap,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,fe=(O=(0,i.property)({attribute:!1}),A=(0,i.property)({attribute:!1}),M=(0,i.property)({attribute:!1}),te=(0,i.property)({attribute:!1}),re=(0,i.property)({attribute:!1}),ae=(0,i.property)({attribute:!1}),P=(0,i.property)({attribute:!1}),I=(0,i.property)({attribute:!1}),R=(0,i.property)({attribute:!1}),B=(0,i.property)({attribute:!1}),H=(0,i.state)(),W=(0,i.state)(),K=(0,i.state)(),J=(0,i.state)(),se=(0,i.state)(),le=(0,a.provide)({context:r.fileExplorerContext}),`context`),c=class extends r.WebComponent{constructor(...e){super(...e),Y(this,l,(T(this),k(this,void 0))),Y(this,u,j(this,void 0)),Y(this,d,ee(this,void 0)),Y(this,f,ne(this,[])),Y(this,p,ie(this,void 0)),Y(this,m,N(this,{})),Y(this,h,F(this,!0)),Y(this,g,L(this,void 0)),Y(this,_,z(this,void 0)),Y(this,v,V(this,void 0)),Y(this,y,U(this,[])),Y(this,b,G(this,!1)),Y(this,x,q(this,!1)),Y(this,S,oe(this,!1)),Q(this,`beginEditingInSourcePane`,()=>{this.querySelector(`source-pane-source-provider`)?.beginEditing?.()}),Y(this,C,ce(this,{onEdit:this.beginEditingInSourcePane,isDirty:!1,updateDirtyState:e=>{this.isDirty!==e&&(this.isDirty=e,this.edit={...this.edit,isDirty:e},this.refreshFileExplorerContextValue())}})),Y(this,w,ue(this,Ce({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[fe](){return Z(l,this)}set context(e){X(l,this,e)}get subjectUri(){return Z(u,this)}set subjectUri(e){X(u,this,e)}get onBack(){return Z(d,this)}set onBack(e){X(d,this,e)}get relevantPanes(){return Z(f,this)}set relevantPanes(e){X(f,this,e)}get pane(){return Z(p,this)}set pane(e){X(p,this,e)}get paneRenderOptions(){return Z(m,this)}set paneRenderOptions(e){X(m,this,e)}get showHeader(){return Z(h,this)}set showHeader(e){X(h,this,e)}get handleAccessClick(){return Z(g,this)}set handleAccessClick(e){X(g,this,e)}get soloPane(){return Z(_,this)}set soloPane(e){X(_,this,e)}get openPane(){return Z(v,this)}set openPane(e){X(v,this,e)}get menuItems(){return Z(y,this)}set menuItems(e){X(y,this,e)}get isEditing(){return Z(b,this)}set isEditing(e){X(b,this,e)}get isDirty(){return Z(x,this)}set isDirty(e){X(x,this,e)}get paneSupportsEditing(){return Z(S,this)}set paneSupportsEditing(e){X(S,this,e)}get edit(){return Z(C,this)}set edit(e){X(C,this,e)}get fileExplorerContextValue(){return Z(w,this)}set fileExplorerContextValue(e){X(w,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 i=t.dom;return await Promise.all(n.map(async n=>{let a=n.label(e,t),o=``;o=n.name===`profile`?xe:n.name===`social`?Se:await this.getPaneIcon(n,e,t);let s=r.utils.AJARImage(o,a,a,i);return s.setAttribute(`slot`,`left-icon`),{label:a,icon:s,action:()=>this.openPane?.(e,n.name)}}))}refreshFileExplorerContextValue(){this.fileExplorerContextValue=Ce({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 e=(this.context?.session.store).sym(this.subjectUri);return o.html`
2
+ <div class="file-explorer-provider">
3
+ ${this.showHeader?o.html`
4
+ <file-explorer-header
5
+ .paneIcon=${this.getPaneIcon(this.pane,e,this.context)}
6
+ .menuItems=${this.menuItems}
7
+ .paneSupportsEditing=${this.paneSupportsEditing}
8
+ ></file-explorer-header>
9
+ `:o.nothing}
10
+ <slot class="pane"></slot>
11
+ </div>
12
+ `}},{e:[k,j,ee,ne,ie,N,F,L,z,V,U,G,q,oe,ce,ue,T],c:[$,E]}=he(c,[[O,1,`context`],[A,1,`subjectUri`],[M,1,`onBack`],[te,1,`relevantPanes`],[re,1,`pane`],[ae,1,`paneRenderOptions`],[P,1,`showHeader`],[I,1,`handleAccessClick`],[R,1,`soloPane`],[B,1,`openPane`],[H,1,`menuItems`],[W,1,`isEditing`],[K,1,`isDirty`],[J,1,`paneSupportsEditing`],[se,1,`edit`],[le,1,`fileExplorerContextValue`]],D,0,void 0,r.WebComponent),c),s=class extends be{constructor(){super($),Q(this,`styles`,e.default),E()}},Q(s,de,void 0),s),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return $}});
13
+ //# sourceMappingURL=FileExplorerProvider.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","nothing","utils","WebComponent","provide","fileExplorerContext","customElement","property","state","styles","personIcon","friendsIcon","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"],"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'\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 return html`\n <div class=\"file-explorer-provider\">\n ${this.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>\n `\n : nothing}\n <slot class=\"pane\"></slot>\n </div>\n `\n }\n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EAAAA,YAAY,EAAA6D,GAAAyE,EAAA,cAAAC,EAAA,CAAAxE,aAAA,CAAA,MAAAxC,CAAA,EAAA2D,EAAA,KAAA,SAC5C5E,EAAAA,OAAM,EAAA8H,EAAA,CAAA,CAAA,EAAAlD,EAAAoD,EAAA9G,GAAA,IAAA,EAAA,EAAA8G"}
@@ -0,0 +1,36 @@
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.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileExplorerProvider.d.ts","sourceRoot":"","sources":["../../../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