solid-ui 5.0.2-2 → 5.0.2-3

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 (320) hide show
  1. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  6. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  12. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  16. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
  20. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
  24. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
  28. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
  29. package/dist/chunks/DialogProvider-dagk2fHm.js +209 -0
  30. package/dist/chunks/DialogProvider-dagk2fHm.js.map +1 -0
  31. package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js +379 -0
  32. package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js.map +1 -0
  33. package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CWH98HX3.js} +466 -478
  34. package/dist/chunks/access-control-modal-CWH98HX3.js.map +1 -0
  35. package/dist/chunks/{account-D6JK-n7u.js → account-Cocvv0H3.js} +21 -20
  36. package/dist/chunks/{account-D6JK-n7u.js.map → account-Cocvv0H3.js.map} +1 -1
  37. package/dist/chunks/{auth-B_abPDvH.js → auth-Df5uYksz.js} +41 -39
  38. package/dist/chunks/{auth-B_abPDvH.js.map → auth-Df5uYksz.js.map} +1 -1
  39. package/dist/chunks/{avatar-BR3COVSQ.js → avatar-DeotTinS.js} +11 -10
  40. package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-DeotTinS.js.map} +1 -1
  41. package/dist/chunks/{button-D6qO2idW.js → button-Dy1aFjqG.js} +11 -10
  42. package/dist/chunks/{button-D6qO2idW.js.map → button-Dy1aFjqG.js.map} +1 -1
  43. package/dist/chunks/{chunk.UEBQI7VV-lcP-fpUk.js → chunk.UEBQI7VV-9M5gO7Ew.js} +9 -12
  44. package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +1 -0
  45. package/dist/chunks/{combobox-fSTp9qoT.js → combobox-BL0-8wef.js} +18 -17
  46. package/dist/chunks/{combobox-fSTp9qoT.js.map → combobox-BL0-8wef.js.map} +1 -1
  47. package/dist/chunks/{combobox-option-DOtGuKel.js → combobox-option-DjlmXt1O.js} +8 -7
  48. package/dist/chunks/{combobox-option-DOtGuKel.js.map → combobox-option-DjlmXt1O.js.map} +1 -1
  49. package/dist/chunks/{components-C8c2Ucm5.js → components-LxiwG5ae.js} +190 -201
  50. package/dist/chunks/components-LxiwG5ae.js.map +1 -0
  51. package/dist/chunks/context-By_u12WA.js +21 -0
  52. package/dist/chunks/context-By_u12WA.js.map +1 -0
  53. package/dist/chunks/custom-element-BW8Ua4c7.js +9 -0
  54. package/dist/chunks/custom-element-BW8Ua4c7.js.map +1 -0
  55. package/dist/chunks/decorators-V-B013l9.js +12 -0
  56. package/dist/chunks/decorators-V-B013l9.js.map +1 -0
  57. package/dist/chunks/{dialog-CgYK767T.js → dialog-CrmftB9c.js} +16 -15
  58. package/dist/chunks/{dialog-CgYK767T.js.map → dialog-CrmftB9c.js.map} +1 -1
  59. package/dist/chunks/{dialog-content-DjwRH1ci.js → dialog-content-Cw3xqJ45.js} +6 -5
  60. package/dist/chunks/{dialog-content-DjwRH1ci.js.map → dialog-content-Cw3xqJ45.js.map} +1 -1
  61. package/dist/chunks/{dialog-footer-GQWi8lfB.js → dialog-footer-sFQf-2zD.js} +6 -5
  62. package/dist/chunks/{dialog-footer-GQWi8lfB.js.map → dialog-footer-sFQf-2zD.js.map} +1 -1
  63. package/dist/chunks/{dialog-header-c3qOMQfb.js → dialog-header-xIWIqfZK.js} +6 -5
  64. package/dist/chunks/{dialog-header-c3qOMQfb.js.map → dialog-header-xIWIqfZK.js.map} +1 -1
  65. package/dist/chunks/{dialogs-BmtLjMzg.js → dialogs-B3tHtjMf.js} +2 -2
  66. package/dist/chunks/{dialogs-BmtLjMzg.js.map → dialogs-B3tHtjMf.js.map} +1 -1
  67. package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-Lh2u-3Cs.js} +9 -8
  68. package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-Lh2u-3Cs.js.map} +1 -1
  69. package/dist/chunks/{error-state-BD4_Wrkz.js → error-state-DnsXVj1z.js} +11 -10
  70. package/dist/chunks/{error-state-BD4_Wrkz.js.map → error-state-DnsXVj1z.js.map} +1 -1
  71. package/dist/chunks/events-CXQHDCs2.js +8 -0
  72. package/dist/chunks/events-CXQHDCs2.js.map +1 -0
  73. package/dist/chunks/file-explorer-header-B6-Q0i6V.js +963 -0
  74. package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +1 -0
  75. package/dist/chunks/file-explorer-provider-B3gUBkHg.js +296 -0
  76. package/dist/chunks/file-explorer-provider-B3gUBkHg.js.map +1 -0
  77. package/dist/chunks/globe-CsCgZcy5.js +16 -0
  78. package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
  79. package/dist/chunks/{guard-bTeM7wd7.js → guard-C39y81In.js} +11 -10
  80. package/dist/chunks/{guard-bTeM7wd7.js.map → guard-C39y81In.js.map} +1 -1
  81. package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
  82. package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
  83. package/dist/chunks/{input-Bz3l514j.js → input-Bi6ZBZQw.js} +12 -11
  84. package/dist/chunks/{input-Bz3l514j.js.map → input-Bi6ZBZQw.js.map} +1 -1
  85. package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
  86. package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
  87. package/dist/chunks/{login-button-Div4ZT4J.js → login-button-fo0P8vym.js} +10 -9
  88. package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-fo0P8vym.js.map} +1 -1
  89. package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CF2YFgID.js} +10 -9
  90. package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CF2YFgID.js.map} +1 -1
  91. package/dist/chunks/{menu-D0k2fkiE.js → menu-RumUciM-.js} +49 -47
  92. package/dist/chunks/{menu-D0k2fkiE.js.map → menu-RumUciM-.js.map} +1 -1
  93. package/dist/chunks/{menu-item-nfPpH4dN.js → menu-item-CVAZyipz.js} +11 -10
  94. package/dist/chunks/{menu-item-nfPpH4dN.js.map → menu-item-CVAZyipz.js.map} +1 -1
  95. package/dist/chunks/{photo-capture-hJaJm4TM.js → photo-capture-CAfo7y6-.js} +21 -20
  96. package/dist/chunks/photo-capture-CAfo7y6-.js.map +1 -0
  97. package/dist/chunks/{photo-capture-modal-BsHv6wmh.js → photo-capture-modal-DWmDE_Ws.js} +29 -28
  98. package/dist/chunks/{photo-capture-modal-BsHv6wmh.js.map → photo-capture-modal-DWmDE_Ws.js.map} +1 -1
  99. package/dist/chunks/provide-B5NeVMM_.js +111 -0
  100. package/dist/chunks/provide-B5NeVMM_.js.map +1 -0
  101. package/dist/chunks/{provider-Dcd1NPYx.js → provider-BbT2duMy.js} +11 -10
  102. package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-BbT2duMy.js.map} +1 -1
  103. package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-CH9bDx98.js} +30 -29
  104. package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-CH9bDx98.js.map} +1 -1
  105. package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-C_V0pIS5.js} +56 -55
  106. package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-C_V0pIS5.js.map} +1 -1
  107. package/dist/chunks/{select-option-DQan7rcB.js → select-option-U4ALXL20.js} +8 -7
  108. package/dist/chunks/{select-option-DQan7rcB.js.map → select-option-U4ALXL20.js.map} +1 -1
  109. package/dist/chunks/{select-ClPkDkGl.js → select-y1Z6fwmh.js} +10 -9
  110. package/dist/chunks/{select-ClPkDkGl.js.map → select-y1Z6fwmh.js.map} +1 -1
  111. package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-DicFpAjD.js} +10 -9
  112. package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-DicFpAjD.js.map} +1 -1
  113. package/dist/chunks/{solid-emblem-DwLdkGuO.js → solid-emblem-CeCXTpve.js} +8 -7
  114. package/dist/chunks/{solid-emblem-DwLdkGuO.js.map → solid-emblem-CeCXTpve.js.map} +1 -1
  115. package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
  116. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
  117. package/dist/chunks/{src-Dx7k_VIe.js → src-Bhtor0ZC.js} +2311 -2282
  118. package/dist/chunks/src-Bhtor0ZC.js.map +1 -0
  119. package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
  120. package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
  121. package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
  122. package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
  123. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
  124. package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
  125. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
  126. package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
  127. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  128. package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
  129. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  130. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
  131. package/dist/components/access-control-modal.js +1 -1
  132. package/dist/components/account/Account.esm.js.map +1 -1
  133. package/dist/components/account.js +1 -1
  134. package/dist/components/all.cjs.js +1 -1
  135. package/dist/components/all.esm.js +3 -0
  136. package/dist/components/avatar.js +1 -1
  137. package/dist/components/button/Button.esm.js.map +1 -1
  138. package/dist/components/button.js +1 -1
  139. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  140. package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
  141. package/dist/components/combobox-option.js +1 -1
  142. package/dist/components/combobox.js +1 -1
  143. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  144. package/dist/components/dialog-content.js +1 -1
  145. package/dist/components/dialog-footer.js +1 -1
  146. package/dist/components/dialog-header.js +1 -1
  147. package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
  148. package/dist/components/dialog-provider.js +1 -1
  149. package/dist/components/dialog.js +1 -1
  150. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  151. package/dist/components/dialogs-root.js +1 -1
  152. package/dist/components/error-state/ErrorState.esm.js.map +1 -1
  153. package/dist/components/error-state.js +1 -1
  154. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
  155. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  156. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
  157. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  158. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +309 -0
  159. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  160. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  161. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  162. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
  163. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  164. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
  165. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  166. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
  167. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  168. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +317 -0
  169. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  170. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  171. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  172. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
  173. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  174. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
  175. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  176. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
  177. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  178. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +355 -0
  179. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  180. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  181. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  182. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
  183. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  184. package/dist/components/file-explorer-header/index.cjs.js +2 -0
  185. package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
  186. package/dist/components/file-explorer-header/index.d.ts +4 -0
  187. package/dist/components/file-explorer-header/index.d.ts.map +1 -0
  188. package/dist/components/file-explorer-header/index.esm.js +6 -0
  189. package/dist/components/file-explorer-header/index.esm.js.map +1 -0
  190. package/dist/components/file-explorer-header/types.d.ts +11 -0
  191. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  192. package/dist/components/file-explorer-header.js +1 -0
  193. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
  194. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
  195. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
  196. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
  197. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +296 -0
  198. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
  199. package/dist/components/file-explorer-provider/index.cjs.js +2 -0
  200. package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
  201. package/dist/components/file-explorer-provider/index.d.ts +4 -0
  202. package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
  203. package/dist/components/file-explorer-provider/index.esm.js +6 -0
  204. package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
  205. package/dist/components/file-explorer-provider.js +1 -0
  206. package/dist/components/guard.js +1 -1
  207. package/dist/components/index.cjs.js +1 -1
  208. package/dist/components/index.d.ts.map +1 -1
  209. package/dist/components/index.esm.js +1 -0
  210. package/dist/components/input/Input.esm.js.map +1 -1
  211. package/dist/components/input.js +1 -1
  212. package/dist/components/login-button.js +1 -1
  213. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  214. package/dist/components/login-modal.js +1 -1
  215. package/dist/components/logout-button.js +1 -1
  216. package/dist/components/menu/Menu.esm.js.map +1 -1
  217. package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
  218. package/dist/components/menu-item.js +1 -1
  219. package/dist/components/menu.js +1 -1
  220. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
  221. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
  222. package/dist/components/photo-capture-modal.js +1 -1
  223. package/dist/components/photo-capture.js +1 -1
  224. package/dist/components/provider/Provider.esm.js.map +1 -1
  225. package/dist/components/provider.js +1 -1
  226. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  227. package/dist/components/rdf-form.js +1 -1
  228. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  229. package/dist/components/rdf-input.js +1 -1
  230. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  231. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  232. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
  233. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  234. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
  235. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  236. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +343 -0
  237. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  238. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
  239. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
  240. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
  241. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
  242. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
  243. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
  244. package/dist/components/resource-actions-menu/index.cjs.js +1 -0
  245. package/dist/components/resource-actions-menu/index.d.ts +2 -0
  246. package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
  247. package/dist/components/resource-actions-menu/index.esm.js +1 -0
  248. package/dist/components/resource-actions-menu.js +1 -0
  249. package/dist/components/select/Select.esm.js.map +1 -1
  250. package/dist/components/select-option/SelectOption.esm.js.map +1 -1
  251. package/dist/components/select-option.js +1 -1
  252. package/dist/components/select.js +1 -1
  253. package/dist/components/signup-button.js +1 -1
  254. package/dist/components/solid-emblem.js +1 -1
  255. package/dist/components.js +31 -28
  256. package/dist/index.cjs.js +1 -1
  257. package/dist/index.cjs.js.map +1 -1
  258. package/dist/index.d.ts +1 -1
  259. package/dist/index.d.ts.map +1 -1
  260. package/dist/index.esm.js +8 -4
  261. package/dist/index.esm.js.map +1 -1
  262. package/dist/index.js +12 -9
  263. package/dist/lib/context/noopContext.cjs.js +2 -0
  264. package/dist/lib/context/noopContext.cjs.js.map +1 -0
  265. package/dist/lib/context/noopContext.d.ts +2 -0
  266. package/dist/lib/context/noopContext.d.ts.map +1 -0
  267. package/dist/lib/context/noopContext.esm.js +18 -0
  268. package/dist/lib/context/noopContext.esm.js.map +1 -0
  269. package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
  270. package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
  271. package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
  272. package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
  273. package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
  274. package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
  275. package/dist/lib/file-explorer/context.cjs.js +1 -1
  276. package/dist/lib/file-explorer/context.cjs.js.map +1 -1
  277. package/dist/lib/file-explorer/context.d.ts +12 -14
  278. package/dist/lib/file-explorer/context.d.ts.map +1 -1
  279. package/dist/lib/file-explorer/context.esm.js +4 -3
  280. package/dist/lib/file-explorer/context.esm.js.map +1 -1
  281. package/dist/lib/file-explorer/events.cjs.js +2 -0
  282. package/dist/lib/file-explorer/events.cjs.js.map +1 -0
  283. package/dist/lib/file-explorer/events.d.ts +16 -0
  284. package/dist/lib/file-explorer/events.d.ts.map +1 -0
  285. package/dist/lib/file-explorer/events.esm.js +8 -0
  286. package/dist/lib/file-explorer/events.esm.js.map +1 -0
  287. package/dist/lib/file-explorer/index.cjs.js +1 -0
  288. package/dist/lib/file-explorer/index.d.ts +5 -0
  289. package/dist/lib/file-explorer/index.d.ts.map +1 -0
  290. package/dist/lib/file-explorer/index.esm.js +5 -0
  291. package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
  292. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
  293. package/dist/lib/file-explorer/relevant-panes.d.ts +15 -0
  294. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
  295. package/dist/lib/file-explorer/relevant-panes.esm.js +14 -0
  296. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
  297. package/dist/loader.js +12 -9
  298. package/dist/solid-ui.js +211 -107
  299. package/dist/solid-ui.min.js +211 -107
  300. package/dist/solid-ui.min.js.map +1 -1
  301. package/dist/theme.css +1 -1
  302. package/dist/utils/podUtils.cjs.js +2 -0
  303. package/dist/utils/podUtils.cjs.js.map +1 -0
  304. package/dist/utils/podUtils.d.ts +6 -0
  305. package/dist/utils/podUtils.d.ts.map +1 -0
  306. package/dist/utils/podUtils.esm.js +22 -0
  307. package/dist/utils/podUtils.esm.js.map +1 -0
  308. package/dist/utils/webIdUtils.cjs.js +1 -0
  309. package/dist/utils/webIdUtils.d.ts +7 -0
  310. package/dist/utils/webIdUtils.d.ts.map +1 -0
  311. package/dist/utils/webIdUtils.esm.js +3 -0
  312. package/package.json +3 -3
  313. package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
  314. package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
  315. package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
  316. package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +0 -1
  317. package/dist/chunks/components-C8c2Ucm5.js.map +0 -1
  318. package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
  319. package/dist/chunks/photo-capture-hJaJm4TM.js.map +0 -1
  320. package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
@@ -0,0 +1,963 @@
1
+ import { E as e, t } from "./solidLogicSingleton.esm-BXyHD7mn.js";
2
+ import { u as n } from "./style-CXaw5EYi.js";
3
+ import { S as r } from "./widgets-BBEQu0CS.js";
4
+ import { c as i, i as a, o, p as s, r as c, u as l, y as u } from "./components-LxiwG5ae.js";
5
+ import { t as d } from "./custom-element-BW8Ua4c7.js";
6
+ import { t as f } from "./query-DjAOg-tk.js";
7
+ import "./button-Dy1aFjqG.js";
8
+ import { n as p, t as m } from "./context-By_u12WA.js";
9
+ import { n as h, t as g } from "./events-CXQHDCs2.js";
10
+ import "./globe-CsCgZcy5.js";
11
+ import { n as _, r as v } from "./ResourceActionsMenu-o-8kWx8z.js";
12
+ // ~icons/lucide/share-2
13
+ var y = class extends HTMLElement {
14
+ constructor() {
15
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98\"/></g></svg>";
16
+ }
17
+ };
18
+ customElements.get("icon-lucide-share-2") || customElements.define("icon-lucide-share-2", y);
19
+ // src/components/file-explorer-header/FileExplorerHeader.styles.css
20
+ var b = s`:host{& header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}}`, x = class extends HTMLElement {
21
+ constructor() {
22
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"16\" r=\"1\"/><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 10 0v3\"/></g></svg>";
23
+ }
24
+ };
25
+ customElements.get("icon-lucide-lock-keyhole") || customElements.define("icon-lucide-lock-keyhole", x);
26
+ // ~icons/lucide/arrow-left
27
+ var S = class extends HTMLElement {
28
+ constructor() {
29
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"/></svg>";
30
+ }
31
+ };
32
+ customElements.get("icon-lucide-arrow-left") || customElements.define("icon-lucide-arrow-left", S);
33
+ // src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css
34
+ var C = s`: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}& 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}& .resource-info{flex-direction:column;min-width:0;display:flex}& .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}& .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}& .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}& 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}& .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}& icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}& .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}& icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}& icon-lucide-globe,& icon-lucide-lock-keyhole{width:.875rem;height:.875rem}& .resource-date{font-size:inherit}& icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){& .file-explorer-header-summary{gap:7px}& h1{font-size:14px}& .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}& p{font-size:14px}& .resource-date{font-size:10px}& .public,& .private{font-size:9px}& icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}}`, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge;
35
+ function M(e, t, n) {
36
+ _e(e, t), t.set(e, n);
37
+ }
38
+ function _e(e, t) {
39
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
40
+ }
41
+ function N(e, t, n) {
42
+ return e.set(ve(e, t), n), n;
43
+ }
44
+ function P(e, t) {
45
+ return e.get(ve(e, t));
46
+ }
47
+ function ve(e, t, n) {
48
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
49
+ throw TypeError("Private element is not present on this object");
50
+ }
51
+ function F(e, t, n) {
52
+ return (t = be(t)) in e ? Object.defineProperty(e, t, {
53
+ value: n,
54
+ enumerable: !0,
55
+ configurable: !0,
56
+ writable: !0
57
+ }) : e[t] = n, e;
58
+ }
59
+ function ye(e, t, n, r, i, a) {
60
+ function o(e, t, n) {
61
+ return function(r, i) {
62
+ return n && n(r), e[t].call(r, i);
63
+ };
64
+ }
65
+ function s(e, t) {
66
+ for (var n = 0; n < e.length; n++) e[n].call(t);
67
+ return t;
68
+ }
69
+ function c(e, t, n, r) {
70
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
71
+ return e;
72
+ }
73
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
74
+ function h(e) {
75
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
76
+ }
77
+ var g, _ = t[0], v = t[3], y = !l;
78
+ if (!y) {
79
+ n || Array.isArray(_) || (_ = [_]);
80
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
81
+ d ? (f || p ? b = {
82
+ get: Se(function() {
83
+ return v(this);
84
+ }, r, "get"),
85
+ set: function(e) {
86
+ t[4](this, e);
87
+ }
88
+ } : b[S] = v, f || Se(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
89
+ }
90
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
91
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
92
+ kind: [
93
+ "field",
94
+ "accessor",
95
+ "method",
96
+ "getter",
97
+ "setter",
98
+ "class"
99
+ ][i],
100
+ name: r,
101
+ metadata: a,
102
+ addInitializer: function(e, t) {
103
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
104
+ c(t, "An initializer", "be", !0), s.push(t);
105
+ }.bind(null, D)
106
+ };
107
+ try {
108
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
109
+ else {
110
+ var k, A;
111
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
112
+ return h(e), b.value;
113
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
114
+ return e[r];
115
+ }, (i < 2 || i === 4) && (A = function(e, t) {
116
+ e[r] = t;
117
+ }));
118
+ var j = O.access = { has: d ? m.bind() : function(e) {
119
+ return r in e;
120
+ } };
121
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
122
+ get: b.get,
123
+ set: b.set
124
+ } : b[S], O), p) {
125
+ 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);
126
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
127
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
128
+ }
129
+ } finally {
130
+ D.v = !0;
131
+ }
132
+ }
133
+ return (f || p) && l.push(function(e, t) {
134
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
135
+ return t;
136
+ }), 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;
137
+ }
138
+ function u(e, t) {
139
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
140
+ configurable: !0,
141
+ enumerable: !0,
142
+ value: t
143
+ });
144
+ }
145
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
146
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
147
+ var i, a, o = [], c = function(t) {
148
+ return Ce(t) === e;
149
+ }, u = /* @__PURE__ */ new Map();
150
+ function d(e) {
151
+ e && o.push(s.bind(null, e));
152
+ }
153
+ for (var f = 0; f < t.length; f++) {
154
+ var p = t[f];
155
+ if (Array.isArray(p)) {
156
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
157
+ if (!y && !g) {
158
+ var x = u.get(b);
159
+ 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);
160
+ u.set(b, !(m > 2) || m);
161
+ }
162
+ l(v ? e : e.prototype, p, _, g ? "#" + h : be(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
163
+ }
164
+ }
165
+ return d(i), d(a), o;
166
+ }(e, t, i, f);
167
+ return n.length || u(e, f), {
168
+ e: p,
169
+ get c() {
170
+ var t = [];
171
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
172
+ }
173
+ };
174
+ }
175
+ function be(e) {
176
+ var t = xe(e, "string");
177
+ return typeof t == "symbol" ? t : t + "";
178
+ }
179
+ function xe(e, t) {
180
+ if (typeof e != "object" || !e) return e;
181
+ var n;
182
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
183
+ var r = n.call(e, t || "default");
184
+ if (typeof r != "object") return r;
185
+ throw TypeError("@@toPrimitive must return a primitive value.");
186
+ }
187
+ return (t === "string" ? String : Number)(e);
188
+ }
189
+ function Se(e, t, n) {
190
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
191
+ try {
192
+ Object.defineProperty(e, "name", {
193
+ configurable: !0,
194
+ value: n ? n + " " + t : t
195
+ });
196
+ } catch {}
197
+ return e;
198
+ }
199
+ function Ce(e) {
200
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
201
+ return e;
202
+ }
203
+ function we(e) {
204
+ return e;
205
+ }
206
+ ne = [d("solid-ui-file-explorer-header-summary")];
207
+ var Te;
208
+ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), ge = (re = u({
209
+ context: p,
210
+ subscribe: !0
211
+ }), ae = a({ attribute: !1 }), se = a({ attribute: !1 }), le = a({ attribute: !1 }), de = c(), pe = f("h1"), "_draggableSubjectUri"), T = class extends o {
212
+ constructor(...e) {
213
+ super(...e), F(this, ge, void ee(this)), F(this, "_paneIconGeneration", 0), M(this, E, ie(this, m)), M(this, D, oe(this)), M(this, O, ce(this)), M(this, k, ue(this, {
214
+ modified: void 0,
215
+ isPublic: !1
216
+ })), M(this, A, fe(this, void 0)), M(this, j, me(this, null));
217
+ }
218
+ get fileExplorerContext() {
219
+ return P(E, this);
220
+ }
221
+ set fileExplorerContext(e) {
222
+ N(E, this, e);
223
+ }
224
+ get paneIcon() {
225
+ return P(D, this);
226
+ }
227
+ set paneIcon(e) {
228
+ N(D, this, e);
229
+ }
230
+ get onBackClick() {
231
+ return P(O, this);
232
+ }
233
+ set onBackClick(e) {
234
+ N(O, this, e);
235
+ }
236
+ get responseMetadata() {
237
+ return P(k, this);
238
+ }
239
+ set responseMetadata(e) {
240
+ N(k, this, e);
241
+ }
242
+ get resolvedPaneIcon() {
243
+ return P(A, this);
244
+ }
245
+ set resolvedPaneIcon(e) {
246
+ N(A, this, e);
247
+ }
248
+ get titleHeading() {
249
+ return P(j, this);
250
+ }
251
+ set titleHeading(e) {
252
+ N(j, this, e);
253
+ }
254
+ formatModifiedDate(e) {
255
+ if (!e) return "";
256
+ let t = new Date(e);
257
+ if (Number.isNaN(t.getTime())) return e;
258
+ let n = new Intl.DateTimeFormat("en-GB", {
259
+ day: "2-digit",
260
+ month: "short",
261
+ year: "numeric",
262
+ hour: "2-digit",
263
+ minute: "2-digit",
264
+ hour12: !0
265
+ }).formatToParts(t), r = (e) => n.find((t) => t.type === e)?.value ?? "";
266
+ return `${r("day")} ${r("month")}, ${r("year")} at ${r("hour")}:${r("minute")} ${r("dayPeriod").toUpperCase()}`;
267
+ }
268
+ willUpdate(e) {
269
+ if (e.has("paneIcon")) {
270
+ let e = ++this._paneIconGeneration;
271
+ this.resolvedPaneIcon = void 0, this.resolvePaneIcon(this.paneIcon, e);
272
+ }
273
+ }
274
+ updated() {
275
+ this.titleHeading && this.fileExplorerContext?.subjectUri && this._draggableSubjectUri !== this.fileExplorerContext.subjectUri && (r(this.titleHeading, e(this.fileExplorerContext.subjectUri)), this._draggableSubjectUri = this.fileExplorerContext.subjectUri);
276
+ }
277
+ async resolvePaneIcon(e, t) {
278
+ try {
279
+ if (e == null) return;
280
+ let n = await e;
281
+ t === this._paneIconGeneration && (this.resolvedPaneIcon = n ?? void 0);
282
+ } catch (e) {
283
+ t === this._paneIconGeneration && (this.resolvedPaneIcon = void 0, console.warn("file-explorer-header-summary: failed to resolve pane icon", e));
284
+ }
285
+ }
286
+ renderContainerResourceHeader(e, t) {
287
+ let n = _(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
288
+ return l`
289
+ <div class="container-info">
290
+ <h1>
291
+ <span>${e}</span>
292
+ </h1>
293
+ <p>
294
+ ${n} items
295
+ ${t ? l`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : l`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
296
+ </p>
297
+ </div>
298
+ `;
299
+ }
300
+ renderResourceHeader(e, t) {
301
+ let n = this.formatModifiedDate(this.responseMetadata.modified);
302
+ return l`
303
+ <div class="resource-info">
304
+ <h1>
305
+ <span>${e}</span>
306
+ </h1>
307
+ <p><span class="resource-date">${n}</span> ${t ? l`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : l`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
308
+ </div>
309
+ `;
310
+ }
311
+ render() {
312
+ let t = this.fileExplorerContext?.subjectUri ? e(this.fileExplorerContext.subjectUri) : void 0, r = t ? n(t) : "", i = this.responseMetadata.isPublic, a = v(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
313
+ return l`
314
+ <div class="file-explorer-header-summary">
315
+ <solid-ui-button
316
+ variant="ghost"
317
+ @click=${this.onBackClick}
318
+ title="Back"
319
+ >
320
+ <icon-lucide-arrow-left></icon-lucide-arrow-left>
321
+ <span class="sr-only">Back</span>
322
+ </solid-ui-button>
323
+ <span class="pane-icon">
324
+ ${this.resolvedPaneIcon ? l`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
325
+ </span>
326
+ ${a ? this.renderContainerResourceHeader(r, i) : this.renderResourceHeader(r, i)}
327
+ </div>
328
+ </div>
329
+ `;
330
+ }
331
+ }, {e: [ie, oe, ce, ue, fe, me, ee], c: [Te, te]} = ye(T, [
332
+ [
333
+ re,
334
+ 1,
335
+ "fileExplorerContext"
336
+ ],
337
+ [
338
+ ae,
339
+ 1,
340
+ "paneIcon"
341
+ ],
342
+ [
343
+ se,
344
+ 1,
345
+ "onBackClick"
346
+ ],
347
+ [
348
+ le,
349
+ 1,
350
+ "responseMetadata"
351
+ ],
352
+ [
353
+ de,
354
+ 1,
355
+ "resolvedPaneIcon"
356
+ ],
357
+ [
358
+ pe,
359
+ 1,
360
+ "titleHeading"
361
+ ]
362
+ ], ne, 0, void 0, o), T), w = class extends we {
363
+ constructor() {
364
+ super(Te), F(this, "styles", C), te();
365
+ }
366
+ }, F(w, he, void 0), w)();
367
+ // src/components/file-explorer-header/FileExplorerHeaderControls.styles.css
368
+ var Ee = s`:host{flex:0 auto;min-width:0;& div{text-align:right;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}& div>*{flex:0 auto}& .file-explorer-header-action-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);padding:0}& .dirtyIndicator{color:#92400e;white-space:nowrap;background:#fffbeb;border:1px solid #f59e0b;border-radius:999px;align-items:center;padding:4px 8px;font-size:.72rem;font-weight:600;line-height:1;display:inline-flex}& icon-lucide-user-round-cog,& icon-lucide-pencil{width:16px;height:16px}@media (width<=900px){& div{padding-right:3px}}@media (width<=600px){& div{justify-content:flex-start;gap:5px}& .file-explorer-header-action-button{display:none}& icon-lucide-ellipsis-vertical{aspect-ratio:1;flex-shrink:0;width:15.36px;height:15.36px}}}`, De, Oe, I, L, R, z, B, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue;
369
+ function V(e, t, n) {
370
+ We(e, t), t.set(e, n);
371
+ }
372
+ function We(e, t) {
373
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
374
+ }
375
+ function H(e, t, n) {
376
+ return e.set(Ge(e, t), n), n;
377
+ }
378
+ function U(e, t) {
379
+ return e.get(Ge(e, t));
380
+ }
381
+ function Ge(e, t, n) {
382
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
383
+ throw TypeError("Private element is not present on this object");
384
+ }
385
+ function W(e, t, n) {
386
+ return (t = qe(t)) in e ? Object.defineProperty(e, t, {
387
+ value: n,
388
+ enumerable: !0,
389
+ configurable: !0,
390
+ writable: !0
391
+ }) : e[t] = n, e;
392
+ }
393
+ function Ke(e, t, n, r, i, a) {
394
+ function o(e, t, n) {
395
+ return function(r, i) {
396
+ return n && n(r), e[t].call(r, i);
397
+ };
398
+ }
399
+ function s(e, t) {
400
+ for (var n = 0; n < e.length; n++) e[n].call(t);
401
+ return t;
402
+ }
403
+ function c(e, t, n, r) {
404
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
405
+ return e;
406
+ }
407
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
408
+ function h(e) {
409
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
410
+ }
411
+ var g, _ = t[0], v = t[3], y = !l;
412
+ if (!y) {
413
+ n || Array.isArray(_) || (_ = [_]);
414
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
415
+ d ? (f || p ? b = {
416
+ get: Ye(function() {
417
+ return v(this);
418
+ }, r, "get"),
419
+ set: function(e) {
420
+ t[4](this, e);
421
+ }
422
+ } : b[S] = v, f || Ye(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
423
+ }
424
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
425
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
426
+ kind: [
427
+ "field",
428
+ "accessor",
429
+ "method",
430
+ "getter",
431
+ "setter",
432
+ "class"
433
+ ][i],
434
+ name: r,
435
+ metadata: a,
436
+ addInitializer: function(e, t) {
437
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
438
+ c(t, "An initializer", "be", !0), s.push(t);
439
+ }.bind(null, D)
440
+ };
441
+ try {
442
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
443
+ else {
444
+ var k, A;
445
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
446
+ return h(e), b.value;
447
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
448
+ return e[r];
449
+ }, (i < 2 || i === 4) && (A = function(e, t) {
450
+ e[r] = t;
451
+ }));
452
+ var j = O.access = { has: d ? m.bind() : function(e) {
453
+ return r in e;
454
+ } };
455
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
456
+ get: b.get,
457
+ set: b.set
458
+ } : b[S], O), p) {
459
+ 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);
460
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
461
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
462
+ }
463
+ } finally {
464
+ D.v = !0;
465
+ }
466
+ }
467
+ return (f || p) && l.push(function(e, t) {
468
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
469
+ return t;
470
+ }), 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;
471
+ }
472
+ function u(e, t) {
473
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
474
+ configurable: !0,
475
+ enumerable: !0,
476
+ value: t
477
+ });
478
+ }
479
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
480
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
481
+ var i, a, o = [], c = function(t) {
482
+ return Xe(t) === e;
483
+ }, u = /* @__PURE__ */ new Map();
484
+ function d(e) {
485
+ e && o.push(s.bind(null, e));
486
+ }
487
+ for (var f = 0; f < t.length; f++) {
488
+ var p = t[f];
489
+ if (Array.isArray(p)) {
490
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
491
+ if (!y && !g) {
492
+ var x = u.get(b);
493
+ 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);
494
+ u.set(b, !(m > 2) || m);
495
+ }
496
+ l(v ? e : e.prototype, p, _, g ? "#" + h : qe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
497
+ }
498
+ }
499
+ return d(i), d(a), o;
500
+ }(e, t, i, f);
501
+ return n.length || u(e, f), {
502
+ e: p,
503
+ get c() {
504
+ var t = [];
505
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
506
+ }
507
+ };
508
+ }
509
+ function qe(e) {
510
+ var t = Je(e, "string");
511
+ return typeof t == "symbol" ? t : t + "";
512
+ }
513
+ function Je(e, t) {
514
+ if (typeof e != "object" || !e) return e;
515
+ var n;
516
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
517
+ var r = n.call(e, t || "default");
518
+ if (typeof r != "object") return r;
519
+ throw TypeError("@@toPrimitive must return a primitive value.");
520
+ }
521
+ return (t === "string" ? String : Number)(e);
522
+ }
523
+ function Ye(e, t, n) {
524
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
525
+ try {
526
+ Object.defineProperty(e, "name", {
527
+ configurable: !0,
528
+ value: n ? n + " " + t : t
529
+ });
530
+ } catch {}
531
+ return e;
532
+ }
533
+ function Xe(e) {
534
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
535
+ return e;
536
+ }
537
+ function Ze(e) {
538
+ return e;
539
+ }
540
+ je = [d("solid-ui-file-explorer-header-controls")];
541
+ var Qe;
542
+ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), Ue = (Me = u({
543
+ context: p,
544
+ subscribe: !0
545
+ }), Pe = a({ attribute: !1 }), Ie = a({ type: Boolean }), Re = a({ type: Boolean }), Be = c(), "mobileMediaQuery"), Oe = class extends o {
546
+ constructor(...e) {
547
+ super(...e), W(this, Ue, void ke(this)), W(this, "mobileQuery", "(max-width: 600px)"), W(this, "handleMobileMediaChange", (e) => {
548
+ this.isMobile = e.matches;
549
+ }), V(this, I, Ne(this, m)), V(this, L, Fe(this, [])), V(this, R, Le(this, !1)), V(this, z, ze(this, !1)), V(this, B, Ve(this, typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(max-width: 600px)").matches)), W(this, "handleManageAccess", () => {
550
+ let e = this.fileExplorerContext.subjectUri;
551
+ e && this.dispatchEvent(new CustomEvent(h, {
552
+ bubbles: !0,
553
+ composed: !0,
554
+ detail: { subjectUri: e }
555
+ }));
556
+ });
557
+ }
558
+ get fileExplorerContext() {
559
+ return U(I, this);
560
+ }
561
+ set fileExplorerContext(e) {
562
+ H(I, this, e);
563
+ }
564
+ get menuItems() {
565
+ return U(L, this);
566
+ }
567
+ set menuItems(e) {
568
+ H(L, this, e);
569
+ }
570
+ get canEdit() {
571
+ return U(R, this);
572
+ }
573
+ set canEdit(e) {
574
+ H(R, this, e);
575
+ }
576
+ get canManageAccess() {
577
+ return U(z, this);
578
+ }
579
+ set canManageAccess(e) {
580
+ H(z, this, e);
581
+ }
582
+ get isMobile() {
583
+ return U(B, this);
584
+ }
585
+ set isMobile(e) {
586
+ H(B, this, e);
587
+ }
588
+ connectedCallback() {
589
+ super.connectedCallback(), typeof window < "u" && typeof window.matchMedia == "function" && (this.mobileMediaQuery = window.matchMedia(this.mobileQuery), this.isMobile = this.mobileMediaQuery.matches, this.mobileMediaQuery.addEventListener("change", this.handleMobileMediaChange));
590
+ }
591
+ disconnectedCallback() {
592
+ this.mobileMediaQuery?.removeEventListener("change", this.handleMobileMediaChange), this.mobileMediaQuery = void 0, super.disconnectedCallback();
593
+ }
594
+ getEditTooltip() {
595
+ return this.canEdit ? "Edit" : "No Access";
596
+ }
597
+ renderDirtyIndicator() {
598
+ return this.fileExplorerContext.isDirty ? l`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>` : i;
599
+ }
600
+ render() {
601
+ let e = v(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri), t = this.fileExplorerContext.canEdit;
602
+ return l`
603
+ <div>
604
+ ${this.renderDirtyIndicator()}
605
+ ${!e && !this.isMobile && this.canManageAccess ? l`
606
+ <solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.handleManageAccess}>
607
+ <icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
608
+ <span class="sr-only">Manage access</span>
609
+ </solid-ui-button>
610
+ ${t ? l`
611
+ <solid-ui-button
612
+ class="file-explorer-header-action-button"
613
+ variant="ghost"
614
+ title=${this.getEditTooltip()}
615
+ ?disabled=${!this.canEdit}
616
+ @click=${this.fileExplorerContext.beginEditing}
617
+ >
618
+ <icon-lucide-pencil slot="icon"></icon-lucide-pencil>
619
+ <span class="sr-only">Edit</span>
620
+ </solid-ui-button>
621
+ ` : i}
622
+ ` : i}
623
+ <solid-ui-resource-actions-menu
624
+ .store=${this.fileExplorerContext.store}
625
+ .handleAccessClick=${this.handleManageAccess}
626
+ .handleEditingClick=${this.fileExplorerContext.beginEditing}
627
+ .paneSupportsEditing=${this.fileExplorerContext.canEdit}
628
+ .canEdit=${this.canEdit}
629
+ .canManageAccess=${this.canManageAccess}
630
+ .subjectUri=${this.fileExplorerContext.subjectUri}
631
+ .menuItems=${this.menuItems}
632
+ .isMobile=${this.isMobile}
633
+ ></solid-ui-resource-actions-menu>
634
+ </div>
635
+ `;
636
+ }
637
+ }, {e: [Ne, Fe, Le, ze, Ve, ke], c: [Qe, Ae]} = Ke(Oe, [
638
+ [
639
+ Me,
640
+ 1,
641
+ "fileExplorerContext"
642
+ ],
643
+ [
644
+ Pe,
645
+ 1,
646
+ "menuItems"
647
+ ],
648
+ [
649
+ Ie,
650
+ 1,
651
+ "canEdit"
652
+ ],
653
+ [
654
+ Re,
655
+ 1,
656
+ "canManageAccess"
657
+ ],
658
+ [
659
+ Be,
660
+ 1,
661
+ "isMobile"
662
+ ]
663
+ ], je, 0, void 0, o), Oe), De = class extends Ze {
664
+ constructor() {
665
+ super(Qe), W(this, "styles", Ee), Ae();
666
+ }
667
+ }, W(De, He, void 0), De)();
668
+ // src/components/file-explorer-header/FileExplorerHeader.ts
669
+ var $e, et, G, K, q, J, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt;
670
+ function Y(e, t, n) {
671
+ mt(e, t), t.set(e, n);
672
+ }
673
+ function mt(e, t) {
674
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
675
+ }
676
+ function X(e, t, n) {
677
+ return e.set(ht(e, t), n), n;
678
+ }
679
+ function Z(e, t) {
680
+ return e.get(ht(e, t));
681
+ }
682
+ function ht(e, t, n) {
683
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
684
+ throw TypeError("Private element is not present on this object");
685
+ }
686
+ function Q(e, t, n) {
687
+ return (t = _t(t)) in e ? Object.defineProperty(e, t, {
688
+ value: n,
689
+ enumerable: !0,
690
+ configurable: !0,
691
+ writable: !0
692
+ }) : e[t] = n, e;
693
+ }
694
+ function gt(e, t, n, r, i, a) {
695
+ function o(e, t, n) {
696
+ return function(r, i) {
697
+ return n && n(r), e[t].call(r, i);
698
+ };
699
+ }
700
+ function s(e, t) {
701
+ for (var n = 0; n < e.length; n++) e[n].call(t);
702
+ return t;
703
+ }
704
+ function c(e, t, n, r) {
705
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
706
+ return e;
707
+ }
708
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
709
+ function h(e) {
710
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
711
+ }
712
+ var g, _ = t[0], v = t[3], y = !l;
713
+ if (!y) {
714
+ n || Array.isArray(_) || (_ = [_]);
715
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
716
+ d ? (f || p ? b = {
717
+ get: yt(function() {
718
+ return v(this);
719
+ }, r, "get"),
720
+ set: function(e) {
721
+ t[4](this, e);
722
+ }
723
+ } : b[S] = v, f || yt(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
724
+ }
725
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
726
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
727
+ kind: [
728
+ "field",
729
+ "accessor",
730
+ "method",
731
+ "getter",
732
+ "setter",
733
+ "class"
734
+ ][i],
735
+ name: r,
736
+ metadata: a,
737
+ addInitializer: function(e, t) {
738
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
739
+ c(t, "An initializer", "be", !0), s.push(t);
740
+ }.bind(null, D)
741
+ };
742
+ try {
743
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
744
+ else {
745
+ var k, A;
746
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
747
+ return h(e), b.value;
748
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
749
+ return e[r];
750
+ }, (i < 2 || i === 4) && (A = function(e, t) {
751
+ e[r] = t;
752
+ }));
753
+ var j = O.access = { has: d ? m.bind() : function(e) {
754
+ return r in e;
755
+ } };
756
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
757
+ get: b.get,
758
+ set: b.set
759
+ } : b[S], O), p) {
760
+ 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);
761
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
762
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
763
+ }
764
+ } finally {
765
+ D.v = !0;
766
+ }
767
+ }
768
+ return (f || p) && l.push(function(e, t) {
769
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
770
+ return t;
771
+ }), 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;
772
+ }
773
+ function u(e, t) {
774
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
775
+ configurable: !0,
776
+ enumerable: !0,
777
+ value: t
778
+ });
779
+ }
780
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
781
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
782
+ var i, a, o = [], c = function(t) {
783
+ return bt(t) === e;
784
+ }, u = /* @__PURE__ */ new Map();
785
+ function d(e) {
786
+ e && o.push(s.bind(null, e));
787
+ }
788
+ for (var f = 0; f < t.length; f++) {
789
+ var p = t[f];
790
+ if (Array.isArray(p)) {
791
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
792
+ if (!y && !g) {
793
+ var x = u.get(b);
794
+ 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);
795
+ u.set(b, !(m > 2) || m);
796
+ }
797
+ l(v ? e : e.prototype, p, _, g ? "#" + h : _t(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
798
+ }
799
+ }
800
+ return d(i), d(a), o;
801
+ }(e, t, i, f);
802
+ return n.length || u(e, f), {
803
+ e: p,
804
+ get c() {
805
+ var t = [];
806
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
807
+ }
808
+ };
809
+ }
810
+ function _t(e) {
811
+ var t = vt(e, "string");
812
+ return typeof t == "symbol" ? t : t + "";
813
+ }
814
+ function vt(e, t) {
815
+ if (typeof e != "object" || !e) return e;
816
+ var n;
817
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
818
+ var r = n.call(e, t || "default");
819
+ if (typeof r != "object") return r;
820
+ throw TypeError("@@toPrimitive must return a primitive value.");
821
+ }
822
+ return (t === "string" ? String : Number)(e);
823
+ }
824
+ function yt(e, t, n) {
825
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
826
+ try {
827
+ Object.defineProperty(e, "name", {
828
+ configurable: !0,
829
+ value: n ? n + " " + t : t
830
+ });
831
+ } catch {}
832
+ return e;
833
+ }
834
+ function bt(e) {
835
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
836
+ return e;
837
+ }
838
+ function xt(e) {
839
+ return e;
840
+ }
841
+ rt = [d("solid-ui-file-explorer-header")];
842
+ var $;
843
+ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), pt = (it = u({
844
+ context: p,
845
+ subscribe: !0
846
+ }), ot = a({ attribute: !1 }), ct = a({ attribute: !1 }), ut = c(), "_loadedMetadataForUri"), et = class extends o {
847
+ constructor(...e) {
848
+ super(...e), Q(this, pt, void tt(this)), Q(this, "_metadataGeneration", 0), Y(this, G, at(this, m)), Y(this, K, st(this, [])), Y(this, q, lt(this, void 0)), Y(this, J, dt(this, {
849
+ modified: void 0,
850
+ isPublic: !1,
851
+ canEdit: !1,
852
+ canManageAccess: !1,
853
+ aclUri: void 0
854
+ })), Q(this, "handleBack", () => {
855
+ this.dispatchEvent(new CustomEvent(g, {
856
+ bubbles: !0,
857
+ composed: !0,
858
+ detail: { subjectUri: this.fileExplorerContext.subjectUri }
859
+ }));
860
+ });
861
+ }
862
+ get fileExplorerContext() {
863
+ return Z(G, this);
864
+ }
865
+ set fileExplorerContext(e) {
866
+ X(G, this, e);
867
+ }
868
+ get menuItems() {
869
+ return Z(K, this);
870
+ }
871
+ set menuItems(e) {
872
+ X(K, this, e);
873
+ }
874
+ get paneIcon() {
875
+ return Z(q, this);
876
+ }
877
+ set paneIcon(e) {
878
+ X(q, this, e);
879
+ }
880
+ get responseMetadata() {
881
+ return Z(J, this);
882
+ }
883
+ set responseMetadata(e) {
884
+ X(J, this, e);
885
+ }
886
+ getDefaultResponseMetadata() {
887
+ return {
888
+ modified: void 0,
889
+ isPublic: !1,
890
+ canEdit: !1,
891
+ canManageAccess: !1,
892
+ aclUri: void 0
893
+ };
894
+ }
895
+ willUpdate() {
896
+ let e = this.fileExplorerContext?.subjectUri;
897
+ if (this.fileExplorerContext?.store && e && this._loadedMetadataForUri !== e) {
898
+ this._loadedMetadataForUri = e;
899
+ let t = ++this._metadataGeneration;
900
+ this.responseMetadata = this.getDefaultResponseMetadata(), this.loadResponseMetadata(e, t);
901
+ }
902
+ }
903
+ async loadResponseMetadata(n, r) {
904
+ try {
905
+ let i = await t.resource.fetchMetadata(e(n));
906
+ r === this._metadataGeneration && this.fileExplorerContext.subjectUri === n && (this.responseMetadata = {
907
+ modified: i.modified,
908
+ isPublic: i.access.isPublic,
909
+ canEdit: i.access.canEdit,
910
+ canManageAccess: i.access.canManageAccess,
911
+ aclUri: i.aclUri
912
+ });
913
+ } catch (e) {
914
+ r === this._metadataGeneration && this.fileExplorerContext.subjectUri === n && (this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", e));
915
+ }
916
+ }
917
+ render() {
918
+ return l`
919
+ <header>
920
+ <solid-ui-file-explorer-header-summary
921
+ .paneIcon=${this.paneIcon}
922
+ .onBackClick=${this.handleBack}
923
+ .responseMetadata=${this.responseMetadata}
924
+ ></solid-ui-file-explorer-header-summary>
925
+ <solid-ui-file-explorer-header-controls
926
+ .menuItems=${this.menuItems}
927
+ .canEdit=${this.responseMetadata.canEdit}
928
+ .canManageAccess=${this.responseMetadata.canManageAccess}
929
+ ></solid-ui-file-explorer-header-controls>
930
+ </header>
931
+ `;
932
+ }
933
+ }, {e: [at, st, lt, dt, tt], c: [$, nt]} = gt(et, [
934
+ [
935
+ it,
936
+ 1,
937
+ "fileExplorerContext"
938
+ ],
939
+ [
940
+ ot,
941
+ 1,
942
+ "menuItems"
943
+ ],
944
+ [
945
+ ct,
946
+ 1,
947
+ "paneIcon"
948
+ ],
949
+ [
950
+ ut,
951
+ 1,
952
+ "responseMetadata"
953
+ ]
954
+ ], rt, 0, void 0, o), et), $e = class extends xt {
955
+ constructor() {
956
+ super($), Q(this, "styles", b), nt();
957
+ }
958
+ }, Q($e, ft, void 0), $e)();
959
+ // src/components/file-explorer-header/index.ts
960
+ var St = $;
961
+ export { $ as n, St as t };
962
+
963
+ //# sourceMappingURL=file-explorer-header-B6-Q0i6V.js.map