solid-panes 3.7.3-1bd42721 → 3.7.3-322e9b27

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 (390) hide show
  1. package/Documentation/VisualLanguage.html +538 -0
  2. package/Documentation/conventions.md +333 -0
  3. package/coverage/clover.xml +152 -0
  4. package/coverage/coverage-final.json +6 -0
  5. package/coverage/lcov-report/base.css +224 -0
  6. package/coverage/lcov-report/block-navigation.js +87 -0
  7. package/coverage/lcov-report/favicon.png +0 -0
  8. package/coverage/lcov-report/index.html +131 -0
  9. package/coverage/lcov-report/outline/index.html +161 -0
  10. package/coverage/lcov-report/outline/outlineIcons.js.html +565 -0
  11. package/coverage/lcov-report/outline/propertyViews.ts.html +196 -0
  12. package/coverage/lcov-report/outline/viewAsImage.ts.html +121 -0
  13. package/coverage/lcov-report/outline/viewAsMbox.ts.html +127 -0
  14. package/coverage/lcov-report/prettify.css +1 -0
  15. package/coverage/lcov-report/prettify.js +2 -0
  16. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  17. package/coverage/lcov-report/sorter.js +210 -0
  18. package/coverage/lcov-report/trustedApplications/index.html +116 -0
  19. package/coverage/lcov-report/trustedApplications/trustedApplications.utils.ts.html +238 -0
  20. package/coverage/lcov.info +204 -0
  21. package/dev/index.html +28 -0
  22. package/dev/loader.ts +91 -0
  23. package/dev/pane/index.ts +10 -0
  24. package/doc/images/panes-for-classes.epgz +0 -0
  25. package/doc/images/panes-for-classes.svg +609 -0
  26. package/eslint.config.mjs +34 -0
  27. package/jest.config.js +27 -0
  28. package/jest.setup.ts +4 -0
  29. package/lib/RDFXMLPane.js +59 -0
  30. package/lib/RDFXMLPane.js.map +1 -0
  31. package/{dist → lib}/argument/argumentPane.js +15 -14
  32. package/lib/argument/argumentPane.js.map +1 -0
  33. package/{dist → lib}/attach/attachPane.js +93 -83
  34. package/lib/attach/attachPane.js.map +1 -0
  35. package/{dist → lib}/audio/audioPane.js +50 -49
  36. package/lib/audio/audioPane.js.map +1 -0
  37. package/{dist → lib}/classInstancePane.js +24 -23
  38. package/lib/classInstancePane.js.map +1 -0
  39. package/lib/dashboard/basicPreferences.js +229 -0
  40. package/lib/dashboard/basicPreferences.js.map +1 -0
  41. package/lib/dashboard/dashboardPane.js +73 -0
  42. package/lib/dashboard/dashboardPane.js.map +1 -0
  43. package/lib/dashboard/homepage.js +86 -0
  44. package/lib/dashboard/homepage.js.map +1 -0
  45. package/{dist → lib}/dataContentPane.js +63 -63
  46. package/lib/dataContentPane.js.map +1 -0
  47. package/{dist → lib}/defaultPane.js +15 -14
  48. package/lib/defaultPane.js.map +1 -0
  49. package/{dist → lib}/dokieli/dokieliPane.js +53 -49
  50. package/lib/dokieli/dokieliPane.js.map +1 -0
  51. package/lib/dokieli/new.js +9 -0
  52. package/lib/dokieli/new.js.map +1 -0
  53. package/{dist → lib}/form/pane.js +45 -44
  54. package/lib/form/pane.js.map +1 -0
  55. package/lib/global.d.js +2 -0
  56. package/lib/global.d.js.map +1 -0
  57. package/lib/home/homePane.js +91 -0
  58. package/lib/home/homePane.js.map +1 -0
  59. package/lib/humanReadablePane.js +138 -0
  60. package/lib/humanReadablePane.js.map +1 -0
  61. package/lib/imagePane.js +71 -0
  62. package/lib/imagePane.js.map +1 -0
  63. package/lib/index.js +112 -0
  64. package/lib/index.js.map +1 -0
  65. package/lib/internal/internalPane.js +184 -0
  66. package/lib/internal/internalPane.js.map +1 -0
  67. package/lib/mainPage/footer.js +22 -0
  68. package/lib/mainPage/footer.js.map +1 -0
  69. package/lib/mainPage/header.js +152 -0
  70. package/lib/mainPage/header.js.map +1 -0
  71. package/{dist → lib}/mainPage/index.d.ts.map +1 -1
  72. package/lib/mainPage/index.js +42 -0
  73. package/lib/mainPage/index.js.map +1 -0
  74. package/{dist → lib}/microblogPane/microblogPane.js +262 -261
  75. package/lib/microblogPane/microblogPane.js.map +1 -0
  76. package/lib/n3Pane.js +57 -0
  77. package/lib/n3Pane.js.map +1 -0
  78. package/lib/outline/context.js +19 -0
  79. package/lib/outline/context.js.map +1 -0
  80. package/lib/outline/manager.js +2264 -0
  81. package/lib/outline/manager.js.map +1 -0
  82. package/lib/outline/manager.test.d.ts +2 -0
  83. package/lib/outline/manager.test.d.ts.map +1 -0
  84. package/lib/outline/manager.test.js +210 -0
  85. package/lib/outline/manager.test.js.map +1 -0
  86. package/{dist → lib}/outline/outlineIcons.js +3 -2
  87. package/lib/outline/outlineIcons.js.map +1 -0
  88. package/lib/outline/propertyViews.js +44 -0
  89. package/lib/outline/propertyViews.js.map +1 -0
  90. package/lib/outline/propertyViews.test.d.ts +2 -0
  91. package/lib/outline/propertyViews.test.d.ts.map +1 -0
  92. package/lib/outline/propertyViews.test.js +27 -0
  93. package/lib/outline/propertyViews.test.js.map +1 -0
  94. package/{dist → lib}/outline/queryByExample.js +31 -30
  95. package/lib/outline/queryByExample.js.map +1 -0
  96. package/{dist → lib}/outline/userInput.js +260 -262
  97. package/lib/outline/userInput.js.map +1 -0
  98. package/lib/outline/viewAsImage.js +17 -0
  99. package/lib/outline/viewAsImage.js.map +1 -0
  100. package/{dist → lib}/outline/viewAsMbox.js +14 -4
  101. package/lib/outline/viewAsMbox.js.map +1 -0
  102. package/lib/pad/padPane.js +417 -0
  103. package/lib/pad/padPane.js.map +1 -0
  104. package/{dist → lib}/playlist/playlistPane.js +37 -36
  105. package/lib/playlist/playlistPane.js.map +1 -0
  106. package/{dist → lib}/registerPanes.js +29 -29
  107. package/lib/registerPanes.js.map +1 -0
  108. package/lib/schedule/formsForSchedule.js +8 -0
  109. package/{dist → lib}/schedule/formsForSchedule.js.map +1 -1
  110. package/{dist → lib}/schedule/schedulePane.js +177 -171
  111. package/lib/schedule/schedulePane.js.map +1 -0
  112. package/lib/sharing/sharingPane.js +49 -0
  113. package/lib/sharing/sharingPane.js.map +1 -0
  114. package/lib/slideshow/slideshowPane.js +84 -0
  115. package/lib/slideshow/slideshowPane.js.map +1 -0
  116. package/{dist → lib}/socialPane.js +142 -141
  117. package/lib/socialPane.js.map +1 -0
  118. package/lib/tabbed/tabbedPane.js +72 -0
  119. package/lib/tabbed/tabbedPane.js.map +1 -0
  120. package/{dist → lib}/tableViewPane.js +9 -8
  121. package/lib/tableViewPane.js.map +1 -0
  122. package/lib/test-import-export/common.js +12 -0
  123. package/lib/test-import-export/common.js.map +1 -0
  124. package/lib/test-import-export/edit-importer.js +25 -0
  125. package/lib/test-import-export/edit-importer.js.map +1 -0
  126. package/lib/test-import-export/testImportExport.js +2 -0
  127. package/lib/test-import-export/testImportExport.js.map +1 -0
  128. package/{dist → lib}/transaction/pane.js +118 -117
  129. package/lib/transaction/pane.js.map +1 -0
  130. package/{dist → lib}/transaction/period.js +83 -82
  131. package/lib/transaction/period.js.map +1 -0
  132. package/{dist → lib}/trip/tripPane.js +48 -47
  133. package/lib/trip/tripPane.js.map +1 -0
  134. package/lib/trustedApplications/trustedApplications.dom.js +177 -0
  135. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -0
  136. package/lib/trustedApplications/trustedApplications.test.d.ts +2 -0
  137. package/lib/trustedApplications/trustedApplications.test.d.ts.map +1 -0
  138. package/lib/trustedApplications/trustedApplications.test.js +64 -0
  139. package/lib/trustedApplications/trustedApplications.test.js.map +1 -0
  140. package/lib/trustedApplications/trustedApplications.utils.js +34 -0
  141. package/lib/trustedApplications/trustedApplications.utils.js.map +1 -0
  142. package/lib/trustedApplications/trustedApplications.view.js +87 -0
  143. package/lib/trustedApplications/trustedApplications.view.js.map +1 -0
  144. package/lib/types.js +6 -0
  145. package/lib/types.js.map +1 -0
  146. package/{dist → lib}/ui/pane.js +31 -30
  147. package/lib/ui/pane.js.map +1 -0
  148. package/lib/versionInfo.d.ts +32 -0
  149. package/lib/versionInfo.d.ts.map +1 -0
  150. package/lib/versionInfo.js +37 -0
  151. package/lib/versionInfo.js.map +1 -0
  152. package/lib/video/videoPane.js +44 -0
  153. package/lib/video/videoPane.js.map +1 -0
  154. package/package.json +13 -26
  155. package/src/RDFXMLPane.js +60 -0
  156. package/src/argument/argumentPane.js +65 -0
  157. package/src/argument/argument_icon_v04.jpg +0 -0
  158. package/src/argument/icon_argument.png +0 -0
  159. package/src/argument/transparentyingyang.png +0 -0
  160. package/src/attach/attachPane.js +508 -0
  161. package/src/attach/tbl-paperclip-128.png +0 -0
  162. package/src/attach/tbl-paperclip-22.png +0 -0
  163. package/src/attach/tbl-paperclip-22a.png +0 -0
  164. package/src/audio/audioPane.js +197 -0
  165. package/src/chatPreferencesForm.ttl +12 -0
  166. package/src/classInstancePane.js +110 -0
  167. package/src/dashboard/basicPreferences.ts +201 -0
  168. package/src/dashboard/dashboardPane.ts +83 -0
  169. package/src/dashboard/homepage.ts +72 -0
  170. package/src/dashboard/languages/codes.html +8611 -0
  171. package/src/dashboard/languages/codes.xml +3563 -0
  172. package/src/dashboard/languages/codes2.txt +170 -0
  173. package/src/dashboard/languages/foo +70 -0
  174. package/src/dashboard/languages/foo.ttl +0 -0
  175. package/src/dashboard/languages/get-language-names.sh +12 -0
  176. package/src/dashboard/ontologyData.ttl +35 -0
  177. package/src/dashboard/preferencesFormText.ttl +18 -0
  178. package/src/dataContentPane.js +290 -0
  179. package/src/defaultPane.js +102 -0
  180. package/src/dokieli/Makefile +6 -0
  181. package/src/dokieli/dokieliPane.js +190 -0
  182. package/src/dokieli/new.html +30 -0
  183. package/{dist → src}/dokieli/new.js +3 -9
  184. package/src/form/form-22.png +0 -0
  185. package/src/form/form-b-22.png +0 -0
  186. package/src/form/form.graffle +0 -0
  187. package/src/form/form.png +0 -0
  188. package/src/form/pane.js +217 -0
  189. package/src/form/psuedocode-notes.txt +57 -0
  190. package/src/global.d.ts +4 -0
  191. package/src/home/homePane.ts +72 -0
  192. package/src/humanReadablePane.js +150 -0
  193. package/src/imagePane.js +75 -0
  194. package/src/index.ts +71 -0
  195. package/src/internal/internalPane.ts +263 -0
  196. package/src/mainPage/footer.ts +19 -0
  197. package/src/mainPage/header.ts +79 -0
  198. package/src/mainPage/index.ts +20 -0
  199. package/src/meeting/Makefile +3 -0
  200. package/src/meeting/test/meeting1/Actions/actions.ttl +14 -0
  201. package/src/meeting/test/meeting1/Actions/config.ttl +16 -0
  202. package/src/meeting/test/meeting1/Actions/state.ttl +30 -0
  203. package/src/meeting/test/meeting1/Schedule/details.ttl +34 -0
  204. package/src/meeting/test/meeting1/Schedule/details.ttl.acl +20 -0
  205. package/src/meeting/test/meeting1/Schedule/forms.ttl +75 -0
  206. package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +20 -0
  207. package/src/meeting/test/meeting1/Schedule/index.html +72 -0
  208. package/src/meeting/test/meeting1/Schedule/index.html.acl +20 -0
  209. package/src/meeting/test/meeting1/Schedule/results.ttl +15 -0
  210. package/src/meeting/test/meeting1/Schedule/results.ttl.acl +20 -0
  211. package/src/meeting/test/meeting1/SharedNotes/pad.ttl +23 -0
  212. package/src/meeting/test/meeting1/chat/chat.ttl +1 -0
  213. package/src/meeting/test/meeting1/details.ttl +35 -0
  214. package/src/meeting/test/meeting1/pad/pad.ttl +16 -0
  215. package/src/microblogPane/mbStyle.css +267 -0
  216. package/src/microblogPane/microblogPane.js +1412 -0
  217. package/src/n3Pane.js +56 -0
  218. package/src/outline/context.ts +21 -0
  219. package/src/outline/manager.js +2384 -0
  220. package/src/outline/manager.test.ts +189 -0
  221. package/src/outline/outlineIcons.js +160 -0
  222. package/src/outline/propertyViews.test.ts +36 -0
  223. package/src/outline/propertyViews.ts +37 -0
  224. package/src/outline/queryByExample.js +296 -0
  225. package/src/outline/userInput.js +2373 -0
  226. package/src/outline/viewAsImage.ts +12 -0
  227. package/src/outline/viewAsMbox.ts +14 -0
  228. package/src/pad/images/ColourOff.ai +873 -1
  229. package/src/pad/images/ColourOff.png +0 -0
  230. package/src/pad/images/ColourOn.ai +934 -2
  231. package/src/pad/images/ColourOn.png +0 -0
  232. package/src/pad/padPane.ts +559 -0
  233. package/src/playlist/playlistPane.js +161 -0
  234. package/src/registerPanes.js +147 -0
  235. package/src/schedule/Makefile +6 -0
  236. package/{dist → src}/schedule/formsForSchedule.js +2 -9
  237. package/src/schedule/formsForSchedule.ttl +115 -0
  238. package/src/schedule/schedulePane.js +1201 -0
  239. package/src/sharing/sharingPane.ts +49 -0
  240. package/src/slideshow/slideshowPane.js +80 -0
  241. package/src/socialPane.js +523 -0
  242. package/src/style/tabbedtab.css +1347 -0
  243. package/src/tabbed/tabbedPane.ts +60 -0
  244. package/src/tableViewPane.js +51 -0
  245. package/src/test-import-export/common.js +6 -0
  246. package/src/test-import-export/edit-importer.js +20 -0
  247. package/src/test-import-export/testImportExport.js +0 -0
  248. package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  249. package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
  250. package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  251. package/src/transaction/pane.js +629 -0
  252. package/src/transaction/period.js +374 -0
  253. package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
  254. package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
  255. package/src/trip/tripPane.js +176 -0
  256. package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +176 -0
  257. package/src/trustedApplications/trustedApplications.dom.ts +276 -0
  258. package/src/trustedApplications/trustedApplications.test.ts +82 -0
  259. package/src/trustedApplications/trustedApplications.utils.ts +51 -0
  260. package/src/trustedApplications/trustedApplications.view.ts +80 -0
  261. package/src/types.ts +34 -0
  262. package/src/ui/22-builder.png +0 -0
  263. package/src/ui/builder.graffle +0 -0
  264. package/src/ui/builder.png +0 -0
  265. package/src/ui/builder2.png +0 -0
  266. package/src/ui/pane.js +226 -0
  267. package/src/versionInfo.ts +30 -0
  268. package/src/video/videoPane.js +44 -0
  269. package/timestamp.sh +13 -0
  270. package/travis/bumpversion.js +29 -0
  271. package/tsconfig.json +78 -0
  272. package/typings/raw-loader.d.ts +4 -0
  273. package/typings/solid-namespace/index.d.ts +9 -0
  274. package/webpack.config.js +41 -0
  275. package/dist/RDFXMLPane.js +0 -58
  276. package/dist/RDFXMLPane.js.map +0 -1
  277. package/dist/argument/argumentPane.js.map +0 -1
  278. package/dist/attach/attachPane.js.map +0 -1
  279. package/dist/audio/audioPane.js.map +0 -1
  280. package/dist/classInstancePane.js.map +0 -1
  281. package/dist/dashboard/basicPreferences.js +0 -155
  282. package/dist/dashboard/basicPreferences.js.map +0 -1
  283. package/dist/dashboard/dashboardPane.js +0 -63
  284. package/dist/dashboard/dashboardPane.js.map +0 -1
  285. package/dist/dashboard/homepage.js +0 -63
  286. package/dist/dashboard/homepage.js.map +0 -1
  287. package/dist/dataContentPane.js.map +0 -1
  288. package/dist/defaultPane.js.map +0 -1
  289. package/dist/dokieli/dokieliPane.js.map +0 -1
  290. package/dist/dokieli/new.js.map +0 -1
  291. package/dist/form/pane.js.map +0 -1
  292. package/dist/home/homePane.js +0 -68
  293. package/dist/home/homePane.js.map +0 -1
  294. package/dist/humanReadablePane.js +0 -135
  295. package/dist/humanReadablePane.js.map +0 -1
  296. package/dist/imagePane.js +0 -70
  297. package/dist/imagePane.js.map +0 -1
  298. package/dist/index.js +0 -48
  299. package/dist/index.js.map +0 -1
  300. package/dist/internal/internalPane.js +0 -195
  301. package/dist/internal/internalPane.js.map +0 -1
  302. package/dist/mainPage/footer.js +0 -16
  303. package/dist/mainPage/footer.js.map +0 -1
  304. package/dist/mainPage/header.js +0 -84
  305. package/dist/mainPage/header.js.map +0 -1
  306. package/dist/mainPage/index.js +0 -30
  307. package/dist/mainPage/index.js.map +0 -1
  308. package/dist/microblogPane/microblogPane.js.map +0 -1
  309. package/dist/n3Pane.js +0 -56
  310. package/dist/n3Pane.js.map +0 -1
  311. package/dist/outline/context.js +0 -13
  312. package/dist/outline/context.js.map +0 -1
  313. package/dist/outline/manager.js +0 -1997
  314. package/dist/outline/manager.js.map +0 -1
  315. package/dist/outline/outlineIcons.js.map +0 -1
  316. package/dist/outline/propertyViews.js +0 -33
  317. package/dist/outline/propertyViews.js.map +0 -1
  318. package/dist/outline/queryByExample.js.map +0 -1
  319. package/dist/outline/userInput.js.map +0 -1
  320. package/dist/outline/viewAsImage.js +0 -7
  321. package/dist/outline/viewAsImage.js.map +0 -1
  322. package/dist/outline/viewAsMbox.js.map +0 -1
  323. package/dist/pad/padPane.js +0 -420
  324. package/dist/pad/padPane.js.map +0 -1
  325. package/dist/playlist/playlistPane.js.map +0 -1
  326. package/dist/registerPanes.js.map +0 -1
  327. package/dist/schedule/schedulePane.js.map +0 -1
  328. package/dist/sharing/sharingPane.js +0 -45
  329. package/dist/sharing/sharingPane.js.map +0 -1
  330. package/dist/slideshow/slideshowPane.js +0 -80
  331. package/dist/slideshow/slideshowPane.js.map +0 -1
  332. package/dist/socialPane.js.map +0 -1
  333. package/dist/tabbed/tabbedPane.js +0 -55
  334. package/dist/tabbed/tabbedPane.js.map +0 -1
  335. package/dist/tableViewPane.js.map +0 -1
  336. package/dist/transaction/pane.js.map +0 -1
  337. package/dist/transaction/period.js.map +0 -1
  338. package/dist/trip/tripPane.js.map +0 -1
  339. package/dist/trustedApplications/trustedApplications.dom.js +0 -158
  340. package/dist/trustedApplications/trustedApplications.dom.js.map +0 -1
  341. package/dist/trustedApplications/trustedApplications.utils.js +0 -24
  342. package/dist/trustedApplications/trustedApplications.utils.js.map +0 -1
  343. package/dist/trustedApplications/trustedApplications.view.js +0 -62
  344. package/dist/trustedApplications/trustedApplications.view.js.map +0 -1
  345. package/dist/types.js +0 -2
  346. package/dist/types.js.map +0 -1
  347. package/dist/ui/pane.js.map +0 -1
  348. package/dist/versionInfo.js +0 -31
  349. package/dist/versionInfo.js.map +0 -1
  350. package/dist/video/videoPane.js +0 -43
  351. package/dist/video/videoPane.js.map +0 -1
  352. /package/{dist → lib}/dashboard/basicPreferences.d.ts +0 -0
  353. /package/{dist → lib}/dashboard/basicPreferences.d.ts.map +0 -0
  354. /package/{dist → lib}/dashboard/dashboardPane.d.ts +0 -0
  355. /package/{dist → lib}/dashboard/dashboardPane.d.ts.map +0 -0
  356. /package/{dist → lib}/dashboard/homepage.d.ts +0 -0
  357. /package/{dist → lib}/dashboard/homepage.d.ts.map +0 -0
  358. /package/{dist → lib}/home/homePane.d.ts +0 -0
  359. /package/{dist → lib}/home/homePane.d.ts.map +0 -0
  360. /package/{dist → lib}/index.d.ts +0 -0
  361. /package/{dist → lib}/index.d.ts.map +0 -0
  362. /package/{dist → lib}/internal/internalPane.d.ts +0 -0
  363. /package/{dist → lib}/internal/internalPane.d.ts.map +0 -0
  364. /package/{dist → lib}/mainPage/footer.d.ts +0 -0
  365. /package/{dist → lib}/mainPage/footer.d.ts.map +0 -0
  366. /package/{dist → lib}/mainPage/header.d.ts +0 -0
  367. /package/{dist → lib}/mainPage/header.d.ts.map +0 -0
  368. /package/{dist → lib}/mainPage/index.d.ts +0 -0
  369. /package/{dist → lib}/outline/context.d.ts +0 -0
  370. /package/{dist → lib}/outline/context.d.ts.map +0 -0
  371. /package/{dist → lib}/outline/propertyViews.d.ts +0 -0
  372. /package/{dist → lib}/outline/propertyViews.d.ts.map +0 -0
  373. /package/{dist → lib}/outline/viewAsImage.d.ts +0 -0
  374. /package/{dist → lib}/outline/viewAsImage.d.ts.map +0 -0
  375. /package/{dist → lib}/outline/viewAsMbox.d.ts +0 -0
  376. /package/{dist → lib}/outline/viewAsMbox.d.ts.map +0 -0
  377. /package/{dist → lib}/pad/padPane.d.ts +0 -0
  378. /package/{dist → lib}/pad/padPane.d.ts.map +0 -0
  379. /package/{dist → lib}/sharing/sharingPane.d.ts +0 -0
  380. /package/{dist → lib}/sharing/sharingPane.d.ts.map +0 -0
  381. /package/{dist → lib}/tabbed/tabbedPane.d.ts +0 -0
  382. /package/{dist → lib}/tabbed/tabbedPane.d.ts.map +0 -0
  383. /package/{dist → lib}/trustedApplications/trustedApplications.dom.d.ts +0 -0
  384. /package/{dist → lib}/trustedApplications/trustedApplications.dom.d.ts.map +0 -0
  385. /package/{dist → lib}/trustedApplications/trustedApplications.utils.d.ts +0 -0
  386. /package/{dist → lib}/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
  387. /package/{dist → lib}/trustedApplications/trustedApplications.view.d.ts +0 -0
  388. /package/{dist → lib}/trustedApplications/trustedApplications.view.d.ts.map +0 -0
  389. /package/{dist → lib}/types.d.ts +0 -0
  390. /package/{dist → lib}/types.d.ts.map +0 -0
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -7,29 +8,28 @@ exports.schedulePane = void 0;
7
8
  var UI = _interopRequireWildcard(require("solid-ui"));
8
9
  var _solidLogic = require("solid-logic");
9
10
  var _formsForSchedule = _interopRequireDefault(require("./formsForSchedule.js"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(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 (var _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); }
12
13
  /* Scheduler Pane
13
14
  **
14
15
  **
15
16
  */
16
17
  /* global alert */
17
18
 
18
- const $rdf = UI.rdf;
19
- const ns = UI.ns;
20
-
19
+ var $rdf = UI.rdf;
20
+ var ns = UI.ns;
21
21
  // @@ Give other combos too-- see schedule ontology
22
- const possibleAvailabilities = [ns.sched('No'), ns.sched('Maybe'), ns.sched('Yes')];
23
- const schedulePane = exports.schedulePane = {
22
+ var possibleAvailabilities = [ns.sched('No'), ns.sched('Maybe'), ns.sched('Yes')];
23
+ var schedulePane = exports.schedulePane = {
24
24
  icon: UI.icons.iconBase + 'noun_346777.svg',
25
25
  // @@ better?
26
26
 
27
27
  name: 'schedule',
28
28
  audience: [ns.solid('PowerUser')],
29
29
  // Does the subject deserve an Scheduler pane?
30
- label: function (subject, context) {
31
- const kb = context.session.store;
32
- const t = kb.findTypeURIs(subject);
30
+ label: function label(subject, context) {
31
+ var kb = context.session.store;
32
+ var t = kb.findTypeURIs(subject);
33
33
  if (t['http://www.w3.org/ns/pim/schedule#SchedulableEvent']) {
34
34
  return 'Scheduling poll';
35
35
  }
@@ -37,13 +37,13 @@ const schedulePane = exports.schedulePane = {
37
37
  },
38
38
  // Mint a new Schedule poll
39
39
  mintClass: ns.sched('SchedulableEvent'),
40
- mintNew: function (context, options) {
40
+ mintNew: function mintNew(context, options) {
41
41
  return new Promise(function (resolve, reject) {
42
- const ns = UI.ns;
43
- const kb = context.session.store;
44
- let newBase = options.newBase;
45
- const thisInstance = options.useExisting || $rdf.sym(options.newBase + 'index.ttl#this');
46
- const complainIfBad = function (ok, body) {
42
+ var ns = UI.ns;
43
+ var kb = context.session.store;
44
+ var newBase = options.newBase;
45
+ var thisInstance = options.useExisting || $rdf.sym(options.newBase + 'index.ttl#this');
46
+ var complainIfBad = function complainIfBad(ok, body) {
47
47
  if (ok) return;
48
48
  console.log('Error in Schedule Pane: Error constructing new scheduler: ' + body);
49
49
  reject(new Error(body));
@@ -54,12 +54,12 @@ const schedulePane = exports.schedulePane = {
54
54
  // Two constiations of ACL for this app, public read and public read/write
55
55
  // In all cases owner has read write control
56
56
 
57
- const genACLtext = function (docURI, aclURI, allWrite) {
58
- const g = $rdf.graph();
59
- const auth = $rdf.Namespace('http://www.w3.org/ns/auth/acl#');
60
- let a = g.sym(aclURI + '#a1');
61
- const acl = g.sym(aclURI);
62
- const doc = g.sym(docURI);
57
+ var genACLtext = function genACLtext(docURI, aclURI, allWrite) {
58
+ var g = $rdf.graph();
59
+ var auth = $rdf.Namespace('http://www.w3.org/ns/auth/acl#');
60
+ var a = g.sym(aclURI + '#a1');
61
+ var acl = g.sym(aclURI);
62
+ var doc = g.sym(docURI);
63
63
  g.add(a, UI.ns.rdf('type'), auth('Authorization'), acl);
64
64
  g.add(a, auth('accessTo'), doc, acl);
65
65
  g.add(a, auth('agent'), me, acl);
@@ -84,49 +84,53 @@ const schedulePane = exports.schedulePane = {
84
84
  }
85
85
  */
86
86
 
87
- const setACL2 = function setACL2(docURI, allWrite, callbackFunction) {
88
- const aclDoc = kb.any(kb.sym(docURI), kb.sym('http://www.iana.org/assignments/link-relations/acl')); // @@ check that this get set by web.js
87
+ var setACL2 = function setACL2(docURI, allWrite, callbackFunction) {
88
+ var aclDoc = kb.any(kb.sym(docURI), kb.sym('http://www.iana.org/assignments/link-relations/acl')); // @@ check that this get set by web.js
89
89
 
90
90
  if (aclDoc) {
91
91
  // Great we already know where it is
92
- const aclText = genACLtext(docURI, aclDoc.uri, allWrite);
92
+ var aclText = genACLtext(docURI, aclDoc.uri, allWrite);
93
93
  return fetcher.webOperation('PUT', aclDoc.uri, {
94
94
  data: aclText,
95
95
  contentType: 'text/turtle'
96
- }).then(_result => callbackFunction(true)).catch(err => {
96
+ }).then(function (_result) {
97
+ return callbackFunction(true);
98
+ })["catch"](function (err) {
97
99
  callbackFunction(false, err.message);
98
100
  });
99
101
  } else {
100
- return fetcher.load(docURI).catch(err => {
102
+ return fetcher.load(docURI)["catch"](function (err) {
101
103
  callbackFunction(false, 'Getting headers for ACL: ' + err);
102
- }).then(() => {
103
- const aclDoc = kb.any(kb.sym(docURI), kb.sym('http://www.iana.org/assignments/link-relations/acl'));
104
+ }).then(function () {
105
+ var aclDoc = kb.any(kb.sym(docURI), kb.sym('http://www.iana.org/assignments/link-relations/acl'));
104
106
  if (!aclDoc) {
105
107
  // complainIfBad(false, "No Link rel=ACL header for " + docURI)
106
108
  throw new Error('No Link rel=ACL header for ' + docURI);
107
109
  }
108
- const aclText = genACLtext(docURI, aclDoc.uri, allWrite);
110
+ var aclText = genACLtext(docURI, aclDoc.uri, allWrite);
109
111
  return fetcher.webOperation('PUT', aclDoc.uri, {
110
112
  data: aclText,
111
113
  contentType: 'text/turtle'
112
114
  });
113
- }).then(_result => callbackFunction(true)).catch(err => {
115
+ }).then(function (_result) {
116
+ return callbackFunction(true);
117
+ })["catch"](function (err) {
114
118
  callbackFunction(false, err.message);
115
119
  });
116
120
  }
117
121
  };
118
122
 
119
123
  // Body of mintNew
120
- const fetcher = kb.fetcher;
121
- const updater = kb.updater;
122
- let me = options.me || _solidLogic.authn.currentUser();
124
+ var fetcher = kb.fetcher;
125
+ var updater = kb.updater;
126
+ var me = options.me || _solidLogic.authn.currentUser();
123
127
  if (!me) {
124
128
  console.log('MUST BE LOGGED IN');
125
129
  alert('NOT LOGGED IN');
126
130
  return;
127
131
  }
128
- const base = thisInstance.dir().uri;
129
- let newDetailsDoc, newInstance; // , newIndexDoc
132
+ var base = thisInstance.dir().uri;
133
+ var newDetailsDoc, newInstance; // , newIndexDoc
130
134
 
131
135
  if (options.useExisting) {
132
136
  newInstance = options.useExisting;
@@ -141,21 +145,21 @@ const schedulePane = exports.schedulePane = {
141
145
  // newIndexDoc = kb.sym(newBase + 'index.html')
142
146
  newInstance = kb.sym(newDetailsDoc.uri + '#event');
143
147
  }
144
- const newResultsDoc = kb.sym(newBase + 'results.ttl');
145
- const toBeCopied = options.noIndexHTML ? {} : [{
148
+ var newResultsDoc = kb.sym(newBase + 'results.ttl');
149
+ var toBeCopied = options.noIndexHTML ? {} : [{
146
150
  local: 'index.html',
147
151
  contentType: 'text/html'
148
152
  }];
149
- const agenda = [];
153
+ var agenda = [];
150
154
 
151
155
  // @@ This needs some form of visible progress bar
152
- for (let f = 0; f < toBeCopied.length; f++) {
153
- const item = toBeCopied[f];
154
- const fun = function copyItem(item) {
156
+ for (var f = 0; f < toBeCopied.length; f++) {
157
+ var item = toBeCopied[f];
158
+ var fun = function copyItem(item) {
155
159
  agenda.push(function () {
156
- const newURI = newBase + item.local;
160
+ var newURI = newBase + item.local;
157
161
  console.log('Copying ' + base + item.local + ' to ' + newURI);
158
- const setThatACL = function () {
162
+ var setThatACL = function setThatACL() {
159
163
  setACL2(newURI, false, function (ok, message) {
160
164
  if (!ok) {
161
165
  complainIfBad(ok, 'FAILED to set ACL ' + newURI + ' : ' + message);
@@ -165,10 +169,12 @@ const schedulePane = exports.schedulePane = {
165
169
  }
166
170
  });
167
171
  };
168
- kb.fetcher.webCopy(base + item.local, newBase + item.local, item.contentType).then(() => _solidLogic.authn.checkUser()).then(webId => {
172
+ kb.fetcher.webCopy(base + item.local, newBase + item.local, item.contentType).then(function () {
173
+ return _solidLogic.authn.checkUser();
174
+ }).then(function (webId) {
169
175
  me = webId;
170
176
  setThatACL();
171
- }).catch(err => {
177
+ })["catch"](function (err) {
172
178
  console.log('FAILED to copy ' + base + item.local + ' : ' + err.message);
173
179
  complainIfBad(false, 'FAILED to copy ' + base + item.local + ' : ' + err.message);
174
180
  });
@@ -197,9 +203,9 @@ const schedulePane = exports.schedulePane = {
197
203
  kb.fetcher.webOperation('PUT', newResultsDoc.uri, {
198
204
  data: '',
199
205
  contentType: 'text/turtle'
200
- }).then(() => {
206
+ }).then(function () {
201
207
  agenda.shift()();
202
- }).catch(err => {
208
+ })["catch"](function (err) {
203
209
  complainIfBad(false, 'Failed to initialize empty results file: ' + err.message);
204
210
  });
205
211
  });
@@ -228,55 +234,55 @@ const schedulePane = exports.schedulePane = {
228
234
  // mintNew
229
235
 
230
236
  // Render one meeting schedule poll
231
- render: function (subject, context) {
232
- const dom = context.dom;
233
- const kb = context.session.store;
234
- const ns = UI.ns;
235
- const invitation = subject;
236
- const appPathSegment = 'app-when-can-we.w3.org'; // how to allocate this string and connect to
237
+ render: function render(subject, context) {
238
+ var dom = context.dom;
239
+ var kb = context.session.store;
240
+ var ns = UI.ns;
241
+ var invitation = subject;
242
+ var appPathSegment = 'app-when-can-we.w3.org'; // how to allocate this string and connect to
237
243
 
238
244
  // ////////////////////////////////////////////
239
245
 
240
- const fetcher = kb.fetcher;
241
- const updater = kb.updater;
242
- let waitingForLogin = false;
243
- const thisInstance = subject;
244
- const detailsDoc = subject.doc();
245
- const baseDir = detailsDoc.dir();
246
- const base = baseDir.uri;
247
- const resultsDoc = $rdf.sym(base + 'results.ttl');
246
+ var fetcher = kb.fetcher;
247
+ var updater = kb.updater;
248
+ var waitingForLogin = false;
249
+ var thisInstance = subject;
250
+ var detailsDoc = subject.doc();
251
+ var baseDir = detailsDoc.dir();
252
+ var base = baseDir.uri;
253
+ var resultsDoc = $rdf.sym(base + 'results.ttl');
248
254
  // const formsURI = base + 'forms.ttl'
249
255
  // We can't in fact host stuff from there because of CORS
250
- const formsURI = 'https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl';
251
- const form1 = kb.sym(formsURI + '#form1');
252
- const form2 = kb.sym(formsURI + '#form2');
253
- const form3 = kb.sym(formsURI + '#form3');
254
- $rdf.parse(_formsForSchedule.default, kb, formsURI, 'text/turtle'); // Load forms directly
256
+ var formsURI = 'https://solidos.github.io/solid-panes/schedule/formsForSchedule.ttl';
257
+ var form1 = kb.sym(formsURI + '#form1');
258
+ var form2 = kb.sym(formsURI + '#form2');
259
+ var form3 = kb.sym(formsURI + '#form3');
260
+ $rdf.parse(_formsForSchedule["default"], kb, formsURI, 'text/turtle'); // Load forms directly
255
261
 
256
- const inputStyle = 'background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%'; // font-size: 120%
257
- const buttonIconStyle = 'width: 1.8em; height: 1.8em;';
262
+ var inputStyle = 'background-color: #eef; padding: 0.5em; border: .5em solid white; font-size: 100%'; // font-size: 120%
263
+ var buttonIconStyle = 'width: 1.8em; height: 1.8em;';
258
264
 
259
265
  // Utility functions
260
266
 
261
- const complainIfBad = function (ok, message) {
267
+ var complainIfBad = function complainIfBad(ok, message) {
262
268
  if (!ok) {
263
269
  div.appendChild(UI.widgets.errorMessageBlock(dom, message, 'pink'));
264
270
  }
265
271
  };
266
- const clearElement = function (ele) {
272
+ var clearElement = function clearElement(ele) {
267
273
  while (ele.firstChild) {
268
274
  ele.removeChild(ele.firstChild);
269
275
  }
270
276
  return ele;
271
277
  };
272
- const refreshCellColor = function (cell, value) {
273
- const bg = kb.any(value, UI.ns.ui('backgroundColor'));
278
+ var refreshCellColor = function refreshCellColor(cell, value) {
279
+ var bg = kb.any(value, UI.ns.ui('backgroundColor'));
274
280
  if (bg) {
275
281
  cell.setAttribute('style', 'padding: 0.3em; text-align: center; background-color: ' + bg + ';');
276
282
  }
277
283
  };
278
- let me;
279
- _solidLogic.authn.checkUser().then(webId => {
284
+ var me;
285
+ _solidLogic.authn.checkUser().then(function (webId) {
280
286
  me = webId;
281
287
  if (logInOutButton) {
282
288
  logInOutButton.refresh();
@@ -293,8 +299,8 @@ const schedulePane = exports.schedulePane = {
293
299
  // Viral growth path: user of app decides to make another instance
294
300
  //
295
301
 
296
- const newInstanceButton = function () {
297
- const b = UI.login.newAppInstance(dom, {
302
+ var newInstanceButton = function newInstanceButton() {
303
+ var b = UI.login.newAppInstance(dom, {
298
304
  noun: 'scheduler'
299
305
  }, initializeNewInstanceInWorkspace);
300
306
  b.firstChild.setAttribute('style', inputStyle);
@@ -303,8 +309,8 @@ const schedulePane = exports.schedulePane = {
303
309
 
304
310
  // /////////////////////// Create new document files for new instance of app
305
311
 
306
- const initializeNewInstanceInWorkspace = function (ws) {
307
- let newBase = kb.any(ws, ns.space('uriPrefix'));
312
+ var initializeNewInstanceInWorkspace = function initializeNewInstanceInWorkspace(ws) {
313
+ var newBase = kb.any(ws, ns.space('uriPrefix'));
308
314
  if (!newBase) {
309
315
  newBase = ws.uri.split('#')[0];
310
316
  } else {
@@ -314,28 +320,28 @@ const schedulePane = exports.schedulePane = {
314
320
  $rdf.log.error(appPathSegment + ': No / at end of uriPrefix ' + newBase); // @@ paramater?
315
321
  newBase = newBase + '/';
316
322
  }
317
- const now = new Date();
323
+ var now = new Date();
318
324
  newBase += appPathSegment + '/id' + now.getTime() + '/'; // unique id
319
325
 
320
326
  initializeNewInstanceAtBase(thisInstance, newBase);
321
327
  };
322
- const initializeNewInstanceAtBase = function (thisInstance, newBase) {
323
- const options = {
324
- thisInstance,
325
- newBase
328
+ var initializeNewInstanceAtBase = function initializeNewInstanceAtBase(thisInstance, newBase) {
329
+ var options = {
330
+ thisInstance: thisInstance,
331
+ newBase: newBase
326
332
  };
327
333
  this.mintNew(context, options).then(function (options) {
328
- const p = div.appendChild(dom.createElement('p'));
334
+ var p = div.appendChild(dom.createElement('p'));
329
335
  p.setAttribute('style', 'font-size: 140%;');
330
- p.innerHTML = 'Your <a href=\'' + options.newInstance.uri + '\'><b>new scheduler</b></a> is ready to be set up. ' + '<br/><br/><a href=\'' + options.newInstance.uri + '\'>Say when you what days work for you.</a>';
331
- }).catch(function (error) {
336
+ p.innerHTML = "Your <a href='" + options.newInstance.uri + "'><b>new scheduler</b></a> is ready to be set up. " + "<br/><br/><a href='" + options.newInstance.uri + "'>Say when you what days work for you.</a>";
337
+ })["catch"](function (error) {
332
338
  complainIfBad(false, 'Error createing new scheduler at ' + options.newInstance + ': ' + error);
333
339
  });
334
340
  };
335
341
 
336
342
  // ///////////////////////
337
343
 
338
- const getForms = function () {
344
+ var getForms = function getForms() {
339
345
  console.log('getforms()');
340
346
  getDetails();
341
347
  /*
@@ -346,7 +352,7 @@ const schedulePane = exports.schedulePane = {
346
352
  })
347
353
  */
348
354
  };
349
- const getDetails = function () {
355
+ var getDetails = function getDetails() {
350
356
  console.log('getDetails()'); // Looking for blank screen hang-up
351
357
  fetcher.nowOrWhenFetched(detailsDoc.uri, undefined, function (ok, body) {
352
358
  console.log('getDetails() ok? ' + ok);
@@ -354,9 +360,9 @@ const schedulePane = exports.schedulePane = {
354
360
  showAppropriateDisplay();
355
361
  });
356
362
  };
357
- const showAppropriateDisplay = function showAppropriateDisplay() {
363
+ var showAppropriateDisplay = function showAppropriateDisplay() {
358
364
  console.log('showAppropriateDisplay()');
359
- _solidLogic.authn.checkUser().then(webId => {
365
+ _solidLogic.authn.checkUser().then(function (webId) {
360
366
  if (!webId) {
361
367
  return showSignon();
362
368
  }
@@ -369,7 +375,7 @@ const schedulePane = exports.schedulePane = {
369
375
  showBootstrap(div);
370
376
  return;
371
377
  }
372
- const ready = kb.any(subject, ns.sched('ready'));
378
+ var ready = kb.any(subject, ns.sched('ready'));
373
379
  if (!ready) {
374
380
  showForms();
375
381
  } else {
@@ -378,39 +384,39 @@ const schedulePane = exports.schedulePane = {
378
384
  }
379
385
  });
380
386
  };
381
- const showSignon = function showSignon() {
387
+ var showSignon = function showSignon() {
382
388
  clearElement(naviMain);
383
- const signonContext = {
384
- div,
385
- dom
389
+ var signonContext = {
390
+ div: div,
391
+ dom: dom
386
392
  };
387
- UI.login.ensureLoggedIn(signonContext).then(context => {
393
+ UI.login.ensureLoggedIn(signonContext).then(function (context) {
388
394
  me = context.me;
389
395
  waitingForLogin = false; // untested
390
396
  showAppropriateDisplay();
391
397
  });
392
398
  };
393
- const showBootstrap = function showBootstrap() {
394
- const div = clearElement(naviMain);
399
+ var showBootstrap = function showBootstrap() {
400
+ var div = clearElement(naviMain);
395
401
  div.appendChild(UI.login.newAppInstance(dom, {
396
402
  noun: 'poll'
397
403
  }, initializeNewInstanceInWorkspace));
398
404
  div.appendChild(dom.createElement('hr')); // @@
399
405
 
400
- const p = div.appendChild(dom.createElement('p'));
406
+ var p = div.appendChild(dom.createElement('p'));
401
407
  p.textContent = 'Where would you like to store the data for the poll? ' + 'Give the URL of the directory where you would like the data stored.';
402
- const baseField = div.appendChild(dom.createElement('input'));
408
+ var baseField = div.appendChild(dom.createElement('input'));
403
409
  baseField.setAttribute('type', 'text');
404
410
  baseField.size = 80; // really a string
405
411
  baseField.label = 'base URL';
406
412
  baseField.autocomplete = 'on';
407
413
  div.appendChild(dom.createElement('br')); // @@
408
414
 
409
- const button = div.appendChild(dom.createElement('button'));
415
+ var button = div.appendChild(dom.createElement('button'));
410
416
  button.setAttribute('style', inputStyle);
411
417
  button.textContent = 'Start new poll at this URI';
412
418
  button.addEventListener('click', function (_e) {
413
- let newBase = baseField.value;
419
+ var newBase = baseField.value;
414
420
  if (newBase.slice(-1) !== '/') {
415
421
  newBase += '/';
416
422
  }
@@ -420,23 +426,23 @@ const schedulePane = exports.schedulePane = {
420
426
 
421
427
  // ///////////// The forms to configure the poll
422
428
 
423
- const doneButton = dom.createElement('button');
424
- const showForms = function () {
429
+ var doneButton = dom.createElement('button');
430
+ var showForms = function showForms() {
425
431
  clearElement(naviCenter); // Remove refresh button if nec
426
- const div = naviMain;
427
- const wizard = true;
428
- let currentSlide = 0;
429
- let gotDoneButton = false;
432
+ var div = naviMain;
433
+ var wizard = true;
434
+ var currentSlide = 0;
435
+ var gotDoneButton = false;
430
436
  if (wizard) {
431
- const forms = [form1, form2, form3];
432
- const slides = [];
437
+ var forms = [form1, form2, form3];
438
+ var slides = [];
433
439
  currentSlide = 0;
434
- for (let f = 0; f < forms.length; f++) {
435
- const slide = dom.createElement('div');
440
+ for (var f = 0; f < forms.length; f++) {
441
+ var slide = dom.createElement('div');
436
442
  UI.widgets.appendForm(document, slide, {}, subject, forms[f], detailsDoc, complainIfBad);
437
443
  slides.push(slide);
438
444
  }
439
- const refresh = function () {
445
+ var refresh = function refresh() {
440
446
  clearElement(naviMain).appendChild(slides[currentSlide]);
441
447
  if (currentSlide === 0) {
442
448
  b1.setAttribute('disabled', '');
@@ -455,7 +461,7 @@ const schedulePane = exports.schedulePane = {
455
461
  b2.removeAttribute('disabled');
456
462
  }
457
463
  };
458
- const b1 = clearElement(naviLeft).appendChild(dom.createElement('button'));
464
+ var b1 = clearElement(naviLeft).appendChild(dom.createElement('button'));
459
465
  b1.setAttribute('style', inputStyle);
460
466
  b1.textContent = '<- go back';
461
467
  b1.addEventListener('click', function (_e) {
@@ -464,7 +470,7 @@ const schedulePane = exports.schedulePane = {
464
470
  refresh();
465
471
  }
466
472
  }, false);
467
- const b2 = clearElement(naviRight).appendChild(dom.createElement('button'));
473
+ var b2 = clearElement(naviRight).appendChild(dom.createElement('button'));
468
474
  b2.setAttribute('style', inputStyle);
469
475
  b2.textContent = 'continue ->';
470
476
  b2.addEventListener('click', function (_e) {
@@ -477,7 +483,7 @@ const schedulePane = exports.schedulePane = {
477
483
  } else {
478
484
  // not wizard one big form
479
485
  // @@@ create the initial config doc if not exist
480
- const table = div.appendChild(dom.createElement('table'));
486
+ var table = div.appendChild(dom.createElement('table'));
481
487
  UI.widgets.appendForm(document, table, {}, subject, form1, detailsDoc, complainIfBad);
482
488
  UI.widgets.appendForm(document, table, {}, subject, form2, detailsDoc, complainIfBad);
483
489
  UI.widgets.appendForm(document, table, {}, subject, form3, detailsDoc, complainIfBad);
@@ -485,7 +491,7 @@ const schedulePane = exports.schedulePane = {
485
491
  }
486
492
  // @@@ link config to results
487
493
 
488
- const insertables = [];
494
+ var insertables = [];
489
495
  insertables.push($rdf.st(subject, ns.sched('availabilityOptions'), ns.sched('YesNoMaybe'), detailsDoc));
490
496
  insertables.push($rdf.st(subject, ns.sched('ready'), new Date(), detailsDoc));
491
497
  insertables.push($rdf.st(subject, ns.sched('results'), resultsDoc, detailsDoc)); // @@ also link in results
@@ -509,16 +515,16 @@ const schedulePane = exports.schedulePane = {
509
515
  });
510
516
  }
511
517
  }, false);
512
- const emailButton = dom.createElement('button');
518
+ var emailButton = dom.createElement('button');
513
519
  emailButton.setAttribute('style', inputStyle);
514
- const emailIcon = emailButton.appendChild(dom.createElement('img'));
520
+ var emailIcon = emailButton.appendChild(dom.createElement('img'));
515
521
  emailIcon.setAttribute('src', UI.icons.iconBase + 'noun_480183.svg'); // noun_480183.svg
516
522
  emailIcon.setAttribute('style', buttonIconStyle);
517
523
  // emailButton.textContent = 'email invitations'
518
524
  emailButton.addEventListener('click', function (_e) {
519
- const title = kb.anyValue(subject, ns.cal('summary')) || kb.anyValue(subject, ns.dc('title')) || '';
520
- const mailto = 'mailto:' + kb.each(subject, ns.sched('invitee')).map(function (who) {
521
- const mbox = kb.any(who, ns.foaf('mbox'));
525
+ var title = kb.anyValue(subject, ns.cal('summary')) || kb.anyValue(subject, ns.dc('title')) || '';
526
+ var mailto = 'mailto:' + kb.each(subject, ns.sched('invitee')).map(function (who) {
527
+ var mbox = kb.any(who, ns.foaf('mbox'));
522
528
  return mbox ? mbox.uri.replace('mailto:', '') : '';
523
529
  }).join(',') + '?subject=' + encodeURIComponent(title + '-- When can we meet?') + '&body=' + encodeURIComponent(title + '\n\nWhen can you?\n\nSee ' + subject + '\n');
524
530
  // @@ assumed there is a data browser
@@ -650,7 +656,7 @@ const schedulePane = exports.schedulePane = {
650
656
 
651
657
  // Read or create empty results file
652
658
  function getResults() {
653
- fetcher.nowOrWhenFetched(resultsDoc.uri, (ok, body, response) => {
659
+ fetcher.nowOrWhenFetched(resultsDoc.uri, function (ok, body, response) {
654
660
  if (!ok) {
655
661
  if (response.status === 404) {
656
662
  // / Check explicitly for 404 error
@@ -682,10 +688,10 @@ const schedulePane = exports.schedulePane = {
682
688
  // div.appendChild(dom.createElement('hr'))
683
689
 
684
690
  // const invitation = subject
685
- const title = kb.any(invitation, ns.cal('summary'));
686
- const comment = kb.any(invitation, ns.cal('comment'));
687
- const location = kb.any(invitation, ns.cal('location'));
688
- const div = naviMain;
691
+ var title = kb.any(invitation, ns.cal('summary'));
692
+ var comment = kb.any(invitation, ns.cal('comment'));
693
+ var location = kb.any(invitation, ns.cal('location'));
694
+ var div = naviMain;
689
695
  if (title) div.appendChild(dom.createElement('h3')).textContent = title;
690
696
  if (location) {
691
697
  div.appendChild(dom.createElement('address')).textContent = location.value;
@@ -693,16 +699,16 @@ const schedulePane = exports.schedulePane = {
693
699
  if (comment) {
694
700
  div.appendChild(dom.createElement('p')).textContent = comment.value;
695
701
  }
696
- const author = kb.any(invitation, ns.dc('author'));
702
+ var author = kb.any(invitation, ns.dc('author'));
697
703
  if (author) {
698
- const authorName = kb.any(author, ns.foaf('name'));
704
+ var authorName = kb.any(author, ns.foaf('name'));
699
705
  if (authorName) {
700
706
  div.appendChild(dom.createElement('p')).textContent = authorName;
701
707
  }
702
708
  }
703
- const query = new $rdf.Query('Responses');
704
- const v = {};
705
- const vs = ['time', 'author', 'value', 'resp', 'cell'];
709
+ var query = new $rdf.Query('Responses');
710
+ var v = {};
711
+ var vs = ['time', 'author', 'value', 'resp', 'cell'];
706
712
  vs.forEach(function (x) {
707
713
  query.vars.push(v[x] = $rdf.variable(x));
708
714
  });
@@ -714,7 +720,7 @@ const schedulePane = exports.schedulePane = {
714
720
 
715
721
  // Sort by by person @@@
716
722
 
717
- const options = {};
723
+ var options = {};
718
724
  options.set_x = kb.each(subject, ns.sched('option')); // @@@@@ option -> dtstart in future
719
725
  options.set_x = options.set_x.map(function (opt) {
720
726
  return kb.any(opt, ns.cal('dtstart'));
@@ -723,16 +729,16 @@ const schedulePane = exports.schedulePane = {
723
729
  options.set_y = options.set_y.map(function (resp) {
724
730
  return kb.any(resp, ns.dc('author'));
725
731
  });
726
- const possibleTimes = kb.each(invitation, ns.sched('option')).map(function (opt) {
732
+ var possibleTimes = kb.each(invitation, ns.sched('option')).map(function (opt) {
727
733
  return kb.any(opt, ns.cal('dtstart'));
728
734
  });
729
- const displayTheMatrix = function () {
730
- const matrix = div.appendChild(UI.matrix.matrixForQuery(dom, query, v.time, v.author, v.value, options, function () {}));
735
+ var displayTheMatrix = function displayTheMatrix() {
736
+ var matrix = div.appendChild(UI.matrix.matrixForQuery(dom, query, v.time, v.author, v.value, options, function () {}));
731
737
  matrix.setAttribute('class', 'matrix');
732
- const refreshButton = dom.createElement('button');
738
+ var refreshButton = dom.createElement('button');
733
739
  refreshButton.setAttribute('style', inputStyle);
734
740
  // refreshButton.textContent = 'refresh' // noun_479395.svg
735
- const refreshIcon = dom.createElement('img');
741
+ var refreshIcon = dom.createElement('img');
736
742
  refreshIcon.setAttribute('src', UI.icons.iconBase + 'noun_479395.svg');
737
743
  refreshIcon.setAttribute('style', buttonIconStyle);
738
744
  refreshButton.appendChild(refreshIcon);
@@ -756,14 +762,14 @@ const schedulePane = exports.schedulePane = {
756
762
 
757
763
  // const me = authn.currentUser()
758
764
 
759
- const dataPointForNT = [];
760
- const loginContext = {
765
+ var dataPointForNT = [];
766
+ var loginContext = {
761
767
  div: naviCenter,
762
- dom
768
+ dom: dom
763
769
  };
764
- UI.login.ensureLoggedIn(loginContext).then(context => {
765
- const me = context.me;
766
- const doc = resultsDoc;
770
+ UI.login.ensureLoggedIn(loginContext).then(function (context) {
771
+ var me = context.me;
772
+ var doc = resultsDoc;
767
773
  options.set_y = options.set_y.filter(function (z) {
768
774
  return !z.sameTerm(me);
769
775
  });
@@ -776,42 +782,42 @@ const schedulePane = exports.schedulePane = {
776
782
  });
777
783
  }
778
784
  if (y.sameTerm(me)) {
779
- const callbackFunction = function () {
785
+ var callbackFunction = function callbackFunction() {
780
786
  refreshCellColor(cell, value);
781
787
  }; // @@ may need that
782
- const selectOptions = {};
783
- const predicate = ns.sched('availabilty');
784
- const cellSubject = dataPointForNT[x.toNT()];
785
- const selector = UI.widgets.makeSelectForOptions(dom, kb, cellSubject, predicate, possibleAvailabilities, selectOptions, resultsDoc, callbackFunction);
788
+ var selectOptions = {};
789
+ var predicate = ns.sched('availabilty');
790
+ var cellSubject = dataPointForNT[x.toNT()];
791
+ var selector = UI.widgets.makeSelectForOptions(dom, kb, cellSubject, predicate, possibleAvailabilities, selectOptions, resultsDoc, callbackFunction);
786
792
  cell.appendChild(selector);
787
793
  } else if (value !== null) {
788
794
  cell.textContent = UI.utils.label(value);
789
795
  }
790
796
  };
791
- const responses = kb.each(invitation, ns.sched('response'));
792
- let myResponse = null;
797
+ var responses = kb.each(invitation, ns.sched('response'));
798
+ var myResponse = null;
793
799
  responses.forEach(function (r) {
794
800
  if (kb.holds(r, ns.dc('author'), me)) {
795
801
  myResponse = r;
796
802
  }
797
803
  });
798
- const insertables = []; // list of statements to be stored
804
+ var insertables = []; // list of statements to be stored
799
805
 
800
- const id = UI.widgets.newThing(doc).uri;
806
+ var id = UI.widgets.newThing(doc).uri;
801
807
  if (myResponse === null) {
802
808
  myResponse = $rdf.sym(id + '_response');
803
809
  insertables.push($rdf.st(invitation, ns.sched('response'), myResponse, doc));
804
810
  insertables.push($rdf.st(myResponse, ns.dc('author'), me, doc));
805
811
  } else {
806
- const dps = kb.each(myResponse, ns.sched('cell'));
812
+ var dps = kb.each(myResponse, ns.sched('cell'));
807
813
  dps.forEach(function (dataPoint) {
808
- const time = kb.any(dataPoint, ns.cal('dtstart'));
814
+ var time = kb.any(dataPoint, ns.cal('dtstart'));
809
815
  dataPointForNT[time.toNT()] = dataPoint;
810
816
  });
811
817
  }
812
- for (let j = 0; j < possibleTimes.length; j++) {
818
+ for (var j = 0; j < possibleTimes.length; j++) {
813
819
  if (dataPointForNT[possibleTimes[j].toNT()]) continue;
814
- const dataPoint = $rdf.sym(id + '_' + j);
820
+ var dataPoint = $rdf.sym(id + '_' + j);
815
821
  insertables.push($rdf.st(myResponse, ns.sched('cell'), dataPoint, doc));
816
822
  insertables.push($rdf.st(dataPoint, ns.cal('dtstart'), possibleTimes[j], doc)); // @@
817
823
  dataPointForNT[possibleTimes[j].toNT()] = dataPoint;
@@ -832,12 +838,12 @@ const schedulePane = exports.schedulePane = {
832
838
 
833
839
  // If I made this in the first place, allow me to edit it.
834
840
  // @@ optionally -- allows others to if according to original
835
- const instanceCreator = kb.any(subject, ns.foaf('maker')); // owner?
841
+ var instanceCreator = kb.any(subject, ns.foaf('maker')); // owner?
836
842
  if (!instanceCreator || instanceCreator.sameTerm(me)) {
837
- const editButton = dom.createElement('button');
843
+ var editButton = dom.createElement('button');
838
844
  editButton.setAttribute('style', inputStyle);
839
845
  // editButton.textContent = '(Modify the poll)' // noun_344563.svg
840
- const editIcon = dom.createElement('img');
846
+ var editIcon = dom.createElement('img');
841
847
  editIcon.setAttribute('src', UI.icons.iconBase + 'noun_344563.svg');
842
848
  editIcon.setAttribute('style', buttonIconStyle);
843
849
  editButton.appendChild(editIcon);
@@ -855,14 +861,14 @@ const schedulePane = exports.schedulePane = {
855
861
  naviRight.appendChild(newInstanceButton());
856
862
  } // showResults
857
863
 
858
- const div = dom.createElement('div');
859
- const structure = div.appendChild(dom.createElement('table')); // @@ make responsive style
864
+ var div = dom.createElement('div');
865
+ var structure = div.appendChild(dom.createElement('table')); // @@ make responsive style
860
866
  structure.setAttribute('style', 'background-color: white; min-width: 40em; min-height: 13em;');
861
- const naviLoginoutTR = structure.appendChild(dom.createElement('tr'));
867
+ var naviLoginoutTR = structure.appendChild(dom.createElement('tr'));
862
868
  naviLoginoutTR.appendChild(dom.createElement('td'));
863
869
  naviLoginoutTR.appendChild(dom.createElement('td'));
864
870
  naviLoginoutTR.appendChild(dom.createElement('td'));
865
- const logInOutButton = null;
871
+ var logInOutButton = null;
866
872
  /*
867
873
  const logInOutButton = UI.login.loginStatusBox(dom, setUser)
868
874
  // floating divs lead to a mess
@@ -871,16 +877,16 @@ const schedulePane = exports.schedulePane = {
871
877
  logInOutButton.setAttribute('style', 'margin-right: 0em;')
872
878
  */
873
879
 
874
- const naviTop = structure.appendChild(dom.createElement('tr'));
875
- const naviMain = naviTop.appendChild(dom.createElement('td'));
880
+ var naviTop = structure.appendChild(dom.createElement('tr'));
881
+ var naviMain = naviTop.appendChild(dom.createElement('td'));
876
882
  naviMain.setAttribute('colspan', '3');
877
- const naviMenu = structure.appendChild(dom.createElement('tr'));
883
+ var naviMenu = structure.appendChild(dom.createElement('tr'));
878
884
  naviMenu.setAttribute('class', 'naviMenu');
879
885
  naviMenu.setAttribute('style', ' text-align: middle; vertical-align: middle; padding-top: 4em; ');
880
886
  // naviMenu.setAttribute('style', 'margin-top: 3em;')
881
- const naviLeft = naviMenu.appendChild(dom.createElement('td'));
882
- const naviCenter = naviMenu.appendChild(dom.createElement('td'));
883
- const naviRight = naviMenu.appendChild(dom.createElement('td'));
887
+ var naviLeft = naviMenu.appendChild(dom.createElement('td'));
888
+ var naviCenter = naviMenu.appendChild(dom.createElement('td'));
889
+ var naviRight = naviMenu.appendChild(dom.createElement('td'));
884
890
  getForms();
885
891
  return div;
886
892
  } // render