solid-ui 5.0.2-2 → 5.0.2-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  6. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  12. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  16. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
  20. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
  24. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
  28. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
  29. package/dist/chunks/DialogProvider-dagk2fHm.js +209 -0
  30. package/dist/chunks/DialogProvider-dagk2fHm.js.map +1 -0
  31. package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js +379 -0
  32. package/dist/chunks/ResourceActionsMenu-o-8kWx8z.js.map +1 -0
  33. package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CWH98HX3.js} +466 -478
  34. package/dist/chunks/access-control-modal-CWH98HX3.js.map +1 -0
  35. package/dist/chunks/{account-D6JK-n7u.js → account-Cocvv0H3.js} +21 -20
  36. package/dist/chunks/{account-D6JK-n7u.js.map → account-Cocvv0H3.js.map} +1 -1
  37. package/dist/chunks/{auth-B_abPDvH.js → auth-Df5uYksz.js} +41 -39
  38. package/dist/chunks/{auth-B_abPDvH.js.map → auth-Df5uYksz.js.map} +1 -1
  39. package/dist/chunks/{avatar-BR3COVSQ.js → avatar-DeotTinS.js} +11 -10
  40. package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-DeotTinS.js.map} +1 -1
  41. package/dist/chunks/{button-D6qO2idW.js → button-Dy1aFjqG.js} +11 -10
  42. package/dist/chunks/{button-D6qO2idW.js.map → button-Dy1aFjqG.js.map} +1 -1
  43. package/dist/chunks/{chunk.UEBQI7VV-lcP-fpUk.js → chunk.UEBQI7VV-9M5gO7Ew.js} +9 -12
  44. package/dist/chunks/chunk.UEBQI7VV-9M5gO7Ew.js.map +1 -0
  45. package/dist/chunks/{combobox-fSTp9qoT.js → combobox-BL0-8wef.js} +18 -17
  46. package/dist/chunks/{combobox-fSTp9qoT.js.map → combobox-BL0-8wef.js.map} +1 -1
  47. package/dist/chunks/{combobox-option-DOtGuKel.js → combobox-option-DjlmXt1O.js} +8 -7
  48. package/dist/chunks/{combobox-option-DOtGuKel.js.map → combobox-option-DjlmXt1O.js.map} +1 -1
  49. package/dist/chunks/{components-C8c2Ucm5.js → components-LxiwG5ae.js} +190 -201
  50. package/dist/chunks/components-LxiwG5ae.js.map +1 -0
  51. package/dist/chunks/context-By_u12WA.js +21 -0
  52. package/dist/chunks/context-By_u12WA.js.map +1 -0
  53. package/dist/chunks/custom-element-BW8Ua4c7.js +9 -0
  54. package/dist/chunks/custom-element-BW8Ua4c7.js.map +1 -0
  55. package/dist/chunks/decorators-V-B013l9.js +12 -0
  56. package/dist/chunks/decorators-V-B013l9.js.map +1 -0
  57. package/dist/chunks/{dialog-CgYK767T.js → dialog-CrmftB9c.js} +16 -15
  58. package/dist/chunks/{dialog-CgYK767T.js.map → dialog-CrmftB9c.js.map} +1 -1
  59. package/dist/chunks/{dialog-content-DjwRH1ci.js → dialog-content-Cw3xqJ45.js} +6 -5
  60. package/dist/chunks/{dialog-content-DjwRH1ci.js.map → dialog-content-Cw3xqJ45.js.map} +1 -1
  61. package/dist/chunks/{dialog-footer-GQWi8lfB.js → dialog-footer-sFQf-2zD.js} +6 -5
  62. package/dist/chunks/{dialog-footer-GQWi8lfB.js.map → dialog-footer-sFQf-2zD.js.map} +1 -1
  63. package/dist/chunks/{dialog-header-c3qOMQfb.js → dialog-header-xIWIqfZK.js} +6 -5
  64. package/dist/chunks/{dialog-header-c3qOMQfb.js.map → dialog-header-xIWIqfZK.js.map} +1 -1
  65. package/dist/chunks/{dialogs-BmtLjMzg.js → dialogs-B3tHtjMf.js} +2 -2
  66. package/dist/chunks/{dialogs-BmtLjMzg.js.map → dialogs-B3tHtjMf.js.map} +1 -1
  67. package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-Lh2u-3Cs.js} +9 -8
  68. package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-Lh2u-3Cs.js.map} +1 -1
  69. package/dist/chunks/{error-state-BD4_Wrkz.js → error-state-DnsXVj1z.js} +11 -10
  70. package/dist/chunks/{error-state-BD4_Wrkz.js.map → error-state-DnsXVj1z.js.map} +1 -1
  71. package/dist/chunks/events-CXQHDCs2.js +8 -0
  72. package/dist/chunks/events-CXQHDCs2.js.map +1 -0
  73. package/dist/chunks/file-explorer-header-B6-Q0i6V.js +963 -0
  74. package/dist/chunks/file-explorer-header-B6-Q0i6V.js.map +1 -0
  75. package/dist/chunks/file-explorer-provider-B3gUBkHg.js +296 -0
  76. package/dist/chunks/file-explorer-provider-B3gUBkHg.js.map +1 -0
  77. package/dist/chunks/globe-CsCgZcy5.js +16 -0
  78. package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
  79. package/dist/chunks/{guard-bTeM7wd7.js → guard-C39y81In.js} +11 -10
  80. package/dist/chunks/{guard-bTeM7wd7.js.map → guard-C39y81In.js.map} +1 -1
  81. package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
  82. package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
  83. package/dist/chunks/{input-Bz3l514j.js → input-Bi6ZBZQw.js} +12 -11
  84. package/dist/chunks/{input-Bz3l514j.js.map → input-Bi6ZBZQw.js.map} +1 -1
  85. package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
  86. package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
  87. package/dist/chunks/{login-button-Div4ZT4J.js → login-button-fo0P8vym.js} +10 -9
  88. package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-fo0P8vym.js.map} +1 -1
  89. package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CF2YFgID.js} +10 -9
  90. package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CF2YFgID.js.map} +1 -1
  91. package/dist/chunks/{menu-D0k2fkiE.js → menu-RumUciM-.js} +49 -47
  92. package/dist/chunks/{menu-D0k2fkiE.js.map → menu-RumUciM-.js.map} +1 -1
  93. package/dist/chunks/{menu-item-nfPpH4dN.js → menu-item-CVAZyipz.js} +11 -10
  94. package/dist/chunks/{menu-item-nfPpH4dN.js.map → menu-item-CVAZyipz.js.map} +1 -1
  95. package/dist/chunks/{photo-capture-hJaJm4TM.js → photo-capture-CAfo7y6-.js} +21 -20
  96. package/dist/chunks/photo-capture-CAfo7y6-.js.map +1 -0
  97. package/dist/chunks/{photo-capture-modal-BsHv6wmh.js → photo-capture-modal-DWmDE_Ws.js} +29 -28
  98. package/dist/chunks/{photo-capture-modal-BsHv6wmh.js.map → photo-capture-modal-DWmDE_Ws.js.map} +1 -1
  99. package/dist/chunks/provide-B5NeVMM_.js +111 -0
  100. package/dist/chunks/provide-B5NeVMM_.js.map +1 -0
  101. package/dist/chunks/{provider-Dcd1NPYx.js → provider-BbT2duMy.js} +11 -10
  102. package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-BbT2duMy.js.map} +1 -1
  103. package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-CH9bDx98.js} +30 -29
  104. package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-CH9bDx98.js.map} +1 -1
  105. package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-C_V0pIS5.js} +56 -55
  106. package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-C_V0pIS5.js.map} +1 -1
  107. package/dist/chunks/{select-option-DQan7rcB.js → select-option-U4ALXL20.js} +8 -7
  108. package/dist/chunks/{select-option-DQan7rcB.js.map → select-option-U4ALXL20.js.map} +1 -1
  109. package/dist/chunks/{select-ClPkDkGl.js → select-y1Z6fwmh.js} +10 -9
  110. package/dist/chunks/{select-ClPkDkGl.js.map → select-y1Z6fwmh.js.map} +1 -1
  111. package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-DicFpAjD.js} +10 -9
  112. package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-DicFpAjD.js.map} +1 -1
  113. package/dist/chunks/{solid-emblem-DwLdkGuO.js → solid-emblem-CeCXTpve.js} +8 -7
  114. package/dist/chunks/{solid-emblem-DwLdkGuO.js.map → solid-emblem-CeCXTpve.js.map} +1 -1
  115. package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
  116. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
  117. package/dist/chunks/{src-Dx7k_VIe.js → src-Bhtor0ZC.js} +2311 -2282
  118. package/dist/chunks/src-Bhtor0ZC.js.map +1 -0
  119. package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
  120. package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
  121. package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
  122. package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
  123. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
  124. package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
  125. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
  126. package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
  127. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  128. package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
  129. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  130. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
  131. package/dist/components/access-control-modal.js +1 -1
  132. package/dist/components/account/Account.esm.js.map +1 -1
  133. package/dist/components/account.js +1 -1
  134. package/dist/components/all.cjs.js +1 -1
  135. package/dist/components/all.esm.js +3 -0
  136. package/dist/components/avatar.js +1 -1
  137. package/dist/components/button/Button.esm.js.map +1 -1
  138. package/dist/components/button.js +1 -1
  139. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  140. package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
  141. package/dist/components/combobox-option.js +1 -1
  142. package/dist/components/combobox.js +1 -1
  143. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  144. package/dist/components/dialog-content.js +1 -1
  145. package/dist/components/dialog-footer.js +1 -1
  146. package/dist/components/dialog-header.js +1 -1
  147. package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
  148. package/dist/components/dialog-provider.js +1 -1
  149. package/dist/components/dialog.js +1 -1
  150. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  151. package/dist/components/dialogs-root.js +1 -1
  152. package/dist/components/error-state/ErrorState.esm.js.map +1 -1
  153. package/dist/components/error-state.js +1 -1
  154. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
  155. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  156. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
  157. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  158. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +309 -0
  159. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  160. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  161. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  162. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
  163. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  164. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
  165. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  166. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
  167. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  168. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +317 -0
  169. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  170. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  171. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  172. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
  173. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  174. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
  175. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  176. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
  177. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  178. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +355 -0
  179. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  180. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  181. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  182. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
  183. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  184. package/dist/components/file-explorer-header/index.cjs.js +2 -0
  185. package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
  186. package/dist/components/file-explorer-header/index.d.ts +4 -0
  187. package/dist/components/file-explorer-header/index.d.ts.map +1 -0
  188. package/dist/components/file-explorer-header/index.esm.js +6 -0
  189. package/dist/components/file-explorer-header/index.esm.js.map +1 -0
  190. package/dist/components/file-explorer-header/types.d.ts +11 -0
  191. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  192. package/dist/components/file-explorer-header.js +1 -0
  193. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
  194. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
  195. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
  196. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
  197. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +296 -0
  198. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
  199. package/dist/components/file-explorer-provider/index.cjs.js +2 -0
  200. package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
  201. package/dist/components/file-explorer-provider/index.d.ts +4 -0
  202. package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
  203. package/dist/components/file-explorer-provider/index.esm.js +6 -0
  204. package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
  205. package/dist/components/file-explorer-provider.js +1 -0
  206. package/dist/components/guard.js +1 -1
  207. package/dist/components/index.cjs.js +1 -1
  208. package/dist/components/index.d.ts.map +1 -1
  209. package/dist/components/index.esm.js +1 -0
  210. package/dist/components/input/Input.esm.js.map +1 -1
  211. package/dist/components/input.js +1 -1
  212. package/dist/components/login-button.js +1 -1
  213. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  214. package/dist/components/login-modal.js +1 -1
  215. package/dist/components/logout-button.js +1 -1
  216. package/dist/components/menu/Menu.esm.js.map +1 -1
  217. package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
  218. package/dist/components/menu-item.js +1 -1
  219. package/dist/components/menu.js +1 -1
  220. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
  221. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
  222. package/dist/components/photo-capture-modal.js +1 -1
  223. package/dist/components/photo-capture.js +1 -1
  224. package/dist/components/provider/Provider.esm.js.map +1 -1
  225. package/dist/components/provider.js +1 -1
  226. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  227. package/dist/components/rdf-form.js +1 -1
  228. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  229. package/dist/components/rdf-input.js +1 -1
  230. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  231. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  232. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
  233. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  234. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
  235. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  236. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +343 -0
  237. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  238. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
  239. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
  240. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
  241. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
  242. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
  243. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
  244. package/dist/components/resource-actions-menu/index.cjs.js +1 -0
  245. package/dist/components/resource-actions-menu/index.d.ts +2 -0
  246. package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
  247. package/dist/components/resource-actions-menu/index.esm.js +1 -0
  248. package/dist/components/resource-actions-menu.js +1 -0
  249. package/dist/components/select/Select.esm.js.map +1 -1
  250. package/dist/components/select-option/SelectOption.esm.js.map +1 -1
  251. package/dist/components/select-option.js +1 -1
  252. package/dist/components/select.js +1 -1
  253. package/dist/components/signup-button.js +1 -1
  254. package/dist/components/solid-emblem.js +1 -1
  255. package/dist/components.js +31 -28
  256. package/dist/index.cjs.js +1 -1
  257. package/dist/index.cjs.js.map +1 -1
  258. package/dist/index.d.ts +1 -1
  259. package/dist/index.d.ts.map +1 -1
  260. package/dist/index.esm.js +8 -4
  261. package/dist/index.esm.js.map +1 -1
  262. package/dist/index.js +12 -9
  263. package/dist/lib/context/noopContext.cjs.js +2 -0
  264. package/dist/lib/context/noopContext.cjs.js.map +1 -0
  265. package/dist/lib/context/noopContext.d.ts +2 -0
  266. package/dist/lib/context/noopContext.d.ts.map +1 -0
  267. package/dist/lib/context/noopContext.esm.js +18 -0
  268. package/dist/lib/context/noopContext.esm.js.map +1 -0
  269. package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
  270. package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
  271. package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
  272. package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
  273. package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
  274. package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
  275. package/dist/lib/file-explorer/context.cjs.js +1 -1
  276. package/dist/lib/file-explorer/context.cjs.js.map +1 -1
  277. package/dist/lib/file-explorer/context.d.ts +12 -14
  278. package/dist/lib/file-explorer/context.d.ts.map +1 -1
  279. package/dist/lib/file-explorer/context.esm.js +4 -3
  280. package/dist/lib/file-explorer/context.esm.js.map +1 -1
  281. package/dist/lib/file-explorer/events.cjs.js +2 -0
  282. package/dist/lib/file-explorer/events.cjs.js.map +1 -0
  283. package/dist/lib/file-explorer/events.d.ts +16 -0
  284. package/dist/lib/file-explorer/events.d.ts.map +1 -0
  285. package/dist/lib/file-explorer/events.esm.js +8 -0
  286. package/dist/lib/file-explorer/events.esm.js.map +1 -0
  287. package/dist/lib/file-explorer/index.cjs.js +1 -0
  288. package/dist/lib/file-explorer/index.d.ts +5 -0
  289. package/dist/lib/file-explorer/index.d.ts.map +1 -0
  290. package/dist/lib/file-explorer/index.esm.js +5 -0
  291. package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
  292. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
  293. package/dist/lib/file-explorer/relevant-panes.d.ts +15 -0
  294. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
  295. package/dist/lib/file-explorer/relevant-panes.esm.js +14 -0
  296. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
  297. package/dist/loader.js +12 -9
  298. package/dist/solid-ui.js +211 -107
  299. package/dist/solid-ui.min.js +211 -107
  300. package/dist/solid-ui.min.js.map +1 -1
  301. package/dist/theme.css +1 -1
  302. package/dist/utils/podUtils.cjs.js +2 -0
  303. package/dist/utils/podUtils.cjs.js.map +1 -0
  304. package/dist/utils/podUtils.d.ts +6 -0
  305. package/dist/utils/podUtils.d.ts.map +1 -0
  306. package/dist/utils/podUtils.esm.js +22 -0
  307. package/dist/utils/podUtils.esm.js.map +1 -0
  308. package/dist/utils/webIdUtils.cjs.js +1 -0
  309. package/dist/utils/webIdUtils.d.ts +7 -0
  310. package/dist/utils/webIdUtils.d.ts.map +1 -0
  311. package/dist/utils/webIdUtils.esm.js +3 -0
  312. package/package.json +3 -3
  313. package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
  314. package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
  315. package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
  316. package/dist/chunks/chunk.UEBQI7VV-lcP-fpUk.js.map +0 -1
  317. package/dist/chunks/components-C8c2Ucm5.js.map +0 -1
  318. package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
  319. package/dist/chunks/photo-capture-hJaJm4TM.js.map +0 -1
  320. package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
@@ -0,0 +1,296 @@
1
+ import e from "../../lib/components/web-component/WebComponent.esm.js";
2
+ 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";
6
+ import { html as o } from "lit-html";
7
+ // src/components/file-explorer-provider/FileExplorerProvider.ts
8
+ var s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D;
9
+ function O(e, t, n) {
10
+ return (t = F(t)) in e ? Object.defineProperty(e, t, {
11
+ value: n,
12
+ enumerable: !0,
13
+ configurable: !0,
14
+ writable: !0
15
+ }) : e[t] = n, e;
16
+ }
17
+ function k(e, t, n) {
18
+ A(e, t), t.set(e, n);
19
+ }
20
+ function A(e, t) {
21
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
22
+ }
23
+ function j(e, t, n) {
24
+ return e.set(N(e, t), n), n;
25
+ }
26
+ function M(e, t) {
27
+ return e.get(N(e, t));
28
+ }
29
+ function N(e, t, n) {
30
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
31
+ throw TypeError("Private element is not present on this object");
32
+ }
33
+ function P(e, t, n, r, i, a) {
34
+ function o(e, t, n) {
35
+ return function(r, i) {
36
+ return n && n(r), e[t].call(r, i);
37
+ };
38
+ }
39
+ function s(e, t) {
40
+ for (var n = 0; n < e.length; n++) e[n].call(t);
41
+ return t;
42
+ }
43
+ function c(e, t, n, r) {
44
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
45
+ return e;
46
+ }
47
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
48
+ function h(e) {
49
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
50
+ }
51
+ var g, _ = t[0], v = t[3], y = !l;
52
+ if (!y) {
53
+ n || Array.isArray(_) || (_ = [_]);
54
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
55
+ d ? (f || p ? b = {
56
+ get: L(function() {
57
+ return v(this);
58
+ }, r, "get"),
59
+ set: function(e) {
60
+ t[4](this, e);
61
+ }
62
+ } : b[S] = v, f || L(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
63
+ }
64
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
65
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
66
+ kind: [
67
+ "field",
68
+ "accessor",
69
+ "method",
70
+ "getter",
71
+ "setter",
72
+ "class"
73
+ ][i],
74
+ name: r,
75
+ metadata: a,
76
+ addInitializer: function(e, t) {
77
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
78
+ c(t, "An initializer", "be", !0), s.push(t);
79
+ }.bind(null, D)
80
+ };
81
+ try {
82
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
83
+ else {
84
+ var k, A;
85
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
86
+ return h(e), b.value;
87
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
88
+ return e[r];
89
+ }, (i < 2 || i === 4) && (A = function(e, t) {
90
+ e[r] = t;
91
+ }));
92
+ var j = O.access = { has: d ? m.bind() : function(e) {
93
+ return r in e;
94
+ } };
95
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
96
+ get: b.get,
97
+ set: b.set
98
+ } : b[S], O), p) {
99
+ 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);
100
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
101
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
102
+ }
103
+ } finally {
104
+ D.v = !0;
105
+ }
106
+ }
107
+ return (f || p) && l.push(function(e, t) {
108
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
109
+ return t;
110
+ }), 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;
111
+ }
112
+ function u(e, t) {
113
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
114
+ configurable: !0,
115
+ enumerable: !0,
116
+ value: t
117
+ });
118
+ }
119
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
120
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
121
+ var i, a, o = [], c = function(t) {
122
+ return R(t) === e;
123
+ }, u = /* @__PURE__ */ new Map();
124
+ function d(e) {
125
+ e && o.push(s.bind(null, e));
126
+ }
127
+ for (var f = 0; f < t.length; f++) {
128
+ var p = t[f];
129
+ if (Array.isArray(p)) {
130
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
131
+ if (!y && !g) {
132
+ var x = u.get(b);
133
+ 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);
134
+ u.set(b, !(m > 2) || m);
135
+ }
136
+ l(v ? e : e.prototype, p, _, g ? "#" + h : F(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
137
+ }
138
+ }
139
+ return d(i), d(a), o;
140
+ }(e, t, i, f);
141
+ return n.length || u(e, f), {
142
+ e: p,
143
+ get c() {
144
+ var t = [];
145
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
146
+ }
147
+ };
148
+ }
149
+ function F(e) {
150
+ var t = I(e, "string");
151
+ return typeof t == "symbol" ? t : t + "";
152
+ }
153
+ function I(e, t) {
154
+ if (typeof e != "object" || !e) return e;
155
+ var n;
156
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
157
+ var r = n.call(e, t || "default");
158
+ if (typeof r != "object") return r;
159
+ throw TypeError("@@toPrimitive must return a primitive value.");
160
+ }
161
+ return (t === "string" ? String : Number)(e);
162
+ }
163
+ function L(e, t, n) {
164
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
165
+ try {
166
+ Object.defineProperty(e, "name", {
167
+ configurable: !0,
168
+ value: n ? n + " " + t : t
169
+ });
170
+ } catch {}
171
+ return e;
172
+ }
173
+ function R(e) {
174
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
175
+ return e;
176
+ }
177
+ u = [r("solid-ui-file-explorer-provider")];
178
+ 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
+ constructor(...e) {
181
+ 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
+ this.editor === e && (this.editor = void 0);
183
+ }));
184
+ }
185
+ get [D]() {
186
+ return M(B, this);
187
+ }
188
+ set context(e) {
189
+ j(B, this, e);
190
+ }
191
+ get subjectUri() {
192
+ return M(V, this);
193
+ }
194
+ set subjectUri(e) {
195
+ j(V, this, e);
196
+ }
197
+ get pane() {
198
+ return M(H, this);
199
+ }
200
+ set pane(e) {
201
+ j(H, this, e);
202
+ }
203
+ get relevantPanes() {
204
+ return M(U, this);
205
+ }
206
+ set relevantPanes(e) {
207
+ j(U, this, e);
208
+ }
209
+ get soloPane() {
210
+ return M(W, this);
211
+ }
212
+ set soloPane(e) {
213
+ j(W, this, e);
214
+ }
215
+ get editor() {
216
+ return M(G, this);
217
+ }
218
+ set editor(e) {
219
+ j(G, this, e);
220
+ }
221
+ get isDirty() {
222
+ return M(K, this);
223
+ }
224
+ set isDirty(e) {
225
+ j(K, this, e);
226
+ }
227
+ get value() {
228
+ return M(q, this);
229
+ }
230
+ set value(e) {
231
+ j(q, this, e);
232
+ }
233
+ willUpdate() {
234
+ this.value = {
235
+ store: this.context?.session.store,
236
+ subjectUri: this.subjectUri,
237
+ pane: this.pane,
238
+ isDirty: this.isDirty,
239
+ canEdit: !!this.editor,
240
+ registerEditor: this.registerEditor,
241
+ beginEditing: () => {
242
+ this.editor?.beginEditing();
243
+ },
244
+ setDirty: (e) => {
245
+ this.isDirty = e;
246
+ }
247
+ };
248
+ }
249
+ render() {
250
+ return o`<slot></slot>`;
251
+ }
252
+ }, {e: [f, m, g, v, b, S, w, E, c], c: [z, l]} = P(s, [
253
+ [
254
+ d,
255
+ 1,
256
+ "context"
257
+ ],
258
+ [
259
+ p,
260
+ 1,
261
+ "subjectUri"
262
+ ],
263
+ [
264
+ h,
265
+ 1,
266
+ "pane"
267
+ ],
268
+ [
269
+ _,
270
+ 1,
271
+ "relevantPanes"
272
+ ],
273
+ [
274
+ y,
275
+ 1,
276
+ "soloPane"
277
+ ],
278
+ [
279
+ x,
280
+ 1,
281
+ "editor"
282
+ ],
283
+ [
284
+ C,
285
+ 1,
286
+ "isDirty"
287
+ ],
288
+ [
289
+ T,
290
+ 1,
291
+ "value"
292
+ ]
293
+ ], u, 0, void 0, e), l();
294
+ export { z as default };
295
+
296
+ //# sourceMappingURL=FileExplorerProvider.esm.js.map
@@ -0,0 +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,IAG9BlB,EAAS,EAAEiB,WAAW,GAAM,CAAC,GAACE,IAG9BnB,EAAS,EAAEiB,WAAW,GAAM,CAAC,GAACG,IAG9BpB,EAAS,EAAEiB,WAAW,GAAM,CAAC,GAACI,IAG9BrB,EAAS,EAAEiB,WAAW,GAAM,CAAC,GAACK,IAG9BrB,EAAM,GAACsB,IACPtB,EAAM,GAACuB,IAEP1B,EAAQ,EAAE2B,SAAStB,EAAoB,CAAC,GAAC,YAwB3CyD,IAAAlC,cA3CiDxB,EAAa;CAAAyB,YAAA,GAAAC,GAAA;EAiBpBW,AAjBoB,MAAA,GAAAX,CAAA,GAAAC,EAAA,MAAAvB,IAAAwB,EAAA,IAAA,GAAAC,EAAA,IAAA,E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,GAAA,MAAA+B,CAAA;CAAA;CAAA,IACNM,UAAO;EAAA,OAAAP,EAAA7B,GAAA,IAAA;CAAA;CAAA,IAAPoC,QAAON,GAAA;EAAAC,EAAA/B,GAAA,MAAA8B,CAAA;CAAA;CAAA,IAGxBO,QAAK;EAAA,OAAAR,EAAA5B,GAAA,IAAA;CAAA;CAAA,IAALoC,MAAKP,GAAA;EAAAC,EAAA9B,GAAA,MAAA6B,CAAA;CAAA;CAOJQ,aAAc;EACtB,KAAKD,QAAQ;GACXE,OAAO,KAAK3B,SAAS4B,QAAQD;GAC7BP,YAAY,KAAKA;GACjBC,MAAM,KAAKA;GACXG,SAAS,KAAKA;GACdK,SAAS,CAAC,CAAC,KAAKd;GAChBe,gBAAgB,KAAKA;GACrBC,oBAAoB;IAAE,KAAKhB,QAAQgB,aAAa;GAAE;GAClDC,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,GA3CiDF,CAAY,GAAA6D,EAAA"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./FileExplorerProvider.cjs.js");var t=e.default;Object.defineProperty(exports,"FileExplorerProvider",{enumerable:!0,get:function(){return e.default}}),exports.default=t;
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","names":["FileExplorerProvider","FileExplorerProvider","require_FileExplorerProvider","file_explorer_provider_default"],"sources":["../../../src/components/file-explorer-provider/index.ts"],"sourcesContent":["import FileExplorerProvider from './FileExplorerProvider'\n\nexport { FileExplorerProvider }\nexport default FileExplorerProvider\n"],"mappings":"A,gJAGA,IAAAG,EAAeH,EAAAA,Q"}
@@ -0,0 +1,4 @@
1
+ import { default as FileExplorerProvider } from './FileExplorerProvider';
2
+ export { FileExplorerProvider };
3
+ export default FileExplorerProvider;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,oBAAoB,EAAE,CAAA;AAC/B,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import e from "./FileExplorerProvider.esm.js";
2
+ // src/components/file-explorer-provider/index.ts
3
+ var t = e;
4
+ export { e as FileExplorerProvider, t as default };
5
+
6
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","names":["FileExplorerProvider","FileExplorerProvider","_FileExplorerProvider","file_explorer_provider_default"],"sources":["../../../src/components/file-explorer-provider/index.ts"],"sourcesContent":["import FileExplorerProvider from './FileExplorerProvider'\n\nexport { FileExplorerProvider }\nexport default FileExplorerProvider\n"],"mappings":";;AAGA,IAAAG,IAAeH"}
@@ -0,0 +1 @@
1
+ export { n as FileExplorerProvider, t as default } from "../chunks/file-explorer-provider-B3gUBkHg.js";
@@ -1 +1 @@
1
- export { n as Guard, t as default } from "../chunks/guard-bTeM7wd7.js";
1
+ export { n as Guard, t as default } from "../chunks/guard-C39y81In.js";
@@ -1 +1 @@
1
- require("./provider/index.cjs.js"),require("./all.cjs.js");
1
+ require("./provider/index.cjs.js"),require("./file-explorer-provider/index.cjs.js"),require("./all.cjs.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AACnB,OAAO,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AACnB,OAAO,0BAA0B,CAAA;AACjC,OAAO,OAAO,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import "./provider/index.esm.js";
2
+ import "./file-explorer-provider/index.esm.js";
2
3
  import "./all.esm.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","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,IAA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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","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.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,kBAAA,IAAAJ,QAAA,GAAAK,KAAAC,IAI7Bb,EAAS;CAAEc,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCjB,EAAS;CAAEc,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACE,IAGzClB,EAAS;CAAEc,MAAMK;CAASH,SAAS;AAAK,CAAC,GAACI,IAG1CpB,EAAS;CAAEc,MAAMK;CAASH,SAAS;AAAK,CAAC,GAACK,IAG1CpB,EAAM,OAAO,GAAC,SAAAqB,IAhBjB,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mBAChB,KAAKS,MAAK;sBACP,KAAKR,SAAQ;yBACV,KAAKG,aAAaM,QAAQ,EAAC;qBAC/B,KAAKC,UAAS;;;;CAIjC;CAEQL,qBAAsBM,GAAU;EACtC,IAAMC,IAAOD,EAAEE;EAEf,KAAKC,gBAAgB,sBAAsBF,EAAKG,iBAAiB,CAAC,CAACC,SAAS,CAAC;CAC/E;CAEQN,UAAWC,GAAkB;EACnC,AAAIA,EAAEM,QAAQ,YACZN,EAAEO,eAAe,GAEjB,KAAKf,aAAagB,SAAS;CAE/B;AACF,GAAC,CAAAR,GAAA,CAAArB,GAAAC,GAAAC,GAAAC,GAAAC,GAAAL,IAAA+B,GAAA,CAAAtD,GAAAuD,MAAAC,EAAAtC,GAAA;CAAA;EAAAT;EAAA;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 +1 @@
1
- export { n as Input, t as default } from "../chunks/input-Bz3l514j.js";
1
+ export { n as Input, t as default } from "../chunks/input-Bi6ZBZQw.js";
@@ -1 +1 @@
1
- export { n as LoginButton, t as default } from "../chunks/login-button-Div4ZT4J.js";
1
+ export { n as LoginButton, t as default } from "../chunks/login-button-fo0P8vym.js";
@@ -1 +1 @@
1
- {"version":3,"file":"LoginModal.esm.js","names":["customElement","WebComponent","html","nothing","consume","property","query","state","authContext","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","styles","_classDecs","_LoginModal","_LoginModal2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_issuerUrlDecs","type","String","reflect","_issuerInputValueDecs","_failedDecs","_submittingDecs","_authDecs","context","subscribe","_dialogDecs","_LoginModal3","LoginModal","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_issuerUrl","_init_issuerInputValue","_init_failed","_init_submitting","_init_auth","_init_dialog","_classPrivateFieldGet","issuerUrl","v","_classPrivateFieldSet","issuerInputValue","failed","submitting","auth","dialog","connectedCallback","localStorage","getItem","uri","render","suggestedIssuers","onSubmit","onIssuerInputChange","map","issuer","name","close","e","target","value","preventDefault","login","error","console","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","WebComponent","LoginModal_styles_default","_Class","_LoginModal3","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_issuerUrlDecs","_init_issuerUrl","_issuerInputValueDecs","_init_issuerInputValue","_failedDecs","_init_failed","_submittingDecs","_init_submitting","_authDecs","_init_auth","_dialogDecs","_init_dialog","_LoginModal2","_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","_LoginModal","property","state","consume","authContext","query","args","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","suggestedIssuers","issuer","nothing","error"],"sources":["../../../src/components/login-modal/LoginModal.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { consume } from '@lit/context'\nimport { property, query, state } from 'lit/decorators.js'\nimport { AuthContext, authContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\nimport { getSuggestedIssuers } from 'solid-logic'\nimport type Dialog from '@/components/dialog'\nimport type Combobox from '@/components/combobox'\n\nimport '~icons/lucide/chevron-down'\nimport '@/components/dialog'\nimport '@/components/dialog-content'\nimport '@/components/dialog-footer'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './LoginModal.styles.css'\n\n@customElement('solid-ui-login-modal')\nexport default class LoginModal extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor issuerUrl = ''\n\n @state()\n private accessor issuerInputValue = ''\n\n @state()\n private accessor failed: boolean = false\n\n @state()\n private accessor submitting: boolean = false\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n @query('solid-ui-dialog')\n private accessor dialog: Dialog | null = null\n\n connectedCallback () {\n super.connectedCallback()\n\n this.issuerInputValue =\n (typeof localStorage !== 'undefined' && localStorage.getItem('loginIssuer')) ||\n this.issuerUrl ||\n getSuggestedIssuers()[0]?.uri ||\n ''\n }\n\n protected render () {\n const suggestedIssuers = getSuggestedIssuers()\n\n return html`\n <solid-ui-dialog title=\"Select an identity provider\">\n <form @submit=${this.onSubmit}>\n <solid-ui-dialog-content>\n <solid-ui-combobox label=\"Solid Identity Provider\" .value=${this.issuerInputValue} @input=${this.onIssuerInputChange}>\n ${suggestedIssuers.map(issuer => html`<solid-ui-combobox-option value=\"${issuer.uri}\">${issuer.name}</solid-ui-combobox-option>`)}\n </solid-ui-combobox>\n\n ${this.failed ? html`<p class=\"error-message\">Something went wrong</p>` : nothing}\n </solid-ui-dialog-content>\n\n <solid-ui-dialog-footer>\n <solid-ui-button\n variant=\"secondary\"\n @click=\"${() => this.dialog?.close()}\"\n >\n Cancel\n </solid-ui-button>\n <solid-ui-button\n ?disabled=${!this.issuerInputValue || this.submitting}\n ?loading=${this.submitting}\n type=\"submit\"\n >\n Login\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </form>\n </solid-ui-dialog>\n `\n }\n\n private onIssuerInputChange (e: Event) {\n this.issuerInputValue = String((e.target as Combobox).value)\n }\n\n private async onSubmit (e: Event) {\n e.preventDefault()\n\n this.failed = false\n\n if (!this.issuerInputValue) {\n return\n }\n\n this.submitting = true\n\n try {\n await this.auth.login(this.issuerInputValue)\n } catch (error) {\n console.error(error)\n\n this.failed = true\n } finally {\n this.submitting = false\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB4CY,IAAA,CAE3CZ,EAAc,sBAAsB,CAAC;AAAA,IAAAa;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,IAInClB,EAAS;CAAEmB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCpB,EAAM,GAACqB,IAGPrB,EAAM,GAACsB,IAGPtB,EAAM,GAACuB,IAGP1B,EAAQ;CAAE2B,SAASvB;CAAawB,WAAW;AAAK,CAAC,GAACC,IAGlD3B,EAAM,iBAAiB,GAAC,cAAA4B,IAnB3B,cACwCjC,EAAa;CAAAmC,YAAA,GAAAC,GAAA;EAgBMC,AAhBN,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAvB,IAAAwB,EAAA,IAAA,GAAAC,EAAA,MAI9B,EAAE,EAAA,GAAAF,EAAA,MAAArB,GAAAwB,EAAA,MAGa,EAAE,CAAA,GAAAH,EAAA,MAAApB,GAAAwB,EAAA,MAGH,EAAK,CAAA,GAAAJ,EAAA,MAAAnB,GAAAwB,EAAA,MAGD,EAAK,CAAA,GAAAL,EAAA,MAAAlB,GAAAwB,EAAA,MAGPnC,CAAoB,CAAA,GAAA6B,EAAA,MAAA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;;sBAGnI,KAAKd,SAASjD,CAAI,sDAAsDC,EAAO;;;;;;wCAM7D,KAAKmD,QAAQY,MAAM,EAAC;;;;;oCAKxB,CAAC,KAAKhB,oBAAoB,KAAKE,WAAU;mCAC1C,KAAKA,WAAU;;;;;;;;;CAShD;CAEQU,oBAAqBK,GAAU;EACrC,KAAKjB,mBAAmBzB,OAAQ0C,EAAEC,OAAoBC,KAAK;CAC7D;CAEA,MAAcR,SAAUM,GAAU;EAKhC,IAJAA,EAAEG,eAAe,GAEjB,KAAKnB,SAAS,IAET,KAAKD,kBAIV;QAAKE,aAAa;GAElB,IAAI;IACF,MAAM,KAAKC,KAAKkB,MAAM,KAAKrB,gBAAgB;GAC7C,SAASsB,GAAO;IAGd,AAFAC,QAAQD,MAAMA,CAAK,GAEnB,KAAKrB,SAAS;GAChB,UAAU;IACR,KAAKC,aAAa;GACpB;EAVkB;CAWpB;AACF,GAAC,CAAAe,GAAA,CAAA3B,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAN,IAAAmC,GAAA,CAAA7D,GAAA8D,MAAAC,EAAA1C,GAAA;CAAA;EAAAX;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;AAAA,GAAArB,GAAA,GAAA,KAAA,GA1FuCX,CAAY,GAAAiC,IAAA2C,IAAA,cAAAC,EAAA;CAAA1C,cAAA;EAAA,MAAAvB,CAAA,GAAAkE,EAAA,MAAA,UAClCpE,CAAM,GAAAgE,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAA/D,GAAA,KAAA,CAAA,GAAA+D,GAAA"}
1
+ {"version":3,"file":"LoginModal.esm.js","names":["customElement","WebComponent","html","nothing","consume","property","query","state","authContext","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","styles","_classDecs","_LoginModal","_LoginModal2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_issuerUrlDecs","type","String","reflect","_issuerInputValueDecs","_failedDecs","_submittingDecs","_authDecs","context","subscribe","_dialogDecs","_LoginModal3","LoginModal","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_issuerUrl","_init_issuerInputValue","_init_failed","_init_submitting","_init_auth","_init_dialog","_classPrivateFieldGet","issuerUrl","v","_classPrivateFieldSet","issuerInputValue","failed","submitting","auth","dialog","connectedCallback","localStorage","getItem","uri","render","suggestedIssuers","onSubmit","onIssuerInputChange","map","issuer","name","close","e","target","value","preventDefault","login","error","console","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","customElement","styles","customElement$1","WebComponent","LoginModal_styles_default","_Class","_LoginModal3","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_issuerUrlDecs","_init_issuerUrl","_issuerInputValueDecs","_init_issuerInputValue","_failedDecs","_init_failed","_submittingDecs","_init_submitting","_authDecs","_init_auth","_dialogDecs","_init_dialog","_LoginModal2","_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","_LoginModal","property","state","consume","authContext","query","args","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","suggestedIssuers","issuer","nothing","error"],"sources":["../../../src/components/login-modal/LoginModal.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { consume } from '@lit/context'\nimport { property, query, state } from 'lit/decorators.js'\nimport { AuthContext, authContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\nimport { getSuggestedIssuers } from 'solid-logic'\nimport type Dialog from '@/components/dialog'\nimport type Combobox from '@/components/combobox'\n\nimport '~icons/lucide/chevron-down'\nimport '@/components/dialog'\nimport '@/components/dialog-content'\nimport '@/components/dialog-footer'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './LoginModal.styles.css'\n\n@customElement('solid-ui-login-modal')\nexport default class LoginModal extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor issuerUrl = ''\n\n @state()\n private accessor issuerInputValue = ''\n\n @state()\n private accessor failed: boolean = false\n\n @state()\n private accessor submitting: boolean = false\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n @query('solid-ui-dialog')\n private accessor dialog: Dialog | null = null\n\n connectedCallback () {\n super.connectedCallback()\n\n this.issuerInputValue =\n (typeof localStorage !== 'undefined' && localStorage.getItem('loginIssuer')) ||\n this.issuerUrl ||\n getSuggestedIssuers()[0]?.uri ||\n ''\n }\n\n protected render () {\n const suggestedIssuers = getSuggestedIssuers()\n\n return html`\n <solid-ui-dialog title=\"Select an identity provider\">\n <form @submit=${this.onSubmit}>\n <solid-ui-dialog-content>\n <solid-ui-combobox label=\"Solid Identity Provider\" .value=${this.issuerInputValue} @input=${this.onIssuerInputChange}>\n ${suggestedIssuers.map(issuer => html`<solid-ui-combobox-option value=\"${issuer.uri}\">${issuer.name}</solid-ui-combobox-option>`)}\n </solid-ui-combobox>\n\n ${this.failed ? html`<p class=\"error-message\">Something went wrong</p>` : nothing}\n </solid-ui-dialog-content>\n\n <solid-ui-dialog-footer>\n <solid-ui-button\n variant=\"secondary\"\n @click=\"${() => this.dialog?.close()}\"\n >\n Cancel\n </solid-ui-button>\n <solid-ui-button\n ?disabled=${!this.issuerInputValue || this.submitting}\n ?loading=${this.submitting}\n type=\"submit\"\n >\n Login\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </form>\n </solid-ui-dialog>\n `\n }\n\n private onIssuerInputChange (e: Event) {\n this.issuerInputValue = String((e.target as Combobox).value)\n }\n\n private async onSubmit (e: Event) {\n e.preventDefault()\n\n this.failed = false\n\n if (!this.issuerInputValue) {\n return\n }\n\n this.submitting = true\n\n try {\n await this.auth.login(this.issuerInputValue)\n } catch (error) {\n console.error(error)\n\n this.failed = true\n } finally {\n this.submitting = false\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB4CY,IAAA,CAE3CZ,EAAc,sBAAsB,CAAC;AAAA,IAAAa;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,IAInClB,EAAS;CAAEmB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCpB,EAAM,GAACqB,IAGPrB,EAAM,GAACsB,IAGPtB,EAAM,GAACuB,IAGP1B,EAAQ;CAAE2B,SAASvB;CAAawB,WAAW;AAAK,CAAC,GAACC,IAGlD3B,EAAM,iBAAiB,GAAC,cAAA4B,IAnB3B,cACwCjC,EAAa;CAAAmC,YAAA,GAAAC,GAAA;EAgBMC,AAhBN,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAvB,IAAAwB,EAAA,IAAA,GAAAC,EAAA,MAI9B,EAAE,EAAA,GAAAF,EAAA,MAAArB,GAAAwB,EAAA,MAGa,EAAE,CAAA,GAAAH,EAAA,MAAApB,GAAAwB,EAAA,MAGH,EAAK,CAAA,GAAAJ,EAAA,MAAAnB,GAAAwB,EAAA,MAGD,EAAK,CAAA,GAAAL,EAAA,MAAAlB,GAAAwB,EAAA,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default } from "../chunks/auth-Df5uYksz.js";
@@ -1 +1 @@
1
- export { n as LogoutButton, t as default } from "../chunks/logout-button-D3lqlnCX.js";
1
+ export { n as LogoutButton, t as default } from "../chunks/logout-button-CF2YFgID.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.esm.js","names":["customElement","WebComponent","html","property","query","state","styles","_classDecs","_Menu","_Menu2","_A","WeakMap","_B","_C","_D","_ref","_placementDecs","type","String","reflect","_distanceDecs","Number","_dropdownDecs","_itemsDecs","_Menu3","Menu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_placement","_init_distance","_init_dropdown","_init_items","_defineProperty","MutationObserver","syncItems","_classPrivateFieldGet","placement","v","_classPrivateFieldSet","distance","dropdown","items","connectedCallback","observer","observe","childList","disconnectedCallback","disconnect","render","onWaSelect","map","item","onItemClick","slot","Array","from","children","filter","child","getAttribute","index","slotName","setAttribute","event","waItem","currentTarget","stopPropagation","disabled","selectedEvent","dispatchSelectEvent","defaultPrevented","open","detail","preventDefault","querySelector","click","CustomEvent","bubbles","composed","cancelable","dispatchEvent","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","WebComponent","Menu_styles_default","_Class","_Menu3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_placementDecs","_init_placement","_distanceDecs","_init_distance","_dropdownDecs","_init_dropdown","_itemsDecs","_init_items","_Menu2","_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","_Menu","property","query","state","args","item","items","child","slotName","index","waItem","event"],"sources":["../../../src/components/menu/Menu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport type WaDropdown from '@awesome.me/webawesome/dist/components/dropdown/dropdown.js'\nimport type WaDropdownItem from '@awesome.me/webawesome/dist/components/dropdown-item/dropdown-item.js'\nimport type { WaDropdownSelectEvent } from '@awesome.me/webawesome'\n\nimport '@awesome.me/webawesome/dist/components/dropdown/dropdown.js'\nimport '@awesome.me/webawesome/dist/components/dropdown-item/dropdown-item.js'\n\nimport styles from './Menu.styles.css'\n\n@customElement('solid-ui-menu')\nexport default class Menu extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor placement: WaDropdown['placement'] = 'bottom-start';\n\n @property({ type: Number, reflect: true })\n accessor distance: number = 5;\n\n @query('wa-dropdown')\n private accessor dropdown: WaDropdown | null = null;\n\n @state()\n private accessor items: { slot: string; }[] = []\n\n private observer: MutationObserver = new MutationObserver(() => this.syncItems())\n\n connectedCallback () {\n super.connectedCallback()\n\n this.syncItems()\n this.observer.observe(this, { childList: true })\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.observer.disconnect()\n }\n\n protected render () {\n return html`\n <wa-dropdown\n placement=${this.placement}\n distance=${this.distance}\n @wa-select=${this.onWaSelect}\n >\n <slot name=\"trigger\" slot=\"trigger\"></slot>\n\n ${this.items.map(\n (item) =>\n html`<wa-dropdown-item @click=${this.onItemClick}>\n <slot name=${item.slot}></slot>\n </wa-dropdown-item>`\n )}\n </wa-dropdown>\n `\n }\n\n private syncItems (): void {\n // Exclude only the trigger element; include all other children\n // regardless of whether they already have a slot assigned.\n const items = Array.from(this.children).filter(\n (child) => child.getAttribute('slot') !== 'trigger'\n )\n\n this.items = items.map((item, index) => {\n const slotName = `menu-item-${index}`\n\n if (item.getAttribute('slot') !== slotName) {\n item.setAttribute('slot', slotName)\n }\n\n return { slot: slotName }\n })\n }\n\n private onItemClick (event: Event) {\n const waItem = event.currentTarget as WaDropdownItem\n\n event.stopPropagation()\n\n if (waItem.disabled) {\n return\n }\n\n const selectedEvent = this.dispatchSelectEvent(waItem)\n\n if (selectedEvent.defaultPrevented || !this.dropdown) {\n return\n }\n\n this.dropdown.open = false\n }\n\n private onWaSelect (event: WaDropdownSelectEvent) {\n const selectedEvent = this.dispatchSelectEvent(event.detail.item)\n\n if (selectedEvent.defaultPrevented) {\n event.preventDefault()\n\n return\n }\n\n const slotName = event.detail.item.children[0].getAttribute('name')\n const item = this.querySelector<{ click?: () => void } & Element>(`[slot=\"${slotName}\"]`)\n\n item?.click?.()\n }\n\n private dispatchSelectEvent (waItem: WaDropdownItem) {\n const slotName = waItem.children[0].getAttribute('name')\n const item = this.querySelector(`[slot=\"${slotName}\"]`)\n const event = new CustomEvent('solid-ui-select', {\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n\n item?.dispatchEvent(event)\n\n return event\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUsCO,IAAA,CAErCP,EAAc,eAAe,CAAC;AAAA,IAAAQ;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,KAAAC,IAI5Bb,EAAS;CAAEc,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCjB,EAAS;CAAEc,MAAMI;CAAQF,SAAS;AAAK,CAAC,GAACG,IAGzClB,EAAM,aAAa,GAACmB,IAGpBlB,EAAM,GAAC,cAAAmB,IAbV,cACkCvB,EAAa;CAAAyB,YAAA,GAAAC,GAAA;EAaGO,AAbH,MAAA,GAAAP,CAAA,GAAAC,EAAA,MAAAlB,IAAAmB,EAAA,IAAA,GAAAC,EAAA,MAIC,cAAc,EAAA,GAAAF,EAAA,MAAAhB,GAAA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,GAAA,KAAA,GAjHiCN,CAAY,GAAAuB,IAAA+D,IAAA,cAAAC,EAAA;CAAA9D,cAAA;EAAA,MAAAlB,CAAA,GAAA0B,EAAA,MAAA,UAC5B5B,CAAM,GAAA+E,EAAA;CAAA;AAAA,GAAAnD,EAAAqD,GAAA9E,GAAA,KAAA,CAAA,GAAA8E,GAAA"}
1
+ {"version":3,"file":"Menu.esm.js","names":["customElement","WebComponent","html","property","query","state","styles","_classDecs","_Menu","_Menu2","_A","WeakMap","_B","_C","_D","_ref","_placementDecs","type","String","reflect","_distanceDecs","Number","_dropdownDecs","_itemsDecs","_Menu3","Menu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_placement","_init_distance","_init_dropdown","_init_items","_defineProperty","MutationObserver","syncItems","_classPrivateFieldGet","placement","v","_classPrivateFieldSet","distance","dropdown","items","connectedCallback","observer","observe","childList","disconnectedCallback","disconnect","render","onWaSelect","map","item","onItemClick","slot","Array","from","children","filter","child","getAttribute","index","slotName","setAttribute","event","waItem","currentTarget","stopPropagation","disabled","selectedEvent","dispatchSelectEvent","defaultPrevented","open","detail","preventDefault","querySelector","click","CustomEvent","bubbles","composed","cancelable","dispatchEvent","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","styles","customElement$1","WebComponent","Menu_styles_default","_Class","_Menu3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_placementDecs","_init_placement","_distanceDecs","_init_distance","_dropdownDecs","_init_dropdown","_itemsDecs","_init_items","_Menu2","_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","_Menu","property","query","state","args","item","items","child","slotName","index","waItem","event"],"sources":["../../../src/components/menu/Menu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport type WaDropdown from '@awesome.me/webawesome/dist/components/dropdown/dropdown.js'\nimport type WaDropdownItem from '@awesome.me/webawesome/dist/components/dropdown-item/dropdown-item.js'\nimport type { WaDropdownSelectEvent } from '@awesome.me/webawesome'\n\nimport '@awesome.me/webawesome/dist/components/dropdown/dropdown.js'\nimport '@awesome.me/webawesome/dist/components/dropdown-item/dropdown-item.js'\n\nimport styles from './Menu.styles.css'\n\n@customElement('solid-ui-menu')\nexport default class Menu extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor placement: WaDropdown['placement'] = 'bottom-start';\n\n @property({ type: Number, reflect: true })\n accessor distance: number = 5;\n\n @query('wa-dropdown')\n private accessor dropdown: WaDropdown | null = null;\n\n @state()\n private accessor items: { slot: string; }[] = []\n\n private observer: MutationObserver = new MutationObserver(() => this.syncItems())\n\n connectedCallback () {\n super.connectedCallback()\n\n this.syncItems()\n this.observer.observe(this, { childList: true })\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.observer.disconnect()\n }\n\n protected render () {\n return html`\n <wa-dropdown\n placement=${this.placement}\n distance=${this.distance}\n @wa-select=${this.onWaSelect}\n >\n <slot name=\"trigger\" slot=\"trigger\"></slot>\n\n ${this.items.map(\n (item) =>\n html`<wa-dropdown-item @click=${this.onItemClick}>\n <slot name=${item.slot}></slot>\n </wa-dropdown-item>`\n )}\n </wa-dropdown>\n `\n }\n\n private syncItems (): void {\n // Exclude only the trigger element; include all other children\n // regardless of whether they already have a slot assigned.\n const items = Array.from(this.children).filter(\n (child) => child.getAttribute('slot') !== 'trigger'\n )\n\n this.items = items.map((item, index) => {\n const slotName = `menu-item-${index}`\n\n if (item.getAttribute('slot') !== slotName) {\n item.setAttribute('slot', slotName)\n }\n\n return { slot: slotName }\n })\n }\n\n private onItemClick (event: Event) {\n const waItem = event.currentTarget as WaDropdownItem\n\n event.stopPropagation()\n\n if (waItem.disabled) {\n return\n }\n\n const selectedEvent = this.dispatchSelectEvent(waItem)\n\n if (selectedEvent.defaultPrevented || !this.dropdown) {\n return\n }\n\n this.dropdown.open = false\n }\n\n private onWaSelect (event: WaDropdownSelectEvent) {\n const selectedEvent = this.dispatchSelectEvent(event.detail.item)\n\n if (selectedEvent.defaultPrevented) {\n event.preventDefault()\n\n return\n }\n\n const slotName = event.detail.item.children[0].getAttribute('name')\n const item = this.querySelector<{ click?: () => void } & Element>(`[slot=\"${slotName}\"]`)\n\n item?.click?.()\n }\n\n private dispatchSelectEvent (waItem: WaDropdownItem) {\n const slotName = waItem.children[0].getAttribute('name')\n const item = this.querySelector(`[slot=\"${slotName}\"]`)\n const event = new CustomEvent('solid-ui-select', {\n bubbles: true,\n composed: true,\n cancelable: true,\n })\n\n item?.dispatchEvent(event)\n\n return event\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUsCO,IAAA,CAErCP,EAAc,eAAe,CAAC;AAAA,IAAAQ;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,KAAAC,IAI5Bb,EAAS;CAAEc,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzCjB,EAAS;CAAEc,MAAMI;CAAQF,SAAS;AAAK,CAAC,GAACG,IAGzClB,EAAM,aAAa,GAACmB,IAGpBlB,EAAM,GAAC,cAAAmB,IAbV,cACkCvB,EAAa;CAAAyB,YAAA,GAAAC,GAAA;EAaGO,AAbH,MAAA,GAAAP,CAAA,GAAAC,EAAA,MAAAlB,IAAA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AAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAhB,GAAA,GAAA,KAAA,GAjHiCN,CAAY,GAAAuB,IAAA+D,IAAA,cAAAC,EAAA;CAAA9D,cAAA;EAAA,MAAAlB,CAAA,GAAA0B,EAAA,MAAA,UAC5B5B,CAAM,GAAA+E,EAAA;CAAA;AAAA,GAAAnD,EAAAqD,GAAA9E,GAAA,KAAA,CAAA,GAAA8E,GAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.esm.js","names":["customElement","WebComponent","property","query","html","styles","_classDecs","_MenuItem","_MenuItem2","_A","WeakMap","_B","_C","_ref","_hrefDecs","type","String","reflect","_selectedDecs","Boolean","_anchorDecs","_MenuItem3","MenuItem","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_href","_init_selected","_init_anchor","_classPrivateFieldGet","href","v","_classPrivateFieldSet","selected","anchor","render","click","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","WebComponent","MenuItem_styles_default","_Class","_MenuItem3","_A","_B","_C","_initProto","_initClass","_classDecs","_hrefDecs","_init_href","_selectedDecs","_init_selected","_anchorDecs","_init_anchor","_MenuItem2","_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","_MenuItem","property","query","args"],"sources":["../../../src/components/menu-item/MenuItem.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property, query } from 'lit/decorators.js'\nimport { html } from 'lit'\n\nimport styles from './MenuItem.styles.css'\n\n@customElement('solid-ui-menu-item')\nexport default class MenuItem extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor href: string | undefined\n\n @property({ type: Boolean, reflect: true })\n accessor selected: boolean = false\n\n @query('a')\n private accessor anchor: HTMLAnchorElement | null = null\n\n render () {\n if (this.href) {\n return html`\n <a href=\"${this.href}\" target=\"_blank\" rel=\"noopener noreferrer\" ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </a>\n `\n }\n\n return html`\n <div ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </div>\n `\n }\n\n click () {\n this.anchor?.click()\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI0CM,IAAA,CAEzCN,EAAc,oBAAoB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,KAAAC,IAIjCZ,EAAS;CAAEa,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzChB,EAAS;CAAEa,MAAMI;CAASF,SAAS;AAAK,CAAC,GAACG,IAG1CjB,EAAM,GAAG,GAAC,SAAAkB,IAVb,cACsCpB,EAAa;CAAAsB,YAAA,GAAAC,GAAA;EAOfC,AAPe,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAhB,IAAAiB,EAAA,IAAA,GAAAC,EAAA,IAAA,EAAA,GAAAF,EAAA,MAAAd,GAAAiB,EAAA,MAOpB,EAAK,CAAA,GAAAH,EAAA,MAAAb,GAAAiB,EAAA,MAGkB,IAAI,CAAA;CAAA;CAAA,KAAAhB,KAAA;EAAA,OAAAiB,EAAArB,GAAA,IAAA;CAAA;CAAA,IAN/CsB,KAAIC,GAAA;EAAAC,EAAAxB,GAAA,MAAAuB,CAAA;CAAA;CAAA,IAGJE,WAAQ;EAAA,OAAAJ,EAAAnB,GAAA,IAAA;CAAA;CAAA,IAARuB,SAAQF,GAAA;EAAAC,EAAAtB,GAAA,MAAAqB,CAAA;CAAA;CAAA,IAGAG,SAAM;EAAA,OAAAL,EAAAlB,GAAA,IAAA;CAAA;CAAA,IAANuB,OAAMH,GAAA;EAAAC,EAAArB,GAAA,MAAAoB,CAAA;CAAA;CAEvBI,SAAU;EAWR,OAVI,KAAKL,OACA3B,CAAI;mBACE,KAAK2B,KAAI,6DAA8D,KAAKG,SAAQ;;;;;UAQ5F9B,CAAI;8BACe,KAAK8B,SAAQ;;;;;;CAMzC;CAEAG,QAAS;EACP,KAAKF,QAAQE,MAAM;CACrB;AACF,GAAC,CAAAC,GAAA,CAAAX,GAAAC,GAAAC,GAAAH,IAAAa,GAAA,CAAAhC,GAAAiC,MAAAC,EAAApB,GAAA;CAAA;EAAAP;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;AAAA,GAAAd,GAAA,GAAA,KAAA,GAnCqCL,CAAY,GAAAoB,IAAAqB,IAAA,cAAAC,EAAA;CAAApB,cAAA;EAAA,MAAAhB,CAAA,GAAAqC,EAAA,MAAA,UAChCvC,CAAM,GAAAmC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAlC,GAAA,KAAA,CAAA,GAAAkC,GAAA"}
1
+ {"version":3,"file":"MenuItem.esm.js","names":["customElement","WebComponent","property","query","html","styles","_classDecs","_MenuItem","_MenuItem2","_A","WeakMap","_B","_C","_ref","_hrefDecs","type","String","reflect","_selectedDecs","Boolean","_anchorDecs","_MenuItem3","MenuItem","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_href","_init_selected","_init_anchor","_classPrivateFieldGet","href","v","_classPrivateFieldSet","selected","anchor","render","click","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","customElement","styles","customElement$1","WebComponent","MenuItem_styles_default","_Class","_MenuItem3","_A","_B","_C","_initProto","_initClass","_classDecs","_hrefDecs","_init_href","_selectedDecs","_init_selected","_anchorDecs","_init_anchor","_MenuItem2","_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","_MenuItem","property","query","args"],"sources":["../../../src/components/menu-item/MenuItem.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property, query } from 'lit/decorators.js'\nimport { html } from 'lit'\n\nimport styles from './MenuItem.styles.css'\n\n@customElement('solid-ui-menu-item')\nexport default class MenuItem extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor href: string | undefined\n\n @property({ type: Boolean, reflect: true })\n accessor selected: boolean = false\n\n @query('a')\n private accessor anchor: HTMLAnchorElement | null = null\n\n render () {\n if (this.href) {\n return html`\n <a href=\"${this.href}\" target=\"_blank\" rel=\"noopener noreferrer\" ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </a>\n `\n }\n\n return html`\n <div ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </div>\n `\n }\n\n click () {\n this.anchor?.click()\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAI0CM,IAAA,CAEzCN,EA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AApB,GAAA;CAAA;EAAAP;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;AAAA,GAAAd,GAAA,GAAA,KAAA,GAnCqCL,CAAY,GAAAoB,IAAAqB,IAAA,cAAAC,EAAA;CAAApB,cAAA;EAAA,MAAAhB,CAAA,GAAAqC,EAAA,MAAA,UAChCvC,CAAM,GAAAmC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAlC,GAAA,KAAA,CAAA,GAAAkC,GAAA"}
@@ -1 +1 @@
1
- export { n as MenuItem, t as default } from "../chunks/menu-item-nfPpH4dN.js";
1
+ export { n as MenuItem, t as default } from "../chunks/menu-item-CVAZyipz.js";
@@ -1 +1 @@
1
- export { n as Menu, t as default } from "../chunks/menu-D0k2fkiE.js";
1
+ export { n as Menu, t as default } from "../chunks/menu-RumUciM-.js";
@@ -1 +1 @@
1
- {"version":3,"file":"PhotoCapture.esm.js","names":["html","property","customElement","FormControlComponent","showDialog","PhotoCaptureModal","_classDecs","_PhotoCapture","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_ref","_labelDecs","type","String","reflect","_headingDecs","_captureLabelDecs","attribute","_confirmLabelDecs","_retakeLabelDecs","_cancelLabelDecs","_facingModeDecs","_constraintsDecs","_captureFormatDecs","_captureQualityDecs","Number","_showCancelButtonDecs","Boolean","_fileNamePrefixDecs","_mediaConstraintsDecs","PhotoCapture","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_label","_init_heading","_init_captureLabel","_init_confirmLabel","_init_retakeLabel","_init_cancelLabel","_init_facingMode","_init_constraints","_init_captureFormat","_init_captureQuality","undefined","_init_showCancelButton","_init_fileNamePrefix","_init_mediaConstraints","_defineProperty","_classPrivateFieldGet","label","v","_classPrivateFieldSet","heading","captureLabel","confirmLabel","retakeLabel","cancelLabel","facingMode","constraints","captureFormat","captureQuality","showCancelButton","fileNamePrefix","mediaConstraints","render","onClick","disabled","props","name","onClose","value","controlTrait","setValue","_PhotoCapture2","e","c","_initClass","_applyDecs","default","PhotoCaptureModal","FormControlComponent","photo_capture_modal_default","_PhotoCapture2","_initProto","_initClass","_classDecs","_labelDecs","_init_label","_headingDecs","_init_heading","_captureLabelDecs","_init_captureLabel","_confirmLabelDecs","_init_confirmLabel","_retakeLabelDecs","_init_retakeLabel","_cancelLabelDecs","_init_cancelLabel","_facingModeDecs","_init_facingMode","_constraintsDecs","_init_constraints","_captureFormatDecs","_init_captureFormat","_captureQualityDecs","_init_captureQuality","_showCancelButtonDecs","_init_showCancelButton","_fileNamePrefixDecs","_init_fileNamePrefix","_mediaConstraintsDecs","_init_mediaConstraints","_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","_PhotoCapture","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","property","args","value"],"sources":["../../../src/components/photo-capture/PhotoCapture.ts"],"sourcesContent":["import { html } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { customElement, FormControlComponent } from '@/lib/components'\nimport { showDialog } from '@/lib/dialogs'\n\nimport PhotoCaptureModal from '@/components/photo-capture-modal'\n\n@customElement('solid-ui-photo-capture')\nexport default class PhotoCapture extends FormControlComponent<File> {\n @property({ type: String, reflect: true })\n accessor label = 'Take Photo'\n\n @property({ type: String, reflect: true })\n accessor heading = 'Take a photo'\n\n @property({ type: String, attribute: 'capture-label', reflect: true })\n accessor captureLabel = 'Take Photo'\n\n @property({ type: String, attribute: 'confirm-label', reflect: true })\n accessor confirmLabel = 'Use Photo'\n\n @property({ type: String, attribute: 'retake-label', reflect: true })\n accessor retakeLabel = 'Retake'\n\n @property({ type: String, attribute: 'cancel-label', reflect: true })\n accessor cancelLabel = 'Cancel'\n\n @property({ type: String, attribute: 'facing-mode', reflect: true })\n accessor facingMode = 'user'\n\n @property({ type: String, reflect: true })\n accessor constraints = ''\n\n @property({ type: String, attribute: 'capture-format', reflect: true })\n accessor captureFormat = 'image/png'\n\n @property({ type: Number, attribute: 'capture-quality' })\n accessor captureQuality: number | undefined = undefined\n\n @property({ type: Boolean, attribute: 'show-cancel-button', reflect: true })\n accessor showCancelButton = true\n\n @property({ type: String, attribute: 'file-name-prefix', reflect: true })\n accessor fileNamePrefix = ''\n\n @property({ attribute: false })\n accessor mediaConstraints: MediaStreamConstraints | undefined = undefined\n\n protected controlElement = null\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button ?disabled=\"${this.disabled}\">${this.label}</solid-ui-button>\n </slot>\n `\n }\n\n private onClick () {\n showDialog(PhotoCaptureModal, {\n props: {\n name: this.name,\n heading: this.heading,\n captureLabel: this.captureLabel,\n confirmLabel: this.confirmLabel,\n retakeLabel: this.retakeLabel,\n cancelLabel: this.cancelLabel,\n fileNamePrefix: this.fileNamePrefix,\n mediaConstraints: this.mediaConstraints,\n constraints: this.constraints,\n captureFormat: this.captureFormat,\n captureQuality: this.captureQuality,\n showCancelButton: this.showCancelButton,\n facingMode: this.facingMode,\n },\n onClose: value => this.controlTrait.setValue(value ?? null)\n })\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKgEM,IAAA,CAE/DJ,EAAc,wBAAwB,CAAC;AAAA,IAAAK,IAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,I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EAAA"}
1
+ {"version":3,"file":"PhotoCapture.esm.js","names":["html","property","customElement","FormControlComponent","showDialog","PhotoCaptureModal","_classDecs","_PhotoCapture","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_ref","_labelDecs","type","String","reflect","_headingDecs","_captureLabelDecs","attribute","_confirmLabelDecs","_retakeLabelDecs","_cancelLabelDecs","_facingModeDecs","_constraintsDecs","_captureFormatDecs","_captureQualityDecs","Number","_showCancelButtonDecs","Boolean","_fileNamePrefixDecs","_mediaConstraintsDecs","PhotoCapture","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_label","_init_heading","_init_captureLabel","_init_confirmLabel","_init_retakeLabel","_init_cancelLabel","_init_facingMode","_init_constraints","_init_captureFormat","_init_captureQuality","undefined","_init_showCancelButton","_init_fileNamePrefix","_init_mediaConstraints","_defineProperty","_classPrivateFieldGet","label","v","_classPrivateFieldSet","heading","captureLabel","confirmLabel","retakeLabel","cancelLabel","facingMode","constraints","captureFormat","captureQuality","showCancelButton","fileNamePrefix","mediaConstraints","render","onClick","disabled","props","name","onClose","value","controlTrait","setValue","_PhotoCapture2","e","c","_initClass","_applyDecs","default","customElement","PhotoCaptureModal","customElement$1","FormControlComponent","photo_capture_modal_default","_PhotoCapture2","_initProto","_initClass","_classDecs","_labelDecs","_init_label","_headingDecs","_init_heading","_captureLabelDecs","_init_captureLabel","_confirmLabelDecs","_init_confirmLabel","_retakeLabelDecs","_init_retakeLabel","_cancelLabelDecs","_init_cancelLabel","_facingModeDecs","_init_facingMode","_constraintsDecs","_init_constraints","_captureFormatDecs","_init_captureFormat","_captureQualityDecs","_init_captureQuality","_showCancelButtonDecs","_init_showCancelButton","_fileNamePrefixDecs","_init_fileNamePrefix","_mediaConstraintsDecs","_init_mediaConstraints","_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","_PhotoCapture","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","property","args","value"],"sources":["../../../src/components/photo-capture/PhotoCapture.ts"],"sourcesContent":["import { html } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { customElement, FormControlComponent } from '@/lib/components'\nimport { showDialog } from '@/lib/dialogs'\n\nimport PhotoCaptureModal from '@/components/photo-capture-modal'\n\n@customElement('solid-ui-photo-capture')\nexport default class PhotoCapture extends FormControlComponent<File> {\n @property({ type: String, reflect: true })\n accessor label = 'Take Photo'\n\n @property({ type: String, reflect: true })\n accessor heading = 'Take a photo'\n\n @property({ type: String, attribute: 'capture-label', reflect: true })\n accessor captureLabel = 'Take Photo'\n\n @property({ type: String, attribute: 'confirm-label', reflect: true })\n accessor confirmLabel = 'Use Photo'\n\n @property({ type: String, attribute: 'retake-label', reflect: true })\n accessor retakeLabel = 'Retake'\n\n @property({ type: String, attribute: 'cancel-label', reflect: true })\n accessor cancelLabel = 'Cancel'\n\n @property({ type: String, attribute: 'facing-mode', reflect: true })\n accessor facingMode = 'user'\n\n @property({ type: String, reflect: true })\n accessor constraints = ''\n\n @property({ type: String, attribute: 'capture-format', reflect: true })\n accessor captureFormat = 'image/png'\n\n @property({ type: Number, attribute: 'capture-quality' })\n accessor captureQuality: number | undefined = undefined\n\n @property({ type: Boolean, attribute: 'show-cancel-button', reflect: true })\n accessor showCancelButton = true\n\n @property({ type: String, attribute: 'file-name-prefix', reflect: true })\n accessor fileNamePrefix = ''\n\n @property({ attribute: false })\n accessor mediaConstraints: MediaStreamConstraints | undefined = undefined\n\n protected controlElement = null\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button ?disabled=\"${this.disabled}\">${this.label}</solid-ui-button>\n </slot>\n `\n }\n\n private onClick () {\n showDialog(PhotoCaptureModal, {\n props: {\n name: this.name,\n heading: this.heading,\n captureLabel: this.captureLabel,\n confirmLabel: this.confirmLabel,\n retakeLabel: this.retakeLabel,\n cancelLabel: this.cancelLabel,\n fileNamePrefix: this.fileNamePrefix,\n mediaConstraints: this.mediaConstraints,\n constraints: this.constraints,\n captureFormat: this.captureFormat,\n captureQuality: this.captureQuality,\n showCancelButton: this.showCancelButton,\n facingMode: this.facingMode,\n },\n onClose: value => this.controlTrait.setValue(value ?? null)\n })\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKgEM,IAAA,CAE/DJ,EAAc,wBAAwB,CAAC;AAAA,IAAAK,IAAAC,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,GAAAQ,kBAAA,IAAAR,QAAA,GAAAS,kBAAA,IAAAT,QAAA,GAAAU,kBAAA,IAAAV,QAAA,GAAAW,kBAAA,IAAAX,QAAA,GAAAY,kBAAA,IAAAZ,QAAA;AAAAa,KAAAC,IAErCtB,EAAS;CAAEuB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzC1B,EAAS;CAAEuB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACE,IAGzC3B,EAAS;CAAEuB,MAAMC;CAAQI,WAAW;CAAiBH,SAAS;AAAK,CAAC,GAACI,IAGrE7B,EAAS;CAAEuB,MAAMC;CAAQI,WAAW;CAAiBH,SAAS;AAAK,CAAC,GA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