solid-panes 4.4.2-7 → 4.5.0

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 (534) hide show
  1. package/README.md +40 -10
  2. package/dist/0314353e28ce6e5539af.svg +9 -0
  3. package/dist/04567ff683933c35c465.png +0 -0
  4. package/dist/10163fd9b5a0e00d63a0.png +0 -0
  5. package/dist/1234dcb2eec2e45f252b.png +0 -0
  6. package/dist/20899934157df4db56cb.png +0 -0
  7. package/dist/33760bf79f097f449da5.png +0 -0
  8. package/dist/4cceba29ab33b1ddd9bb.svg +6 -0
  9. package/dist/578d2b6ed32e7624164e.png +0 -0
  10. package/dist/5f62a5b2b7e99b9640c7.png +0 -0
  11. package/dist/6525766ecd288ec60129.png +0 -0
  12. package/dist/7800be6f6c4b5b0f4f20.png +0 -0
  13. package/dist/7b7538c6f6b317968009.svg +9 -0
  14. package/dist/92d03142abe6efc0b42d.svg +6 -0
  15. package/dist/976473cf5fe24d657d4b.png +0 -0
  16. package/dist/RDFXMLPane.css +70 -0
  17. package/dist/RDFXMLPane.d.ts +3 -2
  18. package/dist/RDFXMLPane.js +100 -0
  19. package/dist/argument/argumentPane.js +60 -0
  20. package/dist/attach/attachPane.js +393 -0
  21. package/dist/audio/audioPane.js +181 -0
  22. package/dist/bda84f59e7216675a208.png +0 -0
  23. package/dist/cd68e8f3990ba8b2139e.png +0 -0
  24. package/dist/classInstancePane.js +91 -0
  25. package/dist/dashboard/basicPreferences.d.ts +1 -1
  26. package/dist/dashboard/basicPreferences.js +147 -0
  27. package/dist/dashboard/dashboardPane.d.ts +1 -1
  28. package/dist/dashboard/dashboardPane.js +73 -0
  29. package/dist/dashboard/homepage.d.ts +1 -1
  30. package/dist/dashboard/homepage.js +42 -0
  31. package/dist/dataContentPane.css +271 -0
  32. package/dist/dataContentPane.d.ts +3 -2
  33. package/dist/dataContentPane.js +226 -0
  34. package/dist/defaultPane.css +97 -0
  35. package/dist/defaultPane.d.ts +3 -2
  36. package/dist/defaultPane.js +81 -0
  37. package/dist/dokieli/dokieliPane.js +74 -0
  38. package/dist/dokieli/{new.cjs.js → new.js} +10 -4
  39. package/dist/e7074a7e2cb69e51cfd3.png +0 -0
  40. package/dist/f3772696fb7ee53c23d8.png +0 -0
  41. package/dist/form/formPane.css +120 -0
  42. package/dist/form/pane.d.ts +2 -1
  43. package/dist/form/pane.js +250 -0
  44. package/dist/home/homePane.d.ts +1 -1
  45. package/dist/home/homePane.js +74 -0
  46. package/dist/humanReadablePane.css +129 -0
  47. package/dist/humanReadablePane.d.ts +3 -2
  48. package/dist/humanReadablePane.js +243 -0
  49. package/dist/icons/clock.svg +7 -0
  50. package/dist/icons/comment.svg +6 -0
  51. package/dist/icons/dashboard.svg +9 -0
  52. package/dist/icons/downArrow.svg +6 -0
  53. package/dist/icons/folder.svg +6 -0
  54. package/dist/icons/friends.svg +9 -0
  55. package/dist/icons/help.svg +8 -0
  56. package/dist/icons/iconHelper.js +23 -0
  57. package/dist/icons/menu.svg +8 -0
  58. package/dist/icons/person.svg +6 -0
  59. package/dist/icons/personInCircle.svg +8 -0
  60. package/dist/icons/sharing.svg +10 -0
  61. package/dist/icons/signOut.svg +8 -0
  62. package/dist/icons/signUp.svg +9 -0
  63. package/dist/icons/star.svg +3 -0
  64. package/dist/imagePane.css +4 -0
  65. package/dist/imagePane.d.ts +3 -2
  66. package/dist/imagePane.js +67 -0
  67. package/dist/index.d.ts +4 -4
  68. package/dist/index.js +123 -0
  69. package/dist/internal/internalPane.css +14 -0
  70. package/dist/internal/internalPane.d.ts +2 -1
  71. package/dist/internal/internalPane.js +183 -0
  72. package/dist/mainPage/footer.d.ts +15 -0
  73. package/dist/mainPage/footer.d.ts.map +1 -0
  74. package/dist/mainPage/footer.js +29 -0
  75. package/dist/mainPage/header.d.ts +15 -1
  76. package/dist/mainPage/header.d.ts.map +1 -1
  77. package/dist/mainPage/header.js +203 -0
  78. package/dist/mainPage/index.d.ts +15 -3
  79. package/dist/mainPage/index.d.ts.map +1 -1
  80. package/dist/mainPage/index.js +78 -0
  81. package/dist/mainPage/menu.css +243 -0
  82. package/dist/mainPage/menu.d.ts +7 -0
  83. package/dist/mainPage/menu.d.ts.map +1 -0
  84. package/dist/mainPage/menu.js +436 -0
  85. package/dist/microblogPane/mbStyle.css +267 -0
  86. package/dist/microblogPane/microblogPane.js +1031 -0
  87. package/dist/n3Pane.css +49 -0
  88. package/dist/n3Pane.d.ts +3 -2
  89. package/dist/n3Pane.js +88 -0
  90. package/dist/outline/context.d.ts +3 -3
  91. package/dist/outline/context.js +21 -0
  92. package/dist/outline/manager.css +78 -0
  93. package/dist/outline/manager.js +2115 -0
  94. package/dist/outline/outlineIcons.js +126 -0
  95. package/dist/outline/propertyViews.js +43 -0
  96. package/dist/outline/queryByExample.js +285 -0
  97. package/dist/outline/userInput.js +1821 -0
  98. package/dist/outline/viewAsImage.js +14 -0
  99. package/dist/outline/viewAsMbox.js +21 -0
  100. package/dist/pad/padPane.css +40 -0
  101. package/dist/pad/padPane.d.ts +2 -1
  102. package/dist/pad/padPane.js +421 -0
  103. package/dist/playlist/playlistPane.js +119 -0
  104. package/dist/profileUtils/ownerProfile.d.ts +5 -0
  105. package/dist/profileUtils/ownerProfile.d.ts.map +1 -0
  106. package/dist/profileUtils/ownerProfile.js +84 -0
  107. package/dist/registerPanes.js +145 -0
  108. package/dist/schedule/schedulePane.css +294 -0
  109. package/dist/schedule/schedulePane.d.ts +4 -2
  110. package/dist/schedule/schedulePane.js +1022 -0
  111. package/dist/sharing/sharingPane.js +48 -0
  112. package/dist/slideshow/slideshowPane.js +79 -0
  113. package/dist/social/editProfileDetails.d.ts +2 -1
  114. package/dist/social/editProfileDetails.js +362 -0
  115. package/dist/social/{icons.esm.js → icons.js} +18 -12
  116. package/dist/social/socialPane.css +1464 -0
  117. package/dist/social/socialPane.d.ts +3 -2
  118. package/dist/social/socialPane.js +651 -0
  119. package/dist/social/socialSections.d.ts +2 -2
  120. package/dist/social/socialSections.js +393 -0
  121. package/dist/social/spinner.js +13 -0
  122. package/dist/social/triage.d.ts +2 -2
  123. package/dist/social/triage.js +79 -0
  124. package/dist/solid-panes.js +84629 -0
  125. package/dist/solid-panes.js.map +1 -0
  126. package/dist/solid-panes.min.js +3933 -0
  127. package/dist/solid-panes.min.js.map +1 -0
  128. package/dist/styles/tabbedtab.css +1066 -0
  129. package/dist/styles/utilities.css +5 -0
  130. package/dist/tabbed/tabbedPane.d.ts +1 -1
  131. package/dist/tabbed/tabbedPane.js +59 -0
  132. package/dist/tableViewPane.js +56 -0
  133. package/dist/transaction/pane.js +477 -0
  134. package/dist/transaction/period.js +323 -0
  135. package/dist/trip/tripPane.js +174 -0
  136. package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
  137. package/dist/trustedApplications/trustedApplications.dom.js +145 -0
  138. package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
  139. package/dist/trustedApplications/trustedApplications.utils.js +23 -0
  140. package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
  141. package/dist/trustedApplications/trustedApplications.view.js +55 -0
  142. package/dist/ui/pane.js +146 -0
  143. package/dist/versionInfo.js +41 -0
  144. package/dist/video/videoPane.js +42 -0
  145. package/package.json +66 -51
  146. package/dist/RDFXMLPane2.cjs.js +0 -3
  147. package/dist/RDFXMLPane2.cjs.js.map +0 -1
  148. package/dist/RDFXMLPane2.esm.js +0 -55
  149. package/dist/RDFXMLPane2.esm.js.map +0 -1
  150. package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
  151. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +0 -2
  152. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +0 -1
  153. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +0 -11
  154. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +0 -1
  155. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +0 -2
  156. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +0 -1
  157. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +0 -11
  158. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +0 -1
  159. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +0 -2
  160. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +0 -1
  161. package/dist/_virtual/~icons/lucide/folder-open.esm.js +0 -11
  162. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +0 -1
  163. package/dist/_virtual/~icons/lucide/globe.cjs.js +0 -2
  164. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +0 -1
  165. package/dist/_virtual/~icons/lucide/globe.esm.js +0 -11
  166. package/dist/_virtual/~icons/lucide/globe.esm.js.map +0 -1
  167. package/dist/_virtual/~icons/lucide/help-circle.cjs.js +0 -2
  168. package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +0 -1
  169. package/dist/_virtual/~icons/lucide/help-circle.esm.js +0 -11
  170. package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +0 -1
  171. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +0 -2
  172. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +0 -1
  173. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +0 -11
  174. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +0 -1
  175. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +0 -2
  176. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +0 -1
  177. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +0 -11
  178. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +0 -1
  179. package/dist/_virtual/~icons/lucide/pencil.cjs.js +0 -2
  180. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +0 -1
  181. package/dist/_virtual/~icons/lucide/pencil.esm.js +0 -11
  182. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +0 -1
  183. package/dist/_virtual/~icons/lucide/settings-2.cjs.js +0 -2
  184. package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +0 -1
  185. package/dist/_virtual/~icons/lucide/settings-2.esm.js +0 -11
  186. package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +0 -1
  187. package/dist/_virtual/~icons/lucide/share-2.cjs.js +0 -2
  188. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +0 -1
  189. package/dist/_virtual/~icons/lucide/share-2.esm.js +0 -11
  190. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +0 -1
  191. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
  192. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
  193. package/dist/_virtual/~icons/lucide/trash-2.esm.js +0 -11
  194. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
  195. package/dist/_virtual/~icons/lucide/user.cjs.js +0 -2
  196. package/dist/_virtual/~icons/lucide/user.cjs.js.map +0 -1
  197. package/dist/_virtual/~icons/lucide/user.esm.js +0 -11
  198. package/dist/_virtual/~icons/lucide/user.esm.js.map +0 -1
  199. package/dist/_virtual/~icons/lucide/users.cjs.js +0 -2
  200. package/dist/_virtual/~icons/lucide/users.cjs.js.map +0 -1
  201. package/dist/_virtual/~icons/lucide/users.esm.js +0 -11
  202. package/dist/_virtual/~icons/lucide/users.esm.js.map +0 -1
  203. package/dist/audio/audioPane.cjs.js +0 -2
  204. package/dist/audio/audioPane.cjs.js.map +0 -1
  205. package/dist/audio/audioPane.esm.js +0 -99
  206. package/dist/audio/audioPane.esm.js.map +0 -1
  207. package/dist/classInstancePane.cjs.js +0 -2
  208. package/dist/classInstancePane.cjs.js.map +0 -1
  209. package/dist/classInstancePane.esm.js +0 -50
  210. package/dist/classInstancePane.esm.js.map +0 -1
  211. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +0 -14
  212. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +0 -1
  213. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +0 -19
  214. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +0 -1
  215. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +0 -292
  216. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +0 -1
  217. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +0 -2
  218. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +0 -1
  219. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +0 -7
  220. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +0 -1
  221. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +0 -22
  222. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +0 -1
  223. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +0 -15
  224. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +0 -1
  225. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +0 -266
  226. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +0 -1
  227. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +0 -2
  228. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +0 -1
  229. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +0 -7
  230. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +0 -1
  231. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +0 -19
  232. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +0 -1
  233. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +0 -19
  234. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +0 -1
  235. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +0 -321
  236. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +0 -1
  237. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +0 -2
  238. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +0 -1
  239. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +0 -7
  240. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +0 -1
  241. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +0 -13
  242. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +0 -1
  243. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +0 -36
  244. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +0 -1
  245. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +0 -468
  246. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +0 -1
  247. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +0 -2
  248. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +0 -1
  249. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +0 -7
  250. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +0 -1
  251. package/dist/components/file-explorer-header/helper.cjs.js +0 -2
  252. package/dist/components/file-explorer-header/helper.cjs.js.map +0 -1
  253. package/dist/components/file-explorer-header/helper.d.ts +0 -15
  254. package/dist/components/file-explorer-header/helper.d.ts.map +0 -1
  255. package/dist/components/file-explorer-header/helper.esm.js +0 -64
  256. package/dist/components/file-explorer-header/helper.esm.js.map +0 -1
  257. package/dist/components/file-explorer-header/types.d.ts +0 -2
  258. package/dist/components/file-explorer-header/types.d.ts.map +0 -1
  259. package/dist/components/header/Header.cjs.js +0 -19
  260. package/dist/components/header/Header.cjs.js.map +0 -1
  261. package/dist/components/header/Header.d.ts +0 -8
  262. package/dist/components/header/Header.d.ts.map +0 -1
  263. package/dist/components/header/Header.esm.js +0 -228
  264. package/dist/components/header/Header.esm.js.map +0 -1
  265. package/dist/components/header/Header.styles.cjs.js +0 -2
  266. package/dist/components/header/Header.styles.cjs.js.map +0 -1
  267. package/dist/components/header/Header.styles.esm.js +0 -7
  268. package/dist/components/header/Header.styles.esm.js.map +0 -1
  269. package/dist/components/header/index.cjs.js +0 -1
  270. package/dist/components/header/index.d.ts +0 -4
  271. package/dist/components/header/index.d.ts.map +0 -1
  272. package/dist/components/header/index.esm.js +0 -1
  273. package/dist/components/navbar/Navbar.cjs.js +0 -15
  274. package/dist/components/navbar/Navbar.cjs.js.map +0 -1
  275. package/dist/components/navbar/Navbar.d.ts +0 -14
  276. package/dist/components/navbar/Navbar.d.ts.map +0 -1
  277. package/dist/components/navbar/Navbar.esm.js +0 -232
  278. package/dist/components/navbar/Navbar.esm.js.map +0 -1
  279. package/dist/components/navbar/Navbar.styles.cjs.js +0 -2
  280. package/dist/components/navbar/Navbar.styles.cjs.js.map +0 -1
  281. package/dist/components/navbar/Navbar.styles.esm.js +0 -7
  282. package/dist/components/navbar/Navbar.styles.esm.js.map +0 -1
  283. package/dist/components/navbar/index.cjs.js +0 -1
  284. package/dist/components/navbar/index.d.ts +0 -4
  285. package/dist/components/navbar/index.d.ts.map +0 -1
  286. package/dist/components/navbar/index.esm.js +0 -1
  287. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +0 -16
  288. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +0 -1
  289. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +0 -8
  290. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +0 -1
  291. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +0 -215
  292. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +0 -1
  293. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +0 -18
  294. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +0 -1
  295. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +0 -16
  296. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +0 -1
  297. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +0 -260
  298. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +0 -1
  299. package/dist/dashboard/basicPreferences.cjs.js +0 -2
  300. package/dist/dashboard/basicPreferences.cjs.js.map +0 -1
  301. package/dist/dashboard/basicPreferences.esm.js +0 -70
  302. package/dist/dashboard/basicPreferences.esm.js.map +0 -1
  303. package/dist/dashboard/dashboardPane.cjs.js +0 -2
  304. package/dist/dashboard/dashboardPane.cjs.js.map +0 -1
  305. package/dist/dashboard/dashboardPane.esm.js +0 -7
  306. package/dist/dashboard/dashboardPane.esm.js.map +0 -1
  307. package/dist/dashboard/homepage.cjs.js +0 -2
  308. package/dist/dashboard/homepage.cjs.js.map +0 -1
  309. package/dist/dashboard/homepage.esm.js +0 -26
  310. package/dist/dashboard/homepage.esm.js.map +0 -1
  311. package/dist/dashboard/ontologyData.cjs.js +0 -37
  312. package/dist/dashboard/ontologyData.cjs.js.map +0 -1
  313. package/dist/dashboard/ontologyData.esm.js +0 -6
  314. package/dist/dashboard/ontologyData.esm.js.map +0 -1
  315. package/dist/dashboard/preferencesFormText.cjs.js +0 -20
  316. package/dist/dashboard/preferencesFormText.cjs.js.map +0 -1
  317. package/dist/dashboard/preferencesFormText.esm.js +0 -6
  318. package/dist/dashboard/preferencesFormText.esm.js.map +0 -1
  319. package/dist/dataContentPane2.cjs.js +0 -2
  320. package/dist/dataContentPane2.cjs.js.map +0 -1
  321. package/dist/dataContentPane2.esm.js +0 -109
  322. package/dist/dataContentPane2.esm.js.map +0 -1
  323. package/dist/defaultPane2.cjs.js +0 -2
  324. package/dist/defaultPane2.cjs.js.map +0 -1
  325. package/dist/defaultPane2.esm.js +0 -41
  326. package/dist/defaultPane2.esm.js.map +0 -1
  327. package/dist/dev.d.ts +0 -10
  328. package/dist/dev.d.ts.map +0 -1
  329. package/dist/dokieli/dokieliPane.cjs.js +0 -2
  330. package/dist/dokieli/dokieliPane.cjs.js.map +0 -1
  331. package/dist/dokieli/dokieliPane.esm.js +0 -39
  332. package/dist/dokieli/dokieliPane.esm.js.map +0 -1
  333. package/dist/dokieli/new.cjs.js.map +0 -1
  334. package/dist/dokieli/new.esm.js +0 -6
  335. package/dist/dokieli/new.esm.js.map +0 -1
  336. package/dist/form/pane.cjs.js +0 -4
  337. package/dist/form/pane.cjs.js.map +0 -1
  338. package/dist/form/pane.esm.js +0 -122
  339. package/dist/form/pane.esm.js.map +0 -1
  340. package/dist/home/homePane.cjs.js +0 -2
  341. package/dist/home/homePane.cjs.js.map +0 -1
  342. package/dist/home/homePane.esm.js +0 -35
  343. package/dist/home/homePane.esm.js.map +0 -1
  344. package/dist/humanReadablePane2.cjs.js +0 -2
  345. package/dist/humanReadablePane2.cjs.js.map +0 -1
  346. package/dist/humanReadablePane2.esm.js +0 -123
  347. package/dist/humanReadablePane2.esm.js.map +0 -1
  348. package/dist/icons/folder.cjs.js +0 -2
  349. package/dist/icons/folder.cjs.js.map +0 -1
  350. package/dist/icons/folder.esm.js +0 -6
  351. package/dist/icons/folder.esm.js.map +0 -1
  352. package/dist/icons/friends.cjs.js +0 -2
  353. package/dist/icons/friends.cjs.js.map +0 -1
  354. package/dist/icons/friends.esm.js +0 -6
  355. package/dist/icons/friends.esm.js.map +0 -1
  356. package/dist/icons/person.cjs.js +0 -2
  357. package/dist/icons/person.cjs.js.map +0 -1
  358. package/dist/icons/person.esm.js +0 -6
  359. package/dist/icons/person.esm.js.map +0 -1
  360. package/dist/imagePane2.cjs.js +0 -2
  361. package/dist/imagePane2.cjs.js.map +0 -1
  362. package/dist/imagePane2.esm.js +0 -32
  363. package/dist/imagePane2.esm.js.map +0 -1
  364. package/dist/index.cjs.js +0 -2
  365. package/dist/index.cjs.js.map +0 -1
  366. package/dist/index.esm.js +0 -31
  367. package/dist/index.esm.js.map +0 -1
  368. package/dist/internal/internalPane2.cjs.js +0 -2
  369. package/dist/internal/internalPane2.cjs.js.map +0 -1
  370. package/dist/internal/internalPane2.esm.js +0 -104
  371. package/dist/internal/internalPane2.esm.js.map +0 -1
  372. package/dist/mainPage/header.cjs.js +0 -2
  373. package/dist/mainPage/header.cjs.js.map +0 -1
  374. package/dist/mainPage/header.esm.js +0 -72
  375. package/dist/mainPage/header.esm.js.map +0 -1
  376. package/dist/mainPage/index.cjs.js +0 -2
  377. package/dist/mainPage/index.cjs.js.map +0 -1
  378. package/dist/mainPage/index.esm.js +0 -36
  379. package/dist/mainPage/index.esm.js.map +0 -1
  380. package/dist/mainPage/navbar.cjs.js +0 -2
  381. package/dist/mainPage/navbar.cjs.js.map +0 -1
  382. package/dist/mainPage/navbar.d.ts +0 -3
  383. package/dist/mainPage/navbar.d.ts.map +0 -1
  384. package/dist/mainPage/navbar.esm.js +0 -66
  385. package/dist/mainPage/navbar.esm.js.map +0 -1
  386. package/dist/n3Pane2.cjs.js +0 -3
  387. package/dist/n3Pane2.cjs.js.map +0 -1
  388. package/dist/n3Pane2.esm.js +0 -52
  389. package/dist/n3Pane2.esm.js.map +0 -1
  390. package/dist/outline/context.cjs.js +0 -2
  391. package/dist/outline/context.cjs.js.map +0 -1
  392. package/dist/outline/context.esm.js +0 -18
  393. package/dist/outline/context.esm.js.map +0 -1
  394. package/dist/outline/manager2.cjs.js +0 -2
  395. package/dist/outline/manager2.cjs.js.map +0 -1
  396. package/dist/outline/manager2.esm.js +0 -711
  397. package/dist/outline/manager2.esm.js.map +0 -1
  398. package/dist/outline/outlineIcons.cjs.js +0 -2
  399. package/dist/outline/outlineIcons.cjs.js.map +0 -1
  400. package/dist/outline/outlineIcons.esm.js +0 -10
  401. package/dist/outline/outlineIcons.esm.js.map +0 -1
  402. package/dist/outline/propertyViews.cjs.js +0 -2
  403. package/dist/outline/propertyViews.cjs.js.map +0 -1
  404. package/dist/outline/propertyViews.esm.js +0 -19
  405. package/dist/outline/propertyViews.esm.js.map +0 -1
  406. package/dist/outline/queryByExample.cjs.js +0 -2
  407. package/dist/outline/queryByExample.cjs.js.map +0 -1
  408. package/dist/outline/queryByExample.esm.js +0 -26
  409. package/dist/outline/queryByExample.esm.js.map +0 -1
  410. package/dist/outline/sourcePaneIcon.d.ts +0 -2
  411. package/dist/outline/sourcePaneIcon.d.ts.map +0 -1
  412. package/dist/outline/userInput.cjs.js +0 -61
  413. package/dist/outline/userInput.cjs.js.map +0 -1
  414. package/dist/outline/userInput.esm.js +0 -784
  415. package/dist/outline/userInput.esm.js.map +0 -1
  416. package/dist/outline/viewAsImage.cjs.js +0 -2
  417. package/dist/outline/viewAsImage.cjs.js.map +0 -1
  418. package/dist/outline/viewAsImage.esm.js +0 -10
  419. package/dist/outline/viewAsImage.esm.js.map +0 -1
  420. package/dist/outline/viewAsMbox.cjs.js +0 -2
  421. package/dist/outline/viewAsMbox.cjs.js.map +0 -1
  422. package/dist/outline/viewAsMbox.esm.js +0 -9
  423. package/dist/outline/viewAsMbox.esm.js.map +0 -1
  424. package/dist/pad/padPane2.cjs.js +0 -2
  425. package/dist/pad/padPane2.cjs.js.map +0 -1
  426. package/dist/pad/padPane2.esm.js +0 -173
  427. package/dist/pad/padPane2.esm.js.map +0 -1
  428. package/dist/playlist/playlistPane.cjs.js +0 -2
  429. package/dist/playlist/playlistPane.cjs.js.map +0 -1
  430. package/dist/playlist/playlistPane.esm.js +0 -49
  431. package/dist/playlist/playlistPane.esm.js.map +0 -1
  432. package/dist/registerPanes.cjs.js +0 -2
  433. package/dist/registerPanes.cjs.js.map +0 -1
  434. package/dist/registerPanes.esm.js +0 -46
  435. package/dist/registerPanes.esm.js.map +0 -1
  436. package/dist/schedule/formsForSchedule.cjs.js +0 -117
  437. package/dist/schedule/formsForSchedule.cjs.js.map +0 -1
  438. package/dist/schedule/formsForSchedule.esm.js +0 -6
  439. package/dist/schedule/formsForSchedule.esm.js.map +0 -1
  440. package/dist/schedule/schedulePane2.cjs.js +0 -8
  441. package/dist/schedule/schedulePane2.cjs.js.map +0 -1
  442. package/dist/schedule/schedulePane2.esm.js +0 -385
  443. package/dist/schedule/schedulePane2.esm.js.map +0 -1
  444. package/dist/sharing/sharingPane.cjs.js +0 -2
  445. package/dist/sharing/sharingPane.cjs.js.map +0 -1
  446. package/dist/sharing/sharingPane.esm.js +0 -22
  447. package/dist/sharing/sharingPane.esm.js.map +0 -1
  448. package/dist/slideshow/slideshowPane.cjs.js +0 -2
  449. package/dist/slideshow/slideshowPane.cjs.js.map +0 -1
  450. package/dist/slideshow/slideshowPane.esm.js +0 -46
  451. package/dist/slideshow/slideshowPane.esm.js.map +0 -1
  452. package/dist/social/editProfileDetails.cjs.js +0 -2
  453. package/dist/social/editProfileDetails.cjs.js.map +0 -1
  454. package/dist/social/editProfileDetails.esm.js +0 -12
  455. package/dist/social/editProfileDetails.esm.js.map +0 -1
  456. package/dist/social/icons.cjs.js +0 -82
  457. package/dist/social/icons.cjs.js.map +0 -1
  458. package/dist/social/icons.esm.js.map +0 -1
  459. package/dist/social/socialPane2.cjs.js +0 -6
  460. package/dist/social/socialPane2.cjs.js.map +0 -1
  461. package/dist/social/socialPane2.esm.js +0 -326
  462. package/dist/social/socialPane2.esm.js.map +0 -1
  463. package/dist/social/socialSections.cjs.js +0 -2
  464. package/dist/social/socialSections.cjs.js.map +0 -1
  465. package/dist/social/socialSections.esm.js +0 -222
  466. package/dist/social/socialSections.esm.js.map +0 -1
  467. package/dist/social/spinner.cjs.js +0 -1
  468. package/dist/social/spinner.esm.js +0 -1
  469. package/dist/social/triage.cjs.js +0 -2
  470. package/dist/social/triage.cjs.js.map +0 -1
  471. package/dist/social/triage.esm.js +0 -44
  472. package/dist/social/triage.esm.js.map +0 -1
  473. package/dist/tabbed/tabbedPane.cjs.js +0 -2
  474. package/dist/tabbed/tabbedPane.cjs.js.map +0 -1
  475. package/dist/tabbed/tabbedPane.esm.js +0 -38
  476. package/dist/tabbed/tabbedPane.esm.js.map +0 -1
  477. package/dist/tableViewPane.cjs.js +0 -2
  478. package/dist/tableViewPane.cjs.js.map +0 -1
  479. package/dist/tableViewPane.esm.js +0 -20
  480. package/dist/tableViewPane.esm.js.map +0 -1
  481. package/dist/transaction/pane.cjs.js +0 -8
  482. package/dist/transaction/pane.cjs.js.map +0 -1
  483. package/dist/transaction/pane.esm.js +0 -212
  484. package/dist/transaction/pane.esm.js.map +0 -1
  485. package/dist/transaction/period.cjs.js +0 -4
  486. package/dist/transaction/period.cjs.js.map +0 -1
  487. package/dist/transaction/period.esm.js +0 -126
  488. package/dist/transaction/period.esm.js.map +0 -1
  489. package/dist/trip/tripPane.cjs.js +0 -2
  490. package/dist/trip/tripPane.cjs.js.map +0 -1
  491. package/dist/trip/tripPane.esm.js +0 -85
  492. package/dist/trip/tripPane.esm.js.map +0 -1
  493. package/dist/trustedApplications/trustedApplications.dom.cjs.js +0 -2
  494. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +0 -1
  495. package/dist/trustedApplications/trustedApplications.dom.esm.js +0 -108
  496. package/dist/trustedApplications/trustedApplications.dom.esm.js.map +0 -1
  497. package/dist/trustedApplications/trustedApplications.utils.cjs.js +0 -2
  498. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +0 -1
  499. package/dist/trustedApplications/trustedApplications.utils.esm.js +0 -20
  500. package/dist/trustedApplications/trustedApplications.utils.esm.js.map +0 -1
  501. package/dist/trustedApplications/trustedApplications.view.cjs.js +0 -2
  502. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +0 -1
  503. package/dist/trustedApplications/trustedApplications.view.esm.js +0 -41
  504. package/dist/trustedApplications/trustedApplications.view.esm.js.map +0 -1
  505. package/dist/ui/pane.cjs.js +0 -4
  506. package/dist/ui/pane.cjs.js.map +0 -1
  507. package/dist/ui/pane.esm.js +0 -56
  508. package/dist/ui/pane.esm.js.map +0 -1
  509. package/dist/utils/paneUtils.cjs.js +0 -2
  510. package/dist/utils/paneUtils.cjs.js.map +0 -1
  511. package/dist/utils/paneUtils.d.ts +0 -19
  512. package/dist/utils/paneUtils.d.ts.map +0 -1
  513. package/dist/utils/paneUtils.esm.js +0 -52
  514. package/dist/utils/paneUtils.esm.js.map +0 -1
  515. package/dist/utils/podUtils.cjs.js +0 -2
  516. package/dist/utils/podUtils.cjs.js.map +0 -1
  517. package/dist/utils/podUtils.d.ts +0 -4
  518. package/dist/utils/podUtils.d.ts.map +0 -1
  519. package/dist/utils/podUtils.esm.js +0 -46
  520. package/dist/utils/podUtils.esm.js.map +0 -1
  521. package/dist/utils/webIdUtils.cjs.js +0 -2
  522. package/dist/utils/webIdUtils.cjs.js.map +0 -1
  523. package/dist/utils/webIdUtils.d.ts +0 -6
  524. package/dist/utils/webIdUtils.d.ts.map +0 -1
  525. package/dist/utils/webIdUtils.esm.js +0 -48
  526. package/dist/utils/webIdUtils.esm.js.map +0 -1
  527. package/dist/versionInfo.cjs.js +0 -2
  528. package/dist/versionInfo.cjs.js.map +0 -1
  529. package/dist/versionInfo.esm.js +0 -40
  530. package/dist/versionInfo.esm.js.map +0 -1
  531. package/dist/video/videoPane.cjs.js +0 -2
  532. package/dist/video/videoPane.cjs.js.map +0 -1
  533. package/dist/video/videoPane.esm.js +0 -25
  534. package/dist/video/videoPane.esm.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --icon-sm: 1.8em;
3
+ --color-background-row-default: white;
4
+ --color-background-row-alternate: #f0f0f0;
5
+ }
@@ -1,4 +1,4 @@
1
- import { PaneDefinition } from '../../node_modules/pane-registry';
1
+ import { PaneDefinition } from 'pane-registry';
2
2
  declare const TabbedPane: PaneDefinition;
3
3
  export default TabbedPane;
4
4
  //# sourceMappingURL=tabbedPane.d.ts.map
@@ -0,0 +1,59 @@
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
+ /* Tabbed view of anything
9
+ **
10
+ ** data-driven
11
+ **
12
+ */
13
+
14
+ const TabbedPane = {
15
+ icon: _solidUi.icons.iconBase + 'noun_688606.svg',
16
+ name: 'tabbed',
17
+ audience: [_solidUi.ns.solid('PowerUser')],
18
+ // Does the subject deserve this pane?
19
+ label: (subject, context) => {
20
+ // @ts-ignore
21
+ const kb = context.session.store;
22
+ const typeURIs = kb.findTypeURIs(subject);
23
+ if (_solidUi.ns.meeting('Cluster').uri in typeURIs) {
24
+ return 'Tabbed';
25
+ }
26
+ return null;
27
+ },
28
+ render: (subject, context) => {
29
+ const dom = context.dom;
30
+ // @ts-ignore
31
+ const store = context.session.store;
32
+ const div = dom.createElement('div');
33
+ (async () => {
34
+ if (!store.fetcher) {
35
+ throw new Error('Store has no fetcher');
36
+ }
37
+ await store.fetcher.load(subject);
38
+ div.appendChild(_solidUi.tabs.tabWidget({
39
+ dom,
40
+ subject,
41
+ predicate: store.any(subject, _solidUi.ns.meeting('predicate')) || _solidUi.ns.meeting('toolList'),
42
+ ordered: true,
43
+ orientation: store.anyValue(subject, _solidUi.ns.meeting('orientation')) || '0',
44
+ renderMain: (containerDiv, item) => {
45
+ containerDiv.innerHTML = '';
46
+ const table = containerDiv.appendChild(context.dom.createElement('table'));
47
+ context.getOutliner(context.dom).GotoSubject(item, true, null, false, undefined, table);
48
+ },
49
+ renderTab: (containerDiv, item) => {
50
+ const predicate = store.the(subject, _solidUi.ns.meeting('predicate'));
51
+ containerDiv.appendChild(_solidUi.widgets.personTR(context.dom, predicate, item, {}));
52
+ },
53
+ backgroundColor: store.anyValue(subject, _solidUi.ns.ui('backgroundColor')) || '#ddddcc'
54
+ }));
55
+ })();
56
+ return div;
57
+ }
58
+ };
59
+ var _default = exports.default = TabbedPane;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tableViewPane = 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
+ // Format an array of RDF statements as an HTML table.
10
+ //
11
+ // This can operate in one of three modes: when the class of object is given
12
+ // or when the source document from which data is taken is given,
13
+ // or if a prepared query object is given.
14
+ // (In principle it could operate with neither class nor document
15
+ // given but typically
16
+ // there would be too much data.)
17
+ // When the tableClass is not given, it looks for common classes in the data,
18
+ // and gives the user the option.
19
+ //
20
+ // 2008 Written, Ilaria Liccardi
21
+ // 2014 core functionality now in common/table.js -timbl
22
+
23
+ // ///////////////////////////////////////////////////////////////////
24
+
25
+ // Table view pane -- view of a class as a table of properties of class members
26
+
27
+ const tableViewPane = exports.tableViewPane = {
28
+ icon: UI.icons.originalIconBase + 'table.png',
29
+ name: 'tableOfClass',
30
+ label: function (subject, context) {
31
+ const store = context.session.store;
32
+ // if (!store.holds(subject, UI.ns.rdf('type'),UI.ns.rdfs('Class'))) return null
33
+ if (!store.any(undefined, UI.ns.rdf('type'), subject)) {
34
+ return null;
35
+ }
36
+ const n = store.statementsMatching(undefined, UI.ns.rdf('type'), subject).length;
37
+ if (n === 0) {
38
+ // None, suppress pane
39
+ return null;
40
+ }
41
+ if (n > 15) {
42
+ // @@ At the moment this pane can be slow with too many @@ fixme by using limits
43
+ return null;
44
+ }
45
+ return UI.utils.label(subject) + ' table';
46
+ },
47
+ render: function (subject, context) {
48
+ const myDocument = context.dom;
49
+ const div = myDocument.createElement('div');
50
+ div.setAttribute('class', 'tablePane');
51
+ div.appendChild(UI.table(myDocument, {
52
+ tableClass: subject
53
+ }));
54
+ return div;
55
+ }
56
+ };
@@ -0,0 +1,477 @@
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
+ /* Financial Transaction Pane
11
+ **
12
+ ** This outline pane allows a user to interact with a transaction
13
+ ** downloaded from a bank statement, annotting it with classes and comments,
14
+ ** trips, etc
15
+ */
16
+
17
+ const ns = UI.ns;
18
+ var _default = exports.default = {
19
+ // icon: (module.__dirname || __dirname) + '22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png',
20
+ icon: UI.icons.iconBase + 'noun_106746.svg',
21
+ name: 'transaction',
22
+ audience: [ns.solid('PowerUser')],
23
+ // Does the subject deserve this pane?
24
+ label: function (subject, context) {
25
+ const kb = context.session.store;
26
+ const t = kb.findTypeURIs(subject);
27
+ if (t['http://www.w3.org/2000/10/swap/pim/qif#Transaction']) return '$$';
28
+ if (kb.any(subject, UI.ns.qu('amount'))) return '$$$'; // In case schema not picked up
29
+
30
+ // if (t['http://www.w3.org/2000/10/swap/pim/qif#Period']) return "period $"
31
+
32
+ if (t['http://www.w3.org/ns/pim/trip#Trip']) return 'Trip $';
33
+ return null; // No under other circumstances (while testing at least!)
34
+ },
35
+ render: function (subject, context) {
36
+ const dom = context.dom;
37
+ const kb = context.session.store;
38
+ const fetcher = kb.fetcher;
39
+ const Q = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#');
40
+ const TRIP = $rdf.Namespace('http://www.w3.org/ns/pim/trip#');
41
+ const div = dom.createElement('div');
42
+ div.setAttribute('class', 'transactionPane');
43
+ const mention = function mention(message, style) {
44
+ if (style === undefined) style = 'color: grey';
45
+ const pre = dom.createElement('pre');
46
+ pre.setAttribute('style', style);
47
+ div.appendChild(pre);
48
+ pre.appendChild(dom.createTextNode(message));
49
+ };
50
+ const complain = function complain(message) {
51
+ return mention(message, 'color: #100; background-color: #fee');
52
+ };
53
+
54
+ /*
55
+ var thisPane = this
56
+ var rerender = function (div) {
57
+ var parent = div.parentNode
58
+ var div2 = thisPane.render(subject, dom)
59
+ parent.replaceChild(div2, div)
60
+ }
61
+ */
62
+ // //////////////////////////////////////////////////////////////////////////////
63
+
64
+ const plist = kb.statementsMatching(subject);
65
+ const qlist = kb.statementsMatching(undefined, undefined, subject);
66
+ const t = kb.findTypeURIs(subject);
67
+
68
+ // var me = authn.currentUser()
69
+ const predicateURIsDone = {};
70
+ const donePredicate = function (pred) {
71
+ predicateURIsDone[pred.uri] = true;
72
+ };
73
+ const setPaneStyle = function (account) {
74
+ let mystyle = 'padding: 0.5em 1.5em 1em 1.5em; ';
75
+ if (account) {
76
+ const backgroundColor = kb.any(account, UI.ns.ui('backgroundColor'));
77
+ if (backgroundColor) {
78
+ mystyle += 'background-color: ' + backgroundColor.value + '; ';
79
+ }
80
+ }
81
+ div.setAttribute('style', mystyle);
82
+ };
83
+ // setPaneStyle()
84
+
85
+ // Functions for displaying lists of transactions
86
+ // Click on the transaction line to expand it into a pane
87
+ // Shift-click to expand without collapsing others
88
+
89
+ const d2 = function (n) {
90
+ if (n === undefined) return '';
91
+ const s = '' + n;
92
+ if (s.indexOf('.') >= 0) {
93
+ return s.split('.')[0] + '.' + (s.split('.')[1] + '00').slice(0, 2);
94
+ }
95
+ return s + '.00';
96
+ };
97
+ const numericCell = function numericCell(amount, suppressZero) {
98
+ const td = dom.createElement('td');
99
+ if (!(0.0 + amount === 0.0 && suppressZero)) {
100
+ td.textContent = d2(amount);
101
+ }
102
+ td.setAttribute('style', 'width: 6em; text-align: right; ');
103
+ return td;
104
+ };
105
+ const headerCell = function headerCell(str) {
106
+ const td = dom.createElement('th');
107
+ td.textContent = str;
108
+ td.setAttribute('style', 'text-align: right; ');
109
+ return td;
110
+ };
111
+ const oderByDate = function (x, y) {
112
+ const dx = kb.any(x, ns.qu('date'));
113
+ const dy = kb.any(y, ns.qu('date'));
114
+ if (dx !== undefined && dy !== undefined) {
115
+ if (dx.value < dy.value) return -1;
116
+ if (dx.value > dy.value) return 1;
117
+ }
118
+ if (x.uri < y.uri) return -1; // Arbitrary but repeatable
119
+ if (x.uri > y.uri) return 1;
120
+ return 0;
121
+ };
122
+ const insertedPane = function (context, subject, paneName) {
123
+ const p = context.session.paneRegistry.byName(paneName);
124
+ const d = p.render(subject, context);
125
+ d.setAttribute('style', 'border: 0.1em solid green;');
126
+ return d;
127
+ };
128
+ const expandAfterRow = function (dom, row, subject, paneName, solo) {
129
+ const siblings = row.parentNode.children;
130
+ if (solo) {
131
+ for (let j = siblings.length - 1; j >= 0; j--) {
132
+ if (siblings[j].expanded) {
133
+ siblings[j].parentNode.removeChild(siblings[j].expanded);
134
+ siblings[j].expanded = false;
135
+ }
136
+ }
137
+ }
138
+ const tr = dom.createElement('tr');
139
+ const td = tr.appendChild(dom.createElement('td'));
140
+ td.setAttribute('style', 'width: 98%; padding: 1em; border: 0.1em solid grey;');
141
+ const cols = row.children.length;
142
+ if (row.nextSibling) {
143
+ row.parentNode.insertBefore(tr, row.nextSibling);
144
+ } else {
145
+ row.parentNode.appendChild(tr);
146
+ }
147
+ row.expanded = tr;
148
+ td.setAttribute('colspan', '' + cols);
149
+ td.appendChild(insertedPane(context, subject, paneName));
150
+ };
151
+ const expandAfterRowOrCollapse = function (dom, row, subject, paneName, solo) {
152
+ if (row.expanded) {
153
+ row.parentNode.removeChild(row.expanded);
154
+ row.expanded = false;
155
+ } else {
156
+ expandAfterRow(dom, row, subject, paneName, solo);
157
+ }
158
+ };
159
+ const transactionTable = function (dom, list, filter) {
160
+ const table = dom.createElement('table');
161
+ table.setAttribute('style', 'padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;');
162
+ const transactionRow = function (dom, x) {
163
+ const tr = dom.createElement('tr');
164
+ const setTRStyle = function (tr, account) {
165
+ // var mystyle = "padding: 0.5em 1.5em 1em 1.5em; "
166
+ let mystyle = '\'padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.1em;';
167
+ if (account) {
168
+ const backgroundColor = kb.any(account, UI.ns.ui('backgroundColor'));
169
+ if (backgroundColor) {
170
+ mystyle += 'background-color: ' + backgroundColor.value + '; ';
171
+ }
172
+ }
173
+ tr.setAttribute('style', mystyle);
174
+ };
175
+ const account = kb.any(x, ns.qu('toAccount'));
176
+ setTRStyle(tr, account);
177
+ const c0 = tr.appendChild(dom.createElement('td'));
178
+ const date = kb.any(x, ns.qu('date'));
179
+ c0.textContent = date ? date.value.slice(0, 10) : '???';
180
+ c0.setAttribute('style', 'width: 7em;');
181
+ const c1 = tr.appendChild(dom.createElement('td'));
182
+ c1.setAttribute('style', 'width: 36em;');
183
+ const payee = kb.any(x, ns.qu('payee'));
184
+ c1.textContent = payee ? payee.value : '???';
185
+ const a1 = c1.appendChild(dom.createElement('a'));
186
+ a1.textContent = ' ➜';
187
+ a1.setAttribute('href', x.uri);
188
+ const c3 = tr.appendChild(dom.createElement('td'));
189
+ const amount = kb.any(x, ns.qu('in_USD'));
190
+ c3.textContent = amount ? d2(amount.value) : '???';
191
+ c3.setAttribute('style', 'width: 6em; text-align: right; '); // @@ decimal alignment?
192
+ tr.addEventListener('click', function (e) {
193
+ // solo unless shift key
194
+ expandAfterRowOrCollapse(dom, tr, x, 'transaction', !e.shiftKey);
195
+ }, false);
196
+ return tr;
197
+ };
198
+ const list2 = filter ? list.filter(filter) : list.slice(); // don't sort a paramater passed in place
199
+ list2.sort(oderByDate);
200
+ for (let i = 0; i < list2.length; i++) {
201
+ table.appendChild(transactionRow(dom, list2[i]));
202
+ }
203
+ return table;
204
+ };
205
+
206
+ // Render a single transaction
207
+
208
+ // This works only if enough metadata about the properties can drive the RDFS
209
+ // (or actual type statements whichtypically are NOT there on)
210
+ if (t['http://www.w3.org/2000/10/swap/pim/qif#Transaction'] || kb.any(subject, ns.qu('toAccount'))) {
211
+ // var trip = kb.any(subject, WF('trip'))
212
+ donePredicate(ns.rdf('type'));
213
+ const account = kb.any(subject, UI.ns.qu('toAccount'));
214
+ setPaneStyle(account);
215
+ if (!account) {
216
+ complain('(Error: There is no bank account known for this transaction <' + subject.uri + '>,\n -- every transaction needs one.)');
217
+ }
218
+ let store = null;
219
+ const statement = kb.any(subject, UI.ns.qu('accordingTo'));
220
+ if (statement === undefined) {
221
+ complain('(Error: There is no back link to the original data source foir this transaction <' + subject.uri + '>,\nso I can\'t tell how to annotate it.)');
222
+ } else {
223
+ store = statement !== undefined ? kb.any(statement, UI.ns.qu('annotationStore')) : null;
224
+ if (store === undefined) {
225
+ complain('(There is no annotation document for this statement\n<' + statement.uri + '>,\nso you cannot classify this transaction.)');
226
+ }
227
+ }
228
+ const nav = dom.createElement('div');
229
+ nav.setAttribute('style', 'float:right');
230
+ div.appendChild(nav);
231
+ const navLink = function (pred, label) {
232
+ donePredicate(pred);
233
+ const obj = kb.any(subject, pred);
234
+ if (!obj) return;
235
+ const a = dom.createElement('a');
236
+ a.setAttribute('href', obj.uri);
237
+ a.setAttribute('style', 'float:right');
238
+ nav.appendChild(a).textContent = label || UI.utils.label(obj);
239
+ nav.appendChild(dom.createElement('br'));
240
+ };
241
+ navLink(UI.ns.qu('toAccount'));
242
+ navLink(UI.ns.qu('accordingTo'), 'Statement');
243
+ navLink(TRIP('trip'));
244
+
245
+ // Basic data:
246
+ const table = dom.createElement('table');
247
+ div.appendChild(table);
248
+ const preds = ['date', 'payee', 'amount', 'in_USD', 'currency'].map(Q);
249
+ const inner = preds.map(function (p) {
250
+ donePredicate(p);
251
+ const value = kb.any(subject, p);
252
+ const s = value ? UI.utils.labelForXML(value) : '';
253
+ return '<tr><td style="text-align: right; padding-right: 0.6em">' + UI.utils.labelForXML(p) + '</td><td style="font-weight: bold;">' + s + '</td></tr>';
254
+ }).join('\n');
255
+ table.innerHTML = inner;
256
+ const complainIfBad = function (ok, body) {
257
+ if (ok) {
258
+ // setModifiedDate(store, kb, store)
259
+ // rerender(div) // deletes the new trip form
260
+ } else complain('Sorry, failed to save your change:\n' + body);
261
+ };
262
+
263
+ // What trips do we know about?
264
+
265
+ // Classify:
266
+ if (store) {
267
+ kb.fetcher.nowOrWhenFetched(store.uri, subject, function (ok, body) {
268
+ if (!ok) complain('Cannot load store ' + store + ' ' + body);
269
+ const calendarYear = kb.any(store, ns.qu('calendarYear'));
270
+ const renderCatgorySelectors = function () {
271
+ div.insertBefore(UI.widgets.makeSelectForNestedCategory(dom, kb, subject, UI.ns.qu('Classified'), store, complainIfBad), table.nextSibling);
272
+ };
273
+ if (kb.any(undefined, ns.rdfs('subClassOf'), ns.qu.Classified)) {
274
+ renderCatgorySelectors();
275
+ } else if (calendarYear) {
276
+ fetcher.load(calendarYear).then(function (_xhrs) {
277
+ fetcher.load(kb.each(calendarYear, ns.rdfs('seeAlso'))).then(function () {
278
+ renderCatgorySelectors();
279
+ }).catch(function (e) {
280
+ console.log('Error loading background data: ' + e);
281
+ });
282
+ }).catch(function (e) {
283
+ console.log('Error loading calendarYear: ' + e);
284
+ });
285
+ } else {
286
+ console.log('Can\'t get categories, because no calendarYear');
287
+ }
288
+ div.appendChild(UI.widgets.makeDescription(dom, kb, subject, UI.ns.rdfs('comment'), store, complainIfBad));
289
+ let trips = kb.statementsMatching(undefined, TRIP('trip'), undefined, store).map(function (st) {
290
+ return st.object;
291
+ }); // @@ Use rdfs
292
+ const trips2 = kb.each(undefined, UI.ns.rdf('type'), TRIP('Trip'));
293
+ trips = trips.concat(trips2).sort(); // @@ Unique
294
+
295
+ const sortedBy = function (kb, list, pred, reverse) {
296
+ const l2 = list.map(function (x) {
297
+ let key = kb.any(x, pred);
298
+ key = key ? key.value : '9999-12-31';
299
+ return [key, x];
300
+ });
301
+ l2.sort();
302
+ if (reverse) l2.reverse();
303
+ return l2.map(function (pair) {
304
+ return pair[1];
305
+ });
306
+ };
307
+ trips = sortedBy(kb, trips, UI.ns.cal('dtstart'), true); // Reverse chron
308
+
309
+ if (trips.length > 1) {
310
+ div.appendChild(UI.widgets.makeSelectForOptions(dom, kb, subject, TRIP('trip'), trips, {
311
+ multiple: false,
312
+ nullLabel: '-- what trip? --',
313
+ mint: 'New Trip *',
314
+ mintClass: TRIP('Trip'),
315
+ mintStatementsFun: function (trip) {
316
+ const is = [];
317
+ is.push($rdf.st(trip, UI.ns.rdf('type'), TRIP('Trip'), trip.doc()));
318
+ return is;
319
+ }
320
+ }, store, complainIfBad));
321
+ }
322
+ div.appendChild(dom.createElement('br'));
323
+
324
+ // Add in simple comments about the transaction
325
+
326
+ const outliner = context.getOutliner(dom);
327
+ donePredicate(ns.rdfs('comment')); // Done above
328
+
329
+ UI.widgets.attachmentList(dom, subject, div);
330
+ donePredicate(ns.wf('attachment'));
331
+ div.appendChild(dom.createElement('tr')).setAttribute('style', 'height: 1em'); // spacer
332
+
333
+ // Remaining properties
334
+ outliner.appendPropertyTRs(div, plist, false, function (pred, _inverse) {
335
+ return !(pred.uri in predicateURIsDone);
336
+ });
337
+ outliner.appendPropertyTRs(div, qlist, true, function (pred, _inverse) {
338
+ return !(pred.uri in predicateURIsDone);
339
+ });
340
+ }); // fetch
341
+ }
342
+ // end of render tranasaction instance
343
+
344
+ // ////////////////////////////////////////////////////////////////////
345
+ //
346
+ // Render the transactions in a Trip
347
+ //
348
+ } else if (t['http://www.w3.org/ns/pim/trip#Trip']) {
349
+ /*
350
+ var query = new $rdf.Query(UI.utils.label(subject))
351
+ var vars = [ 'date', 'transaction', 'comment', 'type', 'in_USD']
352
+ var v = {}
353
+ vars.map(function(x){query.vars.push(v[x]=$rdf.variable(x))}) // Only used by UI
354
+ query.pat.add(v['transaction'], TRIP('trip'), subject)
355
+ var opt = kb.formula()
356
+ opt.add(v['transaction'], ns.rdf('type'), v['type']); // Issue: this will get stored supertypes too
357
+ query.pat.optional.push(opt)
358
+ query.pat.add(v['transaction'], UI.ns.qu('date'), v['date'])
359
+ var opt = kb.formula()
360
+ opt.add(v['transaction'], ns.rdfs('comment'), v['comment'])
361
+ query.pat.optional.push(opt)
362
+ //opt = kb.formula()
363
+ query.pat.add(v['transaction'], UI.ns.qu('in_USD'), v['in_USD'])
364
+ //query.pat.optional.push(opt)
365
+ var tableDiv = UI.widgets.renderTableViewPane(dom, {'query': query, 'onDone': calculations} )
366
+ div.appendChild(tableDiv)
367
+ */
368
+ const calculations = function () {
369
+ const total = {};
370
+ const yearTotal = {};
371
+ const yearCategoryTotal = {};
372
+ const trans = kb.each(undefined, TRIP('trip'), subject);
373
+ const bankStatements = trans.map(function (t) {
374
+ return t.doc();
375
+ });
376
+ kb.fetcher.load(bankStatements).then(function () {
377
+ trans.forEach(function (t) {
378
+ const date = kb.the(t, ns.qu('date'));
379
+ const year = date ? ('' + date.value).slice(0, 4) : '????';
380
+ let ty = kb.the(t, ns.rdf('type')); // @@ find most specific type
381
+ // complain(" -- one trans: "+t.uri + ' -> '+kb.any(t, UI.ns.qu('in_USD')))
382
+ if (!ty) ty = UI.ns.qu('ErrorNoType');
383
+ if (ty && ty.uri) {
384
+ const tyuri = ty.uri;
385
+ if (!yearTotal[year]) yearTotal[year] = 0.0;
386
+ if (!yearCategoryTotal[year]) yearCategoryTotal[year] = {};
387
+ if (!total[tyuri]) total[tyuri] = 0.0;
388
+ if (!yearCategoryTotal[year][tyuri]) {
389
+ yearCategoryTotal[year][tyuri] = 0.0;
390
+ }
391
+ const lit = kb.any(t, UI.ns.qu('in_USD'));
392
+ if (!lit) {
393
+ complain('@@ No amount in USD: ' + lit + ' for ' + t);
394
+ }
395
+ if (lit) {
396
+ const amount = parseFloat(lit.value);
397
+ total[tyuri] += amount;
398
+ yearCategoryTotal[year][tyuri] += amount;
399
+ yearTotal[year] += amount;
400
+ }
401
+ }
402
+ });
403
+ const types = [];
404
+ let grandTotal = 0.0;
405
+ const years = [];
406
+ let i;
407
+ for (const y in yearCategoryTotal) {
408
+ // @@ TODO: Write away the need for exception on next line
409
+
410
+ if (Object.prototype.hasOwnProperty.call(yearCategoryTotal, y)) {
411
+ years.push(y);
412
+ }
413
+ }
414
+ years.sort();
415
+ const ny = years.length;
416
+ let cell;
417
+ const table = div.appendChild(dom.createElement('table'));
418
+ table.setAttribute('style', 'font-size: 120%; margin-left:auto; margin-right:1em; margin-top: 1em; border: 0.05em solid gray; padding: 1em;');
419
+ if (ny > 1) {
420
+ const header = table.appendChild(dom.createElement('tr'));
421
+ header.appendChild(headerCell(''));
422
+ for (i = 0; i < ny; i++) {
423
+ header.appendChild(headerCell(years[i]));
424
+ }
425
+ header.appendChild(headerCell('total'));
426
+ }
427
+ for (const uri in total) {
428
+ // @@ TODO: Write away the need for exception on next line
429
+
430
+ if (Object.prototype.hasOwnProperty.call(total, uri)) {
431
+ types.push(uri);
432
+ grandTotal += total[uri];
433
+ }
434
+ }
435
+ types.sort();
436
+ let row, label, z;
437
+ for (let j = 0; j < types.length; j++) {
438
+ const cat = kb.sym(types[j]);
439
+ row = table.appendChild(dom.createElement('tr'));
440
+ label = row.appendChild(dom.createElement('td'));
441
+ label.textContent = UI.utils.label(cat);
442
+ if (ny > 1) {
443
+ for (i = 0; i < ny; i++) {
444
+ z = yearCategoryTotal[years[i]][types[j]];
445
+ cell = row.appendChild(numericCell(z, true));
446
+ }
447
+ }
448
+ row.appendChild(numericCell(total[types[j]], true));
449
+ }
450
+
451
+ // Trailing totals
452
+ if (types.length > 1) {
453
+ row = table.appendChild(dom.createElement('tr'));
454
+ row.appendChild(headerCell('total'));
455
+ if (ny > 1) {
456
+ for (i = 0; i < ny; i++) {
457
+ z = yearTotal[years[i]];
458
+ cell = row.appendChild(numericCell(z ? d2(z) : ''));
459
+ }
460
+ }
461
+ cell = row.appendChild(numericCell(grandTotal));
462
+ cell.setAttribute('style', 'font-weight: bold; text-align: right;');
463
+ }
464
+ const tab = transactionTable(dom, trans);
465
+ tab.setAttribute('style', 'margin-left:auto; margin-right:1em; margin-top: 1em; border: padding: 1em;');
466
+ div.appendChild(tab);
467
+ UI.widgets.attachmentList(dom, subject, div);
468
+ }).catch(function (e) {
469
+ complain('Error loading transactions: ' + e);
470
+ });
471
+ };
472
+ calculations();
473
+ } // if
474
+
475
+ return div;
476
+ }
477
+ }; // ends