solid-panes 3.5.28 → 3.5.29-1155b301

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 (310) hide show
  1. package/.babelrc +0 -0
  2. package/.eslintignore +0 -0
  3. package/.eslintrc +0 -0
  4. package/.github/workflows/ci.yml +0 -0
  5. package/.nvmrc +0 -0
  6. package/Documentation/VisualLanguage.html +0 -0
  7. package/Documentation/conventions.md +0 -0
  8. package/LICENSE.md +0 -0
  9. package/README.md +0 -0
  10. package/dev/index.html +0 -0
  11. package/dev/loader.ts +0 -0
  12. package/dev/pane/index.ts +0 -0
  13. package/doc/images/panes-for-classes.epgz +0 -0
  14. package/doc/images/panes-for-classes.svg +0 -0
  15. package/jest.config.js +0 -0
  16. package/jest.setup.ts +0 -0
  17. package/lib/RDFXMLPane.js +10 -2
  18. package/lib/RDFXMLPane.js.map +1 -1
  19. package/lib/argument/argumentPane.js +7 -5
  20. package/lib/argument/argumentPane.js.map +1 -1
  21. package/lib/attach/attachPane.js +13 -7
  22. package/lib/attach/attachPane.js.map +1 -1
  23. package/lib/audio/audioPane.js +13 -6
  24. package/lib/audio/audioPane.js.map +1 -1
  25. package/lib/classInstancePane.js +11 -3
  26. package/lib/classInstancePane.js.map +1 -1
  27. package/lib/dashboard/basicPreferences.d.ts +0 -0
  28. package/lib/dashboard/basicPreferences.d.ts.map +0 -0
  29. package/lib/dashboard/basicPreferences.js +96 -104
  30. package/lib/dashboard/basicPreferences.js.map +1 -1
  31. package/lib/dashboard/dashboardPane.d.ts +0 -0
  32. package/lib/dashboard/dashboardPane.d.ts.map +0 -0
  33. package/lib/dashboard/dashboardPane.js +0 -0
  34. package/lib/dashboard/dashboardPane.js.map +0 -0
  35. package/lib/dashboard/homepage.d.ts +0 -0
  36. package/lib/dashboard/homepage.d.ts.map +0 -0
  37. package/lib/dashboard/homepage.js +27 -31
  38. package/lib/dashboard/homepage.js.map +1 -1
  39. package/lib/dataContentPane.js +12 -4
  40. package/lib/dataContentPane.js.map +1 -1
  41. package/lib/defaultPane.js +11 -3
  42. package/lib/defaultPane.js.map +1 -1
  43. package/lib/dokieli/dokieliPane.js +15 -11
  44. package/lib/dokieli/dokieliPane.js.map +1 -1
  45. package/lib/dokieli/new.js +6 -1
  46. package/lib/dokieli/new.js.map +1 -1
  47. package/lib/form/pane.js +8 -5
  48. package/lib/form/pane.js.map +1 -1
  49. package/lib/global.d.js +0 -0
  50. package/lib/global.d.js.map +0 -0
  51. package/lib/home/homePane.d.ts +0 -0
  52. package/lib/home/homePane.d.ts.map +1 -1
  53. package/lib/home/homePane.js +35 -49
  54. package/lib/home/homePane.js.map +1 -1
  55. package/lib/humanReadablePane.js +0 -0
  56. package/lib/humanReadablePane.js.map +0 -0
  57. package/lib/imagePane.js +11 -2
  58. package/lib/imagePane.js.map +1 -1
  59. package/lib/index.d.ts +0 -0
  60. package/lib/index.d.ts.map +0 -0
  61. package/lib/index.js +2 -2
  62. package/lib/index.js.map +1 -1
  63. package/lib/internal/internalPane.d.ts +0 -0
  64. package/lib/internal/internalPane.d.ts.map +0 -0
  65. package/lib/internal/internalPane.js +0 -0
  66. package/lib/internal/internalPane.js.map +0 -0
  67. package/lib/mainPage/footer.d.ts +0 -0
  68. package/lib/mainPage/footer.d.ts.map +0 -0
  69. package/lib/mainPage/footer.js +0 -0
  70. package/lib/mainPage/footer.js.map +0 -0
  71. package/lib/mainPage/header.d.ts +0 -0
  72. package/lib/mainPage/header.d.ts.map +0 -0
  73. package/lib/mainPage/header.js +65 -73
  74. package/lib/mainPage/header.js.map +1 -1
  75. package/lib/mainPage/index.d.ts +0 -0
  76. package/lib/mainPage/index.d.ts.map +0 -0
  77. package/lib/mainPage/index.js +17 -19
  78. package/lib/mainPage/index.js.map +1 -1
  79. package/lib/microblogPane/microblogPane.js +82 -84
  80. package/lib/microblogPane/microblogPane.js.map +1 -1
  81. package/lib/n3Pane.js +11 -2
  82. package/lib/n3Pane.js.map +1 -1
  83. package/lib/outline/context.d.ts +0 -0
  84. package/lib/outline/context.d.ts.map +0 -0
  85. package/lib/outline/context.js +0 -0
  86. package/lib/outline/context.js.map +0 -0
  87. package/lib/outline/licenseOptions.js +13 -11
  88. package/lib/outline/licenseOptions.js.map +1 -1
  89. package/lib/outline/manager.js +581 -615
  90. package/lib/outline/manager.js.map +1 -1
  91. package/lib/outline/manager.test.js +16 -15
  92. package/lib/outline/manager.test.js.map +1 -1
  93. package/lib/outline/outlineIcons.js +10 -2
  94. package/lib/outline/outlineIcons.js.map +1 -1
  95. package/lib/outline/propertyViews.d.ts +3 -2
  96. package/lib/outline/propertyViews.d.ts.map +1 -1
  97. package/lib/outline/propertyViews.js +7 -5
  98. package/lib/outline/propertyViews.js.map +1 -1
  99. package/lib/outline/propertyViews.test.js +6 -4
  100. package/lib/outline/propertyViews.test.js.map +1 -1
  101. package/lib/outline/queryByExample.js +6 -6
  102. package/lib/outline/queryByExample.js.map +1 -1
  103. package/lib/outline/userInput.js +7 -5
  104. package/lib/outline/userInput.js.map +1 -1
  105. package/lib/outline/viewAsImage.d.ts +0 -0
  106. package/lib/outline/viewAsImage.d.ts.map +0 -0
  107. package/lib/outline/viewAsImage.js +0 -0
  108. package/lib/outline/viewAsImage.js.map +0 -0
  109. package/lib/outline/viewAsMbox.d.ts +0 -0
  110. package/lib/outline/viewAsMbox.d.ts.map +0 -0
  111. package/lib/outline/viewAsMbox.js +0 -0
  112. package/lib/outline/viewAsMbox.js.map +0 -0
  113. package/lib/pad/padPane.d.ts +0 -0
  114. package/lib/pad/padPane.d.ts.map +0 -0
  115. package/lib/pad/padPane.js +0 -0
  116. package/lib/pad/padPane.js.map +0 -0
  117. package/lib/playlist/playlistPane.js +13 -6
  118. package/lib/playlist/playlistPane.js.map +1 -1
  119. package/lib/profile/editProfile.view.d.ts +0 -0
  120. package/lib/profile/editProfile.view.d.ts.map +1 -1
  121. package/lib/profile/editProfile.view.js +16 -0
  122. package/lib/profile/editProfile.view.js.map +1 -1
  123. package/lib/profile/profile.dom.d.ts +0 -0
  124. package/lib/profile/profile.dom.d.ts.map +0 -0
  125. package/lib/profile/profile.dom.js +0 -0
  126. package/lib/profile/profile.dom.js.map +0 -0
  127. package/lib/registerPanes.js +93 -50
  128. package/lib/registerPanes.js.map +1 -1
  129. package/lib/schedule/formsForSchedule.js +6 -1
  130. package/lib/schedule/formsForSchedule.js.map +1 -1
  131. package/lib/schedule/schedulePane.js +9 -4
  132. package/lib/schedule/schedulePane.js.map +1 -1
  133. package/lib/sharing/sharingPane.d.ts +0 -0
  134. package/lib/sharing/sharingPane.d.ts.map +0 -0
  135. package/lib/sharing/sharingPane.js +0 -0
  136. package/lib/sharing/sharingPane.js.map +0 -0
  137. package/lib/slideshow/slideshowPane.js +16 -11
  138. package/lib/slideshow/slideshowPane.js.map +1 -1
  139. package/lib/socialPane.js +16 -12
  140. package/lib/socialPane.js.map +1 -1
  141. package/lib/tabbed/tabbedPane.d.ts +0 -0
  142. package/lib/tabbed/tabbedPane.d.ts.map +0 -0
  143. package/lib/tabbed/tabbedPane.js +32 -34
  144. package/lib/tabbed/tabbedPane.js.map +1 -1
  145. package/lib/tableViewPane.js +12 -3
  146. package/lib/tableViewPane.js.map +1 -1
  147. package/lib/test-import-export/common.js +6 -2
  148. package/lib/test-import-export/common.js.map +1 -1
  149. package/lib/test-import-export/edit-importer.js +9 -11
  150. package/lib/test-import-export/edit-importer.js.map +1 -1
  151. package/lib/test-import-export/testImportExport.js +0 -0
  152. package/lib/test-import-export/testImportExport.js.map +0 -0
  153. package/lib/transaction/pane.js +12 -6
  154. package/lib/transaction/pane.js.map +1 -1
  155. package/lib/transaction/period.js +11 -4
  156. package/lib/transaction/period.js.map +1 -1
  157. package/lib/trip/tripPane.js +12 -5
  158. package/lib/trip/tripPane.js.map +1 -1
  159. package/lib/trustedApplications/trustedApplications.dom.d.ts +0 -0
  160. package/lib/trustedApplications/trustedApplications.dom.d.ts.map +0 -0
  161. package/lib/trustedApplications/trustedApplications.dom.js +4 -1
  162. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
  163. package/lib/trustedApplications/trustedApplications.test.js +3 -0
  164. package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
  165. package/lib/trustedApplications/trustedApplications.utils.d.ts +0 -0
  166. package/lib/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
  167. package/lib/trustedApplications/trustedApplications.utils.js +1 -1
  168. package/lib/trustedApplications/trustedApplications.utils.js.map +0 -0
  169. package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
  170. package/lib/trustedApplications/trustedApplications.view.d.ts.map +0 -0
  171. package/lib/trustedApplications/trustedApplications.view.js +38 -40
  172. package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
  173. package/lib/types.d.ts +0 -0
  174. package/lib/types.d.ts.map +0 -0
  175. package/lib/types.js +0 -0
  176. package/lib/types.js.map +0 -0
  177. package/lib/ui/pane.js +12 -5
  178. package/lib/ui/pane.js.map +1 -1
  179. package/lib/versionInfo.d.ts +0 -0
  180. package/lib/versionInfo.d.ts.map +0 -0
  181. package/lib/versionInfo.js +13 -13
  182. package/lib/versionInfo.js.map +1 -1
  183. package/lib/video/videoPane.js +12 -5
  184. package/lib/video/videoPane.js.map +1 -1
  185. package/package.json +21 -23
  186. package/src/RDFXMLPane.js +2 -2
  187. package/src/argument/argumentPane.js +1 -1
  188. package/src/argument/argument_icon_v04.jpg +0 -0
  189. package/src/argument/icon_argument.png +0 -0
  190. package/src/argument/transparentyingyang.png +0 -0
  191. package/src/attach/attachPane.js +3 -3
  192. package/src/attach/tbl-paperclip-128.png +0 -0
  193. package/src/attach/tbl-paperclip-22.png +0 -0
  194. package/src/attach/tbl-paperclip-22a.png +0 -0
  195. package/src/audio/audioPane.js +3 -3
  196. package/src/chatPreferencesForm.ttl +0 -0
  197. package/src/classInstancePane.js +3 -3
  198. package/src/dashboard/basicPreferences.ts +0 -0
  199. package/src/dashboard/dashboardPane.ts +0 -0
  200. package/src/dashboard/homepage.ts +0 -0
  201. package/src/dashboard/languages/codes.html +0 -0
  202. package/src/dashboard/languages/codes.xml +0 -0
  203. package/src/dashboard/languages/codes2.txt +0 -0
  204. package/src/dashboard/languages/foo +0 -0
  205. package/src/dashboard/languages/foo.ttl +0 -0
  206. package/src/dashboard/languages/get-language-names.sh +0 -0
  207. package/src/dashboard/ontologyData.ttl +0 -0
  208. package/src/dashboard/preferencesFormText.ttl +0 -0
  209. package/src/dataContentPane.js +3 -4
  210. package/src/defaultPane.js +3 -3
  211. package/src/dokieli/Makefile +0 -0
  212. package/src/dokieli/dokieliPane.js +5 -5
  213. package/src/dokieli/new.html +0 -0
  214. package/src/dokieli/new.js +1 -1
  215. package/src/form/form-22.png +0 -0
  216. package/src/form/form-b-22.png +0 -0
  217. package/src/form/form.graffle +0 -0
  218. package/src/form/form.png +0 -0
  219. package/src/form/pane.js +2 -2
  220. package/src/form/psuedocode-notes.txt +0 -0
  221. package/src/global.d.ts +0 -0
  222. package/src/home/homePane.ts +1 -14
  223. package/src/humanReadablePane.js +0 -0
  224. package/src/imagePane.js +2 -2
  225. package/src/index.ts +1 -1
  226. package/src/internal/internalPane.ts +0 -0
  227. package/src/mainPage/footer.ts +0 -0
  228. package/src/mainPage/header.ts +0 -0
  229. package/src/mainPage/index.ts +0 -0
  230. package/src/meeting/Makefile +0 -0
  231. package/src/meeting/test/meeting1/Actions/actions.ttl +0 -0
  232. package/src/meeting/test/meeting1/Actions/config.ttl +0 -0
  233. package/src/meeting/test/meeting1/Actions/state.ttl +0 -0
  234. package/src/meeting/test/meeting1/Schedule/details.ttl +0 -0
  235. package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -0
  236. package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -0
  237. package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -0
  238. package/src/meeting/test/meeting1/Schedule/index.html +0 -0
  239. package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -0
  240. package/src/meeting/test/meeting1/Schedule/results.ttl +0 -0
  241. package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -0
  242. package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -0
  243. package/src/meeting/test/meeting1/chat/chat.ttl +0 -0
  244. package/src/meeting/test/meeting1/details.ttl +0 -0
  245. package/src/meeting/test/meeting1/pad/pad.ttl +0 -0
  246. package/src/microblogPane/mbStyle.css +0 -0
  247. package/src/microblogPane/microblogPane.js +1 -1
  248. package/src/n3Pane.js +2 -2
  249. package/src/outline/context.ts +0 -0
  250. package/src/outline/licenseOptions.js +9 -8
  251. package/src/outline/manager.js +18 -20
  252. package/src/outline/manager.test.ts +6 -0
  253. package/src/outline/outlineIcons.js +4 -2
  254. package/src/outline/propertyViews.test.ts +7 -1
  255. package/src/outline/propertyViews.ts +3 -3
  256. package/src/outline/queryByExample.js +3 -9
  257. package/src/outline/userInput.js +1 -1
  258. package/src/outline/viewAsImage.ts +0 -0
  259. package/src/outline/viewAsMbox.ts +0 -0
  260. package/src/pad/images/ColourOff.ai +0 -0
  261. package/src/pad/images/ColourOff.png +0 -0
  262. package/src/pad/images/ColourOn.ai +0 -0
  263. package/src/pad/images/ColourOn.png +0 -0
  264. package/src/pad/padPane.ts +0 -0
  265. package/src/playlist/playlistPane.js +3 -3
  266. package/src/profile/editProfile.view.ts +20 -0
  267. package/src/profile/profile.dom.ts +0 -0
  268. package/src/profile/profileFormText.ttl +0 -0
  269. package/src/registerPanes.js +92 -52
  270. package/src/schedule/Makefile +0 -0
  271. package/src/schedule/formsForSchedule.js +1 -1
  272. package/src/schedule/formsForSchedule.ttl +0 -0
  273. package/src/schedule/schedulePane.js +6 -2
  274. package/src/sharing/sharingPane.ts +0 -0
  275. package/src/slideshow/slideshowPane.js +3 -6
  276. package/src/socialPane.js +4 -5
  277. package/src/style/tabbedtab.css +0 -0
  278. package/src/tabbed/tabbedPane.ts +0 -0
  279. package/src/tableViewPane.js +3 -3
  280. package/src/test-import-export/common.js +1 -1
  281. package/src/test-import-export/edit-importer.js +5 -10
  282. package/src/test-import-export/testImportExport.js +0 -0
  283. package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  284. package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
  285. package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  286. package/src/transaction/pane.js +3 -3
  287. package/src/transaction/period.js +2 -2
  288. package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
  289. package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
  290. package/src/trip/tripPane.js +3 -3
  291. package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
  292. package/src/trustedApplications/trustedApplications.dom.ts +0 -0
  293. package/src/trustedApplications/trustedApplications.test.ts +4 -0
  294. package/src/trustedApplications/trustedApplications.utils.ts +0 -0
  295. package/src/trustedApplications/trustedApplications.view.ts +0 -0
  296. package/src/types.ts +0 -0
  297. package/src/ui/22-builder.png +0 -0
  298. package/src/ui/builder.graffle +0 -0
  299. package/src/ui/builder.png +0 -0
  300. package/src/ui/builder2.png +0 -0
  301. package/src/ui/pane.js +3 -3
  302. package/src/versionInfo.ts +13 -13
  303. package/src/video/videoPane.js +3 -3
  304. package/timestamp.sh +0 -0
  305. package/travis/bumpversion.js +0 -0
  306. package/tsconfig.json +0 -0
  307. package/typings/raw-loader.d.ts +0 -0
  308. package/typings/solid-namespace/index.d.ts +0 -0
  309. package/webpack.config.js +3 -1
  310. package/lib/trustedApplications/__snapshots__/trustedApplications.test.js.snap +0 -176
@@ -9,23 +9,22 @@ var paneRegistry = _interopRequireWildcard(require("pane-registry"));
9
9
  var $rdf = _interopRequireWildcard(require("rdflib"));
10
10
  var UI = _interopRequireWildcard(require("solid-ui"));
11
11
  var _solidLogic = require("solid-logic");
12
- var _propertyViews = _interopRequireDefault(require("./propertyViews"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ var _propertyViews = require("./propertyViews");
13
+ var _licenseOptions = require("./licenseOptions");
14
+ var _outlineIcons = require("./outlineIcons.js");
15
+ var _userInput = require("./userInput.js");
16
+ var queryByExample = _interopRequireWildcard(require("./queryByExample.js"));
14
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
20
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
21
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
20
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
22
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
23
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
25
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
23
26
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
24
27
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
25
- var outlineIcons = require('./outlineIcons.js');
26
- var UserInput = require('./userInput.js');
27
- var queryByExample = require('./queryByExample.js');
28
-
29
28
  /* global alert XPathResult sourceWidget */
30
29
  // XPathResult?
31
30
 
@@ -34,7 +33,7 @@ var queryByExample = require('./queryByExample.js');
34
33
  function _default(context) {
35
34
  var dom = context.dom;
36
35
  this.document = context.dom;
37
- this.outlineIcons = outlineIcons;
36
+ this.outlineIcons = _outlineIcons.outlineIcons;
38
37
  this.labeller = this.labeller || {};
39
38
  this.labeller.LanguagePreference = ''; // for now
40
39
  var outline = this; // Kenny: do we need this?
@@ -51,7 +50,7 @@ function _default(context) {
51
50
 
52
51
  // var selection = [] // Array of statements which have been selected
53
52
  // this.focusTd // the <td> that is being observed
54
- this.UserInput = new UserInput(this);
53
+ this.UserInput = new _userInput.UserInput(this);
55
54
  this.clipboardAddress = 'tabulator:clipboard'; // Weird
56
55
  this.UserInput.clipboardInit(this.clipboardAddress);
57
56
  var outlineElement = this.outlineElement;
@@ -64,9 +63,7 @@ function _default(context) {
64
63
  benchmark.lastkbsize = 0;
65
64
  function benchmark(f) {
66
65
  var args = [];
67
- for (var i = arguments.length - 1; i > 0; i--) {
68
- args[i - 1] = arguments[i];
69
- }
66
+ for (var i = arguments.length - 1; i > 0; i--) args[i - 1] = arguments[i];
70
67
  // UI.log.debug('BENCHMARK: args=' + args.join());
71
68
  var begin = new Date().getTime();
72
69
  var returnValue = f.apply(f, args);
@@ -81,7 +78,7 @@ function _default(context) {
81
78
  // Represent an object in summary form as a table cell
82
79
 
83
80
  function appendRemoveIcon(node, subject, removeNode) {
84
- var image = UI.utils.AJARImage(outlineIcons.src.icon_remove_node, 'remove', undefined, dom);
81
+ var image = UI.utils.AJARImage(_outlineIcons.outlineIcons.src.icon_remove_node, 'remove', undefined, dom);
85
82
  image.addEventListener('click', removeNodeIconMouseDownListener);
86
83
  // image.setAttribute('align', 'right') Causes icon to be moved down
87
84
  image.node = removeNode;
@@ -111,32 +108,32 @@ function _default(context) {
111
108
  var icon, alt, listener;
112
109
  switch (state) {
113
110
  case 'unrequested':
114
- icon = outlineIcons.src.icon_unrequested;
111
+ icon = _outlineIcons.outlineIcons.src.icon_unrequested;
115
112
  alt = 'fetch';
116
113
  listener = unrequestedIconMouseDownListener;
117
114
  break;
118
115
  case 'requested':
119
- icon = outlineIcons.src.icon_requested;
116
+ icon = _outlineIcons.outlineIcons.src.icon_requested;
120
117
  alt = 'fetching';
121
118
  listener = failedIconMouseDownListener; // new: can retry yello blob
122
119
  break;
123
120
  case 'fetched':
124
- icon = outlineIcons.src.icon_fetched;
121
+ icon = _outlineIcons.outlineIcons.src.icon_fetched;
125
122
  listener = fetchedIconMouseDownListener;
126
123
  alt = 'loaded';
127
124
  break;
128
125
  case 'failed':
129
- icon = outlineIcons.src.icon_failed;
126
+ icon = _outlineIcons.outlineIcons.src.icon_failed;
130
127
  alt = 'failed';
131
128
  listener = failedIconMouseDownListener;
132
129
  break;
133
130
  case 'unpermitted':
134
- icon = outlineIcons.src.icon_failed;
131
+ icon = _outlineIcons.outlineIcons.src.icon_failed;
135
132
  listener = failedIconMouseDownListener;
136
133
  alt = 'no perm';
137
134
  break;
138
135
  case 'unfetchable':
139
- icon = outlineIcons.src.icon_failed;
136
+ icon = _outlineIcons.outlineIcons.src.icon_failed;
140
137
  listener = failedIconMouseDownListener;
141
138
  alt = 'cannot fetch';
142
139
  break;
@@ -144,7 +141,7 @@ function _default(context) {
144
141
  UI.log.error('?? state = ' + state);
145
142
  break;
146
143
  } // switch
147
- var img = UI.utils.AJARImage(icon, alt, outlineIcons.tooltips[icon].replace(/[Tt]his resource/, docuri), dom);
144
+ var img = UI.utils.AJARImage(icon, alt, _outlineIcons.outlineIcons.tooltips[icon].replace(/[Tt]his resource/, docuri), dom);
148
145
  img.setAttribute('uri', uri);
149
146
  img.addEventListener('click', listener); // @@ seemed to be missing 2017-08
150
147
  addButtonCallbacks(img, docuri);
@@ -165,7 +162,7 @@ function _default(context) {
165
162
 
166
163
  // check the IPR on the data. Ok if there is any checked license which is one the document has.
167
164
  if (statement && statement.why) {
168
- if (UI.licenceOptions && UI.licenceOptions.checkLicence()) {
165
+ if (_licenseOptions.licenseOptions && _licenseOptions.licenseOptions.checklicense && _licenseOptions.licenseOptions.checklicense()) {
169
166
  theClass += ' licOkay'; // flag as light green etc .licOkay {background-color: #dfd}
170
167
  }
171
168
  }
@@ -228,11 +225,11 @@ function _default(context) {
228
225
  predicateTD.appendChild(labelTD);
229
226
  labelTD.style.width = '100%';
230
227
  predicateTD.appendChild(termWidget.construct(dom)); // termWidget is global???
231
- for (var w in outlineIcons.termWidgets) {
228
+ for (var w in _outlineIcons.outlineIcons.termWidgets) {
232
229
  if (!newTr || !newTr.AJAR_statement) break; // case for TBD as predicate
233
230
  // alert(Icon.termWidgets[w]+' '+Icon.termWidgets[w].filter)
234
- if (outlineIcons.termWidgets[w].filter && outlineIcons.termWidgets[w].filter(newTr.AJAR_statement, 'pred', inverse)) {
235
- termWidget.addIcon(predicateTD, outlineIcons.termWidgets[w]);
231
+ if (_outlineIcons.outlineIcons.termWidgets[w].filter && _outlineIcons.outlineIcons.termWidgets[w].filter(newTr.AJAR_statement, 'pred', inverse)) {
232
+ termWidget.addIcon(predicateTD, _outlineIcons.outlineIcons.termWidgets[w]);
236
233
  }
237
234
  }
238
235
 
@@ -268,54 +265,52 @@ function _default(context) {
268
265
  renderMain,
269
266
  _args = arguments;
270
267
  return _regeneratorRuntime().wrap(function _callee$(_context) {
271
- while (1) {
272
- switch (_context.prev = _context.next) {
273
- case 0:
274
- renderMain = function _renderMain(containerDiv, item) {
275
- // Items are pane names
276
- var pane = paneRegistry.byName(item.paneName); // 20190701
277
- containerDiv.innerHTML = '';
278
- var table = containerDiv.appendChild(dom.createElement('table'));
279
- var me = _solidLogic.authn.currentUser();
280
- thisOutline.GotoSubject(item.subject || me, true, pane, false, undefined, table);
281
- };
282
- renderTab = function _renderTab(div, item) {
283
- div.dataset.globalPaneName = item.tabName || item.paneName;
284
- div.textContent = item.label;
285
- };
286
- options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
287
- console.log('globalAppTabs @@');
288
- div = dom.createElement('div');
289
- me = _solidLogic.authn.currentUser();
290
- if (me) {
291
- _context.next = 9;
292
- break;
293
- }
294
- alert('Must be logged in for this');
295
- throw new Error('Not logged in');
296
- case 9:
297
- _context.next = 11;
298
- return getDashboardItems();
299
- case 11:
300
- items = _context.sent;
301
- div.appendChild(UI.tabs.tabWidget({
302
- dom: dom,
303
- subject: me,
304
- items: items,
305
- renderMain: renderMain,
306
- renderTab: renderTab,
307
- ordered: true,
308
- orientation: 0,
309
- backgroundColor: '#eeeeee',
310
- // black?
311
- selectedTab: options.selectedTab,
312
- onClose: options.onClose
313
- }));
314
- return _context.abrupt("return", div);
315
- case 14:
316
- case "end":
317
- return _context.stop();
318
- }
268
+ while (1) switch (_context.prev = _context.next) {
269
+ case 0:
270
+ renderMain = function _renderMain(containerDiv, item) {
271
+ // Items are pane names
272
+ var pane = paneRegistry.byName(item.paneName); // 20190701
273
+ containerDiv.innerHTML = '';
274
+ var table = containerDiv.appendChild(dom.createElement('table'));
275
+ var me = _solidLogic.authn.currentUser();
276
+ thisOutline.GotoSubject(item.subject || me, true, pane, false, undefined, table);
277
+ };
278
+ renderTab = function _renderTab(div, item) {
279
+ div.dataset.globalPaneName = item.tabName || item.paneName;
280
+ div.textContent = item.label;
281
+ };
282
+ options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
283
+ console.log('globalAppTabs @@');
284
+ div = dom.createElement('div');
285
+ me = _solidLogic.authn.currentUser();
286
+ if (me) {
287
+ _context.next = 9;
288
+ break;
289
+ }
290
+ alert('Must be logged in for this');
291
+ throw new Error('Not logged in');
292
+ case 9:
293
+ _context.next = 11;
294
+ return getDashboardItems();
295
+ case 11:
296
+ items = _context.sent;
297
+ div.appendChild(UI.tabs.tabWidget({
298
+ dom: dom,
299
+ subject: me,
300
+ items: items,
301
+ renderMain: renderMain,
302
+ renderTab: renderTab,
303
+ ordered: true,
304
+ orientation: 0,
305
+ backgroundColor: '#eeeeee',
306
+ // black?
307
+ selectedTab: options.selectedTab,
308
+ onClose: options.onClose
309
+ }));
310
+ return _context.abrupt("return", div);
311
+ case 14:
312
+ case "end":
313
+ return _context.stop();
319
314
  }
320
315
  }, _callee);
321
316
  }));
@@ -329,246 +324,234 @@ function _default(context) {
329
324
  _getDashboardItems = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
330
325
  var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
331
326
  return _regeneratorRuntime().wrap(function _callee7$(_context8) {
332
- while (1) {
333
- switch (_context8.prev = _context8.next) {
334
- case 0:
335
- _getAddressBooks = function _getAddressBooks3() {
336
- _getAddressBooks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
337
- var _context6;
338
- return _regeneratorRuntime().wrap(function _callee6$(_context7) {
339
- while (1) {
340
- switch (_context7.prev = _context7.next) {
341
- case 0:
342
- _context7.prev = 0;
343
- _context7.next = 3;
344
- return UI.login.findAppInstances({
345
- me: me,
346
- div: div,
347
- dom: dom
348
- }, ns.vcard('AddressBook'));
349
- case 3:
350
- _context6 = _context7.sent;
351
- return _context7.abrupt("return", (_context6.instances || []).map(function (book, index) {
352
- return {
353
- paneName: 'contact',
354
- tabName: "contact-".concat(index),
355
- label: 'Contacts',
356
- subject: book,
357
- icon: UI.icons.iconBase + 'noun_15695.svg'
358
- };
359
- }));
360
- case 7:
361
- _context7.prev = 7;
362
- _context7.t0 = _context7["catch"](0);
363
- console.error('oops in globalAppTabs AddressBook');
364
- case 10:
365
- return _context7.abrupt("return", []);
366
- case 11:
367
- case "end":
368
- return _context7.stop();
369
- }
370
- }
371
- }, _callee6, null, [[0, 7]]);
372
- }));
373
- return _getAddressBooks.apply(this, arguments);
374
- };
375
- getAddressBooks = function _getAddressBooks2() {
376
- return _getAddressBooks.apply(this, arguments);
377
- };
378
- _getPods = function _getPods3() {
379
- _getPods = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
380
- var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
381
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
382
- while (1) {
383
- switch (_context5.prev = _context5.next) {
384
- case 0:
385
- uniques = function _uniques(nodes) {
386
- var uniqueNodes = [];
387
- nodes.forEach(function (node) {
388
- if (!uniqueNodes.find(function (uniqueNode) {
389
- return uniqueNode.equals(node);
390
- })) uniqueNodes.push(node);
391
- });
392
- return uniqueNodes;
393
- };
394
- _addPodStorageFromUrl = function _addPodStorageFromUrl3() {
395
- _addPodStorageFromUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(url) {
396
- var podStorage, pathStorage;
397
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
398
- while (1) {
399
- switch (_context4.prev = _context4.next) {
400
- case 0:
401
- podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
402
- pathStorage = podStorage.pathname;
403
- case 2:
404
- if (!pathStorage.length) {
405
- _context4.next = 10;
406
- break;
407
- }
408
- pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
409
- _context4.next = 6;
410
- return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
411
- case 6:
412
- if (!_context4.sent) {
413
- _context4.next = 8;
414
- break;
415
- }
416
- return _context4.abrupt("return");
417
- case 8:
418
- _context4.next = 2;
419
- break;
420
- case 10:
421
- case "end":
422
- return _context4.stop();
423
- }
327
+ while (1) switch (_context8.prev = _context8.next) {
328
+ case 0:
329
+ _getAddressBooks = function _getAddressBooks3() {
330
+ _getAddressBooks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
331
+ var _context6;
332
+ return _regeneratorRuntime().wrap(function _callee6$(_context7) {
333
+ while (1) switch (_context7.prev = _context7.next) {
334
+ case 0:
335
+ _context7.prev = 0;
336
+ _context7.next = 3;
337
+ return UI.login.findAppInstances({
338
+ me: me,
339
+ div: div,
340
+ dom: dom
341
+ }, ns.vcard('AddressBook'));
342
+ case 3:
343
+ _context6 = _context7.sent;
344
+ return _context7.abrupt("return", (_context6.instances || []).map(function (book, index) {
345
+ return {
346
+ paneName: 'contact',
347
+ tabName: "contact-".concat(index),
348
+ label: 'Contacts',
349
+ subject: book,
350
+ icon: UI.icons.iconBase + 'noun_15695.svg'
351
+ };
352
+ }));
353
+ case 7:
354
+ _context7.prev = 7;
355
+ _context7.t0 = _context7["catch"](0);
356
+ console.error('oops in globalAppTabs AddressBook');
357
+ case 10:
358
+ return _context7.abrupt("return", []);
359
+ case 11:
360
+ case "end":
361
+ return _context7.stop();
362
+ }
363
+ }, _callee6, null, [[0, 7]]);
364
+ }));
365
+ return _getAddressBooks.apply(this, arguments);
366
+ };
367
+ getAddressBooks = function _getAddressBooks2() {
368
+ return _getAddressBooks.apply(this, arguments);
369
+ };
370
+ _getPods = function _getPods3() {
371
+ _getPods = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
372
+ var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
373
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
374
+ while (1) switch (_context5.prev = _context5.next) {
375
+ case 0:
376
+ uniques = function _uniques(nodes) {
377
+ var uniqueNodes = [];
378
+ nodes.forEach(function (node) {
379
+ if (!uniqueNodes.find(function (uniqueNode) {
380
+ return uniqueNode.equals(node);
381
+ })) uniqueNodes.push(node);
382
+ });
383
+ return uniqueNodes;
384
+ };
385
+ _addPodStorageFromUrl = function _addPodStorageFromUrl3() {
386
+ _addPodStorageFromUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(url) {
387
+ var podStorage, pathStorage;
388
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
389
+ while (1) switch (_context4.prev = _context4.next) {
390
+ case 0:
391
+ podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
392
+ pathStorage = podStorage.pathname;
393
+ case 2:
394
+ if (!pathStorage.length) {
395
+ _context4.next = 10;
396
+ break;
424
397
  }
425
- }, _callee4);
426
- }));
427
- return _addPodStorageFromUrl.apply(this, arguments);
428
- };
429
- addPodStorageFromUrl = function _addPodStorageFromUrl2(_x8) {
430
- return _addPodStorageFromUrl.apply(this, arguments);
431
- };
432
- _addPodStorage = function _addPodStorage3() {
433
- _addPodStorage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(pod) {
434
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
435
- while (1) {
436
- switch (_context3.prev = _context3.next) {
437
- case 0:
438
- _context3.next = 2;
439
- return loadContainerRepresentation(pod);
440
- case 2:
441
- if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
442
- _context3.next = 5;
443
- break;
444
- }
445
- pods.push(pod);
446
- return _context3.abrupt("return", true);
447
- case 5:
448
- return _context3.abrupt("return", false);
449
- case 6:
450
- case "end":
451
- return _context3.stop();
452
- }
398
+ pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
399
+ _context4.next = 6;
400
+ return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
401
+ case 6:
402
+ if (!_context4.sent) {
403
+ _context4.next = 8;
404
+ break;
453
405
  }
454
- }, _callee3);
455
- }));
456
- return _addPodStorage.apply(this, arguments);
457
- };
458
- addPodStorage = function _addPodStorage2(_x7) {
459
- return _addPodStorage.apply(this, arguments);
460
- };
461
- _context5.prev = 5;
462
- _context5.next = 8;
463
- return kb.fetcher.load(me.doc());
464
- case 8:
465
- _context5.next = 14;
466
- break;
467
- case 10:
468
- _context5.prev = 10;
469
- _context5.t0 = _context5["catch"](5);
470
- console.error('Unable to load profile', _context5.t0);
471
- return _context5.abrupt("return", []);
472
- case 14:
473
- // load pod's storages from profile
474
- pods = kb.each(me, ns.space('storage'), null, me.doc());
475
- pods.map( /*#__PURE__*/function () {
476
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(pod) {
477
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
478
- while (1) {
479
- switch (_context2.prev = _context2.next) {
480
- case 0:
481
- _context2.next = 2;
482
- return loadContainerRepresentation(pod);
483
- case 2:
484
- case "end":
485
- return _context2.stop();
486
- }
406
+ return _context4.abrupt("return");
407
+ case 8:
408
+ _context4.next = 2;
409
+ break;
410
+ case 10:
411
+ case "end":
412
+ return _context4.stop();
413
+ }
414
+ }, _callee4);
415
+ }));
416
+ return _addPodStorageFromUrl.apply(this, arguments);
417
+ };
418
+ addPodStorageFromUrl = function _addPodStorageFromUrl2(_x8) {
419
+ return _addPodStorageFromUrl.apply(this, arguments);
420
+ };
421
+ _addPodStorage = function _addPodStorage3() {
422
+ _addPodStorage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(pod) {
423
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
424
+ while (1) switch (_context3.prev = _context3.next) {
425
+ case 0:
426
+ _context3.next = 2;
427
+ return loadContainerRepresentation(pod);
428
+ case 2:
429
+ if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
430
+ _context3.next = 5;
431
+ break;
487
432
  }
488
- }, _callee2);
489
- }));
490
- return function (_x9) {
491
- return _ref.apply(this, arguments);
492
- };
493
- }());
494
- _context5.prev = 16;
495
- // if uri then SolidOS is a browse.html web app
496
- uri = new URL(window.location.href).searchParams.get('uri');
497
- podUrl = uri || window.location.href;
498
- _context5.next = 21;
499
- return addPodStorageFromUrl(podUrl);
500
- case 21:
501
- _context5.next = 26;
502
- break;
503
- case 23:
504
- _context5.prev = 23;
505
- _context5.t1 = _context5["catch"](16);
506
- console.error('cannot load container', _context5.t1);
507
- case 26:
508
- pods = uniques(pods);
509
- if (pods.length) {
510
- _context5.next = 29;
511
- break;
512
- }
513
- return _context5.abrupt("return", []);
514
- case 29:
515
- return _context5.abrupt("return", pods.map(function (pod, index) {
516
- function split(item) {
517
- return item.uri.split('//')[1].slice(0, -1);
433
+ pods.push(pod);
434
+ return _context3.abrupt("return", true);
435
+ case 5:
436
+ return _context3.abrupt("return", false);
437
+ case 6:
438
+ case "end":
439
+ return _context3.stop();
440
+ }
441
+ }, _callee3);
442
+ }));
443
+ return _addPodStorage.apply(this, arguments);
444
+ };
445
+ addPodStorage = function _addPodStorage2(_x7) {
446
+ return _addPodStorage.apply(this, arguments);
447
+ };
448
+ _context5.prev = 5;
449
+ _context5.next = 8;
450
+ return kb.fetcher.load(me.doc());
451
+ case 8:
452
+ _context5.next = 14;
453
+ break;
454
+ case 10:
455
+ _context5.prev = 10;
456
+ _context5.t0 = _context5["catch"](5);
457
+ console.error('Unable to load profile', _context5.t0);
458
+ return _context5.abrupt("return", []);
459
+ case 14:
460
+ // load pod's storages from profile
461
+ pods = kb.each(me, ns.space('storage'), null, me.doc());
462
+ pods.map( /*#__PURE__*/function () {
463
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(pod) {
464
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
465
+ while (1) switch (_context2.prev = _context2.next) {
466
+ case 0:
467
+ _context2.next = 2;
468
+ return loadContainerRepresentation(pod);
469
+ case 2:
470
+ case "end":
471
+ return _context2.stop();
518
472
  }
519
- var label = split(me).startsWith(split(pod)) ? 'Your storage' : split(pod);
520
- return {
521
- paneName: 'folder',
522
- tabName: "folder-".concat(index),
523
- label: label,
524
- subject: pod,
525
- icon: UI.icons.iconBase + 'noun_Cabinet_251723.svg'
526
- };
527
- }));
528
- case 30:
529
- case "end":
530
- return _context5.stop();
473
+ }, _callee2);
474
+ }));
475
+ return function (_x9) {
476
+ return _ref.apply(this, arguments);
477
+ };
478
+ }());
479
+ _context5.prev = 16;
480
+ // if uri then SolidOS is a browse.html web app
481
+ uri = new URL(window.location.href).searchParams.get('uri');
482
+ podUrl = uri || window.location.href;
483
+ _context5.next = 21;
484
+ return addPodStorageFromUrl(podUrl);
485
+ case 21:
486
+ _context5.next = 26;
487
+ break;
488
+ case 23:
489
+ _context5.prev = 23;
490
+ _context5.t1 = _context5["catch"](16);
491
+ console.error('cannot load container', _context5.t1);
492
+ case 26:
493
+ pods = uniques(pods);
494
+ if (pods.length) {
495
+ _context5.next = 29;
496
+ break;
531
497
  }
532
- }
533
- }, _callee5, null, [[5, 10], [16, 23]]);
534
- }));
535
- return _getPods.apply(this, arguments);
536
- };
537
- getPods = function _getPods2() {
538
- return _getPods.apply(this, arguments);
539
- };
540
- me = _solidLogic.authn.currentUser();
541
- if (me) {
542
- _context8.next = 7;
543
- break;
544
- }
545
- return _context8.abrupt("return", []);
546
- case 7:
547
- div = dom.createElement('div');
548
- _context8.next = 10;
549
- return Promise.all([getAddressBooks(), getPods()]);
550
- case 10:
551
- _yield$Promise$all = _context8.sent;
552
- _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
553
- books = _yield$Promise$all2[0];
554
- pods = _yield$Promise$all2[1];
555
- return _context8.abrupt("return", [{
556
- paneName: 'home',
557
- label: 'Your stuff',
558
- icon: UI.icons.iconBase + 'noun_547570.svg'
559
- }, {
560
- paneName: 'basicPreferences',
561
- label: 'Preferences',
562
- icon: UI.icons.iconBase + 'noun_Sliders_341315_00000.svg'
563
- }, {
564
- paneName: 'editProfile',
565
- label: 'Edit your profile',
566
- icon: UI.icons.iconBase + 'noun_492246.svg'
567
- }].concat(books).concat(pods));
568
- case 15:
569
- case "end":
570
- return _context8.stop();
571
- }
498
+ return _context5.abrupt("return", []);
499
+ case 29:
500
+ return _context5.abrupt("return", pods.map(function (pod, index) {
501
+ function split(item) {
502
+ return item.uri.split('//')[1].slice(0, -1);
503
+ }
504
+ var label = split(me).startsWith(split(pod)) ? 'Your storage' : split(pod);
505
+ return {
506
+ paneName: 'folder',
507
+ tabName: "folder-".concat(index),
508
+ label: label,
509
+ subject: pod,
510
+ icon: UI.icons.iconBase + 'noun_Cabinet_251723.svg'
511
+ };
512
+ }));
513
+ case 30:
514
+ case "end":
515
+ return _context5.stop();
516
+ }
517
+ }, _callee5, null, [[5, 10], [16, 23]]);
518
+ }));
519
+ return _getPods.apply(this, arguments);
520
+ };
521
+ getPods = function _getPods2() {
522
+ return _getPods.apply(this, arguments);
523
+ };
524
+ me = _solidLogic.authn.currentUser();
525
+ if (me) {
526
+ _context8.next = 7;
527
+ break;
528
+ }
529
+ return _context8.abrupt("return", []);
530
+ case 7:
531
+ div = dom.createElement('div');
532
+ _context8.next = 10;
533
+ return Promise.all([getAddressBooks(), getPods()]);
534
+ case 10:
535
+ _yield$Promise$all = _context8.sent;
536
+ _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
537
+ books = _yield$Promise$all2[0];
538
+ pods = _yield$Promise$all2[1];
539
+ return _context8.abrupt("return", [{
540
+ paneName: 'home',
541
+ label: 'Your stuff',
542
+ icon: UI.icons.iconBase + 'noun_547570.svg'
543
+ }, {
544
+ paneName: 'basicPreferences',
545
+ label: 'Preferences',
546
+ icon: UI.icons.iconBase + 'noun_Sliders_341315_00000.svg'
547
+ }, {
548
+ paneName: 'editProfile',
549
+ label: 'Edit your profile',
550
+ icon: UI.icons.iconBase + 'noun_492246.svg'
551
+ }].concat(books).concat(pods));
552
+ case 15:
553
+ case "end":
554
+ return _context8.stop();
572
555
  }
573
556
  }, _callee7);
574
557
  }));
@@ -597,53 +580,51 @@ function _default(context) {
597
580
  closeDashboard,
598
581
  _args8 = arguments;
599
582
  return _regeneratorRuntime().wrap(function _callee8$(_context9) {
600
- while (1) {
601
- switch (_context9.prev = _context9.next) {
602
- case 0:
603
- closeDashboard = function _closeDashboard() {
604
- dashboardContainer.style.display = 'none';
605
- outlineContainer.style.display = 'inherit';
606
- };
607
- options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
608
- dashboardContainer = getDashboardContainer();
609
- outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
610
- if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
611
- _context9.next = 12;
612
- break;
613
- }
614
- outlineContainer.style.display = 'none';
615
- dashboardContainer.style.display = 'inherit';
616
- _tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
617
- if (!_tab) {
618
- _context9.next = 11;
619
- break;
620
- }
621
- _tab.click();
622
- return _context9.abrupt("return");
623
- case 11:
624
- console.warn('Did not find the referred tab in global dashboard, will open first one');
625
- case 12:
626
- _context9.next = 14;
627
- return globalAppTabs({
628
- selectedTab: options.pane,
629
- onClose: closeDashboard
630
- });
631
- case 14:
632
- dashboard = _context9.sent;
633
- // close the dashboard if user log out
634
- _solidLogic.authSession.onLogout(closeDashboard);
635
-
636
- // finally - switch to showing dashboard
637
- outlineContainer.style.display = 'none';
638
- dashboardContainer.appendChild(dashboard);
639
- tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
640
- if (tab) {
641
- tab.click();
642
- }
643
- case 20:
644
- case "end":
645
- return _context9.stop();
646
- }
583
+ while (1) switch (_context9.prev = _context9.next) {
584
+ case 0:
585
+ closeDashboard = function _closeDashboard() {
586
+ dashboardContainer.style.display = 'none';
587
+ outlineContainer.style.display = 'inherit';
588
+ };
589
+ options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
590
+ dashboardContainer = getDashboardContainer();
591
+ outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
592
+ if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
593
+ _context9.next = 12;
594
+ break;
595
+ }
596
+ outlineContainer.style.display = 'none';
597
+ dashboardContainer.style.display = 'inherit';
598
+ _tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
599
+ if (!_tab) {
600
+ _context9.next = 11;
601
+ break;
602
+ }
603
+ _tab.click();
604
+ return _context9.abrupt("return");
605
+ case 11:
606
+ console.warn('Did not find the referred tab in global dashboard, will open first one');
607
+ case 12:
608
+ _context9.next = 14;
609
+ return globalAppTabs({
610
+ selectedTab: options.pane,
611
+ onClose: closeDashboard
612
+ });
613
+ case 14:
614
+ dashboard = _context9.sent;
615
+ // close the dashboard if user log out
616
+ _solidLogic.authSession.onLogout(closeDashboard);
617
+
618
+ // finally - switch to showing dashboard
619
+ outlineContainer.style.display = 'none';
620
+ dashboardContainer.appendChild(dashboard);
621
+ tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
622
+ if (tab) {
623
+ tab.click();
624
+ }
625
+ case 20:
626
+ case "end":
627
+ return _context9.stop();
647
628
  }
648
629
  }, _callee8);
649
630
  }));
@@ -678,27 +659,25 @@ function _default(context) {
678
659
  _loadContainerRepresentation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(subject) {
679
660
  var response, containerTurtle;
680
661
  return _regeneratorRuntime().wrap(function _callee9$(_context10) {
681
- while (1) {
682
- switch (_context10.prev = _context10.next) {
683
- case 0:
684
- if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
685
- _context10.next = 6;
686
- break;
662
+ while (1) switch (_context10.prev = _context10.next) {
663
+ case 0:
664
+ if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
665
+ _context10.next = 6;
666
+ break;
667
+ }
668
+ _context10.next = 3;
669
+ return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
670
+ headers: {
671
+ accept: 'text/turtle'
687
672
  }
688
- _context10.next = 3;
689
- return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
690
- headers: {
691
- accept: 'text/turtle'
692
- }
693
- }));
694
- case 3:
695
- response = _context10.sent;
696
- containerTurtle = response.responseText;
697
- $rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
698
- case 6:
699
- case "end":
700
- return _context10.stop();
701
- }
673
+ }));
674
+ case 3:
675
+ response = _context10.sent;
676
+ containerTurtle = response.responseText;
677
+ $rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
678
+ case 6:
679
+ case "end":
680
+ return _context10.stop();
702
681
  }
703
682
  }, _callee9);
704
683
  }));
@@ -711,43 +690,41 @@ function _default(context) {
711
690
  _getRelevantPanes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(subject, context) {
712
691
  var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
713
692
  return _regeneratorRuntime().wrap(function _callee10$(_context11) {
714
- while (1) {
715
- switch (_context11.prev = _context11.next) {
716
- case 0:
717
- if (!subject.uri.endsWith('/')) {
718
- _context11.next = 3;
719
- break;
720
- }
693
+ while (1) switch (_context11.prev = _context11.next) {
694
+ case 0:
695
+ if (!subject.uri.endsWith('/')) {
721
696
  _context11.next = 3;
722
- return loadContainerRepresentation(subject);
723
- case 3:
724
- panes = context.session.paneRegistry;
725
- relevantPanes = panes.list.filter(function (pane) {
726
- return pane.label(subject, context) && !pane.global;
727
- });
728
- if (!(relevantPanes.length === 0)) {
729
- _context11.next = 7;
730
- break;
731
- }
732
- return _context11.abrupt("return", [panes.byName('internal')]);
733
- case 7:
734
- _context11.next = 9;
735
- return UI.login.filterAvailablePanes(relevantPanes);
736
- case 9:
737
- filteredPanes = _context11.sent;
738
- if (!(filteredPanes.length === 0)) {
739
- _context11.next = 12;
740
- break;
741
- }
742
- return _context11.abrupt("return", [relevantPanes[0]]);
743
- case 12:
744
- firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
745
- firstFilteredPaneIndex = panes.list.indexOf(filteredPanes[0]); // if the first relevant pane is loaded before the panes available wrt role, we still want to offer the most relevant pane
746
- return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
747
- case 15:
748
- case "end":
749
- return _context11.stop();
750
- }
697
+ break;
698
+ }
699
+ _context11.next = 3;
700
+ return loadContainerRepresentation(subject);
701
+ case 3:
702
+ panes = context.session.paneRegistry;
703
+ relevantPanes = panes.list.filter(function (pane) {
704
+ return pane.label(subject, context) && !pane.global;
705
+ });
706
+ if (!(relevantPanes.length === 0)) {
707
+ _context11.next = 7;
708
+ break;
709
+ }
710
+ return _context11.abrupt("return", [panes.byName('internal')]);
711
+ case 7:
712
+ _context11.next = 9;
713
+ return UI.login.filterAvailablePanes(relevantPanes);
714
+ case 9:
715
+ filteredPanes = _context11.sent;
716
+ if (!(filteredPanes.length === 0)) {
717
+ _context11.next = 12;
718
+ break;
719
+ }
720
+ return _context11.abrupt("return", [relevantPanes[0]]);
721
+ case 12:
722
+ firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
723
+ firstFilteredPaneIndex = panes.list.indexOf(filteredPanes[0]); // if the first relevant pane is loaded before the panes available wrt role, we still want to offer the most relevant pane
724
+ return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
725
+ case 15:
726
+ case "end":
727
+ return _context11.stop();
751
728
  }
752
729
  }, _callee10);
753
730
  }));
@@ -784,197 +761,188 @@ function _default(context) {
784
761
  _expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(subject, requiredPane, options) {
785
762
  var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
786
763
  return _regeneratorRuntime().wrap(function _callee12$(_context13) {
787
- while (1) {
788
- switch (_context13.prev = _context13.next) {
789
- case 0:
790
- _renderPaneIconTray = function _renderPaneIconTray3() {
791
- _renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(td) {
792
- var options,
793
- paneShownStyle,
794
- paneHiddenStyle,
795
- paneIconTray,
796
- relevantPanes,
797
- paneNumber,
798
- _args11 = arguments;
799
- return _regeneratorRuntime().wrap(function _callee11$(_context12) {
800
- while (1) {
801
- switch (_context12.prev = _context12.next) {
802
- case 0:
803
- options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
804
- paneShownStyle = 'width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;';
805
- paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
806
- paneIconTray = td.appendChild(dom.createElement('nav'));
807
- paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
808
- if (!options.hideList) {
809
- _context12.next = 9;
810
- break;
811
- }
812
- _context12.t0 = [];
813
- _context12.next = 12;
814
- break;
815
- case 9:
816
- _context12.next = 11;
817
- return getRelevantPanes(subject, context);
818
- case 11:
819
- _context12.t0 = _context12.sent;
820
- case 12:
821
- relevantPanes = _context12.t0;
822
- tr.firstPane = requiredPane || getPane(relevantPanes, subject);
823
- paneNumber = relevantPanes.indexOf(tr.firstPane);
824
- if (relevantPanes.length !== 1) {
825
- // if only one, simplify interface
826
- relevantPanes.forEach(function (pane, index) {
827
- var label = pane.label(subject, context);
828
- var ico = UI.utils.AJARImage(pane.icon, label, label, dom);
829
- ico.style = pane === tr.firstPane ? paneShownStyle : paneHiddenStyle; // init to something at least
830
- // ico.setAttribute('align','right'); @@ Should be better, but ffox bug pushes them down
831
- // ico.style.width = iconHeight
832
- // ico.style.height = iconHeight
833
- var listen = function listen(ico, pane) {
834
- // Freeze scope for event time
835
- ico.addEventListener('click', function (event) {
836
- var containingTable;
837
- // Find the containing table for this subject
838
- for (containingTable = td; containingTable.parentNode; containingTable = containingTable.parentNode) {
839
- if (containingTable.nodeName === 'TABLE') break;
840
- }
841
- if (containingTable.nodeName !== 'TABLE') {
842
- throw new Error('outline: internal error.');
843
- }
844
- var removePanes = function removePanes(specific) {
845
- for (var d = containingTable.firstChild; d; d = d.nextSibling) {
846
- if (typeof d.pane !== 'undefined') {
847
- if (!specific || d.pane === specific) {
848
- if (d.paneButton) {
849
- d.paneButton.setAttribute('class', 'paneHidden');
850
- d.paneButton.style = paneHiddenStyle;
851
- }
852
- removeAndRefresh(d);
853
- // If we just delete the node d, ffox doesn't refresh the display properly.
854
- // state = 'paneHidden';
855
- if (d.pane.requireQueryButton && containingTable.parentNode.className /* outer table */ && numberOfPanesRequiringQueryButton === 1 && dom.getElementById('queryButton')) {
856
- dom.getElementById('queryButton').setAttribute('style', 'display:none;');
857
- }
858
- }
764
+ while (1) switch (_context13.prev = _context13.next) {
765
+ case 0:
766
+ _renderPaneIconTray = function _renderPaneIconTray3() {
767
+ _renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(td) {
768
+ var options,
769
+ paneShownStyle,
770
+ paneHiddenStyle,
771
+ paneIconTray,
772
+ relevantPanes,
773
+ paneNumber,
774
+ _args11 = arguments;
775
+ return _regeneratorRuntime().wrap(function _callee11$(_context12) {
776
+ while (1) switch (_context12.prev = _context12.next) {
777
+ case 0:
778
+ options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
779
+ paneShownStyle = 'width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;';
780
+ paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
781
+ paneIconTray = td.appendChild(dom.createElement('nav'));
782
+ paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
783
+ if (!options.hideList) {
784
+ _context12.next = 9;
785
+ break;
786
+ }
787
+ _context12.t0 = [];
788
+ _context12.next = 12;
789
+ break;
790
+ case 9:
791
+ _context12.next = 11;
792
+ return getRelevantPanes(subject, context);
793
+ case 11:
794
+ _context12.t0 = _context12.sent;
795
+ case 12:
796
+ relevantPanes = _context12.t0;
797
+ tr.firstPane = requiredPane || getPane(relevantPanes, subject);
798
+ paneNumber = relevantPanes.indexOf(tr.firstPane);
799
+ if (relevantPanes.length !== 1) {
800
+ // if only one, simplify interface
801
+ relevantPanes.forEach(function (pane, index) {
802
+ var label = pane.label(subject, context);
803
+ var ico = UI.utils.AJARImage(pane.icon, label, label, dom);
804
+ ico.style = pane === tr.firstPane ? paneShownStyle : paneHiddenStyle; // init to something at least
805
+ // ico.setAttribute('align','right'); @@ Should be better, but ffox bug pushes them down
806
+ // ico.style.width = iconHeight
807
+ // ico.style.height = iconHeight
808
+ var listen = function listen(ico, pane) {
809
+ // Freeze scope for event time
810
+ ico.addEventListener('click', function (event) {
811
+ var containingTable;
812
+ // Find the containing table for this subject
813
+ for (containingTable = td; containingTable.parentNode; containingTable = containingTable.parentNode) {
814
+ if (containingTable.nodeName === 'TABLE') break;
815
+ }
816
+ if (containingTable.nodeName !== 'TABLE') {
817
+ throw new Error('outline: internal error.');
818
+ }
819
+ var removePanes = function removePanes(specific) {
820
+ for (var d = containingTable.firstChild; d; d = d.nextSibling) {
821
+ if (typeof d.pane !== 'undefined') {
822
+ if (!specific || d.pane === specific) {
823
+ if (d.paneButton) {
824
+ d.paneButton.setAttribute('class', 'paneHidden');
825
+ d.paneButton.style = paneHiddenStyle;
859
826
  }
860
- }
861
- };
862
- var renderPane = function renderPane(pane) {
863
- var paneDiv;
864
- UI.log.info('outline: Rendering pane (2): ' + pane.name);
865
- if (UI.no_catch_pane_errors) {
866
- // for debugging
867
- paneDiv = pane.render(subject, context, options);
868
- } else {
869
- try {
870
- paneDiv = pane.render(subject, context, options);
871
- } catch (e) {
872
- // Easier debugging for pane developers
873
- paneDiv = dom.createElement('div');
874
- paneDiv.setAttribute('class', 'exceptionPane');
875
- var pre = dom.createElement('pre');
876
- paneDiv.appendChild(pre);
877
- pre.appendChild(dom.createTextNode(UI.utils.stackString(e)));
827
+ removeAndRefresh(d);
828
+ // If we just delete the node d, ffox doesn't refresh the display properly.
829
+ // state = 'paneHidden';
830
+ if (d.pane.requireQueryButton && containingTable.parentNode.className /* outer table */ && numberOfPanesRequiringQueryButton === 1 && dom.getElementById('queryButton')) {
831
+ dom.getElementById('queryButton').setAttribute('style', 'display:none;');
878
832
  }
879
833
  }
880
- if (pane.requireQueryButton && dom.getElementById('queryButton')) {
881
- dom.getElementById('queryButton').removeAttribute('style');
882
- }
883
- var second = containingTable.firstChild.nextSibling;
884
- var row = dom.createElement('tr');
885
- var cell = row.appendChild(dom.createElement('td'));
886
- cell.appendChild(paneDiv);
887
- if (second) containingTable.insertBefore(row, second);else containingTable.appendChild(row);
888
- row.pane = pane;
889
- row.paneButton = ico;
890
- };
891
- var state = ico.getAttribute('class');
892
- if (state === 'paneHidden') {
893
- if (!event.shiftKey) {
894
- // shift means multiple select
895
- removePanes();
896
- }
897
- renderPane(pane);
898
- ico.setAttribute('class', 'paneShown');
899
- ico.style = paneShownStyle;
900
- } else {
901
- removePanes(pane);
902
- ico.setAttribute('class', 'paneHidden');
903
- ico.style = paneHiddenStyle;
904
834
  }
905
- var numberOfPanesRequiringQueryButton = 0;
906
- for (var d = containingTable.firstChild; d; d = d.nextSibling) {
907
- if (d.pane && d.pane.requireQueryButton) {
908
- numberOfPanesRequiringQueryButton++;
909
- }
910
- }
911
- }, false);
912
- }; // listen
913
-
914
- listen(ico, pane);
915
- ico.setAttribute('class', index !== paneNumber ? 'paneHidden' : 'paneShown');
916
- if (index === paneNumber) tr.paneButton = ico;
917
- paneIconTray.appendChild(ico);
918
- });
919
- }
920
- return _context12.abrupt("return", paneIconTray);
921
- case 17:
922
- case "end":
923
- return _context12.stop();
835
+ }
836
+ };
837
+ var renderPane = function renderPane(pane) {
838
+ var paneDiv;
839
+ UI.log.info('outline: Rendering pane (2): ' + pane.name);
840
+ try {
841
+ paneDiv = pane.render(subject, context, options);
842
+ } catch (e) {
843
+ // Easier debugging for pane developers
844
+ paneDiv = dom.createElement('div');
845
+ paneDiv.setAttribute('class', 'exceptionPane');
846
+ var pre = dom.createElement('pre');
847
+ paneDiv.appendChild(pre);
848
+ pre.appendChild(dom.createTextNode(UI.utils.stackString(e)));
849
+ }
850
+ if (pane.requireQueryButton && dom.getElementById('queryButton')) {
851
+ dom.getElementById('queryButton').removeAttribute('style');
852
+ }
853
+ var second = containingTable.firstChild.nextSibling;
854
+ var row = dom.createElement('tr');
855
+ var cell = row.appendChild(dom.createElement('td'));
856
+ cell.appendChild(paneDiv);
857
+ if (second) containingTable.insertBefore(row, second);else containingTable.appendChild(row);
858
+ row.pane = pane;
859
+ row.paneButton = ico;
860
+ };
861
+ var state = ico.getAttribute('class');
862
+ if (state === 'paneHidden') {
863
+ if (!event.shiftKey) {
864
+ // shift means multiple select
865
+ removePanes();
866
+ }
867
+ renderPane(pane);
868
+ ico.setAttribute('class', 'paneShown');
869
+ ico.style = paneShownStyle;
870
+ } else {
871
+ removePanes(pane);
872
+ ico.setAttribute('class', 'paneHidden');
873
+ ico.style = paneHiddenStyle;
874
+ }
875
+ var numberOfPanesRequiringQueryButton = 0;
876
+ for (var d = containingTable.firstChild; d; d = d.nextSibling) {
877
+ if (d.pane && d.pane.requireQueryButton) {
878
+ numberOfPanesRequiringQueryButton++;
879
+ }
880
+ }
881
+ }, false);
882
+ }; // listen
883
+
884
+ listen(ico, pane);
885
+ ico.setAttribute('class', index !== paneNumber ? 'paneHidden' : 'paneShown');
886
+ if (index === paneNumber) tr.paneButton = ico;
887
+ paneIconTray.appendChild(ico);
888
+ });
924
889
  }
925
- }
926
- }, _callee11);
927
- }));
928
- return _renderPaneIconTray.apply(this, arguments);
929
- };
930
- renderPaneIconTray = function _renderPaneIconTray2(_x10) {
931
- return _renderPaneIconTray.apply(this, arguments);
932
- };
933
- // renderPaneIconTray
934
- // Body of expandedHeaderTR
935
- tr = dom.createElement('tr');
936
- if (options.hover) {
937
- // By default no hide till hover as community deems it confusing
938
- tr.setAttribute('class', 'hoverControl');
939
- }
940
- td = tr.appendChild(dom.createElement('td'));
941
- td.setAttribute('style', 'margin: 0.2em; border: none; padding: 0; vertical-align: top;' + 'display:flex; justify-content: space-between; flex-direction: row;');
942
- td.setAttribute('notSelectable', 'true');
943
- td.setAttribute('about', subject.toNT());
944
- td.setAttribute('colspan', '2');
945
-
946
- // Stuff at the right about the subject
947
- header = td.appendChild(dom.createElement('div'));
948
- header.style = 'display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;';
949
- showHeader = !!requiredPane;
950
- if (!options.solo && !showHeader) {
951
- icon = header.appendChild(UI.utils.AJARImage(UI.icons.originalIconBase + 'tbl-collapse.png', 'collapse', undefined, dom));
952
- icon.addEventListener('click', collapseMouseDownListener);
953
- strong = header.appendChild(dom.createElement('h1'));
954
- strong.appendChild(dom.createTextNode(UI.utils.label(subject)));
955
- strong.style = 'font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;';
956
- UI.widgets.makeDraggable(strong, subject);
957
- }
958
- _context13.t0 = header;
959
- _context13.next = 16;
960
- return renderPaneIconTray(td, {
961
- hideList: showHeader
962
- });
963
- case 16:
964
- _context13.t1 = _context13.sent;
965
- _context13.t0.appendChild.call(_context13.t0, _context13.t1);
966
- // set DOM methods
967
- tr.firstChild.tabulatorSelect = function () {
968
- setSelected(this, true);
969
- };
970
- tr.firstChild.tabulatorDeselect = function () {
971
- setSelected(this, false);
972
- };
973
- return _context13.abrupt("return", tr);
974
- case 21:
975
- case "end":
976
- return _context13.stop();
977
- }
890
+ return _context12.abrupt("return", paneIconTray);
891
+ case 17:
892
+ case "end":
893
+ return _context12.stop();
894
+ }
895
+ }, _callee11);
896
+ }));
897
+ return _renderPaneIconTray.apply(this, arguments);
898
+ };
899
+ renderPaneIconTray = function _renderPaneIconTray2(_x10) {
900
+ return _renderPaneIconTray.apply(this, arguments);
901
+ };
902
+ // renderPaneIconTray
903
+ // Body of expandedHeaderTR
904
+ tr = dom.createElement('tr');
905
+ if (options.hover) {
906
+ // By default no hide till hover as community deems it confusing
907
+ tr.setAttribute('class', 'hoverControl');
908
+ }
909
+ td = tr.appendChild(dom.createElement('td'));
910
+ td.setAttribute('style', 'margin: 0.2em; border: none; padding: 0; vertical-align: top;' + 'display:flex; justify-content: space-between; flex-direction: row;');
911
+ td.setAttribute('notSelectable', 'true');
912
+ td.setAttribute('about', subject.toNT());
913
+ td.setAttribute('colspan', '2');
914
+
915
+ // Stuff at the right about the subject
916
+ header = td.appendChild(dom.createElement('div'));
917
+ header.style = 'display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;';
918
+ showHeader = !!requiredPane;
919
+ if (!options.solo && !showHeader) {
920
+ icon = header.appendChild(UI.utils.AJARImage(UI.icons.originalIconBase + 'tbl-collapse.png', 'collapse', undefined, dom));
921
+ icon.addEventListener('click', collapseMouseDownListener);
922
+ strong = header.appendChild(dom.createElement('h1'));
923
+ strong.appendChild(dom.createTextNode(UI.utils.label(subject)));
924
+ strong.style = 'font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;';
925
+ UI.widgets.makeDraggable(strong, subject);
926
+ }
927
+ _context13.t0 = header;
928
+ _context13.next = 16;
929
+ return renderPaneIconTray(td, {
930
+ hideList: showHeader
931
+ });
932
+ case 16:
933
+ _context13.t1 = _context13.sent;
934
+ _context13.t0.appendChild.call(_context13.t0, _context13.t1);
935
+ // set DOM methods
936
+ tr.firstChild.tabulatorSelect = function () {
937
+ setSelected(this, true);
938
+ };
939
+ tr.firstChild.tabulatorDeselect = function () {
940
+ setSelected(this, false);
941
+ };
942
+ return _context13.abrupt("return", tr);
943
+ case 21:
944
+ case "end":
945
+ return _context13.stop();
978
946
  }
979
947
  }, _callee12);
980
948
  }));
@@ -1351,14 +1319,14 @@ function _default(context) {
1351
1319
  // if (term.termType != 'symbol') { return true } // should always ve
1352
1320
  if (req === fireOn) {
1353
1321
  target.src = icon;
1354
- target.title = outlineIcons.tooltips[icon];
1322
+ target.title = _outlineIcons.outlineIcons.tooltips[icon];
1355
1323
  }
1356
1324
  return true;
1357
1325
  };
1358
1326
  };
1359
- sf.addCallback('request', makeIconCallback(outlineIcons.src.icon_requested));
1360
- sf.addCallback('done', makeIconCallback(outlineIcons.src.icon_fetched));
1361
- sf.addCallback('fail', makeIconCallback(outlineIcons.src.icon_failed));
1327
+ sf.addCallback('request', makeIconCallback(_outlineIcons.outlineIcons.src.icon_requested));
1328
+ sf.addCallback('done', makeIconCallback(_outlineIcons.outlineIcons.src.icon_fetched));
1329
+ sf.addCallback('fail', makeIconCallback(_outlineIcons.outlineIcons.src.icon_failed));
1362
1330
  }
1363
1331
 
1364
1332
  // Selection support
@@ -1374,19 +1342,19 @@ function _default(context) {
1374
1342
  // outlineIcons.src.icon_opton needed?
1375
1343
  var target = thisOutline.targetOf(e);
1376
1344
  var p = target.parentNode;
1377
- termWidget.replaceIcon(p.parentNode, outlineIcons.termWidgets.optOn, outlineIcons.termWidgets.optOff, optOffIconMouseDownListener);
1345
+ termWidget.replaceIcon(p.parentNode, _outlineIcons.outlineIcons.termWidgets.optOn, _outlineIcons.outlineIcons.termWidgets.optOff, optOffIconMouseDownListener);
1378
1346
  p.parentNode.parentNode.removeAttribute('optional');
1379
1347
  }
1380
1348
  function optOffIconMouseDownListener(e) {
1381
1349
  // outlineIcons.src.icon_optoff needed?
1382
1350
  var target = thisOutline.targetOf(e);
1383
1351
  var p = target.parentNode;
1384
- termWidget.replaceIcon(p.parentNode, outlineIcons.termWidgets.optOff, outlineIcons.termWidgets.optOn, optOnIconMouseDownListener);
1352
+ termWidget.replaceIcon(p.parentNode, _outlineIcons.outlineIcons.termWidgets.optOff, _outlineIcons.outlineIcons.termWidgets.optOn, optOnIconMouseDownListener);
1385
1353
  p.parentNode.parentNode.setAttribute('optional', 'true');
1386
1354
  }
1387
1355
  function setSelectedParent(node, inc) {
1388
- var onIcon = outlineIcons.termWidgets.optOn;
1389
- var offIcon = outlineIcons.termWidgets.optOff;
1356
+ var onIcon = _outlineIcons.outlineIcons.termWidgets.optOn;
1357
+ var offIcon = _outlineIcons.outlineIcons.termWidgets.optOff;
1390
1358
  for (var n = node; n.parentNode; n = n.parentNode) {
1391
1359
  while (true) {
1392
1360
  if (n.getAttribute('predTR')) {
@@ -1482,7 +1450,7 @@ function _default(context) {
1482
1450
  // think about this later. Because we update to the why for now.
1483
1451
  // alert('Target='+target+', editable='+editable+'\nselected statement:' + st)
1484
1452
  if (editable && cla.indexOf('pred') >= 0) {
1485
- termWidget.addIcon(node, outlineIcons.termWidgets.addTri);
1453
+ termWidget.addIcon(node, _outlineIcons.outlineIcons.termWidgets.addTri);
1486
1454
  } // Add blue plus
1487
1455
  }
1488
1456
  } else {
@@ -1493,7 +1461,7 @@ function _default(context) {
1493
1461
  setSelectedParent(node, -1);
1494
1462
  }
1495
1463
  if (cla.indexOf('pred') >= 0) {
1496
- termWidget.removeIcon(node, outlineIcons.termWidgets.addTri);
1464
+ termWidget.removeIcon(node, _outlineIcons.outlineIcons.termWidgets.addTri);
1497
1465
  }
1498
1466
  selection = selection.filter(function (x) {
1499
1467
  return x === node;
@@ -1507,9 +1475,7 @@ function _default(context) {
1507
1475
  }
1508
1476
  function deselectAll() {
1509
1477
  var n = selection.length;
1510
- for (var i = n - 1; i >= 0; i--) {
1511
- setSelected(selection[i], false);
1512
- }
1478
+ for (var i = n - 1; i >= 0; i--) setSelected(selection[i], false);
1513
1479
  selection = [];
1514
1480
  }
1515
1481
 
@@ -1952,10 +1918,10 @@ function _default(context) {
1952
1918
  // if (typeof rav=='undefined') //uncomment this for javascript2rdf
1953
1919
  // have to put this here or this conflicts with deselectAll()
1954
1920
 
1955
- if (!target.src || target.src.slice(target.src.indexOf('/icons/') + 1) !== outlineIcons.src.icon_show_choices && target.src.slice(target.src.indexOf('/icons/') + 1) !== outlineIcons.src.icon_add_triple) {
1921
+ if (!target.src || target.src.slice(target.src.indexOf('/icons/') + 1) !== _outlineIcons.outlineIcons.src.icon_show_choices && target.src.slice(target.src.indexOf('/icons/') + 1) !== _outlineIcons.outlineIcons.src.icon_add_triple) {
1956
1922
  thisOutline.UserInput.clearInputAndSave(e);
1957
1923
  }
1958
- if (!target.src || target.src.slice(target.src.indexOf('/icons/') + 1) !== outlineIcons.src.icon_show_choices) {
1924
+ if (!target.src || target.src.slice(target.src.indexOf('/icons/') + 1) !== _outlineIcons.outlineIcons.src.icon_show_choices) {
1959
1925
  thisOutline.UserInput.clearMenu();
1960
1926
  }
1961
1927
  if (e) e.stopPropagation();
@@ -2246,7 +2212,7 @@ function _default(context) {
2246
2212
  // / /////////////////////////////////////////////////////
2247
2213
 
2248
2214
  var ns = UI.ns;
2249
- var views = (0, _propertyViews["default"])(dom);
2215
+ var views = (0, _propertyViews.propertyViews)(dom);
2250
2216
 
2251
2217
  // var thisOutline = this dup
2252
2218
  /** some builtin simple views **/
@@ -2282,7 +2248,7 @@ function _default(context) {
2282
2248
  var anchor = dom.createElement('a');
2283
2249
  rep.appendChild(dom.createTextNode(num));
2284
2250
  anchor.setAttribute('href', obj.uri);
2285
- anchor.appendChild(UI.utils.AJARImage(outlineIcons.src.icon_telephone, 'phone', 'phone ' + num, dom));
2251
+ anchor.appendChild(UI.utils.AJARImage(_outlineIcons.outlineIcons.src.icon_telephone, 'phone', 'phone ' + num, dom));
2286
2252
  rep.appendChild(anchor);
2287
2253
  anchor.firstChild.setAttribute('class', 'phoneIcon');
2288
2254
  } else {