profile-pane 3.1.5 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/README.md +16 -0
  2. package/icons-png/discord.png +0 -0
  3. package/icons-png/dribbble.png +0 -0
  4. package/icons-png/facebook.png +0 -0
  5. package/icons-png/instagram.png +0 -0
  6. package/icons-png/linkedin.png +0 -0
  7. package/icons-png/pinterest.png +0 -0
  8. package/icons-png/sharechat.png +0 -0
  9. package/icons-png/signup.png +0 -0
  10. package/icons-png/snapchat.png +0 -0
  11. package/icons-png/spotify.png +0 -0
  12. package/icons-png/telegram.png +0 -0
  13. package/icons-png/tiktok.png +0 -0
  14. package/icons-png/whatsapp.png +0 -0
  15. package/icons-png/x.png +0 -0
  16. package/icons-png/youtube.png +0 -0
  17. package/lib/04567ff683933c35c465.png +0 -0
  18. package/lib/10163fd9b5a0e00d63a0.png +0 -0
  19. package/lib/1234dcb2eec2e45f252b.png +0 -0
  20. package/lib/20899934157df4db56cb.png +0 -0
  21. package/lib/33760bf79f097f449da5.png +0 -0
  22. package/lib/578d2b6ed32e7624164e.png +0 -0
  23. package/lib/5f62a5b2b7e99b9640c7.png +0 -0
  24. package/lib/6525766ecd288ec60129.png +0 -0
  25. package/lib/7800be6f6c4b5b0f4f20.png +0 -0
  26. package/lib/976473cf5fe24d657d4b.png +0 -0
  27. package/lib/ChatWithMe.d.ts +2 -1
  28. package/lib/ChatWithMe.d.ts.map +1 -1
  29. package/lib/ChatWithMe.js +3 -3
  30. package/lib/ProfileView.d.ts +1 -1
  31. package/lib/ProfileView.d.ts.map +1 -1
  32. package/lib/ProfileView.js +71 -131
  33. package/lib/ProfileViewModelPresenter.d.ts +23 -0
  34. package/lib/ProfileViewModelPresenter.d.ts.map +1 -0
  35. package/lib/ProfileViewModelPresenter.js +37 -0
  36. package/lib/QRCodeCard.d.ts +3 -1
  37. package/lib/QRCodeCard.d.ts.map +1 -1
  38. package/lib/QRCodeCard.js +86 -66
  39. package/lib/addMeToYourFriends.d.ts +3 -3
  40. package/lib/addMeToYourFriends.d.ts.map +1 -1
  41. package/lib/addMeToYourFriends.js +14 -30
  42. package/lib/bda84f59e7216675a208.png +0 -0
  43. package/lib/buttonsHelper.js +1 -1
  44. package/lib/cd68e8f3990ba8b2139e.png +0 -0
  45. package/lib/e7074a7e2cb69e51cfd3.png +0 -0
  46. package/lib/editProfilePane/EditCVCard.d.ts +1 -0
  47. package/lib/editProfilePane/EditCVCard.d.ts.map +1 -1
  48. package/lib/editProfilePane/EditCVCard.js +2 -1
  49. package/lib/editProfilePane/EditCommunitiesCard.d.ts +1 -1
  50. package/lib/editProfilePane/EditCommunitiesCard.d.ts.map +1 -1
  51. package/lib/editProfilePane/EditCommunitiesCard.js +2 -1
  52. package/lib/editProfilePane/EditContactsCard.d.ts +1 -0
  53. package/lib/editProfilePane/EditContactsCard.d.ts.map +1 -1
  54. package/lib/editProfilePane/EditContactsCard.js +2 -0
  55. package/lib/editProfilePane/EditFriendsCard.d.ts +1 -1
  56. package/lib/editProfilePane/EditFriendsCard.d.ts.map +1 -1
  57. package/lib/editProfilePane/EditFriendsCard.js +2 -1
  58. package/lib/editProfilePane/EditOtherPreferences.d.ts +1 -0
  59. package/lib/editProfilePane/EditOtherPreferences.d.ts.map +1 -1
  60. package/lib/editProfilePane/EditOtherPreferences.js +1 -0
  61. package/lib/editProfilePane/EditProfileView.d.ts +1 -1
  62. package/lib/editProfilePane/EditProfileView.d.ts.map +1 -1
  63. package/lib/editProfilePane/EditProfileView.js +1 -1
  64. package/lib/editProfilePane/EditSocialCard.d.ts +1 -0
  65. package/lib/editProfilePane/EditSocialCard.d.ts.map +1 -1
  66. package/lib/editProfilePane/EditSocialCard.js +2 -1
  67. package/lib/editProfilePane/editProfilePresenter.d.ts +1 -0
  68. package/lib/editProfilePane/editProfilePresenter.d.ts.map +1 -1
  69. package/lib/editProfilePane/editProfilePresenter.js +2 -0
  70. package/lib/f3772696fb7ee53c23d8.png +0 -0
  71. package/lib/icons-svg/contactIcons.d.ts +3 -0
  72. package/lib/icons-svg/contactIcons.d.ts.map +1 -0
  73. package/lib/icons-svg/contactIcons.js +32 -0
  74. package/lib/icons-svg/profileIcons.d.ts +22 -0
  75. package/lib/icons-svg/profileIcons.d.ts.map +1 -0
  76. package/lib/icons-svg/profileIcons.js +309 -0
  77. package/lib/index.d.ts +1 -3
  78. package/lib/index.d.ts.map +1 -1
  79. package/lib/index.js +42 -19
  80. package/lib/profile-pane.js +15629 -5670
  81. package/lib/profile-pane.js.map +1 -1
  82. package/lib/profile-pane.min.js +2171 -230
  83. package/lib/profile-pane.min.js.map +1 -1
  84. package/lib/rdfFormsHelper.d.ts +1 -0
  85. package/lib/rdfFormsHelper.d.ts.map +1 -1
  86. package/lib/rdfFormsHelper.js +2 -0
  87. package/lib/sections/bio/BioEditDialog.d.ts +6 -0
  88. package/lib/sections/bio/BioEditDialog.d.ts.map +1 -0
  89. package/lib/sections/bio/BioEditDialog.js +119 -0
  90. package/lib/sections/bio/BioSection.d.ts +7 -0
  91. package/lib/sections/bio/BioSection.d.ts.map +1 -0
  92. package/lib/sections/bio/BioSection.js +131 -0
  93. package/lib/sections/bio/mutations.d.ts +4 -0
  94. package/lib/sections/bio/mutations.d.ts.map +1 -0
  95. package/lib/sections/bio/mutations.js +43 -0
  96. package/lib/sections/bio/selectors.d.ts +4 -0
  97. package/lib/sections/bio/selectors.d.ts.map +1 -0
  98. package/lib/sections/bio/selectors.js +15 -0
  99. package/lib/sections/bio/types.d.ts +15 -0
  100. package/lib/sections/bio/types.d.ts.map +1 -0
  101. package/lib/sections/bio/types.js +5 -0
  102. package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts +7 -0
  103. package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts.map +1 -0
  104. package/lib/sections/contactInfo/ContactInfoEditDialog.js +658 -0
  105. package/lib/sections/contactInfo/ContactInfoSection.d.ts +5 -0
  106. package/lib/sections/contactInfo/ContactInfoSection.d.ts.map +1 -0
  107. package/lib/sections/contactInfo/ContactInfoSection.js +229 -0
  108. package/lib/sections/contactInfo/mutations.d.ts +4 -0
  109. package/lib/sections/contactInfo/mutations.d.ts.map +1 -0
  110. package/lib/sections/contactInfo/mutations.js +150 -0
  111. package/lib/sections/contactInfo/selectors.d.ts +4 -0
  112. package/lib/sections/contactInfo/selectors.d.ts.map +1 -0
  113. package/lib/sections/contactInfo/selectors.js +104 -0
  114. package/lib/sections/contactInfo/types.d.ts +44 -0
  115. package/lib/sections/contactInfo/types.d.ts.map +1 -0
  116. package/lib/sections/contactInfo/types.js +5 -0
  117. package/lib/sections/education/EducationEditDialog.d.ts +7 -0
  118. package/lib/sections/education/EducationEditDialog.d.ts.map +1 -0
  119. package/lib/sections/education/EducationEditDialog.js +459 -0
  120. package/lib/sections/education/EducationSection.d.ts +7 -0
  121. package/lib/sections/education/EducationSection.d.ts.map +1 -0
  122. package/lib/sections/education/EducationSection.js +126 -0
  123. package/lib/sections/education/mutations.d.ts +4 -0
  124. package/lib/sections/education/mutations.d.ts.map +1 -0
  125. package/lib/sections/education/mutations.js +60 -0
  126. package/lib/sections/education/selectors.d.ts +4 -0
  127. package/lib/sections/education/selectors.d.ts.map +1 -0
  128. package/lib/sections/education/selectors.js +64 -0
  129. package/lib/sections/education/types.d.ts +20 -0
  130. package/lib/sections/education/types.d.ts.map +1 -0
  131. package/lib/sections/education/types.js +5 -0
  132. package/lib/sections/heading/HeadingEditDialog.d.ts +6 -0
  133. package/lib/sections/heading/HeadingEditDialog.d.ts.map +1 -0
  134. package/lib/sections/heading/HeadingEditDialog.js +742 -0
  135. package/lib/sections/heading/HeadingSection.d.ts +9 -0
  136. package/lib/sections/heading/HeadingSection.d.ts.map +1 -0
  137. package/lib/sections/heading/HeadingSection.js +97 -0
  138. package/lib/sections/heading/camera.d.ts +19 -0
  139. package/lib/sections/heading/camera.d.ts.map +1 -0
  140. package/lib/sections/heading/camera.js +199 -0
  141. package/lib/sections/heading/dateHelpers.d.ts +4 -0
  142. package/lib/sections/heading/dateHelpers.d.ts.map +1 -0
  143. package/lib/sections/heading/dateHelpers.js +48 -0
  144. package/lib/sections/heading/imageHelpers.d.ts +4 -0
  145. package/lib/sections/heading/imageHelpers.d.ts.map +1 -0
  146. package/lib/sections/heading/imageHelpers.js +81 -0
  147. package/lib/sections/heading/mutations.d.ts +4 -0
  148. package/lib/sections/heading/mutations.d.ts.map +1 -0
  149. package/lib/sections/heading/mutations.js +190 -0
  150. package/lib/sections/heading/selectors.d.ts +5 -0
  151. package/lib/sections/heading/selectors.d.ts.map +1 -0
  152. package/lib/sections/heading/selectors.js +157 -0
  153. package/lib/sections/heading/types.d.ts +36 -0
  154. package/lib/sections/heading/types.d.ts.map +1 -0
  155. package/lib/sections/heading/types.js +5 -0
  156. package/lib/sections/languages/LanguageEditDialog.d.ts +7 -0
  157. package/lib/sections/languages/LanguageEditDialog.d.ts.map +1 -0
  158. package/lib/sections/languages/LanguageEditDialog.js +457 -0
  159. package/lib/sections/languages/LanguageSection.d.ts +5 -0
  160. package/lib/sections/languages/LanguageSection.d.ts.map +1 -0
  161. package/lib/sections/languages/LanguageSection.js +137 -0
  162. package/lib/sections/languages/mutations.d.ts +6 -0
  163. package/lib/sections/languages/mutations.d.ts.map +1 -0
  164. package/lib/sections/languages/mutations.js +296 -0
  165. package/lib/sections/languages/selectors.d.ts +5 -0
  166. package/lib/sections/languages/selectors.d.ts.map +1 -0
  167. package/lib/sections/languages/selectors.js +146 -0
  168. package/lib/sections/languages/types.d.ts +15 -0
  169. package/lib/sections/languages/types.d.ts.map +1 -0
  170. package/lib/sections/languages/types.js +5 -0
  171. package/lib/sections/projects/ProjectEditDialog.d.ts +7 -0
  172. package/lib/sections/projects/ProjectEditDialog.d.ts.map +1 -0
  173. package/lib/sections/projects/ProjectEditDialog.js +182 -0
  174. package/lib/sections/projects/ProjectSection.d.ts +6 -0
  175. package/lib/sections/projects/ProjectSection.d.ts.map +1 -0
  176. package/lib/sections/projects/ProjectSection.js +220 -0
  177. package/lib/sections/projects/mutations.d.ts +4 -0
  178. package/lib/sections/projects/mutations.d.ts.map +1 -0
  179. package/lib/sections/projects/mutations.js +188 -0
  180. package/lib/sections/projects/selectors.d.ts +5 -0
  181. package/lib/sections/projects/selectors.d.ts.map +1 -0
  182. package/lib/sections/projects/selectors.js +163 -0
  183. package/lib/sections/projects/types.d.ts +28 -0
  184. package/lib/sections/projects/types.d.ts.map +1 -0
  185. package/lib/sections/projects/types.js +8 -0
  186. package/lib/sections/resume/ResumeEditDialog.d.ts +7 -0
  187. package/lib/sections/resume/ResumeEditDialog.d.ts.map +1 -0
  188. package/lib/sections/resume/ResumeEditDialog.js +629 -0
  189. package/lib/sections/resume/ResumeSection.d.ts +7 -0
  190. package/lib/sections/resume/ResumeSection.d.ts.map +1 -0
  191. package/lib/sections/resume/ResumeSection.js +160 -0
  192. package/lib/sections/resume/mutations.d.ts +6 -0
  193. package/lib/sections/resume/mutations.d.ts.map +1 -0
  194. package/lib/sections/resume/mutations.js +172 -0
  195. package/lib/sections/resume/selectors.d.ts +4 -0
  196. package/lib/sections/resume/selectors.d.ts.map +1 -0
  197. package/lib/sections/resume/selectors.js +142 -0
  198. package/lib/sections/resume/types.d.ts +33 -0
  199. package/lib/sections/resume/types.d.ts.map +1 -0
  200. package/lib/sections/resume/types.js +8 -0
  201. package/lib/sections/shared/collapsibleSection.d.ts +2 -0
  202. package/lib/sections/shared/collapsibleSection.d.ts.map +1 -0
  203. package/lib/sections/shared/collapsibleSection.js +24 -0
  204. package/lib/sections/shared/contactTypeUtils.d.ts +7 -0
  205. package/lib/sections/shared/contactTypeUtils.d.ts.map +1 -0
  206. package/lib/sections/shared/contactTypeUtils.js +48 -0
  207. package/lib/sections/shared/idNodeFactory.d.ts +3 -0
  208. package/lib/sections/shared/idNodeFactory.d.ts.map +1 -0
  209. package/lib/sections/shared/idNodeFactory.js +14 -0
  210. package/lib/sections/shared/phoneCountries.d.ts +20 -0
  211. package/lib/sections/shared/phoneCountries.d.ts.map +1 -0
  212. package/lib/sections/shared/phoneCountries.js +1080 -0
  213. package/lib/sections/shared/rdfList.d.ts +3 -0
  214. package/lib/sections/shared/rdfList.d.ts.map +1 -0
  215. package/lib/sections/shared/rdfList.js +34 -0
  216. package/lib/sections/shared/rdfMutationHelpers.d.ts +12 -0
  217. package/lib/sections/shared/rdfMutationHelpers.d.ts.map +1 -0
  218. package/lib/sections/shared/rdfMutationHelpers.js +82 -0
  219. package/lib/sections/shared/rowState.d.ts +21 -0
  220. package/lib/sections/shared/rowState.d.ts.map +1 -0
  221. package/lib/sections/shared/rowState.js +52 -0
  222. package/lib/sections/shared/sanitizeUtils.d.ts +5 -0
  223. package/lib/sections/shared/sanitizeUtils.d.ts.map +1 -0
  224. package/lib/sections/shared/sanitizeUtils.js +22 -0
  225. package/lib/sections/shared/sectionCardHelpers.d.ts +11 -0
  226. package/lib/sections/shared/sectionCardHelpers.d.ts.map +1 -0
  227. package/lib/sections/shared/sectionCardHelpers.js +105 -0
  228. package/lib/sections/shared/types.d.ts +7 -0
  229. package/lib/sections/shared/types.d.ts.map +1 -0
  230. package/lib/sections/shared/types.js +5 -0
  231. package/lib/sections/skills/SkillsEditDialog.d.ts +7 -0
  232. package/lib/sections/skills/SkillsEditDialog.d.ts.map +1 -0
  233. package/lib/sections/skills/SkillsEditDialog.js +340 -0
  234. package/lib/sections/skills/SkillsSection.d.ts +5 -0
  235. package/lib/sections/skills/SkillsSection.d.ts.map +1 -0
  236. package/lib/sections/skills/SkillsSection.js +169 -0
  237. package/lib/sections/skills/mutations.d.ts +6 -0
  238. package/lib/sections/skills/mutations.d.ts.map +1 -0
  239. package/lib/sections/skills/mutations.js +110 -0
  240. package/lib/sections/skills/selectors.d.ts +6 -0
  241. package/lib/sections/skills/selectors.d.ts.map +1 -0
  242. package/lib/sections/skills/selectors.js +37 -0
  243. package/lib/sections/skills/types.d.ts +14 -0
  244. package/lib/sections/skills/types.d.ts.map +1 -0
  245. package/lib/sections/skills/types.js +5 -0
  246. package/lib/sections/social/SocialEditDialog.d.ts +7 -0
  247. package/lib/sections/social/SocialEditDialog.d.ts.map +1 -0
  248. package/lib/sections/social/SocialEditDialog.js +362 -0
  249. package/lib/sections/social/SocialSection.d.ts +8 -0
  250. package/lib/sections/social/SocialSection.d.ts.map +1 -0
  251. package/lib/sections/social/SocialSection.js +201 -0
  252. package/lib/sections/social/constants.d.ts +3 -0
  253. package/lib/sections/social/constants.d.ts.map +1 -0
  254. package/lib/sections/social/constants.js +16 -0
  255. package/lib/sections/social/helpers.d.ts +15 -0
  256. package/lib/sections/social/helpers.d.ts.map +1 -0
  257. package/lib/sections/social/helpers.js +316 -0
  258. package/lib/sections/social/mutations.d.ts +4 -0
  259. package/lib/sections/social/mutations.d.ts.map +1 -0
  260. package/lib/sections/social/mutations.js +298 -0
  261. package/lib/sections/social/selectors.d.ts +4 -0
  262. package/lib/sections/social/selectors.d.ts.map +1 -0
  263. package/lib/sections/social/selectors.js +43 -0
  264. package/lib/sections/social/types.d.ts +19 -0
  265. package/lib/sections/social/types.d.ts.map +1 -0
  266. package/lib/sections/social/types.js +5 -0
  267. package/lib/styles/BioSection.css +77 -0
  268. package/lib/styles/CVCard.css +107 -2
  269. package/lib/styles/ContactInfoEditDialog.css +153 -0
  270. package/lib/styles/EditDialogs.css +1028 -0
  271. package/lib/styles/EducationCard.css +103 -0
  272. package/lib/styles/HeadingSection.css +309 -0
  273. package/lib/styles/ProfileCard.css +10 -42
  274. package/lib/styles/ProfileView.css +53 -8
  275. package/lib/styles/ProjectsCard.css +206 -0
  276. package/lib/styles/QRCodeCard.css +29 -10
  277. package/lib/styles/SocialCard.css +41 -13
  278. package/lib/styles/dialog.css +209 -0
  279. package/lib/styles/utilities.css +638 -256
  280. package/lib/textUtils.d.ts +6 -0
  281. package/lib/textUtils.d.ts.map +1 -0
  282. package/lib/textUtils.js +44 -0
  283. package/lib/texts.d.ts +45 -4
  284. package/lib/texts.d.ts.map +1 -1
  285. package/lib/texts.js +46 -5
  286. package/lib/types.d.ts +2 -0
  287. package/lib/types.d.ts.map +1 -0
  288. package/lib/types.js +5 -0
  289. package/lib/ui/dialog.d.ts +29 -0
  290. package/lib/ui/dialog.d.ts.map +1 -0
  291. package/lib/ui/dialog.js +269 -0
  292. package/lib/ui/errors.d.ts +2 -0
  293. package/lib/ui/errors.d.ts.map +1 -0
  294. package/lib/ui/errors.js +10 -0
  295. package/package.json +8 -5
  296. package/lib/CVCard.d.ts +0 -4
  297. package/lib/CVCard.d.ts.map +0 -1
  298. package/lib/CVCard.js +0 -114
  299. package/lib/CVPresenter.d.ts +0 -25
  300. package/lib/CVPresenter.d.ts.map +0 -1
  301. package/lib/CVPresenter.js +0 -119
  302. package/lib/FriendList.d.ts +0 -6
  303. package/lib/FriendList.d.ts.map +0 -1
  304. package/lib/FriendList.js +0 -27
  305. package/lib/ProfileCard.d.ts +0 -6
  306. package/lib/ProfileCard.d.ts.map +0 -1
  307. package/lib/ProfileCard.js +0 -62
  308. package/lib/SocialCard.d.ts +0 -5
  309. package/lib/SocialCard.d.ts.map +0 -1
  310. package/lib/SocialCard.js +0 -51
  311. package/lib/SocialPresenter.d.ts +0 -11
  312. package/lib/SocialPresenter.d.ts.map +0 -1
  313. package/lib/SocialPresenter.js +0 -117
  314. package/lib/StuffCard.d.ts +0 -10
  315. package/lib/StuffCard.d.ts.map +0 -1
  316. package/lib/StuffCard.js +0 -52
  317. package/lib/StuffPresenter.d.ts +0 -14
  318. package/lib/StuffPresenter.d.ts.map +0 -1
  319. package/lib/StuffPresenter.js +0 -53
  320. package/lib/presenter.d.ts +0 -14
  321. package/lib/presenter.d.ts.map +0 -1
  322. package/lib/presenter.js +0 -68
  323. package/lib/styles/FriendList.css +0 -12
  324. package/lib/styles/StuffCard.css +0 -23
  325. package/lib/styles/editProfile.css +0 -62
  326. package/lib/styles/profileRDFFormsEnforced.css +0 -431
@@ -1,3 +1,4 @@
1
+ /** Project-local: currently unused component. Keep temporarily; do not add new usage. */
1
2
  import { NamedNode, Store } from 'rdflib';
2
3
  export default function renderForm(div: HTMLElement, subject: NamedNode, // Represents the RDF that fills the form
3
4
  formSource: string, // The imported form Turtle source
@@ -1 +1 @@
1
- {"version":3,"file":"rdfFormsHelper.d.ts","sourceRoot":"","sources":["../src/rdfFormsHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAyB,MAAM,QAAQ,CAAA;AAKhE,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,SAAS,EAAE,yCAAyC;AAC7D,UAAU,EAAE,MAAM,EAAE,kCAAkC;AACtD,QAAQ,EAAE,MAAM,EAAI,sDAAsD;AAC1E,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,eAAe,EAAE,SAAS,GAAG,IAAI,EACjC,SAAS,CAAC,EAAE,MAAM,QAqFjB;AA0DH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,QAUrB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CA2B7D"}
1
+ {"version":3,"file":"rdfFormsHelper.d.ts","sourceRoot":"","sources":["../src/rdfFormsHelper.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAyB,MAAM,QAAQ,CAAA;AAKhE,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,SAAS,EAAE,yCAAyC;AAC7D,UAAU,EAAE,MAAM,EAAE,kCAAkC;AACtD,QAAQ,EAAE,MAAM,EAAI,sDAAsD;AAC1E,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,eAAe,EAAE,SAAS,GAAG,IAAI,EACjC,SAAS,CAAC,EAAE,MAAM,QAqFjB;AA0DH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,QAUrB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CA2B7D"}
@@ -8,6 +8,8 @@ exports.loadDocument = loadDocument;
8
8
  exports.skipLabelsFromTabbing = skipLabelsFromTabbing;
9
9
  var _rdflib = require("rdflib");
10
10
  var _solidUi = require("solid-ui");
11
+ /** Project-local: currently unused component. Keep temporarily; do not add new usage. */
12
+
11
13
  const baseUri = 'https://solidos.github.io/profile-pane/src/ontology/';
12
14
  function renderForm(div, subject,
13
15
  // Represents the RDF that fills the form
@@ -0,0 +1,6 @@
1
+ import type { BioDetails } from './types';
2
+ import '../../styles/EditDialogs.css';
3
+ import { LiveStore, NamedNode } from 'rdflib';
4
+ import { ViewerMode } from '../../types';
5
+ export declare function createBioEditDialog(event: Event, store: LiveStore, subject: NamedNode, bioData: BioDetails, viewerMode: ViewerMode, onSaved?: () => Promise<void> | void): Promise<void>;
6
+ //# sourceMappingURL=BioEditDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BioEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAU,MAAM,SAAS,CAAA;AACjD,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA2FxC,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAqCrC"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createBioEditDialog = createBioEditDialog;
7
+ var _dialog = require("../../ui/dialog");
8
+ var _litHtml = require("lit-html");
9
+ require("../../styles/EditDialogs.css");
10
+ var _mutations = require("./mutations");
11
+ var _rowState = require("../shared/rowState");
12
+ var _textUtils = require("../../textUtils");
13
+ var _texts = require("../../texts");
14
+ function rowHasContent(row) {
15
+ return (0, _textUtils.hasNonEmptyText)(row.description);
16
+ }
17
+ function toFormState(bioData) {
18
+ const row = {
19
+ description: (0, _textUtils.sanitizeTextValue)((0, _textUtils.toText)(bioData?.description || '')),
20
+ entryNode: (0, _textUtils.toText)(bioData?.entryNode || ''),
21
+ status: (0, _textUtils.toText)(bioData?.entryNode || '') ? 'existing' : 'new'
22
+ };
23
+ return {
24
+ bio: row
25
+ };
26
+ }
27
+ function renderBioSection(bioRow, onChange) {
28
+ const descriptionName = 'bio-description';
29
+ const descriptionCounterId = 'bio-description-counter';
30
+ const descriptionMaxLength = 2600;
31
+ const descriptionCount = (bioRow?.description || '').length;
32
+ const handleDescriptionInput = event => {
33
+ const target = event.target;
34
+ const nextValue = (0, _textUtils.sanitizeTextValue)(target.value.slice(0, descriptionMaxLength));
35
+ (0, _rowState.applyRowFieldChange)(bioRow, 'description', nextValue, rowHasContent);
36
+ onChange();
37
+ };
38
+ return (0, _litHtml.html)`
39
+ <section class="profile-edit-dialog__section" aria-label="Bio editor">
40
+
41
+ <label aria-label="Bio description" class="label profile-edit-dialog__bio-field-container">
42
+ <span class="profile-edit-dialog__field-description">
43
+ You can write about your years of experience, industry, or skills.
44
+ People also talk about their achievements or previous job experiences.
45
+ </span>
46
+ <textarea
47
+ class="profile-edit-dialog__textarea"
48
+ name=${descriptionName}
49
+ rows="5"
50
+ .value=${bioRow?.description || ''}
51
+ maxlength=${descriptionMaxLength}
52
+ aria-describedby=${descriptionCounterId}
53
+ data-contact-field="description"
54
+ data-entry-node=${bioRow?.entryNode || ''}
55
+ data-row-status=${bioRow?.status || 'n/a'}
56
+ placeholder="Write a short bio"
57
+ autocomplete="off"
58
+ @input=${handleDescriptionInput}
59
+ ></textarea>
60
+ <small id=${descriptionCounterId} aria-live="polite">${descriptionCount}/${descriptionMaxLength}</small>
61
+ </label>
62
+ </section>
63
+ `;
64
+ }
65
+ function renderBioEditTemplate(form, formState, viewerMode) {
66
+ const rerender = () => renderBioEditTemplate(form, formState, viewerMode);
67
+ (0, _litHtml.render)((0, _litHtml.html)`
68
+ ${renderBioSection(formState.bio, rerender)}
69
+ ${viewerMode !== 'owner' ? (0, _litHtml.html)`<p class="profile-edit-dialog__login-message">${_texts.ownerLoginRequiredDialogMessageText}</p>` : null}
70
+ `, form);
71
+ }
72
+ function createBioEditForm(bioData, viewerMode) {
73
+ const form = document.createElement('form');
74
+ form.classList.add('profile__edit-form');
75
+ const formState = toFormState(bioData);
76
+ renderBioEditTemplate(form, formState, viewerMode);
77
+ return {
78
+ form,
79
+ formState
80
+ };
81
+ }
82
+ async function createBioEditDialog(event, store, subject, bioData, viewerMode, onSaved) {
83
+ const dom = event.currentTarget?.ownerDocument || document;
84
+ const {
85
+ form,
86
+ formState
87
+ } = createBioEditForm(bioData, viewerMode);
88
+ const result = await (0, _dialog.openInputDialog)({
89
+ title: 'Edit Bio',
90
+ dom,
91
+ form,
92
+ headerAction: {
93
+ type: 'none'
94
+ },
95
+ submitLabel: _texts.dialogSubmitLabelText,
96
+ cancelLabel: _texts.dialogCancelLabelText,
97
+ validate: () => {
98
+ if (viewerMode !== 'owner') {
99
+ return _texts.ownerLoginRequiredDialogMessageText;
100
+ }
101
+ const bioOps = (0, _rowState.summarizeRowOps)([formState.bio], rowHasContent);
102
+ const hasChanges = bioOps.create.length > 0 || bioOps.update.length > 0 || bioOps.remove.length > 0;
103
+ if (!hasChanges) return 'No bio changes detected.';
104
+ return null;
105
+ },
106
+ onSave: async () => {
107
+ const bioOps = (0, _rowState.summarizeRowOps)([formState.bio], rowHasContent);
108
+ await (0, _mutations.processBioMutations)(store, subject, bioOps);
109
+ },
110
+ formatSaveError: error => {
111
+ const message = error instanceof Error ? error.message : String(error);
112
+ return `${_texts.saveBioUpdatesFailedPrefixText} ${message}`;
113
+ }
114
+ });
115
+ if (!result) return;
116
+ if (onSaved) {
117
+ await onSaved();
118
+ }
119
+ }
@@ -0,0 +1,7 @@
1
+ import { BioDetails } from './types';
2
+ import { ViewerMode } from '../../types';
3
+ import '../../styles/BioSection.css';
4
+ import { LiveStore, NamedNode } from 'rdflib';
5
+ export declare const BioCard: (bioData: BioDetails, viewerMode: ViewerMode) => import("lit-html").TemplateResult<1>;
6
+ export declare function renderBioSection(store: LiveStore, subject: NamedNode, bioData: BioDetails, viewerMode: ViewerMode, onSaved?: () => Promise<void> | void): import("lit-html").TemplateResult<1> | "";
7
+ //# sourceMappingURL=BioSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BioSection.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioSection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,6BAA6B,CAAA;AAEpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAqC7C,eAAO,MAAM,OAAO,GAClB,SAAS,UAAU,EACnB,YAAY,UAAU,yCAWvB,CAAA;AAwHD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAcrC"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BioCard = void 0;
7
+ exports.renderBioSection = renderBioSection;
8
+ var _litHtml = require("lit-html");
9
+ require("../../styles/BioSection.css");
10
+ var _texts = require("../../texts");
11
+ var _sectionCardHelpers = require("../shared/sectionCardHelpers");
12
+ var _BioEditDialog = require("./BioEditDialog");
13
+ var _profileIcons = require("../../icons-svg/profileIcons");
14
+ function renderBio(bioData) {
15
+ if (!bioData) return (0, _litHtml.html)``;
16
+ const bioDescriptionId = 'bio-description';
17
+ return (0, _litHtml.html)`
18
+ ${bioData.description ? (0, _litHtml.html)`
19
+ <div class="bioDescriptionWrap">
20
+ <p class="bioDescriptionText" id=${bioDescriptionId}>${bioData.description}</p>
21
+ <button
22
+ type="button"
23
+ class="bioDescriptionToggle"
24
+ aria-controls=${bioDescriptionId}
25
+ aria-expanded="false"
26
+ hidden
27
+ @click=${_sectionCardHelpers.toggleDescription}
28
+ >
29
+ ...more
30
+ </button>
31
+ </div>
32
+ ` : ''}
33
+ `;
34
+ }
35
+ function hasBioContent(bioData) {
36
+ return Boolean((bioData?.description || '').trim());
37
+ }
38
+ const BioCard = (bioData, viewerMode) => {
39
+ void viewerMode;
40
+ return (0, _litHtml.html)`
41
+ <article class="bioCard" aria-label="Bio" data-testid="bio-card">
42
+ <section class="bioSection">
43
+ ${renderBio(bioData)}
44
+ </section>
45
+ </article>
46
+ `;
47
+ };
48
+ exports.BioCard = BioCard;
49
+ function renderBioSectionContent(store, subject, bioData, viewerMode, onSaved) {
50
+ const bio = BioCard(bioData, viewerMode);
51
+ const bioDetails = bioData;
52
+ const isOwner = viewerMode === 'owner';
53
+ return (0, _litHtml.html)`
54
+ <header class="profile__section-header profile-section-collapsible__header">
55
+ <h2 id="bio-heading" tabindex="-1">${_texts.bioHeadingText}</h2>
56
+ ${isOwner ? (0, _litHtml.html)`
57
+ <button
58
+ type="button"
59
+ class="profile__action-button profile-action-text flex-center"
60
+ aria-label="Edit bio details"
61
+ @click=${event => {
62
+ return (0, _BioEditDialog.createBioEditDialog)(event, store, subject, bioDetails, viewerMode, onSaved);
63
+ }}
64
+ >
65
+ <span class="profile-section-collapsible__edit-label profile__action-icon">${_profileIcons.editIcon} Edit</span>
66
+ <span class="profile-section-collapsible__edit-icon profile__action-icon" aria-hidden="true">${_profileIcons.editIcon}</span>
67
+ </button>
68
+ ` : (0, _litHtml.html)``}
69
+ </header>
70
+ <div class="profile-section-collapsible__content">
71
+ ${bio}
72
+ </div>
73
+ `;
74
+ }
75
+ function renderBioSectionDefault(store, subject, bioData, viewerMode, onSaved) {
76
+ return (0, _litHtml.html)`
77
+ <section
78
+ aria-labelledby="bio-heading"
79
+ data-profile-section="bio"
80
+ class="profile__section border-lighter"
81
+ role="region"
82
+ tabindex="-1"
83
+ >
84
+ ${renderBioSectionContent(store, subject, bioData, viewerMode, onSaved)}
85
+ </section>
86
+ `;
87
+ }
88
+ function renderOwnerEmptyBioContent(store, subject, bioData, viewerMode, onSaved) {
89
+ const bioDetails = bioData;
90
+ return (0, _litHtml.html)`
91
+ <div class="profile__empty-state-content flex-column-center" role="group" aria-label="Empty bio section">
92
+ <h2 id="bio-heading" tabindex="-1">${_texts.bioHeadingText}</h2>
93
+ <p class="profile__empty-state-message">
94
+ You haven't added any professional experience yet. Adding work history can boost your Bio.
95
+ </p>
96
+ </div>
97
+ <button
98
+ type="button"
99
+ class="profile__action-button--empty"
100
+ aria-label="Add bio details"
101
+ @click=${event => {
102
+ return (0, _BioEditDialog.createBioEditDialog)(event, store, subject, bioDetails, viewerMode, onSaved);
103
+ }}
104
+ >
105
+ <span class="profile__action-icon" aria-hidden="true">${_profileIcons.plusDarkIcon} Add Bio</span>
106
+ </button>
107
+
108
+ `;
109
+ }
110
+ function renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved) {
111
+ return (0, _litHtml.html)`
112
+ <section
113
+ aria-labelledby="bio-heading"
114
+ data-profile-section="bio"
115
+ class="profile__section--empty border-lighter flex-column-center rounded-md gap-lg"
116
+ role="region"
117
+ tabindex="-1"
118
+ >
119
+ ${renderOwnerEmptyBioContent(store, subject, bioData, viewerMode, onSaved)}
120
+ </section>
121
+ `;
122
+ }
123
+ function renderBioSection(store, subject, bioData, viewerMode, onSaved) {
124
+ (0, _sectionCardHelpers.scheduleDescriptionOverflowCheck)();
125
+ const hasBio = hasBioContent(bioData);
126
+ const showOwnerEmptyBio = !hasBio && viewerMode === 'owner';
127
+ const showSection = true;
128
+ return showSection ? (0, _litHtml.html)`
129
+ ${showOwnerEmptyBio ? renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved) : renderBioSectionDefault(store, subject, bioData, viewerMode, onSaved)}
130
+ ` : '';
131
+ }
@@ -0,0 +1,4 @@
1
+ import { LiveStore, NamedNode } from 'rdflib';
2
+ import { BioMutationPlan } from './types';
3
+ export declare function processBioMutations(store: LiveStore, subject: NamedNode, mutationPlan: BioMutationPlan): Promise<void>;
4
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAW,MAAM,QAAQ,CAAA;AAEtD,OAAO,EAAE,eAAe,EAAU,MAAM,SAAS,CAAA;AAsCjD,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,iBAO5G"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.processBioMutations = processBioMutations;
7
+ var _rdflib = require("rdflib");
8
+ var _solidUi = require("solid-ui");
9
+ var _rdfMutationHelpers = require("../shared/rdfMutationHelpers");
10
+ var _texts = require("../../texts");
11
+ // Need to find out if this is really how we should store the data
12
+ async function mutateBioEntry(store, subject, bioOps) {
13
+ const doc = subject.doc();
14
+ const deletions = [];
15
+ const insertions = [];
16
+ const replaceLiteralField = (predicate, value) => {
17
+ const normalized = (value || '').trim();
18
+ const nextObject = normalized ? (0, _rdflib.literal)(normalized) : null;
19
+ (0, _rdfMutationHelpers.replacePredicateStatements)(store, subject, predicate, doc, deletions, insertions, nextObject);
20
+ };
21
+ const applyBasics = (bio, clearAll = false) => {
22
+ const data = clearAll ? {
23
+ description: ''
24
+ } : bio;
25
+ replaceLiteralField(_solidUi.ns.vcard('note'), data.description);
26
+ };
27
+ const removeBio = bioOps.remove[0];
28
+ const updateBio = bioOps.update[0];
29
+ const createBio = bioOps.create[0];
30
+ const selectedBio = updateBio || createBio || removeBio;
31
+ if (selectedBio) {
32
+ applyBasics(selectedBio, Boolean(removeBio && !updateBio && !createBio));
33
+ }
34
+ await (0, _rdfMutationHelpers.applyUpdaterPatch)(store, deletions, insertions);
35
+ }
36
+ async function processBioMutations(store, subject, mutationPlan) {
37
+ try {
38
+ await mutateBioEntry(store, subject, mutationPlan);
39
+ } catch (error) {
40
+ const message = error instanceof Error ? error.message : String(error);
41
+ throw new Error(`${_texts.saveBioUpdatesFailedPrefixText} ${message}`);
42
+ }
43
+ }
@@ -0,0 +1,4 @@
1
+ import type { BioDetails } from './types';
2
+ import { LiveStore, NamedNode } from 'rdflib';
3
+ export declare const presentBio: (subject: NamedNode, store: LiveStore) => BioDetails;
4
+ //# sourceMappingURL=selectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/selectors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAG7C,eAAO,MAAM,UAAU,GACrB,SAAS,SAAS,EAClB,OAAO,SAAS,KACf,UAQF,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.presentBio = void 0;
7
+ var _solidUi = require("solid-ui");
8
+ const presentBio = (subject, store) => {
9
+ const description = store.anyJS(subject, _solidUi.ns.vcard('note'));
10
+ return {
11
+ description,
12
+ entryNode: subject
13
+ };
14
+ };
15
+ exports.presentBio = presentBio;
@@ -0,0 +1,15 @@
1
+ import { Node } from 'rdflib';
2
+ import { MutationOps } from '../shared/types';
3
+ import { RowStatus } from '../shared/types';
4
+ export interface BioFields {
5
+ description?: string;
6
+ }
7
+ export interface BioDetails extends BioFields {
8
+ entryNode: Node;
9
+ }
10
+ export interface BioRow extends BioFields {
11
+ entryNode: string;
12
+ status: RowStatus;
13
+ }
14
+ export type BioMutationPlan = MutationOps<BioRow>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,MAAO,SAAQ,SAAS;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,SAAS,CAAA;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,7 @@
1
+ import { ContactInfo } from './types';
2
+ import '../../styles/EditDialogs.css';
3
+ import '../../styles/ContactInfoEditDialog.css';
4
+ import { LiveStore, NamedNode } from 'rdflib';
5
+ import { ViewerMode } from '../../types';
6
+ export declare function createContactInfoEditDialog(event: Event, store: LiveStore, subject: NamedNode, contactInfo: ContactInfo, viewerMode: ViewerMode, onSaved?: () => Promise<void> | void): Promise<void>;
7
+ //# sourceMappingURL=ContactInfoEditDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContactInfoEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,WAAW,EAAwC,MAAM,SAAS,CAAA;AAC9F,OAAO,8BAA8B,CAAA;AACrC,OAAO,wCAAwC,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA0pBxC,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBAqCrC"}