solid-panes 4.4.2-2 → 4.4.2-4

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 (410) hide show
  1. package/README.md +10 -10
  2. package/dist/RDFXMLPane.d.ts +2 -3
  3. package/dist/RDFXMLPane2.cjs.js +3 -0
  4. package/dist/RDFXMLPane2.cjs.js.map +1 -0
  5. package/dist/RDFXMLPane2.esm.js +55 -0
  6. package/dist/RDFXMLPane2.esm.js.map +1 -0
  7. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
  8. package/dist/_virtual/~icons/lucide/help-circle.cjs.js +2 -0
  9. package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +1 -0
  10. package/dist/_virtual/~icons/lucide/help-circle.esm.js +11 -0
  11. package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +1 -0
  12. package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
  13. package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
  14. package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
  15. package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
  16. package/dist/audio/audioPane.cjs.js +2 -0
  17. package/dist/audio/audioPane.cjs.js.map +1 -0
  18. package/dist/audio/audioPane.esm.js +96 -0
  19. package/dist/audio/audioPane.esm.js.map +1 -0
  20. package/dist/classInstancePane.cjs.js +2 -0
  21. package/dist/classInstancePane.cjs.js.map +1 -0
  22. package/dist/classInstancePane.esm.js +50 -0
  23. package/dist/classInstancePane.esm.js.map +1 -0
  24. package/dist/components/header/Header.cjs.js +19 -0
  25. package/dist/components/header/Header.cjs.js.map +1 -0
  26. package/dist/components/header/Header.d.ts +8 -0
  27. package/dist/components/header/Header.d.ts.map +1 -0
  28. package/dist/components/header/Header.esm.js +228 -0
  29. package/dist/components/header/Header.esm.js.map +1 -0
  30. package/dist/components/header/Header.styles.cjs.js +2 -0
  31. package/dist/components/header/Header.styles.cjs.js.map +1 -0
  32. package/dist/components/header/Header.styles.esm.js +7 -0
  33. package/dist/components/header/Header.styles.esm.js.map +1 -0
  34. package/dist/components/header/index.cjs.js +1 -0
  35. package/dist/components/header/index.d.ts +4 -0
  36. package/dist/components/header/index.d.ts.map +1 -0
  37. package/dist/components/header/index.esm.js +1 -0
  38. package/dist/dashboard/basicPreferences.cjs.js +2 -0
  39. package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
  40. package/dist/dashboard/basicPreferences.d.ts +1 -1
  41. package/dist/dashboard/basicPreferences.esm.js +70 -0
  42. package/dist/dashboard/basicPreferences.esm.js.map +1 -0
  43. package/dist/dashboard/dashboardPane.cjs.js +2 -0
  44. package/dist/dashboard/dashboardPane.cjs.js.map +1 -0
  45. package/dist/dashboard/dashboardPane.d.ts +1 -1
  46. package/dist/dashboard/dashboardPane.esm.js +7 -0
  47. package/dist/dashboard/dashboardPane.esm.js.map +1 -0
  48. package/dist/dashboard/homepage.cjs.js +2 -0
  49. package/dist/dashboard/homepage.cjs.js.map +1 -0
  50. package/dist/dashboard/homepage.d.ts +1 -1
  51. package/dist/dashboard/homepage.esm.js +26 -0
  52. package/dist/dashboard/homepage.esm.js.map +1 -0
  53. package/dist/dashboard/ontologyData.cjs.js +37 -0
  54. package/dist/dashboard/ontologyData.cjs.js.map +1 -0
  55. package/dist/dashboard/ontologyData.esm.js +6 -0
  56. package/dist/dashboard/ontologyData.esm.js.map +1 -0
  57. package/dist/dashboard/preferencesFormText.cjs.js +20 -0
  58. package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
  59. package/dist/dashboard/preferencesFormText.esm.js +6 -0
  60. package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
  61. package/dist/dataContentPane.d.ts +2 -3
  62. package/dist/dataContentPane2.cjs.js +2 -0
  63. package/dist/dataContentPane2.cjs.js.map +1 -0
  64. package/dist/dataContentPane2.esm.js +109 -0
  65. package/dist/dataContentPane2.esm.js.map +1 -0
  66. package/dist/defaultPane.d.ts +2 -3
  67. package/dist/defaultPane2.cjs.js +2 -0
  68. package/dist/defaultPane2.cjs.js.map +1 -0
  69. package/dist/defaultPane2.esm.js +41 -0
  70. package/dist/defaultPane2.esm.js.map +1 -0
  71. package/dist/dev.d.ts +10 -0
  72. package/dist/dev.d.ts.map +1 -0
  73. package/dist/dokieli/dokieliPane.cjs.js +2 -0
  74. package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
  75. package/dist/dokieli/dokieliPane.esm.js +39 -0
  76. package/dist/dokieli/dokieliPane.esm.js.map +1 -0
  77. package/dist/dokieli/{new.js → new.cjs.js} +4 -10
  78. package/dist/dokieli/new.cjs.js.map +1 -0
  79. package/dist/dokieli/new.esm.js +6 -0
  80. package/dist/dokieli/new.esm.js.map +1 -0
  81. package/dist/form/pane.cjs.js +4 -0
  82. package/dist/form/pane.cjs.js.map +1 -0
  83. package/dist/form/pane.d.ts +1 -2
  84. package/dist/form/pane.esm.js +121 -0
  85. package/dist/form/pane.esm.js.map +1 -0
  86. package/dist/home/homePane.cjs.js +2 -0
  87. package/dist/home/homePane.cjs.js.map +1 -0
  88. package/dist/home/homePane.d.ts +1 -1
  89. package/dist/home/homePane.esm.js +35 -0
  90. package/dist/home/homePane.esm.js.map +1 -0
  91. package/dist/humanReadablePane.d.ts +2 -3
  92. package/dist/humanReadablePane2.cjs.js +2 -0
  93. package/dist/humanReadablePane2.cjs.js.map +1 -0
  94. package/dist/humanReadablePane2.esm.js +123 -0
  95. package/dist/humanReadablePane2.esm.js.map +1 -0
  96. package/dist/icons/dashboard.cjs.js +2 -0
  97. package/dist/icons/dashboard.cjs.js.map +1 -0
  98. package/dist/icons/dashboard.esm.js +6 -0
  99. package/dist/icons/dashboard.esm.js.map +1 -0
  100. package/dist/icons/folder.cjs.js +2 -0
  101. package/dist/icons/folder.cjs.js.map +1 -0
  102. package/dist/icons/folder.esm.js +6 -0
  103. package/dist/icons/folder.esm.js.map +1 -0
  104. package/dist/icons/friends.cjs.js +2 -0
  105. package/dist/icons/friends.cjs.js.map +1 -0
  106. package/dist/icons/friends.esm.js +6 -0
  107. package/dist/icons/friends.esm.js.map +1 -0
  108. package/dist/icons/iconHelper.cjs.js +2 -0
  109. package/dist/icons/iconHelper.cjs.js.map +1 -0
  110. package/dist/icons/iconHelper.esm.js +17 -0
  111. package/dist/icons/iconHelper.esm.js.map +1 -0
  112. package/dist/icons/{menu.svg → menu.cjs.js} +3 -2
  113. package/dist/icons/menu.cjs.js.map +1 -0
  114. package/dist/icons/menu.esm.js +6 -0
  115. package/dist/icons/menu.esm.js.map +1 -0
  116. package/dist/icons/person.cjs.js +2 -0
  117. package/dist/icons/person.cjs.js.map +1 -0
  118. package/dist/icons/person.esm.js +6 -0
  119. package/dist/icons/person.esm.js.map +1 -0
  120. package/dist/imagePane.d.ts +2 -3
  121. package/dist/imagePane2.cjs.js +2 -0
  122. package/dist/imagePane2.cjs.js.map +1 -0
  123. package/dist/imagePane2.esm.js +32 -0
  124. package/dist/imagePane2.esm.js.map +1 -0
  125. package/dist/index.cjs.js +2 -0
  126. package/dist/index.cjs.js.map +1 -0
  127. package/dist/index.d.ts +4 -4
  128. package/dist/index.esm.js +26 -0
  129. package/dist/index.esm.js.map +1 -0
  130. package/dist/internal/internalPane.d.ts +1 -2
  131. package/dist/internal/internalPane2.cjs.js +2 -0
  132. package/dist/internal/internalPane2.cjs.js.map +1 -0
  133. package/dist/internal/internalPane2.esm.js +104 -0
  134. package/dist/internal/internalPane2.esm.js.map +1 -0
  135. package/dist/mainPage/footer.cjs.js +2 -0
  136. package/dist/mainPage/footer.cjs.js.map +1 -0
  137. package/dist/mainPage/footer.d.ts +1 -3
  138. package/dist/mainPage/footer.esm.js +18 -0
  139. package/dist/mainPage/footer.esm.js.map +1 -0
  140. package/dist/mainPage/header.cjs.js +2 -0
  141. package/dist/mainPage/header.cjs.js.map +1 -0
  142. package/dist/mainPage/header.d.ts +1 -15
  143. package/dist/mainPage/header.d.ts.map +1 -1
  144. package/dist/mainPage/header.esm.js +25 -0
  145. package/dist/mainPage/header.esm.js.map +1 -0
  146. package/dist/mainPage/index.cjs.js +2 -0
  147. package/dist/mainPage/index.cjs.js.map +1 -0
  148. package/dist/mainPage/index.d.ts +3 -7
  149. package/dist/mainPage/index.d.ts.map +1 -1
  150. package/dist/mainPage/index.esm.js +38 -0
  151. package/dist/mainPage/index.esm.js.map +1 -0
  152. package/dist/mainPage/menu.d.ts +1 -2
  153. package/dist/mainPage/menu2.cjs.js +2 -0
  154. package/dist/mainPage/menu2.cjs.js.map +1 -0
  155. package/dist/mainPage/menu2.esm.js +184 -0
  156. package/dist/mainPage/menu2.esm.js.map +1 -0
  157. package/dist/n3Pane.d.ts +2 -3
  158. package/dist/n3Pane2.cjs.js +3 -0
  159. package/dist/n3Pane2.cjs.js.map +1 -0
  160. package/dist/n3Pane2.esm.js +52 -0
  161. package/dist/n3Pane2.esm.js.map +1 -0
  162. package/dist/outline/context.cjs.js +2 -0
  163. package/dist/outline/context.cjs.js.map +1 -0
  164. package/dist/outline/context.d.ts +3 -3
  165. package/dist/outline/context.esm.js +18 -0
  166. package/dist/outline/context.esm.js.map +1 -0
  167. package/dist/outline/manager2.cjs.js +3 -0
  168. package/dist/outline/manager2.cjs.js.map +1 -0
  169. package/dist/outline/manager2.esm.js +875 -0
  170. package/dist/outline/manager2.esm.js.map +1 -0
  171. package/dist/outline/outlineIcons.cjs.js +2 -0
  172. package/dist/outline/outlineIcons.cjs.js.map +1 -0
  173. package/dist/outline/outlineIcons.esm.js +10 -0
  174. package/dist/outline/outlineIcons.esm.js.map +1 -0
  175. package/dist/outline/propertyViews.cjs.js +2 -0
  176. package/dist/outline/propertyViews.cjs.js.map +1 -0
  177. package/dist/outline/propertyViews.esm.js +19 -0
  178. package/dist/outline/propertyViews.esm.js.map +1 -0
  179. package/dist/outline/queryByExample.cjs.js +2 -0
  180. package/dist/outline/queryByExample.cjs.js.map +1 -0
  181. package/dist/outline/queryByExample.esm.js +25 -0
  182. package/dist/outline/queryByExample.esm.js.map +1 -0
  183. package/dist/outline/userInput.cjs.js +61 -0
  184. package/dist/outline/userInput.cjs.js.map +1 -0
  185. package/dist/outline/userInput.esm.js +784 -0
  186. package/dist/outline/userInput.esm.js.map +1 -0
  187. package/dist/outline/viewAsImage.cjs.js +2 -0
  188. package/dist/outline/viewAsImage.cjs.js.map +1 -0
  189. package/dist/outline/viewAsImage.esm.js +10 -0
  190. package/dist/outline/viewAsImage.esm.js.map +1 -0
  191. package/dist/outline/viewAsMbox.cjs.js +2 -0
  192. package/dist/outline/viewAsMbox.cjs.js.map +1 -0
  193. package/dist/outline/viewAsMbox.esm.js +9 -0
  194. package/dist/outline/viewAsMbox.esm.js.map +1 -0
  195. package/dist/pad/padPane.d.ts +1 -2
  196. package/dist/pad/padPane2.cjs.js +2 -0
  197. package/dist/pad/padPane2.cjs.js.map +1 -0
  198. package/dist/pad/padPane2.esm.js +172 -0
  199. package/dist/pad/padPane2.esm.js.map +1 -0
  200. package/dist/playlist/playlistPane.cjs.js +2 -0
  201. package/dist/playlist/playlistPane.cjs.js.map +1 -0
  202. package/dist/playlist/playlistPane.esm.js +49 -0
  203. package/dist/playlist/playlistPane.esm.js.map +1 -0
  204. package/dist/profileUtils/ownerProfile.cjs.js +2 -0
  205. package/dist/profileUtils/ownerProfile.cjs.js.map +1 -0
  206. package/dist/profileUtils/ownerProfile.d.ts +1 -1
  207. package/dist/profileUtils/ownerProfile.esm.js +50 -0
  208. package/dist/profileUtils/ownerProfile.esm.js.map +1 -0
  209. package/dist/registerPanes.cjs.js +2 -0
  210. package/dist/registerPanes.cjs.js.map +1 -0
  211. package/dist/registerPanes.esm.js +46 -0
  212. package/dist/registerPanes.esm.js.map +1 -0
  213. package/dist/schedule/formsForSchedule.cjs.js +117 -0
  214. package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
  215. package/dist/schedule/formsForSchedule.esm.js +6 -0
  216. package/dist/schedule/formsForSchedule.esm.js.map +1 -0
  217. package/dist/schedule/schedulePane.d.ts +2 -4
  218. package/dist/schedule/schedulePane2.cjs.js +8 -0
  219. package/dist/schedule/schedulePane2.cjs.js.map +1 -0
  220. package/dist/schedule/schedulePane2.esm.js +384 -0
  221. package/dist/schedule/schedulePane2.esm.js.map +1 -0
  222. package/dist/sharing/sharingPane.cjs.js +2 -0
  223. package/dist/sharing/sharingPane.cjs.js.map +1 -0
  224. package/dist/sharing/sharingPane.esm.js +22 -0
  225. package/dist/sharing/sharingPane.esm.js.map +1 -0
  226. package/dist/slideshow/slideshowPane.cjs.js +2 -0
  227. package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
  228. package/dist/slideshow/slideshowPane.esm.js +46 -0
  229. package/dist/slideshow/slideshowPane.esm.js.map +1 -0
  230. package/dist/social/editProfileDetails.cjs.js +2 -0
  231. package/dist/social/editProfileDetails.cjs.js.map +1 -0
  232. package/dist/social/editProfileDetails.d.ts +1 -2
  233. package/dist/social/editProfileDetails.esm.js +12 -0
  234. package/dist/social/editProfileDetails.esm.js.map +1 -0
  235. package/dist/social/icons.cjs.js +82 -0
  236. package/dist/social/icons.cjs.js.map +1 -0
  237. package/dist/social/{icons.js → icons.esm.js} +12 -18
  238. package/dist/social/icons.esm.js.map +1 -0
  239. package/dist/social/socialPane.d.ts +2 -3
  240. package/dist/social/socialPane2.cjs.js +6 -0
  241. package/dist/social/socialPane2.cjs.js.map +1 -0
  242. package/dist/social/socialPane2.esm.js +326 -0
  243. package/dist/social/socialPane2.esm.js.map +1 -0
  244. package/dist/social/socialSections.cjs.js +2 -0
  245. package/dist/social/socialSections.cjs.js.map +1 -0
  246. package/dist/social/socialSections.d.ts +2 -2
  247. package/dist/social/socialSections.esm.js +221 -0
  248. package/dist/social/socialSections.esm.js.map +1 -0
  249. package/dist/social/spinner.cjs.js +1 -0
  250. package/dist/social/spinner.esm.js +1 -0
  251. package/dist/social/triage.cjs.js +2 -0
  252. package/dist/social/triage.cjs.js.map +1 -0
  253. package/dist/social/triage.d.ts +2 -2
  254. package/dist/social/triage.esm.js +44 -0
  255. package/dist/social/triage.esm.js.map +1 -0
  256. package/dist/tabbed/tabbedPane.cjs.js +2 -0
  257. package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
  258. package/dist/tabbed/tabbedPane.d.ts +1 -1
  259. package/dist/tabbed/tabbedPane.esm.js +38 -0
  260. package/dist/tabbed/tabbedPane.esm.js.map +1 -0
  261. package/dist/tableViewPane.cjs.js +2 -0
  262. package/dist/tableViewPane.cjs.js.map +1 -0
  263. package/dist/tableViewPane.esm.js +20 -0
  264. package/dist/tableViewPane.esm.js.map +1 -0
  265. package/dist/transaction/pane.cjs.js +8 -0
  266. package/dist/transaction/pane.cjs.js.map +1 -0
  267. package/dist/transaction/pane.esm.js +212 -0
  268. package/dist/transaction/pane.esm.js.map +1 -0
  269. package/dist/transaction/period.cjs.js +4 -0
  270. package/dist/transaction/period.cjs.js.map +1 -0
  271. package/dist/transaction/period.esm.js +126 -0
  272. package/dist/transaction/period.esm.js.map +1 -0
  273. package/dist/trip/tripPane.cjs.js +2 -0
  274. package/dist/trip/tripPane.cjs.js.map +1 -0
  275. package/dist/trip/tripPane.esm.js +85 -0
  276. package/dist/trip/tripPane.esm.js.map +1 -0
  277. package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
  278. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
  279. package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
  280. package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
  281. package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
  282. package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
  283. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
  284. package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
  285. package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
  286. package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
  287. package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
  288. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
  289. package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
  290. package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
  291. package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
  292. package/dist/ui/pane.cjs.js +4 -0
  293. package/dist/ui/pane.cjs.js.map +1 -0
  294. package/dist/ui/pane.esm.js +56 -0
  295. package/dist/ui/pane.esm.js.map +1 -0
  296. package/dist/versionInfo.cjs.js +2 -0
  297. package/dist/versionInfo.cjs.js.map +1 -0
  298. package/dist/versionInfo.esm.js +40 -0
  299. package/dist/versionInfo.esm.js.map +1 -0
  300. package/dist/video/videoPane.cjs.js +2 -0
  301. package/dist/video/videoPane.cjs.js.map +1 -0
  302. package/dist/video/videoPane.esm.js +25 -0
  303. package/dist/video/videoPane.esm.js.map +1 -0
  304. package/package.json +35 -62
  305. package/dist/0314353e28ce6e5539af.svg +0 -9
  306. package/dist/04567ff683933c35c465.png +0 -0
  307. package/dist/10163fd9b5a0e00d63a0.png +0 -0
  308. package/dist/1234dcb2eec2e45f252b.png +0 -0
  309. package/dist/20899934157df4db56cb.png +0 -0
  310. package/dist/33760bf79f097f449da5.png +0 -0
  311. package/dist/4cceba29ab33b1ddd9bb.svg +0 -6
  312. package/dist/578d2b6ed32e7624164e.png +0 -0
  313. package/dist/5f62a5b2b7e99b9640c7.png +0 -0
  314. package/dist/6525766ecd288ec60129.png +0 -0
  315. package/dist/7800be6f6c4b5b0f4f20.png +0 -0
  316. package/dist/7b7538c6f6b317968009.svg +0 -9
  317. package/dist/92d03142abe6efc0b42d.svg +0 -6
  318. package/dist/976473cf5fe24d657d4b.png +0 -0
  319. package/dist/RDFXMLPane.css +0 -70
  320. package/dist/RDFXMLPane.js +0 -100
  321. package/dist/argument/argumentPane.js +0 -60
  322. package/dist/attach/attachPane.js +0 -393
  323. package/dist/audio/audioPane.js +0 -181
  324. package/dist/bda84f59e7216675a208.png +0 -0
  325. package/dist/cd68e8f3990ba8b2139e.png +0 -0
  326. package/dist/classInstancePane.js +0 -91
  327. package/dist/dashboard/basicPreferences.js +0 -147
  328. package/dist/dashboard/dashboardPane.js +0 -73
  329. package/dist/dashboard/homepage.js +0 -42
  330. package/dist/dataContentPane.css +0 -271
  331. package/dist/dataContentPane.js +0 -226
  332. package/dist/defaultPane.css +0 -97
  333. package/dist/defaultPane.js +0 -81
  334. package/dist/dokieli/dokieliPane.js +0 -74
  335. package/dist/e7074a7e2cb69e51cfd3.png +0 -0
  336. package/dist/f3772696fb7ee53c23d8.png +0 -0
  337. package/dist/form/formPane.css +0 -120
  338. package/dist/form/pane.js +0 -250
  339. package/dist/home/homePane.js +0 -74
  340. package/dist/humanReadablePane.css +0 -129
  341. package/dist/humanReadablePane.js +0 -243
  342. package/dist/icons/clock.svg +0 -7
  343. package/dist/icons/comment.svg +0 -6
  344. package/dist/icons/dashboard.svg +0 -9
  345. package/dist/icons/downArrow.svg +0 -6
  346. package/dist/icons/folder.svg +0 -6
  347. package/dist/icons/friends.svg +0 -9
  348. package/dist/icons/help.svg +0 -8
  349. package/dist/icons/iconHelper.js +0 -23
  350. package/dist/icons/person.svg +0 -6
  351. package/dist/icons/personInCircle.svg +0 -8
  352. package/dist/icons/sharing.svg +0 -10
  353. package/dist/icons/signOut.svg +0 -8
  354. package/dist/icons/signUp.svg +0 -9
  355. package/dist/icons/star.svg +0 -3
  356. package/dist/imagePane.css +0 -4
  357. package/dist/imagePane.js +0 -67
  358. package/dist/index.js +0 -123
  359. package/dist/internal/internalPane.css +0 -14
  360. package/dist/internal/internalPane.js +0 -183
  361. package/dist/mainPage/footer.js +0 -29
  362. package/dist/mainPage/header.js +0 -203
  363. package/dist/mainPage/index.js +0 -78
  364. package/dist/mainPage/menu.css +0 -243
  365. package/dist/mainPage/menu.js +0 -449
  366. package/dist/microblogPane/mbStyle.css +0 -267
  367. package/dist/microblogPane/microblogPane.js +0 -1031
  368. package/dist/n3Pane.css +0 -49
  369. package/dist/n3Pane.js +0 -88
  370. package/dist/outline/context.js +0 -21
  371. package/dist/outline/manager.css +0 -78
  372. package/dist/outline/manager.js +0 -2115
  373. package/dist/outline/outlineIcons.js +0 -126
  374. package/dist/outline/propertyViews.js +0 -43
  375. package/dist/outline/queryByExample.js +0 -285
  376. package/dist/outline/userInput.js +0 -1821
  377. package/dist/outline/viewAsImage.js +0 -14
  378. package/dist/outline/viewAsMbox.js +0 -21
  379. package/dist/pad/padPane.css +0 -40
  380. package/dist/pad/padPane.js +0 -421
  381. package/dist/playlist/playlistPane.js +0 -119
  382. package/dist/profileUtils/ownerProfile.js +0 -84
  383. package/dist/registerPanes.js +0 -145
  384. package/dist/schedule/schedulePane.css +0 -294
  385. package/dist/schedule/schedulePane.js +0 -1022
  386. package/dist/sharing/sharingPane.js +0 -48
  387. package/dist/slideshow/slideshowPane.js +0 -79
  388. package/dist/social/editProfileDetails.js +0 -362
  389. package/dist/social/socialPane.css +0 -1464
  390. package/dist/social/socialPane.js +0 -651
  391. package/dist/social/socialSections.js +0 -393
  392. package/dist/social/spinner.js +0 -13
  393. package/dist/social/triage.js +0 -79
  394. package/dist/solid-panes.js +0 -87502
  395. package/dist/solid-panes.js.map +0 -1
  396. package/dist/solid-panes.min.js +0 -3811
  397. package/dist/solid-panes.min.js.map +0 -1
  398. package/dist/styles/tabbedtab.css +0 -1066
  399. package/dist/styles/utilities.css +0 -5
  400. package/dist/tabbed/tabbedPane.js +0 -59
  401. package/dist/tableViewPane.js +0 -56
  402. package/dist/transaction/pane.js +0 -477
  403. package/dist/transaction/period.js +0 -323
  404. package/dist/trip/tripPane.js +0 -174
  405. package/dist/trustedApplications/trustedApplications.dom.js +0 -145
  406. package/dist/trustedApplications/trustedApplications.utils.js +0 -23
  407. package/dist/trustedApplications/trustedApplications.view.js +0 -55
  408. package/dist/ui/pane.js +0 -146
  409. package/dist/versionInfo.js +0 -41
  410. package/dist/video/videoPane.js +0 -42
@@ -1,393 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var UI = _interopRequireWildcard(require("solid-ui"));
8
- var $rdf = _interopRequireWildcard(require("rdflib"));
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- /* Attachment Pane
11
- **
12
- ** - Attach a document to a thing
13
- ** - View attachments
14
- ** - Look at all unattached Supporting Documents.
15
- ** - Drag a document onto the pane to attach it @@
16
- **
17
- **
18
- */
19
- var _default = exports.default = {
20
- icon: UI.icons.iconBase + 'noun_25830.svg',
21
- // noun_25830
22
-
23
- name: 'attachments',
24
- // Does the subject deserve an attachments pane?
25
- //
26
- // In this case we will render any thing which is in any subclass of
27
- // certain classes, or also the certain classes themselves, as a
28
- // triage tool for correlating many attachees with attachments.
29
- // We also offer the pane for anything of any class which just has an attachment already.
30
- //
31
- label: function (subject, context) {
32
- const kb = context.session.store;
33
- const t = kb.findTypeURIs(subject);
34
- const QU = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
35
- const WF = $rdf.Namespace('http://www.w3.org/2005/01/wf/flow#');
36
- if (t['http://www.w3.org/ns/pim/trip#Trip'] ||
37
- // If in any subclass
38
- subject.uri === 'http://www.w3.org/ns/pim/trip#Trip' || t['http://www.w3.org/2005/01/wf/flow#Task'] || t['http://www.w3.org/2000/10/swap/pim/qif#Transaction'] ||
39
- // subject.uri == 'http://www.w3.org/2000/10/swap/pim/qif#Transaction' ||
40
- QU('Transaction') in kb.findSuperClassesNT(subject) || kb.holds(subject, WF('attachment'))) {
41
- return 'attachments';
42
- }
43
- return null;
44
- },
45
- render: function (subject, context) {
46
- const dom = context.dom;
47
- const kb = context.session.store;
48
- const WF = $rdf.Namespace('http://www.w3.org/2005/01/wf/flow#');
49
- const QU = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
50
-
51
- // ////////////////////////////////////////////////////////////////////////////
52
-
53
- const complain = function complain(message) {
54
- const pre = dom.createElement('pre');
55
- pre.setAttribute('style', 'background-color: pink');
56
- div.appendChild(pre);
57
- pre.appendChild(dom.createTextNode(message));
58
- };
59
-
60
- // Where can we write about this thing?
61
- //
62
- // Returns term for document or null
63
- const findStore = function (kb, subject) {
64
- if (kb.updater.editable(subject.doc(), kb)) return subject.doc();
65
- const store = kb.any(subject.doc(), QU('annotationStore'));
66
- return store;
67
- };
68
- const div = dom.createElement('div');
69
- const esc = UI.utils.escapeForXML;
70
- div.setAttribute('class', 'attachPane');
71
- div.innerHTML = '<h1>' + esc(UI.utils.label(subject, true)) + ' attachments</h1>'; //
72
-
73
- const predicate = WF('attachment');
74
- const range = QU('SupportingDocument');
75
- let subjects, multi;
76
- const options = {};
77
- let currentMode = 0; // 0 -> Show all; 1 -> Attached; 2 -> unattached
78
- let currentSubject = null;
79
- let currentObject = null;
80
- const objectType = QU('SupportingDocument');
81
-
82
- // Find all members of the class which we know about
83
- // and sort them by an appropriate property. @@ Move to library
84
- //
85
-
86
- const getSortKeySimple = function (_c) {
87
- const uriMap = {
88
- 'http://www.w3.org/2005/01/wf/flow#Task': 'http://purl.org/dc/elements/1.1/created',
89
- 'http://www.w3.org/ns/pim/trip#Trip': 'http://www.w3.org/2002/12/cal/ical#dtstart',
90
- 'http://www.w3.org/2000/10/swap/pim/qif#Transaction': 'http://www.w3.org/2000/10/swap/pim/qif#date',
91
- 'http://www.w3.org/2000/10/swap/pim/qif#SupportingDocument': 'http://purl.org/dc/elements/1.1/date'
92
- };
93
- const uri = uriMap[subject.uri];
94
- return uri ? kb.sym(uri) : kb.any(subject, UI.ns.ui('sortBy'));
95
- };
96
- const getSortKey = function (c) {
97
- let k = getSortKeySimple(c.uri);
98
- if (k) return k;
99
- const sup = kb.findSuperClassesNT(c);
100
- for (const cl in sup) {
101
- // note unordered -- could be closest first
102
- k = getSortKeySimple(kb.fromNT(cl).uri);
103
- if (k) return k;
104
- }
105
- return undefined; // failure
106
- };
107
- const getMembersAndSort = function (subject) {
108
- const sortBy = getSortKey(subject);
109
- let u, x, key;
110
- const uriHash = kb.findMemberURIs(subject);
111
- const pairs = [];
112
- const subjects = [];
113
- for (u in uriHash) {
114
- // @@ TODO: Write away the need for exception on next line
115
-
116
- if (Object.prototype.hasOwnProperty.call(uriHash, u)) {
117
- x = kb.sym(u);
118
- if (sortBy) {
119
- key = kb.any(x, sortBy);
120
- if (!key) {
121
- // complain("No key "+key+" sortby "+sortBy+" for "+x)
122
- key = '8888-12-31';
123
- } else {
124
- key = key.value;
125
- }
126
- } else {
127
- complain('No sortby ' + sortBy + ' for ' + x);
128
- key = '9999-12-31';
129
- }
130
- // key = (sortBy && kb.any(x, sortBy)) || kb.literal("9999-12-31") // Undated appear future
131
- // if (!key) complain("Sort: '"+key+"' No "+sortBy+" for "+x) // Assume just not in this year
132
- pairs.push([key, x]);
133
- }
134
- }
135
- pairs.sort();
136
- pairs.reverse(); // @@ Descending order .. made a toggle?
137
- for (let i = 0; i < pairs.length; i++) {
138
- subjects.push(pairs[i][1]);
139
- }
140
- return subjects;
141
- };
142
-
143
- // Set up a triage of many class members against documents or just one
144
- if (subject.uri === 'http://www.w3.org/ns/pim/trip#Trip' || QU('Transaction') in kb.findSuperClassesNT(subject)
145
- // subject.uri == 'http://www.w3.org/2000/10/swap/pim/qif#Transaction'
146
- ) {
147
- multi = true;
148
- subjects = getMembersAndSort(subject);
149
- } else {
150
- currentSubject = subject;
151
- currentMode = 1; // Show attached only.
152
- subjects = [subject];
153
- multi = false;
154
- }
155
-
156
- // var store = findStore(kb, subject)
157
- // if (!store) complain("There is no annotation store for: "+subject.uri)
158
-
159
- // var objects = kb.each(undefined, ns.rdf('type'), range)
160
- const objects = getMembersAndSort(range);
161
- if (!objects) complain('objects:' + objects.length);
162
- const deselectObject = function () {
163
- currentObject = null;
164
- preview.innerHTML = '';
165
- };
166
- const showFiltered = function (mode) {
167
- const filtered = mode === 0 ? objects : getFiltered();
168
- // eslint-enable
169
- UI.widgets.selectorPanelRefresh(objectList, dom, kb, objectType, predicate, true, filtered, options, showObject, linkClicked);
170
- if (filtered.length === 1) {
171
- currentObject = filtered[0];
172
- showObject(currentObject, null, true); // @@ (Sure?) if only one select it.
173
- } else {
174
- deselectObject();
175
- }
176
- function getFiltered() {
177
- return mode === 1 ? currentSubject === null ? objects.filter(y => !!kb.holds(undefined, predicate, y)) : objects.filter(y => !!kb.holds(currentSubject, predicate, y)) : objects.filter(y => kb.each(undefined, predicate, y).length === 0);
178
- }
179
- };
180
- const setAttachment = function (x, y, value, refresh) {
181
- if (kb.holds(x, predicate, y) === value) return;
182
- const verb = value ? 'attach' : 'detach';
183
- // complain("Info: starting to "+verb+" " + y.uri + " to "+x.uri+ ":\n")
184
- const linkDone3 = function (uri, ok, body) {
185
- if (ok) {
186
- // complain("Success "+verb+" "+y.uri+" to "+x.uri+ ":\n"+ body)
187
- refresh();
188
- } else {
189
- complain('Error: Unable to ' + verb + ' ' + y.uri + ' to ' + x.uri + ':\n' + body);
190
- }
191
- };
192
- const store = findStore(kb, x);
193
- if (!store) {
194
- complain('There is no annotation store for: ' + x.uri);
195
- } else {
196
- const sts = [$rdf.st(x, predicate, y, store)];
197
- if (value) {
198
- kb.updater.update([], sts, linkDone3);
199
- } else {
200
- kb.updater.update(sts, [], linkDone3);
201
- }
202
- }
203
- };
204
- const linkClicked = function (x, event, inverse, refresh) {
205
- let s, o;
206
- if (inverse) {
207
- // Objectlist
208
- if (!currentSubject) {
209
- complain('No subject for the link has been selected');
210
- return;
211
- } else {
212
- s = currentSubject;
213
- o = x;
214
- }
215
- } else {
216
- // Subjectlist
217
- if (!currentObject) {
218
- complain('No object for the link has been selected');
219
- return;
220
- } else {
221
- s = x;
222
- o = currentObject;
223
- }
224
- }
225
- setAttachment(s, o, !kb.holds(s, predicate, o), refresh); // @@ toggle
226
- };
227
-
228
- // When you click on a subject, filter the objects connected to the subject in Mode 1
229
- const showSubject = function (x, event, selected) {
230
- if (selected) {
231
- currentSubject = x;
232
- } else {
233
- currentSubject = null;
234
- if (currentMode === 1) deselectObject();
235
- } // If all are displayed, refresh would just annoy:
236
- if (currentMode !== 0) showFiltered(currentMode); // Refresh the objects
237
- };
238
- if (multi) {
239
- const subjectList = UI.widgets.selectorPanel(dom, kb, subject, predicate, false, subjects, options, showSubject, linkClicked);
240
- subjectList.setAttribute('style', 'background-color: white; width: 25em; height: 100%; padding: 0 em; overflow:scroll; float:left');
241
- div.appendChild(subjectList);
242
- }
243
- const showObject = function (x, event, selected) {
244
- if (!selected) {
245
- deselectObject();
246
- preview.innerHTML = ''; // Clean out what is there
247
- // complain("Show object "+x.uri)
248
- return;
249
- }
250
- currentObject = x;
251
- try {
252
- /*
253
- var dispalyable = function (kb, x) {
254
- var cts = kb.fetcher.getHeader(x, 'content-type')
255
- if (cts) {
256
- var displayables = ['text/html', 'image/png', 'application/pdf']
257
- for (var j = 0; j < cts.length; j++) {
258
- for (var k = 0; k < displayables.length; k++) {
259
- if (cts[j].indexOf(displayables[k]) >= 0) {
260
- return true
261
- }
262
- }
263
- }
264
- }
265
- return false
266
- }
267
- */
268
- preview.innerHTML = 'Loading ....';
269
- if (x.uri) {
270
- kb.fetcher.load(x.uri).then(() => {
271
- const outliner = context.getOutliner(dom);
272
- const display = outliner.propertyTable(x); // ,table, pane
273
- preview.innerHTML = '';
274
- preview.appendChild(display);
275
- }).catch(err => {
276
- preview.textContent = 'Error loading ' + x.uri + ': ' + err;
277
- });
278
- }
279
- /*
280
- if (dispalyable(kb, x) || x.uri.slice(-4) == ".pdf" || x.uri.slice(-4) == ".png" || x.uri.slice(-5) == ".html" ||
281
- x.uri.slice(-5) == ".jpeg") { // @@@@@@ MAJOR KLUDGE! use metadata after HEAD
282
- preview.innerHTML = '<iframe height="100%" width="100%"src="'
283
- + x.uri + '">' + x.uri + '</iframe>'
284
- } else {
285
- }
286
- */
287
- } catch (e) {
288
- preview.innerHTML = '<span style="background-color: pink;">' + 'Error:' + e + '</span>'; // @@ enc
289
- }
290
- };
291
- div.setAttribute('style', 'background-color: white; width:40cm; height:20cm;');
292
- const headerButtons = function (dom, labels, intial, callback) {
293
- const head = dom.createElement('table');
294
- let current = intial;
295
- head.setAttribute('style', 'float: left; width: 30em; padding: 0.5em; height: 1.5em; background-color: #ddd; color: #444; font-weight: bold');
296
- const tr = dom.createElement('tr');
297
- const style0 = 'border-radius: 0.6em; text-align: center;';
298
- const style1 = style0 + 'background-color: #ccc; color: black;';
299
- head.appendChild(tr);
300
- const setStyles = function () {
301
- for (i = 0; i < labels.length; i++) {
302
- buttons[i].setAttribute('style', i === current ? style1 : style0);
303
- }
304
- };
305
- let i, b;
306
- const buttons = [];
307
- for (i = 0; i < labels.length; i++) {
308
- b = buttons[i] = dom.createElement('td');
309
- b.textContent = labels[i];
310
- tr.appendChild(buttons[i]);
311
- const listen = function (b, i) {
312
- b.addEventListener('click', function (_e) {
313
- current = i;
314
- setStyles();
315
- callback(i);
316
- });
317
- };
318
- listen(b, i);
319
- }
320
- setStyles();
321
- return head;
322
- };
323
- const setMode = function (mode) {
324
- if (mode !== currentMode) {
325
- currentMode = mode;
326
- deselectObject();
327
- showFiltered(mode);
328
- }
329
- };
330
- const wrapper = dom.createElement('div');
331
- wrapper.setAttribute('style', ' width: 30em; height: 100%; padding: 0em; float:left;');
332
- // wrapper.appendChild(head)
333
- div.appendChild(wrapper);
334
- wrapper.appendChild(headerButtons(dom, ['all', 'attached', 'not attached'], currentMode, setMode));
335
- const objectList = UI.widgets.selectorPanel(dom, kb, objectType, predicate, true, objects, options, showObject, linkClicked);
336
- objectList.setAttribute('style', 'background-color: #ffe; width: 30em; height: 100%; padding: 0em; overflow:scroll;'); // float:left
337
- wrapper.appendChild(objectList);
338
-
339
- // objectList.insertBefore(head, objectList.firstChild)
340
-
341
- const preview = dom.createElement('div');
342
- preview.setAttribute('style', /* background-color: black; */'padding: 0em; margin: 0; height: 100%; overflow:scroll;');
343
- div.appendChild(preview);
344
- showFiltered(currentMode);
345
- if (subjects.length > 0 && multi) {
346
- const stores = {};
347
- for (let k = 0; k < subjects.length; k++) {
348
- const store = findStore(kb, subjects[k]);
349
- if (store) stores[store.uri] = subjects[k];
350
- // if (!store) complain("No store for "+subjects[k].uri)
351
- }
352
- for (const storeURI in stores) {
353
- // var store = findStore(kb,subjects[subjectList.length-1])
354
- const store = kb.sym(storeURI);
355
- const mintBox = dom.createElement('div');
356
- mintBox.setAttribute('style', 'clear: left; width: 20em; margin-top:2em; background-color:#ccc; border-radius: 1em; padding: 1em; font-weight: bold;');
357
- mintBox.textContent = '+ New ' + UI.utils.label(subject);
358
- mintBox.textContent += ' in ' + UI.utils.label(store);
359
- const storeLab = dom.createElement('span');
360
- storeLab.setAttribute('style', 'font-weight: normal; font-size: 80%; color: #777;');
361
- storeLab.textContent = storeURI;
362
- mintBox.appendChild(dom.createElement('br'));
363
- mintBox.appendChild(storeLab);
364
- /*
365
- var mintButton = dom.createElement('img')
366
- mintBox.appendChild(mintButton)
367
- mintButton.setAttribute('src', ...); @@ Invokes master handler
368
- */
369
- mintBox.addEventListener('click', function (_event) {
370
- const thisForm = UI.widgets.promptForNew(dom, kb, subject, predicate, subject, null, store, function (ok, _body) {
371
- if (!ok) {
372
- // callback(ok, body); // @@ if ok, need some form of refresh of the select for the new thing
373
- } else {
374
- // Refresh @@
375
- }
376
- });
377
- try {
378
- div.insertBefore(thisForm, mintBox.nextSibling); // Sigh no insertAfter
379
- } catch (e) {
380
- div.appendChild(thisForm);
381
- }
382
- // var newObject = thisForm.AJAR_subject
383
- }, false);
384
- div.appendChild(mintBox);
385
- }
386
- }
387
-
388
- // if (!me) complain("(You do not have your Web Id set. Set your Web ID to make changes.)")
389
-
390
- return div;
391
- }
392
- }; // pane object
393
- // ends
@@ -1,181 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var UI = _interopRequireWildcard(require("solid-ui"));
8
- var $rdf = _interopRequireWildcard(require("rdflib"));
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- /* Single audio play Pane
11
- **
12
- */
13
-
14
- const ns = UI.ns;
15
- var _default = exports.default = {
16
- icon: UI.icons.iconBase + 'noun_534313.svg',
17
- name: 'audio',
18
- // Does the subject deserve an audio play pane?
19
- label: function (subject, context) {
20
- const kb = context.session.store;
21
- const typeURIs = kb.findTypeURIs(subject);
22
- const prefix = $rdf.Util.mediaTypeClass('audio/*').uri.split('*')[0];
23
- for (const t in typeURIs) {
24
- if (t.startsWith(prefix)) return 'Play audio';
25
- }
26
- return null;
27
- },
28
- render: function (subject, context) {
29
- const kb = context.session.store;
30
- const dom = context.dom;
31
- const options = {
32
- autoplay: false,
33
- chain: true,
34
- chainAlbums: true,
35
- loop: false
36
- };
37
- const removeExtension = function (str) {
38
- const dot = str.lastIndexOf('.');
39
- if (dot < 0) return str; // if any
40
- const slash = str.lastIndexOf('/');
41
- if (dot < slash) return str;
42
- return str.slice(0, dot);
43
- };
44
-
45
- // True if there is another file like song.mp3 when this is "song 1.mp3"
46
- // or this is song.m4a
47
- //
48
- const looksRedundant = function (x) {
49
- const folder = kb.any(undefined, ns.ldp('contains'), x);
50
- if (!folder) return false;
51
- const contents = kb.each(folder, ns.ldp('contains'));
52
- if (contents.length < 2) return false;
53
- const thisName = x.uri;
54
- for (let k = 0; k < contents.length; k++) {
55
- const otherName = contents[k].uri;
56
- if (thisName.length > otherName.length && thisName.startsWith(removeExtension(otherName))) {
57
- return true;
58
- }
59
- if (thisName.endsWith('.m4a') && otherName.endsWith('.mp3') && removeExtension(thisName) === removeExtension(otherName)) {
60
- return true;
61
- }
62
- }
63
- return false;
64
- };
65
-
66
- // Alternative methods could include:
67
- // Accesing metadata in the audio contol, or paring the audio file
68
- const guessNames = function (x) {
69
- const a = x.uri.split('/').slice(-3); // Hope artist, album, track
70
- const decode = function (str) {
71
- try {
72
- return decodeURIComponent(str);
73
- } catch (e) {
74
- return str;
75
- }
76
- };
77
- artistRow.textContent = decode(a[0]);
78
- albumRow.textContent = decode(a[1]);
79
- trackRow.textContent = decode(removeExtension(a[2]));
80
- };
81
- const moveOn = function (current, level) {
82
- return new Promise(function (resolve) {
83
- level = level || 0;
84
- if (!options.chain) return resolve(null);
85
- // Ideally navigate graph else cheat with URI munging:
86
- const folder = kb.any(undefined, ns.ldp('contains'), current) || current.dir();
87
- if (!folder) return resolve(null);
88
- kb.fetcher.load(folder).then(function (_xhr) {
89
- const contents = kb.each(folder, ns.ldp('contains')); // @@ load if not loaded
90
- // if (contents.length < 2) return resolve(null) NO might move on from 1-track album
91
- let j;
92
- contents.sort(); // sort by URI which hopefully will get tracks in order
93
- for (let i = 0; i < contents.length; i++) {
94
- if (current.uri === contents[i].uri) {
95
- j = (i + 1) % contents.length;
96
- if (j === 0) {
97
- if (!options.chainAlbums) {
98
- if (options.loop) {
99
- return resolve(contents[j]);
100
- }
101
- return resolve(null); // No more music needed
102
- } else {
103
- // chain albums
104
- if (level === 1 || !options.chainAlbums) return resolve(null); // limit of navigating treee
105
- moveOn(folder, level + 1).then(function (folder2) {
106
- if (folder2) {
107
- kb.fetcher.load(folder2).then(function (_xhr) {
108
- const contents = kb.each(folder2, ns.ldp('contains'));
109
- if (contents.length === 0) return resolve(null);
110
- contents.sort();
111
- console.log('New Album: ' + folder2);
112
- return resolve(contents[0]); // Start off new album
113
- });
114
- }
115
- });
116
- }
117
- } else {
118
- return resolve(contents[j]);
119
- }
120
- }
121
- } // for
122
- });
123
- });
124
- };
125
- const endedListener = function (event) {
126
- const current = kb.sym(event.target.getAttribute('src'));
127
- if (!options.chain) return;
128
- const tryNext = function (cur) {
129
- const current = cur;
130
- moveOn(current).then(function (next) {
131
- if (!next) {
132
- console.log('No successor to ' + current);
133
- return;
134
- }
135
- if (!looksRedundant(next)) {
136
- console.log('Moving on to ' + next);
137
- guessNames(next);
138
- controlRow.appendChild(audioControl(next, true)); // Force autoplay
139
- controlRow.removeChild(event.target);
140
- } else {
141
- console.log('Ignoring redundant ' + next);
142
- tryNext(next);
143
- }
144
- });
145
- };
146
- tryNext(current);
147
- };
148
- const audioControl = function (song, autoplay) {
149
- const audio = dom.createElement('audio');
150
- audio.setAttribute('controls', 'yes');
151
- // get audio with authenticated fetch
152
- kb.fetcher._fetch(song.uri).then(function (response) {
153
- return response.blob();
154
- }).then(function (myBlob) {
155
- const objectURL = URL.createObjectURL(myBlob);
156
- audio.setAttribute('src', objectURL); // w640 h480 //
157
- });
158
- if (autoplay) {
159
- audio.setAttribute('autoplay', 'autoplay'); // Make this a personal preference
160
- }
161
- audio.addEventListener('ended', endedListener, false);
162
- return audio;
163
- };
164
- const div = dom.createElement('div');
165
- const table = div.appendChild(dom.createElement('table'));
166
- const labelStyle = 'padding: 0.3em; color:white; background-color: black;';
167
- const artistRow = table.appendChild(dom.createElement('tr'));
168
- artistRow.style.cssText = labelStyle;
169
- const albumRow = table.appendChild(dom.createElement('tr'));
170
- albumRow.style.cssText = labelStyle;
171
- const trackRow = table.appendChild(dom.createElement('tr'));
172
- trackRow.style.cssText = labelStyle;
173
- const controlRow = table.appendChild(dom.createElement('tr'));
174
- guessNames(subject);
175
- controlRow.appendChild(audioControl(subject, options.autoplay));
176
- if (!kb.holds(undefined, ns.ldp('contains'), subject) && subject.dir()) {
177
- kb.fetcher.load(subject.dir()); // Prefetch enclosing @@ or playlist
178
- }
179
- return div;
180
- }
181
- }; // ends
Binary file
Binary file
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.classInstancePane = void 0;
7
- var UI = _interopRequireWildcard(require("solid-ui"));
8
- var $rdf = _interopRequireWildcard(require("rdflib"));
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- /* Class member Pane
11
- **
12
- ** This outline pane lists the members of a class
13
- */
14
-
15
- const ns = UI.ns;
16
- const classInstancePane = exports.classInstancePane = {
17
- icon: UI.icons.originalIconBase + 'tango/22-folder-open.png',
18
- name: 'classInstance',
19
- // Create a new folder in a Solid system,
20
-
21
- audience: [ns.solid('PowerUser')],
22
- label: function (subject, context) {
23
- const kb = context.session.store;
24
- const n = kb.each(undefined, ns.rdf('type'), subject).length;
25
- if (n > 0) return 'List (' + n + ')'; // Show how many in hover text
26
- return null; // Suppress pane otherwise
27
- },
28
- render: function (subject, context) {
29
- const dom = context.dom;
30
- const outliner = context.getOutliner(dom);
31
- const kb = context.session.store;
32
- const complain = function complain(message, color) {
33
- const pre = dom.createElement('pre');
34
- pre.setAttribute('style', 'background-color: ' + color || '#eed' + ';');
35
- div.appendChild(pre);
36
- pre.appendChild(dom.createTextNode(message));
37
- };
38
- const div = dom.createElement('div');
39
- div.setAttribute('class', 'instancePane');
40
- div.setAttribute('style', ' border-top: solid 1px #777; border-bottom: solid 1px #777; margin-top: 0.5em; margin-bottom: 0.5em ');
41
-
42
- // If this is a class, look for all both explicit and implicit
43
- const sts = kb.statementsMatching(undefined, ns.rdf('type'), subject);
44
- if (sts.length > 0) {
45
- const already = {};
46
- const more = [];
47
- sts.forEach(st => {
48
- already[st.subject.toNT()] = st;
49
- });
50
- for (const nt in kb.findMembersNT(subject)) {
51
- if (!already[nt]) {
52
- more.push($rdf.st(kb.fromNT(nt), ns.rdf('type'), subject)); // @@ no provenance
53
- }
54
- }
55
- if (more.length) {
56
- complain('There are ' + sts.length + ' explicit and ' + more.length + ' implicit members of ' + UI.utils.label(subject));
57
- }
58
- if (subject.sameTerm(ns.rdf('Property'))) {
59
- // / Do not find all properties used as properties .. unless look at kb index
60
- } else if (subject.sameTerm(ns.rdfs('Class'))) {
61
- const uses = kb.statementsMatching(undefined, ns.rdf('type'), undefined);
62
- const usedTypes = {};
63
- uses.forEach(function (st) {
64
- usedTypes[st.object] = st;
65
- }); // Get unique
66
- const used = [];
67
- for (const i in usedTypes) {
68
- used.push($rdf.st($rdf.sym(i), ns.rdf('type'), ns.rdfs('Class')));
69
- }
70
- complain('Total of ' + uses.length + ' type statements and ' + used.length + ' unique types.');
71
- }
72
- if (sts.length > 10) {
73
- const tr = dom.createElement('TR');
74
- tr.appendChild(dom.createTextNode('' + sts.length));
75
- // tr.AJAR_statement=sts[i]
76
- div.appendChild(tr);
77
- }
78
- outliner.appendPropertyTRs(div, sts, true, function (_pred) {
79
- return true;
80
- });
81
- if (more.length) {
82
- complain('Implicit:');
83
- outliner.appendPropertyTRs(div, more, true, function (_pred) {
84
- return true;
85
- });
86
- }
87
- }
88
- return div;
89
- }
90
- };
91
- // ends