solid-ui 5.0.2-3 → 5.0.2-5

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 (374) hide show
  1. package/dist/acl/access-controller.cjs.js +1 -1
  2. package/dist/acl/access-controller.cjs.js.map +1 -1
  3. package/dist/acl/access-controller.esm.js +37 -37
  4. package/dist/acl/access-groups.cjs.js +2 -2
  5. package/dist/acl/access-groups.cjs.js.map +1 -1
  6. package/dist/acl/access-groups.esm.js +78 -78
  7. package/dist/acl/acl-control.cjs.js +1 -1
  8. package/dist/acl/acl-control.cjs.js.map +1 -1
  9. package/dist/acl/acl-control.esm.js +19 -19
  10. package/dist/acl/add-agent-buttons.cjs.js +1 -1
  11. package/dist/acl/add-agent-buttons.cjs.js.map +1 -1
  12. package/dist/acl/add-agent-buttons.esm.js +51 -51
  13. package/dist/chat/bookmarks.cjs.js +1 -1
  14. package/dist/chat/bookmarks.cjs.js.map +1 -1
  15. package/dist/chat/bookmarks.esm.js +44 -44
  16. package/dist/chat/bookmarks.esm.js.map +1 -1
  17. package/dist/chat/chatLogic.cjs.js +2 -2
  18. package/dist/chat/chatLogic.cjs.js.map +1 -1
  19. package/dist/chat/chatLogic.esm.js +54 -54
  20. package/dist/chat/dateFolder.cjs.js +1 -1
  21. package/dist/chat/dateFolder.cjs.js.map +1 -1
  22. package/dist/chat/dateFolder.esm.js +30 -30
  23. package/dist/chat/infinite.cjs.js +1 -1
  24. package/dist/chat/infinite.cjs.js.map +1 -1
  25. package/dist/chat/infinite.esm.js +49 -49
  26. package/dist/chat/keys.cjs.js +2 -2
  27. package/dist/chat/keys.cjs.js.map +1 -1
  28. package/dist/chat/keys.esm.js +17 -17
  29. package/dist/chat/message.cjs.js +4 -4
  30. package/dist/chat/message.cjs.js.map +1 -1
  31. package/dist/chat/message.esm.js +114 -114
  32. package/dist/chat/message.esm.js.map +1 -1
  33. package/dist/chat/messageTools.cjs.js +1 -1
  34. package/dist/chat/messageTools.cjs.js.map +1 -1
  35. package/dist/chat/messageTools.esm.js +51 -51
  36. package/dist/chunks/{DialogProvider-dagk2fHm.js → DialogProvider-CdesAsw-.js} +5 -6
  37. package/dist/chunks/{DialogProvider-dagk2fHm.js.map → DialogProvider-CdesAsw-.js.map} +1 -1
  38. package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js → ResourceActionsMenu-Bx7YWY3E.js} +31 -32
  39. package/dist/chunks/{ResourceActionsMenu-o-8kWx8z.js.map → ResourceActionsMenu-Bx7YWY3E.js.map} +1 -1
  40. package/dist/chunks/{access-control-modal-CWH98HX3.js → access-control-modal-B1mFFIyz.js} +169 -170
  41. package/dist/chunks/{access-control-modal-CWH98HX3.js.map → access-control-modal-B1mFFIyz.js.map} +1 -1
  42. package/dist/chunks/{account-Cocvv0H3.js → account-DWmMJre6.js} +16 -17
  43. package/dist/chunks/{account-Cocvv0H3.js.map → account-DWmMJre6.js.map} +1 -1
  44. package/dist/chunks/{auth-Df5uYksz.js → auth-EK-iYNYZ.js} +42 -43
  45. package/dist/chunks/{auth-Df5uYksz.js.map → auth-EK-iYNYZ.js.map} +1 -1
  46. package/dist/chunks/{avatar-DeotTinS.js → avatar-BBgvMlqv.js} +8 -9
  47. package/dist/chunks/{avatar-DeotTinS.js.map → avatar-BBgvMlqv.js.map} +1 -1
  48. package/dist/chunks/{button-Dy1aFjqG.js → button-D6qO2idW.js} +10 -11
  49. package/dist/chunks/{button-Dy1aFjqG.js.map → button-D6qO2idW.js.map} +1 -1
  50. package/dist/chunks/{chunk.UEBQI7VV-9M5gO7Ew.js → chunk.UEBQI7VV-lcP-fpUk.js} +12 -9
  51. package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +1 -0
  52. package/dist/chunks/{combobox-BL0-8wef.js → combobox-DS6byaf1.js} +18 -19
  53. package/dist/chunks/{combobox-BL0-8wef.js.map → combobox-DS6byaf1.js.map} +1 -1
  54. package/dist/chunks/{combobox-option-DjlmXt1O.js → combobox-option-DOtGuKel.js} +7 -8
  55. package/dist/chunks/{combobox-option-DjlmXt1O.js.map → combobox-option-DOtGuKel.js.map} +1 -1
  56. package/dist/chunks/{components-LxiwG5ae.js → components-C8c2Ucm5.js} +201 -190
  57. package/dist/chunks/components-C8c2Ucm5.js.map +1 -0
  58. package/dist/chunks/{context-By_u12WA.js → context-BDrfQ9bN.js} +2 -2
  59. package/dist/chunks/{context-By_u12WA.js.map → context-BDrfQ9bN.js.map} +1 -1
  60. package/dist/chunks/{dialog-CrmftB9c.js → dialog-CgYK767T.js} +15 -16
  61. package/dist/chunks/{dialog-CrmftB9c.js.map → dialog-CgYK767T.js.map} +1 -1
  62. package/dist/chunks/{dialog-content-Cw3xqJ45.js → dialog-content-DjwRH1ci.js} +5 -6
  63. package/dist/chunks/{dialog-content-Cw3xqJ45.js.map → dialog-content-DjwRH1ci.js.map} +1 -1
  64. package/dist/chunks/{dialog-footer-sFQf-2zD.js → dialog-footer-GQWi8lfB.js} +5 -6
  65. package/dist/chunks/{dialog-footer-sFQf-2zD.js.map → dialog-footer-GQWi8lfB.js.map} +1 -1
  66. package/dist/chunks/{dialog-header-xIWIqfZK.js → dialog-header-c3qOMQfb.js} +5 -6
  67. package/dist/chunks/{dialog-header-xIWIqfZK.js.map → dialog-header-c3qOMQfb.js.map} +1 -1
  68. package/dist/chunks/{dialogs-B3tHtjMf.js → dialogs-BmtLjMzg.js} +2 -2
  69. package/dist/chunks/{dialogs-B3tHtjMf.js.map → dialogs-BmtLjMzg.js.map} +1 -1
  70. package/dist/chunks/{dialogs-root-Lh2u-3Cs.js → dialogs-root-BNF3_SA8.js} +8 -9
  71. package/dist/chunks/{dialogs-root-Lh2u-3Cs.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
  72. package/dist/chunks/{error-state-DnsXVj1z.js → error-state-jV9dlFX2.js} +10 -11
  73. package/dist/chunks/{error-state-DnsXVj1z.js.map → error-state-jV9dlFX2.js.map} +1 -1
  74. package/dist/chunks/{file-explorer-header-B6-Q0i6V.js → file-explorer-header-Djp_eFuT.js} +33 -34
  75. package/dist/chunks/file-explorer-header-Djp_eFuT.js.map +1 -0
  76. package/dist/chunks/{file-explorer-provider-B3gUBkHg.js → file-explorer-provider-DpjC7uds.js} +8 -9
  77. package/dist/chunks/{file-explorer-provider-B3gUBkHg.js.map → file-explorer-provider-DpjC7uds.js.map} +1 -1
  78. package/dist/chunks/{guard-C39y81In.js → guard-SxVT1xr4.js} +8 -9
  79. package/dist/chunks/{guard-C39y81In.js.map → guard-SxVT1xr4.js.map} +1 -1
  80. package/dist/chunks/{index.esm-C9oV3H3X.js → index.esm-BQrkxchZ.js} +2 -2
  81. package/dist/chunks/{index.esm-C9oV3H3X.js.map → index.esm-BQrkxchZ.js.map} +1 -1
  82. package/dist/chunks/{input-Bi6ZBZQw.js → input-Bz3l514j.js} +11 -12
  83. package/dist/chunks/{input-Bi6ZBZQw.js.map → input-Bz3l514j.js.map} +1 -1
  84. package/dist/chunks/{jsonld-D-TE94B0.js → jsonld-C6IOQ1Tg.js} +2 -2
  85. package/dist/chunks/{jsonld-D-TE94B0.js.map → jsonld-C6IOQ1Tg.js.map} +1 -1
  86. package/dist/chunks/{login-button-fo0P8vym.js → login-button-Dd0rwZJk.js} +9 -10
  87. package/dist/chunks/{login-button-fo0P8vym.js.map → login-button-Dd0rwZJk.js.map} +1 -1
  88. package/dist/chunks/{logout-button-CF2YFgID.js → logout-button-Da34Lrnq.js} +9 -10
  89. package/dist/chunks/{logout-button-CF2YFgID.js.map → logout-button-Da34Lrnq.js.map} +1 -1
  90. package/dist/chunks/{menu-RumUciM-.js → menu-BNJU654v.js} +48 -50
  91. package/dist/chunks/{menu-RumUciM-.js.map → menu-BNJU654v.js.map} +1 -1
  92. package/dist/chunks/{menu-item-CVAZyipz.js → menu-item-nfPpH4dN.js} +10 -11
  93. package/dist/chunks/{menu-item-CVAZyipz.js.map → menu-item-nfPpH4dN.js.map} +1 -1
  94. package/dist/chunks/{photo-capture-CAfo7y6-.js → photo-capture-hJaJm4TM.js} +20 -21
  95. package/dist/chunks/photo-capture-hJaJm4TM.js.map +1 -0
  96. package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js → photo-capture-modal-BsHv6wmh.js} +28 -29
  97. package/dist/chunks/{photo-capture-modal-DWmDE_Ws.js.map → photo-capture-modal-BsHv6wmh.js.map} +1 -1
  98. package/dist/chunks/{provide-B5NeVMM_.js → provide-z9U64q4m.js} +2 -2
  99. package/dist/chunks/{provide-B5NeVMM_.js.map → provide-z9U64q4m.js.map} +1 -1
  100. package/dist/chunks/{provider-BbT2duMy.js → provider-B3FoP2qW.js} +12 -13
  101. package/dist/chunks/{provider-BbT2duMy.js.map → provider-B3FoP2qW.js.map} +1 -1
  102. package/dist/chunks/{rdf-form-CH9bDx98.js → rdf-form-BkKDmFPD.js} +30 -31
  103. package/dist/chunks/{rdf-form-CH9bDx98.js.map → rdf-form-BkKDmFPD.js.map} +1 -1
  104. package/dist/chunks/{rdf-input-C_V0pIS5.js → rdf-input-BPePtqfS.js} +62 -63
  105. package/dist/chunks/{rdf-input-C_V0pIS5.js.map → rdf-input-BPePtqfS.js.map} +1 -1
  106. package/dist/chunks/{select-y1Z6fwmh.js → select-ClPkDkGl.js} +9 -10
  107. package/dist/chunks/{select-y1Z6fwmh.js.map → select-ClPkDkGl.js.map} +1 -1
  108. package/dist/chunks/{select-option-U4ALXL20.js → select-option-DQan7rcB.js} +7 -8
  109. package/dist/chunks/{select-option-U4ALXL20.js.map → select-option-DQan7rcB.js.map} +1 -1
  110. package/dist/chunks/{signup-button-DicFpAjD.js → signup-button-DOInssOu.js} +9 -10
  111. package/dist/chunks/{signup-button-DicFpAjD.js.map → signup-button-DOInssOu.js.map} +1 -1
  112. package/dist/chunks/{solid-emblem-CeCXTpve.js → solid-emblem-DwLdkGuO.js} +7 -8
  113. package/dist/chunks/{solid-emblem-CeCXTpve.js.map → solid-emblem-DwLdkGuO.js.map} +1 -1
  114. package/dist/chunks/{solidLogicSingleton.esm-BXyHD7mn.js → solidLogicSingleton.esm-Bvt7E7Vl.js} +50 -29
  115. package/dist/chunks/solidLogicSingleton.esm-Bvt7E7Vl.js.map +1 -0
  116. package/dist/chunks/{src-Bhtor0ZC.js → src-akaVfkuf.js} +2739 -2719
  117. package/dist/chunks/src-akaVfkuf.js.map +1 -0
  118. package/dist/chunks/{style-CXaw5EYi.js → style-Dlw9-wPn.js} +3 -3
  119. package/dist/chunks/{style-CXaw5EYi.js.map → style-Dlw9-wPn.js.map} +1 -1
  120. package/dist/chunks/{widgets-BBEQu0CS.js → widgets-B1hBVhRL.js} +309 -309
  121. package/dist/chunks/widgets-B1hBVhRL.js.map +1 -0
  122. package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js +1 -1
  123. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js +5 -5
  124. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
  125. package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
  126. package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js +2 -2
  127. package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js.map +1 -1
  128. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js +12 -12
  129. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
  130. package/dist/components/access-control-modal/AccessControlModal.cjs.js +2 -2
  131. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  132. package/dist/components/access-control-modal/AccessControlModal.esm.js +35 -35
  133. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  134. package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js +1 -1
  135. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js +2 -2
  136. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
  137. package/dist/components/access-control-modal/accessTargetResolver.cjs.js +1 -1
  138. package/dist/components/access-control-modal/accessTargetResolver.cjs.js.map +1 -1
  139. package/dist/components/access-control-modal/accessTargetResolver.esm.js +21 -21
  140. package/dist/components/access-control-modal.js +1 -1
  141. package/dist/components/account/Account.cjs.js +1 -1
  142. package/dist/components/account/Account.esm.js +3 -3
  143. package/dist/components/account/Account.esm.js.map +1 -1
  144. package/dist/components/account.js +1 -1
  145. package/dist/components/all.cjs.js +1 -1
  146. package/dist/components/all.esm.js +16 -16
  147. package/dist/components/avatar.js +1 -1
  148. package/dist/components/button/Button.esm.js.map +1 -1
  149. package/dist/components/button.js +1 -1
  150. package/dist/components/combobox/Combobox.cjs.js +1 -1
  151. package/dist/components/combobox/Combobox.esm.js +1 -1
  152. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  153. package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
  154. package/dist/components/combobox-option.js +1 -1
  155. package/dist/components/combobox.js +1 -1
  156. package/dist/components/dialog/Dialog.cjs.js +2 -2
  157. package/dist/components/dialog/Dialog.cjs.js.map +1 -1
  158. package/dist/components/dialog/Dialog.esm.js +9 -9
  159. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  160. package/dist/components/dialog-content.js +1 -1
  161. package/dist/components/dialog-footer.js +1 -1
  162. package/dist/components/dialog-header.js +1 -1
  163. package/dist/components/dialog-provider/DialogProvider.cjs.js +1 -1
  164. package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
  165. package/dist/components/dialog-provider/DialogProvider.esm.js +6 -6
  166. package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
  167. package/dist/components/dialog-provider.js +1 -1
  168. package/dist/components/dialog.js +1 -1
  169. package/dist/components/dialogs-root/DialogsRoot.cjs.js +2 -2
  170. package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
  171. package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -7
  172. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  173. package/dist/components/dialogs-root.js +1 -1
  174. package/dist/components/error-state/ErrorState.cjs.js +1 -1
  175. package/dist/components/error-state/ErrorState.esm.js +1 -1
  176. package/dist/components/error-state/ErrorState.esm.js.map +1 -1
  177. package/dist/components/error-state.js +1 -1
  178. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +2 -2
  179. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
  180. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -1
  181. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +20 -19
  182. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
  183. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +6 -6
  184. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
  185. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -1
  186. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +25 -24
  187. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
  188. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +7 -7
  189. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
  190. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -1
  191. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +28 -27
  192. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
  193. package/dist/components/file-explorer-header.js +1 -1
  194. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +1 -1
  195. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -1
  196. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +1 -1
  197. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -1
  198. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +8 -7
  199. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -1
  200. package/dist/components/file-explorer-provider.js +1 -1
  201. package/dist/components/guard.js +1 -1
  202. package/dist/components/input/Input.esm.js.map +1 -1
  203. package/dist/components/input.js +1 -1
  204. package/dist/components/login-button/LoginButton.cjs.js +1 -1
  205. package/dist/components/login-button/LoginButton.esm.js +1 -1
  206. package/dist/components/login-button.js +1 -1
  207. package/dist/components/login-modal/LoginModal.cjs.js +1 -1
  208. package/dist/components/login-modal/LoginModal.esm.js +2 -2
  209. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  210. package/dist/components/login-modal.js +1 -1
  211. package/dist/components/logout-button/LogoutButton.cjs.js +1 -1
  212. package/dist/components/logout-button/LogoutButton.esm.js +1 -1
  213. package/dist/components/logout-button.js +1 -1
  214. package/dist/components/menu/Menu.cjs.js +1 -1
  215. package/dist/components/menu/Menu.cjs.js.map +1 -1
  216. package/dist/components/menu/Menu.esm.js +1 -1
  217. package/dist/components/menu/Menu.esm.js.map +1 -1
  218. package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
  219. package/dist/components/menu-item.js +1 -1
  220. package/dist/components/menu.js +1 -1
  221. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
  222. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
  223. package/dist/components/photo-capture-modal.js +1 -1
  224. package/dist/components/photo-capture.js +1 -1
  225. package/dist/components/provider/Provider.esm.js.map +1 -1
  226. package/dist/components/provider.js +1 -1
  227. package/dist/components/rdf-form/RDFForm.cjs.js +3 -3
  228. package/dist/components/rdf-form/RDFForm.cjs.js.map +1 -1
  229. package/dist/components/rdf-form/RDFForm.esm.js +13 -13
  230. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  231. package/dist/components/rdf-form.js +1 -1
  232. package/dist/components/rdf-input/RDFInput.cjs.js +2 -2
  233. package/dist/components/rdf-input/RDFInput.cjs.js.map +1 -1
  234. package/dist/components/rdf-input/RDFInput.esm.js +4 -4
  235. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  236. package/dist/components/rdf-input.js +1 -1
  237. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +8 -8
  238. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  239. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
  240. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +18 -17
  241. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
  242. package/dist/components/resource-actions-menu.js +1 -1
  243. package/dist/components/select/Select.cjs.js +1 -1
  244. package/dist/components/select/Select.cjs.js.map +1 -1
  245. package/dist/components/select/Select.esm.js +1 -1
  246. package/dist/components/select/Select.esm.js.map +1 -1
  247. package/dist/components/select-option/SelectOption.esm.js.map +1 -1
  248. package/dist/components/select-option.js +1 -1
  249. package/dist/components/select.js +1 -1
  250. package/dist/components/signup-button/SignupButton.cjs.js +1 -1
  251. package/dist/components/signup-button/SignupButton.esm.js +1 -1
  252. package/dist/components/signup-button.js +1 -1
  253. package/dist/components/solid-emblem.js +1 -1
  254. package/dist/components.js +30 -30
  255. package/dist/create/create.cjs.js +1 -1
  256. package/dist/create/create.cjs.js.map +1 -1
  257. package/dist/create/create.esm.js +23 -23
  258. package/dist/header/index.cjs.js +1 -1
  259. package/dist/header/index.cjs.js.map +1 -1
  260. package/dist/header/index.esm.js +53 -53
  261. package/dist/index.cjs.js +1 -1
  262. package/dist/index.cjs.js.map +1 -1
  263. package/dist/index.esm.js +24 -24
  264. package/dist/index.esm.js.map +1 -1
  265. package/dist/index.js +11 -12
  266. package/dist/lib/auth/SolidAuth.cjs.js +1 -1
  267. package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
  268. package/dist/lib/auth/SolidAuth.esm.js +8 -8
  269. package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
  270. package/dist/lib/code-editor/CodeEditor.cjs.js +1 -1
  271. package/dist/lib/code-editor/CodeEditor.cjs.js.map +1 -1
  272. package/dist/lib/code-editor/CodeEditor.d.ts.map +1 -1
  273. package/dist/lib/code-editor/CodeEditor.esm.js +34 -30
  274. package/dist/lib/code-editor/CodeEditor.esm.js.map +1 -1
  275. package/dist/lib/components/dialog-component/DialogComponent.cjs.js +1 -1
  276. package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -1
  277. package/dist/lib/components/dialog-component/DialogComponent.esm.js +4 -4
  278. package/dist/lib/components/index.cjs.js +1 -1
  279. package/dist/lib/components/index.esm.js +3 -3
  280. package/dist/lib/dialogs/helpers.cjs.js +1 -1
  281. package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
  282. package/dist/lib/dialogs/helpers.esm.js +4 -4
  283. package/dist/lib/file-explorer/index.cjs.js +1 -1
  284. package/dist/lib/file-explorer/index.esm.js +3 -3
  285. package/dist/lib/file-explorer/relevant-panes.cjs.js +1 -1
  286. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -1
  287. package/dist/lib/file-explorer/relevant-panes.d.ts +7 -0
  288. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -1
  289. package/dist/lib/file-explorer/relevant-panes.esm.js +11 -2
  290. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -1
  291. package/dist/lib/messageArea.cjs.js +1 -1
  292. package/dist/lib/messageArea.cjs.js.map +1 -1
  293. package/dist/lib/messageArea.esm.js +27 -27
  294. package/dist/lib/pad.cjs.js +1 -1
  295. package/dist/lib/pad.cjs.js.map +1 -1
  296. package/dist/lib/pad.esm.js +15 -15
  297. package/dist/lib/participation.cjs.js +1 -1
  298. package/dist/lib/participation.cjs.js.map +1 -1
  299. package/dist/lib/participation.esm.js +59 -59
  300. package/dist/lib/preferences.cjs.js +1 -1
  301. package/dist/lib/preferences.cjs.js.map +1 -1
  302. package/dist/lib/preferences.esm.js +28 -28
  303. package/dist/lib/table.cjs.js +3 -3
  304. package/dist/lib/table.cjs.js.map +1 -1
  305. package/dist/lib/table.esm.js +123 -123
  306. package/dist/lib/table.esm.js.map +1 -1
  307. package/dist/lib/tabs.cjs.js +1 -1
  308. package/dist/lib/tabs.cjs.js.map +1 -1
  309. package/dist/lib/tabs.esm.js +16 -16
  310. package/dist/loader.js +11 -12
  311. package/dist/login/login.cjs.js +6 -6
  312. package/dist/login/login.cjs.js.map +1 -1
  313. package/dist/login/login.esm.js +142 -142
  314. package/dist/media/media-capture.cjs.js +1 -1
  315. package/dist/media/media-capture.cjs.js.map +1 -1
  316. package/dist/media/media-capture.esm.js +6 -6
  317. package/dist/solid-ui.js +32 -32
  318. package/dist/solid-ui.min.js +32 -32
  319. package/dist/solid-ui.min.js.map +1 -1
  320. package/dist/utils/index.cjs.js +1 -1
  321. package/dist/utils/index.cjs.js.map +1 -1
  322. package/dist/utils/index.esm.js +4 -4
  323. package/dist/utils/keyHelpers/accessData.cjs.js +1 -1
  324. package/dist/utils/keyHelpers/accessData.cjs.js.map +1 -1
  325. package/dist/utils/keyHelpers/accessData.esm.js +15 -15
  326. package/dist/utils/label.cjs.js +1 -1
  327. package/dist/utils/label.cjs.js.map +1 -1
  328. package/dist/utils/label.esm.js +4 -4
  329. package/dist/widgets/buttons.cjs.js +12 -12
  330. package/dist/widgets/buttons.cjs.js.map +1 -1
  331. package/dist/widgets/buttons.esm.js +179 -179
  332. package/dist/widgets/error.cjs.js +1 -1
  333. package/dist/widgets/error.cjs.js.map +1 -1
  334. package/dist/widgets/error.esm.js +5 -5
  335. package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js +1 -1
  336. package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js.map +1 -1
  337. package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js +17 -17
  338. package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js +1 -1
  339. package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js.map +1 -1
  340. package/dist/widgets/forms/autocomplete/autocompleteField.esm.js +23 -23
  341. package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js +1 -1
  342. package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js.map +1 -1
  343. package/dist/widgets/forms/autocomplete/autocompletePicker.esm.js +26 -26
  344. package/dist/widgets/forms/autocomplete/language.cjs.js +1 -1
  345. package/dist/widgets/forms/autocomplete/language.cjs.js.map +1 -1
  346. package/dist/widgets/forms/autocomplete/language.esm.js +9 -9
  347. package/dist/widgets/forms/autocomplete/publicData.cjs.js +5 -5
  348. package/dist/widgets/forms/autocomplete/publicData.cjs.js.map +1 -1
  349. package/dist/widgets/forms/autocomplete/publicData.esm.js +67 -67
  350. package/dist/widgets/forms/basic.cjs.js +1 -1
  351. package/dist/widgets/forms/basic.cjs.js.map +1 -1
  352. package/dist/widgets/forms/basic.esm.js +11 -11
  353. package/dist/widgets/forms.cjs.js +4 -4
  354. package/dist/widgets/forms.cjs.js.map +1 -1
  355. package/dist/widgets/forms.esm.js +561 -561
  356. package/dist/widgets/forms.esm.js.map +1 -1
  357. package/dist/widgets/index.cjs.js +1 -1
  358. package/dist/widgets/index.cjs.js.map +1 -1
  359. package/dist/widgets/index.esm.js +82 -82
  360. package/dist/widgets/peoplePicker.cjs.js +2 -2
  361. package/dist/widgets/peoplePicker.cjs.js.map +1 -1
  362. package/dist/widgets/peoplePicker.esm.js +82 -82
  363. package/package.json +3 -3
  364. package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +0 -1
  365. package/dist/chunks/components-LxiwG5ae.js.map +0 -1
  366. package/dist/chunks/custom-element-BW8Ua4c7.js +0 -9
  367. package/dist/chunks/custom-element-BW8Ua4c7.js.map +0 -1
  368. package/dist/chunks/decorators-V-B013l9.js +0 -12
  369. package/dist/chunks/decorators-V-B013l9.js.map +0 -1
  370. package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +0 -1
  371. package/dist/chunks/photo-capture-CAfo7y6-.js.map +0 -1
  372. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +0 -1
  373. package/dist/chunks/src-Bhtor0ZC.js.map +0 -1
  374. package/dist/chunks/widgets-BBEQu0CS.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.cjs.js","names":["sym","WebComponent","utils","widgets","DEFAULT_FILE_EXPLORER_CONTEXT","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","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","undefined","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","willUpdate","changedProperties","has","generation","_paneIconGeneration","resolvePaneIcon","updated","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","query","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","sym","getContainerItemCount","label","isContainerSubject","styles","require_label","require_dragAndDrop","require_WebComponent","require_context","require_FileExplorerHeaderSummary_styles","require_podUtils","rdflib","_lit_context","lit","lit_decorators_js","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderSu","args","modified","date","parts","getPart","part","type","changedProperties","generation","paneIcon","icon","error","itemCount","label","isPublic","subject","label$1","isContainerResource"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent } from '@/lib/components'\nimport * as utils from '@/utils'\nimport * as widgets from '@/widgets/index'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport '@/components/button'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\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('solid-ui-file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _paneIconGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\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 willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneIcon')) {\n const generation = ++this._paneIconGeneration\n this.resolvedPaneIcon = undefined\n this.resolvePaneIcon(this.paneIcon, generation)\n }\n }\n\n protected updated () {\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 (paneIcon: PaneIcon | undefined, generation: number) {\n try {\n if (paneIcon == null) return\n\n const icon = await paneIcon\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = icon ?? undefined\n }\n } catch (error) {\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\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 aria-hidden=\"true\"></icon-lucide-globe><span class=\"sr-only\">Public</span></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole aria-hidden=\"true\"></icon-lucide-lock-keyhole><span class=\"sr-only\">Private</span></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 <span class=\"sr-only\">Back</span>\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":"A,q6JAgB4Ee,EAAA,EAAA,EAG3ET,EAAAA,cAAAA,CAAc,uCAAuC,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAA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AAAA,GAC5FkD,EAAQK,EAAAA,EAAAA,MAAsBA,CAAO,EAAI,GACzCtD,EAAW,KAAKQ,iBAAiBR,SACjCuD,EAAsBzF,EAAAA,mBAAmB,KAAKT,qBAAqB8F,MAAO,KAAK9F,qBAAqBoF,UAAU,EAEpH,MAAO/E,GAAAA,IAAI;;;;mBAII,KAAK6C,YAAW;;;;;;;YAOvB,KAAKE,iBAAmB/C,EAAAA,IAAI,YAAY,KAAK+C,iBAAgB,YAAe,GAAE;;UAEhF8C,EAAsB,KAAKP,8BAA8BC,EAAOjD,CAAQ,EAAI,KAAKoD,qBAAqBH,EAAOjD,CAAQ,EAAC;;;KAI9H,CACF,EAAC,CAAAwD,EAAA,CAAA9D,EAAAC,EAAAC,EAAAC,EAAAI,EAAAC,EAAAV,GAAAiE,EAAA,CAAAzF,EAAA0F,IAAAC,EAAAxE,EAAA,CAAA,CAAAT,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,UAAA,EAAA,CAAAE,EAAA,EAAA,aAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,cAAA,CAAA,EAAAnB,EAAA,EAAA,IAAA,GA3IsDd,EAAAA,OAAY,EAAAkC,GAAAyE,EAAA,cAAAC,CAAA,CAAAxE,aAAA,CAAA,MAAArB,CAAA,EAAAuB,EAAA,KAAA,SACjD3B,EAAAA,OAAM,EAAA8F,EAAA,CAAA,CAAA,EAAAnE,EAAAqE,EAAA3F,EAAA,IAAA,EAAA,EAAA2F,G"}
1
+ {"version":3,"file":"FileExplorerHeaderSummary.cjs.js","names":["sym","customElement","WebComponent","utils","widgets","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","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","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","undefined","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","willUpdate","changedProperties","has","generation","_paneIconGeneration","resolvePaneIcon","updated","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","query","WebComponent","DEFAULT_FILE_EXPLORER_CONTEXT","sym","getContainerItemCount","label","isContainerSubject","styles","require_label","require_dragAndDrop","require_decorators","require_WebComponent","require_context","require_FileExplorerHeaderSummary_styles","require_podUtils","rdflib","_lit_context","lit","lit_decorators_js","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderSu","args","modified","date","parts","getPart","part","type","changedProperties","generation","paneIcon","icon","error","itemCount","label","isPublic","subject","label$1","isContainerResource"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { customElement, WebComponent } from '@/lib/components'\nimport * as utils from '@/utils'\nimport * as widgets from '@/widgets/index'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport '@/components/button'\nimport { property, query, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\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('solid-ui-file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _paneIconGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\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 willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneIcon')) {\n const generation = ++this._paneIconGeneration\n this.resolvedPaneIcon = undefined\n this.resolvePaneIcon(this.paneIcon, generation)\n }\n }\n\n protected updated () {\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 (paneIcon: PaneIcon | undefined, generation: number) {\n try {\n if (paneIcon == null) return\n\n const icon = await paneIcon\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = icon ?? undefined\n }\n } catch (error) {\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\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 aria-hidden=\"true\"></icon-lucide-globe><span class=\"sr-only\">Public</span></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole aria-hidden=\"true\"></icon-lucide-lock-keyhole><span class=\"sr-only\">Private</span></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 <span class=\"sr-only\">Back</span>\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":"A,y9JAgB4Ee,EAAA,CAG3Ed,EAAAA,cAAc,uCAAuC,CAAC,EAAA,IAAAe,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,GAAAC,GAAAA,EAOpDf,EAAAA,QAAAA,CAAQ,CAAEgB,QAASrB,EAAAA,oBAAqBsB,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DtB,EAAAA,SAAAA,CAAS,CAAEuB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BxB,EAAAA,SAAAA,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O,OAAO,yBAA0B,SAAQ,YAAY;IACjE,MAAM,CAAC,MAAM,0BAAS;IAEtB,OAAO,CAAC,oBAAoB,CAAoB;IAChD,OAAO,CAAC,mBAAmB,CAAI;IAG/B,QAAQ,CAAC,mBAAmB,4DAAgC;IAG5D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;IAGvC,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAG9C,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,4BAA4B,EAAE,UAAU,GAAG,UAAU,CAAC,CAGrF;IAGD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAY;IAGzD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkC;IAE/D,OAAO,CAAC,kBAAkB;IA0B1B,SAAS,CAAC,UAAU,CAAE,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAQ7D,SAAS,CAAC,OAAO;YAQH,eAAe;IAgB7B,OAAO,CAAC,6BAA6B;IAiBrC,OAAO,CAAC,oBAAoB;IAa5B,MAAM;CAwBP"}
@@ -1,21 +1,22 @@
1
1
  import { label as e } from "../../utils/label.esm.js";
2
- import "../../utils/index.esm.js";
2
+ import "../../lib/components/index.esm.js";
3
3
  import { makeDraggable as t } from "../../widgets/dragAndDrop.esm.js";
4
+ import "../../utils/index.esm.js";
5
+ import { customElement as n } from "../../lib/components/decorators.esm.js";
6
+ import r from "../../lib/components/web-component/WebComponent.esm.js";
4
7
  import "../../widgets/index.esm.js";
5
- import n from "../../lib/components/web-component/WebComponent.esm.js";
6
- import "../../lib/components/index.esm.js";
8
+ import { DEFAULT_FILE_EXPLORER_CONTEXT as i, fileExplorerContext as a } from "../../lib/file-explorer/context.esm.js";
7
9
  import "../button/index.esm.js";
8
- import { DEFAULT_FILE_EXPLORER_CONTEXT as r, fileExplorerContext as i } from "../../lib/file-explorer/context.esm.js";
9
- import "../../_virtual/~icons/lucide/folder.esm.js";
10
10
  import "../../_virtual/~icons/lucide/globe.esm.js";
11
11
  import "../../_virtual/~icons/lucide/lock-keyhole.esm.js";
12
12
  import "../../_virtual/~icons/lucide/arrow-left.esm.js";
13
- import a from "./FileExplorerHeaderSummary.styles.esm.js";
14
- import { getContainerItemCount as o, isContainerSubject as s } from "../../utils/podUtils.esm.js";
15
- import { sym as c } from "rdflib";
16
- import { consume as l } from "@lit/context";
17
- import { html as u } from "lit";
18
- import { customElement as d, property as f, query as p, state as m } from "lit/decorators.js";
13
+ import "../../_virtual/~icons/lucide/folder.esm.js";
14
+ import o from "./FileExplorerHeaderSummary.styles.esm.js";
15
+ import { getContainerItemCount as s, isContainerSubject as c } from "../../utils/podUtils.esm.js";
16
+ import { sym as l } from "rdflib";
17
+ import { consume as u } from "@lit/context";
18
+ import { html as d } from "lit";
19
+ import { property as f, query as p, state as m } from "lit/decorators.js";
19
20
  // src/components/file-explorer-header/FileExplorerHeaderSummary.ts
20
21
  var h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, z;
21
22
  function B(e, t, n) {
@@ -189,14 +190,14 @@ function X(e) {
189
190
  function Z(e) {
190
191
  return e;
191
192
  }
192
- T = [d("solid-ui-file-explorer-header-summary")];
193
+ T = [n("solid-ui-file-explorer-header-summary")];
193
194
  var Q;
194
- new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), z = (E = l({
195
- context: i,
195
+ new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), z = (E = u({
196
+ context: a,
196
197
  subscribe: !0
197
- }), O = f({ attribute: !1 }), A = f({ attribute: !1 }), M = f({ attribute: !1 }), P = m(), I = p("h1"), "_draggableSubjectUri"), g = class extends n {
198
+ }), O = f({ attribute: !1 }), A = f({ attribute: !1 }), M = f({ attribute: !1 }), P = m(), I = p("h1"), "_draggableSubjectUri"), g = class extends r {
198
199
  constructor(...e) {
199
- super(...e), G(this, z, void C(this)), G(this, "_paneIconGeneration", 0), B(this, _, D(this, r)), B(this, v, k(this)), B(this, y, j(this)), B(this, b, N(this, {
200
+ super(...e), G(this, z, void C(this)), G(this, "_paneIconGeneration", 0), B(this, _, D(this, i)), B(this, v, k(this)), B(this, y, j(this)), B(this, b, N(this, {
200
201
  modified: void 0,
201
202
  isPublic: !1
202
203
  })), B(this, x, F(this, void 0)), B(this, S, L(this, null));
@@ -258,7 +259,7 @@ new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y =
258
259
  }
259
260
  }
260
261
  updated() {
261
- this.titleHeading && this.fileExplorerContext?.subjectUri && this._draggableSubjectUri !== this.fileExplorerContext.subjectUri && (t(this.titleHeading, c(this.fileExplorerContext.subjectUri)), this._draggableSubjectUri = this.fileExplorerContext.subjectUri);
262
+ this.titleHeading && this.fileExplorerContext?.subjectUri && this._draggableSubjectUri !== this.fileExplorerContext.subjectUri && (t(this.titleHeading, l(this.fileExplorerContext.subjectUri)), this._draggableSubjectUri = this.fileExplorerContext.subjectUri);
262
263
  }
263
264
  async resolvePaneIcon(e, t) {
264
265
  try {
@@ -270,33 +271,33 @@ new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y =
270
271
  }
271
272
  }
272
273
  renderContainerResourceHeader(e, t) {
273
- let n = o(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
274
- return u`
274
+ let n = s(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
275
+ return d`
275
276
  <div class="container-info">
276
277
  <h1>
277
278
  <span>${e}</span>
278
279
  </h1>
279
280
  <p>
280
281
  ${n} items
281
- ${t ? u`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : u`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
282
+ ${t ? d`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : d`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
282
283
  </p>
283
284
  </div>
284
285
  `;
285
286
  }
286
287
  renderResourceHeader(e, t) {
287
288
  let n = this.formatModifiedDate(this.responseMetadata.modified);
288
- return u`
289
+ return d`
289
290
  <div class="resource-info">
290
291
  <h1>
291
292
  <span>${e}</span>
292
293
  </h1>
293
- <p><span class="resource-date">${n}</span> ${t ? u`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : u`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
294
+ <p><span class="resource-date">${n}</span> ${t ? d`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : d`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
294
295
  </div>
295
296
  `;
296
297
  }
297
298
  render() {
298
- let t = this.fileExplorerContext?.subjectUri ? c(this.fileExplorerContext.subjectUri) : void 0, n = t ? e(t) : "", r = this.responseMetadata.isPublic, i = s(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
299
- return u`
299
+ let t = this.fileExplorerContext?.subjectUri ? l(this.fileExplorerContext.subjectUri) : void 0, n = t ? e(t) : "", r = this.responseMetadata.isPublic, i = c(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
300
+ return d`
300
301
  <div class="file-explorer-header-summary">
301
302
  <solid-ui-button
302
303
  variant="ghost"
@@ -307,7 +308,7 @@ new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y =
307
308
  <span class="sr-only">Back</span>
308
309
  </solid-ui-button>
309
310
  <span class="pane-icon">
310
- ${this.resolvedPaneIcon ? u`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
311
+ ${this.resolvedPaneIcon ? d`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
311
312
  </span>
312
313
  ${i ? this.renderContainerResourceHeader(n, r) : this.renderResourceHeader(n, r)}
313
314
  </div>
@@ -345,9 +346,9 @@ new (R = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y =
345
346
  1,
346
347
  "titleHeading"
347
348
  ]
348
- ], T, 0, void 0, n), g), h = class extends Z {
349
+ ], T, 0, void 0, r), g), h = class extends Z {
349
350
  constructor() {
350
- super(Q), G(this, "styles", a), w();
351
+ super(Q), G(this, "styles", o), w();
351
352
  }
352
353
  }, G(h, R, void 0), h)();
353
354
  export { Q as default };
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.esm.js","names":["sym","WebComponent","utils","widgets","DEFAULT_FILE_EXPLORER_CONTEXT","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","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","undefined","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","willUpdate","changedProperties","has","generation","_paneIconGeneration","resolvePaneIcon","updated","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","label","utils.label","styles","WebComponent","FileExplorerHeaderSummary_styles_default","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FileExplorerHeaderSu","consume","fileExplorerContext","property","state","query","args","DEFAULT_FILE_EXPLORER_CONTEXT","modified","date","parts","getPart","part","type","changedProperties","generation","makeDraggable","sym","paneIcon","icon","error","itemCount","getContainerItemCount","label","isPublic","subject","label$1","isContainerResource","isContainerSubject"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent } from '@/lib/components'\nimport * as utils from '@/utils'\nimport * as widgets from '@/widgets/index'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport '@/components/button'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\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('solid-ui-file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _paneIconGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\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 willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneIcon')) {\n const generation = ++this._paneIconGeneration\n this.resolvedPaneIcon = undefined\n this.resolvePaneIcon(this.paneIcon, generation)\n }\n }\n\n protected updated () {\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 (paneIcon: PaneIcon | undefined, generation: number) {\n try {\n if (paneIcon == null) return\n\n const icon = await paneIcon\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = icon ?? undefined\n }\n } catch (error) {\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\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 aria-hidden=\"true\"></icon-lucide-globe><span class=\"sr-only\">Public</span></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole aria-hidden=\"true\"></icon-lucide-lock-keyhole><span class=\"sr-only\">Private</span></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 <span class=\"sr-only\">Back</span>\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgB4Ee,IAAA,CAG3ET,EAAc,uCAAuC,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,IAOpDf,EAAQ;CAAEgB,SAAStB;CAAqBuB,WAAW;AAAK,CAAC,GAACC,IAG1DtB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACC,IAG9BxB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACE,IAG9BzB,EAAS,EAAEuB,WAAW,GAAM,CAAC,GAACG,IAM9BxB,EAAM,GAACyB,IAGP1B,EAAM,IAAI,GAAC,yBAAA2B,IAzBd,cACuDlC,EAAa;CAAAoC,YAAA,GAAAC,GAAA;EAsBTG,AAtBS,MAAA,GAAAH,CAAA,GAAAC,EAAA,MAAAd,GAAA,KAA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AA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAnB,GAAA,GAAA,KAAA,GA3IsDd,CAAY,GAAAkC,IAAAyE,IAAA,cAAAC,EAAA;CAAAxE,cAAA;EAAA,MAAArB,CAAA,GAAAuB,EAAA,MAAA,UACjD3B,CAAM,GAAA8F,EAAA;CAAA;AAAA,GAAAnE,EAAAqE,GAAA3F,GAAA,KAAA,CAAA,GAAA2F,GAAA"}
1
+ {"version":3,"file":"FileExplorerHeaderSummary.esm.js","names":["sym","customElement","WebComponent","utils","widgets","DEFAULT_FILE_EXPLORER_CONTEXT","fileExplorerContext","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","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","undefined","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","willUpdate","changedProperties","has","generation","_paneIconGeneration","resolvePaneIcon","updated","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","label","utils.label","styles","WebComponent","FileExplorerHeaderSummary_styles_default","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_FileExplorerHeaderSu","consume","fileExplorerContext","property","state","query","args","DEFAULT_FILE_EXPLORER_CONTEXT","modified","date","parts","getPart","part","type","changedProperties","generation","makeDraggable","sym","paneIcon","icon","error","itemCount","getContainerItemCount","label","isPublic","subject","label$1","isContainerResource","isContainerSubject"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { customElement, WebComponent } from '@/lib/components'\nimport * as utils from '@/utils'\nimport * as widgets from '@/widgets/index'\nimport { DEFAULT_FILE_EXPLORER_CONTEXT, fileExplorerContext } from '@/lib/file-explorer/context'\nimport '@/components/button'\nimport { property, query, state } from 'lit/decorators.js'\nimport type { PropertyValues } from 'lit'\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('solid-ui-file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _paneIconGeneration = 0\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext = DEFAULT_FILE_EXPLORER_CONTEXT\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 willUpdate (changedProperties: PropertyValues<this>) {\n if (changedProperties.has('paneIcon')) {\n const generation = ++this._paneIconGeneration\n this.resolvedPaneIcon = undefined\n this.resolvePaneIcon(this.paneIcon, generation)\n }\n }\n\n protected updated () {\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 (paneIcon: PaneIcon | undefined, generation: number) {\n try {\n if (paneIcon == null) return\n\n const icon = await paneIcon\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = icon ?? undefined\n }\n } catch (error) {\n if (generation === this._paneIconGeneration) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\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 aria-hidden=\"true\"></icon-lucide-globe><span class=\"sr-only\">Public</span></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole aria-hidden=\"true\"></icon-lucide-lock-keyhole><span class=\"sr-only\">Private</span></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 <span class=\"sr-only\">Back</span>\n </solid-ui-button>\n <span class=\"pane-icon\">\n ${this.resolvedPaneIcon ? html`<img src=${this.resolvedPaneIcon} alt=\"\" />` : ''}\n </span>\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AA,GAAAnE,EAAAqE,GAAA3F,GAAA,KAAA,CAAA,GAAA2F,GAAA"}
@@ -1 +1 @@
1
- export { n as FileExplorerHeader, t as default } from "../chunks/file-explorer-header-B6-Q0i6V.js";
1
+ export { n as FileExplorerHeader, t as default } from "../chunks/file-explorer-header-Djp_eFuT.js";
@@ -1,2 +1,2 @@
1
- const e=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js");const t=require("../../lib/file-explorer/context.cjs.js");let n=require("@lit/context"),r=require("lit/decorators.js"),i=require("lit-html");var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;function E(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t,n){O(e,t),t.set(e,n)}function O(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function k(e,t,n){return e.set(j(e,t),n),n}function A(e,t){return e.get(j(e,t))}function j(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 M(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:F(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||F(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){if(typeof C==`object`&&C)(g=c(C.get,`accessor.get`))&&(b.get=g),(g=c(C.set,`accessor.set`))&&(b.set=g),(g=c(C.init,`accessor.init`))&&x.push(g);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),f||y||(d?p?l.push(o(b,`get`),o(b,`set`)):l.push(i===2?b[S]:o.call.bind(b[S])):Object.defineProperty(e,r,b)),C}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return I(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);if(!0===x||x===3&&m!==4||x===4&&m!==3)throw Error(`Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: `+h);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:N(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function N(e){var t=P(e,`string`);return typeof t==`symbol`?t:t+``}function P(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function I(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}c=[(0,r.customElement)(`solid-ui-file-explorer-provider`)];var L,R=new WeakMap,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap;T=(l=(0,r.property)({attribute:!1}),d=(0,r.property)({attribute:!1}),p=(0,r.property)({attribute:!1}),h=(0,r.property)({attribute:!1}),_=(0,r.property)({attribute:!1}),y=(0,r.state)(),x=(0,r.state)(),C=(0,n.provide)({context:t.fileExplorerContext}),`context`),a=class extends e.default{constructor(...e){super(...e),D(this,R,(o(this),u(this))),D(this,z,f(this)),D(this,B,m(this)),D(this,V,g(this,[])),D(this,H,v(this)),D(this,U,b(this)),D(this,W,S(this,!1)),D(this,G,w(this)),E(this,`registerEditor`,e=>(this.editor=e,()=>{this.editor===e&&(this.editor=void 0)}))}get[T](){return A(R,this)}set context(e){k(R,this,e)}get subjectUri(){return A(z,this)}set subjectUri(e){k(z,this,e)}get pane(){return A(B,this)}set pane(e){k(B,this,e)}get relevantPanes(){return A(V,this)}set relevantPanes(e){k(V,this,e)}get soloPane(){return A(H,this)}set soloPane(e){k(H,this,e)}get editor(){return A(U,this)}set editor(e){k(U,this,e)}get isDirty(){return A(W,this)}set isDirty(e){k(W,this,e)}get value(){return A(G,this)}set value(e){k(G,this,e)}willUpdate(){this.value={store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,isDirty:this.isDirty,canEdit:!!this.editor,registerEditor:this.registerEditor,beginEditing:()=>{this.editor?.beginEditing()},setDirty:e=>{this.isDirty=e}}}render(){return i.html`<slot></slot>`}},{e:[u,f,m,g,v,b,S,w,o],c:[L,s]}=M(a,[[l,1,`context`],[d,1,`subjectUri`],[p,1,`pane`],[h,1,`relevantPanes`],[_,1,`soloPane`],[y,1,`editor`],[x,1,`isDirty`],[C,1,`value`]],c,0,void 0,e.default),s(),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return L}});
1
+ const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js");const n=require("../../lib/file-explorer/context.cjs.js");let r=require("@lit/context"),i=require("lit/decorators.js"),a=require("lit-html");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;function D(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t,n){k(e,t),t.set(e,n)}function k(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function A(e,t,n){return e.set(M(e,t),n),n}function j(e,t){return e.get(M(e,t))}function M(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 N(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:I(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||I(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 L(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:P(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 P(e){var t=F(e,`string`);return typeof t==`symbol`?t:t+``}function F(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function I(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 L(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}l=[e.customElement(`solid-ui-file-explorer-provider`)];var R,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,K=new WeakMap;E=(u=(0,i.property)({attribute:!1}),f=(0,i.property)({attribute:!1}),m=(0,i.property)({attribute:!1}),g=(0,i.property)({attribute:!1}),v=(0,i.property)({attribute:!1}),b=(0,i.state)(),S=(0,i.state)(),w=(0,r.provide)({context:n.fileExplorerContext}),`context`),o=class extends t.default{constructor(...e){super(...e),O(this,z,(s(this),d(this))),O(this,B,p(this)),O(this,V,h(this)),O(this,H,_(this,[])),O(this,U,y(this)),O(this,W,x(this)),O(this,G,C(this,!1)),O(this,K,T(this)),D(this,`registerEditor`,e=>(this.editor=e,()=>{this.editor===e&&(this.editor=void 0)}))}get[E](){return j(z,this)}set context(e){A(z,this,e)}get subjectUri(){return j(B,this)}set subjectUri(e){A(B,this,e)}get pane(){return j(V,this)}set pane(e){A(V,this,e)}get relevantPanes(){return j(H,this)}set relevantPanes(e){A(H,this,e)}get soloPane(){return j(U,this)}set soloPane(e){A(U,this,e)}get editor(){return j(W,this)}set editor(e){A(W,this,e)}get isDirty(){return j(G,this)}set isDirty(e){A(G,this,e)}get value(){return j(K,this)}set value(e){A(K,this,e)}willUpdate(){this.value={store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,isDirty:this.isDirty,canEdit:!!this.editor,registerEditor:this.registerEditor,beginEditing:()=>{this.editor?.beginEditing()},setDirty:e=>{this.isDirty=e}}}render(){return a.html`<slot></slot>`}},{e:[d,p,h,_,y,x,C,T,s],c:[R,c]}=N(o,[[u,1,`context`],[f,1,`subjectUri`],[m,1,`pane`],[g,1,`relevantPanes`],[v,1,`soloPane`],[b,1,`editor`],[S,1,`isDirty`],[w,1,`value`]],l,0,void 0,t.default),c(),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return R}});
2
2
  //# sourceMappingURL=FileExplorerProvider.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","provide","customElement","property","state","WebComponent","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","customElement","property","state","provide","fileExplorerContext","WebComponent","require_WebComponent","require_context","_lit_context","lit_decorators_js","lit_html","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","args","editor","dirty"],"sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { WebComponent } from '@/lib/components'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\n}\n"],"mappings":"A,o2IAK0GO,EAAA,EAAA,EAEzGL,EAAAA,cAAAA,CAAc,iCAAiC,CAAC,EAAA,IAAAM,EAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,EAAA,IAAAN,QAAAO,EAAA,IAAAP,QAAAQ,GAAAC,GAAAA,EAE9ChB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BlB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BnB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACG,GAAAA,EAG9BpB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACI,GAAAA,EAG9BrB,EAAAA,SAAAA,CAAS,CAAEiB,UAAW,EAAM,CAAC,EAACK,GAAAA,EAG9BrB,EAAAA,MAAAA,CAAM,EAACsB,GAAAA,EACPtB,EAAAA,MAAAA,CAAM,EAACuB,GAAAA,EAEP1B,EAAAA,QAAA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ApB,EAAA,EAAA,IAAA,GA3CiDF,EAAAA,OAAY,EAAA6D,EAAA,E"}
1
+ {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","provide","customElement","WebComponent","property","state","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","customElement","property","state","provide","fileExplorerContext","WebComponent","require_decorators","require_WebComponent","require_context","_lit_context","lit_decorators_js","lit_html","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","args","editor","dirty"],"sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\n}\n"],"mappings":"A,w5IAK0GO,EAAA,CAEzGL,EAAAA,cAAc,iCAAiC,CAAC,EAAA,IAAAM,EAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,EAAA,IAAAN,QAAAO,EAAA,IAAAP,QAAAQ,GAAAC,GAAAA,EAE9Cf,EAAAA,SAAAA,CAAS,CAAEgB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BjB,EAAAA,SAAAA,CAAS,CAAEgB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BlB,EAAAA,SAAAA,CAAS,CAAEgB,UAAW,EAAM,CAAC,EAACG,GAAAA,EAG9BnB,EAAA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AA,EAAA,CAAAE,EAAA,EAAA,YAAA,EAAA,CAAAC,EAAA,EAAA,MAAA,EAAA,CAAAC,EAAA,EAAA,eAAA,EAAA,CAAAC,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,QAAA,EAAA,CAAAC,EAAA,EAAA,SAAA,EAAA,CAAAC,EAAA,EAAA,OAAA,CAAA,EAAApB,EAAA,EAAA,IAAA,GA3CiDJ,EAAAA,OAAY,EAAA+D,EAAA,E"}
@@ -1,5 +1,5 @@
1
- import { DataBrowserContext, PaneDefinition } from 'pane-registry';
2
1
  import { WebComponent } from '../../lib/components';
2
+ import { DataBrowserContext, PaneDefinition } from 'pane-registry';
3
3
  import { FileExplorerContext } from '../../lib/file-explorer/context';
4
4
  export default class FileExplorerProvider extends WebComponent {
5
5
  accessor context: DataBrowserContext | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerProvider.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAA2C,MAAM,6BAA6B,CAAA;AAG1G,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAE5D,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAGhD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAGvC,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAGzC,QAAQ,CAAC,aAAa,EAAE,cAAc,EAAE,CAAK;IAG7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAE7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAGzC,QAAQ,CAAC,KAAK,EAAG,mBAAmB,CAAA;IAEpC,OAAO,CAAC,cAAc,CAGrB;IAED,SAAS,CAAC,UAAU;IAapB,MAAM;CAGP"}
1
+ {"version":3,"file":"FileExplorerProvider.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE9D,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAA2C,MAAM,6BAA6B,CAAA;AAG1G,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAE5D,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAGhD,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAGvC,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAGzC,QAAQ,CAAC,aAAa,EAAE,cAAc,EAAE,CAAK;IAG7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAE7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAGzC,QAAQ,CAAC,KAAK,EAAG,mBAAmB,CAAA;IAEpC,OAAO,CAAC,cAAc,CAGrB;IAED,SAAS,CAAC,UAAU;IAapB,MAAM;CAGP"}
@@ -1,8 +1,9 @@
1
- import e from "../../lib/components/web-component/WebComponent.esm.js";
1
+ import { customElement as e } from "../../lib/components/decorators.esm.js";
2
+ import t from "../../lib/components/web-component/WebComponent.esm.js";
2
3
  import "../../lib/components/index.esm.js";
3
- import { fileExplorerContext as t } from "../../lib/file-explorer/context.esm.js";
4
- import { provide as n } from "@lit/context";
5
- import { customElement as r, property as i, state as a } from "lit/decorators.js";
4
+ import { fileExplorerContext as n } from "../../lib/file-explorer/context.esm.js";
5
+ import { provide as r } from "@lit/context";
6
+ import { property as i, state as a } from "lit/decorators.js";
6
7
  import { html as o } from "lit-html";
7
8
  // src/components/file-explorer-provider/FileExplorerProvider.ts
8
9
  var s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D;
@@ -174,9 +175,9 @@ function R(e) {
174
175
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
175
176
  return e;
176
177
  }
177
- u = [r("solid-ui-file-explorer-provider")];
178
+ u = [e("solid-ui-file-explorer-provider")];
178
179
  var z, B = /*#__PURE__*/ new WeakMap(), V = /*#__PURE__*/ new WeakMap(), H = /*#__PURE__*/ new WeakMap(), U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap();
179
- D = (d = i({ attribute: !1 }), p = i({ attribute: !1 }), h = i({ attribute: !1 }), _ = i({ attribute: !1 }), y = i({ attribute: !1 }), x = a(), C = a(), T = n({ context: t }), "context"), s = class extends e {
180
+ D = (d = i({ attribute: !1 }), p = i({ attribute: !1 }), h = i({ attribute: !1 }), _ = i({ attribute: !1 }), y = i({ attribute: !1 }), x = a(), C = a(), T = r({ context: n }), "context"), s = class extends t {
180
181
  constructor(...e) {
181
182
  super(...e), k(this, B, (c(this), f(this))), k(this, V, m(this)), k(this, H, g(this)), k(this, U, v(this, [])), k(this, W, b(this)), k(this, G, S(this)), k(this, K, w(this, !1)), k(this, q, E(this)), O(this, "registerEditor", (e) => (this.editor = e, () => {
182
183
  this.editor === e && (this.editor = void 0);
@@ -290,7 +291,7 @@ D = (d = i({ attribute: !1 }), p = i({ attribute: !1 }), h = i({ attribute: !1 }
290
291
  1,
291
292
  "value"
292
293
  ]
293
- ], u, 0, void 0, e), l();
294
+ ], u, 0, void 0, t), l();
294
295
  export { z as default };
295
296
 
296
297
  //# sourceMappingURL=FileExplorerProvider.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerProvider.esm.js","names":["html","provide","customElement","property","state","WebComponent","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","WebComponent","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","customElement","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","property","state","provide","fileExplorerContext","args","editor","dirty"],"sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { WebComponent } from '@/lib/components'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK0GO,IAAA,CAEzGL,EAAc,iCAAiC,CAAC;AAAA,IAAAM,GAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IAAAP,QAAA;AAAAQ,KAAAC,IAE9ChB,EAAS,EAAEiB,WAAW,GAAM,CAAC,GAACC,IA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A;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAApB,GAAA,GAAA,KAAA,GA3CiDF,CAAY,GAAA6D,EAAA"}
1
+ {"version":3,"file":"FileExplorerProvider.esm.js","names":["html","provide","customElement","WebComponent","property","state","fileExplorerContext","_classDecs","_FileExplorerProvider","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_ref","_contextDecs","attribute","_subjectUriDecs","_paneDecs","_relevantPanesDecs","_soloPaneDecs","_editorDecs","_isDirtyDecs","_valueDecs","context","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","_init_subjectUri","_init_pane","_init_relevantPanes","_init_soloPane","_init_editor","_init_isDirty","_init_value","_defineProperty","editor","undefined","_classPrivateFieldGet","v","_classPrivateFieldSet","subjectUri","pane","relevantPanes","soloPane","isDirty","value","willUpdate","store","session","canEdit","registerEditor","beginEditing","setDirty","dirty","render","_FileExplorerProvider2","e","c","_initClass","_applyDecs","default","WebComponent","_FileExplorerProvider2","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_paneDecs","_init_pane","_relevantPanesDecs","_init_relevantPanes","_soloPaneDecs","_init_soloPane","_editorDecs","_init_editor","_isDirtyDecs","_init_isDirty","_valueDecs","_init_value","_ref","_defineProperty","_toPropertyKey","r","t","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","customElement","_FileExplorerProvider","_A","_B","_C","_D","_E","_F","_G","_H","property","state","provide","fileExplorerContext","args","editor","dirty"],"sources":["../../../src/components/file-explorer-provider/FileExplorerProvider.ts"],"sourcesContent":["import { html } from 'lit-html'\nimport { provide } from '@lit/context'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { property, state } from 'lit/decorators.js'\nimport { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport { FileExplorerContext, FileExplorerEditor, fileExplorerContext } from '@/lib/file-explorer/context'\n\n@customElement('solid-ui-file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor soloPane: boolean | undefined\n\n @state() private accessor editor: FileExplorerEditor | undefined\n @state() private accessor isDirty = false\n\n @provide({ context: fileExplorerContext })\n accessor value!: FileExplorerContext\n\n private registerEditor = (editor: FileExplorerEditor) => {\n this.editor = editor\n return () => { if (this.editor === editor) this.editor = undefined }\n }\n\n protected willUpdate () {\n this.value = {\n store: this.context?.session.store,\n subjectUri: this.subjectUri,\n pane: this.pane,\n isDirty: this.isDirty,\n canEdit: !!this.editor,\n registerEditor: this.registerEditor,\n beginEditing: () => { this.editor?.beginEditing() },\n setDirty: (dirty) => { this.isDirty = dirty }\n }\n }\n\n render () {\n return html`<slot></slot>`\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK0GO,IAAA,CAEzGL,EAAc,iCAAiC,CAAC;AAAA,IAAAM,GAAAC,kBAAA,IAAAC,QAAA,GAA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WAAWC,MAAU;IAAE,KAAKT,UAAUS;GAAM;EAC9C;CACF;CAEAC,SAAU;EACR,OAAO9D,CAAI;CACb;AACF,GAAC,CAAAgE,GAAA,CAAA9B,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAR,IAAAgC,GAAA,CAAAzD,GAAA0D,MAAAC,EAAAJ,GAAA;CAAA;EAAA5C;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAApB,GAAA,GAAA,KAAA,GA3CiDJ,CAAY,GAAA+D,EAAA"}
@@ -1 +1 @@
1
- export { n as FileExplorerProvider, t as default } from "../chunks/file-explorer-provider-B3gUBkHg.js";
1
+ export { n as FileExplorerProvider, t as default } from "../chunks/file-explorer-provider-DpjC7uds.js";
@@ -1 +1 @@
1
- export { n as Guard, t as default } from "../chunks/guard-C39y81In.js";
1
+ export { n as Guard, t as default } from "../chunks/guard-SxVT1xr4.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Input.esm.js","names":["customElement","FormControlComponent","html","property","query","styles","_classDecs","_Input","_Input2","_A","WeakMap","_B","_C","_D","_E","_ref","_typeDecs","type","String","reflect","_placeholderDecs","_requiredDecs","Boolean","_readonlyDecs","_controlElementDecs","_Input3","Input","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_type","_init_placeholder","_init_required","_init_readonly","_init_controlElement","_classPrivateFieldGet","v","_classPrivateFieldSet","placeholder","required","readonly","controlElement","render","controlTrait","renderLabel","onLeftIconSlotChange","controlId","name","value","onInput","onKeyDown","e","slot","target","toggleAttribute","assignedElements","length","key","preventDefault","onSubmit","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","customElement","styles","customElement$1","FormControlComponent","Input_styles_default","_Class","_Input3","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_typeDecs","_init_type","_placeholderDecs","_init_placeholder","_requiredDecs","_init_required","_readonlyDecs","_init_readonly","_controlElementDecs","_init_controlElement","_Input2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Input","property","query","args","slot"],"sources":["../../../src/components/input/Input.ts"],"sourcesContent":["import { customElement, FormControlComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query } from 'lit/decorators.js'\n\nimport styles from './Input.styles.css'\n\n@customElement('solid-ui-input')\nexport default class Input extends FormControlComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor type = 'text';\n\n @property({ type: String, reflect: true })\n accessor placeholder = '';\n\n @property({ type: Boolean, reflect: true })\n accessor required = false;\n\n @property({ type: Boolean, reflect: true })\n accessor readonly = false;\n\n @query('input')\n protected accessor controlElement: HTMLInputElement | null = null;\n\n protected render () {\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <slot @slotchange=${this.onLeftIconSlotChange} name=\"left-icon\"></slot>\n <input\n id=${this.controlTrait.controlId}\n type=${this.type}\n name=${this.name}\n placeholder=${this.placeholder}\n ?required=${this.required}\n .value=${this.value}\n ?readonly=${this.readonly}\n @input=${() => this.controlTrait.onInput()}\n @keydown=${this.onKeyDown}\n />\n </div>\n `\n }\n\n private onLeftIconSlotChange (e: Event) {\n const slot = e.target as HTMLSlotElement\n\n this.toggleAttribute('data-has-left-icon', slot.assignedElements().length > 0)\n }\n\n private onKeyDown (e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault()\n\n this.controlTrait.on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EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAlB,GAAA,GAAA,KAAA,GApDkCL,CAAoB,GAAAwB,IAAAuC,IAAA,cAAAC,EAAA;CAAAtC,cAAA;EAAA,MAAApB,CAAA,GAAA2D,EAAA,MAAA,UACrC7D,CAAM,GAAAyD,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAxD,GAAA,KAAA,CAAA,GAAAwD,GAAA"}
1
+ {"version":3,"file":"Input.esm.js","names":["customElement","FormControlComponent","html","property","query","styles","_classDecs","_Input","_Input2","_A","WeakMap","_B","_C","_D","_E","_ref","_typeDecs","type","String","reflect","_placeholderDecs","_requiredDecs","Boolean","_readonlyDecs","_controlElementDecs","_Input3","Input","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_type","_init_placeholder","_init_required","_init_readonly","_init_controlElement","_classPrivateFieldGet","v","_classPrivateFieldSet","placeholder","required","readonly","controlElement","render","controlTrait","renderLabel","onLeftIconSlotChange","controlId","name","value","onInput","onKeyDown","e","slot","target","toggleAttribute","assignedElements","length","key","preventDefault","onSubmit","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","FormControlComponent","Input_styles_default","_Class","_Input3","_A","_B","_C","_D","_E","_initProto","_initClass","_classDecs","_typeDecs","_init_type","_placeholderDecs","_init_placeholder","_requiredDecs","_init_required","_readonlyDecs","_init_readonly","_controlElementDecs","_init_controlElement","_Input2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_Input","property","query","args","slot"],"sources":["../../../src/components/input/Input.ts"],"sourcesContent":["import { customElement, FormControlComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query } from 'lit/decorators.js'\n\nimport styles from './Input.styles.css'\n\n@customElement('solid-ui-input')\nexport default class Input extends FormControlComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor type = 'text';\n\n @property({ type: String, reflect: true })\n accessor placeholder = '';\n\n @property({ type: Boolean, reflect: true })\n accessor required = false;\n\n @property({ type: Boolean, reflect: true })\n accessor readonly = false;\n\n @query('input')\n protected accessor controlElement: HTMLInputElement | null = null;\n\n protected render () {\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <slot @slotchange=${this.onLeftIconSlotChange} name=\"left-icon\"></slot>\n <input\n id=${this.controlTrait.controlId}\n type=${this.type}\n name=${this.name}\n placeholder=${this.placeholder}\n ?required=${this.required}\n .value=${this.value}\n ?readonly=${this.readonly}\n @input=${() => this.controlTrait.onInput()}\n @keydown=${this.onKeyDown}\n />\n </div>\n `\n }\n\n private onLeftIconSlotChange (e: Event) {\n const slot = e.target as HTMLSlotElement\n\n this.toggleAttribute('data-has-left-icon', slot.assignedElements().length > 0)\n }\n\n private onKeyDown (e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault()\n\n this.controlTrait.onSubmit()\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIuCM,IAAA,CAEtCN,EAAc,gBAAgB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI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js";
1
+ export { n as Input, t as default } from "../chunks/input-Bz3l514j.js";
@@ -1,4 +1,4 @@
1
- const e=require("../../lib/auth/context.cjs.js"),t=require("../../lib/components/decorators.cjs.js"),n=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js"),require("../../lib/auth/index.cjs.js");let r=require("@lit/context"),i=require("lit");var a,o,s,c,l,u,d;function f(e,t,n){p(e,t),t.set(e,n)}function p(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function m(e,t,n){return e.set(g(e,t),n),n}function h(e,t){return e.get(g(e,t))}function g(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _(e,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 x={},S=[],C=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?x={get:b(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:x[C]=v,f||b(x[C],r,i===2?``:C)):f||(x=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(y)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),x.value}:(i<4&&(A=o(x,`get`,h)),i!==3&&(j=o(x,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:x.get,set:x.set}:x[C],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(x.get=g),(g=c(w.set,`accessor.set`))&&(x.set=g),(g=c(w.init,`accessor.init`))&&S.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?S.push(w):x[C]=w)}}finally{O.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=S.length-1;n>=0;n--)t=S[n].call(e,t);return t}),f||y||(d?p?l.push(o(x,`get`),o(x,`set`)):l.push(i===2?x[C]:o.call.bind(x[C])):Object.defineProperty(e,r,x)),w}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 x(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,y=!!(8&m),b=(m&=7)==0,S=h+`/`+y;if(!b&&!g){var C=u.get(S);if(!0===C||C===3&&m!==4||C===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(S,!(m>2)||m)}l(y?e:e.prototype,p,_,g?`#`+h:v(h),m,r,y?a||=[]:i||=[],o,y,g,b,m===1,y&&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 v(e){var t=y(e,`string`);return typeof t==`symbol`?t:t+``}function y(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function b(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 x(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}c=[t.customElement(`solid-ui-login-button`)];var S,C=new WeakMap;d=(l=(0,r.consume)({context:e.authContext,subscribe:!0}),`auth`),a=class extends n.default{constructor(...t){super(...t),f(this,C,(o(this),u(this,e.DEFAULT_AUTH_CONTEXT)))}get[d](){return h(C,this)}set auth(e){m(C,this,e)}render(){return i.html`
1
+ const e=require("../../lib/auth/context.cjs.js"),t=require("../../lib/components/decorators.cjs.js"),n=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../../lib/auth/index.cjs.js"),require("../button/index.cjs.js");let r=require("@lit/context"),i=require("lit");var a,o,s,c,l,u,d;function f(e,t,n){p(e,t),t.set(e,n)}function p(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function m(e,t,n){return e.set(g(e,t),n),n}function h(e,t){return e.get(g(e,t))}function g(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function _(e,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 x={},S=[],C=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?x={get:b(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:x[C]=v,f||b(x[C],r,i===2?``:C)):f||(x=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(y)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),x.value}:(i<4&&(A=o(x,`get`,h)),i!==3&&(j=o(x,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:x.get,set:x.set}:x[C],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(x.get=g),(g=c(w.set,`accessor.set`))&&(x.set=g),(g=c(w.init,`accessor.init`))&&S.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?S.push(w):x[C]=w)}}finally{O.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=S.length-1;n>=0;n--)t=S[n].call(e,t);return t}),f||y||(d?p?l.push(o(x,`get`),o(x,`set`)):l.push(i===2?x[C]:o.call.bind(x[C])):Object.defineProperty(e,r,x)),w}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 x(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,y=!!(8&m),b=(m&=7)==0,S=h+`/`+y;if(!b&&!g){var C=u.get(S);if(!0===C||C===3&&m!==4||C===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(S,!(m>2)||m)}l(y?e:e.prototype,p,_,g?`#`+h:v(h),m,r,y?a||=[]:i||=[],o,y,g,b,m===1,y&&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 v(e){var t=y(e,`string`);return typeof t==`symbol`?t:t+``}function y(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function b(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 x(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}c=[t.customElement(`solid-ui-login-button`)];var S,C=new WeakMap;d=(l=(0,r.consume)({context:e.authContext,subscribe:!0}),`auth`),a=class extends n.default{constructor(...t){super(...t),f(this,C,(o(this),u(this,e.DEFAULT_AUTH_CONTEXT)))}get[d](){return h(C,this)}set auth(e){m(C,this,e)}render(){return i.html`
2
2
  <slot name="trigger" @click=${this.onClick}>
3
3
  <solid-ui-button>
4
4
  <slot>
@@ -2,8 +2,8 @@ import { DEFAULT_AUTH_CONTEXT as e, authContext as t } from "../../lib/auth/cont
2
2
  import { customElement as n } from "../../lib/components/decorators.esm.js";
3
3
  import r from "../../lib/components/web-component/WebComponent.esm.js";
4
4
  import "../../lib/components/index.esm.js";
5
- import "../button/index.esm.js";
6
5
  import "../../lib/auth/index.esm.js";
6
+ import "../button/index.esm.js";
7
7
  import { consume as i } from "@lit/context";
8
8
  import { html as a } from "lit";
9
9
  // src/components/login-button/LoginButton.ts
@@ -1 +1 @@
1
- export { n as LoginButton, t as default } from "../chunks/login-button-fo0P8vym.js";
1
+ export { n as LoginButton, t as default } from "../chunks/login-button-Dd0rwZJk.js";