solid-ui 5.0.2-7 → 5.0.2-9

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 (381) hide show
  1. package/dist/acl/add-agent-buttons.cjs.js +1 -1
  2. package/dist/acl/add-agent-buttons.cjs.js.map +1 -1
  3. package/dist/acl/add-agent-buttons.d.ts.map +1 -1
  4. package/dist/acl/add-agent-buttons.esm.js +22 -20
  5. package/dist/acl/add-agent-buttons.esm.js.map +1 -1
  6. package/dist/chunks/{DialogProvider-CcyasSmM.js → DialogProvider-DwymaGN5.js} +3 -3
  7. package/dist/chunks/DialogProvider-DwymaGN5.js.map +1 -0
  8. package/dist/chunks/{ResourceActionsMenu-Dm1hvIj5.js → ResourceActionsMenu-mLMf4fAa.js} +9 -9
  9. package/dist/chunks/ResourceActionsMenu-mLMf4fAa.js.map +1 -0
  10. package/dist/chunks/{access-control-modal-XJm3Czd5.js → access-control-modal-BR7HhqpN.js} +29 -29
  11. package/dist/chunks/access-control-modal-BR7HhqpN.js.map +1 -0
  12. package/dist/chunks/{account-BqJdA0tO.js → account-Dtv8-QEH.js} +10 -10
  13. package/dist/chunks/account-Dtv8-QEH.js.map +1 -0
  14. package/dist/chunks/{auth-CCrvazv_.js → auth-Cj-J-3Nf.js} +26 -26
  15. package/dist/chunks/{auth-CCrvazv_.js.map → auth-Cj-J-3Nf.js.map} +1 -1
  16. package/dist/chunks/{avatar-DHC_B7vJ.js → avatar-D_bHMV5F.js} +3 -3
  17. package/dist/chunks/avatar-D_bHMV5F.js.map +1 -0
  18. package/dist/chunks/{button-DFgsOHBh.js → button-D7XurXfj.js} +2 -2
  19. package/dist/chunks/button-D7XurXfj.js.map +1 -0
  20. package/dist/chunks/{chunk.UEBQI7VV-DVcxHNfV.js → chunk.UEBQI7VV-CrSDe9uN.js} +2 -2
  21. package/dist/chunks/{chunk.UEBQI7VV-DVcxHNfV.js.map → chunk.UEBQI7VV-CrSDe9uN.js.map} +1 -1
  22. package/dist/chunks/{combobox-CtFy7qwi.js → combobox-CHli5LVO.js} +3 -3
  23. package/dist/chunks/combobox-CHli5LVO.js.map +1 -0
  24. package/dist/chunks/{combobox-option-B8b1khQy.js → combobox-option-lOJdg5cD.js} +2 -2
  25. package/dist/chunks/combobox-option-lOJdg5cD.js.map +1 -0
  26. package/dist/chunks/{components-CmnPlcEi.js → components-CVuqsI0R.js} +2 -2
  27. package/dist/chunks/components-CVuqsI0R.js.map +1 -0
  28. package/dist/chunks/{context-Dr-MkMP6.js → context-0sxUfxf7.js} +2 -2
  29. package/dist/chunks/context-0sxUfxf7.js.map +1 -0
  30. package/dist/chunks/{dialog-BY_pM7CM.js → dialog-BTlq_YfO.js} +4 -4
  31. package/dist/chunks/dialog-BTlq_YfO.js.map +1 -0
  32. package/dist/chunks/{dialog-content-DfTs9gaK.js → dialog-content-DHim135-.js} +2 -2
  33. package/dist/chunks/dialog-content-DHim135-.js.map +1 -0
  34. package/dist/chunks/{dialog-footer-oZsrnodi.js → dialog-footer-B8uRmp3J.js} +2 -2
  35. package/dist/chunks/dialog-footer-B8uRmp3J.js.map +1 -0
  36. package/dist/chunks/{dialog-header-_6It5zCM.js → dialog-header-CQ2jzzUd.js} +2 -2
  37. package/dist/chunks/dialog-header-CQ2jzzUd.js.map +1 -0
  38. package/dist/chunks/{dialogs-DP4-6e8A.js → dialogs-gEIIeLi6.js} +2 -2
  39. package/dist/chunks/{dialogs-DP4-6e8A.js.map → dialogs-gEIIeLi6.js.map} +1 -1
  40. package/dist/chunks/{dialogs-root-B-yfITRL.js → dialogs-root-DuRAjRjg.js} +3 -3
  41. package/dist/chunks/dialogs-root-DuRAjRjg.js.map +1 -0
  42. package/dist/chunks/{error-state-CaxNmA0L.js → error-state-Y-Fe0JiX.js} +3 -3
  43. package/dist/chunks/error-state-Y-Fe0JiX.js.map +1 -0
  44. package/dist/chunks/{file-explorer-header-Bu06_N7G.js → file-explorer-header-DGcG6Agk.js} +8 -8
  45. package/dist/chunks/file-explorer-header-DGcG6Agk.js.map +1 -0
  46. package/dist/chunks/{file-explorer-provider-DqZDDpUX.js → file-explorer-provider-CIAJV8hq.js} +4 -4
  47. package/dist/chunks/file-explorer-provider-CIAJV8hq.js.map +1 -0
  48. package/dist/chunks/{guard-R26Y08Rq.js → guard-53kvhglh.js} +3 -3
  49. package/dist/chunks/guard-53kvhglh.js.map +1 -0
  50. package/dist/chunks/index.esm-BYrQu5rV.js +6 -0
  51. package/dist/chunks/index.esm-BYrQu5rV.js.map +1 -0
  52. package/dist/chunks/{input-BlwhSsYC.js → input-MtTyDieA.js} +2 -2
  53. package/dist/chunks/input-MtTyDieA.js.map +1 -0
  54. package/dist/chunks/{jsonld-C6IOQ1Tg.js → jsonld-lAxnRr2L.js} +2 -2
  55. package/dist/chunks/{jsonld-C6IOQ1Tg.js.map → jsonld-lAxnRr2L.js.map} +1 -1
  56. package/dist/chunks/{login-button-BZH27kcX.js → login-button-Dx58UUyH.js} +4 -4
  57. package/dist/chunks/login-button-Dx58UUyH.js.map +1 -0
  58. package/dist/chunks/{logout-button-CrTKHw_t.js → logout-button-Vrn0nLVQ.js} +4 -4
  59. package/dist/chunks/logout-button-Vrn0nLVQ.js.map +1 -0
  60. package/dist/chunks/{menu-item-DmQ4ZQQ2.js → menu-item-EARrOY8C.js} +2 -2
  61. package/dist/chunks/menu-item-EARrOY8C.js.map +1 -0
  62. package/dist/chunks/{menu-clQ0N3ba.js → menu-pe4NxtfD.js} +3 -3
  63. package/dist/chunks/menu-pe4NxtfD.js.map +1 -0
  64. package/dist/chunks/{photo-capture-KYEqSWFH.js → photo-capture-B8ponMpE.js} +4 -4
  65. package/dist/chunks/photo-capture-B8ponMpE.js.map +1 -0
  66. package/dist/chunks/{photo-capture-modal-YmzRHhUg.js → photo-capture-modal-SOcYsArw.js} +6 -6
  67. package/dist/chunks/photo-capture-modal-SOcYsArw.js.map +1 -0
  68. package/dist/chunks/{provide-1sJJkgCO.js → provide-BQN7o60i.js} +2 -2
  69. package/dist/chunks/{provide-1sJJkgCO.js.map → provide-BQN7o60i.js.map} +1 -1
  70. package/dist/chunks/{provider-DC-qEkao.js → provider-CnOHE-B-.js} +5 -5
  71. package/dist/chunks/provider-CnOHE-B-.js.map +1 -0
  72. package/dist/chunks/{rdf-form-BhevRpHy.js → rdf-form-CtskuSp2.js} +4 -4
  73. package/dist/chunks/rdf-form-CtskuSp2.js.map +1 -0
  74. package/dist/chunks/{rdf-input-2s3O54hm.js → rdf-input-DfTBeaCB.js} +8 -8
  75. package/dist/chunks/rdf-input-DfTBeaCB.js.map +1 -0
  76. package/dist/chunks/{select-DQtYJhLc.js → select-BKXrVwJC.js} +2 -2
  77. package/dist/chunks/select-BKXrVwJC.js.map +1 -0
  78. package/dist/chunks/{select-option-BdE45Q3h.js → select-option-SlgG53he.js} +2 -2
  79. package/dist/chunks/select-option-SlgG53he.js.map +1 -0
  80. package/dist/chunks/{signup-button-yONuztWR.js → signup-button-C-dLsqr8.js} +4 -4
  81. package/dist/chunks/signup-button-C-dLsqr8.js.map +1 -0
  82. package/dist/chunks/{solid-emblem-Dc1cwhXb.js → solid-emblem-BmFc2G2B.js} +2 -2
  83. package/dist/chunks/solid-emblem-BmFc2G2B.js.map +1 -0
  84. package/dist/chunks/{solidLogicSingleton.esm-Bvt7E7Vl.js → solidLogicSingleton.esm-CKYdvLzf.js} +12317 -4363
  85. package/dist/chunks/solidLogicSingleton.esm-CKYdvLzf.js.map +1 -0
  86. package/dist/chunks/{src-BUfVUeNt.js → src-BGSmDsh3.js} +2320 -2306
  87. package/dist/chunks/src-BGSmDsh3.js.map +1 -0
  88. package/dist/chunks/{style-Dlw9-wPn.js → style-Du-nyh8u.js} +7 -7
  89. package/dist/chunks/style-Du-nyh8u.js.map +1 -0
  90. package/dist/chunks/widgets-CTH3oXJI.js +2762 -0
  91. package/dist/chunks/widgets-CTH3oXJI.js.map +1 -0
  92. package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js.map +1 -1
  93. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js.map +1 -1
  94. package/dist/components/access-control-modal/AccessControlAddAccess.styles.cjs.js.map +1 -1
  95. package/dist/components/access-control-modal/AccessControlAddAccess.styles.esm.js.map +1 -1
  96. package/dist/components/access-control-modal/AccessControlErrors.cjs.js.map +1 -1
  97. package/dist/components/access-control-modal/AccessControlErrors.esm.js.map +1 -1
  98. package/dist/components/access-control-modal/AccessControlErrors.styles.cjs.js.map +1 -1
  99. package/dist/components/access-control-modal/AccessControlErrors.styles.esm.js.map +1 -1
  100. package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js.map +1 -1
  101. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js.map +1 -1
  102. package/dist/components/access-control-modal/AccessControlGeneralAccess.styles.cjs.js.map +1 -1
  103. package/dist/components/access-control-modal/AccessControlGeneralAccess.styles.esm.js.map +1 -1
  104. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  105. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  106. package/dist/components/access-control-modal/AccessControlModal.styles.cjs.js.map +1 -1
  107. package/dist/components/access-control-modal/AccessControlModal.styles.esm.js.map +1 -1
  108. package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js.map +1 -1
  109. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js.map +1 -1
  110. package/dist/components/access-control-modal/AccessControlSharedAccess.styles.cjs.js.map +1 -1
  111. package/dist/components/access-control-modal/AccessControlSharedAccess.styles.esm.js.map +1 -1
  112. package/dist/components/access-control-modal/accessGrantDrafts.cjs.js.map +1 -1
  113. package/dist/components/access-control-modal/accessTargetResolver.cjs.js.map +1 -1
  114. package/dist/components/access-control-modal/accessTargetResolver.esm.js.map +1 -1
  115. package/dist/components/access-control-modal/applyAccessChanges.cjs.js.map +1 -1
  116. package/dist/components/access-control-modal/buildAccessChanges.cjs.js.map +1 -1
  117. package/dist/components/access-control-modal/index.cjs.js.map +1 -1
  118. package/dist/components/access-control-modal/index.esm.js.map +1 -1
  119. package/dist/components/access-control-modal.js +1 -1
  120. package/dist/components/account/Account.cjs.js.map +1 -1
  121. package/dist/components/account/Account.esm.js.map +1 -1
  122. package/dist/components/account/Account.styles.cjs.js.map +1 -1
  123. package/dist/components/account/Account.styles.esm.js.map +1 -1
  124. package/dist/components/account/index.cjs.js.map +1 -1
  125. package/dist/components/account/index.esm.js.map +1 -1
  126. package/dist/components/account.js +1 -1
  127. package/dist/components/avatar/Avatar.cjs.js.map +1 -1
  128. package/dist/components/avatar/Avatar.esm.js.map +1 -1
  129. package/dist/components/avatar/Avatar.styles.cjs.js.map +1 -1
  130. package/dist/components/avatar/Avatar.styles.esm.js.map +1 -1
  131. package/dist/components/avatar/index.cjs.js.map +1 -1
  132. package/dist/components/avatar/index.esm.js.map +1 -1
  133. package/dist/components/avatar.js +1 -1
  134. package/dist/components/button/Button.cjs.js.map +1 -1
  135. package/dist/components/button/Button.esm.js.map +1 -1
  136. package/dist/components/button/Button.styles.cjs.js.map +1 -1
  137. package/dist/components/button/Button.styles.esm.js.map +1 -1
  138. package/dist/components/button/index.cjs.js.map +1 -1
  139. package/dist/components/button/index.esm.js.map +1 -1
  140. package/dist/components/button.js +1 -1
  141. package/dist/components/combobox/Combobox.cjs.js.map +1 -1
  142. package/dist/components/combobox/Combobox.esm.js.map +1 -1
  143. package/dist/components/combobox/Combobox.styles.cjs.js.map +1 -1
  144. package/dist/components/combobox/Combobox.styles.esm.js.map +1 -1
  145. package/dist/components/combobox/index.cjs.js.map +1 -1
  146. package/dist/components/combobox/index.esm.js.map +1 -1
  147. package/dist/components/combobox-option/ComboboxOption.cjs.js.map +1 -1
  148. package/dist/components/combobox-option/ComboboxOption.esm.js.map +1 -1
  149. package/dist/components/combobox-option/index.cjs.js.map +1 -1
  150. package/dist/components/combobox-option/index.esm.js.map +1 -1
  151. package/dist/components/combobox-option.js +1 -1
  152. package/dist/components/combobox.js +1 -1
  153. package/dist/components/dialog/Dialog.cjs.js.map +1 -1
  154. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  155. package/dist/components/dialog/Dialog.styles.cjs.js.map +1 -1
  156. package/dist/components/dialog/Dialog.styles.esm.js.map +1 -1
  157. package/dist/components/dialog/index.cjs.js.map +1 -1
  158. package/dist/components/dialog/index.esm.js.map +1 -1
  159. package/dist/components/dialog-content/DialogContent.cjs.js.map +1 -1
  160. package/dist/components/dialog-content/DialogContent.esm.js.map +1 -1
  161. package/dist/components/dialog-content/DialogContent.styles.cjs.js.map +1 -1
  162. package/dist/components/dialog-content/DialogContent.styles.esm.js.map +1 -1
  163. package/dist/components/dialog-content/index.cjs.js.map +1 -1
  164. package/dist/components/dialog-content/index.esm.js.map +1 -1
  165. package/dist/components/dialog-content.js +1 -1
  166. package/dist/components/dialog-footer/DialogFooter.cjs.js.map +1 -1
  167. package/dist/components/dialog-footer/DialogFooter.esm.js.map +1 -1
  168. package/dist/components/dialog-footer/DialogFooter.styles.cjs.js.map +1 -1
  169. package/dist/components/dialog-footer/DialogFooter.styles.esm.js.map +1 -1
  170. package/dist/components/dialog-footer/index.cjs.js.map +1 -1
  171. package/dist/components/dialog-footer/index.esm.js.map +1 -1
  172. package/dist/components/dialog-footer.js +1 -1
  173. package/dist/components/dialog-header/DialogHeader.cjs.js.map +1 -1
  174. package/dist/components/dialog-header/DialogHeader.esm.js.map +1 -1
  175. package/dist/components/dialog-header/DialogHeader.styles.cjs.js.map +1 -1
  176. package/dist/components/dialog-header/DialogHeader.styles.esm.js.map +1 -1
  177. package/dist/components/dialog-header/index.cjs.js.map +1 -1
  178. package/dist/components/dialog-header/index.esm.js.map +1 -1
  179. package/dist/components/dialog-header.js +1 -1
  180. package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
  181. package/dist/components/dialog-provider/DialogProvider.esm.js.map +1 -1
  182. package/dist/components/dialog-provider/index.cjs.js.map +1 -1
  183. package/dist/components/dialog-provider/index.esm.js.map +1 -1
  184. package/dist/components/dialog-provider.js +1 -1
  185. package/dist/components/dialog-provider.js.map +1 -1
  186. package/dist/components/dialog.js +1 -1
  187. package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
  188. package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
  189. package/dist/components/dialogs-root/index.cjs.js.map +1 -1
  190. package/dist/components/dialogs-root/index.esm.js.map +1 -1
  191. package/dist/components/dialogs-root.js +1 -1
  192. package/dist/components/error-state/ErrorState.cjs.js.map +1 -1
  193. package/dist/components/error-state/ErrorState.esm.js.map +1 -1
  194. package/dist/components/error-state/ErrorState.styles.cjs.js.map +1 -1
  195. package/dist/components/error-state/ErrorState.styles.esm.js.map +1 -1
  196. package/dist/components/error-state.js +1 -1
  197. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
  198. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
  199. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -1
  200. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -1
  201. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
  202. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
  203. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -1
  204. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -1
  205. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
  206. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
  207. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -1
  208. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -1
  209. package/dist/components/file-explorer-header/index.cjs.js.map +1 -1
  210. package/dist/components/file-explorer-header/index.esm.js.map +1 -1
  211. package/dist/components/file-explorer-header.js +1 -1
  212. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -1
  213. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -1
  214. package/dist/components/file-explorer-provider/index.cjs.js.map +1 -1
  215. package/dist/components/file-explorer-provider/index.esm.js.map +1 -1
  216. package/dist/components/file-explorer-provider.js +1 -1
  217. package/dist/components/guard/Guard.cjs.js.map +1 -1
  218. package/dist/components/guard/Guard.esm.js.map +1 -1
  219. package/dist/components/guard/index.cjs.js.map +1 -1
  220. package/dist/components/guard/index.esm.js.map +1 -1
  221. package/dist/components/guard.js +1 -1
  222. package/dist/components/input/Input.cjs.js.map +1 -1
  223. package/dist/components/input/Input.esm.js.map +1 -1
  224. package/dist/components/input/Input.styles.cjs.js.map +1 -1
  225. package/dist/components/input/Input.styles.esm.js.map +1 -1
  226. package/dist/components/input/index.cjs.js.map +1 -1
  227. package/dist/components/input/index.esm.js.map +1 -1
  228. package/dist/components/input.js +1 -1
  229. package/dist/components/login-button/LoginButton.cjs.js.map +1 -1
  230. package/dist/components/login-button/LoginButton.esm.js.map +1 -1
  231. package/dist/components/login-button/index.cjs.js.map +1 -1
  232. package/dist/components/login-button/index.esm.js.map +1 -1
  233. package/dist/components/login-button.js +1 -1
  234. package/dist/components/login-modal/LoginModal.cjs.js.map +1 -1
  235. package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
  236. package/dist/components/login-modal/LoginModal.styles.cjs.js.map +1 -1
  237. package/dist/components/login-modal/LoginModal.styles.esm.js.map +1 -1
  238. package/dist/components/login-modal/index.cjs.js.map +1 -1
  239. package/dist/components/login-modal/index.esm.js.map +1 -1
  240. package/dist/components/login-modal.js +1 -1
  241. package/dist/components/logout-button/LogoutButton.cjs.js.map +1 -1
  242. package/dist/components/logout-button/LogoutButton.esm.js.map +1 -1
  243. package/dist/components/logout-button/index.cjs.js.map +1 -1
  244. package/dist/components/logout-button/index.esm.js.map +1 -1
  245. package/dist/components/logout-button.js +1 -1
  246. package/dist/components/menu/Menu.cjs.js.map +1 -1
  247. package/dist/components/menu/Menu.esm.js.map +1 -1
  248. package/dist/components/menu/Menu.styles.cjs.js.map +1 -1
  249. package/dist/components/menu/Menu.styles.esm.js.map +1 -1
  250. package/dist/components/menu/index.cjs.js.map +1 -1
  251. package/dist/components/menu/index.esm.js.map +1 -1
  252. package/dist/components/menu-item/MenuItem.cjs.js.map +1 -1
  253. package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
  254. package/dist/components/menu-item/MenuItem.styles.cjs.js.map +1 -1
  255. package/dist/components/menu-item/MenuItem.styles.esm.js.map +1 -1
  256. package/dist/components/menu-item/index.cjs.js.map +1 -1
  257. package/dist/components/menu-item/index.esm.js.map +1 -1
  258. package/dist/components/menu-item.js +1 -1
  259. package/dist/components/menu.js +1 -1
  260. package/dist/components/photo-capture/PhotoCapture.cjs.js.map +1 -1
  261. package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -1
  262. package/dist/components/photo-capture/index.cjs.js.map +1 -1
  263. package/dist/components/photo-capture/index.esm.js.map +1 -1
  264. package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js.map +1 -1
  265. package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -1
  266. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js.map +1 -1
  267. package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js.map +1 -1
  268. package/dist/components/photo-capture-modal/index.cjs.js.map +1 -1
  269. package/dist/components/photo-capture-modal/index.esm.js.map +1 -1
  270. package/dist/components/photo-capture-modal.js +1 -1
  271. package/dist/components/photo-capture.js +1 -1
  272. package/dist/components/provider/Provider.cjs.js.map +1 -1
  273. package/dist/components/provider/Provider.esm.js.map +1 -1
  274. package/dist/components/provider/index.cjs.js.map +1 -1
  275. package/dist/components/provider/index.esm.js.map +1 -1
  276. package/dist/components/provider.js +1 -1
  277. package/dist/components/rdf-form/RDFForm.cjs.js.map +1 -1
  278. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  279. package/dist/components/rdf-form/index.cjs.js.map +1 -1
  280. package/dist/components/rdf-form/index.esm.js.map +1 -1
  281. package/dist/components/rdf-form.js +1 -1
  282. package/dist/components/rdf-input/RDFInput.cjs.js.map +1 -1
  283. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  284. package/dist/components/rdf-input/index.cjs.js.map +1 -1
  285. package/dist/components/rdf-input/index.esm.js.map +1 -1
  286. package/dist/components/rdf-input.js +1 -1
  287. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  288. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
  289. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -1
  290. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -1
  291. package/dist/components/resource-actions-menu.js +1 -1
  292. package/dist/components/select/Select.cjs.js.map +1 -1
  293. package/dist/components/select/Select.esm.js.map +1 -1
  294. package/dist/components/select/Select.styles.cjs.js.map +1 -1
  295. package/dist/components/select/Select.styles.esm.js.map +1 -1
  296. package/dist/components/select/index.cjs.js.map +1 -1
  297. package/dist/components/select/index.esm.js.map +1 -1
  298. package/dist/components/select-option/SelectOption.cjs.js.map +1 -1
  299. package/dist/components/select-option/SelectOption.esm.js.map +1 -1
  300. package/dist/components/select-option/index.cjs.js.map +1 -1
  301. package/dist/components/select-option/index.esm.js.map +1 -1
  302. package/dist/components/select-option.js +1 -1
  303. package/dist/components/select.js +1 -1
  304. package/dist/components/signup-button/SignupButton.cjs.js.map +1 -1
  305. package/dist/components/signup-button/SignupButton.esm.js.map +1 -1
  306. package/dist/components/signup-button/index.cjs.js.map +1 -1
  307. package/dist/components/signup-button/index.esm.js.map +1 -1
  308. package/dist/components/signup-button.js +1 -1
  309. package/dist/components/solid-emblem/SolidEmblem.cjs.js.map +1 -1
  310. package/dist/components/solid-emblem/SolidEmblem.esm.js.map +1 -1
  311. package/dist/components/solid-emblem/SolidEmblem.styles.cjs.js.map +1 -1
  312. package/dist/components/solid-emblem/SolidEmblem.styles.esm.js.map +1 -1
  313. package/dist/components/solid-emblem/index.cjs.js.map +1 -1
  314. package/dist/components/solid-emblem/index.esm.js.map +1 -1
  315. package/dist/components/solid-emblem.js +1 -1
  316. package/dist/components.js +30 -30
  317. package/dist/create/types.cjs.js.map +1 -1
  318. package/dist/create/types.esm.js.map +1 -1
  319. package/dist/index.js +8 -8
  320. package/dist/lib/code-editor/CodeEditor.cjs.js +1 -1
  321. package/dist/lib/code-editor/CodeEditor.cjs.js.map +1 -1
  322. package/dist/lib/code-editor/CodeEditor.d.ts +10 -1
  323. package/dist/lib/code-editor/CodeEditor.d.ts.map +1 -1
  324. package/dist/lib/code-editor/CodeEditor.esm.js +20 -7
  325. package/dist/lib/code-editor/CodeEditor.esm.js.map +1 -1
  326. package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -1
  327. package/dist/lib/components/dialog-component/DialogComponent.esm.js.map +1 -1
  328. package/dist/lib/components/form-control-component/FormControlComponent.cjs.js.map +1 -1
  329. package/dist/lib/components/form-control-component/FormControlComponent.esm.js.map +1 -1
  330. package/dist/lib/components/traits/DialogTrait.cjs.js.map +1 -1
  331. package/dist/lib/components/traits/FormControlTrait.cjs.js.map +1 -1
  332. package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
  333. package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
  334. package/dist/lib/components/web-component/WebComponent.styles.cjs.js +1 -1
  335. package/dist/lib/components/web-component/WebComponent.styles.esm.js +1 -1
  336. package/dist/loader.js +8 -8
  337. package/dist/solid-ui.js +3 -3
  338. package/dist/solid-ui.min.js +3 -3
  339. package/dist/solid-ui.min.js.map +1 -1
  340. package/dist/theme.css +1 -1
  341. package/package.json +3 -3
  342. package/dist/chunks/DialogProvider-CcyasSmM.js.map +0 -1
  343. package/dist/chunks/ResourceActionsMenu-Dm1hvIj5.js.map +0 -1
  344. package/dist/chunks/access-control-modal-XJm3Czd5.js.map +0 -1
  345. package/dist/chunks/account-BqJdA0tO.js.map +0 -1
  346. package/dist/chunks/avatar-DHC_B7vJ.js.map +0 -1
  347. package/dist/chunks/button-DFgsOHBh.js.map +0 -1
  348. package/dist/chunks/combobox-CtFy7qwi.js.map +0 -1
  349. package/dist/chunks/combobox-option-B8b1khQy.js.map +0 -1
  350. package/dist/chunks/components-CmnPlcEi.js.map +0 -1
  351. package/dist/chunks/context-Dr-MkMP6.js.map +0 -1
  352. package/dist/chunks/dialog-BY_pM7CM.js.map +0 -1
  353. package/dist/chunks/dialog-content-DfTs9gaK.js.map +0 -1
  354. package/dist/chunks/dialog-footer-oZsrnodi.js.map +0 -1
  355. package/dist/chunks/dialog-header-_6It5zCM.js.map +0 -1
  356. package/dist/chunks/dialogs-root-B-yfITRL.js.map +0 -1
  357. package/dist/chunks/error-state-CaxNmA0L.js.map +0 -1
  358. package/dist/chunks/file-explorer-header-Bu06_N7G.js.map +0 -1
  359. package/dist/chunks/file-explorer-provider-DqZDDpUX.js.map +0 -1
  360. package/dist/chunks/guard-R26Y08Rq.js.map +0 -1
  361. package/dist/chunks/index.esm-BQrkxchZ.js +0 -6
  362. package/dist/chunks/index.esm-BQrkxchZ.js.map +0 -1
  363. package/dist/chunks/input-BlwhSsYC.js.map +0 -1
  364. package/dist/chunks/login-button-BZH27kcX.js.map +0 -1
  365. package/dist/chunks/logout-button-CrTKHw_t.js.map +0 -1
  366. package/dist/chunks/menu-clQ0N3ba.js.map +0 -1
  367. package/dist/chunks/menu-item-DmQ4ZQQ2.js.map +0 -1
  368. package/dist/chunks/photo-capture-KYEqSWFH.js.map +0 -1
  369. package/dist/chunks/photo-capture-modal-YmzRHhUg.js.map +0 -1
  370. package/dist/chunks/provider-DC-qEkao.js.map +0 -1
  371. package/dist/chunks/rdf-form-BhevRpHy.js.map +0 -1
  372. package/dist/chunks/rdf-input-2s3O54hm.js.map +0 -1
  373. package/dist/chunks/select-DQtYJhLc.js.map +0 -1
  374. package/dist/chunks/select-option-BdE45Q3h.js.map +0 -1
  375. package/dist/chunks/signup-button-yONuztWR.js.map +0 -1
  376. package/dist/chunks/solid-emblem-Dc1cwhXb.js.map +0 -1
  377. package/dist/chunks/solidLogicSingleton.esm-Bvt7E7Vl.js.map +0 -1
  378. package/dist/chunks/src-BUfVUeNt.js.map +0 -1
  379. package/dist/chunks/style-Dlw9-wPn.js.map +0 -1
  380. package/dist/chunks/widgets-C92ihtlF.js +0 -10628
  381. package/dist/chunks/widgets-C92ihtlF.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { g as e, i as t, t as n, u as r } from "./components-CmnPlcEi.js";
2
- import { t as i } from "./dialogs-DP4-6e8A.js";
3
- import { t as a } from "./photo-capture-modal-YmzRHhUg.js";
1
+ import { g as e, i as t, t as n, u as r } from "./components-CVuqsI0R.js";
2
+ import { t as i } from "./dialogs-gEIIeLi6.js";
3
+ import { t as a } from "./photo-capture-modal-SOcYsArw.js";
4
4
  // src/components/photo-capture/PhotoCapture.ts
5
5
  var o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, ee, F;
6
6
  function te(e, t, n) {
@@ -397,4 +397,4 @@ F = (u = t({
397
397
  var ce = B;
398
398
  export { B as n, ce as t };
399
399
 
400
- //# sourceMappingURL=photo-capture-KYEqSWFH.js.map
400
+ //# sourceMappingURL=photo-capture-B8ponMpE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"photo-capture-B8ponMpE.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","PhotoCapture","customElement","n","FormControlComponent","b","showDialog","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","o","c","applyDec","m","h","y","v","g","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","args","value","photo_capture_default"],"sources":["../../src/components/photo-capture/PhotoCapture.ts","../../src/components/photo-capture/index.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","import PhotoCapture from './PhotoCapture'\n\nexport * from './PhotoCapture'\nexport { PhotoCapture }\nexport default PhotoC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;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;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAnC,GAAA,GAAA,KAAA,GAtEyCH,CAAoB,GAAAuF,EAAA;;ACJ9D,IAAA+F,KAAe7F"}
@@ -1,8 +1,8 @@
1
- import { a as e, c as t, g as n, i as r, p as i, r as a, u as o } from "./components-CmnPlcEi.js";
2
- import "./button-DFgsOHBh.js";
3
- import "./dialog-BY_pM7CM.js";
4
- import "./dialog-content-DfTs9gaK.js";
5
- import "./dialog-footer-oZsrnodi.js";
1
+ import { a as e, c as t, g as n, i as r, p as i, r as a, u as o } from "./components-CVuqsI0R.js";
2
+ import "./button-D7XurXfj.js";
3
+ import "./dialog-BTlq_YfO.js";
4
+ import "./dialog-content-DHim135-.js";
5
+ import "./dialog-footer-B8uRmp3J.js";
6
6
  // src/components/photo-capture-modal/PhotoCaptureModal.styles.css
7
7
  var s = i`.viewport{background:#ebebeb;border-radius:.5rem;justify-content:center;align-items:center;width:100%;min-height:200px;display:flex;overflow:hidden}.viewport video,.viewport img{object-fit:cover;border-radius:.5rem;width:100%;max-width:260px;height:auto;margin:0 auto;display:block}.status{text-align:center;width:100%;color:var(--photo-capture-muted-text);font-size:.875rem}.status.error{color:var(--color-error,#b00020)}`, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, ee, te, ne, re, ie, ae, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, J, oe, se, ce, le, ue, de, fe, pe, me, he, ge;
8
8
  function Y(e, t, n) {
@@ -550,4 +550,4 @@ new (he = (u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), f =
550
550
  var Te = $;
551
551
  export { $ as n, Te as t };
552
552
 
553
- //# sourceMappingURL=photo-capture-modal-YmzRHhUg.js.map
553
+ //# sourceMappingURL=photo-capture-modal-SOcYsArw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"photo-capture-modal-SOcYsArw.js","names":["customElement","DialogComponent","html","nothing","property","state","styles","_classDecs","_PhotoCaptureModal","_PhotoCaptureModal2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_Q","_ref","_nameDecs","type","String","reflect","_headingDecs","_captureLabelDecs","_confirmLabelDecs","_retakeLabelDecs","_cancelLabelDecs","attribute","_fileNamePrefixDecs","_mediaConstraintsDecs","_constraintsDecs","_captureFormatDecs","_captureQualityDecs","Number","_showCancelButtonDecs","Boolean","_facingModeDecs","_errorMessageDecs","_previewUrlDecs","_startingPreviewDecs","_valueDecs","_PhotoCaptureModal3","PhotoCaptureModal","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_name","_init_heading","_init_captureLabel","_init_confirmLabel","_init_retakeLabel","_init_cancelLabel","_init_fileNamePrefix","_init_mediaConstraints","undefined","_init_constraints","_init_captureFormat","_init_captureQuality","_init_showCancelButton","_init_facingMode","_init_errorMessage","_init_previewUrl","_init_startingPreview","_init_value","_defineProperty","_classPrivateFieldGet","name","v","_classPrivateFieldSet","heading","captureLabel","confirmLabel","retakeLabel","cancelLabel","fileNamePrefix","mediaConstraints","constraints","captureFormat","captureQuality","showCancelButton","facingMode","errorMessage","previewUrl","startingPreview","value","disconnectedCallback","stopStream","revokePreviewUrl","willUpdate","changed","has","normalizedValue","File","syncPreviewFromValue","updated","stream","queuePreviewStart","video","shadowRoot","querySelector","srcObject","render","renderViewport","renderStatus","close","onRetake","onConfirm","onCapture","contents","clearValue","width","videoWidth","clientWidth","height","videoHeight","clientHeight","canvas","document","createElement","context","getContext","drawImage","blob","Promise","resolve","toBlob","createFileFromBlob","contentType","extension","fileExtensionForMimeType","safePrefix","trim","Date","now","mimeType","startPreview","catch","getTracks","forEach","track","stop","file","URL","createObjectURL","revokeObjectURL","navigator","mediaDevices","getUserMedia","resolveMediaConstraints","requestUpdate","updateComplete","play","error","message","JSON","parse","Error","ideal","e","c","_initClass","_applyDecs","_Class","_identity","PhotoCaptureModal","DialogComponent","A","customElement","n","b","PhotoCaptureModal_styles_default","_Class","_PhotoCaptureModal3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_Q","_initProto","_initClass","_classDecs","_nameDecs","_init_name","_headingDecs","_init_heading","_captureLabelDecs","_init_captureLabel","_confirmLabelDecs","_init_confirmLabel","_retakeLabelDecs","_init_retakeLabel","_cancelLabelDecs","_init_cancelLabel","_fileNamePrefixDecs","_init_fileNamePrefix","_mediaConstraintsDecs","_init_mediaConstraints","_constraintsDecs","_init_constraints","_captureFormatDecs","_init_captureFormat","_captureQualityDecs","_init_captureQuality","_showCancelButtonDecs","_init_showCancelButton","_facingModeDecs","_init_facingMode","_errorMessageDecs","_init_errorMessage","_previewUrlDecs","_init_previewUrl","_startingPreviewDecs","_init_startingPreview","_valueDecs","_init_value","_PhotoCaptureModal2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","o","c","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_PhotoCaptureModal","args","changed","normalizedValue","video","contents","width","height","canvas","context","blob","resolve","contentType","extension","safePrefix","mimeType","track","file","stream","error","photo_capture_modal_default"],"sources":["../../src/components/photo-capture-modal/PhotoCaptureModal.ts","../../src/components/photo-capture-modal/index.ts"],"sourcesContent":["import { customElement, DialogComponent } from '@/lib/components'\nimport { html, PropertyValues, nothing } from 'lit'\nimport { property, state } from 'lit/decorators.js'\n\nimport '@/components/button'\nimport '@/components/dialog'\nimport '@/components/dialog-content'\nimport '@/components/dialog-footer'\n\nimport styles from './PhotoCaptureModal.styles.css'\n\n@customElement('solid-ui-photo-capture-modal')\nexport default class PhotoCaptureModal extends DialogComponent<File> {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor name = ''\n\n @property({ type: String, reflect: true })\n accessor heading = 'Take a photo'\n\n @property({ type: String, reflect: true })\n accessor captureLabel = 'Take Photo'\n\n @property({ type: String, reflect: true })\n accessor confirmLabel = 'Use Photo'\n\n @property({ type: String, 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: 'file-name-prefix', reflect: true })\n accessor fileNamePrefix = ''\n\n @property({ attribute: false })\n accessor mediaConstraints: MediaStreamConstraints | undefined = undefined\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: 'facing-mode', reflect: true })\n accessor facingMode = 'user'\n\n @state()\n accessor errorMessage = ''\n\n @state()\n accessor previewUrl = ''\n\n @state()\n accessor startingPreview = false\n\n @state()\n accessor value: File | null = null\n\n private stream: MediaStream | null = null\n\n disconnectedCallback () {\n this.stopStream()\n this.revokePreviewUrl()\n super.disconnectedCallback()\n }\n\n protected willUpdate (changed: PropertyValues<this>) {\n super.willUpdate(changed)\n\n if (changed.has('value')) {\n const normalizedValue = this.value instanceof File ? this.value : null\n\n if (normalizedValue !== this.value) {\n this.value = normalizedValue\n\n return\n }\n\n this.syncPreviewFromValue(normalizedValue)\n }\n }\n\n protected updated (changed: PropertyValues<this>) {\n if (\n !this.value &&\n !this.stream &&\n !this.startingPreview &&\n (changed.has('previewUrl') || changed.has('value'))\n ) {\n this.queuePreviewStart()\n }\n\n if (this.stream) {\n const video = this.shadowRoot?.querySelector<HTMLVideoElement>('video')\n\n if (video && video.srcObject !== this.stream) {\n video.srcObject = this.stream\n }\n }\n }\n\n protected render () {\n return html`\n <solid-ui-dialog title=${this.heading}>\n <solid-ui-dialog-content>\n ${this.renderViewport()}\n ${this.renderStatus()}\n </solid-ui-dialog-content>\n <solid-ui-dialog-footer>\n ${this.showCancelButton\n ? html`<solid-ui-button variant=\"secondary\" @click=${() => this.close()}>${this.cancelLabel}</solid-ui-button>`\n : nothing\n }\n\n ${this.value\n ? html`\n <solid-ui-button @click=${this.onRetake}>${this.retakeLabel}</solid-ui-button>\n <solid-ui-button @click=${this.onConfirm}>${this.confirmLabel}</solid-ui-button>\n `\n : html`\n <solid-ui-button\n ?disabled=${this.startingPreview || !this.stream}\n @click=${this.onCapture}\n >\n ${this.captureLabel}\n </solid-ui-button>\n `\n }\n </solid-ui-dialog-footer>\n </solid-ui-dialog>\n `\n }\n\n private renderViewport () {\n const contents = this.previewUrl\n ? html`<img src=\"${this.previewUrl}\" alt=\"Captured photo preview\" />`\n : html`<video autoplay playsinline muted></video>`\n\n return html`<div class=\"viewport\">${contents}</div>`\n }\n\n private renderStatus () {\n if (this.errorMessage) {\n return html`<div class=\"status error\">${this.errorMessage}</div>`\n }\n\n if (this.startingPreview) {\n return html`<div class=\"status\">Opening camera…</div>`\n }\n\n if (!this.value) {\n return html`<div class=\"status\">Preview the camera and take a photo when ready.</div>`\n }\n\n return html`<div class=\"status\">Review the photo before confirming it.</div>`\n }\n\n private onRetake () {\n this.clearValue()\n this.queuePreviewStart()\n }\n\n private onConfirm () {\n if (!this.value) {\n return\n }\n\n this.close(this.value)\n }\n\n private async onCapture () {\n const video = this.shadowRoot?.querySelector<HTMLVideoElement>('video')\n\n if (!video) {\n return\n }\n\n const width = video.videoWidth || video.clientWidth || 640\n const height = video.videoHeight || video.clientHeight || 480\n const canvas = document.createElement('canvas')\n canvas.width = width\n canvas.height = height\n\n const context = canvas.getContext('2d')\n\n if (!context) {\n this.errorMessage = 'Unable to capture a photo in this browser'\n\n return\n }\n\n context.drawImage(video, 0, 0, width, height)\n\n const blob = await new Promise<Blob | null>(resolve => {\n canvas.toBlob(resolve, this.captureFormat, this.captureQuality)\n })\n\n if (!blob) {\n this.errorMessage = 'Unable to create an image from the current camera frame'\n\n return\n }\n\n this.value = this.createFileFromBlob(blob)\n this.errorMessage = ''\n }\n\n private createFileFromBlob (blob: Blob): File {\n const contentType = blob.type || this.captureFormat\n const extension = this.fileExtensionForMimeType(contentType)\n const safePrefix = (this.fileNamePrefix || this.name || 'photo').trim() || 'photo'\n\n return new File([blob], `${safePrefix}-${Date.now()}.${extension}`, { type: contentType })\n }\n\n private fileExtensionForMimeType (mimeType: string): string {\n switch (mimeType) {\n case 'image/jpeg':\n return 'jpg'\n case 'image/webp':\n return 'webp'\n case 'image/gif':\n return 'gif'\n default:\n return 'png'\n }\n }\n\n private queuePreviewStart () {\n this.startPreview().catch(() => undefined)\n }\n\n private stopStream () {\n if (!this.stream) {\n return\n }\n\n this.stream.getTracks().forEach(track => track.stop())\n this.stream = null\n\n const video = this.shadowRoot?.querySelector<HTMLVideoElement>('video')\n\n if (video) {\n video.srcObject = null\n }\n }\n\n private syncPreviewFromValue (file: File | null) {\n this.revokePreviewUrl()\n\n if (!file) {\n return\n }\n\n this.stopStream()\n this.previewUrl = URL.createObjectURL(file)\n }\n\n private clearValue () {\n this.value = null\n this.errorMessage = ''\n }\n\n private revokePreviewUrl () {\n if (this.previewUrl) {\n URL.revokeObjectURL(this.previewUrl)\n }\n\n this.previewUrl = ''\n }\n\n private async startPreview () {\n if (this.value || this.startingPreview) {\n return\n }\n\n if (!navigator.mediaDevices?.getUserMedia) {\n this.errorMessage = 'Camera access is not available in this browser'\n\n return\n }\n\n this.startingPreview = true\n this.errorMessage = ''\n\n try {\n const stream = await navigator.mediaDevices.getUserMedia(this.resolveMediaConstraints())\n\n this.stream = stream\n this.requestUpdate()\n\n await this.updateComplete\n\n const video = this.shadowRoot?.querySelector<HTMLVideoElement>('video')\n\n if (video) {\n video.srcObject = stream\n\n await video.play?.().catch(() => undefined)\n }\n } catch (error) {\n this.errorMessage = (error as Error)?.message || 'Unable to start the camera preview'\n } finally {\n this.startingPreview = false\n }\n }\n\n private resolveMediaConstraints (): MediaStreamConstraints {\n if (this.mediaConstraints) {\n return this.mediaConstraints\n }\n\n if (this.constraints) {\n try {\n return JSON.parse(this.constraints) as MediaStreamConstraints\n } catch (error) {\n throw new Error(`Invalid constraints JSON: ${(error as Error).message}`)\n }\n }\n\n return {\n video: this.facingMode\n ? { facingMode: { ideal: this.facingMode } }\n : true\n }\n }\n}\n","import PhotoCaptureModal from './PhotoCaptureModal'\n\nexport { PhotoCaptureModal }\nexport default PhotoCaptureModal\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASmDO,IAAA,CAElDP,EAAc,8BAA8B,CAAC;AAAA,IAAAQ;AAAA,KAAAC,MAAAC,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,GAAAa,kBAAA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AAC,IAAAC,IAAAC,IAAAC,IAAAC,IAAAlB,IAAAkH,GAAA,CAAAnK,GAAAoK,MAAAC,GAAAzH,GAAA;CAAA;EAAAvB;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;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;EAAAE;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;AAAA,GAAA5C,GAAA,GAAA,KAAA,GAlU8CN,CAAe,GAAAmD,IAAA0H,IAAA,cAAAC,GAAA;CAAAzH,cAAA;EAAA,MAAA9C,CAAA,GAAAoE,EAAA,MAAA,UAC5CtE,CAAM,GAAAsK,EAAA;CAAA;AAAA,GAAAhG,EAAAkG,GAAArK,IAAA,KAAA,CAAA,GAAAqK,GAAA;;ACVxB,IAAA8H,KAAe5H"}
@@ -1,4 +1,4 @@
1
- import { S as e } from "./components-CmnPlcEi.js";
1
+ import { S as e } from "./components-CVuqsI0R.js";
2
2
  // node_modules/@lit/context/lib/value-notifier.js
3
3
  var t = class {
4
4
  get value() {
@@ -108,4 +108,4 @@ function i({ context: e }) {
108
108
  }
109
109
  export { i as t };
110
110
 
111
- //# sourceMappingURL=provide-1sJJkgCO.js.map
111
+ //# sourceMappingURL=provide-BQN7o60i.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"provide-1sJJkgCO.js","names":["e","t","i","t","s$1","s","i","h","e$1","t","e","r","i$1","n","o"],"sources":["../../node_modules/@lit/context/lib/value-notifier.js","../../node_modules/@lit/context/lib/controllers/context-provider.js","../../node_modules/@lit/context/lib/decorators/provide.js"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass s{get value(){return this.o}set value(s){this.setValue(s)}setValue(s,t=!1){const i=t||!Object.is(s,this.o);this.o=s,i&&this.updateObservers()}constructor(s){this.subscriptions=new Map,this.updateObservers=()=>{for(const[s,{disposer:t}]of this.subscriptions)s(this.o,t)},void 0!==s&&(this.value=s)}addCallback(s,t,i){if(!i)return void s(this.value);this.subscriptions.has(s)||this.subscriptions.set(s,{disposer:()=>{this.subscriptions.delete(s)},consumerHost:t});const{disposer:h}=this.subscriptions.get(s);s(this.value,h)}clearCallbacks(){this.subscriptions.clear()}}export{s as ValueNotifier};\n//# sourceMappingURL=value-notifier.js.map\n","import{ContextRequestEvent as t}from\"../context-request-event.js\";import{ValueNotifier as s}from\"../value-notifier.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class e extends Event{constructor(t,s){super(\"context-provider\",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s}}class i extends s{constructor(s,e,i){super(void 0!==e.context?e.initialValue:i),this.onContextRequest=t=>{if(t.context!==this.context)return;const s=t.contextTarget??t.composedPath()[0];s!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,s,t.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context)return;if((s.contextTarget??s.composedPath()[0])===this.host)return;const e=new Set;for(const[s,{consumerHost:i}]of this.subscriptions)e.has(s)||(e.add(s),i.dispatchEvent(new t(this.context,i,s,!0)));s.stopPropagation()},this.host=s,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(\"context-request\",this.onContextRequest),this.host.addEventListener(\"context-provider\",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new e(this.context,this.host))}}export{i as ContextProvider,e as ContextProviderEvent};\n//# sourceMappingURL=context-provider.js.map\n","import{ContextProvider as t}from\"../controllers/context-provider.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e({context:e}){return(n,i)=>{const r=new WeakMap;if(\"object\"==typeof i)return{get(){return n.get.call(this)},set(t){return r.get(this).setValue(t),n.set.call(this,t)},init(n){return r.set(this,new t(this,{context:e,initialValue:n})),n}};{n.constructor.addInitializer((n=>{r.set(n,new t(n,{context:e}))}));const o=Object.getOwnPropertyDescriptor(n,i);let s;if(void 0===o){const t=new WeakMap;s={get(){return t.get(this)},set(e){r.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;s={...o,set(e){r.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(n,i,s)}}}export{e as provide};\n//# sourceMappingURL=provide.js.map\n"],"ignoreList":[0,1,2],"mappings":";;AAKA,IAAMK,IAAN,MAAO;CAAC,IAAI,QAAO;EAAC,OAAO,KAAK;CAAC;CAAC,IAAI,MAAM,GAAE;EAAC,KAAK,SAASA,CAAC;CAAC;CAAC,SAAS,GAAE,IAAE,CAAC,GAAE;EAAC,IAAMC,IAAE,KAAG,CAAC,OAAO,GAAGD,GAAE,KAAK,CAAC;EAAE,KAAK,IAAEA,GAAEC,KAAG,KAAK,gBAAgB;CAAC;CAAC,YAAY,GAAE;EAAC,KAAK,gCAAc,IAAI,IAAE,GAAE,KAAK,wBAAoB;GAAC,KAAI,IAAK,CAACD,GAAE,EAAC,UAAS,QAAM,KAAK,eAAc,EAAE,KAAK,GAAE,CAAC;EAAC,GAAWA,MAAT,KAAK,MAAQ,KAAK,QAAMA;CAAE;CAAC,YAAY,GAAE,GAAE,GAAE;EAAC,IAAG,CAACC,GAAE,OAAO,KAAKD,EAAE,KAAK,KAAK;EAAE,KAAK,cAAc,IAAIA,CAAC,KAAG,KAA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,EAAE,IAAI,IAAI,CAAC,CAAC,SAASJ,CAAC,GAAED,GAAG,KAAK,MAAKC,CAAC;KAAC;IAAC;GAAC;GAAQ,OAAY,eAAeG,GAAEX,GAAEG,CAAC;GAAvC;EAAwC;CAAC;AAAC"}
1
+ {"version":3,"file":"provide-BQN7o60i.js","names":["e","t","i","t","s$1","s","i","h","e$1","t","e","r","i$1","n","o"],"sources":["../../node_modules/@lit/context/lib/value-notifier.js","../../node_modules/@lit/context/lib/controllers/context-provider.js","../../node_modules/@lit/context/lib/decorators/provide.js"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass s{get value(){return this.o}set value(s){this.setValue(s)}setValue(s,t=!1){const i=t||!Object.is(s,this.o);this.o=s,i&&this.updateObservers()}constructor(s){this.subscriptions=new Map,this.updateObservers=()=>{for(const[s,{disposer:t}]of this.subscriptions)s(this.o,t)},void 0!==s&&(this.value=s)}addCallback(s,t,i){if(!i)return void s(this.value);this.subscriptions.has(s)||this.subscriptions.set(s,{disposer:()=>{this.subscriptions.delete(s)},consumerHost:t});const{disposer:h}=this.subscriptions.get(s);s(this.value,h)}clearCallbacks(){this.subscriptions.clear()}}export{s as ValueNotifier};\n//# sourceMappingURL=value-notifier.js.map\n","import{ContextRequestEvent as t}from\"../context-request-event.js\";import{ValueNotifier as s}from\"../value-notifier.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class e extends Event{constructor(t,s){super(\"context-provider\",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s}}class i extends s{constructor(s,e,i){super(void 0!==e.context?e.initialValue:i),this.onContextRequest=t=>{if(t.context!==this.context)return;const s=t.contextTarget??t.composedPath()[0];s!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,s,t.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context)return;if((s.contextTarget??s.composedPath()[0])===this.host)return;const e=new Set;for(const[s,{consumerHost:i}]of this.subscriptions)e.has(s)||(e.add(s),i.dispatchEvent(new t(this.context,i,s,!0)));s.stopPropagation()},this.host=s,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(\"context-request\",this.onContextRequest),this.host.addEventListener(\"context-provider\",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new e(this.context,this.host))}}export{i as ContextProvider,e as ContextProviderEvent};\n//# sourceMappingURL=context-provider.js.map\n","import{ContextProvider as t}from\"../controllers/context-provider.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e({context:e}){return(n,i)=>{const r=new WeakMap;if(\"object\"==typeof i)return{get(){return n.get.call(this)},set(t){return r.get(this).setValue(t),n.set.call(this,t)},init(n){return r.set(this,new t(this,{context:e,initialValue:n})),n}};{n.constructor.addInitializer((n=>{r.set(n,new t(n,{context:e}))}));const o=Object.getOwnPropertyDescriptor(n,i);let s;if(void 0===o){const t=new WeakMap;s={get(){return t.get(this)},set(e){r.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;s={...o,set(e){r.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(n,i,s)}}}export{e as provide};\n//# sourceMappingURL=provide.js.map\n"],"ignoreList":[0,1,2],"mappings":";;AAKA,IAAMK,IAAN,MAAO;CAAC,IAAI,QAAO;EAAC,OAAO,KAAK;CAAC;CAAC,IAAI,MAAM,GAAE;EAAC,KAAK,SAASA,CAAC;CAAC;CAAC,SAAS,GAAE,IAAE,CAAC,GAAE;EAAC,IAAMC,IAAE,KAAG,CAAC,OAAO,GAAGD,GAAE,KAAK,CAAC;EAAE,KAAK,IAAEA,GAAEC,KAAG,KAAK,gBAAgB;CAAC;CAAC,YAAY,GAAE;EAAC,KAAK,gCAAc,IAAI,IAAE,GAAE,KAAK,wBAAoB;GAAC,KAAI,IAAK,CAACD,GAAE,EAAC,UAAS,QAAM,KAA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C,EAAE,IAAI,IAAI,CAAC,CAAC,SAASC,CAAC,GAAED,EAAE,IAAI,MAAKC,CAAC;KAAC;KAAE,cAAa,CAAC;KAAE,YAAW,CAAC;IAAC;GAAC,OAAK;IAAC,IAAMD,IAAEK,EAAE;IAAI,IAAE;KAAC,GAAGA;KAAE,IAAI,GAAE;MAAC,EAAE,IAAI,IAAI,CAAC,CAAC,SAASJ,CAAC,GAAED,GAAG,KAAK,MAAKC,CAAC;KAAC;IAAC;GAAC;GAAQ,OAAY,eAAeG,GAAEX,GAAEG,CAAC;GAAvC;EAAwC;CAAC;AAAC"}
@@ -1,7 +1,7 @@
1
- import { g as e, i as t, o as n, u as r } from "./components-CmnPlcEi.js";
2
- import { t as i } from "./provide-1sJJkgCO.js";
3
- import { n as a, o } from "./auth-CCrvazv_.js";
4
- import "./dialogs-root-B-yfITRL.js";
1
+ import { g as e, i as t, o as n, u as r } from "./components-CVuqsI0R.js";
2
+ import { t as i } from "./provide-BQN7o60i.js";
3
+ import { n as a, o } from "./auth-Cj-J-3Nf.js";
4
+ import "./dialogs-root-DuRAjRjg.js";
5
5
  // src/components/provider/Provider.ts
6
6
  var s, c, l, u, d, f, p, m, h;
7
7
  function g(e, t, n) {
@@ -210,4 +210,4 @@ h = (d = t({
210
210
  var k = E;
211
211
  export { E as n, k as t };
212
212
 
213
- //# sourceMappingURL=provider-DC-qEkao.js.map
213
+ //# sourceMappingURL=provider-CnOHE-B-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-CnOHE-B-.js","names":["customElement","WebComponent","provide","html","property","authContext","SolidAuth","_classDecs","_Provider","_A","WeakMap","_B","_ref","_signupUrlDecs","type","String","reflect","_authDecs","context","Provider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_signupUrl","_init_auth","_classPrivateFieldGet","signupUrl","v","_classPrivateFieldSet","auth","connectedCallback","initialize","willUpdate","changedProperties","has","render","_Provider2","e","c","_initClass","_applyDecs","Provider","customElement","n","WebComponent","b","e","SolidAuth","_Provider2","_initProto","_initClass","_classDecs","_signupUrlDecs","_init_signupUrl","_authDecs","_init_auth","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","o","c","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","_Provider","_A","_B","authContext","args","changedProperties","provider_default"],"sources":["../../src/components/provider/Provider.ts","../../src/components/provider/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { provide } from '@lit/context'\nimport { html, type PropertyValues } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { authContext } from '@/lib/auth'\nimport { SolidAuth, DEFAULT_SIGNUP_URL } from '@/lib/auth'\n\nimport '@/components/dialogs-root'\n\n@customElement('solid-ui-provider')\nexport default class Provider extends WebComponent {\n @property({ type: String, reflect: true })\n accessor signupUrl: string | undefined\n\n @provide({ context: authContext })\n private accessor auth = new SolidAuth()\n\n async connectedCallback () {\n super.connectedCallback()\n\n await this.auth.initialize()\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n\n if (changedProperties.has('signupUrl')) {\n this.auth.signupUrl = this.signupUrl ?? DEFAULT_SIGNUP_URL\n }\n }\n\n protected render () {\n return html`\n <slot></slot>\n <solid-ui-dialogs-root></solid-ui-dialogs-root>\n `\n }\n}\n","import Provider from './Provider'\n\nexport { Provider }\nexport default Provider\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOkCO,IAAA,CAEjCP,EAAc,mBAAmB,CAAC;AAAA,IAAAQ,GAA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u as a } from "./components-CmnPlcEi.js";
2
- import { a as o, i as s, o as c, r as l, s as u } from "./rdf-input-2s3O54hm.js";
3
- import { E as d, y as f } from "./solidLogicSingleton.esm-Bvt7E7Vl.js";
1
+ import { b as e, g as t, i as n, o as r, r as i, u as a } from "./components-CVuqsI0R.js";
2
+ import { a as o, i as s, o as c, r as l, s as u } from "./rdf-input-DfTBeaCB.js";
3
+ import { D as d, b as f } from "./solidLogicSingleton.esm-CKYdvLzf.js";
4
4
  // src/components/rdf-form/RDFForm.ts
5
5
  var p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j;
6
6
  function M(e, t, n) {
@@ -334,4 +334,4 @@ j = (_ = e({
334
334
  var Q = W;
335
335
  export { W as n, Q as t };
336
336
 
337
- //# sourceMappingURL=rdf-form-BhevRpHy.js.map
337
+ //# sourceMappingURL=rdf-form-CtskuSp2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rdf-form-CtskuSp2.js","names":["property","state","html","consume","customElement","WebComponent","ns","fetchData","findForm","sortBySequence","sym","DEFAULT_STORE","storeContext","urlConverter","fromAttribute","value","URL","toAttribute","hrefFromUrlValue","href","_classDecs","_RDFForm","_A","WeakMap","_B","_C","_D","_E","_F","_G","_ref","_storeContextDecs","context","subscribe","_passedInStoreDecs","attribute","_entireDataIsReadonlyDecs","_loadVersionDecs","_documentsLoadedDecs","_formUrlDecs","converter","_subjectUrlDecs","RDFForm","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_storeContext","_init_passedInStore","_init_entireDataIsReadonly","_init__loadVersion","_init__documentsLoaded","_init_formUrl","_init_subjectUrl","_classPrivateFieldGet","v","_classPrivateFieldSet","passedInStore","currentStore","store","entireDataIsReadonly","_loadVersion","_documentsLoaded","formUrl","subjectUrl","render","updater","editable","undefined","formRoot","Error","formDocument","parts","each","ui","partsBySequence","partItems","flatMap","item","Array","isArray","elements","uiFields","map","types","rdf","typeNode","String","hashIndex","lastIndexOf","fieldValue","slice","part","willUpdate","changedProperties","has","loadDocumentsIfNeeded","error","console","_RDFForm2","e","c","_initClass","_applyDecs","RDFForm","c","customElement","WebComponent","b","fetchData","storeContext","findForm","DEFAULT_STORE","sortBySequence","namedNode","ns_default","_RDFForm2","_initProto","_initClass","_classDecs","_storeContextDecs","_init_storeContext","_passedInStoreDecs","_init_passedInStore","_entireDataIsReadonlyDecs","_init_entireDataIsReadonly","_loadVersionDecs","_init__loadVersion","_documentsLoadedDecs","_init__documentsLoaded","_formUrlDecs","_init_formUrl","_subjectUrlDecs","_init_subjectUrl","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","e","urlConverter","value","hrefFromUrlValue","_RDFForm","_A","_B","_C","_D","_E","_F","_G","args","store","subjectUrl","formRoot","formDocument","parts","uiFields","item","typeNode","hashIndex","part","changedProperties","formUrl","error","rdf_form_default"],"sources":["../../src/components/rdf-form/RDFForm.ts","../../src/components/rdf-form/index.ts"],"sourcesContent":["import { property, state } from 'lit/decorators.js'\nimport { html } from 'lit/html.js'\nimport type { PropertyValues } from 'lit'\nimport { consume } from '@lit/context'\nimport { customElement, WebComponent } from '@/lib/components'\nimport ns from '../../lib/ns'\nimport { fetchData, findForm, sortBySequence } from '../../lib/forms/rdfFormsHelper'\nimport { sym, LiveStore } from 'rdflib'\nimport '@/components/rdf-input'\nimport { DEFAULT_STORE, storeContext, StoreContext } from '@/lib/forms/store/StoreContext'\n\nconst urlConverter = {\n fromAttribute (value: string | null): URL | null {\n if (!value) return null\n\n try {\n return new URL(value)\n } catch {\n return null\n }\n },\n toAttribute (value: URL | null) {\n if (!value) return null\n return value\n }\n}\n\nconst hrefFromUrlValue = (value: URL | null): string =>\n value?.href ?? ''\n\n@customElement('solid-ui-rdf-form')\nexport default class RDFForm extends WebComponent {\n @consume({ context: storeContext, subscribe: true })\n private accessor storeContext: StoreContext = DEFAULT_STORE\n\n @property({ attribute: false })\n accessor passedInStore: LiveStore | null = null\n\n private get currentStore (): LiveStore {\n return this.passedInStore ?? this.storeContext.store\n }\n\n @state()\n private accessor entireDataIsReadonly: boolean = true // to protect data, we default to not editable\n\n @state()\n private accessor _loadVersion = 0\n\n @state()\n private accessor _documentsLoaded = false\n\n @property({ converter: urlConverter })\n accessor formUrl: URL | null = null\n\n @property({ converter: urlConverter })\n accessor subjectUrl: URL | null = null\n\n render () {\n if (!this._documentsLoaded) {\n return html``\n }\n\n const store = this.currentStore\n\n const subjectUrl = hrefFromUrlValue(this.subjectUrl)\n if (subjectUrl && store.updater?.editable(subjectUrl) !== undefined && store.updater?.editable(subjectUrl) !== false) {\n this.entireDataIsReadonly = false\n }\n\n const formRoot = findForm(this.currentStore, hrefFromUrlValue(this.formUrl)) // If there are more 'a ui:Form' elements in a form file\n if (!formRoot) throw new Error('No ui:Form found in ' + hrefFromUrlValue(this.formUrl))\n\n const formDocument = sym(hrefFromUrlValue(this.formUrl)) // rdflib NamedNode for the document\n const parts = store.each(formRoot, ns.ui('parts'), null, formDocument)\n const partsBySequence = sortBySequence(store, parts)\n const partItems = (partsBySequence || []).flatMap(item => {\n if (item && typeof item === 'object' && 'elements' in item && Array.isArray((item as any).elements)) {\n return (item as any).elements\n }\n return [item]\n })\n const uiFields = partItems.map(item => {\n const types = store.each(item as any, ns.rdf('type'), null, formDocument)\n const typeNode = types[0]\n const value = typeNode ? ((typeNode as any).value || String(typeNode)) : ((item as any).value || String(item))\n const hashIndex = value.lastIndexOf('#')\n return {\n value: item,\n fieldValue: hashIndex >= 0 ? value.slice(hashIndex + 1) : value\n }\n })\n\n return html`\n <form>\n ${uiFields.map(part => {\n switch (part.fieldValue) {\n case 'PhoneField':\n case 'EmailField':\n case 'ColorField':\n case 'DateField':\n case 'DateTimeField':\n case 'TimeField':\n case 'NumericField':\n case 'IntegerField':\n case 'DecimalField':\n case 'FloatField':\n case 'TextField':\n case 'SingleLineTextField':\n case 'NamedNodeURIField': {\n return html` <solid-ui-rdf-input \n .formSubject=${sym(part.value)} \n .dataSubject=${sym(subjectUrl)}\n .storeVersion=${this._loadVersion}\n .readonly=${this.entireDataIsReadonly}\n ></solid-ui-rdf-input>\n <br>`\n }\n case 'MultiLineTextField':\n return html`<input .rdf=${part}></input>`\n case 'BooleanField':\n return html`<input .rdf=${part}></input>`\n case 'TristateField':\n return html`<input .rdf=${part}></input>`\n case 'Classifier':\n return html`<input .rdf=${part}></input>`\n case 'Choice':\n return html`<input .rdf=${part}></input>`\n case 'Multiple':\n return html`<input .rdf=${part}></input>`\n case 'Options':\n return html`<input .rdf=${part}></input>`\n case 'AutocompleteField':\n return html`<input .rdf=${part}></input>`\n case 'Comment':\n case 'Heading':\n return html`<input .rdf=${part}></input>`\n default:\n return html`<div>Unknown part type: ${part}</div>`\n }\n })}\n </form>\n `\n }\n\n protected override willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n if (changedProperties.has('formUrl') ||\n changedProperties.has('subjectUrl') ||\n changedProperties.has('passedInStore')\n ) {\n this.loadDocumentsIfNeeded()\n }\n }\n\n private async loadDocumentsIfNeeded () {\n const store = this.currentStore\n const formUrl = hrefFromUrlValue(this.formUrl)\n const subjectUrl = hrefFromUrlValue(this.subjectUrl)\n\n if (!formUrl || !subjectUrl) return\n\n try {\n await fetchData(store, formUrl)\n await fetchData(store, subjectUrl)\n this._loadVersion += 1\n this._documentsLoaded = true\n } catch (error) {\n console.error('Failed to load RDF documents', error)\n }\n }\n}\n","import RDFForm from './RDFForm'\n\nexport { RDFForm }\nexport default RDFForm\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ApE;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;AAAA,GAAArB,GAAA,GAAA,KAAA,GA3IoCf,CAAY,GAAAiG,EAAA;;AC5BjD,IAAAgG,IAAe9F"}
@@ -1,10 +1,10 @@
1
- import { b as e, g as t, i as n, o as r, r as i, u as a, x as o, y as s } from "./components-CmnPlcEi.js";
2
- import { D as c, E as l, V as u, y as d } from "./solidLogicSingleton.esm-Bvt7E7Vl.js";
3
- import { t as f, u as p } from "./style-Dlw9-wPn.js";
4
- import "./input-BlwhSsYC.js";
1
+ import { b as e, g as t, i as n, o as r, r as i, u as a, x as o, y as s } from "./components-CVuqsI0R.js";
2
+ import { D as c, H as l, O as u, b as d } from "./solidLogicSingleton.esm-CKYdvLzf.js";
3
+ import { t as f, u as p } from "./style-Du-nyh8u.js";
4
+ import "./input-MtTyDieA.js";
5
5
  // src/lib/forms/rdfFormsHelper.ts
6
6
  async function m(e, t) {
7
- let n = l(t);
7
+ let n = c(t);
8
8
  return e.holds(void 0, void 0, void 0, n) && e.removeStatements(e.statementsMatching(void 0, void 0, void 0, n)), await e.fetcher.load(t, {
9
9
  force: !0,
10
10
  clearPreviousData: !0
@@ -25,7 +25,7 @@ function g(e, t) {
25
25
  function _(e, t) {
26
26
  let n = t.split("#")[0], r = t.includes("#") ? t.split("#")[1] : null;
27
27
  if (r) {
28
- let t = l(n + "#" + r);
28
+ let t = c(n + "#" + r);
29
29
  if (e.holds(t, d.rdf("type"), d.ui("Form"))) return t;
30
30
  }
31
31
  return e.each(null, d.rdf("type"), d.ui("Form")).find((e) => e.termType === "NamedNode") || null;
@@ -387,7 +387,7 @@ L = (T = e({
387
387
  let r = this.storeContext.store.statementsMatching(this.dataSubject, t), i = [];
388
388
  if (e) {
389
389
  let n, a = this.formSubject ? g(this.storeContext.store, this.formSubject) : void 0, o = a ? v[a] ?? {} : {};
390
- o.namedNode ? n = this.storeContext.store.sym(e) : o.defaultInputValue ? (n = encodeURIComponent(e.replace(/ /g, "")), n = this.storeContext.store.sym(o.defaultInputValue + n)) : n = o.dt ? new u(e.trim(), void 0, d.xsd(o.dt)) : new u(e), i = r.map((e) => c(e.subject, e.predicate, n, e.why)), i.length === 0 && (i = [c(this.dataSubject, t, n, this.getDocument(this.dataSubject))]);
390
+ o.namedNode ? n = this.storeContext.store.sym(e) : o.defaultInputValue ? (n = encodeURIComponent(e.replace(/ /g, "")), n = this.storeContext.store.sym(o.defaultInputValue + n)) : n = o.dt ? new l(e.trim(), void 0, d.xsd(o.dt)) : new l(e), i = r.map((e) => u(e.subject, e.predicate, n, e.why)), i.length === 0 && (i = [u(this.dataSubject, t, n, this.getDocument(this.dataSubject))]);
391
391
  }
392
392
  try {
393
393
  await this.storeContext.store.updater.updateMany(r, i), this.storeVersion += 1;
@@ -434,4 +434,4 @@ L = (T = e({
434
434
  var ne = q;
435
435
  export { m as a, b as i, q as n, _ as o, y as r, h as s, ne as t };
436
436
 
437
- //# sourceMappingURL=rdf-input-2s3O54hm.js.map
437
+ //# sourceMappingURL=rdf-input-DfTBeaCB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rdf-input-DfTBeaCB.js","names":["sym","ns","store","documentURI","document","holds","undefined","removeStatements","statementsMatching","fetcher","load","force","clearPreviousData","fetchData","sortBySequence","list","subfields","map","p","k","any","ui","seq","Number","value","isNaN","sort","a","b","pair","mostSpecificClassURI","subject","typeUri","findTypeURIs","specificTypes","bottomTypeURIs","finalTypes","t","push","findForm","sourceUri","docUrl","split","fragment","includes","candidate","rdf","forms","each","found","find","term","termType","ns","style","fieldParams","ui","uri","size","type","dt","pattern","namedNode","defaultInputValue","formGroupStyle","element","commentStyle","formHeadingStyle","NoopStore","store","Error","createContext","NoopStore","DEFAULT_STORE","storeContext","Symbol","property","state","html","ns","customElement","generateId","WebComponent","Literal","st","label","mostSpecificClassURI","fieldTypeParams","DEFAULT_STORE","storeContext","consume","_classDecs","_RDFInput","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_storeContextDecs","context","subscribe","_formSubjectDecs","attribute","type","Object","_dataSubjectDecs","_storeVersionDecs","Number","_localInputValueDecs","_readonlyDecs","Boolean","reflect","RDFInput","_classPrivateFieldGet","v","_classPrivateFieldSet","formSubject","dataSubject","storeVersion","localInputValue","readonly","constructor","_classPrivateFieldInitSpec","_initProto","_init_storeContext","_init_formSubject","_init_dataSubject","_init_storeVersion","_init_localInputValue","_defineProperty","_init_readonly","id","render","formDocument","getDocument","uiPropertyTerm","getFormProperty","ui","inputLabel","getInputLabel","getReadOnly","fieldType","store","undefined","params","inputType","selectedTerm","getSelectedTerm","placeholder","defaultInputValue","inputValue","_updateInFlight","_pendingUpdateValue","termToInputValue","updateData","subject","doc","graph","any","formFieldSubject","uiLabel","propertyLabel","value","anyJS","defaultTerm","inputTerm","term","decodeURIComponent","String","stripped","replace","e","newValue","target","runPendingUpdate","dataDocument","updater","editable","toDeleteSt","statementsMatching","toInsertSt","objectFromNewValue","namedNode","sym","encodeURIComponent","dt","trim","xsd","map","statement","predicate","why","length","updateMany","err","console","error","_RDFInput2","c","_initClass","_applyDecs","RDFInput","c","customElement","n$1","WebComponent","b","n","generateId","namedNode","Literal","st","ns_default","style","label","fetchData","document","documentURI","store","sortBySequence","subfields","list","k","p","seq","a","pair","mostSpecificClassURI","typeUri","subject","specificTypes","finalTypes","t","findForm","docUrl","sourceUri","fragment","candidate","term","fieldParams","DEFAULT_STORE","storeContext","_RDFInput2","_initProto","_initClass","_classDecs","_storeContextDecs","_init_storeContext","_formSubjectDecs","_init_formSubject","_dataSubjectDecs","_init_dataSubject","_storeVersionDecs","_init_storeVersion","_localInputValueDecs","_init_localInputValue","_readonlyDecs","_init_readonly","_ref","_defineProperty","_toPropertyKey","r","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_applyDecs","i","o","applyDec","m","h","y","v","g","u","w","S","A","d","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_RDFInput","_A","_B","_C","_D","_E","_F","formDocument","uiPropertyTerm","inputLabel","readonly","fieldType","params","inputType","selectedTerm","placeholder","inputValue","property","graph","formFieldSubject","uiLabel","propertyLabel","defaultTerm","dataSubject","newValue","dataDocument","toDeleteSt","toInsertSt","objectFromNewValue","statement","err","rdf_input_default"],"sources":["../../src/lib/forms/rdfFormsHelper.ts","../../src/lib/forms/fieldParams.ts","../../src/lib/forms/store/NoopStore.ts","../../src/lib/forms/store/StoreContext.ts","../../src/components/rdf-input/RDFInput.ts","../../src/components/rdf-input/index.ts"],"sourcesContent":["import { sym, LiveStore, parse } from 'rdflib'\nimport type { Term } from 'rdflib/lib/tf-types'\n// eslint-disable-next-line camelcase\nimport type { Quad_Subject, NamedNode } from 'rdflib/lib/tf-types'\nimport ns from '../../lib/ns'\n\nconst baseUri = 'https://solidos.github.io/solid-ui/src/ontology/'\n\nexport function loadDocument (\n store: LiveStore,\n documentSource: string,\n documentName: string,\n documentURI?: string,\n preferRemote = false\n) {\n const finalDocumentUri = documentURI || baseUri + documentName // Full URI to the file\n const document = sym(finalDocumentUri) // rdflib NamedNode for the document\n\n if (store.holds(undefined, undefined, undefined, document)) {\n store.removeStatements(store.statementsMatching(undefined, undefined, undefined, document))\n }\n\n const parseSource = () => {\n return new Promise<void>((resolve, reject) => {\n parse(documentSource, store, finalDocumentUri, 'text/turtle', (err) => {\n if (err) {\n console.error('Parse document error for ', finalDocumentUri, err)\n reject(err)\n } else {\n resolve()\n }\n })\n })\n }\n\n if (preferRemote && documentURI) {\n return store.fetcher.load(documentURI, {\n force: true,\n clearPreviousData: true,\n }).then(() => {}).catch((err) => {\n if (documentSource && documentSource.trim().length > 0) {\n return parseSource()\n }\n throw err\n })\n }\n\n if (documentSource && documentSource.trim().length > 0) {\n return parseSource()\n }\n\n if (documentURI) {\n return store.fetcher.load(documentURI, {\n force: true,\n clearPreviousData: true,\n }).then(() => {})\n }\n\n return Promise.reject(new Error(`No document source or URI for ${documentName}`))\n}\n\nexport async function fetchData (\n store: LiveStore,\n documentURI: string\n) {\n const document = sym(documentURI) // rdflib NamedNode for the document\n\n if (store.holds(undefined, undefined, undefined, document)) {\n store.removeStatements(store.statementsMatching(undefined, undefined, undefined, document))\n }\n\n return await store.fetcher.load(documentURI, {\n force: true,\n clearPreviousData: true,\n })\n}\n\nexport function sortBySequence (\n store: LiveStore,\n list: Term[]\n) {\n const subfields = list.map((p) => {\n const k = store.any(p as any, ns.ui('sequence'))\n const seq = k ? Number((k as { value: string }).value) : 9999\n return [Number.isNaN(seq) ? 9999 : seq, p] as const\n })\n\n subfields.sort((a, b) => a[0] - b[0])\n\n return subfields.map(pair => pair[1])\n}\n\n/**\n * Which class of field is this? Relies on http://www.w3.org/2000/01/rdf-schema#subClassOf and\n * https://linkeddata.github.io/rdflib.js/doc/classes/formula.html#bottomtypeuris\n * to find the most specific RDF type if there are multiple.\n *\n * @param subject a form field, e.g. `namedNode('https://timbl.com/timbl/Public/Test/Forms/individualForm.ttl#fullNameField')`\n * @returns the URI of the most specific known class, e.g. `http://www.w3.org/ns/ui#SingleLineTextField`\n */\n// eslint-disable-next-line camelcase\nexport function mostSpecificClassURI (store: LiveStore, subject: Quad_Subject): string {\n const typeUri = store.findTypeURIs(subject)\n const specificTypes = store.bottomTypeURIs(typeUri) // most specific\n const finalTypes: any[] = []\n for (const t in specificTypes) finalTypes.push(t)\n // if (finalTypes.length > 1) throw \"Didn't expect \"+subject+\" to have multiple bottom types: \"+finalTypes\n return finalTypes[0]\n}\n\n// Find the first ui:Form node in a store, optionally matching a fragment.\n// code based on Jeff Zucker's sol-components: https://github.com/jeff-zucker/sol-components (core/form-utils.js)\nexport function findForm (store: LiveStore, sourceUri: string): NamedNode | null {\n const docUrl = sourceUri.split('#')[0]\n const fragment = sourceUri.includes('#') ? sourceUri.split('#')[1] : null\n if (fragment) {\n const candidate = sym(docUrl + '#' + fragment)\n if (store.holds(candidate, ns.rdf('type'), ns.ui('Form'))) return candidate\n }\n const forms = store.each(null, ns.rdf('type'), ns.ui('Form'))\n const found = forms.find((term) => term.termType === 'NamedNode')\n return found ? (found as NamedNode) : null\n}\n","import ns from '../../lib/ns'\nimport { style } from '../../lib/style'\n\nexport type InputType =\n | 'hidden'\n | 'text'\n | 'search'\n | 'tel'\n | 'url'\n | 'email'\n | 'password'\n | 'datetime'\n | 'date'\n | 'month'\n | 'week'\n | 'time'\n | 'datetime-local'\n | 'number'\n | 'range'\n | 'color'\n | 'checkbox'\n | 'radio'\n | 'file'\n | 'submit'\n | 'image'\n | 'reset'\n | 'button'\n\nexport type FieldParamsObject = {\n size?: number, // input element size attribute\n type?: InputType, // input element type attribute. Default: 'text' (not for Comment and Heading)\n element?: string, // element type to use (Comment and Heading only)\n style?: string, // style to use\n dt?: string, // xsd data type for the RDF Literal corresponding to the field value. Default: xsd:string\n defaultInputValue?: string, // e.g. 'mailto:'. Default value in input field, will be removed when displaying actual value to user.\n namedNode?: boolean, // if true, field value corresponds to the URI of an RDF NamedNode. Overrides dt and defaultInputValue.\n pattern?: RegExp // for client-side input validation; field will go red if violated, green if ok\n}\n\n/**\n * The fieldParams object defines various constants\n * for use in various form fields. Depending on the\n * field in questions, different values may be read\n * from here.\n */\nexport const fieldParams: { [ fieldUri: string ]: FieldParamsObject } = {\n /**\n * Text field\n *\n * For possible date popups see e.g. http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm\n * or use HTML5: http://www.w3.org/TR/2011/WD-html-markup-20110113/input.date.html\n */\n [ns.ui('ColorField').uri]: {\n size: 9,\n type: 'color',\n style: 'height: 3em;', // around 1.5em is padding\n dt: 'color',\n pattern: /^\\s*#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]([0-9a-f][0-9a-f])?\\s*$/\n }, // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color\n\n [ns.ui('DateField').uri]: {\n size: 20,\n type: 'date',\n dt: 'date',\n pattern: /^\\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?Z?\\s*$/\n },\n\n [ns.ui('DateTimeField').uri]: {\n size: 20,\n type: 'datetime-local', // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime\n dt: 'dateTime',\n pattern: /^\\s*[0-9][0-9][0-9][0-9](-[0-1]?[0-9]-[0-3]?[0-9])?(T[0-2][0-9]:[0-5][0-9](:[0-5][0-9])?)?Z?\\s*$/\n },\n\n [ns.ui('TimeField').uri]: {\n size: 10,\n type: 'time',\n dt: 'time',\n pattern: /^\\s*([0-2]?[0-9]:[0-5][0-9](:[0-5][0-9])?)\\s*$/\n },\n\n [ns.ui('IntegerField').uri]: {\n size: 12,\n style: 'text-align: right;',\n dt: 'integer',\n pattern: /^\\s*-?[0-9]+\\s*$/\n },\n\n [ns.ui('DecimalField').uri]: {\n size: 12,\n style: 'text-align: right;',\n dt: 'decimal',\n pattern: /^\\s*-?[0-9]*(\\.[0-9]*)?\\s*$/\n },\n\n [ns.ui('FloatField').uri]: {\n size: 12,\n style: 'text-align: right;',\n dt: 'float',\n pattern: /^\\s*-?[0-9]*(\\.[0-9]*)?((e|E)-?[0-9]*)?\\s*$/\n },\n\n [ns.ui('SingleLineTextField').uri]: {\n\n },\n [ns.ui('NamedNodeURIField').uri]: {\n namedNode: true\n },\n [ns.ui('TextField').uri]: {\n\n },\n\n [ns.ui('PhoneField').uri]: {\n size: 20,\n defaultInputValue: 'tel:',\n pattern: /^\\+?[\\d-]+[\\d]*$/\n },\n\n [ns.ui('EmailField').uri]: {\n size: 30,\n defaultInputValue: 'mailto:',\n pattern: /^\\s*.*@.*\\..*\\s*$/ // @@ Get the right regexp here\n },\n\n [ns.ui('Group').uri]: {\n style: style.formGroupStyle\n },\n\n /**\n * Non-interactive fields\n */\n [ns.ui('Comment').uri]: {\n element: 'p',\n style: style.commentStyle\n },\n [ns.ui('Heading').uri]: {\n element: 'h3',\n style: style.formHeadingStyle\n }\n}\n","import { LiveStore } from 'rdflib'\nimport { StoreContext } from './StoreContext'\n\nexport default class NoopStore implements StoreContext {\n get store (): LiveStore {\n throw new Error('Cannot use RDF forms without a store')\n }\n}\n","import { createContext } from '@lit/context'\nimport { LiveStore } from 'rdflib'\nimport NoopStore from './NoopStore'\n\nexport interface StoreContext {\n store: LiveStore\n}\n\nexport const DEFAULT_STORE = new NoopStore()\nexport const storeContext = createContext<StoreContext>(Symbol('storeContext'))\n","import { property, state } from 'lit/decorators.js'\nimport { html } from 'lit/html.js'\nimport ns from '../../lib/ns'\nimport { customElement, generateId, WebComponent } from '@/lib/components'\nimport { Literal, NamedNode, st } from 'rdflib'\nimport { label } from '../../utils'\nimport { mostSpecificClassURI } from '../../lib/forms/rdfFormsHelper'\nimport { FieldParamsObject, fieldParams as fieldTypeParams, InputType } from '../../lib/forms/fieldParams'\nimport { DEFAULT_STORE, storeContext, StoreContext } from '@/lib/forms/store/StoreContext'\nimport { consume } from '@lit/context'\nimport '@/components/input'\n\n@customElement('solid-ui-rdf-input')\nexport default class RDFInput extends WebComponent {\n // example RDF Turtle format source:\n // :nameField a ui:SingleLineTextField ;\n // ui:property vcard:fn;\n // ui:label \"name\" .\n\n // formSubject describes the field metadata\n // dataSubject points to the data resource containing the value\n\n @consume({ context: storeContext, subscribe: true })\n private accessor storeContext: StoreContext = DEFAULT_STORE\n\n @property({ attribute: false, type: Object })\n accessor formSubject: NamedNode | null = null\n\n @property({ attribute: false, type: Object })\n accessor dataSubject: NamedNode | null = null\n\n @property({ type: Number })\n accessor storeVersion = 0\n\n @state()\n private accessor localInputValue: string | null = null\n\n private _updateInFlight = false\n private _pendingUpdateValue: string | null = null\n\n @property({ type: Boolean, reflect: true })\n accessor readonly: boolean = true // to protect data, we default to not editable\n\n constructor () {\n super()\n\n this.id = generateId()\n }\n\n render () {\n const formDocument = this.getDocument(this.formSubject)\n\n // for building the HTML input element\n const uiPropertyTerm = this.getFormProperty(this.formSubject, ns.ui('property'), formDocument)\n const inputLabel = this.getInputLabel(this.formSubject, uiPropertyTerm, formDocument)\n const readonly = this.getReadOnly(this.readonly, this.formSubject, formDocument)\n\n const fieldType = this.formSubject ? mostSpecificClassURI(this.storeContext.store, this.formSubject) : undefined\n const params = fieldType ? fieldTypeParams[fieldType] ?? {} : {}\n const inputType: InputType = params.type ?? 'text'\n\n // for populating the HTML input element\n const selectedTerm = this.getSelectedTerm(this.dataSubject, uiPropertyTerm, this.formSubject, params)\n const placeholder = readonly ? '' : this.defaultInputValue(params)\n const inputValue = this._updateInFlight || this._pendingUpdateValue !== null\n ? this.localInputValue ?? ''\n : this.termToInputValue(selectedTerm)\n\n return html`\n <solid-ui-input\n label=\"${inputLabel}\"\n name=\"name-${this.id}\"\n .value=${inputValue}\n .placeholder=${placeholder}\n type=\"${inputType}\"\n ?readonly=${readonly}\n @input=${this.updateData}\n ></solid-ui-input>`\n }\n\n private getDocument (subject: NamedNode | null | undefined) {\n return subject?.doc ? subject.doc() : undefined\n }\n\n private getFormProperty (subject: NamedNode | null | undefined, property: NamedNode, graph?: any): NamedNode | undefined {\n if (!subject) return undefined\n return this.storeContext.store.any(subject, property, null, graph) as NamedNode | undefined\n }\n\n private getInputLabel (formFieldSubject: NamedNode | null | undefined, uiPropertyTerm?: NamedNode, graph?: any): string {\n if (!formFieldSubject) return ''\n const uiLabel = this.storeContext.store.any(formFieldSubject, ns.ui('label'), null, graph)\n const propertyLabel = uiPropertyTerm ? label(uiPropertyTerm, true) : ''\n return uiLabel ? uiLabel.value : propertyLabel\n }\n\n private getReadOnly (readonly: boolean, formFieldSubject?: NamedNode | null, graph?: any): boolean {\n if (formFieldSubject && readonly === false) { // if readonly is false, we can ovverride it if the field is marked as uneditable in the form\n return !!this.storeContext.store.anyJS(formFieldSubject, ns.ui('suppressEmptyUneditable'), null, graph)\n }\n return readonly\n }\n\n private getSelectedTerm (\n dataSubject?: NamedNode | null,\n uiPropertyTerm?: NamedNode,\n formFieldSubject?: NamedNode | null,\n params?: { defaultInputValue?: string }\n ) {\n const defaultTerm = formFieldSubject\n ? this.storeContext.store.any(formFieldSubject, ns.ui('default'))\n : undefined\n\n if (!uiPropertyTerm || !dataSubject) {\n return defaultTerm\n }\n\n const inputTerm = this.storeContext.store.any(dataSubject, uiPropertyTerm)\n return inputTerm || defaultTerm\n }\n\n private termToInputValue (term: any) {\n if (!term || !('value' in term) || !term.value) return ''\n\n try {\n return decodeURIComponent(term.value)\n } catch {\n return String(term.value)\n }\n }\n\n private defaultInputValue (params: { defaultInputValue?: string } = {}) {\n const stripped = params.defaultInputValue ?? ''\n return stripped.replace(/ /g, '')\n }\n\n private async updateData (e: CustomEvent) {\n const newValue = (e.target as HTMLInputElement).value\n this.localInputValue = newValue\n this._pendingUpdateValue = newValue\n\n if (this._updateInFlight) {\n return\n }\n\n await this.runPendingUpdate()\n }\n\n private async runPendingUpdate () {\n if (this._pendingUpdateValue === null) {\n return\n }\n\n const newValue = this._pendingUpdateValue\n this._pendingUpdateValue = null\n this._updateInFlight = true\n\n const uiPropertyTerm = this.getFormProperty(this.formSubject, ns.ui('property'), this.getDocument(this.formSubject))\n if (!uiPropertyTerm || !this.dataSubject) {\n this._updateInFlight = false\n this.localInputValue = ''\n return\n }\n\n const dataDocument = this.getDocument(this.dataSubject)\n if (dataDocument && this.storeContext.store.updater?.editable(dataDocument) === false) {\n this._updateInFlight = false\n return\n }\n\n const toDeleteSt = this.storeContext.store.statementsMatching(this.dataSubject, uiPropertyTerm)\n let toInsertSt: Array<ReturnType<typeof st>> = []\n\n if (newValue) {\n let objectFromNewValue\n const fieldType = this.formSubject ? mostSpecificClassURI(this.storeContext.store, this.formSubject) : undefined\n const params: FieldParamsObject = fieldType ? fieldTypeParams[fieldType] ?? {} : {}\n if (params.namedNode) {\n objectFromNewValue = this.storeContext.store.sym(newValue)\n } else if (params.defaultInputValue) {\n objectFromNewValue = encodeURIComponent(newValue.replace(/ /g, ''))\n objectFromNewValue = this.storeContext.store.sym(params.defaultInputValue + objectFromNewValue)\n } else {\n if (params.dt) {\n objectFromNewValue = new Literal(\n newValue.trim(),\n undefined,\n ns.xsd(params.dt)\n )\n } else {\n objectFromNewValue = new Literal(newValue)\n }\n }\n toInsertSt = toDeleteSt.map((statement) => st(statement.subject, statement.predicate, objectFromNewValue, statement.why))\n if (toInsertSt.length === 0) {\n toInsertSt = [st(this.dataSubject, uiPropertyTerm, objectFromNewValue, this.getDocument(this.dataSubject))]\n }\n }\n\n try {\n await this.storeContext.store.updater.updateMany(toDeleteSt, toInsertSt as any)\n this.storeVersion += 1\n } catch (err) {\n console.error('RDFInput update failed', err)\n } finally {\n this._updateInFlight = false\n }\n\n if (this._pendingUpdateValue !== null) {\n await this.runPendingUpdate()\n }\n }\n}\n","import RDFInput from './RDFInput'\n\nexport { RDFInput }\nexport default RDFInput\n"],"mappings":";;;;;AA6DA,eAAsBa,EACpBX,GACAC,GACA;CACA,IAAMC,IAAWJ,EAAIG,CAAW;CAMhC,OAJID,EAAMG,MAAMC,KAAAA,GAAWA,KAAAA,GAAWA,KAAAA,GAAWF,CAAQ,KACvDF,EAAMK,iBAAiBL,EAAMM,mBAAmBF,KAAAA,GAAWA,KAAAA,GAAWA,KAAAA,GAAWF,CAAQ,CAAC,GAGrF,MAAMF,EAAMO,QAAQC,KAAKP,GAAa;EAC3CQ,OAAO;EACPC,mBAAmB;CACrB,CAAC;AACH;AAEA,SAAgBE,EACdZ,GACAa,GACA;CACA,IAAMC,IAAYD,EAAKE,KAAKC,MAAM;EAChC,IAAMC,IAAIjB,EAAMkB,IAAIF,GAAUjB,EAAGoB,GAAG,UAAU,CAAC,GACzCC,IAAMH,IAAII,OAAQJ,EAAwBK,KAAK,IAAI;EACzD,OAAO,CAACD,OAAOE,MAAMH,CAAG,IAAI,OAAOA,GAAKJ,CAAC;CAC3C,CAAC;C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GAAA,GAAA,KAAA,GAvMqCT,CAAY,GAAAwH,EAAA;;ACVlD,IAAA8H,KAAe5H"}
@@ -1,4 +1,4 @@
1
- import { c as e, g as t, i as n, p as r, r as i, t as a, u as o } from "./components-CmnPlcEi.js";
1
+ import { c as e, g as t, i as n, p as r, r as i, t as a, u as o } from "./components-CVuqsI0R.js";
2
2
  import { t as s } from "./query-DjAOg-tk.js";
3
3
  import "./chevron-down-CqUEolao.js";
4
4
  // src/lib/values.ts
@@ -264,4 +264,4 @@ new (S = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), C =
264
264
  var L = I;
265
265
  export { I as n, L as t };
266
266
 
267
- //# sourceMappingURL=select-DQtYJhLc.js.map
267
+ //# sourceMappingURL=select-BKXrVwJC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-BKXrVwJC.js","names":["isEmptyValue","value","undefined","customElement","FormControlComponent","html","nothing","property","query","state","isEmptyValue","styles","_classDecs","_Select","_Select2","_A","WeakMap","_B","_ref","_optionsDecs","type","Array","_controlElementDecs","_optionsDecs2","_Select3","Select","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_controlElement","_init__options","value","_options","options","querySelectorAll","from","map","option","label","textContent","controlElement","_classPrivateFieldGet","v","_classPrivateFieldSet","render","defaultOption","some","controlTrait","renderLabel","controlId","name","required","onChange","find","setValue","dispatchEvent","CustomEvent","bubbles","composed","detail","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","Select","A","customElement","i","FormControlComponent","b","e","isEmptyValue","value","Select_styles_default","_Class","_Select3","_A","_B","_initProto","_initClass","_classDecs","_optionsDecs","_controlElementDecs","_init_controlElement","_optionsDecs2","_init__options","_Select2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","n","o","c","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_identity","_Select","args","options","option","defaultOption","select_default"],"sources":["../../src/lib/values.ts","../../src/components/select/Select.ts","../../src/components/select/index.ts"],"sourcesContent":["export function isEmptyValue (value: unknown): boolean {\n return value === null || value === undefined || value === ''\n}\n","import { customElement, FormControlComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property, query, state } from 'lit/decorators.js'\nimport { isEmptyValue } from '@/lib/values'\nimport type SelectOption from '@/components/select-option/SelectOption'\n\nimport '~icons/lucide/chevron-down'\n\nimport styles from './Select.styles.css'\n\nexport type SelectOptionData = {\n value: unknown;\n label: string;\n}\n\nexport type SelectChangeEvent = CustomEvent<{ option: SelectOptionData }>\n\n@customElement('solid-ui-select')\nexport default class Select extends FormControlComponent {\n static styles = styles\n\n @property({ type: Array })\n set options (value: SelectOptionData[] | null) {\n this._options = value\n }\n\n get options (): SelectOptionData[] {\n if (this._options) {\n return this._options\n }\n\n const options = this.querySelectorAll<SelectOption>(\n 'solid-ui-select-option'\n )\n\n return Array.from(options).map((option) => ({\n value: option.value,\n label: option.textContent,\n }))\n }\n\n @query('select')\n protected accessor controlElement: HTMLSelectElement | null = null;\n\n @state()\n private accessor _options: SelectOptionData[] | null = null\n\n protected render () {\n const defaultOption = this.options.some(option => isEmptyValue(option.value))\n ? nothing\n : html`<option disabled value=\"\" ?selected=${!this.value}>Select an option</option>`\n\n return html`\n ${this.controlTrait.renderLabel()}\n\n <div class=\"input-wrapper\">\n <select\n id=\"${this.controlTrait.controlId}\"\n name=${this.name}\n ?required=${this.required}\n @change=${this.onChange}\n >\n ${defaultOption}\n ${this.options.map(\n (option) =>\n html`<option\n .value=${option.value}\n ?selected=${option.value === this.value}\n >\n ${option.label}\n </option>`\n )}\n </select>\n <icon-lucide-chevron-down></icon-lucide-chevron-down>\n </div>\n `\n }\n\n private onChange () {\n const value = this.controlElement?.value ?? null\n const option = this.options.find((option) => option.value === value)\n\n this.controlTrait.setValue(value)\n this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true, detail: { option } }))\n }\n}\n","import Select from './Select'\n\nexport * from './Select'\nexport { Select }\nexport default Select\n"],"mappings":";;;;AAAA,SAAgBA,EAAcC,GAAyB;CACrD,OAAOA,KAAU,QAA+BA,MAAU;AAC5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACMwCW,IAAA,CASvCT,EAAc,iBAAiB,CAAC;AAAA,IAAAU;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,KAAAC,IAI9BZ,EAAS,EAAEa,MAAMC,MAAM,CAAC,GAACC,IAoBzBd,EAAM,QAAQ,GAACe,IAGfd,EAAM,GAAC,YAAAe,IA3BV,cACoCpB,EAAqB;CAAAsB,YAAA,GAAAC,GAAA;EAwBWC,AAxBX,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAb,IAAAc,EAAA,IAAA,GAAAC,EAAA,MAwBO,IAAI,EAAA,GAAAF,EAAA,MAAAX,GAAAc,EAAA,MAGX,IAAI,CAAA;CAAA;CAxB3D,KAAAb,GACac,GAAkC;EAC7C,KAAKC,WAAWD;CAClB;CAEA,IAAIE,UAA+B;EACjC,IAAI,KAAKD,UACP,OAAO,KAAKA;EAGd,IAAMC,IAAU,KAAKC,iBACnB,wBACF;EAEA,OAAOd,MAAMe,KAAKF,CAAO,CAAC,CAACG,KAAKC,OAAY;GAC1CN,OAAOM,EAAON;GACdO,OAAOD,EAAOE;EAChB,EAAE;CACJ;CAAC,IAGkBC,iBAAc;EAAA,OAAAC,EAAA3B,GAAA,IAAA;CAAA;CAAA,IAAd0B,eAAcE,GAAA;EAAAC,EAAA7B,GAAA,MAAA4B,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;CAAA;AAAA,GAAAI,EAAAF,GAAAnD,GAAA,KAAA,CAAA,GAAAmD,GAAA;;ACfxB,IAAAsE,IAAenE"}
@@ -1,4 +1,4 @@
1
- import { c as e, g as t, i as n, o as r, u as i } from "./components-CmnPlcEi.js";
1
+ import { c as e, g as t, i as n, o as r, u as i } from "./components-CVuqsI0R.js";
2
2
  // src/components/select-option/SelectOption.ts
3
3
  var a, o, s, c, l, u, d;
4
4
  function f(e, t, n) {
@@ -188,4 +188,4 @@ d = (l = n({
188
188
  var w = S;
189
189
  export { S as n, w as t };
190
190
 
191
- //# sourceMappingURL=select-option-BdE45Q3h.js.map
191
+ //# sourceMappingURL=select-option-SlgG53he.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-option-SlgG53he.js","names":["customElement","WebComponent","html","nothing","property","_classDecs","_SelectOption","_A","WeakMap","_ref","_valueDecs","type","String","reflect","SelectOption","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_value","_classPrivateFieldGet","value","v","_classPrivateFieldSet","render","_SelectOption2","e","c","_initClass","_applyDecs","SelectOption","A","customElement","WebComponent","b","_SelectOption2","_initProto","_initClass","_classDecs","_valueDecs","_init_value","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","u","w","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","e","_SelectOption","_A","args","select_option_default"],"sources":["../../src/components/select-option/SelectOption.ts","../../src/components/select-option/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { property } from 'lit/decorators.js'\n\n@customElement('solid-ui-select-option')\nexport default class SelectOption extends WebComponent {\n @property({ type: String, reflect: true })\n accessor value = ''\n\n protected render () {\n return html`${nothing}`\n }\n}\n","import SelectOption from './SelectOption'\n\nexport { SelectOption }\nexport default SelectOption\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE4CK,IAAA,CAE3CL,EAAc,wBAAwB,CAAC;AAAA,IAAAM,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCN,EAAS;CAAEO,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAAC,UAM3CY,IAAAX,cAPyCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAV,IAAAW,EAAA,IAAA,GAAAC,EAAA,MAEpC,EAAE,EAAA;CAAA;CAAA,KAAAV,KAAA;EAAA,OAAAW,EAAAb,GAAA,IAAA;CAAA;CAAA,IAAVc,MAAKC,GAAA;EAAAC,EAAAhB,GAAA,MAAAe,CAAA;CAAA;CAEJE,SAAU;EAClB,OAAOtB,CAAI,GAAGC;CAChB;AACF,GAAC,CAAAuB,GAAA,CAAAP,GAAAD,IAAAS,GAAA,CAAArB,GAAAsB,MAAAC,EAAAJ,GAAA,CAAA;CAAAf;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAPyCJ,CAAY,GAAA2B,EAAA;;ACFtD,IAAAyD,IAAevD"}
@@ -1,6 +1,6 @@
1
- import { b as e, g as t, o as n, u as r } from "./components-CmnPlcEi.js";
2
- import { a as i, o as a } from "./auth-CCrvazv_.js";
3
- import "./button-DFgsOHBh.js";
1
+ import { b as e, g as t, o as n, u as r } from "./components-CVuqsI0R.js";
2
+ import { a as i, o as a } from "./auth-Cj-J-3Nf.js";
3
+ import "./button-D7XurXfj.js";
4
4
  // src/components/signup-button/SignupButton.ts
5
5
  var o, s, c, l, u, d, f;
6
6
  function p(e, t, n) {
@@ -204,4 +204,4 @@ f = (u = e({
204
204
  var T = C;
205
205
  export { C as n, T as t };
206
206
 
207
- //# sourceMappingURL=signup-button-yONuztWR.js.map
207
+ //# sourceMappingURL=signup-button-C-dLsqr8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signup-button-C-dLsqr8.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_SignupButton","_A","WeakMap","_ref","_authDecs","context","subscribe","SignupButton","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","render","onClick","click","signup","e","preventDefault","_SignupButton2","c","_initClass","_applyDecs","SignupButton","c","customElement","WebComponent","b","DEFAULT_AUTH_CONTEXT","authContext","_SignupButton2","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","i","n","o","applyDec","m","h","y","v","g","u","w","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","t","e","_SignupButton","_A","args","signup_button_default"],"sources":["../../src/components/signup-button/SignupButton.ts","../../src/components/signup-button/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '@/components/button'\n\n@customElement('solid-ui-signup-button')\nexport default class SignupButton extends WebComponent {\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button>\n <slot>\n Sign Up\n </slot>\n </solid-ui-button>\n </slot>\n `\n }\n\n click () {\n this.auth.signup()\n }\n\n private onClick (e: MouseEvent) {\n e.preventDefault()\n\n this.click()\n }\n}\n","import SignupButton from './SignupButton'\n\nexport { SignupButton }\nexport default SignupButton\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK4BM,IAAA,CAE3BN,EAAc,wBAAwB,CAAC;AAAA,IAAAO,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCT,EAAQ;CAAEU,SAASR;CAAaS,WAAW;AAAK,CAAC,GAAC,SAwBpDiB,IAAAhB,cAzByCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAT,IAAAU,EAAA,IAAA,GAAAC,EAAA,MAEhBd,CAAoB,EAAA;CAAA;CAAA,KAAAK,KAAA;EAAA,OAAAU,EAAAZ,GAAA,IAAA;CAAA;CAAA,IAAxCa,KAAIC,GAAA;EAAAC,EAAAf,GAAA,MAAAc,CAAA;CAAA;CAEXE,SAAU;EAClB,OAAOrB,CAAI;oCACqB,KAAKsB,QAAO;;;;;;;;CAQ9C;CAEAC,QAAS;EACP,KAAKL,KAAKM,OAAO;CACnB;CAEQF,QAASG,GAAe;EAG9B,AAFAA,EAAEC,eAAe,GAEjB,KAAKH,MAAM;CACb;AACF,GAAC,CAAAE,GAAA,CAAAT,GAAAD,IAAAa,GAAA,CAAAxB,GAAAyB,MAAAC,EAAAH,GAAA,CAAA;CAAAnB;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAzByCL,CAAY,GAAA+B,EAAA;;ACLtD,IAAA2D,IAAezD"}
@@ -1,4 +1,4 @@
1
- import { g as e, o as t, p as n, u as r } from "./components-CmnPlcEi.js";
1
+ import { g as e, o as t, p as n, u as r } from "./components-CVuqsI0R.js";
2
2
  // ~icons/app/solid-emblem
3
3
  var i = class extends HTMLElement {
4
4
  constructor() {
@@ -178,4 +178,4 @@ new (u = (s = class extends t {
178
178
  var y = v;
179
179
  export { v as n, y as t };
180
180
 
181
- //# sourceMappingURL=solid-emblem-Dc1cwhXb.js.map
181
+ //# sourceMappingURL=solid-emblem-BmFc2G2B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solid-emblem-BmFc2G2B.js","names":["customElement","WebComponent","html","styles","_classDecs","_SolidEmblem","_SolidEmblem2","_SolidEmblem3","SolidEmblem","render","_initClass","_applyDecs","c","_Class","_identity","constructor","_defineProperty","SolidEmblem","customElement","WebComponent","i","b","iconappsolidemblem","SolidEmblem_styles_default","_Class","_SolidEmblem3","_initClass","_classDecs","_SolidEmblem2","_defineProperty","_toPropertyKey","r","t","_applyDecs","n","o","c","s","applyDec","m","h","y","g","u","w","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","v","_toPrimitive","e","_identity","_SolidEmblem","solid_emblem_default"],"sources":["../../src/components/solid-emblem/SolidEmblem.ts","../../src/components/solid-emblem/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { html } from 'lit'\n\nimport '~icons/app/solid-emblem'\n\nimport styles from './SolidEmblem.styles.css'\n\n@customElement('solid-ui-solid-emblem')\nexport default class SolidEmblem extends WebComponent {\n static styles = styles\n\n protected render () {\n return html`<icon-app-solid-emblem></icon-app-solid-emblem>`\n }\n}\n","import SolidEmblem from './SolidEmblem'\n\nexport { SolidEmblem }\nexport default SolidEmblem\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK6CI,IAAA,CAE5CJ,EAAc,uBAAuB,CAAC;AAAA,IAAAK;AAAA,KAAAC,KAAAC,IAAvC,cACyCN,EAAa;CAG1CQ,SAAU;EAClB,OAAOP,CAAI;CACb;AACF,GAAC,CAAAG,GAAAK,KAAAC,EAAAJ,GAAA,CAAA,GAAAH,GAAA,GAAA,KAAA,GANwCH,CAAY,CAAA,CAAAW,GAAAL,IAAAM,IAAA,cAAAC,EAAA;CAAAC,cAAA;EAAA,MAAAV,CAAA,GAAAW,EAAA,MAAA,UACnCb,CAAM,GAAAO,EAAA;CAAA;AAAA,GAAAM,EAAAH,GAAAP,GAAA,KAAA,CAAA,GAAAO,GAAA;;ACNxB,IAAAqD,IAAejD"}