solid-panes 5.1.0-1 → 5.1.0-3

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