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
@@ -0,0 +1,875 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.obj{vertical-align:top;border:none;margin:.2em;padding:0}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.paneIconTray{justify-content:flex-start;align-items:center;display:flex}.paneShown{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem;background-color:var(--header-menu-item-hover,#e6dcff)!important;border:none!important}.paneHidden{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem}.header{flex-wrap:wrap;justify-content:flex-start;align-items:center;display:flex}.strongHeader{margin:0 .6rem 0 0;padding:.1rem .4rem;font-size:150%}.tableFullWidth{width:100%;background:var(--color-background,#f8f9fb)!important}.placeholderTable{width:100%}.tdFlex{margin:var(--spacing-xxxs,.2rem);vertical-align:top;border:none;flex-direction:row;justify-content:space-between;padding:0;display:flex}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ import { propertyViews as e } from "./propertyViews.esm.js";
3
+ import { outlineIcons as t } from "./outlineIcons.esm.js";
4
+ import { UserInput as n } from "./userInput.esm.js";
5
+ import { QuerySource as r } from "./queryByExample.esm.js";
6
+ import { getNameOfPodOwner as i } from "../profileUtils/ownerProfile.esm.js";
7
+ import a from "../icons/person.esm.js";
8
+ import o from "../icons/friends.esm.js";
9
+ import s from "../icons/folder.esm.js";
10
+ import c from "../icons/dashboard.esm.js";
11
+ import * as l from "solid-ui";
12
+ import { authSession as u, authn as d, store as f } from "solid-logic";
13
+ import * as p from "pane-registry";
14
+ import * as m from "rdflib";
15
+ //#region src/outline/manager.js
16
+ /* istanbul ignore file */
17
+ var h = a, g = o, _ = s, v = c;
18
+ function y(a) {
19
+ let o = a.dom;
20
+ this.document = a.dom, this.context = a, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
21
+ let s = this, c = this, y = [];
22
+ this.selection = y, this.ancestor = l.utils.ancestor, this.sparql = m.UpdateManager, this.kb = f;
23
+ let b = f, x = f.fetcher;
24
+ o.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
25
+ let S = this.outlineElement;
26
+ this.init = function() {
27
+ let e = k();
28
+ e.outline = this;
29
+ }, this.getLayoutMode = function() {
30
+ let e = this.context?.environment?.layout;
31
+ if (e === "mobile" || e === "desktop") return e;
32
+ if (typeof window < "u" && window.matchMedia) {
33
+ let e = Math.round(Math.min(window.innerWidth, window.visualViewport?.width || window.innerWidth)), t = window.matchMedia("(pointer: coarse)").matches || navigator.maxTouchPoints > 0;
34
+ return e <= 768 || t && e <= 1024 ? "mobile" : "desktop";
35
+ }
36
+ return "desktop";
37
+ }, C.lastkbsize = 0;
38
+ function C(e) {
39
+ let t = [];
40
+ for (let e = arguments.length - 1; e > 0; e--) t[e - 1] = arguments[e];
41
+ let n = (/* @__PURE__ */ new Date()).getTime(), r = e.apply(e, t), i = (/* @__PURE__ */ new Date()).getTime();
42
+ return l.log.info("BENCHMARK: kb delta: " + (b.statements.length - C.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), C.lastkbsize = b.statements.length, r;
43
+ }
44
+ function ee(e, n, r) {
45
+ let i = l.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, o);
46
+ return i.addEventListener("click", ue), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
47
+ }
48
+ this.appendAccessIcons = function(e, t, n) {
49
+ if (n.termType !== "NamedNode") return;
50
+ let r = e.uris(n);
51
+ r.sort();
52
+ let i = null;
53
+ for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], c.appendAccessIcon(t, i));
54
+ }, this.appendAccessIcon = function(e, n) {
55
+ if (!n) return "";
56
+ let r = m.uri.docpart(n);
57
+ if (r.slice(0, 5) !== "http:") return "";
58
+ let i = x.getState(r), a, s, c;
59
+ switch (i) {
60
+ case "unrequested":
61
+ a = t.src.icon_unrequested, s = "fetch", c = le;
62
+ break;
63
+ case "requested":
64
+ a = t.src.icon_requested, s = "fetching", c = K;
65
+ break;
66
+ case "fetched":
67
+ a = t.src.icon_fetched, c = ce, s = "loaded";
68
+ break;
69
+ case "failed":
70
+ a = t.src.icon_failed, s = "failed", c = K;
71
+ break;
72
+ case "unpermitted":
73
+ a = t.src.icon_failed, c = K, s = "no perm";
74
+ break;
75
+ case "unfetchable":
76
+ a = t.src.icon_failed, c = K, s = "cannot fetch";
77
+ break;
78
+ default:
79
+ l.log.error("?? state = " + i);
80
+ break;
81
+ }
82
+ let u = l.utils.AJARImage(a, s, t.tooltips[a].replace(/[Tt]his resource/, r), o);
83
+ return u.setAttribute("uri", n), u.addEventListener("click", c), ae(u, r), e.appendChild(u), u;
84
+ }, this.outlineObjectTD = function(e, t, n, r) {
85
+ let i = o.createElement("td");
86
+ return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), i.style.margin = "0.2em", e ? (i.style.border = "none", i.style.padding = "0", i.style.verticalAlign = "top", (e.termType === "NamedNode" || e.termType === "BlankNode" || e.termType === "Literal" && e.value.slice && (e.value.slice(0, 6) === "ftp://" || e.value.slice(0, 8) === "https://" || e.value.slice(0, 7) === "http://")) && (i.setAttribute("about", e.toNT()), i.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, o)).addEventListener("click", oe)), i.setAttribute("class", "obj"), b.whether(e, l.ns.rdf("type"), l.ns.link("Request")) && (i.className = "undetermined"), t ||= pe, i.appendChild(t(e)), n && ee(i, e, n), i.tabulatorSelect = function() {
87
+ W(this, !0);
88
+ }, i.tabulatorDeselect = function() {
89
+ W(this, !1);
90
+ }, i.addEventListener("click", q), i) : (i.textContent = "No object available.", i);
91
+ }, this.outlinePredicateTD = function(e, n, r, i) {
92
+ let a = o.createElement("TD");
93
+ a.setAttribute("about", e.toNT()), a.setAttribute("class", i ? "pred internal" : "pred");
94
+ let s;
95
+ switch (e.termType) {
96
+ case "BlankNode":
97
+ a.className = "undetermined";
98
+ break;
99
+ case "NamedNode":
100
+ s = l.utils.predicateLabelForXML(e, r);
101
+ break;
102
+ case "Collection": s = l.utils.predicateLabelForXML(e.elements[0], r);
103
+ }
104
+ s = s ? s.slice(0, 1).toUpperCase() + s.slice(1) : "...";
105
+ let c = o.createElement("TD");
106
+ c.classList.add("labelTD"), c.setAttribute("notSelectable", "true"), c.appendChild(o.createTextNode(s)), a.appendChild(c), c.style.width = "100%", a.appendChild(L.construct(o));
107
+ for (let e in t.termWidgets) {
108
+ if (!n || !n.AJAR_statement) break;
109
+ t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && L.addIcon(a, t.termWidgets[e]);
110
+ }
111
+ return a.tabulatorSelect = function() {
112
+ W(this, !0);
113
+ }, a.tabulatorDeselect = function() {
114
+ W(this, !1);
115
+ }, a.addEventListener("click", q), a;
116
+ };
117
+ async function w(e = {}) {
118
+ console.log("globalAppTabs @@");
119
+ let t = o.createElement("div"), n = d.currentUser();
120
+ if (!n) throw alert("Must be logged in for this"), Error("Not logged in");
121
+ let r = await T(), i = e.selectedTab ? r.find((t) => t.paneName === e.selectedTab || t.tabName === e.selectedTab) : r[0];
122
+ if (!i) return t;
123
+ t.dataset.globalPaneName = i.tabName || i.paneName;
124
+ let a = t.appendChild(o.createElement("div")), s = p.byName(i.paneName), l = a.appendChild(o.createElement("table"));
125
+ return c.GotoSubject(i.subject || n, !0, s, !1, void 0, l), t;
126
+ }
127
+ this.getDashboard = w;
128
+ async function T() {
129
+ let e = d.currentUser();
130
+ if (!e) return [];
131
+ o.createElement("div");
132
+ let t = [{
133
+ paneName: "profile",
134
+ subject: e,
135
+ label: "Your profile",
136
+ icon: h
137
+ }, {
138
+ paneName: "social",
139
+ subject: e,
140
+ label: "Your friends",
141
+ icon: g
142
+ }], [n] = await Promise.all([r()]);
143
+ return t.push(...n), t.push({
144
+ paneName: "home",
145
+ label: "Your dashboard",
146
+ icon: v
147
+ }, {
148
+ paneName: "basicPreferences",
149
+ label: "Your preferences",
150
+ icon: l.icons.iconBase + "noun_Sliders_341315_000000.svg"
151
+ }), t;
152
+ async function r() {
153
+ async function t(e) {
154
+ return await j(e), b.holds(e, Q.rdf("type"), Q.space("Storage"), e.doc()) ? (r.push(e), !0) : !1;
155
+ }
156
+ async function n(e) {
157
+ let n = new URL(e), r = n.pathname;
158
+ for (; r.length;) if (r = r.substring(0, r.lastIndexOf("/")), await t(b.sym(`${n.origin}${r}/`))) return;
159
+ }
160
+ try {
161
+ await b.fetcher.load(e.doc());
162
+ } catch (e) {
163
+ return console.error("Unable to load profile", e), [];
164
+ }
165
+ let r = b.each(e, Q.space("storage"), null, e.doc());
166
+ await Promise.all(r.map(async (e) => {
167
+ await j(e);
168
+ }));
169
+ try {
170
+ await n(new URL(window.location.href).searchParams.get("uri") || window.location.href);
171
+ } catch (e) {
172
+ console.error("cannot load container", e);
173
+ }
174
+ function a(e) {
175
+ let t = [];
176
+ return e.forEach((e) => {
177
+ t.find((t) => t.equals(e)) || t.push(e);
178
+ }), t;
179
+ }
180
+ return r = a(r), r.length ? Promise.all(r.map(async (t, n) => {
181
+ function r(e) {
182
+ return e.uri.split("//")[1].slice(0, -1);
183
+ }
184
+ let a = await i(t, b, x) || "", o = r(e).startsWith(r(t)) ? "Your storage" : a.trim() === "" ? r(t) : a + "'s storage";
185
+ return {
186
+ paneName: "folder",
187
+ tabName: `folder-${n}`,
188
+ label: o,
189
+ subject: t,
190
+ icon: _
191
+ };
192
+ })) : [];
193
+ }
194
+ }
195
+ this.getDashboardItems = T;
196
+ function te() {
197
+ let e = O(), t = k();
198
+ e.innerHTML = "", D(e), E(t);
199
+ }
200
+ u.events.on("logout", te);
201
+ function E(e) {
202
+ e.removeAttribute("hidden"), e.style.display = "";
203
+ }
204
+ function D(e) {
205
+ e.setAttribute("hidden", ""), e.style.display = "none";
206
+ }
207
+ async function ne(e, t = {}) {
208
+ let n = O(), r = k();
209
+ if (n.childNodes.length > 0) {
210
+ let i = n.firstElementChild;
211
+ if (i && t.pane && i.dataset.globalPaneName === t.pane && i.dataset.subject === (e && e.value || "")) {
212
+ D(r), E(n);
213
+ return;
214
+ }
215
+ n.innerHTML = "";
216
+ }
217
+ let i = await w({ selectedTab: t.pane });
218
+ D(r), E(n), n.appendChild(i);
219
+ }
220
+ this.showDashboard = ne;
221
+ function O() {
222
+ return A("GlobalDashboard", "Dashboard");
223
+ }
224
+ function k() {
225
+ return A("OutlineView", "Resource browser");
226
+ }
227
+ function A(e) {
228
+ let t = document.getElementById("app-view") || document.getElementById("MainContent") || document.querySelector("[role=\"main\"]") || document.body;
229
+ if (e === "OutlineView") {
230
+ let e = document.getElementById("OutlineView");
231
+ if (e) return e;
232
+ if (t) {
233
+ let e = document.createElement("table");
234
+ return e.id = "OutlineView", e.classList.add("outline-view"), e.setAttribute("aria-label", "Resource browser"), t.appendChild(e), e;
235
+ }
236
+ }
237
+ return document.getElementById(e) || (() => {
238
+ let n = document.createElement("section");
239
+ return n.id = e, n.setAttribute("aria-label", "Dashboard"), n.classList.add("global-dashboard"), t.appendChild(n);
240
+ })();
241
+ }
242
+ async function j(e) {
243
+ if (!b.any(e, Q.ldp("contains"), void 0, e.doc())) {
244
+ let t = (await b.fetcher.webOperation("GET", e.uri, b.fetcher.initFetchOptions(e.uri, { headers: { accept: "text/turtle" } }))).responseText;
245
+ m.parse(t, b, e.uri, "text/turtle");
246
+ }
247
+ }
248
+ async function M(e, t) {
249
+ e.uri.endsWith("/") && await j(e);
250
+ let n = t.session.paneRegistry, r = n.list.filter((n) => n.label(e, t) && !n.global);
251
+ if (r.length === 0) return [n.byName("internal")];
252
+ let i = await l.login.filterAvailablePanes(r);
253
+ return i.length === 0 ? [r[0]] : n.list.indexOf(r[0]) < n.list.indexOf(i[0]) ? [r[0]].concat(i) : i;
254
+ }
255
+ function re(e, t) {
256
+ return e.find((e) => e.shouldGetFocus && e.shouldGetFocus(t)) || e[0];
257
+ }
258
+ async function ie(e, t, n) {
259
+ async function r(n, r = {}) {
260
+ let s = "width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;", c = "width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px", u = n.appendChild(o.createElement("nav"));
261
+ u.style = "display:flex; justify-content: flex-start; align-items: center;";
262
+ let d = r.hideList ? [] : await M(e, a);
263
+ i.firstPane = t || re(d, e);
264
+ let f = d.indexOf(i.firstPane);
265
+ return d.length !== 1 && d.forEach((t, d) => {
266
+ let p = t.label(e, a), m = "";
267
+ m = t.name === "profile" ? h : t.name === "social" ? g : typeof t.icon == "function" ? t.icon(e, a) : t.icon;
268
+ let _ = l.utils.AJARImage(m, p, p, o);
269
+ m instanceof Promise && m.then((e) => {
270
+ _.setAttribute("src", e);
271
+ }).catch((e) => {
272
+ console.error("Error resolving async icon:", e);
273
+ }), _.style = t === i.firstPane ? s : c, function(t, i) {
274
+ t.addEventListener("click", function(u) {
275
+ let d;
276
+ for (d = n; d.parentNode && d.nodeName !== "TABLE"; d = d.parentNode);
277
+ if (d.nodeName !== "TABLE") throw Error("outline: internal error.");
278
+ let f = function(e) {
279
+ for (let t = d.firstChild; t; t = t.nextSibling) t.pane !== void 0 && (!e || t.pane === e) && (t.paneButton && (t.paneButton.setAttribute("class", "paneHidden"), t.paneButton.style = c), N(t), t.pane.requireQueryButton && d.parentNode.className && p === 1 && o.getElementById("queryButton") && o.getElementById("queryButton").setAttribute("style", "display:none;"));
280
+ };
281
+ t.getAttribute("class") === "paneHidden" ? (u.shiftKey || f(), function(n) {
282
+ let i;
283
+ l.log.info("outline: Rendering pane (2): " + n.name);
284
+ try {
285
+ i = n.render(e, a, r);
286
+ } catch (e) {
287
+ i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
288
+ let t = o.createElement("pre");
289
+ i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
290
+ }
291
+ n.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style");
292
+ let s = d.firstChild.nextSibling, c = o.createElement("tr"), u = c.appendChild(o.createElement("td"));
293
+ u.setAttribute("colspan", "2"), u.style.textAlign = "left", u.style.width = "100%", u.appendChild(i), s ? d.insertBefore(c, s) : d.appendChild(c), c.pane = n, c.paneButton = t;
294
+ }(i), t.setAttribute("class", "paneShown"), t.style = s) : (f(i), t.setAttribute("class", "paneHidden"), t.style = c);
295
+ let p = 0;
296
+ for (let e = d.firstChild; e; e = e.nextSibling) e.pane && e.pane.requireQueryButton && p++;
297
+ }, !1);
298
+ }(_, t), _.setAttribute("class", d === f ? "paneShown" : "paneHidden"), d === f && (i.paneButton = _), u.appendChild(_);
299
+ }), u;
300
+ }
301
+ let i = o.createElement("tr");
302
+ n.hover && i.setAttribute("class", "hoverControl");
303
+ let s = i.appendChild(o.createElement("td"));
304
+ s.setAttribute("style", "margin: 0.2em; border: none; padding-top: 0; padding-bottom: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;background-color: var(--color-background, #F8F9FB);"), s.setAttribute("notSelectable", "true"), s.setAttribute("about", e.toNT()), s.setAttribute("colspan", "2");
305
+ let c = s.appendChild(o.createElement("div"));
306
+ c.style = "display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";
307
+ let u = !!t;
308
+ if (!n.solo && !u) {
309
+ c.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-collapse.png", "collapse", void 0, o)).addEventListener("click", se);
310
+ let t = c.appendChild(o.createElement("h1"));
311
+ t.appendChild(o.createTextNode(l.utils.label(e))), t.style = "font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;background-color: var(--color-background, #F8F9FB);", l.widgets.makeDraggable(t, e);
312
+ }
313
+ return c.appendChild(await r(s, { hideList: u })), i.firstChild.tabulatorSelect = function() {
314
+ W(this, !0);
315
+ }, i.firstChild.tabulatorDeselect = function() {
316
+ W(this, !1);
317
+ }, i;
318
+ }
319
+ function N(e) {
320
+ let t = e.parentNode, n = t.parentNode, r = o.createElement("table");
321
+ r.classList.add("placeholderTable"), n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
322
+ }
323
+ let P = this.propertyTable = function(e, t, n, r) {
324
+ return l.log.debug("Property table for: " + e), e = b.canon(e), t ? (l.log.info("Re-expand: " + t), t) : (t = o.createElement("table"), t.classList.add("tableFullWidth"), ie(e, n, r).then((n) => {
325
+ if (t.appendChild(n), n.firstPane) {
326
+ let i;
327
+ try {
328
+ l.log.info("outline: Rendering pane (1): " + n.firstPane.name), i = n.firstPane.render(e, a, r);
329
+ } catch (e) {
330
+ i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
331
+ let t = o.createElement("pre");
332
+ i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
333
+ }
334
+ let s = o.createElement("tr"), c = s.appendChild(o.createElement("td"));
335
+ c.setAttribute("colspan", "2"), c.style.textAlign = "left", c.style.width = "100%", c.style.backgroundColor = "var(--color-background, #F8F9FB)", c.appendChild(i), n.firstPane.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style"), t.appendChild(s), s.pane = n.firstPane, s.paneButton = n.paneButton;
336
+ }
337
+ }), t);
338
+ };
339
+ function F(e, t, n) {
340
+ let r = e.createElement("TR");
341
+ r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true");
342
+ let i = c.outlinePredicateTD(t.predicate, r, n);
343
+ return r.appendChild(i), r;
344
+ }
345
+ this.propertyTR = F;
346
+ function I(e, t, n, r) {
347
+ if (l.log.debug("Property list length = " + t.length), t.length === 0) return "";
348
+ let i, a, u;
349
+ n ? (i = function(e) {
350
+ return e.subject;
351
+ }, t = t.sort(l.utils.RDFComparePredicateSubject)) : (i = function(e) {
352
+ return e.object;
353
+ }, t = t.sort(l.utils.RDFComparePredicateObject));
354
+ let d = t.length;
355
+ for (a = 0; a < d; a++) {
356
+ let f = t[a];
357
+ if (r && !r(f.predicate, n)) continue;
358
+ let p = F(o, f, n);
359
+ e.appendChild(p);
360
+ let m = p.firstChild, h = $.defaults[f.predicate.uri], g = 0, _ = 0, v = 0;
361
+ for (u = 0; u + a < d && t[a + u].predicate.sameTerm(f.predicate); u++) u > 0 && i(t[a + u]).sameTerm(i(t[a + u - 1])) && g++, i(t[a + u]).lang && s.labeller.LanguagePreference && (_ += 1, i(t[a + u]).lang.indexOf(s.labeller.LanguagePreference) >= 0 && v++);
362
+ if (v > 0 && _ === g + 1) {
363
+ for (let e = a; e <= a + g; e++) if (s.labeller.LanguagePreference && i(t[e]).lang.indexOf(s.labeller.LanguagePreference) >= 0) {
364
+ p.appendChild(c.outlineObjectTD(i(t[e]), h, void 0, f));
365
+ break;
366
+ }
367
+ a += g;
368
+ continue;
369
+ }
370
+ p.appendChild(c.outlineObjectTD(i(f), h, void 0, f)), p.showNobj = function(r) {
371
+ let s = u - g, d = 2 * r < s ? r : s, p = [];
372
+ if (s !== 1) {
373
+ m.setAttribute("rowspan", d === s ? s : r + 1);
374
+ let g;
375
+ d < s && d === 1 && m.setAttribute("rowspan", 2);
376
+ let _ = 0;
377
+ for (g = 1; g < u; g++) if (b.canon(i(t[a + g])).sameTerm(b.canon(i(t[a + g - 1])))) l.log.info("there are duplicates here: %s", t[a + g - 1]);
378
+ else {
379
+ _++, f = t[a + g], h = $.defaults[f.predicate.uri];
380
+ let r = o.createElement("tr");
381
+ r.style.colspan = "1", r.appendChild(c.outlineObjectTD(i(t[a + g]), h, void 0, f)), r.AJAR_statement = f, r.AJAR_inverse = n, e.appendChild(r), _ >= d && (r.style.display = "none", p.push(r));
382
+ }
383
+ d === s && m.setAttribute("rowspan", _ + 1);
384
+ }
385
+ if (d < s) {
386
+ let t = o.createElement("tr"), n = t.appendChild(o.createElement("td"));
387
+ if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.setAttribute("notSelectable", "false"), s > r) {
388
+ let e = o.createElement("a");
389
+ n.appendChild(e);
390
+ let t = (function(e) {
391
+ return e(m, u, g, r);
392
+ })(function(t, n, r, i) {
393
+ return function(n) {
394
+ e.innerHTML = "", n === "none" ? (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", o)), e.appendChild(o.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, o)), t.setAttribute("rowspan", s + 1));
395
+ for (let e = 0; e < p.length; e++) {
396
+ let t = p[e];
397
+ t.style.display = n;
398
+ }
399
+ };
400
+ }), i = "none", a = function(e) {
401
+ return t(i), i = i === "none" ? "" : "none", e && e.stopPropagation(), !1;
402
+ };
403
+ a(), e.addEventListener("click", a, !1);
404
+ }
405
+ e.appendChild(t);
406
+ }
407
+ }, p.showAllobj = function() {
408
+ p.showNobj(u - g);
409
+ }, p.showNobj(10), a += u - 1;
410
+ }
411
+ }
412
+ this.appendPropertyTRs = I;
413
+ let L = {};
414
+ globalThis.termWidget = L, L.construct = function(e) {
415
+ e ||= document;
416
+ let t = e.createElement("TD");
417
+ return t.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), t.setAttribute("class", "iconTD"), t.setAttribute("notSelectable", "true"), t.style.width = "0px", t;
418
+ }, L.addIcon = function(e, t, n) {
419
+ let r = e.childNodes[1];
420
+ if (!r) return;
421
+ let i = r.style.width, a = l.utils.AJARImage(t.src, t.alt, t.tooltip, o);
422
+ i = parseInt(i), i += t.width, r.style.width = i + "px", r.appendChild(a), n && a.addEventListener("click", n);
423
+ }, L.removeIcon = function(e, t) {
424
+ let n = e.childNodes[1], r;
425
+ if (!n) return;
426
+ let i = n.style.width;
427
+ i = parseInt(i), i -= t.width, n.style.width = i + "px";
428
+ for (let e = 0; e < n.childNodes.length; e++) {
429
+ let i = n.childNodes[e], a = i.src;
430
+ try {
431
+ r = o.location.href.split("?")[0];
432
+ } catch (e) {
433
+ console.log(e), r = "";
434
+ }
435
+ a === m.uri.join(t.src, r) && n.removeChild(i);
436
+ }
437
+ }, L.replaceIcon = function(e, t, n, r) {
438
+ L.removeIcon(e, t), L.addIcon(e, n, r);
439
+ };
440
+ function R() {
441
+ this.pat = b.formula(), this.vars = [];
442
+ }
443
+ let z = [];
444
+ z[0] = new R();
445
+ function ae(e, n) {
446
+ l.log.debug("Button callbacks for " + n + " added");
447
+ let r = function(r) {
448
+ return function(i) {
449
+ return i.indexOf("#") >= 0 && console.log("@@ makeIconCallback: Not expecting # in URI whose state changed: " + i), !e || !s.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
450
+ };
451
+ };
452
+ x.addCallback("request", r(t.src.icon_requested)), x.addCallback("done", r(t.src.icon_fetched)), x.addCallback("fail", r(t.src.icon_failed));
453
+ }
454
+ function B(e) {
455
+ let t = e.getAttribute("class");
456
+ return !!(t && t.indexOf("selected") >= 0);
457
+ }
458
+ function V(e) {
459
+ let n = c.targetOf(e).parentNode;
460
+ L.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, H), n.parentNode.parentNode.removeAttribute("optional");
461
+ }
462
+ function H(e) {
463
+ let n = c.targetOf(e).parentNode;
464
+ L.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, V), n.parentNode.parentNode.setAttribute("optional", "true");
465
+ }
466
+ function U(e, n) {
467
+ let r = t.termWidgets.optOn, i = t.termWidgets.optOff;
468
+ for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (t.getAttribute("predTR")) {
469
+ let e = t.getAttribute("parentOfSelected");
470
+ e = e ? parseInt(e) : 0, e === 0 && n > 0 && L.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? V : H), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), L.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
471
+ break;
472
+ } else if (t.previousSibling && t.previousSibling.nodeName === "TR") t = t.previousSibling;
473
+ else break;
474
+ }
475
+ this.statusBarClick = function(e) {
476
+ let t = l.utils.getTarget(e);
477
+ t.label && (window.content.location = t.label);
478
+ }, this.showURI = function(e) {
479
+ e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
480
+ }, this.showSource = function() {
481
+ if (!(typeof sourceWidget > "u")) {
482
+ for (let e in sourceWidget.sources) sourceWidget.sources[e].setAttribute("class", "");
483
+ for (let e = 0; e < y.length; e++) {
484
+ if (!y[e].parentNode) {
485
+ console.log("showSource: EH? no parentNode? " + y[e] + "\n");
486
+ continue;
487
+ }
488
+ let t = y[e].parentNode.AJAR_statement;
489
+ if (!t) continue;
490
+ let n = t.why;
491
+ n && n.uri && sourceWidget.highlight(n, !0);
492
+ }
493
+ }
494
+ }, this.getSelection = function() {
495
+ return y;
496
+ };
497
+ function W(e, n) {
498
+ if (e.nodeName !== "TD") throw l.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
499
+ l.log.debug("pass");
500
+ let r = e.getAttribute("class");
501
+ if (r ||= "", n) {
502
+ r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, 1), y.push(e);
503
+ let n = l.utils.getTerm(e);
504
+ c.showURI(n);
505
+ let i = e.AJAR_statement;
506
+ if (i === void 0 && e.parentNode && (i = e.parentNode.AJAR_statement), i) {
507
+ let n = i.why;
508
+ f.updater.editable(n.uri, b) && r.indexOf("pred") >= 0 && L.addIcon(e, t.termWidgets.addTri);
509
+ }
510
+ } else l.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, -1), r.indexOf("pred") >= 0 && L.removeIcon(e, t.termWidgets.addTri), y = y.filter(function(t) {
511
+ return t === e;
512
+ }), l.log.info("Deselecting " + e.textContent);
513
+ typeof sourceWidget < "u" && c.showSource(), e.setAttribute("class", r);
514
+ }
515
+ function G() {
516
+ let e = y.length;
517
+ for (let t = e - 1; t >= 0; t--) W(y[t], !1);
518
+ y = [];
519
+ }
520
+ this.targetOf = function(e) {
521
+ let t;
522
+ if (e ||= window.event, e.target) t = e.target;
523
+ else if (e.srcElement) t = e.srcElement;
524
+ else return l.log.error("can't get target for event " + e), !1;
525
+ return t.nodeType === 3 && (t = t.parentNode), t;
526
+ }, this.walk = function(e, t) {
527
+ let n = t || y[0], r;
528
+ switch (e) {
529
+ case "down":
530
+ try {
531
+ r = n.parentNode.nextSibling.lastChild;
532
+ } catch {
533
+ this.walk("up");
534
+ return;
535
+ }
536
+ G(), W(r, !0);
537
+ break;
538
+ case "up":
539
+ try {
540
+ r = n.parentNode.previousSibling.lastChild;
541
+ } catch {
542
+ return;
543
+ }
544
+ G(), W(r, !0);
545
+ break;
546
+ case "right":
547
+ if (G(), n.nextSibling || n.lastChild.tagName === "strong") W(n.nextSibling, !0);
548
+ else {
549
+ let e = o.evaluate("table/div/tr/td[2]", n, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
550
+ W(e, !0);
551
+ }
552
+ break;
553
+ case "left":
554
+ if (G(), n.previousSibling && n.previousSibling.className === "undetermined") return W(n.previousSibling, !0), !0;
555
+ W(l.utils.ancestor(n.parentNode, "TD"), !0);
556
+ break;
557
+ case "moveTo":
558
+ G(), W(t, !0);
559
+ break;
560
+ }
561
+ (e === "down" || e === "up") && (r.tabulatorSelect || this.walk(e));
562
+ }, this.OutlinerKeypressPanel = function(e) {
563
+ l.log.info("Key " + e.keyCode + " pressed");
564
+ function t(e) {
565
+ e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
566
+ }
567
+ function n(e) {
568
+ return arguments[3] ? !0 : (u("right", a), t(l.utils.getAbout(b, y[0])), !0);
569
+ }
570
+ let r, i;
571
+ if (l.utils.getTarget(e).tagName === "TEXTAREA" || l.utils.getTarget(e).id === "UserURI" || y.length > 1) return;
572
+ if (y.length === 0) {
573
+ (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", c.focusTd), t(l.utils.getAbout(b, y[0])));
574
+ return;
575
+ }
576
+ let a = y[0];
577
+ switch (x.removeCallback("done", "setSelectedAfterward"), x.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
578
+ case 13:
579
+ if (l.utils.getTarget(e).tagName === "HTML") {
580
+ let e = l.utils.getAbout(b, a);
581
+ r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), e ? s.GotoSubject(e, !0) : i && c.UserInput.Enter(a);
582
+ } else this.UserInput.Keypress(e), this.walk("down"), e.stopPropagation();
583
+ return;
584
+ case 38:
585
+ this.walk("up"), e.stopPropagation(), e.preventDefault();
586
+ break;
587
+ case 40: this.walk("down"), e.stopPropagation(), e.preventDefault();
588
+ }
589
+ if (l.utils.getTarget(e).tagName === "INPUT") return;
590
+ let u;
591
+ switch (e.keyCode) {
592
+ case 46:
593
+ case 8:
594
+ r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), i && (e.preventDefault(), this.UserInput.Delete(a));
595
+ break;
596
+ case 37: {
597
+ if (this.walk("left")) return;
598
+ let e = l.utils.ancestor(a.parentNode, "TD");
599
+ X(a, l.utils.getAbout(b, e));
600
+ break;
601
+ }
602
+ case 39:
603
+ {
604
+ let e = l.utils.getAbout(b, a);
605
+ if (e) {
606
+ if (u = this.walk, a.nextSibling) {
607
+ this.walk("right");
608
+ return;
609
+ }
610
+ a.firstChild.tagName !== "TABLE" && (x.addCallback("done", n), x.addCallback("fail", n), Y(a, e, { pane: p.byName("defaultPane") })), n();
611
+ }
612
+ }
613
+ break;
614
+ case 38:
615
+ case 40: break;
616
+ default: switch (e.charCode) {
617
+ case 99:
618
+ if (e.ctrlKey) {
619
+ c.UserInput.copyToClipboard(c.clipboardAddress, a);
620
+ break;
621
+ }
622
+ break;
623
+ case 118:
624
+ case 112:
625
+ if (e.ctrlKey) {
626
+ c.UserInput.pasteFromClipboard(c.clipboardAddress, a);
627
+ break;
628
+ }
629
+ break;
630
+ default: l.utils.getTarget(e).tagName;
631
+ }
632
+ }
633
+ if (t(l.utils.getAbout(b, y[0])), y[0]) {
634
+ let e = l.utils.findPos(y[0])[1];
635
+ e + y[0].clientHeight > window.scrollY + window.innerHeight && l.utils.getEyeFocus(y[0], !0, !0, window), e < window.scrollY + 54 && l.utils.getEyeFocus(y[0], !0, void 0, window);
636
+ }
637
+ }, this.OutlinerMouseclickPanel = function(e) {
638
+ switch (c.UserInput._tabulatorMode) {
639
+ case 0:
640
+ de(e);
641
+ break;
642
+ case 1:
643
+ c.UserInput.Click(e);
644
+ break;
645
+ default:
646
+ }
647
+ };
648
+ function oe(e) {
649
+ let t = c.targetOf(e), n = t.parentNode, r = l.utils.getAbout(b, t), i = e.altKey ? p.byName("internal") : void 0;
650
+ e.shiftKey ? Z(n, r, i) : e.altKey ? Y(n, r, {
651
+ pane: p.byName("internal"),
652
+ immediate: !0
653
+ }) : Y(n, r);
654
+ }
655
+ function se(e) {
656
+ let t = c.targetOf(e), n = l.utils.getAbout(b, t), r = e.altKey ? p.byName("internal") : void 0, i = t.parentNode.parentNode;
657
+ X(i, n, r);
658
+ }
659
+ function K(e) {
660
+ let t = c.targetOf(e).getAttribute("uri");
661
+ e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
662
+ }
663
+ function ce(e) {
664
+ let t = c.targetOf(e).getAttribute("uri");
665
+ e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
666
+ }
667
+ function le(e) {
668
+ let t = c.targetOf(e).getAttribute("uri");
669
+ x.fetch(m.uri.docpart(t));
670
+ }
671
+ function ue(e) {
672
+ let t = c.targetOf(e), n = t.node;
673
+ n.childNodes.length > 1 && (n = t.parentNode), N(n);
674
+ }
675
+ function q(e) {
676
+ if (c.UserInput._tabulatorMode) return c.UserInput.Click(e);
677
+ let t = c.targetOf(e), n;
678
+ for (n = l.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = l.utils.ancestor(n.parentNode, "TD"));
679
+ if (!n) return;
680
+ let r = B(n);
681
+ if (l.log.debug("Was node selected before: " + r), e.altKey) W(n, !B(n));
682
+ else if (e.shiftKey) W(n, !0);
683
+ else {
684
+ if (G(), c.UserInput.clearInputAndSave(e), W(n, !0), e.detail === 2) {
685
+ e.stopPropagation();
686
+ return;
687
+ }
688
+ let t;
689
+ if (n.parentNode && (t = n.parentNode.AJAR_statement), !t) return;
690
+ let i = t.why, a = f.updater.editable(i.uri, b);
691
+ r && a && c.UserInput.Click(e, y[0]);
692
+ }
693
+ l.log.debug("Was node selected after: " + B(n) + ", count=" + y.length), e.stopPropagation();
694
+ }
695
+ function de(e) {
696
+ l.log.info("@TabulatorMousedown, dom.location is now " + o.location);
697
+ let n = c.targetOf(e);
698
+ if (!n) return;
699
+ let r = n.tagName;
700
+ r === "INPUT" || r === "TEXTAREA" || (c.UserInput.clearMenu(), c.UserInput.lastModified && c.UserInput.lastModified.parentNode.nextSibling && c.UserInput.backOut(), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices && n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_add_triple) && c.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && c.UserInput.clearMenu(), e && e.stopPropagation());
701
+ }
702
+ function J(e) {
703
+ o.title = l.utils.label(e), o.location.href.startsWith(e.site().uri);
704
+ }
705
+ function Y(e, t, n) {
706
+ n ||= {};
707
+ let r = n.pane, i = !!n.already, a = n.immediate;
708
+ l.log.info("@outlineExpand, dom is now " + o.location), x.removeCallback("done", "expand"), x.removeCallback("fail", "expand");
709
+ let s = b.canon(t);
710
+ function u() {
711
+ if (s = b.canon(s), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
712
+ let t;
713
+ if (l.log.info("@@ REPAINTING "), !i) t = P(s, void 0, r, n);
714
+ else {
715
+ for (l.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (l.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
716
+ t = P(s, t, r, n);
717
+ }
718
+ i = !0, l.utils.ancestor(e, "TABLE") && l.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", l.utils.emptyNode(e).appendChild(t), c.focusTd = e, l.log.debug("expand: Node for " + s + " expanded");
719
+ let a = b.each(s, l.ns.rdfs("seeAlso"));
720
+ for (let e = 0; e < a.length; e++) e === 25 && l.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + s), x.lookUpThing(a[e], s);
721
+ }
722
+ function d(e) {
723
+ if (arguments[3]) return !0;
724
+ let t = b.canon(s);
725
+ l.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
726
+ let n = b.sym(m.uri.docpart(e));
727
+ if (e.indexOf("#") >= 0) throw Error("Internal error: hash in " + e);
728
+ return function() {
729
+ if (!t.uri) return !0;
730
+ let r = b.uris(t);
731
+ if (!r) return !1;
732
+ for (let t = 0; t < r.length; t++) for (let n = m.uri.docpart(r[t]); n; n = b.HTTPRedirects[n]) if (e === n) return !0;
733
+ return !!b.anyStatementMatching(t, void 0, void 0, n);
734
+ }() ? (l.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), u(), !1) : !0;
735
+ }
736
+ n.solo && J(s), l.log.debug("outlineExpand: dereferencing " + s);
737
+ let f = o.createElement("span");
738
+ e.appendChild(f), x.addCallback("done", d), x.addCallback("fail", d);
739
+ let p = [];
740
+ if (s.uri && s.uri.split(":")[0] === "rdf") {
741
+ u();
742
+ return;
743
+ }
744
+ for (let e = 0; e < p.length; e++) if (p[e](s) === void 0) {
745
+ u(), l.log.debug("outline 1815"), (void 0)[1] && S.removeChild(S.lastChild);
746
+ return;
747
+ }
748
+ if (s.uri && !a && !l.widgets.isAudio(s) && !l.widgets.isVideo(s)) {
749
+ let t = s.doc() && s.doc().uri ? s.doc().uri : "" + s.doc(), r = function(e) {
750
+ let t = !!(s && s.uri && s.site && s.site().uri === s.uri);
751
+ return e === 403 ? t ? "This root resource is not accessible with your current permissions. Try logging in with an authorized account or opening a public profile document." : "This resource is not accessible with your current permissions." : t ? "This root resource is not publicly readable. Try logging in or opening a profile document." : "This resource is not publicly readable. Try logging in or opening a different public resource.";
752
+ }, i = function(e, t) {
753
+ let n = typeof e == "string" ? e : String(e || ""), r = t?.status || t?.response?.status;
754
+ return r === 401 || r === 403 ? r : n.includes("status: 403") || n.includes("status 403") ? 403 : n.includes("status: 401") || n.includes("status 401") ? 401 : null;
755
+ }, a = function(n, a) {
756
+ if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
757
+ let s = i(n, a), c = s ? r(s) : n, u = l.widgets.errorMessageBlock(o, c, "#fee", a instanceof Error ? a : void 0);
758
+ t && u.setAttribute("data-outline-error-for", t), e.appendChild(u);
759
+ }, c = !1, d = x.nowOrWhenFetched(s.doc(), void 0, function(e, t) {
760
+ e ? (x.lookUpThing(s), u(), n.solo && J(s)) : (c = !0, a(t, void 0));
761
+ });
762
+ d && typeof d.catch == "function" && d.catch(function(e) {
763
+ c || (c = !0, a(e, e));
764
+ });
765
+ } else u();
766
+ }
767
+ function X(e, t) {
768
+ let n = l.utils.ancestor(e, "TR");
769
+ n = l.utils.ancestor(n.parentNode, "TR");
770
+ let r;
771
+ n && (r = n.AJAR_statement);
772
+ let i;
773
+ for (i = e.parentNode; i.tagName !== "TD"; i = i.parentNode) if (i === void 0) {
774
+ alert("Not enclosed in TD!");
775
+ return;
776
+ }
777
+ l.log.debug("Collapsing subject " + t);
778
+ let a;
779
+ r && (l.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), l.log.debug("view= " + a);
780
+ let o;
781
+ i.parentNode.parentNode.id === "outline" && (o = i.parentNode), c.replaceTD(c.outlineObjectTD(t, a, o, r), i);
782
+ }
783
+ this.replaceTD = function(e, t) {
784
+ let n;
785
+ B(t) && (n = !0);
786
+ for (let e = y.length - 1; e > -1; e--) for (let n = y[e]; n.parentNode; n = n.parentNode) n === t && W(y[e], !1);
787
+ t.parentNode.replaceChild(e, t), n && W(e, !0);
788
+ };
789
+ function Z(e, t) {
790
+ let n = null;
791
+ for (let t = e.parentNode; t; t = t.parentNode) l.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
792
+ l.utils.emptyNode(n).appendChild(P(t)), J(t), n.setAttribute("about", t.toNT());
793
+ }
794
+ s.outlineRefocus = Z, this.GotoFormURI_enterKey = function(e) {
795
+ e.keyCode === 13 && s.GotoFormURI(e);
796
+ }, this.GotoFormURI = function(e) {
797
+ fe(o.getElementById("UserURI").value);
798
+ };
799
+ function fe(e) {
800
+ let t = b.sym(e);
801
+ this.GotoSubject(t, !0);
802
+ }
803
+ this.GotoURIinit = function(e) {
804
+ let t = b.sym(e);
805
+ this.GotoSubject(t);
806
+ }, this.GotoSubject = function(e, t, n, r, i, a) {
807
+ a ||= k("OutlineView"), r && (l.utils.emptyNode(a), a.style.width = "100%");
808
+ function s() {
809
+ let t = o.createElement("TR");
810
+ t.style.verticalAlign = "top", a.appendChild(t);
811
+ let n = c.outlineObjectTD(e, void 0, t);
812
+ return t.appendChild(n), n;
813
+ }
814
+ let u = s();
815
+ if (r && J(e), t) {
816
+ Y(u, e, {
817
+ pane: n,
818
+ solo: r
819
+ });
820
+ let t = u.parentNode;
821
+ l.utils.getEyeFocus(t, !1, void 0, window);
822
+ }
823
+ if (r && o && o.defaultView && o.defaultView.history && document.location.href !== e.uri) {
824
+ let t = n ? { paneName: n.name } : {};
825
+ try {
826
+ let n = new URL(document.location.href), r = new URL(e.uri, document.location.href);
827
+ n.origin === r.origin && o.defaultView.history.pushState(t, e.uri, e.uri);
828
+ } catch (e) {
829
+ console.log(e);
830
+ }
831
+ }
832
+ return e;
833
+ };
834
+ let Q = l.ns, $ = e(o);
835
+ function pe(e) {
836
+ let n;
837
+ if (e.termType === "Literal") {
838
+ let t = {
839
+ integer: "text-align: right;",
840
+ decimal: "text-align: '.';",
841
+ double: "text-align: '.';"
842
+ };
843
+ n = o.createElement("span"), n.textContent = e.value;
844
+ let r = "";
845
+ if (e.datatype && e.datatype.uri) {
846
+ let n = l.ns.xsd("").uri;
847
+ e.datatype.uri.slice(0, n.length) === n && (r = t[e.datatype.uri.slice(n.length)]);
848
+ }
849
+ n.setAttribute("style", r || "white-space: pre-wrap;");
850
+ } else if (e.termType === "NamedNode" || e.termType === "BlankNode") if (n = o.createElement("span"), n.setAttribute("about", e.toNT()), c.appendAccessIcons(b, n, e), e.termType === "NamedNode") if (e.uri.slice(0, 4) === "tel:") {
851
+ let r = e.uri.slice(4), i = o.createElement("a");
852
+ n.appendChild(o.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(l.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, o)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon");
853
+ } else {
854
+ n.appendChild(o.createTextNode(l.utils.label(e)));
855
+ let t = l.widgets.linkIcon(o, e);
856
+ n.appendChild(t), l.widgets.makeDraggable(n, e);
857
+ }
858
+ else n.appendChild(o.createTextNode(l.utils.label(e)));
859
+ else if (e.termType === "Collection") {
860
+ n = o.createElement("table"), n.classList.add("tableFullWidth"), n.setAttribute("about", e.toNT());
861
+ for (let t = 0; t < e.elements.length; t++) {
862
+ let r = e.elements[t], i = n.appendChild(o.createElement("tr")), a = i.appendChild(o.createElement("td"));
863
+ a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(c.outlineObjectTD(r));
864
+ }
865
+ } else e.termType === "Graph" ? (n = p.byName("dataContentPane").statementsAsTables(e.statements, a), n.setAttribute("class", "nestedFormula")) : (l.log.error("Object " + e + " has unknown term type: " + e.termType), n = o.createTextNode("[unknownTermType:" + e.termType + "]"));
866
+ return l.log.debug("contents: " + n.innerHTML), n;
867
+ }
868
+ return this.createTabURI = function() {
869
+ o.getElementById("UserURI").value = o.URL + "?uri=" + o.getElementById("UserURI").value;
870
+ }, this.UserInput.setSelected = W, this.UserInput.deselectAll = G, this.UserInput.views = $, this.outlineExpand = Y, this;
871
+ }
872
+ //#endregion
873
+ export { y as default };
874
+
875
+ //# sourceMappingURL=manager2.esm.js.map