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,14 +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
- 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); }
9
- var _default = dom => function viewAsImage(obj) {
10
- const img = UI.utils.AJARImage(obj.uri, UI.utils.label(obj), UI.utils.label(obj), dom);
11
- img.setAttribute('class', 'outlineImage');
12
- return img;
13
- };
14
- exports.default = _default;
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = dom => function viewAsMbox(obj) {
8
- const anchor = dom.createElement('a');
9
- // previous implementation assumed email address was Literal. fixed.
10
-
11
- // FOAF mboxs must NOT be literals -- must be mailto: URIs.
12
-
13
- let address = obj.termType === 'NamedNode' ? obj.uri : obj.value; // this way for now
14
- // if (!address) return viewAsBoringDefault(obj)
15
- const index = address.indexOf('mailto:');
16
- address = index >= 0 ? address.slice(index + 7) : address;
17
- anchor.setAttribute('href', 'mailto:' + address);
18
- anchor.appendChild(dom.createTextNode(address));
19
- return anchor;
20
- };
21
- exports.default = _default;
@@ -1,40 +0,0 @@
1
- .pad-layout {
2
- background-color: white;
3
- min-width: 94%;
4
- margin-right: 3%;
5
- margin-left: 3%;
6
- min-height: 13rem;
7
- display: flex;
8
- flex-direction: column;
9
- box-sizing: border-box;
10
- }
11
-
12
- .pad-row {
13
- display: flex;
14
- flex-wrap: wrap;
15
- width: 100%;
16
- }
17
-
18
- .pad-main {
19
- flex: 1 1 100%;
20
- width: 100%;
21
- }
22
-
23
- .pad-controls {
24
- gap: 0.5rem;
25
- align-items: center;
26
- }
27
-
28
- .pad-cell {
29
- flex: 1 1 auto;
30
- }
31
-
32
- .pad-new-instance-message {
33
- font-size: 140%;
34
- }
35
-
36
- @media (max-width: 600px) {
37
- .pad-controls .pad-cell {
38
- flex: 1 1 100%;
39
- }
40
- }
@@ -1,421 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _solidUi = require("solid-ui");
8
- var _solidLogic = require("solid-logic");
9
- var _rdflib = require("rdflib");
10
- require("./padPane.css");
11
- /* pad Pane
12
- **
13
- */
14
-
15
- const paneDef = {
16
- // icon: (module.__dirname || __dirname) + 'images/ColourOn.png',
17
- icon: _solidUi.icons.iconBase + 'noun_79217.svg',
18
- name: 'pad',
19
- audience: [_solidUi.ns.solid('PowerUser')],
20
- // Does the subject deserve an pad pane?
21
- label: function (subject, context) {
22
- // @ts-ignore
23
- const t = context.session.store.findTypeURIs(subject);
24
- if (t['http://www.w3.org/ns/pim/pad#Notepad']) {
25
- return 'pad';
26
- }
27
- return null; // No under other circumstances
28
- },
29
- mintClass: _solidUi.ns.pad('Notepad'),
30
- mintNew: function (context, newPaneOptions) {
31
- // @ts-ignore
32
- const store = context.session.store;
33
- const updater = store.updater;
34
- if (newPaneOptions.me && !newPaneOptions.me.uri) {
35
- throw new Error('notepad mintNew: Invalid userid');
36
- }
37
- const newInstance = newPaneOptions.newInstance = newPaneOptions.newInstance || store.sym(newPaneOptions.newBase + 'index.ttl#this');
38
- // const newInstance = kb.sym(newBase + 'pad.ttl#thisPad');
39
- const newPadDoc = newInstance.doc();
40
- store.add(newInstance, _solidUi.ns.rdf('type'), _solidUi.ns.pad('Notepad'), newPadDoc);
41
- store.add(newInstance, _solidUi.ns.dc('title'), 'Shared Notes', newPadDoc);
42
- store.add(newInstance, _solidUi.ns.dc('created'), new Date(), newPadDoc); // @@ TODO Remove casting
43
- if (newPaneOptions.me) {
44
- store.add(newInstance, _solidUi.ns.dc('author'), newPaneOptions.me, newPadDoc);
45
- }
46
- // kb.add(newInstance, ns.pad('next'), newInstance, newPadDoc);
47
- // linked list empty @@
48
- const chunk = store.sym(newInstance.uri + '_line0');
49
- store.add(newInstance, _solidUi.ns.pad('next'), chunk, newPadDoc); // Linked list has one entry
50
- store.add(chunk, _solidUi.ns.pad('next'), newInstance, newPadDoc);
51
- store.add(chunk, _solidUi.ns.dc('author'), newPaneOptions.me, newPadDoc);
52
- store.add(chunk, _solidUi.ns.sioc('content'), '', newPadDoc);
53
- return new Promise(function (resolve, reject) {
54
- if (!updater) {
55
- reject(new Error('Have no updater'));
56
- return;
57
- }
58
- updater.put(newPadDoc, store.statementsMatching(undefined, undefined, undefined, newPadDoc), 'text/turtle', function (uri2, ok, message) {
59
- if (ok) {
60
- resolve(newPaneOptions);
61
- } else {
62
- reject(new Error('FAILED to save new tool at: ' + uri2 + ' : ' + message));
63
- }
64
- });
65
- });
66
- },
67
- // and follow instructions there
68
- // @@ TODO Set better type for paneOptions
69
- render: function (subject, context, paneOptions) {
70
- const dom = context.dom;
71
- // @ts-ignore
72
- const store = context.session.store;
73
- // Utility functions
74
- const complainIfBad = function (ok, message) {
75
- if (!ok) {
76
- div.appendChild(_solidUi.widgets.errorMessageBlock(dom, message, 'pink'));
77
- }
78
- };
79
- const clearElement = function (ele) {
80
- while (ele.firstChild) {
81
- ele.removeChild(ele.firstChild);
82
- }
83
- return ele;
84
- };
85
-
86
- // Access control
87
-
88
- // Two constiations of ACL for this app, public read and public read/write
89
- // In all cases owner has read write control
90
- const genACLtext = function (docURI, aclURI, allWrite) {
91
- const g = (0, _rdflib.graph)();
92
- const auth = (0, _rdflib.Namespace)('http://www.w3.org/ns/auth/acl#');
93
- let a = g.sym(aclURI + '#a1');
94
- const acl = g.sym(aclURI);
95
- const doc = g.sym(docURI);
96
- g.add(a, _solidUi.ns.rdf('type'), auth('Authorization'), acl);
97
- g.add(a, auth('accessTo'), doc, acl);
98
- g.add(a, auth('agent'), me, acl);
99
- g.add(a, auth('mode'), auth('Read'), acl);
100
- g.add(a, auth('mode'), auth('Write'), acl);
101
- g.add(a, auth('mode'), auth('Control'), acl);
102
- a = g.sym(aclURI + '#a2');
103
- g.add(a, _solidUi.ns.rdf('type'), auth('Authorization'), acl);
104
- g.add(a, auth('accessTo'), doc, acl);
105
- g.add(a, auth('agentClass'), _solidUi.ns.foaf('Agent'), acl);
106
- g.add(a, auth('mode'), auth('Read'), acl);
107
- if (allWrite) {
108
- g.add(a, auth('mode'), auth('Write'), acl);
109
- }
110
- // TODO: Figure out why `serialize` isn't on the type definition according to TypeScript:
111
- return (0, _rdflib.serialize)(acl, g, aclURI, 'text/turtle');
112
- };
113
-
114
- /**
115
- * @param docURI
116
- * @param allWrite
117
- * @param callbackFunction
118
- *
119
- * @returns {Promise<Response>}
120
- */
121
- const setACL = function setACL(docURI, allWrite, callbackFunction) {
122
- const aclDoc = store.any((0, _rdflib.sym)(docURI), (0, _rdflib.sym)('http://www.iana.org/assignments/link-relations/acl')); // @@ check that this get set by web.js
123
- if (!fetcher) {
124
- throw new Error('Have no fetcher');
125
- }
126
- if (aclDoc) {
127
- // Great we already know where it is
128
- const aclText = genACLtext(docURI, aclDoc.uri, allWrite);
129
- return fetcher.webOperation('PUT', aclDoc.uri, {
130
- data: aclText,
131
- contentType: 'text/turtle'
132
- }).then(() => callbackFunction(true)).catch(err => {
133
- callbackFunction(false, err.message);
134
- });
135
- } else {
136
- return fetcher.load(docURI).catch(err => {
137
- callbackFunction(false, 'Getting headers for ACL: ' + err);
138
- }).then(() => {
139
- const aclDoc = store.any((0, _rdflib.sym)(docURI), (0, _rdflib.sym)('http://www.iana.org/assignments/link-relations/acl'));
140
- if (!aclDoc) {
141
- // complainIfBad(false, "No Link rel=ACL header for " + docURI);
142
- throw new Error('No Link rel=ACL header for ' + docURI);
143
- }
144
- const aclText = genACLtext(docURI, aclDoc.uri, allWrite);
145
- return fetcher.webOperation('PUT', aclDoc.uri, {
146
- data: aclText,
147
- contentType: 'text/turtle'
148
- });
149
- }).then(() => callbackFunction(true)).catch(err => {
150
- callbackFunction(false, err.message);
151
- });
152
- }
153
- };
154
-
155
- // Reproduction: spawn a new instance
156
- //
157
- // Viral growth path: user of app decides to make another instance
158
- const newInstanceButton = function () {
159
- const button = div.appendChild(dom.createElement('button'));
160
- button.textContent = 'Start another pad';
161
- button.addEventListener('click', function () {
162
- return showBootstrap(subject, spawnArea, 'pad');
163
- });
164
- return button;
165
- };
166
-
167
- // Option of either using the workspace system or just typing in a URI
168
- const showBootstrap = function showBootstrap(thisInstance, container, noun) {
169
- const div = clearElement(container);
170
- const appDetails = {
171
- noun: 'notepad'
172
- };
173
- div.appendChild(_solidUi.login.newAppInstance(dom, appDetails, (workspace, newBase) => {
174
- // FIXME: not sure if this will work at all, just
175
- // trying to get the types to match - Michiel.
176
- return initializeNewInstanceInWorkspace(new _rdflib.NamedNode(workspace || newBase));
177
- }));
178
- div.appendChild(dom.createElement('hr')); // @@
179
-
180
- const p = div.appendChild(dom.createElement('p'));
181
- p.textContent = 'Where would you like to store the data for the ' + noun + '? ' + 'Give the URL of the directory where you would like the data stored.';
182
- const baseField = div.appendChild(dom.createElement('input'));
183
- baseField.setAttribute('type', 'text');
184
- baseField.size = 80 // really a string
185
- ;
186
- baseField.label = 'base URL';
187
- baseField.autocomplete = 'on';
188
- div.appendChild(dom.createElement('br')); // @@
189
-
190
- const button = div.appendChild(dom.createElement('button'));
191
- button.textContent = 'Start new ' + noun + ' at this URI';
192
- button.addEventListener('click', function (_e) {
193
- let newBase = baseField.value;
194
- if (newBase.slice(-1) !== '/') {
195
- newBase += '/';
196
- }
197
- initializeNewInstanceAtBase(thisInstance, newBase);
198
- });
199
- };
200
-
201
- // Create new document files for new instance of app
202
- const initializeNewInstanceInWorkspace = function (ws) {
203
- // @@ TODO Clean up type for newBase
204
- let newBase = store.any(ws, _solidUi.ns.space('uriPrefix'));
205
- if (!newBase) {
206
- newBase = ws.uri.split('#')[0];
207
- } else {
208
- newBase = newBase.value;
209
- }
210
- if (newBase.slice(-1) !== '/') {
211
- _rdflib.log.error(appPathSegment + ': No / at end of uriPrefix ' + newBase); // @@ paramater?
212
- newBase = newBase + '/';
213
- }
214
- const now = new Date();
215
- newBase += appPathSegment + '/id' + now.getTime() + '/'; // unique id
216
-
217
- initializeNewInstanceAtBase(thisInstance, newBase);
218
- };
219
- const initializeNewInstanceAtBase = function (thisInstance, newBase) {
220
- const here = (0, _rdflib.sym)(thisInstance.uri.split('#')[0]);
221
- const base = here; // @@ ???
222
-
223
- const newPadDoc = store.sym(newBase + 'pad.ttl');
224
- const newIndexDoc = store.sym(newBase + 'index.html');
225
- const toBeCopied = [{
226
- local: 'index.html',
227
- contentType: 'text/html'
228
- }];
229
- const newInstance = store.sym(newPadDoc.uri + '#thisPad');
230
-
231
- // log.debug("\n Ready to put " + kb.statementsMatching(undefined, undefined, undefined, there)); //@@
232
-
233
- const agenda = [];
234
- let f; // @@ This needs some form of visible progress bar
235
- for (f = 0; f < toBeCopied.length; f++) {
236
- const item = toBeCopied[f];
237
- const fun = function copyItem(item) {
238
- agenda.push(function () {
239
- const newURI = newBase + item.local;
240
- console.log('Copying ' + base + item.local + ' to ' + newURI);
241
- const setThatACL = function () {
242
- setACL(newURI, false, function (ok, message) {
243
- if (!ok) {
244
- complainIfBad(ok, 'FAILED to set ACL ' + newURI + ' : ' + message);
245
- console.log('FAILED to set ACL ' + newURI + ' : ' + message);
246
- } else {
247
- agenda.shift()(); // beware too much nesting
248
- }
249
- });
250
- };
251
- if (!store.fetcher) {
252
- throw new Error('Store has no fetcher');
253
- }
254
- store.fetcher.webCopy(base + item.local, newBase + item.local, item.contentType).then(() => _solidLogic.authn.checkUser()).then(webId => {
255
- me = webId;
256
- setThatACL();
257
- }).catch(err => {
258
- console.log('FAILED to copy ' + base + item.local + ' : ' + err.message);
259
- complainIfBad(false, 'FAILED to copy ' + base + item.local + ' : ' + err.message);
260
- });
261
- });
262
- };
263
- fun(item);
264
- }
265
- agenda.push(function createNewPadDataFile() {
266
- store.add(newInstance, _solidUi.ns.rdf('type'), PAD('Notepad'), newPadDoc);
267
-
268
- // TODO @@ Remove casting of add
269
- store.add(newInstance, _solidUi.ns.dc('created'), new Date(),
270
- // @@ TODO Remove casting
271
- newPadDoc);
272
- if (me) {
273
- store.add(newInstance, _solidUi.ns.dc('author'), me, newPadDoc);
274
- }
275
- store.add(newInstance, PAD('next'), newInstance, newPadDoc); // linked list empty
276
-
277
- // Keep a paper trail @@ Revisit when we have non-public ones @@ Privacy
278
- store.add(newInstance, _solidUi.ns.space('inspiration'), thisInstance, padDoc);
279
- store.add(newInstance, _solidUi.ns.space('inspiration'), thisInstance, newPadDoc);
280
- if (!updater) {
281
- throw new Error('Have no updater');
282
- }
283
- updater.put(newPadDoc, store.statementsMatching(undefined, undefined, undefined, newPadDoc), 'text/turtle', function (_uri2, ok, message) {
284
- if (ok) {
285
- agenda.shift()();
286
- } else {
287
- complainIfBad(ok, 'FAILED to save new notepad at: ' + newPadDoc.uri + ' : ' + message);
288
- console.log('FAILED to save new notepad at: ' + newPadDoc.uri + ' : ' + message);
289
- }
290
- });
291
- });
292
- agenda.push(function () {
293
- setACL(newPadDoc.uri, true, function (ok, body) {
294
- complainIfBad(ok, 'Failed to set Read-Write ACL on pad data file: ' + body);
295
- if (ok) agenda.shift()();
296
- });
297
- });
298
- agenda.push(function () {
299
- // give the user links to the new app
300
-
301
- const p = div.appendChild(dom.createElement('p'));
302
- p.classList.add('pad-new-instance-message');
303
- p.innerHTML = 'Your <a href=\'' + newIndexDoc.uri + '\'><b>new notepad</b></a> is ready. ' + '<br/><br/><a href=\'' + newIndexDoc.uri + '\'>Go to new pad</a>';
304
- });
305
- agenda.shift()();
306
- // Created new data files.
307
- };
308
-
309
- // Update on incoming changes
310
- const showResults = function (exists) {
311
- console.log('showResults()');
312
- me = _solidLogic.authn.currentUser();
313
- _solidLogic.authn.checkUser().then(webId => {
314
- me = webId;
315
- });
316
- const title = store.any(subject, _solidUi.ns.dc('title')) || store.any(subject, _solidUi.ns.vcard('fn'));
317
- if (paneOptions.solo && typeof window !== 'undefined' && title) {
318
- window.document.title = title.value;
319
- }
320
- options.exists = exists;
321
- padEle = _solidUi.pad.notepad(dom, padDoc, subject, me, options);
322
- naviMain.appendChild(padEle);
323
- const partipationTarget = store.any(subject, _solidUi.ns.meeting('parentMeeting')) || subject;
324
- _solidUi.pad.manageParticipation(dom, naviMiddle2, padDoc, partipationTarget, me, options);
325
- if (!store.updater) {
326
- throw new Error('Store has no updater');
327
- }
328
- store.updater.setRefreshHandler(padDoc, padEle.reloadAndSync); // initiated =
329
- };
330
-
331
- // Read or create empty data file
332
- const loadPadData = function () {
333
- if (!fetcher) {
334
- throw new Error('Have no fetcher');
335
- }
336
- fetcher.nowOrWhenFetched(padDoc.uri, undefined, function (ok, body, response) {
337
- if (!ok) {
338
- if (response.status === 404) {
339
- // / Check explicitly for 404 error
340
- console.log('Initializing results file ' + padDoc);
341
- if (!updater) {
342
- throw new Error('Have no updater');
343
- }
344
- updater.put(padDoc, [], 'text/turtle', function (_uri2, ok, message) {
345
- if (ok) {
346
- clearElement(naviMain);
347
- showResults(false);
348
- } else {
349
- complainIfBad(ok, 'FAILED to create results file at: ' + padDoc.uri + ' : ' + message);
350
- console.log('FAILED to craete results file at: ' + padDoc.uri + ' : ' + message);
351
- }
352
- });
353
- } else {
354
- // Other error, not 404 -- do not try to overwite the file
355
- complainIfBad(ok, 'FAILED to read results file: ' + body);
356
- }
357
- } else {
358
- // Happy read
359
- clearElement(naviMain);
360
- if (store.holds(subject, _solidUi.ns.rdf('type'), _solidUi.ns.wf('TemplateInstance'))) {
361
- showBootstrap(subject, naviMain, 'pad');
362
- }
363
- showResults(true);
364
- naviMiddle3.appendChild(newInstanceButton());
365
- }
366
- });
367
- };
368
-
369
- // Body of Pane
370
- const appPathSegment = 'app-pad.timbl.com'; // how to allocate this string and connect to
371
-
372
- const fetcher = store.fetcher;
373
- const updater = store.updater;
374
- let me;
375
- const PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
376
- const thisInstance = subject;
377
- const padDoc = subject.doc();
378
- let padEle;
379
- const div = dom.createElement('div');
380
-
381
- // Build the DOM
382
- const structure = div.appendChild(dom.createElement('div')); // responsive flex layout
383
- structure.className = 'pad-layout';
384
- const naviLoginoutTR = structure.appendChild(dom.createElement('div'));
385
- naviLoginoutTR.className = 'pad-row';
386
- naviLoginoutTR.appendChild(dom.createElement('div')); // naviLoginout1
387
- naviLoginoutTR.appendChild(dom.createElement('div'));
388
- naviLoginoutTR.appendChild(dom.createElement('div'));
389
- const naviTop = structure.appendChild(dom.createElement('div')); // stuff
390
- naviTop.className = 'pad-row';
391
- const naviMain = naviTop.appendChild(dom.createElement('div'));
392
- naviMain.className = 'pad-main';
393
- const naviMiddle = structure.appendChild(dom.createElement('div')); // controls
394
- naviMiddle.className = 'pad-row pad-controls';
395
- const naviMiddle1 = naviMiddle.appendChild(dom.createElement('div'));
396
- naviMiddle1.className = 'pad-cell';
397
- const naviMiddle2 = naviMiddle.appendChild(dom.createElement('div'));
398
- naviMiddle2.className = 'pad-cell';
399
- const naviMiddle3 = naviMiddle.appendChild(dom.createElement('div'));
400
- naviMiddle3.className = 'pad-cell';
401
- const naviStatus = structure.appendChild(dom.createElement('div')); // status etc
402
- naviStatus.className = 'pad-row';
403
- const statusArea = naviStatus.appendChild(dom.createElement('div'));
404
- const naviSpawn = structure.appendChild(dom.createElement('div')); // create new
405
- naviSpawn.className = 'pad-row';
406
- const spawnArea = naviSpawn.appendChild(dom.createElement('div'));
407
- const naviMenu = structure.appendChild(dom.createElement('div'));
408
- naviMenu.setAttribute('class', 'pad-row naviMenu');
409
- naviMenu.appendChild(dom.createElement('div')); // naviLeft
410
- naviMenu.appendChild(dom.createElement('div'));
411
- naviMenu.appendChild(dom.createElement('div'));
412
- const options = {
413
- statusArea,
414
- timingArea: naviMiddle1
415
- };
416
- loadPadData();
417
- return div;
418
- }
419
- };
420
- // ends
421
- var _default = exports.default = paneDef;
@@ -1,119 +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
- /* Playlist Pane
11
- **
12
- ** This pane allows playlists and playlists slots to be viewed
13
- ** seeAlso: http://smiy.sourceforge.net/pbo/spec/playbackontology.html
14
- */
15
-
16
- const ns = UI.ns;
17
- var _default = exports.default = {
18
- icon: UI.icons.iconBase + 'noun_1619.svg',
19
- name: 'playlistSlot',
20
- audience: [ns.solid('PowerUser')],
21
- label: function (subject, context) {
22
- const kb = context.session.store;
23
- if (!kb.anyStatementMatching(subject, UI.ns.rdf('type'), kb.sym('http://purl.org/ontology/pbo/core#PlaylistSlot'))) {
24
- return null;
25
- }
26
- return 'playlist slot';
27
- },
28
- render: function (subject, context) {
29
- const myDocument = context.dom;
30
- function isVideo(src, _index) {
31
- if (!src) {
32
- return {
33
- html5: true
34
- };
35
- }
36
- const youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-_%]+)/i);
37
- const vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
38
- const dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i);
39
- const vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);
40
- if (youtube) {
41
- return {
42
- youtube
43
- };
44
- } else if (vimeo) {
45
- return {
46
- vimeo
47
- };
48
- } else if (dailymotion) {
49
- return {
50
- dailymotion
51
- };
52
- } else if (vk) {
53
- return {
54
- vk
55
- };
56
- }
57
- }
58
- const link = function (contents, uri) {
59
- if (!uri) return contents;
60
- const a = myDocument.createElement('a');
61
- a.setAttribute('href', uri);
62
- a.appendChild(contents);
63
- a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true);
64
- return a;
65
- };
66
- const text = function (str) {
67
- return myDocument.createTextNode(str);
68
- };
69
- const kb = context.session.store;
70
- const obj = kb.any(subject, $rdf.sym('http://purl.org/ontology/pbo/core#playlist_item'));
71
- let index = kb.any(subject, $rdf.sym('http://purl.org/ontology/olo/core#index'));
72
- let uri = obj.uri;
73
- const video = isVideo(uri);
74
- const div = myDocument.createElement('div');
75
- let img;
76
- if (video && video.youtube) {
77
- uri = uri.replace('watch?v=', 'embed/');
78
- div.setAttribute('class', 'imageView');
79
- img = myDocument.createElement('IFRAME');
80
- img.setAttribute('src', uri);
81
- img.setAttribute('frameborder', 0);
82
- img.setAttribute('style', 'width: 100%; aspect-ratio: 16/9; max-width: 100%; border: 0;');
83
- img.setAttribute('allowfullscreen', 'true');
84
- } else {
85
- div.setAttribute('class', 'imageView');
86
- img = myDocument.createElement('IMG');
87
- img.setAttribute('src', obj.value);
88
- img.setAttribute('style', 'max-width: 100%; height: auto;');
89
- }
90
- let descDiv;
91
- if (index) {
92
- const sl = kb.statementsMatching(null, $rdf.sym('http://purl.org/ontology/olo/core#index'));
93
- const slots = [];
94
- for (let i = 0; i < sl.length; i++) {
95
- if (sl[i]) {
96
- slots.push(parseInt(sl[i].object.value, 10));
97
- }
98
- }
99
- index = parseInt(index.value, 10);
100
- descDiv = myDocument.createElement('div');
101
- const pIndex = slots[(slots.indexOf(index) - 1 + slots.length) % slots.length];
102
- const nIndex = slots[(slots.indexOf(index) + 1 + slots.length) % slots.length];
103
- const prev = link(text('<<'), subject.uri.split('#')[0] + '#' + pIndex);
104
- descDiv.appendChild(prev);
105
- const indexDiv = myDocument.createElement('span');
106
- indexDiv.innerHTML = ' Playlist slot : ' + index + ' ';
107
- descDiv.appendChild(indexDiv);
108
- const next = link(text('>>'), subject.uri.split('#')[0] + '#' + nIndex);
109
- descDiv.appendChild(next);
110
- }
111
- const tr = myDocument.createElement('TR'); // why need tr?
112
- tr.appendChild(img);
113
- if (descDiv) {
114
- tr.appendChild(descDiv);
115
- }
116
- div.appendChild(tr);
117
- return div;
118
- }
119
- }; // ends