solid-panes 4.5.0 → 5.0.0-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 +10 -40
  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/arrow-left.cjs.js +2 -0
  9. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  10. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
  11. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  12. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  13. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  14. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
  15. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  16. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  17. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  18. package/dist/_virtual/~icons/lucide/folder-open.esm.js +11 -0
  19. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  20. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  21. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  22. package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
  23. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  24. package/dist/_virtual/~icons/lucide/help-circle.cjs.js +2 -0
  25. package/dist/_virtual/~icons/lucide/help-circle.cjs.js.map +1 -0
  26. package/dist/_virtual/~icons/lucide/help-circle.esm.js +11 -0
  27. package/dist/_virtual/~icons/lucide/help-circle.esm.js.map +1 -0
  28. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +2 -0
  29. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +1 -0
  30. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +11 -0
  31. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +1 -0
  32. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  33. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  34. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
  35. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  36. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  37. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  38. package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
  39. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  40. package/dist/_virtual/~icons/lucide/settings-2.cjs.js +2 -0
  41. package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +1 -0
  42. package/dist/_virtual/~icons/lucide/settings-2.esm.js +11 -0
  43. package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +1 -0
  44. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  45. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  46. package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
  47. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  48. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
  49. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
  50. package/dist/_virtual/~icons/lucide/trash-2.esm.js +11 -0
  51. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
  52. package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
  53. package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
  54. package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
  55. package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
  56. package/dist/_virtual/~icons/lucide/users.cjs.js +2 -0
  57. package/dist/_virtual/~icons/lucide/users.cjs.js.map +1 -0
  58. package/dist/_virtual/~icons/lucide/users.esm.js +11 -0
  59. package/dist/_virtual/~icons/lucide/users.esm.js.map +1 -0
  60. package/dist/audio/audioPane.cjs.js +2 -0
  61. package/dist/audio/audioPane.cjs.js.map +1 -0
  62. package/dist/audio/audioPane.esm.js +99 -0
  63. package/dist/audio/audioPane.esm.js.map +1 -0
  64. package/dist/classInstancePane.cjs.js +2 -0
  65. package/dist/classInstancePane.cjs.js.map +1 -0
  66. package/dist/classInstancePane.esm.js +50 -0
  67. package/dist/classInstancePane.esm.js.map +1 -0
  68. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
  69. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  70. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +19 -0
  71. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  72. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
  73. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  74. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  75. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  76. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
  77. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  78. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +22 -0
  79. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  80. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +15 -0
  81. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  82. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +266 -0
  83. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  84. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  85. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  86. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
  87. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  88. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +19 -0
  89. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  90. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +19 -0
  91. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  92. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +321 -0
  93. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  94. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  95. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  96. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
  97. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  98. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
  99. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
  100. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
  101. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
  102. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +468 -0
  103. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
  104. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
  105. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
  106. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
  107. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
  108. package/dist/components/file-explorer-header/helper.cjs.js +2 -0
  109. package/dist/components/file-explorer-header/helper.cjs.js.map +1 -0
  110. package/dist/components/file-explorer-header/helper.d.ts +15 -0
  111. package/dist/components/file-explorer-header/helper.d.ts.map +1 -0
  112. package/dist/components/file-explorer-header/helper.esm.js +64 -0
  113. package/dist/components/file-explorer-header/helper.esm.js.map +1 -0
  114. package/dist/components/file-explorer-header/types.d.ts +2 -0
  115. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  116. package/dist/components/header/Header.cjs.js +19 -0
  117. package/dist/components/header/Header.cjs.js.map +1 -0
  118. package/dist/components/header/Header.d.ts +8 -0
  119. package/dist/components/header/Header.d.ts.map +1 -0
  120. package/dist/components/header/Header.esm.js +228 -0
  121. package/dist/components/header/Header.esm.js.map +1 -0
  122. package/dist/components/header/Header.styles.cjs.js +2 -0
  123. package/dist/components/header/Header.styles.cjs.js.map +1 -0
  124. package/dist/components/header/Header.styles.esm.js +7 -0
  125. package/dist/components/header/Header.styles.esm.js.map +1 -0
  126. package/dist/components/header/index.cjs.js +1 -0
  127. package/dist/components/header/index.d.ts +4 -0
  128. package/dist/components/header/index.d.ts.map +1 -0
  129. package/dist/components/header/index.esm.js +1 -0
  130. package/dist/components/navbar/Navbar.cjs.js +15 -0
  131. package/dist/components/navbar/Navbar.cjs.js.map +1 -0
  132. package/dist/components/navbar/Navbar.d.ts +14 -0
  133. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  134. package/dist/components/navbar/Navbar.esm.js +232 -0
  135. package/dist/components/navbar/Navbar.esm.js.map +1 -0
  136. package/dist/components/navbar/Navbar.styles.cjs.js +2 -0
  137. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -0
  138. package/dist/components/navbar/Navbar.styles.esm.js +7 -0
  139. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -0
  140. package/dist/components/navbar/index.cjs.js +1 -0
  141. package/dist/components/navbar/index.d.ts +4 -0
  142. package/dist/components/navbar/index.d.ts.map +1 -0
  143. package/dist/components/navbar/index.esm.js +1 -0
  144. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +16 -0
  145. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +1 -0
  146. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  147. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  148. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +215 -0
  149. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +1 -0
  150. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +18 -0
  151. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  152. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +16 -0
  153. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  154. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +260 -0
  155. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  156. package/dist/dashboard/basicPreferences.cjs.js +2 -0
  157. package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
  158. package/dist/dashboard/basicPreferences.d.ts +1 -1
  159. package/dist/dashboard/basicPreferences.esm.js +70 -0
  160. package/dist/dashboard/basicPreferences.esm.js.map +1 -0
  161. package/dist/dashboard/dashboardPane.cjs.js +2 -0
  162. package/dist/dashboard/dashboardPane.cjs.js.map +1 -0
  163. package/dist/dashboard/dashboardPane.d.ts +1 -1
  164. package/dist/dashboard/dashboardPane.esm.js +7 -0
  165. package/dist/dashboard/dashboardPane.esm.js.map +1 -0
  166. package/dist/dashboard/homepage.cjs.js +2 -0
  167. package/dist/dashboard/homepage.cjs.js.map +1 -0
  168. package/dist/dashboard/homepage.d.ts +1 -1
  169. package/dist/dashboard/homepage.esm.js +26 -0
  170. package/dist/dashboard/homepage.esm.js.map +1 -0
  171. package/dist/dashboard/ontologyData.cjs.js +37 -0
  172. package/dist/dashboard/ontologyData.cjs.js.map +1 -0
  173. package/dist/dashboard/ontologyData.esm.js +6 -0
  174. package/dist/dashboard/ontologyData.esm.js.map +1 -0
  175. package/dist/dashboard/preferencesFormText.cjs.js +20 -0
  176. package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
  177. package/dist/dashboard/preferencesFormText.esm.js +6 -0
  178. package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
  179. package/dist/dataContentPane.d.ts +2 -3
  180. package/dist/dataContentPane2.cjs.js +2 -0
  181. package/dist/dataContentPane2.cjs.js.map +1 -0
  182. package/dist/dataContentPane2.esm.js +109 -0
  183. package/dist/dataContentPane2.esm.js.map +1 -0
  184. package/dist/defaultPane.d.ts +2 -3
  185. package/dist/defaultPane2.cjs.js +2 -0
  186. package/dist/defaultPane2.cjs.js.map +1 -0
  187. package/dist/defaultPane2.esm.js +41 -0
  188. package/dist/defaultPane2.esm.js.map +1 -0
  189. package/dist/dev.d.ts +10 -0
  190. package/dist/dev.d.ts.map +1 -0
  191. package/dist/dokieli/dokieliPane.cjs.js +2 -0
  192. package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
  193. package/dist/dokieli/dokieliPane.esm.js +39 -0
  194. package/dist/dokieli/dokieliPane.esm.js.map +1 -0
  195. package/dist/dokieli/{new.js → new.cjs.js} +4 -10
  196. package/dist/dokieli/new.cjs.js.map +1 -0
  197. package/dist/dokieli/new.esm.js +6 -0
  198. package/dist/dokieli/new.esm.js.map +1 -0
  199. package/dist/form/pane.cjs.js +4 -0
  200. package/dist/form/pane.cjs.js.map +1 -0
  201. package/dist/form/pane.d.ts +1 -2
  202. package/dist/form/pane.esm.js +122 -0
  203. package/dist/form/pane.esm.js.map +1 -0
  204. package/dist/home/homePane.cjs.js +2 -0
  205. package/dist/home/homePane.cjs.js.map +1 -0
  206. package/dist/home/homePane.d.ts +1 -1
  207. package/dist/home/homePane.esm.js +35 -0
  208. package/dist/home/homePane.esm.js.map +1 -0
  209. package/dist/humanReadablePane.d.ts +2 -3
  210. package/dist/humanReadablePane2.cjs.js +2 -0
  211. package/dist/humanReadablePane2.cjs.js.map +1 -0
  212. package/dist/humanReadablePane2.esm.js +123 -0
  213. package/dist/humanReadablePane2.esm.js.map +1 -0
  214. package/dist/icons/folder.cjs.js +2 -0
  215. package/dist/icons/folder.cjs.js.map +1 -0
  216. package/dist/icons/folder.esm.js +6 -0
  217. package/dist/icons/folder.esm.js.map +1 -0
  218. package/dist/icons/friends.cjs.js +2 -0
  219. package/dist/icons/friends.cjs.js.map +1 -0
  220. package/dist/icons/friends.esm.js +6 -0
  221. package/dist/icons/friends.esm.js.map +1 -0
  222. package/dist/icons/person.cjs.js +2 -0
  223. package/dist/icons/person.cjs.js.map +1 -0
  224. package/dist/icons/person.esm.js +6 -0
  225. package/dist/icons/person.esm.js.map +1 -0
  226. package/dist/imagePane.d.ts +2 -3
  227. package/dist/imagePane2.cjs.js +2 -0
  228. package/dist/imagePane2.cjs.js.map +1 -0
  229. package/dist/imagePane2.esm.js +32 -0
  230. package/dist/imagePane2.esm.js.map +1 -0
  231. package/dist/index.cjs.js +2 -0
  232. package/dist/index.cjs.js.map +1 -0
  233. package/dist/index.d.ts +4 -4
  234. package/dist/index.esm.js +31 -0
  235. package/dist/index.esm.js.map +1 -0
  236. package/dist/internal/internalPane.d.ts +1 -2
  237. package/dist/internal/internalPane2.cjs.js +2 -0
  238. package/dist/internal/internalPane2.cjs.js.map +1 -0
  239. package/dist/internal/internalPane2.esm.js +104 -0
  240. package/dist/internal/internalPane2.esm.js.map +1 -0
  241. package/dist/mainPage/header.cjs.js +2 -0
  242. package/dist/mainPage/header.cjs.js.map +1 -0
  243. package/dist/mainPage/header.d.ts +1 -15
  244. package/dist/mainPage/header.d.ts.map +1 -1
  245. package/dist/mainPage/header.esm.js +72 -0
  246. package/dist/mainPage/header.esm.js.map +1 -0
  247. package/dist/mainPage/index.cjs.js +2 -0
  248. package/dist/mainPage/index.cjs.js.map +1 -0
  249. package/dist/mainPage/index.d.ts +3 -15
  250. package/dist/mainPage/index.d.ts.map +1 -1
  251. package/dist/mainPage/index.esm.js +36 -0
  252. package/dist/mainPage/index.esm.js.map +1 -0
  253. package/dist/mainPage/navbar.cjs.js +2 -0
  254. package/dist/mainPage/navbar.cjs.js.map +1 -0
  255. package/dist/mainPage/navbar.d.ts +3 -0
  256. package/dist/mainPage/navbar.d.ts.map +1 -0
  257. package/dist/mainPage/navbar.esm.js +66 -0
  258. package/dist/mainPage/navbar.esm.js.map +1 -0
  259. package/dist/n3Pane.d.ts +2 -3
  260. package/dist/n3Pane2.cjs.js +3 -0
  261. package/dist/n3Pane2.cjs.js.map +1 -0
  262. package/dist/n3Pane2.esm.js +52 -0
  263. package/dist/n3Pane2.esm.js.map +1 -0
  264. package/dist/outline/context.cjs.js +2 -0
  265. package/dist/outline/context.cjs.js.map +1 -0
  266. package/dist/outline/context.d.ts +3 -3
  267. package/dist/outline/context.esm.js +18 -0
  268. package/dist/outline/context.esm.js.map +1 -0
  269. package/dist/outline/manager2.cjs.js +2 -0
  270. package/dist/outline/manager2.cjs.js.map +1 -0
  271. package/dist/outline/manager2.esm.js +711 -0
  272. package/dist/outline/manager2.esm.js.map +1 -0
  273. package/dist/outline/outlineIcons.cjs.js +2 -0
  274. package/dist/outline/outlineIcons.cjs.js.map +1 -0
  275. package/dist/outline/outlineIcons.esm.js +10 -0
  276. package/dist/outline/outlineIcons.esm.js.map +1 -0
  277. package/dist/outline/propertyViews.cjs.js +2 -0
  278. package/dist/outline/propertyViews.cjs.js.map +1 -0
  279. package/dist/outline/propertyViews.esm.js +19 -0
  280. package/dist/outline/propertyViews.esm.js.map +1 -0
  281. package/dist/outline/queryByExample.cjs.js +2 -0
  282. package/dist/outline/queryByExample.cjs.js.map +1 -0
  283. package/dist/outline/queryByExample.esm.js +26 -0
  284. package/dist/outline/queryByExample.esm.js.map +1 -0
  285. package/dist/outline/sourcePaneIcon.d.ts +2 -0
  286. package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
  287. package/dist/outline/userInput.cjs.js +61 -0
  288. package/dist/outline/userInput.cjs.js.map +1 -0
  289. package/dist/outline/userInput.esm.js +784 -0
  290. package/dist/outline/userInput.esm.js.map +1 -0
  291. package/dist/outline/viewAsImage.cjs.js +2 -0
  292. package/dist/outline/viewAsImage.cjs.js.map +1 -0
  293. package/dist/outline/viewAsImage.esm.js +10 -0
  294. package/dist/outline/viewAsImage.esm.js.map +1 -0
  295. package/dist/outline/viewAsMbox.cjs.js +2 -0
  296. package/dist/outline/viewAsMbox.cjs.js.map +1 -0
  297. package/dist/outline/viewAsMbox.esm.js +9 -0
  298. package/dist/outline/viewAsMbox.esm.js.map +1 -0
  299. package/dist/pad/padPane.d.ts +1 -2
  300. package/dist/pad/padPane2.cjs.js +2 -0
  301. package/dist/pad/padPane2.cjs.js.map +1 -0
  302. package/dist/pad/padPane2.esm.js +173 -0
  303. package/dist/pad/padPane2.esm.js.map +1 -0
  304. package/dist/playlist/playlistPane.cjs.js +2 -0
  305. package/dist/playlist/playlistPane.cjs.js.map +1 -0
  306. package/dist/playlist/playlistPane.esm.js +49 -0
  307. package/dist/playlist/playlistPane.esm.js.map +1 -0
  308. package/dist/registerPanes.cjs.js +2 -0
  309. package/dist/registerPanes.cjs.js.map +1 -0
  310. package/dist/registerPanes.esm.js +46 -0
  311. package/dist/registerPanes.esm.js.map +1 -0
  312. package/dist/schedule/formsForSchedule.cjs.js +117 -0
  313. package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
  314. package/dist/schedule/formsForSchedule.esm.js +6 -0
  315. package/dist/schedule/formsForSchedule.esm.js.map +1 -0
  316. package/dist/schedule/schedulePane.d.ts +2 -4
  317. package/dist/schedule/schedulePane2.cjs.js +8 -0
  318. package/dist/schedule/schedulePane2.cjs.js.map +1 -0
  319. package/dist/schedule/schedulePane2.esm.js +385 -0
  320. package/dist/schedule/schedulePane2.esm.js.map +1 -0
  321. package/dist/sharing/sharingPane.cjs.js +2 -0
  322. package/dist/sharing/sharingPane.cjs.js.map +1 -0
  323. package/dist/sharing/sharingPane.esm.js +22 -0
  324. package/dist/sharing/sharingPane.esm.js.map +1 -0
  325. package/dist/slideshow/slideshowPane.cjs.js +2 -0
  326. package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
  327. package/dist/slideshow/slideshowPane.esm.js +46 -0
  328. package/dist/slideshow/slideshowPane.esm.js.map +1 -0
  329. package/dist/social/editProfileDetails.cjs.js +2 -0
  330. package/dist/social/editProfileDetails.cjs.js.map +1 -0
  331. package/dist/social/editProfileDetails.d.ts +1 -2
  332. package/dist/social/editProfileDetails.esm.js +12 -0
  333. package/dist/social/editProfileDetails.esm.js.map +1 -0
  334. package/dist/social/icons.cjs.js +82 -0
  335. package/dist/social/icons.cjs.js.map +1 -0
  336. package/dist/social/{icons.js → icons.esm.js} +12 -18
  337. package/dist/social/icons.esm.js.map +1 -0
  338. package/dist/social/socialPane.d.ts +2 -3
  339. package/dist/social/socialPane2.cjs.js +6 -0
  340. package/dist/social/socialPane2.cjs.js.map +1 -0
  341. package/dist/social/socialPane2.esm.js +326 -0
  342. package/dist/social/socialPane2.esm.js.map +1 -0
  343. package/dist/social/socialSections.cjs.js +2 -0
  344. package/dist/social/socialSections.cjs.js.map +1 -0
  345. package/dist/social/socialSections.d.ts +2 -2
  346. package/dist/social/socialSections.esm.js +222 -0
  347. package/dist/social/socialSections.esm.js.map +1 -0
  348. package/dist/social/spinner.cjs.js +1 -0
  349. package/dist/social/spinner.esm.js +1 -0
  350. package/dist/social/triage.cjs.js +2 -0
  351. package/dist/social/triage.cjs.js.map +1 -0
  352. package/dist/social/triage.d.ts +2 -2
  353. package/dist/social/triage.esm.js +44 -0
  354. package/dist/social/triage.esm.js.map +1 -0
  355. package/dist/tabbed/tabbedPane.cjs.js +2 -0
  356. package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
  357. package/dist/tabbed/tabbedPane.d.ts +1 -1
  358. package/dist/tabbed/tabbedPane.esm.js +38 -0
  359. package/dist/tabbed/tabbedPane.esm.js.map +1 -0
  360. package/dist/tableViewPane.cjs.js +2 -0
  361. package/dist/tableViewPane.cjs.js.map +1 -0
  362. package/dist/tableViewPane.esm.js +20 -0
  363. package/dist/tableViewPane.esm.js.map +1 -0
  364. package/dist/transaction/pane.cjs.js +8 -0
  365. package/dist/transaction/pane.cjs.js.map +1 -0
  366. package/dist/transaction/pane.esm.js +212 -0
  367. package/dist/transaction/pane.esm.js.map +1 -0
  368. package/dist/transaction/period.cjs.js +4 -0
  369. package/dist/transaction/period.cjs.js.map +1 -0
  370. package/dist/transaction/period.esm.js +126 -0
  371. package/dist/transaction/period.esm.js.map +1 -0
  372. package/dist/trip/tripPane.cjs.js +2 -0
  373. package/dist/trip/tripPane.cjs.js.map +1 -0
  374. package/dist/trip/tripPane.esm.js +85 -0
  375. package/dist/trip/tripPane.esm.js.map +1 -0
  376. package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
  377. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
  378. package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
  379. package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
  380. package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
  381. package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
  382. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
  383. package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
  384. package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
  385. package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
  386. package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
  387. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
  388. package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
  389. package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
  390. package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
  391. package/dist/ui/pane.cjs.js +4 -0
  392. package/dist/ui/pane.cjs.js.map +1 -0
  393. package/dist/ui/pane.esm.js +56 -0
  394. package/dist/ui/pane.esm.js.map +1 -0
  395. package/dist/utils/paneUtils.cjs.js +2 -0
  396. package/dist/utils/paneUtils.cjs.js.map +1 -0
  397. package/dist/utils/paneUtils.d.ts +19 -0
  398. package/dist/utils/paneUtils.d.ts.map +1 -0
  399. package/dist/utils/paneUtils.esm.js +52 -0
  400. package/dist/utils/paneUtils.esm.js.map +1 -0
  401. package/dist/utils/podUtils.cjs.js +2 -0
  402. package/dist/utils/podUtils.cjs.js.map +1 -0
  403. package/dist/utils/podUtils.d.ts +4 -0
  404. package/dist/utils/podUtils.d.ts.map +1 -0
  405. package/dist/utils/podUtils.esm.js +46 -0
  406. package/dist/utils/podUtils.esm.js.map +1 -0
  407. package/dist/utils/webIdUtils.cjs.js +2 -0
  408. package/dist/utils/webIdUtils.cjs.js.map +1 -0
  409. package/dist/utils/webIdUtils.d.ts +6 -0
  410. package/dist/utils/webIdUtils.d.ts.map +1 -0
  411. package/dist/utils/webIdUtils.esm.js +48 -0
  412. package/dist/utils/webIdUtils.esm.js.map +1 -0
  413. package/dist/versionInfo.cjs.js +2 -0
  414. package/dist/versionInfo.cjs.js.map +1 -0
  415. package/dist/versionInfo.esm.js +40 -0
  416. package/dist/versionInfo.esm.js.map +1 -0
  417. package/dist/video/videoPane.cjs.js +2 -0
  418. package/dist/video/videoPane.cjs.js.map +1 -0
  419. package/dist/video/videoPane.esm.js +25 -0
  420. package/dist/video/videoPane.esm.js.map +1 -0
  421. package/package.json +51 -66
  422. package/dist/0314353e28ce6e5539af.svg +0 -9
  423. package/dist/04567ff683933c35c465.png +0 -0
  424. package/dist/10163fd9b5a0e00d63a0.png +0 -0
  425. package/dist/1234dcb2eec2e45f252b.png +0 -0
  426. package/dist/20899934157df4db56cb.png +0 -0
  427. package/dist/33760bf79f097f449da5.png +0 -0
  428. package/dist/4cceba29ab33b1ddd9bb.svg +0 -6
  429. package/dist/578d2b6ed32e7624164e.png +0 -0
  430. package/dist/5f62a5b2b7e99b9640c7.png +0 -0
  431. package/dist/6525766ecd288ec60129.png +0 -0
  432. package/dist/7800be6f6c4b5b0f4f20.png +0 -0
  433. package/dist/7b7538c6f6b317968009.svg +0 -9
  434. package/dist/92d03142abe6efc0b42d.svg +0 -6
  435. package/dist/976473cf5fe24d657d4b.png +0 -0
  436. package/dist/RDFXMLPane.css +0 -70
  437. package/dist/RDFXMLPane.js +0 -100
  438. package/dist/argument/argumentPane.js +0 -60
  439. package/dist/attach/attachPane.js +0 -393
  440. package/dist/audio/audioPane.js +0 -181
  441. package/dist/bda84f59e7216675a208.png +0 -0
  442. package/dist/cd68e8f3990ba8b2139e.png +0 -0
  443. package/dist/classInstancePane.js +0 -91
  444. package/dist/dashboard/basicPreferences.js +0 -147
  445. package/dist/dashboard/dashboardPane.js +0 -73
  446. package/dist/dashboard/homepage.js +0 -42
  447. package/dist/dataContentPane.css +0 -271
  448. package/dist/dataContentPane.js +0 -226
  449. package/dist/defaultPane.css +0 -97
  450. package/dist/defaultPane.js +0 -81
  451. package/dist/dokieli/dokieliPane.js +0 -74
  452. package/dist/e7074a7e2cb69e51cfd3.png +0 -0
  453. package/dist/f3772696fb7ee53c23d8.png +0 -0
  454. package/dist/form/formPane.css +0 -120
  455. package/dist/form/pane.js +0 -250
  456. package/dist/home/homePane.js +0 -74
  457. package/dist/humanReadablePane.css +0 -129
  458. package/dist/humanReadablePane.js +0 -243
  459. package/dist/icons/clock.svg +0 -7
  460. package/dist/icons/comment.svg +0 -6
  461. package/dist/icons/dashboard.svg +0 -9
  462. package/dist/icons/downArrow.svg +0 -6
  463. package/dist/icons/folder.svg +0 -6
  464. package/dist/icons/friends.svg +0 -9
  465. package/dist/icons/help.svg +0 -8
  466. package/dist/icons/iconHelper.js +0 -23
  467. package/dist/icons/menu.svg +0 -8
  468. package/dist/icons/person.svg +0 -6
  469. package/dist/icons/personInCircle.svg +0 -8
  470. package/dist/icons/sharing.svg +0 -10
  471. package/dist/icons/signOut.svg +0 -8
  472. package/dist/icons/signUp.svg +0 -9
  473. package/dist/icons/star.svg +0 -3
  474. package/dist/imagePane.css +0 -4
  475. package/dist/imagePane.js +0 -67
  476. package/dist/index.js +0 -123
  477. package/dist/internal/internalPane.css +0 -14
  478. package/dist/internal/internalPane.js +0 -183
  479. package/dist/mainPage/footer.d.ts +0 -15
  480. package/dist/mainPage/footer.d.ts.map +0 -1
  481. package/dist/mainPage/footer.js +0 -29
  482. package/dist/mainPage/header.js +0 -203
  483. package/dist/mainPage/index.js +0 -78
  484. package/dist/mainPage/menu.css +0 -243
  485. package/dist/mainPage/menu.d.ts +0 -7
  486. package/dist/mainPage/menu.d.ts.map +0 -1
  487. package/dist/mainPage/menu.js +0 -436
  488. package/dist/microblogPane/mbStyle.css +0 -267
  489. package/dist/microblogPane/microblogPane.js +0 -1031
  490. package/dist/n3Pane.css +0 -49
  491. package/dist/n3Pane.js +0 -88
  492. package/dist/outline/context.js +0 -21
  493. package/dist/outline/manager.css +0 -78
  494. package/dist/outline/manager.js +0 -2115
  495. package/dist/outline/outlineIcons.js +0 -126
  496. package/dist/outline/propertyViews.js +0 -43
  497. package/dist/outline/queryByExample.js +0 -285
  498. package/dist/outline/userInput.js +0 -1821
  499. package/dist/outline/viewAsImage.js +0 -14
  500. package/dist/outline/viewAsMbox.js +0 -21
  501. package/dist/pad/padPane.css +0 -40
  502. package/dist/pad/padPane.js +0 -421
  503. package/dist/playlist/playlistPane.js +0 -119
  504. package/dist/profileUtils/ownerProfile.d.ts +0 -5
  505. package/dist/profileUtils/ownerProfile.d.ts.map +0 -1
  506. package/dist/profileUtils/ownerProfile.js +0 -84
  507. package/dist/registerPanes.js +0 -145
  508. package/dist/schedule/schedulePane.css +0 -294
  509. package/dist/schedule/schedulePane.js +0 -1022
  510. package/dist/sharing/sharingPane.js +0 -48
  511. package/dist/slideshow/slideshowPane.js +0 -79
  512. package/dist/social/editProfileDetails.js +0 -362
  513. package/dist/social/socialPane.css +0 -1464
  514. package/dist/social/socialPane.js +0 -651
  515. package/dist/social/socialSections.js +0 -393
  516. package/dist/social/spinner.js +0 -13
  517. package/dist/social/triage.js +0 -79
  518. package/dist/solid-panes.js +0 -84629
  519. package/dist/solid-panes.js.map +0 -1
  520. package/dist/solid-panes.min.js +0 -3933
  521. package/dist/solid-panes.min.js.map +0 -1
  522. package/dist/styles/tabbedtab.css +0 -1066
  523. package/dist/styles/utilities.css +0 -5
  524. package/dist/tabbed/tabbedPane.js +0 -59
  525. package/dist/tableViewPane.js +0 -56
  526. package/dist/transaction/pane.js +0 -477
  527. package/dist/transaction/period.js +0 -323
  528. package/dist/trip/tripPane.js +0 -174
  529. package/dist/trustedApplications/trustedApplications.dom.js +0 -145
  530. package/dist/trustedApplications/trustedApplications.utils.js +0 -23
  531. package/dist/trustedApplications/trustedApplications.view.js +0 -55
  532. package/dist/ui/pane.js +0 -146
  533. package/dist/versionInfo.js +0 -41
  534. package/dist/video/videoPane.js +0 -42
@@ -1,5 +0,0 @@
1
- :root {
2
- --icon-sm: 1.8em;
3
- --color-background-row-default: white;
4
- --color-background-row-alternate: #f0f0f0;
5
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _solidUi = require("solid-ui");
8
- /* 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;
@@ -1,56 +0,0 @@
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
- };
@@ -1,477 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var UI = _interopRequireWildcard(require("solid-ui"));
8
- var $rdf = _interopRequireWildcard(require("rdflib"));
9
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
- /* 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