solid-panes 5.1.0-0 → 5.1.0-2

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 (284) hide show
  1. package/README.md +17 -0
  2. package/dist/RDFXMLPane2.esm.js +1 -2
  3. package/dist/_virtual/~icons/lucide/cake.esm.js +1 -2
  4. package/dist/_virtual/~icons/lucide/camera.esm.js +1 -2
  5. package/dist/_virtual/~icons/lucide/circle-user-round.esm.js +1 -2
  6. package/dist/_virtual/~icons/lucide/folder-open.esm.js +1 -2
  7. package/dist/_virtual/~icons/lucide/help-circle.esm.js +1 -2
  8. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +1 -2
  9. package/dist/_virtual/~icons/lucide/mail.esm.js +1 -2
  10. package/dist/_virtual/~icons/lucide/map-pin.esm.js +1 -2
  11. package/dist/_virtual/~icons/lucide/pencil.esm.js +1 -2
  12. package/dist/_virtual/~icons/lucide/phone.esm.js +1 -2
  13. package/dist/_virtual/~icons/lucide/settings-2.esm.js +1 -2
  14. package/dist/_virtual/~icons/lucide/user-round-plus.esm.js +1 -2
  15. package/dist/_virtual/~icons/lucide/user.esm.js +1 -2
  16. package/dist/_virtual/~icons/lucide/users.esm.js +1 -2
  17. package/dist/_virtual/~icons/lucide/x.esm.js +1 -2
  18. package/dist/audio/audioPane.esm.js +1 -2
  19. package/dist/classInstancePane.esm.js +1 -2
  20. package/dist/components/editor-card/EditorCard.cjs.js +1 -1
  21. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
  22. package/dist/components/editor-card/EditorCard.esm.js +6 -7
  23. package/dist/components/editor-card/EditorCard.styles.esm.js +1 -2
  24. package/dist/components/header/Header.cjs.js +1 -1
  25. package/dist/components/header/Header.cjs.js.map +1 -1
  26. package/dist/components/header/Header.esm.js +7 -8
  27. package/dist/components/header/Header.styles.esm.js +1 -2
  28. package/dist/components/navbar/Navbar.cjs.js +2 -2
  29. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  30. package/dist/components/navbar/Navbar.esm.js +8 -9
  31. package/dist/components/navbar/Navbar.styles.esm.js +1 -2
  32. package/dist/components/profile-heading/ProfileHeading.cjs.js +17 -17
  33. package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
  34. package/dist/components/profile-heading/ProfileHeading.esm.js +28 -29
  35. package/dist/components/profile-heading/ProfileHeading.styles.esm.js +1 -2
  36. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +1 -1
  37. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +2 -3
  38. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js +1 -2
  39. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js +1 -2
  40. package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js +1 -2
  41. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +1 -2
  42. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js +1 -2
  43. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js +1 -2
  44. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js +0 -1
  45. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js +1 -2
  46. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js +1 -2
  47. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js +1 -2
  48. package/dist/components/profile-heading/editor/textUtils.esm.js +1 -2
  49. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js +1 -2
  50. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js +1 -2
  51. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +3 -3
  52. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
  53. package/dist/components/profile-heading/editor/ui/dialog2.esm.js +4 -19
  54. package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
  55. package/dist/components/profile-heading/editor/ui/spinner.esm.js +1 -2
  56. package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js +1 -2
  57. package/dist/components/profile-heading/friendActions.esm.js +1 -2
  58. package/dist/components/profile-heading/profileHeadingData.esm.js +1 -2
  59. package/dist/dashboard/basicPreferences.esm.js +1 -2
  60. package/dist/dashboard/dashboardPane.esm.js +0 -1
  61. package/dist/dashboard/homepage.esm.js +1 -2
  62. package/dist/dashboard/ontologyData.esm.js +1 -2
  63. package/dist/dashboard/preferencesFormText.esm.js +1 -2
  64. package/dist/dataContentPane2.cjs.js +1 -1
  65. package/dist/dataContentPane2.esm.js +2 -3
  66. package/dist/defaultPane2.cjs.js +1 -1
  67. package/dist/defaultPane2.esm.js +2 -3
  68. package/dist/dokieli/dokieliPane.cjs.js +1 -1
  69. package/dist/dokieli/dokieliPane.cjs.js.map +1 -1
  70. package/dist/dokieli/dokieliPane.esm.js +7 -12
  71. package/dist/dokieli/dokieliPane.esm.js.map +1 -1
  72. package/dist/dokieli/new.esm.js +1 -2
  73. package/dist/form/pane.esm.js +1 -2
  74. package/dist/home/homePane.esm.js +1 -2
  75. package/dist/humanReadablePane.d.ts +3 -0
  76. package/dist/humanReadablePane.d.ts.map +1 -1
  77. package/dist/humanReadablePane2.cjs.js +276 -1
  78. package/dist/humanReadablePane2.cjs.js.map +1 -1
  79. package/dist/humanReadablePane2.esm.js +428 -31
  80. package/dist/humanReadablePane2.esm.js.map +1 -1
  81. package/dist/icons/folder.esm.js +1 -2
  82. package/dist/icons/friends.esm.js +1 -2
  83. package/dist/icons/person.esm.js +1 -2
  84. package/dist/imagePane.d.ts.map +1 -1
  85. package/dist/imagePane2.cjs.js +1 -1
  86. package/dist/imagePane2.cjs.js.map +1 -1
  87. package/dist/imagePane2.esm.js +2 -3
  88. package/dist/imagePane2.esm.js.map +1 -1
  89. package/dist/index.esm.js +1 -2
  90. package/dist/internal/internalPane2.cjs.js +1 -1
  91. package/dist/internal/internalPane2.esm.js +2 -3
  92. package/dist/mainPage/header.esm.js +1 -2
  93. package/dist/mainPage/index.cjs.js +1 -1
  94. package/dist/mainPage/index.cjs.js.map +1 -1
  95. package/dist/mainPage/index.d.ts +1 -1
  96. package/dist/mainPage/index.d.ts.map +1 -1
  97. package/dist/mainPage/index.esm.js +6 -2
  98. package/dist/mainPage/index.esm.js.map +1 -1
  99. package/dist/mainPage/navbar.esm.js +1 -2
  100. package/dist/mainPage/navigation.cjs.js +1 -1
  101. package/dist/mainPage/navigation.cjs.js.map +1 -1
  102. package/dist/mainPage/navigation.d.ts.map +1 -1
  103. package/dist/mainPage/navigation.esm.js +14 -11
  104. package/dist/mainPage/navigation.esm.js.map +1 -1
  105. package/dist/mainPage/profileHeading2.esm.js +1 -2
  106. package/dist/n3Pane2.esm.js +1 -2
  107. package/dist/navigation/browserEvents.esm.js +1 -2
  108. package/dist/navigation/chrome.esm.js +1 -2
  109. package/dist/navigation/controller.cjs.js +1 -1
  110. package/dist/navigation/controller.cjs.js.map +1 -1
  111. package/dist/navigation/controller.esm.js +6 -7
  112. package/dist/navigation/controller.esm.js.map +1 -1
  113. package/dist/navigation/events.esm.js +1 -2
  114. package/dist/navigation/navbarVisibility.esm.js +1 -2
  115. package/dist/navigation/options.esm.js +1 -2
  116. package/dist/navigation/podContext.esm.js +1 -2
  117. package/dist/navigation/state.esm.js +1 -2
  118. package/dist/outline/context.esm.js +1 -2
  119. package/dist/outline/fileExplorerHelpers.cjs.js +2 -0
  120. package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -0
  121. package/dist/outline/fileExplorerHelpers.d.ts +13 -0
  122. package/dist/outline/fileExplorerHelpers.d.ts.map +1 -0
  123. package/dist/outline/fileExplorerHelpers.esm.js +24 -0
  124. package/dist/outline/fileExplorerHelpers.esm.js.map +1 -0
  125. package/dist/outline/manager2.cjs.js +1 -1
  126. package/dist/outline/manager2.cjs.js.map +1 -1
  127. package/dist/outline/manager2.esm.js +422 -433
  128. package/dist/outline/manager2.esm.js.map +1 -1
  129. package/dist/outline/outlineDomHelpers.cjs.js +2 -0
  130. package/dist/outline/outlineDomHelpers.cjs.js.map +1 -0
  131. package/dist/outline/outlineDomHelpers.d.ts +30 -0
  132. package/dist/outline/outlineDomHelpers.d.ts.map +1 -0
  133. package/dist/outline/outlineDomHelpers.esm.js +79 -0
  134. package/dist/outline/outlineDomHelpers.esm.js.map +1 -0
  135. package/dist/outline/outlineIcons.esm.js +1 -2
  136. package/dist/outline/propertyViews.esm.js +1 -2
  137. package/dist/outline/queryByExample.cjs.js.map +1 -1
  138. package/dist/outline/queryByExample.esm.js +1 -2
  139. package/dist/outline/queryByExample.esm.js.map +1 -1
  140. package/dist/outline/userInput.cjs.js +9 -9
  141. package/dist/outline/userInput.cjs.js.map +1 -1
  142. package/dist/outline/userInput.esm.js +50 -40
  143. package/dist/outline/userInput.esm.js.map +1 -1
  144. package/dist/outline/viewAsImage.esm.js +1 -2
  145. package/dist/outline/viewAsMbox.esm.js +1 -2
  146. package/dist/pad/padPane2.cjs.js +1 -1
  147. package/dist/pad/padPane2.esm.js +2 -3
  148. package/dist/playlist/playlistPane.esm.js +1 -2
  149. package/dist/registerPanes.esm.js +1 -2
  150. package/dist/schedule/formsForSchedule.esm.js +1 -2
  151. package/dist/schedule/schedulePane.d.ts.map +1 -1
  152. package/dist/schedule/schedulePane2.cjs.js +1 -1
  153. package/dist/schedule/schedulePane2.cjs.js.map +1 -1
  154. package/dist/schedule/schedulePane2.esm.js +60 -59
  155. package/dist/schedule/schedulePane2.esm.js.map +1 -1
  156. package/dist/sharing/sharingPane.esm.js +1 -2
  157. package/dist/slideshow/slideshowPane.esm.js +1 -2
  158. package/dist/social/editProfileDetails.cjs.js +1 -1
  159. package/dist/social/editProfileDetails.esm.js +1 -2
  160. package/dist/social/icons.esm.js +1 -2
  161. package/dist/social/socialPane2.cjs.js +1 -1
  162. package/dist/social/socialPane2.esm.js +2 -3
  163. package/dist/social/socialSections.cjs.js +1 -1
  164. package/dist/social/socialSections.cjs.js.map +1 -1
  165. package/dist/social/socialSections.d.ts +0 -1
  166. package/dist/social/socialSections.d.ts.map +1 -1
  167. package/dist/social/socialSections.esm.js +15 -18
  168. package/dist/social/socialSections.esm.js.map +1 -1
  169. package/dist/social/triage.esm.js +1 -2
  170. package/dist/tabbed/tabbedPane.esm.js +1 -2
  171. package/dist/tableViewPane.esm.js +1 -2
  172. package/dist/transaction/pane.esm.js +1 -2
  173. package/dist/transaction/period.esm.js +1 -2
  174. package/dist/trip/tripPane.esm.js +1 -2
  175. package/dist/trustedApplications/trustedApplications.dom.esm.js +1 -2
  176. package/dist/trustedApplications/trustedApplications.utils.esm.js +1 -2
  177. package/dist/trustedApplications/trustedApplications.view.esm.js +1 -2
  178. package/dist/ui/pane.esm.js +1 -2
  179. package/dist/utils/paneUtils.cjs.js +1 -1
  180. package/dist/utils/paneUtils.cjs.js.map +1 -1
  181. package/dist/utils/paneUtils.d.ts +5 -3
  182. package/dist/utils/paneUtils.d.ts.map +1 -1
  183. package/dist/utils/paneUtils.esm.js +36 -29
  184. package/dist/utils/paneUtils.esm.js.map +1 -1
  185. package/dist/utils/podUtils.cjs.js +1 -1
  186. package/dist/utils/podUtils.cjs.js.map +1 -1
  187. package/dist/utils/podUtils.d.ts +9 -1
  188. package/dist/utils/podUtils.d.ts.map +1 -1
  189. package/dist/utils/podUtils.esm.js +22 -95
  190. package/dist/utils/podUtils.esm.js.map +1 -1
  191. package/dist/utils/viewerUtils.esm.js +1 -2
  192. package/dist/utils/webIdUtils.esm.js +1 -2
  193. package/dist/versionInfo.cjs.js +1 -1
  194. package/dist/versionInfo.cjs.js.map +1 -1
  195. package/dist/versionInfo.esm.js +4 -5
  196. package/dist/versionInfo.esm.js.map +1 -1
  197. package/dist/video/videoPane.esm.js +1 -2
  198. package/package.json +7 -6
  199. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +0 -2
  200. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +0 -1
  201. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +0 -11
  202. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +0 -1
  203. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +0 -2
  204. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +0 -1
  205. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +0 -11
  206. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +0 -1
  207. package/dist/_virtual/~icons/lucide/folder.cjs.js +0 -2
  208. package/dist/_virtual/~icons/lucide/folder.cjs.js.map +0 -1
  209. package/dist/_virtual/~icons/lucide/folder.esm.js +0 -11
  210. package/dist/_virtual/~icons/lucide/folder.esm.js.map +0 -1
  211. package/dist/_virtual/~icons/lucide/globe.cjs.js +0 -2
  212. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +0 -1
  213. package/dist/_virtual/~icons/lucide/globe.esm.js +0 -11
  214. package/dist/_virtual/~icons/lucide/globe.esm.js.map +0 -1
  215. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +0 -2
  216. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +0 -1
  217. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +0 -11
  218. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +0 -1
  219. package/dist/_virtual/~icons/lucide/share-2.cjs.js +0 -2
  220. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +0 -1
  221. package/dist/_virtual/~icons/lucide/share-2.esm.js +0 -11
  222. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +0 -1
  223. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +0 -2
  224. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +0 -1
  225. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +0 -11
  226. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +0 -1
  227. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +0 -14
  228. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +0 -1
  229. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +0 -18
  230. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +0 -1
  231. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +0 -292
  232. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +0 -1
  233. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +0 -2
  234. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +0 -1
  235. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +0 -7
  236. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +0 -1
  237. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +0 -32
  238. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +0 -1
  239. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +0 -21
  240. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +0 -1
  241. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +0 -294
  242. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +0 -1
  243. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +0 -2
  244. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +0 -1
  245. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +0 -7
  246. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +0 -1
  247. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +0 -34
  248. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +0 -1
  249. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +0 -20
  250. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +0 -1
  251. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +0 -346
  252. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +0 -1
  253. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +0 -2
  254. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +0 -1
  255. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +0 -7
  256. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +0 -1
  257. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +0 -13
  258. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +0 -1
  259. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +0 -36
  260. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +0 -1
  261. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +0 -470
  262. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +0 -1
  263. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +0 -2
  264. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +0 -1
  265. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +0 -7
  266. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +0 -1
  267. package/dist/components/file-explorer-header/index.cjs.js +0 -1
  268. package/dist/components/file-explorer-header/index.d.ts +0 -3
  269. package/dist/components/file-explorer-header/index.d.ts.map +0 -1
  270. package/dist/components/file-explorer-header/index.esm.js +0 -2
  271. package/dist/components/file-explorer-header/types.d.ts +0 -10
  272. package/dist/components/file-explorer-header/types.d.ts.map +0 -1
  273. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +0 -8
  274. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +0 -1
  275. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +0 -32
  276. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +0 -1
  277. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +0 -19
  278. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +0 -1
  279. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +0 -322
  280. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +0 -1
  281. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +0 -2
  282. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +0 -1
  283. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +0 -7
  284. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +0 -1
@@ -1,33 +1,48 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.obj{vertical-align:top;border:none;margin:.2em;padding:0 0 5px}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.file-explorer-header{flex-wrap:wrap;justify-content:flex-start;align-items:center;display:flex}.strongHeader{margin:0 .6rem 0 0;padding:.1rem .4rem;font-size:150%}.tableFullWidth{width:100%;background:var(--color-background,#f8f9fb)!important}.placeholderTable{width:100%}.tdFlex{vertical-align:top;border-radius:5px;flex-direction:row;justify-content:space-between;display:flex;overflow:hidden}.paneDiv,.exceptionPane{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block;overflow-x:hidden}.objectValue--literal{white-space:pre-wrap}.objectValue--integer,.objectValue--decimal,.objectValue--double{text-align:right;display:block}.objectValueAccessIcon,.objectValueLinkIcon,.phoneIcon{vertical-align:middle;display:inline-block}.objectValueLinkIcon,.phoneIcon{width:12px;height:12px}@media (width<=600px){.obj,.iconTD{vertical-align:top;font-size:100%;margin:0!important}}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.obj{vertical-align:top;border:none;margin:.2em;padding:0 0 5px}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.strongHeader{margin:0 .6rem 0 0;padding:.1rem .4rem;font-size:150%}.tableFullWidth{width:100%;background:var(--color-background,#f8f9fb)!important}.placeholderTable{width:100%}.tdFlex{vertical-align:top;border-radius:5px;flex-direction:row;justify-content:space-between;display:flex;overflow:hidden}solid-ui-file-explorer-provider{flex-direction:column;gap:0;width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}solid-ui-file-explorer-provider.tdFlex{flex-direction:column;align-items:stretch}solid-ui-file-explorer-provider>solid-ui-file-explorer-header{flex:none;width:100%}solid-ui-file-explorer-provider>.paneDiv,solid-ui-file-explorer-provider>.exceptionPane{flex:auto;width:100%;min-height:0;margin:0;overflow:hidden auto}.paneDiv,.exceptionPane{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:block;overflow-x:hidden}.objectValue--literal{white-space:pre-wrap}.objectValue--integer,.objectValue--decimal,.objectValue--double{text-align:right;display:block}.objectValueAccessIcon,.objectValueLinkIcon,.phoneIcon{vertical-align:middle;display:inline-block}.objectValueLinkIcon,.phoneIcon{width:12px;height:12px}@media (width<=600px){.obj,.iconTD{vertical-align:top;font-size:100%;margin:0!important}}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { propertyViews as e } from "./propertyViews.esm.js";
3
3
  import { outlineIcons as t } from "./outlineIcons.esm.js";
4
4
  import { UserInput as n } from "./userInput.esm.js";
5
5
  import { QuerySource as r } from "./queryByExample.esm.js";
6
6
  import { isWebIdUri as i } from "../utils/webIdUtils.esm.js";
7
7
  import { loadContainerRepresentation as a } from "../utils/podUtils.esm.js";
8
- import { deriveExplorerHeader as o } from "../navigation/chrome.esm.js";
9
- import { isPageInViewerPod as s } from "../navigation/podContext.esm.js";
10
- import { nextHistoryState as c } from "../navigation/state.esm.js";
11
- import { announceNavigation as l } from "../navigation/events.esm.js";
12
- import { resolveSource as u } from "../navigation/options.esm.js";
13
- import { refreshNavbarVisibility as d } from "../navigation/navbarVisibility.esm.js";
14
- import "../components/file-explorer-header/index.esm.js";
15
- import * as f from "solid-ui";
16
- import { store as p } from "solid-logic";
17
- import * as m from "pane-registry";
18
- import * as h from "rdflib";
19
- //#region src/outline/manager.js
8
+ import { deriveExplorerHeader as o, explorerHeaderForPane as s } from "../navigation/chrome.esm.js";
9
+ import { isPageInViewerPod as c } from "../navigation/podContext.esm.js";
10
+ import { nextHistoryState as l } from "../navigation/state.esm.js";
11
+ import { announceNavigation as u } from "../navigation/events.esm.js";
12
+ import { resolveSource as d } from "../navigation/options.esm.js";
13
+ import { refreshNavbarVisibility as f } from "../navigation/navbarVisibility.esm.js";
14
+ import { createOutlineDomHelpers as p } from "./outlineDomHelpers.esm.js";
15
+ import { getPaneIcon as m, getPaneItems as h } from "./fileExplorerHelpers.esm.js";
16
+ import * as g from "solid-ui";
17
+ import { solidLogicSingleton as _, store as v } from "solid-logic";
18
+ import * as y from "pane-registry";
19
+ import * as b from "rdflib";
20
+ import "solid-ui/components/file-explorer-provider";
21
+ import "solid-ui/components/file-explorer-header";
22
+ import x from "solid-ui/components/access-control-modal";
23
+ // src/outline/manager.js
20
24
  /* istanbul ignore file */
21
- function g(g) {
22
- let _ = g.dom;
23
- this.document = g.dom, this.context = g, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
24
- let v = this, y = this, b = [];
25
- this.selection = b, this.ancestor = f.utils.ancestor, this.sparql = h.UpdateManager, this.kb = p;
26
- let x = p, S = p.fetcher;
27
- _.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
28
- let C = this.outlineElement;
29
- this.init = function() {
30
- let e = E();
25
+ var S = "solid-ui-file-explorer-provider";
26
+ function C(C) {
27
+ let w = C.dom, T = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakSet();
28
+ this.document = C.dom, this.context = C, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
29
+ let D = this, O = this, k = [];
30
+ this.selection = k, this.ancestor = g.utils.ancestor, this.sparql = b.UpdateManager, this.kb = v;
31
+ let A = v, j = v.fetcher;
32
+ w.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
33
+ let { outlineObjectDiv: M, outlinePredicateDiv: N, termWidget: P } = p({
34
+ dom: w,
35
+ UI: g,
36
+ kb: v,
37
+ outlineIcons: t,
38
+ expandMouseDownListener: ce,
39
+ selectableTDClickListener: pe,
40
+ setSelected: q,
41
+ viewAsBoringDefault: ve,
42
+ removeNodeIconMouseDownListener: fe
43
+ });
44
+ this.outlineObjectDiv = M, this.outlinePredicateDiv = N, this.outlineObjectTD = M, this.outlinePredicateTD = N, this.termWidget = P, this.init = function() {
45
+ let e = I();
31
46
  e.outline = this;
32
47
  }, this.getLayoutMode = function() {
33
48
  let e = this.context?.environment?.layout;
@@ -37,220 +52,240 @@ function g(g) {
37
52
  return e <= 768 || t && e <= 1024 ? "mobile" : "desktop";
38
53
  }
39
54
  return "desktop";
40
- }, w.lastkbsize = 0;
41
- function w(e) {
55
+ }, F.lastkbsize = 0;
56
+ function F(e) {
42
57
  let t = [];
43
58
  for (let e = arguments.length - 1; e > 0; e--) t[e - 1] = arguments[e];
44
59
  let n = (/* @__PURE__ */ new Date()).getTime(), r = e.apply(e, t), i = (/* @__PURE__ */ new Date()).getTime();
45
- return f.log.info("BENCHMARK: kb delta: " + (x.statements.length - w.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), w.lastkbsize = x.statements.length, r;
46
- }
47
- function T(e, n, r) {
48
- let i = f.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, _);
49
- return i.addEventListener("click", ae), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
60
+ return g.log.info("BENCHMARK: kb delta: " + (A.statements.length - F.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), F.lastkbsize = A.statements.length, r;
50
61
  }
51
62
  this.appendAccessIcons = function(e, t, n) {
52
63
  if (n.termType !== "NamedNode") return;
53
64
  let r = e.uris(n);
54
65
  r.sort();
55
66
  let i = null;
56
- for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], y.appendAccessIcon(t, i));
67
+ for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], O.appendAccessIcon(t, i));
57
68
  }, this.appendAccessIcon = function(e, n) {
58
69
  if (!n) return "";
59
- let r = h.uri.docpart(n);
70
+ let r = b.uri.docpart(n);
60
71
  if (r.slice(0, 5) !== "http:") return "";
61
- let i = S.getState(r), a, o, s;
72
+ let i = j.getState(r), a, o, s;
62
73
  switch (i) {
63
74
  case "unrequested":
64
- a = t.src.icon_unrequested, o = "fetch", s = ie;
75
+ a = t.src.icon_unrequested, o = "fetch", s = de;
65
76
  break;
66
77
  case "requested":
67
- a = t.src.icon_requested, o = "fetching", s = G;
78
+ a = t.src.icon_requested, o = "fetching", s = X;
68
79
  break;
69
80
  case "fetched":
70
- a = t.src.icon_fetched, s = K, o = "loaded";
81
+ a = t.src.icon_fetched, s = ue, o = "loaded";
71
82
  break;
72
83
  case "failed":
73
- a = t.src.icon_failed, o = "failed", s = G;
84
+ a = t.src.icon_failed, o = "failed", s = X;
74
85
  break;
75
86
  case "unpermitted":
76
- a = t.src.icon_failed, s = G, o = "no perm";
87
+ a = t.src.icon_failed, s = X, o = "no perm";
77
88
  break;
78
89
  case "unfetchable":
79
- a = t.src.icon_failed, s = G, o = "cannot fetch";
80
- break;
81
- default: f.log.error("?? state = " + i);
82
- }
83
- let c = f.utils.AJARImage(a, o, t.tooltips[a].replace(/[Tt]his resource/, r), _);
84
- return c.classList.add("objectValueAccessIcon"), c.setAttribute("uri", n), c.addEventListener("click", s), I(c, r), e.appendChild(c), c;
85
- }, this.outlineObjectTD = function(e, t, n, r) {
86
- let i = _.createElement("td");
87
- return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), e ? ((e.termType === "NamedNode" || e.termType === "BlankNode" || e.termType === "Literal" && e.value.slice && (e.value.slice(0, 6) === "ftp://" || e.value.slice(0, 8) === "https://" || e.value.slice(0, 7) === "http://")) && (i.setAttribute("about", e.toNT()), i.appendChild(f.utils.AJARImage(f.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, _)).addEventListener("click", U)), i.setAttribute("class", "obj"), x.whether(e, f.ns.rdf("type"), f.ns.link("Request")) && (i.className = "undetermined"), t ||= le, i.appendChild(t(e)), n && T(i, e, n), i.tabulatorSelect = function() {
88
- V(this, !0);
89
- }, i.tabulatorDeselect = function() {
90
- V(this, !1);
91
- }, i.addEventListener("click", q), i) : (i.textContent = "No object available.", i);
92
- }, this.outlinePredicateTD = function(e, n, r, i) {
93
- let a = _.createElement("TD");
94
- a.setAttribute("about", e.toNT()), a.setAttribute("class", i ? "pred internal" : "pred");
95
- let o;
96
- switch (e.termType) {
97
- case "BlankNode":
98
- a.className = "undetermined";
99
- break;
100
- case "NamedNode":
101
- o = f.utils.predicateLabelForXML(e, r);
90
+ a = t.src.icon_failed, s = X, o = "cannot fetch";
102
91
  break;
103
- case "Collection": o = f.utils.predicateLabelForXML(e.elements[0], r);
92
+ default: g.log.error("?? state = " + i);
104
93
  }
105
- o = o ? o.slice(0, 1).toUpperCase() + o.slice(1) : "...";
106
- let s = _.createElement("TD");
107
- s.classList.add("labelTD"), s.setAttribute("notSelectable", "true"), s.appendChild(_.createTextNode(o)), a.appendChild(s), s.style.width = "100%", a.appendChild(F.construct(_));
108
- for (let e in t.termWidgets) {
109
- if (!n || !n.AJAR_statement) break;
110
- t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && F.addIcon(a, t.termWidgets[e]);
111
- }
112
- return a.tabulatorSelect = function() {
113
- V(this, !0);
114
- }, a.tabulatorDeselect = function() {
115
- V(this, !1);
116
- }, a.addEventListener("click", q), a;
94
+ let c = g.utils.AJARImage(a, o, t.tooltips[a].replace(/[Tt]his resource/, r), w);
95
+ return c.classList.add("objectValueAccessIcon"), c.setAttribute("uri", n), c.addEventListener("click", s), se(c, r), e.appendChild(c), c;
117
96
  };
118
- function E() {
119
- return ee("OutlineView", "Resource browser");
120
- }
121
- function D(e) {
122
- d(e.uri).catch((e) => f.log.error("Failed to update navbar visibility: " + e));
97
+ function I() {
98
+ return te("OutlineView", "Resource browser");
123
99
  }
124
100
  function ee(e) {
125
- if (document.getElementById("MainContent") || document.body, e === "OutlineView") {
101
+ f(e.uri).catch((e) => g.log.error("Failed to update navbar visibility: " + e));
102
+ }
103
+ function te(e) {
104
+ if (e === "OutlineView") {
126
105
  let e = document.getElementById("OutlineView");
127
106
  if (e) return e;
128
107
  let t = document.getElementById("MainContent") || document.body;
129
108
  if (t) {
130
- let e = document.createElement("table");
109
+ let e = document.createElement("div");
131
110
  return e.id = "OutlineView", e.classList.add("outline-view"), e.setAttribute("aria-label", "Resource browser"), t.appendChild(e), e;
132
111
  }
133
112
  }
134
113
  }
135
- async function te(e, t) {
136
- e.uri.endsWith("/") && await a(e);
137
- let n = t.session.paneRegistry, r = n.list.filter((n) => n.label(e, t) && !n.global && n.name !== "sharing");
138
- if (r.length === 0) return [n.byName("internal")];
139
- let i = await f.login.filterAvailablePanes(r);
140
- return i.length === 0 ? [r[0]] : n.list.indexOf(r[0]) < n.list.indexOf(i[0]) ? [r[0]].concat(i) : i;
114
+ async function L(e, t) {
115
+ return e.uri.endsWith("/") && await a(e), g.getRelevantPanes(e, t, {
116
+ excludedPaneNames: ["sharing"],
117
+ fallbackPaneName: "internal"
118
+ });
141
119
  }
142
120
  function ne(e, t) {
143
121
  return e.find((e) => e.shouldGetFocus && e.shouldGetFocus(t)) || e[0];
144
122
  }
145
123
  function re(e) {
146
- let t = _.getElementById("queryButton");
124
+ let t = w.getElementById("queryButton");
147
125
  t && (e ? t.removeAttribute("style") : t.setAttribute("style", "display:none;"));
148
126
  }
149
- function O(e, t, n, r) {
127
+ function R(e, t, n, r) {
150
128
  if (!e || !n) return;
151
129
  let i;
152
130
  try {
153
- f.log.info("outline: Rendering pane (menu): " + n.name), i = n.render(t, g, r);
131
+ g.log.info("outline: Rendering pane (menu): " + n.name), i = n.render(t, C, r);
154
132
  } catch (e) {
155
- i = _.createElement("div"), i.setAttribute("class", "exceptionPane");
156
- let t = _.createElement("pre");
157
- i.appendChild(t), t.appendChild(_.createTextNode(f.utils.stackString(e)));
133
+ i = w.createElement("div"), i.setAttribute("class", "exceptionPane");
134
+ let t = w.createElement("pre");
135
+ i.appendChild(t), t.appendChild(w.createTextNode(g.utils.stackString(e)));
158
136
  }
159
- i.classList.add("paneDiv");
160
- let a = e.querySelector(".paneDiv");
161
- a ? a.replaceWith(i) : e.appendChild(i);
137
+ B(e, t, n, i);
162
138
  }
163
- function k(e, t) {
164
- let n = _.getElementById("OutlineView");
165
- if (!n) return;
166
- let r = e.toNT(), i = n.querySelector("td.paneView[about=\"" + r + "\"]");
167
- if (!i) return;
168
- let a = i.querySelector("file-explorer-provider");
169
- a && (t ? (re(!!t.requireQueryButton), a.openSelectedPane?.(t), O(a, e, t, a.paneRenderOptions)) : f.log.warn("outline: Unable to open pane in place: pane is undefined."));
139
+ function z(e, t, n) {
140
+ n ? (re(!!n.requireQueryButton), e.pane = n, R(e, t, n, T.get(e)?.options || {})) : g.log.warn("outline: Unable to open pane in place: pane is undefined.");
170
141
  }
171
- async function A(e, t, n) {
172
- n ||= {};
173
- let r = _.createElement("tr");
174
- n.hover && r.classList.add("hoverControl");
175
- let a = r.appendChild(_.createElement("td"));
176
- a.classList.add("paneView", "tdFlex"), a.setAttribute("notSelectable", "true"), a.setAttribute("about", e.toNT()), a.setAttribute("colspan", "2");
177
- let c = a.appendChild(_.createElement("file-explorer-provider"));
178
- c.context = g, c.subjectUri = e.uri, c.onBack = () => W({ target: c });
179
- let l = n.hideList ? [] : await te(e, g);
180
- c.relevantPanes = l, c.pane = t || ne(l, e);
181
- let u = !!(e && e.uri && e.site && e.site().uri === e.uri), d = !!n.headerOnlyInViewerPod;
182
- return c.showHeader = o({
183
- isRootResource: u,
142
+ function B(e, t, n, r) {
143
+ let i = T.get(e);
144
+ g.composeExplorer(e, {
145
+ context: C,
146
+ subjectUri: t.uri,
147
+ pane: n,
148
+ relevantPanes: e.relevantPanes || [],
149
+ header: i && s(i.showHeader, n?.name) ? {
150
+ paneIcon: m(n, t, C),
151
+ menuItems: i.menuItems
152
+ } : void 0,
153
+ paneElement: r
154
+ });
155
+ }
156
+ async function ie(e, t, n, r) {
157
+ n ||= {}, r ||= w.createElement(S);
158
+ let a = {
159
+ generation: (T.get(r)?.generation || 0) + 1,
160
+ menuItems: [],
161
+ options: n
162
+ };
163
+ T.set(r, a), r.classList.add("paneView", "tdFlex"), r.setAttribute("notSelectable", "true"), r.setAttribute("role", "grid"), r.setAttribute("about", e.toNT()), n.hover && r.classList.add("hoverControl"), r.context = C, r.subjectUri = e.uri, r.soloPane = n.solo, E.has(r) || (r.addEventListener(g.FILE_EXPLORER_BACK_EVENT, (e) => {
164
+ g.isExplorerEvent(e, r) && (e.stopPropagation(), le({ target: r }));
165
+ }), r.addEventListener(g.FILE_EXPLORER_MANAGE_ACCESS_EVENT, (e) => {
166
+ e.stopPropagation();
167
+ let t = b.sym(e.detail.subjectUri).doc();
168
+ _.acl.findAccessGrants(t).then((e) => {
169
+ g.showDialog(x, { props: {
170
+ subjectUri: t.uri,
171
+ accessGrants: e
172
+ } });
173
+ }).catch((e) => {
174
+ g.log.error("outline: Failed to open access controls: " + g.utils.stackString(e));
175
+ });
176
+ }), r.addEventListener(g.FILE_EXPLORER_OPEN_PANE_EVENT, (e) => {
177
+ if (!g.isExplorerEvent(e, r)) return;
178
+ e.stopPropagation();
179
+ let t = C.session.paneRegistry.byName(e.detail.paneName);
180
+ z(r, b.sym(e.detail.subjectUri), t);
181
+ }), E.add(r));
182
+ let s = n.hideList ? [] : await L(e, C);
183
+ if (T.get(r) !== a) return r;
184
+ let l = C.session.logic?.resource || _.resource, u = e.uri.endsWith("/") ? b.sym(`${e.uri}index.ttl`) : null;
185
+ if (n.solo && !t && u && (typeof l?.containerHasIndexDocument == "function" && l.containerHasIndexDocument(e) || A.holds(e, g.ns.ldp("contains"), u, e.doc()))) {
186
+ if (e = typeof l?.getContainerIndexThing == "function" ? l.getContainerIndexThing(e) : b.sym(`${u.uri}#this`), await A.fetcher.load(e.doc()), s = await L(e, C), T.get(r) !== a) return r;
187
+ r.subjectUri = e.uri, r.setAttribute("about", e.toNT());
188
+ }
189
+ r.relevantPanes = s, r.pane = t || ne(s, e);
190
+ let d = !!(e && e.uri && e.site && e.site().uri === e.uri), f = !!n.headerOnlyInViewerPod, p = !e.uri.endsWith("/index.ttl#this") && o({
191
+ isRootResource: d,
184
192
  isWebId: i(e),
185
- viewerPodOnly: d,
186
- inViewerPod: !d || await s(document.location.href)
187
- }), c.paneRenderOptions = n, c.soloPane = n.solo, c.openPane = (e, t) => k(e, m.byName(t)), c.handleAccessClick = () => k(e, m.byName("sharing")), c.pane && (r.classList.add("outlinePaneRow"), O(c, e, c.pane, n)), r;
188
- }
189
- function j(e) {
190
- let t = e.parentNode, n = t.parentNode, r = _.createElement("table");
191
- r.classList.add("placeholderTable"), n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
192
- }
193
- let M = this.propertyTable = function(e, t, n, r) {
194
- return f.log.debug("Property table for: " + e), e = x.canon(e), t ? (f.log.info("Re-expand: " + t), t) : (t = _.createElement("table"), t.classList.add("tableFullWidth"), A(e, n, r).then((e) => {
195
- t.appendChild(e);
196
- }), t);
193
+ viewerPodOnly: f,
194
+ inViewerPod: !f || await c(w.location.href)
195
+ });
196
+ if (T.get(r) !== a) return r;
197
+ if (a.showHeader = p, r.paneRenderOptions = n, r.soloPane = n.solo, r.openPane = (e, t) => z(r, e, y.byName(t)), r.handleAccessClick = async () => {
198
+ try {
199
+ let t = e.doc(), n = await _.acl.findAccessGrants(t);
200
+ g.showDialog(x, { props: {
201
+ subjectUri: t.uri,
202
+ accessGrants: n
203
+ } });
204
+ } catch (e) {
205
+ g.log.error("outline: Failed to open access controls: " + g.utils.stackString(e));
206
+ }
207
+ }, r.pane ? R(r, e, r.pane, n) : B(r, e, r.pane), p) {
208
+ let t = await h(e, C, s, (e, t) => {
209
+ r.dispatchEvent(new CustomEvent(g.FILE_EXPLORER_OPEN_PANE_EVENT, {
210
+ bubbles: !0,
211
+ composed: !0,
212
+ detail: {
213
+ subjectUri: e.uri,
214
+ paneName: t
215
+ }
216
+ }));
217
+ });
218
+ T.get(r) === a && (a.menuItems = t, B(r, e, r.pane));
219
+ }
220
+ return r;
221
+ }
222
+ function ae(e) {
223
+ let t = e.parentNode, n = t.parentNode, r = w.createElement("div");
224
+ n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
225
+ }
226
+ let V = this.propertyTable = function(e, t, n, r) {
227
+ g.log.debug("Property block for: " + e), e = A.canon(e);
228
+ let i = t ? t.matches?.(S) ? t : t.firstElementChild || t : w.createElement(S);
229
+ return ie(e, n, r, i).catch((e) => {
230
+ g.log.error("outline: Failed to set up file explorer: " + g.utils.stackString(e));
231
+ }), t && g.log.info("Re-expand: " + t), t || i;
197
232
  };
198
- function N(e, t, n) {
199
- let r = e.createElement("TR");
200
- r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true");
201
- let i = y.outlinePredicateTD(t.predicate, r, n);
233
+ function H(e, t, n) {
234
+ let r = e.createElement("div");
235
+ r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true"), r.setAttribute("role", "row");
236
+ let i = O.outlinePredicateDiv(t.predicate, r, n);
202
237
  return r.appendChild(i), r;
203
238
  }
204
- this.propertyTR = N;
205
- function P(e, t, n, r) {
206
- if (f.log.debug("Property list length = " + t.length), t.length === 0) return "";
239
+ this.propertyTR = H;
240
+ function oe(e, t, n, r) {
241
+ if (g.log.debug("Property list length = " + t.length), t.length === 0) return "";
207
242
  let i, a, o;
208
243
  n ? (i = function(e) {
209
244
  return e.subject;
210
- }, t = t.sort(f.utils.RDFComparePredicateSubject)) : (i = function(e) {
245
+ }, t = t.sort(g.utils.RDFComparePredicateSubject)) : (i = function(e) {
211
246
  return e.object;
212
- }, t = t.sort(f.utils.RDFComparePredicateObject));
247
+ }, t = t.sort(g.utils.RDFComparePredicateObject));
213
248
  let s = t.length;
214
249
  for (a = 0; a < s; a++) {
215
250
  let c = t[a];
216
251
  if (r && !r(c.predicate, n)) continue;
217
- let l = N(_, c, n);
252
+ let l = H(w, c, n);
218
253
  e.appendChild(l);
219
- let u = l.firstChild, d = $.defaults[c.predicate.uri], p = 0, m = 0, h = 0;
220
- for (o = 0; o + a < s && t[a + o].predicate.sameTerm(c.predicate); o++) o > 0 && i(t[a + o]).sameTerm(i(t[a + o - 1])) && p++, i(t[a + o]).lang && v.labeller.LanguagePreference && (m += 1, i(t[a + o]).lang.indexOf(v.labeller.LanguagePreference) >= 0 && h++);
221
- if (h > 0 && m === p + 1) {
222
- for (let e = a; e <= a + p; e++) if (v.labeller.LanguagePreference && i(t[e]).lang.indexOf(v.labeller.LanguagePreference) >= 0) {
223
- l.appendChild(y.outlineObjectTD(i(t[e]), d, void 0, c));
254
+ let u = l.firstChild, d = $.defaults[c.predicate.uri], f = 0, p = 0, m = 0;
255
+ for (o = 0; o + a < s && t[a + o].predicate.sameTerm(c.predicate); o++) o > 0 && i(t[a + o]).sameTerm(i(t[a + o - 1])) && f++, i(t[a + o]).lang && D.labeller.LanguagePreference && (p += 1, i(t[a + o]).lang.indexOf(D.labeller.LanguagePreference) >= 0 && m++);
256
+ if (m > 0 && p === f + 1) {
257
+ for (let e = a; e <= a + f; e++) if (D.labeller.LanguagePreference && i(t[e]).lang.indexOf(D.labeller.LanguagePreference) >= 0) {
258
+ l.appendChild(O.outlineObjectDiv(i(t[e]), d, void 0, c));
224
259
  break;
225
260
  }
226
- a += p;
227
- } else l.appendChild(y.outlineObjectTD(i(c), d, void 0, c)), l.showNobj = function(r) {
228
- let s = o - p, l = 2 * r < s ? r : s, m = [];
261
+ a += f;
262
+ } else l.appendChild(O.outlineObjectDiv(i(c), d, void 0, c)), l.showNobj = function(r) {
263
+ let s = o - f, l = 2 * r < s ? r : s, p = [];
229
264
  if (s !== 1) {
230
265
  u.setAttribute("rowspan", l === s ? s : r + 1);
231
- let p;
266
+ let f;
232
267
  l < s && l === 1 && u.setAttribute("rowspan", 2);
233
- let h = 0;
234
- for (p = 1; p < o; p++) if (x.canon(i(t[a + p])).sameTerm(x.canon(i(t[a + p - 1])))) f.log.info("there are duplicates here: %s", t[a + p - 1]);
268
+ let m = 0;
269
+ for (f = 1; f < o; f++) if (A.canon(i(t[a + f])).sameTerm(A.canon(i(t[a + f - 1])))) g.log.info("there are duplicates here: %s", t[a + f - 1]);
235
270
  else {
236
- h++, c = t[a + p], d = $.defaults[c.predicate.uri];
237
- let r = _.createElement("tr");
238
- r.style.colspan = "1", r.appendChild(y.outlineObjectTD(i(t[a + p]), d, void 0, c)), r.AJAR_statement = c, r.AJAR_inverse = n, e.appendChild(r), h >= l && (r.style.display = "none", m.push(r));
271
+ m++, c = t[a + f], d = $.defaults[c.predicate.uri];
272
+ let r = w.createElement("div");
273
+ r.style.colspan = "1", r.appendChild(O.outlineObjectDiv(i(t[a + f]), d, void 0, c)), r.AJAR_statement = c, r.AJAR_inverse = n, e.appendChild(r), m >= l && (r.style.display = "none", p.push(r));
239
274
  }
240
- l === s && u.setAttribute("rowspan", h + 1);
275
+ l === s && u.setAttribute("rowspan", m + 1);
241
276
  }
242
277
  if (l < s) {
243
- let t = _.createElement("tr"), n = t.appendChild(_.createElement("td"));
244
- if (n.classList.add("obj"), n.setAttribute("notSelectable", "false"), s > r) {
245
- let e = _.createElement("a");
278
+ let t = w.createElement("div"), n = t.appendChild(w.createElement("div"));
279
+ if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.classList.add("obj"), n.setAttribute("notSelectable", "false"), s > r) {
280
+ let e = w.createElement("a");
246
281
  n.appendChild(e);
247
282
  let t = (function(e) {
248
- return e(u, o, p, r);
283
+ return e(u, o, f, r);
249
284
  })(function(t, n, r, i) {
250
285
  return function(n) {
251
- e.innerHTML = "", n === "none" ? (e.appendChild(f.utils.AJARImage(f.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", _)), e.appendChild(_.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(f.utils.AJARImage(f.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, _)), t.setAttribute("rowspan", s + 1));
252
- for (let e = 0; e < m.length; e++) {
253
- let t = m[e];
286
+ e.innerHTML = "", n === "none" ? (e.appendChild(g.utils.AJARImage(g.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", w)), e.appendChild(w.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(g.utils.AJARImage(g.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, w)), t.setAttribute("rowspan", s + 1));
287
+ for (let e = 0; e < p.length; e++) {
288
+ let t = p[e];
254
289
  t.style.display = n;
255
290
  }
256
291
  };
@@ -262,115 +297,91 @@ function g(g) {
262
297
  e.appendChild(t);
263
298
  }
264
299
  }, l.showAllobj = function() {
265
- l.showNobj(o - p);
300
+ l.showNobj(o - f);
266
301
  }, l.showNobj(10), a += o - 1;
267
302
  }
268
303
  }
269
- this.appendPropertyTRs = P;
270
- let F = {};
271
- globalThis.termWidget = F, F.construct = function(e) {
272
- e ||= document;
273
- let t = e.createElement("TD");
274
- return t.setAttribute("class", "iconTD"), t.setAttribute("notSelectable", "true"), t;
275
- }, F.addIcon = function(e, t, n) {
276
- let r = e.childNodes[1];
277
- if (!r) return;
278
- let i = f.utils.AJARImage(t.src, t.alt, t.tooltip, _);
279
- r.appendChild(i), n && i.addEventListener("click", n);
280
- }, F.removeIcon = function(e, t) {
281
- let n = e.childNodes[1], r;
282
- if (n) for (let e = 0; e < n.childNodes.length; e++) {
283
- let i = n.childNodes[e], a = i.src;
284
- try {
285
- r = _.location.href.split("?")[0];
286
- } catch {
287
- r = "";
288
- }
289
- a === h.uri.join(t.src, r) && n.removeChild(i);
290
- }
291
- }, F.replaceIcon = function(e, t, n, r) {
292
- F.removeIcon(e, t), F.addIcon(e, n, r);
293
- };
294
- function I(e, n) {
295
- f.log.debug("Button callbacks for " + n + " added");
304
+ this.appendPropertyTRs = oe;
305
+ function se(e, n) {
306
+ g.log.debug("Button callbacks for " + n + " added");
296
307
  let r = function(r) {
297
308
  return function(i) {
298
- return i.indexOf("#"), !e || !v.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
309
+ return i.indexOf("#"), !e || !D.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
299
310
  };
300
311
  };
301
- S.addCallback("request", r(t.src.icon_requested)), S.addCallback("done", r(t.src.icon_fetched)), S.addCallback("fail", r(t.src.icon_failed));
312
+ j.addCallback("request", r(t.src.icon_requested)), j.addCallback("done", r(t.src.icon_fetched)), j.addCallback("fail", r(t.src.icon_failed));
302
313
  }
303
- function L(e) {
314
+ function U(e) {
304
315
  let t = e.getAttribute("class");
305
316
  return !!(t && t.indexOf("selected") >= 0);
306
317
  }
307
- function R(e) {
308
- let n = y.targetOf(e).parentNode;
309
- F.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, z), n.parentNode.parentNode.removeAttribute("optional");
318
+ function W(e) {
319
+ let n = O.targetOf(e).parentNode;
320
+ P.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, G), n.parentNode.parentNode.removeAttribute("optional");
310
321
  }
311
- function z(e) {
312
- let n = y.targetOf(e).parentNode;
313
- F.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, R), n.parentNode.parentNode.setAttribute("optional", "true");
322
+ function G(e) {
323
+ let n = O.targetOf(e).parentNode;
324
+ P.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, W), n.parentNode.parentNode.setAttribute("optional", "true");
314
325
  }
315
- function B(e, n) {
316
- let r = t.termWidgets.optOn, i = t.termWidgets.optOff;
317
- for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (t.getAttribute("predTR")) {
326
+ function K(e, n) {
327
+ let r = t.termWidgets.optOn, i = t.termWidgets.optOff, a = (e) => !(!e || typeof e.getAttribute != "function" || e.getAttribute("predTR") !== "true" && e.getAttribute("data-outline-node") !== "predicate");
328
+ for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (a(t)) {
318
329
  let e = t.getAttribute("parentOfSelected");
319
- e = e ? parseInt(e) : 0, e === 0 && n > 0 && F.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? R : z), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), F.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
330
+ e = e ? parseInt(e) : 0, e === 0 && n > 0 && P.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? W : G), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), P.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
320
331
  break;
321
- } else if (t.previousSibling && t.previousSibling.nodeName === "TR") t = t.previousSibling;
332
+ } else if (t.previousElementSibling) t = t.previousElementSibling;
322
333
  else break;
323
334
  }
324
335
  this.statusBarClick = function(e) {
325
- let t = f.utils.getTarget(e);
336
+ let t = g.utils.getTarget(e);
326
337
  t.label && (window.content.location = t.label);
327
338
  }, this.showURI = function(e) {
328
- e && _.getElementById("UserURI") && (_.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
339
+ e && w.getElementById("UserURI") && (w.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
329
340
  }, this.showSource = function() {
330
341
  if (typeof sourceWidget < "u") {
331
342
  for (let e in sourceWidget.sources) sourceWidget.sources[e].setAttribute("class", "");
332
- for (let e = 0; e < b.length; e++) {
333
- if (!b[e].parentNode) continue;
334
- let t = b[e].parentNode.AJAR_statement;
343
+ for (let e = 0; e < k.length; e++) {
344
+ if (!k[e].parentNode) continue;
345
+ let t = k[e].parentNode.AJAR_statement;
335
346
  if (!t) continue;
336
347
  let n = t.why;
337
348
  n && n.uri && sourceWidget.highlight(n, !0);
338
349
  }
339
350
  }
340
351
  }, this.getSelection = function() {
341
- return b;
352
+ return k;
342
353
  };
343
- function V(e, n) {
344
- if (e.nodeName !== "TD") throw f.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
345
- f.log.debug("pass");
354
+ function q(e, n) {
355
+ if (e.nodeName !== "TD" && e.nodeName !== "DIV") throw g.log.debug("down" + e.nodeName), Error("Expected TD or DIV in setSelected: " + e.nodeName + " : " + e.textContent);
356
+ g.log.debug("pass");
346
357
  let r = e.getAttribute("class");
347
358
  if (r ||= "", n) {
348
- r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && B(e, 1), b.push(e);
349
- let n = f.utils.getTerm(e);
350
- y.showURI(n);
359
+ r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && K(e, 1), k.push(e);
360
+ let n = g.utils.getTerm(e);
361
+ O.showURI(n);
351
362
  let i = e.AJAR_statement;
352
363
  if (i === void 0 && e.parentNode && (i = e.parentNode.AJAR_statement), i) {
353
364
  let n = i.why;
354
- p.updater.editable(n.uri, x) && r.indexOf("pred") >= 0 && F.addIcon(e, t.termWidgets.addTri);
365
+ v.updater.editable(n.uri, A) && r.indexOf("pred") >= 0 && P.addIcon(e, t.termWidgets.addTri);
355
366
  }
356
- } else f.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && B(e, -1), r.indexOf("pred") >= 0 && F.removeIcon(e, t.termWidgets.addTri), b = b.filter(function(t) {
367
+ } else g.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && K(e, -1), r.indexOf("pred") >= 0 && P.removeIcon(e, t.termWidgets.addTri), k = k.filter(function(t) {
357
368
  return t === e;
358
- }), f.log.info("Deselecting " + e.textContent);
359
- typeof sourceWidget < "u" && y.showSource(), e.setAttribute("class", r);
369
+ }), g.log.info("Deselecting " + e.textContent);
370
+ typeof sourceWidget < "u" && O.showSource(), e.setAttribute("class", r);
360
371
  }
361
- function H() {
362
- let e = b.length;
363
- for (let t = e - 1; t >= 0; t--) V(b[t], !1);
364
- b = [];
372
+ function J() {
373
+ let e = k.length;
374
+ for (let t = e - 1; t >= 0; t--) q(k[t], !1);
375
+ k = [];
365
376
  }
366
377
  this.targetOf = function(e) {
367
378
  let t;
368
379
  if (e ||= window.event, e.target) t = e.target;
369
380
  else if (e.srcElement) t = e.srcElement;
370
- else return f.log.error("can't get target for event " + e), !1;
381
+ else return g.log.error("can't get target for event " + e), !1;
371
382
  return t.nodeType === 3 && (t = t.parentNode), t;
372
383
  }, this.walk = function(e, t) {
373
- let n = t || b[0], r;
384
+ let n = t || k[0], r;
374
385
  switch (e) {
375
386
  case "down":
376
387
  try {
@@ -379,7 +390,7 @@ function g(g) {
379
390
  this.walk("up");
380
391
  return;
381
392
  }
382
- H(), V(r, !0);
393
+ J(), q(r, !0);
383
394
  break;
384
395
  case "up":
385
396
  try {
@@ -387,42 +398,53 @@ function g(g) {
387
398
  } catch {
388
399
  return;
389
400
  }
390
- H(), V(r, !0);
401
+ J(), q(r, !0);
391
402
  break;
392
403
  case "right":
393
- if (H(), n.nextSibling || n.lastChild.tagName === "strong") V(n.nextSibling, !0);
404
+ {
405
+ let e = n.matches?.(S) ? n : n.querySelector?.(S), t = e?.querySelector?.("[data-outline-node=\"object\"]");
406
+ if (e) {
407
+ t && (J(), q(t, !0));
408
+ return;
409
+ }
410
+ }
411
+ if (J(), n.nextSibling || n.lastChild.tagName === "strong") q(n.nextSibling, !0);
394
412
  else {
395
- let e = _.evaluate("table/div/tr/td[2]", n, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
396
- V(e, !0);
413
+ let e = n.parentNode && n.parentNode.nextSibling, t = e ? e.lastChild : null;
414
+ if (!t) {
415
+ q(n, !0);
416
+ return;
417
+ }
418
+ q(t, !0);
397
419
  }
398
420
  break;
399
421
  case "left":
400
- if (H(), n.previousSibling && n.previousSibling.className === "undetermined") return V(n.previousSibling, !0), !0;
401
- V(f.utils.ancestor(n.parentNode, "TD"), !0);
422
+ if (J(), n.previousSibling && n.previousSibling.className === "undetermined") return q(n.previousSibling, !0), !0;
423
+ q(Y(n)?.block || n.parentNode && n.parentNode.firstChild, !0);
402
424
  break;
403
- case "moveTo": H(), V(t, !0);
425
+ case "moveTo": J(), q(t, !0);
404
426
  }
405
- (e === "down" || e === "up") && (r.tabulatorSelect || this.walk(e));
427
+ e !== "down" && e !== "up" || r.tabulatorSelect || this.walk(e);
406
428
  }, this.OutlinerKeypressPanel = function(e) {
407
- f.log.info("Key " + e.keyCode + " pressed");
429
+ g.log.info("Key " + e.keyCode + " pressed");
408
430
  function t(e) {
409
- e && _.getElementById("UserURI") && (_.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
431
+ e && w.getElementById("UserURI") && (w.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
410
432
  }
411
433
  function n(e) {
412
- return arguments[3] || (o("right", a), t(f.utils.getAbout(x, b[0]))), !0;
434
+ return arguments[3] || (o("right", a), t(g.utils.getAbout(A, k[0]))), !0;
413
435
  }
414
436
  let r, i;
415
- if (f.utils.getTarget(e).tagName === "TEXTAREA" || f.utils.getTarget(e).id === "UserURI" || b.length > 1) return;
416
- if (b.length === 0) {
417
- (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", y.focusTd), t(f.utils.getAbout(x, b[0])));
437
+ if (g.utils.getTarget(e).tagName === "TEXTAREA" || g.utils.getTarget(e).id === "UserURI" || k.length > 1) return;
438
+ if (k.length === 0) {
439
+ (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", O.focusTd), t(g.utils.getAbout(A, k[0])));
418
440
  return;
419
441
  }
420
- let a = b[0];
421
- switch (S.removeCallback("done", "setSelectedAfterward"), S.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
442
+ let a = k[0];
443
+ switch (j.removeCallback("done", "setSelectedAfterward"), j.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
422
444
  case 13:
423
- if (f.utils.getTarget(e).tagName === "HTML") {
424
- let e = f.utils.getAbout(x, a);
425
- r = a.parentNode.AJAR_statement.why, i = p.updater.editable(r.uri, x), e ? v.GotoSubject(e, !0) : i && y.UserInput.Enter(a);
445
+ if (g.utils.getTarget(e).tagName === "HTML") {
446
+ let e = g.utils.getAbout(A, a);
447
+ r = a.parentNode.AJAR_statement.why, i = v.updater.editable(r.uri, A), e ? D.GotoSubject(e, !0) : i && O.UserInput.Enter(a);
426
448
  } else this.UserInput.Keypress(e), this.walk("down"), e.stopPropagation();
427
449
  return;
428
450
  case 38:
@@ -430,28 +452,30 @@ function g(g) {
430
452
  break;
431
453
  case 40: this.walk("down"), e.stopPropagation(), e.preventDefault();
432
454
  }
433
- if (f.utils.getTarget(e).tagName === "INPUT") return;
455
+ if (g.utils.getTarget(e).tagName === "INPUT") return;
434
456
  let o;
435
457
  switch (e.keyCode) {
436
458
  case 46:
437
459
  case 8:
438
- r = a.parentNode.AJAR_statement.why, i = p.updater.editable(r.uri, x), i && (e.preventDefault(), this.UserInput.Delete(a));
460
+ r = a.parentNode.AJAR_statement.why, i = v.updater.editable(r.uri, A), i && (e.preventDefault(), this.UserInput.Delete(a));
439
461
  break;
440
462
  case 37: {
441
463
  if (this.walk("left")) return;
442
- let e = f.utils.ancestor(a.parentNode, "TD");
443
- X(a, f.utils.getAbout(x, e));
464
+ let e = Y(a);
465
+ if (!e) break;
466
+ let t = g.utils.getAbout(A, e.provider);
467
+ t && he(e.block, t);
444
468
  break;
445
469
  }
446
470
  case 39:
447
471
  {
448
- let e = f.utils.getAbout(x, a);
472
+ let e = g.utils.getAbout(A, a);
449
473
  if (e) {
450
474
  if (o = this.walk, a.nextSibling) {
451
475
  this.walk("right");
452
476
  return;
453
477
  }
454
- a.firstChild.tagName !== "TABLE" && (S.addCallback("done", n), S.addCallback("fail", n), Y(a, e, { pane: m.byName("defaultPane") })), n();
478
+ a.firstElementChild?.matches(S) || (j.addCallback("done", n), j.addCallback("fail", n), Q(a, e, { pane: y.byName("defaultPane") })), n();
455
479
  }
456
480
  }
457
481
  break;
@@ -460,236 +484,202 @@ function g(g) {
460
484
  default: switch (e.charCode) {
461
485
  case 99:
462
486
  if (e.ctrlKey) {
463
- y.UserInput.copyToClipboard(y.clipboardAddress, a);
487
+ O.UserInput.copyToClipboard(O.clipboardAddress, a);
464
488
  break;
465
489
  }
466
490
  break;
467
491
  case 118:
468
492
  case 112:
469
493
  if (e.ctrlKey) {
470
- y.UserInput.pasteFromClipboard(y.clipboardAddress, a);
494
+ O.UserInput.pasteFromClipboard(O.clipboardAddress, a);
471
495
  break;
472
496
  }
473
497
  break;
474
- default: f.utils.getTarget(e).tagName;
498
+ default: g.utils.getTarget(e).tagName;
475
499
  }
476
500
  }
477
- t(f.utils.getAbout(x, b[0]));
501
+ t(g.utils.getAbout(A, k[0]));
478
502
  }, this.OutlinerMouseclickPanel = function(e) {
479
- switch (y.UserInput._tabulatorMode) {
503
+ switch (O.UserInput._tabulatorMode) {
480
504
  case 0:
481
- oe(e);
505
+ me(e);
482
506
  break;
483
- case 1: y.UserInput.Click(e);
507
+ case 1: O.UserInput.Click(e);
484
508
  }
485
509
  };
486
- function U(e) {
487
- let t = y.targetOf(e), n = t.parentNode, r = f.utils.getAbout(x, t), i = e.altKey ? m.byName("internal") : void 0;
488
- e.shiftKey ? Z(n, r, i) : e.altKey ? Y(n, r, {
489
- pane: m.byName("internal"),
510
+ function ce(e) {
511
+ let t = O.targetOf(e), n, r;
512
+ for (let e = t; e && e !== w; e = e.parentNode) e.matches?.("[data-outline-node=\"object\"]") && (n = e), e.matches?.(".outline-subject-block") && (r = e);
513
+ let i = r || n || t.parentNode, a = g.utils.getAbout(A, t), o = e.altKey ? y.byName("internal") : void 0;
514
+ e.shiftKey ? ge(i, a, o) : e.altKey ? Q(i, a, {
515
+ pane: y.byName("internal"),
490
516
  immediate: !0
491
- }) : Y(n, r);
517
+ }) : Q(i, a);
492
518
  }
493
- function W(e) {
494
- let t = y.targetOf(e), n = f.utils.getAbout(x, t), r = e.altKey ? m.byName("internal") : void 0, i = t.parentNode.parentNode;
495
- X(i, n, r);
519
+ function le(e) {
520
+ let t = O.targetOf(e), n = e.altKey ? y.byName("internal") : void 0, r = Y(t);
521
+ if (!r) return;
522
+ let i = g.utils.getAbout(A, r.provider);
523
+ i && he(r.block, i, n);
524
+ }
525
+ function Y(e) {
526
+ for (let t = e; t && t !== w; t = t.parentNode) {
527
+ if (t.matches?.("[data-outline-node=\"object\"]")) {
528
+ let e = t.querySelector?.(S);
529
+ if (e) return {
530
+ block: t,
531
+ provider: e
532
+ };
533
+ }
534
+ if (t.matches?.(S)) return {
535
+ block: t.closest?.("[data-outline-node=\"object\"]") || t.closest?.(".outline-subject-block") || t,
536
+ provider: t
537
+ };
538
+ }
539
+ return null;
496
540
  }
497
- function G(e) {
498
- let t = y.targetOf(e).getAttribute("uri");
499
- e.altKey ? S.fetch(h.uri.docpart(t), { force: !0 }) : S.refresh(x.sym(h.uri.docpart(t)));
541
+ function X(e) {
542
+ let t = O.targetOf(e).getAttribute("uri");
543
+ e.altKey ? j.fetch(b.uri.docpart(t), { force: !0 }) : j.refresh(A.sym(b.uri.docpart(t)));
500
544
  }
501
- function K(e) {
502
- let t = y.targetOf(e).getAttribute("uri");
503
- e.altKey ? S.fetch(h.uri.docpart(t), { force: !0 }) : S.refresh(x.sym(h.uri.docpart(t)));
545
+ function ue(e) {
546
+ let t = O.targetOf(e).getAttribute("uri");
547
+ e.altKey ? j.fetch(b.uri.docpart(t), { force: !0 }) : j.refresh(A.sym(b.uri.docpart(t)));
504
548
  }
505
- function ie(e) {
506
- let t = y.targetOf(e).getAttribute("uri");
507
- S.fetch(h.uri.docpart(t));
549
+ function de(e) {
550
+ let t = O.targetOf(e).getAttribute("uri");
551
+ j.fetch(b.uri.docpart(t));
508
552
  }
509
- function ae(e) {
510
- let t = y.targetOf(e), n = t.node;
511
- n.childNodes.length > 1 && (n = t.parentNode), j(n);
553
+ function fe(e) {
554
+ let t = O.targetOf(e), n = t.node;
555
+ n.childNodes.length > 1 && (n = t.parentNode), ae(n);
512
556
  }
513
- function q(e) {
514
- if (y.UserInput._tabulatorMode) return y.UserInput.Click(e);
515
- let t = y.targetOf(e), n;
516
- for (n = f.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = f.utils.ancestor(n.parentNode, "TD"));
557
+ function pe(e) {
558
+ if (O.UserInput._tabulatorMode) return O.UserInput.Click(e);
559
+ let t = O.targetOf(e), n;
560
+ for (n = g.utils.ancestor(t, "td") || g.utils.ancestor(t, "tr") || g.utils.ancestor(t, "div"); n && n.getAttribute("notSelectable") !== "false"; n = g.utils.ancestor(n.parentNode, "td") || g.utils.ancestor(n.parentNode, "tr") || g.utils.ancestor(n.parentNode, "div"));
517
561
  if (!n) return;
518
- let r = L(n);
519
- if (f.log.debug("Was node selected before: " + r), e.altKey) V(n, !L(n));
520
- else if (e.shiftKey) V(n, !0);
562
+ let r = U(n);
563
+ if (g.log.debug("Was node selected before: " + r), e.altKey) q(n, !U(n));
564
+ else if (e.shiftKey) q(n, !0);
521
565
  else {
522
- if (H(), y.UserInput.clearInputAndSave(e), V(n, !0), e.detail === 2) {
566
+ if (J(), O.UserInput.clearInputAndSave(e), q(n, !0), e.detail === 2) {
523
567
  e.stopPropagation();
524
568
  return;
525
569
  }
526
570
  let t;
527
571
  if (n.parentNode && (t = n.parentNode.AJAR_statement), !t) return;
528
- let i = t.why, a = p.updater.editable(i.uri, x);
529
- r && a && y.UserInput.Click(e, b[0]);
572
+ let i = t.why, a = v.updater.editable(i.uri, A);
573
+ r && a && O.UserInput.Click(e, k[0]);
530
574
  }
531
- f.log.debug("Was node selected after: " + L(n) + ", count=" + b.length), e.stopPropagation();
575
+ g.log.debug("Was node selected after: " + U(n) + ", count=" + k.length), e.stopPropagation();
532
576
  }
533
- function oe(e) {
534
- f.log.info("@TabulatorMousedown, dom.location is now " + _.location);
535
- let n = y.targetOf(e);
577
+ function me(e) {
578
+ g.log.info("@TabulatorMousedown, dom.location is now " + w.location);
579
+ let n = O.targetOf(e);
536
580
  if (!n) return;
537
581
  let r = n.tagName;
538
- r !== "INPUT" && r !== "TEXTAREA" && (y.UserInput.clearMenu(), y.UserInput.lastModified && y.UserInput.lastModified.parentNode.nextSibling && y.UserInput.backOut(), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices && n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_add_triple) && y.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && y.UserInput.clearMenu(), e && e.stopPropagation());
582
+ r !== "INPUT" && r !== "TEXTAREA" && (O.UserInput.clearMenu(), O.UserInput.lastModified && O.UserInput.lastModified.parentNode.nextSibling && O.UserInput.backOut(), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices && n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_add_triple) && O.UserInput.clearInputAndSave(e), n.src && n.src.slice(n.src.indexOf("/icons/") + 1) === t.src.icon_show_choices || O.UserInput.clearMenu(), e && e.stopPropagation());
539
583
  }
540
- function J(e) {
541
- _.title = f.utils.label(e), _.location.href.startsWith(e.site().uri);
584
+ function Z(e) {
585
+ w.title = g.utils.label(e), w.location.href.startsWith(e.site().uri);
542
586
  }
543
- function Y(e, t, n) {
587
+ function Q(e, t, n) {
544
588
  n ||= {};
545
589
  let r = n.pane, i = !!n.already, a = n.immediate;
546
- f.log.info("@outlineExpand, dom is now " + _.location), S.removeCallback("done", "expand"), S.removeCallback("fail", "expand");
547
- let o = x.canon(t);
590
+ g.log.info("@outlineExpand, dom is now " + w.location), j.removeCallback("done", "expand"), j.removeCallback("fail", "expand");
591
+ let o = A.canon(t);
548
592
  function s() {
549
- if (o = x.canon(o), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
593
+ if (o = A.canon(o), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
550
594
  let t;
551
- if (f.log.info("@@ REPAINTING "), !i) t = M(o, void 0, r, n);
552
- else {
553
- for (f.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (f.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
554
- t = M(o, t, r, n);
555
- }
556
- i = !0, f.utils.ancestor(e, "TABLE") && f.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", f.utils.emptyNode(e).appendChild(t), y.focusTd = e, f.log.debug("expand: Node for " + o + " expanded");
557
- let a = x.each(o, f.ns.rdfs("seeAlso"));
558
- for (let e = 0; e < a.length; e++) e === 25 && f.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + o), S.lookUpThing(a[e], o);
595
+ g.log.info("@@ REPAINTING "), t = i ? V(o, e, r, n) : V(o, void 0, r, n), i = !0, t !== e && g.utils.emptyNode(e).appendChild(t), O.focusTd = e, g.log.debug("expand: Node for " + o + " expanded");
596
+ let a = A.each(o, g.ns.rdfs("seeAlso"));
597
+ for (let e = 0; e < a.length; e++) e === 25 && g.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + o), j.lookUpThing(a[e], o);
559
598
  }
560
599
  function c(e) {
561
600
  if (arguments[3]) return !0;
562
- let t = x.canon(o);
563
- f.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
564
- let n = x.sym(h.uri.docpart(e));
601
+ let t = A.canon(o);
602
+ g.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
603
+ let n = A.sym(b.uri.docpart(e));
565
604
  if (e.indexOf("#") >= 0) throw Error("Internal error: hash in " + e);
566
605
  return !function() {
567
606
  if (!t.uri) return !0;
568
- let r = x.uris(t);
607
+ let r = A.uris(t);
569
608
  if (!r) return !1;
570
- for (let t = 0; t < r.length; t++) for (let n = h.uri.docpart(r[t]); n; n = x.HTTPRedirects[n]) if (e === n) return !0;
571
- return !!x.anyStatementMatching(t, void 0, void 0, n);
572
- }() || (f.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), s(), !1);
573
- }
574
- n.solo && J(o), f.log.debug("outlineExpand: dereferencing " + o);
575
- let l = _.createElement("span");
576
- e.appendChild(l), S.addCallback("done", c), S.addCallback("fail", c);
577
- let u = [];
578
- if (o.uri && o.uri.split(":")[0] === "rdf") s();
579
- else {
580
- for (let e = 0; e < u.length; e++) {
581
- let t;
582
- if (t === u[e](o)) {
583
- s(), f.log.debug("outline 1815"), t[1] && C.removeChild(C.lastChild);
584
- return;
585
- }
586
- }
587
- if (o.uri && !a && !f.widgets.isAudio(o) && !f.widgets.isVideo(o)) {
588
- let t = o.doc() && o.doc().uri ? o.doc().uri : "" + o.doc(), r = function(e) {
589
- let t = !!(o && o.uri && o.site && o.site().uri === o.uri);
590
- return e === 403 ? t ? "This root resource is not accessible with your current permissions. Try logging in with an authorized account or opening a public profile document." : "This resource is not accessible with your current permissions." : t ? "This root resource is not publicly readable. Try logging in or opening a profile document." : "This resource is not publicly readable. Try logging in or opening a different public resource.";
591
- }, i = function(e, t) {
592
- let n = typeof e == "string" ? e : String(e || ""), r = t?.status || t?.response?.status;
593
- return r === 401 || r === 403 ? r : n.includes("status: 403") || n.includes("status 403") ? 403 : n.includes("status: 401") || n.includes("status 401") ? 401 : null;
594
- }, a = function(n, a) {
595
- if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
596
- let o = i(n, a), s = o ? r(o) : n, c = f.widgets.errorMessageBlock(_, s, "#fee", a instanceof Error ? a : void 0);
597
- t && c.setAttribute("data-outline-error-for", t), e.appendChild(c);
598
- }, c = !1, l = S.nowOrWhenFetched(o.doc(), void 0, function(e, t) {
599
- e ? (S.lookUpThing(o), s(), n.solo && J(o)) : (c = !0, a(t, void 0));
600
- });
601
- l && typeof l.catch == "function" && l.catch(function(e) {
602
- c || (c = !0, a(e, e));
603
- });
604
- } else s();
609
+ for (let t = 0; t < r.length; t++) for (let n = b.uri.docpart(r[t]); n; n = A.HTTPRedirects[n]) if (e === n) return !0;
610
+ return !!A.anyStatementMatching(t, void 0, void 0, n);
611
+ }() || (g.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), s(), !1);
605
612
  }
613
+ n.solo && Z(o), g.log.debug("outlineExpand: dereferencing " + o);
614
+ let l = w.createElement("span");
615
+ if (e.appendChild(l), j.addCallback("done", c), j.addCallback("fail", c), o.uri && o.uri.split(":")[0] === "rdf") s();
616
+ else if (o.uri && !a && !g.widgets.isAudio(o) && !g.widgets.isVideo(o)) {
617
+ let t = o.doc() && o.doc().uri ? o.doc().uri : "" + o.doc(), r = function(e) {
618
+ let t = !!(o && o.uri && o.site && o.site().uri === o.uri);
619
+ return e === 403 ? t ? "This root resource is not accessible with your current permissions. Try logging in with an authorized account or opening a public profile document." : "This resource is not accessible with your current permissions." : t ? "This root resource is not publicly readable. Try logging in or opening a profile document." : "This resource is not publicly readable. Try logging in or opening a different public resource.";
620
+ }, i = function(e, t) {
621
+ let n = typeof e == "string" ? e : String(e || ""), r = t?.status || t?.response?.status;
622
+ return r === 401 || r === 403 ? r : n.includes("status: 403") || n.includes("status 403") ? 403 : n.includes("status: 401") || n.includes("status 401") ? 401 : null;
623
+ }, a = function(n, a) {
624
+ if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
625
+ let o = i(n, a), s = o ? r(o) : n, c = g.widgets.errorMessageBlock(w, s, "#fee", a instanceof Error ? a : void 0);
626
+ t && c.setAttribute("data-outline-error-for", t), e.appendChild(c);
627
+ }, c = !1, l = j.nowOrWhenFetched(o.doc(), void 0, function(e, t) {
628
+ e ? (j.lookUpThing(o), s(), n.solo && Z(o)) : (c = !0, a(t, void 0));
629
+ });
630
+ l && typeof l.catch == "function" && l.catch(function(e) {
631
+ c || (c = !0, a(e, e));
632
+ });
633
+ } else s();
606
634
  }
607
- function X(e, t) {
608
- let n = f.utils.ancestor(e, "TR");
609
- n = f.utils.ancestor(n.parentNode, "TR");
635
+ function he(e, t) {
636
+ let n = e.AJAR_statement || e.parentNode && e.parentNode.AJAR_statement;
637
+ g.log.debug("Collapsing subject " + t);
610
638
  let r;
611
- n && (r = n.AJAR_statement);
639
+ n && (g.log.debug("looking up pred " + n.predicate.uri + "in defaults"), r = $.defaults[n.predicate.uri]), g.log.debug("view= " + r);
612
640
  let i;
613
- for (i = e.parentNode; i.tagName !== "TD"; i = i.parentNode) if (i === void 0) {
614
- alert("Not enclosed in TD!");
615
- return;
616
- }
617
- f.log.debug("Collapsing subject " + t);
618
- let a;
619
- r && (f.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), f.log.debug("view= " + a);
620
- let o;
621
- i.parentNode.parentNode.id === "outline" && (o = i.parentNode), y.replaceTD(y.outlineObjectTD(t, a, o, r), i);
641
+ e.parentNode && e.parentNode.id === "outline" && (i = e), O.replaceTD(O.outlineObjectDiv(t, r, i, n), e);
622
642
  }
623
643
  this.replaceTD = function(e, t) {
624
644
  let n;
625
- L(t) && (n = !0);
626
- for (let e = b.length - 1; e > -1; e--) for (let n = b[e]; n.parentNode; n = n.parentNode) n === t && V(b[e], !1);
627
- t.parentNode.replaceChild(e, t), n && V(e, !0);
645
+ U(t) && (n = !0);
646
+ for (let e = k.length - 1; e > -1; e--) for (let n = k[e]; n.parentNode; n = n.parentNode) n === t && q(k[e], !1);
647
+ t.parentNode.replaceChild(e, t), n && q(e, !0);
628
648
  };
629
- function Z(e, t) {
630
- let n = null;
631
- for (let t = e.parentNode; t; t = t.parentNode) f.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
632
- f.utils.emptyNode(n).appendChild(M(t)), J(t), n.setAttribute("about", t.toNT());
649
+ function ge(e, t) {
650
+ g.utils.emptyNode(e).appendChild(V(t)), Z(t), e.setAttribute("about", t.toNT());
633
651
  }
634
- v.outlineRefocus = Z, this.GotoFormURI_enterKey = function(e) {
635
- e.keyCode === 13 && v.GotoFormURI(e);
652
+ D.outlineRefocus = ge, this.GotoFormURI_enterKey = function(e) {
653
+ e.keyCode === 13 && D.GotoFormURI(e);
636
654
  }, this.GotoFormURI = function(e) {
637
- se(_.getElementById("UserURI").value);
655
+ _e(w.getElementById("UserURI").value);
638
656
  };
639
- function se(e) {
640
- let t = x.sym(e);
657
+ function _e(e) {
658
+ let t = A.sym(e);
641
659
  this.GotoSubject(t, !0);
642
660
  }
643
- let Q = 0;
644
- function ce(e, t, n) {
645
- let r = ++Q, i = t.uri, a = n.uri.split("#")[0];
646
- if (!i.endsWith("/") || !a.startsWith(i) || a === i) return;
647
- let o = [], s = a.slice(i.length).split("/"), c = i;
648
- s.forEach((e, t) => {
649
- e && (c += t < s.length - 1 ? e + "/" : e, o.push(c));
650
- });
651
- let l = (t) => Array.from(e.querySelectorAll("td.obj[about]")).find((e) => e.getAttribute("about") === x.sym(t).toNT()), u = (t) => new Promise((n) => {
652
- let i = l(t);
653
- if (i) return n(i);
654
- let a = setTimeout(() => {
655
- o.disconnect(), n(null);
656
- }, 1e4), o = new MutationObserver(() => {
657
- let e = l(t);
658
- (e || r !== Q) && (clearTimeout(a), o.disconnect(), n(e));
659
- });
660
- o.observe(e, {
661
- childList: !0,
662
- subtree: !0
663
- });
664
- });
665
- (async () => {
666
- for (let e of o) {
667
- let t = await u(e);
668
- if (!t || r !== Q) return;
669
- (!t.firstChild || t.firstChild.nodeName !== "TABLE") && Y(t, x.sym(e)), e === o[o.length - 1] && typeof t.scrollIntoView == "function" && t.scrollIntoView({ block: "nearest" });
670
- }
671
- })().catch((e) => f.log.warn("outline: could not open " + n.uri + " inside " + i + ": " + e));
672
- }
673
661
  this.GotoURIinit = function(e) {
674
- let t = x.sym(e);
662
+ let t = A.sym(e);
675
663
  this.GotoSubject(t);
676
664
  }, this.GotoSubject = function(e, t, n, r, i, a, o) {
677
- let s = u(o) !== "accountMenu", d = E();
678
- s && (!a || a === d) && D(e), a ||= d, r && (f.utils.emptyNode(a), a.style.width = "100%");
665
+ let s = d(o) !== "accountMenu", c = I();
666
+ s && (!a || a === c) && ee(e);
667
+ let f = a || c;
668
+ r && (f.style.width = "100%", g.utils.emptyNode(f));
679
669
  let p = n && n.subject && n.subject.uri ? n.subject : e;
680
670
  function m() {
681
- let e = _.createElement("tr");
682
- e.classList.add("outlineRow1"), e.style.verticalAlign = "top", a.appendChild(e);
683
- let t = y.outlineObjectTD(p, void 0, e);
684
- return e.appendChild(t), t;
671
+ let e = w.createElement("div");
672
+ e.classList.add("outline-subject-block");
673
+ let t = O.outlineObjectDiv(p, void 0, e);
674
+ return e.appendChild(t), f.appendChild(e), e;
685
675
  }
686
- let h = m();
687
- if (r && J(p), t && (Y(h, p, {
676
+ let h = r ? m() : f;
677
+ if (r && Z(p), t ? Q(h, p, {
688
678
  pane: n,
689
679
  solo: r,
690
680
  headerOnlyInViewerPod: !s || !!(n && n.subject && n.subject.uri)
691
- }), r && p !== e && ce(a, p, e)), r && _ && _.defaultView && _.defaultView.history) {
692
- let t = _.defaultView.history.state || {}, r = document.location.href !== e.uri, i = c(t, {
681
+ }) : r || m(), r && w && w.defaultView && w.defaultView.history) {
682
+ let t = w.defaultView.history.state || {}, r = document.location.href !== e.uri, i = l(t, {
693
683
  pane: n ? {
694
684
  name: n.name,
695
685
  subject: n.subject && typeof n.subject.uri == "string" ? n.subject.uri : void 0
@@ -699,44 +689,43 @@ function g(g) {
699
689
  });
700
690
  try {
701
691
  let n = new URL(document.location.href), a = new URL(e.uri, document.location.href);
702
- n.origin === a.origin && (r ? _.defaultView.history.pushState(i, e.uri, e.uri) : JSON.stringify(t) !== JSON.stringify(i) && _.defaultView.history.replaceState(i, e.uri, e.uri));
692
+ n.origin === a.origin && (r ? w.defaultView.history.pushState(i, e.uri, e.uri) : JSON.stringify(t) !== JSON.stringify(i) && w.defaultView.history.replaceState(i, e.uri, e.uri));
703
693
  } catch {}
704
694
  }
705
- return r && l(_), e;
695
+ return r && u(w), e;
706
696
  };
707
- let $ = e(_);
708
- function le(e) {
697
+ let $ = e(w);
698
+ function ve(e) {
709
699
  let n;
710
700
  if (e.termType === "Literal") {
711
- if (n = _.createElement("span"), n.classList.add("objectValue", "objectValue--literal"), n.textContent = e.value, e.datatype && e.datatype.uri) {
712
- let t = f.ns.xsd("").uri;
701
+ if (n = w.createElement("span"), n.classList.add("objectValue", "objectValue--literal"), n.textContent = e.value, e.datatype && e.datatype.uri) {
702
+ let t = g.ns.xsd("").uri;
713
703
  e.datatype.uri.slice(0, t.length) === t && n.classList.add("objectValue--" + e.datatype.uri.slice(t.length));
714
704
  }
715
705
  } else if (e.termType === "NamedNode" || e.termType === "BlankNode") {
716
- if (n = _.createElement("span"), n.classList.add("objectValue", "objectValue--resource"), n.setAttribute("about", e.toNT()), y.appendAccessIcons(x, n, e), e.termType === "NamedNode") {
706
+ if (n = w.createElement("span"), n.classList.add("objectValue", "objectValue--resource"), n.setAttribute("about", e.toNT()), O.appendAccessIcons(A, n, e), e.termType === "NamedNode") {
717
707
  if (e.uri.slice(0, 4) === "tel:") {
718
- let r = e.uri.slice(4), i = _.createElement("a");
719
- n.appendChild(_.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(f.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, _)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon"), i.firstChild.classList.add("objectValueLinkIcon");
708
+ let r = e.uri.slice(4), i = w.createElement("a");
709
+ n.appendChild(w.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(g.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, w)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon"), i.firstChild.classList.add("objectValueLinkIcon");
720
710
  } else {
721
- n.appendChild(_.createTextNode(f.utils.label(e)));
722
- let t = f.widgets.linkIcon(_, e);
723
- t.firstChild && t.firstChild.classList.add("objectValueLinkIcon"), n.appendChild(t), f.widgets.makeDraggable(n, e);
711
+ n.appendChild(w.createTextNode(g.utils.label(e)));
712
+ let t = g.widgets.linkIcon(w, e);
713
+ t.firstChild && t.firstChild.classList.add("objectValueLinkIcon"), n.appendChild(t), g.widgets.makeDraggable(n, e);
724
714
  }
725
- } else n.appendChild(_.createTextNode(f.utils.label(e)));
715
+ } else n.appendChild(w.createTextNode(g.utils.label(e)));
726
716
  } else if (e.termType === "Collection") {
727
- n = _.createElement("table"), n.classList.add("tableFullWidth"), n.setAttribute("about", e.toNT());
717
+ n = w.createElement("div"), n.setAttribute("about", e.toNT());
728
718
  for (let t = 0; t < e.elements.length; t++) {
729
- let r = e.elements[t], i = n.appendChild(_.createElement("tr")), a = i.appendChild(_.createElement("td"));
730
- a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(y.outlineObjectTD(r));
719
+ let r = e.elements[t], i = n.appendChild(w.createElement("div")), a = i.appendChild(w.createElement("div"));
720
+ a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(O.outlineObjectDiv(r));
731
721
  }
732
- } else e.termType === "Graph" ? (n = m.byName("dataContentPane").statementsAsTables(e.statements, g), n.setAttribute("class", "nestedFormula")) : (f.log.error("Object " + e + " has unknown term type: " + e.termType), n = _.createTextNode("[unknownTermType:" + e.termType + "]"));
733
- return f.log.debug("contents: " + n.innerHTML), n;
722
+ } else e.termType === "Graph" ? (n = y.byName("dataContentPane").statementsAsTables(e.statements, C), n.setAttribute("class", "nestedFormula")) : (g.log.error("Object " + e + " has unknown term type: " + e.termType), n = w.createTextNode("[unknownTermType:" + e.termType + "]"));
723
+ return g.log.debug("contents: " + n.innerHTML), n;
734
724
  }
735
725
  return this.createTabURI = function() {
736
- _.getElementById("UserURI").value = _.URL + "?uri=" + _.getElementById("UserURI").value;
737
- }, this.UserInput.setSelected = V, this.UserInput.deselectAll = H, this.UserInput.views = $, this.outlineExpand = Y, this;
726
+ w.getElementById("UserURI").value = w.URL + "?uri=" + w.getElementById("UserURI").value;
727
+ }, this.UserInput.setSelected = q, this.UserInput.deselectAll = J, this.UserInput.views = $, this.outlineExpand = Q, this;
738
728
  }
739
- //#endregion
740
- export { g as default };
729
+ export { C as default };
741
730
 
742
731
  //# sourceMappingURL=manager2.esm.js.map